pat-shared-components 0.5.0-beta.6 → 0.5.0-beta.7
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
|
@@ -14941,7 +14941,7 @@ const zV = {
|
|
|
14941
14941
|
}
|
|
14942
14942
|
});
|
|
14943
14943
|
const GN = {}, XN = /* @__PURE__ */ H("div", { class: "psc-text-center" }, [
|
|
14944
|
-
/* @__PURE__ */ H("i", { class: "dgic-cancel-right-to-left psc-text-
|
|
14944
|
+
/* @__PURE__ */ H("i", { class: "dgic-cancel-right-to-left psc-text-[80px] psc-text-red-darken-1" })
|
|
14945
14945
|
], -1), qN = { class: "psc-mt-6 psc-space-y-4 psc-text-center" }, KN = { class: "psc-text-xl psc-font-semibold psc-text-black/[0.85]" }, ZN = { class: "psc-text-black/[0.6]" };
|
|
14946
14946
|
function JN(e, t) {
|
|
14947
14947
|
return st(), dt("div", null, [
|
package/dist/index.umd.js
CHANGED
|
@@ -77,7 +77,7 @@ ${f}`:u)}else throw l},onCacheKey:l=>ux(t,n,l)}}function Sw(e,t,n,s){const{modif
|
|
|
77
77
|
* vue-i18n v9.2.2
|
|
78
78
|
* (c) 2022 kazuya kawaguchi
|
|
79
79
|
* Released under the MIT License.
|
|
80
|
-
*/const Cw="9.2.2";function Mw(){let e=!1;typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(e=!0,Go().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(e=!0,Go().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Go().__INTLIFY_PROD_DEVTOOLS__=!1),process.env.NODE_ENV!=="production"&&e&&console.warn("You are running the esm-bundler build of vue-i18n. It is recommended to configure your bundler to explicitly replace feature flag globals with boolean literals to get proper tree-shaking in the final bundle.")}let Om=ps.__EXTEND_POINT__;const io=()=>++Om,ji={FALLBACK_TO_ROOT:Om,NOT_SUPPORTED_PRESERVE:io(),NOT_SUPPORTED_FORMATTER:io(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:io(),NOT_SUPPORTED_GET_CHOICE_INDEX:io(),COMPONENT_NAME_LEGACY_COMPATIBLE:io(),NOT_FOUND_PARENT_SCOPE:io()},Nw={[ji.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[ji.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[ji.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[ji.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[ji.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[ji.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[ji.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope."};function Am(e,...t){return uc(Nw[e],...t)}let Lm=Qt.__EXTEND_POINT__;const is=()=>++Lm,Qe={UNEXPECTED_RETURN_TYPE:Lm,INVALID_ARGUMENT:is(),MUST_BE_CALL_SETUP_TOP:is(),NOT_INSLALLED:is(),NOT_AVAILABLE_IN_LEGACY_MODE:is(),REQUIRED_VALUE:is(),INVALID_VALUE:is(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:is(),NOT_INSLALLED_WITH_PROVIDE:is(),UNEXPECTED_ERROR:is(),NOT_COMPATIBLE_LEGACY_VUE_I18N:is(),BRIDGE_SUPPORT_VUE_2_ONLY:is(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:is(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:is(),__EXTEND_POINT__:is()};function zi(e,...t){return hc(e,null,process.env.NODE_ENV!=="production"?{messages:Tw,args:t}:void 0)}const Tw={[Qe.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[Qe.INVALID_ARGUMENT]:"Invalid argument",[Qe.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[Qe.NOT_INSLALLED]:"Need to install with `app.use` function",[Qe.UNEXPECTED_ERROR]:"Unexpected error",[Qe.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[Qe.REQUIRED_VALUE]:"Required in value: {0}",[Qe.INVALID_VALUE]:"Invalid value",[Qe.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[Qe.NOT_INSLALLED_WITH_PROVIDE]:"Need to install with `provide` function",[Qe.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[Qe.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[Qe.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define \u2018i18n\u2019 option or custom block in Composition API with using local scope in Legacy API mode",[Qe.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Nd=Wi("__transrateVNode"),Td=Wi("__datetimeParts"),Od=Wi("__numberParts"),Ad=Wi("__enableEmitter"),Ld=Wi("__disableEmitter"),Ow=Wi("__setPluralRules");Wi("__intlifyMeta");const Im=Wi("__injectWithOption");function Id(e){if(!Ve(e))return e;for(const t in e)if(!!kd(e,t))if(!t.includes("."))Ve(e[t])&&Id(e[t]);else{const n=t.split("."),s=n.length-1;let i=e;for(let r=0;r<s;r++)n[r]in i||(i[n[r]]={}),i=i[n[r]];i[n[s]]=e[t],delete e[t],Ve(i[n[s]])&&Id(i[n[s]])}return e}function Pd(e,t){const{messages:n,__i18n:s,messageResolver:i,flatJson:r}=t,l=ye(n)?n:ln(s)?{}:{[e]:{}};if(ln(s)&&s.forEach(u=>{if("locale"in u&&"resource"in u){const{locale:f,resource:m}=u;f?(l[f]=l[f]||{},Ko(m,l[f])):Ko(m,l)}else Tt(u)&&Ko(JSON.parse(u),l)}),i==null&&r)for(const u in l)kd(l,u)&&Id(l[u]);return l}const gc=e=>!Ve(e)||ln(e);function Ko(e,t){if(gc(e)||gc(t))throw zi(Qe.INVALID_VALUE);for(const n in e)kd(e,n)&&(gc(e[n])||gc(t[n])?t[n]=e[n]:Ko(e[n],t[n]))}function Pm(e){return e.type}function Aw(e,t,n){let s=Ve(t.messages)?t.messages:{};"__i18nGlobal"in n&&(s=Pd(e.locale.value,{messages:s,__i18n:n.__i18nGlobal}));const i=Object.keys(s);i.length&&i.forEach(r=>{e.mergeLocaleMessage(r,s[r])});{if(Ve(t.datetimeFormats)){const r=Object.keys(t.datetimeFormats);r.length&&r.forEach(l=>{e.mergeDateTimeFormat(l,t.datetimeFormats[l])})}if(Ve(t.numberFormats)){const r=Object.keys(t.numberFormats);r.length&&r.forEach(l=>{e.mergeNumberFormat(l,t.numberFormats[l])})}}}function Fm(e){return h.createVNode(h.Text,null,e,0)}const Rm="__INTLIFY_META__";let Vm=0;function Bm(e){return(t,n,s,i)=>e(n,s,h.getCurrentInstance()||void 0,i)}const Lw=()=>{const e=h.getCurrentInstance();let t=null;return e&&(t=Pm(e)[Rm])?{[Rm]:t}:null};function Iw(e={},t){const{__root:n}=e,s=n===void 0;let i=je(e.inheritLocale)?e.inheritLocale:!0;const r=h.ref(n&&i?n.locale.value:Tt(e.locale)?e.locale:pc),l=h.ref(n&&i?n.fallbackLocale.value:Tt(e.fallbackLocale)||ln(e.fallbackLocale)||ye(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:r.value),u=h.ref(Pd(r.value,e)),f=h.ref(ye(e.datetimeFormats)?e.datetimeFormats:{[r.value]:{}}),m=h.ref(ye(e.numberFormats)?e.numberFormats:{[r.value]:{}});let g=n?n.missingWarn:je(e.missingWarn)||to(e.missingWarn)?e.missingWarn:!0,k=n?n.fallbackWarn:je(e.fallbackWarn)||to(e.fallbackWarn)?e.fallbackWarn:!0,D=n?n.fallbackRoot:je(e.fallbackRoot)?e.fallbackRoot:!0,C=!!e.fallbackFormat,S=vn(e.missing)?e.missing:null,P=vn(e.missing)?Bm(e.missing):null,V=vn(e.postTranslation)?e.postTranslation:null,M=n?n.warnHtmlMessage:je(e.warnHtmlMessage)?e.warnHtmlMessage:!0,O=!!e.escapeParameter;const $=n?n.modifiers:ye(e.modifiers)?e.modifiers:{};let I=e.pluralRules||n&&n.pluralRules,A;A=(()=>{s&&pm(null);const J={version:Cw,locale:r.value,fallbackLocale:l.value,messages:u.value,modifiers:$,pluralRules:I,missing:P===null?void 0:P,missingWarn:g,fallbackWarn:k,fallbackFormat:C,unresolving:!0,postTranslation:V===null?void 0:V,warnHtmlMessage:M,escapeParameter:O,messageResolver:e.messageResolver,__meta:{framework:"vue"}};J.datetimeFormats=f.value,J.numberFormats=m.value,J.__datetimeFormatters=ye(A)?A.__datetimeFormatters:void 0,J.__numberFormatters=ye(A)?A.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(J.__v_emitter=ye(A)?A.__v_emitter:void 0);const lt=_w(J);return s&&pm(lt),lt})(),qo(A,r.value,l.value);function H(){return[r.value,l.value,u.value,f.value,m.value]}const it=h.computed({get:()=>r.value,set:J=>{r.value=J,A.locale=r.value}}),rt=h.computed({get:()=>l.value,set:J=>{l.value=J,A.fallbackLocale=l.value,qo(A,r.value,J)}}),_t=h.computed(()=>u.value),dt=h.computed(()=>f.value),vt=h.computed(()=>m.value);function wt(){return vn(V)?V:null}function se(J){V=J,A.postTranslation=J}function xt(){return S}function Ft(J){J!==null&&(P=Bm(J)),S=J,A.missing=P}function Ot(J,lt){return J!=="translate"||!lt.resolvedMessage}const Kt=(J,lt,Pt,st,Be,Vt)=>{H();let Ue;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)try{hm(Lw()),s||(A.fallbackContext=n?mw():void 0),Ue=J(A)}finally{hm(null),s||(A.fallbackContext=void 0)}else Ue=J(A);if($n(Ue)&&Ue===fc){const[Le,Ct]=lt();if(process.env.NODE_ENV!=="production"&&n&&Tt(Le)&&Ot(Pt,Ct)&&(D&&(_c(k,Le)||_m(g,Le))&&zo(Am(ji.FALLBACK_TO_ROOT,{key:Le,type:Pt})),process.env.NODE_ENV!=="production")){const{__v_emitter:yn}=A;yn&&D&&yn.emit("fallback",{type:Pt,key:Le,to:"global",groupId:`${Pt}:${Le}`})}return n&&D?st(n):Be(Le)}else{if(Vt(Ue))return Ue;throw zi(Qe.UNEXPECTED_RETURN_TYPE)}};function te(...J){return Kt(lt=>Reflect.apply(km,null,[lt,...J]),()=>Sd(...J),"translate",lt=>Reflect.apply(lt.t,lt,[...J]),lt=>lt,lt=>Tt(lt))}function Z(...J){const[lt,Pt,st]=J;if(st&&!Ve(st))throw zi(Qe.INVALID_ARGUMENT);return te(lt,Pt,Ln({resolvedMessage:!0},st||{}))}function Dt(...J){return Kt(lt=>Reflect.apply(Dm,null,[lt,...J]),()=>Cd(...J),"datetime format",lt=>Reflect.apply(lt.d,lt,[...J]),()=>mc,lt=>Tt(lt))}function Zt(...J){return Kt(lt=>Reflect.apply(Mm,null,[lt,...J]),()=>Md(...J),"number format",lt=>Reflect.apply(lt.n,lt,[...J]),()=>mc,lt=>Tt(lt))}function Ht(J){return J.map(lt=>Tt(lt)||$n(lt)||je(lt)?Fm(String(lt)):lt)}const Nt={normalize:Ht,interpolate:J=>J,type:"vnode"};function ce(...J){return Kt(lt=>{let Pt;const st=lt;try{st.processor=Nt,Pt=Reflect.apply(km,null,[st,...J])}finally{st.processor=null}return Pt},()=>Sd(...J),"translate",lt=>lt[Nd](...J),lt=>[Fm(lt)],lt=>ln(lt))}function ue(...J){return Kt(lt=>Reflect.apply(Mm,null,[lt,...J]),()=>Md(...J),"number format",lt=>lt[Od](...J),()=>[],lt=>Tt(lt)||ln(lt))}function At(...J){return Kt(lt=>Reflect.apply(Dm,null,[lt,...J]),()=>Cd(...J),"datetime format",lt=>lt[Td](...J),()=>[],lt=>Tt(lt)||ln(lt))}function ie(J){I=J,A.pluralRules=I}function jt(J,lt){const Pt=Tt(lt)?lt:r.value,st=x(Pt);return A.messageResolver(st,J)!==null}function z(J){let lt=null;const Pt=rm(A,l.value,r.value);for(let st=0;st<Pt.length;st++){const Be=u.value[Pt[st]]||{},Vt=A.messageResolver(Be,J);if(Vt!=null){lt=Vt;break}}return lt}function L(J){const lt=z(J);return lt!=null?lt:n?n.tm(J)||{}:{}}function x(J){return u.value[J]||{}}function b(J,lt){u.value[J]=lt,A.messages=u.value}function v(J,lt){u.value[J]=u.value[J]||{},Ko(lt,u.value[J]),A.messages=u.value}function W(J){return f.value[J]||{}}function F(J,lt){f.value[J]=lt,A.datetimeFormats=f.value,Cm(A,J,lt)}function X(J,lt){f.value[J]=Ln(f.value[J]||{},lt),A.datetimeFormats=f.value,Cm(A,J,lt)}function ut(J){return m.value[J]||{}}function ct(J,lt){m.value[J]=lt,A.numberFormats=m.value,Tm(A,J,lt)}function K(J,lt){m.value[J]=Ln(m.value[J]||{},lt),A.numberFormats=m.value,Tm(A,J,lt)}Vm++,n&&Mr&&(h.watch(n.locale,J=>{i&&(r.value=J,A.locale=J,qo(A,r.value,l.value))}),h.watch(n.fallbackLocale,J=>{i&&(l.value=J,A.fallbackLocale=J,qo(A,r.value,l.value))}));const nt={id:Vm,locale:it,fallbackLocale:rt,get inheritLocale(){return i},set inheritLocale(J){i=J,J&&n&&(r.value=n.locale.value,l.value=n.fallbackLocale.value,qo(A,r.value,l.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:_t,get modifiers(){return $},get pluralRules(){return I||{}},get isGlobal(){return s},get missingWarn(){return g},set missingWarn(J){g=J,A.missingWarn=g},get fallbackWarn(){return k},set fallbackWarn(J){k=J,A.fallbackWarn=k},get fallbackRoot(){return D},set fallbackRoot(J){D=J},get fallbackFormat(){return C},set fallbackFormat(J){C=J,A.fallbackFormat=C},get warnHtmlMessage(){return M},set warnHtmlMessage(J){M=J,A.warnHtmlMessage=J},get escapeParameter(){return O},set escapeParameter(J){O=J,A.escapeParameter=J},t:te,getLocaleMessage:x,setLocaleMessage:b,mergeLocaleMessage:v,getPostTranslationHandler:wt,setPostTranslationHandler:se,getMissingHandler:xt,setMissingHandler:Ft,[Ow]:ie};return nt.datetimeFormats=dt,nt.numberFormats=vt,nt.rt=Z,nt.te=jt,nt.tm=L,nt.d=Dt,nt.n=Zt,nt.getDateTimeFormat=W,nt.setDateTimeFormat=F,nt.mergeDateTimeFormat=X,nt.getNumberFormat=ut,nt.setNumberFormat=ct,nt.mergeNumberFormat=K,nt[Im]=e.__injectWithOption,nt[Nd]=ce,nt[Td]=At,nt[Od]=ue,process.env.NODE_ENV!=="production"&&(nt[Ad]=J=>{A.__v_emitter=J},nt[Ld]=()=>{A.__v_emitter=void 0}),nt}const Fd={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Pw({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((s,i)=>s=[...s,...ln(i.children)?i.children:[i]],[]):t.reduce((n,s)=>{const i=e[s];return i&&(n[s]=i()),n},{})}function $m(e){return h.Fragment}Ln({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>$n(e)||!isNaN(e)}},Fd);function Fw(e){return ln(e)&&!Tt(e[0])}function Ym(e,t,n,s){const{slots:i,attrs:r}=t;return()=>{const l={part:!0};let u={};e.locale&&(l.locale=e.locale),Tt(e.format)?l.key=e.format:Ve(e.format)&&(Tt(e.format.key)&&(l.key=e.format.key),u=Object.keys(e.format).reduce((D,C)=>n.includes(C)?Ln({},D,{[C]:e.format[C]}):D,{}));const f=s(e.value,l,u);let m=[l.key];ln(f)?m=f.map((D,C)=>{const S=i[D.type],P=S?S({[D.type]:D.value,index:C,parts:f}):[D.value];return Fw(P)&&(P[0].key=`${D.type}-${C}`),P}):Tt(f)&&(m=[f]);const g=Ln({},r),k=Tt(e.tag)||Ve(e.tag)?e.tag:$m();return h.h(k,g,m)}}Ln({value:{type:Number,required:!0},format:{type:[String,Object]}},Fd),Ln({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Fd);function Wm(e,t){}const Rw=Wi("global-vue-i18n");function sn(e={}){const t=h.getCurrentInstance();if(t==null)throw zi(Qe.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw zi(Qe.NOT_INSLALLED);const n=Vw(t),s=$w(n),i=Pm(t),r=Bw(e,i);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw zi(Qe.NOT_AVAILABLE_IN_LEGACY_MODE);return Uw(t,r,s,e)}if(r==="global")return Aw(s,e,i),s;if(r==="parent"){let f=Yw(n,t,e.__useComponent);return f==null&&(process.env.NODE_ENV!=="production"&&zo(Am(ji.NOT_FOUND_PARENT_SCOPE)),f=s),f}const l=n;let u=l.__getInstance(t);if(u==null){const f=Ln({},e);"__i18n"in i&&(f.__i18n=i.__i18n),s&&(f.__root=s),u=Iw(f),Ww(l,t,u),l.__setInstance(t,u)}return u}function Vw(e){{const t=h.inject(e.isCE?Rw:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw zi(e.isCE?Qe.NOT_INSLALLED_WITH_PROVIDE:Qe.UNEXPECTED_ERROR);return t}}function Bw(e,t){return dc(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function $w(e){return e.mode==="composition"?e.global:e.global.__composer}function Yw(e,t,n=!1){let s=null;const i=t.root;let r=t.parent;for(;r!=null;){const l=e;if(e.mode==="composition")s=l.__getInstance(r);else if(__VUE_I18N_LEGACY_API__){const u=l.__getInstance(r);u!=null&&(s=u.__composer,n&&s&&!s[Im]&&(s=null))}if(s!=null||i===r)break;r=r.parent}return s}function Ww(e,t,n){let s=null;h.onMounted(()=>{if((process.env.NODE_ENV!=="production"||!1)&&!0&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,s=_x();const i=n;i[Ad]&&i[Ad](s),s.on("*",Wm)}},t),h.onUnmounted(()=>{if((process.env.NODE_ENV!=="production"||!1)&&!0&&t.vnode.el&&t.vnode.el.__VUE_I18N__){s&&s.off("*",Wm);const i=n;i[Ld]&&i[Ld](),delete t.vnode.el.__VUE_I18N__}e.__deleteInstance(t)},t)}function Uw(e,t,n,s={}){const i=t==="local",r=h.shallowRef(null);if(i&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw zi(Qe.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const l=je(s.inheritLocale)?s.inheritLocale:!0,u=h.ref(i&&l?n.locale.value:Tt(s.locale)?s.locale:pc),f=h.ref(i&&l?n.fallbackLocale.value:Tt(s.fallbackLocale)||ln(s.fallbackLocale)||ye(s.fallbackLocale)||s.fallbackLocale===!1?s.fallbackLocale:u.value),m=h.ref(Pd(u.value,s)),g=h.ref(ye(s.datetimeFormats)?s.datetimeFormats:{[u.value]:{}}),k=h.ref(ye(s.numberFormats)?s.numberFormats:{[u.value]:{}}),D=i?n.missingWarn:je(s.missingWarn)||to(s.missingWarn)?s.missingWarn:!0,C=i?n.fallbackWarn:je(s.fallbackWarn)||to(s.fallbackWarn)?s.fallbackWarn:!0,S=i?n.fallbackRoot:je(s.fallbackRoot)?s.fallbackRoot:!0,P=!!s.fallbackFormat,V=vn(s.missing)?s.missing:null,M=vn(s.postTranslation)?s.postTranslation:null,O=i?n.warnHtmlMessage:je(s.warnHtmlMessage)?s.warnHtmlMessage:!0,$=!!s.escapeParameter,I=i?n.modifiers:ye(s.modifiers)?s.modifiers:{},A=s.pluralRules||i&&n.pluralRules;function Y(){return[u.value,f.value,m.value,g.value,k.value]}const H=h.computed({get:()=>r.value?r.value.locale.value:u.value,set:b=>{r.value&&(r.value.locale.value=b),u.value=b}}),it=h.computed({get:()=>r.value?r.value.fallbackLocale.value:f.value,set:b=>{r.value&&(r.value.fallbackLocale.value=b),f.value=b}}),rt=h.computed(()=>r.value?r.value.messages.value:m.value),_t=h.computed(()=>g.value),dt=h.computed(()=>k.value);function vt(){return r.value?r.value.getPostTranslationHandler():M}function wt(b){r.value&&r.value.setPostTranslationHandler(b)}function se(){return r.value?r.value.getMissingHandler():V}function xt(b){r.value&&r.value.setMissingHandler(b)}function Ft(b){return Y(),b()}function Ot(...b){return r.value?Ft(()=>Reflect.apply(r.value.t,null,[...b])):Ft(()=>"")}function Kt(...b){return r.value?Reflect.apply(r.value.rt,null,[...b]):""}function te(...b){return r.value?Ft(()=>Reflect.apply(r.value.d,null,[...b])):Ft(()=>"")}function Z(...b){return r.value?Ft(()=>Reflect.apply(r.value.n,null,[...b])):Ft(()=>"")}function Dt(b){return r.value?r.value.tm(b):{}}function Zt(b,v){return r.value?r.value.te(b,v):!1}function Ht(b){return r.value?r.value.getLocaleMessage(b):{}}function kt(b,v){r.value&&(r.value.setLocaleMessage(b,v),m.value[b]=v)}function Nt(b,v){r.value&&r.value.mergeLocaleMessage(b,v)}function ce(b){return r.value?r.value.getDateTimeFormat(b):{}}function ue(b,v){r.value&&(r.value.setDateTimeFormat(b,v),g.value[b]=v)}function At(b,v){r.value&&r.value.mergeDateTimeFormat(b,v)}function ie(b){return r.value?r.value.getNumberFormat(b):{}}function jt(b,v){r.value&&(r.value.setNumberFormat(b,v),k.value[b]=v)}function z(b,v){r.value&&r.value.mergeNumberFormat(b,v)}const L={get id(){return r.value?r.value.id:-1},locale:H,fallbackLocale:it,messages:rt,datetimeFormats:_t,numberFormats:dt,get inheritLocale(){return r.value?r.value.inheritLocale:l},set inheritLocale(b){r.value&&(r.value.inheritLocale=b)},get availableLocales(){return r.value?r.value.availableLocales:Object.keys(m.value)},get modifiers(){return r.value?r.value.modifiers:I},get pluralRules(){return r.value?r.value.pluralRules:A},get isGlobal(){return r.value?r.value.isGlobal:!1},get missingWarn(){return r.value?r.value.missingWarn:D},set missingWarn(b){r.value&&(r.value.missingWarn=b)},get fallbackWarn(){return r.value?r.value.fallbackWarn:C},set fallbackWarn(b){r.value&&(r.value.missingWarn=b)},get fallbackRoot(){return r.value?r.value.fallbackRoot:S},set fallbackRoot(b){r.value&&(r.value.fallbackRoot=b)},get fallbackFormat(){return r.value?r.value.fallbackFormat:P},set fallbackFormat(b){r.value&&(r.value.fallbackFormat=b)},get warnHtmlMessage(){return r.value?r.value.warnHtmlMessage:O},set warnHtmlMessage(b){r.value&&(r.value.warnHtmlMessage=b)},get escapeParameter(){return r.value?r.value.escapeParameter:$},set escapeParameter(b){r.value&&(r.value.escapeParameter=b)},t:Ot,getPostTranslationHandler:vt,setPostTranslationHandler:wt,getMissingHandler:se,setMissingHandler:xt,rt:Kt,d:te,n:Z,tm:Dt,te:Zt,getLocaleMessage:Ht,setLocaleMessage:kt,mergeLocaleMessage:Nt,getDateTimeFormat:ce,setDateTimeFormat:ue,mergeDateTimeFormat:At,getNumberFormat:ie,setNumberFormat:jt,mergeNumberFormat:z};function x(b){b.locale.value=u.value,b.fallbackLocale.value=f.value,Object.keys(m.value).forEach(v=>{b.mergeLocaleMessage(v,m.value[v])}),Object.keys(g.value).forEach(v=>{b.mergeDateTimeFormat(v,g.value[v])}),Object.keys(k.value).forEach(v=>{b.mergeNumberFormat(v,k.value[v])}),b.escapeParameter=$,b.fallbackFormat=P,b.fallbackRoot=S,b.fallbackWarn=C,b.missingWarn=D,b.warnHtmlMessage=O}return h.onBeforeMount(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw zi(Qe.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const b=r.value=e.proxy.$i18n.__composer;t==="global"?(u.value=b.locale.value,f.value=b.fallbackLocale.value,m.value=b.messages.value,g.value=b.datetimeFormats.value,k.value=b.numberFormats.value):i&&x(b)}),L}if(dw(vw),hw(zx),fw(rm),Mw(),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=Go();e.__INTLIFY__=!0,ew(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;function Hw(){const{t:e}=sn();return{getGenderText:s=>s?{[Qa.Male]:e("psc.male"),[Qa.Female]:e("psc.female")}[s]:"",getDocumentType:s=>s?{[Ja.IDCard]:e("psc.test_result_booking_document_type_id_number"),[Ja.Passport]:e("psc.test_result_booking_document_type_passport_no"),[Ja.PassportNo]:e("psc.test_result_booking_document_type_passport_no"),[Ja.Unknown]:""}[s]:""}}const jw={class:"psc-relative psc-overflow-hidden psc-rounded-t-lg psc-bg-blue-darken-1"},zw={class:"psc-space-y-6"},Um=h.defineComponent({__name:"BasicInfo",props:{patient:null,doctor:{default:void 0}},setup(e){const t=e,{t:n}=sn(),{formatDate:s}=Ms(),{getGenderText:i,getDocumentType:r}=Hw(),l=h.computed(()=>[{icon:"dgic-user-fill",text:!t.patient.date_of_birth&&!t.patient.gender?"":[s(new Date(t.patient.date_of_birth)),i(t.patient.gender)].join(" - ")},{icon:"dgic-phone-fill",text:t.patient.phone_number},{icon:"dgic-credit-card-fill",text:t.patient.document_number?`${r(t.patient.document_type)} ${t.patient.document_number}`:""},{icon:"dgic-pin-fill",text:t.patient.address},{icon:"dgic-message-fill",text:t.patient.email}].filter(f=>f.text)),u=h.computed(()=>{var f,m;return[{icon:"dgic-credit-card-fill",text:(f=t.doctor)!=null&&f.account_code?`${n("psc.test_result_booking_account_code")} ${t.doctor.account_code}`:""},{icon:"dgic-phone-fill",text:(m=t.doctor)==null?void 0:m.phone_number}].filter(g=>g.text)});return(f,m)=>(h.openBlock(),h.createElementBlock("div",jw,[h.createVNode(Bb,{class:"psc-absolute -psc-top-1 psc-right-4 psc-w-32 psc-opacity-20"}),h.createElementVNode("div",zw,[h.createVNode(Tf,{title:f.$t("psc.test_result_booking_patient"),"person-name":t.patient.first_name,items:h.unref(l)},null,8,["title","person-name","items"]),t.doctor?(h.openBlock(),h.createBlock(Tf,{key:0,title:f.$t("psc.test_result_booking_doctor"),"person-name":t.doctor.name,items:h.unref(u)},null,8,["title","person-name","items"])):h.createCommentVNode("",!0)])]))}}),Gw={class:"psc-pb-4 psc-font-semibold psc-text-black/[0.85]"},Xw={class:"psc-rounded-lg psc-bg-gray-lighten-2 psc-p-4 psc-text-sm psc-italic psc-text-black/[0.85]"},Hm=h.defineComponent({__name:"BookingNote",props:{note:{default:""}},setup(e){const t=e;return(n,s)=>(h.openBlock(),h.createElementBlock("div",null,[h.createElementVNode("div",Gw,h.toDisplayString(n.$t("psc.test_result_booking_note")),1),h.createElementVNode("div",Xw,h.toDisplayString(t.note),1)]))}});function jm(){const{t:e}=sn();return{getBookingStatusText:s=>s?{[An.Created]:e("psc.test_result_booking_booking_status_created"),[An.InProgress]:e("psc.test_result_booking_booking_status_in_progress"),[An.Completed]:e("psc.test_result_booking_booking_status_completed"),[An.Canceled]:e("psc.test_result_booking_booking_status_canceled")}[s]:"",getPaymentStatusText:s=>s?{[ns.PayLater]:e("psc.test_result_booking_payment_status_pay_later"),[ns.PaidOnline]:e("psc.test_result_booking_payment_status_paid_online"),[ns.Paid]:e("psc.test_result_booking_payment_status_paid"),[ns.RefundInProgress]:e("psc.test_result_booking_payment_status_refund_in_progress"),[ns.Refunded]:e("psc.test_result_booking_payment_status_refunded"),[ns.Canceled]:e("psc.test_result_booking_payment_status_canceled")}[s]:""}}const zm=h.defineComponent({__name:"BookingStatusComponent",props:{status:null},setup(e){const t=e,{getBookingStatusText:n}=jm(),s=h.computed(()=>{if(!t.status)return{text:"",cssClass:""};const i={[An.Created]:"psc-text-blue-darken-1 psc-bg-blue-lighten-1",[An.InProgress]:"psc-text-orange-darken-1 psc-bg-orange-lighten-1",[An.Completed]:"psc-text-green-darken-2 psc-bg-green-lighten-1",[An.Canceled]:"psc-text-red-darken-1 psc-bg-red-lighten-1"};return{text:n(t.status),cssClass:i[t.status]}});return(i,r)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["psc-rounded-lg psc-py-1 psc-px-2 psc-text-xs psc-font-semibold",h.unref(s).cssClass])},h.toDisplayString(h.unref(s).text),3))}}),Gm=h.defineComponent({__name:"PaymentStatusComponent",props:{status:null},setup(e){const t=e,{getPaymentStatusText:n}=jm(),s=h.computed(()=>{if(!t.status)return{text:"",cssClass:""};const i={[ns.PayLater]:"psc-text-blue-darken-1 psc-bg-blue-lighten-1",[ns.PaidOnline]:"psc-text-green-darken-2 psc-bg-green-lighten-1",[ns.Paid]:"psc-text-green-darken-2 psc-bg-green-lighten-1",[ns.RefundInProgress]:"psc-text-orange-darken-1 psc-bg-orange-lighten-1",[ns.Refunded]:"psc-text-green-darken-2 psc-bg-green-lighten-1",[ns.Canceled]:"psc-text-red-darken-1 psc-bg-red-lighten-1"};return{text:n(t.status),cssClass:i[t.status]}});return(i,r)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["psc-rounded-lg psc-py-1 psc-px-2 psc-text-xs psc-font-semibold",h.unref(s).cssClass])},h.toDisplayString(h.unref(s).text),3))}}),qw={class:"psc-h-[110px] psc-space-y-3 psc-rounded-lg psc-bg-white psc-p-4 psc-shadow"},Kw={class:"psc-flex psc-items-end"},Zw={class:"psc-flex-auto psc-text-sm psc-font-medium psc-text-black/[0.85]"},Jw={class:"psc-flex-initial psc-pl-2 psc-text-center"},Qw={class:"psc-flex psc-items-center"},tE={class:"psc-flex-auto psc-text-lg psc-font-semibold psc-text-blue-darken-1"},eE={class:"psc-flex-initial psc-pl-2 psc-text-center"},Xm=h.defineComponent({__name:"BookingNumber",props:{bookingCode:null,bookingStatus:null,paymentStatus:null},setup(e){const t=e;return(n,s)=>(h.openBlock(),h.createElementBlock("div",qw,[h.createElementVNode("div",Kw,[h.createElementVNode("div",Zw,h.toDisplayString(n.$t("psc.test_result_booking_booking_number")),1),h.createElementVNode("div",Jw,[h.createVNode(zm,{status:t.bookingStatus},null,8,["status"])])]),h.createElementVNode("div",Qw,[h.createElementVNode("div",tE,h.toDisplayString(t.bookingCode),1),h.createElementVNode("div",eE,[h.createVNode(Gm,{status:t.paymentStatus},null,8,["status"])])])]))}}),nE={class:"psc-space-y-6"},sE={class:"psc-pb-4 psc-font-semibold psc-text-black/[0.85]"},iE={class:"psc-space-y-3"},rE=h.createElementVNode("div",{class:"psc-flex psc-w-6 psc-flex-initial psc-items-start psc-text-black/[0.4]"},[h.createElementVNode("i",{class:"dgic-test"})],-1),aE={class:"psc-flex psc-flex-auto psc-items-start psc-text-sm psc-text-black/[0.85]"},qm=h.defineComponent({__name:"TestList",props:{services:null},setup(e){const t=e,{t:n,locale:s}=sn(),i=h.computed(()=>{const l=[{title:n("psc.test_result_booking_tests"),items:[]},{title:n("psc.test_result_booking_packages"),items:[]},{title:n("psc.test_result_booking_imaging_services"),items:[]}];return t.services&&t.services.forEach(({service:u})=>{u&&(u.service_type==Ho.ImagingService?l[2].items.push(u):[Ho.Group,Ho.Package].includes(u.service_type)?l[1].items.push(u):l[0].items.push(u))}),l.filter(u=>u.items.length>0)}),r=l=>s.value==="vi"?l.test_name_vi:l.test_name_en;return(l,u)=>(h.openBlock(),h.createElementBlock("div",nE,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(h.unref(i),(f,m)=>(h.openBlock(),h.createElementBlock("div",{key:`serviceDataItem${m}`},[h.createElementVNode("div",sE,h.toDisplayString(f.title),1),h.createElementVNode("div",iE,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(f.items,(g,k)=>(h.openBlock(),h.createElementBlock("div",{key:`item${k}`,class:"psc-flex"},[rE,h.createElementVNode("div",aE,h.toDisplayString(r(g)),1)]))),128))])]))),128))]))}}),oE={class:"psc-pb-4 psc-font-semibold psc-text-black/[0.85]"},lE={class:"psc-flex"},cE=h.createElementVNode("div",{class:"psc-flex psc-w-6 psc-flex-initial psc-items-start psc-text-black/[0.4]"},[h.createElementVNode("i",{class:"dgic-statement-thick"})],-1),uE={class:"psc-flex psc-flex-auto psc-items-start psc-text-sm psc-text-black/[0.85]"},Km=h.defineComponent({__name:"TotalPayment",props:{totalAmount:null},setup(e){const t=e,{locale:n}=sn(),s=h.computed(()=>{const i=new Intl.NumberFormat("vi-VN",{style:"currency",currency:"VND"}).format(t.totalAmount),r=i.replace(/\./g,",");return{vi:i,en:r}[n.value]||t.totalAmount});return(i,r)=>(h.openBlock(),h.createElementBlock("div",null,[h.createElementVNode("div",oE,h.toDisplayString(i.$t("psc.test_result_booking_total_payment")),1),h.createElementVNode("div",lE,[cE,h.createElementVNode("div",uE,h.toDisplayString(h.unref(s)),1)])]))}}),zs=(e,t)=>{const n=e.__vccOpts||e;for(const[s,i]of t)n[s]=i;return n},dE={},hE={class:"psc-text-xl psc-font-semibold"};function fE(e,t){return h.openBlock(),h.createElementBlock("div",hE,[h.renderSlot(e.$slots,"default")])}const yc=zs(dE,[["render",fE]]),pE={class:"psc-space-y-4"},mE={class:"psc-w-20 psc-flex-initial psc-text-black/[0.85]"},_E={class:"psc-flex-auto"},gE=["href"],Zm=h.defineComponent({__name:"DiagSupport",setup(e){const{t}=sn(),n=h.computed(()=>[{label:t("psc.test_result_booking_support_zalo"),text:"Diag Laboratories",href:"https://zalo.me/1687121322887646763"},{label:t("psc.test_result_booking_support_hotline"),text:"19001717",href:"tel:19001717"},{label:t("psc.test_result_booking_support_email"),text:"customersupport@diag.vn",href:"mailto:customersupport@diag.vn"}]);return(s,i)=>(h.openBlock(),h.createElementBlock("div",pE,[h.createVNode(yc,null,{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(s.$t("psc.test_result_support")),1)]),_:1}),(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(h.unref(n),(r,l)=>(h.openBlock(),h.createElementBlock("div",{key:`link${l}`,class:"psc-flex"},[h.createElementVNode("div",mE,h.toDisplayString(r.label),1),h.createElementVNode("div",_E,[h.createElementVNode("a",{class:"psc-text-blue-darken-1",href:r.href},h.toDisplayString(r.text),9,gE)])]))),128))]))}}),yE={class:"psc-flex"},bE={class:"psc-flex psc-min-w-[2.75rem] psc-flex-initial psc-items-start psc-justify-center psc-py-1.5"},kE={class:"psc-flex psc-flex-auto psc-flex-wrap psc-items-center"},vE={class:"psc-w-full psc-font-semibold psc-text-black/[0.85]"},xE={key:0,class:"psc-w-full psc-text-sm psc-text-black/[0.6]"},Rd=h.defineComponent({__name:"TitleIcon",props:{icon:null,title:null,subtitle:{default:""}},setup(e){const t=e;return(n,s)=>(h.openBlock(),h.createElementBlock("div",yE,[h.createElementVNode("div",bE,[h.createElementVNode("i",{class:h.normalizeClass([t.icon,"psc-text-2xl psc-text-blue-darken-1"])},null,2)]),h.createElementVNode("div",kE,[h.createElementVNode("div",vE,h.toDisplayString(t.title),1),t.subtitle?(h.openBlock(),h.createElementBlock("div",xE,h.toDisplayString(t.subtitle),1)):h.createCommentVNode("",!0)])]))}}),wE={key:0,class:"psc-space-y-4"},EE={class:"psc-space-y-8 psc-rounded-lg psc-border psc-border-gray-lighten-2 psc-p-4 psc-shadow"},Vd=h.defineComponent({__name:"SampleCollectionInfo",props:{booking:null},setup(e){const t=e,{t:n}=sn(),{formatDateHuge:s}=Ms(),i=h.computed(()=>{var u,f,m,g;return{address:(u=t.booking.data)!=null&&u.is_hbc?t.booking.address:(m=(f=t.booking.data)==null?void 0:f.supportingInformation)==null?void 0:m.appointmentSampleCollectionPlace,expectedDate:(g=t.booking.data)==null?void 0:g.planned_test_date}}),r=h.computed(()=>{var u,f,m;return(!!t.booking.address||!!((f=(u=t.booking.data)==null?void 0:u.supportingInformation)!=null&&f.appointmentSampleCollectionPlace))&&!!((m=t.booking.data)!=null&&m.planned_test_date)}),l=h.computed(()=>{var u;return(u=t.booking.data)!=null&&u.is_hbc?n("psc.test_result_booking_sample_collection"):n("psc.test_result_booking_testing_location")});return(u,f)=>h.unref(r)?(h.openBlock(),h.createElementBlock("div",wE,[h.createVNode(yc,null,{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(h.unref(l)),1)]),_:1}),h.createElementVNode("div",EE,[h.unref(i).address?(h.openBlock(),h.createBlock(Rd,{key:0,icon:"dgic-pin-map-thick",title:u.$t("psc.test_result_booking_address"),subtitle:h.unref(i).address,class:"psc-relative after:psc-absolute after:-psc-bottom-4 after:psc-h-[1px] after:psc-w-full after:psc-bg-gray-lighten-2 after:psc-content-['']"},null,8,["title","subtitle"])):h.createCommentVNode("",!0),h.unref(i).expectedDate?(h.openBlock(),h.createBlock(Rd,{key:1,icon:"dgic-date-thick",title:u.$t("psc.test_result_booking_expected_date"),subtitle:h.unref(s)(new Date(h.unref(i).expectedDate))},null,8,["title","subtitle"])):h.createCommentVNode("",!0)])])):h.createCommentVNode("",!0)}}),DE={class:"psc-flex psc-w-full"},SE={class:"psc-text-2xl psc-font-bold psc-text-black/[0.85]"},CE={class:"psc-pr-1"},ME={class:"psc-capitalize"},Jm=h.defineComponent({__name:"PatientName",props:{firstName:null},setup(e){const t=e,{t:n}=sn(),s=h.computed(()=>{var i;return((i=t.firstName)==null?void 0:i.toLowerCase())||""});return(i,r)=>(h.openBlock(),h.createElementBlock("div",DE,[h.createElementVNode("div",SE,[h.createElementVNode("span",CE,h.toDisplayString(h.unref(n)("psc.test_result_hi")),1),h.createElementVNode("span",ME,h.toDisplayString(h.unref(s)),1)])]))}}),Qm=h.defineComponent({__name:"ResultStatus",props:{status:null},setup(e){const t=e,{t:n}=sn(),s=h.computed(()=>{switch(t.status){case Je.Ordered:case Je.InProgress:return{cssClass:"psc-text-black/60",text:n("psc.test_result_your_result_not_ready"),icon:"dgic-time-dotted"};case Je.Ready:return{cssClass:"psc-text-green-darken-1",text:n("psc.test_result_your_result_ready"),icon:"dgic-check-mark-thick"};case Je.PartiallyComplete:return{cssClass:"psc-text-black/60",text:n("psc.test_result_result_partial_completed"),icon:"dgic-time-dotted"};default:return{cssClass:"",text:"",icon:""}}});return(i,r)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["psc-relative psc-w-full psc-font-semibold",h.unref(s).cssClass])},[h.createElementVNode("span",null,h.toDisplayString(h.unref(s).text),1),h.createElementVNode("i",{class:h.normalizeClass(["psc-absolute -psc-bottom-0.5 psc-ml-1 psc-text-xl",h.unref(s).icon])},null,2)],2))}}),NE={key:0,class:"psc-w-full psc-font-semibold psc-text-blue-darken-2"},TE={key:1,class:"psc-relative psc-w-full psc-font-semibold psc-text-red-darken-1"},OE=h.createElementVNode("i",{class:"dgic-cancel-right-to-left psc-absolute -psc-bottom-0.5 psc-ml-1 psc-text-xl"},null,-1),t_=h.defineComponent({__name:"BookingResultStatus",props:{testResultKey:{default:""},resultStatus:null,bookingStatus:null},setup(e){const t=e;return(n,s)=>(h.openBlock(),h.createElementBlock("div",null,[t.testResultKey?t.bookingStatus===h.unref(An).Canceled?(h.openBlock(),h.createElementBlock("div",TE,[h.createElementVNode("span",null,h.toDisplayString(n.$t("psc.test_result_booking_booking_canceled")),1),OE])):(h.openBlock(),h.createBlock(Qm,{key:2,status:t.resultStatus},null,8,["status"])):(h.openBlock(),h.createElementBlock("div",NE,[h.createElementVNode("span",null,h.toDisplayString(n.$t("psc.test_result_booking_results_will_be_there")),1)]))]))}}),AE={class:"psc-relative -psc-mt-1 -psc-mb-[64px] psc-h-[76px] psc-w-full psc-overflow-hidden"},LE=h.defineComponent({__name:"BottomCurved",props:{type:{default:jo.Medium}},setup(e){const t=e,n=h.computed(()=>{let s="";switch(t.type){case jo.Large:s+="psc-w-[1160px] sm:psc-w-[1220px] md:psc-w-[1300px] lg:psc-w-[1500px] xl:psc-w-[1640px] 2xl:psc-w-[1840px] ";break;case jo.Medium:default:s+="psc-w-[1160px] xs-2-w sm:psc-w-[1400px] md:psc-w-[1540px] lg:psc-w-[1800px] xl:psc-w-[2000px] 2xl:psc-w-[2400px] "}return s});return(s,i)=>(h.openBlock(),h.createElementBlock("div",AE,[h.createElementVNode("div",{class:h.normalizeClass(["psc-absolute psc-bottom-0 psc-left-1/2 psc-h-[1064px] -psc-translate-x-1/2 psc-rounded-full psc-bg-blue-darken-1",h.unref(n)])},null,2)]))}}),gB="",e_=zs(LE,[["__scopeId","data-v-2b946045"]]);function n_(e){const t=h.computed(()=>({first_name:e.value.first_name,date_of_birth:e.value.date_of_birth,document_number:e.value.document_number,document_type:e.value.document_type,gender:e.value.gender,phone_number:e.value.phone_number,address:e.value.address,email:e.value.email})),n=h.computed(()=>{var s,i,r,l;return((s=e.value.account)==null?void 0:s.account_segment)===bd.Doctor?{name:(i=e.value.account)==null?void 0:i.name,account_code:(r=e.value.account)==null?void 0:r.account_code,phone_number:(l=e.value.account)==null?void 0:l.phone_number}:void 0});return{patient:t,doctor:n}}const IE={class:"psc-flex psc-flex-wrap psc-space-y-4 psc-rounded-lg psc-border psc-border-gray-lighten-2 psc-p-4 psc-shadow"},PE={key:0,class:"psc-w-full"},s_=h.defineComponent({__name:"CtaButton",props:{icon:null,title:null,subtitle:{default:""},buttonText:{default:""},buttonDisabled:{type:Boolean,default:!1}},emits:["click:button"],setup(e,{emit:t}){const n=e;return(s,i)=>(h.openBlock(),h.createElementBlock("div",IE,[h.createVNode(Rd,{icon:n.icon,title:n.title,subtitle:n.subtitle},null,8,["icon","title","subtitle"]),n.buttonText?(h.openBlock(),h.createElementBlock("div",PE,[h.createVNode(h.unref(sa),{class:"psc-w-full",type:"primary",disabled:n.buttonDisabled,onClick:i[0]||(i[0]=r=>t("click:button"))},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(n.buttonText),1)]),_:1},8,["disabled"])])):h.createCommentVNode("",!0)]))}}),FE={key:0,class:"psc-space-y-4"},i_=h.defineComponent({__name:"BookingCtaButtons",props:{booking:null},emits:["click:view-results","click:find-location"],setup(e,{emit:t}){const n=e,{t:s}=sn(),i=h.computed(()=>{var u,f,m;let l={visible:!1};return n.booking.booking_status===An.Created&&((f=(u=n.booking.data)==null?void 0:u.supportingInformation)!=null&&f.appointmentSampleCollectionPlace?l={visible:!1}:l=(m=n.booking.data)!=null&&m.is_hbc?{icon:"dgic-support-thick",subtitile:s("psc.test_result_booking_diag_contact_you_and_check"),visible:!0}:{icon:"dgic-pin-map-thick",subtitile:s("psc.test_result_find_nearest_diag_branch"),visible:!0,buttonText:s("psc.test_result_booking_find_location_center")}),l}),r=h.computed(()=>{let l={visible:!1};switch(n.booking.booking_status){case An.Created:l={subtitile:s("psc.test_result_booking_need_collect_sample"),buttonDisabled:!0,visible:!0};break;case An.InProgress:l={subtitile:s("psc.test_result_booking_processing_sample"),visible:!0};break;case An.Completed:l={subtitile:s("psc.test_result_booking_fully_ready"),visible:!0};break;case An.Canceled:default:l={visible:!1}}return l});return(l,u)=>h.unref(i).visible||h.unref(r).visible?(h.openBlock(),h.createElementBlock("div",FE,[h.unref(i).visible?(h.openBlock(),h.createBlock(s_,{key:0,title:l.$t("psc.test_result_booking_next_step"),subtitle:h.unref(i).subtitile,icon:h.unref(i).icon||"","button-text":h.unref(i).buttonText,"onClick:button":u[0]||(u[0]=f=>t("click:find-location"))},null,8,["title","subtitle","icon","button-text"])):h.createCommentVNode("",!0),h.unref(r).visible?(h.openBlock(),h.createBlock(s_,{key:1,title:l.$t("psc.test_result_booking_test_results"),subtitle:h.unref(r).subtitile,icon:"dgic-reports-thick","button-text":l.$t("psc.test_result_booking_view_results"),"button-disabled":h.unref(r).buttonDisabled,"onClick:button":u[1]||(u[1]=f=>t("click:view-results",n.booking.test_result_key))},null,8,["title","subtitle","button-text","button-disabled"])):h.createCommentVNode("",!0)])):h.createCommentVNode("",!0)}}),RE={},VE={class:"psc-space-y-4"},BE=[h.createStaticVNode('<div class="psc-h-8 psc-w-[64%] psc-rounded-lg psc-bg-gray-100 dark:psc-bg-gray-300"></div><div class="psc-space-y-3 psc-rounded-lg psc-p-3 psc-shadow"><div class="psc-h-7 psc-w-1/2 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 class="psc-h-5 psc-w-full psc-rounded-lg psc-bg-gray-100 dark:psc-bg-gray-300"></div><div class="psc-h-7 psc-w-1/2 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 class="psc-h-5 psc-w-full psc-rounded-lg psc-bg-gray-100 dark:psc-bg-gray-300"></div></div>',2)];function $E(e,t){return h.openBlock(),h.createElementBlock("div",VE,BE)}const YE=zs(RE,[["render",$E]]),WE={},UE={class:"psc-flex psc-flex-wrap psc-space-y-4 psc-rounded-lg psc-p-3 psc-shadow"},HE=[h.createStaticVNode('<div class="psc-flex psc-w-full"><div class="psc-flex-initial"><div class="psc-h-12 psc-w-12 psc-rounded-full 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 jE(e,t){return h.openBlock(),h.createElementBlock("div",UE,HE)}const bc=zs(WE,[["render",jE]]),zE={class:"psc-animate-pulse psc-space-y-11"},GE={class:"psc-space-y-6"},XE=h.createElementVNode("div",{class:"psc-space-y-3"},[h.createElementVNode("div",{class:"psc-h-8 psc-w-[64%] psc-rounded-lg psc-bg-gray-200 dark:psc-bg-gray-400"}),h.createElementVNode("div",{class:"psc-h-5 psc-w-[86%] psc-rounded-lg psc-bg-gray-100 dark:psc-bg-gray-300"})],-1),qE={class:"psc-space-y-4"},KE=h.defineComponent({__name:"BookingDetailSkeleton",setup(e){return(t,n)=>(h.openBlock(),h.createElementBlock("div",zE,[h.createElementVNode("div",GE,[XE,h.createElementVNode("div",qE,[h.createVNode(bc)])]),h.createVNode(YE)]))}}),ZE={class:"psc-space-y-11 psc-px-4 psc-pb-4"},JE={class:"psc-space-y-6"},QE={class:"psc-space-y-1"},tD={class:"psc-space-y-4"},eD={class:"psc-rounded-lg psc-shadow"},nD={class:"psc-relative psc-space-y-6 psc-px-4 psc-pb-4 lg:psc-px-6"},sD=h.defineComponent({__name:"BookingDetail",props:{booking:null,loading:{type:Boolean},hideSupport:{type:Boolean,default:!1}},emits:["click:view-results","click:find-location"],setup(e,{emit:t}){const n=e,s=h.computed(()=>n.booking),i=h.computed(()=>n.booking.booking_status===An.Created),{patient:r,doctor:l}=n_(s);return(u,f)=>(h.openBlock(),h.createElementBlock("div",ZE,[n.loading?(h.openBlock(),h.createBlock(KE,{key:0})):(h.openBlock(),h.createElementBlock(h.Fragment,{key:1},[h.createElementVNode("div",JE,[h.createElementVNode("div",QE,[h.createVNode(Jm,{"first-name":n.booking.first_name},null,8,["first-name"]),h.createVNode(t_,{"test-result-key":n.booking.test_result_key,"result-status":n.booking.result_status,"booking-status":n.booking.booking_status},null,8,["test-result-key","result-status","booking-status"])]),h.createVNode(i_,{booking:n.booking,"onClick:findLocation":f[0]||(f[0]=m=>t("click:find-location")),"onClick:viewResults":f[1]||(f[1]=m=>{t("click:view-results",m)})},null,8,["booking"])]),h.unref(i)?(h.openBlock(),h.createBlock(Vd,{key:0,booking:n.booking},null,8,["booking"])):h.createCommentVNode("",!0),h.createElementVNode("div",tD,[h.createVNode(yc,null,{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(u.$t("psc.test_result_booking_booking_details")),1)]),_:1}),h.createElementVNode("div",eD,[h.createVNode(Um,{patient:h.unref(r),doctor:h.unref(l),class:"psc-px-4 psc-py-4 lg:psc-px-6"},null,8,["patient","doctor"]),h.createVNode(e_),h.createElementVNode("div",nD,[h.createVNode(Xm,{"booking-code":n.booking.booking_code,"booking-status":n.booking.booking_status,"payment-status":n.booking.payment_status},null,8,["booking-code","booking-status","payment-status"]),h.createVNode(qm,{services:h.unref(s).services},null,8,["services"]),h.unref(s).total_amount?(h.openBlock(),h.createBlock(Km,{key:0,"total-amount":h.unref(s).total_amount},null,8,["total-amount"])):h.createCommentVNode("",!0),h.unref(s).note?(h.openBlock(),h.createBlock(Hm,{key:1,note:h.unref(s).note},null,8,["note"])):h.createCommentVNode("",!0)])])]),h.unref(i)?h.createCommentVNode("",!0):(h.openBlock(),h.createBlock(Vd,{key:1,booking:n.booking},null,8,["booking"])),n.hideSupport?h.createCommentVNode("",!0):(h.openBlock(),h.createBlock(Zm,{key:2}))],64))]))}}),iD={},rD={class:"psc-space-y-4"},aD=[h.createStaticVNode('<div class="psc-h-8 psc-w-[64%] psc-rounded-lg psc-bg-gray-100 dark:psc-bg-gray-300"></div><div class="psc-space-y-3 psc-rounded-lg psc-p-3 psc-shadow"><div class="psc-h-7 psc-w-1/2 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 class="psc-h-5 psc-w-full psc-rounded-lg psc-bg-gray-100 dark:psc-bg-gray-300"></div><div class="psc-h-7 psc-w-1/2 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 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>',2)];function oD(e,t){return h.openBlock(),h.createElementBlock("div",rD,aD)}const lD=zs(iD,[["render",oD]]),cD={class:"psc-flex psc-w-full psc-animate-pulse psc-flex-wrap psc-space-y-6"},uD=h.createElementVNode("div",{class:"psc-w-full psc-space-y-3"},[h.createElementVNode("div",{class:"psc-h-8 psc-w-[64%] psc-rounded-lg psc-bg-gray-200 dark:psc-bg-gray-400"}),h.createElementVNode("div",{class:"psc-h-5 psc-w-[86%] psc-rounded-lg psc-bg-gray-100 dark:psc-bg-gray-300"})],-1),dD={class:"psc-w-2/3"},hD={class:"psc-w-1/3 psc-space-y-11 psc-pl-11"},fD=h.defineComponent({__name:"BookingDetailDesktopSkeleton",setup(e){return(t,n)=>(h.openBlock(),h.createElementBlock("div",cD,[uD,h.createElementVNode("div",dD,[h.createVNode(lD)]),h.createElementVNode("div",hD,[h.createVNode(bc),h.createVNode(bc)])]))}}),pD={class:"psc-flex psc-flex-wrap psc-px-4 psc-pb-4"},mD={class:"psc-w-full psc-space-y-2 psc-pb-6"},_D={class:"psc-w-2/3"},gD={class:"psc-rounded-lg psc-shadow"},yD={class:"psc-relative psc-space-y-6 psc-px-4 psc-pb-4 lg:psc-px-6"},bD={class:"psc-w-1/3 psc-space-y-11 psc-pl-11"},kD=h.defineComponent({__name:"BookingDetailDesktop",props:{booking:null,loading:{type:Boolean},hideSupport:{type:Boolean,default:!1}},emits:["click:view-results","click:find-location"],setup(e,{emit:t}){const n=e,s=h.computed(()=>n.booking),{patient:i,doctor:r}=n_(s);return(l,u)=>(h.openBlock(),h.createElementBlock("div",pD,[n.loading?(h.openBlock(),h.createBlock(fD,{key:0})):(h.openBlock(),h.createElementBlock(h.Fragment,{key:1},[h.createElementVNode("div",mD,[h.createVNode(yc,null,{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(l.$t("psc.test_result_booking_booking_details")),1)]),_:1}),h.createVNode(t_,{"test-result-key":n.booking.test_result_key,"result-status":n.booking.result_status,"booking-status":n.booking.booking_status},null,8,["test-result-key","result-status","booking-status"])]),h.createElementVNode("div",_D,[h.createElementVNode("div",gD,[h.createVNode(Um,{patient:h.unref(i),doctor:h.unref(r),class:"psc-px-4 psc-py-4 lg:psc-px-6"},null,8,["patient","doctor"]),h.createVNode(e_,{type:"lg"}),h.createElementVNode("div",yD,[h.createVNode(Xm,{"booking-code":n.booking.booking_code,"booking-status":n.booking.booking_status,"payment-status":n.booking.payment_status},null,8,["booking-code","booking-status","payment-status"]),h.createVNode(qm,{services:h.unref(s).services},null,8,["services"]),h.unref(s).total_amount?(h.openBlock(),h.createBlock(Km,{key:0,"total-amount":h.unref(s).total_amount},null,8,["total-amount"])):h.createCommentVNode("",!0),h.unref(s).note?(h.openBlock(),h.createBlock(Hm,{key:1,note:h.unref(s).note},null,8,["note"])):h.createCommentVNode("",!0)])])]),h.createElementVNode("div",bD,[h.createVNode(i_,{booking:n.booking,"onClick:findLocation":u[0]||(u[0]=f=>t("click:find-location")),"onClick:viewResults":u[1]||(u[1]=f=>{t("click:view-results",f)})},null,8,["booking"]),h.createVNode(Vd,{booking:n.booking},null,8,["booking"]),n.hideSupport?h.createCommentVNode("",!0):(h.openBlock(),h.createBlock(Zm,{key:0}))])],64))]))}}),vD={},xD={class:"psc-animate-pulse psc-cursor-pointer psc-space-y-3 psc-rounded-lg psc-p-3 psc-shadow hover:psc-bg-slate-100"},wD=[h.createElementVNode("div",{class:"psc-w-full"},[h.createElementVNode("div",{class:"psc-h-5 psc-w-64 psc-rounded-lg psc-bg-gray-200 dark:psc-bg-gray-400"})],-1),h.createElementVNode("div",{class:"psc-w-full"},[h.createElementVNode("div",{class:"psc-h-5 psc-w-32 psc-rounded-lg psc-bg-gray-100 dark:psc-bg-gray-300"})],-1)];function ED(e,t){return h.openBlock(),h.createElementBlock("div",xD,wD)}const kc=zs(vD,[["render",ED]]),DD={class:"psc-relative psc-mb-[24px] psc-cursor-pointer psc-rounded-[8px] psc-bg-blue-darken-1 psc-px-[16px] psc-py-[10px] psc-text-white"},SD=["href"],CD={class:"psc-text-sm psc-font-medium"},MD={class:"psc-text-xs psc-font-normal"},ND={key:0,class:"dgic-chevron-right-thin psc-absolute psc-right-[16px] psc-top-[50%] -psc-translate-y-1/2 psc-text-xl !psc-font-bold"},TD=h.defineComponent({__name:"CtaButton",props:{url:null,title:null,subtitle:null,hideIcon:{type:Boolean,default:!1}},setup(e){const t=e;return(n,s)=>(h.openBlock(),h.createElementBlock("div",null,[h.createElementVNode("div",DD,[h.createElementVNode("a",{href:t.url,target:"_blank",class:"psc-text-center"},[h.createElementVNode("div",null,[h.createElementVNode("div",CD,h.toDisplayString(t.title),1),h.createElementVNode("div",MD,h.toDisplayString(t.subtitle),1),t.hideIcon?h.createCommentVNode("",!0):(h.openBlock(),h.createElementBlock("i",ND))])],8,SD)])]))}}),wB="",Zo=zs(TD,[["__scopeId","data-v-17925573"]]),OD={class:"psc-flex psc-w-full psc-items-center psc-justify-center"},AD={class:"psc-w-full psc-max-w-lg psc-space-y-6 psc-px-4 psc-text-center"},LD={key:0,class:"psc-text-2xl psc-font-bold psc-text-blue-darken-1"},ID={key:1,class:"psc-font-semibold psc-text-[#0000]/[.6]"},Bd=h.defineComponent({__name:"NoItemsFound",props:{title:{default:""},subtitle:{default:""},bookingButtonUrl:{default:""}},setup(e){const t=e;return(n,s)=>(h.openBlock(),h.createElementBlock("div",OD,[h.createElementVNode("div",AD,[t.title?(h.openBlock(),h.createElementBlock("div",LD,h.toDisplayString(t.title),1)):h.createCommentVNode("",!0),t.subtitle?(h.openBlock(),h.createElementBlock("div",ID,h.toDisplayString(t.subtitle),1)):h.createCommentVNode("",!0),t.bookingButtonUrl?(h.openBlock(),h.createBlock(Zo,{key:2,url:t.bookingButtonUrl,title:n.$t("psc.test_result_get_started"),subtitle:n.$t("psc.test_result_book_first_test")},null,8,["url","title","subtitle"])):h.createCommentVNode("",!0)])]))}}),vc="19001717",PD="customersupport@diag.vn";var r_=(e=>(e.Locale="DiagPatientPortalLocale",e))(r_||{});const FD={Container:"pat-container",MicroTestResult:"pat-micro-test-result"},RD={ChangeRoute:"change-route"},VD={AccessToken:"pe_access_token"},BD={class:"psc-text-center"},$D={class:"psc-font-medium"},YD={class:"psc-text-sm"},WD=h.createElementVNode("i",{class:"dgic-chevron-right-thin psc-absolute psc-right-[16px] psc-top-[50%] -psc-translate-y-1/2 psc-text-xl !psc-font-bold"},null,-1),a_=h.defineComponent({__name:"CallUsFilledButton",setup(e){const{t}=sn(),n=()=>{window.open(`tel:${vc}`,"_self")};return(s,i)=>(h.openBlock(),h.createElementBlock("button",{class:"psc-w-full psc-rounded-lg psc-bg-blue-darken-1 psc-py-2.5 psc-px-4 psc-text-white disabled:psc-bg-[#aeb0bd]",style:{textAlign:"left",position:"relative"},onClick:n},[h.createElementVNode("div",BD,[h.createElementVNode("div",$D,h.toDisplayString(`${h.unref(t)("psc.call_us")}`),1),h.createElementVNode("div",YD,h.toDisplayString(h.unref(t)("psc.test_result_time_support")),1),WD])]))}}),UD={class:"test-result-full-patient-info"},HD={class:"fullname"},jD={key:0},zD={class:"psc-pr-1"},GD={class:"psc-capitalize"},XD={class:"more-info"},qD={class:"psc-mr-[24px] psc-flex psc-items-center"},KD=h.createElementVNode("i",{class:"dgic-cake"},null,-1),ZD={class:"psc-flex psc-items-center"},JD=h.createElementVNode("i",{class:"dgic-phone-light"},null,-1),QD=h.defineComponent({__name:"PatientFullInfo",props:{isGreeting:{type:Boolean,default:!1},testResult:null},setup(e){const t=e,n=h.computed(()=>(t.testResult.first_name||"").toLowerCase()),{formatDate:s}=Ms(),i=h.computed(()=>t.testResult.phone_number||""),r=h.computed(()=>s(new Date(t.testResult.date_of_birth)));return(l,u)=>(h.openBlock(),h.createElementBlock("div",UD,[h.createElementVNode("div",HD,[e.isGreeting?(h.openBlock(),h.createElementBlock("span",jD,[h.createElementVNode("span",zD,h.toDisplayString(l.$t("psc.test_result_hi")),1),h.createElementVNode("span",GD,h.toDisplayString(h.unref(n)),1)])):h.createCommentVNode("",!0)]),h.createElementVNode("div",XD,[h.createElementVNode("div",qD,[KD,h.createTextVNode(" "+h.toDisplayString(h.unref(r)),1)]),h.createElementVNode("div",ZD,[JD,h.createTextVNode(" "+h.toDisplayString(h.unref(i)),1)])])]))}}),EB="",tS={},eS=h.createElementVNode("div",{class:"psc-text-center"},[h.createElementVNode("i",{class:"dgic-cancel-right-to-left psc-text-error psc-text-[80px]"})],-1),nS={class:"psc-mt-6 psc-space-y-4 psc-text-center"},sS={class:"psc-text-xl psc-font-semibold psc-text-black/[0.85]"},iS={class:"psc-text-black/[0.6]"};function rS(e,t){return h.openBlock(),h.createElementBlock("div",null,[eS,h.renderSlot(e.$slots,"body-prepend"),h.createElementVNode("div",nS,[h.createElementVNode("div",sS,h.toDisplayString(e.$t("psc.test_result_sample_could_not_processed")),1),h.createElementVNode("div",iS,h.toDisplayString(e.$t("psc.test_result_contact_support")),1)]),h.renderSlot(e.$slots,"body-append")])}const o_=zs(tS,[["render",rS]]);/*!
|
|
80
|
+
*/const Cw="9.2.2";function Mw(){let e=!1;typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(e=!0,Go().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(e=!0,Go().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Go().__INTLIFY_PROD_DEVTOOLS__=!1),process.env.NODE_ENV!=="production"&&e&&console.warn("You are running the esm-bundler build of vue-i18n. It is recommended to configure your bundler to explicitly replace feature flag globals with boolean literals to get proper tree-shaking in the final bundle.")}let Om=ps.__EXTEND_POINT__;const io=()=>++Om,ji={FALLBACK_TO_ROOT:Om,NOT_SUPPORTED_PRESERVE:io(),NOT_SUPPORTED_FORMATTER:io(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:io(),NOT_SUPPORTED_GET_CHOICE_INDEX:io(),COMPONENT_NAME_LEGACY_COMPATIBLE:io(),NOT_FOUND_PARENT_SCOPE:io()},Nw={[ji.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[ji.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[ji.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[ji.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[ji.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[ji.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[ji.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope."};function Am(e,...t){return uc(Nw[e],...t)}let Lm=Qt.__EXTEND_POINT__;const is=()=>++Lm,Qe={UNEXPECTED_RETURN_TYPE:Lm,INVALID_ARGUMENT:is(),MUST_BE_CALL_SETUP_TOP:is(),NOT_INSLALLED:is(),NOT_AVAILABLE_IN_LEGACY_MODE:is(),REQUIRED_VALUE:is(),INVALID_VALUE:is(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:is(),NOT_INSLALLED_WITH_PROVIDE:is(),UNEXPECTED_ERROR:is(),NOT_COMPATIBLE_LEGACY_VUE_I18N:is(),BRIDGE_SUPPORT_VUE_2_ONLY:is(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:is(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:is(),__EXTEND_POINT__:is()};function zi(e,...t){return hc(e,null,process.env.NODE_ENV!=="production"?{messages:Tw,args:t}:void 0)}const Tw={[Qe.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[Qe.INVALID_ARGUMENT]:"Invalid argument",[Qe.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[Qe.NOT_INSLALLED]:"Need to install with `app.use` function",[Qe.UNEXPECTED_ERROR]:"Unexpected error",[Qe.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[Qe.REQUIRED_VALUE]:"Required in value: {0}",[Qe.INVALID_VALUE]:"Invalid value",[Qe.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[Qe.NOT_INSLALLED_WITH_PROVIDE]:"Need to install with `provide` function",[Qe.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[Qe.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[Qe.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define \u2018i18n\u2019 option or custom block in Composition API with using local scope in Legacy API mode",[Qe.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Nd=Wi("__transrateVNode"),Td=Wi("__datetimeParts"),Od=Wi("__numberParts"),Ad=Wi("__enableEmitter"),Ld=Wi("__disableEmitter"),Ow=Wi("__setPluralRules");Wi("__intlifyMeta");const Im=Wi("__injectWithOption");function Id(e){if(!Ve(e))return e;for(const t in e)if(!!kd(e,t))if(!t.includes("."))Ve(e[t])&&Id(e[t]);else{const n=t.split("."),s=n.length-1;let i=e;for(let r=0;r<s;r++)n[r]in i||(i[n[r]]={}),i=i[n[r]];i[n[s]]=e[t],delete e[t],Ve(i[n[s]])&&Id(i[n[s]])}return e}function Pd(e,t){const{messages:n,__i18n:s,messageResolver:i,flatJson:r}=t,l=ye(n)?n:ln(s)?{}:{[e]:{}};if(ln(s)&&s.forEach(u=>{if("locale"in u&&"resource"in u){const{locale:f,resource:m}=u;f?(l[f]=l[f]||{},Ko(m,l[f])):Ko(m,l)}else Tt(u)&&Ko(JSON.parse(u),l)}),i==null&&r)for(const u in l)kd(l,u)&&Id(l[u]);return l}const gc=e=>!Ve(e)||ln(e);function Ko(e,t){if(gc(e)||gc(t))throw zi(Qe.INVALID_VALUE);for(const n in e)kd(e,n)&&(gc(e[n])||gc(t[n])?t[n]=e[n]:Ko(e[n],t[n]))}function Pm(e){return e.type}function Aw(e,t,n){let s=Ve(t.messages)?t.messages:{};"__i18nGlobal"in n&&(s=Pd(e.locale.value,{messages:s,__i18n:n.__i18nGlobal}));const i=Object.keys(s);i.length&&i.forEach(r=>{e.mergeLocaleMessage(r,s[r])});{if(Ve(t.datetimeFormats)){const r=Object.keys(t.datetimeFormats);r.length&&r.forEach(l=>{e.mergeDateTimeFormat(l,t.datetimeFormats[l])})}if(Ve(t.numberFormats)){const r=Object.keys(t.numberFormats);r.length&&r.forEach(l=>{e.mergeNumberFormat(l,t.numberFormats[l])})}}}function Fm(e){return h.createVNode(h.Text,null,e,0)}const Rm="__INTLIFY_META__";let Vm=0;function Bm(e){return(t,n,s,i)=>e(n,s,h.getCurrentInstance()||void 0,i)}const Lw=()=>{const e=h.getCurrentInstance();let t=null;return e&&(t=Pm(e)[Rm])?{[Rm]:t}:null};function Iw(e={},t){const{__root:n}=e,s=n===void 0;let i=je(e.inheritLocale)?e.inheritLocale:!0;const r=h.ref(n&&i?n.locale.value:Tt(e.locale)?e.locale:pc),l=h.ref(n&&i?n.fallbackLocale.value:Tt(e.fallbackLocale)||ln(e.fallbackLocale)||ye(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:r.value),u=h.ref(Pd(r.value,e)),f=h.ref(ye(e.datetimeFormats)?e.datetimeFormats:{[r.value]:{}}),m=h.ref(ye(e.numberFormats)?e.numberFormats:{[r.value]:{}});let g=n?n.missingWarn:je(e.missingWarn)||to(e.missingWarn)?e.missingWarn:!0,k=n?n.fallbackWarn:je(e.fallbackWarn)||to(e.fallbackWarn)?e.fallbackWarn:!0,D=n?n.fallbackRoot:je(e.fallbackRoot)?e.fallbackRoot:!0,C=!!e.fallbackFormat,S=vn(e.missing)?e.missing:null,P=vn(e.missing)?Bm(e.missing):null,V=vn(e.postTranslation)?e.postTranslation:null,M=n?n.warnHtmlMessage:je(e.warnHtmlMessage)?e.warnHtmlMessage:!0,O=!!e.escapeParameter;const $=n?n.modifiers:ye(e.modifiers)?e.modifiers:{};let I=e.pluralRules||n&&n.pluralRules,A;A=(()=>{s&&pm(null);const J={version:Cw,locale:r.value,fallbackLocale:l.value,messages:u.value,modifiers:$,pluralRules:I,missing:P===null?void 0:P,missingWarn:g,fallbackWarn:k,fallbackFormat:C,unresolving:!0,postTranslation:V===null?void 0:V,warnHtmlMessage:M,escapeParameter:O,messageResolver:e.messageResolver,__meta:{framework:"vue"}};J.datetimeFormats=f.value,J.numberFormats=m.value,J.__datetimeFormatters=ye(A)?A.__datetimeFormatters:void 0,J.__numberFormatters=ye(A)?A.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(J.__v_emitter=ye(A)?A.__v_emitter:void 0);const lt=_w(J);return s&&pm(lt),lt})(),qo(A,r.value,l.value);function H(){return[r.value,l.value,u.value,f.value,m.value]}const it=h.computed({get:()=>r.value,set:J=>{r.value=J,A.locale=r.value}}),rt=h.computed({get:()=>l.value,set:J=>{l.value=J,A.fallbackLocale=l.value,qo(A,r.value,J)}}),_t=h.computed(()=>u.value),dt=h.computed(()=>f.value),vt=h.computed(()=>m.value);function wt(){return vn(V)?V:null}function se(J){V=J,A.postTranslation=J}function xt(){return S}function Ft(J){J!==null&&(P=Bm(J)),S=J,A.missing=P}function Ot(J,lt){return J!=="translate"||!lt.resolvedMessage}const Kt=(J,lt,Pt,st,Be,Vt)=>{H();let Ue;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)try{hm(Lw()),s||(A.fallbackContext=n?mw():void 0),Ue=J(A)}finally{hm(null),s||(A.fallbackContext=void 0)}else Ue=J(A);if($n(Ue)&&Ue===fc){const[Le,Ct]=lt();if(process.env.NODE_ENV!=="production"&&n&&Tt(Le)&&Ot(Pt,Ct)&&(D&&(_c(k,Le)||_m(g,Le))&&zo(Am(ji.FALLBACK_TO_ROOT,{key:Le,type:Pt})),process.env.NODE_ENV!=="production")){const{__v_emitter:yn}=A;yn&&D&&yn.emit("fallback",{type:Pt,key:Le,to:"global",groupId:`${Pt}:${Le}`})}return n&&D?st(n):Be(Le)}else{if(Vt(Ue))return Ue;throw zi(Qe.UNEXPECTED_RETURN_TYPE)}};function te(...J){return Kt(lt=>Reflect.apply(km,null,[lt,...J]),()=>Sd(...J),"translate",lt=>Reflect.apply(lt.t,lt,[...J]),lt=>lt,lt=>Tt(lt))}function Z(...J){const[lt,Pt,st]=J;if(st&&!Ve(st))throw zi(Qe.INVALID_ARGUMENT);return te(lt,Pt,Ln({resolvedMessage:!0},st||{}))}function Dt(...J){return Kt(lt=>Reflect.apply(Dm,null,[lt,...J]),()=>Cd(...J),"datetime format",lt=>Reflect.apply(lt.d,lt,[...J]),()=>mc,lt=>Tt(lt))}function Zt(...J){return Kt(lt=>Reflect.apply(Mm,null,[lt,...J]),()=>Md(...J),"number format",lt=>Reflect.apply(lt.n,lt,[...J]),()=>mc,lt=>Tt(lt))}function Ht(J){return J.map(lt=>Tt(lt)||$n(lt)||je(lt)?Fm(String(lt)):lt)}const Nt={normalize:Ht,interpolate:J=>J,type:"vnode"};function ce(...J){return Kt(lt=>{let Pt;const st=lt;try{st.processor=Nt,Pt=Reflect.apply(km,null,[st,...J])}finally{st.processor=null}return Pt},()=>Sd(...J),"translate",lt=>lt[Nd](...J),lt=>[Fm(lt)],lt=>ln(lt))}function ue(...J){return Kt(lt=>Reflect.apply(Mm,null,[lt,...J]),()=>Md(...J),"number format",lt=>lt[Od](...J),()=>[],lt=>Tt(lt)||ln(lt))}function At(...J){return Kt(lt=>Reflect.apply(Dm,null,[lt,...J]),()=>Cd(...J),"datetime format",lt=>lt[Td](...J),()=>[],lt=>Tt(lt)||ln(lt))}function ie(J){I=J,A.pluralRules=I}function jt(J,lt){const Pt=Tt(lt)?lt:r.value,st=x(Pt);return A.messageResolver(st,J)!==null}function z(J){let lt=null;const Pt=rm(A,l.value,r.value);for(let st=0;st<Pt.length;st++){const Be=u.value[Pt[st]]||{},Vt=A.messageResolver(Be,J);if(Vt!=null){lt=Vt;break}}return lt}function L(J){const lt=z(J);return lt!=null?lt:n?n.tm(J)||{}:{}}function x(J){return u.value[J]||{}}function b(J,lt){u.value[J]=lt,A.messages=u.value}function v(J,lt){u.value[J]=u.value[J]||{},Ko(lt,u.value[J]),A.messages=u.value}function W(J){return f.value[J]||{}}function F(J,lt){f.value[J]=lt,A.datetimeFormats=f.value,Cm(A,J,lt)}function X(J,lt){f.value[J]=Ln(f.value[J]||{},lt),A.datetimeFormats=f.value,Cm(A,J,lt)}function ut(J){return m.value[J]||{}}function ct(J,lt){m.value[J]=lt,A.numberFormats=m.value,Tm(A,J,lt)}function K(J,lt){m.value[J]=Ln(m.value[J]||{},lt),A.numberFormats=m.value,Tm(A,J,lt)}Vm++,n&&Mr&&(h.watch(n.locale,J=>{i&&(r.value=J,A.locale=J,qo(A,r.value,l.value))}),h.watch(n.fallbackLocale,J=>{i&&(l.value=J,A.fallbackLocale=J,qo(A,r.value,l.value))}));const nt={id:Vm,locale:it,fallbackLocale:rt,get inheritLocale(){return i},set inheritLocale(J){i=J,J&&n&&(r.value=n.locale.value,l.value=n.fallbackLocale.value,qo(A,r.value,l.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:_t,get modifiers(){return $},get pluralRules(){return I||{}},get isGlobal(){return s},get missingWarn(){return g},set missingWarn(J){g=J,A.missingWarn=g},get fallbackWarn(){return k},set fallbackWarn(J){k=J,A.fallbackWarn=k},get fallbackRoot(){return D},set fallbackRoot(J){D=J},get fallbackFormat(){return C},set fallbackFormat(J){C=J,A.fallbackFormat=C},get warnHtmlMessage(){return M},set warnHtmlMessage(J){M=J,A.warnHtmlMessage=J},get escapeParameter(){return O},set escapeParameter(J){O=J,A.escapeParameter=J},t:te,getLocaleMessage:x,setLocaleMessage:b,mergeLocaleMessage:v,getPostTranslationHandler:wt,setPostTranslationHandler:se,getMissingHandler:xt,setMissingHandler:Ft,[Ow]:ie};return nt.datetimeFormats=dt,nt.numberFormats=vt,nt.rt=Z,nt.te=jt,nt.tm=L,nt.d=Dt,nt.n=Zt,nt.getDateTimeFormat=W,nt.setDateTimeFormat=F,nt.mergeDateTimeFormat=X,nt.getNumberFormat=ut,nt.setNumberFormat=ct,nt.mergeNumberFormat=K,nt[Im]=e.__injectWithOption,nt[Nd]=ce,nt[Td]=At,nt[Od]=ue,process.env.NODE_ENV!=="production"&&(nt[Ad]=J=>{A.__v_emitter=J},nt[Ld]=()=>{A.__v_emitter=void 0}),nt}const Fd={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Pw({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((s,i)=>s=[...s,...ln(i.children)?i.children:[i]],[]):t.reduce((n,s)=>{const i=e[s];return i&&(n[s]=i()),n},{})}function $m(e){return h.Fragment}Ln({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>$n(e)||!isNaN(e)}},Fd);function Fw(e){return ln(e)&&!Tt(e[0])}function Ym(e,t,n,s){const{slots:i,attrs:r}=t;return()=>{const l={part:!0};let u={};e.locale&&(l.locale=e.locale),Tt(e.format)?l.key=e.format:Ve(e.format)&&(Tt(e.format.key)&&(l.key=e.format.key),u=Object.keys(e.format).reduce((D,C)=>n.includes(C)?Ln({},D,{[C]:e.format[C]}):D,{}));const f=s(e.value,l,u);let m=[l.key];ln(f)?m=f.map((D,C)=>{const S=i[D.type],P=S?S({[D.type]:D.value,index:C,parts:f}):[D.value];return Fw(P)&&(P[0].key=`${D.type}-${C}`),P}):Tt(f)&&(m=[f]);const g=Ln({},r),k=Tt(e.tag)||Ve(e.tag)?e.tag:$m();return h.h(k,g,m)}}Ln({value:{type:Number,required:!0},format:{type:[String,Object]}},Fd),Ln({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Fd);function Wm(e,t){}const Rw=Wi("global-vue-i18n");function sn(e={}){const t=h.getCurrentInstance();if(t==null)throw zi(Qe.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw zi(Qe.NOT_INSLALLED);const n=Vw(t),s=$w(n),i=Pm(t),r=Bw(e,i);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw zi(Qe.NOT_AVAILABLE_IN_LEGACY_MODE);return Uw(t,r,s,e)}if(r==="global")return Aw(s,e,i),s;if(r==="parent"){let f=Yw(n,t,e.__useComponent);return f==null&&(process.env.NODE_ENV!=="production"&&zo(Am(ji.NOT_FOUND_PARENT_SCOPE)),f=s),f}const l=n;let u=l.__getInstance(t);if(u==null){const f=Ln({},e);"__i18n"in i&&(f.__i18n=i.__i18n),s&&(f.__root=s),u=Iw(f),Ww(l,t,u),l.__setInstance(t,u)}return u}function Vw(e){{const t=h.inject(e.isCE?Rw:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw zi(e.isCE?Qe.NOT_INSLALLED_WITH_PROVIDE:Qe.UNEXPECTED_ERROR);return t}}function Bw(e,t){return dc(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function $w(e){return e.mode==="composition"?e.global:e.global.__composer}function Yw(e,t,n=!1){let s=null;const i=t.root;let r=t.parent;for(;r!=null;){const l=e;if(e.mode==="composition")s=l.__getInstance(r);else if(__VUE_I18N_LEGACY_API__){const u=l.__getInstance(r);u!=null&&(s=u.__composer,n&&s&&!s[Im]&&(s=null))}if(s!=null||i===r)break;r=r.parent}return s}function Ww(e,t,n){let s=null;h.onMounted(()=>{if((process.env.NODE_ENV!=="production"||!1)&&!0&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,s=_x();const i=n;i[Ad]&&i[Ad](s),s.on("*",Wm)}},t),h.onUnmounted(()=>{if((process.env.NODE_ENV!=="production"||!1)&&!0&&t.vnode.el&&t.vnode.el.__VUE_I18N__){s&&s.off("*",Wm);const i=n;i[Ld]&&i[Ld](),delete t.vnode.el.__VUE_I18N__}e.__deleteInstance(t)},t)}function Uw(e,t,n,s={}){const i=t==="local",r=h.shallowRef(null);if(i&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw zi(Qe.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const l=je(s.inheritLocale)?s.inheritLocale:!0,u=h.ref(i&&l?n.locale.value:Tt(s.locale)?s.locale:pc),f=h.ref(i&&l?n.fallbackLocale.value:Tt(s.fallbackLocale)||ln(s.fallbackLocale)||ye(s.fallbackLocale)||s.fallbackLocale===!1?s.fallbackLocale:u.value),m=h.ref(Pd(u.value,s)),g=h.ref(ye(s.datetimeFormats)?s.datetimeFormats:{[u.value]:{}}),k=h.ref(ye(s.numberFormats)?s.numberFormats:{[u.value]:{}}),D=i?n.missingWarn:je(s.missingWarn)||to(s.missingWarn)?s.missingWarn:!0,C=i?n.fallbackWarn:je(s.fallbackWarn)||to(s.fallbackWarn)?s.fallbackWarn:!0,S=i?n.fallbackRoot:je(s.fallbackRoot)?s.fallbackRoot:!0,P=!!s.fallbackFormat,V=vn(s.missing)?s.missing:null,M=vn(s.postTranslation)?s.postTranslation:null,O=i?n.warnHtmlMessage:je(s.warnHtmlMessage)?s.warnHtmlMessage:!0,$=!!s.escapeParameter,I=i?n.modifiers:ye(s.modifiers)?s.modifiers:{},A=s.pluralRules||i&&n.pluralRules;function Y(){return[u.value,f.value,m.value,g.value,k.value]}const H=h.computed({get:()=>r.value?r.value.locale.value:u.value,set:b=>{r.value&&(r.value.locale.value=b),u.value=b}}),it=h.computed({get:()=>r.value?r.value.fallbackLocale.value:f.value,set:b=>{r.value&&(r.value.fallbackLocale.value=b),f.value=b}}),rt=h.computed(()=>r.value?r.value.messages.value:m.value),_t=h.computed(()=>g.value),dt=h.computed(()=>k.value);function vt(){return r.value?r.value.getPostTranslationHandler():M}function wt(b){r.value&&r.value.setPostTranslationHandler(b)}function se(){return r.value?r.value.getMissingHandler():V}function xt(b){r.value&&r.value.setMissingHandler(b)}function Ft(b){return Y(),b()}function Ot(...b){return r.value?Ft(()=>Reflect.apply(r.value.t,null,[...b])):Ft(()=>"")}function Kt(...b){return r.value?Reflect.apply(r.value.rt,null,[...b]):""}function te(...b){return r.value?Ft(()=>Reflect.apply(r.value.d,null,[...b])):Ft(()=>"")}function Z(...b){return r.value?Ft(()=>Reflect.apply(r.value.n,null,[...b])):Ft(()=>"")}function Dt(b){return r.value?r.value.tm(b):{}}function Zt(b,v){return r.value?r.value.te(b,v):!1}function Ht(b){return r.value?r.value.getLocaleMessage(b):{}}function kt(b,v){r.value&&(r.value.setLocaleMessage(b,v),m.value[b]=v)}function Nt(b,v){r.value&&r.value.mergeLocaleMessage(b,v)}function ce(b){return r.value?r.value.getDateTimeFormat(b):{}}function ue(b,v){r.value&&(r.value.setDateTimeFormat(b,v),g.value[b]=v)}function At(b,v){r.value&&r.value.mergeDateTimeFormat(b,v)}function ie(b){return r.value?r.value.getNumberFormat(b):{}}function jt(b,v){r.value&&(r.value.setNumberFormat(b,v),k.value[b]=v)}function z(b,v){r.value&&r.value.mergeNumberFormat(b,v)}const L={get id(){return r.value?r.value.id:-1},locale:H,fallbackLocale:it,messages:rt,datetimeFormats:_t,numberFormats:dt,get inheritLocale(){return r.value?r.value.inheritLocale:l},set inheritLocale(b){r.value&&(r.value.inheritLocale=b)},get availableLocales(){return r.value?r.value.availableLocales:Object.keys(m.value)},get modifiers(){return r.value?r.value.modifiers:I},get pluralRules(){return r.value?r.value.pluralRules:A},get isGlobal(){return r.value?r.value.isGlobal:!1},get missingWarn(){return r.value?r.value.missingWarn:D},set missingWarn(b){r.value&&(r.value.missingWarn=b)},get fallbackWarn(){return r.value?r.value.fallbackWarn:C},set fallbackWarn(b){r.value&&(r.value.missingWarn=b)},get fallbackRoot(){return r.value?r.value.fallbackRoot:S},set fallbackRoot(b){r.value&&(r.value.fallbackRoot=b)},get fallbackFormat(){return r.value?r.value.fallbackFormat:P},set fallbackFormat(b){r.value&&(r.value.fallbackFormat=b)},get warnHtmlMessage(){return r.value?r.value.warnHtmlMessage:O},set warnHtmlMessage(b){r.value&&(r.value.warnHtmlMessage=b)},get escapeParameter(){return r.value?r.value.escapeParameter:$},set escapeParameter(b){r.value&&(r.value.escapeParameter=b)},t:Ot,getPostTranslationHandler:vt,setPostTranslationHandler:wt,getMissingHandler:se,setMissingHandler:xt,rt:Kt,d:te,n:Z,tm:Dt,te:Zt,getLocaleMessage:Ht,setLocaleMessage:kt,mergeLocaleMessage:Nt,getDateTimeFormat:ce,setDateTimeFormat:ue,mergeDateTimeFormat:At,getNumberFormat:ie,setNumberFormat:jt,mergeNumberFormat:z};function x(b){b.locale.value=u.value,b.fallbackLocale.value=f.value,Object.keys(m.value).forEach(v=>{b.mergeLocaleMessage(v,m.value[v])}),Object.keys(g.value).forEach(v=>{b.mergeDateTimeFormat(v,g.value[v])}),Object.keys(k.value).forEach(v=>{b.mergeNumberFormat(v,k.value[v])}),b.escapeParameter=$,b.fallbackFormat=P,b.fallbackRoot=S,b.fallbackWarn=C,b.missingWarn=D,b.warnHtmlMessage=O}return h.onBeforeMount(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw zi(Qe.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const b=r.value=e.proxy.$i18n.__composer;t==="global"?(u.value=b.locale.value,f.value=b.fallbackLocale.value,m.value=b.messages.value,g.value=b.datetimeFormats.value,k.value=b.numberFormats.value):i&&x(b)}),L}if(dw(vw),hw(zx),fw(rm),Mw(),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=Go();e.__INTLIFY__=!0,ew(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;function Hw(){const{t:e}=sn();return{getGenderText:s=>s?{[Qa.Male]:e("psc.male"),[Qa.Female]:e("psc.female")}[s]:"",getDocumentType:s=>s?{[Ja.IDCard]:e("psc.test_result_booking_document_type_id_number"),[Ja.Passport]:e("psc.test_result_booking_document_type_passport_no"),[Ja.PassportNo]:e("psc.test_result_booking_document_type_passport_no"),[Ja.Unknown]:""}[s]:""}}const jw={class:"psc-relative psc-overflow-hidden psc-rounded-t-lg psc-bg-blue-darken-1"},zw={class:"psc-space-y-6"},Um=h.defineComponent({__name:"BasicInfo",props:{patient:null,doctor:{default:void 0}},setup(e){const t=e,{t:n}=sn(),{formatDate:s}=Ms(),{getGenderText:i,getDocumentType:r}=Hw(),l=h.computed(()=>[{icon:"dgic-user-fill",text:!t.patient.date_of_birth&&!t.patient.gender?"":[s(new Date(t.patient.date_of_birth)),i(t.patient.gender)].join(" - ")},{icon:"dgic-phone-fill",text:t.patient.phone_number},{icon:"dgic-credit-card-fill",text:t.patient.document_number?`${r(t.patient.document_type)} ${t.patient.document_number}`:""},{icon:"dgic-pin-fill",text:t.patient.address},{icon:"dgic-message-fill",text:t.patient.email}].filter(f=>f.text)),u=h.computed(()=>{var f,m;return[{icon:"dgic-credit-card-fill",text:(f=t.doctor)!=null&&f.account_code?`${n("psc.test_result_booking_account_code")} ${t.doctor.account_code}`:""},{icon:"dgic-phone-fill",text:(m=t.doctor)==null?void 0:m.phone_number}].filter(g=>g.text)});return(f,m)=>(h.openBlock(),h.createElementBlock("div",jw,[h.createVNode(Bb,{class:"psc-absolute -psc-top-1 psc-right-4 psc-w-32 psc-opacity-20"}),h.createElementVNode("div",zw,[h.createVNode(Tf,{title:f.$t("psc.test_result_booking_patient"),"person-name":t.patient.first_name,items:h.unref(l)},null,8,["title","person-name","items"]),t.doctor?(h.openBlock(),h.createBlock(Tf,{key:0,title:f.$t("psc.test_result_booking_doctor"),"person-name":t.doctor.name,items:h.unref(u)},null,8,["title","person-name","items"])):h.createCommentVNode("",!0)])]))}}),Gw={class:"psc-pb-4 psc-font-semibold psc-text-black/[0.85]"},Xw={class:"psc-rounded-lg psc-bg-gray-lighten-2 psc-p-4 psc-text-sm psc-italic psc-text-black/[0.85]"},Hm=h.defineComponent({__name:"BookingNote",props:{note:{default:""}},setup(e){const t=e;return(n,s)=>(h.openBlock(),h.createElementBlock("div",null,[h.createElementVNode("div",Gw,h.toDisplayString(n.$t("psc.test_result_booking_note")),1),h.createElementVNode("div",Xw,h.toDisplayString(t.note),1)]))}});function jm(){const{t:e}=sn();return{getBookingStatusText:s=>s?{[An.Created]:e("psc.test_result_booking_booking_status_created"),[An.InProgress]:e("psc.test_result_booking_booking_status_in_progress"),[An.Completed]:e("psc.test_result_booking_booking_status_completed"),[An.Canceled]:e("psc.test_result_booking_booking_status_canceled")}[s]:"",getPaymentStatusText:s=>s?{[ns.PayLater]:e("psc.test_result_booking_payment_status_pay_later"),[ns.PaidOnline]:e("psc.test_result_booking_payment_status_paid_online"),[ns.Paid]:e("psc.test_result_booking_payment_status_paid"),[ns.RefundInProgress]:e("psc.test_result_booking_payment_status_refund_in_progress"),[ns.Refunded]:e("psc.test_result_booking_payment_status_refunded"),[ns.Canceled]:e("psc.test_result_booking_payment_status_canceled")}[s]:""}}const zm=h.defineComponent({__name:"BookingStatusComponent",props:{status:null},setup(e){const t=e,{getBookingStatusText:n}=jm(),s=h.computed(()=>{if(!t.status)return{text:"",cssClass:""};const i={[An.Created]:"psc-text-blue-darken-1 psc-bg-blue-lighten-1",[An.InProgress]:"psc-text-orange-darken-1 psc-bg-orange-lighten-1",[An.Completed]:"psc-text-green-darken-2 psc-bg-green-lighten-1",[An.Canceled]:"psc-text-red-darken-1 psc-bg-red-lighten-1"};return{text:n(t.status),cssClass:i[t.status]}});return(i,r)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["psc-rounded-lg psc-py-1 psc-px-2 psc-text-xs psc-font-semibold",h.unref(s).cssClass])},h.toDisplayString(h.unref(s).text),3))}}),Gm=h.defineComponent({__name:"PaymentStatusComponent",props:{status:null},setup(e){const t=e,{getPaymentStatusText:n}=jm(),s=h.computed(()=>{if(!t.status)return{text:"",cssClass:""};const i={[ns.PayLater]:"psc-text-blue-darken-1 psc-bg-blue-lighten-1",[ns.PaidOnline]:"psc-text-green-darken-2 psc-bg-green-lighten-1",[ns.Paid]:"psc-text-green-darken-2 psc-bg-green-lighten-1",[ns.RefundInProgress]:"psc-text-orange-darken-1 psc-bg-orange-lighten-1",[ns.Refunded]:"psc-text-green-darken-2 psc-bg-green-lighten-1",[ns.Canceled]:"psc-text-red-darken-1 psc-bg-red-lighten-1"};return{text:n(t.status),cssClass:i[t.status]}});return(i,r)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["psc-rounded-lg psc-py-1 psc-px-2 psc-text-xs psc-font-semibold",h.unref(s).cssClass])},h.toDisplayString(h.unref(s).text),3))}}),qw={class:"psc-h-[110px] psc-space-y-3 psc-rounded-lg psc-bg-white psc-p-4 psc-shadow"},Kw={class:"psc-flex psc-items-end"},Zw={class:"psc-flex-auto psc-text-sm psc-font-medium psc-text-black/[0.85]"},Jw={class:"psc-flex-initial psc-pl-2 psc-text-center"},Qw={class:"psc-flex psc-items-center"},tE={class:"psc-flex-auto psc-text-lg psc-font-semibold psc-text-blue-darken-1"},eE={class:"psc-flex-initial psc-pl-2 psc-text-center"},Xm=h.defineComponent({__name:"BookingNumber",props:{bookingCode:null,bookingStatus:null,paymentStatus:null},setup(e){const t=e;return(n,s)=>(h.openBlock(),h.createElementBlock("div",qw,[h.createElementVNode("div",Kw,[h.createElementVNode("div",Zw,h.toDisplayString(n.$t("psc.test_result_booking_booking_number")),1),h.createElementVNode("div",Jw,[h.createVNode(zm,{status:t.bookingStatus},null,8,["status"])])]),h.createElementVNode("div",Qw,[h.createElementVNode("div",tE,h.toDisplayString(t.bookingCode),1),h.createElementVNode("div",eE,[h.createVNode(Gm,{status:t.paymentStatus},null,8,["status"])])])]))}}),nE={class:"psc-space-y-6"},sE={class:"psc-pb-4 psc-font-semibold psc-text-black/[0.85]"},iE={class:"psc-space-y-3"},rE=h.createElementVNode("div",{class:"psc-flex psc-w-6 psc-flex-initial psc-items-start psc-text-black/[0.4]"},[h.createElementVNode("i",{class:"dgic-test"})],-1),aE={class:"psc-flex psc-flex-auto psc-items-start psc-text-sm psc-text-black/[0.85]"},qm=h.defineComponent({__name:"TestList",props:{services:null},setup(e){const t=e,{t:n,locale:s}=sn(),i=h.computed(()=>{const l=[{title:n("psc.test_result_booking_tests"),items:[]},{title:n("psc.test_result_booking_packages"),items:[]},{title:n("psc.test_result_booking_imaging_services"),items:[]}];return t.services&&t.services.forEach(({service:u})=>{u&&(u.service_type==Ho.ImagingService?l[2].items.push(u):[Ho.Group,Ho.Package].includes(u.service_type)?l[1].items.push(u):l[0].items.push(u))}),l.filter(u=>u.items.length>0)}),r=l=>s.value==="vi"?l.test_name_vi:l.test_name_en;return(l,u)=>(h.openBlock(),h.createElementBlock("div",nE,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(h.unref(i),(f,m)=>(h.openBlock(),h.createElementBlock("div",{key:`serviceDataItem${m}`},[h.createElementVNode("div",sE,h.toDisplayString(f.title),1),h.createElementVNode("div",iE,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(f.items,(g,k)=>(h.openBlock(),h.createElementBlock("div",{key:`item${k}`,class:"psc-flex"},[rE,h.createElementVNode("div",aE,h.toDisplayString(r(g)),1)]))),128))])]))),128))]))}}),oE={class:"psc-pb-4 psc-font-semibold psc-text-black/[0.85]"},lE={class:"psc-flex"},cE=h.createElementVNode("div",{class:"psc-flex psc-w-6 psc-flex-initial psc-items-start psc-text-black/[0.4]"},[h.createElementVNode("i",{class:"dgic-statement-thick"})],-1),uE={class:"psc-flex psc-flex-auto psc-items-start psc-text-sm psc-text-black/[0.85]"},Km=h.defineComponent({__name:"TotalPayment",props:{totalAmount:null},setup(e){const t=e,{locale:n}=sn(),s=h.computed(()=>{const i=new Intl.NumberFormat("vi-VN",{style:"currency",currency:"VND"}).format(t.totalAmount),r=i.replace(/\./g,",");return{vi:i,en:r}[n.value]||t.totalAmount});return(i,r)=>(h.openBlock(),h.createElementBlock("div",null,[h.createElementVNode("div",oE,h.toDisplayString(i.$t("psc.test_result_booking_total_payment")),1),h.createElementVNode("div",lE,[cE,h.createElementVNode("div",uE,h.toDisplayString(h.unref(s)),1)])]))}}),zs=(e,t)=>{const n=e.__vccOpts||e;for(const[s,i]of t)n[s]=i;return n},dE={},hE={class:"psc-text-xl psc-font-semibold"};function fE(e,t){return h.openBlock(),h.createElementBlock("div",hE,[h.renderSlot(e.$slots,"default")])}const yc=zs(dE,[["render",fE]]),pE={class:"psc-space-y-4"},mE={class:"psc-w-20 psc-flex-initial psc-text-black/[0.85]"},_E={class:"psc-flex-auto"},gE=["href"],Zm=h.defineComponent({__name:"DiagSupport",setup(e){const{t}=sn(),n=h.computed(()=>[{label:t("psc.test_result_booking_support_zalo"),text:"Diag Laboratories",href:"https://zalo.me/1687121322887646763"},{label:t("psc.test_result_booking_support_hotline"),text:"19001717",href:"tel:19001717"},{label:t("psc.test_result_booking_support_email"),text:"customersupport@diag.vn",href:"mailto:customersupport@diag.vn"}]);return(s,i)=>(h.openBlock(),h.createElementBlock("div",pE,[h.createVNode(yc,null,{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(s.$t("psc.test_result_support")),1)]),_:1}),(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(h.unref(n),(r,l)=>(h.openBlock(),h.createElementBlock("div",{key:`link${l}`,class:"psc-flex"},[h.createElementVNode("div",mE,h.toDisplayString(r.label),1),h.createElementVNode("div",_E,[h.createElementVNode("a",{class:"psc-text-blue-darken-1",href:r.href},h.toDisplayString(r.text),9,gE)])]))),128))]))}}),yE={class:"psc-flex"},bE={class:"psc-flex psc-min-w-[2.75rem] psc-flex-initial psc-items-start psc-justify-center psc-py-1.5"},kE={class:"psc-flex psc-flex-auto psc-flex-wrap psc-items-center"},vE={class:"psc-w-full psc-font-semibold psc-text-black/[0.85]"},xE={key:0,class:"psc-w-full psc-text-sm psc-text-black/[0.6]"},Rd=h.defineComponent({__name:"TitleIcon",props:{icon:null,title:null,subtitle:{default:""}},setup(e){const t=e;return(n,s)=>(h.openBlock(),h.createElementBlock("div",yE,[h.createElementVNode("div",bE,[h.createElementVNode("i",{class:h.normalizeClass([t.icon,"psc-text-2xl psc-text-blue-darken-1"])},null,2)]),h.createElementVNode("div",kE,[h.createElementVNode("div",vE,h.toDisplayString(t.title),1),t.subtitle?(h.openBlock(),h.createElementBlock("div",xE,h.toDisplayString(t.subtitle),1)):h.createCommentVNode("",!0)])]))}}),wE={key:0,class:"psc-space-y-4"},EE={class:"psc-space-y-8 psc-rounded-lg psc-border psc-border-gray-lighten-2 psc-p-4 psc-shadow"},Vd=h.defineComponent({__name:"SampleCollectionInfo",props:{booking:null},setup(e){const t=e,{t:n}=sn(),{formatDateHuge:s}=Ms(),i=h.computed(()=>{var u,f,m,g;return{address:(u=t.booking.data)!=null&&u.is_hbc?t.booking.address:(m=(f=t.booking.data)==null?void 0:f.supportingInformation)==null?void 0:m.appointmentSampleCollectionPlace,expectedDate:(g=t.booking.data)==null?void 0:g.planned_test_date}}),r=h.computed(()=>{var u,f,m;return(!!t.booking.address||!!((f=(u=t.booking.data)==null?void 0:u.supportingInformation)!=null&&f.appointmentSampleCollectionPlace))&&!!((m=t.booking.data)!=null&&m.planned_test_date)}),l=h.computed(()=>{var u;return(u=t.booking.data)!=null&&u.is_hbc?n("psc.test_result_booking_sample_collection"):n("psc.test_result_booking_testing_location")});return(u,f)=>h.unref(r)?(h.openBlock(),h.createElementBlock("div",wE,[h.createVNode(yc,null,{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(h.unref(l)),1)]),_:1}),h.createElementVNode("div",EE,[h.unref(i).address?(h.openBlock(),h.createBlock(Rd,{key:0,icon:"dgic-pin-map-thick",title:u.$t("psc.test_result_booking_address"),subtitle:h.unref(i).address,class:"psc-relative after:psc-absolute after:-psc-bottom-4 after:psc-h-[1px] after:psc-w-full after:psc-bg-gray-lighten-2 after:psc-content-['']"},null,8,["title","subtitle"])):h.createCommentVNode("",!0),h.unref(i).expectedDate?(h.openBlock(),h.createBlock(Rd,{key:1,icon:"dgic-date-thick",title:u.$t("psc.test_result_booking_expected_date"),subtitle:h.unref(s)(new Date(h.unref(i).expectedDate))},null,8,["title","subtitle"])):h.createCommentVNode("",!0)])])):h.createCommentVNode("",!0)}}),DE={class:"psc-flex psc-w-full"},SE={class:"psc-text-2xl psc-font-bold psc-text-black/[0.85]"},CE={class:"psc-pr-1"},ME={class:"psc-capitalize"},Jm=h.defineComponent({__name:"PatientName",props:{firstName:null},setup(e){const t=e,{t:n}=sn(),s=h.computed(()=>{var i;return((i=t.firstName)==null?void 0:i.toLowerCase())||""});return(i,r)=>(h.openBlock(),h.createElementBlock("div",DE,[h.createElementVNode("div",SE,[h.createElementVNode("span",CE,h.toDisplayString(h.unref(n)("psc.test_result_hi")),1),h.createElementVNode("span",ME,h.toDisplayString(h.unref(s)),1)])]))}}),Qm=h.defineComponent({__name:"ResultStatus",props:{status:null},setup(e){const t=e,{t:n}=sn(),s=h.computed(()=>{switch(t.status){case Je.Ordered:case Je.InProgress:return{cssClass:"psc-text-black/60",text:n("psc.test_result_your_result_not_ready"),icon:"dgic-time-dotted"};case Je.Ready:return{cssClass:"psc-text-green-darken-1",text:n("psc.test_result_your_result_ready"),icon:"dgic-check-mark-thick"};case Je.PartiallyComplete:return{cssClass:"psc-text-black/60",text:n("psc.test_result_result_partial_completed"),icon:"dgic-time-dotted"};default:return{cssClass:"",text:"",icon:""}}});return(i,r)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["psc-relative psc-w-full psc-font-semibold",h.unref(s).cssClass])},[h.createElementVNode("span",null,h.toDisplayString(h.unref(s).text),1),h.createElementVNode("i",{class:h.normalizeClass(["psc-absolute -psc-bottom-0.5 psc-ml-1 psc-text-xl",h.unref(s).icon])},null,2)],2))}}),NE={key:0,class:"psc-w-full psc-font-semibold psc-text-blue-darken-2"},TE={key:1,class:"psc-relative psc-w-full psc-font-semibold psc-text-red-darken-1"},OE=h.createElementVNode("i",{class:"dgic-cancel-right-to-left psc-absolute -psc-bottom-0.5 psc-ml-1 psc-text-xl"},null,-1),t_=h.defineComponent({__name:"BookingResultStatus",props:{testResultKey:{default:""},resultStatus:null,bookingStatus:null},setup(e){const t=e;return(n,s)=>(h.openBlock(),h.createElementBlock("div",null,[t.testResultKey?t.bookingStatus===h.unref(An).Canceled?(h.openBlock(),h.createElementBlock("div",TE,[h.createElementVNode("span",null,h.toDisplayString(n.$t("psc.test_result_booking_booking_canceled")),1),OE])):(h.openBlock(),h.createBlock(Qm,{key:2,status:t.resultStatus},null,8,["status"])):(h.openBlock(),h.createElementBlock("div",NE,[h.createElementVNode("span",null,h.toDisplayString(n.$t("psc.test_result_booking_results_will_be_there")),1)]))]))}}),AE={class:"psc-relative -psc-mt-1 -psc-mb-[64px] psc-h-[76px] psc-w-full psc-overflow-hidden"},LE=h.defineComponent({__name:"BottomCurved",props:{type:{default:jo.Medium}},setup(e){const t=e,n=h.computed(()=>{let s="";switch(t.type){case jo.Large:s+="psc-w-[1160px] sm:psc-w-[1220px] md:psc-w-[1300px] lg:psc-w-[1500px] xl:psc-w-[1640px] 2xl:psc-w-[1840px] ";break;case jo.Medium:default:s+="psc-w-[1160px] xs-2-w sm:psc-w-[1400px] md:psc-w-[1540px] lg:psc-w-[1800px] xl:psc-w-[2000px] 2xl:psc-w-[2400px] "}return s});return(s,i)=>(h.openBlock(),h.createElementBlock("div",AE,[h.createElementVNode("div",{class:h.normalizeClass(["psc-absolute psc-bottom-0 psc-left-1/2 psc-h-[1064px] -psc-translate-x-1/2 psc-rounded-full psc-bg-blue-darken-1",h.unref(n)])},null,2)]))}}),gB="",e_=zs(LE,[["__scopeId","data-v-2b946045"]]);function n_(e){const t=h.computed(()=>({first_name:e.value.first_name,date_of_birth:e.value.date_of_birth,document_number:e.value.document_number,document_type:e.value.document_type,gender:e.value.gender,phone_number:e.value.phone_number,address:e.value.address,email:e.value.email})),n=h.computed(()=>{var s,i,r,l;return((s=e.value.account)==null?void 0:s.account_segment)===bd.Doctor?{name:(i=e.value.account)==null?void 0:i.name,account_code:(r=e.value.account)==null?void 0:r.account_code,phone_number:(l=e.value.account)==null?void 0:l.phone_number}:void 0});return{patient:t,doctor:n}}const IE={class:"psc-flex psc-flex-wrap psc-space-y-4 psc-rounded-lg psc-border psc-border-gray-lighten-2 psc-p-4 psc-shadow"},PE={key:0,class:"psc-w-full"},s_=h.defineComponent({__name:"CtaButton",props:{icon:null,title:null,subtitle:{default:""},buttonText:{default:""},buttonDisabled:{type:Boolean,default:!1}},emits:["click:button"],setup(e,{emit:t}){const n=e;return(s,i)=>(h.openBlock(),h.createElementBlock("div",IE,[h.createVNode(Rd,{icon:n.icon,title:n.title,subtitle:n.subtitle},null,8,["icon","title","subtitle"]),n.buttonText?(h.openBlock(),h.createElementBlock("div",PE,[h.createVNode(h.unref(sa),{class:"psc-w-full",type:"primary",disabled:n.buttonDisabled,onClick:i[0]||(i[0]=r=>t("click:button"))},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(n.buttonText),1)]),_:1},8,["disabled"])])):h.createCommentVNode("",!0)]))}}),FE={key:0,class:"psc-space-y-4"},i_=h.defineComponent({__name:"BookingCtaButtons",props:{booking:null},emits:["click:view-results","click:find-location"],setup(e,{emit:t}){const n=e,{t:s}=sn(),i=h.computed(()=>{var u,f,m;let l={visible:!1};return n.booking.booking_status===An.Created&&((f=(u=n.booking.data)==null?void 0:u.supportingInformation)!=null&&f.appointmentSampleCollectionPlace?l={visible:!1}:l=(m=n.booking.data)!=null&&m.is_hbc?{icon:"dgic-support-thick",subtitile:s("psc.test_result_booking_diag_contact_you_and_check"),visible:!0}:{icon:"dgic-pin-map-thick",subtitile:s("psc.test_result_find_nearest_diag_branch"),visible:!0,buttonText:s("psc.test_result_booking_find_location_center")}),l}),r=h.computed(()=>{let l={visible:!1};switch(n.booking.booking_status){case An.Created:l={subtitile:s("psc.test_result_booking_need_collect_sample"),buttonDisabled:!0,visible:!0};break;case An.InProgress:l={subtitile:s("psc.test_result_booking_processing_sample"),visible:!0};break;case An.Completed:l={subtitile:s("psc.test_result_booking_fully_ready"),visible:!0};break;case An.Canceled:default:l={visible:!1}}return l});return(l,u)=>h.unref(i).visible||h.unref(r).visible?(h.openBlock(),h.createElementBlock("div",FE,[h.unref(i).visible?(h.openBlock(),h.createBlock(s_,{key:0,title:l.$t("psc.test_result_booking_next_step"),subtitle:h.unref(i).subtitile,icon:h.unref(i).icon||"","button-text":h.unref(i).buttonText,"onClick:button":u[0]||(u[0]=f=>t("click:find-location"))},null,8,["title","subtitle","icon","button-text"])):h.createCommentVNode("",!0),h.unref(r).visible?(h.openBlock(),h.createBlock(s_,{key:1,title:l.$t("psc.test_result_booking_test_results"),subtitle:h.unref(r).subtitile,icon:"dgic-reports-thick","button-text":l.$t("psc.test_result_booking_view_results"),"button-disabled":h.unref(r).buttonDisabled,"onClick:button":u[1]||(u[1]=f=>t("click:view-results",n.booking.test_result_key))},null,8,["title","subtitle","button-text","button-disabled"])):h.createCommentVNode("",!0)])):h.createCommentVNode("",!0)}}),RE={},VE={class:"psc-space-y-4"},BE=[h.createStaticVNode('<div class="psc-h-8 psc-w-[64%] psc-rounded-lg psc-bg-gray-100 dark:psc-bg-gray-300"></div><div class="psc-space-y-3 psc-rounded-lg psc-p-3 psc-shadow"><div class="psc-h-7 psc-w-1/2 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 class="psc-h-5 psc-w-full psc-rounded-lg psc-bg-gray-100 dark:psc-bg-gray-300"></div><div class="psc-h-7 psc-w-1/2 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 class="psc-h-5 psc-w-full psc-rounded-lg psc-bg-gray-100 dark:psc-bg-gray-300"></div></div>',2)];function $E(e,t){return h.openBlock(),h.createElementBlock("div",VE,BE)}const YE=zs(RE,[["render",$E]]),WE={},UE={class:"psc-flex psc-flex-wrap psc-space-y-4 psc-rounded-lg psc-p-3 psc-shadow"},HE=[h.createStaticVNode('<div class="psc-flex psc-w-full"><div class="psc-flex-initial"><div class="psc-h-12 psc-w-12 psc-rounded-full 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 jE(e,t){return h.openBlock(),h.createElementBlock("div",UE,HE)}const bc=zs(WE,[["render",jE]]),zE={class:"psc-animate-pulse psc-space-y-11"},GE={class:"psc-space-y-6"},XE=h.createElementVNode("div",{class:"psc-space-y-3"},[h.createElementVNode("div",{class:"psc-h-8 psc-w-[64%] psc-rounded-lg psc-bg-gray-200 dark:psc-bg-gray-400"}),h.createElementVNode("div",{class:"psc-h-5 psc-w-[86%] psc-rounded-lg psc-bg-gray-100 dark:psc-bg-gray-300"})],-1),qE={class:"psc-space-y-4"},KE=h.defineComponent({__name:"BookingDetailSkeleton",setup(e){return(t,n)=>(h.openBlock(),h.createElementBlock("div",zE,[h.createElementVNode("div",GE,[XE,h.createElementVNode("div",qE,[h.createVNode(bc)])]),h.createVNode(YE)]))}}),ZE={class:"psc-space-y-11 psc-px-4 psc-pb-4"},JE={class:"psc-space-y-6"},QE={class:"psc-space-y-1"},tD={class:"psc-space-y-4"},eD={class:"psc-rounded-lg psc-shadow"},nD={class:"psc-relative psc-space-y-6 psc-px-4 psc-pb-4 lg:psc-px-6"},sD=h.defineComponent({__name:"BookingDetail",props:{booking:null,loading:{type:Boolean},hideSupport:{type:Boolean,default:!1}},emits:["click:view-results","click:find-location"],setup(e,{emit:t}){const n=e,s=h.computed(()=>n.booking),i=h.computed(()=>n.booking.booking_status===An.Created),{patient:r,doctor:l}=n_(s);return(u,f)=>(h.openBlock(),h.createElementBlock("div",ZE,[n.loading?(h.openBlock(),h.createBlock(KE,{key:0})):(h.openBlock(),h.createElementBlock(h.Fragment,{key:1},[h.createElementVNode("div",JE,[h.createElementVNode("div",QE,[h.createVNode(Jm,{"first-name":n.booking.first_name},null,8,["first-name"]),h.createVNode(t_,{"test-result-key":n.booking.test_result_key,"result-status":n.booking.result_status,"booking-status":n.booking.booking_status},null,8,["test-result-key","result-status","booking-status"])]),h.createVNode(i_,{booking:n.booking,"onClick:findLocation":f[0]||(f[0]=m=>t("click:find-location")),"onClick:viewResults":f[1]||(f[1]=m=>{t("click:view-results",m)})},null,8,["booking"])]),h.unref(i)?(h.openBlock(),h.createBlock(Vd,{key:0,booking:n.booking},null,8,["booking"])):h.createCommentVNode("",!0),h.createElementVNode("div",tD,[h.createVNode(yc,null,{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(u.$t("psc.test_result_booking_booking_details")),1)]),_:1}),h.createElementVNode("div",eD,[h.createVNode(Um,{patient:h.unref(r),doctor:h.unref(l),class:"psc-px-4 psc-py-4 lg:psc-px-6"},null,8,["patient","doctor"]),h.createVNode(e_),h.createElementVNode("div",nD,[h.createVNode(Xm,{"booking-code":n.booking.booking_code,"booking-status":n.booking.booking_status,"payment-status":n.booking.payment_status},null,8,["booking-code","booking-status","payment-status"]),h.createVNode(qm,{services:h.unref(s).services},null,8,["services"]),h.unref(s).total_amount?(h.openBlock(),h.createBlock(Km,{key:0,"total-amount":h.unref(s).total_amount},null,8,["total-amount"])):h.createCommentVNode("",!0),h.unref(s).note?(h.openBlock(),h.createBlock(Hm,{key:1,note:h.unref(s).note},null,8,["note"])):h.createCommentVNode("",!0)])])]),h.unref(i)?h.createCommentVNode("",!0):(h.openBlock(),h.createBlock(Vd,{key:1,booking:n.booking},null,8,["booking"])),n.hideSupport?h.createCommentVNode("",!0):(h.openBlock(),h.createBlock(Zm,{key:2}))],64))]))}}),iD={},rD={class:"psc-space-y-4"},aD=[h.createStaticVNode('<div class="psc-h-8 psc-w-[64%] psc-rounded-lg psc-bg-gray-100 dark:psc-bg-gray-300"></div><div class="psc-space-y-3 psc-rounded-lg psc-p-3 psc-shadow"><div class="psc-h-7 psc-w-1/2 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 class="psc-h-5 psc-w-full psc-rounded-lg psc-bg-gray-100 dark:psc-bg-gray-300"></div><div class="psc-h-7 psc-w-1/2 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 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>',2)];function oD(e,t){return h.openBlock(),h.createElementBlock("div",rD,aD)}const lD=zs(iD,[["render",oD]]),cD={class:"psc-flex psc-w-full psc-animate-pulse psc-flex-wrap psc-space-y-6"},uD=h.createElementVNode("div",{class:"psc-w-full psc-space-y-3"},[h.createElementVNode("div",{class:"psc-h-8 psc-w-[64%] psc-rounded-lg psc-bg-gray-200 dark:psc-bg-gray-400"}),h.createElementVNode("div",{class:"psc-h-5 psc-w-[86%] psc-rounded-lg psc-bg-gray-100 dark:psc-bg-gray-300"})],-1),dD={class:"psc-w-2/3"},hD={class:"psc-w-1/3 psc-space-y-11 psc-pl-11"},fD=h.defineComponent({__name:"BookingDetailDesktopSkeleton",setup(e){return(t,n)=>(h.openBlock(),h.createElementBlock("div",cD,[uD,h.createElementVNode("div",dD,[h.createVNode(lD)]),h.createElementVNode("div",hD,[h.createVNode(bc),h.createVNode(bc)])]))}}),pD={class:"psc-flex psc-flex-wrap psc-px-4 psc-pb-4"},mD={class:"psc-w-full psc-space-y-2 psc-pb-6"},_D={class:"psc-w-2/3"},gD={class:"psc-rounded-lg psc-shadow"},yD={class:"psc-relative psc-space-y-6 psc-px-4 psc-pb-4 lg:psc-px-6"},bD={class:"psc-w-1/3 psc-space-y-11 psc-pl-11"},kD=h.defineComponent({__name:"BookingDetailDesktop",props:{booking:null,loading:{type:Boolean},hideSupport:{type:Boolean,default:!1}},emits:["click:view-results","click:find-location"],setup(e,{emit:t}){const n=e,s=h.computed(()=>n.booking),{patient:i,doctor:r}=n_(s);return(l,u)=>(h.openBlock(),h.createElementBlock("div",pD,[n.loading?(h.openBlock(),h.createBlock(fD,{key:0})):(h.openBlock(),h.createElementBlock(h.Fragment,{key:1},[h.createElementVNode("div",mD,[h.createVNode(yc,null,{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(l.$t("psc.test_result_booking_booking_details")),1)]),_:1}),h.createVNode(t_,{"test-result-key":n.booking.test_result_key,"result-status":n.booking.result_status,"booking-status":n.booking.booking_status},null,8,["test-result-key","result-status","booking-status"])]),h.createElementVNode("div",_D,[h.createElementVNode("div",gD,[h.createVNode(Um,{patient:h.unref(i),doctor:h.unref(r),class:"psc-px-4 psc-py-4 lg:psc-px-6"},null,8,["patient","doctor"]),h.createVNode(e_,{type:"lg"}),h.createElementVNode("div",yD,[h.createVNode(Xm,{"booking-code":n.booking.booking_code,"booking-status":n.booking.booking_status,"payment-status":n.booking.payment_status},null,8,["booking-code","booking-status","payment-status"]),h.createVNode(qm,{services:h.unref(s).services},null,8,["services"]),h.unref(s).total_amount?(h.openBlock(),h.createBlock(Km,{key:0,"total-amount":h.unref(s).total_amount},null,8,["total-amount"])):h.createCommentVNode("",!0),h.unref(s).note?(h.openBlock(),h.createBlock(Hm,{key:1,note:h.unref(s).note},null,8,["note"])):h.createCommentVNode("",!0)])])]),h.createElementVNode("div",bD,[h.createVNode(i_,{booking:n.booking,"onClick:findLocation":u[0]||(u[0]=f=>t("click:find-location")),"onClick:viewResults":u[1]||(u[1]=f=>{t("click:view-results",f)})},null,8,["booking"]),h.createVNode(Vd,{booking:n.booking},null,8,["booking"]),n.hideSupport?h.createCommentVNode("",!0):(h.openBlock(),h.createBlock(Zm,{key:0}))])],64))]))}}),vD={},xD={class:"psc-animate-pulse psc-cursor-pointer psc-space-y-3 psc-rounded-lg psc-p-3 psc-shadow hover:psc-bg-slate-100"},wD=[h.createElementVNode("div",{class:"psc-w-full"},[h.createElementVNode("div",{class:"psc-h-5 psc-w-64 psc-rounded-lg psc-bg-gray-200 dark:psc-bg-gray-400"})],-1),h.createElementVNode("div",{class:"psc-w-full"},[h.createElementVNode("div",{class:"psc-h-5 psc-w-32 psc-rounded-lg psc-bg-gray-100 dark:psc-bg-gray-300"})],-1)];function ED(e,t){return h.openBlock(),h.createElementBlock("div",xD,wD)}const kc=zs(vD,[["render",ED]]),DD={class:"psc-relative psc-mb-[24px] psc-cursor-pointer psc-rounded-[8px] psc-bg-blue-darken-1 psc-px-[16px] psc-py-[10px] psc-text-white"},SD=["href"],CD={class:"psc-text-sm psc-font-medium"},MD={class:"psc-text-xs psc-font-normal"},ND={key:0,class:"dgic-chevron-right-thin psc-absolute psc-right-[16px] psc-top-[50%] -psc-translate-y-1/2 psc-text-xl !psc-font-bold"},TD=h.defineComponent({__name:"CtaButton",props:{url:null,title:null,subtitle:null,hideIcon:{type:Boolean,default:!1}},setup(e){const t=e;return(n,s)=>(h.openBlock(),h.createElementBlock("div",null,[h.createElementVNode("div",DD,[h.createElementVNode("a",{href:t.url,target:"_blank",class:"psc-text-center"},[h.createElementVNode("div",null,[h.createElementVNode("div",CD,h.toDisplayString(t.title),1),h.createElementVNode("div",MD,h.toDisplayString(t.subtitle),1),t.hideIcon?h.createCommentVNode("",!0):(h.openBlock(),h.createElementBlock("i",ND))])],8,SD)])]))}}),wB="",Zo=zs(TD,[["__scopeId","data-v-17925573"]]),OD={class:"psc-flex psc-w-full psc-items-center psc-justify-center"},AD={class:"psc-w-full psc-max-w-lg psc-space-y-6 psc-px-4 psc-text-center"},LD={key:0,class:"psc-text-2xl psc-font-bold psc-text-blue-darken-1"},ID={key:1,class:"psc-font-semibold psc-text-[#0000]/[.6]"},Bd=h.defineComponent({__name:"NoItemsFound",props:{title:{default:""},subtitle:{default:""},bookingButtonUrl:{default:""}},setup(e){const t=e;return(n,s)=>(h.openBlock(),h.createElementBlock("div",OD,[h.createElementVNode("div",AD,[t.title?(h.openBlock(),h.createElementBlock("div",LD,h.toDisplayString(t.title),1)):h.createCommentVNode("",!0),t.subtitle?(h.openBlock(),h.createElementBlock("div",ID,h.toDisplayString(t.subtitle),1)):h.createCommentVNode("",!0),t.bookingButtonUrl?(h.openBlock(),h.createBlock(Zo,{key:2,url:t.bookingButtonUrl,title:n.$t("psc.test_result_get_started"),subtitle:n.$t("psc.test_result_book_first_test")},null,8,["url","title","subtitle"])):h.createCommentVNode("",!0)])]))}}),vc="19001717",PD="customersupport@diag.vn";var r_=(e=>(e.Locale="DiagPatientPortalLocale",e))(r_||{});const FD={Container:"pat-container",MicroTestResult:"pat-micro-test-result"},RD={ChangeRoute:"change-route"},VD={AccessToken:"pe_access_token"},BD={class:"psc-text-center"},$D={class:"psc-font-medium"},YD={class:"psc-text-sm"},WD=h.createElementVNode("i",{class:"dgic-chevron-right-thin psc-absolute psc-right-[16px] psc-top-[50%] -psc-translate-y-1/2 psc-text-xl !psc-font-bold"},null,-1),a_=h.defineComponent({__name:"CallUsFilledButton",setup(e){const{t}=sn(),n=()=>{window.open(`tel:${vc}`,"_self")};return(s,i)=>(h.openBlock(),h.createElementBlock("button",{class:"psc-w-full psc-rounded-lg psc-bg-blue-darken-1 psc-py-2.5 psc-px-4 psc-text-white disabled:psc-bg-[#aeb0bd]",style:{textAlign:"left",position:"relative"},onClick:n},[h.createElementVNode("div",BD,[h.createElementVNode("div",$D,h.toDisplayString(`${h.unref(t)("psc.call_us")}`),1),h.createElementVNode("div",YD,h.toDisplayString(h.unref(t)("psc.test_result_time_support")),1),WD])]))}}),UD={class:"test-result-full-patient-info"},HD={class:"fullname"},jD={key:0},zD={class:"psc-pr-1"},GD={class:"psc-capitalize"},XD={class:"more-info"},qD={class:"psc-mr-[24px] psc-flex psc-items-center"},KD=h.createElementVNode("i",{class:"dgic-cake"},null,-1),ZD={class:"psc-flex psc-items-center"},JD=h.createElementVNode("i",{class:"dgic-phone-light"},null,-1),QD=h.defineComponent({__name:"PatientFullInfo",props:{isGreeting:{type:Boolean,default:!1},testResult:null},setup(e){const t=e,n=h.computed(()=>(t.testResult.first_name||"").toLowerCase()),{formatDate:s}=Ms(),i=h.computed(()=>t.testResult.phone_number||""),r=h.computed(()=>s(new Date(t.testResult.date_of_birth)));return(l,u)=>(h.openBlock(),h.createElementBlock("div",UD,[h.createElementVNode("div",HD,[e.isGreeting?(h.openBlock(),h.createElementBlock("span",jD,[h.createElementVNode("span",zD,h.toDisplayString(l.$t("psc.test_result_hi")),1),h.createElementVNode("span",GD,h.toDisplayString(h.unref(n)),1)])):h.createCommentVNode("",!0)]),h.createElementVNode("div",XD,[h.createElementVNode("div",qD,[KD,h.createTextVNode(" "+h.toDisplayString(h.unref(r)),1)]),h.createElementVNode("div",ZD,[JD,h.createTextVNode(" "+h.toDisplayString(h.unref(i)),1)])])]))}}),EB="",tS={},eS=h.createElementVNode("div",{class:"psc-text-center"},[h.createElementVNode("i",{class:"dgic-cancel-right-to-left psc-text-[80px] psc-text-red-darken-1"})],-1),nS={class:"psc-mt-6 psc-space-y-4 psc-text-center"},sS={class:"psc-text-xl psc-font-semibold psc-text-black/[0.85]"},iS={class:"psc-text-black/[0.6]"};function rS(e,t){return h.openBlock(),h.createElementBlock("div",null,[eS,h.renderSlot(e.$slots,"body-prepend"),h.createElementVNode("div",nS,[h.createElementVNode("div",sS,h.toDisplayString(e.$t("psc.test_result_sample_could_not_processed")),1),h.createElementVNode("div",iS,h.toDisplayString(e.$t("psc.test_result_contact_support")),1)]),h.renderSlot(e.$slots,"body-append")])}const o_=zs(tS,[["render",rS]]);/*!
|
|
81
81
|
* Chart.js v3.9.1
|
|
82
82
|
* https://www.chartjs.org
|
|
83
83
|
* (c) 2022 Chart.js Contributors
|