ablok-components 0.1.48 → 0.1.49

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.
@@ -17819,7 +17819,7 @@ const HD = { class: "input input-dropdown" }, _D = { class: "dropdown" }, LD = {
17819
17819
  active: e.modelValue && e.modelValue.includes(a.value)
17820
17820
  }))
17821
17821
  ), s = VA(
17822
- () => e.modelValue && e.modelValue.length ? Array.isArray(e.modelValue) && e.modelValue.length ? i.value.reduce((a, u) => e.modelValue.includes(u.value) ? `${a}${a ? ", " : ""}${u.text}` : a, "") : i.value.reduce((a, u) => u.value === e.modelValue ? `${a}${u.text}` : a, "") : e.placeholder || `<span class="text-muted">${n("common.select")}</span>`
17822
+ () => e.modelValue && e.modelValue.length ? Array.isArray(e.modelValue) && e.modelValue.length ? i.value.reduce((a, u) => e.modelValue.includes(u.value) ? `${a}${a ? ", " : ""}${u.text}` : a, "") : i.value.reduce((a, u) => u.value === e.modelValue ? `${a}${u.text}` : a, "") : e.placeholder || `${n("common.select")}`
17823
17823
  );
17824
17824
  return (a, u) => {
17825
17825
  const c = cn("base-button");
@@ -134,7 +134,7 @@ ${c}`:a)}else throw s},onCacheKey:s=>PI(A,e,s)}}function iS(t,A,e,n){const{modif
134
134
  * vue-i18n v9.2.2
135
135
  * (c) 2022 kazuya kawaguchi
136
136
  * Released under the MIT License.
137
- */const sS="9.2.2";function oS(){let t=!1;typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(t=!0,Hs().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(t=!0,Hs().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Hs().__INTLIFY_PROD_DEVTOOLS__=!1),process.env.NODE_ENV!=="production"&&t&&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 IB=bt.__EXTEND_POINT__;const Mi=()=>++IB,On={FALLBACK_TO_ROOT:IB,NOT_SUPPORTED_PRESERVE:Mi(),NOT_SUPPORTED_FORMATTER:Mi(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:Mi(),NOT_SUPPORTED_GET_CHOICE_INDEX:Mi(),COMPONENT_NAME_LEGACY_COMPATIBLE:Mi(),NOT_FOUND_PARENT_SCOPE:Mi()},aS={[On.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[On.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[On.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[On.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[On.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[On.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[On.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope."};function SB(t,...A){return oa(aS[t],...A)}let TB=hA.__EXTEND_POINT__;const pt=()=>++TB,ee={UNEXPECTED_RETURN_TYPE:TB,INVALID_ARGUMENT:pt(),MUST_BE_CALL_SETUP_TOP:pt(),NOT_INSLALLED:pt(),NOT_AVAILABLE_IN_LEGACY_MODE:pt(),REQUIRED_VALUE:pt(),INVALID_VALUE:pt(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:pt(),NOT_INSLALLED_WITH_PROVIDE:pt(),UNEXPECTED_ERROR:pt(),NOT_COMPATIBLE_LEGACY_VUE_I18N:pt(),BRIDGE_SUPPORT_VUE_2_ONLY:pt(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:pt(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:pt(),__EXTEND_POINT__:pt()};function Dn(t,...A){return la(t,null,process.env.NODE_ENV!=="production"?{messages:lS,args:A}:void 0)}const lS={[ee.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[ee.INVALID_ARGUMENT]:"Invalid argument",[ee.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[ee.NOT_INSLALLED]:"Need to install with `app.use` function",[ee.UNEXPECTED_ERROR]:"Unexpected error",[ee.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[ee.REQUIRED_VALUE]:"Required in value: {0}",[ee.INVALID_VALUE]:"Invalid value",[ee.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[ee.NOT_INSLALLED_WITH_PROVIDE]:"Need to install with `provide` function",[ee.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[ee.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[ee.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",[ee.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Qu=Hn("__transrateVNode"),Eu=Hn("__datetimeParts"),Fu=Hn("__numberParts"),Uu=Hn("__enableEmitter"),bu=Hn("__disableEmitter"),cS=Hn("__setPluralRules");Hn("__intlifyMeta");const xB=Hn("__injectWithOption");function vu(t){if(!JA(t))return t;for(const A in t)if(du(t,A))if(!A.includes("."))JA(t[A])&&vu(t[A]);else{const e=A.split("."),n=e.length-1;let r=t;for(let i=0;i<n;i++)e[i]in r||(r[e[i]]={}),r=r[e[i]];r[e[n]]=t[A],delete t[A],JA(r[e[n]])&&vu(r[e[n]])}return t}function Iu(t,A){const{messages:e,__i18n:n,messageResolver:r,flatJson:i}=A,s=TA(e)?e:le(n)?{}:{[t]:{}};if(le(n)&&n.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:c,resource:u}=a;c?(s[c]=s[c]||{},Os(u,s[c])):Os(u,s)}else nA(a)&&Os(JSON.parse(a),s)}),r==null&&i)for(const a in s)du(s,a)&&vu(s[a]);return s}const ha=t=>!JA(t)||le(t);function Os(t,A){if(ha(t)||ha(A))throw Dn(ee.INVALID_VALUE);for(const e in t)du(t,e)&&(ha(t[e])||ha(A[e])?A[e]=t[e]:Os(t[e],A[e]))}function HB(t){return t.type}function uS(t,A,e){let n=JA(A.messages)?A.messages:{};"__i18nGlobal"in e&&(n=Iu(t.locale.value,{messages:n,__i18n:e.__i18nGlobal}));const r=Object.keys(n);r.length&&r.forEach(i=>{t.mergeLocaleMessage(i,n[i])});{if(JA(A.datetimeFormats)){const i=Object.keys(A.datetimeFormats);i.length&&i.forEach(s=>{t.mergeDateTimeFormat(s,A.datetimeFormats[s])})}if(JA(A.numberFormats)){const i=Object.keys(A.numberFormats);i.length&&i.forEach(s=>{t.mergeNumberFormat(s,A.numberFormats[s])})}}}function LB(t){return h.createVNode(h.Text,null,t,0)}const _B="__INTLIFY_META__";let OB=0;function DB(t){return(A,e,n,r)=>t(e,n,h.getCurrentInstance()||void 0,r)}const fS=()=>{const t=h.getCurrentInstance();let A=null;return t&&(A=HB(t)[_B])?{[_B]:A}:null};function dS(t={},A){const{__root:e}=t,n=e===void 0;let r=qA(t.inheritLocale)?t.inheritLocale:!0;const i=h.ref(e&&r?e.locale.value:nA(t.locale)?t.locale:ua),s=h.ref(e&&r?e.fallbackLocale.value:nA(t.fallbackLocale)||le(t.fallbackLocale)||TA(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:i.value),a=h.ref(Iu(i.value,t)),c=h.ref(TA(t.datetimeFormats)?t.datetimeFormats:{[i.value]:{}}),u=h.ref(TA(t.numberFormats)?t.numberFormats:{[i.value]:{}});let d=e?e.missingWarn:qA(t.missingWarn)||Li(t.missingWarn)?t.missingWarn:!0,p=e?e.fallbackWarn:qA(t.fallbackWarn)||Li(t.fallbackWarn)?t.fallbackWarn:!0,B=e?e.fallbackRoot:qA(t.fallbackRoot)?t.fallbackRoot:!0,m=!!t.fallbackFormat,C=Qe(t.missing)?t.missing:null,E=Qe(t.missing)?DB(t.missing):null,S=Qe(t.postTranslation)?t.postTranslation:null,U=e?e.warnHtmlMessage:qA(t.warnHtmlMessage)?t.warnHtmlMessage:!0,v=!!t.escapeParameter;const D=e?e.modifiers:TA(t.modifiers)?t.modifiers:{};let F=t.pluralRules||e&&e.pluralRules,T;T=(()=>{n&&uB(null);const V={version:sS,locale:i.value,fallbackLocale:s.value,messages:a.value,modifiers:D,pluralRules:F,missing:E===null?void 0:E,missingWarn:d,fallbackWarn:p,fallbackFormat:m,unresolving:!0,postTranslation:S===null?void 0:S,warnHtmlMessage:U,escapeParameter:v,messageResolver:t.messageResolver,__meta:{framework:"vue"}};V.datetimeFormats=c.value,V.numberFormats=u.value,V.__datetimeFormatters=TA(T)?T.__datetimeFormatters:void 0,V.__numberFormatters=TA(T)?T.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(V.__v_emitter=TA(T)?T.__v_emitter:void 0);const Y=Y1(V);return n&&uB(Y),Y})(),_s(T,i.value,s.value);function N(){return[i.value,s.value,a.value,c.value,u.value]}const W=h.computed({get:()=>i.value,set:V=>{i.value=V,T.locale=i.value}}),$=h.computed({get:()=>s.value,set:V=>{s.value=V,T.fallbackLocale=s.value,_s(T,i.value,V)}}),eA=h.computed(()=>a.value),gA=h.computed(()=>c.value),wA=h.computed(()=>u.value);function aA(){return Qe(S)?S:null}function HA(V){S=V,T.postTranslation=V}function WA(){return C}function bA(V){V!==null&&(E=DB(V)),C=V,T.missing=E}function vA(V,Y){return V!=="translate"||!Y.resolvedMessage}const mA=(V,Y,oe,Fe,an,St)=>{N();let Gt;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)try{lB(fS()),n||(T.fallbackContext=e?X1():void 0),Gt=V(T)}finally{lB(null),n||(T.fallbackContext=void 0)}else Gt=V(T);if(Je(Gt)&&Gt===ca){const[Tt,ni]=Y();if(process.env.NODE_ENV!=="production"&&e&&nA(Tt)&&vA(oe,ni)&&(B&&(da(p,Tt)||dB(d,Tt))&&xs(SB(On.FALLBACK_TO_ROOT,{key:Tt,type:oe})),process.env.NODE_ENV!=="production")){const{__v_emitter:Ur}=T;Ur&&B&&Ur.emit("fallback",{type:oe,key:Tt,to:"global",groupId:`${oe}:${Tt}`})}return e&&B?Fe(e):an(Tt)}else{if(St(Gt))return Gt;throw Dn(ee.UNEXPECTED_RETURN_TYPE)}};function re(...V){return mA(Y=>Reflect.apply(BB,null,[Y,...V]),()=>wu(...V),"translate",Y=>Reflect.apply(Y.t,Y,[...V]),Y=>Y,Y=>nA(Y))}function ZA(...V){const[Y,oe,Fe]=V;if(Fe&&!JA(Fe))throw Dn(ee.INVALID_ARGUMENT);return re(Y,oe,Oe({resolvedMessage:!0},Fe||{}))}function $A(...V){return mA(Y=>Reflect.apply(QB,null,[Y,...V]),()=>Cu(...V),"datetime format",Y=>Reflect.apply(Y.d,Y,[...V]),()=>fa,Y=>nA(Y))}function Be(...V){return mA(Y=>Reflect.apply(UB,null,[Y,...V]),()=>yu(...V),"number format",Y=>Reflect.apply(Y.n,Y,[...V]),()=>fa,Y=>nA(Y))}function me(V){return V.map(Y=>nA(Y)||Je(Y)||qA(Y)?LB(String(Y)):Y)}const jA={normalize:me,interpolate:V=>V,type:"vnode"};function fe(...V){return mA(Y=>{let oe;const Fe=Y;try{Fe.processor=jA,oe=Reflect.apply(BB,null,[Fe,...V])}finally{Fe.processor=null}return oe},()=>wu(...V),"translate",Y=>Y[Qu](...V),Y=>[LB(Y)],Y=>le(Y))}function it(...V){return mA(Y=>Reflect.apply(UB,null,[Y,...V]),()=>yu(...V),"number format",Y=>Y[Fu](...V),()=>[],Y=>nA(Y)||le(Y))}function st(...V){return mA(Y=>Reflect.apply(QB,null,[Y,...V]),()=>Cu(...V),"datetime format",Y=>Y[Eu](...V),()=>[],Y=>nA(Y)||le(Y))}function ze(V){F=V,T.pluralRules=F}function ke(V,Y){const oe=nA(Y)?Y:i.value,Fe=H(oe);return T.messageResolver(Fe,V)!==null}function ot(V){let Y=null;const oe=tB(T,s.value,i.value);for(let Fe=0;Fe<oe.length;Fe++){const an=a.value[oe[Fe]]||{},St=T.messageResolver(an,V);if(St!=null){Y=St;break}}return Y}function It(V){const Y=ot(V);return Y??(e?e.tm(V)||{}:{})}function H(V){return a.value[V]||{}}function b(V,Y){a.value[V]=Y,T.messages=a.value}function k(V,Y){a.value[V]=a.value[V]||{},Os(Y,a.value[V]),T.messages=a.value}function q(V){return c.value[V]||{}}function oA(V,Y){c.value[V]=Y,T.datetimeFormats=c.value,FB(T,V,Y)}function IA(V,Y){c.value[V]=Oe(c.value[V]||{},Y),T.datetimeFormats=c.value,FB(T,V,Y)}function at(V){return u.value[V]||{}}function Ne(V,Y){u.value[V]=Y,T.numberFormats=u.value,vB(T,V,Y)}function Re(V,Y){u.value[V]=Oe(u.value[V]||{},Y),T.numberFormats=u.value,vB(T,V,Y)}OB++,e&&dr&&(h.watch(e.locale,V=>{r&&(i.value=V,T.locale=V,_s(T,i.value,s.value))}),h.watch(e.fallbackLocale,V=>{r&&(s.value=V,T.fallbackLocale=V,_s(T,i.value,s.value))}));const KA={id:OB,locale:W,fallbackLocale:$,get inheritLocale(){return r},set inheritLocale(V){r=V,V&&e&&(i.value=e.locale.value,s.value=e.fallbackLocale.value,_s(T,i.value,s.value))},get availableLocales(){return Object.keys(a.value).sort()},messages:eA,get modifiers(){return D},get pluralRules(){return F||{}},get isGlobal(){return n},get missingWarn(){return d},set missingWarn(V){d=V,T.missingWarn=d},get fallbackWarn(){return p},set fallbackWarn(V){p=V,T.fallbackWarn=p},get fallbackRoot(){return B},set fallbackRoot(V){B=V},get fallbackFormat(){return m},set fallbackFormat(V){m=V,T.fallbackFormat=m},get warnHtmlMessage(){return U},set warnHtmlMessage(V){U=V,T.warnHtmlMessage=V},get escapeParameter(){return v},set escapeParameter(V){v=V,T.escapeParameter=V},t:re,getLocaleMessage:H,setLocaleMessage:b,mergeLocaleMessage:k,getPostTranslationHandler:aA,setPostTranslationHandler:HA,getMissingHandler:WA,setMissingHandler:bA,[cS]:ze};return KA.datetimeFormats=gA,KA.numberFormats=wA,KA.rt=ZA,KA.te=ke,KA.tm=It,KA.d=$A,KA.n=Be,KA.getDateTimeFormat=q,KA.setDateTimeFormat=oA,KA.mergeDateTimeFormat=IA,KA.getNumberFormat=at,KA.setNumberFormat=Ne,KA.mergeNumberFormat=Re,KA[xB]=t.__injectWithOption,KA[Qu]=fe,KA[Eu]=st,KA[Fu]=it,process.env.NODE_ENV!=="production"&&(KA[Uu]=V=>{T.__v_emitter=V},KA[bu]=()=>{T.__v_emitter=void 0}),KA}const Su={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function hS({slots:t},A){return A.length===1&&A[0]==="default"?(t.default?t.default():[]).reduce((n,r)=>n=[...n,...le(r.children)?r.children:[r]],[]):A.reduce((e,n)=>{const r=t[n];return r&&(e[n]=r()),e},{})}function MB(t){return h.Fragment}Oe({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>Je(t)||!isNaN(t)}},Su);function pS(t){return le(t)&&!nA(t[0])}function kB(t,A,e,n){const{slots:r,attrs:i}=A;return()=>{const s={part:!0};let a={};t.locale&&(s.locale=t.locale),nA(t.format)?s.key=t.format:JA(t.format)&&(nA(t.format.key)&&(s.key=t.format.key),a=Object.keys(t.format).reduce((B,m)=>e.includes(m)?Oe({},B,{[m]:t.format[m]}):B,{}));const c=n(t.value,s,a);let u=[s.key];le(c)?u=c.map((B,m)=>{const C=r[B.type],E=C?C({[B.type]:B.value,index:m,parts:c}):[B.value];return pS(E)&&(E[0].key=`${B.type}-${m}`),E}):nA(c)&&(u=[c]);const d=Oe({},i),p=nA(t.tag)||JA(t.tag)?t.tag:MB();return h.h(p,d,u)}}Oe({value:{type:Number,required:!0},format:{type:[String,Object]}},Su),Oe({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Su);function NB(t,A){}const gS=Hn("global-vue-i18n");function pa(t={}){const A=h.getCurrentInstance();if(A==null)throw Dn(ee.MUST_BE_CALL_SETUP_TOP);if(!A.isCE&&A.appContext.app!=null&&!A.appContext.app.__VUE_I18N_SYMBOL__)throw Dn(ee.NOT_INSLALLED);const e=BS(A),n=wS(e),r=HB(A),i=mS(t,r);if(__VUE_I18N_LEGACY_API__&&e.mode==="legacy"&&!t.__useComponent){if(!e.allowComposition)throw Dn(ee.NOT_AVAILABLE_IN_LEGACY_MODE);return QS(A,i,n,t)}if(i==="global")return uS(n,t,r),n;if(i==="parent"){let c=CS(e,A,t.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&xs(SB(On.NOT_FOUND_PARENT_SCOPE)),c=n),c}const s=e;let a=s.__getInstance(A);if(a==null){const c=Oe({},t);"__i18n"in r&&(c.__i18n=r.__i18n),n&&(c.__root=n),a=dS(c),yS(s,A,a),s.__setInstance(A,a)}return a}function BS(t){{const A=h.inject(t.isCE?gS:t.appContext.app.__VUE_I18N_SYMBOL__);if(!A)throw Dn(t.isCE?ee.NOT_INSLALLED_WITH_PROVIDE:ee.UNEXPECTED_ERROR);return A}}function mS(t,A){return aa(t)?"__i18n"in A?"local":"global":t.useScope?t.useScope:"local"}function wS(t){return t.mode==="composition"?t.global:t.global.__composer}function CS(t,A,e=!1){let n=null;const r=A.root;let i=A.parent;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[xB]&&(n=null))}if(n!=null||r===i)break;i=i.parent}return n}function yS(t,A,e){let n=null;h.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&A.vnode.el){A.vnode.el.__VUE_I18N__=e,n=YI();const r=e;r[Uu]&&r[Uu](n),n.on("*",NB)}},A),h.onUnmounted(()=>{if(process.env.NODE_ENV!=="production"&&A.vnode.el&&A.vnode.el.__VUE_I18N__){n&&n.off("*",NB);const r=e;r[bu]&&r[bu](),delete A.vnode.el.__VUE_I18N__}t.__deleteInstance(A)},A)}function QS(t,A,e,n={}){const r=A==="local",i=h.shallowRef(null);if(r&&t.proxy&&!(t.proxy.$options.i18n||t.proxy.$options.__i18n))throw Dn(ee.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const s=qA(n.inheritLocale)?n.inheritLocale:!0,a=h.ref(r&&s?e.locale.value:nA(n.locale)?n.locale:ua),c=h.ref(r&&s?e.fallbackLocale.value:nA(n.fallbackLocale)||le(n.fallbackLocale)||TA(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:a.value),u=h.ref(Iu(a.value,n)),d=h.ref(TA(n.datetimeFormats)?n.datetimeFormats:{[a.value]:{}}),p=h.ref(TA(n.numberFormats)?n.numberFormats:{[a.value]:{}}),B=r?e.missingWarn:qA(n.missingWarn)||Li(n.missingWarn)?n.missingWarn:!0,m=r?e.fallbackWarn:qA(n.fallbackWarn)||Li(n.fallbackWarn)?n.fallbackWarn:!0,C=r?e.fallbackRoot:qA(n.fallbackRoot)?n.fallbackRoot:!0,E=!!n.fallbackFormat,S=Qe(n.missing)?n.missing:null,U=Qe(n.postTranslation)?n.postTranslation:null,v=r?e.warnHtmlMessage:qA(n.warnHtmlMessage)?n.warnHtmlMessage:!0,D=!!n.escapeParameter,F=r?e.modifiers:TA(n.modifiers)?n.modifiers:{},T=n.pluralRules||r&&e.pluralRules;function L(){return[a.value,c.value,u.value,d.value,p.value]}const N=h.computed({get:()=>i.value?i.value.locale.value:a.value,set:b=>{i.value&&(i.value.locale.value=b),a.value=b}}),W=h.computed({get:()=>i.value?i.value.fallbackLocale.value:c.value,set:b=>{i.value&&(i.value.fallbackLocale.value=b),c.value=b}}),$=h.computed(()=>i.value?i.value.messages.value:u.value),eA=h.computed(()=>d.value),gA=h.computed(()=>p.value);function wA(){return i.value?i.value.getPostTranslationHandler():U}function aA(b){i.value&&i.value.setPostTranslationHandler(b)}function HA(){return i.value?i.value.getMissingHandler():S}function WA(b){i.value&&i.value.setMissingHandler(b)}function bA(b){return L(),b()}function vA(...b){return i.value?bA(()=>Reflect.apply(i.value.t,null,[...b])):bA(()=>"")}function mA(...b){return i.value?Reflect.apply(i.value.rt,null,[...b]):""}function re(...b){return i.value?bA(()=>Reflect.apply(i.value.d,null,[...b])):bA(()=>"")}function ZA(...b){return i.value?bA(()=>Reflect.apply(i.value.n,null,[...b])):bA(()=>"")}function $A(b){return i.value?i.value.tm(b):{}}function Be(b,k){return i.value?i.value.te(b,k):!1}function me(b){return i.value?i.value.getLocaleMessage(b):{}}function Te(b,k){i.value&&(i.value.setLocaleMessage(b,k),u.value[b]=k)}function jA(b,k){i.value&&i.value.mergeLocaleMessage(b,k)}function fe(b){return i.value?i.value.getDateTimeFormat(b):{}}function it(b,k){i.value&&(i.value.setDateTimeFormat(b,k),d.value[b]=k)}function st(b,k){i.value&&i.value.mergeDateTimeFormat(b,k)}function ze(b){return i.value?i.value.getNumberFormat(b):{}}function ke(b,k){i.value&&(i.value.setNumberFormat(b,k),p.value[b]=k)}function ot(b,k){i.value&&i.value.mergeNumberFormat(b,k)}const It={get id(){return i.value?i.value.id:-1},locale:N,fallbackLocale:W,messages:$,datetimeFormats:eA,numberFormats:gA,get inheritLocale(){return i.value?i.value.inheritLocale:s},set inheritLocale(b){i.value&&(i.value.inheritLocale=b)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(u.value)},get modifiers(){return i.value?i.value.modifiers:F},get pluralRules(){return i.value?i.value.pluralRules:T},get isGlobal(){return i.value?i.value.isGlobal:!1},get missingWarn(){return i.value?i.value.missingWarn:B},set missingWarn(b){i.value&&(i.value.missingWarn=b)},get fallbackWarn(){return i.value?i.value.fallbackWarn:m},set fallbackWarn(b){i.value&&(i.value.missingWarn=b)},get fallbackRoot(){return i.value?i.value.fallbackRoot:C},set fallbackRoot(b){i.value&&(i.value.fallbackRoot=b)},get fallbackFormat(){return i.value?i.value.fallbackFormat:E},set fallbackFormat(b){i.value&&(i.value.fallbackFormat=b)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:v},set warnHtmlMessage(b){i.value&&(i.value.warnHtmlMessage=b)},get escapeParameter(){return i.value?i.value.escapeParameter:D},set escapeParameter(b){i.value&&(i.value.escapeParameter=b)},t:vA,getPostTranslationHandler:wA,setPostTranslationHandler:aA,getMissingHandler:HA,setMissingHandler:WA,rt:mA,d:re,n:ZA,tm:$A,te:Be,getLocaleMessage:me,setLocaleMessage:Te,mergeLocaleMessage:jA,getDateTimeFormat:fe,setDateTimeFormat:it,mergeDateTimeFormat:st,getNumberFormat:ze,setNumberFormat:ke,mergeNumberFormat:ot};function H(b){b.locale.value=a.value,b.fallbackLocale.value=c.value,Object.keys(u.value).forEach(k=>{b.mergeLocaleMessage(k,u.value[k])}),Object.keys(d.value).forEach(k=>{b.mergeDateTimeFormat(k,d.value[k])}),Object.keys(p.value).forEach(k=>{b.mergeNumberFormat(k,p.value[k])}),b.escapeParameter=D,b.fallbackFormat=E,b.fallbackRoot=C,b.fallbackWarn=m,b.missingWarn=B,b.warnHtmlMessage=v}return h.onBeforeMount(()=>{if(t.proxy==null||t.proxy.$i18n==null)throw Dn(ee.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const b=i.value=t.proxy.$i18n.__composer;A==="global"?(a.value=b.locale.value,c.value=b.fallbackLocale.value,u.value=b.messages.value,d.value=b.datetimeFormats.value,p.value=b.numberFormats.value):r&&H(b)}),It}if(G1(AS),W1(U1),$1(tB),oS(),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const t=Hs();t.__INTLIFY__=!0,_1(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const ES={class:"input input-dropdown"},FS={class:"dropdown"},US={class:"caption"},bS=["innerHTML"],vS={class:"caption__text"},IS={class:"d-block text-truncate"},SS={class:"dropdown-menu"},TS={class:"form-check"},xS=["value","id","name","label","required","disabled"],HS=["value","id","name","label","required","disabled"],LS=["for"],_S=h.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 e=t,{t:n}=pa(),r=h.computed({get(){return e.multiple&&!e.modelValue?[]:e.modelValue},set(a){A("update:modelValue",a)}}),i=h.computed(()=>e.options.map(a=>(a=typeof a=="string"?{text:a,value:a}:a,{...a,active:e.modelValue&&e.modelValue.includes(a.value)}))),s=h.computed(()=>e.modelValue&&e.modelValue.length?Array.isArray(e.modelValue)&&e.modelValue.length?i.value.reduce((a,c)=>e.modelValue.includes(c.value)?`${a}${a?", ":""}${c.text}`:a,""):i.value.reduce((a,c)=>c.value===e.modelValue?`${a}${c.text}`:a,""):e.placeholder||`<span class="text-muted">${n("common.select")}</span>`);return(a,c)=>{const u=h.resolveComponent("base-button");return h.openBlock(),h.createElementBlock("div",ES,[h.createElementVNode("div",FS,[h.createVNode(u,{"data-bs-toggle":"dropdown",role:"button",type:"button",title:h.unref(s),class:"btn dropdown-toggle",color:t.color,outlined:t.outlined,disabled:t.disabled},{default:h.withCtx(()=>[h.createElementVNode("span",US,[h.createVNode(h.Transition,{name:"bounce"},{default:h.withCtx(()=>[t.showSelectionCount&&t.modelValue.length?(h.openBlock(),h.createElementBlock("i",{key:0,class:"caption__count",innerHTML:t.modelValue.length},null,8,bS)):h.createCommentVNode("",!0)]),_:1}),h.createElementVNode("span",vS,[h.createElementVNode("span",IS,h.toDisplayString(t.toggleCaption||h.unref(s)),1)])])]),_:1},8,["title","color","outlined","disabled"]),h.createElementVNode("ul",SS,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(h.unref(i),(d,p)=>(h.openBlock(),h.createElementBlock("li",{key:`${d.value}-${p}`},[h.createElementVNode("div",{class:h.normalizeClass(["dropdown-item",d.active&&"active"])},[h.createElementVNode("div",TS,[t.multiple?h.withDirectives((h.openBlock(),h.createElementBlock("input",{type:"checkbox","onUpdate:modelValue":c[0]||(c[0]=B=>h.isRef(r)?r.value=B:null),value:d.value,key:`${t.name}-${d.value}-${p}__if`,id:`${t.name}-${d.value}-${p}`,name:t.name,label:d.text,required:t.required,disabled:d.selectable===!1,class:"form-check-input"},null,8,xS)),[[h.vModelCheckbox,h.unref(r)]]):h.withDirectives((h.openBlock(),h.createElementBlock("input",{type:"radio","onUpdate:modelValue":c[1]||(c[1]=B=>h.isRef(r)?r.value=B:null),value:d.value,key:`${t.name}-${d.value}-${p}__else`,id:`${t.name}-${d.value}-${p}`,name:t.name,label:d.text,required:t.required,disabled:d.selectable===!1,class:"form-check-input"},null,8,HS)),[[h.vModelRadio,h.unref(r)]]),h.createElementVNode("label",{class:"form-check-label flex-grow-1",onclick:"event.stopPropagation();",for:`${t.name}-${d.value}-${p}`},h.toDisplayString(d.text),9,LS)])],2)]))),128))])])])}}});var Ds=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ms={},OS={get exports(){return Ms},set exports(t){Ms=t}};/**
137
+ */const sS="9.2.2";function oS(){let t=!1;typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(t=!0,Hs().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(t=!0,Hs().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Hs().__INTLIFY_PROD_DEVTOOLS__=!1),process.env.NODE_ENV!=="production"&&t&&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 IB=bt.__EXTEND_POINT__;const Mi=()=>++IB,On={FALLBACK_TO_ROOT:IB,NOT_SUPPORTED_PRESERVE:Mi(),NOT_SUPPORTED_FORMATTER:Mi(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:Mi(),NOT_SUPPORTED_GET_CHOICE_INDEX:Mi(),COMPONENT_NAME_LEGACY_COMPATIBLE:Mi(),NOT_FOUND_PARENT_SCOPE:Mi()},aS={[On.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[On.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[On.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[On.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[On.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[On.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[On.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope."};function SB(t,...A){return oa(aS[t],...A)}let TB=hA.__EXTEND_POINT__;const pt=()=>++TB,ee={UNEXPECTED_RETURN_TYPE:TB,INVALID_ARGUMENT:pt(),MUST_BE_CALL_SETUP_TOP:pt(),NOT_INSLALLED:pt(),NOT_AVAILABLE_IN_LEGACY_MODE:pt(),REQUIRED_VALUE:pt(),INVALID_VALUE:pt(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:pt(),NOT_INSLALLED_WITH_PROVIDE:pt(),UNEXPECTED_ERROR:pt(),NOT_COMPATIBLE_LEGACY_VUE_I18N:pt(),BRIDGE_SUPPORT_VUE_2_ONLY:pt(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:pt(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:pt(),__EXTEND_POINT__:pt()};function Dn(t,...A){return la(t,null,process.env.NODE_ENV!=="production"?{messages:lS,args:A}:void 0)}const lS={[ee.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[ee.INVALID_ARGUMENT]:"Invalid argument",[ee.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[ee.NOT_INSLALLED]:"Need to install with `app.use` function",[ee.UNEXPECTED_ERROR]:"Unexpected error",[ee.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[ee.REQUIRED_VALUE]:"Required in value: {0}",[ee.INVALID_VALUE]:"Invalid value",[ee.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[ee.NOT_INSLALLED_WITH_PROVIDE]:"Need to install with `provide` function",[ee.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[ee.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[ee.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",[ee.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Qu=Hn("__transrateVNode"),Eu=Hn("__datetimeParts"),Fu=Hn("__numberParts"),Uu=Hn("__enableEmitter"),bu=Hn("__disableEmitter"),cS=Hn("__setPluralRules");Hn("__intlifyMeta");const xB=Hn("__injectWithOption");function vu(t){if(!JA(t))return t;for(const A in t)if(du(t,A))if(!A.includes("."))JA(t[A])&&vu(t[A]);else{const e=A.split("."),n=e.length-1;let r=t;for(let i=0;i<n;i++)e[i]in r||(r[e[i]]={}),r=r[e[i]];r[e[n]]=t[A],delete t[A],JA(r[e[n]])&&vu(r[e[n]])}return t}function Iu(t,A){const{messages:e,__i18n:n,messageResolver:r,flatJson:i}=A,s=TA(e)?e:le(n)?{}:{[t]:{}};if(le(n)&&n.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:c,resource:u}=a;c?(s[c]=s[c]||{},Os(u,s[c])):Os(u,s)}else nA(a)&&Os(JSON.parse(a),s)}),r==null&&i)for(const a in s)du(s,a)&&vu(s[a]);return s}const ha=t=>!JA(t)||le(t);function Os(t,A){if(ha(t)||ha(A))throw Dn(ee.INVALID_VALUE);for(const e in t)du(t,e)&&(ha(t[e])||ha(A[e])?A[e]=t[e]:Os(t[e],A[e]))}function HB(t){return t.type}function uS(t,A,e){let n=JA(A.messages)?A.messages:{};"__i18nGlobal"in e&&(n=Iu(t.locale.value,{messages:n,__i18n:e.__i18nGlobal}));const r=Object.keys(n);r.length&&r.forEach(i=>{t.mergeLocaleMessage(i,n[i])});{if(JA(A.datetimeFormats)){const i=Object.keys(A.datetimeFormats);i.length&&i.forEach(s=>{t.mergeDateTimeFormat(s,A.datetimeFormats[s])})}if(JA(A.numberFormats)){const i=Object.keys(A.numberFormats);i.length&&i.forEach(s=>{t.mergeNumberFormat(s,A.numberFormats[s])})}}}function LB(t){return h.createVNode(h.Text,null,t,0)}const _B="__INTLIFY_META__";let OB=0;function DB(t){return(A,e,n,r)=>t(e,n,h.getCurrentInstance()||void 0,r)}const fS=()=>{const t=h.getCurrentInstance();let A=null;return t&&(A=HB(t)[_B])?{[_B]:A}:null};function dS(t={},A){const{__root:e}=t,n=e===void 0;let r=qA(t.inheritLocale)?t.inheritLocale:!0;const i=h.ref(e&&r?e.locale.value:nA(t.locale)?t.locale:ua),s=h.ref(e&&r?e.fallbackLocale.value:nA(t.fallbackLocale)||le(t.fallbackLocale)||TA(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:i.value),a=h.ref(Iu(i.value,t)),c=h.ref(TA(t.datetimeFormats)?t.datetimeFormats:{[i.value]:{}}),u=h.ref(TA(t.numberFormats)?t.numberFormats:{[i.value]:{}});let d=e?e.missingWarn:qA(t.missingWarn)||Li(t.missingWarn)?t.missingWarn:!0,p=e?e.fallbackWarn:qA(t.fallbackWarn)||Li(t.fallbackWarn)?t.fallbackWarn:!0,B=e?e.fallbackRoot:qA(t.fallbackRoot)?t.fallbackRoot:!0,m=!!t.fallbackFormat,C=Qe(t.missing)?t.missing:null,E=Qe(t.missing)?DB(t.missing):null,S=Qe(t.postTranslation)?t.postTranslation:null,U=e?e.warnHtmlMessage:qA(t.warnHtmlMessage)?t.warnHtmlMessage:!0,v=!!t.escapeParameter;const D=e?e.modifiers:TA(t.modifiers)?t.modifiers:{};let F=t.pluralRules||e&&e.pluralRules,T;T=(()=>{n&&uB(null);const V={version:sS,locale:i.value,fallbackLocale:s.value,messages:a.value,modifiers:D,pluralRules:F,missing:E===null?void 0:E,missingWarn:d,fallbackWarn:p,fallbackFormat:m,unresolving:!0,postTranslation:S===null?void 0:S,warnHtmlMessage:U,escapeParameter:v,messageResolver:t.messageResolver,__meta:{framework:"vue"}};V.datetimeFormats=c.value,V.numberFormats=u.value,V.__datetimeFormatters=TA(T)?T.__datetimeFormatters:void 0,V.__numberFormatters=TA(T)?T.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(V.__v_emitter=TA(T)?T.__v_emitter:void 0);const Y=Y1(V);return n&&uB(Y),Y})(),_s(T,i.value,s.value);function N(){return[i.value,s.value,a.value,c.value,u.value]}const W=h.computed({get:()=>i.value,set:V=>{i.value=V,T.locale=i.value}}),$=h.computed({get:()=>s.value,set:V=>{s.value=V,T.fallbackLocale=s.value,_s(T,i.value,V)}}),eA=h.computed(()=>a.value),gA=h.computed(()=>c.value),wA=h.computed(()=>u.value);function aA(){return Qe(S)?S:null}function HA(V){S=V,T.postTranslation=V}function WA(){return C}function bA(V){V!==null&&(E=DB(V)),C=V,T.missing=E}function vA(V,Y){return V!=="translate"||!Y.resolvedMessage}const mA=(V,Y,oe,Fe,an,St)=>{N();let Gt;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)try{lB(fS()),n||(T.fallbackContext=e?X1():void 0),Gt=V(T)}finally{lB(null),n||(T.fallbackContext=void 0)}else Gt=V(T);if(Je(Gt)&&Gt===ca){const[Tt,ni]=Y();if(process.env.NODE_ENV!=="production"&&e&&nA(Tt)&&vA(oe,ni)&&(B&&(da(p,Tt)||dB(d,Tt))&&xs(SB(On.FALLBACK_TO_ROOT,{key:Tt,type:oe})),process.env.NODE_ENV!=="production")){const{__v_emitter:Ur}=T;Ur&&B&&Ur.emit("fallback",{type:oe,key:Tt,to:"global",groupId:`${oe}:${Tt}`})}return e&&B?Fe(e):an(Tt)}else{if(St(Gt))return Gt;throw Dn(ee.UNEXPECTED_RETURN_TYPE)}};function re(...V){return mA(Y=>Reflect.apply(BB,null,[Y,...V]),()=>wu(...V),"translate",Y=>Reflect.apply(Y.t,Y,[...V]),Y=>Y,Y=>nA(Y))}function ZA(...V){const[Y,oe,Fe]=V;if(Fe&&!JA(Fe))throw Dn(ee.INVALID_ARGUMENT);return re(Y,oe,Oe({resolvedMessage:!0},Fe||{}))}function $A(...V){return mA(Y=>Reflect.apply(QB,null,[Y,...V]),()=>Cu(...V),"datetime format",Y=>Reflect.apply(Y.d,Y,[...V]),()=>fa,Y=>nA(Y))}function Be(...V){return mA(Y=>Reflect.apply(UB,null,[Y,...V]),()=>yu(...V),"number format",Y=>Reflect.apply(Y.n,Y,[...V]),()=>fa,Y=>nA(Y))}function me(V){return V.map(Y=>nA(Y)||Je(Y)||qA(Y)?LB(String(Y)):Y)}const jA={normalize:me,interpolate:V=>V,type:"vnode"};function fe(...V){return mA(Y=>{let oe;const Fe=Y;try{Fe.processor=jA,oe=Reflect.apply(BB,null,[Fe,...V])}finally{Fe.processor=null}return oe},()=>wu(...V),"translate",Y=>Y[Qu](...V),Y=>[LB(Y)],Y=>le(Y))}function it(...V){return mA(Y=>Reflect.apply(UB,null,[Y,...V]),()=>yu(...V),"number format",Y=>Y[Fu](...V),()=>[],Y=>nA(Y)||le(Y))}function st(...V){return mA(Y=>Reflect.apply(QB,null,[Y,...V]),()=>Cu(...V),"datetime format",Y=>Y[Eu](...V),()=>[],Y=>nA(Y)||le(Y))}function ze(V){F=V,T.pluralRules=F}function ke(V,Y){const oe=nA(Y)?Y:i.value,Fe=H(oe);return T.messageResolver(Fe,V)!==null}function ot(V){let Y=null;const oe=tB(T,s.value,i.value);for(let Fe=0;Fe<oe.length;Fe++){const an=a.value[oe[Fe]]||{},St=T.messageResolver(an,V);if(St!=null){Y=St;break}}return Y}function It(V){const Y=ot(V);return Y??(e?e.tm(V)||{}:{})}function H(V){return a.value[V]||{}}function b(V,Y){a.value[V]=Y,T.messages=a.value}function k(V,Y){a.value[V]=a.value[V]||{},Os(Y,a.value[V]),T.messages=a.value}function q(V){return c.value[V]||{}}function oA(V,Y){c.value[V]=Y,T.datetimeFormats=c.value,FB(T,V,Y)}function IA(V,Y){c.value[V]=Oe(c.value[V]||{},Y),T.datetimeFormats=c.value,FB(T,V,Y)}function at(V){return u.value[V]||{}}function Ne(V,Y){u.value[V]=Y,T.numberFormats=u.value,vB(T,V,Y)}function Re(V,Y){u.value[V]=Oe(u.value[V]||{},Y),T.numberFormats=u.value,vB(T,V,Y)}OB++,e&&dr&&(h.watch(e.locale,V=>{r&&(i.value=V,T.locale=V,_s(T,i.value,s.value))}),h.watch(e.fallbackLocale,V=>{r&&(s.value=V,T.fallbackLocale=V,_s(T,i.value,s.value))}));const KA={id:OB,locale:W,fallbackLocale:$,get inheritLocale(){return r},set inheritLocale(V){r=V,V&&e&&(i.value=e.locale.value,s.value=e.fallbackLocale.value,_s(T,i.value,s.value))},get availableLocales(){return Object.keys(a.value).sort()},messages:eA,get modifiers(){return D},get pluralRules(){return F||{}},get isGlobal(){return n},get missingWarn(){return d},set missingWarn(V){d=V,T.missingWarn=d},get fallbackWarn(){return p},set fallbackWarn(V){p=V,T.fallbackWarn=p},get fallbackRoot(){return B},set fallbackRoot(V){B=V},get fallbackFormat(){return m},set fallbackFormat(V){m=V,T.fallbackFormat=m},get warnHtmlMessage(){return U},set warnHtmlMessage(V){U=V,T.warnHtmlMessage=V},get escapeParameter(){return v},set escapeParameter(V){v=V,T.escapeParameter=V},t:re,getLocaleMessage:H,setLocaleMessage:b,mergeLocaleMessage:k,getPostTranslationHandler:aA,setPostTranslationHandler:HA,getMissingHandler:WA,setMissingHandler:bA,[cS]:ze};return KA.datetimeFormats=gA,KA.numberFormats=wA,KA.rt=ZA,KA.te=ke,KA.tm=It,KA.d=$A,KA.n=Be,KA.getDateTimeFormat=q,KA.setDateTimeFormat=oA,KA.mergeDateTimeFormat=IA,KA.getNumberFormat=at,KA.setNumberFormat=Ne,KA.mergeNumberFormat=Re,KA[xB]=t.__injectWithOption,KA[Qu]=fe,KA[Eu]=st,KA[Fu]=it,process.env.NODE_ENV!=="production"&&(KA[Uu]=V=>{T.__v_emitter=V},KA[bu]=()=>{T.__v_emitter=void 0}),KA}const Su={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function hS({slots:t},A){return A.length===1&&A[0]==="default"?(t.default?t.default():[]).reduce((n,r)=>n=[...n,...le(r.children)?r.children:[r]],[]):A.reduce((e,n)=>{const r=t[n];return r&&(e[n]=r()),e},{})}function MB(t){return h.Fragment}Oe({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>Je(t)||!isNaN(t)}},Su);function pS(t){return le(t)&&!nA(t[0])}function kB(t,A,e,n){const{slots:r,attrs:i}=A;return()=>{const s={part:!0};let a={};t.locale&&(s.locale=t.locale),nA(t.format)?s.key=t.format:JA(t.format)&&(nA(t.format.key)&&(s.key=t.format.key),a=Object.keys(t.format).reduce((B,m)=>e.includes(m)?Oe({},B,{[m]:t.format[m]}):B,{}));const c=n(t.value,s,a);let u=[s.key];le(c)?u=c.map((B,m)=>{const C=r[B.type],E=C?C({[B.type]:B.value,index:m,parts:c}):[B.value];return pS(E)&&(E[0].key=`${B.type}-${m}`),E}):nA(c)&&(u=[c]);const d=Oe({},i),p=nA(t.tag)||JA(t.tag)?t.tag:MB();return h.h(p,d,u)}}Oe({value:{type:Number,required:!0},format:{type:[String,Object]}},Su),Oe({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Su);function NB(t,A){}const gS=Hn("global-vue-i18n");function pa(t={}){const A=h.getCurrentInstance();if(A==null)throw Dn(ee.MUST_BE_CALL_SETUP_TOP);if(!A.isCE&&A.appContext.app!=null&&!A.appContext.app.__VUE_I18N_SYMBOL__)throw Dn(ee.NOT_INSLALLED);const e=BS(A),n=wS(e),r=HB(A),i=mS(t,r);if(__VUE_I18N_LEGACY_API__&&e.mode==="legacy"&&!t.__useComponent){if(!e.allowComposition)throw Dn(ee.NOT_AVAILABLE_IN_LEGACY_MODE);return QS(A,i,n,t)}if(i==="global")return uS(n,t,r),n;if(i==="parent"){let c=CS(e,A,t.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&xs(SB(On.NOT_FOUND_PARENT_SCOPE)),c=n),c}const s=e;let a=s.__getInstance(A);if(a==null){const c=Oe({},t);"__i18n"in r&&(c.__i18n=r.__i18n),n&&(c.__root=n),a=dS(c),yS(s,A,a),s.__setInstance(A,a)}return a}function BS(t){{const A=h.inject(t.isCE?gS:t.appContext.app.__VUE_I18N_SYMBOL__);if(!A)throw Dn(t.isCE?ee.NOT_INSLALLED_WITH_PROVIDE:ee.UNEXPECTED_ERROR);return A}}function mS(t,A){return aa(t)?"__i18n"in A?"local":"global":t.useScope?t.useScope:"local"}function wS(t){return t.mode==="composition"?t.global:t.global.__composer}function CS(t,A,e=!1){let n=null;const r=A.root;let i=A.parent;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[xB]&&(n=null))}if(n!=null||r===i)break;i=i.parent}return n}function yS(t,A,e){let n=null;h.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&A.vnode.el){A.vnode.el.__VUE_I18N__=e,n=YI();const r=e;r[Uu]&&r[Uu](n),n.on("*",NB)}},A),h.onUnmounted(()=>{if(process.env.NODE_ENV!=="production"&&A.vnode.el&&A.vnode.el.__VUE_I18N__){n&&n.off("*",NB);const r=e;r[bu]&&r[bu](),delete A.vnode.el.__VUE_I18N__}t.__deleteInstance(A)},A)}function QS(t,A,e,n={}){const r=A==="local",i=h.shallowRef(null);if(r&&t.proxy&&!(t.proxy.$options.i18n||t.proxy.$options.__i18n))throw Dn(ee.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const s=qA(n.inheritLocale)?n.inheritLocale:!0,a=h.ref(r&&s?e.locale.value:nA(n.locale)?n.locale:ua),c=h.ref(r&&s?e.fallbackLocale.value:nA(n.fallbackLocale)||le(n.fallbackLocale)||TA(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:a.value),u=h.ref(Iu(a.value,n)),d=h.ref(TA(n.datetimeFormats)?n.datetimeFormats:{[a.value]:{}}),p=h.ref(TA(n.numberFormats)?n.numberFormats:{[a.value]:{}}),B=r?e.missingWarn:qA(n.missingWarn)||Li(n.missingWarn)?n.missingWarn:!0,m=r?e.fallbackWarn:qA(n.fallbackWarn)||Li(n.fallbackWarn)?n.fallbackWarn:!0,C=r?e.fallbackRoot:qA(n.fallbackRoot)?n.fallbackRoot:!0,E=!!n.fallbackFormat,S=Qe(n.missing)?n.missing:null,U=Qe(n.postTranslation)?n.postTranslation:null,v=r?e.warnHtmlMessage:qA(n.warnHtmlMessage)?n.warnHtmlMessage:!0,D=!!n.escapeParameter,F=r?e.modifiers:TA(n.modifiers)?n.modifiers:{},T=n.pluralRules||r&&e.pluralRules;function L(){return[a.value,c.value,u.value,d.value,p.value]}const N=h.computed({get:()=>i.value?i.value.locale.value:a.value,set:b=>{i.value&&(i.value.locale.value=b),a.value=b}}),W=h.computed({get:()=>i.value?i.value.fallbackLocale.value:c.value,set:b=>{i.value&&(i.value.fallbackLocale.value=b),c.value=b}}),$=h.computed(()=>i.value?i.value.messages.value:u.value),eA=h.computed(()=>d.value),gA=h.computed(()=>p.value);function wA(){return i.value?i.value.getPostTranslationHandler():U}function aA(b){i.value&&i.value.setPostTranslationHandler(b)}function HA(){return i.value?i.value.getMissingHandler():S}function WA(b){i.value&&i.value.setMissingHandler(b)}function bA(b){return L(),b()}function vA(...b){return i.value?bA(()=>Reflect.apply(i.value.t,null,[...b])):bA(()=>"")}function mA(...b){return i.value?Reflect.apply(i.value.rt,null,[...b]):""}function re(...b){return i.value?bA(()=>Reflect.apply(i.value.d,null,[...b])):bA(()=>"")}function ZA(...b){return i.value?bA(()=>Reflect.apply(i.value.n,null,[...b])):bA(()=>"")}function $A(b){return i.value?i.value.tm(b):{}}function Be(b,k){return i.value?i.value.te(b,k):!1}function me(b){return i.value?i.value.getLocaleMessage(b):{}}function Te(b,k){i.value&&(i.value.setLocaleMessage(b,k),u.value[b]=k)}function jA(b,k){i.value&&i.value.mergeLocaleMessage(b,k)}function fe(b){return i.value?i.value.getDateTimeFormat(b):{}}function it(b,k){i.value&&(i.value.setDateTimeFormat(b,k),d.value[b]=k)}function st(b,k){i.value&&i.value.mergeDateTimeFormat(b,k)}function ze(b){return i.value?i.value.getNumberFormat(b):{}}function ke(b,k){i.value&&(i.value.setNumberFormat(b,k),p.value[b]=k)}function ot(b,k){i.value&&i.value.mergeNumberFormat(b,k)}const It={get id(){return i.value?i.value.id:-1},locale:N,fallbackLocale:W,messages:$,datetimeFormats:eA,numberFormats:gA,get inheritLocale(){return i.value?i.value.inheritLocale:s},set inheritLocale(b){i.value&&(i.value.inheritLocale=b)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(u.value)},get modifiers(){return i.value?i.value.modifiers:F},get pluralRules(){return i.value?i.value.pluralRules:T},get isGlobal(){return i.value?i.value.isGlobal:!1},get missingWarn(){return i.value?i.value.missingWarn:B},set missingWarn(b){i.value&&(i.value.missingWarn=b)},get fallbackWarn(){return i.value?i.value.fallbackWarn:m},set fallbackWarn(b){i.value&&(i.value.missingWarn=b)},get fallbackRoot(){return i.value?i.value.fallbackRoot:C},set fallbackRoot(b){i.value&&(i.value.fallbackRoot=b)},get fallbackFormat(){return i.value?i.value.fallbackFormat:E},set fallbackFormat(b){i.value&&(i.value.fallbackFormat=b)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:v},set warnHtmlMessage(b){i.value&&(i.value.warnHtmlMessage=b)},get escapeParameter(){return i.value?i.value.escapeParameter:D},set escapeParameter(b){i.value&&(i.value.escapeParameter=b)},t:vA,getPostTranslationHandler:wA,setPostTranslationHandler:aA,getMissingHandler:HA,setMissingHandler:WA,rt:mA,d:re,n:ZA,tm:$A,te:Be,getLocaleMessage:me,setLocaleMessage:Te,mergeLocaleMessage:jA,getDateTimeFormat:fe,setDateTimeFormat:it,mergeDateTimeFormat:st,getNumberFormat:ze,setNumberFormat:ke,mergeNumberFormat:ot};function H(b){b.locale.value=a.value,b.fallbackLocale.value=c.value,Object.keys(u.value).forEach(k=>{b.mergeLocaleMessage(k,u.value[k])}),Object.keys(d.value).forEach(k=>{b.mergeDateTimeFormat(k,d.value[k])}),Object.keys(p.value).forEach(k=>{b.mergeNumberFormat(k,p.value[k])}),b.escapeParameter=D,b.fallbackFormat=E,b.fallbackRoot=C,b.fallbackWarn=m,b.missingWarn=B,b.warnHtmlMessage=v}return h.onBeforeMount(()=>{if(t.proxy==null||t.proxy.$i18n==null)throw Dn(ee.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const b=i.value=t.proxy.$i18n.__composer;A==="global"?(a.value=b.locale.value,c.value=b.fallbackLocale.value,u.value=b.messages.value,d.value=b.datetimeFormats.value,p.value=b.numberFormats.value):r&&H(b)}),It}if(G1(AS),W1(U1),$1(tB),oS(),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const t=Hs();t.__INTLIFY__=!0,_1(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const ES={class:"input input-dropdown"},FS={class:"dropdown"},US={class:"caption"},bS=["innerHTML"],vS={class:"caption__text"},IS={class:"d-block text-truncate"},SS={class:"dropdown-menu"},TS={class:"form-check"},xS=["value","id","name","label","required","disabled"],HS=["value","id","name","label","required","disabled"],LS=["for"],_S=h.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 e=t,{t:n}=pa(),r=h.computed({get(){return e.multiple&&!e.modelValue?[]:e.modelValue},set(a){A("update:modelValue",a)}}),i=h.computed(()=>e.options.map(a=>(a=typeof a=="string"?{text:a,value:a}:a,{...a,active:e.modelValue&&e.modelValue.includes(a.value)}))),s=h.computed(()=>e.modelValue&&e.modelValue.length?Array.isArray(e.modelValue)&&e.modelValue.length?i.value.reduce((a,c)=>e.modelValue.includes(c.value)?`${a}${a?", ":""}${c.text}`:a,""):i.value.reduce((a,c)=>c.value===e.modelValue?`${a}${c.text}`:a,""):e.placeholder||`${n("common.select")}`);return(a,c)=>{const u=h.resolveComponent("base-button");return h.openBlock(),h.createElementBlock("div",ES,[h.createElementVNode("div",FS,[h.createVNode(u,{"data-bs-toggle":"dropdown",role:"button",type:"button",title:h.unref(s),class:"btn dropdown-toggle",color:t.color,outlined:t.outlined,disabled:t.disabled},{default:h.withCtx(()=>[h.createElementVNode("span",US,[h.createVNode(h.Transition,{name:"bounce"},{default:h.withCtx(()=>[t.showSelectionCount&&t.modelValue.length?(h.openBlock(),h.createElementBlock("i",{key:0,class:"caption__count",innerHTML:t.modelValue.length},null,8,bS)):h.createCommentVNode("",!0)]),_:1}),h.createElementVNode("span",vS,[h.createElementVNode("span",IS,h.toDisplayString(t.toggleCaption||h.unref(s)),1)])])]),_:1},8,["title","color","outlined","disabled"]),h.createElementVNode("ul",SS,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(h.unref(i),(d,p)=>(h.openBlock(),h.createElementBlock("li",{key:`${d.value}-${p}`},[h.createElementVNode("div",{class:h.normalizeClass(["dropdown-item",d.active&&"active"])},[h.createElementVNode("div",TS,[t.multiple?h.withDirectives((h.openBlock(),h.createElementBlock("input",{type:"checkbox","onUpdate:modelValue":c[0]||(c[0]=B=>h.isRef(r)?r.value=B:null),value:d.value,key:`${t.name}-${d.value}-${p}__if`,id:`${t.name}-${d.value}-${p}`,name:t.name,label:d.text,required:t.required,disabled:d.selectable===!1,class:"form-check-input"},null,8,xS)),[[h.vModelCheckbox,h.unref(r)]]):h.withDirectives((h.openBlock(),h.createElementBlock("input",{type:"radio","onUpdate:modelValue":c[1]||(c[1]=B=>h.isRef(r)?r.value=B:null),value:d.value,key:`${t.name}-${d.value}-${p}__else`,id:`${t.name}-${d.value}-${p}`,name:t.name,label:d.text,required:t.required,disabled:d.selectable===!1,class:"form-check-input"},null,8,HS)),[[h.vModelRadio,h.unref(r)]]),h.createElementVNode("label",{class:"form-check-label flex-grow-1",onclick:"event.stopPropagation();",for:`${t.name}-${d.value}-${p}`},h.toDisplayString(d.text),9,LS)])],2)]))),128))])])])}}});var Ds=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ms={},OS={get exports(){return Ms},set exports(t){Ms=t}};/**
138
138
  * @license
139
139
  * Lodash <https://lodash.com/>
140
140
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ablok-components",
3
3
  "private": false,
4
- "version": "0.1.48",
4
+ "version": "0.1.49",
5
5
  "scripts": {
6
6
  "dev": "vite",
7
7
  "build": "vue-tsc --noEmit && vite build",