ablok-components 0.1.106 ā 0.1.107
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.
|
@@ -18340,7 +18340,7 @@ const Ik = { class: "input input-dropdown" }, Sk = { class: "dropdown" }, Tk = {
|
|
|
18340
18340
|
value: u
|
|
18341
18341
|
} : u, {
|
|
18342
18342
|
...u,
|
|
18343
|
-
active: n.modelValue && n.modelValue.includes(u.value)
|
|
18343
|
+
active: n.modelValue && u.value && n.modelValue.includes(u.value)
|
|
18344
18344
|
}))
|
|
18345
18345
|
), a = VA(
|
|
18346
18346
|
() => n.modelValue && n.modelValue.length ? Array.isArray(n.modelValue) && n.modelValue.length ? s.value.reduce((u, c) => n.modelValue.includes(c.value) ? `${u}${u ? ", " : ""}${c.text}` : u, "") : s.value.reduce((u, c) => c.value === n.modelValue ? `${u}${c.text}` : u, "") : n.placeholder || `${e("common.select")}`
|
|
@@ -130,7 +130,7 @@ ${u}`:c)}else throw s},onCacheKey:s=>I1(A,e,s)}}function tT(t){if(tA(t))return t
|
|
|
130
130
|
* vue-i18n v9.8.0
|
|
131
131
|
* (c) 2023 kazuya kawaguchi
|
|
132
132
|
* Released under the MIT License.
|
|
133
|
-
*/const rT="9.8.0";function iT(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Rn().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Rn().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Rn().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Rn().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Rn().__INTLIFY_PROD_DEVTOOLS__=!1)}const em=at.__EXTEND_POINT__,Er=Eu(em),Vt={FALLBACK_TO_ROOT:em,NOT_SUPPORTED_PRESERVE:Er(),NOT_SUPPORTED_FORMATTER:Er(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:Er(),NOT_SUPPORTED_GET_CHOICE_INDEX:Er(),COMPONENT_NAME_LEGACY_COMPATIBLE:Er(),NOT_FOUND_PARENT_SCOPE:Er(),IGNORE_OBJ_FLATTEN:Er(),NOTICE_DROP_ALLOW_COMPOSITION:Er()},sT={[Vt.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Vt.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[Vt.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[Vt.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[Vt.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[Vt.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[Vt.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[Vt.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[Vt.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see š https://tinyurl.com/2p97mcze"};function Ou(t,...A){return yu(sT[t],...A)}const tm=_e.__EXTEND_POINT__,mt=Eu(tm),ce={UNEXPECTED_RETURN_TYPE:tm,INVALID_ARGUMENT:mt(),MUST_BE_CALL_SETUP_TOP:mt(),NOT_INSTALLED:mt(),NOT_AVAILABLE_IN_LEGACY_MODE:mt(),REQUIRED_VALUE:mt(),INVALID_VALUE:mt(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:mt(),NOT_INSTALLED_WITH_PROVIDE:mt(),UNEXPECTED_ERROR:mt(),NOT_COMPATIBLE_LEGACY_VUE_I18N:mt(),BRIDGE_SUPPORT_VUE_2_ONLY:mt(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:mt(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:mt(),__EXTEND_POINT__:mt()};function Qr(t,...A){return Pi(t,null,process.env.NODE_ENV!=="production"?{messages:oT,args:A}:void 0)}const oT={[ce.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[ce.INVALID_ARGUMENT]:"Invalid argument",[ce.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[ce.NOT_INSTALLED]:"Need to install with `app.use` function",[ce.UNEXPECTED_ERROR]:"Unexpected error",[ce.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[ce.REQUIRED_VALUE]:"Required in value: {0}",[ce.INVALID_VALUE]:"Invalid value",[ce.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[ce.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[ce.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[ce.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[ce.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define āi18nā option or custom block in Composition API with using local scope in Legacy API mode",[ce.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Lu=kn("__translateVNode"),Hu=kn("__datetimeParts"),Mu=kn("__numberParts"),Nu=kn("__enableEmitter"),Du=kn("__disableEmitter"),aT=kn("__setPluralRules"),nm=kn("__injectWithOption"),ku=kn("__dispose");function Js(t){if(!GA(t))return t;for(const A in t)if(Ps(t,A))if(!A.includes("."))GA(t[A])&&Js(t[A]);else{const e=A.split("."),n=e.length-1;let r=t,i=!1;for(let s=0;s<n;s++){if(e[s]in r||(r[e[s]]={}),!GA(r[e[s]])){process.env.NODE_ENV!=="production"&&wr(Ou(Vt.IGNORE_OBJ_FLATTEN,{key:e[s]})),i=!0;break}r=r[e[s]]}i||(r[e[n]]=t[A],delete t[A]),GA(r[e[n]])&&Js(r[e[n]])}return t}function Ru(t,A){const{messages:e,__i18n:n,messageResolver:r,flatJson:i}=A,s=TA(e)?e:ye(n)?{}:{[t]:{}};if(ye(n)&&n.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:c,resource:u}=a;c?(s[c]=s[c]||{},Vs(u,s[c])):Vs(u,s)}else tA(a)&&Vs(JSON.parse(a),s)}),r==null&&i)for(const a in s)Ps(s,a)&&Js(s[a]);return s}function rm(t){return t.type}function lT(t,A,e){let n=GA(A.messages)?A.messages:{};"__i18nGlobal"in e&&(n=Ru(t.locale.value,{messages:n,__i18n:e.__i18nGlobal}));const r=Object.keys(n);r.length&&r.forEach(i=>{t.mergeLocaleMessage(i,n[i])});{if(GA(A.datetimeFormats)){const i=Object.keys(A.datetimeFormats);i.length&&i.forEach(s=>{t.mergeDateTimeFormat(s,A.datetimeFormats[s])})}if(GA(A.numberFormats)){const i=Object.keys(A.numberFormats);i.length&&i.forEach(s=>{t.mergeNumberFormat(s,A.numberFormats[s])})}}}function im(t){return p.createVNode(p.Text,null,t,0)}const sm="__INTLIFY_META__",om=()=>[],cT=()=>!1;let am=0;function lm(t){return(A,e,n,r)=>t(e,n,p.getCurrentInstance()||void 0,r)}const uT=()=>{const t=p.getCurrentInstance();let A=null;return t&&(A=rm(t)[sm])?{[sm]:A}:null};function fT(t={},A){const{__root:e,__injectWithOption:n}=t,r=e===void 0,i=t.flatJson;let s=jA(t.inheritLocale)?t.inheritLocale:!0;const a=p.ref(e&&s?e.locale.value:tA(t.locale)?t.locale:Ws),c=p.ref(e&&s?e.fallbackLocale.value:tA(t.fallbackLocale)||ye(t.fallbackLocale)||TA(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:a.value),u=p.ref(Ru(a.value,t)),f=p.ref(TA(t.datetimeFormats)?t.datetimeFormats:{[a.value]:{}}),h=p.ref(TA(t.numberFormats)?t.numberFormats:{[a.value]:{}});let g=e?e.missingWarn:jA(t.missingWarn)||Ki(t.missingWarn)?t.missingWarn:!0,m=e?e.fallbackWarn:jA(t.fallbackWarn)||Ki(t.fallbackWarn)?t.fallbackWarn:!0,w=e?e.fallbackRoot:jA(t.fallbackRoot)?t.fallbackRoot:!0,U=!!t.fallbackFormat,b=re(t.missing)?t.missing:null,E=re(t.missing)?lm(t.missing):null,I=re(t.postTranslation)?t.postTranslation:null,M=e?e.warnHtmlMessage:jA(t.warnHtmlMessage)?t.warnHtmlMessage:!0,Q=!!t.escapeParameter;const N=e?e.modifiers:TA(t.modifiers)?t.modifiers:{};let T=t.pluralRules||e&&e.pluralRules,H;H=(()=>{r&&MB(null);const K={version:rT,locale:a.value,fallbackLocale:c.value,messages:u.value,modifiers:N,pluralRules:T,missing:E===null?void 0:E,missingWarn:g,fallbackWarn:m,fallbackFormat:U,unresolving:!0,postTranslation:I===null?void 0:I,warnHtmlMessage:M,escapeParameter:Q,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:"vue"}};K.datetimeFormats=f.value,K.numberFormats=h.value,K.__datetimeFormatters=TA(H)?H.__datetimeFormatters:void 0,K.__numberFormatters=TA(H)?H.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(K.__v_emitter=TA(H)?H.__v_emitter:void 0);const X=XS(K);return r&&MB(X),X})(),$s(H,a.value,c.value);function V(){return[a.value,c.value,u.value,f.value,h.value]}const sA=p.computed({get:()=>a.value,set:K=>{a.value=K,H.locale=a.value}}),yA=p.computed({get:()=>c.value,set:K=>{c.value=K,H.fallbackLocale=c.value,$s(H,a.value,K)}}),dA=p.computed(()=>u.value),lA=p.computed(()=>f.value),xA=p.computed(()=>h.value);function te(){return re(I)?I:null}function kA(K){I=K,H.postTranslation=K}function OA(){return b}function nA(K){K!==null&&(E=lm(K)),b=K,H.missing=E}function hA(K,X){return K!=="translate"||!X.resolvedMessage}const LA=(K,X,bA,JA,_t,Tn)=>{V();let Xt;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(H.fallbackContext=e?JS():void 0),Xt=K(H)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(H.fallbackContext=void 0)}if(bA!=="translate exists"&&ze(Xt)&&Xt===Ca||bA==="translate exists"&&!Xt){const[xt,fi]=X();if(process.env.NODE_ENV!=="production"&&e&&tA(xt)&&hA(bA,fi)&&(w&&(Ea(m,xt)||DB(g,xt))&&wr(Ou(Vt.FALLBACK_TO_ROOT,{key:xt,type:bA})),process.env.NODE_ENV!=="production")){const{__v_emitter:R}=H;R&&w&&R.emit("fallback",{type:bA,key:xt,to:"global",groupId:`${bA}:${xt}`})}return e&&w?JA(e):_t(xt)}else{if(Tn(Xt))return Xt;throw Qr(ce.UNEXPECTED_RETURN_TYPE)}};function RA(...K){return LA(X=>Reflect.apply(GB,null,[X,...K]),()=>Tu(...K),"translate",X=>Reflect.apply(X.t,X,[...K]),X=>X,X=>tA(X))}function ie(...K){const[X,bA,JA]=K;if(JA&&!GA(JA))throw Qr(ce.INVALID_ARGUMENT);return RA(X,bA,qe({resolvedMessage:!0},JA||{}))}function KA(...K){return LA(X=>Reflect.apply(YB,null,[X,...K]),()=>_u(...K),"datetime format",X=>Reflect.apply(X.d,X,[...K]),()=>ya,X=>tA(X))}function YA(...K){return LA(X=>Reflect.apply(ZB,null,[X,...K]),()=>xu(...K),"number format",X=>Reflect.apply(X.n,X,[...K]),()=>ya,X=>tA(X))}function VA(K){return K.map(X=>tA(X)||ze(X)||jA(X)?im(String(X)):X)}const Oe={normalize:VA,interpolate:K=>K,type:"vnode"};function ct(...K){return LA(X=>{let bA;const JA=X;try{JA.processor=Oe,bA=Reflect.apply(GB,null,[JA,...K])}finally{JA.processor=null}return bA},()=>Tu(...K),"translate",X=>X[Lu](...K),X=>[im(X)],X=>ye(X))}function At(...K){return LA(X=>Reflect.apply(ZB,null,[X,...K]),()=>xu(...K),"number format",X=>X[Mu](...K),om,X=>tA(X)||ye(X))}function Re(...K){return LA(X=>Reflect.apply(YB,null,[X,...K]),()=>_u(...K),"datetime format",X=>X[Hu](...K),om,X=>tA(X)||ye(X))}function ut(K){T=K,H.pluralRules=T}function Tt(K,X){return LA(()=>{if(!K)return!1;const bA=tA(X)?X:a.value,JA=k(bA),_t=H.messageResolver(JA,K);return si(_t)||Pt(_t)||tA(_t)},()=>[K],"translate exists",bA=>Reflect.apply(bA.te,bA,[K,X]),cT,bA=>jA(bA))}function x(K){let X=null;const bA=vB(H,c.value,a.value);for(let JA=0;JA<bA.length;JA++){const _t=u.value[bA[JA]]||{},Tn=H.messageResolver(_t,K);if(Tn!=null){X=Tn;break}}return X}function v(K){const X=x(K);return X??(e?e.tm(K)||{}:{})}function k(K){return u.value[K]||{}}function q(K,X){if(i){const bA={[K]:X};for(const JA in bA)Ps(bA,JA)&&Js(bA[JA]);X=bA[K]}u.value[K]=X,H.messages=u.value}function aA(K,X){u.value[K]=u.value[K]||{};const bA={[K]:X};for(const JA in bA)Ps(bA,JA)&&Js(bA[JA]);X=bA[K],Vs(X,u.value[K]),H.messages=u.value}function IA(K){return f.value[K]||{}}function ft(K,X){f.value[K]=X,H.datetimeFormats=f.value,qB(H,K,X)}function Ke(K,X){f.value[K]=qe(f.value[K]||{},X),H.datetimeFormats=f.value,qB(H,K,X)}function Pe(K){return h.value[K]||{}}function Sn(K,X){h.value[K]=X,H.numberFormats=h.value,Am(H,K,X)}function un(K,X){h.value[K]=qe(h.value[K]||{},X),H.numberFormats=h.value,Am(H,K,X)}am++,e&&mr&&(p.watch(e.locale,K=>{s&&(a.value=K,H.locale=K,$s(H,a.value,c.value))}),p.watch(e.fallbackLocale,K=>{s&&(c.value=K,H.fallbackLocale=K,$s(H,a.value,c.value))}));const ae={id:am,locale:sA,fallbackLocale:yA,get inheritLocale(){return s},set inheritLocale(K){s=K,K&&e&&(a.value=e.locale.value,c.value=e.fallbackLocale.value,$s(H,a.value,c.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:dA,get modifiers(){return N},get pluralRules(){return T||{}},get isGlobal(){return r},get missingWarn(){return g},set missingWarn(K){g=K,H.missingWarn=g},get fallbackWarn(){return m},set fallbackWarn(K){m=K,H.fallbackWarn=m},get fallbackRoot(){return w},set fallbackRoot(K){w=K},get fallbackFormat(){return U},set fallbackFormat(K){U=K,H.fallbackFormat=U},get warnHtmlMessage(){return M},set warnHtmlMessage(K){M=K,H.warnHtmlMessage=K},get escapeParameter(){return Q},set escapeParameter(K){Q=K,H.escapeParameter=K},t:RA,getLocaleMessage:k,setLocaleMessage:q,mergeLocaleMessage:aA,getPostTranslationHandler:te,setPostTranslationHandler:kA,getMissingHandler:OA,setMissingHandler:nA,[aT]:ut};return ae.datetimeFormats=lA,ae.numberFormats=xA,ae.rt=ie,ae.te=Tt,ae.tm=v,ae.d=KA,ae.n=YA,ae.getDateTimeFormat=IA,ae.setDateTimeFormat=ft,ae.mergeDateTimeFormat=Ke,ae.getNumberFormat=Pe,ae.setNumberFormat=Sn,ae.mergeNumberFormat=un,ae[nm]=n,ae[Lu]=ct,ae[Hu]=Re,ae[Mu]=At,process.env.NODE_ENV!=="production"&&(ae[Nu]=K=>{H.__v_emitter=K},ae[Du]=()=>{H.__v_emitter=void 0}),ae}const Ku={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function dT({slots:t},A){return A.length===1&&A[0]==="default"?(t.default?t.default():[]).reduce((n,r)=>[...n,...r.type===p.Fragment?r.children:[r]],[]):A.reduce((e,n)=>{const r=t[n];return r&&(e[n]=r()),e},{})}function cm(t){return p.Fragment}qe({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>ze(t)||!isNaN(t)}},Ku);function hT(t){return ye(t)&&!tA(t[0])}function um(t,A,e,n){const{slots:r,attrs:i}=A;return()=>{const s={part:!0};let a={};t.locale&&(s.locale=t.locale),tA(t.format)?s.key=t.format:GA(t.format)&&(tA(t.format.key)&&(s.key=t.format.key),a=Object.keys(t.format).reduce((g,m)=>e.includes(m)?qe({},g,{[m]:t.format[m]}):g,{}));const c=n(t.value,s,a);let u=[s.key];ye(c)?u=c.map((g,m)=>{const w=r[g.type],U=w?w({[g.type]:g.value,index:m,parts:c}):[g.value];return hT(U)&&(U[0].key=`${g.type}-${m}`),U}):tA(c)&&(u=[c]);const f=qe({},i),h=tA(t.tag)||GA(t.tag)?t.tag:cm();return p.h(h,f,u)}}qe({value:{type:Number,required:!0},format:{type:[String,Object]}},Ku),qe({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Ku);function fm(t,A){}const pT=kn("global-vue-i18n");function Qa(t={}){const A=p.getCurrentInstance();if(A==null)throw Qr(ce.MUST_BE_CALL_SETUP_TOP);if(!A.isCE&&A.appContext.app!=null&&!A.appContext.app.__VUE_I18N_SYMBOL__)throw Qr(ce.NOT_INSTALLED);const e=gT(A),n=mT(e),r=rm(A),i=BT(t,r);if(__VUE_I18N_LEGACY_API__&&e.mode==="legacy"&&!t.__useComponent){if(!e.allowComposition)throw Qr(ce.NOT_AVAILABLE_IN_LEGACY_MODE);return ET(A,i,n,t)}if(i==="global")return lT(n,t,r),n;if(i==="parent"){let c=wT(e,A,t.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&wr(Ou(Vt.NOT_FOUND_PARENT_SCOPE)),c=n),c}const s=e;let a=s.__getInstance(A);if(a==null){const c=qe({},t);"__i18n"in r&&(c.__i18n=r.__i18n),n&&(c.__root=n),a=fT(c),s.__composerExtend&&(a[ku]=s.__composerExtend(a)),yT(s,A,a),s.__setInstance(A,a)}return a}function gT(t){{const A=p.inject(t.isCE?pT:t.appContext.app.__VUE_I18N_SYMBOL__);if(!A)throw Qr(t.isCE?ce.NOT_INSTALLED_WITH_PROVIDE:ce.UNEXPECTED_ERROR);return A}}function BT(t,A){return ma(t)?"__i18n"in A?"local":"global":t.useScope?t.useScope:"local"}function mT(t){return t.mode==="composition"?t.global:t.global.__composer}function wT(t,A,e=!1){let n=null;const r=A.root;let i=CT(A,e);for(;i!=null;){const s=t;if(t.mode==="composition")n=s.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const a=s.__getInstance(i);a!=null&&(n=a.__composer,e&&n&&!n[nm]&&(n=null))}if(n!=null||r===i)break;i=i.parent}return n}function CT(t,A=!1){return t==null?null:A&&t.vnode.ctx||t.parent}function yT(t,A,e){let n=null;p.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&A.vnode.el){A.vnode.el.__VUE_I18N__=e,n=N1();const r=e;r[Nu]&&r[Nu](n),n.on("*",fm)}},A),p.onUnmounted(()=>{const r=e;process.env.NODE_ENV!=="production"&&A.vnode.el&&A.vnode.el.__VUE_I18N__&&(n&&n.off("*",fm),r[Du]&&r[Du](),delete A.vnode.el.__VUE_I18N__),t.__deleteInstance(A);const i=r[ku];i&&(i(),delete r[ku])},A)}function ET(t,A,e,n={}){const r=A==="local",i=p.shallowRef(null);if(r&&t.proxy&&!(t.proxy.$options.i18n||t.proxy.$options.__i18n))throw Qr(ce.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const s=jA(n.inheritLocale)?n.inheritLocale:!tA(n.locale),a=p.ref(!r||s?e.locale.value:tA(n.locale)?n.locale:Ws),c=p.ref(!r||s?e.fallbackLocale.value:tA(n.fallbackLocale)||ye(n.fallbackLocale)||TA(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:a.value),u=p.ref(Ru(a.value,n)),f=p.ref(TA(n.datetimeFormats)?n.datetimeFormats:{[a.value]:{}}),h=p.ref(TA(n.numberFormats)?n.numberFormats:{[a.value]:{}}),g=r?e.missingWarn:jA(n.missingWarn)||Ki(n.missingWarn)?n.missingWarn:!0,m=r?e.fallbackWarn:jA(n.fallbackWarn)||Ki(n.fallbackWarn)?n.fallbackWarn:!0,w=r?e.fallbackRoot:jA(n.fallbackRoot)?n.fallbackRoot:!0,U=!!n.fallbackFormat,b=re(n.missing)?n.missing:null,E=re(n.postTranslation)?n.postTranslation:null,I=r?e.warnHtmlMessage:jA(n.warnHtmlMessage)?n.warnHtmlMessage:!0,M=!!n.escapeParameter,Q=r?e.modifiers:TA(n.modifiers)?n.modifiers:{},N=n.pluralRules||r&&e.pluralRules;function T(){return[a.value,c.value,u.value,f.value,h.value]}const H=p.computed({get:()=>i.value?i.value.locale.value:a.value,set:v=>{i.value&&(i.value.locale.value=v),a.value=v}}),Y=p.computed({get:()=>i.value?i.value.fallbackLocale.value:c.value,set:v=>{i.value&&(i.value.fallbackLocale.value=v),c.value=v}}),V=p.computed(()=>i.value?i.value.messages.value:u.value),sA=p.computed(()=>f.value),yA=p.computed(()=>h.value);function dA(){return i.value?i.value.getPostTranslationHandler():E}function lA(v){i.value&&i.value.setPostTranslationHandler(v)}function xA(){return i.value?i.value.getMissingHandler():b}function te(v){i.value&&i.value.setMissingHandler(v)}function kA(v){return T(),v()}function OA(...v){return i.value?kA(()=>Reflect.apply(i.value.t,null,[...v])):kA(()=>"")}function nA(...v){return i.value?Reflect.apply(i.value.rt,null,[...v]):""}function hA(...v){return i.value?kA(()=>Reflect.apply(i.value.d,null,[...v])):kA(()=>"")}function LA(...v){return i.value?kA(()=>Reflect.apply(i.value.n,null,[...v])):kA(()=>"")}function RA(v){return i.value?i.value.tm(v):{}}function ie(v,k){return i.value?i.value.te(v,k):!1}function KA(v){return i.value?i.value.getLocaleMessage(v):{}}function YA(v,k){i.value&&(i.value.setLocaleMessage(v,k),u.value[v]=k)}function VA(v,k){i.value&&i.value.mergeLocaleMessage(v,k)}function ue(v){return i.value?i.value.getDateTimeFormat(v):{}}function Oe(v,k){i.value&&(i.value.setDateTimeFormat(v,k),f.value[v]=k)}function ct(v,k){i.value&&i.value.mergeDateTimeFormat(v,k)}function At(v){return i.value?i.value.getNumberFormat(v):{}}function Re(v,k){i.value&&(i.value.setNumberFormat(v,k),h.value[v]=k)}function ut(v,k){i.value&&i.value.mergeNumberFormat(v,k)}const Tt={get id(){return i.value?i.value.id:-1},locale:H,fallbackLocale:Y,messages:V,datetimeFormats:sA,numberFormats:yA,get inheritLocale(){return i.value?i.value.inheritLocale:s},set inheritLocale(v){i.value&&(i.value.inheritLocale=v)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(u.value)},get modifiers(){return i.value?i.value.modifiers:Q},get pluralRules(){return i.value?i.value.pluralRules:N},get isGlobal(){return i.value?i.value.isGlobal:!1},get missingWarn(){return i.value?i.value.missingWarn:g},set missingWarn(v){i.value&&(i.value.missingWarn=v)},get fallbackWarn(){return i.value?i.value.fallbackWarn:m},set fallbackWarn(v){i.value&&(i.value.missingWarn=v)},get fallbackRoot(){return i.value?i.value.fallbackRoot:w},set fallbackRoot(v){i.value&&(i.value.fallbackRoot=v)},get fallbackFormat(){return i.value?i.value.fallbackFormat:U},set fallbackFormat(v){i.value&&(i.value.fallbackFormat=v)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:I},set warnHtmlMessage(v){i.value&&(i.value.warnHtmlMessage=v)},get escapeParameter(){return i.value?i.value.escapeParameter:M},set escapeParameter(v){i.value&&(i.value.escapeParameter=v)},t:OA,getPostTranslationHandler:dA,setPostTranslationHandler:lA,getMissingHandler:xA,setMissingHandler:te,rt:nA,d:hA,n:LA,tm:RA,te:ie,getLocaleMessage:KA,setLocaleMessage:YA,mergeLocaleMessage:VA,getDateTimeFormat:ue,setDateTimeFormat:Oe,mergeDateTimeFormat:ct,getNumberFormat:At,setNumberFormat:Re,mergeNumberFormat:ut};function x(v){v.locale.value=a.value,v.fallbackLocale.value=c.value,Object.keys(u.value).forEach(k=>{v.mergeLocaleMessage(k,u.value[k])}),Object.keys(f.value).forEach(k=>{v.mergeDateTimeFormat(k,f.value[k])}),Object.keys(h.value).forEach(k=>{v.mergeNumberFormat(k,h.value[k])}),v.escapeParameter=M,v.fallbackFormat=U,v.fallbackRoot=w,v.fallbackWarn=m,v.missingWarn=g,v.warnHtmlMessage=I}return p.onBeforeMount(()=>{if(t.proxy==null||t.proxy.$i18n==null)throw Qr(ce.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const v=i.value=t.proxy.$i18n.__composer;A==="global"?(a.value=v.locale.value,c.value=v.fallbackLocale.value,u.value=v.messages.value,f.value=v.datetimeFormats.value,h.value=v.numberFormats.value):r&&x(v)}),Tt}if(iT(),__INTLIFY_JIT_COMPILATION__?_B(ZS):_B(qS),VS(QS),GS(vB),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const t=Rn();t.__INTLIFY__=!0,xS(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const QT={class:"input input-dropdown"},FT={class:"dropdown"},UT={class:"caption"},bT=["innerHTML"],vT={class:"caption__text"},IT={class:"d-block text-truncate"},ST={class:"dropdown-menu"},TT={class:"form-check"},_T=["value","id","name","label","required","disabled"],xT=["value","id","name","label","required","disabled"],OT=["for"],LT=p.defineComponent({__name:"input-dropdown",props:{id:{type:String},name:{type:String},label:{type:String},error:{type:String},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},modelValue:{type:null},value:{type:String},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},showSelectionCount:{type:Boolean,default:!1},toggleCaption:{type:String},placeholder:{type:String,default:""},icon:{default:"chevron-down",type:String},variant:{type:String,default:""},color:{type:String,default:""},outlined:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:A}){const{t:e}=Qa(),n=t,r=A,i=p.computed({get(){return n.multiple&&!n.modelValue?[]:n.modelValue},set(c){r("update:modelValue",c)}}),s=p.computed(()=>n.options&&n.options.map(c=>(c=typeof c=="string"?{text:c,value:c}:c,{...c,active:n.modelValue&&n.modelValue.includes(c.value)}))),a=p.computed(()=>n.modelValue&&n.modelValue.length?Array.isArray(n.modelValue)&&n.modelValue.length?s.value.reduce((c,u)=>n.modelValue.includes(u.value)?`${c}${c?", ":""}${u.text}`:c,""):s.value.reduce((c,u)=>u.value===n.modelValue?`${c}${u.text}`:c,""):n.placeholder||`${e("common.select")}`);return(c,u)=>{const f=p.resolveComponent("base-button");return p.openBlock(),p.createElementBlock("div",QT,[p.createElementVNode("div",FT,[p.createVNode(f,{"data-bs-toggle":"dropdown",role:"button",type:"button",title:a.value,class:"btn dropdown-toggle",color:t.color,outlined:t.outlined,disabled:t.disabled},{default:p.withCtx(()=>[p.createElementVNode("span",UT,[p.createVNode(p.Transition,{name:"bounce"},{default:p.withCtx(()=>[t.showSelectionCount&&t.modelValue.length?(p.openBlock(),p.createElementBlock("i",{key:0,class:"caption__count",innerHTML:t.modelValue.length},null,8,bT)):p.createCommentVNode("",!0)]),_:1}),p.createElementVNode("span",vT,[p.createElementVNode("span",IT,p.toDisplayString(t.toggleCaption||a.value),1)])])]),_:1},8,["title","color","outlined","disabled"]),p.createElementVNode("ul",ST,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(s.value,(h,g)=>(p.openBlock(),p.createElementBlock("li",{key:`${h.value}-${g}`},[p.createElementVNode("div",{class:p.normalizeClass(["dropdown-item",h.active&&"active"])},[p.createElementVNode("div",TT,[t.multiple?p.withDirectives((p.openBlock(),p.createElementBlock("input",{type:"checkbox","onUpdate:modelValue":u[0]||(u[0]=m=>i.value=m),value:h.value,key:`${t.name}-${h.value}-${g}__if`,id:`${t.name}-${h.value}-${g}`,name:t.name,label:h.text,required:t.required,disabled:h.selectable===!1,class:"form-check-input"},null,8,_T)),[[p.vModelCheckbox,i.value]]):p.withDirectives((p.openBlock(),p.createElementBlock("input",{type:"radio","onUpdate:modelValue":u[1]||(u[1]=m=>i.value=m),value:h.value,key:`${t.name}-${h.value}-${g}__else`,id:`${t.name}-${h.value}-${g}`,name:t.name,label:h.text,required:t.required,disabled:h.selectable===!1,class:"form-check-input visually-hidden"},null,8,xT)),[[p.vModelRadio,i.value]]),p.createElementVNode("label",{class:"form-check-label flex-grow-1",onclick:"event.stopPropagation",for:`${t.name}-${h.value}-${g}`},p.toDisplayString(h.text),9,OT)])],2)]))),128))])])])}}}),TG="";var Xs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Fa={exports:{}};/**
|
|
133
|
+
*/const rT="9.8.0";function iT(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Rn().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Rn().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Rn().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Rn().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Rn().__INTLIFY_PROD_DEVTOOLS__=!1)}const em=at.__EXTEND_POINT__,Er=Eu(em),Vt={FALLBACK_TO_ROOT:em,NOT_SUPPORTED_PRESERVE:Er(),NOT_SUPPORTED_FORMATTER:Er(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:Er(),NOT_SUPPORTED_GET_CHOICE_INDEX:Er(),COMPONENT_NAME_LEGACY_COMPATIBLE:Er(),NOT_FOUND_PARENT_SCOPE:Er(),IGNORE_OBJ_FLATTEN:Er(),NOTICE_DROP_ALLOW_COMPOSITION:Er()},sT={[Vt.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Vt.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[Vt.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[Vt.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[Vt.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[Vt.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[Vt.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[Vt.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[Vt.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see š https://tinyurl.com/2p97mcze"};function Ou(t,...A){return yu(sT[t],...A)}const tm=_e.__EXTEND_POINT__,mt=Eu(tm),ce={UNEXPECTED_RETURN_TYPE:tm,INVALID_ARGUMENT:mt(),MUST_BE_CALL_SETUP_TOP:mt(),NOT_INSTALLED:mt(),NOT_AVAILABLE_IN_LEGACY_MODE:mt(),REQUIRED_VALUE:mt(),INVALID_VALUE:mt(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:mt(),NOT_INSTALLED_WITH_PROVIDE:mt(),UNEXPECTED_ERROR:mt(),NOT_COMPATIBLE_LEGACY_VUE_I18N:mt(),BRIDGE_SUPPORT_VUE_2_ONLY:mt(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:mt(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:mt(),__EXTEND_POINT__:mt()};function Qr(t,...A){return Pi(t,null,process.env.NODE_ENV!=="production"?{messages:oT,args:A}:void 0)}const oT={[ce.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[ce.INVALID_ARGUMENT]:"Invalid argument",[ce.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[ce.NOT_INSTALLED]:"Need to install with `app.use` function",[ce.UNEXPECTED_ERROR]:"Unexpected error",[ce.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[ce.REQUIRED_VALUE]:"Required in value: {0}",[ce.INVALID_VALUE]:"Invalid value",[ce.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[ce.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[ce.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[ce.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[ce.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define āi18nā option or custom block in Composition API with using local scope in Legacy API mode",[ce.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Lu=kn("__translateVNode"),Hu=kn("__datetimeParts"),Mu=kn("__numberParts"),Nu=kn("__enableEmitter"),Du=kn("__disableEmitter"),aT=kn("__setPluralRules"),nm=kn("__injectWithOption"),ku=kn("__dispose");function Js(t){if(!GA(t))return t;for(const A in t)if(Ps(t,A))if(!A.includes("."))GA(t[A])&&Js(t[A]);else{const e=A.split("."),n=e.length-1;let r=t,i=!1;for(let s=0;s<n;s++){if(e[s]in r||(r[e[s]]={}),!GA(r[e[s]])){process.env.NODE_ENV!=="production"&&wr(Ou(Vt.IGNORE_OBJ_FLATTEN,{key:e[s]})),i=!0;break}r=r[e[s]]}i||(r[e[n]]=t[A],delete t[A]),GA(r[e[n]])&&Js(r[e[n]])}return t}function Ru(t,A){const{messages:e,__i18n:n,messageResolver:r,flatJson:i}=A,s=TA(e)?e:ye(n)?{}:{[t]:{}};if(ye(n)&&n.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:c,resource:u}=a;c?(s[c]=s[c]||{},Vs(u,s[c])):Vs(u,s)}else tA(a)&&Vs(JSON.parse(a),s)}),r==null&&i)for(const a in s)Ps(s,a)&&Js(s[a]);return s}function rm(t){return t.type}function lT(t,A,e){let n=GA(A.messages)?A.messages:{};"__i18nGlobal"in e&&(n=Ru(t.locale.value,{messages:n,__i18n:e.__i18nGlobal}));const r=Object.keys(n);r.length&&r.forEach(i=>{t.mergeLocaleMessage(i,n[i])});{if(GA(A.datetimeFormats)){const i=Object.keys(A.datetimeFormats);i.length&&i.forEach(s=>{t.mergeDateTimeFormat(s,A.datetimeFormats[s])})}if(GA(A.numberFormats)){const i=Object.keys(A.numberFormats);i.length&&i.forEach(s=>{t.mergeNumberFormat(s,A.numberFormats[s])})}}}function im(t){return p.createVNode(p.Text,null,t,0)}const sm="__INTLIFY_META__",om=()=>[],cT=()=>!1;let am=0;function lm(t){return(A,e,n,r)=>t(e,n,p.getCurrentInstance()||void 0,r)}const uT=()=>{const t=p.getCurrentInstance();let A=null;return t&&(A=rm(t)[sm])?{[sm]:A}:null};function fT(t={},A){const{__root:e,__injectWithOption:n}=t,r=e===void 0,i=t.flatJson;let s=jA(t.inheritLocale)?t.inheritLocale:!0;const a=p.ref(e&&s?e.locale.value:tA(t.locale)?t.locale:Ws),c=p.ref(e&&s?e.fallbackLocale.value:tA(t.fallbackLocale)||ye(t.fallbackLocale)||TA(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:a.value),u=p.ref(Ru(a.value,t)),f=p.ref(TA(t.datetimeFormats)?t.datetimeFormats:{[a.value]:{}}),h=p.ref(TA(t.numberFormats)?t.numberFormats:{[a.value]:{}});let g=e?e.missingWarn:jA(t.missingWarn)||Ki(t.missingWarn)?t.missingWarn:!0,m=e?e.fallbackWarn:jA(t.fallbackWarn)||Ki(t.fallbackWarn)?t.fallbackWarn:!0,w=e?e.fallbackRoot:jA(t.fallbackRoot)?t.fallbackRoot:!0,U=!!t.fallbackFormat,b=re(t.missing)?t.missing:null,E=re(t.missing)?lm(t.missing):null,I=re(t.postTranslation)?t.postTranslation:null,M=e?e.warnHtmlMessage:jA(t.warnHtmlMessage)?t.warnHtmlMessage:!0,Q=!!t.escapeParameter;const N=e?e.modifiers:TA(t.modifiers)?t.modifiers:{};let T=t.pluralRules||e&&e.pluralRules,H;H=(()=>{r&&MB(null);const K={version:rT,locale:a.value,fallbackLocale:c.value,messages:u.value,modifiers:N,pluralRules:T,missing:E===null?void 0:E,missingWarn:g,fallbackWarn:m,fallbackFormat:U,unresolving:!0,postTranslation:I===null?void 0:I,warnHtmlMessage:M,escapeParameter:Q,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:"vue"}};K.datetimeFormats=f.value,K.numberFormats=h.value,K.__datetimeFormatters=TA(H)?H.__datetimeFormatters:void 0,K.__numberFormatters=TA(H)?H.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(K.__v_emitter=TA(H)?H.__v_emitter:void 0);const X=XS(K);return r&&MB(X),X})(),$s(H,a.value,c.value);function V(){return[a.value,c.value,u.value,f.value,h.value]}const sA=p.computed({get:()=>a.value,set:K=>{a.value=K,H.locale=a.value}}),yA=p.computed({get:()=>c.value,set:K=>{c.value=K,H.fallbackLocale=c.value,$s(H,a.value,K)}}),dA=p.computed(()=>u.value),lA=p.computed(()=>f.value),xA=p.computed(()=>h.value);function te(){return re(I)?I:null}function kA(K){I=K,H.postTranslation=K}function OA(){return b}function nA(K){K!==null&&(E=lm(K)),b=K,H.missing=E}function hA(K,X){return K!=="translate"||!X.resolvedMessage}const LA=(K,X,bA,JA,_t,Tn)=>{V();let Xt;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(H.fallbackContext=e?JS():void 0),Xt=K(H)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(H.fallbackContext=void 0)}if(bA!=="translate exists"&&ze(Xt)&&Xt===Ca||bA==="translate exists"&&!Xt){const[xt,fi]=X();if(process.env.NODE_ENV!=="production"&&e&&tA(xt)&&hA(bA,fi)&&(w&&(Ea(m,xt)||DB(g,xt))&&wr(Ou(Vt.FALLBACK_TO_ROOT,{key:xt,type:bA})),process.env.NODE_ENV!=="production")){const{__v_emitter:R}=H;R&&w&&R.emit("fallback",{type:bA,key:xt,to:"global",groupId:`${bA}:${xt}`})}return e&&w?JA(e):_t(xt)}else{if(Tn(Xt))return Xt;throw Qr(ce.UNEXPECTED_RETURN_TYPE)}};function RA(...K){return LA(X=>Reflect.apply(GB,null,[X,...K]),()=>Tu(...K),"translate",X=>Reflect.apply(X.t,X,[...K]),X=>X,X=>tA(X))}function ie(...K){const[X,bA,JA]=K;if(JA&&!GA(JA))throw Qr(ce.INVALID_ARGUMENT);return RA(X,bA,qe({resolvedMessage:!0},JA||{}))}function KA(...K){return LA(X=>Reflect.apply(YB,null,[X,...K]),()=>_u(...K),"datetime format",X=>Reflect.apply(X.d,X,[...K]),()=>ya,X=>tA(X))}function YA(...K){return LA(X=>Reflect.apply(ZB,null,[X,...K]),()=>xu(...K),"number format",X=>Reflect.apply(X.n,X,[...K]),()=>ya,X=>tA(X))}function VA(K){return K.map(X=>tA(X)||ze(X)||jA(X)?im(String(X)):X)}const Oe={normalize:VA,interpolate:K=>K,type:"vnode"};function ct(...K){return LA(X=>{let bA;const JA=X;try{JA.processor=Oe,bA=Reflect.apply(GB,null,[JA,...K])}finally{JA.processor=null}return bA},()=>Tu(...K),"translate",X=>X[Lu](...K),X=>[im(X)],X=>ye(X))}function At(...K){return LA(X=>Reflect.apply(ZB,null,[X,...K]),()=>xu(...K),"number format",X=>X[Mu](...K),om,X=>tA(X)||ye(X))}function Re(...K){return LA(X=>Reflect.apply(YB,null,[X,...K]),()=>_u(...K),"datetime format",X=>X[Hu](...K),om,X=>tA(X)||ye(X))}function ut(K){T=K,H.pluralRules=T}function Tt(K,X){return LA(()=>{if(!K)return!1;const bA=tA(X)?X:a.value,JA=k(bA),_t=H.messageResolver(JA,K);return si(_t)||Pt(_t)||tA(_t)},()=>[K],"translate exists",bA=>Reflect.apply(bA.te,bA,[K,X]),cT,bA=>jA(bA))}function x(K){let X=null;const bA=vB(H,c.value,a.value);for(let JA=0;JA<bA.length;JA++){const _t=u.value[bA[JA]]||{},Tn=H.messageResolver(_t,K);if(Tn!=null){X=Tn;break}}return X}function v(K){const X=x(K);return X??(e?e.tm(K)||{}:{})}function k(K){return u.value[K]||{}}function q(K,X){if(i){const bA={[K]:X};for(const JA in bA)Ps(bA,JA)&&Js(bA[JA]);X=bA[K]}u.value[K]=X,H.messages=u.value}function aA(K,X){u.value[K]=u.value[K]||{};const bA={[K]:X};for(const JA in bA)Ps(bA,JA)&&Js(bA[JA]);X=bA[K],Vs(X,u.value[K]),H.messages=u.value}function IA(K){return f.value[K]||{}}function ft(K,X){f.value[K]=X,H.datetimeFormats=f.value,qB(H,K,X)}function Ke(K,X){f.value[K]=qe(f.value[K]||{},X),H.datetimeFormats=f.value,qB(H,K,X)}function Pe(K){return h.value[K]||{}}function Sn(K,X){h.value[K]=X,H.numberFormats=h.value,Am(H,K,X)}function un(K,X){h.value[K]=qe(h.value[K]||{},X),H.numberFormats=h.value,Am(H,K,X)}am++,e&&mr&&(p.watch(e.locale,K=>{s&&(a.value=K,H.locale=K,$s(H,a.value,c.value))}),p.watch(e.fallbackLocale,K=>{s&&(c.value=K,H.fallbackLocale=K,$s(H,a.value,c.value))}));const ae={id:am,locale:sA,fallbackLocale:yA,get inheritLocale(){return s},set inheritLocale(K){s=K,K&&e&&(a.value=e.locale.value,c.value=e.fallbackLocale.value,$s(H,a.value,c.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:dA,get modifiers(){return N},get pluralRules(){return T||{}},get isGlobal(){return r},get missingWarn(){return g},set missingWarn(K){g=K,H.missingWarn=g},get fallbackWarn(){return m},set fallbackWarn(K){m=K,H.fallbackWarn=m},get fallbackRoot(){return w},set fallbackRoot(K){w=K},get fallbackFormat(){return U},set fallbackFormat(K){U=K,H.fallbackFormat=U},get warnHtmlMessage(){return M},set warnHtmlMessage(K){M=K,H.warnHtmlMessage=K},get escapeParameter(){return Q},set escapeParameter(K){Q=K,H.escapeParameter=K},t:RA,getLocaleMessage:k,setLocaleMessage:q,mergeLocaleMessage:aA,getPostTranslationHandler:te,setPostTranslationHandler:kA,getMissingHandler:OA,setMissingHandler:nA,[aT]:ut};return ae.datetimeFormats=lA,ae.numberFormats=xA,ae.rt=ie,ae.te=Tt,ae.tm=v,ae.d=KA,ae.n=YA,ae.getDateTimeFormat=IA,ae.setDateTimeFormat=ft,ae.mergeDateTimeFormat=Ke,ae.getNumberFormat=Pe,ae.setNumberFormat=Sn,ae.mergeNumberFormat=un,ae[nm]=n,ae[Lu]=ct,ae[Hu]=Re,ae[Mu]=At,process.env.NODE_ENV!=="production"&&(ae[Nu]=K=>{H.__v_emitter=K},ae[Du]=()=>{H.__v_emitter=void 0}),ae}const Ku={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function dT({slots:t},A){return A.length===1&&A[0]==="default"?(t.default?t.default():[]).reduce((n,r)=>[...n,...r.type===p.Fragment?r.children:[r]],[]):A.reduce((e,n)=>{const r=t[n];return r&&(e[n]=r()),e},{})}function cm(t){return p.Fragment}qe({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>ze(t)||!isNaN(t)}},Ku);function hT(t){return ye(t)&&!tA(t[0])}function um(t,A,e,n){const{slots:r,attrs:i}=A;return()=>{const s={part:!0};let a={};t.locale&&(s.locale=t.locale),tA(t.format)?s.key=t.format:GA(t.format)&&(tA(t.format.key)&&(s.key=t.format.key),a=Object.keys(t.format).reduce((g,m)=>e.includes(m)?qe({},g,{[m]:t.format[m]}):g,{}));const c=n(t.value,s,a);let u=[s.key];ye(c)?u=c.map((g,m)=>{const w=r[g.type],U=w?w({[g.type]:g.value,index:m,parts:c}):[g.value];return hT(U)&&(U[0].key=`${g.type}-${m}`),U}):tA(c)&&(u=[c]);const f=qe({},i),h=tA(t.tag)||GA(t.tag)?t.tag:cm();return p.h(h,f,u)}}qe({value:{type:Number,required:!0},format:{type:[String,Object]}},Ku),qe({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Ku);function fm(t,A){}const pT=kn("global-vue-i18n");function Qa(t={}){const A=p.getCurrentInstance();if(A==null)throw Qr(ce.MUST_BE_CALL_SETUP_TOP);if(!A.isCE&&A.appContext.app!=null&&!A.appContext.app.__VUE_I18N_SYMBOL__)throw Qr(ce.NOT_INSTALLED);const e=gT(A),n=mT(e),r=rm(A),i=BT(t,r);if(__VUE_I18N_LEGACY_API__&&e.mode==="legacy"&&!t.__useComponent){if(!e.allowComposition)throw Qr(ce.NOT_AVAILABLE_IN_LEGACY_MODE);return ET(A,i,n,t)}if(i==="global")return lT(n,t,r),n;if(i==="parent"){let c=wT(e,A,t.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&wr(Ou(Vt.NOT_FOUND_PARENT_SCOPE)),c=n),c}const s=e;let a=s.__getInstance(A);if(a==null){const c=qe({},t);"__i18n"in r&&(c.__i18n=r.__i18n),n&&(c.__root=n),a=fT(c),s.__composerExtend&&(a[ku]=s.__composerExtend(a)),yT(s,A,a),s.__setInstance(A,a)}return a}function gT(t){{const A=p.inject(t.isCE?pT:t.appContext.app.__VUE_I18N_SYMBOL__);if(!A)throw Qr(t.isCE?ce.NOT_INSTALLED_WITH_PROVIDE:ce.UNEXPECTED_ERROR);return A}}function BT(t,A){return ma(t)?"__i18n"in A?"local":"global":t.useScope?t.useScope:"local"}function mT(t){return t.mode==="composition"?t.global:t.global.__composer}function wT(t,A,e=!1){let n=null;const r=A.root;let i=CT(A,e);for(;i!=null;){const s=t;if(t.mode==="composition")n=s.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const a=s.__getInstance(i);a!=null&&(n=a.__composer,e&&n&&!n[nm]&&(n=null))}if(n!=null||r===i)break;i=i.parent}return n}function CT(t,A=!1){return t==null?null:A&&t.vnode.ctx||t.parent}function yT(t,A,e){let n=null;p.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&A.vnode.el){A.vnode.el.__VUE_I18N__=e,n=N1();const r=e;r[Nu]&&r[Nu](n),n.on("*",fm)}},A),p.onUnmounted(()=>{const r=e;process.env.NODE_ENV!=="production"&&A.vnode.el&&A.vnode.el.__VUE_I18N__&&(n&&n.off("*",fm),r[Du]&&r[Du](),delete A.vnode.el.__VUE_I18N__),t.__deleteInstance(A);const i=r[ku];i&&(i(),delete r[ku])},A)}function ET(t,A,e,n={}){const r=A==="local",i=p.shallowRef(null);if(r&&t.proxy&&!(t.proxy.$options.i18n||t.proxy.$options.__i18n))throw Qr(ce.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const s=jA(n.inheritLocale)?n.inheritLocale:!tA(n.locale),a=p.ref(!r||s?e.locale.value:tA(n.locale)?n.locale:Ws),c=p.ref(!r||s?e.fallbackLocale.value:tA(n.fallbackLocale)||ye(n.fallbackLocale)||TA(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:a.value),u=p.ref(Ru(a.value,n)),f=p.ref(TA(n.datetimeFormats)?n.datetimeFormats:{[a.value]:{}}),h=p.ref(TA(n.numberFormats)?n.numberFormats:{[a.value]:{}}),g=r?e.missingWarn:jA(n.missingWarn)||Ki(n.missingWarn)?n.missingWarn:!0,m=r?e.fallbackWarn:jA(n.fallbackWarn)||Ki(n.fallbackWarn)?n.fallbackWarn:!0,w=r?e.fallbackRoot:jA(n.fallbackRoot)?n.fallbackRoot:!0,U=!!n.fallbackFormat,b=re(n.missing)?n.missing:null,E=re(n.postTranslation)?n.postTranslation:null,I=r?e.warnHtmlMessage:jA(n.warnHtmlMessage)?n.warnHtmlMessage:!0,M=!!n.escapeParameter,Q=r?e.modifiers:TA(n.modifiers)?n.modifiers:{},N=n.pluralRules||r&&e.pluralRules;function T(){return[a.value,c.value,u.value,f.value,h.value]}const H=p.computed({get:()=>i.value?i.value.locale.value:a.value,set:v=>{i.value&&(i.value.locale.value=v),a.value=v}}),Y=p.computed({get:()=>i.value?i.value.fallbackLocale.value:c.value,set:v=>{i.value&&(i.value.fallbackLocale.value=v),c.value=v}}),V=p.computed(()=>i.value?i.value.messages.value:u.value),sA=p.computed(()=>f.value),yA=p.computed(()=>h.value);function dA(){return i.value?i.value.getPostTranslationHandler():E}function lA(v){i.value&&i.value.setPostTranslationHandler(v)}function xA(){return i.value?i.value.getMissingHandler():b}function te(v){i.value&&i.value.setMissingHandler(v)}function kA(v){return T(),v()}function OA(...v){return i.value?kA(()=>Reflect.apply(i.value.t,null,[...v])):kA(()=>"")}function nA(...v){return i.value?Reflect.apply(i.value.rt,null,[...v]):""}function hA(...v){return i.value?kA(()=>Reflect.apply(i.value.d,null,[...v])):kA(()=>"")}function LA(...v){return i.value?kA(()=>Reflect.apply(i.value.n,null,[...v])):kA(()=>"")}function RA(v){return i.value?i.value.tm(v):{}}function ie(v,k){return i.value?i.value.te(v,k):!1}function KA(v){return i.value?i.value.getLocaleMessage(v):{}}function YA(v,k){i.value&&(i.value.setLocaleMessage(v,k),u.value[v]=k)}function VA(v,k){i.value&&i.value.mergeLocaleMessage(v,k)}function ue(v){return i.value?i.value.getDateTimeFormat(v):{}}function Oe(v,k){i.value&&(i.value.setDateTimeFormat(v,k),f.value[v]=k)}function ct(v,k){i.value&&i.value.mergeDateTimeFormat(v,k)}function At(v){return i.value?i.value.getNumberFormat(v):{}}function Re(v,k){i.value&&(i.value.setNumberFormat(v,k),h.value[v]=k)}function ut(v,k){i.value&&i.value.mergeNumberFormat(v,k)}const Tt={get id(){return i.value?i.value.id:-1},locale:H,fallbackLocale:Y,messages:V,datetimeFormats:sA,numberFormats:yA,get inheritLocale(){return i.value?i.value.inheritLocale:s},set inheritLocale(v){i.value&&(i.value.inheritLocale=v)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(u.value)},get modifiers(){return i.value?i.value.modifiers:Q},get pluralRules(){return i.value?i.value.pluralRules:N},get isGlobal(){return i.value?i.value.isGlobal:!1},get missingWarn(){return i.value?i.value.missingWarn:g},set missingWarn(v){i.value&&(i.value.missingWarn=v)},get fallbackWarn(){return i.value?i.value.fallbackWarn:m},set fallbackWarn(v){i.value&&(i.value.missingWarn=v)},get fallbackRoot(){return i.value?i.value.fallbackRoot:w},set fallbackRoot(v){i.value&&(i.value.fallbackRoot=v)},get fallbackFormat(){return i.value?i.value.fallbackFormat:U},set fallbackFormat(v){i.value&&(i.value.fallbackFormat=v)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:I},set warnHtmlMessage(v){i.value&&(i.value.warnHtmlMessage=v)},get escapeParameter(){return i.value?i.value.escapeParameter:M},set escapeParameter(v){i.value&&(i.value.escapeParameter=v)},t:OA,getPostTranslationHandler:dA,setPostTranslationHandler:lA,getMissingHandler:xA,setMissingHandler:te,rt:nA,d:hA,n:LA,tm:RA,te:ie,getLocaleMessage:KA,setLocaleMessage:YA,mergeLocaleMessage:VA,getDateTimeFormat:ue,setDateTimeFormat:Oe,mergeDateTimeFormat:ct,getNumberFormat:At,setNumberFormat:Re,mergeNumberFormat:ut};function x(v){v.locale.value=a.value,v.fallbackLocale.value=c.value,Object.keys(u.value).forEach(k=>{v.mergeLocaleMessage(k,u.value[k])}),Object.keys(f.value).forEach(k=>{v.mergeDateTimeFormat(k,f.value[k])}),Object.keys(h.value).forEach(k=>{v.mergeNumberFormat(k,h.value[k])}),v.escapeParameter=M,v.fallbackFormat=U,v.fallbackRoot=w,v.fallbackWarn=m,v.missingWarn=g,v.warnHtmlMessage=I}return p.onBeforeMount(()=>{if(t.proxy==null||t.proxy.$i18n==null)throw Qr(ce.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const v=i.value=t.proxy.$i18n.__composer;A==="global"?(a.value=v.locale.value,c.value=v.fallbackLocale.value,u.value=v.messages.value,f.value=v.datetimeFormats.value,h.value=v.numberFormats.value):r&&x(v)}),Tt}if(iT(),__INTLIFY_JIT_COMPILATION__?_B(ZS):_B(qS),VS(QS),GS(vB),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const t=Rn();t.__INTLIFY__=!0,xS(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const QT={class:"input input-dropdown"},FT={class:"dropdown"},UT={class:"caption"},bT=["innerHTML"],vT={class:"caption__text"},IT={class:"d-block text-truncate"},ST={class:"dropdown-menu"},TT={class:"form-check"},_T=["value","id","name","label","required","disabled"],xT=["value","id","name","label","required","disabled"],OT=["for"],LT=p.defineComponent({__name:"input-dropdown",props:{id:{type:String},name:{type:String},label:{type:String},error:{type:String},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},modelValue:{type:null},value:{type:String},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},showSelectionCount:{type:Boolean,default:!1},toggleCaption:{type:String},placeholder:{type:String,default:""},icon:{default:"chevron-down",type:String},variant:{type:String,default:""},color:{type:String,default:""},outlined:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:A}){const{t:e}=Qa(),n=t,r=A,i=p.computed({get(){return n.multiple&&!n.modelValue?[]:n.modelValue},set(c){r("update:modelValue",c)}}),s=p.computed(()=>n.options&&n.options.map(c=>(c=typeof c=="string"?{text:c,value:c}:c,{...c,active:n.modelValue&&c.value&&n.modelValue.includes(c.value)}))),a=p.computed(()=>n.modelValue&&n.modelValue.length?Array.isArray(n.modelValue)&&n.modelValue.length?s.value.reduce((c,u)=>n.modelValue.includes(u.value)?`${c}${c?", ":""}${u.text}`:c,""):s.value.reduce((c,u)=>u.value===n.modelValue?`${c}${u.text}`:c,""):n.placeholder||`${e("common.select")}`);return(c,u)=>{const f=p.resolveComponent("base-button");return p.openBlock(),p.createElementBlock("div",QT,[p.createElementVNode("div",FT,[p.createVNode(f,{"data-bs-toggle":"dropdown",role:"button",type:"button",title:a.value,class:"btn dropdown-toggle",color:t.color,outlined:t.outlined,disabled:t.disabled},{default:p.withCtx(()=>[p.createElementVNode("span",UT,[p.createVNode(p.Transition,{name:"bounce"},{default:p.withCtx(()=>[t.showSelectionCount&&t.modelValue.length?(p.openBlock(),p.createElementBlock("i",{key:0,class:"caption__count",innerHTML:t.modelValue.length},null,8,bT)):p.createCommentVNode("",!0)]),_:1}),p.createElementVNode("span",vT,[p.createElementVNode("span",IT,p.toDisplayString(t.toggleCaption||a.value),1)])])]),_:1},8,["title","color","outlined","disabled"]),p.createElementVNode("ul",ST,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(s.value,(h,g)=>(p.openBlock(),p.createElementBlock("li",{key:`${h.value}-${g}`},[p.createElementVNode("div",{class:p.normalizeClass(["dropdown-item",h.active&&"active"])},[p.createElementVNode("div",TT,[t.multiple?p.withDirectives((p.openBlock(),p.createElementBlock("input",{type:"checkbox","onUpdate:modelValue":u[0]||(u[0]=m=>i.value=m),value:h.value,key:`${t.name}-${h.value}-${g}__if`,id:`${t.name}-${h.value}-${g}`,name:t.name,label:h.text,required:t.required,disabled:h.selectable===!1,class:"form-check-input"},null,8,_T)),[[p.vModelCheckbox,i.value]]):p.withDirectives((p.openBlock(),p.createElementBlock("input",{type:"radio","onUpdate:modelValue":u[1]||(u[1]=m=>i.value=m),value:h.value,key:`${t.name}-${h.value}-${g}__else`,id:`${t.name}-${h.value}-${g}`,name:t.name,label:h.text,required:t.required,disabled:h.selectable===!1,class:"form-check-input visually-hidden"},null,8,xT)),[[p.vModelRadio,i.value]]),p.createElementVNode("label",{class:"form-check-label flex-grow-1",onclick:"event.stopPropagation",for:`${t.name}-${h.value}-${g}`},p.toDisplayString(h.text),9,OT)])],2)]))),128))])])])}}}),TG="";var Xs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Fa={exports:{}};/**
|
|
134
134
|
* @license
|
|
135
135
|
* Lodash <https://lodash.com/>
|
|
136
136
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|