{"version":3,"sources":["webpack:///./src/doctor-app/service/DoctorAppointmentService.ts","webpack:///./node_modules/core-js/modules/es6.array.find.js","webpack:///./src/common-app/views/home/home.vue?85a4","webpack:///./src/common-app/service/DoctorService.ts","webpack:///./src/common-app/views/home/home.vue","webpack:///./src/common-app/views/home/home.vue?18bb","webpack:///./src/common-app/views/home/home.vue?4323"],"names":["refreshAptScheduleSubject","refreshAptSchedule","refresh","next","getAptScheduleRefresh","asObservable","insert","appoit","post","DrAppointmentInsert","JSON","stringify","insertDr","DrAppointmentInsertAdmin","varify","DrAppointmentVerification","reSendCode","appointmentId","get","DrAppointmentReSendCode","approvedUnApproved","appointment","DrAppointmentAppUnApp","GetAppoitmentByCurrentUser","DrAppointmentGetListByUser","GetAppoitmentByDrId","DrAppointmentGetListByDrId","GetAppoitmentByDate1","DrAppointmentGetListByAppointmentDate","GetAppoitmentByDate","fromDate","toDate","DrAppointmentGetByAppointmentDate","toISOString","GetAppoitmentByCurrentDoctor","DrAppointmentGetListByDoctor","delete","id","DrAwardDelete","cancel","DrAppointmentCancel","daysOfMonth","month","DrAppointmentDaysOfMonth","getChartDate","DrAppointmentChartData","getByAppointmentDate","appointmentDate","getChamberCountByAppointmentDate","DrAppointmentGetChamberCountByAppointmentDate","getChamberWeeklyCountByAppointmentDate","DrAppointmentGetChamberWeeklyCountByAppointmentDate","getAppointmentSearch","phone","patientId","patientName","dob","DrAppointmentSearch","getAppointmentById","DrAppointmentById","$export","$find","KEY","forced","Array","P","F","find","callbackfn","this","arguments","length","undefined","render","_vm","_h","$createElement","_c","_self","staticClass","isDoctorRequest","_e","directives","name","rawName","modifiers","_v","attrs","on","doctorYes","$event","$bvModal","hide","title","_m","_s","user","email","address","district","thana","class","appList","_l","apnt","index","key","doctorName","chamberAddress","_f","startTime","endTime","isApproved","isSameDay","value","customClass","expression","nativeOn","rows","perPage","onPageChanged","model","callback","$$v","currentPage","verifyEmailModal","verifyEmailClosed","staticRenderFns","areYouDoctor","ReSendCode","data","test","appointmentList","fee","AuthUser","IsEmailLogin","getAuthUser","getAddress","districts","thanas","userDetail","currentDate","Date","$store","getters","getIsDoctorRequest","DoctorAppointmentService","then","res","result","paginate","DoctorDetailService","getCurrentDoctorDetail","visit","UserService","GetAddress","districtId","thanaId","UniversalService","s","DoctorService","d","dispatch","setToken","$router","push","path","alert","message","page_size","page_number","slice","page","msgBoxConfirm","okVariant","okTitle","cancelVariant","cancelTitle","hideHeaderClose","headerClass","bodyClass","centered","footerClass","status","filter","AlertService","sendMessage","catch","err","apptDate","components","ProfileWidget","VerifyEmail","component"],"mappings":"kHAAA,wCAKMA,EAA4B,IAAI,OAEvB,QACbC,mBAAoB,SAACC,GAGnBF,EAA0BG,KAAKD,IAEjCE,sBAAuB,WACrB,OAAOJ,EAA0BK,gBAGnCC,OAVa,SAUNC,GACL,OAAO,OAAUC,KAAK,OAAQC,oBAAqBC,KAAKC,UAAUJ,KAEpEK,SAba,SAaJL,GACP,OAAO,OAAUC,KAAK,OAAQK,yBAA0BH,KAAKC,UAAUJ,KAEzEO,OAhBa,SAgBNP,GACL,OAAO,OAAUC,KAAK,OAAQO,0BAA2BL,KAAKC,UAAUJ,KAE1ES,WAnBa,SAmBFC,GACT,OAAO,OAAUC,IAAI,OAAQC,wBAA0B,IAAMF,IAQ/DG,mBA5Ba,SA4BMC,GACjB,OAAO,OAAUb,KAAK,OAAQc,sBAAuBZ,KAAKC,UAAUU,KAEtEE,2BA/Ba,WAgCX,OAAO,OAAUL,IAAI,OAAQM,6BAE/BC,oBAlCa,WAmCX,OAAO,OAAUP,IAAI,OAAQQ,6BAE/BC,qBArCa,WAsCX,OAAO,OAAUT,IAAI,OAAQU,wCAE/BC,oBAxCa,SAwCOC,EAAgBC,GAClC,OAAO,OAAUb,IAAV,UACF,OAAQc,kCADN,qBACoDF,EAASG,cAD7D,mBACqFF,EAAOE,iBAGrGC,6BA7Ca,WA8CX,OAAO,OAAUhB,IAAI,OAAQiB,+BAE/BC,OAhDa,SAgDNC,GAC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AkB,GACvB/D,KAAK+D,gBAAkB/D,KAAKiC,QAAQqE,MAAMD,EAAcD,GAAYC,EAAc,GAAKD,KAnF3F,oCAqFgBG,GACZvG,KAAKiF,SAASjF,KAAKkD,QAASqD,EAAO,KAtFvC,6BAyFSvI,GAAU,WACfgC,KAAKsB,SACFkF,cAAc,gCAAiC,CAC9ChF,MAAO,iBACPiF,UAAW,UACXC,QAAS,KACTC,cAAe,SACfC,YAAa,MACbC,iBAAiB,EACjBC,YAAa,yBACbC,UAAW,cACXC,UAAU,EACVC,YAAa,0DAEdnC,MAAK,SAACjC,GACQ,GAATA,GACFgC,EAAA,KAAyB3G,OAAOF,GAAI8G,MAAK,SAACC,GACpCA,EAAIlB,KAAKqD,SACX,EAAKjF,QAAU,EAAKA,QAAQkF,QAAO,SAACzB,GAAD,OAAOA,EAAE1H,KAAOA,KAEnDoJ,EAAA,KAAaC,YAAY,CAAEH,QAAQ,EAAMf,QAAS,gCAKzDmB,OAAM,SAACC,SAlHd,gCAuHcC,GAEV,OADAA,EAAW,IAAI/C,KAAK+C,GAChBxH,KAAKwE,aAAegD,MAzH5B,GAAkC,cAAb,EAAI,QANxB,eAAU,CACTC,WAAY,CACVC,gBAAA,KACAC,cAAA,SAGiB,WC5Q8Y,I,YCO/ZC,EAAY,eACd,EACAxH,EACAsD,GACA,EACA,KACA,KACA,MAIa,aAAAkE,E","file":"js/chunk-71fb884a.24078890.js","sourcesContent":["import { AuthAxios } from \"../../global-config/HttpConfig\";\r\nimport { ApiURIs } from \"../../global-config/ApiList\";\r\nimport { IDoctorAppointment } from \"../models/DoctorAppointment\";\r\nimport { Subject } from \"rxjs\";\r\n\r\nconst refreshAptScheduleSubject = new Subject();\r\n\r\nexport default {\r\n refreshAptSchedule: (refresh: boolean) => {\r\n //console.log(\"refreshAptSchedule\", refresh);\r\n\r\n refreshAptScheduleSubject.next(refresh);\r\n },\r\n getAptScheduleRefresh: () => {\r\n return refreshAptScheduleSubject.asObservable();\r\n },\r\n\r\n insert(appoit: IDoctorAppointment) {\r\n return AuthAxios.post(ApiURIs.DrAppointmentInsert, JSON.stringify(appoit));\r\n },\r\n insertDr(appoit: IDoctorAppointment) {\r\n return AuthAxios.post(ApiURIs.DrAppointmentInsertAdmin, JSON.stringify(appoit));\r\n },\r\n varify(appoit: IDoctorAppointment) {\r\n return AuthAxios.post(ApiURIs.DrAppointmentVerification, JSON.stringify(appoit));\r\n },\r\n reSendCode(appointmentId: number) {\r\n return AuthAxios.get(ApiURIs.DrAppointmentReSendCode + \"/\" + appointmentId);\r\n },\r\n // approvedUnApproved(appId: number, isApp: boolean) {\r\n // return AuthAxios.post(ApiURIs.DrAppointmentAppUnApp, {\r\n // appointmentId: appId,\r\n // isActive: isApp\r\n // });\r\n // },\r\n approvedUnApproved(appointment: IDoctorAppointment) {\r\n return AuthAxios.post(ApiURIs.DrAppointmentAppUnApp, JSON.stringify(appointment));\r\n },\r\n GetAppoitmentByCurrentUser() {\r\n return AuthAxios.get(ApiURIs.DrAppointmentGetListByUser);\r\n },\r\n GetAppoitmentByDrId() {\r\n return AuthAxios.get(ApiURIs.DrAppointmentGetListByDrId);\r\n },\r\n GetAppoitmentByDate1() {\r\n return AuthAxios.get(ApiURIs.DrAppointmentGetListByAppointmentDate);\r\n },\r\n GetAppoitmentByDate(fromDate: Date, toDate: Date) {\r\n return AuthAxios.get(\r\n `${ApiURIs.DrAppointmentGetByAppointmentDate}?fromDate=${fromDate.toISOString()}&toDate=${toDate.toISOString()}`\r\n );\r\n },\r\n GetAppoitmentByCurrentDoctor() {\r\n return AuthAxios.get(ApiURIs.DrAppointmentGetListByDoctor);\r\n },\r\n delete(id: number) {\r\n return AuthAxios.delete(`${ApiURIs.DrAwardDelete}/${id}`);\r\n },\r\n cancel(id: number) {\r\n return AuthAxios.delete(`${ApiURIs.DrAppointmentCancel}/${id}`);\r\n },\r\n\r\n daysOfMonth(month: number) {\r\n return AuthAxios.get(`${ApiURIs.DrAppointmentDaysOfMonth}?month=${month}`);\r\n },\r\n getChartDate(month: number) {\r\n return AuthAxios.get(`${ApiURIs.DrAppointmentChartData}?month=${month}`);\r\n },\r\n\r\n getByAppointmentDate(appointmentDate: Date) {\r\n return AuthAxios.get(`${ApiURIs.DrAppointmentGetByAppointmentDate}?appointmentDate=${appointmentDate.toISOString()}`);\r\n },\r\n\r\n getChamberCountByAppointmentDate(appointmentDate: Date) {\r\n return AuthAxios.get(`${ApiURIs.DrAppointmentGetChamberCountByAppointmentDate}?appointmentDate=${appointmentDate.toISOString()}`);\r\n },\r\n getChamberWeeklyCountByAppointmentDate(appointmentDate: Date) {\r\n return AuthAxios.get(\r\n `${ApiURIs.DrAppointmentGetChamberWeeklyCountByAppointmentDate}?appointmentDate=${appointmentDate.toISOString()}`\r\n );\r\n },\r\n getAppointmentSearch(phone: string, patientId: string, patientName: string, dob: Date) {\r\n return AuthAxios.get(\r\n `${ApiURIs.DrAppointmentSearch}?phone=${phone}&patientId=${patientId}&patientName=${patientName}&dob=${dob.toISOString()}`\r\n );\r\n },\r\n getAppointmentById(id: number) {\r\n return AuthAxios.get(`${ApiURIs.DrAppointmentById}?id=${id}`);\r\n }\r\n};\r\n","'use strict';\n// 22.1.3.8 Array.prototype.find(predicate, thisArg = undefined)\nvar $export = require('./_export');\nvar $find = require('./_array-methods')(5);\nvar KEY = 'find';\nvar forced = true;\n// Shouldn't skip holes\nif (KEY in []) Array(1)[KEY](function () { forced = false; });\n$export($export.P + $export.F * forced, 'Array', {\n find: function find(callbackfn /* , that = undefined */) {\n return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\nrequire('./_add-to-unscopables')(KEY);\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"row mb-4 justify-content-center\"},[(!_vm.isDoctorRequest)?_c('div',{staticClass:\"col-12 col-xl-4 col-md-6\"},[_c('button',{directives:[{name:\"b-modal\",rawName:\"v-b-modal.are-you-doctor-modal\",modifiers:{\"are-you-doctor-modal\":true}}],staticClass:\"btn btn-with-icon btn-lg btn-primary w-100 text-uppercase\"},[_c('i',{staticClass:\"icon-are-you-doctor text-white mr-2\"}),_vm._v(\" Are you a Doctor? \")])]):_vm._e()]),_c('b-modal',{attrs:{\"id\":\"are-you-doctor-modal\",\"hide-header\":\"\",\"hide-footer\":\"\",\"centered\":\"\"}},[_c('h3',{staticClass:\"playBold text-center\"},[_vm._v(\"Are you sure you want to be a doctor?\")]),_c('div',{staticClass:\"text-center mt-5\"},[_c('button',{staticClass:\"btn btn-success btn-lg mr-3\",on:{\"click\":_vm.doctorYes}},[_vm._v(\"Yes\")]),_c('button',{staticClass:\"btn btn-danger btn-lg\",on:{\"click\":function($event){return _vm.$bvModal.hide('are-you-doctor-modal')}}},[_vm._v(\" No \")])])]),_c('div',{staticClass:\"row mx-lg-0 mb-4\"},[_c('div',{staticClass:\"col-xl-3 col-lg-4 col-md-5 col-12 pr-md-4 mb-3 mb-md-0\"},[_c('div',{staticClass:\"left-sidebar\"},[_c('ProfileWidget',{attrs:{\"title\":_vm.title}})],1)]),_c('div',{staticClass:\"col-xl-9 col-lg-8 col-md-7 col-12 pl-md-0 d-flex flex-column\"},[_c('div',{staticClass:\"card mb-3\"},[_vm._m(0),_c('div',{staticClass:\"card-body\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-12 col-sm-6 col-lg-2\"},[_c('label',{staticClass:\"h6 font-weight-bold\",attrs:{\"for\":\"\"}},[_vm._v(\"Phone:\")]),_c('p',{staticClass:\"h6 font-weight-normal\"},[_vm._v(_vm._s(_vm.user.phone))])]),_c('div',{staticClass:\"col-12 col-sm-6 col-lg-2\"},[_c('label',{staticClass:\"h6 font-weight-bold\",attrs:{\"for\":\"\"}},[_vm._v(\"Email:\")]),_c('p',{staticClass:\"h6 font-weight-normal\"},[_vm._v(_vm._s(_vm.user.email))])]),_c('div',{staticClass:\"col-12 col-sm-6 col-lg-3\"},[_c('label',{staticClass:\"h6 font-weight-bold\",attrs:{\"for\":\"\"}},[_vm._v(\"Address:\")]),_c('p',{staticClass:\"h6 font-weight-normal\"},[_vm._v(\" \"+_vm._s(this.address)+\" \")])]),_c('div',{staticClass:\"col-12 col-sm-6 col-lg-2\"},[_c('label',{staticClass:\"h6 font-weight-bold\",attrs:{\"for\":\"\"}},[_vm._v(\"District:\")]),_c('p',{staticClass:\"h6 font-weight-normal\"},[_vm._v(\" \"+_vm._s(this.district)+\" \")])]),_c('div',{staticClass:\"col-12 col-sm-6 col-lg-2\"},[_c('label',{staticClass:\"h6 font-weight-bold\",attrs:{\"for\":\"\"}},[_vm._v(\"Thana:\")]),_c('p',{staticClass:\"h6 font-weight-normal\"},[_vm._v(\" \"+_vm._s(this.thana)+\" \")])])])])]),_c('div',{staticClass:\"card flex-grow-1\"},[_vm._m(1),_c('div',{staticClass:\"card-body\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-12\",class:{\n 'justify-content-center d-flex align-items-center py-5 my-5':\n _vm.appList.length == 0,\n }},[(_vm.appList.length == 0)?_c('div',{staticClass:\"d-flex flex-column align-items-center\"},[_c('h2',{staticClass:\"playBold mb-4\"},[_vm._v(\"No appointments\")])]):_vm._e(),(_vm.appList.length)?_c('table',{staticClass:\"table table-striped table-borderless table-sm table-bddot\"},[_vm._m(2),_c('tbody',_vm._l((_vm.appointmentList),function(apnt,index){return _c('tr',{key:index},[_c('td',[_c('p',{staticClass:\"mb-0\"},[_vm._v(_vm._s(apnt.patientName))])]),_c('td',[_c('p',{staticClass:\"mb-0\"},[_vm._v(_vm._s(apnt.doctorName))])]),_c('td',[_c('p',{staticClass:\"mb-0\"},[_vm._v(_vm._s(apnt.chamberAddress))])]),_c('td',[_vm._v(\" \"+_vm._s(_vm._f(\"moment\")(apnt.appointmentDate,\"DD MMM YYYY\"))+\" \")]),_c('td',[_vm._v(\" \"+_vm._s(_vm._f(\"time12hour\")(apnt.startTime))+\"-\"+_vm._s(_vm._f(\"time12hour\")(apnt.endTime))+\" \")]),_c('td',[(apnt.isApproved == 1)?_c('p',[_vm._v(\"Approved\")]):(apnt.isApproved == 0)?_c('p',[_vm._v(\"Pending\")]):(apnt.isApproved == 3)?_c('p',[_vm._v(\"Decline\")]):_vm._e()]),_c('td',{staticClass:\"align-middle text-center\"},[(apnt.isApproved!=3 && _vm.isSameDay(apnt.appointmentDate) == true)?_c('router-link',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip.hover\",value:({ customClass: 'mb-2' }),expression:\"{ customClass: 'mb-2' }\",modifiers:{\"hover\":true}}],attrs:{\"to\":\"\",\"title\":\"Cancel appointments\"},nativeOn:{\"click\":function($event){return _vm.cancel(apnt.id)}}},[_c('i',{staticClass:\"icon-circle-cross fs-18 text-danger\"})]):_vm._e()],1)])}),0)]):_vm._e(),_c('b-pagination',{attrs:{\"total-rows\":_vm.rows,\"per-page\":_vm.perPage,\"first-text\":\"First\",\"prev-text\":\"Prev\",\"next-text\":\"Next\",\"last-text\":\"Last\",\"align\":\"center\"},on:{\"change\":_vm.onPageChanged},model:{value:(_vm.currentPage),callback:function ($$v) {_vm.currentPage=$$v},expression:\"currentPage\"}})],1)])])])])]),(!_vm.verifyEmailModal)?_c('VerifyEmail',{on:{\"close\":function($event){return _vm.verifyEmailClosed()}}}):_vm._e()],1)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"card-header\"},[_c('h4',{staticClass:\"text-uppercase playBold\"},[_vm._v(\"My General Info\")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"card-header d-flex justify-content-between py-2\"},[_c('h4',{staticClass:\"text-uppercase playBold\"},[_vm._v(\"Appointment History\")]),_c('a',{staticClass:\"btn btn-secondary text-white btn-sm badge-pill px-4 edit-profile\",attrs:{\"href\":\"#\"}},[_vm._v(\"View More\")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('thead',[_c('tr',[_c('td',[_vm._v(\"Patient Name\")]),_c('td',[_vm._v(\"Doctor Name\")]),_c('td',[_vm._v(\"Chamber Address\")]),_c('td',[_vm._v(\"Appt. Date\")]),_c('td',[_vm._v(\"Time\")]),_c('td',[_vm._v(\"Status\")]),_c('td',{staticClass:\"text-center\"},[_vm._v(\"Action\")])])])}]\n\nexport { render, staticRenderFns }","import { AuthAxios } from \"../../global-config/HttpConfig\";\r\nimport { ApiURIs } from \"../../global-config/ApiList\";\r\n\r\nexport default {\r\n areYouDoctor() {\r\n return AuthAxios.get(\"user/AreYouDoctor\");\r\n },\r\n\r\n ReSendCode(data: any) {\r\n return AuthAxios.post(ApiURIs.reSendCode, JSON.stringify(data));\r\n },\r\n\r\n test() {\r\n return AuthAxios.get(\"api/user/test\");\r\n }\r\n};\r\n","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport Vue from \"vue\";\r\nimport { Component } from \"vue-property-decorator\";\r\nimport ProfileWidget from \"@/common-app/components/ProfileWidget.vue\";\r\nimport AuthUser from \"../../../global-config/AuthUser\";\r\nimport AuthService from \"../../../website/services/AuthService\";\r\nimport DoctorService from \"../../service/DoctorService\";\r\nimport DoctorAppointmentService from \"../../../doctor-app/service/DoctorAppointmentService\";\r\nimport DoctorDetailService from \"../../../doctor-app/service/DoctorDetailService\";\r\nimport { IDoctorAppointment } from \"../../../doctor-app/models/DoctorAppointment\";\r\nimport { IDistrict } from \"@/common-app/models/District\";\r\nimport { IThana } from \"@/common-app/models/Thana\";\r\nimport VerifyEmail from \"../../components/VerifyEmail.vue\";\r\nimport UserService from \"../../service/UserService\";\r\nimport UniversalService from \"@/common-app/service/UniversalService\";\r\nimport { IUser } from \"@/common-app/models/User\";\r\nimport AlertService from \"../../../common-app/service/AlertService\";\r\n\r\n@Component({\r\n components: {\r\n ProfileWidget,\r\n VerifyEmail,\r\n },\r\n})\r\nexport default class Home extends Vue {\r\n public isDoctorRequest: boolean = false;\r\n public appList: IDoctorAppointment[] = [];\r\n public appointmentList: IDoctorAppointment[] = [];\r\n public fee: number = 0;\r\n public title: string = \"\";\r\n public verifyEmailModal: boolean = AuthUser.IsEmailLogin();\r\n public user = AuthUser.getAuthUser();\r\n public address: string = AuthUser.getAddress();\r\n public district = \"\";\r\n public thana = \"\";\r\n public districts: IDistrict[] = [];\r\n public thanas: IThana[] = [];\r\n public userDetail: IUser = {} as IUser;\r\n public currentPage = 1;\r\n public perPage = 10;\r\n public rows = 10;\r\n public currentDate: Date = new Date();\r\n created() {\r\n this.isDoctorRequest =\r\n this.$store.getters.isDoctorRequest || AuthUser.getIsDoctorRequest();\r\n DoctorAppointmentService.GetAppoitmentByCurrentUser().then((res) => {\r\n this.appList = res.data.result || [];\r\n this.rows=this.appList.length;\r\n this.paginate(this.perPage, 0);\r\n });\r\n\r\n DoctorDetailService.getCurrentDoctorDetail().then((res: any) => {\r\n let user: any = res.data.result;\r\n if (user) {\r\n this.fee = user.visit;\r\n this.title = user.title;\r\n }\r\n });\r\n\r\n UserService.GetAddress().then((res) => {\r\n this.address = res.data.result.address;\r\n this.userDetail.address = res.data.result.address;\r\n this.userDetail.districtId = res.data.result.districtId;\r\n this.userDetail.thanaId = res.data.result.thanaId;\r\n });\r\n UniversalService.GetAddress().then((res) => {\r\n this.districts = res.data.districts;\r\n this.thanas = res.data.thanas;\r\n this.district =\r\n this.districts.find((s) => s.id == this.userDetail.districtId)!.name || \"\";\r\n this.thana = this.thanas.find((s) => s.id == this.userDetail.thanaId)!.name || \"\";\r\n });\r\n }\r\n\r\n doctorYes() {\r\n DoctorService.areYouDoctor().then((d) => {\r\n if (d.data.result) {\r\n this.$store.dispatch(\"addDoctorRequest\", true);\r\n let user = AuthUser.getAuthUser();\r\n user.isDoctorRequest = true;\r\n AuthUser.setToken(user);\r\n this.$bvModal.hide(\"are-you-doctor-modal\");\r\n this.$router.push({ path: \"doctor/dashboard\" });\r\n } else {\r\n alert(d.data.message);\r\n }\r\n });\r\n }\r\n\r\n verifyEmailClosed() {\r\n this.verifyEmailModal = false;\r\n }\r\n // cancel(id: number) {\r\n // if (confirm(\"Do you really want to cancle?\")) {\r\n // DoctorAppointmentService.cancel(id).then((res) => {\r\n // if (res.data.status) {\r\n // this.appList = this.appList.filter((s) => s.id !== id);\r\n // // alert(\"cancel success\");\r\n // AlertService.sendMessage(\"cancel success\");\r\n // }\r\n // });\r\n // }\r\n // }\r\n\r\n\r\n paginate(page_size: number, page_number: number) {\r\n this.appointmentList = [];\r\n this.appointmentList = this.appList.slice(page_number * page_size, (page_number + 1) * page_size);\r\n }\r\n onPageChanged(page: number) {\r\n this.paginate(this.perPage, page - 1);\r\n }\r\n\r\n cancel(id: number) {\r\n this.$bvModal\r\n .msgBoxConfirm(\"Do you really want to cancel?\", {\r\n title: \"Please Confirm\",\r\n okVariant: \"success\",\r\n okTitle: \"NO\",\r\n cancelVariant: \"danger\",\r\n cancelTitle: \"YES\",\r\n hideHeaderClose: true,\r\n headerClass: \"justify-content-center\",\r\n bodyClass: \"text-center\",\r\n centered: true,\r\n footerClass: \"justify-content-center border-top-0 flex-wrap-reverse\",\r\n })\r\n .then((value) => {\r\n if (value == false) {\r\n DoctorAppointmentService.cancel(id).then((res) => {\r\n if (res.data.status) {\r\n this.appList = this.appList.filter((s) => s.id !== id);\r\n // alert(\"cancel success\");\r\n AlertService.sendMessage({ status: true, message: \"Appointment Canceled\" });\r\n }\r\n });\r\n }\r\n })\r\n .catch((err) => {\r\n // An error occurred\r\n });\r\n }\r\n\r\n isSameDay(apptDate: Date) {\r\n apptDate = new Date(apptDate);\r\n if (this.currentDate <= apptDate) {\r\n return true;\r\n }\r\n // if(this.currentDate.getFullYear() === date2.getFullYear() &&\r\n // this.currentDate.getMonth() === date2.getMonth() &&\r\n // this.currentDate.getDay() === date2.getDay())\r\n // {\r\n // return true\r\n // }\r\n return false;\r\n }\r\n}\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./home.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./home.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./home.vue?vue&type=template&id=824bf4a2&\"\nimport script from \"./home.vue?vue&type=script&lang=ts&\"\nexport * from \"./home.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}