PageSourceSearch

https://youmed.vn/dat-kham/1247.fff08554bc4bc03f.js

js youmed.vn collected 2026-09-24 10:04:30 UTC 47,733 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkbooking=self.webpackChunkbooking||[]).push([[1247],{8407:(b,x,l)=>{l.d(x,{Dy:()=>m,GN:()=>p,UW:()=>_,qb:()=>a});var m=(()=>{return(r=m||(m={})).ALL="T\u1ea5t c\u1ea3",r.OFFLINE="L\u1ecbch kh\xe1m",r.ONLINE="L\u1ecbch t\u01b0 v\u1ea5n",r.HOMECARE="T\u1ea1i nh\xe0",m;var r})(),_=(()=>{return(r=_||(_={})).ALL="T\u1ea5t c\u1ea3",r.DOCTOR="B\xe1c s\u0129",r.CLINIC="Ph\xf2ng kh\xe1m",r.HOSPITAL="B\u1ec7nh vi\u1ec7n",_;var r})(),a=(()=>{return(r=a||(a={})).ALL="T\u1ea5t c\u1ea3",r.CONFIRMED="\u0110\xe3 thanh to\xe1n",r.CREATED="Ch\u01b0a thanh to\xe1n",r.CANCELLED="\u0110\xe3 h\u1ee7y",r.PLACED="\u0110\xe3 \u0111\u1eb7t kh\xe1m",r.ARRIVED="\u0110\xe3 kh\xe1m",a;var r})(),p=(()=>{return(r=p||(p={})).SOCKET_FAILED="SOCKET_FAILED",r.ARRIVED="ARRIVED",r.BOOKED="BOOKED",r.CONFIRMED="CONFIRMED",r.UNCONFIRMED="UNCONFIRMED",r.CANCELLED="CANCELLED",r.PLACED="PLACED",r.CREATED="CREATED",r.FAILED="FAILED",r.WAIT_FOR_PLACING="WAIT_FOR_PLACING",r.REJECT="REJECT",r.END="END",r.MISSED="MISSED",r.REFUND="REFUND",p;var r})()},4579:(b,x,l)=>{l.d(x,{G:()=>m});var m=(()=>{return(_=m||(m={})).SUCCEEDED="SUCCEEDED",_.PENDING="PENDING",_.FAILED="FAILED",_.LEGACY="LEGACY",m;var _})()},6210:(b,x,l)=>{l.d(x,{g:()=>m});var m=(()=>{return(_=m||(m={})).SUCCEEDED="SUCCEEDED",_.FAILED="FAILED",_.PENDING="PENDING",m;var _})()},2392:(b,x,l)=>{l.d(x,{L:()=>m});class m{constructor(a,p,r,u){this.doctorName=a.provider||"DOCTOR"!==a?.service?.type?(a.provider?`${a.provider?.firstName?a?.provider?.firstName:""} ${a.provider?.lastName?a?.provider?.lastName:""} `:"").trim():a.service?.name,this.id=a.id,this.number=a.number,this.code=a.code,this.orderId=a.orderId,this.service=a.service,this.serviceName=a.service?.name,this.serviceType=a.type,this.type=a.type,this.specialityName=a.speciality?.name,this.address=a.address,this.timeSlot=a.timeslot,this.estTime=a.estTime,this.reExamDate=a.reExamDate,this.area=a.area,this.patientName=a.patient?.name,this.patient=a.patient,this.examType=a.examType,this.patientType=a.patientType,this.room=a.room,this.status=a.status,this.date=a.date,this.datePart=a.datePart,this.fee=a.fee,this.barcode=a.barcode,this.orderStatus=a.orderStatus,this.diagnoseStatus=a.diagnoseStatus,this.prescription=a.prescription,this.doctorPrescription=a.doctorPrescription,this.detailedDiseaseCode=a.detailedDiseaseCode,this.diseaseNameVi=a.diseaseNameVi,this.subclinicalResults=a.subclinicalResults,this.subclinicalResultsFiles=p,this.subclinicalResultsImages=r,this.subclinicalResultsLinks=u,this.doctorNote=a.doctorNote,this.covid19DeclarationEnabled=a.service?.covid19DeclarationEnabled,this.covid19DeclarationUrl=a.service?.covid19DeclarationUrl,this.note=a.note,this.feeNote=a.feeNote,this.numberNote=a.numberNote,this.cancellable=a.cancellable||!1,this.areaDisplayEnabled=a.areaDisplayEnabled||!1,this.estTimeDisplayEnabled=a.estTimeDisplayEnabled||!1,this.examTypeDisplayEnabled=a.examTypeDisplayEnabled||!1,this.patientTypeDisplayEnabled=a.patientTypeDisplayEnabled||!1,this.feeEnabled=a.feeEnabled||!1,this.numberEnabled=a.numberEnabled||!1,this.providerDisplayEnabled=a.providerDisplayEnabled||!1,this.roomDisplayEnabled=a.roomDisplayEnabled||!1,this.specialityDisplayEnabled=a.specialityDisplayEnabled||!1,this.timeSlotDisplayEnabled=a.timeSlotDisplayEnabled||!1,this.areaNameLabel=a.areaNameLabel||"Khu kh\xe1m",this.estTimeLabel=a.estTimeLabel||"Gi\u1edd kh\xe1m d\u1ef1 ki\u1ebfn",this.examTypeNameLabel=a.examTypeNameLabel||"Lo\u1ea1i h\xecnh kh\xe1m",this.patientTypeNameLabel=a.patientTypeNameLabel||"Lo\u1ea1i \u0111\u1ed1i t\u01b0\u1ee3ng kh\xe1m",this.providerNameLabel=a.providerNameLabel||"B\xe1c s\u0129 d\u1ef1 ki\u1ebfn",this.roomNameLabel=a.roomNameLabel||"Ph\xf2ng kh\xe1m",this.specialityNameLabel=a.specialityNameLabel||"Chuy\xean khoa",this.timeSlotLabel=a.timeSlotLabel||"Gi\u1edd kh\xe1m",this.expand=!1,this.additionalInformation=a?.additionalInformation,this.createdAt=a?.createdAt,this.completionStatus=a?.completionStatus}}},9348:(b,x,l)=>{l.d(x,{x:()=>u});var m=l(8987),_=l(934),a=l(2340),p=l(2560),r=l(6774);let u=(()=>{const f=class extends _.b{constructor(t){super(t,a.N.apiUrl,"v1/data"),this.http=t}getAppVersion(){return this.httpClient.get(a.N.apiUrl+"version-checking?codeVersion=0.0.0&app=YOUMED&platform=IOS&status=PUBLISHED&_allow_anonymous=true")}getProfileHospitalBySlug(t){let h=new m.LE;return super.getCustomApi(`hospitals/slug/${t}`,h)}getProfileDoctorBySlug(t){let h=new m.LE;return super.getCustomApi(`doctors/slug/${t}`,h)}getProfileBySlug(t,h){let y=new m.LE;return super.getCustomApi(`${t}/slug/${h}`,y)}getClinicById(t){return super.getCustomApi(`clinics/id/${t}`,new m.LE)}getDoctorById(t){return super.getCustomApi(`doctors/id/${t}`,new m.LE)}getHospitalById(t){return super.getCustomApi(`hospitals/id/${t}`,new m.LE)}getServiceByType(t,h){return super.getCustomApi(`${h}s/id/${t}`,new m.LE)}};let g=f;return f.\u0275fac=function(h){return new(h||f)(p.LFG(r.h))},f.\u0275prov=p.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),g})()},3430:(b,x,l)=>{l.d(x,{d:()=>r,w:()=>p});var m=l(6701),_=l(2560),a=l(8386),p=(()=>{return(u=p||(p={})).STARTED="booking_started",u.STEP_BACK="booking_step_back",u.STEP_VIEW="booking_step_view",u.STEP_SELECTED="booking_step_selected_item",u.CTA_CLICK="booking_step_cta_click",u.PATIENT_CREATED="booking_step_patient_created",u.PATIENT_CREATE_FAILED="booking_step_patient_create_failed",u.PATIENT_EDITED="booking_step_patient_edited",u.PATIENT_EDIT_FAILED="booking_step_patient_edit_failed",u.PATIENT_PRIMARY_EDITED="booking_step_patient_primary_edited",u.PATIENT_PRIMARY_EDIT_FAILED="booking_step_patient_primary_edit_failed",u.FORM_INFO_SUBMITTED="booking_step_form_info_submitted",u.FORM_INFO_SUBMIT_FAILED="booking_step_form_info_submit_failed",u.CREATE_ORDER_SUCCEEDED="booking_create_order_succeeded",u.CREATE_ORDER_FAILED="booking_create_order_failed",u.REDIRECT_GATEWAY="booking_redirect_gateway",u.BOOKING_RESULT_SUCCEEDED="booking_result_succeeded",u.BOOKING_RESULT_FAILED="booking_result_failed",u.BOOKING_RESULT_PAYMENT_SUCCEEDED="booking_result_payment_succeeded",u.RESULT_BOOKING_PAYMENT_FAILED="booking_result_payment_failed",u.ABANDONED="booking_abandoned",p;var u})();let r=(()=>{const g=class{constructor(c){this.userService=c,this.previousStep=null,this.serviceId=null,this.orderId=null,this.userType="anonymous",this.userId="",this.bookingSessionId=this.generateBookingSessionId(),this.userType=this.userService.getCurrentUserId()?"logged_in":"anonymous",this.userId=this.userService.getCurrentUserId()??""}startBooking(c){this.clearTrackingContext();const{serviceId:t}=c;m.m.isNullOrEmpty(t)||(this.serviceId=t,this.userId=this.userService.getCurrentUserId()??"",this.userType=m.m.isNullOrEmpty(this.userId)?"anonymous":"logged_in",this.previousStep=null,this.orderId=null,this.pushEvent({event:p.STARTED,serviceId:t,payload:c,userType:this.userType,userId:this.userService.getCurrentUserId(),bookingSessionId:this.bookingSessionId}))}trackStepView(c,t,h,y){null!==this.previousStep&&c<this.previousStep&&this.trackEvent(p.STEP_BACK,{userType:this.userType,userId:this.userId,step:c,stepName:t,previousStep:this.previousStep,previousStepName:y?.previousStepName||void 0}),this.trackEvent(p.STEP_VIEW,{userType:this.userType,userId:this.userId,step:c,stepName:t,...y}),this.previousStep=c}trackStepSubmit(c,t,h,y={}){this.trackEvent(p.STEP_SELECTED,{userType:this.userType,userId:this.userId,step:c,stepName:t,stepCode:h,...y})}restoreBookingContext(c){const t=sessionStorage.getItem(`${c}_booking_session_id`),h=JSON.parse(t||"{}")?.bookingSessionId;this.bookingSessionId=h,this.serviceId=JSON.parse(t||"{}")?.serviceId}clearTrackingContext(){this.bookingSessionId=this.generateBookingSessionId(),this.orderId=null,this.serviceId=null}trackEvent(c,t){this.pushEvent({event:c,...t,serviceId:this.serviceId,bookingSessionId:this.bookingSessionId,bookingId:this.orderId||void 0,userType:this.userType,userId:this.userId})}trackCTA(c,t,h,y){this.trackEvent(p.CTA_CLICK,{userType:this.userType,userId:this.userId,ctaLabel:c,step:t,
1stepName:h,value:y})}pushEvent(c){const t={...c,timeTracking:Math.floor(Date.now()/1e3)},h=Object.fromEntries(Object.entries(t).filter(([y,v])=>void 0!==v));window.dataLayer||(window.dataLayer=[]),window.dataLayer.push(h)}generateBookingSessionId(){return"ssn_"+Math.random().toString(36).substring(2,10)+Date.now()}};let u=g;return g.\u0275fac=function(t){return new(t||g)(_.LFG(a.K))},g.\u0275prov=_.Yz7({token:g,factory:g.\u0275fac}),u})()},3412:(b,x,l)=>{l.d(x,{H:()=>f});var m=l(1670),_=l(6317),a=l(4166),r=l(2340),u=l(8203),g=l(2560);let f=(()=>{const t=class{constructor(){this.host=r.N.urlSocket,this.socket=null,this.socketStatusSyncHis=new _.X(null),this.socketSyncHisMessage=new _.X(null)}connect(y){var v=this;return(0,m.Z)(function*(){if(y)try{const C=v.getToken();v.socket=new a(`${v.host}/api/v4/websocket/channels?token=${C}`),v.socket.onopen=()=>{v.socket?.send(JSON.stringify({object:"ORDER",id:y}))},v.socket.onerror=H=>{console.error("%c[Socket SyncHIS]:","color: #EF4444; font-weight: bold",H)},v.socket.onmessage=H=>{const T=JSON.parse(H.data),D=T?.result?.status;v.socketStatusSyncHis.next(D),v.socketSyncHisMessage.next(T?.result?.message)}}catch(C){console.error("Socket connection error:",C)}})()}disconnect(){this.socket&&(this.socket.close(),this.socket=null),this.socketStatusSyncHis.next(null)}getStatus(){return this.socketStatusSyncHis.asObservable()}getMessage(){return this.socketSyncHisMessage.asObservable()}simulateSocketResponse(y,v){this.socketStatusSyncHis.next(y),v&&this.socketSyncHisMessage.next(v)}getToken(){const y=localStorage.getItem(u.s.ls.auth);return y?JSON.parse(y).access_token:null}};let c=t;return t.\u0275fac=function(v){return new(v||t)},t.\u0275prov=g.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),c})()},1247:(b,x,l)=>{l.d(x,{D:()=>Bt});var m=l(1670),_=l(2313),a=l(9337),p=l(8407),r=l(1970),u=l(4579),g=l(6210),f=l(2392),c=l(3430),t=l(2560),h=l(9348),y=l(9130),v=l(3412),C=l(9944),H=l(9706),T=l(4666),D=l(8343),Z=l(5524),S=l(8314);function k(i,o){1&i&&(t.TgZ(0,"div",3),t.O4$(),t.TgZ(1,"svg",4),t._UZ(2,"circle",5)(3,"circle",6)(4,"path",7),t.qZA(),t.kcU(),t.TgZ(5,"h2",8),t._uU(6,"\u0110\u1eb7t l\u1ecbch th\xe0nh c\xf4ng!"),t.qZA()())}function N(i,o){1&i&&(t.O4$(),t.TgZ(0,"svg",19),t._UZ(1,"circle",20)(2,"circle",21),t.qZA())}function L(i,o){1&i&&(t.O4$(),t.TgZ(0,"svg",22)(1,"g",23),t._UZ(2,"path",24),t.qZA()())}function w(i,o){1&i&&(t.O4$(),t.TgZ(0,"svg",25)(1,"title"),t._uU(2,"ionicons-v5-a"),t.qZA(),t._UZ(3,"polygon",26)(4,"path",27),t.qZA())}function U(i,o){1&i&&(t.TgZ(0,"h3",28),t._uU(1," \u0110ang x\u1eed l\xfd "),t.qZA())}function O(i,o){1&i&&(t.TgZ(0,"h3",28),t._uU(1," \u0110\u1eb7t kh\xe1m kh\xf4ng th\xe0nh c\xf4ng "),t.qZA())}function B(i,o){if(1&i&&(t.TgZ(0,"p",28),t._uU(1),t.ALo(2,"currencyPipe"),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.hij(" - ",t.lcZ(2,1,null==e.dataHistory?null:e.dataHistory.fee)," \u0111 ")}}function M(i,o){1&i&&(t.TgZ(0,"span"),t._uU(1,". \u0110\u1ec3 \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3 vui l\xf2ng li\xean h\u1ec7 t\u1ed5ng \u0111\xe0i "),t.TgZ(2,"a",29),t._uU(3,"1900-2805"),t.qZA()())}function P(i,o){1&i&&(t.TgZ(0,"div",30),t._UZ(1,"div",31),t.TgZ(2,"div",32)(3,"h3",33),t._uU(4,"K\u1ebft n\u1ed1i \u0111ang g\u1eb7p gi\xe1n \u0111o\u1ea1n."),t.qZA(),t.TgZ(5,"p"),t._uU(6,' YouMed s\u1ebd ki\u1ec3m tra v\xe0 kh\u1eafc ph\u1ee5c ngay. Mong b\u1ea1n th\xf4ng c\u1ea3m v\xe0 th\u1eed l\u1ea1i sau \xedt ph\xfat. B\u1ea1n c\u0169ng c\xf3 th\u1ec3 xem l\u1ea1i phi\u1ebfu kh\xe1m n\xe0y trong m\u1ee5c "L\u1ecbch kh\xe1m" tr\xean \u1ee9ng d\u1ee5ng. G\u1ecdi '),t.TgZ(7,"a",34),t._uU(8,"1900-2805"),t.qZA(),t._uU(9," n\u1ebfu b\u1ea1n c\u1ea7n s\u1ef1 h\u1ed7 tr\u1ee3. "),t.qZA()()())}function F(i,o){if(1&i&&(t.TgZ(0,"div",3)(1,"div",9),t._UZ(2,"div",10),t.YNc(3,N,3,0,"svg",11),t.YNc(4,L,3,0,"svg",12),t.YNc(5,w,5,0,"svg",13),t.qZA(),t.TgZ(6,"div",14),t.YNc(7,U,2,0,"h3",15),t.YNc(8,O,2,0,"h3",15),t.YNc(9,B,3,3,"p",15),t.TgZ(10,"p",16),t._uU(11),t.YNc(12,M,4,0,"span",17),t.qZA(),t.TgZ(13,"p"),t._uU(14),t.ALo(15,"date"),t.qZA()(),t.YNc(16,P,10,0,"div",18),t.qZA()),2&i){const e=t.oxw();
1t.xp6(3),t.Q6J("ngIf",e.statusHis!==e.syncHisStatusEnum.FAILED),t.xp6(1),t.Q6J("ngIf",e.statusHis!==e.syncHisStatusEnum.FAILED),t.xp6(1),t.Q6J("ngIf",e.statusHis===e.syncHisStatusEnum.FAILED),t.xp6(2),t.Q6J("ngIf",e.statusHis!==e.syncHisStatusEnum.FAILED),t.xp6(1),t.Q6J("ngIf",e.statusHis===e.syncHisStatusEnum.FAILED),t.xp6(1),t.Q6J("ngIf",e.statusHis===e.syncHisStatusEnum.FAILED&&(null==e.dataHistory?null:e.dataHistory.fee)>0&&"err"!==e.status),t.xp6(2),t.hij(" ",e.message?e.message:"Vui l\xf2ng ch\u1edd trong gi\xe2y l\xe1t..."," "),t.xp6(1),t.Q6J("ngIf",e.statusHis===e.syncHisStatusEnum.FAILED),t.xp6(2),t.Oqu(t.xi3(15,10,null==e.dataHistory?null:e.dataHistory.createdAt,"dd/MM/yyyy HH:mm")),t.xp6(2),t.Q6J("ngIf",e.isCountdownFinished&&e.statusHis!==e.syncHisStatusEnum.SUCCEEDED&&e.statusHis!==e.syncHisStatusEnum.FAILED&&e.dataHistory.completionStatus===e.orderCompleteEnum.PENDING)}}function R(i,o){if(1&i&&(t.TgZ(0,"div",35),t._UZ(1,"img",36)(2,"p",37),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.Q6J("innerHTML",null==e.dataHistory.room?null:e.dataHistory.room.instruction,t.oJD)}}let Y=(()=>{const o=class{constructor(){this.syncHisStatusEnum=g.g,this.orderCompleteEnum=u.G,this.isCountdownFinished=!1,this.countdown=30,this.countdownSubscription=null}ngOnInit(){this.startCountdown()}startCountdown(){this.countdownSubscription=(0,Z.H)(0,1e3).subscribe(()=>{this.countdown>0?this.countdown--:(this.isCountdownFinished=!0,this.stopCountdown())})}stopCountdown(){this.countdownSubscription&&(this.countdownSubscription.unsubscribe(),this.countdownSubscription=null)}ngOnDestroy(){this.stopCountdown()}};let i=o;return o.\u0275fac=function(d){return new(d||o)},o.\u0275cmp=t.Xpm({type:o,selectors:[["apm-header-status"]],inputs:{status:"status",statusHis:"statusHis",dataHistory:"dataHistory",message:"message"},decls:4,vars:3,consts:[["class","flex flex-col justify-center items-center text-center",4,"ngIf","ngIfElse"],["socketLoading",""],["class","flex flex-row p-3 gap-2 bg-[#FFF7ED] rounded-md",4,"ngIf"],[1,"flex","flex-col","justify-center","items-center","text-center"],["width","64","height","64","viewBox","0 0 101 100","fill","none","xmlns","http://www.w3.org/2000/svg"],["opacity","0.2","cx","50.5","cy","50","r","50","fill","#86EFAC"],["cx","50.5","cy","50","r","33.5","fill","#86EFAC","stroke","#22C55E"],["d","M46.871 61.3529L46.8523 61.3342L46.8317 61.3175L35.533 52.1857C35.0814 51.7307 35 51.5171 35 51.3947C35 51.2707 35.0836 51.053 35.5513 50.5853L38.6526 47.484C38.9534 47.1832 39.1711 47.0042 39.3365 46.905C39.4947 46.8101 39.5688 46.8098 39.6006 46.8133C39.6418 46.8179 39.7187 46.8417 39.8659 46.957C40.0162 47.0748 40.1865 47.244 40.4265 47.484L40.4485 47.506L40.4731 47.5251L46.0343 51.8505C46.5518 52.3371 47.4947 52.3246 47.9897 51.6366L60.2086 39.1084C60.4347 38.8824 60.6107 38.7262 60.7589 38.6255C60.9058 38.5257 60.9926 38.5032 61.0435 38.5003C61.1303 38.4955 61.3356 38.5416 61.7992 39.0824L61.8117 39.097L61.8252 39.1106L64.9014 42.1868L64.9194 42.2108C65.1387 42.503 65.2913 42.7064 65.3949 42.8778C65.5026 43.0559 65.5166 43.1362 65.5166 43.1764C65.5166 43.2094 65.5074 43.284 65.3933 43.4475C65.2755 43.6165 65.0804 43.8318 64.7714 44.1408L47.5594 61.3529C47.4859 61.4263 47.3641 61.4887 47.235 61.4986C47.1211 61.5074 46.9952 61.4771 46.871 61.3529Z","fill","white","stroke","#22C55E"],[1,"mt-2","text-xl","font-semibold"],[1,"relative","w-16","h-16","flex","items-center","justify-center"],[1,"absolute","inset-0","rounded-full","bg-slate-200"],["class","absolute","width","64px","height","64px","viewBox","0 0 100 100",4,"ngIf"],["class","absolute w-16 h-16","fill","#ff5722","viewBox","0 0 512 512","xmlns","http://www.w3.org/2000/svg","stroke","#ff5722",4,"ngIf"],["fill","#ff5722","class","absolute w-16 h-16","viewBox","0 0 512 512","xmlns","http://www.w3.org/2000/svg",4,"ngIf"],[1,"text-center"],["class","text-base font-semibold",4,"ngIf"],[1,"text-sm"],[4,"ngIf"],["class","bg-orange-50 text-start text-sm",4,"ngIf"],["width","64px","height","64px","viewBox","0 0 100 100",1,"absolute"],["cx","50","cy","50","r","45","fill","none","stroke-width","8",1,"circle1","stroke-gray-400"],["cx","50","cy","50","r","45","fill","none","stroke-width","8","transform","rotate(-45,50,50)",1,"circle2","stroke-gray-600"],["fill","#ff5722","viewBox","0 0 512 512","xmlns","http://www.w3.org/2000/svg","stroke","#ff5722",1,"absolute","w-16","h-16"],["id","SVGRepo_iconCarrier"],["d","M256,48C141.13,48,48,141.13,48,256s93.13,208,208,208,208-93.13,208-208S370.87,48,256,48Zm0,320a112.19,112.19,0,0,1-111.27-98.23l-8.86,8.86L113.24,256l46-46,47.55,45.48-22.12,23.12-7.2-6.88a80.26,80.26,0,0,0,138.48,37.5l23.77,21.41A112.82,112.82,0,0,1,256,368Zm96.79-66L305.24,256.5l22.12-23.12,6.86,6.55A80.2,80.2,0,0,0,196,202.64l-23.82-21.37A112.18,112.18,0,0,1,367,242.49l9.11-9.12L398.76,256Z"],["fill","#ff5722","viewBox","0 0 512 512","xmlns","http://www.w3.org/2000/svg",1,"absolute","w-16","h-16"],["points","240 3
104 272 304 278 144 234 144 240 304",2,"fill","none"],["d","M256,48C141.31,48,48,141.31,48,256s93.31,208,208,208,208-93.31,208-208S370.69,48,256,48Zm20,319.91H236v-40h40ZM272,304H240l-6-160h44Z"],[1,"text-base","font-semibold"],["href","tel:19002805",1,"text-blue-500","hover:underline","font-semibold"],[1,"bg-orange-50","text-start","text-sm"],[1,"bg-orange-600","h-[4px]"],[1,"px-2","pt-2"],[1,"font-semibold"],["href","tel:19002805",1,"text-blue-500","hover:underline"],[1,"flex","flex-row","p-3","gap-2","bg-[#FFF7ED]","rounded-md"],["alt","warning","src","./assets/img/booking/svg/boldWarning2.svg",1,"w-4","h-4","object-cover"],[1,"font-normal","text-sm","leading-17","text-gray-800","m-0",3,"innerHTML"]],template:function(d,s){if(1&d&&(t.YNc(0,k,7,0,"div",0),t.YNc(1,F,17,13,"ng-template",null,1,t.W1O),t.YNc(3,R,3,1,"div",2)),2&d){const E=t.MAs(2);t.Q6J("ngIf",s.statusHis===s.syncHisStatusEnum.SUCCEEDED||s.dataHistory.completionStatus===s.orderCompleteEnum.SUCCEEDED)("ngIfElse",E),t.xp6(3),t.Q6J("ngIf",s.dataHistory.roomDisplayEnabled&&(null==s.dataHistory.room?null:s.dataHistory.room.instruction))}},dependencies:[T.O5,T.uU,S.H],styles:[".circle1[_ngcontent-%COMP%]{fill:none;stroke:#ffccbc;stroke-width:5px}.circle2[_ngcontent-%COMP%]{fill:none;stroke:#ff5722;stroke-width:5px;stroke-dasharray:283;stroke-dashoffset:566;animation:_ngcontent-%COMP%_rotate 2s infinite cubic-bezier(.8,.1,.2,.9)}@keyframes _ngcontent-%COMP%_rotate{to{stroke-dashoffset:0}}"]}),i})();var J=l(5152);function Q(i,o){if(1&i&&(t.TgZ(0,"div",2)(1,"dt",3),t._uU(2," STT "),t.qZA(),t.TgZ(3,"dd",4),t._uU(4),t.qZA()()),2&i){const e=t.oxw();
1t.xp6(4),t.hij(" ",e.dataHistory.number," ")}}function j(i,o){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.Oqu("MORNING"===e.dataHistory.datePart?"(Bu\u1ed5i s\xe1ng)":"(Bu\u1ed5i chi\u1ec1u)")}}function q(i,o){if(1&i&&(t.TgZ(0,"div",2)(1,"dt",3),t._uU(2),t.qZA(),t.TgZ(3,"dd",6),t._uU(4),t.YNc(5,j,2,1,"span",7),t.qZA()()),2&i){const e=t.oxw();let n;t.xp6(2),t.hij(" ",null!==(n=e.dataHistory.timeSlotLabel)&&void 0!==n?n:"Gi\u1edd kh\xe1m"," "),t.xp6(2),t.hij(" ",e.dataHistory.timeSlot," "),t.xp6(1),t.Q6J("ngIf",e.dataHistory.datePart)}}function G(i,o){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.Oqu("MORNING"===e.dataHistory.datePart?"(Bu\u1ed5i s\xe1ng)":"(Bu\u1ed5i chi\u1ec1u)")}}function $(i,o){if(1&i&&(t.TgZ(0,"div",2)(1,"dt",3),t._uU(2),t.qZA(),t.TgZ(3,"dd",6),t._uU(4),t.YNc(5,G,2,1,"span",7),t.qZA()()),2&i){const e=t.oxw();let n;t.xp6(2),t.hij(" ",null!==(n=e.dataHistory.timeSlotLabel)&&void 0!==n?n:"Gi\u1edd d\u1ef1 ki\u1ebfn"," "),t.xp6(2),t.hij(" ",e.dataHistory.estTime," "),t.xp6(1),t.Q6J("ngIf",e.dataHistory.datePart)}}function K(i,o){if(1&i&&(t.TgZ(0,"div",2)(1,"dt",3),t._uU(2),t.qZA(),t.TgZ(3,"dd",4),t._uU(4),t.qZA()()),2&i){const e=t.oxw();let n;t.xp6(2),t.hij(" ",null!==(n=e.dataHistory.providerNameLabel)&&void 0!==n?n:"B\xe1c s\u0129"," "),t.xp6(2),t.AsE(" ",null==e.dataHistory.provider?null:e.dataHistory.provider.firstName," ",null==e.dataHistory.provider?null:e.dataHistory.provider.lastName," ")}}function W(i,o){if(1&i&&(t.TgZ(0,"div",2)(1,"dt",3),t._uU(2),t.qZA(),t.TgZ(3,"dd",4),t._uU(4),t.qZA()()),2&i){const e=t.oxw();let n;t.xp6(2),t.hij(" ",null!==(n=e.dataHistory.specialityNameLabel)&&void 0!==n?n:"Chuy\xean khoa"," "),t.xp6(2),t.hij(" ",e.dataHistory.specialityName||(null==e.dataHistory||null==e.dataHistory.speciality?null:e.dataHistory.speciality.name)," ")}}function V(i,o){if(1&i&&(t.TgZ(0,"div",2)(1,"dt",3),t._uU(2),t.qZA(),t.TgZ(3,"dd",4),t._uU(4),t.qZA()()),2&i){const e=t.oxw();let n;t.xp6(2),t.hij(" ",null!==(n=e.dataHistory.roomNameLabel)&&void 0!==n?n:"Ph\xf2ng kh\xe1m"," "),t.xp6(2),t.hij(" ",null==e.dataHistory.room?null:e.dataHistory.room.name," ")}}function z(i,o){if(1&i&&(t.TgZ(0,"div",2)(1,"dt",3),t._uU(2),t.qZA(),t.TgZ(3,"dd",4),t._uU(4),t.qZA()()),2&i){const e=t.oxw();let n;t.xp6(2),t.hij(" ",null!==(n=e.dataHistory.examTypeNameLabel)&&void 0!==n?n:"Lo\u1ea1i h\xecnh kh\xe1m"," "),t.xp6(2),t.hij(" ",null==e.dataHistory.examType?null:e.dataHistory.examType.name," ")}}function X(i,o){if(1&i&&(t.TgZ(0,"div",2)(1,"dt",3),t._uU(2),t.qZA(),t.TgZ(3,"dd",4),t._uU(4),t.qZA()()),2&i){const e=t.oxw();let n;t.xp6(2),t.hij(" ",null!==(n=e.dataHistory.patientTypeNameLabel)&&void 0!==n?n:"Lo\u1ea1i b\u1ec7nh nh\xe2n"," "),t.xp6(2),t.hij(" ",null==e.dataHistory.patientType?null:e.dataHistory.patientType.name," ")}}function tt(i,o){if(1&i&&(t.TgZ(0,"div",2)(1,"dt",3),t._uU(2),t.qZA(),t.TgZ(3,"dd",4),t._uU(4),t.qZA()()),2&i){const e=t.oxw();let n;t.xp6(2),t.hij(" ",null!==(n=e.dataHistory.areaNameLabel)&&void 0!==n?n:"Lo\u1ea1i b\u1ec7nh nh\xe2n"," "),t.xp6(2),t.hij(" ",null==e.dataHistory.area?null:e.dataHistory.area.name," ")}}function et(i,o){if(1&i&&(t.TgZ(0,"div",2)(1,"dt",3),t._uU(2," Ph\xed kh\xe1m "),t.qZA(),t.TgZ(3,"dd",4),t._uU(4),t.ALo(5,"currencyPipe"),t.qZA()()),2&i){const e=t.oxw();
1t.xp6(4),t.hij(" ",t.lcZ(5,1,e.dataHistory.fee),"\u0111 ")}}let it=(()=>{const o=class{constructor(n){this.nzImageService=n,this.images=[],this.orderCompleteEnum=u.G}ngOnInit(){this.dataHistory&&this.dataHistory.service&&this.dataHistory?.prescription&&this.dataHistory?.prescription?.forEach(n=>{this.images.push({src:n,alt:"H\xecnh \u1ea3nh \u0111\xednh k\xe8m"})})}preview(n){this.nzImageService.preview([{src:n,alt:"H\xecnh \u1ea3nh \u0111\xednh k\xe8m"}],{nzZoom:1.5,nzRotate:0})}onClick(){this.nzImageService.preview(this.images,{nzZoom:1.5,nzRotate:0})}};let i=o;return o.\u0275fac=function(d){return new(d||o)(t.Y36(J.x8))},o.\u0275cmp=t.Xpm({type:o,selectors:[["apm-info"]],inputs:{dataHistory:"dataHistory"},decls:24,vars:15,consts:[[1,"px-4","bg-white","rounded-md","divide-y","divide-gray-100"],[1,"text-sm","md:text-base","font-semibold","py-4"],[1,"p-2","sm:grid","sm:grid-cols-3","sm:gap-4","sm:px-0"],[1,"text-sm","md:text-base","font-medium","leading-6","text-gray-900"],[1,"mt-1","text-sm","md:text-base","text-gray-700","sm:col-span-2","sm:mt-0"],["class","p-2 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0",4,"ngIf"],[1,"mt-1","text-sm","md:text-base","text-green-500","sm:col-span-2","sm:mt-0"],[4,"ngIf"]],template:function(d,s){1&d&&(t.TgZ(0,"dl",0)(1,"p",1),t._uU(2,"Th\xf4ng tin \u0111\u1eb7t l\u1ecbch"),t.qZA(),t.TgZ(3,"div",2)(4,"dt",3),t._uU(5," M\xe3 phi\u1ebfu kh\xe1m "),t.qZA(),t.TgZ(6,"dd",4),t._uU(7),t.qZA()(),t.YNc(8,Q,5,1,"div",5),t.TgZ(9,"div",2)(10,"dt",3),t._uU(11," Ng\xe0y "),t.qZA(),t.TgZ(12,"dd",4),t._uU(13),t.ALo(14,"date"),t.qZA()(),t.YNc(15,q,6,3,"div",5),t.YNc(16,$,6,3,"div",5),t.YNc(17,K,5,3,"div",5),t.YNc(18,W,5,2,"div",5),t.YNc(19,V,5,2,"div",5),t.YNc(20,z,5,2,"div",5),t.YNc(21,X,5,2,"div",5),t.YNc(22,tt,5,2,"div",5),t.YNc(23,et,6,3,"div",5),t.qZA()),2&d&&(t.xp6(7),t.hij(" ",s.dataHistory.code," "),t.xp6(1),t.Q6J("ngIf",s.dataHistory.numberEnabled&&s.dataHistory.number&&(null==s.dataHistory?null:s.dataHistory.completionStatus)===s.orderCompleteEnum.SUCCEEDED),t.xp6(5),t.hij(" ",t.xi3(14,12,s.dataHistory.date,"dd/MM/yyyy")," "),t.xp6(2),t.Q6J("ngIf",s.dataHistory.timeSlotDisplayEnabled&&s.dataHistory.timeSlot),t.xp6(1),t.Q6J("ngIf",s.dataHistory.estTimeDisplayEnabled&&s.dataHistory.estTime&&!s.dataHistory.timeSlotDisplayEnabled),t.xp6(1),t.Q6J("ngIf",s.dataHistory.providerDisplayEnabled&&(null==s.dataHistory?null:s.dataHistory.provider)),t.xp6(1),t.Q6J("ngIf",s.dataHistory.specialityDisplayEnabled&&(s.dataHistory.specialityName||(null==s.dataHistory||null==s.dataHistory.speciality?null:s.dataHistory.speciality.name))),t.xp6(1),t.Q6J("ngIf",s.dataHistory.roomDisplayEnabled&&s.dataHistory.room),t.xp6(1),t.Q6J("ngIf",s.dataHistory.examTypeDisplayEnabled&&s.dataHistory.examType),t.xp6(1),t.Q6J("ngIf",s.dataHistory.patientTypeDisplayEnabled&&s.dataHistory.patientType),t.xp6(1),t.Q6J("ngIf",s.dataHistory.areaDisplayEnabled&&s.dataHistory.area),t.xp6(1),t.Q6J("ngIf",s.dataHistory.feeEnabled&&s.dataHistory.fee))},dependencies:[T.O5,T.uU,S.H]}),i})();function nt(i,o){if(1&i&&(t.TgZ(0,"span",9),t._uU(1),t.qZA()),2&i){const e=o.$implicit;t.xp6(1),t.Oqu(e.text)}}function st(i,o){if(1&i&&(t.ynx(0),t.YNc(1,nt,2,1,"span",8),t.BQk()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",e.value)}}function at(i,o){if(1&i&&(t.ynx(0),t._uU(1),t.BQk()),2&i){const e=t.oxw().$implicit;let n;
1t.xp6(1),t.hij(" ",null!==(n=e.value.text)&&void 0!==n?n:e.value.value," ")}}function ot(i,o){if(1&i&&(t.ynx(0),t._uU(1),t.BQk()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.value," ")}}function rt(i,o){if(1&i&&(t.ynx(0),t._uU(1),t.ALo(2,"date"),t.BQk()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.value.value,"dd/MM/yyyy")," ")}}function lt(i,o){if(1&i&&(t.TgZ(0,"div",4)(1,"span",5),t._uU(2),t.qZA(),t.TgZ(3,"span",6),t.YNc(4,st,2,1,"ng-container",7),t.YNc(5,at,2,1,"ng-container",7),t.YNc(6,ot,2,1,"ng-container",7),t.YNc(7,rt,3,4,"ng-container",7),t.qZA()()),2&i){const e=o.$implicit,n=t.oxw(2);t.xp6(2),t.Oqu(e.question),t.xp6(2),t.Q6J("ngIf",n.isArray(e.value)),t.xp6(1),t.Q6J("ngIf",n.isObject(e.value)),t.xp6(1),t.Q6J("ngIf",n.isStringOrNumber(e.value)),t.xp6(1),t.Q6J("ngIf",n.isDate(e.value))}}function dt(i,o){if(1&i&&(t.TgZ(0,"dl",1)(1,"p",2),t._uU(2,"Th\xf4ng tin b\u1ed5 sung"),t.qZA(),t.YNc(3,lt,8,5,"div",3),t.qZA()),2&i){const e=t.oxw();t.xp6(3),t.Q6J("ngForOf",null==e.dataHistory||null==e.dataHistory.additionalInformation?null:e.dataHistory.additionalInformation.options)}}let ut=(()=>{const o=class{isArray(n){return Array.isArray(n)}isObject(n){return null!==n&&"object"==typeof n&&!Array.isArray(n)}isStringOrNumber(n){return"string"==typeof n||"number"==typeof n}isDate(n){return n instanceof Date}};let i=o;return o.\u0275fac=function(d){return new(d||o)},o.\u0275cmp=t.Xpm({type:o,selectors:[["apm-additional-info"]],inputs:{dataHistory:"dataHistory"},decls:1,vars:1,consts:[["class","px-4 bg-white rounded-md divide-y divide-gray-100",4,"ngIf"],[1,"px-4","bg-white","rounded-md","divide-y","divide-gray-100"],[1,"text-sm","md:text-base","font-semibold","py-4"],["class","p-2 flex flex-col",4,"ngFor","ngForOf"],[1,"p-2","flex","flex-col"],[1,"text-sm","md:text-base","font-medium"],[1,"flex","flex-col","text-sm","md:text-base"],[4,"ngIf"],["class","text-sm md:text-base",4,"ngFor","ngForOf"],[1,"text-sm","md:text-base"]],template:function(d,s){1&d&&t.YNc(0,dt,4,1,"dl",0),2&d&&t.Q6J("ngIf",null==s.dataHistory?null:s.dataHistory.additionalInformation)},dependencies:[T.sg,T.O5,T.uU]}),i})();var ct=l(9180),pt=l(5495);function mt(i,o){if(1&i&&(t.TgZ(0,"div",11)(1,"dt",12),t._uU(2,"STT"),t.qZA(),t.TgZ(3,"dd",13),t._uU(4),t.qZA()()),2&i){const e=t.oxw(2);t.xp6(4),t.hij(" ",e.dataHistory.number," ")}}const gt=function(i){return{"mt-1.5 mb-1":i}};function _t(i,o){if(1&i&&(t.TgZ(0,"span",18),t._uU(1),t.qZA()),2&i){const e=t.oxw(4);t.Q6J("ngClass",t.VKq(2,gt,null==e.dataHistory||null==e.dataHistory.barcode||null==e.dataHistory.barcode.code?null:e.dataHistory.barcode.code.trim())),t.xp6(1),t.hij(" ",null==e.dataHistory||null==e.dataHistory.barcode?null:e.dataHistory.barcode.code," ")}}function ht(i,o){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"ngx-barcode6",16),t.YNc(2,_t,2,4,"span",17),t.qZA()),2&i){const e=t.oxw(3);t.xp6(1),t.Q6J("bc-width",2)("bc-height",e.generateHeightBarcode(null==e.dataHistory||null==e.dataHistory.barcode?null:e.dataHistory.barcode.code))("bc-value",null==e.dataHistory||null==e.dataHistory.barcode?null:e.dataHistory.barcode.code)("bc-display-value",!1),t.xp6(1),t.Q6J("ngIf",null==e.dataHistory||null==e.dataHistory.barcode||null==e.dataHistory.barcode.code?null:e.dataHistory.barcode.code.trim())}}function ft(i,o){if(1&i&&t._UZ(0,"qrcode",19),2&i){const e=t.oxw(3);t.s9C("qrdata",e.dataHistory.code),t.Q6J("width",80)("errorCorrectionLevel","M")}}function yt(i,o){if(1&i&&(t.TgZ(0,"div",14),t.YNc(1,ht,3,5,"div",2),t.YNc(2,ft,1,3,"ng-template",null,15,t.W1O),t.qZA()),2&i){const e=t.MAs(3),n=t.oxw(2);t.xp6(1),t.Q6J("ngIf","Linear"===(null==n.dataHistory||null==n.dataHistory.barcode?null:n.dataHistory.barcode.type))("ngIfElse",e)}}function Et(i,o){if(1&i&&(t.ynx(0),t.YNc(1,mt,5,1,"div",9),t.YNc(2,yt,4,2,"div",10),t.GkF(3),t.BQk()),2&i){const e=t.oxw();
1t.xp6(1),t.Q6J("ngIf",e.dataHistory.numberEnabled&&e.dataHistory.number),t.xp6(1),t.Q6J("ngIf",null==e.dataHistory?null:e.dataHistory.code)}}function xt(i,o){1&i&&(t.TgZ(0,"div",20)(1,"div",11),t._UZ(2,"div",21)(3,"div",22),t.qZA(),t.TgZ(4,"div",23),t._UZ(5,"div",24),t.qZA()())}function vt(i,o){if(1&i&&(t.TgZ(0,"div",25),t._UZ(1,"img",26),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("src",(null==e.data?null:e.data.logo)||"",t.LSH)}}function At(i,o){1&i&&t._UZ(0,"div",27)}let Tt=(()=>{const o=class{constructor(){this.isWaitingSocket=!0,this.syncHisStatusEnum=g.g,this.orderCompleteEnum=u.G,this.statusAppointmentEnum=p.GN}generateHeightBarcode(n){if(!n)return 60;const d=n.length,s=(n.match(/[a-zA-Z]/g)||[]).length,E=/\d/.test(n),A=/[a-zA-Z]/.test(n);return E&&A&&s>5&&d>20?150:d>15?100:60}};let i=o;return o.\u0275fac=function(d){return new(d||o)},o.\u0275cmp=t.Xpm({type:o,selectors:[["apm-service-info"]],inputs:{statusHis:"statusHis",dataHistory:"dataHistory",data:"data",isWaitingSocket:"isWaitingSocket"},decls:15,vars:6,consts:[[1,"bg-white","rounded-md","divide-y","divide-dashed"],[1,"bg-white","rounded-md","flex","flex-row","justify-center","gap-6","items-center"],[4,"ngIf","ngIfElse"],["loadingPlaceholder",""],[1,"py-2","flex","gap-4","md:px-4","sm:px-0"],["class","cursor-pointer flex items-center flex-none",4,"ngIf","ngIfElse"],["errorBlock",""],[1,"text-base","font-semibold","leading-7","text-gray-900"],[1,"max-w-2xl","text-sm","md:text-base","font-medium","text-gray-500"],["class","flex flex-col items-center",4,"ngIf"],["class","info-qrcode flex flex-col justify-center items-center",4,"ngIf"],[1,"flex","flex-col","items-center"],[1,"text-base","font-medium","leading-6","text-gray-900"],[1,"text-4xl","text-green-500","font-semibold"],[1,"info-qrcode","flex","flex-col","justify-center","items-center"],["qrCodeBlock",""],[3,"bc-width","bc-height","bc-value","bc-display-value"],["class","text-sm block text-center",3,"ngClass",4,"ngIf"],[1,"text-sm","block","text-center",3,"ngClass"],[3,"qrdata","width","errorCorrectionLevel"],[1,"animate-pulse","flex","flex-row","justify-center","gap-6","items-center"],[1,"h-5","w-12","bg-gray-300","rounded"],[1,"h-10","w-20","bg-gray-300","rounded","mt-2"],[1,"flex","flex-col","items-center","p-2"],[1,"h-20","w-20","bg-gray-300","rounded"],[1,"cursor-pointer","flex","items-center","flex-none"],["defaultImage","assets/img/placeholder.svg","width","60","height","60","alt","Header Info",1,"pl-2","w-[60px]","h-[60px]","object-scale-down","rounded-full","lazyload",3,"src"],[1,"w-[60px]","h-[60px]","rounded-full","bg-slate-200"]],template:function(d,s){if(1&d&&(t.TgZ(0,"div",0)(1,"div")(2,"div",1),t.YNc(3,Et,4,2,"ng-container",2),t.YNc(4,xt,6,0,"ng-template",null,3,t.W1O),t.qZA()(),t.TgZ(6,"div",4),t.YNc(7,vt,2,1,"div",5),t.YNc(8,At,1,0,"ng-template",null,6,t.W1O),t.TgZ(10,"div")(11,"h3",7),t._uU(12),t.qZA(),t.TgZ(13,"p",8),t._uU(14),t.qZA()()()()),2&d){const E=t.MAs(5),A=t.MAs(9);t.xp6(3),t.Q6J("ngIf",s.statusHis===s.syncHisStatusEnum.SUCCEEDED&&!1===s.isWaitingSocket)("ngIfElse",E),t.xp6(4),t.Q6J("ngIf",null==s.data?null:s.data.logo)("ngIfElse",A),t.xp6(5),t.hij(" ",null==s.data?null:s.data.name," "),t.xp6(2),t.hij(" ",null==s.data?null:s.data.address," ")}},dependencies:[T.mk,T.O5,ct.V,pt.y],styles:["[_nghost-%COMP%]     ngx-barcode6 .barcode svg{width:100%!important;max-width:200px;max-height:60px}[_nghost-%COMP%]     ngx-barcode6 .barcode svg rect{height:100%!important}.barcode[_ngcontent-%COMP%]{display:flex!important;justify-content:center!important;align-items:center!important}"]}),i})();var bt=l(1510),It=l(1177),Ct=l(2005);function Ht(i,o){if(1&i&&(t.TgZ(0,"div",2)(1,"dt",3),t._uU(2," Ghi ch\xfa "),t.qZA(),t.TgZ(3,"dd",4),t._uU(4),t.qZA()()),2&i){const e=t.oxw();
1t.xp6(4),t.hij(" ",e.dataHistory.note," ")}}function Dt(i,o){if(1&i){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",9)(2,"img",10),t.NdJ("click",function(){const s=t.CHM(e).$implicit,E=t.oxw(2);return t.KtG(E.preview(s.src))}),t.qZA()(),t.BQk()}if(2&i){const e=o.$implicit;t.xp6(2),t.Q6J("lazyLoad",e.src)}}function St(i,o){if(1&i){const e=t.EpF();t.TgZ(0,"div",11),t.NdJ("click",function(){t.CHM(e);const d=t.oxw(2);return t.KtG(d.onClick())}),t.TgZ(1,"span"),t._uU(2),t.qZA()()}if(2&i){const e=t.oxw(2);t.xp6(2),t.hij("",(null==e.dataHistory||null==e.dataHistory.prescription?null:e.dataHistory.prescription.length)-3,"+")}}function Zt(i,o){if(1&i&&(t.TgZ(0,"div",2)(1,"dt",3),t._uU(2," T\u1ec7p \u0111\xednh k\xe8m "),t.qZA(),t.TgZ(3,"dd",4)(4,"div",6),t.YNc(5,Dt,3,1,"ng-container",7),t.YNc(6,St,3,1,"div",8),t.qZA()()()),2&i){const e=t.oxw();t.xp6(5),t.Q6J("ngForOf",e._gallery),t.xp6(1),t.Q6J("ngIf",(null==e.dataHistory?null:e.dataHistory.prescription)&&(null==e.dataHistory?null:e.dataHistory.prescription.length)>3)}}let kt=(()=>{const o=class{constructor(){this.img="",this.images=[]}get _gallery(){return this.images.slice(0,3)}};let i=o;return o.\u0275fac=function(d){return new(d||o)},o.\u0275cmp=t.Xpm({type:o,selectors:[["apm-patient-info"]],inputs:{dataHistory:"dataHistory"},decls:27,vars:10,consts:[[1,"px-4","bg-white","rounded-md","divide-y","divide-gray-100"],[1,"text-sm","md:text-base","font-semibold","py-4"],[1,"p-2","sm:grid","sm:grid-cols-3","sm:gap-4","sm:px-0"],[1,"text-sm","md:text-base","font-medium","leading-6","text-gray-900"],[1,"mt-1","text-sm","md:text-base","text-gray-700","sm:col-span-2","sm:mt-0"],["class","p-2 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0",4,"ngIf"],[1,"flex","gap-4"],[4,"ngFor","ngForOf"],["class","cursor-pointer flex items-center justify-center text-base rounded bg-slate-200 w-20 h-20",3,"click",4,"ngIf"],[1,"cursor-pointer"],["loading","lazy","alt","H\xecnh \u1ea3nh b\u1ec7nh vi\u1ec7n","defaultImage","./assets/img/placeholder.svg","alt","Patient Info",1,"rounded","w-[80px]","h-[80px]","object-cover",3,"lazyLoad","click"],[1,"cursor-pointer","flex","items-center","justify-center","text-base","rounded","bg-slate-200","w-20","h-20",3,"click"]],template:function(d,s){1&d&&(t.TgZ(0,"dl",0)(1,"p",1),t._uU(2,"Th\xf4ng tin b\u1ec7nh nh\xe2n"),t.qZA(),t.TgZ(3,"div",2)(4,"dt",3),t._uU(5," B\u1ec7nh nh\xe2n "),t.qZA(),t.TgZ(6,"dd",4),t._uU(7),t.qZA()(),t.TgZ(8,"div",2)(9,"dt",3),t._uU(10," Ng\xe0y sinh "),t.qZA(),t.TgZ(11,"dd",4),t._uU(12),t.ALo(13,"birthDayPipe"),t.qZA()(),t.TgZ(14,"div",2)(15,"dt",3),t._uU(16," Gi\u1edbi t\xednh "),t.qZA(),t.TgZ(17,"dd",4),t._uU(18),t.ALo(19,"genderVN"),t.qZA()(),t.TgZ(20,"div",2)(21,"dt",3),t._uU(22," \u0110\u1ecba ch\u1ec9 "),t.qZA(),t.TgZ(23,"dd",4),t._uU(24),t.qZA()(),t.YNc(25,Ht,5,1,"div",5),t.YNc(26,Zt,7,2,"div",5),t.qZA()),2&d&&(t.xp6(7),t.hij(" ",null==s.dataHistory.patient?null:s.dataHistory.patient.name," "),t.xp6(5),t.hij(" ",t.lcZ(13,6,(null==s.dataHistory.patient?null:s.dataHistory.patient.dayOfBirth)+"/"+(null==s.dataHistory.patient?null:s.dataHistory.patient.monthOfBirth)+"/"+(null==s.dataHistory.patient?null:s.dataHistory.patient.yearOfBirth))," "),t.xp6(6),t.hij(" ",null!=s.dataHistory.patient&&s.dataHistory.patient.gender?t.lcZ(19,8,null==s.dataHistory.patient?null:s.dataHistory.patient.gender):"---"," "),t.xp6(6),t.hij(" ",null==s.dataHistory||null==s.dataHistory.patient?null:s.dataHistory.patient.fullAddress," "),t.xp6(1),t.Q6J("ngIf",s.dataHistory.note),t.xp6(1),t.Q6J("ngIf",null==s._gallery?null:s._gallery.length))},dependencies:[T.sg,T.O5,bt.z1,It.s,Ct.h]}),i})();function Nt(i,o){if(1&i){const e=t.EpF();t.TgZ(0,"button",15),t.NdJ("click",function(){t.CHM(e);const d=t.oxw(3);return t.KtG(d.saveOrderImg())}),t._uU(1," L\u01b0u l\u1ea1i phi\u1ebfu "),t.qZA()}2&i&&t.Q6J("throttleMs",2e3)}function Lt(i,o){if(1&i){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",5)(2,"div",6),t._UZ(3,"apm-header-status",7)(4,"apm-service-info",8),t.TgZ(5,"div",9),t._UZ(6,"apm-info",10)(7,"apm-patient-info",10)(8,"apm-additional-info",10),t.qZA()(),t.TgZ(9,"div",11)(10,"div",12)(11,"a",13),t.NdJ("click",function(){t.CHM(e);const d=t.oxw(2);return t.KtG(d.goToBookingHistory())}),t._uU(12," Xem phi\u1ebfu kh\xe1m "),t.qZA(),t.YNc(13,Nt,2,1,"button",14),t.qZA()()(),t.BQk()}if(2&i){const e=t.oxw(2);t.xp6(3),t.Q6J("statusHis",e.statusHis)("dataHistory",e.dataHistory)("message",e.message)("status",e.status),t.xp6(1),t.Q6J("statusHis",e.statusHis)("dataHistory",e.dataHistory)("isWaitingSocket",e.isWaitingSocket)("data",e.data),t.xp6(2),t.Q6J("dataHistory",e.dataHistory),t.xp6(1),t.Q6J("dataHistory",e.dataHistory),t.xp6(1),t.Q6J("dataHistory",e.dataHistory),t.xp6(5),t.Q6J("ngIf",e.statusHis===e.syncHisStatusEnum.SUCCEEDED)}}function wt(i,o){if(1&i&&(t.TgZ(0,"section",3),t.YNc(1,Lt,14,12,"ng-container",4),t.qZA()),2&i){const e=t.oxw(),n=t.MAs(2);t.xp6(1),t.Q6J("ngIf",!e.isLoading)("ngIfElse",n)}}function Ut(i,o){1&i&&(t.TgZ(0,"div",16),t.O4$(),t.TgZ(1,"svg",17),t._UZ(2,"circle",18)(3,"path",19),t.qZA(),t.kcU(),t.TgZ(4,"p"),t._uU(5,"\u0110ang x\u1eed l\xfd"),t.qZA()())}function Ot(i,o){if(1&i){const e=t.EpF();t.TgZ(0,"section",3)(1,"div",20)(2,"div",21),t._UZ(3,"img",22),t.TgZ(4,"h2",23),t._uU(5,"\u0110\u1eb7t l\u1ecbch th\u1ea5t b\u1ea1i!"),t.qZA()(),t._UZ(6,"apm-service-info",24),t.TgZ(7,"div",9),t._UZ(8,"a
1pm-info",10)(9,"apm-patient-info",10)(10,"apm-additional-info",10),t.qZA(),t.TgZ(11,"a",25),t.NdJ("click",function(){t.CHM(e);const d=t.oxw();return t.KtG(d.tryBooking())}),t._uU(12," \u0110\u1eb7t kh\xe1m l\u1ea1i"),t.qZA()()()}if(2&i){const e=t.oxw();t.xp6(6),t.Q6J("statusHis",e.statusHis)("dataHistory",e.dataHistory)("data",e.data),t.xp6(2),t.Q6J("dataHistory",e.dataHistory),t.xp6(1),t.Q6J("dataHistory",e.dataHistory),t.xp6(1),t.Q6J("dataHistory",e.dataHistory),t.xp6(1),t.Q6J("routerLink",e.tryBookLink)}}let Bt=(()=>{const o=class{get tryBookLink(){return"lab"===this.serviceType?"/xet-nghiem/"+this.data?.routeBooking:"vaccine"===this.serviceType?"/tiem-chung/"+this.data?.routeBooking:this.data?.typeService===r.v.HOSPITAL?"/benh-vien/"+this.data?.routeBooking+"/dat-kham":this.data?.typeService===r.v.CLINIC?"/phong-kham/"+this.data?.routeBooking+"/dat-kham":this.data?.typeService===r.v.DOCTOR?"/bac-si/"+this.data?.routeBooking+"/dat-kham":""}constructor(n,d,s,E,A,I){this.dataV1Service=n,this.captureService=d,this.socketService=s,this.cdr=E,this.appointmentService=A,this.gtm=I,this.isLoading=!0,this.isWaitingSocket=!0,this.img="",this.statusHis=null,this.message=null,this.syncHisStatusEnum=g.g,this.statusAppointmentEnum=p.GN,this.orderCompleteEnum=u.G,this.appointments=null,this.localTrackingData=null}ngOnInit(){this.gtm.restoreBookingContext(this.dataHistory.orderId);const n=sessionStorage.getItem(`${this.dataHistory.orderId}_booking_session_id`);if(n&&(this.localTrackingData=JSON.parse(n||"{}")),"err"===this.status)return"PAYMENT"===this.localTrackingData?.paymentType&&this.gtm.trackEvent(c.w.RESULT_BOOKING_PAYMENT_FAILED,{...this.localTrackingData,amount:this.dataHistory?.fee,errorMessage:"Thanh to\xe1n t\u1eeb c\u1ed5ng thanh to\xe1n th\u1ea5t b\u1ea1i"}),void("PAY_AT_SERVICE"===this.localTrackingData?.paymentType&&this.gtm.trackEvent(c.w.BOOKING_RESULT_FAILED,{...this.localTrackingData,amount:this.dataHistory?.fee,errorMessage:"\u0110\u1eb7t l\u1ecbch online th\u1ea5t b\u1ea1i"}));this.handleConnectSocket(),this.dataHistory?.service&&this.getDataServiceById(this.dataHistory?.service?.esDocId??"",this.dataHistory?.service?.type??"")}handleConnectSocket(){var n=this;return(0,m.Z)(function*(){n.statusSub=n.socketService.getStatus().subscribe(d=>{n.statusHis=d,(n.statusHis===n.syncHisStatusEnum.SUCCEEDED||n.statusHis===n.syncHisStatusEnum.FAILED)&&n.getAppointment(),n.cdr.detectChanges()}),n.messageSub=n.socketService.getMessage().subscribe(d=>{n.message=d,n.cdr.detectChanges()}),n.socketService.connect(n.dataHistory.orderId)})()}getDataServiceById(n,d){let s=new Object;d.toLocaleLowerCase()===r.v.DOCTOR.toLowerCase()?this.dataV1Service.getDoctorById(n).subscribe(E=>{if(this.isLoading=E?.isLoading,E.data?.succeeded&&E.data?.params?.result){const A=E.data?.params?.result;s.address=A.address,s.name=A.name_non_accents,s.logo=A.avatar_remote,s.routeBooking=A.slug,s.typeService=d.toLowerCase(),this.data=s}}):this.dataV1Service.getHospitalById(n).subscribe(E=>{if(this.isLoading=E?.isLoading,E.data?.succeeded&&E.data?.params?.result){const A=E.data?.params?.result;s.address=A.address,s.name=A.name,s.logo=A.avatar_remote,s.routeBooking=A.slug,s.typeService=d.toLowerCase(),this.data=s}})}getAppointment(){this.appointmentService.getScheduleById(this.sId,this.dataHistory.orderId).pipe((0,_.x)(()=>{this.isWaitingSocket=!1})).subscribe(n=>{if(n.data?.succeeded){if(this.appointments=n?.data?.result?.appointments,this.initData(),this.localTrackingData?.bookingSessionId&&"PAYMENT"===this.localTrackingData.paymentType)this.gtm.trackEvent(c.w.BOOKING_RESULT_PAYMENT_SUCCEEDED,{bookingSessionId:this.localTrackingData?.bookingSessionId,paymentMethod:this.localTrackingData?.paymentMethod,paymentGateway:this.localTrackingData?.paymentGateway,bankCode:this.localTrackingData?.bankCode,amount:this.localTrackingData?.amount||this.dataHistory?.fee});else{if(!this.localTrackingData?.bookingSessionId)return;this.gtm.trackEvent(c.w.BOOKING_RESULT_SUCCEEDED,{bookingSessionId:this.localTrackingData?.bookingSessionId,paymentGateway:"PAY_AT_SERVICE",amount:this.dataHistory?.fee})}this.cdr.detectChanges()}})}initData(){this.dataHistory=this.appointments.map(n=>{const d=n.subclinicalResults?.filter(I=>"PDF"===I.export.exportType),s=n.subclinicalResults?.filter(I=>"IMG"===I.export.exportType),E=n.subclinicalResults?.filter(I=>"WEB"===I.export.exportType);return new f.L(n,d,s,E)})[0]}goToBookingHistory(){this.gtm.trackCTA("Booking History",void 0,"Result booking")}tryBooking(){this.gtm.trackCTA("Try Booking",void 0,"Result booking")}saveOrderImg(){this.gtm.trackCTA("Save Image Result",void 0,"Result booking");const n=document.querySelector("#orderContainer");this.captureService.getImage(n,!0).pipe((0,a.b)(d=>{this.img=d;var s=document.createElement("a");s.href=this.img,s.download=`PHIEU_KHAM_${this.dataHistory?.code}.png`,s.click()})).subscribe()}ngOnDestroy(){this.statusSub?.unsubscribe(),this.messageSub?.unsubscribe(),this.socketService.disconnect()}};let i=o;return o.\u0275fac=function(d){return new(d||o)(t.Y36(h.x),t.Y36(y.Q7),t.Y36(v.H),t.Y36(t.sBO),t.Y36(C.H),t.Y36(c.d))},o.\u0275cmp=t.Xpm({type:o,selectors:[["app-pay-at-service-complete"]],inputs:{sId:"sId",status:"status",dataHistory:"dataHistory",serviceType:"serviceType"},decls:5,vars:2,consts:[["class","md:max-w-5xl rounded-lg mx-auto bg-gray-50 my-4",4,"ngIf","ngIfElse"],["loadingTpl",""],["error",""],[1,"md:max-w-5xl","rounded-lg","mx-auto","bg-gray-50","my-4"],[4,"ngIf","ngIfElse"],[1,"flex","flex-col"],["id","orderContainer",1,"flex-1","overflow-y-auto","flex","flex-col","gap-4","mb-2","p-4","md:p-4","w-full"],[3,"statusHis","dataHistory","message","status"],[3,"statusHis","dataHistory","isWaitingSocket","data"],[1,"mt-4","border-t","border-gray-100","flex","flex-col","gap-4"],[3,"dataHistory"],[1,"bg-white","pb-2","px-4","md:p-4","sticky","bottom-1","w-full"],[1,"flex","justify-between","gap-4","items-center"],["routerLink","/lich-kham",1,"text-center","flex-1","px-6","py-2.5","text-sm","text-gray-900","font-medium","bg-white","rounded-lg","border","border-gray-200","hover:text-primary","hover:border-primary",3,"click"],["appSingleClick","","type","button","class","flex-1 px-6 py-2.5 text-sm text-white font-medium bg-primary hover:bg-blue-700 rounded-lg",3,"throttleMs","click",4,"ngIf"],["appSingleClick","","type","button",1,"flex-1","px-6","py-2.5","text-sm","text-white","font-medium","bg-primary","hover:bg-blue-700","rounded-lg",3,"throttleMs","click"],[1,"flex","flex-col","gap-2","items-center","justify-center","text-gray-400","w-full","h-screen","text-sm"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"animate-spin","-ml-1","mr-3","h-5","w-5"],["cx","12","cy","12","r","10","stroke","currentColor","stroke-width","4",1,"opacity-25"],["fill","currentColor","d","M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z",1,"opacity-75"],["id","orderContainer",1,"flex","flex-col","gap-4","mb-2","p-4","md:p-4","w-full"],[1,"flex","flex-col","justify-center","items-center","text-center"],["src","./assets/img/booking/svg/UnSuccessful.svg",1,"w-16","h-16"],[1,"mt-2","text-xl","font-semibold"],[3,"statusHis","dataHistory","data"],[1,"curs
1or-pointer","text-center","border-white","w-full","md:w-auto","font-semibold","text-sm","leading-17","bg-white","shadow","px-4","py-3","rounded",3,"routerLink","click"]],template:function(d,s){if(1&d&&(t.YNc(0,wt,2,2,"section",0),t.YNc(1,Ut,6,0,"ng-template",null,1,t.W1O),t.YNc(3,Ot,13,7,"ng-template",null,2,t.W1O)),2&d){const E=t.MAs(4);t.Q6J("ngIf","err"!==s.status)("ngIfElse",E)}},dependencies:[H.rH,T.O5,D.q,Y,it,ut,Tt,kt]}),i})()},1177:(b,x,l)=>{l.d(x,{s:()=>_});var m=l(2560);let _=(()=>{const p=class{transform(u,g=0){let f=[];f=u.split(0===g?"/":"-");const c=isNaN(+f[0])?"":+f[0],t=isNaN(+f[1])?"":+f[1],h=isNaN(+f[2])?"":+f[2];return c||t||h?c||t?c<10&&t<10?`0${c}/0${t}/${h}`:c<10?`0${c}/${t}/${h}`:t<10?`${c}/0${t}/${h}`:`${c}/${t}/${h}`:`${h}`:""}};let a=p;return p.\u0275fac=function(g){return new(g||p)},p.\u0275pipe=m.Yjl({name:"birthDayPipe",type:p,pure:!0}),a})()},8314:(b,x,l)=>{l.d(x,{H:()=>a});class m{static isNumber(r){return null!=r&&!isNaN(Number(r.toString()))}static numberWithCommas(r){if(!r&&0!==r)return"";"string"==typeof r&&(r=parseInt(r,10));const u=r.toString().split(".");return u[0]=u[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),u.join(".")}transformMoney(r,u,g,f){try{r||(g.setValue(0),u.value="");const c=f.transform(r.toString().replace(/[,]/g,"").replace("\u20ab",""),"VND").split("\u20ab")[1];g&&g.setValue(Number(c.replace(/[,]/g,""))),u.value=c}catch{u.value=g&&g.value?m.numberWithCommas(g.value):""}}static formatNumber(r){return r&&r.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1.")}}var _=l(2560);let a=(()=>{const r=class{transform(g,f){return`${g?m.numberWithCommas(g):0}`}};let p=r;return r.\u0275fac=function(f){return new(f||r)},r.\u0275pipe=_.Yjl({name:"currencyPipe",type:r,pure:!0}),p})()},2005:(b,x,l)=>{l.d(x,{h:()=>_});var m=l(2560);let _=(()=>{const p=class{transform(u){return"MALE"===u?"Nam":"FEMALE"===u?"N\u1eef":"---"}};let a=p;
1return p.\u0275fac=function(g){return new(g||p)},p.\u0275pipe=m.Yjl({name:"genderVN",type:p,pure:!0}),a})()}}]);
2//# sourceMappingURL=1247.fff08554bc4bc03f.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.