@weni/unnnic-system 2.33.3 → 2.33.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/unnnic.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { i as a } from "./index-ff97aea0.mjs";
1
+ import { i as a } from "./index-6ca34458.mjs";
2
2
  import "vue";
3
3
  export {
4
4
  a as default
@@ -55,7 +55,7 @@ ${h}`:u)}else throw c},onCacheKey:c=>BA(i,t,c)}}function iN(e){if(K(e))return e;
55
55
  * vue-i18n v9.12.1
56
56
  * (c) 2024 kazuya kawaguchi
57
57
  * Released under the MIT License.
58
- */const mN="9.12.1";function hN(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(J1().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(J1().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(J1().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(J1().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(J1().__INTLIFY_PROD_DEVTOOLS__=!1)}const a5=Mn.__EXTEND_POINT__,K1=K2(a5),Xe={FALLBACK_TO_ROOT:a5,NOT_SUPPORTED_PRESERVE:K1(),NOT_SUPPORTED_FORMATTER:K1(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:K1(),NOT_SUPPORTED_GET_CHOICE_INDEX:K1(),COMPONENT_NAME_LEGACY_COMPATIBLE:K1(),NOT_FOUND_PARENT_SCOPE:K1(),IGNORE_OBJ_FLATTEN:K1(),NOTICE_DROP_ALLOW_COMPOSITION:K1(),NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG:K1()},pN={[Xe.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Xe.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[Xe.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[Xe.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[Xe.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[Xe.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[Xe.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[Xe.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[Xe.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze",[Xe.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]:"'translateExistCompatible' option will be dropped in the next major version."};function Ln(e,...i){return qo(pN[e],...i)}const o5=fn.__EXTEND_POINT__,Sn=K2(o5),Be={UNEXPECTED_RETURN_TYPE:o5,INVALID_ARGUMENT:Sn(),MUST_BE_CALL_SETUP_TOP:Sn(),NOT_INSTALLED:Sn(),NOT_AVAILABLE_IN_LEGACY_MODE:Sn(),REQUIRED_VALUE:Sn(),INVALID_VALUE:Sn(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Sn(),NOT_INSTALLED_WITH_PROVIDE:Sn(),UNEXPECTED_ERROR:Sn(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Sn(),BRIDGE_SUPPORT_VUE_2_ONLY:Sn(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Sn(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Sn(),__EXTEND_POINT__:Sn()};function ln(e,...i){return yi(e,null,process.env.NODE_ENV!=="production"?{messages:yN,args:i}:void 0)}const yN={[Be.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[Be.INVALID_ARGUMENT]:"Invalid argument",[Be.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[Be.NOT_INSTALLED]:"Need to install with `app.use` function",[Be.UNEXPECTED_ERROR]:"Unexpected error",[Be.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[Be.REQUIRED_VALUE]:"Required in value: {0}",[Be.INVALID_VALUE]:"Invalid value",[Be.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[Be.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[Be.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[Be.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[Be.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",[Be.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},ss=N1("__translateVNode"),rs=N1("__datetimeParts"),ls=N1("__numberParts"),Yt=N1("__enableEmitter"),n2=N1("__disableEmitter"),s5=N1("__setPluralRules"),r5=N1("__injectWithOption"),cs=N1("__dispose");function t2(e){if(!Te(e))return e;for(const i in e)if($2(e,i))if(!i.includes("."))Te(e[i])&&t2(e[i]);else{const t=i.split("."),o=t.length-1;let l=e,r=!1;for(let c=0;c<o;c++){if(t[c]in l||(l[t[c]]={}),!Te(l[t[c]])){process.env.NODE_ENV!=="production"&&rn(Ln(Xe.IGNORE_OBJ_FLATTEN,{key:t[c]})),r=!0;break}l=l[t[c]]}r||(l[t[o]]=e[i],delete e[i]),Te(l[t[o]])&&t2(l[t[o]])}return e}function ra(e,i){const{messages:t,__i18n:o,messageResolver:l,flatJson:r}=i,c=ue(t)?t:Re(o)?{}:{[e]:{}};if(Re(o)&&o.forEach(f=>{if("locale"in f&&"resource"in f){const{locale:u,resource:h}=f;u?(c[u]=c[u]||{},na(h,c[u])):na(h,c)}else K(f)&&na(JSON.parse(f),c)}),l==null&&r)for(const f in c)$2(c,f)&&t2(c[f]);return c}function l5(e){return e.type}function c5(e,i,t){let o=Te(i.messages)?i.messages:{};"__i18nGlobal"in t&&(o=ra(e.locale.value,{messages:o,__i18n:t.__i18nGlobal}));const l=Object.keys(o);l.length&&l.forEach(r=>{e.mergeLocaleMessage(r,o[r])});{if(Te(i.datetimeFormats)){const r=Object.keys(i.datetimeFormats);r.length&&r.forEach(c=>{e.mergeDateTimeFormat(c,i.datetimeFormats[c])})}if(Te(i.numberFormats)){const r=Object.keys(i.numberFormats);r.length&&r.forEach(c=>{e.mergeNumberFormat(c,i.numberFormats[c])})}}}function d5(e){return n.createVNode(n.Text,null,e,0)}const f5="__INTLIFY_META__",u5=()=>[],gN=()=>!1;let m5=0;function h5(e){return(i,t,o,l)=>e(t,o,n.getCurrentInstance()||void 0,l)}const _N=()=>{const e=n.getCurrentInstance();let i=null;return e&&(i=l5(e)[f5])?{[f5]:i}:null};function ds(e={},i){const{__root:t,__injectWithOption:o}=e,l=t===void 0,r=e.flatJson,c=p1?n.ref:n.shallowRef,f=!!e.translateExistCompatible;process.env.NODE_ENV!=="production"&&f&&p3(Ln(Xe.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));let u=_e(e.inheritLocale)?e.inheritLocale:!0;const h=c(t&&u?t.locale.value:K(e.locale)?e.locale:wi),p=c(t&&u?t.fallbackLocale.value:K(e.fallbackLocale)||Re(e.fallbackLocale)||ue(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:h.value),C=c(ra(h.value,e)),_=c(ue(e.datetimeFormats)?e.datetimeFormats:{[h.value]:{}}),x=c(ue(e.numberFormats)?e.numberFormats:{[h.value]:{}});let N=t?t.missingWarn:_e(e.missingWarn)||ht(e.missingWarn)?e.missingWarn:!0,O=t?t.fallbackWarn:_e(e.fallbackWarn)||ht(e.fallbackWarn)?e.fallbackWarn:!0,I=t?t.fallbackRoot:_e(e.fallbackRoot)?e.fallbackRoot:!0,U=!!e.fallbackFormat,$=Pe(e.missing)?e.missing:null,B=Pe(e.missing)?h5(e.missing):null,T=Pe(e.postTranslation)?e.postTranslation:null,Z=t?t.warnHtmlMessage:_e(e.warnHtmlMessage)?e.warnHtmlMessage:!0,S=!!e.escapeParameter;const H=t?t.modifiers:ue(e.modifiers)?e.modifiers:{};let X=e.pluralRules||t&&t.pluralRules,W;W=(()=>{l&&O3(null);const V={version:mN,locale:h.value,fallbackLocale:p.value,messages:C.value,modifiers:H,pluralRules:X,missing:B===null?void 0:B,missingWarn:N,fallbackWarn:O,fallbackFormat:U,unresolving:!0,postTranslation:T===null?void 0:T,warnHtmlMessage:Z,escapeParameter:S,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};V.datetimeFormats=_.value,V.numberFormats=x.value,V.__datetimeFormatters=ue(W)?W.__datetimeFormatters:void 0,V.__numberFormatters=ue(W)?W.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(V.__v_emitter=ue(W)?W.__v_emitter:void 0);const Q=GE(V);return l&&O3(Q),Q})(),e2(W,h.value,p.value);function pn(){return[h.value,p.value,C.value,_.value,x.value]}const ve=n.computed({get:()=>h.value,set:V=>{h.value=V,W.locale=h.value}}),an=n.computed({get:()=>p.value,set:V=>{p.value=V,W.fallbackLocale=p.value,e2(W,h.value,V)}}),S1=n.computed(()=>C.value),Wt=n.computed(()=>_.value),e1=n.computed(()=>x.value);function Un(){return Pe(T)?T:null}function Tn(V){T=V,W.postTranslation=V}function Qt(){return $}function T1(V){V!==null&&(B=h5(V)),$=V,W.missing=B}function Cn(V,Q){return V!=="translate"||!Q.resolvedMessage}const Vn=(V,Q,Ae,Qe,t1,Mt)=>{pn();let H1;try{(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&WE(_N()),l||(W.fallbackContext=t?qE():void 0),H1=V(W)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,l||(W.fallbackContext=void 0)}if(Ae!=="translate exists"&&sn(H1)&&H1===aa||Ae==="translate exists"&&!H1){const[k1,f2]=Q();if(process.env.NODE_ENV!=="production"&&t&&K(k1)&&Cn(Ae,f2)&&(I&&(sa(O,k1)||j3(N,k1))&&rn(Ln(Xe.FALLBACK_TO_ROOT,{key:k1,type:Ae})),process.env.NODE_ENV!=="production")){const{__v_emitter:Ai}=W;Ai&&I&&Ai.emit("fallback",{type:Ae,key:k1,to:"global",groupId:`${Ae}:${k1}`})}return t&&I?Qe(t):t1(k1)}else{if(Mt(H1))return H1;throw ln(Be.UNEXPECTED_RETURN_TYPE)}};function kt(...V){return Vn(Q=>Reflect.apply(W3,null,[Q,...V]),()=>ts(...V),"translate",Q=>Reflect.apply(Q.t,Q,[...V]),Q=>Q,Q=>K(Q))}function Ct(...V){const[Q,Ae,Qe]=V;if(Qe&&!Te(Qe))throw ln(Be.INVALID_ARGUMENT);return kt(Q,Ae,mn({resolvedMessage:!0},Qe||{}))}function n1(...V){return Vn(Q=>Reflect.apply(J3,null,[Q,...V]),()=>is(...V),"datetime format",Q=>Reflect.apply(Q.d,Q,[...V]),()=>oa,Q=>K(Q))}function V1(...V){return Vn(Q=>Reflect.apply(e5,null,[Q,...V]),()=>as(...V),"number format",Q=>Reflect.apply(Q.n,Q,[...V]),()=>oa,Q=>K(Q))}function qt(V){return V.map(Q=>K(Q)||sn(Q)||_e(Q)?d5(String(Q)):Q)}const w1={normalize:qt,interpolate:V=>V,type:"vnode"};function vt(...V){return Vn(Q=>{let Ae;const Qe=Q;try{Qe.processor=w1,Ae=Reflect.apply(W3,null,[Qe,...V])}finally{Qe.processor=null}return Ae},()=>ts(...V),"translate",Q=>Q[ss](...V),Q=>[d5(Q)],Q=>Re(Q))}function I1(...V){return Vn(Q=>Reflect.apply(e5,null,[Q,...V]),()=>as(...V),"number format",Q=>Q[ls](...V),u5,Q=>K(Q)||Re(Q))}function O1(...V){return Vn(Q=>Reflect.apply(J3,null,[Q,...V]),()=>is(...V),"datetime format",Q=>Q[rs](...V),u5,Q=>K(Q)||Re(Q))}function xt(V){X=V,W.pluralRules=X}function q(V,Q){return Vn(()=>{if(!V)return!1;const Ae=K(Q)?Q:h.value,Qe=yn(Ae),t1=W.messageResolver(Qe,V);return f?t1!=null:gt(t1)||$n(t1)||K(t1)},()=>[V],"translate exists",Ae=>Reflect.apply(Ae.te,Ae,[V,Q]),gN,Ae=>_e(Ae))}function xe(V){let Q=null;const Ae=E3(W,p.value,h.value);for(let Qe=0;Qe<Ae.length;Qe++){const t1=C.value[Ae[Qe]]||{},Mt=W.messageResolver(t1,V);if(Mt!=null){Q=Mt;break}}return Q}function Gt(V){const Q=xe(V);return Q??(t?t.tm(V)||{}:{})}function yn(V){return C.value[V]||{}}function bt(V,Q){if(r){const Ae={[V]:Q};for(const Qe in Ae)$2(Ae,Qe)&&t2(Ae[Qe]);Q=Ae[V]}C.value[V]=Q,W.messages=C.value}function d2(V,Q){C.value[V]=C.value[V]||{};const Ae={[V]:Q};if(r)for(const Qe in Ae)$2(Ae,Qe)&&t2(Ae[Qe]);Q=Ae[V],na(Q,C.value[V]),W.messages=C.value}function b(V){return _.value[V]||{}}function D(V,Q){_.value[V]=Q,W.datetimeFormats=_.value,K3(W,V,Q)}function R(V,Q){_.value[V]=mn(_.value[V]||{},Q),W.datetimeFormats=_.value,K3(W,V,Q)}function se(V){return x.value[V]||{}}function we(V,Q){x.value[V]=Q,W.numberFormats=x.value,t5(W,V,Q)}function Se(V,Q){x.value[V]=mn(x.value[V]||{},Q),W.numberFormats=x.value,t5(W,V,Q)}m5++,t&&p1&&(n.watch(t.locale,V=>{u&&(h.value=V,W.locale=V,e2(W,h.value,p.value))}),n.watch(t.fallbackLocale,V=>{u&&(p.value=V,W.fallbackLocale=V,e2(W,h.value,p.value))}));const Ie={id:m5,locale:ve,fallbackLocale:an,get inheritLocale(){return u},set inheritLocale(V){u=V,V&&t&&(h.value=t.locale.value,p.value=t.fallbackLocale.value,e2(W,h.value,p.value))},get availableLocales(){return Object.keys(C.value).sort()},messages:S1,get modifiers(){return H},get pluralRules(){return X||{}},get isGlobal(){return l},get missingWarn(){return N},set missingWarn(V){N=V,W.missingWarn=N},get fallbackWarn(){return O},set fallbackWarn(V){O=V,W.fallbackWarn=O},get fallbackRoot(){return I},set fallbackRoot(V){I=V},get fallbackFormat(){return U},set fallbackFormat(V){U=V,W.fallbackFormat=U},get warnHtmlMessage(){return Z},set warnHtmlMessage(V){Z=V,W.warnHtmlMessage=V},get escapeParameter(){return S},set escapeParameter(V){S=V,W.escapeParameter=V},t:kt,getLocaleMessage:yn,setLocaleMessage:bt,mergeLocaleMessage:d2,getPostTranslationHandler:Un,setPostTranslationHandler:Tn,getMissingHandler:Qt,setMissingHandler:T1,[s5]:xt};return Ie.datetimeFormats=Wt,Ie.numberFormats=e1,Ie.rt=Ct,Ie.te=q,Ie.tm=Gt,Ie.d=n1,Ie.n=V1,Ie.getDateTimeFormat=b,Ie.setDateTimeFormat=D,Ie.mergeDateTimeFormat=R,Ie.getNumberFormat=se,Ie.setNumberFormat=we,Ie.mergeNumberFormat=Se,Ie[r5]=o,Ie[ss]=vt,Ie[rs]=O1,Ie[ls]=I1,process.env.NODE_ENV!=="production"&&(Ie[Yt]=V=>{W.__v_emitter=V},Ie[n2]=()=>{W.__v_emitter=void 0}),Ie}function wN(e){const i=K(e.locale)?e.locale:wi,t=K(e.fallbackLocale)||Re(e.fallbackLocale)||ue(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,o=Pe(e.missing)?e.missing:void 0,l=_e(e.silentTranslationWarn)||ht(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,r=_e(e.silentFallbackWarn)||ht(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,c=_e(e.fallbackRoot)?e.fallbackRoot:!0,f=!!e.formatFallbackMessages,u=ue(e.modifiers)?e.modifiers:{},h=e.pluralizationRules,p=Pe(e.postTranslation)?e.postTranslation:void 0,C=K(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,_=!!e.escapeParameterHtml,x=_e(e.sync)?e.sync:!0;process.env.NODE_ENV!=="production"&&e.formatter&&rn(Ln(Xe.NOT_SUPPORTED_FORMATTER)),process.env.NODE_ENV!=="production"&&e.preserveDirectiveContent&&rn(Ln(Xe.NOT_SUPPORTED_PRESERVE_DIRECTIVE));let N=e.messages;if(ue(e.sharedMessages)){const S=e.sharedMessages;N=Object.keys(S).reduce((X,W)=>{const Le=X[W]||(X[W]={});return mn(Le,S[W]),X},N||{})}const{__i18n:O,__root:I,__injectWithOption:U}=e,$=e.datetimeFormats,B=e.numberFormats,T=e.flatJson,Z=e.translateExistCompatible;return{locale:i,fallbackLocale:t,messages:N,flatJson:T,datetimeFormats:$,numberFormats:B,missing:o,missingWarn:l,fallbackWarn:r,fallbackRoot:c,fallbackFormat:f,modifiers:u,pluralRules:h,postTranslation:p,warnHtmlMessage:C,escapeParameter:_,messageResolver:e.messageResolver,inheritLocale:x,translateExistCompatible:Z,__i18n:O,__root:I,__injectWithOption:U}}function fs(e={},i){{const t=ds(wN(e)),{__extender:o}=e,l={id:t.id,get locale(){return t.locale.value},set locale(r){t.locale.value=r},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(r){t.fallbackLocale.value=r},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get formatter(){return process.env.NODE_ENV!=="production"&&rn(Ln(Xe.NOT_SUPPORTED_FORMATTER)),{interpolate(){return[]}}},set formatter(r){process.env.NODE_ENV!=="production"&&rn(Ln(Xe.NOT_SUPPORTED_FORMATTER))},get missing(){return t.getMissingHandler()},set missing(r){t.setMissingHandler(r)},get silentTranslationWarn(){return _e(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(r){t.missingWarn=_e(r)?!r:r},get silentFallbackWarn(){return _e(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(r){t.fallbackWarn=_e(r)?!r:r},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(r){t.fallbackFormat=r},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(r){t.setPostTranslationHandler(r)},get sync(){return t.inheritLocale},set sync(r){t.inheritLocale=r},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(r){t.warnHtmlMessage=r!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(r){t.escapeParameter=r},get preserveDirectiveContent(){return process.env.NODE_ENV!=="production"&&rn(Ln(Xe.NOT_SUPPORTED_PRESERVE_DIRECTIVE)),!0},set preserveDirectiveContent(r){process.env.NODE_ENV!=="production"&&rn(Ln(Xe.NOT_SUPPORTED_PRESERVE_DIRECTIVE))},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...r){const[c,f,u]=r,h={};let p=null,C=null;if(!K(c))throw ln(Be.INVALID_ARGUMENT);const _=c;return K(f)?h.locale=f:Re(f)?p=f:ue(f)&&(C=f),Re(u)?p=u:ue(u)&&(C=u),Reflect.apply(t.t,t,[_,p||C||{},h])},rt(...r){return Reflect.apply(t.rt,t,[...r])},tc(...r){const[c,f,u]=r,h={plural:1};let p=null,C=null;if(!K(c))throw ln(Be.INVALID_ARGUMENT);const _=c;return K(f)?h.locale=f:sn(f)?h.plural=f:Re(f)?p=f:ue(f)&&(C=f),K(u)?h.locale=u:Re(u)?p=u:ue(u)&&(C=u),Reflect.apply(t.t,t,[_,p||C||{},h])},te(r,c){return t.te(r,c)},tm(r){return t.tm(r)},getLocaleMessage(r){return t.getLocaleMessage(r)},setLocaleMessage(r,c){t.setLocaleMessage(r,c)},mergeLocaleMessage(r,c){t.mergeLocaleMessage(r,c)},d(...r){return Reflect.apply(t.d,t,[...r])},getDateTimeFormat(r){return t.getDateTimeFormat(r)},setDateTimeFormat(r,c){t.setDateTimeFormat(r,c)},mergeDateTimeFormat(r,c){t.mergeDateTimeFormat(r,c)},n(...r){return Reflect.apply(t.n,t,[...r])},getNumberFormat(r){return t.getNumberFormat(r)},setNumberFormat(r,c){t.setNumberFormat(r,c)},mergeNumberFormat(r,c){t.mergeNumberFormat(r,c)},getChoiceIndex(r,c){return process.env.NODE_ENV!=="production"&&rn(Ln(Xe.NOT_SUPPORTED_GET_CHOICE_INDEX)),-1}};return l.__extender=o,process.env.NODE_ENV!=="production"&&(l.__enableEmitter=r=>{const c=t;c[Yt]&&c[Yt](r)},l.__disableEmitter=()=>{const r=t;r[n2]&&r[n2]()}),l}}const us={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function kN({slots:e},i){return i.length===1&&i[0]==="default"?(e.default?e.default():[]).reduce((o,l)=>[...o,...l.type===n.Fragment?l.children:[l]],[]):i.reduce((t,o)=>{const l=e[o];return l&&(t[o]=l()),t},{})}function p5(e){return n.Fragment}const ms=n.defineComponent({name:"i18n-t",props:mn({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>sn(e)||!isNaN(e)}},us),setup(e,i){const{slots:t,attrs:o}=i,l=e.i18n||gs({useScope:e.scope,__useComponent:!0});return()=>{const r=Object.keys(t).filter(C=>C!=="_"),c={};e.locale&&(c.locale=e.locale),e.plural!==void 0&&(c.plural=K(e.plural)?+e.plural:e.plural);const f=kN(i,r),u=l[ss](e.keypath,f,c),h=mn({},o),p=K(e.tag)||Te(e.tag)?e.tag:p5();return n.h(p,h,u)}}});function CN(e){return Re(e)&&!K(e[0])}function y5(e,i,t,o){const{slots:l,attrs:r}=i;return()=>{const c={part:!0};let f={};e.locale&&(c.locale=e.locale),K(e.format)?c.key=e.format:Te(e.format)&&(K(e.format.key)&&(c.key=e.format.key),f=Object.keys(e.format).reduce((_,x)=>t.includes(x)?mn({},_,{[x]:e.format[x]}):_,{}));const u=o(e.value,c,f);let h=[c.key];Re(u)?h=u.map((_,x)=>{const N=l[_.type],O=N?N({[_.type]:_.value,index:x,parts:u}):[_.value];return CN(O)&&(O[0].key=`${_.type}-${x}`),O}):K(u)&&(h=[u]);const p=mn({},r),C=K(e.tag)||Te(e.tag)?e.tag:p5();return n.h(C,p,h)}}const g5=n.defineComponent({name:"i18n-n",props:mn({value:{type:Number,required:!0},format:{type:[String,Object]}},us),setup(e,i){const t=e.i18n||gs({useScope:e.scope,__useComponent:!0});return y5(e,i,n5,(...o)=>t[ls](...o))}}),_5=n.defineComponent({name:"i18n-d",props:mn({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},us),setup(e,i){const t=e.i18n||gs({useScope:e.scope,__useComponent:!0});return y5(e,i,$3,(...o)=>t[rs](...o))}});function vN(e,i){const t=e;if(e.mode==="composition")return t.__getInstance(i)||e.global;{const o=t.__getInstance(i);return o!=null?o.__composer:e.global.__composer}}function xN(e){const i=c=>{const{instance:f,modifiers:u,value:h}=c;if(!f||!f.$)throw ln(Be.UNEXPECTED_ERROR);const p=vN(e,f.$);process.env.NODE_ENV!=="production"&&u.preserve&&rn(Ln(Xe.NOT_SUPPORTED_PRESERVE));const C=w5(h);return[Reflect.apply(p.t,p,[...k5(C)]),p]};return{created:(c,f)=>{const[u,h]=i(f);p1&&e.global===h&&(c.__i18nWatcher=n.watch(h.locale,()=>{f.instance&&f.instance.$forceUpdate()})),c.__composer=h,c.textContent=u},unmounted:c=>{p1&&c.__i18nWatcher&&(c.__i18nWatcher(),c.__i18nWatcher=void 0,delete c.__i18nWatcher),c.__composer&&(c.__composer=void 0,delete c.__composer)},beforeUpdate:(c,{value:f})=>{if(c.__composer){const u=c.__composer,h=w5(f);c.textContent=Reflect.apply(u.t,u,[...k5(h)])}},getSSRProps:c=>{const[f]=i(c);return{textContent:f}}}}function w5(e){if(K(e))return{path:e};if(ue(e)){if(!("path"in e))throw ln(Be.REQUIRED_VALUE,"path");return e}else throw ln(Be.INVALID_VALUE)}function k5(e){const{path:i,locale:t,args:o,choice:l,plural:r}=e,c={},f=o||{};return K(t)&&(c.locale=t),sn(l)&&(c.plural=l),sn(r)&&(c.plural=r),[i,f,c]}function bN(e,i,...t){const o=ue(t[0])?t[0]:{},l=!!o.useI18nComponentName,r=_e(o.globalInstall)?o.globalInstall:!0;process.env.NODE_ENV!=="production"&&r&&l&&rn(Ln(Xe.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:ms.name})),r&&([l?"i18n":ms.name,"I18nT"].forEach(c=>e.component(c,ms)),[g5.name,"I18nN"].forEach(c=>e.component(c,g5)),[_5.name,"I18nD"].forEach(c=>e.component(c,_5))),e.directive("t",xN(i))}const hs={["vue-devtools-plugin-vue-i18n"]:"Vue I18n devtools",["vue-i18n-resource-inspector"]:"I18n Resources",["vue-i18n-timeline"]:"Vue I18n"},MN={["vue-i18n-resource-inspector"]:"Search for scopes ..."},DN={["vue-i18n-timeline"]:16764185},C5="vue-i18n: composer properties";let ps;async function AN(e,i){return new Promise((t,o)=>{try{uN({id:"vue-devtools-plugin-vue-i18n",label:hs["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[C5],app:e},l=>{ps=l,l.on.visitComponentTree(({componentInstance:c,treeNode:f})=>{EN(c,f,i)}),l.on.inspectComponent(({componentInstance:c,instanceData:f})=>{c.vnode.el&&c.vnode.el.__VUE_I18N__&&f&&(i.mode==="legacy"?c.vnode.el.__VUE_I18N__!==i.global.__composer&&x5(f,c.vnode.el.__VUE_I18N__):x5(f,c.vnode.el.__VUE_I18N__))}),l.addInspector({id:"vue-i18n-resource-inspector",label:hs["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:MN["vue-i18n-resource-inspector"]}),l.on.getInspectorTree(c=>{c.app===e&&c.inspectorId==="vue-i18n-resource-inspector"&&TN(c,i)});const r=new Map;l.on.getInspectorState(async c=>{if(c.app===e&&c.inspectorId==="vue-i18n-resource-inspector")if(l.unhighlightElement(),zN(c,i),c.nodeId==="global"){if(!r.has(c.app)){const[f]=await l.getComponentInstances(c.app);r.set(c.app,f)}l.highlightElement(r.get(c.app))}else{const f=VN(c.nodeId,i);f&&l.highlightElement(f)}}),l.on.editInspectorState(c=>{c.app===e&&c.inspectorId==="vue-i18n-resource-inspector"&&ON(c,i)}),l.addTimelineLayer({id:"vue-i18n-timeline",label:hs["vue-i18n-timeline"],color:DN["vue-i18n-timeline"]}),t(!0)})}catch(l){console.error(l),o(!1)}})}function v5(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function EN(e,i,t){const o=t.mode==="composition"?t.global:t.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==o){const l={label:`i18n (${v5(e)} Scope)`,textColor:0,backgroundColor:16764185};i.tags.push(l)}}function x5(e,i){const t=C5;e.state.push({type:t,key:"locale",editable:!0,value:i.locale.value}),e.state.push({type:t,key:"availableLocales",editable:!1,value:i.availableLocales}),e.state.push({type:t,key:"fallbackLocale",editable:!0,value:i.fallbackLocale.value}),e.state.push({type:t,key:"inheritLocale",editable:!0,value:i.inheritLocale}),e.state.push({type:t,key:"messages",editable:!1,value:ys(i.messages.value)}),e.state.push({type:t,key:"datetimeFormats",editable:!1,value:i.datetimeFormats.value}),e.state.push({type:t,key:"numberFormats",editable:!1,value:i.numberFormats.value})}function ys(e){const i={};return Object.keys(e).forEach(t=>{const o=e[t];Pe(o)&&"source"in o?i[t]=SN(o):gt(o)&&o.loc&&o.loc.source?i[t]=o.loc.source:Te(o)?i[t]=ys(o):i[t]=o}),i}const NN={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function BN(e){return e.replace(/[<>"&]/g,LN)}function LN(e){return NN[e]||e}function SN(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${BN(e.source)}")`:"(?)"}`}}}function TN(e,i){e.rootNodes.push({id:"global",label:"Global Scope"});const t=i.mode==="composition"?i.global:i.global.__composer;for(const[o,l]of i.__instances){const r=i.mode==="composition"?l:l.__composer;t!==r&&e.rootNodes.push({id:r.id.toString(),label:`${v5(o)} Scope`})}}function VN(e,i){let t=null;if(e!=="global"){for(const[o,l]of i.__instances.entries())if(l.id.toString()===e){t=o;break}}return t}function b5(e,i){if(e==="global")return i.mode==="composition"?i.global:i.global.__composer;{const t=Array.from(i.__instances.values()).find(o=>o.id.toString()===e);return t?i.mode==="composition"?t:t.__composer:null}}function zN(e,i){const t=b5(e.nodeId,i);return t&&(e.state=IN(t)),null}function IN(e){const i={},t="Locale related info",o=[{type:t,key:"locale",editable:!0,value:e.locale.value},{type:t,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:t,key:"availableLocales",editable:!1,value:e.availableLocales},{type:t,key:"inheritLocale",editable:!0,value:e.inheritLocale}];i[t]=o;const l="Locale messages info",r=[{type:l,key:"messages",editable:!1,value:ys(e.messages.value)}];i[l]=r;{const c="Datetime formats info",f=[{type:c,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];i[c]=f;const u="Datetime formats info",h=[{type:u,key:"numberFormats",editable:!1,value:e.numberFormats.value}];i[u]=h}return i}function i2(e,i){if(ps){let t;i&&"groupId"in i&&(t=i.groupId,delete i.groupId),ps.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:t,time:Date.now(),meta:{},data:i||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function ON(e,i){const t=b5(e.nodeId,i);if(t){const[o]=e.path;o==="locale"&&K(e.state.value)?t.locale.value=e.state.value:o==="fallbackLocale"&&(K(e.state.value)||Re(e.state.value)||Te(e.state.value))?t.fallbackLocale.value=e.state.value:o==="inheritLocale"&&_e(e.state.value)&&(t.inheritLocale=e.state.value)}}function HN(e,i,t){return{beforeCreate(){const o=n.getCurrentInstance();if(!o)throw ln(Be.UNEXPECTED_ERROR);const l=this.$options;if(l.i18n){const r=l.i18n;if(l.__i18n&&(r.__i18n=l.__i18n),r.__root=i,this===this.$root)this.$i18n=M5(e,r);else{r.__injectWithOption=!0,r.__extender=t.__vueI18nExtend,this.$i18n=fs(r);const c=this.$i18n;c.__extender&&(c.__disposer=c.__extender(this.$i18n))}}else if(l.__i18n)if(this===this.$root)this.$i18n=M5(e,l);else{this.$i18n=fs({__i18n:l.__i18n,__injectWithOption:!0,__extender:t.__vueI18nExtend,__root:i});const r=this.$i18n;r.__extender&&(r.__disposer=r.__extender(this.$i18n))}else this.$i18n=e;l.__i18nGlobal&&c5(i,l,l),this.$t=(...r)=>this.$i18n.t(...r),this.$rt=(...r)=>this.$i18n.rt(...r),this.$tc=(...r)=>this.$i18n.tc(...r),this.$te=(r,c)=>this.$i18n.te(r,c),this.$d=(...r)=>this.$i18n.d(...r),this.$n=(...r)=>this.$i18n.n(...r),this.$tm=r=>this.$i18n.tm(r),t.__setInstance(o,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$el&&this.$i18n){const o=this.$i18n;this.$el.__VUE_I18N__=o.__composer;const l=this.__v_emitter=Go();o.__enableEmitter&&o.__enableEmitter(l),l.on("*",i2)}},unmounted(){const o=n.getCurrentInstance();if(!o)throw ln(Be.UNEXPECTED_ERROR);const l=this.$i18n;process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",i2),delete this.__v_emitter),this.$i18n&&(l.__disableEmitter&&l.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,l.__disposer&&(l.__disposer(),delete l.__disposer,delete l.__extender),t.__deleteInstance(o),delete this.$i18n}}}function M5(e,i){e.locale=i.locale||e.locale,e.fallbackLocale=i.fallbackLocale||e.fallbackLocale,e.missing=i.missing||e.missing,e.silentTranslationWarn=i.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=i.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=i.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=i.postTranslation||e.postTranslation,e.warnHtmlInMessage=i.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=i.escapeParameterHtml||e.escapeParameterHtml,e.sync=i.sync||e.sync,e.__composer[s5](i.pluralizationRules||e.pluralizationRules);const t=ra(e.locale,{messages:i.messages,__i18n:i.__i18n});return Object.keys(t).forEach(o=>e.mergeLocaleMessage(o,t[o])),i.datetimeFormats&&Object.keys(i.datetimeFormats).forEach(o=>e.mergeDateTimeFormat(o,i.datetimeFormats[o])),i.numberFormats&&Object.keys(i.numberFormats).forEach(o=>e.mergeNumberFormat(o,i.numberFormats[o])),e}const jN=N1("global-vue-i18n");function FN(e={},i){const t=__VUE_I18N_LEGACY_API__&&_e(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,o=_e(e.globalInjection)?e.globalInjection:!0,l=__VUE_I18N_LEGACY_API__&&t?!!e.allowComposition:!0,r=new Map,[c,f]=PN(e,t),u=N1(process.env.NODE_ENV!=="production"?"vue-i18n":"");process.env.NODE_ENV!=="production"&&t&&l&&rn(Ln(Xe.NOTICE_DROP_ALLOW_COMPOSITION));function h(_){return r.get(_)||null}function p(_,x){r.set(_,x)}function C(_){r.delete(_)}{const _={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},get allowComposition(){return l},async install(x,...N){if(process.env.NODE_ENV!=="production"&&(x.__VUE_I18N__=_),x.__VUE_I18N_SYMBOL__=u,x.provide(x.__VUE_I18N_SYMBOL__,_),ue(N[0])){const U=N[0];_.__composerExtend=U.__composerExtend,_.__vueI18nExtend=U.__vueI18nExtend}let O=null;!t&&o&&(O=XN(x,_.global)),__VUE_I18N_FULL_INSTALL__&&bN(x,_,...N),__VUE_I18N_LEGACY_API__&&t&&x.mixin(HN(f,f.__composer,_));const I=x.unmount;if(x.unmount=()=>{O&&O(),_.dispose(),I()},process.env.NODE_ENV!=="production"){if(!await AN(x,_))throw ln(Be.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const $=Go();if(t){const B=f;B.__enableEmitter&&B.__enableEmitter($)}else{const B=f;B[Yt]&&B[Yt]($)}$.on("*",i2)}},get global(){return f},dispose(){c.stop()},__instances:r,__getInstance:h,__setInstance:p,__deleteInstance:C};return _}}function gs(e={}){const i=n.getCurrentInstance();if(i==null)throw ln(Be.MUST_BE_CALL_SETUP_TOP);if(!i.isCE&&i.appContext.app!=null&&!i.appContext.app.__VUE_I18N_SYMBOL__)throw ln(Be.NOT_INSTALLED);const t=UN(i),o=YN(t),l=l5(i),r=RN(e,l);if(__VUE_I18N_LEGACY_API__&&t.mode==="legacy"&&!e.__useComponent){if(!t.allowComposition)throw ln(Be.NOT_AVAILABLE_IN_LEGACY_MODE);return qN(i,r,o,e)}if(r==="global")return c5(o,e,l),o;if(r==="parent"){let u=ZN(t,i,e.__useComponent);return u==null&&(process.env.NODE_ENV!=="production"&&rn(Ln(Xe.NOT_FOUND_PARENT_SCOPE)),u=o),u}const c=t;let f=c.__getInstance(i);if(f==null){const u=mn({},e);"__i18n"in l&&(u.__i18n=l.__i18n),o&&(u.__root=o),f=ds(u),c.__composerExtend&&(f[cs]=c.__composerExtend(f)),QN(c,i,f),c.__setInstance(i,f)}return f}function PN(e,i,t){const o=n.effectScope();{const l=__VUE_I18N_LEGACY_API__&&i?o.run(()=>fs(e)):o.run(()=>ds(e));if(l==null)throw ln(Be.UNEXPECTED_ERROR);return[o,l]}}function UN(e){{const i=n.inject(e.isCE?jN:e.appContext.app.__VUE_I18N_SYMBOL__);if(!i)throw ln(e.isCE?Be.NOT_INSTALLED_WITH_PROVIDE:Be.UNEXPECTED_ERROR);return i}}function RN(e,i){return J2(e)?"__i18n"in i?"local":"global":e.useScope?e.useScope:"local"}function YN(e){return e.mode==="composition"?e.global:e.global.__composer}function ZN(e,i,t=!1){let o=null;const l=i.root;let r=WN(i,t);for(;r!=null;){const c=e;if(e.mode==="composition")o=c.__getInstance(r);else if(__VUE_I18N_LEGACY_API__){const f=c.__getInstance(r);f!=null&&(o=f.__composer,t&&o&&!o[r5]&&(o=null))}if(o!=null||l===r)break;r=r.parent}return o}function WN(e,i=!1){return e==null?null:i&&e.vnode.ctx||e.parent}function QN(e,i,t){let o=null;n.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&i.vnode.el){i.vnode.el.__VUE_I18N__=t,o=Go();const l=t;l[Yt]&&l[Yt](o),o.on("*",i2)}},i),n.onUnmounted(()=>{const l=t;process.env.NODE_ENV!=="production"&&i.vnode.el&&i.vnode.el.__VUE_I18N__&&(o&&o.off("*",i2),l[n2]&&l[n2](),delete i.vnode.el.__VUE_I18N__),e.__deleteInstance(i);const r=l[cs];r&&(r(),delete l[cs])},i)}function qN(e,i,t,o={}){const l=i==="local",r=n.shallowRef(null);if(l&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw ln(Be.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const c=_e(o.inheritLocale)?o.inheritLocale:!K(o.locale),f=n.ref(!l||c?t.locale.value:K(o.locale)?o.locale:wi),u=n.ref(!l||c?t.fallbackLocale.value:K(o.fallbackLocale)||Re(o.fallbackLocale)||ue(o.fallbackLocale)||o.fallbackLocale===!1?o.fallbackLocale:f.value),h=n.ref(ra(f.value,o)),p=n.ref(ue(o.datetimeFormats)?o.datetimeFormats:{[f.value]:{}}),C=n.ref(ue(o.numberFormats)?o.numberFormats:{[f.value]:{}}),_=l?t.missingWarn:_e(o.missingWarn)||ht(o.missingWarn)?o.missingWarn:!0,x=l?t.fallbackWarn:_e(o.fallbackWarn)||ht(o.fallbackWarn)?o.fallbackWarn:!0,N=l?t.fallbackRoot:_e(o.fallbackRoot)?o.fallbackRoot:!0,O=!!o.fallbackFormat,I=Pe(o.missing)?o.missing:null,U=Pe(o.postTranslation)?o.postTranslation:null,$=l?t.warnHtmlMessage:_e(o.warnHtmlMessage)?o.warnHtmlMessage:!0,B=!!o.escapeParameter,T=l?t.modifiers:ue(o.modifiers)?o.modifiers:{},Z=o.pluralRules||l&&t.pluralRules;function S(){return[f.value,u.value,h.value,p.value,C.value]}const H=n.computed({get:()=>r.value?r.value.locale.value:f.value,set:q=>{r.value&&(r.value.locale.value=q),f.value=q}}),X=n.computed({get:()=>r.value?r.value.fallbackLocale.value:u.value,set:q=>{r.value&&(r.value.fallbackLocale.value=q),u.value=q}}),W=n.computed(()=>r.value?r.value.messages.value:h.value),Le=n.computed(()=>p.value),pn=n.computed(()=>C.value);function ve(){return r.value?r.value.getPostTranslationHandler():U}function an(q){r.value&&r.value.setPostTranslationHandler(q)}function S1(){return r.value?r.value.getMissingHandler():I}function Wt(q){r.value&&r.value.setMissingHandler(q)}function e1(q){return S(),q()}function Un(...q){return r.value?e1(()=>Reflect.apply(r.value.t,null,[...q])):e1(()=>"")}function Tn(...q){return r.value?Reflect.apply(r.value.rt,null,[...q]):""}function Qt(...q){return r.value?e1(()=>Reflect.apply(r.value.d,null,[...q])):e1(()=>"")}function T1(...q){return r.value?e1(()=>Reflect.apply(r.value.n,null,[...q])):e1(()=>"")}function Cn(q){return r.value?r.value.tm(q):{}}function Vn(q,xe){return r.value?r.value.te(q,xe):!1}function kt(q){return r.value?r.value.getLocaleMessage(q):{}}function Ct(q,xe){r.value&&(r.value.setLocaleMessage(q,xe),h.value[q]=xe)}function n1(q,xe){r.value&&r.value.mergeLocaleMessage(q,xe)}function V1(q){return r.value?r.value.getDateTimeFormat(q):{}}function qt(q,xe){r.value&&(r.value.setDateTimeFormat(q,xe),p.value[q]=xe)}function z1(q,xe){r.value&&r.value.mergeDateTimeFormat(q,xe)}function w1(q){return r.value?r.value.getNumberFormat(q):{}}function vt(q,xe){r.value&&(r.value.setNumberFormat(q,xe),C.value[q]=xe)}function I1(q,xe){r.value&&r.value.mergeNumberFormat(q,xe)}const O1={get id(){return r.value?r.value.id:-1},locale:H,fallbackLocale:X,messages:W,datetimeFormats:Le,numberFormats:pn,get inheritLocale(){return r.value?r.value.inheritLocale:c},set inheritLocale(q){r.value&&(r.value.inheritLocale=q)},get availableLocales(){return r.value?r.value.availableLocales:Object.keys(h.value)},get modifiers(){return r.value?r.value.modifiers:T},get pluralRules(){return r.value?r.value.pluralRules:Z},get isGlobal(){return r.value?r.value.isGlobal:!1},get missingWarn(){return r.value?r.value.missingWarn:_},set missingWarn(q){r.value&&(r.value.missingWarn=q)},get fallbackWarn(){return r.value?r.value.fallbackWarn:x},set fallbackWarn(q){r.value&&(r.value.missingWarn=q)},get fallbackRoot(){return r.value?r.value.fallbackRoot:N},set fallbackRoot(q){r.value&&(r.value.fallbackRoot=q)},get fallbackFormat(){return r.value?r.value.fallbackFormat:O},set fallbackFormat(q){r.value&&(r.value.fallbackFormat=q)},get warnHtmlMessage(){return r.value?r.value.warnHtmlMessage:$},set warnHtmlMessage(q){r.value&&(r.value.warnHtmlMessage=q)},get escapeParameter(){return r.value?r.value.escapeParameter:B},set escapeParameter(q){r.value&&(r.value.escapeParameter=q)},t:Un,getPostTranslationHandler:ve,setPostTranslationHandler:an,getMissingHandler:S1,setMissingHandler:Wt,rt:Tn,d:Qt,n:T1,tm:Cn,te:Vn,getLocaleMessage:kt,setLocaleMessage:Ct,mergeLocaleMessage:n1,getDateTimeFormat:V1,setDateTimeFormat:qt,mergeDateTimeFormat:z1,getNumberFormat:w1,setNumberFormat:vt,mergeNumberFormat:I1};function xt(q){q.locale.value=f.value,q.fallbackLocale.value=u.value,Object.keys(h.value).forEach(xe=>{q.mergeLocaleMessage(xe,h.value[xe])}),Object.keys(p.value).forEach(xe=>{q.mergeDateTimeFormat(xe,p.value[xe])}),Object.keys(C.value).forEach(xe=>{q.mergeNumberFormat(xe,C.value[xe])}),q.escapeParameter=B,q.fallbackFormat=O,q.fallbackRoot=N,q.fallbackWarn=x,q.missingWarn=_,q.warnHtmlMessage=$}return n.onBeforeMount(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw ln(Be.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const q=r.value=e.proxy.$i18n.__composer;i==="global"?(f.value=q.locale.value,u.value=q.fallbackLocale.value,h.value=q.messages.value,p.value=q.datetimeFormats.value,C.value=q.numberFormats.value):l&&xt(q)}),O1}const GN=["locale","fallbackLocale","availableLocales"],D5=["t","rt","d","n","tm","te"];function XN(e,i){const t=Object.create(null);return GN.forEach(l=>{const r=Object.getOwnPropertyDescriptor(i,l);if(!r)throw ln(Be.UNEXPECTED_ERROR);const c=n.isRef(r.value)?{get(){return r.value.value},set(f){r.value.value=f}}:{get(){return r.get&&r.get()}};Object.defineProperty(t,l,c)}),e.config.globalProperties.$i18n=t,D5.forEach(l=>{const r=Object.getOwnPropertyDescriptor(i,l);if(!r||!r.value)throw ln(Be.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${l}`,r)}),()=>{delete e.config.globalProperties.$i18n,D5.forEach(l=>{delete e.config.globalProperties[`$${l}`]})}}if(hN(),__INTLIFY_JIT_COMPILATION__?S3(KE):S3($E),YE(bE),ZE(E3),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=J1();e.__INTLIFY__=!0,TE(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const JN={upload_area:{title:{text:"Drag your file here or",highlight:"search it"},invalid:{subtitle:"File not supported, select supported formats:"},subtitle:"Supported formats:"},import_card:{importing:"Importing"},audio_recorder:{discard_button:"Discard"},chat_message:{reply_message:{you:"You",video:"Video",image:"Image",audio:"Audio message"}}},$N={upload_area:{title:{text:"Arrastra tu archivo aquí o",highlight:"búscalo"},invalid:{subtitle:"Archivo no compatible, seleccione los formatos compatibles:"},subtitle:"Formatos compatibles:"},import_card:{importing:"Importando"},audio_recorder:{discard_button:"Descartar"},chat_message:{reply_message:{you:"Tú",video:"Vídeo",image:"Imagen",audio:"Mensaje de audio"}}},A5={upload_area:{title:{text:"Arraste seu arquivo aqui, ou",highlight:"procure-o"},invalid:{subtitle:"Arquivo não compatível, selecione formatos suportados:"},subtitle:"Formatos suportados:"},import_card:{importing:"Importando"},audio_recorder:{discard_button:"Descartar"},chat_message:{reply_message:{you:"Você",video:"Vídeo",image:"Imagem",audio:"Mensagem de áudio"}}},KN=Object.assign({en:JN,es:$N,"pt-br":A5,"pt-BR":A5}),_s=FN({locale:"en",fallbackLocale:"en",messages:KN}),Pn={props:{locale:{type:String},translations:{type:Object}},methods:{i18n(...e){const[i,t]=e,o=Object.keys(_s.global.messages);let{locale:l}=this;const r=pi.get(_s,"global.locale")==="en-us"?"en":pi.get(_s,"global.locale");l=o.includes(l)?l:r,l=l==null?void 0:l.toLowerCase();let c=pi.get(this.translations,`${i}.${l}`,pi.get(this.translations,i));if(c||(c=pi.get(pi.get(this.defaultTranslations,i),l,t)),c!=null&&c.includes("|")&&typeof e[1]=="number"){const u=e[1],h=c.split("|");h.length===3?c=h[u]||h[2]:h.length===2&&(c=u===1?h[0]:h[1])}let f={};return Object.values(e).slice(1).forEach(u=>{!(u instanceof Array)&&u instanceof Object&&(f=u)}),Object.keys(f).forEach(u=>{c=c==null?void 0:c.replaceAll(new RegExp(`{ *${u} *}`,"g"),f[u])}),c}}},yie="",gie="",_ie="",eB={name:"UnnnicButton",components:{UnnnicIcon:ne},props:{size:{type:String,default:"large"},text:{type:String,default:""},type:{type:String,default:"primary"},float:{type:Boolean,default:!1},iconLeft:{type:String,default:""},iconRight:{type:String,default:""},iconCenter:{type:String,default:""},iconsFilled:{type:Boolean,default:!1},next:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},computed:{buttonDisabled(){return this.disabled||this.loading},iconSize(){return this.size==="small"?"sm":"md"},hasText(){return this.$slots.default?!0:this.text&&this.text.length>0},iconScheme(){return this.buttonDisabled?"neutral-clean":{primary:"neutral-white",secondary:"neutral-dark",tertiary:"neutral-dark",warning:"neutral-white",attention:"neutral-white"}[this.type]||""},isSizePropValid(){return this.size==="large"||!this.float&&this.size==="small"||this.float&&this.size==="extra-large"},isTypePropValid(){return["primary","secondary","tertiary","alternative","warning","attention"].includes(this.type)}},watch:{$props:{deep:!0,immediate:!0,handler(){this.validateProps()}}},methods:{validateProps(){if(!this.isSizePropValid||!this.isTypePropValid){let e="TypeError:";throw this.isSizePropValid||(e+=" Invalid size prop.",e+=" Please provide 'large', 'small' (only if float prop is false), or 'extra-large' (only if float prop is true)."),this.isTypePropValid||(e+=" Invalid type prop."),new Error(e)}}}},nB=["disabled"];function tB(e,i,t,o,l,r){const c=n.resolveComponent("UnnnicIcon");return n.openBlock(),n.createElementBlock("button",n.mergeProps(e.$attrs,{disabled:r.buttonDisabled,class:["unnnic-button",`unnnic-button--size-${t.size}`,`unnnic-button--${t.type}`,t.iconCenter?"unnnic-button--icon-on-center":null,t.float?"unnnic-button--float":null]}),[t.loading?(n.openBlock(),n.createBlock(c,{key:0,icon:"loading-circle-1",scheme:r.iconScheme,size:r.iconSize,filled:t.iconsFilled,style:{position:"absolute"},class:"rotation",next:t.next,"data-testid":"icon-loading"},null,8,["scheme","size","filled","next"])):n.createCommentVNode("",!0),t.iconLeft?(n.openBlock(),n.createBlock(c,{key:1,icon:t.iconLeft,scheme:r.iconScheme,size:r.iconSize,filled:t.iconsFilled,class:n.normalizeClass({"unnnic-button__icon-left":r.hasText}),style:n.normalizeStyle({visibility:t.loading?"hidden":null}),next:t.next,"data-testid":"icon-left"},null,8,["icon","scheme","size","filled","class","style","next"])):n.createCommentVNode("",!0),t.iconCenter?(n.openBlock(),n.createBlock(c,{key:2,icon:t.iconCenter,scheme:r.iconScheme,style:n.normalizeStyle({visibility:t.loading?"hidden":null}),size:r.iconSize,filled:t.iconsFilled,next:t.next,"data-testid":"icon-center"},null,8,["icon","scheme","style","size","filled","next"])):n.createCommentVNode("",!0),t.float?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("span",{key:3,class:"unnnic-button__label",style:n.normalizeStyle({visibility:t.loading?"hidden":null}),"data-testid":"button-label"},[n.renderSlot(e.$slots,"default",{},void 0,!0),n.createTextVNode(" "+n.toDisplayString(t.text),1)],4)),t.iconRight?(n.openBlock(),n.createBlock(c,{key:4,icon:t.iconRight,scheme:r.iconScheme,size:r.iconSize,filled:t.iconsFilled,class:n.normalizeClass({"unnnic-button__icon-right":r.hasText}),style:n.normalizeStyle({visibility:t.loading?"hidden":null}),next:t.next,"data-testid":"icon-right"},null,8,["icon","scheme","size","filled","class","style","next"])):n.createCommentVNode("",!0)],16,nB)}const g1=k(eB,[["render",tB],["__scopeId","data-v-d127031e"]]),wie="",iB={components:{UnnnicButton:g1},mixins:[Pn],props:{initialStartDate:{type:String,default:""},initialEndDate:{type:String,default:""},minDate:{type:String,default:""},maxDate:{type:String,default:""},type:{type:String,default:"day",validator(e){return["day","month","year"].includes(e)}},size:{type:String,default:"large",validator(e){return["small","large"].includes(e)}},clearLabel:{type:String,default:""},actionLabel:{type:String,default:""},months:{type:Array,default:()=>[],validator(e){return[0,12].includes(e.length)}},days:{type:Array,default:()=>[],validator(e){return[0,7].includes(e.length)}},options:{type:Array,default:()=>[]},disableClear:{type:Boolean,default:!1}},emits:["change","submit"],data(){const e=new Date;return{referenceDate:`${e.getMonth()+1} 1 ${e.getFullYear()}`,startDate:(this.initialStartDate||"").replace(/-/g," "),endDate:(this.initialEndDate||"").replace(/-/g," "),optionSelected:"",defaultTranslations:{clean:{"pt-br":"Limpar",en:"Clean",es:"Limpiar"},filter:{"pt-br":"Filtrar",en:"Filter",es:"Filtrar"}}}},computed:{openMonths(){return[this.addMonth(this.referenceDate,-1),this.referenceDate]},value(){return{startDate:this.startDate.replaceAll(" ","-"),endDate:this.endDate.replaceAll(" ","-")}},i18nLocale(){return this.$i18n.locale.toLowerCase()},monthsLocale(){const{months:e}=this;return e.length?e:DA[this.i18nLocale]},daysLocale(){const{days:e}=this;return e.length?e:AA[this.i18nLocale]},periodsLocale(){const{options:e}=this;return e.length?e:EA[this.i18nLocale]},clearText(){return this.clearLabel||this.i18n("clean")},filterText(){return this.actionLabel||this.i18n("filter")}},watch:{value({startDate:e,endDate:i}){this.optionSelected=e||i?"custom":"",this.$emit("change",this.value)}},methods:{dateToString(e){return`${e.getMonth()+1} ${e.getDate()} ${e.getFullYear()}`},dateToStringMonth(e){return`${e.getMonth()+1} ${e.getFullYear()}`},dateToStringYear(e){return e.getFullYear()},stringToTime(e){const[i,t,o]=e.split(" ");return new Date(o,Number(i)-1,t).getTime()},getDate(e){return e.toString().split(" ")[1]},getMonth(e){return e.toString().split(" ")[0]},getFullYear(e){const[i,t,o]=e.split(" ");return new Date(o,Number(i)-1,t).getFullYear()},addMonth(e,i){const[t,o,l]=e.split(" "),r=new Date(l,Number(t)-1,o);return r.setMonth(r.getMonth()+i),this.dateToString(r)},isDateBetween(e){if(this.startDate&&this.endDate){if(e>=this.stringToTime(this.startDate)&&e<=this.stringToTime(this.endDate))return!0}else{if(this.startDate&&e>=this.stringToTime(this.startDate))return!0;if(this.endDate&&e<=this.stringToTime(this.endDate))return!0}return!1},isDateBetweenMonth(e){const[i,t,o]=e.split(" "),l=new Date(o,Number(i)-1,t);l.setDate(1);const r=l.getTime();if(this.startDate&&this.endDate){if(e>=r&&e<=this.stringToTime(this.endDate))return!0}else{if(this.startDate&&e>=r)return!0;if(this.endDate&&e<=this.stringToTime(this.endDate))return!0}return!1},isDateBetweenYear(e){const[i,t,o]=e.split(" "),l=new Date(o,Number(i)-1,t);l.setDate(1),l.setMonth(0);const r=l.getTime();if(this.startDate&&this.endDate){if(e>=r&&e<=this.stringToTime(this.endDate))return!0}else{if(this.startDate&&e>=r)return!0;if(this.endDate&&e<=this.stringToTime(this.endDate))return!0}return!1},getDatesOfTheMonth(e){const[i,t,o]=e.split(" "),l=new Date(o,Number(i)-1,t),r=l.getMonth(),c=86400;l.setDate(1-l.getDay());const f=[];for(let u=0;u<6*7;u+=1){const h=this.dateToString(l),p=[];if(this.minDate){const[C,_,x]=this.minDate.split("-"),N=new Date(C,Number(_)-1,x);l<N&&p.push("out of range")}if(this.maxDate){const[C,_,x]=this.maxDate.split("-"),N=new Date(C,Number(_)-1,x);l>N&&p.push("out of range")}if(r===l.getMonth()){p.push("inside month");const C=this.stringToTime(this.dateToString(l)),_=C-c,x=C+c;this.isDateBetween(C)&&(p.push("selected"),this.isDateBetween(_)||p.push("left-highlighted"),this.isDateBetween(x)||p.push("right-highlighted"),(p.includes("left-highlighted")||p.includes("right-highlighted"))&&p.push("highlighted"))}this.dateToString(l)===this.dateToString(new Date)&&p.push("today"),f.push({properties:p,toString:()=>h}),l.setDate(l.getDate()+1)}return f},getMonthsOfTheYear(e){const[i,t,o]=e.split(" "),l=new Date(o,Number(i)-1,t);l.setMonth(0);const r=[];for(let c=0;c<3*4;c+=1){const f=this.dateToString(l),u=[];u.push("inside month");const h=this.stringToTime(this.dateToString(l));let p=new Date(h),C=new Date(h);p.setMonth(p.getMonth()-1),C.setMonth(C.getMonth()+1),p=p.getTime(),C=C.getTime(),this.isDateBetweenMonth(h)&&(u.push("selected"),this.isDateBetweenMonth(p)||u.push("left-highlighted"),this.isDateBetweenMonth(C)||u.push("right-highlighted"),(u.includes("left-highlighted")||u.includes("right-highlighted"))&&u.push("highlighted")),this.dateToStringMonth(l)===this.dateToStringMonth(new Date)&&u.push("today"),r.push({properties:u,date:f,toString:()=>f}),l.setMonth(l.getMonth()+1)}return r},getYears(e){const[i,t,o]=e.split(" "),l=new Date(o,Number(i)-1,t);l.setMonth(0);const r=[];for(let c=0;c<3*4;c+=1){const f=this.dateToString(l),u=[];u.push("inside month");const h=this.stringToTime(this.dateToString(l)),[p,C,_]=e.split(" ");let x=new Date(_,Number(p)-1,C),N=new Date(_,Number(p)-1,C);x.setMonth(x.getMonth()-12),N.setMonth(N.getMonth()+12),x=x.getTime(),N=N.getTime(),this.isDateBetweenYear(h)&&(u.push("selected"),this.isDateBetweenYear(x)||u.push("left-highlighted"),this.isDateBetweenYear(N)||u.push("right-highlighted"),(u.includes("left-highlighted")||u.includes("right-highlighted"))&&u.push("highlighted")),this.dateToStringYear(l)===this.dateToStringYear(new Date)&&u.push("today"),r.push({properties:u,date:l.getFullYear(),toString:()=>f}),l.setFullYear(l.getFullYear()+1)}return r},selectDate(e){if(!this.startDate||!this.endDate)this.startDate=e.toString(),this.endDate=this.startDate;else{const i=this.stringToTime(e.toString()),t=this.stringToTime(this.startDate),o=this.stringToTime(this.endDate);t!==o?(this.startDate=e.toString(),this.endDate=this.startDate):i>o?this.endDate=e.toString():i<t?this.startDate=e.toString():i===t||i===o?(this.startDate=e.toString(),this.endDate=this.startDate):i-t<o-i?this.startDate=e.toString():this.endDate=e.toString()}},clear(){this.startDate="",this.endDate="",this.optionSelected=""},autoSelect(e){const i=new Date,t=e.match(/^last-(\d+)-days$/),o=e.match(/^last-(\d+)-months$/);if(t){const l=Number(t[1]);this.endDate=this.dateToString(i),i.setDate(i.getDate()-l+1),this.startDate=this.dateToString(i)}else if(o){const l=Number(o[1]);this.endDate=this.dateToString(i),i.setDate(i.getDate()+1),i.setMonth(i.getMonth()-l),this.startDate=this.dateToString(i)}else e==="current-month"?(i.setDate(1),this.startDate=this.dateToString(i),i.setMonth(i.getMonth()+1),i.setDate(0),this.endDate=this.dateToString(i)):e==="previous-month"&&(i.setDate(1),i.setMonth(i.getMonth()-1),this.startDate=this.dateToString(i),i.setMonth(i.getMonth()+1),i.setDate(0),this.endDate=this.dateToString(i));if(this.endDate){const l=this.addMonth(this.referenceDate,1),r=`${Number(this.getMonth(this.endDate))} 1 ${this.getFullYear(this.endDate)}`;[this.referenceDate,l].includes(r)||(this.referenceDate=r)}this.$nextTick(()=>{this.optionSelected=e})}}},ws=e=>(n.pushScopeId("data-v-6b5bf0b6"),e=e(),n.popScopeId(),e),aB={class:"unnnic-date-picker"},oB={class:"month-container"},sB=["onClick"],rB=ws(()=>n.createElementVNode("div",{class:"divider"},null,-1)),lB={class:"month-container"},cB=["onClick"],dB=ws(()=>n.createElementVNode("div",{class:"divider"},null,-1)),fB={class:"month-container"},uB=["onClick"],mB=ws(()=>n.createElementVNode("div",{class:"divider"},null,-1)),hB={key:3,class:"options-container"},pB={class:"options"},yB=["onClick"],gB={class:"actions"};function _B(e,i,t,o,l,r){const c=n.resolveComponent("UnnnicButton");return n.openBlock(),n.createElementBlock("div",aB,[t.type==="day"?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(r.openMonths,(f,u)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:f},[n.createElementVNode("div",oB,[n.createElementVNode("div",{class:n.normalizeClass(["header",`header--${t.size}`])},[n.createVNode(c,{size:"small",iconCenter:`arrow-${u===0?"left":"right"}-1-1`,type:t.size==="large"?"secondary":"tertiary",class:"button-space",style:n.normalizeStyle({gridArea:`${u===0?"left":"right"}-button`}),onClick:n.withModifiers(h=>l.referenceDate=r.addMonth(l.referenceDate,u===0?-1:1),["stop"])},null,8,["iconCenter","type","style","onClick"]),n.createElementVNode("div",{class:n.normalizeClass(["label",`label--${t.size}`])},n.toDisplayString(r.monthsLocale[Number(r.getMonth(f))-1])+" "+n.toDisplayString(r.getFullYear(f)),3)],2),n.createElementVNode("div",{class:n.normalizeClass(["days",`days--${t.size}`])},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.daysLocale,(h,p)=>(n.openBlock(),n.createElementBlock("div",{key:p,class:"name"},n.toDisplayString(h),1))),128)),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.getDatesOfTheMonth(f),(h,p)=>(n.openBlock(),n.createElementBlock("div",{key:`${f}-${p}`,class:n.normalizeClass({disabled:!h.properties.includes("inside month")||h.properties.includes("out of range"),selectable:h.properties.includes("inside month")&&!h.properties.includes("out of range"),today:h.properties.includes("today"),selected:h.properties.includes("selected"),highlighted:h.properties.includes("highlighted"),left:h.properties.includes("left-highlighted"),right:h.properties.includes("right-highlighted")}),onClick:C=>h.properties.includes("inside month")&&!h.properties.includes("out of range")&&r.selectDate(h)},n.toDisplayString(r.getDate(h)),11,sB))),128))],2)]),rB],64))),128)):t.type==="month"?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:1},n.renderList([l.referenceDate],f=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:f},[n.createElementVNode("div",lB,[n.createElementVNode("div",{class:n.normalizeClass(["header",`header--${t.size}`])},[n.createVNode(c,{size:"small",iconCenter:"arrow-left-1-1",type:t.size==="large"?"secondary":"tertiary",class:"button-space",style:{gridArea:"left-button"},onClick:i[0]||(i[0]=u=>l.referenceDate=r.addMonth(l.referenceDate,-12))},null,8,["type"]),n.createElementVNode("div",{class:n.normalizeClass(["label",`label--${t.size}`])},n.toDisplayString(r.getFullYear(f)),3),n.createVNode(c,{size:"small",iconCenter:"arrow-right-1-1",type:t.size==="large"?"secondary":"tertiary",class:"button-space",style:{gridArea:"right-button"},onClick:i[1]||(i[1]=u=>l.referenceDate=r.addMonth(l.referenceDate,12))},null,8,["type"])],2),n.createElementVNode("div",{class:n.normalizeClass(["days",`months--${t.size}`])},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.getMonthsOfTheYear(f),(u,h)=>(n.openBlock(),n.createElementBlock("div",{key:`${f}-${h}`,class:n.normalizeClass({disabled:!u.properties.includes("inside month"),selectable:u.properties.includes("inside month"),today:u.properties.includes("today"),selected:u.properties.includes("selected"),highlighted:u.properties.includes("highlighted"),left:u.properties.includes("left-highlighted"),right:u.properties.includes("right-highlighted")}),onClick:p=>u.properties.includes("inside month")&&r.selectDate(u)},n.toDisplayString(r.monthsLocale[r.getMonth(u)].substr(0,3)),11,cB))),128))],2)]),dB],64))),128)):t.type==="year"?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:2},n.renderList([l.referenceDate],f=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:f},[n.createElementVNode("div",fB,[n.createElementVNode("div",{class:n.normalizeClass(["header",`header--${t.size}`])},[n.createVNode(c,{size:"small",iconCenter:"arrow-left-1-1",type:t.size==="large"?"secondary":"tertiary",class:"button-space",style:{gridArea:"left-button"},onClick:i[2]||(i[2]=u=>l.referenceDate=r.addMonth(l.referenceDate,-12*12))},null,8,["type"]),n.createElementVNode("div",{class:n.normalizeClass(["label",`label--${t.size}`])},n.toDisplayString(r.getFullYear(f)),3),n.createVNode(c,{size:"small",iconCenter:"arrow-right-1-1",type:t.size==="large"?"secondary":"tertiary",class:"button-space",style:{gridArea:"right-button"},onClick:i[3]||(i[3]=u=>l.referenceDate=r.addMonth(l.referenceDate,12*12))},null,8,["type"])],2),n.createElementVNode("div",{class:n.normalizeClass(["days",`months--${t.size}`])},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.getYears(f),(u,h)=>(n.openBlock(),n.createElementBlock("div",{key:`${f}-${h}`,class:n.normalizeClass({disabled:!u.properties.includes("inside month"),selectable:u.properties.includes("inside month"),today:u.properties.includes("today"),selected:u.properties.includes("selected"),highlighted:u.properties.includes("highlighted"),left:u.properties.includes("left-highlighted"),right:u.properties.includes("right-highlighted")}),onClick:p=>u.properties.includes("inside month")&&r.selectDate(u)},n.toDisplayString(u.date),11,uB))),128))],2)]),mB],64))),128)):n.createCommentVNode("",!0),t.size!=="small"?(n.openBlock(),n.createElementBlock("div",hB,[n.createElementVNode("div",pB,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.periodsLocale,(f,u)=>(n.openBlock(),n.createElementBlock("div",{key:u,class:n.normalizeClass(["option",{selected:l.optionSelected===f.id}]),onClick:h=>r.autoSelect(f.id)},n.toDisplayString(f.name),11,yB))),128))]),n.createElementVNode("div",gB,[t.disableClear?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(c,{key:0,size:"small",text:r.clearText,type:"tertiary",onClick:r.clear},null,8,["text","onClick"])),n.createVNode(c,{size:"small",text:r.filterText,type:"secondary",onClick:i[4]||(i[4]=f=>e.$emit("submit",r.value))},null,8,["text"])])])):n.createCommentVNode("",!0)])}const E5=k(iB,[["render",_B],["__scopeId","data-v-6b5bf0b6"]]),kie="",wB={components:{UnnnicInput:E2,UnnnicDatePicker:E5},model:{event:"changed"},props:{modelValue:{type:Object,required:!0},iconPosition:{type:String,default:"left",validator(e){return["left","right"].includes(e)}},minDate:{type:String,default:""},maxDate:{type:String,default:""},fillW:{type:Boolean,default:!1},type:{type:String,default:"day"},size:{type:String,default:"md"},clearText:{type:String,default:"Clear"},actionText:{type:String,default:"Filter"},months:{type:Array,default:()=>[]},days:{type:Array,default:()=>[]},options:{type:Array,default:()=>[]},next:{type:Boolean,default:!1},format:{type:String,default:"YYYY-MM-DD"},inputFormat:{type:String,default:"MM-DD-YYYY"},position:{type:String,default:"left"},disableClear:{type:Boolean,default:!1}},emits:["update:model-value","selectDate"],data(){return{showCalendarFilter:!1}},computed:{filterText(){var i,t,o,l;const e=[];return(i=this.modelValue)!=null&&i.start&&e.push(J((t=this.modelValue)==null?void 0:t.start,this.format).format(this.inputFormat)),(o=this.modelValue)!=null&&o.end&&e.push(J((l=this.modelValue)==null?void 0:l.end,this.format).format(this.inputFormat)),e.length?e.join(" ~ "):String(this.inputFormat).replaceAll("-","/").toLowerCase()},initialStartDate(){return this.modelValue.start?J(this.modelValue.start,this.format).format("MM DD YYYY"):null},initialEndDate(){return this.modelValue.end?J(this.modelValue.end,this.format).format("MM DD YYYY"):null}},mounted(){window.document.body.addEventListener("click",this.mouseout)},beforeUnmount(){window.document.body.removeEventListener("click",this.mouseout)},methods:{emitSelectDate(e){const{startDate:i,endDate:t}=e,o={start:J(i,"MM-DD-YYYY").format(this.format),end:J(t,"MM-DD-YYYY").format(this.format)};this.$emit("selectDate",o)},mouseout(e){var i;(i=this.$refs.dropdown)!=null&&i.contains(e.target)||(this.showCalendarFilter=!1)},changeDate(e){const i=e.startDate.replace(/(\d+)-(\d+)-(\d+)/,"$3-$1-$2"),t=e.endDate.replace(/(\d+)-(\d+)-(\d+)/,"$3-$1-$2");this.showCalendarFilter=!1,this.$emit("update:model-value",{start:i?J(i,"YYYY-MM-DD").format(this.format):null,end:t?J(t,"YYYY-MM-DD").format(this.format):null})}}};function kB(e,i,t,o,l,r){const c=n.resolveComponent("UnnnicInput"),f=n.resolveComponent("UnnnicDatePicker");return n.openBlock(),n.createElementBlock("div",{ref:"dropdown",class:n.normalizeClass(["dropdown",{active:l.showCalendarFilter,"fill-w":t.fillW}])},[n.createVNode(c,{class:n.normalizeClass(["input",{"date-picker-input-next":t.next}]),size:t.size,iconLeft:t.iconPosition==="left"&&"calendar_month",iconRight:t.iconPosition==="right"&&"calendar_month",hasCloudyColor:"",readonly:"",modelValue:r.filterText,onFocus:i[0]||(i[0]=u=>l.showCalendarFilter=!0)},null,8,["class","size","iconLeft","iconRight","modelValue"]),n.createElementVNode("div",{class:"dropdown-data",style:n.normalizeStyle({[t.position]:"0"})},[l.showCalendarFilter?(n.openBlock(),n.createBlock(f,{key:0,type:t.type,clearLabel:t.clearText,actionLabel:t.actionText,months:t.months,days:t.days,options:t.options,initialStartDate:r.initialStartDate,initialEndDate:r.initialEndDate,minDate:t.minDate,maxDate:t.maxDate,disableClear:t.disableClear,onChange:r.emitSelectDate,onSubmit:r.changeDate},null,8,["type","clearLabel","actionLabel","months","days","options","initialStartDate","initialEndDate","minDate","maxDate","disableClear","onChange","onSubmit"])):n.createCommentVNode("",!0)],4)],2)}const CB=k(wB,[["render",kB],["__scopeId","data-v-cf22f1fe"]]),Cie="",vB={components:{UnnnicIcon:ne},props:{type:{type:String,default:"secondary"},size:{type:String,required:!0,validator(e){return["small","large"].includes(e)}},icon:{type:String,required:!0}},computed:{iconScheme(){return this.type==="primary"?"neutral-snow":"neutral-darkest"}}};function xB(e,i,t,o,l,r){const c=n.resolveComponent("UnnnicIcon");return n.openBlock(),n.createElementBlock("button",n.mergeProps({class:["button-icon",t.size,t.type]},e.$attrs),[n.createVNode(c,{icon:t.icon,scheme:r.iconScheme,size:"ant"},null,8,["icon","scheme"])],16)}const bB=k(vB,[["render",xB],["__scopeId","data-v-46ae4cf4"]]),ks=e=>{const{label:i,children:t}=e;if(!!!i.trim())throw new Error('Each item in "items" must have "label".');return t&&Array.isArray(t)&&t.forEach(ks),!0},MB=e=>{if(!(e!=null&&e[0]))throw new Error("Items property cannot be an empty array.");return e.forEach(ks),!0},vie="",DB=["title"],AB={key:0,class:"unnnic-sidebar-item-children"},EB=["onClick"],NB=["title"],N5=k(Object.assign({name:"UnnnicSidebarItem"},{props:{item:{type:Object,required:!0,validator:ks},active:{type:Object,default:()=>({item:!1,childIndex:null})},autoNavigateFirstChild:{type:Boolean,default:!1}},emits:["navigate"],setup(e,{emit:i}){const t=e;n.onMounted(()=>{const{childIndex:p,item:C}=t.active;typeof p=="number"&&p>=0&&C&&r()});const o=n.computed(()=>{var p;return!!((p=t.item.children)!=null&&p.length)}),l=n.ref(!1),r=()=>{l.value=!l.value,l.value&&t.autoNavigateFirstChild&&h("navigate",{item:t.item,child:t.item.children[0]})},c=p=>{const{item:C,childIndex:_}=t.active;return typeof _!="number"?C:C&&_===p},f=()=>{o.value?r():u()},u=()=>{t.active.item||h("navigate",{item:t.item,child:null})},h=i;return(p,C)=>{var _;return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("section",{"data-testid":"sidebar-item",class:n.normalizeClass({"unnnic-sidebar-item":!0,active:e.active.item}),onClick:n.withModifiers(f,["stop"])},[e.item.icon?(n.openBlock(),n.createBlock(ne,{key:0,class:"unnnic-sidebar-item__icon",icon:e.item.icon,size:"ant",scheme:e.active.item?"weni-600":"neutral-cloudy","data-testid":"item-icon"},null,8,["icon","scheme"])):n.createCommentVNode("",!0),n.createElementVNode("p",{class:n.normalizeClass({"unnnic-sidebar-item__label":!0,active:e.active.item}),title:e.item.label},n.toDisplayString(e.item.label),11,DB),(_=e.item.children)!=null&&_.length?(n.openBlock(),n.createBlock(ne,{key:1,class:"unnnic-sidebar-item__arrow",icon:l.value?"keyboard_arrow_up":"keyboard_arrow_down",size:"ant",scheme:"neutral-cloudy","data-testid":"arrow-icon"},null,8,["icon"])):n.createCommentVNode("",!0)],2),n.createVNode(n.Transition,{name:"slide-fade"},{default:n.withCtx(()=>[l.value?(n.openBlock(),n.createElementBlock("ul",AB,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.item.children,(x,N)=>(n.openBlock(),n.createElementBlock("li",{key:x,class:n.normalizeClass({"unnnic-sidebar-item-child":!0,active:c(N)}),"data-testid":"sidebar-item-child",onClick:n.withModifiers(O=>!c(N)&&h("navigate",{item:e.item,child:x}),["stop"])},[x.icon?(n.openBlock(),n.createBlock(ne,{key:0,class:"unnnic-sidebar-item-child__icon",icon:x.icon,size:"ant",scheme:c(N)?"weni-600":"neutral-cloudy"},null,8,["icon","scheme"])):n.createCommentVNode("",!0),n.createElementVNode("p",{class:n.normalizeClass({"unnnic-sidebar-item-child__label":!0,active:c(N)}),title:x.label},n.toDisplayString(x.label),11,NB)],10,EB))),128))])):n.createCommentVNode("",!0)]),_:1})],64)}}}),[["__scopeId","data-v-418b1f69"]]),Mie="",BB={class:"unnnic-sidebar-items"},LB=k(Object.assign({name:"UnnnicSidebar"},{props:{position:{type:String,default:"left",validator(e){return["left","right"].includes(e)}},width:{type:String,default:"200px",validator(e){const i=/^\d+(\.\d+)?px$/,t=/^\d+(\.\d+)?%$/;return i.test(e)||t.test(e)}},items:{type:Array,required:!0,validator:MB},active:{type:Object,default:()=>({itemIndex:null,childIndex:null})},autoNavigateFirstChild:{type:Boolean,default:!1}},emits:["navigate"],setup(e,{emit:i}){n.useCssVars(r=>({"6c03e4b5":t.width}));const t=e,o=i,l=({item:r,child:c})=>{o("navigate",{item:r,child:c})};return(r,c)=>(n.openBlock(),n.createElementBlock("nav",{class:n.normalizeClass(["unnnic-sidebar",`unnnic-sidebar--${e.position}`])},[n.renderSlot(r.$slots,"top",{class:"unnnic-sidebar-top"},void 0,!0),n.createElementVNode("ul",BB,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.items,(f,u)=>(n.openBlock(),n.createElementBlock("li",{key:f},[n.createVNode(N5,{item:f,active:{item:e.active.itemIndex===u,childIndex:e.active.childIndex},autoNavigateFirstChild:e.autoNavigateFirstChild,"data-testid":"sidebar-item",onNavigate:c[0]||(c[0]=h=>l(h))},null,8,["item","active","autoNavigateFirstChild"])]))),128))]),n.renderSlot(r.$slots,"bottom",{class:"unnnic-sidebar-bottom"},void 0,!0)],2))}}),[["__scopeId","data-v-7bdf478e"]]),Eie="",SB={name:"UnnnicTable",components:{},props:{items:{type:Array}},data(){return{value:!1}},computed:{}},TB=e=>(n.pushScopeId("data-v-b2229274"),e=e(),n.popScopeId(),e),VB={class:"unnnic-table"},zB={class:"header"},IB=TB(()=>n.createElementVNode("div",null,[n.createElementVNode("div",{class:"item-spacer"})],-1)),OB={class:"scroll"};function HB(e,i,t,o,l,r){return n.withDirectives((n.openBlock(),n.createElementBlock("div",VB,[n.createElementVNode("div",zB,[n.renderSlot(e.$slots,"header",{},void 0,!0)]),IB,n.createElementVNode("div",OB,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.items,(c,f)=>(n.openBlock(),n.createElementBlock("div",{key:f,class:"item"},[n.renderSlot(e.$slots,"item",{item:c},void 0,!0)]))),128))])],512)),[[n.vShow,!0]])}const jB=k(SB,[["render",HB],["__scopeId","data-v-b2229274"]]),Nie="",Bie="",FB={name:"UnnnicTableRow",props:{headers:{type:Array}},data(){return{}}},PB={class:"table-row"},UB={class:"break-text"};function RB(e,i,t,o,l,r){return n.openBlock(),n.createElementBlock("div",PB,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.headers,(c,f)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:c.id},[n.createElementVNode("div",{class:"col",style:n.normalizeStyle({width:c.width,flex:c.flex,minWidth:0})},[n.renderSlot(e.$slots,c.id,{},()=>[n.createElementVNode("div",UB,n.toDisplayString(c.text),1)],!0)],4),n.withDirectives(n.createElementVNode("div",{class:n.normalizeClass(["divider",{condensed:c.condensed}])},null,2),[[n.vShow,f+1!==t.headers.length]])],64))),128))])}const YB=k(FB,[["render",RB],["__scopeId","data-v-cb0c6b93"]]);function B5(e){return n.getCurrentScope()?(n.onScopeDispose(e),!0):!1}function a2(e){return typeof e=="function"?e():n.unref(e)}const L5=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ZB=Object.prototype.toString,WB=e=>ZB.call(e)==="[object Object]",o2=()=>{},Cs=QB();function QB(){var e,i;return L5&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((i=window==null?void 0:window.navigator)==null?void 0:i.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}const S5={mounted:"mounted",updated:"updated",unmounted:"unmounted"};function qB(...e){if(e.length!==1)return n.toRef(...e);const i=e[0];return typeof i=="function"?n.readonly(n.customRef(()=>({get:i,set:o2}))):n.ref(i)}function s2(e){var i;const t=a2(e);return(i=t==null?void 0:t.$el)!=null?i:t}const T5=L5?window:void 0;function la(...e){let i,t,o,l;if(typeof e[0]=="string"||Array.isArray(e[0])?([t,o,l]=e,i=T5):[i,t,o,l]=e,!i)return o2;Array.isArray(t)||(t=[t]),Array.isArray(o)||(o=[o]);const r=[],c=()=>{r.forEach(p=>p()),r.length=0},f=(p,C,_,x)=>(p.addEventListener(C,_,x),()=>p.removeEventListener(C,_,x)),u=n.watch(()=>[s2(i),a2(l)],([p,C])=>{if(c(),!p)return;const _=WB(C)?{...C}:C;r.push(...t.flatMap(x=>o.map(N=>f(p,x,N,_))))},{immediate:!0,flush:"post"}),h=()=>{u(),c()};return B5(h),h}let V5=!1;function z5(e,i,t={}){const{window:o=T5,ignore:l=[],capture:r=!0,detectIframe:c=!1}=t;if(!o)return o2;Cs&&!V5&&(V5=!0,Array.from(o.document.body.children).forEach(_=>_.addEventListener("click",o2)),o.document.documentElement.addEventListener("click",o2));let f=!0;const u=_=>l.some(x=>{if(typeof x=="string")return Array.from(o.document.querySelectorAll(x)).some(N=>N===_.target||_.composedPath().includes(N));{const N=s2(x);return N&&(_.target===N||_.composedPath().includes(N))}}),p=[la(o,"click",_=>{const x=s2(e);if(!(!x||x===_.target||_.composedPath().includes(x))){if(_.detail===0&&(f=!u(_)),!f){f=!0;return}i(_)}},{passive:!0,capture:r}),la(o,"pointerdown",_=>{const x=s2(e);f=!u(_)&&!!(x&&!_.composedPath().includes(x))},{passive:!0}),c&&la(o,"blur",_=>{setTimeout(()=>{var x;const N=s2(e);((x=o.document.activeElement)==null?void 0:x.tagName)==="IFRAME"&&!(N!=null&&N.contains(o.document.activeElement))&&i(_)},0)})].filter(Boolean);return()=>p.forEach(_=>_())}const ca={[S5.mounted](e,i){const t=!i.modifiers.bubble;if(typeof i.value=="function")e.__onClickOutside_stop=z5(e,i.value,{capture:t});else{const[o,l]=i.value;e.__onClickOutside_stop=z5(e,o,Object.assign({capture:t},l))}},[S5.unmounted](e){e.__onClickOutside_stop()}};function vs(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function I5(e){const i=window.getComputedStyle(e);if(i.overflowX==="scroll"||i.overflowY==="scroll"||i.overflowX==="auto"&&e.clientWidth<e.scrollWidth||i.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const t=e.parentNode;return!t||t.tagName==="BODY"?!1:I5(t)}}function GB(e){const i=e||window.event,t=i.target;return I5(t)?!1:i.touches.length>1?!0:(i.preventDefault&&i.preventDefault(),!1)}const da=new WeakMap;function XB(e,i=!1){const t=n.ref(i);let o=null;n.watch(qB(e),c=>{const f=vs(a2(c));if(f){const u=f;da.get(u)||da.set(u,u.style.overflow),t.value&&(u.style.overflow="hidden")}},{immediate:!0});const l=()=>{const c=vs(a2(e));!c||t.value||(Cs&&(o=la(c,"touchmove",f=>{GB(f)},{passive:!1})),c.style.overflow="hidden",t.value=!0)},r=()=>{var c;const f=vs(a2(e));!f||!t.value||(Cs&&(o==null||o()),f.style.overflow=(c=da.get(f))!=null?c:"",da.delete(f),t.value=!1)};return B5(r),n.computed({get(){return t.value},set(c){c?l():r()}})}function JB(){let e=!1;const i=n.ref(!1);return(t,o)=>{if(i.value=o.value,e)return;e=!0;const l=XB(t,o.value);n.watch(i,r=>l.value=r)}}JB();const Lie="",$B={name:"UnnnicDropdown",directives:{onClickOutside:ca},props:{useOpenProp:{type:Boolean,default:!1},open:{type:Boolean,default:!1},position:{type:String,default:"bottom-left",validator(e){return["top-left","top-right","none","bottom-left","bottom-right"].indexOf(e)!==-1}}},emits:["update:open"],data(){return{active:!1}},watch:{open:{handler(){this.active=this.open},immediate:!0},active(){this.useOpenProp||this.$emit("update:open",this.active)}},methods:{onClickTrigger(){this.useOpenProp?this.$emit("update:open",!this.open):this.active=!this.active},onClickOutside(){if(this.useOpenProp&&this.open){this.$emit("update:open",!1);return}this.active&&(this.active=!1)}}},KB={class:"unnnic-dropdown__trigger"};function eL(e,i,t,o,l,r){const c=n.resolveDirective("on-click-outside");return n.openBlock(),n.createElementBlock("div",{class:"unnnic-dropdown",onClick:i[0]||(i[0]=n.withModifiers((...f)=>r.onClickTrigger&&r.onClickTrigger(...f),["stop"]))},[n.createElementVNode("div",KB,[n.renderSlot(e.$slots,"trigger",{},void 0,!0),(t.useOpenProp?t.open:l.active)?n.withDirectives((n.openBlock(),n.createElementBlock("div",{key:0,"data-testid":"dropdown-content",class:n.normalizeClass(["unnnic-dropdown__content",t.useOpenProp?t.open:l.active?"":"unnnic-dropdown__content--hidden",`unnnic-dropdown__content__position-${t.position}`])},[n.renderSlot(e.$slots,"default",{},void 0,!0)],2)),[[c,r.onClickOutside]]):n.createCommentVNode("",!0)])])}const xs=k($B,[["render",eL],["__scopeId","data-v-66495a5a"]]),Sie="",nL={name:"UnnnicDropdownItem"},tL={class:"unnnic-dropdown-item unnnic--clickable","data-testid":"dropdown-item"};function iL(e,i,t,o,l,r){return n.openBlock(),n.createElementBlock("a",tL,[n.renderSlot(e.$slots,"default")])}const O5=k(nL,[["render",iL]]),Tie="",aL={components:{UnnnicIcon:ne},props:{enabled:{type:Boolean,default:!0},icon:{type:String,default:"graph-stats-1"},size:{type:String,default:"sm",validator(e){return["nano","xs","sm","lg","xl"].indexOf(e)!==-1}},scheme:{type:String,default:"aux-blue"},filled:{type:Boolean,default:!1},opacity:{type:Boolean,default:!0}},computed:{iconSize(){return{nano:"xs",xs:"sm",sm:"md",lg:"lg",xl:"xl"}[this.size]}}};function oL(e,i,t,o,l,r){const c=n.resolveComponent("UnnnicIcon");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["unnnic-avatar-icon",t.scheme,t.size,{disabled:!t.enabled},t.filled,{opacity:!t.opacity}])},[n.createVNode(c,{icon:t.icon,scheme:t.enabled?t.scheme:"neutral-cloudy",size:r.iconSize,filled:t.filled},null,8,["icon","scheme","size","filled"])],2)}const vi=k(aL,[["render",oL],["__scopeId","data-v-d0742329"]]),Vie="",sL={name:"IconLoading",components:{UnnnicIcon:ne},props:{scheme:{type:String,default:"neutral-dark"},size:{type:String,default:"lg"}}};function rL(e,i,t,o,l,r){const c=n.resolveComponent("UnnnicIcon");return n.openBlock(),n.createBlock(c,{class:"unnnic-icon-loading",icon:"progress_activity",scheme:t.scheme,size:t.size},null,8,["scheme","size"])}const fa=k(sL,[["render",rL],["__scopeId","data-v-97257015"]]),zie="",lL={name:"UnnnicTooltip",props:{text:{type:String,default:""},enabled:{type:Boolean,default:!1},forceOpen:{type:Boolean,default:!1},side:{type:String,default:"right",validator(e){return["top","right","bottom","left"].indexOf(e)!==-1}},maxWidth:{type:String,default:""},shortcutText:{type:String,default:null},enableHtml:{type:Boolean,default:!1}},data(){return{topPos:null,leftPos:null}},watch:{side(){this.getRightPost(this.$refs.tooltip)}},mounted(){this.handleResize(),window.addEventListener("scroll",this.handleResize),window.addEventListener("resize",this.handleResize)},unmounted(){window.removeEventListener("scroll",this.handleResize),window.removeEventListener("resize",this.handleResize)},methods:{handleResize(){this.getRightPost(this.$refs.tooltip)},getRightPost(e){const i=e.getBoundingClientRect();e&&this.$refs.label&&(this.side==="right"?(this.leftPos=`${i.x+i.width+8}px`,this.topPos=`${i.y+i.height/2-this.$refs.label.offsetHeight/2}px`):this.side==="left"?(this.leftPos=`${i.x-this.$refs.label.offsetWidth-8}px`,this.topPos=`${i.y+i.height/2-this.$refs.label.offsetHeight/2}px`):this.side==="top"?(this.leftPos=`${i.x+i.width/2-this.$refs.label.clientWidth/2}px`,this.topPos=`${i.y-this.$refs.label.offsetHeight-8}px`):this.side==="bottom"&&(this.leftPos=`${i.x+i.width/2-this.$refs.label.clientWidth/2}px`,this.topPos=`${i.y+i.height+8}px`))}}},cL=e=>(n.pushScopeId("data-v-8c61d974"),e=e(),n.popScopeId(),e),dL=["innerHTML"],fL=cL(()=>n.createElementVNode("br",null,null,-1)),uL={key:2,class:"unnnic-tooltip-label-shortcut","data-testid":"tooltip-label-shortcut"};function mL(e,i,t,o,l,r){return n.openBlock(),n.createElementBlock("div",{ref:"tooltip",class:n.normalizeClass({"unnnic-tooltip":t.enabled||t.forceOpen,"force-open":t.forceOpen}),onMouseover:i[0]||(i[0]=(...c)=>r.handleResize&&r.handleResize(...c))},[n.renderSlot(e.$slots,"default",{},void 0,!0),n.withDirectives(n.createElementVNode("span",{ref:"label",class:n.normalizeClass(["unnnic-tooltip-label",`unnnic-tooltip-label-${t.side}`]),style:n.normalizeStyle({maxWidth:t.maxWidth,left:l.leftPos,top:l.topPos}),"data-testid":"tooltip-label"},[t.enableHtml?(n.openBlock(),n.createElementBlock("section",{key:0,innerHTML:t.text},null,8,dL)):(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:1},n.renderList(t.text.split(`
58
+ */const mN="9.12.1";function hN(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(J1().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(J1().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(J1().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(J1().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(J1().__INTLIFY_PROD_DEVTOOLS__=!1)}const a5=Mn.__EXTEND_POINT__,K1=K2(a5),Xe={FALLBACK_TO_ROOT:a5,NOT_SUPPORTED_PRESERVE:K1(),NOT_SUPPORTED_FORMATTER:K1(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:K1(),NOT_SUPPORTED_GET_CHOICE_INDEX:K1(),COMPONENT_NAME_LEGACY_COMPATIBLE:K1(),NOT_FOUND_PARENT_SCOPE:K1(),IGNORE_OBJ_FLATTEN:K1(),NOTICE_DROP_ALLOW_COMPOSITION:K1(),NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG:K1()},pN={[Xe.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Xe.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[Xe.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[Xe.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[Xe.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[Xe.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[Xe.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[Xe.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[Xe.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze",[Xe.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]:"'translateExistCompatible' option will be dropped in the next major version."};function Ln(e,...i){return qo(pN[e],...i)}const o5=fn.__EXTEND_POINT__,Sn=K2(o5),Be={UNEXPECTED_RETURN_TYPE:o5,INVALID_ARGUMENT:Sn(),MUST_BE_CALL_SETUP_TOP:Sn(),NOT_INSTALLED:Sn(),NOT_AVAILABLE_IN_LEGACY_MODE:Sn(),REQUIRED_VALUE:Sn(),INVALID_VALUE:Sn(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Sn(),NOT_INSTALLED_WITH_PROVIDE:Sn(),UNEXPECTED_ERROR:Sn(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Sn(),BRIDGE_SUPPORT_VUE_2_ONLY:Sn(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Sn(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Sn(),__EXTEND_POINT__:Sn()};function ln(e,...i){return yi(e,null,process.env.NODE_ENV!=="production"?{messages:yN,args:i}:void 0)}const yN={[Be.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[Be.INVALID_ARGUMENT]:"Invalid argument",[Be.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[Be.NOT_INSTALLED]:"Need to install with `app.use` function",[Be.UNEXPECTED_ERROR]:"Unexpected error",[Be.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[Be.REQUIRED_VALUE]:"Required in value: {0}",[Be.INVALID_VALUE]:"Invalid value",[Be.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[Be.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[Be.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[Be.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[Be.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",[Be.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},ss=N1("__translateVNode"),rs=N1("__datetimeParts"),ls=N1("__numberParts"),Yt=N1("__enableEmitter"),n2=N1("__disableEmitter"),s5=N1("__setPluralRules"),r5=N1("__injectWithOption"),cs=N1("__dispose");function t2(e){if(!Te(e))return e;for(const i in e)if($2(e,i))if(!i.includes("."))Te(e[i])&&t2(e[i]);else{const t=i.split("."),o=t.length-1;let l=e,r=!1;for(let c=0;c<o;c++){if(t[c]in l||(l[t[c]]={}),!Te(l[t[c]])){process.env.NODE_ENV!=="production"&&rn(Ln(Xe.IGNORE_OBJ_FLATTEN,{key:t[c]})),r=!0;break}l=l[t[c]]}r||(l[t[o]]=e[i],delete e[i]),Te(l[t[o]])&&t2(l[t[o]])}return e}function ra(e,i){const{messages:t,__i18n:o,messageResolver:l,flatJson:r}=i,c=ue(t)?t:Re(o)?{}:{[e]:{}};if(Re(o)&&o.forEach(f=>{if("locale"in f&&"resource"in f){const{locale:u,resource:h}=f;u?(c[u]=c[u]||{},na(h,c[u])):na(h,c)}else K(f)&&na(JSON.parse(f),c)}),l==null&&r)for(const f in c)$2(c,f)&&t2(c[f]);return c}function l5(e){return e.type}function c5(e,i,t){let o=Te(i.messages)?i.messages:{};"__i18nGlobal"in t&&(o=ra(e.locale.value,{messages:o,__i18n:t.__i18nGlobal}));const l=Object.keys(o);l.length&&l.forEach(r=>{e.mergeLocaleMessage(r,o[r])});{if(Te(i.datetimeFormats)){const r=Object.keys(i.datetimeFormats);r.length&&r.forEach(c=>{e.mergeDateTimeFormat(c,i.datetimeFormats[c])})}if(Te(i.numberFormats)){const r=Object.keys(i.numberFormats);r.length&&r.forEach(c=>{e.mergeNumberFormat(c,i.numberFormats[c])})}}}function d5(e){return n.createVNode(n.Text,null,e,0)}const f5="__INTLIFY_META__",u5=()=>[],gN=()=>!1;let m5=0;function h5(e){return(i,t,o,l)=>e(t,o,n.getCurrentInstance()||void 0,l)}const _N=()=>{const e=n.getCurrentInstance();let i=null;return e&&(i=l5(e)[f5])?{[f5]:i}:null};function ds(e={},i){const{__root:t,__injectWithOption:o}=e,l=t===void 0,r=e.flatJson,c=p1?n.ref:n.shallowRef,f=!!e.translateExistCompatible;process.env.NODE_ENV!=="production"&&f&&p3(Ln(Xe.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));let u=_e(e.inheritLocale)?e.inheritLocale:!0;const h=c(t&&u?t.locale.value:K(e.locale)?e.locale:wi),p=c(t&&u?t.fallbackLocale.value:K(e.fallbackLocale)||Re(e.fallbackLocale)||ue(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:h.value),C=c(ra(h.value,e)),_=c(ue(e.datetimeFormats)?e.datetimeFormats:{[h.value]:{}}),x=c(ue(e.numberFormats)?e.numberFormats:{[h.value]:{}});let N=t?t.missingWarn:_e(e.missingWarn)||ht(e.missingWarn)?e.missingWarn:!0,O=t?t.fallbackWarn:_e(e.fallbackWarn)||ht(e.fallbackWarn)?e.fallbackWarn:!0,I=t?t.fallbackRoot:_e(e.fallbackRoot)?e.fallbackRoot:!0,U=!!e.fallbackFormat,$=Pe(e.missing)?e.missing:null,B=Pe(e.missing)?h5(e.missing):null,T=Pe(e.postTranslation)?e.postTranslation:null,Z=t?t.warnHtmlMessage:_e(e.warnHtmlMessage)?e.warnHtmlMessage:!0,S=!!e.escapeParameter;const H=t?t.modifiers:ue(e.modifiers)?e.modifiers:{};let X=e.pluralRules||t&&t.pluralRules,W;W=(()=>{l&&O3(null);const V={version:mN,locale:h.value,fallbackLocale:p.value,messages:C.value,modifiers:H,pluralRules:X,missing:B===null?void 0:B,missingWarn:N,fallbackWarn:O,fallbackFormat:U,unresolving:!0,postTranslation:T===null?void 0:T,warnHtmlMessage:Z,escapeParameter:S,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};V.datetimeFormats=_.value,V.numberFormats=x.value,V.__datetimeFormatters=ue(W)?W.__datetimeFormatters:void 0,V.__numberFormatters=ue(W)?W.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(V.__v_emitter=ue(W)?W.__v_emitter:void 0);const Q=GE(V);return l&&O3(Q),Q})(),e2(W,h.value,p.value);function pn(){return[h.value,p.value,C.value,_.value,x.value]}const ve=n.computed({get:()=>h.value,set:V=>{h.value=V,W.locale=h.value}}),an=n.computed({get:()=>p.value,set:V=>{p.value=V,W.fallbackLocale=p.value,e2(W,h.value,V)}}),S1=n.computed(()=>C.value),Wt=n.computed(()=>_.value),e1=n.computed(()=>x.value);function Un(){return Pe(T)?T:null}function Tn(V){T=V,W.postTranslation=V}function Qt(){return $}function T1(V){V!==null&&(B=h5(V)),$=V,W.missing=B}function Cn(V,Q){return V!=="translate"||!Q.resolvedMessage}const Vn=(V,Q,Ae,Qe,t1,Mt)=>{pn();let H1;try{(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&WE(_N()),l||(W.fallbackContext=t?qE():void 0),H1=V(W)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,l||(W.fallbackContext=void 0)}if(Ae!=="translate exists"&&sn(H1)&&H1===aa||Ae==="translate exists"&&!H1){const[k1,f2]=Q();if(process.env.NODE_ENV!=="production"&&t&&K(k1)&&Cn(Ae,f2)&&(I&&(sa(O,k1)||j3(N,k1))&&rn(Ln(Xe.FALLBACK_TO_ROOT,{key:k1,type:Ae})),process.env.NODE_ENV!=="production")){const{__v_emitter:Ai}=W;Ai&&I&&Ai.emit("fallback",{type:Ae,key:k1,to:"global",groupId:`${Ae}:${k1}`})}return t&&I?Qe(t):t1(k1)}else{if(Mt(H1))return H1;throw ln(Be.UNEXPECTED_RETURN_TYPE)}};function kt(...V){return Vn(Q=>Reflect.apply(W3,null,[Q,...V]),()=>ts(...V),"translate",Q=>Reflect.apply(Q.t,Q,[...V]),Q=>Q,Q=>K(Q))}function Ct(...V){const[Q,Ae,Qe]=V;if(Qe&&!Te(Qe))throw ln(Be.INVALID_ARGUMENT);return kt(Q,Ae,mn({resolvedMessage:!0},Qe||{}))}function n1(...V){return Vn(Q=>Reflect.apply(J3,null,[Q,...V]),()=>is(...V),"datetime format",Q=>Reflect.apply(Q.d,Q,[...V]),()=>oa,Q=>K(Q))}function V1(...V){return Vn(Q=>Reflect.apply(e5,null,[Q,...V]),()=>as(...V),"number format",Q=>Reflect.apply(Q.n,Q,[...V]),()=>oa,Q=>K(Q))}function qt(V){return V.map(Q=>K(Q)||sn(Q)||_e(Q)?d5(String(Q)):Q)}const w1={normalize:qt,interpolate:V=>V,type:"vnode"};function vt(...V){return Vn(Q=>{let Ae;const Qe=Q;try{Qe.processor=w1,Ae=Reflect.apply(W3,null,[Qe,...V])}finally{Qe.processor=null}return Ae},()=>ts(...V),"translate",Q=>Q[ss](...V),Q=>[d5(Q)],Q=>Re(Q))}function I1(...V){return Vn(Q=>Reflect.apply(e5,null,[Q,...V]),()=>as(...V),"number format",Q=>Q[ls](...V),u5,Q=>K(Q)||Re(Q))}function O1(...V){return Vn(Q=>Reflect.apply(J3,null,[Q,...V]),()=>is(...V),"datetime format",Q=>Q[rs](...V),u5,Q=>K(Q)||Re(Q))}function xt(V){X=V,W.pluralRules=X}function q(V,Q){return Vn(()=>{if(!V)return!1;const Ae=K(Q)?Q:h.value,Qe=yn(Ae),t1=W.messageResolver(Qe,V);return f?t1!=null:gt(t1)||$n(t1)||K(t1)},()=>[V],"translate exists",Ae=>Reflect.apply(Ae.te,Ae,[V,Q]),gN,Ae=>_e(Ae))}function xe(V){let Q=null;const Ae=E3(W,p.value,h.value);for(let Qe=0;Qe<Ae.length;Qe++){const t1=C.value[Ae[Qe]]||{},Mt=W.messageResolver(t1,V);if(Mt!=null){Q=Mt;break}}return Q}function Gt(V){const Q=xe(V);return Q??(t?t.tm(V)||{}:{})}function yn(V){return C.value[V]||{}}function bt(V,Q){if(r){const Ae={[V]:Q};for(const Qe in Ae)$2(Ae,Qe)&&t2(Ae[Qe]);Q=Ae[V]}C.value[V]=Q,W.messages=C.value}function d2(V,Q){C.value[V]=C.value[V]||{};const Ae={[V]:Q};if(r)for(const Qe in Ae)$2(Ae,Qe)&&t2(Ae[Qe]);Q=Ae[V],na(Q,C.value[V]),W.messages=C.value}function b(V){return _.value[V]||{}}function D(V,Q){_.value[V]=Q,W.datetimeFormats=_.value,K3(W,V,Q)}function R(V,Q){_.value[V]=mn(_.value[V]||{},Q),W.datetimeFormats=_.value,K3(W,V,Q)}function se(V){return x.value[V]||{}}function we(V,Q){x.value[V]=Q,W.numberFormats=x.value,t5(W,V,Q)}function Se(V,Q){x.value[V]=mn(x.value[V]||{},Q),W.numberFormats=x.value,t5(W,V,Q)}m5++,t&&p1&&(n.watch(t.locale,V=>{u&&(h.value=V,W.locale=V,e2(W,h.value,p.value))}),n.watch(t.fallbackLocale,V=>{u&&(p.value=V,W.fallbackLocale=V,e2(W,h.value,p.value))}));const Ie={id:m5,locale:ve,fallbackLocale:an,get inheritLocale(){return u},set inheritLocale(V){u=V,V&&t&&(h.value=t.locale.value,p.value=t.fallbackLocale.value,e2(W,h.value,p.value))},get availableLocales(){return Object.keys(C.value).sort()},messages:S1,get modifiers(){return H},get pluralRules(){return X||{}},get isGlobal(){return l},get missingWarn(){return N},set missingWarn(V){N=V,W.missingWarn=N},get fallbackWarn(){return O},set fallbackWarn(V){O=V,W.fallbackWarn=O},get fallbackRoot(){return I},set fallbackRoot(V){I=V},get fallbackFormat(){return U},set fallbackFormat(V){U=V,W.fallbackFormat=U},get warnHtmlMessage(){return Z},set warnHtmlMessage(V){Z=V,W.warnHtmlMessage=V},get escapeParameter(){return S},set escapeParameter(V){S=V,W.escapeParameter=V},t:kt,getLocaleMessage:yn,setLocaleMessage:bt,mergeLocaleMessage:d2,getPostTranslationHandler:Un,setPostTranslationHandler:Tn,getMissingHandler:Qt,setMissingHandler:T1,[s5]:xt};return Ie.datetimeFormats=Wt,Ie.numberFormats=e1,Ie.rt=Ct,Ie.te=q,Ie.tm=Gt,Ie.d=n1,Ie.n=V1,Ie.getDateTimeFormat=b,Ie.setDateTimeFormat=D,Ie.mergeDateTimeFormat=R,Ie.getNumberFormat=se,Ie.setNumberFormat=we,Ie.mergeNumberFormat=Se,Ie[r5]=o,Ie[ss]=vt,Ie[rs]=O1,Ie[ls]=I1,process.env.NODE_ENV!=="production"&&(Ie[Yt]=V=>{W.__v_emitter=V},Ie[n2]=()=>{W.__v_emitter=void 0}),Ie}function wN(e){const i=K(e.locale)?e.locale:wi,t=K(e.fallbackLocale)||Re(e.fallbackLocale)||ue(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,o=Pe(e.missing)?e.missing:void 0,l=_e(e.silentTranslationWarn)||ht(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,r=_e(e.silentFallbackWarn)||ht(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,c=_e(e.fallbackRoot)?e.fallbackRoot:!0,f=!!e.formatFallbackMessages,u=ue(e.modifiers)?e.modifiers:{},h=e.pluralizationRules,p=Pe(e.postTranslation)?e.postTranslation:void 0,C=K(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,_=!!e.escapeParameterHtml,x=_e(e.sync)?e.sync:!0;process.env.NODE_ENV!=="production"&&e.formatter&&rn(Ln(Xe.NOT_SUPPORTED_FORMATTER)),process.env.NODE_ENV!=="production"&&e.preserveDirectiveContent&&rn(Ln(Xe.NOT_SUPPORTED_PRESERVE_DIRECTIVE));let N=e.messages;if(ue(e.sharedMessages)){const S=e.sharedMessages;N=Object.keys(S).reduce((X,W)=>{const Le=X[W]||(X[W]={});return mn(Le,S[W]),X},N||{})}const{__i18n:O,__root:I,__injectWithOption:U}=e,$=e.datetimeFormats,B=e.numberFormats,T=e.flatJson,Z=e.translateExistCompatible;return{locale:i,fallbackLocale:t,messages:N,flatJson:T,datetimeFormats:$,numberFormats:B,missing:o,missingWarn:l,fallbackWarn:r,fallbackRoot:c,fallbackFormat:f,modifiers:u,pluralRules:h,postTranslation:p,warnHtmlMessage:C,escapeParameter:_,messageResolver:e.messageResolver,inheritLocale:x,translateExistCompatible:Z,__i18n:O,__root:I,__injectWithOption:U}}function fs(e={},i){{const t=ds(wN(e)),{__extender:o}=e,l={id:t.id,get locale(){return t.locale.value},set locale(r){t.locale.value=r},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(r){t.fallbackLocale.value=r},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get formatter(){return process.env.NODE_ENV!=="production"&&rn(Ln(Xe.NOT_SUPPORTED_FORMATTER)),{interpolate(){return[]}}},set formatter(r){process.env.NODE_ENV!=="production"&&rn(Ln(Xe.NOT_SUPPORTED_FORMATTER))},get missing(){return t.getMissingHandler()},set missing(r){t.setMissingHandler(r)},get silentTranslationWarn(){return _e(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(r){t.missingWarn=_e(r)?!r:r},get silentFallbackWarn(){return _e(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(r){t.fallbackWarn=_e(r)?!r:r},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(r){t.fallbackFormat=r},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(r){t.setPostTranslationHandler(r)},get sync(){return t.inheritLocale},set sync(r){t.inheritLocale=r},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(r){t.warnHtmlMessage=r!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(r){t.escapeParameter=r},get preserveDirectiveContent(){return process.env.NODE_ENV!=="production"&&rn(Ln(Xe.NOT_SUPPORTED_PRESERVE_DIRECTIVE)),!0},set preserveDirectiveContent(r){process.env.NODE_ENV!=="production"&&rn(Ln(Xe.NOT_SUPPORTED_PRESERVE_DIRECTIVE))},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...r){const[c,f,u]=r,h={};let p=null,C=null;if(!K(c))throw ln(Be.INVALID_ARGUMENT);const _=c;return K(f)?h.locale=f:Re(f)?p=f:ue(f)&&(C=f),Re(u)?p=u:ue(u)&&(C=u),Reflect.apply(t.t,t,[_,p||C||{},h])},rt(...r){return Reflect.apply(t.rt,t,[...r])},tc(...r){const[c,f,u]=r,h={plural:1};let p=null,C=null;if(!K(c))throw ln(Be.INVALID_ARGUMENT);const _=c;return K(f)?h.locale=f:sn(f)?h.plural=f:Re(f)?p=f:ue(f)&&(C=f),K(u)?h.locale=u:Re(u)?p=u:ue(u)&&(C=u),Reflect.apply(t.t,t,[_,p||C||{},h])},te(r,c){return t.te(r,c)},tm(r){return t.tm(r)},getLocaleMessage(r){return t.getLocaleMessage(r)},setLocaleMessage(r,c){t.setLocaleMessage(r,c)},mergeLocaleMessage(r,c){t.mergeLocaleMessage(r,c)},d(...r){return Reflect.apply(t.d,t,[...r])},getDateTimeFormat(r){return t.getDateTimeFormat(r)},setDateTimeFormat(r,c){t.setDateTimeFormat(r,c)},mergeDateTimeFormat(r,c){t.mergeDateTimeFormat(r,c)},n(...r){return Reflect.apply(t.n,t,[...r])},getNumberFormat(r){return t.getNumberFormat(r)},setNumberFormat(r,c){t.setNumberFormat(r,c)},mergeNumberFormat(r,c){t.mergeNumberFormat(r,c)},getChoiceIndex(r,c){return process.env.NODE_ENV!=="production"&&rn(Ln(Xe.NOT_SUPPORTED_GET_CHOICE_INDEX)),-1}};return l.__extender=o,process.env.NODE_ENV!=="production"&&(l.__enableEmitter=r=>{const c=t;c[Yt]&&c[Yt](r)},l.__disableEmitter=()=>{const r=t;r[n2]&&r[n2]()}),l}}const us={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function kN({slots:e},i){return i.length===1&&i[0]==="default"?(e.default?e.default():[]).reduce((o,l)=>[...o,...l.type===n.Fragment?l.children:[l]],[]):i.reduce((t,o)=>{const l=e[o];return l&&(t[o]=l()),t},{})}function p5(e){return n.Fragment}const ms=n.defineComponent({name:"i18n-t",props:mn({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>sn(e)||!isNaN(e)}},us),setup(e,i){const{slots:t,attrs:o}=i,l=e.i18n||gs({useScope:e.scope,__useComponent:!0});return()=>{const r=Object.keys(t).filter(C=>C!=="_"),c={};e.locale&&(c.locale=e.locale),e.plural!==void 0&&(c.plural=K(e.plural)?+e.plural:e.plural);const f=kN(i,r),u=l[ss](e.keypath,f,c),h=mn({},o),p=K(e.tag)||Te(e.tag)?e.tag:p5();return n.h(p,h,u)}}});function CN(e){return Re(e)&&!K(e[0])}function y5(e,i,t,o){const{slots:l,attrs:r}=i;return()=>{const c={part:!0};let f={};e.locale&&(c.locale=e.locale),K(e.format)?c.key=e.format:Te(e.format)&&(K(e.format.key)&&(c.key=e.format.key),f=Object.keys(e.format).reduce((_,x)=>t.includes(x)?mn({},_,{[x]:e.format[x]}):_,{}));const u=o(e.value,c,f);let h=[c.key];Re(u)?h=u.map((_,x)=>{const N=l[_.type],O=N?N({[_.type]:_.value,index:x,parts:u}):[_.value];return CN(O)&&(O[0].key=`${_.type}-${x}`),O}):K(u)&&(h=[u]);const p=mn({},r),C=K(e.tag)||Te(e.tag)?e.tag:p5();return n.h(C,p,h)}}const g5=n.defineComponent({name:"i18n-n",props:mn({value:{type:Number,required:!0},format:{type:[String,Object]}},us),setup(e,i){const t=e.i18n||gs({useScope:e.scope,__useComponent:!0});return y5(e,i,n5,(...o)=>t[ls](...o))}}),_5=n.defineComponent({name:"i18n-d",props:mn({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},us),setup(e,i){const t=e.i18n||gs({useScope:e.scope,__useComponent:!0});return y5(e,i,$3,(...o)=>t[rs](...o))}});function vN(e,i){const t=e;if(e.mode==="composition")return t.__getInstance(i)||e.global;{const o=t.__getInstance(i);return o!=null?o.__composer:e.global.__composer}}function xN(e){const i=c=>{const{instance:f,modifiers:u,value:h}=c;if(!f||!f.$)throw ln(Be.UNEXPECTED_ERROR);const p=vN(e,f.$);process.env.NODE_ENV!=="production"&&u.preserve&&rn(Ln(Xe.NOT_SUPPORTED_PRESERVE));const C=w5(h);return[Reflect.apply(p.t,p,[...k5(C)]),p]};return{created:(c,f)=>{const[u,h]=i(f);p1&&e.global===h&&(c.__i18nWatcher=n.watch(h.locale,()=>{f.instance&&f.instance.$forceUpdate()})),c.__composer=h,c.textContent=u},unmounted:c=>{p1&&c.__i18nWatcher&&(c.__i18nWatcher(),c.__i18nWatcher=void 0,delete c.__i18nWatcher),c.__composer&&(c.__composer=void 0,delete c.__composer)},beforeUpdate:(c,{value:f})=>{if(c.__composer){const u=c.__composer,h=w5(f);c.textContent=Reflect.apply(u.t,u,[...k5(h)])}},getSSRProps:c=>{const[f]=i(c);return{textContent:f}}}}function w5(e){if(K(e))return{path:e};if(ue(e)){if(!("path"in e))throw ln(Be.REQUIRED_VALUE,"path");return e}else throw ln(Be.INVALID_VALUE)}function k5(e){const{path:i,locale:t,args:o,choice:l,plural:r}=e,c={},f=o||{};return K(t)&&(c.locale=t),sn(l)&&(c.plural=l),sn(r)&&(c.plural=r),[i,f,c]}function bN(e,i,...t){const o=ue(t[0])?t[0]:{},l=!!o.useI18nComponentName,r=_e(o.globalInstall)?o.globalInstall:!0;process.env.NODE_ENV!=="production"&&r&&l&&rn(Ln(Xe.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:ms.name})),r&&([l?"i18n":ms.name,"I18nT"].forEach(c=>e.component(c,ms)),[g5.name,"I18nN"].forEach(c=>e.component(c,g5)),[_5.name,"I18nD"].forEach(c=>e.component(c,_5))),e.directive("t",xN(i))}const hs={["vue-devtools-plugin-vue-i18n"]:"Vue I18n devtools",["vue-i18n-resource-inspector"]:"I18n Resources",["vue-i18n-timeline"]:"Vue I18n"},MN={["vue-i18n-resource-inspector"]:"Search for scopes ..."},DN={["vue-i18n-timeline"]:16764185},C5="vue-i18n: composer properties";let ps;async function AN(e,i){return new Promise((t,o)=>{try{uN({id:"vue-devtools-plugin-vue-i18n",label:hs["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[C5],app:e},l=>{ps=l,l.on.visitComponentTree(({componentInstance:c,treeNode:f})=>{EN(c,f,i)}),l.on.inspectComponent(({componentInstance:c,instanceData:f})=>{c.vnode.el&&c.vnode.el.__VUE_I18N__&&f&&(i.mode==="legacy"?c.vnode.el.__VUE_I18N__!==i.global.__composer&&x5(f,c.vnode.el.__VUE_I18N__):x5(f,c.vnode.el.__VUE_I18N__))}),l.addInspector({id:"vue-i18n-resource-inspector",label:hs["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:MN["vue-i18n-resource-inspector"]}),l.on.getInspectorTree(c=>{c.app===e&&c.inspectorId==="vue-i18n-resource-inspector"&&TN(c,i)});const r=new Map;l.on.getInspectorState(async c=>{if(c.app===e&&c.inspectorId==="vue-i18n-resource-inspector")if(l.unhighlightElement(),zN(c,i),c.nodeId==="global"){if(!r.has(c.app)){const[f]=await l.getComponentInstances(c.app);r.set(c.app,f)}l.highlightElement(r.get(c.app))}else{const f=VN(c.nodeId,i);f&&l.highlightElement(f)}}),l.on.editInspectorState(c=>{c.app===e&&c.inspectorId==="vue-i18n-resource-inspector"&&ON(c,i)}),l.addTimelineLayer({id:"vue-i18n-timeline",label:hs["vue-i18n-timeline"],color:DN["vue-i18n-timeline"]}),t(!0)})}catch(l){console.error(l),o(!1)}})}function v5(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function EN(e,i,t){const o=t.mode==="composition"?t.global:t.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==o){const l={label:`i18n (${v5(e)} Scope)`,textColor:0,backgroundColor:16764185};i.tags.push(l)}}function x5(e,i){const t=C5;e.state.push({type:t,key:"locale",editable:!0,value:i.locale.value}),e.state.push({type:t,key:"availableLocales",editable:!1,value:i.availableLocales}),e.state.push({type:t,key:"fallbackLocale",editable:!0,value:i.fallbackLocale.value}),e.state.push({type:t,key:"inheritLocale",editable:!0,value:i.inheritLocale}),e.state.push({type:t,key:"messages",editable:!1,value:ys(i.messages.value)}),e.state.push({type:t,key:"datetimeFormats",editable:!1,value:i.datetimeFormats.value}),e.state.push({type:t,key:"numberFormats",editable:!1,value:i.numberFormats.value})}function ys(e){const i={};return Object.keys(e).forEach(t=>{const o=e[t];Pe(o)&&"source"in o?i[t]=SN(o):gt(o)&&o.loc&&o.loc.source?i[t]=o.loc.source:Te(o)?i[t]=ys(o):i[t]=o}),i}const NN={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function BN(e){return e.replace(/[<>"&]/g,LN)}function LN(e){return NN[e]||e}function SN(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${BN(e.source)}")`:"(?)"}`}}}function TN(e,i){e.rootNodes.push({id:"global",label:"Global Scope"});const t=i.mode==="composition"?i.global:i.global.__composer;for(const[o,l]of i.__instances){const r=i.mode==="composition"?l:l.__composer;t!==r&&e.rootNodes.push({id:r.id.toString(),label:`${v5(o)} Scope`})}}function VN(e,i){let t=null;if(e!=="global"){for(const[o,l]of i.__instances.entries())if(l.id.toString()===e){t=o;break}}return t}function b5(e,i){if(e==="global")return i.mode==="composition"?i.global:i.global.__composer;{const t=Array.from(i.__instances.values()).find(o=>o.id.toString()===e);return t?i.mode==="composition"?t:t.__composer:null}}function zN(e,i){const t=b5(e.nodeId,i);return t&&(e.state=IN(t)),null}function IN(e){const i={},t="Locale related info",o=[{type:t,key:"locale",editable:!0,value:e.locale.value},{type:t,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:t,key:"availableLocales",editable:!1,value:e.availableLocales},{type:t,key:"inheritLocale",editable:!0,value:e.inheritLocale}];i[t]=o;const l="Locale messages info",r=[{type:l,key:"messages",editable:!1,value:ys(e.messages.value)}];i[l]=r;{const c="Datetime formats info",f=[{type:c,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];i[c]=f;const u="Datetime formats info",h=[{type:u,key:"numberFormats",editable:!1,value:e.numberFormats.value}];i[u]=h}return i}function i2(e,i){if(ps){let t;i&&"groupId"in i&&(t=i.groupId,delete i.groupId),ps.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:t,time:Date.now(),meta:{},data:i||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function ON(e,i){const t=b5(e.nodeId,i);if(t){const[o]=e.path;o==="locale"&&K(e.state.value)?t.locale.value=e.state.value:o==="fallbackLocale"&&(K(e.state.value)||Re(e.state.value)||Te(e.state.value))?t.fallbackLocale.value=e.state.value:o==="inheritLocale"&&_e(e.state.value)&&(t.inheritLocale=e.state.value)}}function HN(e,i,t){return{beforeCreate(){const o=n.getCurrentInstance();if(!o)throw ln(Be.UNEXPECTED_ERROR);const l=this.$options;if(l.i18n){const r=l.i18n;if(l.__i18n&&(r.__i18n=l.__i18n),r.__root=i,this===this.$root)this.$i18n=M5(e,r);else{r.__injectWithOption=!0,r.__extender=t.__vueI18nExtend,this.$i18n=fs(r);const c=this.$i18n;c.__extender&&(c.__disposer=c.__extender(this.$i18n))}}else if(l.__i18n)if(this===this.$root)this.$i18n=M5(e,l);else{this.$i18n=fs({__i18n:l.__i18n,__injectWithOption:!0,__extender:t.__vueI18nExtend,__root:i});const r=this.$i18n;r.__extender&&(r.__disposer=r.__extender(this.$i18n))}else this.$i18n=e;l.__i18nGlobal&&c5(i,l,l),this.$t=(...r)=>this.$i18n.t(...r),this.$rt=(...r)=>this.$i18n.rt(...r),this.$tc=(...r)=>this.$i18n.tc(...r),this.$te=(r,c)=>this.$i18n.te(r,c),this.$d=(...r)=>this.$i18n.d(...r),this.$n=(...r)=>this.$i18n.n(...r),this.$tm=r=>this.$i18n.tm(r),t.__setInstance(o,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$el&&this.$i18n){const o=this.$i18n;this.$el.__VUE_I18N__=o.__composer;const l=this.__v_emitter=Go();o.__enableEmitter&&o.__enableEmitter(l),l.on("*",i2)}},unmounted(){const o=n.getCurrentInstance();if(!o)throw ln(Be.UNEXPECTED_ERROR);const l=this.$i18n;process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",i2),delete this.__v_emitter),this.$i18n&&(l.__disableEmitter&&l.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,l.__disposer&&(l.__disposer(),delete l.__disposer,delete l.__extender),t.__deleteInstance(o),delete this.$i18n}}}function M5(e,i){e.locale=i.locale||e.locale,e.fallbackLocale=i.fallbackLocale||e.fallbackLocale,e.missing=i.missing||e.missing,e.silentTranslationWarn=i.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=i.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=i.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=i.postTranslation||e.postTranslation,e.warnHtmlInMessage=i.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=i.escapeParameterHtml||e.escapeParameterHtml,e.sync=i.sync||e.sync,e.__composer[s5](i.pluralizationRules||e.pluralizationRules);const t=ra(e.locale,{messages:i.messages,__i18n:i.__i18n});return Object.keys(t).forEach(o=>e.mergeLocaleMessage(o,t[o])),i.datetimeFormats&&Object.keys(i.datetimeFormats).forEach(o=>e.mergeDateTimeFormat(o,i.datetimeFormats[o])),i.numberFormats&&Object.keys(i.numberFormats).forEach(o=>e.mergeNumberFormat(o,i.numberFormats[o])),e}const jN=N1("global-vue-i18n");function FN(e={},i){const t=__VUE_I18N_LEGACY_API__&&_e(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,o=_e(e.globalInjection)?e.globalInjection:!0,l=__VUE_I18N_LEGACY_API__&&t?!!e.allowComposition:!0,r=new Map,[c,f]=PN(e,t),u=N1(process.env.NODE_ENV!=="production"?"vue-i18n":"");process.env.NODE_ENV!=="production"&&t&&l&&rn(Ln(Xe.NOTICE_DROP_ALLOW_COMPOSITION));function h(_){return r.get(_)||null}function p(_,x){r.set(_,x)}function C(_){r.delete(_)}{const _={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},get allowComposition(){return l},async install(x,...N){if(process.env.NODE_ENV!=="production"&&(x.__VUE_I18N__=_),x.__VUE_I18N_SYMBOL__=u,x.provide(x.__VUE_I18N_SYMBOL__,_),ue(N[0])){const U=N[0];_.__composerExtend=U.__composerExtend,_.__vueI18nExtend=U.__vueI18nExtend}let O=null;!t&&o&&(O=XN(x,_.global)),__VUE_I18N_FULL_INSTALL__&&bN(x,_,...N),__VUE_I18N_LEGACY_API__&&t&&x.mixin(HN(f,f.__composer,_));const I=x.unmount;if(x.unmount=()=>{O&&O(),_.dispose(),I()},process.env.NODE_ENV!=="production"){if(!await AN(x,_))throw ln(Be.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const $=Go();if(t){const B=f;B.__enableEmitter&&B.__enableEmitter($)}else{const B=f;B[Yt]&&B[Yt]($)}$.on("*",i2)}},get global(){return f},dispose(){c.stop()},__instances:r,__getInstance:h,__setInstance:p,__deleteInstance:C};return _}}function gs(e={}){const i=n.getCurrentInstance();if(i==null)throw ln(Be.MUST_BE_CALL_SETUP_TOP);if(!i.isCE&&i.appContext.app!=null&&!i.appContext.app.__VUE_I18N_SYMBOL__)throw ln(Be.NOT_INSTALLED);const t=UN(i),o=YN(t),l=l5(i),r=RN(e,l);if(__VUE_I18N_LEGACY_API__&&t.mode==="legacy"&&!e.__useComponent){if(!t.allowComposition)throw ln(Be.NOT_AVAILABLE_IN_LEGACY_MODE);return qN(i,r,o,e)}if(r==="global")return c5(o,e,l),o;if(r==="parent"){let u=ZN(t,i,e.__useComponent);return u==null&&(process.env.NODE_ENV!=="production"&&rn(Ln(Xe.NOT_FOUND_PARENT_SCOPE)),u=o),u}const c=t;let f=c.__getInstance(i);if(f==null){const u=mn({},e);"__i18n"in l&&(u.__i18n=l.__i18n),o&&(u.__root=o),f=ds(u),c.__composerExtend&&(f[cs]=c.__composerExtend(f)),QN(c,i,f),c.__setInstance(i,f)}return f}function PN(e,i,t){const o=n.effectScope();{const l=__VUE_I18N_LEGACY_API__&&i?o.run(()=>fs(e)):o.run(()=>ds(e));if(l==null)throw ln(Be.UNEXPECTED_ERROR);return[o,l]}}function UN(e){{const i=n.inject(e.isCE?jN:e.appContext.app.__VUE_I18N_SYMBOL__);if(!i)throw ln(e.isCE?Be.NOT_INSTALLED_WITH_PROVIDE:Be.UNEXPECTED_ERROR);return i}}function RN(e,i){return J2(e)?"__i18n"in i?"local":"global":e.useScope?e.useScope:"local"}function YN(e){return e.mode==="composition"?e.global:e.global.__composer}function ZN(e,i,t=!1){let o=null;const l=i.root;let r=WN(i,t);for(;r!=null;){const c=e;if(e.mode==="composition")o=c.__getInstance(r);else if(__VUE_I18N_LEGACY_API__){const f=c.__getInstance(r);f!=null&&(o=f.__composer,t&&o&&!o[r5]&&(o=null))}if(o!=null||l===r)break;r=r.parent}return o}function WN(e,i=!1){return e==null?null:i&&e.vnode.ctx||e.parent}function QN(e,i,t){let o=null;n.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&i.vnode.el){i.vnode.el.__VUE_I18N__=t,o=Go();const l=t;l[Yt]&&l[Yt](o),o.on("*",i2)}},i),n.onUnmounted(()=>{const l=t;process.env.NODE_ENV!=="production"&&i.vnode.el&&i.vnode.el.__VUE_I18N__&&(o&&o.off("*",i2),l[n2]&&l[n2](),delete i.vnode.el.__VUE_I18N__),e.__deleteInstance(i);const r=l[cs];r&&(r(),delete l[cs])},i)}function qN(e,i,t,o={}){const l=i==="local",r=n.shallowRef(null);if(l&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw ln(Be.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const c=_e(o.inheritLocale)?o.inheritLocale:!K(o.locale),f=n.ref(!l||c?t.locale.value:K(o.locale)?o.locale:wi),u=n.ref(!l||c?t.fallbackLocale.value:K(o.fallbackLocale)||Re(o.fallbackLocale)||ue(o.fallbackLocale)||o.fallbackLocale===!1?o.fallbackLocale:f.value),h=n.ref(ra(f.value,o)),p=n.ref(ue(o.datetimeFormats)?o.datetimeFormats:{[f.value]:{}}),C=n.ref(ue(o.numberFormats)?o.numberFormats:{[f.value]:{}}),_=l?t.missingWarn:_e(o.missingWarn)||ht(o.missingWarn)?o.missingWarn:!0,x=l?t.fallbackWarn:_e(o.fallbackWarn)||ht(o.fallbackWarn)?o.fallbackWarn:!0,N=l?t.fallbackRoot:_e(o.fallbackRoot)?o.fallbackRoot:!0,O=!!o.fallbackFormat,I=Pe(o.missing)?o.missing:null,U=Pe(o.postTranslation)?o.postTranslation:null,$=l?t.warnHtmlMessage:_e(o.warnHtmlMessage)?o.warnHtmlMessage:!0,B=!!o.escapeParameter,T=l?t.modifiers:ue(o.modifiers)?o.modifiers:{},Z=o.pluralRules||l&&t.pluralRules;function S(){return[f.value,u.value,h.value,p.value,C.value]}const H=n.computed({get:()=>r.value?r.value.locale.value:f.value,set:q=>{r.value&&(r.value.locale.value=q),f.value=q}}),X=n.computed({get:()=>r.value?r.value.fallbackLocale.value:u.value,set:q=>{r.value&&(r.value.fallbackLocale.value=q),u.value=q}}),W=n.computed(()=>r.value?r.value.messages.value:h.value),Le=n.computed(()=>p.value),pn=n.computed(()=>C.value);function ve(){return r.value?r.value.getPostTranslationHandler():U}function an(q){r.value&&r.value.setPostTranslationHandler(q)}function S1(){return r.value?r.value.getMissingHandler():I}function Wt(q){r.value&&r.value.setMissingHandler(q)}function e1(q){return S(),q()}function Un(...q){return r.value?e1(()=>Reflect.apply(r.value.t,null,[...q])):e1(()=>"")}function Tn(...q){return r.value?Reflect.apply(r.value.rt,null,[...q]):""}function Qt(...q){return r.value?e1(()=>Reflect.apply(r.value.d,null,[...q])):e1(()=>"")}function T1(...q){return r.value?e1(()=>Reflect.apply(r.value.n,null,[...q])):e1(()=>"")}function Cn(q){return r.value?r.value.tm(q):{}}function Vn(q,xe){return r.value?r.value.te(q,xe):!1}function kt(q){return r.value?r.value.getLocaleMessage(q):{}}function Ct(q,xe){r.value&&(r.value.setLocaleMessage(q,xe),h.value[q]=xe)}function n1(q,xe){r.value&&r.value.mergeLocaleMessage(q,xe)}function V1(q){return r.value?r.value.getDateTimeFormat(q):{}}function qt(q,xe){r.value&&(r.value.setDateTimeFormat(q,xe),p.value[q]=xe)}function z1(q,xe){r.value&&r.value.mergeDateTimeFormat(q,xe)}function w1(q){return r.value?r.value.getNumberFormat(q):{}}function vt(q,xe){r.value&&(r.value.setNumberFormat(q,xe),C.value[q]=xe)}function I1(q,xe){r.value&&r.value.mergeNumberFormat(q,xe)}const O1={get id(){return r.value?r.value.id:-1},locale:H,fallbackLocale:X,messages:W,datetimeFormats:Le,numberFormats:pn,get inheritLocale(){return r.value?r.value.inheritLocale:c},set inheritLocale(q){r.value&&(r.value.inheritLocale=q)},get availableLocales(){return r.value?r.value.availableLocales:Object.keys(h.value)},get modifiers(){return r.value?r.value.modifiers:T},get pluralRules(){return r.value?r.value.pluralRules:Z},get isGlobal(){return r.value?r.value.isGlobal:!1},get missingWarn(){return r.value?r.value.missingWarn:_},set missingWarn(q){r.value&&(r.value.missingWarn=q)},get fallbackWarn(){return r.value?r.value.fallbackWarn:x},set fallbackWarn(q){r.value&&(r.value.missingWarn=q)},get fallbackRoot(){return r.value?r.value.fallbackRoot:N},set fallbackRoot(q){r.value&&(r.value.fallbackRoot=q)},get fallbackFormat(){return r.value?r.value.fallbackFormat:O},set fallbackFormat(q){r.value&&(r.value.fallbackFormat=q)},get warnHtmlMessage(){return r.value?r.value.warnHtmlMessage:$},set warnHtmlMessage(q){r.value&&(r.value.warnHtmlMessage=q)},get escapeParameter(){return r.value?r.value.escapeParameter:B},set escapeParameter(q){r.value&&(r.value.escapeParameter=q)},t:Un,getPostTranslationHandler:ve,setPostTranslationHandler:an,getMissingHandler:S1,setMissingHandler:Wt,rt:Tn,d:Qt,n:T1,tm:Cn,te:Vn,getLocaleMessage:kt,setLocaleMessage:Ct,mergeLocaleMessage:n1,getDateTimeFormat:V1,setDateTimeFormat:qt,mergeDateTimeFormat:z1,getNumberFormat:w1,setNumberFormat:vt,mergeNumberFormat:I1};function xt(q){q.locale.value=f.value,q.fallbackLocale.value=u.value,Object.keys(h.value).forEach(xe=>{q.mergeLocaleMessage(xe,h.value[xe])}),Object.keys(p.value).forEach(xe=>{q.mergeDateTimeFormat(xe,p.value[xe])}),Object.keys(C.value).forEach(xe=>{q.mergeNumberFormat(xe,C.value[xe])}),q.escapeParameter=B,q.fallbackFormat=O,q.fallbackRoot=N,q.fallbackWarn=x,q.missingWarn=_,q.warnHtmlMessage=$}return n.onBeforeMount(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw ln(Be.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const q=r.value=e.proxy.$i18n.__composer;i==="global"?(f.value=q.locale.value,u.value=q.fallbackLocale.value,h.value=q.messages.value,p.value=q.datetimeFormats.value,C.value=q.numberFormats.value):l&&xt(q)}),O1}const GN=["locale","fallbackLocale","availableLocales"],D5=["t","rt","d","n","tm","te"];function XN(e,i){const t=Object.create(null);return GN.forEach(l=>{const r=Object.getOwnPropertyDescriptor(i,l);if(!r)throw ln(Be.UNEXPECTED_ERROR);const c=n.isRef(r.value)?{get(){return r.value.value},set(f){r.value.value=f}}:{get(){return r.get&&r.get()}};Object.defineProperty(t,l,c)}),e.config.globalProperties.$i18n=t,D5.forEach(l=>{const r=Object.getOwnPropertyDescriptor(i,l);if(!r||!r.value)throw ln(Be.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${l}`,r)}),()=>{delete e.config.globalProperties.$i18n,D5.forEach(l=>{delete e.config.globalProperties[`$${l}`]})}}if(hN(),__INTLIFY_JIT_COMPILATION__?S3(KE):S3($E),YE(bE),ZE(E3),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=J1();e.__INTLIFY__=!0,TE(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const JN={upload_area:{title:{text:"Drag your file here or",highlight:"search it"},invalid:{subtitle:"File not supported, select supported formats:"},subtitle:"Supported formats:"},import_card:{importing:"Importing"},audio_recorder:{discard_button:"Discard"},chat_message:{reply_message:{you:"You",video:"Video",image:"Image",audio:"Audio message"}}},$N={upload_area:{title:{text:"Arrastra tu archivo aquí o",highlight:"búscalo"},invalid:{subtitle:"Archivo no compatible, seleccione los formatos compatibles:"},subtitle:"Formatos compatibles:"},import_card:{importing:"Importando"},audio_recorder:{discard_button:"Descartar"},chat_message:{reply_message:{you:"Tú",video:"Vídeo",image:"Imagen",audio:"Mensaje de audio"}}},A5={upload_area:{title:{text:"Arraste seu arquivo aqui, ou",highlight:"procure-o"},invalid:{subtitle:"Arquivo não compatível, selecione formatos suportados:"},subtitle:"Formatos suportados:"},import_card:{importing:"Importando"},audio_recorder:{discard_button:"Descartar"},chat_message:{reply_message:{you:"Você",video:"Vídeo",image:"Imagem",audio:"Mensagem de áudio"}}},KN=Object.assign({en:JN,es:$N,"pt-br":A5,"pt-BR":A5}),_s=FN({locale:"en",fallbackLocale:"en",messages:KN}),Pn={props:{locale:{type:String},translations:{type:Object}},methods:{i18n(...e){const[i,t]=e,o=Object.keys(_s.global.messages);let{locale:l}=this;const r=pi.get(_s,"global.locale")==="en-us"?"en":pi.get(_s,"global.locale");l=o.includes(l)?l:r,l=l==null?void 0:l.toLowerCase();let c=pi.get(this.translations,`${i}.${l}`,pi.get(this.translations,i));if(c||(c=pi.get(pi.get(this.defaultTranslations,i),l,t)),c!=null&&c.includes("|")&&typeof e[1]=="number"){const u=e[1],h=c.split("|");h.length===3?c=h[u]||h[2]:h.length===2&&(c=u===1?h[0]:h[1])}let f={};return Object.values(e).slice(1).forEach(u=>{!(u instanceof Array)&&u instanceof Object&&(f=u)}),Object.keys(f).forEach(u=>{c=c==null?void 0:c.replaceAll(new RegExp(`{ *${u} *}`,"g"),f[u])}),c}}},yie="",gie="",_ie="",eB={name:"UnnnicButton",components:{UnnnicIcon:ne},props:{size:{type:String,default:"large"},text:{type:String,default:""},type:{type:String,default:"primary"},float:{type:Boolean,default:!1},iconLeft:{type:String,default:""},iconRight:{type:String,default:""},iconCenter:{type:String,default:""},iconsFilled:{type:Boolean,default:!1},next:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},computed:{buttonDisabled(){return this.disabled||this.loading},iconSize(){return this.size==="small"?"sm":"md"},hasText(){return this.$slots.default?!0:this.text&&this.text.length>0},iconScheme(){return this.buttonDisabled?"neutral-clean":{primary:"neutral-white",secondary:"neutral-dark",tertiary:"neutral-dark",warning:"neutral-white",attention:"neutral-white"}[this.type]||""},isSizePropValid(){return this.size==="large"||!this.float&&this.size==="small"||this.float&&this.size==="extra-large"},isTypePropValid(){return["primary","secondary","tertiary","alternative","warning","attention"].includes(this.type)}},watch:{$props:{deep:!0,immediate:!0,handler(){this.validateProps()}}},methods:{validateProps(){if(!this.isSizePropValid||!this.isTypePropValid){let e="TypeError:";throw this.isSizePropValid||(e+=" Invalid size prop.",e+=" Please provide 'large', 'small' (only if float prop is false), or 'extra-large' (only if float prop is true)."),this.isTypePropValid||(e+=" Invalid type prop."),new Error(e)}}}},nB=["disabled"];function tB(e,i,t,o,l,r){const c=n.resolveComponent("UnnnicIcon");return n.openBlock(),n.createElementBlock("button",n.mergeProps(e.$attrs,{disabled:r.buttonDisabled,class:["unnnic-button",`unnnic-button--size-${t.size}`,`unnnic-button--${t.type}`,t.iconCenter?"unnnic-button--icon-on-center":null,t.float?"unnnic-button--float":null]}),[t.loading?(n.openBlock(),n.createBlock(c,{key:0,icon:"loading-circle-1",scheme:r.iconScheme,size:r.iconSize,filled:t.iconsFilled,style:{position:"absolute"},class:"rotation",next:t.next,"data-testid":"icon-loading"},null,8,["scheme","size","filled","next"])):n.createCommentVNode("",!0),t.iconLeft?(n.openBlock(),n.createBlock(c,{key:1,icon:t.iconLeft,scheme:r.iconScheme,size:r.iconSize,filled:t.iconsFilled,class:n.normalizeClass({"unnnic-button__icon-left":r.hasText}),style:n.normalizeStyle({visibility:t.loading?"hidden":null}),next:t.next,"data-testid":"icon-left"},null,8,["icon","scheme","size","filled","class","style","next"])):n.createCommentVNode("",!0),t.iconCenter?(n.openBlock(),n.createBlock(c,{key:2,icon:t.iconCenter,scheme:r.iconScheme,style:n.normalizeStyle({visibility:t.loading?"hidden":null}),size:r.iconSize,filled:t.iconsFilled,next:t.next,"data-testid":"icon-center"},null,8,["icon","scheme","style","size","filled","next"])):n.createCommentVNode("",!0),t.float?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("span",{key:3,class:"unnnic-button__label",style:n.normalizeStyle({visibility:t.loading?"hidden":null}),"data-testid":"button-label"},[n.renderSlot(e.$slots,"default",{},void 0,!0),n.createTextVNode(" "+n.toDisplayString(t.text),1)],4)),t.iconRight?(n.openBlock(),n.createBlock(c,{key:4,icon:t.iconRight,scheme:r.iconScheme,size:r.iconSize,filled:t.iconsFilled,class:n.normalizeClass({"unnnic-button__icon-right":r.hasText}),style:n.normalizeStyle({visibility:t.loading?"hidden":null}),next:t.next,"data-testid":"icon-right"},null,8,["icon","scheme","size","filled","class","style","next"])):n.createCommentVNode("",!0)],16,nB)}const g1=k(eB,[["render",tB],["__scopeId","data-v-d127031e"]]),wie="",iB={components:{UnnnicButton:g1},mixins:[Pn],props:{initialStartDate:{type:String,default:""},initialEndDate:{type:String,default:""},minDate:{type:String,default:""},maxDate:{type:String,default:""},type:{type:String,default:"day",validator(e){return["day","month","year"].includes(e)}},size:{type:String,default:"large",validator(e){return["small","large"].includes(e)}},clearLabel:{type:String,default:""},actionLabel:{type:String,default:""},months:{type:Array,default:()=>[],validator(e){return[0,12].includes(e.length)}},days:{type:Array,default:()=>[],validator(e){return[0,7].includes(e.length)}},options:{type:Array,default:()=>[]},disableClear:{type:Boolean,default:!1}},emits:["change","submit"],data(){const e=new Date;return{referenceDate:`${e.getMonth()+1} 1 ${e.getFullYear()}`,startDate:(this.initialStartDate||"").replace(/-/g," "),endDate:(this.initialEndDate||"").replace(/-/g," "),optionSelected:"",defaultTranslations:{clean:{"pt-br":"Limpar",en:"Clean",es:"Limpiar"},filter:{"pt-br":"Filtrar",en:"Filter",es:"Filtrar"}}}},computed:{openMonths(){return[this.addMonth(this.referenceDate,-1),this.referenceDate]},value(){return{startDate:this.startDate.replaceAll(" ","-"),endDate:this.endDate.replaceAll(" ","-")}},i18nLocale(){return this.$i18n.locale.toLowerCase()},monthsLocale(){const{months:e}=this;return e.length?e:DA[this.i18nLocale]},daysLocale(){const{days:e}=this;return e.length?e:AA[this.i18nLocale]},periodsLocale(){const{options:e}=this;return e.length?e:EA[this.i18nLocale]},clearText(){return this.clearLabel||this.i18n("clean")},filterText(){return this.actionLabel||this.i18n("filter")}},watch:{value({startDate:e,endDate:i}){this.optionSelected=e||i?"custom":"",this.$emit("change",this.value)}},methods:{dateToString(e){return`${e.getMonth()+1} ${e.getDate()} ${e.getFullYear()}`},dateToStringMonth(e){return`${e.getMonth()+1} ${e.getFullYear()}`},dateToStringYear(e){return e.getFullYear()},stringToTime(e){const[i,t,o]=e.split(" ");return new Date(o,Number(i)-1,t).getTime()},getDate(e){return e.toString().split(" ")[1]},getMonth(e){return e.toString().split(" ")[0]},getFullYear(e){const[i,t,o]=e.split(" ");return new Date(o,Number(i)-1,t).getFullYear()},addMonth(e,i){const[t,o,l]=e.split(" "),r=new Date(l,Number(t)-1,o);return r.setMonth(r.getMonth()+i),this.dateToString(r)},isDateBetween(e){if(this.startDate&&this.endDate){if(e>=this.stringToTime(this.startDate)&&e<=this.stringToTime(this.endDate))return!0}else{if(this.startDate&&e>=this.stringToTime(this.startDate))return!0;if(this.endDate&&e<=this.stringToTime(this.endDate))return!0}return!1},isDateBetweenMonth(e){const[i,t,o]=e.split(" "),l=new Date(o,Number(i)-1,t);l.setDate(1);const r=l.getTime();if(this.startDate&&this.endDate){if(e>=r&&e<=this.stringToTime(this.endDate))return!0}else{if(this.startDate&&e>=r)return!0;if(this.endDate&&e<=this.stringToTime(this.endDate))return!0}return!1},isDateBetweenYear(e){const[i,t,o]=e.split(" "),l=new Date(o,Number(i)-1,t);l.setDate(1),l.setMonth(0);const r=l.getTime();if(this.startDate&&this.endDate){if(e>=r&&e<=this.stringToTime(this.endDate))return!0}else{if(this.startDate&&e>=r)return!0;if(this.endDate&&e<=this.stringToTime(this.endDate))return!0}return!1},getDatesOfTheMonth(e){const[i,t,o]=e.split(" "),l=new Date(o,Number(i)-1,t),r=l.getMonth(),c=86400;l.setDate(1-l.getDay());const f=[];for(let u=0;u<6*7;u+=1){const h=this.dateToString(l),p=[];if(this.minDate){const[C,_,x]=this.minDate.split("-"),N=new Date(C,Number(_)-1,x);l<N&&p.push("out of range")}if(this.maxDate){const[C,_,x]=this.maxDate.split("-"),N=new Date(C,Number(_)-1,x);l>N&&p.push("out of range")}if(r===l.getMonth()){p.push("inside month");const C=this.stringToTime(this.dateToString(l)),_=C-c,x=C+c;this.isDateBetween(C)&&(p.push("selected"),this.isDateBetween(_)||p.push("left-highlighted"),this.isDateBetween(x)||p.push("right-highlighted"),(p.includes("left-highlighted")||p.includes("right-highlighted"))&&p.push("highlighted"))}this.dateToString(l)===this.dateToString(new Date)&&p.push("today"),f.push({properties:p,toString:()=>h}),l.setDate(l.getDate()+1)}return f},getMonthsOfTheYear(e){const[i,t,o]=e.split(" "),l=new Date(o,Number(i)-1,t);l.setMonth(0);const r=[];for(let c=0;c<3*4;c+=1){const f=this.dateToString(l),u=[];u.push("inside month");const h=this.stringToTime(this.dateToString(l));let p=new Date(h),C=new Date(h);p.setMonth(p.getMonth()-1),C.setMonth(C.getMonth()+1),p=p.getTime(),C=C.getTime(),this.isDateBetweenMonth(h)&&(u.push("selected"),this.isDateBetweenMonth(p)||u.push("left-highlighted"),this.isDateBetweenMonth(C)||u.push("right-highlighted"),(u.includes("left-highlighted")||u.includes("right-highlighted"))&&u.push("highlighted")),this.dateToStringMonth(l)===this.dateToStringMonth(new Date)&&u.push("today"),r.push({properties:u,date:f,toString:()=>f}),l.setMonth(l.getMonth()+1)}return r},getYears(e){const[i,t,o]=e.split(" "),l=new Date(o,Number(i)-1,t);l.setMonth(0);const r=[];for(let c=0;c<3*4;c+=1){const f=this.dateToString(l),u=[];u.push("inside month");const h=this.stringToTime(this.dateToString(l)),[p,C,_]=e.split(" ");let x=new Date(_,Number(p)-1,C),N=new Date(_,Number(p)-1,C);x.setMonth(x.getMonth()-12),N.setMonth(N.getMonth()+12),x=x.getTime(),N=N.getTime(),this.isDateBetweenYear(h)&&(u.push("selected"),this.isDateBetweenYear(x)||u.push("left-highlighted"),this.isDateBetweenYear(N)||u.push("right-highlighted"),(u.includes("left-highlighted")||u.includes("right-highlighted"))&&u.push("highlighted")),this.dateToStringYear(l)===this.dateToStringYear(new Date)&&u.push("today"),r.push({properties:u,date:l.getFullYear(),toString:()=>f}),l.setFullYear(l.getFullYear()+1)}return r},selectDate(e){if(!this.startDate||!this.endDate)this.startDate=e.toString(),this.endDate=this.startDate;else{const i=this.stringToTime(e.toString()),t=this.stringToTime(this.startDate),o=this.stringToTime(this.endDate);t!==o?(this.startDate=e.toString(),this.endDate=this.startDate):i>o?this.endDate=e.toString():i<t?this.startDate=e.toString():i===t||i===o?(this.startDate=e.toString(),this.endDate=this.startDate):i-t<o-i?this.startDate=e.toString():this.endDate=e.toString()}},clear(){this.startDate="",this.endDate="",this.optionSelected=""},autoSelect(e){const i=new Date,t=e.match(/^last-(\d+)-days$/),o=e.match(/^last-(\d+)-months$/);if(t){const l=Number(t[1]);this.endDate=this.dateToString(i),i.setDate(i.getDate()-l+1),this.startDate=this.dateToString(i)}else if(o){const l=Number(o[1]);this.endDate=this.dateToString(i),i.setDate(i.getDate()+1),i.setMonth(i.getMonth()-l),this.startDate=this.dateToString(i)}else if(e==="current-month"){const l=new Date;i.setDate(1),this.startDate=this.dateToString(i);const r=l.getDate();i.setDate(r),this.endDate=this.dateToString(i)}else e==="previous-month"&&(i.setDate(1),i.setMonth(i.getMonth()-1),this.startDate=this.dateToString(i),i.setMonth(i.getMonth()+1),i.setDate(0),this.endDate=this.dateToString(i));if(this.endDate){const l=this.addMonth(this.referenceDate,1),r=`${Number(this.getMonth(this.endDate))} 1 ${this.getFullYear(this.endDate)}`;[this.referenceDate,l].includes(r)||(this.referenceDate=r)}this.$nextTick(()=>{this.optionSelected=e})}}},ws=e=>(n.pushScopeId("data-v-5165d8a8"),e=e(),n.popScopeId(),e),aB={class:"unnnic-date-picker"},oB={class:"month-container"},sB=["onClick"],rB=ws(()=>n.createElementVNode("div",{class:"divider"},null,-1)),lB={class:"month-container"},cB=["onClick"],dB=ws(()=>n.createElementVNode("div",{class:"divider"},null,-1)),fB={class:"month-container"},uB=["onClick"],mB=ws(()=>n.createElementVNode("div",{class:"divider"},null,-1)),hB={key:3,class:"options-container"},pB={class:"options"},yB=["onClick"],gB={class:"actions"};function _B(e,i,t,o,l,r){const c=n.resolveComponent("UnnnicButton");return n.openBlock(),n.createElementBlock("div",aB,[t.type==="day"?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(r.openMonths,(f,u)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:f},[n.createElementVNode("div",oB,[n.createElementVNode("div",{class:n.normalizeClass(["header",`header--${t.size}`])},[n.createVNode(c,{size:"small",iconCenter:`arrow-${u===0?"left":"right"}-1-1`,type:t.size==="large"?"secondary":"tertiary",class:"button-space",style:n.normalizeStyle({gridArea:`${u===0?"left":"right"}-button`}),onClick:n.withModifiers(h=>l.referenceDate=r.addMonth(l.referenceDate,u===0?-1:1),["stop"])},null,8,["iconCenter","type","style","onClick"]),n.createElementVNode("div",{class:n.normalizeClass(["label",`label--${t.size}`])},n.toDisplayString(r.monthsLocale[Number(r.getMonth(f))-1])+" "+n.toDisplayString(r.getFullYear(f)),3)],2),n.createElementVNode("div",{class:n.normalizeClass(["days",`days--${t.size}`])},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.daysLocale,(h,p)=>(n.openBlock(),n.createElementBlock("div",{key:p,class:"name"},n.toDisplayString(h),1))),128)),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.getDatesOfTheMonth(f),(h,p)=>(n.openBlock(),n.createElementBlock("div",{key:`${f}-${p}`,class:n.normalizeClass({disabled:!h.properties.includes("inside month")||h.properties.includes("out of range"),selectable:h.properties.includes("inside month")&&!h.properties.includes("out of range"),today:h.properties.includes("today"),selected:h.properties.includes("selected"),highlighted:h.properties.includes("highlighted"),left:h.properties.includes("left-highlighted"),right:h.properties.includes("right-highlighted")}),onClick:C=>h.properties.includes("inside month")&&!h.properties.includes("out of range")&&r.selectDate(h)},n.toDisplayString(r.getDate(h)),11,sB))),128))],2)]),rB],64))),128)):t.type==="month"?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:1},n.renderList([l.referenceDate],f=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:f},[n.createElementVNode("div",lB,[n.createElementVNode("div",{class:n.normalizeClass(["header",`header--${t.size}`])},[n.createVNode(c,{size:"small",iconCenter:"arrow-left-1-1",type:t.size==="large"?"secondary":"tertiary",class:"button-space",style:{gridArea:"left-button"},onClick:i[0]||(i[0]=u=>l.referenceDate=r.addMonth(l.referenceDate,-12))},null,8,["type"]),n.createElementVNode("div",{class:n.normalizeClass(["label",`label--${t.size}`])},n.toDisplayString(r.getFullYear(f)),3),n.createVNode(c,{size:"small",iconCenter:"arrow-right-1-1",type:t.size==="large"?"secondary":"tertiary",class:"button-space",style:{gridArea:"right-button"},onClick:i[1]||(i[1]=u=>l.referenceDate=r.addMonth(l.referenceDate,12))},null,8,["type"])],2),n.createElementVNode("div",{class:n.normalizeClass(["days",`months--${t.size}`])},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.getMonthsOfTheYear(f),(u,h)=>(n.openBlock(),n.createElementBlock("div",{key:`${f}-${h}`,class:n.normalizeClass({disabled:!u.properties.includes("inside month"),selectable:u.properties.includes("inside month"),today:u.properties.includes("today"),selected:u.properties.includes("selected"),highlighted:u.properties.includes("highlighted"),left:u.properties.includes("left-highlighted"),right:u.properties.includes("right-highlighted")}),onClick:p=>u.properties.includes("inside month")&&r.selectDate(u)},n.toDisplayString(r.monthsLocale[r.getMonth(u)].substr(0,3)),11,cB))),128))],2)]),dB],64))),128)):t.type==="year"?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:2},n.renderList([l.referenceDate],f=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:f},[n.createElementVNode("div",fB,[n.createElementVNode("div",{class:n.normalizeClass(["header",`header--${t.size}`])},[n.createVNode(c,{size:"small",iconCenter:"arrow-left-1-1",type:t.size==="large"?"secondary":"tertiary",class:"button-space",style:{gridArea:"left-button"},onClick:i[2]||(i[2]=u=>l.referenceDate=r.addMonth(l.referenceDate,-12*12))},null,8,["type"]),n.createElementVNode("div",{class:n.normalizeClass(["label",`label--${t.size}`])},n.toDisplayString(r.getFullYear(f)),3),n.createVNode(c,{size:"small",iconCenter:"arrow-right-1-1",type:t.size==="large"?"secondary":"tertiary",class:"button-space",style:{gridArea:"right-button"},onClick:i[3]||(i[3]=u=>l.referenceDate=r.addMonth(l.referenceDate,12*12))},null,8,["type"])],2),n.createElementVNode("div",{class:n.normalizeClass(["days",`months--${t.size}`])},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.getYears(f),(u,h)=>(n.openBlock(),n.createElementBlock("div",{key:`${f}-${h}`,class:n.normalizeClass({disabled:!u.properties.includes("inside month"),selectable:u.properties.includes("inside month"),today:u.properties.includes("today"),selected:u.properties.includes("selected"),highlighted:u.properties.includes("highlighted"),left:u.properties.includes("left-highlighted"),right:u.properties.includes("right-highlighted")}),onClick:p=>u.properties.includes("inside month")&&r.selectDate(u)},n.toDisplayString(u.date),11,uB))),128))],2)]),mB],64))),128)):n.createCommentVNode("",!0),t.size!=="small"?(n.openBlock(),n.createElementBlock("div",hB,[n.createElementVNode("div",pB,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.periodsLocale,(f,u)=>(n.openBlock(),n.createElementBlock("div",{key:u,class:n.normalizeClass(["option",{selected:l.optionSelected===f.id}]),onClick:h=>r.autoSelect(f.id)},n.toDisplayString(f.name),11,yB))),128))]),n.createElementVNode("div",gB,[t.disableClear?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(c,{key:0,size:"small",text:r.clearText,type:"tertiary",onClick:r.clear},null,8,["text","onClick"])),n.createVNode(c,{size:"small",text:r.filterText,type:"secondary",onClick:i[4]||(i[4]=f=>e.$emit("submit",r.value))},null,8,["text"])])])):n.createCommentVNode("",!0)])}const E5=k(iB,[["render",_B],["__scopeId","data-v-5165d8a8"]]),kie="",wB={components:{UnnnicInput:E2,UnnnicDatePicker:E5},model:{event:"changed"},props:{modelValue:{type:Object,required:!0},iconPosition:{type:String,default:"left",validator(e){return["left","right"].includes(e)}},minDate:{type:String,default:""},maxDate:{type:String,default:""},fillW:{type:Boolean,default:!1},type:{type:String,default:"day"},size:{type:String,default:"md"},clearText:{type:String,default:"Clear"},actionText:{type:String,default:"Filter"},months:{type:Array,default:()=>[]},days:{type:Array,default:()=>[]},options:{type:Array,default:()=>[]},next:{type:Boolean,default:!1},format:{type:String,default:"YYYY-MM-DD"},inputFormat:{type:String,default:"MM-DD-YYYY"},position:{type:String,default:"left"},disableClear:{type:Boolean,default:!1}},emits:["update:model-value","selectDate"],data(){return{showCalendarFilter:!1}},computed:{filterText(){var i,t,o,l;const e=[];return(i=this.modelValue)!=null&&i.start&&e.push(J((t=this.modelValue)==null?void 0:t.start,this.format).format(this.inputFormat)),(o=this.modelValue)!=null&&o.end&&e.push(J((l=this.modelValue)==null?void 0:l.end,this.format).format(this.inputFormat)),e.length?e.join(" ~ "):String(this.inputFormat).replaceAll("-","/").toLowerCase()},initialStartDate(){return this.modelValue.start?J(this.modelValue.start,this.format).format("MM DD YYYY"):null},initialEndDate(){return this.modelValue.end?J(this.modelValue.end,this.format).format("MM DD YYYY"):null}},mounted(){window.document.body.addEventListener("click",this.mouseout)},beforeUnmount(){window.document.body.removeEventListener("click",this.mouseout)},methods:{emitSelectDate(e){const{startDate:i,endDate:t}=e,o={start:J(i,"MM-DD-YYYY").format(this.format),end:J(t,"MM-DD-YYYY").format(this.format)};this.$emit("selectDate",o)},mouseout(e){var i;(i=this.$refs.dropdown)!=null&&i.contains(e.target)||(this.showCalendarFilter=!1)},changeDate(e){const i=e.startDate.replace(/(\d+)-(\d+)-(\d+)/,"$3-$1-$2"),t=e.endDate.replace(/(\d+)-(\d+)-(\d+)/,"$3-$1-$2");this.showCalendarFilter=!1,this.$emit("update:model-value",{start:i?J(i,"YYYY-MM-DD").format(this.format):null,end:t?J(t,"YYYY-MM-DD").format(this.format):null})}}};function kB(e,i,t,o,l,r){const c=n.resolveComponent("UnnnicInput"),f=n.resolveComponent("UnnnicDatePicker");return n.openBlock(),n.createElementBlock("div",{ref:"dropdown",class:n.normalizeClass(["dropdown",{active:l.showCalendarFilter,"fill-w":t.fillW}])},[n.createVNode(c,{class:n.normalizeClass(["input",{"date-picker-input-next":t.next}]),size:t.size,iconLeft:t.iconPosition==="left"&&"calendar_month",iconRight:t.iconPosition==="right"&&"calendar_month",hasCloudyColor:"",readonly:"",modelValue:r.filterText,onFocus:i[0]||(i[0]=u=>l.showCalendarFilter=!0)},null,8,["class","size","iconLeft","iconRight","modelValue"]),n.createElementVNode("div",{class:"dropdown-data",style:n.normalizeStyle({[t.position]:"0"})},[l.showCalendarFilter?(n.openBlock(),n.createBlock(f,{key:0,type:t.type,clearLabel:t.clearText,actionLabel:t.actionText,months:t.months,days:t.days,options:t.options,initialStartDate:r.initialStartDate,initialEndDate:r.initialEndDate,minDate:t.minDate,maxDate:t.maxDate,disableClear:t.disableClear,onChange:r.emitSelectDate,onSubmit:r.changeDate},null,8,["type","clearLabel","actionLabel","months","days","options","initialStartDate","initialEndDate","minDate","maxDate","disableClear","onChange","onSubmit"])):n.createCommentVNode("",!0)],4)],2)}const CB=k(wB,[["render",kB],["__scopeId","data-v-cf22f1fe"]]),Cie="",vB={components:{UnnnicIcon:ne},props:{type:{type:String,default:"secondary"},size:{type:String,required:!0,validator(e){return["small","large"].includes(e)}},icon:{type:String,required:!0}},computed:{iconScheme(){return this.type==="primary"?"neutral-snow":"neutral-darkest"}}};function xB(e,i,t,o,l,r){const c=n.resolveComponent("UnnnicIcon");return n.openBlock(),n.createElementBlock("button",n.mergeProps({class:["button-icon",t.size,t.type]},e.$attrs),[n.createVNode(c,{icon:t.icon,scheme:r.iconScheme,size:"ant"},null,8,["icon","scheme"])],16)}const bB=k(vB,[["render",xB],["__scopeId","data-v-46ae4cf4"]]),ks=e=>{const{label:i,children:t}=e;if(!!!i.trim())throw new Error('Each item in "items" must have "label".');return t&&Array.isArray(t)&&t.forEach(ks),!0},MB=e=>{if(!(e!=null&&e[0]))throw new Error("Items property cannot be an empty array.");return e.forEach(ks),!0},vie="",DB=["title"],AB={key:0,class:"unnnic-sidebar-item-children"},EB=["onClick"],NB=["title"],N5=k(Object.assign({name:"UnnnicSidebarItem"},{props:{item:{type:Object,required:!0,validator:ks},active:{type:Object,default:()=>({item:!1,childIndex:null})},autoNavigateFirstChild:{type:Boolean,default:!1}},emits:["navigate"],setup(e,{emit:i}){const t=e;n.onMounted(()=>{const{childIndex:p,item:C}=t.active;typeof p=="number"&&p>=0&&C&&r()});const o=n.computed(()=>{var p;return!!((p=t.item.children)!=null&&p.length)}),l=n.ref(!1),r=()=>{l.value=!l.value,l.value&&t.autoNavigateFirstChild&&h("navigate",{item:t.item,child:t.item.children[0]})},c=p=>{const{item:C,childIndex:_}=t.active;return typeof _!="number"?C:C&&_===p},f=()=>{o.value?r():u()},u=()=>{t.active.item||h("navigate",{item:t.item,child:null})},h=i;return(p,C)=>{var _;return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("section",{"data-testid":"sidebar-item",class:n.normalizeClass({"unnnic-sidebar-item":!0,active:e.active.item}),onClick:n.withModifiers(f,["stop"])},[e.item.icon?(n.openBlock(),n.createBlock(ne,{key:0,class:"unnnic-sidebar-item__icon",icon:e.item.icon,size:"ant",scheme:e.active.item?"weni-600":"neutral-cloudy","data-testid":"item-icon"},null,8,["icon","scheme"])):n.createCommentVNode("",!0),n.createElementVNode("p",{class:n.normalizeClass({"unnnic-sidebar-item__label":!0,active:e.active.item}),title:e.item.label},n.toDisplayString(e.item.label),11,DB),(_=e.item.children)!=null&&_.length?(n.openBlock(),n.createBlock(ne,{key:1,class:"unnnic-sidebar-item__arrow",icon:l.value?"keyboard_arrow_up":"keyboard_arrow_down",size:"ant",scheme:"neutral-cloudy","data-testid":"arrow-icon"},null,8,["icon"])):n.createCommentVNode("",!0)],2),n.createVNode(n.Transition,{name:"slide-fade"},{default:n.withCtx(()=>[l.value?(n.openBlock(),n.createElementBlock("ul",AB,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.item.children,(x,N)=>(n.openBlock(),n.createElementBlock("li",{key:x,class:n.normalizeClass({"unnnic-sidebar-item-child":!0,active:c(N)}),"data-testid":"sidebar-item-child",onClick:n.withModifiers(O=>!c(N)&&h("navigate",{item:e.item,child:x}),["stop"])},[x.icon?(n.openBlock(),n.createBlock(ne,{key:0,class:"unnnic-sidebar-item-child__icon",icon:x.icon,size:"ant",scheme:c(N)?"weni-600":"neutral-cloudy"},null,8,["icon","scheme"])):n.createCommentVNode("",!0),n.createElementVNode("p",{class:n.normalizeClass({"unnnic-sidebar-item-child__label":!0,active:c(N)}),title:x.label},n.toDisplayString(x.label),11,NB)],10,EB))),128))])):n.createCommentVNode("",!0)]),_:1})],64)}}}),[["__scopeId","data-v-418b1f69"]]),Mie="",BB={class:"unnnic-sidebar-items"},LB=k(Object.assign({name:"UnnnicSidebar"},{props:{position:{type:String,default:"left",validator(e){return["left","right"].includes(e)}},width:{type:String,default:"200px",validator(e){const i=/^\d+(\.\d+)?px$/,t=/^\d+(\.\d+)?%$/;return i.test(e)||t.test(e)}},items:{type:Array,required:!0,validator:MB},active:{type:Object,default:()=>({itemIndex:null,childIndex:null})},autoNavigateFirstChild:{type:Boolean,default:!1}},emits:["navigate"],setup(e,{emit:i}){n.useCssVars(r=>({"6c03e4b5":t.width}));const t=e,o=i,l=({item:r,child:c})=>{o("navigate",{item:r,child:c})};return(r,c)=>(n.openBlock(),n.createElementBlock("nav",{class:n.normalizeClass(["unnnic-sidebar",`unnnic-sidebar--${e.position}`])},[n.renderSlot(r.$slots,"top",{class:"unnnic-sidebar-top"},void 0,!0),n.createElementVNode("ul",BB,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.items,(f,u)=>(n.openBlock(),n.createElementBlock("li",{key:f},[n.createVNode(N5,{item:f,active:{item:e.active.itemIndex===u,childIndex:e.active.childIndex},autoNavigateFirstChild:e.autoNavigateFirstChild,"data-testid":"sidebar-item",onNavigate:c[0]||(c[0]=h=>l(h))},null,8,["item","active","autoNavigateFirstChild"])]))),128))]),n.renderSlot(r.$slots,"bottom",{class:"unnnic-sidebar-bottom"},void 0,!0)],2))}}),[["__scopeId","data-v-7bdf478e"]]),Eie="",SB={name:"UnnnicTable",components:{},props:{items:{type:Array}},data(){return{value:!1}},computed:{}},TB=e=>(n.pushScopeId("data-v-b2229274"),e=e(),n.popScopeId(),e),VB={class:"unnnic-table"},zB={class:"header"},IB=TB(()=>n.createElementVNode("div",null,[n.createElementVNode("div",{class:"item-spacer"})],-1)),OB={class:"scroll"};function HB(e,i,t,o,l,r){return n.withDirectives((n.openBlock(),n.createElementBlock("div",VB,[n.createElementVNode("div",zB,[n.renderSlot(e.$slots,"header",{},void 0,!0)]),IB,n.createElementVNode("div",OB,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.items,(c,f)=>(n.openBlock(),n.createElementBlock("div",{key:f,class:"item"},[n.renderSlot(e.$slots,"item",{item:c},void 0,!0)]))),128))])],512)),[[n.vShow,!0]])}const jB=k(SB,[["render",HB],["__scopeId","data-v-b2229274"]]),Nie="",Bie="",FB={name:"UnnnicTableRow",props:{headers:{type:Array}},data(){return{}}},PB={class:"table-row"},UB={class:"break-text"};function RB(e,i,t,o,l,r){return n.openBlock(),n.createElementBlock("div",PB,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.headers,(c,f)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:c.id},[n.createElementVNode("div",{class:"col",style:n.normalizeStyle({width:c.width,flex:c.flex,minWidth:0})},[n.renderSlot(e.$slots,c.id,{},()=>[n.createElementVNode("div",UB,n.toDisplayString(c.text),1)],!0)],4),n.withDirectives(n.createElementVNode("div",{class:n.normalizeClass(["divider",{condensed:c.condensed}])},null,2),[[n.vShow,f+1!==t.headers.length]])],64))),128))])}const YB=k(FB,[["render",RB],["__scopeId","data-v-cb0c6b93"]]);function B5(e){return n.getCurrentScope()?(n.onScopeDispose(e),!0):!1}function a2(e){return typeof e=="function"?e():n.unref(e)}const L5=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ZB=Object.prototype.toString,WB=e=>ZB.call(e)==="[object Object]",o2=()=>{},Cs=QB();function QB(){var e,i;return L5&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((i=window==null?void 0:window.navigator)==null?void 0:i.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}const S5={mounted:"mounted",updated:"updated",unmounted:"unmounted"};function qB(...e){if(e.length!==1)return n.toRef(...e);const i=e[0];return typeof i=="function"?n.readonly(n.customRef(()=>({get:i,set:o2}))):n.ref(i)}function s2(e){var i;const t=a2(e);return(i=t==null?void 0:t.$el)!=null?i:t}const T5=L5?window:void 0;function la(...e){let i,t,o,l;if(typeof e[0]=="string"||Array.isArray(e[0])?([t,o,l]=e,i=T5):[i,t,o,l]=e,!i)return o2;Array.isArray(t)||(t=[t]),Array.isArray(o)||(o=[o]);const r=[],c=()=>{r.forEach(p=>p()),r.length=0},f=(p,C,_,x)=>(p.addEventListener(C,_,x),()=>p.removeEventListener(C,_,x)),u=n.watch(()=>[s2(i),a2(l)],([p,C])=>{if(c(),!p)return;const _=WB(C)?{...C}:C;r.push(...t.flatMap(x=>o.map(N=>f(p,x,N,_))))},{immediate:!0,flush:"post"}),h=()=>{u(),c()};return B5(h),h}let V5=!1;function z5(e,i,t={}){const{window:o=T5,ignore:l=[],capture:r=!0,detectIframe:c=!1}=t;if(!o)return o2;Cs&&!V5&&(V5=!0,Array.from(o.document.body.children).forEach(_=>_.addEventListener("click",o2)),o.document.documentElement.addEventListener("click",o2));let f=!0;const u=_=>l.some(x=>{if(typeof x=="string")return Array.from(o.document.querySelectorAll(x)).some(N=>N===_.target||_.composedPath().includes(N));{const N=s2(x);return N&&(_.target===N||_.composedPath().includes(N))}}),p=[la(o,"click",_=>{const x=s2(e);if(!(!x||x===_.target||_.composedPath().includes(x))){if(_.detail===0&&(f=!u(_)),!f){f=!0;return}i(_)}},{passive:!0,capture:r}),la(o,"pointerdown",_=>{const x=s2(e);f=!u(_)&&!!(x&&!_.composedPath().includes(x))},{passive:!0}),c&&la(o,"blur",_=>{setTimeout(()=>{var x;const N=s2(e);((x=o.document.activeElement)==null?void 0:x.tagName)==="IFRAME"&&!(N!=null&&N.contains(o.document.activeElement))&&i(_)},0)})].filter(Boolean);return()=>p.forEach(_=>_())}const ca={[S5.mounted](e,i){const t=!i.modifiers.bubble;if(typeof i.value=="function")e.__onClickOutside_stop=z5(e,i.value,{capture:t});else{const[o,l]=i.value;e.__onClickOutside_stop=z5(e,o,Object.assign({capture:t},l))}},[S5.unmounted](e){e.__onClickOutside_stop()}};function vs(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function I5(e){const i=window.getComputedStyle(e);if(i.overflowX==="scroll"||i.overflowY==="scroll"||i.overflowX==="auto"&&e.clientWidth<e.scrollWidth||i.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const t=e.parentNode;return!t||t.tagName==="BODY"?!1:I5(t)}}function GB(e){const i=e||window.event,t=i.target;return I5(t)?!1:i.touches.length>1?!0:(i.preventDefault&&i.preventDefault(),!1)}const da=new WeakMap;function XB(e,i=!1){const t=n.ref(i);let o=null;n.watch(qB(e),c=>{const f=vs(a2(c));if(f){const u=f;da.get(u)||da.set(u,u.style.overflow),t.value&&(u.style.overflow="hidden")}},{immediate:!0});const l=()=>{const c=vs(a2(e));!c||t.value||(Cs&&(o=la(c,"touchmove",f=>{GB(f)},{passive:!1})),c.style.overflow="hidden",t.value=!0)},r=()=>{var c;const f=vs(a2(e));!f||!t.value||(Cs&&(o==null||o()),f.style.overflow=(c=da.get(f))!=null?c:"",da.delete(f),t.value=!1)};return B5(r),n.computed({get(){return t.value},set(c){c?l():r()}})}function JB(){let e=!1;const i=n.ref(!1);return(t,o)=>{if(i.value=o.value,e)return;e=!0;const l=XB(t,o.value);n.watch(i,r=>l.value=r)}}JB();const Lie="",$B={name:"UnnnicDropdown",directives:{onClickOutside:ca},props:{useOpenProp:{type:Boolean,default:!1},open:{type:Boolean,default:!1},position:{type:String,default:"bottom-left",validator(e){return["top-left","top-right","none","bottom-left","bottom-right"].indexOf(e)!==-1}}},emits:["update:open"],data(){return{active:!1}},watch:{open:{handler(){this.active=this.open},immediate:!0},active(){this.useOpenProp||this.$emit("update:open",this.active)}},methods:{onClickTrigger(){this.useOpenProp?this.$emit("update:open",!this.open):this.active=!this.active},onClickOutside(){if(this.useOpenProp&&this.open){this.$emit("update:open",!1);return}this.active&&(this.active=!1)}}},KB={class:"unnnic-dropdown__trigger"};function eL(e,i,t,o,l,r){const c=n.resolveDirective("on-click-outside");return n.openBlock(),n.createElementBlock("div",{class:"unnnic-dropdown",onClick:i[0]||(i[0]=n.withModifiers((...f)=>r.onClickTrigger&&r.onClickTrigger(...f),["stop"]))},[n.createElementVNode("div",KB,[n.renderSlot(e.$slots,"trigger",{},void 0,!0),(t.useOpenProp?t.open:l.active)?n.withDirectives((n.openBlock(),n.createElementBlock("div",{key:0,"data-testid":"dropdown-content",class:n.normalizeClass(["unnnic-dropdown__content",t.useOpenProp?t.open:l.active?"":"unnnic-dropdown__content--hidden",`unnnic-dropdown__content__position-${t.position}`])},[n.renderSlot(e.$slots,"default",{},void 0,!0)],2)),[[c,r.onClickOutside]]):n.createCommentVNode("",!0)])])}const xs=k($B,[["render",eL],["__scopeId","data-v-66495a5a"]]),Sie="",nL={name:"UnnnicDropdownItem"},tL={class:"unnnic-dropdown-item unnnic--clickable","data-testid":"dropdown-item"};function iL(e,i,t,o,l,r){return n.openBlock(),n.createElementBlock("a",tL,[n.renderSlot(e.$slots,"default")])}const O5=k(nL,[["render",iL]]),Tie="",aL={components:{UnnnicIcon:ne},props:{enabled:{type:Boolean,default:!0},icon:{type:String,default:"graph-stats-1"},size:{type:String,default:"sm",validator(e){return["nano","xs","sm","lg","xl"].indexOf(e)!==-1}},scheme:{type:String,default:"aux-blue"},filled:{type:Boolean,default:!1},opacity:{type:Boolean,default:!0}},computed:{iconSize(){return{nano:"xs",xs:"sm",sm:"md",lg:"lg",xl:"xl"}[this.size]}}};function oL(e,i,t,o,l,r){const c=n.resolveComponent("UnnnicIcon");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["unnnic-avatar-icon",t.scheme,t.size,{disabled:!t.enabled},t.filled,{opacity:!t.opacity}])},[n.createVNode(c,{icon:t.icon,scheme:t.enabled?t.scheme:"neutral-cloudy",size:r.iconSize,filled:t.filled},null,8,["icon","scheme","size","filled"])],2)}const vi=k(aL,[["render",oL],["__scopeId","data-v-d0742329"]]),Vie="",sL={name:"IconLoading",components:{UnnnicIcon:ne},props:{scheme:{type:String,default:"neutral-dark"},size:{type:String,default:"lg"}}};function rL(e,i,t,o,l,r){const c=n.resolveComponent("UnnnicIcon");return n.openBlock(),n.createBlock(c,{class:"unnnic-icon-loading",icon:"progress_activity",scheme:t.scheme,size:t.size},null,8,["scheme","size"])}const fa=k(sL,[["render",rL],["__scopeId","data-v-97257015"]]),zie="",lL={name:"UnnnicTooltip",props:{text:{type:String,default:""},enabled:{type:Boolean,default:!1},forceOpen:{type:Boolean,default:!1},side:{type:String,default:"right",validator(e){return["top","right","bottom","left"].indexOf(e)!==-1}},maxWidth:{type:String,default:""},shortcutText:{type:String,default:null},enableHtml:{type:Boolean,default:!1}},data(){return{topPos:null,leftPos:null}},watch:{side(){this.getRightPost(this.$refs.tooltip)}},mounted(){this.handleResize(),window.addEventListener("scroll",this.handleResize),window.addEventListener("resize",this.handleResize)},unmounted(){window.removeEventListener("scroll",this.handleResize),window.removeEventListener("resize",this.handleResize)},methods:{handleResize(){this.getRightPost(this.$refs.tooltip)},getRightPost(e){const i=e.getBoundingClientRect();e&&this.$refs.label&&(this.side==="right"?(this.leftPos=`${i.x+i.width+8}px`,this.topPos=`${i.y+i.height/2-this.$refs.label.offsetHeight/2}px`):this.side==="left"?(this.leftPos=`${i.x-this.$refs.label.offsetWidth-8}px`,this.topPos=`${i.y+i.height/2-this.$refs.label.offsetHeight/2}px`):this.side==="top"?(this.leftPos=`${i.x+i.width/2-this.$refs.label.clientWidth/2}px`,this.topPos=`${i.y-this.$refs.label.offsetHeight-8}px`):this.side==="bottom"&&(this.leftPos=`${i.x+i.width/2-this.$refs.label.clientWidth/2}px`,this.topPos=`${i.y+i.height+8}px`))}}},cL=e=>(n.pushScopeId("data-v-8c61d974"),e=e(),n.popScopeId(),e),dL=["innerHTML"],fL=cL(()=>n.createElementVNode("br",null,null,-1)),uL={key:2,class:"unnnic-tooltip-label-shortcut","data-testid":"tooltip-label-shortcut"};function mL(e,i,t,o,l,r){return n.openBlock(),n.createElementBlock("div",{ref:"tooltip",class:n.normalizeClass({"unnnic-tooltip":t.enabled||t.forceOpen,"force-open":t.forceOpen}),onMouseover:i[0]||(i[0]=(...c)=>r.handleResize&&r.handleResize(...c))},[n.renderSlot(e.$slots,"default",{},void 0,!0),n.withDirectives(n.createElementVNode("span",{ref:"label",class:n.normalizeClass(["unnnic-tooltip-label",`unnnic-tooltip-label-${t.side}`]),style:n.normalizeStyle({maxWidth:t.maxWidth,left:l.leftPos,top:l.topPos}),"data-testid":"tooltip-label"},[t.enableHtml?(n.openBlock(),n.createElementBlock("section",{key:0,innerHTML:t.text},null,8,dL)):(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:1},n.renderList(t.text.split(`
59
59
  `),(c,f)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:f},[n.createTextVNode(n.toDisplayString(c)+" ",1),fL],64))),128)),t.shortcutText?(n.openBlock(),n.createElementBlock("span",uL,n.toDisplayString(t.shortcutText),1)):n.createCommentVNode("",!0)],6),[[n.vShow,t.enabled||t.forceOpen]])],34)}const Dn=k(lL,[["render",mL],["__scopeId","data-v-8c61d974"]]),Iie="",hL={name:"UnnnicCard",components:{UnnnicIcon:ne,UnnnicAvatarIcon:vi},props:{title:{type:String,default:null},value:{type:Number,default:null},icon:{type:String,default:null},percent:{type:Number,default:0},invertedPercentage:{type:Boolean,default:!1},scheme:{type:String,default:null}},computed:{color(){return this.invertedPercentage?this.percent<0?"green":"red":this.percent<0?"red":"green"}}},pL={class:"unnnic-card-dash"},yL={class:"header"},gL={class:"label"},_L={class:"content"},wL={class:"value"},kL={class:"label"};function CL(e,i,t,o,l,r){const c=n.resolveComponent("UnnnicAvatarIcon"),f=n.resolveComponent("UnnnicIcon");return n.openBlock(),n.createElementBlock("div",pL,[n.createElementVNode("div",yL,[n.createVNode(c,{size:"sm",scheme:t.scheme,icon:t.icon},null,8,["scheme","icon"]),n.createElementVNode("div",gL,n.toDisplayString(t.title),1)]),n.createElementVNode("div",_L,[n.createElementVNode("div",wL,n.toDisplayString(t.value),1),t.percent?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["percent",`unnnic-card-scheme--feedback-${r.color}`])},[n.createVNode(f,{icon:`graph-stats-${t.percent>=0?"ascend":"descend"}-2`,scheme:`feedback-${r.color}`,size:"sm",class:"icon"},null,8,["icon","scheme"]),n.createElementVNode("div",kL,n.toDisplayString(t.percent>=0?`+${t.percent}%`:`${t.percent}%`),1)],2)):n.createCommentVNode("",!0)])])}const vL=k(hL,[["render",CL],["__scopeId","data-v-aab8cf56"]]),Oie="",xL={name:"UnnnicCard",components:{ToolTip:Dn,UnnnicIcon:ne},props:{title:{type:String,default:null},info:{type:String,default:null},icon:{type:String,default:null},infoPosition:{type:String,default:"right"},scheme:{type:String,default:null},hasInformationIcon:{type:Boolean,default:!0},enabled:{type:Boolean,default:!0}}},bL={class:"unnnic-card-title"},ML={class:"title"};function DL(e,i,t,o,l,r){const c=n.resolveComponent("UnnnicIcon"),f=n.resolveComponent("ToolTip");return n.openBlock(),n.createElementBlock("div",bL,[n.createElementVNode("div",{class:n.normalizeClass(["avatar-icon",`unnnic-card-scheme--${t.scheme}`])},[n.createVNode(c,{icon:t.icon,scheme:t.scheme,size:"md"},null,8,["icon","scheme"])],2),n.createElementVNode("div",ML,n.toDisplayString(t.title),1),t.hasInformationIcon?(n.openBlock(),n.createBlock(f,{key:0,class:"information",side:t.infoPosition,text:t.info,enabled:t.enabled},{default:n.withCtx(()=>[n.createVNode(c,{icon:"information-circle-4",class:"unnnic-card-title__content_info",size:"sm",scheme:"neutral-soft"})]),_:1},8,["side","text","enabled"])):n.createCommentVNode("",!0)])}const H5=k(xL,[["render",DL],["__scopeId","data-v-14d9d015"]]),Hie="",AL={name:"UnnnicCard",components:{UnnnicIcon:ne},props:{title:{type:String,default:null},description:{type:String,default:null},icon:{type:String,default:null},status:{type:String,default:null},scheme:{type:String,default:null}}},EL={class:"header"},NL={class:"label"},BL={class:"content"},LL={class:"title-container"},SL={class:"title"},TL={class:"description"};function VL(e,i,t,o,l,r){const c=n.resolveComponent("UnnnicIcon");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["unnnic-card-status",`unnnic-card-scheme--${t.scheme}--border`])},[n.createElementVNode("div",EL,[n.createVNode(c,{icon:t.icon,scheme:"neutral-dark",size:"md",class:"icon"},null,8,["icon"]),n.createElementVNode("div",NL,n.toDisplayString(t.title),1)]),n.createElementVNode("div",BL,[n.createElementVNode("div",LL,[n.createVNode(c,{icon:"indicator",scheme:t.scheme,size:"sm"},null,8,["scheme"]),n.createElementVNode("div",SL,n.toDisplayString(t.status),1)]),n.createElementVNode("div",TL,n.toDisplayString(t.description),1)])],2)}const zL=k(AL,[["render",VL],["__scopeId","data-v-1fc599bf"]]),jie="",IL={name:"UnnnicCard",components:{UnnnicAvatarIcon:vi},props:{title:{type:String,default:null},description:{type:String,default:null},icon:{type:String,default:null},enabled:{type:Boolean,default:!0},scheme:{type:String,default:null}}},OL={class:"icon"},HL={class:"content"},jL={class:"title"},FL={class:"description"};function PL(e,i,t,o,l,r){const c=n.resolveComponent("UnnnicAvatarIcon");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass({"unnnic-card-account":!0,enabled:t.enabled})},[n.createElementVNode("div",OL,[n.createVNode(c,{size:"xs",scheme:t.scheme,icon:t.icon,enabled:t.enabled},null,8,["scheme","icon","enabled"])]),n.createElementVNode("div",HL,[n.createElementVNode("div",jL,n.toDisplayString(t.title),1),n.createElementVNode("div",FL,n.toDisplayString(t.description),1)])],2)}const UL=k(IL,[["render",PL],["__scopeId","data-v-7f42cb11"]]),Fie="",RL={name:"UnnnicCard",props:{title:{type:String,default:null},description:{type:String,default:null},clickable:{type:Boolean,default:!1}}},YL={class:"unnnic-card-default__content"},ZL={class:"unnnic-card-default__title"},WL=["title"];function QL(e,i,t,o,l,r){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass({"unnnic-card-default":!0,"unnnic-card-default__clickable":t.clickable})},[n.createElementVNode("div",YL,[n.createElementVNode("div",ZL,n.toDisplayString(t.title),1),n.createElementVNode("p",{class:"unnnic-card-default__description",title:t.description},n.toDisplayString(t.description),9,WL)])],2)}const qL=k(RL,[["render",QL]]),Pie="",GL={name:"UnnnicCard",components:{UnnnicIcon:ne},props:{text:{type:String,default:null},icon:{type:String,default:null},clickable:{type:Boolean,default:!1}}},XL={class:"unnnic-card-blank__content"},JL={class:"unnnic-card-blank__content__text"};function $L(e,i,t,o,l,r){const c=n.resolveComponent("UnnnicIcon");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass({"unnnic-card-blank":!0,"unnnic-card-blank__clickable":t.clickable})},[n.createElementVNode("div",XL,[n.createVNode(c,{icon:t.icon,scheme:"neutral-clean",class:"unnnic-card-blank__content__icon",size:"xl"},null,8,["icon"]),n.createElementVNode("div",JL,n.toDisplayString(t.text),1)])],2)}const KL=k(GL,[["render",$L]]),Uie="",eS={name:"UnnnicCard",components:{UnnnicIcon:ne},props:{title:{type:String,default:null},description:{type:String,default:null},icon:{type:String,default:null},enabled:{type:Boolean,default:!1},clickable:{type:Boolean,default:!1}}},nS={class:"unnnic-card-content__content"},tS={class:"unnnic-card-content__content__title"},iS={class:"unnnic-card-content__content__description"};function aS(e,i,t,o,l,r){const c=n.resolveComponent("UnnnicIcon");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass({"unnnic-card-content":!0,"unnnic-card-content--disabled":!t.enabled,"unnnic-card-content__clickable":t.clickable})},[n.createElementVNode("div",{class:n.normalizeClass(["unnnic-card-content__icon",t.enabled&&"unnnic-card-content__icon--disabled"])},[n.createVNode(c,{icon:t.icon,scheme:"neutral-cloudy",size:"sm"},null,8,["icon"])],2),n.createElementVNode("div",nS,[n.createElementVNode("div",tS,n.toDisplayString(t.title),1),n.createElementVNode("div",iS,n.toDisplayString(t.description),1)])],2)}const oS=k(eS,[["render",aS]]),Rie="",sS={name:"UnnnicCard",components:{UnnnicIcon:ne},props:{title:{type:String,default:null},description:{type:String,default:null},comments:{type:String,default:null},clickable:{type:Boolean,default:!1},iconSrc:{type:String,default:null},rating:{type:Number,default:0},typeAction:{type:String,default:null}},methods:{cardClick(){this.$emit("openModal")}}},rS={class:n.normalizeClass(["unnnic-card-marketplace__icons"])},lS=["src"],cS={class:"unnnic-card-marketplace__content"},dS={class:"unnnic-card-marketplace__content__title"},fS=["title"],uS={key:0,class:"unnnic-card-marketplace__content__rating"},mS={class:"unnnic-card-marketplace__content__rating__value"},hS={class:"unnnic-card-marketplace__content__rating__comments"};function pS(e,i,t,o,l,r){const c=n.resolveComponent("UnnnicIcon");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass({"unnnic-card-marketplace":!0,"unnnic-card-marketplace__clickable":t.clickable,"unnnic-card-marketplace__add":t.typeAction==="add","unnnic-card-marketplace__config":t.typeAction==="config","unnnic-card-marketplace__edit":t.typeAction==="edit"}),onClick:i[0]||(i[0]=(...f)=>r.cardClick&&r.cardClick(...f))},[n.createElementVNode("div",rS,[n.createElementVNode("img",{class:"unnnic-card-marketplace__icons__app",src:t.iconSrc},null,8,lS),n.renderSlot(e.$slots,"actions")]),n.createElementVNode("div",cS,[n.createElementVNode("div",dS,n.toDisplayString(t.title),1),n.createElementVNode("div",{class:"unnnic-card-marketplace__content__description",title:t.description},n.toDisplayString(t.description),9,fS),t.typeAction==="add"?(n.openBlock(),n.createElementBlock("div",uS,[n.createVNode(c,{class:"unnnic-card-marketplace__content__rating__star",scheme:"feedback-yellow",icon:"rating-star-1",size:"ant"}),n.createElementVNode("div",mS,n.toDisplayString(t.rating),1),n.createElementVNode("div",hS," ("+n.toDisplayString(t.comments)+") ",1)])):n.createCommentVNode("",!0)])],2)}const yS=k(sS,[["render",pS]]),Yie="",gS={name:"UnnnicCard",props:{type:{type:String,default:"title",validator(e){return["title","status","dash","account","default","blank","content","marketplace"].indexOf(e)!==-1}},title:{type:String,default:null},description:{type:String,default:null},status:{type:String,default:null},info:{type:String,default:null},text:{type:String,default:null},value:{type:Number,default:null},percent:{type:Number,default:0},invertedPercentage:{type:Boolean,default:!1},rating:{type:Number,default:0},comments:{type:String,default:null},enabled:{type:Boolean,default:!0},icon:{type:String,default:null},iconSrc:{type:String,default:null},infoPosition:{type:String,default:"right"},hasInformationIcon:{type:Boolean,default:!0},scheme:{type:String,default:"aux-blue",validator(e){return["feedback-red","feedback-green","feedback-yellow","feedback-blue","feedback-grey","aux-blue","aux-purple","aux-orange","aux-lemon","aux-pink","brand-weni-soft"].indexOf(e)!==-1}},clickable:{type:Boolean,default:!1},typeAction:{type:String,default:null,validator(e){return["add","config","edit"].indexOf(e)!==-1}},buttonAction:{type:Function,default:()=>{}}},computed:{currentTypeIcon(){return this.icon?this.icon:this.type==="title"?"graph-stats-1":this.type==="dash"?"messages-bubble-1":this.type==="status"?"science-fiction-robot-2":this.type==="account"?"single-neutral-2":null},currentComponent(){return this.type==="title"?H5:this.type==="dash"?vL:this.type==="status"?zL:this.type==="account"?UL:this.type==="default"?qL:this.type==="blank"?KL:this.type==="content"?oS:this.type==="marketplace"?yS:H5}},methods:{openModal(){this.$emit("openModal")}}};function _S(e,i,t,o,l,r){return n.openBlock(),n.createBlock(n.resolveDynamicComponent(r.currentComponent),n.mergeProps({class:"unnnic-card-component"},e.$attrs,{title:t.title,text:t.text,info:t.info,icon:r.currentTypeIcon,iconSrc:t.iconSrc,rating:t.rating,comments:t.comments,typeAction:t.typeAction,buttonAction:t.buttonAction,value:t.value,percent:t.percent,invertedPercentage:t.invertedPercentage||null,status:t.status,description:t.description,infoPosition:t.infoPosition,enabled:t.enabled,scheme:t.scheme,clickable:t.clickable||null,hasInformationIcon:t.hasInformationIcon||null,onOpenModal:r.openModal}),n.createSlots({_:2},[n.renderList(e.$slots,(c,f)=>({name:f,fn:n.withCtx(()=>[n.renderSlot(e.$slots,f)])}))]),1040,["title","text","info","icon","iconSrc","rating","comments","typeAction","buttonAction","value","percent","invertedPercentage","status","description","infoPosition","enabled","scheme","clickable","hasInformationIcon","onOpenModal"])}const wS=k(gS,[["render",_S]]),Zie="",bs={name:"UnnnicSimpleCard",components:{UnnnicToolTip:Dn,UnnnicIcon:ne},props:{title:{type:String,default:""},titleSize:{type:String,default:"16px"},titleTooltip:{type:String,default:""},text:{type:String,default:""},clickable:{type:Boolean,default:!1}},emits:["click"]},j5=()=>{n.useCssVars(e=>({"14ad6579":e.titleSize}))},F5=bs.setup;bs.setup=F5?(e,i)=>(j5(),F5(e,i)):j5;const kS={key:0,class:"unnnic-simple-card__header"},CS={class:"unnnic-simple-card-header-container"},vS={class:"unnnic-simple-card-header-container__title"},xS={key:0,class:"unnnic-simple-card__header-slot"},bS=["title"],MS={key:2,class:"unnnic-simple-card__footer"};function DS(e,i,t,o,l,r){const c=n.resolveComponent("UnnnicIcon"),f=n.resolveComponent("UnnnicToolTip");return n.openBlock(),n.createElementBlock("section",{class:n.normalizeClass({"unnnic-simple-card":!0,"unnnic-simple-card--clickable":t.clickable}),onClick:i[0]||(i[0]=n.withModifiers(u=>t.clickable&&e.$emit("click"),["stop"]))},[t.title||e.$slots.headerSlot?(n.openBlock(),n.createElementBlock("section",kS,[n.createElementVNode("section",CS,[n.createElementVNode("h1",vS,n.toDisplayString(t.title),1),t.titleTooltip?(n.openBlock(),n.createBlock(f,{key:0,text:t.titleTooltip,enabled:"",class:"unnnic-simple-card-header-container__title-tooltip"},{default:n.withCtx(()=>[n.createVNode(c,{icon:"info",size:"nano",scheme:"neutral-cloudy"})]),_:1},8,["text"])):n.createCommentVNode("",!0)]),e.$slots.headerSlot?(n.openBlock(),n.createElementBlock("section",xS,[n.renderSlot(e.$slots,"headerSlot",{},void 0,!0)])):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),t.text?(n.openBlock(),n.createElementBlock("p",{key:1,class:"unnnic-simple-card__text",title:t.text},n.toDisplayString(t.text),9,bS)):n.createCommentVNode("",!0),e.$slots.footer?(n.openBlock(),n.createElementBlock("section",MS,[n.renderSlot(e.$slots,"footer",{},void 0,!0)])):n.createCommentVNode("",!0)],2)}const AS=k(bs,[["render",DS],["__scopeId","data-v-80dbbab7"]]),Wie="",ES={name:"UnnnicTag",components:{UnnnicIcon:ne},props:{text:{type:String,default:null},clickable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},hasCloseIcon:{type:Boolean,default:!1},scheme:{type:String,default:"aux-purple"},leftIcon:{type:String,default:null},rightIcon:{type:String,default:null}},methods:{closeClicked(){this.closeClicked&&this.$emit("close-click")},emitClose(){this.$emit("close")}}},NS={key:0,class:"unnnic-tag__icon"};function BS(e,i,t,o,l,r){const c=n.resolveComponent("UnnnicIcon");return n.openBlock(),n.createElementBlock("section",{class:n.normalizeClass(`unnnic-tag
60
60
  ${t.disabled?"unnnic-tag--disabled":`unnnic-tag-scheme--${t.scheme}`}
61
61
  ${t.clickable?"unnnic-tag--clickable":""}`)},[t.leftIcon?(n.openBlock(),n.createElementBlock("section",NS,[n.createVNode(c,{icon:t.leftIcon,scheme:t.scheme,size:"sm"},null,8,["icon","scheme"])])):n.createCommentVNode("",!0),n.createElementVNode("span",{class:n.normalizeClass(`unnnic-tag__label
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@weni/unnnic-system",
3
- "version": "2.33.3",
3
+ "version": "2.33.4",
4
4
  "type": "commonjs",
5
5
  "files": [
6
6
  "dist",
@@ -745,10 +745,11 @@ export default {
745
745
  today.setMonth(today.getMonth() - howMuch);
746
746
  this.startDate = this.dateToString(today);
747
747
  } else if (method === 'current-month') {
748
+ const referenceDate = new Date();
748
749
  today.setDate(1);
749
750
  this.startDate = this.dateToString(today);
750
- today.setMonth(today.getMonth() + 1);
751
- today.setDate(0);
751
+ const referenceDay = referenceDate.getDate();
752
+ today.setDate(referenceDay);
752
753
  this.endDate = this.dateToString(today);
753
754
  } else if (method === 'previous-month') {
754
755
  today.setDate(1);
@@ -1,3 +1,4 @@
1
+ import moment from 'moment';
1
2
  import UnnnicDatePicker from '../components/DatePicker/DatePicker.vue';
2
3
 
3
4
  export default {
@@ -27,6 +28,7 @@ export default {
27
28
  export const Default = {
28
29
  args: {
29
30
  size: 'large',
31
+ maxDate: moment().format('YYYY-MM-DD'),
30
32
  initialStartDate: '12-01-2021',
31
33
  initialEndDate: '12-01-2021',
32
34
  },
@@ -44,6 +44,7 @@ export default {
44
44
  export const Default = {
45
45
  args: {
46
46
  size: 'sm',
47
+ maxDate: moment().format('YYYY-MM-DD'),
47
48
  },
48
49
  };
49
50