pat-shared-components 0.4.0-beta.21 → 0.4.0-beta.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -24376,49 +24376,51 @@ const Zf = /* @__PURE__ */ oa(NR, [["render", PR]]), FR = { key: 1 }, RR = { cla
24376
24376
  }), o = pt(
24377
24377
  () => t.phoneNumber ? L$(t.phoneNumber) : ""
24378
24378
  );
24379
- return (c, u) => (tt(), ot("div", N$, [
24379
+ return (c, u) => (tt(), ot("div", null, [
24380
24380
  At(Zf, null, {
24381
24381
  default: an(() => [
24382
24382
  An(vt(q(n)("psc.test_result_my_profile")), 1)
24383
24383
  ]),
24384
24384
  _: 1
24385
24385
  }),
24386
- t.loading ? (tt(), ce(Af, {
24387
- key: 0,
24388
- class: "psc-pb-16 psc-mb-[20px]"
24389
- })) : (tt(), ot("div", I$, [
24390
- P$,
24391
- H("div", F$, [
24392
- H("div", R$, vt(q(s)), 1),
24393
- H("div", $$, [
24394
- B$,
24395
- An(" " + vt(q(i)), 1)
24396
- ]),
24397
- H("div", V$, [
24398
- U$,
24399
- An(" " + vt(q(o)), 1)
24400
- ]),
24401
- H("div", W$, [
24402
- H("i", {
24403
- class: $t(["psc-text-[22px] psc-mr-1", q(r).icon])
24404
- }, null, 2),
24405
- An(" " + vt(q(r).text), 1)
24386
+ H("div", N$, [
24387
+ t.loading ? (tt(), ce(Af, {
24388
+ key: 0,
24389
+ class: "psc-pb-16 psc-mb-[20px]"
24390
+ })) : (tt(), ot("div", I$, [
24391
+ P$,
24392
+ H("div", F$, [
24393
+ H("div", R$, vt(q(s)), 1),
24394
+ H("div", $$, [
24395
+ B$,
24396
+ An(" " + vt(q(i)), 1)
24397
+ ]),
24398
+ H("div", V$, [
24399
+ U$,
24400
+ An(" " + vt(q(o)), 1)
24401
+ ]),
24402
+ H("div", W$, [
24403
+ H("i", {
24404
+ class: $t(["psc-text-[22px] psc-mr-1", q(r).icon])
24405
+ }, null, 2),
24406
+ An(" " + vt(q(r).text), 1)
24407
+ ])
24406
24408
  ])
24407
- ])
24408
- ])),
24409
- H("div", H$, [
24410
- Y$,
24411
- H("div", {
24412
- innerHTML: q(n)("psc.test_result_if_you_wish_to_edit_your_profile")
24413
- }, null, 8, j$)
24414
- ]),
24415
- t.ctaButtonUrl ? (tt(), ce(Wu, {
24416
- key: 2,
24417
- class: "psc-mt-[20px]",
24418
- url: t.ctaButtonUrl,
24419
- title: c.$t("psc.test_result_test_more_for_better_health"),
24420
- subtitle: c.$t("psc.test_result_book_general_screening_panel_now")
24421
- }, null, 8, ["url", "title", "subtitle"])) : Bt("", !0)
24409
+ ])),
24410
+ H("div", H$, [
24411
+ Y$,
24412
+ H("div", {
24413
+ innerHTML: q(n)("psc.test_result_if_you_wish_to_edit_your_profile")
24414
+ }, null, 8, j$)
24415
+ ]),
24416
+ t.ctaButtonUrl ? (tt(), ce(Wu, {
24417
+ key: 2,
24418
+ class: "psc-mt-[20px]",
24419
+ url: t.ctaButtonUrl,
24420
+ title: c.$t("psc.test_result_test_more_for_better_health"),
24421
+ subtitle: c.$t("psc.test_result_book_general_screening_panel_now")
24422
+ }, null, 8, ["url", "title", "subtitle"])) : Bt("", !0)
24423
+ ])
24422
24424
  ]));
24423
24425
  }
24424
24426
  });
package/dist/index.umd.js CHANGED
@@ -98,4 +98,4 @@ ${d}`:c)}else throw a},onCacheKey:a=>px(t,n,a)}}function TE(e,t,n,s){const{modif
98
98
  ${mt(yt.order_date)}
99
99
  ${pt[yt.is_abnormal]}`:`${yt.original_test_value} ${t.historyData.uom_code}
100
100
  ${mt(yt.order_date)}`},W=()=>{d.value.no++,Q()},tt=()=>{d.value.no--,Q()},Q=()=>{x.value=V.value.map(yt=>T(yt)),C.value=V.value.map(yt=>U(yt)),i.data.datasets=[f.value],i.data.labels=x.value,i.update()},dt=yt=>{var Dt,Et;let pt=(Dt=yt.canvas.parentNode)==null?void 0:Dt.querySelector("div");if(!pt){pt=document.createElement("div"),pt.classList.add("chart-tooltip");const Wt=document.createElement("span");Wt.classList.add("chart-tooltip__caret"),pt.appendChild(Wt);const zt=document.createElement("ul");zt.classList.add("chart-tooltip__ul"),pt.appendChild(zt),(Et=yt.canvas.parentNode)==null||Et.appendChild(pt)}return pt},lt=yt=>{const pt=yt.chart,Dt=yt.tooltip,Et=dt(pt);if(Dt.opacity===0){Et.style.opacity="0";return}if(Dt.body){const Wt=C.value[Dt.dataPoints[0].dataIndex].split(`
101
- `),zt=document.createElement("li"),gt=Et.querySelector("ul");Wt.forEach(xt=>{gt==null||gt.appendChild(zt);const jt=document.createElement("div");zt.appendChild(jt);const fe=document.createTextNode(xt);jt.appendChild(fe)});const Vt=Et.querySelector("ul");for(;Vt!=null&&Vt.firstChild;)Vt.firstChild.remove();Vt==null||Vt.appendChild(zt),Et.style.opacity="1";const{offsetLeft:we,offsetTop:ge}=pt.canvas;Et.style.left=`${we+Dt.caretX}px`,Et.style.top=`${ge+Dt.caretY}px`,Et.style.padding=`${Dt.options.padding}px ${Dt.options.padding}px`}},mt=yt=>s(new Date(yt)),vt=()=>{window&&(window.ResizeObserver=window.ResizeObserver||XT),d.value.no=c.value-1>0?c.value-1:0,x.value=V.value.map(yt=>T(yt)),C.value=V.value.map(yt=>U(yt)),r.value&&(i=new gc(r.value,{type:"line",options:{responsive:!0,maintainAspectRatio:!0,plugins:{legend:{display:!1},tooltip:{enabled:!1,external:lt,padding:12}}},data:{datasets:[f.value],labels:x.value}}))};return u.onMounted(()=>{vt()}),(yt,pt)=>(u.openBlock(),u.createElementBlock("div",qT,[u.createElementVNode("div",KT,[u.createElementVNode("div",JT,[u.createElementVNode("div",ZT,[u.createElementVNode("div",QT,u.toDisplayString(t.historyData.test_name),1),u.createElementVNode("div",null,u.toDisplayString(`${yt.$t("psc.test_result_measured_in")} ${t.historyData.uom_code}`),1)]),u.withDirectives(u.createElementVNode("div",tO,[u.createVNode(u.unref(nr),{size:"sm",type:"icon",class:"psc-rounded-full psc-w-8 psc-h-8 !psc-p-0 psc-border psc-border-black/[0.1] psc-bg-transparent",disabled:u.unref(I),onClick:tt},{default:u.withCtx(()=>[u.createElementVNode("i",{class:u.normalizeClass(["dgic-expand-left psc-text-2xl -psc-ml-0.5",u.unref(I)?"psc-text-black/[0.4]":"psc-text-black/[0.85]"])},null,2)]),_:1},8,["disabled"]),u.createVNode(u.unref(nr),{size:"sm",type:"icon",class:"psc-rounded-full psc-w-8 psc-h-8 !psc-p-0 psc-border psc-border-black/[0.1] psc-bg-transparent",disabled:u.unref(P),onClick:W},{default:u.withCtx(()=>[u.createElementVNode("i",{class:u.normalizeClass(["dgic-expand-right psc-text-2xl -psc-mr-0.5",u.unref(P)?"psc-text-black/[0.4]":"psc-text-black/[0.85]"])},null,2)]),_:1},8,["disabled"])],512),[[u.vShow,u.unref(w)]])]),u.createElementVNode("div",eO,[u.createElementVNode("canvas",{ref_key:"chartRef",ref:r},null,512)])]),u.createElementVNode("div",nO,[u.createElementVNode("div",sO,u.toDisplayString(`${yt.$t("psc.test_result_about")} ${t.historyData.test_name}`),1),u.createElementVNode("div",iO,u.toDisplayString(t.historyData.purpose),1)])]))}}),WV="",rO=u.createElementVNode("div",null,null,-1),oO={key:0,class:"history-content psc-flex psc-justify-center psc-items-center psc-pb-[53px]"},aO={class:"psc-animate-spin"},lO={key:1,class:"history-content"},cO=u.defineComponent({__name:"TestResultHistoryDetailModal",props:{modelValue:{type:Boolean},historyData:null,loading:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,s=u.computed({get(){return n.modelValue},set(r){t("update:modelValue",r)}}),i=()=>{s.value=!1};return(r,a)=>(u.openBlock(),u.createBlock(u.unref(zp),{modelValue:u.unref(s),"onUpdate:modelValue":a[1]||(a[1]=c=>u.isRef(s)?s.value=c:null),class:"test-result-history-detail-modal",fullscreen:""},{default:u.withCtx(()=>[u.createVNode(u.unref(jp),null,{default:u.withCtx(()=>[rO,u.createElementVNode("div",null,[u.createElementVNode("i",{class:"dgic-chevron-down-thin psc-text-3xl psc-cursor-pointer psc-text-black/[0.85]",onClick:a[0]||(a[0]=c=>i())})])]),_:1}),u.createVNode(u.unref(Gp),{class:"modal-body"},{default:u.withCtx(()=>[n.loading?(u.openBlock(),u.createElementBlock("div",oO,[u.createElementVNode("div",aO,[u.createVNode(u.unref(zs),{icon:"dgic-spinner-8",class:"psc-text-4xl"})])])):(u.openBlock(),u.createElementBlock("div",lO,[u.createVNode(Vb,{class:"psc-pb-4","history-data":n.historyData},null,8,["history-data"])]))]),_:1})]),_:1},8,["modelValue"]))}}),HV="",uO=u.defineComponent({__name:"DateItem",props:{value:null,disabled:{type:Boolean},selected:{type:Boolean}},setup(e){const t=e,{dayShortNames:n}=or(),s=new Date,i=u.computed(()=>t.value.getDate()===s.getDate()&&t.value.getMonth()===s.getMonth()&&t.value.getFullYear()===s.getFullYear());return(r,a)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass([{"psc-cursor-pointer":!t.disabled},"psc-max-w-[38px]"])},[u.createElementVNode("div",{class:u.normalizeClass(["psc-w-[38px] psc-h-[38px] psc-rounded-full psc-p-2.5 psc-flex psc-items-center psc-justify-center",{"psc-text-black/[0.4] psc-border psc-border-black/[0.1]":t.disabled,"psc-text-black/[0.85] psc-bg-[#e6f0fe]":!t.disabled,"psc-text-white !psc-bg-primary psc-font-semibold":t.selected,"psc-border psc-border-primary psc-text-primary psc-bg-transparent":u.unref(i)&&!t.disabled&&!t.selected}])},[u.createElementVNode("span",null,u.toDisplayString(t.value.getDate()),1)],2),u.createElementVNode("div",{class:u.normalizeClass(["psc-text-center psc-mt-1",{"psc-text-black/[0.4]":t.disabled,"psc-text-black/[0.6]":!t.disabled,"psc-font-semibold psc-text-black/[0.85]":t.selected}])},u.toDisplayString(u.unref(n)[t.value.getDay()]),3)],2))}}),dO=u.defineComponent({__name:"DayPartItem",props:{text:null,disabled:{type:Boolean},selected:{type:Boolean}},setup(e){const t=e;return(n,s)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["psc-py-3 psc-rounded-lg psc-font-semibold psc-border psc-text-center",{"psc-text-black/[0.4] psc-border-black/[0.1]":t.disabled,"psc-text-black/[0.85] psc-border-black/[0.25] psc-cursor-pointer":!t.disabled,"!psc-text-primary psc-border-primary psc-bg-[#e6f0fe]":t.selected}])},u.toDisplayString(t.text),3))}}),Bb=(e,t)=>{let n=e.toString();for(;n.length<t;)n="0"+n;return n},hO=u.defineComponent({__name:"TimeSlotItem",props:{timeSlot:null,selected:{type:Boolean},icon:{default:""}},setup(e){const t=e,n=s=>`${Bb(s.getHours(),2)}:${Bb(s.getMinutes(),2)}`;return(s,i)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["psc-py-3 psc-rounded-lg psc-text-black/[0.85] psc-font-semibold psc-border psc-border-black/[0.25] psc-flex psc-items-center psc-justify-center psc-cursor-pointer",{"!psc-text-primary psc-border-primary psc-bg-[#e6f0fe]":t.selected}])},[t.icon?(u.openBlock(),u.createElementBlock("i",{key:0,class:u.normalizeClass([t.icon,"psc-text-xl psc-mr-2"])},null,2)):u.createCommentVNode("",!0),u.createElementVNode("span",null,u.toDisplayString(n(t.timeSlot)),1)],2))}}),fO={class:"book-appointment psc-space-y-8"},pO={class:"psc-flex"},mO={key:0},_O={class:"psc-pb-6 psc-font-semibold psc-text-black/[0.85]"},gO={class:"psc-flex -psc-mx-2"},bO=u.defineComponent({__name:"BookAppointment",props:{timeSlots:null,disabled:{type:Boolean,default:!1}},emits:["book"],setup(e,{expose:t,emit:n}){const s=e,{t:i}=qe(),{formatDateHuge:r}=or(),a=u.computed(()=>s.timeSlots.map(U=>new Date(U))),c=u.ref([]),d=u.ref(),f=u.ref(),m=u.ref(),b=u.computed(()=>{var W;const U={[Rn.Morning]:"dgic-morning-thin",[Rn.Afternoon]:"dgic-afternoon-thin",[Rn.Evening]:"dgic-evening-thin"};return(W=f.value)!=null&&W.value?U[f.value.value]:""}),x=u.computed(()=>({[Rn.Morning]:i("psc.date_time.day_parts.morning"),[Rn.Afternoon]:i("psc.date_time.day_parts.afternoon"),[Rn.Evening]:i("psc.date_time.day_parts.evening")})),C=()=>{var U;n("book",(U=m.value)==null?void 0:U.toISOString())},w=()=>{V(),f.value=void 0,m.value=void 0},I=U=>{U.disabled||s.disabled||(d.value=U,f.value=void 0,m.value=void 0)},P=U=>{U.disabled||s.disabled||(f.value=U,m.value=void 0)},D=U=>{s.disabled||(m.value=U)},M=(U,W,tt)=>{const Q=U.split(":");let dt=new Date(tt).getTime();dt=new Date(dt).setHours(+Q[0]),dt=new Date(dt).setMinutes(+Q[1]),dt=new Date(dt).setSeconds(0),dt=new Date(dt).setMilliseconds(0);const lt=W.split(":");let mt=new Date(tt).getTime();return mt=new Date(mt).setHours(+lt[0]),mt=new Date(mt).setMinutes(+lt[1]),mt=new Date(mt).setSeconds(0),mt=new Date(mt).setMilliseconds(0),a.value.filter(vt=>new Date(dt)<=vt&&vt<=new Date(mt))},V=()=>{const U=c.value.find(W=>!W.disabled);U&&(d.value=U)},L=()=>{for(let U=0;U<7;U++){const W=new Date,tt=new Date(W.setDate(W.getDate()+U)),Q=M("07:00","12:50",tt),dt=M("13:00","18:50",tt),lt=M("19:00","21:00",tt),mt=[{text:x.value[Rn.Morning],value:Rn.Morning,start:"07:00",end:"12:50",timeSlots:Q,disabled:Q.length===0},{text:x.value[Rn.Afternoon],value:Rn.Afternoon,start:"13:00",end:"18:50",timeSlots:dt,disabled:dt.length===0},{text:x.value[Rn.Evening],value:Rn.Evening,start:"19:00",end:"21:00",timeSlots:lt,disabled:lt.length===0}];c.value.push({value:tt,disabled:mt.every(vt=>vt.disabled),dayParts:mt})}};return(()=>{L(),V()})(),t({resetAll:w}),(U,W)=>{var tt,Q,dt;return u.openBlock(),u.createElementBlock("div",fO,[u.createElementVNode("div",pO,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(c.value,(lt,mt)=>{var vt;return u.openBlock(),u.createElementBlock("div",{key:`date${mt}`,class:"book-appointment__date"},[u.createVNode(uO,{value:lt.value,disabled:lt.disabled,selected:((vt=d.value)==null?void 0:vt.value)===lt.value,onClick:yt=>I(lt)},null,8,["value","disabled","selected","onClick"])])}),128))]),d.value?(u.openBlock(),u.createElementBlock("div",mO,[u.createElementVNode("div",_O,u.toDisplayString(u.unref(r)(d.value.value)),1),u.createElementVNode("div",gO,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(d.value.dayParts,(lt,mt)=>{var vt;return u.openBlock(),u.createElementBlock("div",{key:`dayPart${mt}`,class:"psc-w-1/3 psc-px-2"},[u.createVNode(dO,{text:lt.text,disabled:lt.disabled,selected:((vt=f.value)==null?void 0:vt.value)===lt.value,onClick:yt=>P(lt)},null,8,["text","disabled","selected","onClick"])])}),128))])])):u.createCommentVNode("",!0),u.createElementVNode("div",null,[u.withDirectives(u.createElementVNode("div",{class:"psc-pb-6 psc-font-semibold psc-text-black/[0.85]"},u.toDisplayString(U.$t("psc.test_result_opening_slots")),513),[[u.vShow,f.value]]),u.createElementVNode("div",{class:u.normalizeClass(["psc-flex psc-flex-wrap -psc-mx-2 -psc-my-2 psc-overflow-y-auto psc-max-h-[20vh] psc-h-[20vh] psc-transition-[max-height]",{"!psc-max-h-0":!f.value,"!psc-max-h-[11vh]":((Q=(tt=f.value)==null?void 0:tt.timeSlots)==null?void 0:Q.length)&&f.value.timeSlots.length<=3}])},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList((dt=f.value)==null?void 0:dt.timeSlots,(lt,mt)=>(u.openBlock(),u.createElementBlock("div",{key:`timeSlot${mt}`,class:"psc-w-1/3 psc-px-2 psc-py-2"},[u.createVNode(hO,{"time-slot":lt,selected:m.value===lt,icon:u.unref(b),onClick:vt=>D(lt)},null,8,["time-slot","selected","icon","onClick"])]))),128))],2)]),u.createVNode(u.unref(nr),{type:"primary",class:"psc-w-full",disabled:!m.value||s.disabled,onClick:C},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(U.$t("psc.test_result_book_appointment")),1)]),_:1},8,["disabled"])])}}}),YV="",$b=lr(bO,[["__scopeId","data-v-94386939"]]),yO={class:"psc-flex psc-flex-wrap psc-space-y-4 psc-pb-8"},kO={class:"psc-w-full psc-text-center"},vO={class:"psc-w-full psc-text-center psc-text-xl psc-font-semibold psc-text-black/[0.85]"},xO={class:"psc-w-full psc-text-center psc-text-black/[0.6]"},EO=u.defineComponent({__name:"ErrorMessage",setup(e){return(t,n)=>(u.openBlock(),u.createElementBlock("div",yO,[u.createElementVNode("div",kO,[u.createVNode(u.unref(zs),{icon:"dgic-circle-error-fill",class:"psc-text-[80px] psc-text-error"})]),u.createElementVNode("div",vO,u.toDisplayString(t.$t("psc.test_result_book_appointment_error_title")),1),u.createElementVNode("div",xO,u.toDisplayString(t.$t("psc.test_result_book_appointment_error_description")),1)]))}}),wO={class:"psc-flex psc-flex-wrap psc-space-y-4 psc-pb-8"},CO={class:"psc-w-full psc-text-center"},DO={class:"psc-w-full psc-text-center psc-text-xl psc-font-semibold psc-text-black/[0.85]"},SO={class:"psc-w-full psc-text-center psc-text-black/[0.6]"},NO=u.defineComponent({__name:"SuccessMessage",props:{timeSlot:null},setup(e){const t=e,{formatTime:n,formatDate:s}=or(),i=u.computed(()=>n(new Date(t.timeSlot))),r=u.computed(()=>s(new Date(t.timeSlot)));return(a,c)=>(u.openBlock(),u.createElementBlock("div",wO,[u.createElementVNode("div",CO,[u.createVNode(u.unref(zs),{icon:"dgic-circle-check",class:"psc-text-[80px] psc-text-success"})]),u.createElementVNode("div",DO,u.toDisplayString(a.$t("psc.test_result_successfully_booked")),1),u.createElementVNode("div",SO,u.toDisplayString(a.$t("psc.test_result_have_an_appointment_with_doctor",{time:u.unref(i),date:u.unref(r)})),1)]))}}),MO={class:"psc-flex-1 psc-text-center psc-font-semibold psc-text-black/[0.85]"},TO={class:"psc-flex-1 psc-text-right"},OO={key:0,class:"modal-body__content psc-flex psc-justify-center psc-items-center psc-pb-[53px]"},AO={class:"psc-animate-spin"},LO={key:1,class:"modal-body__content"},IO=u.defineComponent({__name:"BookAppointmentModal",props:{modelValue:{type:Boolean},timeSlots:null,loading:{type:Boolean},disabled:{type:Boolean},showSuccess:{type:Boolean,default:!1},showError:{type:Boolean,default:!1}},emits:["update:modelValue","book"],setup(e,{emit:t}){const n=e,s=u.ref(null),i=u.computed({get(){return n.modelValue},set(f){t("update:modelValue",f)}}),r=u.ref(""),a=f=>{r.value=f,t("book",f)},c=()=>{var f;(f=s.value)==null||f.resetAll()},d=()=>{i.value=!1};return(f,m)=>(u.openBlock(),u.createBlock(u.unref(zp),{modelValue:u.unref(i),"onUpdate:modelValue":m[1]||(m[1]=b=>u.isRef(i)?i.value=b:null),class:"book-appointment-modal",fullscreen:""},{default:u.withCtx(()=>[u.createVNode(u.unref(jp),null,{default:u.withCtx(()=>[!n.showSuccess&&!n.showError?(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[u.createElementVNode("div",{class:"psc-flex-1 psc-text-primary psc-text-sm psc-cursor-pointer hover:psc-text-primary/[0.9]",onClick:c},u.toDisplayString(f.$t("psc.test_result_reset_all")),1),u.createElementVNode("div",MO,u.toDisplayString(f.$t("psc.test_result_choose_time")),1)],64)):u.createCommentVNode("",!0),u.createElementVNode("div",TO,[u.createElementVNode("i",{class:"dgic-close-round psc-text-2xl psc-cursor-pointer psc-text-[#6a6b7a]",onClick:m[0]||(m[0]=b=>d())})])]),_:1}),u.createVNode(u.unref(Gp),{class:"modal-body"},{default:u.withCtx(()=>[n.loading?(u.openBlock(),u.createElementBlock("div",OO,[u.createElementVNode("div",AO,[u.createVNode(u.unref(zs),{icon:"dgic-spinner-8",class:"psc-text-4xl"})])])):(u.openBlock(),u.createElementBlock("div",LO,[!n.showSuccess&&!n.showError?(u.openBlock(),u.createBlock($b,{key:0,ref_key:"bookAppointmentRef",ref:s,class:"psc-pb-4","time-slots":n.timeSlots,disabled:n.disabled,onBook:a},null,8,["time-slots","disabled"])):u.createCommentVNode("",!0),n.showSuccess?(u.openBlock(),u.createBlock(NO,{key:1,"time-slot":r.value},null,8,["time-slot"])):u.createCommentVNode("",!0),n.showError?(u.openBlock(),u.createBlock(EO,{key:2})):u.createCommentVNode("",!0)]))]),_:1})]),_:1},8,["modelValue"]))}}),zV="",PO={class:"psc-p-3 psc-rounded-lg psc-cursor-pointer psc-box-shadow hover:psc-bg-slate-100"},FO={class:"psc-space-y-3"},RO={class:"psc-flex psc-items-center"},VO={class:"psc-flex-initial psc-font-semibold psc-text-primary"},BO={class:"psc-flex-auto psc-pl-2 psc-text-black/[0.6] psc-text-sm psc-font-normal"},$O=u.createElementVNode("div",{class:"psc-flex psc-justify-end !psc-mt-0"},[u.createElementVNode("i",{class:"dgic-chevron-right-thin psc-text-primary psc-text-2xl psc-leading-3"})],-1),UO={class:"psc-flex psc-space-x-2"},Ub=u.defineComponent({__name:"BookingListItem",props:{item:null},setup(e){const t=e;return(n,s)=>(u.openBlock(),u.createElementBlock("div",PO,[u.createElementVNode("div",FO,[u.createElementVNode("div",RO,[u.createElementVNode("div",VO,[u.createElementVNode("span",null,u.toDisplayString(t.item.booking_code),1)]),u.createElementVNode("div",BO,u.toDisplayString(u.unref(to)(t.item.created_at)),1)]),$O]),u.createElementVNode("div",UO,[u.createVNode(Km,{status:t.item.booking_status},null,8,["status"]),u.createVNode(Jm,{status:t.item.payment_status},null,8,["status"])])]))}}),WO={},HO={class:"psc-px-4 psc-text-2xl psc-pb-[30px] psc-font-bold psc-text-black/[0.85]"};function YO(e,t){return u.openBlock(),u.createElementBlock("div",HO,[u.renderSlot(e.$slots,"default")])}const Dh=lr(WO,[["render",YO]]),zO={key:1},jO={class:"psc-px-4 psc-space-y-4"},GO={key:0,class:"psc-px-4 psc-w-full psc-pt-7 psc-text-center"},XO=u.defineComponent({__name:"BookingList",props:{items:null,loading:{type:Boolean},skeletonCount:null,hideLoadMore:{type:Boolean},bookingButtonUrl:{default:""}},emits:["switch-to-detail","click:load-more"],setup(e,{emit:t}){const n=e,{t:s}=qe(),i=async()=>{t("click:load-more")},r=async a=>{t("switch-to-detail",a)};return(a,c)=>!n.loading&&n.items.length===0?(u.openBlock(),u.createBlock(Ad,{key:0,title:a.$t("psc.test_result_no_booking_found"),subtitle:a.$t("psc.test_result_message_no_booking_yet"),"booking-button-url":n.bookingButtonUrl,class:"psc-content-h-full"},null,8,["title","subtitle","booking-button-url"])):(u.openBlock(),u.createElementBlock("div",zO,[u.createVNode(Dh,null,{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(u.unref(s)("psc.test_result_all_bookings")),1)]),_:1}),u.createElementVNode("div",jO,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(n.items,d=>(u.openBlock(),u.createBlock(Ub,{key:d.booking_code,item:d,onClick:f=>r(d)},null,8,["item","onClick"]))),128)),e.loading?(u.openBlock(!0),u.createElementBlock(u.Fragment,{key:0},u.renderList(n.skeletonCount,d=>(u.openBlock(),u.createBlock(Ul,{key:`item${d}`}))),128)):u.createCommentVNode("",!0)]),n.hideLoadMore?u.createCommentVNode("",!0):(u.openBlock(),u.createElementBlock("div",GO,[u.createVNode(u.unref(nr),{type:"secondary",disabled:n.loading,size:"sm","prepend-icon":"dgic-double-chevron-down-thin",onClick:i},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(u.unref(s)("psc.test_result_more_bookings")),1)]),_:1},8,["disabled"])]))]))}}),qO={class:"psc-w-full psc-flex psc-flex-wrap psc-justify-center psc-space-y-2"},KO={key:0,class:"psc-w-full"},JO={class:"psc-flex psc-flex-wrap psc-text-sm psc-text-black/[0.6] -psc-mx-0.5"},ZO={key:0,class:"psc-flex-auto psc-px-0.5"},QO={class:"psc-mr-1"},tA={key:1,class:"psc-flex-auto psc-px-0.5"},eA={class:"psc-mr-1"},nA=u.defineComponent({__name:"ResultReadyV2",props:{testResult:null},setup(e){const t=e,{t:n}=qe(),s=u.computed(()=>Hp(t.testResult.sample_collected_at)),i=u.computed(()=>Hp(t.testResult.result_at)),r=u.computed(()=>t.testResult.result_status===We.Ready);return(a,c)=>(u.openBlock(),u.createElementBlock("div",qO,[u.createVNode(s_,{status:t.testResult.result_status},null,8,["status"]),u.unref(s)||u.unref(r)?(u.openBlock(),u.createElementBlock("div",KO,[u.createElementVNode("div",JO,[u.unref(s)?(u.openBlock(),u.createElementBlock("div",ZO,[u.createElementVNode("span",QO,u.toDisplayString(u.unref(n)("psc.test_result_sample_collected")),1),u.createElementVNode("span",null,u.toDisplayString(u.unref(s)),1)])):u.createCommentVNode("",!0),u.unref(r)?(u.openBlock(),u.createElementBlock("div",tA,[u.createElementVNode("span",eA,u.toDisplayString(u.unref(n)("psc.test_result_result_ready")),1),u.createElementVNode("span",null,u.toDisplayString(u.unref(i)),1)])):u.createCommentVNode("",!0)])])):u.createCommentVNode("",!0)]))}}),sA={class:"psc-w-full"},iA={class:"psc-box-shadow psc-rounded-lg psc-p-3 psc-flex psc-flex-wrap psc-border psc-border-[#e6f0fe]"},rA={class:"psc-flex psc-w-full psc-items-center"},oA={class:"psc-flex-initial psc-px-3 psc-mr-1"},aA={class:"psc-flex-auto"},lA={class:"psc-flex psc-items-center"},cA={class:"psc-text-black/[0.85] psc-font-semibold"},uA={class:"psc-px-2 psc-py-1 psc-rounded-lg psc-bg-[#e6f0fe] psc-uppercase psc-text-primary psc-font-semibold psc-text-xs psc-ml-2"},dA={class:"psc-text-sm psc-text-black/[0.6] psc-pt-1"},hA={class:"psc-w-full psc-pt-3"},fA=u.defineComponent({__name:"BookAppointmentButton",emits:["book"],setup(e,{emit:t}){return(n,s)=>(u.openBlock(),u.createElementBlock("div",sA,[u.createElementVNode("div",iA,[u.createElementVNode("div",rA,[u.createElementVNode("div",oA,[u.createVNode(u.unref(zs),{icon:"dgic-stethoscope-thick",class:"psc-text-2xl psc-text-primary"})]),u.createElementVNode("div",aA,[u.createElementVNode("div",lA,[u.createElementVNode("div",cA,u.toDisplayString(n.$t("psc.test_result_doctor_appointment")),1),u.createElementVNode("div",uA,u.toDisplayString(n.$t("psc.test_result_free")),1)]),u.createElementVNode("div",dA,u.toDisplayString(n.$t("psc.test_result_more_about_your_results")),1)])]),u.createElementVNode("div",hA,[u.createVNode(u.unref(nr),{class:"psc-w-full","prepend-icon":"dgic-date-thick",type:"primary",onClick:s[0]||(s[0]=i=>t("book"))},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(n.$t("psc.test_result_book_appointment")),1)]),_:1})])])]))}}),pA={class:"psc-w-full"},mA={class:"psc-box-shadow psc-text-sm psc-rounded-lg psc-p-3"},_A={class:"psc-font-semibold psc-text-black/[0.85]"},gA={class:"psc-mt-2 psc-text-black/[0.85] psc-relative psc-pl-2 before:psc-content-[''] before:psc-w-[2px] before:psc-h-full before:psc-bg-primary before:psc-absolute before:psc-left-0 before:psc-rounded-lg"},bA=u.defineComponent({__name:"DoctorNote",props:{doctorNote:{default:""}},setup(e){const t=e;return(n,s)=>(u.openBlock(),u.createElementBlock("div",pA,[u.createElementVNode("div",mA,[u.createElementVNode("div",null,[u.createElementVNode("span",_A,u.toDisplayString(n.$t("psc.test_result_note")),1)]),u.createElementVNode("div",gA,u.toDisplayString(t.doctorNote),1)])]))}}),yA={class:"psc-w-full"},kA={class:"psc-box-shadow psc-rounded-lg psc-p-3 psc-flex psc-flex-wrap psc-border psc-border-[#e6f0fe]"},vA={class:"psc-flex psc-w-full psc-items-center"},xA={class:"psc-flex-initial psc-px-3 psc-mr-1"},EA={class:"psc-flex-auto"},wA={class:"psc-text-black/[0.85] psc-font-semibold"},CA={class:"psc-text-sm psc-text-black/[0.6] psc-pt-1"},DA=u.defineComponent({__name:"UpcomingAppointment",props:{timeSlot:null},setup(e){const t=e,{formatDate:n,formatTime:s}=or(),i=u.computed(()=>n(new Date(t.timeSlot))),r=u.computed(()=>s(new Date(t.timeSlot)));return(a,c)=>(u.openBlock(),u.createElementBlock("div",yA,[u.createElementVNode("div",kA,[u.createElementVNode("div",vA,[u.createElementVNode("div",xA,[u.createVNode(u.unref(zs),{icon:"dgic-stethoscope-thick",class:"psc-text-2xl psc-text-primary"})]),u.createElementVNode("div",EA,[u.createElementVNode("div",wA,u.toDisplayString(a.$t("psc.test_result_upcoming_appointment")),1),u.createElementVNode("div",CA,u.toDisplayString(a.$t("psc.test_result_date_at_time",{date:u.unref(i),time:u.unref(r)})),1)])])])]))}}),SA={key:0,class:"consumer-test-result__ready"},NA={class:"psc-px-4"},MA={key:1},TA=u.defineComponent({__name:"TestResultDetail",props:{testResult:null,loading:{type:Boolean},ctaButtonUrl:null,hidePatientInfo:{type:Boolean,default:!1}},emits:["click:book-appointment"],setup(e,{emit:t}){const n=e,s=u.computed(()=>[We.Ordered,We.InProgress,We.Ready,We.PartiallyComplete].includes(n.testResult.result_status)),i=u.computed(()=>n.testResult.template_type===dd.HPV&&[We.Ordered,We.InProgress].includes(n.testResult.result_status));return(r,a)=>(u.openBlock(),u.createElementBlock("div",null,[u.createVNode(u.unref(ud),{loading:n.loading},null,8,["loading"]),n.loading?u.createCommentVNode("",!0):(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[u.unref(s)?(u.openBlock(),u.createElementBlock("div",SA,[u.createElementVNode("div",null,[n.hidePatientInfo?u.createCommentVNode("",!0):(u.openBlock(),u.createBlock(n_,{key:0,"first-name":n.testResult.first_name,class:"psc-px-4 psc-pb-2"},null,8,["first-name"])),u.createVNode(nA,{"test-result":n.testResult,class:"psc-px-4 psc-pb-4"},null,8,["test-result"]),n.testResult.is_free_consultant?(u.openBlock(),u.createBlock(fA,{key:1,class:"psc-px-4 psc-mb-4",onBook:a[0]||(a[0]=c=>t("click:book-appointment"))})):u.createCommentVNode("",!0),n.testResult.doctor_note?(u.openBlock(),u.createBlock(bA,{key:2,"doctor-note":n.testResult.doctor_note,class:"psc-px-4 psc-mb-4"},null,8,["doctor-note"])):(u.openBlock(),u.createElementBlock(u.Fragment,{key:3},[n.testResult.consult_time?(u.openBlock(),u.createBlock(DA,{key:0,"time-slot":n.testResult.consult_time,class:"psc-px-4 psc-mb-4"},null,8,["time-slot"])):u.createCommentVNode("",!0)],64))]),u.createElementVNode("div",NA,[u.unref(i)?u.createCommentVNode("",!0):u.renderSlot(r.$slots,"default",{key:0}),n.testResult.can_booking?(u.openBlock(),u.createElementBlock("div",MA,[u.createVNode(aa,{class:"psc-mt-[20px]",url:n.ctaButtonUrl,title:r.$t("psc.test_result_test_more_for_better_health"),subtitle:r.$t("psc.test_result_book_general_screening_panel_now")},null,8,["url","title","subtitle"])])):u.createCommentVNode("",!0)])])):(u.openBlock(),u.createBlock(d_,{key:1,class:"psc-px-4"},{"body-append":u.withCtx(()=>[u.createVNode(u_,{class:"psc-mt-6"})]),_:1}))],64))]))}}),OA={class:"psc-box-shadow psc-p-3 psc-rounded-lg psc-space-y-3 hover:psc-bg-slate-100 psc-cursor-pointer"},AA={class:"psc-flex psc-items-center"},LA={class:"psc-flex-initial psc-font-semibold psc-text-primary"},IA={class:"psc-flex-auto psc-pl-2 psc-text-black/[0.6]"},PA=u.createElementVNode("div",{class:"psc-flex-initial"},[u.createElementVNode("i",{class:"dgic-chevron-right-thin psc-text-primary psc-text-xl psc-text-2xl"})],-1),FA={class:"psc-flex"},RA={class:"psc-text-sm"},Wb=u.defineComponent({__name:"TestResultListItem",props:{item:null},setup(e){const t=e,{t:n}=qe(),s=u.computed(()=>({[We.Ordered]:{text:n("psc.test_result_status_not_ready"),cssClass:"psc-text-not-ready",icon:"dgic-time-dotted"},[We.InProgress]:{text:n("psc.test_result_status_not_ready"),cssClass:"psc-text-not-ready",icon:"dgic-time-dotted"},[We.PartiallyComplete]:{text:n("psc.test_result_status_partially_ready"),cssClass:"psc-text-blue-darken-2",icon:"dgic-partial-thin",iconPathCount:2},[We.Ready]:{text:n("psc.test_result_status_ready"),cssClass:"psc-text-ready",icon:"dgic-check-mark-thin"},[We.Canceled]:{text:n("psc.test_result_status_couldnt_process"),cssClass:"psc-text-red-darken-1",icon:"dgic-cancel-right-to-left"},[We.Rejected]:{text:n("psc.test_result_status_couldnt_process"),cssClass:"psc-text-red-darken-1",icon:"dgic-cancel-right-to-left"}})[t.item.result_status]||{text:"",cssClass:"",icon:""});return(i,r)=>(u.openBlock(),u.createElementBlock("div",OA,[u.createElementVNode("div",AA,[u.createElementVNode("div",LA,[u.createElementVNode("span",null,u.toDisplayString(`${i.$t("psc.test_result_order")} ${t.item.order_id}`),1)]),u.createElementVNode("div",IA,u.toDisplayString(u.unref(to)(t.item.visit_date)),1),PA]),u.createElementVNode("div",FA,[u.createElementVNode("div",{class:u.normalizeClass(["psc-flex psc-items-center psc-font-semibold",u.unref(s).cssClass])},[u.createElementVNode("span",RA,u.toDisplayString(u.unref(s).text),1),u.createElementVNode("i",{class:u.normalizeClass(["psc-ml-1 psc-text-2xl",u.unref(s).icon])},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(u.unref(s).iconPathCount,a=>(u.openBlock(),u.createElementBlock("span",{key:`path${a}`,class:u.normalizeClass(`path${a}`)},null,2))),128))],2)],2)])]))}}),VA={class:"psc-px-4 psc-space-y-4"},BA={class:"psc-px-4 psc-w-full psc-pt-7 psc-text-center"},$A={key:1},UA={key:0,class:"psc-px-4 psc-pt-7"},WA=u.defineComponent({__name:"TestResultList",props:{items:null,loading:{type:Boolean},skeletonCount:null,ctaButtonUrl:{default:""},hideLoadMore:{type:Boolean},bookingButtonUrl:{default:""}},emits:["switch-to-detail","click:load-more"],setup(e,{emit:t}){const n=e,s=async()=>{t("click:load-more")},i=async r=>{t("switch-to-detail",r)};return(r,a)=>(u.openBlock(),u.createElementBlock("div",null,[!n.loading&&n.items.length===0?(u.openBlock(),u.createBlock(Ad,{key:0,title:r.$t("psc.test_result_no_results_found"),subtitle:r.$t("psc.test_result_book_to_show_result"),"booking-button-url":n.bookingButtonUrl,class:"psc-content-h-full"},null,8,["title","subtitle","booking-button-url"])):(u.openBlock(),u.createElementBlock(u.Fragment,{key:1},[u.createVNode(Dh,null,{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(r.$t("psc.test_result_all_results")),1)]),_:1}),u.createElementVNode("div",VA,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(n.items,(c,d)=>(u.openBlock(),u.createElementBlock("div",{key:`item${d}`},[u.createVNode(Wb,{item:c,onClick:f=>i(c)},null,8,["item","onClick"])]))),128)),n.loading?(u.openBlock(!0),u.createElementBlock(u.Fragment,{key:0},u.renderList(n.skeletonCount,c=>(u.openBlock(),u.createBlock(Ul,{key:`skeleton${c}`}))),128)):u.createCommentVNode("",!0)]),u.createElementVNode("div",BA,[n.hideLoadMore?(u.openBlock(),u.createElementBlock("div",$A,u.toDisplayString(r.$t("psc.test_result_all_results_loaded")),1)):(u.openBlock(),u.createBlock(u.unref(nr),{key:0,type:"secondary",disabled:n.loading,size:"sm","prepend-icon":"dgic-double-chevron-down-thin",onClick:s},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(r.$t("psc.test_result_load_older_results")),1)]),_:1},8,["disabled"]))]),n.ctaButtonUrl?(u.openBlock(),u.createElementBlock("div",UA,[u.createVNode(aa,{class:"psc-mt-[20px]",url:e.ctaButtonUrl,title:r.$t("psc.test_result_test_more_for_better_health"),subtitle:r.$t("psc.test_result_book_general_screening_panel_now")},null,8,["url","title","subtitle"])])):u.createCommentVNode("",!0)],64))]))}}),Hb=()=>{window.open(`tel:${Wl}`,"_self")},HA=e=>`${e.slice(0,-6)} ${e.slice(-6,-3)} ${e.slice(-3)}`,YA={class:"psc-px-4"},zA={key:1,class:"psc-flex psc-mb-[20px]"},jA=u.createElementVNode("div",{class:"psc-mr-[16px] psc-w-[60px] psc-h-[60px] psc-min-w-[60px] psc-w-[60px] psc-rounded-full psc-border-solid psc-border-[1px] psc-border-[#00000019] psc-overflow-hidden"},[u.createElementVNode("i",{class:"dgic-user-circle psc-text-[#00000019] psc-text-[60px]"})],-1),GA={class:"psc-text-[14px]"},XA={class:"psc-font-[600] psc-text-[20px] psc-mb-[12px]"},qA={class:"psc-flex psc-items-center psc-mb-[8px]"},KA=u.createElementVNode("i",{class:"dgic-cake psc-text-[22px] psc-mr-1 psc-font-bold"},null,-1),JA={class:"psc-flex psc-items-center psc-mb-[8px]"},ZA=u.createElementVNode("i",{class:"dgic-phone-light psc-text-[22px] psc-mr-1"},null,-1),QA={class:"psc-flex psc-items-center psc-mb-[8px]"},tL={class:"psc-bg-[#e6f0fe] psc-py-[20px] psc-px-[16px] psc-rounded-[8px] psc-flex psc-mb-[35px]"},eL=u.createElementVNode("div",{class:"psc-flex items-start psc-mr-[8px]"},[u.createElementVNode("i",{class:"dgic-info-fill psc-text-primary psc-text-[24px]"})],-1),nL=["innerHTML"],sL=u.defineComponent({__name:"MyProfile",props:{fullName:null,dob:null,gender:null,phoneNumber:null,loading:{type:Boolean},ctaButtonUrl:{default:""}},setup(e){const t=e,{t:n}=qe(),s=u.computed(()=>t.fullName),i=u.computed(()=>to(t.dob)),r=u.computed(()=>t.gender?{[so.Male]:{icon:"dgic-gender-male",text:n("psc.male")},[so.Female]:{icon:"dgic-gender-female",text:n("psc.female")}}[t.gender]:{icon:"",text:""}),a=u.computed(()=>t.phoneNumber?HA(t.phoneNumber):"");return(c,d)=>(u.openBlock(),u.createElementBlock("div",YA,[u.createVNode(Dh,null,{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(u.unref(n)("psc.test_result_my_profile")),1)]),_:1}),t.loading?(u.openBlock(),u.createBlock(Ul,{key:0,class:"psc-pb-16 psc-mb-[20px]"})):(u.openBlock(),u.createElementBlock("div",zA,[jA,u.createElementVNode("div",GA,[u.createElementVNode("div",XA,u.toDisplayString(u.unref(s)),1),u.createElementVNode("div",qA,[KA,u.createTextVNode(" "+u.toDisplayString(u.unref(i)),1)]),u.createElementVNode("div",JA,[ZA,u.createTextVNode(" "+u.toDisplayString(u.unref(a)),1)]),u.createElementVNode("div",QA,[u.createElementVNode("i",{class:u.normalizeClass(["psc-text-[22px] psc-mr-1",u.unref(r).icon])},null,2),u.createTextVNode(" "+u.toDisplayString(u.unref(r).text),1)])])])),u.createElementVNode("div",tL,[eL,u.createElementVNode("div",{innerHTML:u.unref(n)("psc.test_result_if_you_wish_to_edit_your_profile")},null,8,nL)]),t.ctaButtonUrl?(u.openBlock(),u.createBlock(aa,{key:2,class:"psc-mt-[20px]",url:t.ctaButtonUrl,title:c.$t("psc.test_result_test_more_for_better_health"),subtitle:c.$t("psc.test_result_book_general_screening_panel_now")},null,8,["url","title","subtitle"])):u.createCommentVNode("",!0)]))}}),jV="",iL={class:"call-us-text-button"},rL=u.createElementVNode("i",{class:"dgic-phone-light psc-mr-1"},null,-1),oL={class:"diag-opening-time"},aL=u.defineComponent({__name:"CallUsTextButton",setup(e){const{t}=qe();return(n,s)=>(u.openBlock(),u.createElementBlock("div",iL,[u.createElementVNode("div",{class:"diag-phone-number",onClick:s[0]||(s[0]=(...i)=>u.unref(Hb)&&u.unref(Hb)(...i))},[rL,u.createElementVNode("span",null,u.toDisplayString(u.unref(Wl)),1)]),u.createElementVNode("div",oL,u.toDisplayString(u.unref(t)("psc.test_result_time_support")),1)]))}}),GV="",lL={class:"result-ready"},cL={class:"result-ready__title"},uL={class:"result-ready__date"},dL={key:0,class:"result-ready__date"},hL=u.defineComponent({__name:"ResultReady",props:{testResult:null},setup(e){const t=e,{t:n}=qe(),s=u.computed(()=>t.testResult.sample_collected_at&&to(t.testResult.sample_collected_at)||""),i=u.computed(()=>t.testResult.sample_collected_at&&to(t.testResult.result_at)||""),r=u.computed(()=>t.testResult.result_status===We.Ready),a=u.computed(()=>{switch(t.testResult.result_status){case We.Ordered:case We.InProgress:return n("psc.test_result_your_result_not_ready");case We.Ready:return n("psc.test_result_your_result_ready");case We.PartiallyComplete:return n("psc.test_result_result_partial_completed");default:return""}});return(c,d)=>(u.openBlock(),u.createElementBlock("div",lL,[u.createElementVNode("span",cL,u.toDisplayString(u.unref(a)),1),u.createElementVNode("div",uL,u.toDisplayString(u.unref(n)("psc.test_result_sample_collected_on"))+" "+u.toDisplayString(`${u.unref(s)}.`),1),u.unref(r)?(u.openBlock(),u.createElementBlock("div",dL,u.toDisplayString(u.unref(n)("psc.test_result_result_released_on"))+" "+u.toDisplayString(`${u.unref(i)}.`),1)):u.createCommentVNode("",!0)]))}}),XV="",Yb={psc:{gender:"Gi\u1EDBi t\xEDnh",male:"Nam",female:"N\u1EEF",test_result_my_profile:"H\u1ED3 s\u01A1 c\u1EE7a t\xF4i",test_result_if_you_wish_to_edit_your_profile:'N\u1EBFu c\u1EA7n thay \u0111\u1ED5i th\xF4ng tin c\xE1 nh\xE2n, b\u1EA1n vui l\xF2ng <a href="tel:1900 1717" class="contact-support">li\xEAn h\u1EC7 h\u1ED7 tr\u1EE3</a>',test_result_view_my_bookings:"Xem l\u1ECBch h\u1EB9n c\u1EE7a t\xF4i",test_result_test_more_for_better_health:"\u0110\u1EC3 th\u1EA5u hi\u1EC3u v\xE0 duy tr\xEC s\u1EE9c kho\u1EBB",test_result_book_general_screening_panel_now:"\u0110\u1EB7t h\u1EB9n G\xF3i X\xE9t Nghi\u1EC7m T\u1ED5ng Qu\xE1t ngay",test_result_status_not_ready:"Ch\u01B0a c\xF3 k\u1EBFt qu\u1EA3",test_result_status_couldnt_process:"M\u1EABu kh\xF4ng th\u1EC3 x\u1EED l\xFD",test_result_status_ready:"S\u1EB5n s\xE0ng",test_result_status_partially_ready:"S\u1EB5n s\xE0ng m\u1ED9t ph\u1EA7n",test_result_order:"Ch\u1EC9 \u0111\u1ECBnh",test_result_all_results:"T\u1EA5t c\u1EA3 k\u1EBFt qu\u1EA3",test_result_load_older_results:"Xem c\xE1c k\u1EBFt qu\u1EA3 c\u0169 h\u01A1n",test_result_all_results_loaded:"\u0110\xE3 hi\u1EC3n th\u1ECB t\u1EA5t c\u1EA3 k\u1EBFt qu\u1EA3",test_result_hi:"Xin ch\xE0o,",test_result_your_result_ready:"B\u1EA1n \u0111\xE3 c\xF3 k\u1EBFt qu\u1EA3 x\xE9t nghi\u1EC7m",test_result_result_partial_completed:"X\xE9t nghi\u1EC7m c\u1EE7a b\u1EA1n \u0111\xE3 ho\xE0n th\xE0nh m\u1ED9t ph\u1EA7n",test_result_your_result_not_ready:"K\u1EBFt qu\u1EA3 c\u1EE7a b\u1EA1n ch\u01B0a ho\xE0n t\u1EA5t",test_result_sample_collected:"L\u1EA5y m\u1EABu:",test_result_result_ready:"C\xF3 k\u1EBFt qu\u1EA3:",test_result_sample_collected_on:"M\u1EABu \u0111\xE3 \u0111\u01B0\u1EE3c l\u1EA5y v\xE0o ng\xE0y",test_result_result_released_on:"v\xE0 c\xF3 k\u1EBFt qu\u1EA3 x\xE9t nghi\u1EC7m v\xE0o ng\xE0y",test_result_check_other_results:"Xem c\xE1c k\u1EBFt qu\u1EA3 kh\xE1c",call_us:"Li\xEAn h\u1EC7 Diag",test_result_time_support:"T\u1EEB 06:00 - 21:00",test_result_sample_could_not_processed:"Kh\xF4ng th\u1EC3 x\u1EED l\xFD m\u1EABu b\u1EA1n \u0111\xE3 g\u1EEDi.",test_result_contact_support:"Xin li\xEAn h\u1EC7 b\u1ED9 ph\u1EADn CSKH c\u1EE7a ch\xFAng t\xF4i \u0111\u1EC3 \u0111\u01B0\u1EE3c h\u1ED7 tr\u1EE3 th\xEAm",test_result_being_prepared:"M\u1EABu c\u1EE7a b\u1EA1n \u0111ang \u0111\u01B0\u1EE3c x\xE9t nghi\u1EC7m.",test_result_receive_sms_2_days:"B\u1EA1n s\u1EBD nh\u1EADn \u0111\u01B0\u1EE3c tin nh\u1EAFn SMS ngay khi c\xF3 k\u1EBFt qu\u1EA3 x\xE9t nghi\u1EC7m.",test_result_note:"T\u01B0 v\u1EA5n t\u1EEB b\xE1c s\u0129",test_result_measured_in:"\u0111\u01A1n v\u1ECB t\xEDnh l\xE0",test_result_critical:"Nguy hi\u1EC3m",test_result_high:"Cao",test_result_low:"Th\u1EA5p",test_result_normal:"B\xECnh th\u01B0\u1EDDng",test_result_about:"\xDD ngh\u0129a c\u1EE7a",test_result_all_bookings:"T\u1EA5t c\u1EA3 l\u1ECBch h\u1EB9n",test_result_more_bookings:"L\u1ECBch h\u1EB9n kh\xE1c",test_result_no_booking_found:"Kh\xF4ng c\xF3 l\u1ECBch h\u1EB9n n\xE0o",test_result_message_no_booking_yet:"B\u1EA1n ch\u01B0a t\u1EA1o l\u1ECBch h\u1EB9n x\xE9t nghi\u1EC7m n\xE0o",test_result_support:"H\u1ED7 tr\u1EE3",test_result_find_nearest_diag_branch:"T\xECm chi nh\xE1nh g\u1EA7n nh\u1EA5t",test_result_no_results_found:"Ch\u01B0a c\xF3 k\u1EBFt qu\u1EA3 n\xE0o",test_result_book_to_show_result:"\u0110\u1EB7t h\u1EB9n x\xE9t nghi\u1EC7m ngay \u0111\u1EC3 xem k\u1EBFt qu\u1EA3",test_result_doctor_appointment:"\u0110\u1EB7t h\u1EB9n v\u1EDBi b\xE1c s\u0129",test_result_free:"Mi\u1EC5n ph\xED",test_result_more_about_your_results:"Hi\u1EC3u r\xF5 h\u01A1n v\u1EC1 k\u1EBFt qu\u1EA3 c\u1EE7a b\u1EA1n",test_result_choose_time:"Ch\u1ECDn ng\xE0y h\u1EB9n",test_result_reset_all:"Ch\u1ECDn l\u1EA1i",test_result_opening_slots:"Ch\u1ECDn gi\u1EDD",test_result_book_appointment:"\u0110\u1EB7t l\u1ECBch h\u1EB9n",test_result_successfully_booked:"\u0110\u1EB7t h\u1EB9n th\xE0nh c\xF4ng",test_result_have_an_appointment_with_doctor:"B\u1EA1n c\xF3 l\u1ECBch h\u1EB9n v\u1EDBi b\xE1c s\u0129 c\u1EE7a Diag v\xE0o {time} ng\xE0y {date}.",test_result_book_appointment_error_title:"\u0110\xE3 c\xF3 l\u1ED7i x\u1EA3y ra...",test_result_book_appointment_error_description:"B\u1EA1n vui l\xF2ng th\u1EED l\u1EA1i ho\u1EB7c li\xEAn h\u1EC7 Diag qua hotline 19001717 n\u1EBFu v\u1EABn kh\xF4ng th\u1EC3 \u0111\u1EB7t h\u1EB9n th\xE0nh c\xF4ng. ",test_result_upcoming_appointment:"L\u1ECBch h\u1EB9n s\u1EAFp t\u1EDBi",test_result_date_at_time:"v\xE0o {time} ng\xE0y {date}",test_result_get_started:"B\u1EAFt \u0111\u1EA7u",test_result_book_first_test:"\u0110\u1EB7t h\u1EB9n x\xE9t nghi\u1EC7m ngay",test_result_booking_account_code:"M\xE3 t\xE0i kho\u1EA3n:",test_result_booking_document_type_id_number:"CMND/CCCD:",test_result_booking_document_type_passport_no:"H\u1ED9 chi\u1EBFu:",test_result_booking_patient:"B\u1EC7nh nh\xE2n",test_result_booking_doctor:"B\xE1c s\u0129",test_result_booking_booking_number:"M\xE3 \u0111\u1EB7t ch\u1ED7 c\u1EE7a b\u1EA1n",test_result_booking_results_will_be_there:"Xem k\u1EBFt qu\u1EA3 t\u1EA1i \u0111\xE2y khi ho\xE0n t\u1EA5t...",test_result_booking_booking_canceled:"L\u1ECBch h\u1EB9n c\u1EE7a b\u1EA1n \u0111\xE3 hu\u1EF7",test_result_booking_next_step:"B\u01B0\u1EDBc ti\u1EBFp theo",test_result_booking_diag_contact_you_and_check:"Diag s\u1EBD li\xEAn h\u1EC7 \u0111\u1EC3 s\u1EAFp x\u1EBFp l\u1ECBch h\u1EB9n ph\xF9 h\u1EE3p v\u1EDBi th\u1EDDi gian c\u1EE7a b\u1EA1n.",test_result_booking_find_location_center:"T\xECm chi nh\xE1nh Diag",test_result_booking_view_results:"Xem k\u1EBFt qu\u1EA3 c\u1EE7a t\xF4i",test_result_booking_test_results:"K\u1EBFt qu\u1EA3 x\xE9t nghi\u1EC7m",test_result_booking_need_collect_sample:"Y t\xE1 c\u1EA7n l\u1EA5y m\u1EABu c\u1EE7a b\u1EA1n.",test_result_booking_processing_sample:"Ch\xFAng t\xF4i \u0111ang x\u1EED l\xFD m\u1EABu c\u1EE7a b\u1EA1n.",test_result_booking_fully_ready:"K\u1EBFt qu\u1EA3 x\xE9t nghi\u1EC7m c\u1EE7a b\u1EA1n \u0111\xE3 ho\xE0n t\u1EA5t.",test_result_booking_booking_details:"Chi ti\u1EBFt l\u1ECBch h\u1EB9n",test_result_booking_payment_status_pay_later:"Thanh to\xE1n sau",test_result_booking_payment_status_paid_online:"Thanh to\xE1n online",test_result_booking_payment_status_paid:"\u0110\xE3 thanh to\xE1n",test_result_booking_payment_status_refund_in_progress:"\u0110ang ho\xE0n ti\u1EC1n",test_result_booking_payment_status_refunded:"\u0110\xE3 ho\xE0n ti\u1EC1n",test_result_booking_payment_status_canceled:"\u0110\xE3 hu\u1EF7",test_result_booking_booking_status_created:"\u0110\xE3 t\u1EA1o",test_result_booking_booking_status_in_progress:"\u0110ang x\u1EED l\xFD m\u1EABu",test_result_booking_booking_status_completed:"Ho\xE0n t\u1EA5t",test_result_booking_booking_status_canceled:"\u0110\xE3 hu\u1EF7",test_result_booking_total_payment:"T\u1ED5ng thanh to\xE1n",test_result_booking_note:"Ghi ch\xFA",test_result_booking_support_zalo:"Zalo:",test_result_booking_support_hotline:"Hotline:",test_result_booking_support_email:"Email:",test_result_booking_sample_collection:"L\u1EA5y m\u1EABu",test_result_booking_testing_location:"\u0110\u1ECBa \u0111i\u1EC3m x\xE9t nghi\u1EC7m",test_result_booking_address:"\u0110\u1ECBa ch\u1EC9",test_result_booking_expected_date:"Ng\xE0y d\u1EF1 ki\u1EBFn",test_result_booking_tests:"X\xE9t nghi\u1EC7m",test_result_booking_packages:"G\xF3i x\xE9t nghi\u1EC7m",test_result_booking_imaging_services:"Ch\u1EA9n \u0111o\xE1n h\xECnh \u1EA3nh",date_time:{day_parts:{morning:"S\xE1ng",afternoon:"Chi\u1EC1u",evening:"T\u1ED1i"}}}},zb={psc:{gender:"Gender",male:"Male",female:"Female",test_result_my_profile:"H\u1ED3 s\u01A1 c\u1EE7a t\xF4i",test_result_if_you_wish_to_edit_your_profile:'If you wish to edit your profile, please <a href="tel:1900 1717" class="contact-support">contact support</a>',test_result_view_my_bookings:"View my bookings",test_result_test_more_for_better_health:"Test more for better health",test_result_book_general_screening_panel_now:"Book General Screening Panel now",test_result_status_not_ready:"Not ready yet",test_result_status_couldnt_process:"Couldn't process",test_result_status_ready:"Ready",test_result_status_partially_ready:"Partially ready",test_result_order:"Order",test_result_all_results:"All results",test_result_load_older_results:"Load older results",test_result_all_results_loaded:"All results are loaded",test_result_hi:"Hi,",test_result_your_result_ready:"Your results are ready",test_result_result_partial_completed:"Your results are partially ready",test_result_your_result_not_ready:"Your results are not ready yet",test_result_sample_collected:"Collected:",test_result_result_ready:"Ready:",test_result_sample_collected_on:"Your sample was collected on",test_result_result_released_on:"and your results were released on ",test_result_check_other_results:"Check other results",call_us:"Call for support",test_result_time_support:"From 06:00 - 21:00",test_result_sample_could_not_processed:"Results could not be processed",test_result_contact_support:"Please contact our customer service for further support.",test_result_being_prepared:"Your results are being prepared.",test_result_receive_sms_2_days:"You will receive a SMS as soon as your results are ready.",test_result_note:"Doctor's comments",test_result_measured_in:"measured in",test_result_critical:"Critical",test_result_high:"High",test_result_low:"Low",test_result_normal:"Normal",test_result_about:"About",test_result_all_bookings:"All bookings",test_result_more_bookings:"More Bookings",test_result_no_booking_found:"No booking found",test_result_message_no_booking_yet:"You haven't created any booking yet",test_result_support:"Support",test_result_find_nearest_diag_branch:"Find the nearest branch",test_result_no_results_found:"No results found",test_result_book_to_show_result:"Book a test to show results",test_result_doctor_appointment:"Doctor Appointment",test_result_free:"Free",test_result_more_about_your_results:"Find out more about your resutls",test_result_choose_time:"Choose a time",test_result_reset_all:"Reset all",test_result_opening_slots:"Opening slots",test_result_book_appointment:"Book an appointment",test_result_successfully_booked:"Successfully booked",test_result_have_an_appointment_with_doctor:"You have an appointment with our doctor at {time} on {date}.",test_result_book_appointment_error_title:"Something went wrong...",test_result_book_appointment_error_description:"Please try to book the appointment again or contact Diag via hotline 19001717 if the error still happens",test_result_upcoming_appointment:"Upcoming appoinment",test_result_date_at_time:"{date} at {time}",test_result_get_started:"Get started",test_result_book_first_test:"Book your first test now",test_result_booking_account_code:"Account code:",test_result_booking_document_type_id_number:"ID number:",test_result_booking_document_type_passport_no:"Passport no:",test_result_booking_patient:"Patient",test_result_booking_doctor:"Doctor",test_result_booking_booking_number:"Your booking number",test_result_booking_results_will_be_there:"Your results will be here...",test_result_booking_booking_canceled:"Your booking was cancelled",test_result_booking_next_step:"Next steps",test_result_booking_diag_contact_you_and_check:"Diag will contact you and check for your preferred time slot.",test_result_booking_find_location_center:"Find location center",test_result_booking_view_results:"View my results",test_result_booking_test_results:"Test results",test_result_booking_need_collect_sample:"Nurse needs to collect your sample.",test_result_booking_processing_sample:"We are processing your sample.",test_result_booking_fully_ready:"Your results are fully ready now.",test_result_booking_booking_details:"Booking details",test_result_booking_payment_status_pay_later:"Pay later",test_result_booking_payment_status_paid_online:"Paid online",test_result_booking_payment_status_paid:"Paid",test_result_booking_payment_status_refund_in_progress:"Refunding",test_result_booking_payment_status_refunded:"Refunded",test_result_booking_payment_status_canceled:"Canceled",test_result_booking_booking_status_created:"Created",test_result_booking_booking_status_in_progress:"In progress",test_result_booking_booking_status_completed:"Completed",test_result_booking_booking_status_canceled:"Canceled",test_result_booking_total_payment:"Total Payment",test_result_booking_note:"Note",test_result_booking_support_zalo:"Zalo:",test_result_booking_support_hotline:"Hotline:",test_result_booking_support_email:"Email:",test_result_booking_sample_collection:"Sample collection",test_result_booking_testing_location:"Testing location",test_result_booking_address:"Address",test_result_booking_expected_date:"Expected date",test_result_booking_tests:"Tests",test_result_booking_packages:"Packages",test_result_booking_imaging_services:"Imaging services",date_time:{day_parts:{morning:"Morning",afternoon:"Afternoon",evening:"Evening"}}}},fL={install:(e,t)=>{if(t!=null&&t.i18n){const{mergeLocaleMessage:n}=t.i18n.global;n("vi",Yb),n("en",zb)}}};Lt.AccountSegment=hd,Lt.BookAppointment=$b,Lt.BookAppointmentModal=IO,Lt.BookingDetail=Gw,Lt.BookingDetailDesktop=tC,Lt.BookingList=XO,Lt.BookingListItem=Ub,Lt.BookingStatus=bn,Lt.BottomCursedType=ea,Lt.CallUsFilledButton=u_,Lt.CallUsTextButton=aL,Lt.CookieName=bC,Lt.CtaButton=aa,Lt.DayPartType=Rn,Lt.DocumentType=no,Lt.EventBusName=_C,Lt.EventType=gC,Lt.Gender=so,Lt.LoadingSkeleton=Ul,Lt.LsKey=c_,Lt.MyProfile=sL,Lt.NoItemsFound=Ad,Lt.PatientFullInfo=LC,Lt.PaymentStatus=Fn,Lt.RejectedResult=d_,Lt.ResultReady=hL,Lt.ResultSegmentNormalType=Zp,Lt.ResultSegmentValueOPR=Qp,Lt.ResultType=Jp,Lt.ServiceType=ta,Lt.SupportEmail=mC,Lt.SupportPhone=Wl,Lt.TestResultConclusion=As,Lt.TestResultDetail=TA,Lt.TestResultHistoryDetail=Vb,Lt.TestResultHistoryDetailModal=cO,Lt.TestResultList=WA,Lt.TestResultListItem=Wb,Lt.TestResultStatus=We,Lt.TestResultTemplate=dd,Lt.TestStatus=Kp,Lt.default=fL,Lt.en=zb,Lt.vi=Yb,Object.defineProperties(Lt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
101
+ `),zt=document.createElement("li"),gt=Et.querySelector("ul");Wt.forEach(xt=>{gt==null||gt.appendChild(zt);const jt=document.createElement("div");zt.appendChild(jt);const fe=document.createTextNode(xt);jt.appendChild(fe)});const Vt=Et.querySelector("ul");for(;Vt!=null&&Vt.firstChild;)Vt.firstChild.remove();Vt==null||Vt.appendChild(zt),Et.style.opacity="1";const{offsetLeft:we,offsetTop:ge}=pt.canvas;Et.style.left=`${we+Dt.caretX}px`,Et.style.top=`${ge+Dt.caretY}px`,Et.style.padding=`${Dt.options.padding}px ${Dt.options.padding}px`}},mt=yt=>s(new Date(yt)),vt=()=>{window&&(window.ResizeObserver=window.ResizeObserver||XT),d.value.no=c.value-1>0?c.value-1:0,x.value=V.value.map(yt=>T(yt)),C.value=V.value.map(yt=>U(yt)),r.value&&(i=new gc(r.value,{type:"line",options:{responsive:!0,maintainAspectRatio:!0,plugins:{legend:{display:!1},tooltip:{enabled:!1,external:lt,padding:12}}},data:{datasets:[f.value],labels:x.value}}))};return u.onMounted(()=>{vt()}),(yt,pt)=>(u.openBlock(),u.createElementBlock("div",qT,[u.createElementVNode("div",KT,[u.createElementVNode("div",JT,[u.createElementVNode("div",ZT,[u.createElementVNode("div",QT,u.toDisplayString(t.historyData.test_name),1),u.createElementVNode("div",null,u.toDisplayString(`${yt.$t("psc.test_result_measured_in")} ${t.historyData.uom_code}`),1)]),u.withDirectives(u.createElementVNode("div",tO,[u.createVNode(u.unref(nr),{size:"sm",type:"icon",class:"psc-rounded-full psc-w-8 psc-h-8 !psc-p-0 psc-border psc-border-black/[0.1] psc-bg-transparent",disabled:u.unref(I),onClick:tt},{default:u.withCtx(()=>[u.createElementVNode("i",{class:u.normalizeClass(["dgic-expand-left psc-text-2xl -psc-ml-0.5",u.unref(I)?"psc-text-black/[0.4]":"psc-text-black/[0.85]"])},null,2)]),_:1},8,["disabled"]),u.createVNode(u.unref(nr),{size:"sm",type:"icon",class:"psc-rounded-full psc-w-8 psc-h-8 !psc-p-0 psc-border psc-border-black/[0.1] psc-bg-transparent",disabled:u.unref(P),onClick:W},{default:u.withCtx(()=>[u.createElementVNode("i",{class:u.normalizeClass(["dgic-expand-right psc-text-2xl -psc-mr-0.5",u.unref(P)?"psc-text-black/[0.4]":"psc-text-black/[0.85]"])},null,2)]),_:1},8,["disabled"])],512),[[u.vShow,u.unref(w)]])]),u.createElementVNode("div",eO,[u.createElementVNode("canvas",{ref_key:"chartRef",ref:r},null,512)])]),u.createElementVNode("div",nO,[u.createElementVNode("div",sO,u.toDisplayString(`${yt.$t("psc.test_result_about")} ${t.historyData.test_name}`),1),u.createElementVNode("div",iO,u.toDisplayString(t.historyData.purpose),1)])]))}}),WV="",rO=u.createElementVNode("div",null,null,-1),oO={key:0,class:"history-content psc-flex psc-justify-center psc-items-center psc-pb-[53px]"},aO={class:"psc-animate-spin"},lO={key:1,class:"history-content"},cO=u.defineComponent({__name:"TestResultHistoryDetailModal",props:{modelValue:{type:Boolean},historyData:null,loading:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,s=u.computed({get(){return n.modelValue},set(r){t("update:modelValue",r)}}),i=()=>{s.value=!1};return(r,a)=>(u.openBlock(),u.createBlock(u.unref(zp),{modelValue:u.unref(s),"onUpdate:modelValue":a[1]||(a[1]=c=>u.isRef(s)?s.value=c:null),class:"test-result-history-detail-modal",fullscreen:""},{default:u.withCtx(()=>[u.createVNode(u.unref(jp),null,{default:u.withCtx(()=>[rO,u.createElementVNode("div",null,[u.createElementVNode("i",{class:"dgic-chevron-down-thin psc-text-3xl psc-cursor-pointer psc-text-black/[0.85]",onClick:a[0]||(a[0]=c=>i())})])]),_:1}),u.createVNode(u.unref(Gp),{class:"modal-body"},{default:u.withCtx(()=>[n.loading?(u.openBlock(),u.createElementBlock("div",oO,[u.createElementVNode("div",aO,[u.createVNode(u.unref(zs),{icon:"dgic-spinner-8",class:"psc-text-4xl"})])])):(u.openBlock(),u.createElementBlock("div",lO,[u.createVNode(Vb,{class:"psc-pb-4","history-data":n.historyData},null,8,["history-data"])]))]),_:1})]),_:1},8,["modelValue"]))}}),HV="",uO=u.defineComponent({__name:"DateItem",props:{value:null,disabled:{type:Boolean},selected:{type:Boolean}},setup(e){const t=e,{dayShortNames:n}=or(),s=new Date,i=u.computed(()=>t.value.getDate()===s.getDate()&&t.value.getMonth()===s.getMonth()&&t.value.getFullYear()===s.getFullYear());return(r,a)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass([{"psc-cursor-pointer":!t.disabled},"psc-max-w-[38px]"])},[u.createElementVNode("div",{class:u.normalizeClass(["psc-w-[38px] psc-h-[38px] psc-rounded-full psc-p-2.5 psc-flex psc-items-center psc-justify-center",{"psc-text-black/[0.4] psc-border psc-border-black/[0.1]":t.disabled,"psc-text-black/[0.85] psc-bg-[#e6f0fe]":!t.disabled,"psc-text-white !psc-bg-primary psc-font-semibold":t.selected,"psc-border psc-border-primary psc-text-primary psc-bg-transparent":u.unref(i)&&!t.disabled&&!t.selected}])},[u.createElementVNode("span",null,u.toDisplayString(t.value.getDate()),1)],2),u.createElementVNode("div",{class:u.normalizeClass(["psc-text-center psc-mt-1",{"psc-text-black/[0.4]":t.disabled,"psc-text-black/[0.6]":!t.disabled,"psc-font-semibold psc-text-black/[0.85]":t.selected}])},u.toDisplayString(u.unref(n)[t.value.getDay()]),3)],2))}}),dO=u.defineComponent({__name:"DayPartItem",props:{text:null,disabled:{type:Boolean},selected:{type:Boolean}},setup(e){const t=e;return(n,s)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["psc-py-3 psc-rounded-lg psc-font-semibold psc-border psc-text-center",{"psc-text-black/[0.4] psc-border-black/[0.1]":t.disabled,"psc-text-black/[0.85] psc-border-black/[0.25] psc-cursor-pointer":!t.disabled,"!psc-text-primary psc-border-primary psc-bg-[#e6f0fe]":t.selected}])},u.toDisplayString(t.text),3))}}),Bb=(e,t)=>{let n=e.toString();for(;n.length<t;)n="0"+n;return n},hO=u.defineComponent({__name:"TimeSlotItem",props:{timeSlot:null,selected:{type:Boolean},icon:{default:""}},setup(e){const t=e,n=s=>`${Bb(s.getHours(),2)}:${Bb(s.getMinutes(),2)}`;return(s,i)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["psc-py-3 psc-rounded-lg psc-text-black/[0.85] psc-font-semibold psc-border psc-border-black/[0.25] psc-flex psc-items-center psc-justify-center psc-cursor-pointer",{"!psc-text-primary psc-border-primary psc-bg-[#e6f0fe]":t.selected}])},[t.icon?(u.openBlock(),u.createElementBlock("i",{key:0,class:u.normalizeClass([t.icon,"psc-text-xl psc-mr-2"])},null,2)):u.createCommentVNode("",!0),u.createElementVNode("span",null,u.toDisplayString(n(t.timeSlot)),1)],2))}}),fO={class:"book-appointment psc-space-y-8"},pO={class:"psc-flex"},mO={key:0},_O={class:"psc-pb-6 psc-font-semibold psc-text-black/[0.85]"},gO={class:"psc-flex -psc-mx-2"},bO=u.defineComponent({__name:"BookAppointment",props:{timeSlots:null,disabled:{type:Boolean,default:!1}},emits:["book"],setup(e,{expose:t,emit:n}){const s=e,{t:i}=qe(),{formatDateHuge:r}=or(),a=u.computed(()=>s.timeSlots.map(U=>new Date(U))),c=u.ref([]),d=u.ref(),f=u.ref(),m=u.ref(),b=u.computed(()=>{var W;const U={[Rn.Morning]:"dgic-morning-thin",[Rn.Afternoon]:"dgic-afternoon-thin",[Rn.Evening]:"dgic-evening-thin"};return(W=f.value)!=null&&W.value?U[f.value.value]:""}),x=u.computed(()=>({[Rn.Morning]:i("psc.date_time.day_parts.morning"),[Rn.Afternoon]:i("psc.date_time.day_parts.afternoon"),[Rn.Evening]:i("psc.date_time.day_parts.evening")})),C=()=>{var U;n("book",(U=m.value)==null?void 0:U.toISOString())},w=()=>{V(),f.value=void 0,m.value=void 0},I=U=>{U.disabled||s.disabled||(d.value=U,f.value=void 0,m.value=void 0)},P=U=>{U.disabled||s.disabled||(f.value=U,m.value=void 0)},D=U=>{s.disabled||(m.value=U)},M=(U,W,tt)=>{const Q=U.split(":");let dt=new Date(tt).getTime();dt=new Date(dt).setHours(+Q[0]),dt=new Date(dt).setMinutes(+Q[1]),dt=new Date(dt).setSeconds(0),dt=new Date(dt).setMilliseconds(0);const lt=W.split(":");let mt=new Date(tt).getTime();return mt=new Date(mt).setHours(+lt[0]),mt=new Date(mt).setMinutes(+lt[1]),mt=new Date(mt).setSeconds(0),mt=new Date(mt).setMilliseconds(0),a.value.filter(vt=>new Date(dt)<=vt&&vt<=new Date(mt))},V=()=>{const U=c.value.find(W=>!W.disabled);U&&(d.value=U)},L=()=>{for(let U=0;U<7;U++){const W=new Date,tt=new Date(W.setDate(W.getDate()+U)),Q=M("07:00","12:50",tt),dt=M("13:00","18:50",tt),lt=M("19:00","21:00",tt),mt=[{text:x.value[Rn.Morning],value:Rn.Morning,start:"07:00",end:"12:50",timeSlots:Q,disabled:Q.length===0},{text:x.value[Rn.Afternoon],value:Rn.Afternoon,start:"13:00",end:"18:50",timeSlots:dt,disabled:dt.length===0},{text:x.value[Rn.Evening],value:Rn.Evening,start:"19:00",end:"21:00",timeSlots:lt,disabled:lt.length===0}];c.value.push({value:tt,disabled:mt.every(vt=>vt.disabled),dayParts:mt})}};return(()=>{L(),V()})(),t({resetAll:w}),(U,W)=>{var tt,Q,dt;return u.openBlock(),u.createElementBlock("div",fO,[u.createElementVNode("div",pO,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(c.value,(lt,mt)=>{var vt;return u.openBlock(),u.createElementBlock("div",{key:`date${mt}`,class:"book-appointment__date"},[u.createVNode(uO,{value:lt.value,disabled:lt.disabled,selected:((vt=d.value)==null?void 0:vt.value)===lt.value,onClick:yt=>I(lt)},null,8,["value","disabled","selected","onClick"])])}),128))]),d.value?(u.openBlock(),u.createElementBlock("div",mO,[u.createElementVNode("div",_O,u.toDisplayString(u.unref(r)(d.value.value)),1),u.createElementVNode("div",gO,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(d.value.dayParts,(lt,mt)=>{var vt;return u.openBlock(),u.createElementBlock("div",{key:`dayPart${mt}`,class:"psc-w-1/3 psc-px-2"},[u.createVNode(dO,{text:lt.text,disabled:lt.disabled,selected:((vt=f.value)==null?void 0:vt.value)===lt.value,onClick:yt=>P(lt)},null,8,["text","disabled","selected","onClick"])])}),128))])])):u.createCommentVNode("",!0),u.createElementVNode("div",null,[u.withDirectives(u.createElementVNode("div",{class:"psc-pb-6 psc-font-semibold psc-text-black/[0.85]"},u.toDisplayString(U.$t("psc.test_result_opening_slots")),513),[[u.vShow,f.value]]),u.createElementVNode("div",{class:u.normalizeClass(["psc-flex psc-flex-wrap -psc-mx-2 -psc-my-2 psc-overflow-y-auto psc-max-h-[20vh] psc-h-[20vh] psc-transition-[max-height]",{"!psc-max-h-0":!f.value,"!psc-max-h-[11vh]":((Q=(tt=f.value)==null?void 0:tt.timeSlots)==null?void 0:Q.length)&&f.value.timeSlots.length<=3}])},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList((dt=f.value)==null?void 0:dt.timeSlots,(lt,mt)=>(u.openBlock(),u.createElementBlock("div",{key:`timeSlot${mt}`,class:"psc-w-1/3 psc-px-2 psc-py-2"},[u.createVNode(hO,{"time-slot":lt,selected:m.value===lt,icon:u.unref(b),onClick:vt=>D(lt)},null,8,["time-slot","selected","icon","onClick"])]))),128))],2)]),u.createVNode(u.unref(nr),{type:"primary",class:"psc-w-full",disabled:!m.value||s.disabled,onClick:C},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(U.$t("psc.test_result_book_appointment")),1)]),_:1},8,["disabled"])])}}}),YV="",$b=lr(bO,[["__scopeId","data-v-94386939"]]),yO={class:"psc-flex psc-flex-wrap psc-space-y-4 psc-pb-8"},kO={class:"psc-w-full psc-text-center"},vO={class:"psc-w-full psc-text-center psc-text-xl psc-font-semibold psc-text-black/[0.85]"},xO={class:"psc-w-full psc-text-center psc-text-black/[0.6]"},EO=u.defineComponent({__name:"ErrorMessage",setup(e){return(t,n)=>(u.openBlock(),u.createElementBlock("div",yO,[u.createElementVNode("div",kO,[u.createVNode(u.unref(zs),{icon:"dgic-circle-error-fill",class:"psc-text-[80px] psc-text-error"})]),u.createElementVNode("div",vO,u.toDisplayString(t.$t("psc.test_result_book_appointment_error_title")),1),u.createElementVNode("div",xO,u.toDisplayString(t.$t("psc.test_result_book_appointment_error_description")),1)]))}}),wO={class:"psc-flex psc-flex-wrap psc-space-y-4 psc-pb-8"},CO={class:"psc-w-full psc-text-center"},DO={class:"psc-w-full psc-text-center psc-text-xl psc-font-semibold psc-text-black/[0.85]"},SO={class:"psc-w-full psc-text-center psc-text-black/[0.6]"},NO=u.defineComponent({__name:"SuccessMessage",props:{timeSlot:null},setup(e){const t=e,{formatTime:n,formatDate:s}=or(),i=u.computed(()=>n(new Date(t.timeSlot))),r=u.computed(()=>s(new Date(t.timeSlot)));return(a,c)=>(u.openBlock(),u.createElementBlock("div",wO,[u.createElementVNode("div",CO,[u.createVNode(u.unref(zs),{icon:"dgic-circle-check",class:"psc-text-[80px] psc-text-success"})]),u.createElementVNode("div",DO,u.toDisplayString(a.$t("psc.test_result_successfully_booked")),1),u.createElementVNode("div",SO,u.toDisplayString(a.$t("psc.test_result_have_an_appointment_with_doctor",{time:u.unref(i),date:u.unref(r)})),1)]))}}),MO={class:"psc-flex-1 psc-text-center psc-font-semibold psc-text-black/[0.85]"},TO={class:"psc-flex-1 psc-text-right"},OO={key:0,class:"modal-body__content psc-flex psc-justify-center psc-items-center psc-pb-[53px]"},AO={class:"psc-animate-spin"},LO={key:1,class:"modal-body__content"},IO=u.defineComponent({__name:"BookAppointmentModal",props:{modelValue:{type:Boolean},timeSlots:null,loading:{type:Boolean},disabled:{type:Boolean},showSuccess:{type:Boolean,default:!1},showError:{type:Boolean,default:!1}},emits:["update:modelValue","book"],setup(e,{emit:t}){const n=e,s=u.ref(null),i=u.computed({get(){return n.modelValue},set(f){t("update:modelValue",f)}}),r=u.ref(""),a=f=>{r.value=f,t("book",f)},c=()=>{var f;(f=s.value)==null||f.resetAll()},d=()=>{i.value=!1};return(f,m)=>(u.openBlock(),u.createBlock(u.unref(zp),{modelValue:u.unref(i),"onUpdate:modelValue":m[1]||(m[1]=b=>u.isRef(i)?i.value=b:null),class:"book-appointment-modal",fullscreen:""},{default:u.withCtx(()=>[u.createVNode(u.unref(jp),null,{default:u.withCtx(()=>[!n.showSuccess&&!n.showError?(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[u.createElementVNode("div",{class:"psc-flex-1 psc-text-primary psc-text-sm psc-cursor-pointer hover:psc-text-primary/[0.9]",onClick:c},u.toDisplayString(f.$t("psc.test_result_reset_all")),1),u.createElementVNode("div",MO,u.toDisplayString(f.$t("psc.test_result_choose_time")),1)],64)):u.createCommentVNode("",!0),u.createElementVNode("div",TO,[u.createElementVNode("i",{class:"dgic-close-round psc-text-2xl psc-cursor-pointer psc-text-[#6a6b7a]",onClick:m[0]||(m[0]=b=>d())})])]),_:1}),u.createVNode(u.unref(Gp),{class:"modal-body"},{default:u.withCtx(()=>[n.loading?(u.openBlock(),u.createElementBlock("div",OO,[u.createElementVNode("div",AO,[u.createVNode(u.unref(zs),{icon:"dgic-spinner-8",class:"psc-text-4xl"})])])):(u.openBlock(),u.createElementBlock("div",LO,[!n.showSuccess&&!n.showError?(u.openBlock(),u.createBlock($b,{key:0,ref_key:"bookAppointmentRef",ref:s,class:"psc-pb-4","time-slots":n.timeSlots,disabled:n.disabled,onBook:a},null,8,["time-slots","disabled"])):u.createCommentVNode("",!0),n.showSuccess?(u.openBlock(),u.createBlock(NO,{key:1,"time-slot":r.value},null,8,["time-slot"])):u.createCommentVNode("",!0),n.showError?(u.openBlock(),u.createBlock(EO,{key:2})):u.createCommentVNode("",!0)]))]),_:1})]),_:1},8,["modelValue"]))}}),zV="",PO={class:"psc-p-3 psc-rounded-lg psc-cursor-pointer psc-box-shadow hover:psc-bg-slate-100"},FO={class:"psc-space-y-3"},RO={class:"psc-flex psc-items-center"},VO={class:"psc-flex-initial psc-font-semibold psc-text-primary"},BO={class:"psc-flex-auto psc-pl-2 psc-text-black/[0.6] psc-text-sm psc-font-normal"},$O=u.createElementVNode("div",{class:"psc-flex psc-justify-end !psc-mt-0"},[u.createElementVNode("i",{class:"dgic-chevron-right-thin psc-text-primary psc-text-2xl psc-leading-3"})],-1),UO={class:"psc-flex psc-space-x-2"},Ub=u.defineComponent({__name:"BookingListItem",props:{item:null},setup(e){const t=e;return(n,s)=>(u.openBlock(),u.createElementBlock("div",PO,[u.createElementVNode("div",FO,[u.createElementVNode("div",RO,[u.createElementVNode("div",VO,[u.createElementVNode("span",null,u.toDisplayString(t.item.booking_code),1)]),u.createElementVNode("div",BO,u.toDisplayString(u.unref(to)(t.item.created_at)),1)]),$O]),u.createElementVNode("div",UO,[u.createVNode(Km,{status:t.item.booking_status},null,8,["status"]),u.createVNode(Jm,{status:t.item.payment_status},null,8,["status"])])]))}}),WO={},HO={class:"psc-px-4 psc-text-2xl psc-pb-[30px] psc-font-bold psc-text-black/[0.85]"};function YO(e,t){return u.openBlock(),u.createElementBlock("div",HO,[u.renderSlot(e.$slots,"default")])}const Dh=lr(WO,[["render",YO]]),zO={key:1},jO={class:"psc-px-4 psc-space-y-4"},GO={key:0,class:"psc-px-4 psc-w-full psc-pt-7 psc-text-center"},XO=u.defineComponent({__name:"BookingList",props:{items:null,loading:{type:Boolean},skeletonCount:null,hideLoadMore:{type:Boolean},bookingButtonUrl:{default:""}},emits:["switch-to-detail","click:load-more"],setup(e,{emit:t}){const n=e,{t:s}=qe(),i=async()=>{t("click:load-more")},r=async a=>{t("switch-to-detail",a)};return(a,c)=>!n.loading&&n.items.length===0?(u.openBlock(),u.createBlock(Ad,{key:0,title:a.$t("psc.test_result_no_booking_found"),subtitle:a.$t("psc.test_result_message_no_booking_yet"),"booking-button-url":n.bookingButtonUrl,class:"psc-content-h-full"},null,8,["title","subtitle","booking-button-url"])):(u.openBlock(),u.createElementBlock("div",zO,[u.createVNode(Dh,null,{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(u.unref(s)("psc.test_result_all_bookings")),1)]),_:1}),u.createElementVNode("div",jO,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(n.items,d=>(u.openBlock(),u.createBlock(Ub,{key:d.booking_code,item:d,onClick:f=>r(d)},null,8,["item","onClick"]))),128)),e.loading?(u.openBlock(!0),u.createElementBlock(u.Fragment,{key:0},u.renderList(n.skeletonCount,d=>(u.openBlock(),u.createBlock(Ul,{key:`item${d}`}))),128)):u.createCommentVNode("",!0)]),n.hideLoadMore?u.createCommentVNode("",!0):(u.openBlock(),u.createElementBlock("div",GO,[u.createVNode(u.unref(nr),{type:"secondary",disabled:n.loading,size:"sm","prepend-icon":"dgic-double-chevron-down-thin",onClick:i},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(u.unref(s)("psc.test_result_more_bookings")),1)]),_:1},8,["disabled"])]))]))}}),qO={class:"psc-w-full psc-flex psc-flex-wrap psc-justify-center psc-space-y-2"},KO={key:0,class:"psc-w-full"},JO={class:"psc-flex psc-flex-wrap psc-text-sm psc-text-black/[0.6] -psc-mx-0.5"},ZO={key:0,class:"psc-flex-auto psc-px-0.5"},QO={class:"psc-mr-1"},tA={key:1,class:"psc-flex-auto psc-px-0.5"},eA={class:"psc-mr-1"},nA=u.defineComponent({__name:"ResultReadyV2",props:{testResult:null},setup(e){const t=e,{t:n}=qe(),s=u.computed(()=>Hp(t.testResult.sample_collected_at)),i=u.computed(()=>Hp(t.testResult.result_at)),r=u.computed(()=>t.testResult.result_status===We.Ready);return(a,c)=>(u.openBlock(),u.createElementBlock("div",qO,[u.createVNode(s_,{status:t.testResult.result_status},null,8,["status"]),u.unref(s)||u.unref(r)?(u.openBlock(),u.createElementBlock("div",KO,[u.createElementVNode("div",JO,[u.unref(s)?(u.openBlock(),u.createElementBlock("div",ZO,[u.createElementVNode("span",QO,u.toDisplayString(u.unref(n)("psc.test_result_sample_collected")),1),u.createElementVNode("span",null,u.toDisplayString(u.unref(s)),1)])):u.createCommentVNode("",!0),u.unref(r)?(u.openBlock(),u.createElementBlock("div",tA,[u.createElementVNode("span",eA,u.toDisplayString(u.unref(n)("psc.test_result_result_ready")),1),u.createElementVNode("span",null,u.toDisplayString(u.unref(i)),1)])):u.createCommentVNode("",!0)])])):u.createCommentVNode("",!0)]))}}),sA={class:"psc-w-full"},iA={class:"psc-box-shadow psc-rounded-lg psc-p-3 psc-flex psc-flex-wrap psc-border psc-border-[#e6f0fe]"},rA={class:"psc-flex psc-w-full psc-items-center"},oA={class:"psc-flex-initial psc-px-3 psc-mr-1"},aA={class:"psc-flex-auto"},lA={class:"psc-flex psc-items-center"},cA={class:"psc-text-black/[0.85] psc-font-semibold"},uA={class:"psc-px-2 psc-py-1 psc-rounded-lg psc-bg-[#e6f0fe] psc-uppercase psc-text-primary psc-font-semibold psc-text-xs psc-ml-2"},dA={class:"psc-text-sm psc-text-black/[0.6] psc-pt-1"},hA={class:"psc-w-full psc-pt-3"},fA=u.defineComponent({__name:"BookAppointmentButton",emits:["book"],setup(e,{emit:t}){return(n,s)=>(u.openBlock(),u.createElementBlock("div",sA,[u.createElementVNode("div",iA,[u.createElementVNode("div",rA,[u.createElementVNode("div",oA,[u.createVNode(u.unref(zs),{icon:"dgic-stethoscope-thick",class:"psc-text-2xl psc-text-primary"})]),u.createElementVNode("div",aA,[u.createElementVNode("div",lA,[u.createElementVNode("div",cA,u.toDisplayString(n.$t("psc.test_result_doctor_appointment")),1),u.createElementVNode("div",uA,u.toDisplayString(n.$t("psc.test_result_free")),1)]),u.createElementVNode("div",dA,u.toDisplayString(n.$t("psc.test_result_more_about_your_results")),1)])]),u.createElementVNode("div",hA,[u.createVNode(u.unref(nr),{class:"psc-w-full","prepend-icon":"dgic-date-thick",type:"primary",onClick:s[0]||(s[0]=i=>t("book"))},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(n.$t("psc.test_result_book_appointment")),1)]),_:1})])])]))}}),pA={class:"psc-w-full"},mA={class:"psc-box-shadow psc-text-sm psc-rounded-lg psc-p-3"},_A={class:"psc-font-semibold psc-text-black/[0.85]"},gA={class:"psc-mt-2 psc-text-black/[0.85] psc-relative psc-pl-2 before:psc-content-[''] before:psc-w-[2px] before:psc-h-full before:psc-bg-primary before:psc-absolute before:psc-left-0 before:psc-rounded-lg"},bA=u.defineComponent({__name:"DoctorNote",props:{doctorNote:{default:""}},setup(e){const t=e;return(n,s)=>(u.openBlock(),u.createElementBlock("div",pA,[u.createElementVNode("div",mA,[u.createElementVNode("div",null,[u.createElementVNode("span",_A,u.toDisplayString(n.$t("psc.test_result_note")),1)]),u.createElementVNode("div",gA,u.toDisplayString(t.doctorNote),1)])]))}}),yA={class:"psc-w-full"},kA={class:"psc-box-shadow psc-rounded-lg psc-p-3 psc-flex psc-flex-wrap psc-border psc-border-[#e6f0fe]"},vA={class:"psc-flex psc-w-full psc-items-center"},xA={class:"psc-flex-initial psc-px-3 psc-mr-1"},EA={class:"psc-flex-auto"},wA={class:"psc-text-black/[0.85] psc-font-semibold"},CA={class:"psc-text-sm psc-text-black/[0.6] psc-pt-1"},DA=u.defineComponent({__name:"UpcomingAppointment",props:{timeSlot:null},setup(e){const t=e,{formatDate:n,formatTime:s}=or(),i=u.computed(()=>n(new Date(t.timeSlot))),r=u.computed(()=>s(new Date(t.timeSlot)));return(a,c)=>(u.openBlock(),u.createElementBlock("div",yA,[u.createElementVNode("div",kA,[u.createElementVNode("div",vA,[u.createElementVNode("div",xA,[u.createVNode(u.unref(zs),{icon:"dgic-stethoscope-thick",class:"psc-text-2xl psc-text-primary"})]),u.createElementVNode("div",EA,[u.createElementVNode("div",wA,u.toDisplayString(a.$t("psc.test_result_upcoming_appointment")),1),u.createElementVNode("div",CA,u.toDisplayString(a.$t("psc.test_result_date_at_time",{date:u.unref(i),time:u.unref(r)})),1)])])])]))}}),SA={key:0,class:"consumer-test-result__ready"},NA={class:"psc-px-4"},MA={key:1},TA=u.defineComponent({__name:"TestResultDetail",props:{testResult:null,loading:{type:Boolean},ctaButtonUrl:null,hidePatientInfo:{type:Boolean,default:!1}},emits:["click:book-appointment"],setup(e,{emit:t}){const n=e,s=u.computed(()=>[We.Ordered,We.InProgress,We.Ready,We.PartiallyComplete].includes(n.testResult.result_status)),i=u.computed(()=>n.testResult.template_type===dd.HPV&&[We.Ordered,We.InProgress].includes(n.testResult.result_status));return(r,a)=>(u.openBlock(),u.createElementBlock("div",null,[u.createVNode(u.unref(ud),{loading:n.loading},null,8,["loading"]),n.loading?u.createCommentVNode("",!0):(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[u.unref(s)?(u.openBlock(),u.createElementBlock("div",SA,[u.createElementVNode("div",null,[n.hidePatientInfo?u.createCommentVNode("",!0):(u.openBlock(),u.createBlock(n_,{key:0,"first-name":n.testResult.first_name,class:"psc-px-4 psc-pb-2"},null,8,["first-name"])),u.createVNode(nA,{"test-result":n.testResult,class:"psc-px-4 psc-pb-4"},null,8,["test-result"]),n.testResult.is_free_consultant?(u.openBlock(),u.createBlock(fA,{key:1,class:"psc-px-4 psc-mb-4",onBook:a[0]||(a[0]=c=>t("click:book-appointment"))})):u.createCommentVNode("",!0),n.testResult.doctor_note?(u.openBlock(),u.createBlock(bA,{key:2,"doctor-note":n.testResult.doctor_note,class:"psc-px-4 psc-mb-4"},null,8,["doctor-note"])):(u.openBlock(),u.createElementBlock(u.Fragment,{key:3},[n.testResult.consult_time?(u.openBlock(),u.createBlock(DA,{key:0,"time-slot":n.testResult.consult_time,class:"psc-px-4 psc-mb-4"},null,8,["time-slot"])):u.createCommentVNode("",!0)],64))]),u.createElementVNode("div",NA,[u.unref(i)?u.createCommentVNode("",!0):u.renderSlot(r.$slots,"default",{key:0}),n.testResult.can_booking?(u.openBlock(),u.createElementBlock("div",MA,[u.createVNode(aa,{class:"psc-mt-[20px]",url:n.ctaButtonUrl,title:r.$t("psc.test_result_test_more_for_better_health"),subtitle:r.$t("psc.test_result_book_general_screening_panel_now")},null,8,["url","title","subtitle"])])):u.createCommentVNode("",!0)])])):(u.openBlock(),u.createBlock(d_,{key:1,class:"psc-px-4"},{"body-append":u.withCtx(()=>[u.createVNode(u_,{class:"psc-mt-6"})]),_:1}))],64))]))}}),OA={class:"psc-box-shadow psc-p-3 psc-rounded-lg psc-space-y-3 hover:psc-bg-slate-100 psc-cursor-pointer"},AA={class:"psc-flex psc-items-center"},LA={class:"psc-flex-initial psc-font-semibold psc-text-primary"},IA={class:"psc-flex-auto psc-pl-2 psc-text-black/[0.6]"},PA=u.createElementVNode("div",{class:"psc-flex-initial"},[u.createElementVNode("i",{class:"dgic-chevron-right-thin psc-text-primary psc-text-xl psc-text-2xl"})],-1),FA={class:"psc-flex"},RA={class:"psc-text-sm"},Wb=u.defineComponent({__name:"TestResultListItem",props:{item:null},setup(e){const t=e,{t:n}=qe(),s=u.computed(()=>({[We.Ordered]:{text:n("psc.test_result_status_not_ready"),cssClass:"psc-text-not-ready",icon:"dgic-time-dotted"},[We.InProgress]:{text:n("psc.test_result_status_not_ready"),cssClass:"psc-text-not-ready",icon:"dgic-time-dotted"},[We.PartiallyComplete]:{text:n("psc.test_result_status_partially_ready"),cssClass:"psc-text-blue-darken-2",icon:"dgic-partial-thin",iconPathCount:2},[We.Ready]:{text:n("psc.test_result_status_ready"),cssClass:"psc-text-ready",icon:"dgic-check-mark-thin"},[We.Canceled]:{text:n("psc.test_result_status_couldnt_process"),cssClass:"psc-text-red-darken-1",icon:"dgic-cancel-right-to-left"},[We.Rejected]:{text:n("psc.test_result_status_couldnt_process"),cssClass:"psc-text-red-darken-1",icon:"dgic-cancel-right-to-left"}})[t.item.result_status]||{text:"",cssClass:"",icon:""});return(i,r)=>(u.openBlock(),u.createElementBlock("div",OA,[u.createElementVNode("div",AA,[u.createElementVNode("div",LA,[u.createElementVNode("span",null,u.toDisplayString(`${i.$t("psc.test_result_order")} ${t.item.order_id}`),1)]),u.createElementVNode("div",IA,u.toDisplayString(u.unref(to)(t.item.visit_date)),1),PA]),u.createElementVNode("div",FA,[u.createElementVNode("div",{class:u.normalizeClass(["psc-flex psc-items-center psc-font-semibold",u.unref(s).cssClass])},[u.createElementVNode("span",RA,u.toDisplayString(u.unref(s).text),1),u.createElementVNode("i",{class:u.normalizeClass(["psc-ml-1 psc-text-2xl",u.unref(s).icon])},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(u.unref(s).iconPathCount,a=>(u.openBlock(),u.createElementBlock("span",{key:`path${a}`,class:u.normalizeClass(`path${a}`)},null,2))),128))],2)],2)])]))}}),VA={class:"psc-px-4 psc-space-y-4"},BA={class:"psc-px-4 psc-w-full psc-pt-7 psc-text-center"},$A={key:1},UA={key:0,class:"psc-px-4 psc-pt-7"},WA=u.defineComponent({__name:"TestResultList",props:{items:null,loading:{type:Boolean},skeletonCount:null,ctaButtonUrl:{default:""},hideLoadMore:{type:Boolean},bookingButtonUrl:{default:""}},emits:["switch-to-detail","click:load-more"],setup(e,{emit:t}){const n=e,s=async()=>{t("click:load-more")},i=async r=>{t("switch-to-detail",r)};return(r,a)=>(u.openBlock(),u.createElementBlock("div",null,[!n.loading&&n.items.length===0?(u.openBlock(),u.createBlock(Ad,{key:0,title:r.$t("psc.test_result_no_results_found"),subtitle:r.$t("psc.test_result_book_to_show_result"),"booking-button-url":n.bookingButtonUrl,class:"psc-content-h-full"},null,8,["title","subtitle","booking-button-url"])):(u.openBlock(),u.createElementBlock(u.Fragment,{key:1},[u.createVNode(Dh,null,{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(r.$t("psc.test_result_all_results")),1)]),_:1}),u.createElementVNode("div",VA,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(n.items,(c,d)=>(u.openBlock(),u.createElementBlock("div",{key:`item${d}`},[u.createVNode(Wb,{item:c,onClick:f=>i(c)},null,8,["item","onClick"])]))),128)),n.loading?(u.openBlock(!0),u.createElementBlock(u.Fragment,{key:0},u.renderList(n.skeletonCount,c=>(u.openBlock(),u.createBlock(Ul,{key:`skeleton${c}`}))),128)):u.createCommentVNode("",!0)]),u.createElementVNode("div",BA,[n.hideLoadMore?(u.openBlock(),u.createElementBlock("div",$A,u.toDisplayString(r.$t("psc.test_result_all_results_loaded")),1)):(u.openBlock(),u.createBlock(u.unref(nr),{key:0,type:"secondary",disabled:n.loading,size:"sm","prepend-icon":"dgic-double-chevron-down-thin",onClick:s},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(r.$t("psc.test_result_load_older_results")),1)]),_:1},8,["disabled"]))]),n.ctaButtonUrl?(u.openBlock(),u.createElementBlock("div",UA,[u.createVNode(aa,{class:"psc-mt-[20px]",url:e.ctaButtonUrl,title:r.$t("psc.test_result_test_more_for_better_health"),subtitle:r.$t("psc.test_result_book_general_screening_panel_now")},null,8,["url","title","subtitle"])])):u.createCommentVNode("",!0)],64))]))}}),Hb=()=>{window.open(`tel:${Wl}`,"_self")},HA=e=>`${e.slice(0,-6)} ${e.slice(-6,-3)} ${e.slice(-3)}`,YA={class:"psc-px-4"},zA={key:1,class:"psc-flex psc-mb-[20px]"},jA=u.createElementVNode("div",{class:"psc-mr-[16px] psc-w-[60px] psc-h-[60px] psc-min-w-[60px] psc-w-[60px] psc-rounded-full psc-border-solid psc-border-[1px] psc-border-[#00000019] psc-overflow-hidden"},[u.createElementVNode("i",{class:"dgic-user-circle psc-text-[#00000019] psc-text-[60px]"})],-1),GA={class:"psc-text-[14px]"},XA={class:"psc-font-[600] psc-text-[20px] psc-mb-[12px]"},qA={class:"psc-flex psc-items-center psc-mb-[8px]"},KA=u.createElementVNode("i",{class:"dgic-cake psc-text-[22px] psc-mr-1 psc-font-bold"},null,-1),JA={class:"psc-flex psc-items-center psc-mb-[8px]"},ZA=u.createElementVNode("i",{class:"dgic-phone-light psc-text-[22px] psc-mr-1"},null,-1),QA={class:"psc-flex psc-items-center psc-mb-[8px]"},tL={class:"psc-bg-[#e6f0fe] psc-py-[20px] psc-px-[16px] psc-rounded-[8px] psc-flex psc-mb-[35px]"},eL=u.createElementVNode("div",{class:"psc-flex items-start psc-mr-[8px]"},[u.createElementVNode("i",{class:"dgic-info-fill psc-text-primary psc-text-[24px]"})],-1),nL=["innerHTML"],sL=u.defineComponent({__name:"MyProfile",props:{fullName:null,dob:null,gender:null,phoneNumber:null,loading:{type:Boolean},ctaButtonUrl:{default:""}},setup(e){const t=e,{t:n}=qe(),s=u.computed(()=>t.fullName),i=u.computed(()=>to(t.dob)),r=u.computed(()=>t.gender?{[so.Male]:{icon:"dgic-gender-male",text:n("psc.male")},[so.Female]:{icon:"dgic-gender-female",text:n("psc.female")}}[t.gender]:{icon:"",text:""}),a=u.computed(()=>t.phoneNumber?HA(t.phoneNumber):"");return(c,d)=>(u.openBlock(),u.createElementBlock("div",null,[u.createVNode(Dh,null,{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(u.unref(n)("psc.test_result_my_profile")),1)]),_:1}),u.createElementVNode("div",YA,[t.loading?(u.openBlock(),u.createBlock(Ul,{key:0,class:"psc-pb-16 psc-mb-[20px]"})):(u.openBlock(),u.createElementBlock("div",zA,[jA,u.createElementVNode("div",GA,[u.createElementVNode("div",XA,u.toDisplayString(u.unref(s)),1),u.createElementVNode("div",qA,[KA,u.createTextVNode(" "+u.toDisplayString(u.unref(i)),1)]),u.createElementVNode("div",JA,[ZA,u.createTextVNode(" "+u.toDisplayString(u.unref(a)),1)]),u.createElementVNode("div",QA,[u.createElementVNode("i",{class:u.normalizeClass(["psc-text-[22px] psc-mr-1",u.unref(r).icon])},null,2),u.createTextVNode(" "+u.toDisplayString(u.unref(r).text),1)])])])),u.createElementVNode("div",tL,[eL,u.createElementVNode("div",{innerHTML:u.unref(n)("psc.test_result_if_you_wish_to_edit_your_profile")},null,8,nL)]),t.ctaButtonUrl?(u.openBlock(),u.createBlock(aa,{key:2,class:"psc-mt-[20px]",url:t.ctaButtonUrl,title:c.$t("psc.test_result_test_more_for_better_health"),subtitle:c.$t("psc.test_result_book_general_screening_panel_now")},null,8,["url","title","subtitle"])):u.createCommentVNode("",!0)])]))}}),jV="",iL={class:"call-us-text-button"},rL=u.createElementVNode("i",{class:"dgic-phone-light psc-mr-1"},null,-1),oL={class:"diag-opening-time"},aL=u.defineComponent({__name:"CallUsTextButton",setup(e){const{t}=qe();return(n,s)=>(u.openBlock(),u.createElementBlock("div",iL,[u.createElementVNode("div",{class:"diag-phone-number",onClick:s[0]||(s[0]=(...i)=>u.unref(Hb)&&u.unref(Hb)(...i))},[rL,u.createElementVNode("span",null,u.toDisplayString(u.unref(Wl)),1)]),u.createElementVNode("div",oL,u.toDisplayString(u.unref(t)("psc.test_result_time_support")),1)]))}}),GV="",lL={class:"result-ready"},cL={class:"result-ready__title"},uL={class:"result-ready__date"},dL={key:0,class:"result-ready__date"},hL=u.defineComponent({__name:"ResultReady",props:{testResult:null},setup(e){const t=e,{t:n}=qe(),s=u.computed(()=>t.testResult.sample_collected_at&&to(t.testResult.sample_collected_at)||""),i=u.computed(()=>t.testResult.sample_collected_at&&to(t.testResult.result_at)||""),r=u.computed(()=>t.testResult.result_status===We.Ready),a=u.computed(()=>{switch(t.testResult.result_status){case We.Ordered:case We.InProgress:return n("psc.test_result_your_result_not_ready");case We.Ready:return n("psc.test_result_your_result_ready");case We.PartiallyComplete:return n("psc.test_result_result_partial_completed");default:return""}});return(c,d)=>(u.openBlock(),u.createElementBlock("div",lL,[u.createElementVNode("span",cL,u.toDisplayString(u.unref(a)),1),u.createElementVNode("div",uL,u.toDisplayString(u.unref(n)("psc.test_result_sample_collected_on"))+" "+u.toDisplayString(`${u.unref(s)}.`),1),u.unref(r)?(u.openBlock(),u.createElementBlock("div",dL,u.toDisplayString(u.unref(n)("psc.test_result_result_released_on"))+" "+u.toDisplayString(`${u.unref(i)}.`),1)):u.createCommentVNode("",!0)]))}}),XV="",Yb={psc:{gender:"Gi\u1EDBi t\xEDnh",male:"Nam",female:"N\u1EEF",test_result_my_profile:"H\u1ED3 s\u01A1 c\u1EE7a t\xF4i",test_result_if_you_wish_to_edit_your_profile:'N\u1EBFu c\u1EA7n thay \u0111\u1ED5i th\xF4ng tin c\xE1 nh\xE2n, b\u1EA1n vui l\xF2ng <a href="tel:1900 1717" class="contact-support">li\xEAn h\u1EC7 h\u1ED7 tr\u1EE3</a>',test_result_view_my_bookings:"Xem l\u1ECBch h\u1EB9n c\u1EE7a t\xF4i",test_result_test_more_for_better_health:"\u0110\u1EC3 th\u1EA5u hi\u1EC3u v\xE0 duy tr\xEC s\u1EE9c kho\u1EBB",test_result_book_general_screening_panel_now:"\u0110\u1EB7t h\u1EB9n G\xF3i X\xE9t Nghi\u1EC7m T\u1ED5ng Qu\xE1t ngay",test_result_status_not_ready:"Ch\u01B0a c\xF3 k\u1EBFt qu\u1EA3",test_result_status_couldnt_process:"M\u1EABu kh\xF4ng th\u1EC3 x\u1EED l\xFD",test_result_status_ready:"S\u1EB5n s\xE0ng",test_result_status_partially_ready:"S\u1EB5n s\xE0ng m\u1ED9t ph\u1EA7n",test_result_order:"Ch\u1EC9 \u0111\u1ECBnh",test_result_all_results:"T\u1EA5t c\u1EA3 k\u1EBFt qu\u1EA3",test_result_load_older_results:"Xem c\xE1c k\u1EBFt qu\u1EA3 c\u0169 h\u01A1n",test_result_all_results_loaded:"\u0110\xE3 hi\u1EC3n th\u1ECB t\u1EA5t c\u1EA3 k\u1EBFt qu\u1EA3",test_result_hi:"Xin ch\xE0o,",test_result_your_result_ready:"B\u1EA1n \u0111\xE3 c\xF3 k\u1EBFt qu\u1EA3 x\xE9t nghi\u1EC7m",test_result_result_partial_completed:"X\xE9t nghi\u1EC7m c\u1EE7a b\u1EA1n \u0111\xE3 ho\xE0n th\xE0nh m\u1ED9t ph\u1EA7n",test_result_your_result_not_ready:"K\u1EBFt qu\u1EA3 c\u1EE7a b\u1EA1n ch\u01B0a ho\xE0n t\u1EA5t",test_result_sample_collected:"L\u1EA5y m\u1EABu:",test_result_result_ready:"C\xF3 k\u1EBFt qu\u1EA3:",test_result_sample_collected_on:"M\u1EABu \u0111\xE3 \u0111\u01B0\u1EE3c l\u1EA5y v\xE0o ng\xE0y",test_result_result_released_on:"v\xE0 c\xF3 k\u1EBFt qu\u1EA3 x\xE9t nghi\u1EC7m v\xE0o ng\xE0y",test_result_check_other_results:"Xem c\xE1c k\u1EBFt qu\u1EA3 kh\xE1c",call_us:"Li\xEAn h\u1EC7 Diag",test_result_time_support:"T\u1EEB 06:00 - 21:00",test_result_sample_could_not_processed:"Kh\xF4ng th\u1EC3 x\u1EED l\xFD m\u1EABu b\u1EA1n \u0111\xE3 g\u1EEDi.",test_result_contact_support:"Xin li\xEAn h\u1EC7 b\u1ED9 ph\u1EADn CSKH c\u1EE7a ch\xFAng t\xF4i \u0111\u1EC3 \u0111\u01B0\u1EE3c h\u1ED7 tr\u1EE3 th\xEAm",test_result_being_prepared:"M\u1EABu c\u1EE7a b\u1EA1n \u0111ang \u0111\u01B0\u1EE3c x\xE9t nghi\u1EC7m.",test_result_receive_sms_2_days:"B\u1EA1n s\u1EBD nh\u1EADn \u0111\u01B0\u1EE3c tin nh\u1EAFn SMS ngay khi c\xF3 k\u1EBFt qu\u1EA3 x\xE9t nghi\u1EC7m.",test_result_note:"T\u01B0 v\u1EA5n t\u1EEB b\xE1c s\u0129",test_result_measured_in:"\u0111\u01A1n v\u1ECB t\xEDnh l\xE0",test_result_critical:"Nguy hi\u1EC3m",test_result_high:"Cao",test_result_low:"Th\u1EA5p",test_result_normal:"B\xECnh th\u01B0\u1EDDng",test_result_about:"\xDD ngh\u0129a c\u1EE7a",test_result_all_bookings:"T\u1EA5t c\u1EA3 l\u1ECBch h\u1EB9n",test_result_more_bookings:"L\u1ECBch h\u1EB9n kh\xE1c",test_result_no_booking_found:"Kh\xF4ng c\xF3 l\u1ECBch h\u1EB9n n\xE0o",test_result_message_no_booking_yet:"B\u1EA1n ch\u01B0a t\u1EA1o l\u1ECBch h\u1EB9n x\xE9t nghi\u1EC7m n\xE0o",test_result_support:"H\u1ED7 tr\u1EE3",test_result_find_nearest_diag_branch:"T\xECm chi nh\xE1nh g\u1EA7n nh\u1EA5t",test_result_no_results_found:"Ch\u01B0a c\xF3 k\u1EBFt qu\u1EA3 n\xE0o",test_result_book_to_show_result:"\u0110\u1EB7t h\u1EB9n x\xE9t nghi\u1EC7m ngay \u0111\u1EC3 xem k\u1EBFt qu\u1EA3",test_result_doctor_appointment:"\u0110\u1EB7t h\u1EB9n v\u1EDBi b\xE1c s\u0129",test_result_free:"Mi\u1EC5n ph\xED",test_result_more_about_your_results:"Hi\u1EC3u r\xF5 h\u01A1n v\u1EC1 k\u1EBFt qu\u1EA3 c\u1EE7a b\u1EA1n",test_result_choose_time:"Ch\u1ECDn ng\xE0y h\u1EB9n",test_result_reset_all:"Ch\u1ECDn l\u1EA1i",test_result_opening_slots:"Ch\u1ECDn gi\u1EDD",test_result_book_appointment:"\u0110\u1EB7t l\u1ECBch h\u1EB9n",test_result_successfully_booked:"\u0110\u1EB7t h\u1EB9n th\xE0nh c\xF4ng",test_result_have_an_appointment_with_doctor:"B\u1EA1n c\xF3 l\u1ECBch h\u1EB9n v\u1EDBi b\xE1c s\u0129 c\u1EE7a Diag v\xE0o {time} ng\xE0y {date}.",test_result_book_appointment_error_title:"\u0110\xE3 c\xF3 l\u1ED7i x\u1EA3y ra...",test_result_book_appointment_error_description:"B\u1EA1n vui l\xF2ng th\u1EED l\u1EA1i ho\u1EB7c li\xEAn h\u1EC7 Diag qua hotline 19001717 n\u1EBFu v\u1EABn kh\xF4ng th\u1EC3 \u0111\u1EB7t h\u1EB9n th\xE0nh c\xF4ng. ",test_result_upcoming_appointment:"L\u1ECBch h\u1EB9n s\u1EAFp t\u1EDBi",test_result_date_at_time:"v\xE0o {time} ng\xE0y {date}",test_result_get_started:"B\u1EAFt \u0111\u1EA7u",test_result_book_first_test:"\u0110\u1EB7t h\u1EB9n x\xE9t nghi\u1EC7m ngay",test_result_booking_account_code:"M\xE3 t\xE0i kho\u1EA3n:",test_result_booking_document_type_id_number:"CMND/CCCD:",test_result_booking_document_type_passport_no:"H\u1ED9 chi\u1EBFu:",test_result_booking_patient:"B\u1EC7nh nh\xE2n",test_result_booking_doctor:"B\xE1c s\u0129",test_result_booking_booking_number:"M\xE3 \u0111\u1EB7t ch\u1ED7 c\u1EE7a b\u1EA1n",test_result_booking_results_will_be_there:"Xem k\u1EBFt qu\u1EA3 t\u1EA1i \u0111\xE2y khi ho\xE0n t\u1EA5t...",test_result_booking_booking_canceled:"L\u1ECBch h\u1EB9n c\u1EE7a b\u1EA1n \u0111\xE3 hu\u1EF7",test_result_booking_next_step:"B\u01B0\u1EDBc ti\u1EBFp theo",test_result_booking_diag_contact_you_and_check:"Diag s\u1EBD li\xEAn h\u1EC7 \u0111\u1EC3 s\u1EAFp x\u1EBFp l\u1ECBch h\u1EB9n ph\xF9 h\u1EE3p v\u1EDBi th\u1EDDi gian c\u1EE7a b\u1EA1n.",test_result_booking_find_location_center:"T\xECm chi nh\xE1nh Diag",test_result_booking_view_results:"Xem k\u1EBFt qu\u1EA3 c\u1EE7a t\xF4i",test_result_booking_test_results:"K\u1EBFt qu\u1EA3 x\xE9t nghi\u1EC7m",test_result_booking_need_collect_sample:"Y t\xE1 c\u1EA7n l\u1EA5y m\u1EABu c\u1EE7a b\u1EA1n.",test_result_booking_processing_sample:"Ch\xFAng t\xF4i \u0111ang x\u1EED l\xFD m\u1EABu c\u1EE7a b\u1EA1n.",test_result_booking_fully_ready:"K\u1EBFt qu\u1EA3 x\xE9t nghi\u1EC7m c\u1EE7a b\u1EA1n \u0111\xE3 ho\xE0n t\u1EA5t.",test_result_booking_booking_details:"Chi ti\u1EBFt l\u1ECBch h\u1EB9n",test_result_booking_payment_status_pay_later:"Thanh to\xE1n sau",test_result_booking_payment_status_paid_online:"Thanh to\xE1n online",test_result_booking_payment_status_paid:"\u0110\xE3 thanh to\xE1n",test_result_booking_payment_status_refund_in_progress:"\u0110ang ho\xE0n ti\u1EC1n",test_result_booking_payment_status_refunded:"\u0110\xE3 ho\xE0n ti\u1EC1n",test_result_booking_payment_status_canceled:"\u0110\xE3 hu\u1EF7",test_result_booking_booking_status_created:"\u0110\xE3 t\u1EA1o",test_result_booking_booking_status_in_progress:"\u0110ang x\u1EED l\xFD m\u1EABu",test_result_booking_booking_status_completed:"Ho\xE0n t\u1EA5t",test_result_booking_booking_status_canceled:"\u0110\xE3 hu\u1EF7",test_result_booking_total_payment:"T\u1ED5ng thanh to\xE1n",test_result_booking_note:"Ghi ch\xFA",test_result_booking_support_zalo:"Zalo:",test_result_booking_support_hotline:"Hotline:",test_result_booking_support_email:"Email:",test_result_booking_sample_collection:"L\u1EA5y m\u1EABu",test_result_booking_testing_location:"\u0110\u1ECBa \u0111i\u1EC3m x\xE9t nghi\u1EC7m",test_result_booking_address:"\u0110\u1ECBa ch\u1EC9",test_result_booking_expected_date:"Ng\xE0y d\u1EF1 ki\u1EBFn",test_result_booking_tests:"X\xE9t nghi\u1EC7m",test_result_booking_packages:"G\xF3i x\xE9t nghi\u1EC7m",test_result_booking_imaging_services:"Ch\u1EA9n \u0111o\xE1n h\xECnh \u1EA3nh",date_time:{day_parts:{morning:"S\xE1ng",afternoon:"Chi\u1EC1u",evening:"T\u1ED1i"}}}},zb={psc:{gender:"Gender",male:"Male",female:"Female",test_result_my_profile:"H\u1ED3 s\u01A1 c\u1EE7a t\xF4i",test_result_if_you_wish_to_edit_your_profile:'If you wish to edit your profile, please <a href="tel:1900 1717" class="contact-support">contact support</a>',test_result_view_my_bookings:"View my bookings",test_result_test_more_for_better_health:"Test more for better health",test_result_book_general_screening_panel_now:"Book General Screening Panel now",test_result_status_not_ready:"Not ready yet",test_result_status_couldnt_process:"Couldn't process",test_result_status_ready:"Ready",test_result_status_partially_ready:"Partially ready",test_result_order:"Order",test_result_all_results:"All results",test_result_load_older_results:"Load older results",test_result_all_results_loaded:"All results are loaded",test_result_hi:"Hi,",test_result_your_result_ready:"Your results are ready",test_result_result_partial_completed:"Your results are partially ready",test_result_your_result_not_ready:"Your results are not ready yet",test_result_sample_collected:"Collected:",test_result_result_ready:"Ready:",test_result_sample_collected_on:"Your sample was collected on",test_result_result_released_on:"and your results were released on ",test_result_check_other_results:"Check other results",call_us:"Call for support",test_result_time_support:"From 06:00 - 21:00",test_result_sample_could_not_processed:"Results could not be processed",test_result_contact_support:"Please contact our customer service for further support.",test_result_being_prepared:"Your results are being prepared.",test_result_receive_sms_2_days:"You will receive a SMS as soon as your results are ready.",test_result_note:"Doctor's comments",test_result_measured_in:"measured in",test_result_critical:"Critical",test_result_high:"High",test_result_low:"Low",test_result_normal:"Normal",test_result_about:"About",test_result_all_bookings:"All bookings",test_result_more_bookings:"More Bookings",test_result_no_booking_found:"No booking found",test_result_message_no_booking_yet:"You haven't created any booking yet",test_result_support:"Support",test_result_find_nearest_diag_branch:"Find the nearest branch",test_result_no_results_found:"No results found",test_result_book_to_show_result:"Book a test to show results",test_result_doctor_appointment:"Doctor Appointment",test_result_free:"Free",test_result_more_about_your_results:"Find out more about your resutls",test_result_choose_time:"Choose a time",test_result_reset_all:"Reset all",test_result_opening_slots:"Opening slots",test_result_book_appointment:"Book an appointment",test_result_successfully_booked:"Successfully booked",test_result_have_an_appointment_with_doctor:"You have an appointment with our doctor at {time} on {date}.",test_result_book_appointment_error_title:"Something went wrong...",test_result_book_appointment_error_description:"Please try to book the appointment again or contact Diag via hotline 19001717 if the error still happens",test_result_upcoming_appointment:"Upcoming appoinment",test_result_date_at_time:"{date} at {time}",test_result_get_started:"Get started",test_result_book_first_test:"Book your first test now",test_result_booking_account_code:"Account code:",test_result_booking_document_type_id_number:"ID number:",test_result_booking_document_type_passport_no:"Passport no:",test_result_booking_patient:"Patient",test_result_booking_doctor:"Doctor",test_result_booking_booking_number:"Your booking number",test_result_booking_results_will_be_there:"Your results will be here...",test_result_booking_booking_canceled:"Your booking was cancelled",test_result_booking_next_step:"Next steps",test_result_booking_diag_contact_you_and_check:"Diag will contact you and check for your preferred time slot.",test_result_booking_find_location_center:"Find location center",test_result_booking_view_results:"View my results",test_result_booking_test_results:"Test results",test_result_booking_need_collect_sample:"Nurse needs to collect your sample.",test_result_booking_processing_sample:"We are processing your sample.",test_result_booking_fully_ready:"Your results are fully ready now.",test_result_booking_booking_details:"Booking details",test_result_booking_payment_status_pay_later:"Pay later",test_result_booking_payment_status_paid_online:"Paid online",test_result_booking_payment_status_paid:"Paid",test_result_booking_payment_status_refund_in_progress:"Refunding",test_result_booking_payment_status_refunded:"Refunded",test_result_booking_payment_status_canceled:"Canceled",test_result_booking_booking_status_created:"Created",test_result_booking_booking_status_in_progress:"In progress",test_result_booking_booking_status_completed:"Completed",test_result_booking_booking_status_canceled:"Canceled",test_result_booking_total_payment:"Total Payment",test_result_booking_note:"Note",test_result_booking_support_zalo:"Zalo:",test_result_booking_support_hotline:"Hotline:",test_result_booking_support_email:"Email:",test_result_booking_sample_collection:"Sample collection",test_result_booking_testing_location:"Testing location",test_result_booking_address:"Address",test_result_booking_expected_date:"Expected date",test_result_booking_tests:"Tests",test_result_booking_packages:"Packages",test_result_booking_imaging_services:"Imaging services",date_time:{day_parts:{morning:"Morning",afternoon:"Afternoon",evening:"Evening"}}}},fL={install:(e,t)=>{if(t!=null&&t.i18n){const{mergeLocaleMessage:n}=t.i18n.global;n("vi",Yb),n("en",zb)}}};Lt.AccountSegment=hd,Lt.BookAppointment=$b,Lt.BookAppointmentModal=IO,Lt.BookingDetail=Gw,Lt.BookingDetailDesktop=tC,Lt.BookingList=XO,Lt.BookingListItem=Ub,Lt.BookingStatus=bn,Lt.BottomCursedType=ea,Lt.CallUsFilledButton=u_,Lt.CallUsTextButton=aL,Lt.CookieName=bC,Lt.CtaButton=aa,Lt.DayPartType=Rn,Lt.DocumentType=no,Lt.EventBusName=_C,Lt.EventType=gC,Lt.Gender=so,Lt.LoadingSkeleton=Ul,Lt.LsKey=c_,Lt.MyProfile=sL,Lt.NoItemsFound=Ad,Lt.PatientFullInfo=LC,Lt.PaymentStatus=Fn,Lt.RejectedResult=d_,Lt.ResultReady=hL,Lt.ResultSegmentNormalType=Zp,Lt.ResultSegmentValueOPR=Qp,Lt.ResultType=Jp,Lt.ServiceType=ta,Lt.SupportEmail=mC,Lt.SupportPhone=Wl,Lt.TestResultConclusion=As,Lt.TestResultDetail=TA,Lt.TestResultHistoryDetail=Vb,Lt.TestResultHistoryDetailModal=cO,Lt.TestResultList=WA,Lt.TestResultListItem=Wb,Lt.TestResultStatus=We,Lt.TestResultTemplate=dd,Lt.TestStatus=Kp,Lt.default=fL,Lt.en=zb,Lt.vi=Yb,Object.defineProperties(Lt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pat-shared-components",
3
- "version": "0.4.0-beta.21",
3
+ "version": "0.4.0-beta.22",
4
4
  "files": [
5
5
  "dist/**/*"
6
6
  ],