pat-shared-components 0.4.0-beta.26 → 0.4.0-beta.28
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 +1 -1
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -24152,7 +24152,7 @@ const nB = /* @__PURE__ */ bs(J$, [["render", eB]]), sB = {}, iB = { class: "psc
|
|
|
24152
24152
|
function oB(e, t) {
|
|
24153
24153
|
return Z(), it("div", iB, aB);
|
|
24154
24154
|
}
|
|
24155
|
-
const lB = /* @__PURE__ */ bs(sB, [["render", oB]]), cB = { class: "psc-animate-pulse psc-space-y-4" }, uB = { class: "psc-space-y-6" }, dB = /* @__PURE__ */ W("div", { class: "psc-space-y-3" }, [
|
|
24155
|
+
const lB = /* @__PURE__ */ bs(sB, [["render", oB]]), cB = { class: "psc-animate-pulse psc-px-4 psc-space-y-4" }, uB = { class: "psc-space-y-6" }, dB = /* @__PURE__ */ W("div", { class: "psc-space-y-3" }, [
|
|
24156
24156
|
/* @__PURE__ */ W("div", { class: "psc-h-8 psc-w-[64%] psc-rounded-lg psc-bg-gray-200 dark:psc-bg-gray-400" }),
|
|
24157
24157
|
/* @__PURE__ */ W("div", { class: "psc-h-5 psc-w-[86%] psc-rounded-lg psc-bg-gray-100 dark:psc-bg-gray-300" })
|
|
24158
24158
|
], -1), hB = { class: "psc-space-y-4" }, fB = /* @__PURE__ */ W("div", { class: "psc-h-5 psc-w-[24%] psc-rounded-lg psc-bg-gray-100 dark:psc-bg-gray-300" }, null, -1), pB = /* @__PURE__ */ Nt({
|
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=B.value.map(yt=>T(yt)),C.value=B.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 Bt=Et.querySelector("ul");for(;Bt!=null&&Bt.firstChild;)Bt.firstChild.remove();Bt==null||Bt.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||EO),d.value.no=c.value-1>0?c.value-1:0,x.value=B.value.map(yt=>T(yt)),C.value=B.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",wO,[u.createElementVNode("div",CO,[u.createElementVNode("div",DO,[u.createElementVNode("div",SO,[u.createElementVNode("div",NO,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",MO,[u.createVNode(u.unref(sr),{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(sr),{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",TO,[u.createElementVNode("canvas",{ref_key:"chartRef",ref:r},null,512)])]),u.createElementVNode("div",OO,[u.createElementVNode("div",AO,u.toDisplayString(`${yt.$t("psc.test_result_about")} ${t.historyData.test_name}`),1),u.createElementVNode("div",LO,u.toDisplayString(t.historyData.purpose),1)])]))}}),RV="",IO=u.createElementVNode("div",null,null,-1),PO={key:0,class:"history-content psc-flex psc-justify-center psc-items-center psc-pb-[53px]"},FO={class:"psc-animate-spin"},RO={key:1,class:"history-content"},BO=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(Yp),{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(zp),null,{default:u.withCtx(()=>[IO,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(jp),{class:"modal-body"},{default:u.withCtx(()=>[n.loading?(u.openBlock(),u.createElementBlock("div",PO,[u.createElementVNode("div",FO,[u.createVNode(u.unref(js),{icon:"dgic-spinner-8",class:"psc-text-4xl"})])])):(u.openBlock(),u.createElementBlock("div",RO,[u.createVNode(B0,{class:"psc-pb-4","history-data":n.historyData},null,8,["history-data"])]))]),_:1})]),_:1},8,["modelValue"]))}}),BV="",VO=u.defineComponent({__name:"DateItem",props:{value:null,disabled:{type:Boolean},selected:{type:Boolean}},setup(e){const t=e,{dayShortNames:n}=ar(),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))}}),$O=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))}}),V0=(e,t)=>{let n=e.toString();for(;n.length<t;)n="0"+n;return n},UO=u.defineComponent({__name:"TimeSlotItem",props:{timeSlot:null,selected:{type:Boolean},icon:{default:""}},setup(e){const t=e,n=s=>`${V0(s.getHours(),2)}:${V0(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))}}),WO={class:"book-appointment psc-space-y-8"},HO={class:"psc-flex"},YO={key:0},zO={class:"psc-pb-6 psc-font-semibold psc-text-black/[0.85]"},jO={class:"psc-flex -psc-mx-2"},GO=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}=ar(),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=()=>{B(),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))},B=()=>{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(),B()})(),t({resetAll:w}),(U,W)=>{var tt,Q,dt;return u.openBlock(),u.createElementBlock("div",WO,[u.createElementVNode("div",HO,[(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(VO,{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",YO,[u.createElementVNode("div",zO,u.toDisplayString(u.unref(r)(d.value.value)),1),u.createElementVNode("div",jO,[(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($O,{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(UO,{"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(sr),{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"])])}}}),VV="",$0=Kn(GO,[["__scopeId","data-v-94386939"]]),XO={class:"psc-flex psc-flex-wrap psc-space-y-4 psc-pb-8"},qO={class:"psc-w-full psc-text-center"},KO={class:"psc-w-full psc-text-center psc-text-xl psc-font-semibold psc-text-black/[0.85]"},JO={class:"psc-w-full psc-text-center psc-text-black/[0.6]"},ZO=u.defineComponent({__name:"ErrorMessage",setup(e){return(t,n)=>(u.openBlock(),u.createElementBlock("div",XO,[u.createElementVNode("div",qO,[u.createVNode(u.unref(js),{icon:"dgic-circle-error-fill",class:"psc-text-[80px] psc-text-error"})]),u.createElementVNode("div",KO,u.toDisplayString(t.$t("psc.test_result_book_appointment_error_title")),1),u.createElementVNode("div",JO,u.toDisplayString(t.$t("psc.test_result_book_appointment_error_description")),1)]))}}),QO={class:"psc-flex psc-flex-wrap psc-space-y-4 psc-pb-8"},tA={class:"psc-w-full psc-text-center"},eA={class:"psc-w-full psc-text-center psc-text-xl psc-font-semibold psc-text-black/[0.85]"},nA={class:"psc-w-full psc-text-center psc-text-black/[0.6]"},sA=u.defineComponent({__name:"SuccessMessage",props:{timeSlot:null},setup(e){const t=e,{formatTime:n,formatDate:s}=ar(),i=u.computed(()=>n(new Date(t.timeSlot))),r=u.computed(()=>s(new Date(t.timeSlot)));return(a,c)=>(u.openBlock(),u.createElementBlock("div",QO,[u.createElementVNode("div",tA,[u.createVNode(u.unref(js),{icon:"dgic-circle-check",class:"psc-text-[80px] psc-text-success"})]),u.createElementVNode("div",eA,u.toDisplayString(a.$t("psc.test_result_successfully_booked")),1),u.createElementVNode("div",nA,u.toDisplayString(a.$t("psc.test_result_have_an_appointment_with_doctor",{time:u.unref(i),date:u.unref(r)})),1)]))}}),iA={class:"psc-flex-1 psc-text-center psc-font-semibold psc-text-black/[0.85]"},rA={class:"psc-flex-1 psc-text-right"},oA={key:0,class:"modal-body__content psc-flex psc-justify-center psc-items-center psc-pb-[53px]"},aA={class:"psc-animate-spin"},lA={key:1,class:"modal-body__content"},cA=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(Yp),{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(zp),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",iA,u.toDisplayString(f.$t("psc.test_result_choose_time")),1)],64)):u.createCommentVNode("",!0),u.createElementVNode("div",rA,[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(jp),{class:"modal-body"},{default:u.withCtx(()=>[n.loading?(u.openBlock(),u.createElementBlock("div",oA,[u.createElementVNode("div",aA,[u.createVNode(u.unref(js),{icon:"dgic-spinner-8",class:"psc-text-4xl"})])])):(u.openBlock(),u.createElementBlock("div",lA,[!n.showSuccess&&!n.showError?(u.openBlock(),u.createBlock($0,{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(sA,{key:1,"time-slot":r.value},null,8,["time-slot"])):u.createCommentVNode("",!0),n.showError?(u.openBlock(),u.createBlock(ZO,{key:2})):u.createCommentVNode("",!0)]))]),_:1})]),_:1},8,["modelValue"]))}}),$V="",uA={class:"psc-p-3 psc-rounded-lg psc-cursor-pointer psc-shadow hover:psc-bg-slate-100"},dA={class:"psc-space-y-3"},hA={class:"psc-flex psc-items-center"},fA={class:"psc-flex-initial psc-font-semibold psc-text-primary"},pA={class:"psc-flex-auto psc-pl-2 psc-text-black/[0.6] psc-text-sm psc-font-normal"},mA=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),_A={class:"psc-flex psc-space-x-2"},U0=u.defineComponent({__name:"BookingListItem",props:{item:null},setup(e){const t=e;return(n,s)=>(u.openBlock(),u.createElementBlock("div",uA,[u.createElementVNode("div",dA,[u.createElementVNode("div",hA,[u.createElementVNode("div",fA,[u.createElementVNode("span",null,u.toDisplayString(t.item.booking_code),1)]),u.createElementVNode("div",pA,u.toDisplayString(u.unref(to)(t.item.created_at)),1)]),mA]),u.createElementVNode("div",_A,[u.createVNode(qm,{status:t.item.booking_status},null,8,["status"]),u.createVNode(Km,{status:t.item.payment_status},null,8,["status"])])]))}}),gA={},bA={class:"psc-px-4 psc-text-2xl psc-pb-[30px] psc-font-bold psc-text-black/[0.85]"};function yA(e,t){return u.openBlock(),u.createElementBlock("div",bA,[u.renderSlot(e.$slots,"default")])}const Ch=Kn(gA,[["render",yA]]),kA={key:1},vA={class:"psc-px-4 psc-space-y-4"},xA={key:0,class:"psc-px-4 psc-w-full psc-pt-7 psc-text-center"},EA=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(Od,{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",kA,[u.createVNode(Ch,null,{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(u.unref(s)("psc.test_result_all_bookings")),1)]),_:1}),u.createElementVNode("div",vA,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(n.items,d=>(u.openBlock(),u.createBlock(U0,{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",xA,[u.createVNode(u.unref(sr),{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"])]))]))}}),wA={class:"psc-w-full psc-flex psc-flex-wrap psc-justify-center psc-space-y-2"},CA={key:0,class:"psc-w-full"},DA={class:"psc-flex psc-flex-wrap psc-text-sm psc-text-black/[0.6] -psc-mx-0.5"},SA={key:0,class:"psc-flex-auto psc-px-0.5"},NA={class:"psc-mr-1"},MA={key:1,class:"psc-flex-auto psc-px-0.5"},TA={class:"psc-mr-1"},OA=u.defineComponent({__name:"ResultReadyV2",props:{testResult:null},setup(e){const t=e,{t:n}=qe(),s=u.computed(()=>Wp(t.testResult.sample_collected_at)),i=u.computed(()=>Wp(t.testResult.result_at)),r=u.computed(()=>t.testResult.result_status===We.Ready);return(a,c)=>(u.openBlock(),u.createElementBlock("div",wA,[u.createVNode(n_,{status:t.testResult.result_status},null,8,["status"]),u.unref(s)||u.unref(r)?(u.openBlock(),u.createElementBlock("div",CA,[u.createElementVNode("div",DA,[u.unref(s)?(u.openBlock(),u.createElementBlock("div",SA,[u.createElementVNode("span",NA,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",MA,[u.createElementVNode("span",TA,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)]))}}),AA={class:"psc-w-full"},LA={class:"psc-shadow psc-rounded-lg psc-p-3 psc-flex psc-flex-wrap psc-border psc-border-[#e6f0fe]"},IA={class:"psc-flex psc-w-full psc-items-center"},PA={class:"psc-flex-initial psc-px-3 psc-mr-1"},FA={class:"psc-flex-auto"},RA={class:"psc-flex psc-items-center"},BA={class:"psc-text-black/[0.85] psc-font-semibold"},VA={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"},$A={class:"psc-text-sm psc-text-black/[0.6] psc-pt-1"},UA={class:"psc-w-full psc-pt-3"},WA=u.defineComponent({__name:"BookAppointmentButton",emits:["book"],setup(e,{emit:t}){return(n,s)=>(u.openBlock(),u.createElementBlock("div",AA,[u.createElementVNode("div",LA,[u.createElementVNode("div",IA,[u.createElementVNode("div",PA,[u.createVNode(u.unref(js),{icon:"dgic-stethoscope-thick",class:"psc-text-2xl psc-text-primary"})]),u.createElementVNode("div",FA,[u.createElementVNode("div",RA,[u.createElementVNode("div",BA,u.toDisplayString(n.$t("psc.test_result_doctor_appointment")),1),u.createElementVNode("div",VA,u.toDisplayString(n.$t("psc.test_result_free")),1)]),u.createElementVNode("div",$A,u.toDisplayString(n.$t("psc.test_result_more_about_your_results")),1)])]),u.createElementVNode("div",UA,[u.createVNode(u.unref(sr),{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})])])]))}}),HA={class:"psc-w-full"},YA={class:"psc-shadow psc-text-sm psc-rounded-lg psc-p-3"},zA={class:"psc-font-semibold psc-text-black/[0.85]"},jA={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"},GA=u.defineComponent({__name:"DoctorNote",props:{doctorNote:{default:""}},setup(e){const t=e;return(n,s)=>(u.openBlock(),u.createElementBlock("div",HA,[u.createElementVNode("div",YA,[u.createElementVNode("div",null,[u.createElementVNode("span",zA,u.toDisplayString(n.$t("psc.test_result_note")),1)]),u.createElementVNode("div",jA,u.toDisplayString(t.doctorNote),1)])]))}}),XA={class:"psc-w-full"},qA={class:"psc-shadow psc-rounded-lg psc-p-3 psc-flex psc-flex-wrap psc-border psc-border-[#e6f0fe]"},KA={class:"psc-flex psc-w-full psc-items-center"},JA={class:"psc-flex-initial psc-px-3 psc-mr-1"},ZA={class:"psc-flex-auto"},QA={class:"psc-text-black/[0.85] psc-font-semibold"},tL={class:"psc-text-sm psc-text-black/[0.6] psc-pt-1"},eL=u.defineComponent({__name:"UpcomingAppointment",props:{timeSlot:null},setup(e){const t=e,{formatDate:n,formatTime:s}=ar(),i=u.computed(()=>n(new Date(t.timeSlot))),r=u.computed(()=>s(new Date(t.timeSlot)));return(a,c)=>(u.openBlock(),u.createElementBlock("div",XA,[u.createElementVNode("div",qA,[u.createElementVNode("div",KA,[u.createElementVNode("div",JA,[u.createVNode(u.unref(js),{icon:"dgic-stethoscope-thick",class:"psc-text-2xl psc-text-primary"})]),u.createElementVNode("div",ZA,[u.createElementVNode("div",QA,u.toDisplayString(a.$t("psc.test_result_upcoming_appointment")),1),u.createElementVNode("div",tL,u.toDisplayString(a.$t("psc.test_result_date_at_time",{date:u.unref(i),time:u.unref(r)})),1)])])])]))}}),nL={},sL={class:"psc-shadow psc-p-3 psc-rounded-lg psc-space-y-3"},iL=[u.createStaticVNode('<div class="psc-h-12 psc-w-full psc-rounded-lg psc-bg-gray-200 dark:psc-bg-gray-400"></div><div class="psc-h-8 psc-w-full psc-rounded-lg psc-bg-gray-100 dark:psc-bg-gray-300"></div><div class="psc-h-8 psc-w-full psc-rounded-lg psc-bg-gray-100 dark:psc-bg-gray-300"></div><div class="psc-h-12 psc-w-full psc-rounded-lg psc-bg-gray-200 dark:psc-bg-gray-400"></div><div class="psc-h-8 psc-w-full psc-rounded-lg psc-bg-gray-100 dark:psc-bg-gray-300"></div><div class="psc-h-8 psc-w-full psc-rounded-lg psc-bg-gray-100 dark:psc-bg-gray-300"></div>',6)];function rL(e,t){return u.openBlock(),u.createElementBlock("div",sL,iL)}const oL=Kn(nL,[["render",rL]]),aL={},lL={class:"psc-shadow psc-p-3 psc-rounded-lg psc-space-y-4 psc-flex psc-flex-wrap"},cL=[u.createStaticVNode('<div class="psc-w-full psc-flex"><div class="psc-flex-initial"><div class="psc-rounded-full psc-h-12 psc-w-12 psc-bg-gray-100 dark:psc-bg-gray-300"></div></div><div class="psc-flex-auto psc-space-y-3 psc-pl-2"><div class="psc-h-5 psc-w-full psc-rounded-lg psc-bg-gray-100 dark:psc-bg-gray-300"></div><div class="psc-h-5 psc-w-full psc-rounded-lg psc-bg-gray-100 dark:psc-bg-gray-300"></div></div></div><div class="psc-h-10 psc-w-full psc-rounded-lg psc-bg-gray-100 dark:psc-bg-gray-300"></div>',2)];function uL(e,t){return u.openBlock(),u.createElementBlock("div",lL,cL)}const dL=Kn(aL,[["render",uL]]),hL={class:"psc-animate-pulse psc-space-y-4"},fL={class:"psc-space-y-6"},pL=u.createElementVNode("div",{class:"psc-space-y-3"},[u.createElementVNode("div",{class:"psc-h-8 psc-w-[64%] psc-rounded-lg psc-bg-gray-200 dark:psc-bg-gray-400"}),u.createElementVNode("div",{class:"psc-h-5 psc-w-[86%] psc-rounded-lg psc-bg-gray-100 dark:psc-bg-gray-300"})],-1),mL={class:"psc-space-y-4"},_L=u.createElementVNode("div",{class:"psc-h-5 psc-w-[24%] psc-rounded-lg psc-bg-gray-100 dark:psc-bg-gray-300"},null,-1),gL=u.defineComponent({__name:"TestResultDetailSkeleton",setup(e){return(t,n)=>(u.openBlock(),u.createElementBlock("div",hL,[u.createElementVNode("div",fL,[pL,u.createElementVNode("div",mL,[u.createVNode(dL)])]),_L,u.createVNode(oL)]))}}),bL={key:0,class:"consumer-test-result__ready"},yL={class:"psc-px-4"},kL={key:1},vL=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===ud.HPV&&[We.Ordered,We.InProgress].includes(n.testResult.result_status));return(r,a)=>(u.openBlock(),u.createElementBlock("div",null,[n.loading?(u.openBlock(),u.createBlock(gL,{key:0})):(u.openBlock(),u.createElementBlock(u.Fragment,{key:1},[u.unref(s)?(u.openBlock(),u.createElementBlock("div",bL,[u.createElementVNode("div",null,[n.hidePatientInfo?u.createCommentVNode("",!0):(u.openBlock(),u.createBlock(e_,{key:0,"first-name":n.testResult.first_name,class:"psc-px-4 psc-pb-2"},null,8,["first-name"])),u.createVNode(OA,{"test-result":n.testResult,class:"psc-px-4 psc-pb-4"},null,8,["test-result"]),n.testResult.is_free_consultant?(u.openBlock(),u.createBlock(WA,{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(GA,{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(eL,{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",yL,[u.unref(i)?u.createCommentVNode("",!0):u.renderSlot(r.$slots,"default",{key:0}),n.testResult.can_booking?(u.openBlock(),u.createElementBlock("div",kL,[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))]))}}),xL={class:"psc-shadow psc-p-3 psc-rounded-lg psc-space-y-3 hover:psc-bg-slate-100 psc-cursor-pointer"},EL={class:"psc-flex psc-items-center"},wL={class:"psc-flex-initial psc-font-semibold psc-text-primary"},CL={class:"psc-flex-auto psc-pl-2 psc-text-black/[0.6]"},DL=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),SL={class:"psc-flex"},NL={class:"psc-text-sm"},W0=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",xL,[u.createElementVNode("div",EL,[u.createElementVNode("div",wL,[u.createElementVNode("span",null,u.toDisplayString(`${i.$t("psc.test_result_order")} ${t.item.order_id}`),1)]),u.createElementVNode("div",CL,u.toDisplayString(u.unref(to)(t.item.visit_date)),1),DL]),u.createElementVNode("div",SL,[u.createElementVNode("div",{class:u.normalizeClass(["psc-flex psc-items-center psc-font-semibold",u.unref(s).cssClass])},[u.createElementVNode("span",NL,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)])]))}}),ML={class:"psc-px-4 psc-space-y-4"},TL={class:"psc-px-4 psc-w-full psc-pt-7 psc-text-center"},OL={key:1},AL={key:0,class:"psc-px-4 psc-pt-7"},LL=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(Od,{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(Ch,null,{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(r.$t("psc.test_result_all_results")),1)]),_:1}),u.createElementVNode("div",ML,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(n.items,(c,d)=>(u.openBlock(),u.createElementBlock("div",{key:`item${d}`},[u.createVNode(W0,{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",TL,[n.hideLoadMore?(u.openBlock(),u.createElementBlock("div",OL,u.toDisplayString(r.$t("psc.test_result_all_results_loaded")),1)):(u.openBlock(),u.createBlock(u.unref(sr),{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",AL,[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))]))}}),H0=()=>{window.open(`tel:${Wl}`,"_self")},IL=e=>`${e.slice(0,-6)} ${e.slice(-6,-3)} ${e.slice(-3)}`,PL={class:"psc-px-4"},FL={key:1,class:"psc-flex psc-mb-[20px]"},RL=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),BL={class:"psc-text-[14px]"},VL={class:"psc-font-[600] psc-text-[20px] psc-mb-[12px]"},$L={class:"psc-flex psc-items-center psc-mb-[8px]"},UL=u.createElementVNode("i",{class:"dgic-cake psc-text-[22px] psc-mr-1 psc-font-bold"},null,-1),WL={class:"psc-flex psc-items-center psc-mb-[8px]"},HL=u.createElementVNode("i",{class:"dgic-phone-light psc-text-[22px] psc-mr-1"},null,-1),YL={class:"psc-flex psc-items-center psc-mb-[8px]"},zL={class:"psc-bg-[#e6f0fe] psc-py-[20px] psc-px-[16px] psc-rounded-[8px] psc-flex psc-mb-[35px]"},jL=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),GL=["innerHTML"],XL=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?IL(t.phoneNumber):"");return(c,d)=>(u.openBlock(),u.createElementBlock("div",null,[u.createVNode(Ch,null,{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(u.unref(n)("psc.test_result_my_profile")),1)]),_:1}),u.createElementVNode("div",PL,[t.loading?(u.openBlock(),u.createBlock(Ul,{key:0,class:"psc-pb-16 psc-mb-[20px]"})):(u.openBlock(),u.createElementBlock("div",FL,[RL,u.createElementVNode("div",BL,[u.createElementVNode("div",VL,u.toDisplayString(u.unref(s)),1),u.createElementVNode("div",$L,[UL,u.createTextVNode(" "+u.toDisplayString(u.unref(i)),1)]),u.createElementVNode("div",WL,[HL,u.createTextVNode(" "+u.toDisplayString(u.unref(a)),1)]),u.createElementVNode("div",YL,[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",zL,[jL,u.createElementVNode("div",{innerHTML:u.unref(n)("psc.test_result_if_you_wish_to_edit_your_profile")},null,8,GL)]),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)])]))}}),HV="",qL={class:"call-us-text-button"},KL=u.createElementVNode("i",{class:"dgic-phone-light psc-mr-1"},null,-1),JL={class:"diag-opening-time"},ZL=u.defineComponent({__name:"CallUsTextButton",setup(e){const{t}=qe();return(n,s)=>(u.openBlock(),u.createElementBlock("div",qL,[u.createElementVNode("div",{class:"diag-phone-number",onClick:s[0]||(s[0]=(...i)=>u.unref(H0)&&u.unref(H0)(...i))},[KL,u.createElementVNode("span",null,u.toDisplayString(u.unref(Wl)),1)]),u.createElementVNode("div",JL,u.toDisplayString(u.unref(t)("psc.test_result_time_support")),1)]))}}),YV="",QL={class:"result-ready"},tI={class:"result-ready__title"},eI={class:"result-ready__date"},nI={key:0,class:"result-ready__date"},sI=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",QL,[u.createElementVNode("span",tI,u.toDisplayString(u.unref(a)),1),u.createElementVNode("div",eI,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",nI,u.toDisplayString(u.unref(n)("psc.test_result_result_released_on"))+" "+u.toDisplayString(`${u.unref(i)}.`),1)):u.createCommentVNode("",!0)]))}}),zV="",Y0={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"}}}},z0={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"}}}},iI={install:(e,t)=>{if(t!=null&&t.i18n){const{mergeLocaleMessage:n}=t.i18n.global;n("vi",Y0),n("en",z0)}}};Lt.AccountSegment=dd,Lt.BookAppointment=$0,Lt.BookAppointmentModal=cA,Lt.BookingDetail=lC,Lt.BookingDetailDesktop=MC,Lt.BookingList=EA,Lt.BookingListItem=U0,Lt.BookingStatus=bn,Lt.BottomCursedType=ea,Lt.CallUsFilledButton=u_,Lt.CallUsTextButton=ZL,Lt.CookieName=GC,Lt.CtaButton=aa,Lt.DayPartType=Rn,Lt.DocumentType=no,Lt.EventBusName=zC,Lt.EventType=jC,Lt.Gender=so,Lt.LoadingSkeleton=Ul,Lt.LsKey=c_,Lt.MyProfile=XL,Lt.NoItemsFound=Od,Lt.PatientFullInfo=lD,Lt.PaymentStatus=Fn,Lt.RejectedResult=d_,Lt.ResultReady=sI,Lt.ResultSegmentNormalType=Jp,Lt.ResultSegmentValueOPR=Zp,Lt.ResultType=Kp,Lt.ServiceType=ta,Lt.SupportEmail=YC,Lt.SupportPhone=Wl,Lt.TestResultConclusion=Ls,Lt.TestResultDetail=vL,Lt.TestResultHistoryDetail=B0,Lt.TestResultHistoryDetailModal=BO,Lt.TestResultList=LL,Lt.TestResultListItem=W0,Lt.TestResultStatus=We,Lt.TestResultTemplate=ud,Lt.TestStatus=qp,Lt.default=iI,Lt.en=z0,Lt.vi=Y0,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 Bt=Et.querySelector("ul");for(;Bt!=null&&Bt.firstChild;)Bt.firstChild.remove();Bt==null||Bt.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||EO),d.value.no=c.value-1>0?c.value-1:0,x.value=B.value.map(yt=>T(yt)),C.value=B.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",wO,[u.createElementVNode("div",CO,[u.createElementVNode("div",DO,[u.createElementVNode("div",SO,[u.createElementVNode("div",NO,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",MO,[u.createVNode(u.unref(sr),{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(sr),{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",TO,[u.createElementVNode("canvas",{ref_key:"chartRef",ref:r},null,512)])]),u.createElementVNode("div",OO,[u.createElementVNode("div",AO,u.toDisplayString(`${yt.$t("psc.test_result_about")} ${t.historyData.test_name}`),1),u.createElementVNode("div",LO,u.toDisplayString(t.historyData.purpose),1)])]))}}),RV="",IO=u.createElementVNode("div",null,null,-1),PO={key:0,class:"history-content psc-flex psc-justify-center psc-items-center psc-pb-[53px]"},FO={class:"psc-animate-spin"},RO={key:1,class:"history-content"},BO=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(Yp),{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(zp),null,{default:u.withCtx(()=>[IO,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(jp),{class:"modal-body"},{default:u.withCtx(()=>[n.loading?(u.openBlock(),u.createElementBlock("div",PO,[u.createElementVNode("div",FO,[u.createVNode(u.unref(js),{icon:"dgic-spinner-8",class:"psc-text-4xl"})])])):(u.openBlock(),u.createElementBlock("div",RO,[u.createVNode(B0,{class:"psc-pb-4","history-data":n.historyData},null,8,["history-data"])]))]),_:1})]),_:1},8,["modelValue"]))}}),BV="",VO=u.defineComponent({__name:"DateItem",props:{value:null,disabled:{type:Boolean},selected:{type:Boolean}},setup(e){const t=e,{dayShortNames:n}=ar(),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))}}),$O=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))}}),V0=(e,t)=>{let n=e.toString();for(;n.length<t;)n="0"+n;return n},UO=u.defineComponent({__name:"TimeSlotItem",props:{timeSlot:null,selected:{type:Boolean},icon:{default:""}},setup(e){const t=e,n=s=>`${V0(s.getHours(),2)}:${V0(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))}}),WO={class:"book-appointment psc-space-y-8"},HO={class:"psc-flex"},YO={key:0},zO={class:"psc-pb-6 psc-font-semibold psc-text-black/[0.85]"},jO={class:"psc-flex -psc-mx-2"},GO=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}=ar(),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=()=>{B(),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))},B=()=>{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(),B()})(),t({resetAll:w}),(U,W)=>{var tt,Q,dt;return u.openBlock(),u.createElementBlock("div",WO,[u.createElementVNode("div",HO,[(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(VO,{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",YO,[u.createElementVNode("div",zO,u.toDisplayString(u.unref(r)(d.value.value)),1),u.createElementVNode("div",jO,[(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($O,{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(UO,{"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(sr),{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"])])}}}),VV="",$0=Kn(GO,[["__scopeId","data-v-94386939"]]),XO={class:"psc-flex psc-flex-wrap psc-space-y-4 psc-pb-8"},qO={class:"psc-w-full psc-text-center"},KO={class:"psc-w-full psc-text-center psc-text-xl psc-font-semibold psc-text-black/[0.85]"},JO={class:"psc-w-full psc-text-center psc-text-black/[0.6]"},ZO=u.defineComponent({__name:"ErrorMessage",setup(e){return(t,n)=>(u.openBlock(),u.createElementBlock("div",XO,[u.createElementVNode("div",qO,[u.createVNode(u.unref(js),{icon:"dgic-circle-error-fill",class:"psc-text-[80px] psc-text-error"})]),u.createElementVNode("div",KO,u.toDisplayString(t.$t("psc.test_result_book_appointment_error_title")),1),u.createElementVNode("div",JO,u.toDisplayString(t.$t("psc.test_result_book_appointment_error_description")),1)]))}}),QO={class:"psc-flex psc-flex-wrap psc-space-y-4 psc-pb-8"},tA={class:"psc-w-full psc-text-center"},eA={class:"psc-w-full psc-text-center psc-text-xl psc-font-semibold psc-text-black/[0.85]"},nA={class:"psc-w-full psc-text-center psc-text-black/[0.6]"},sA=u.defineComponent({__name:"SuccessMessage",props:{timeSlot:null},setup(e){const t=e,{formatTime:n,formatDate:s}=ar(),i=u.computed(()=>n(new Date(t.timeSlot))),r=u.computed(()=>s(new Date(t.timeSlot)));return(a,c)=>(u.openBlock(),u.createElementBlock("div",QO,[u.createElementVNode("div",tA,[u.createVNode(u.unref(js),{icon:"dgic-circle-check",class:"psc-text-[80px] psc-text-success"})]),u.createElementVNode("div",eA,u.toDisplayString(a.$t("psc.test_result_successfully_booked")),1),u.createElementVNode("div",nA,u.toDisplayString(a.$t("psc.test_result_have_an_appointment_with_doctor",{time:u.unref(i),date:u.unref(r)})),1)]))}}),iA={class:"psc-flex-1 psc-text-center psc-font-semibold psc-text-black/[0.85]"},rA={class:"psc-flex-1 psc-text-right"},oA={key:0,class:"modal-body__content psc-flex psc-justify-center psc-items-center psc-pb-[53px]"},aA={class:"psc-animate-spin"},lA={key:1,class:"modal-body__content"},cA=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(Yp),{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(zp),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",iA,u.toDisplayString(f.$t("psc.test_result_choose_time")),1)],64)):u.createCommentVNode("",!0),u.createElementVNode("div",rA,[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(jp),{class:"modal-body"},{default:u.withCtx(()=>[n.loading?(u.openBlock(),u.createElementBlock("div",oA,[u.createElementVNode("div",aA,[u.createVNode(u.unref(js),{icon:"dgic-spinner-8",class:"psc-text-4xl"})])])):(u.openBlock(),u.createElementBlock("div",lA,[!n.showSuccess&&!n.showError?(u.openBlock(),u.createBlock($0,{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(sA,{key:1,"time-slot":r.value},null,8,["time-slot"])):u.createCommentVNode("",!0),n.showError?(u.openBlock(),u.createBlock(ZO,{key:2})):u.createCommentVNode("",!0)]))]),_:1})]),_:1},8,["modelValue"]))}}),$V="",uA={class:"psc-p-3 psc-rounded-lg psc-cursor-pointer psc-shadow hover:psc-bg-slate-100"},dA={class:"psc-space-y-3"},hA={class:"psc-flex psc-items-center"},fA={class:"psc-flex-initial psc-font-semibold psc-text-primary"},pA={class:"psc-flex-auto psc-pl-2 psc-text-black/[0.6] psc-text-sm psc-font-normal"},mA=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),_A={class:"psc-flex psc-space-x-2"},U0=u.defineComponent({__name:"BookingListItem",props:{item:null},setup(e){const t=e;return(n,s)=>(u.openBlock(),u.createElementBlock("div",uA,[u.createElementVNode("div",dA,[u.createElementVNode("div",hA,[u.createElementVNode("div",fA,[u.createElementVNode("span",null,u.toDisplayString(t.item.booking_code),1)]),u.createElementVNode("div",pA,u.toDisplayString(u.unref(to)(t.item.created_at)),1)]),mA]),u.createElementVNode("div",_A,[u.createVNode(qm,{status:t.item.booking_status},null,8,["status"]),u.createVNode(Km,{status:t.item.payment_status},null,8,["status"])])]))}}),gA={},bA={class:"psc-px-4 psc-text-2xl psc-pb-[30px] psc-font-bold psc-text-black/[0.85]"};function yA(e,t){return u.openBlock(),u.createElementBlock("div",bA,[u.renderSlot(e.$slots,"default")])}const Ch=Kn(gA,[["render",yA]]),kA={key:1},vA={class:"psc-px-4 psc-space-y-4"},xA={key:0,class:"psc-px-4 psc-w-full psc-pt-7 psc-text-center"},EA=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(Od,{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",kA,[u.createVNode(Ch,null,{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(u.unref(s)("psc.test_result_all_bookings")),1)]),_:1}),u.createElementVNode("div",vA,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(n.items,d=>(u.openBlock(),u.createBlock(U0,{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",xA,[u.createVNode(u.unref(sr),{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"])]))]))}}),wA={class:"psc-w-full psc-flex psc-flex-wrap psc-justify-center psc-space-y-2"},CA={key:0,class:"psc-w-full"},DA={class:"psc-flex psc-flex-wrap psc-text-sm psc-text-black/[0.6] -psc-mx-0.5"},SA={key:0,class:"psc-flex-auto psc-px-0.5"},NA={class:"psc-mr-1"},MA={key:1,class:"psc-flex-auto psc-px-0.5"},TA={class:"psc-mr-1"},OA=u.defineComponent({__name:"ResultReadyV2",props:{testResult:null},setup(e){const t=e,{t:n}=qe(),s=u.computed(()=>Wp(t.testResult.sample_collected_at)),i=u.computed(()=>Wp(t.testResult.result_at)),r=u.computed(()=>t.testResult.result_status===We.Ready);return(a,c)=>(u.openBlock(),u.createElementBlock("div",wA,[u.createVNode(n_,{status:t.testResult.result_status},null,8,["status"]),u.unref(s)||u.unref(r)?(u.openBlock(),u.createElementBlock("div",CA,[u.createElementVNode("div",DA,[u.unref(s)?(u.openBlock(),u.createElementBlock("div",SA,[u.createElementVNode("span",NA,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",MA,[u.createElementVNode("span",TA,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)]))}}),AA={class:"psc-w-full"},LA={class:"psc-shadow psc-rounded-lg psc-p-3 psc-flex psc-flex-wrap psc-border psc-border-[#e6f0fe]"},IA={class:"psc-flex psc-w-full psc-items-center"},PA={class:"psc-flex-initial psc-px-3 psc-mr-1"},FA={class:"psc-flex-auto"},RA={class:"psc-flex psc-items-center"},BA={class:"psc-text-black/[0.85] psc-font-semibold"},VA={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"},$A={class:"psc-text-sm psc-text-black/[0.6] psc-pt-1"},UA={class:"psc-w-full psc-pt-3"},WA=u.defineComponent({__name:"BookAppointmentButton",emits:["book"],setup(e,{emit:t}){return(n,s)=>(u.openBlock(),u.createElementBlock("div",AA,[u.createElementVNode("div",LA,[u.createElementVNode("div",IA,[u.createElementVNode("div",PA,[u.createVNode(u.unref(js),{icon:"dgic-stethoscope-thick",class:"psc-text-2xl psc-text-primary"})]),u.createElementVNode("div",FA,[u.createElementVNode("div",RA,[u.createElementVNode("div",BA,u.toDisplayString(n.$t("psc.test_result_doctor_appointment")),1),u.createElementVNode("div",VA,u.toDisplayString(n.$t("psc.test_result_free")),1)]),u.createElementVNode("div",$A,u.toDisplayString(n.$t("psc.test_result_more_about_your_results")),1)])]),u.createElementVNode("div",UA,[u.createVNode(u.unref(sr),{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})])])]))}}),HA={class:"psc-w-full"},YA={class:"psc-shadow psc-text-sm psc-rounded-lg psc-p-3"},zA={class:"psc-font-semibold psc-text-black/[0.85]"},jA={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"},GA=u.defineComponent({__name:"DoctorNote",props:{doctorNote:{default:""}},setup(e){const t=e;return(n,s)=>(u.openBlock(),u.createElementBlock("div",HA,[u.createElementVNode("div",YA,[u.createElementVNode("div",null,[u.createElementVNode("span",zA,u.toDisplayString(n.$t("psc.test_result_note")),1)]),u.createElementVNode("div",jA,u.toDisplayString(t.doctorNote),1)])]))}}),XA={class:"psc-w-full"},qA={class:"psc-shadow psc-rounded-lg psc-p-3 psc-flex psc-flex-wrap psc-border psc-border-[#e6f0fe]"},KA={class:"psc-flex psc-w-full psc-items-center"},JA={class:"psc-flex-initial psc-px-3 psc-mr-1"},ZA={class:"psc-flex-auto"},QA={class:"psc-text-black/[0.85] psc-font-semibold"},tL={class:"psc-text-sm psc-text-black/[0.6] psc-pt-1"},eL=u.defineComponent({__name:"UpcomingAppointment",props:{timeSlot:null},setup(e){const t=e,{formatDate:n,formatTime:s}=ar(),i=u.computed(()=>n(new Date(t.timeSlot))),r=u.computed(()=>s(new Date(t.timeSlot)));return(a,c)=>(u.openBlock(),u.createElementBlock("div",XA,[u.createElementVNode("div",qA,[u.createElementVNode("div",KA,[u.createElementVNode("div",JA,[u.createVNode(u.unref(js),{icon:"dgic-stethoscope-thick",class:"psc-text-2xl psc-text-primary"})]),u.createElementVNode("div",ZA,[u.createElementVNode("div",QA,u.toDisplayString(a.$t("psc.test_result_upcoming_appointment")),1),u.createElementVNode("div",tL,u.toDisplayString(a.$t("psc.test_result_date_at_time",{date:u.unref(i),time:u.unref(r)})),1)])])])]))}}),nL={},sL={class:"psc-shadow psc-p-3 psc-rounded-lg psc-space-y-3"},iL=[u.createStaticVNode('<div class="psc-h-12 psc-w-full psc-rounded-lg psc-bg-gray-200 dark:psc-bg-gray-400"></div><div class="psc-h-8 psc-w-full psc-rounded-lg psc-bg-gray-100 dark:psc-bg-gray-300"></div><div class="psc-h-8 psc-w-full psc-rounded-lg psc-bg-gray-100 dark:psc-bg-gray-300"></div><div class="psc-h-12 psc-w-full psc-rounded-lg psc-bg-gray-200 dark:psc-bg-gray-400"></div><div class="psc-h-8 psc-w-full psc-rounded-lg psc-bg-gray-100 dark:psc-bg-gray-300"></div><div class="psc-h-8 psc-w-full psc-rounded-lg psc-bg-gray-100 dark:psc-bg-gray-300"></div>',6)];function rL(e,t){return u.openBlock(),u.createElementBlock("div",sL,iL)}const oL=Kn(nL,[["render",rL]]),aL={},lL={class:"psc-shadow psc-p-3 psc-rounded-lg psc-space-y-4 psc-flex psc-flex-wrap"},cL=[u.createStaticVNode('<div class="psc-w-full psc-flex"><div class="psc-flex-initial"><div class="psc-rounded-full psc-h-12 psc-w-12 psc-bg-gray-100 dark:psc-bg-gray-300"></div></div><div class="psc-flex-auto psc-space-y-3 psc-pl-2"><div class="psc-h-5 psc-w-full psc-rounded-lg psc-bg-gray-100 dark:psc-bg-gray-300"></div><div class="psc-h-5 psc-w-full psc-rounded-lg psc-bg-gray-100 dark:psc-bg-gray-300"></div></div></div><div class="psc-h-10 psc-w-full psc-rounded-lg psc-bg-gray-100 dark:psc-bg-gray-300"></div>',2)];function uL(e,t){return u.openBlock(),u.createElementBlock("div",lL,cL)}const dL=Kn(aL,[["render",uL]]),hL={class:"psc-animate-pulse psc-px-4 psc-space-y-4"},fL={class:"psc-space-y-6"},pL=u.createElementVNode("div",{class:"psc-space-y-3"},[u.createElementVNode("div",{class:"psc-h-8 psc-w-[64%] psc-rounded-lg psc-bg-gray-200 dark:psc-bg-gray-400"}),u.createElementVNode("div",{class:"psc-h-5 psc-w-[86%] psc-rounded-lg psc-bg-gray-100 dark:psc-bg-gray-300"})],-1),mL={class:"psc-space-y-4"},_L=u.createElementVNode("div",{class:"psc-h-5 psc-w-[24%] psc-rounded-lg psc-bg-gray-100 dark:psc-bg-gray-300"},null,-1),gL=u.defineComponent({__name:"TestResultDetailSkeleton",setup(e){return(t,n)=>(u.openBlock(),u.createElementBlock("div",hL,[u.createElementVNode("div",fL,[pL,u.createElementVNode("div",mL,[u.createVNode(dL)])]),_L,u.createVNode(oL)]))}}),bL={key:0,class:"consumer-test-result__ready"},yL={class:"psc-px-4"},kL={key:1},vL=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===ud.HPV&&[We.Ordered,We.InProgress].includes(n.testResult.result_status));return(r,a)=>(u.openBlock(),u.createElementBlock("div",null,[n.loading?(u.openBlock(),u.createBlock(gL,{key:0})):(u.openBlock(),u.createElementBlock(u.Fragment,{key:1},[u.unref(s)?(u.openBlock(),u.createElementBlock("div",bL,[u.createElementVNode("div",null,[n.hidePatientInfo?u.createCommentVNode("",!0):(u.openBlock(),u.createBlock(e_,{key:0,"first-name":n.testResult.first_name,class:"psc-px-4 psc-pb-2"},null,8,["first-name"])),u.createVNode(OA,{"test-result":n.testResult,class:"psc-px-4 psc-pb-4"},null,8,["test-result"]),n.testResult.is_free_consultant?(u.openBlock(),u.createBlock(WA,{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(GA,{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(eL,{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",yL,[u.unref(i)?u.createCommentVNode("",!0):u.renderSlot(r.$slots,"default",{key:0}),n.testResult.can_booking?(u.openBlock(),u.createElementBlock("div",kL,[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))]))}}),xL={class:"psc-shadow psc-p-3 psc-rounded-lg psc-space-y-3 hover:psc-bg-slate-100 psc-cursor-pointer"},EL={class:"psc-flex psc-items-center"},wL={class:"psc-flex-initial psc-font-semibold psc-text-primary"},CL={class:"psc-flex-auto psc-pl-2 psc-text-black/[0.6]"},DL=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),SL={class:"psc-flex"},NL={class:"psc-text-sm"},W0=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",xL,[u.createElementVNode("div",EL,[u.createElementVNode("div",wL,[u.createElementVNode("span",null,u.toDisplayString(`${i.$t("psc.test_result_order")} ${t.item.order_id}`),1)]),u.createElementVNode("div",CL,u.toDisplayString(u.unref(to)(t.item.visit_date)),1),DL]),u.createElementVNode("div",SL,[u.createElementVNode("div",{class:u.normalizeClass(["psc-flex psc-items-center psc-font-semibold",u.unref(s).cssClass])},[u.createElementVNode("span",NL,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)])]))}}),ML={class:"psc-px-4 psc-space-y-4"},TL={class:"psc-px-4 psc-w-full psc-pt-7 psc-text-center"},OL={key:1},AL={key:0,class:"psc-px-4 psc-pt-7"},LL=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(Od,{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(Ch,null,{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(r.$t("psc.test_result_all_results")),1)]),_:1}),u.createElementVNode("div",ML,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(n.items,(c,d)=>(u.openBlock(),u.createElementBlock("div",{key:`item${d}`},[u.createVNode(W0,{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",TL,[n.hideLoadMore?(u.openBlock(),u.createElementBlock("div",OL,u.toDisplayString(r.$t("psc.test_result_all_results_loaded")),1)):(u.openBlock(),u.createBlock(u.unref(sr),{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",AL,[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))]))}}),H0=()=>{window.open(`tel:${Wl}`,"_self")},IL=e=>`${e.slice(0,-6)} ${e.slice(-6,-3)} ${e.slice(-3)}`,PL={class:"psc-px-4"},FL={key:1,class:"psc-flex psc-mb-[20px]"},RL=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),BL={class:"psc-text-[14px]"},VL={class:"psc-font-[600] psc-text-[20px] psc-mb-[12px]"},$L={class:"psc-flex psc-items-center psc-mb-[8px]"},UL=u.createElementVNode("i",{class:"dgic-cake psc-text-[22px] psc-mr-1 psc-font-bold"},null,-1),WL={class:"psc-flex psc-items-center psc-mb-[8px]"},HL=u.createElementVNode("i",{class:"dgic-phone-light psc-text-[22px] psc-mr-1"},null,-1),YL={class:"psc-flex psc-items-center psc-mb-[8px]"},zL={class:"psc-bg-[#e6f0fe] psc-py-[20px] psc-px-[16px] psc-rounded-[8px] psc-flex psc-mb-[35px]"},jL=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),GL=["innerHTML"],XL=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?IL(t.phoneNumber):"");return(c,d)=>(u.openBlock(),u.createElementBlock("div",null,[u.createVNode(Ch,null,{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(u.unref(n)("psc.test_result_my_profile")),1)]),_:1}),u.createElementVNode("div",PL,[t.loading?(u.openBlock(),u.createBlock(Ul,{key:0,class:"psc-pb-16 psc-mb-[20px]"})):(u.openBlock(),u.createElementBlock("div",FL,[RL,u.createElementVNode("div",BL,[u.createElementVNode("div",VL,u.toDisplayString(u.unref(s)),1),u.createElementVNode("div",$L,[UL,u.createTextVNode(" "+u.toDisplayString(u.unref(i)),1)]),u.createElementVNode("div",WL,[HL,u.createTextVNode(" "+u.toDisplayString(u.unref(a)),1)]),u.createElementVNode("div",YL,[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",zL,[jL,u.createElementVNode("div",{innerHTML:u.unref(n)("psc.test_result_if_you_wish_to_edit_your_profile")},null,8,GL)]),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)])]))}}),HV="",qL={class:"call-us-text-button"},KL=u.createElementVNode("i",{class:"dgic-phone-light psc-mr-1"},null,-1),JL={class:"diag-opening-time"},ZL=u.defineComponent({__name:"CallUsTextButton",setup(e){const{t}=qe();return(n,s)=>(u.openBlock(),u.createElementBlock("div",qL,[u.createElementVNode("div",{class:"diag-phone-number",onClick:s[0]||(s[0]=(...i)=>u.unref(H0)&&u.unref(H0)(...i))},[KL,u.createElementVNode("span",null,u.toDisplayString(u.unref(Wl)),1)]),u.createElementVNode("div",JL,u.toDisplayString(u.unref(t)("psc.test_result_time_support")),1)]))}}),YV="",QL={class:"result-ready"},tI={class:"result-ready__title"},eI={class:"result-ready__date"},nI={key:0,class:"result-ready__date"},sI=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",QL,[u.createElementVNode("span",tI,u.toDisplayString(u.unref(a)),1),u.createElementVNode("div",eI,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",nI,u.toDisplayString(u.unref(n)("psc.test_result_result_released_on"))+" "+u.toDisplayString(`${u.unref(i)}.`),1)):u.createCommentVNode("",!0)]))}}),zV="",Y0={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"}}}},z0={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"}}}},iI={install:(e,t)=>{if(t!=null&&t.i18n){const{mergeLocaleMessage:n}=t.i18n.global;n("vi",Y0),n("en",z0)}}};Lt.AccountSegment=dd,Lt.BookAppointment=$0,Lt.BookAppointmentModal=cA,Lt.BookingDetail=lC,Lt.BookingDetailDesktop=MC,Lt.BookingList=EA,Lt.BookingListItem=U0,Lt.BookingStatus=bn,Lt.BottomCursedType=ea,Lt.CallUsFilledButton=u_,Lt.CallUsTextButton=ZL,Lt.CookieName=GC,Lt.CtaButton=aa,Lt.DayPartType=Rn,Lt.DocumentType=no,Lt.EventBusName=zC,Lt.EventType=jC,Lt.Gender=so,Lt.LoadingSkeleton=Ul,Lt.LsKey=c_,Lt.MyProfile=XL,Lt.NoItemsFound=Od,Lt.PatientFullInfo=lD,Lt.PaymentStatus=Fn,Lt.RejectedResult=d_,Lt.ResultReady=sI,Lt.ResultSegmentNormalType=Jp,Lt.ResultSegmentValueOPR=Zp,Lt.ResultType=Kp,Lt.ServiceType=ta,Lt.SupportEmail=YC,Lt.SupportPhone=Wl,Lt.TestResultConclusion=Ls,Lt.TestResultDetail=vL,Lt.TestResultHistoryDetail=B0,Lt.TestResultHistoryDetailModal=BO,Lt.TestResultList=LL,Lt.TestResultListItem=W0,Lt.TestResultStatus=We,Lt.TestResultTemplate=ud,Lt.TestStatus=qp,Lt.default=iI,Lt.en=z0,Lt.vi=Y0,Object.defineProperties(Lt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|