@weni/unnnic-system 3.31.0 → 3.31.1-alpha.0

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.
@@ -62,7 +62,7 @@ ${_}`:c)}else throw l},onCacheKey:l=>TC(n,a,l)}}function FA(e){if(se(e))return e
62
62
  * vue-i18n v9.14.5
63
63
  * (c) 2025 kazuya kawaguchi
64
64
  * Released under the MIT License.
65
- */const BA="9.14.5";function xA(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Ln().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Ln().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Ln().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ln().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ln().__INTLIFY_PROD_DEVTOOLS__=!1)}const wm=ra.__EXTEND_POINT__,Vn=Hs(wm),wt={FALLBACK_TO_ROOT:wm,NOT_SUPPORTED_PRESERVE:Vn(),NOT_SUPPORTED_FORMATTER:Vn(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:Vn(),NOT_SUPPORTED_GET_CHOICE_INDEX:Vn(),COMPONENT_NAME_LEGACY_COMPATIBLE:Vn(),NOT_FOUND_PARENT_SCOPE:Vn(),IGNORE_OBJ_FLATTEN:Vn(),NOTICE_DROP_ALLOW_COMPOSITION:Vn(),NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG:Vn()},vA={[wt.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[wt.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[wt.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[wt.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[wt.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[wt.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[wt.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[wt.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[wt.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze",[wt.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]:"'translateExistCompatible' option will be dropped in the next major version."};function da(e,...n){return Z0(vA[e],...n)}const Dm=Gt.__EXTEND_POINT__,ca=Hs(Dm),Je={UNEXPECTED_RETURN_TYPE:Dm,INVALID_ARGUMENT:ca(),MUST_BE_CALL_SETUP_TOP:ca(),NOT_INSTALLED:ca(),NOT_AVAILABLE_IN_LEGACY_MODE:ca(),REQUIRED_VALUE:ca(),INVALID_VALUE:ca(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:ca(),NOT_INSTALLED_WITH_PROVIDE:ca(),UNEXPECTED_ERROR:ca(),NOT_COMPATIBLE_LEGACY_VUE_I18N:ca(),BRIDGE_SUPPORT_VUE_2_ONLY:ca(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:ca(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:ca(),__EXTEND_POINT__:ca()};function Rt(e,...n){return mr(e,null,process.env.NODE_ENV!=="production"?{messages:SA,args:n}:void 0)}const SA={[Je.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[Je.INVALID_ARGUMENT]:"Invalid argument",[Je.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[Je.NOT_INSTALLED]:"Need to install with `app.use` function",[Je.UNEXPECTED_ERROR]:"Unexpected error",[Je.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[Je.REQUIRED_VALUE]:"Required in value: {0}",[Je.INVALID_VALUE]:"Invalid value",[Je.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[Je.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[Je.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[Je.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[Je.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",[Je.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},cd=pn("__translateVNode"),fd=pn("__datetimeParts"),_d=pn("__numberParts"),Ii=pn("__enableEmitter"),yo=pn("__disableEmitter"),Cm=pn("__setPluralRules"),Em=pn("__injectWithOption"),gd=pn("__dispose");function ko(e){if(!Qe(e)||ja(e))return e;for(const n in e)if(Za(e,n))if(!n.includes("."))Qe(e[n])&&ko(e[n]);else{const a=n.split("."),i=a.length-1;let r=e,s=!1;for(let l=0;l<i;l++){if(a[l]==="__proto__")throw new Error(`unsafe key: ${a[l]}`);if(a[l]in r||(r[a[l]]=dt()),!Qe(r[a[l]])){process.env.NODE_ENV!=="production"&&Mt(da(wt.IGNORE_OBJ_FLATTEN,{key:a[l]})),s=!0;break}r=r[a[l]]}if(s||(ja(r)?Lh.includes(a[i])||delete e[n]:(r[a[i]]=e[n],delete e[n])),!ja(r)){const l=r[a[i]];Qe(l)&&ko(l)}}return e}function $s(e,n){const{messages:a,__i18n:i,messageResolver:r,flatJson:s}=n,l=ve(a)?a:mt(i)?dt():{[e]:dt()};if(mt(i)&&i.forEach(d=>{if("locale"in d&&"resource"in d){const{locale:c,resource:_}=d;c?(l[c]=l[c]||dt(),Gs(_,l[c])):Gs(_,l)}else se(d)&&Gs(JSON.parse(d),l)}),r==null&&s)for(const d in l)Za(l,d)&&ko(l[d]);return l}function Am(e){return e.type}function Bm(e,n,a){let i=Qe(n.messages)?n.messages:dt();"__i18nGlobal"in a&&(i=$s(e.locale.value,{messages:i,__i18n:a.__i18nGlobal}));const r=Object.keys(i);r.length&&r.forEach(s=>{e.mergeLocaleMessage(s,i[s])});{if(Qe(n.datetimeFormats)){const s=Object.keys(n.datetimeFormats);s.length&&s.forEach(l=>{e.mergeDateTimeFormat(l,n.datetimeFormats[l])})}if(Qe(n.numberFormats)){const s=Object.keys(n.numberFormats);s.length&&s.forEach(l=>{e.mergeNumberFormat(l,n.numberFormats[l])})}}}function xm(e){return t.createVNode(t.Text,null,e,0)}const vm="__INTLIFY_META__",Sm=()=>[],jA=()=>!1;let jm=0;function qm(e){return(n,a,i,r)=>e(a,i,t.getCurrentInstance()||void 0,r)}const qA=()=>{const e=t.getCurrentInstance();let n=null;return e&&(n=Am(e)[vm])?{[vm]:n}:null};function hd(e={},n){const{__root:a,__injectWithOption:i}=e,r=a===void 0,s=e.flatJson,l=Ka?t.ref:t.shallowRef,d=!!e.translateExistCompatible;process.env.NODE_ENV!=="production"&&d&&Fh(da(wt.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));let c=Le(e.inheritLocale)?e.inheritLocale:!0;const _=l(a&&c?a.locale.value:se(e.locale)?e.locale:br),g=l(a&&c?a.fallbackLocale.value:se(e.fallbackLocale)||mt(e.fallbackLocale)||ve(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:_.value),h=l($s(_.value,e)),F=l(ve(e.datetimeFormats)?e.datetimeFormats:{[_.value]:{}}),p=l(ve(e.numberFormats)?e.numberFormats:{[_.value]:{}});let y=a?a.missingWarn:Le(e.missingWarn)||li(e.missingWarn)?e.missingWarn:!0,w=a?a.fallbackWarn:Le(e.fallbackWarn)||li(e.fallbackWarn)?e.fallbackWarn:!0,C=a?a.fallbackRoot:Le(e.fallbackRoot)?e.fallbackRoot:!0,q=!!e.fallbackFormat,B=ct(e.missing)?e.missing:null,D=ct(e.missing)?qm(e.missing):null,A=ct(e.postTranslation)?e.postTranslation:null,S=a?a.warnHtmlMessage:Le(e.warnHtmlMessage)?e.warnHtmlMessage:!0,I=!!e.escapeParameter;const T=a?a.modifiers:ve(e.modifiers)?e.modifiers:{};let O=e.pluralRules||a&&a.pluralRules,P;P=(()=>{r&&em(null);const U={version:BA,locale:_.value,fallbackLocale:g.value,messages:h.value,modifiers:T,pluralRules:O,missing:D===null?void 0:D,missingWarn:y,fallbackWarn:w,fallbackFormat:q,unresolving:!0,postTranslation:A===null?void 0:A,warnHtmlMessage:S,escapeParameter:I,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};U.datetimeFormats=F.value,U.numberFormats=p.value,U.__datetimeFormatters=ve(P)?P.__datetimeFormatters:void 0,U.__numberFormatters=ve(P)?P.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(U.__v_emitter=ve(P)?P.__v_emitter:void 0);const ee=lA(U);return r&&em(ee),ee})(),bo(P,_.value,g.value);function ce(){return[_.value,g.value,h.value,F.value,p.value]}const X=t.computed({get:()=>_.value,set:U=>{_.value=U,P.locale=_.value}}),ye=t.computed({get:()=>g.value,set:U=>{g.value=U,P.fallbackLocale=g.value,bo(P,_.value,U)}}),De=t.computed(()=>h.value),pe=t.computed(()=>F.value),oe=t.computed(()=>p.value);function qe(){return ct(A)?A:null}function te(U){A=U,P.postTranslation=U}function et(){return B}function vt(U){U!==null&&(D=qm(U)),B=U,P.missing=D}function st(U,ee){return U!=="translate"||!ee.resolvedMessage}const Bt=(U,ee,Ve,_t,Lt,en)=>{ce();let Ta;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(P.fallbackContext=a?sA():void 0),Ta=U(P)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(P.fallbackContext=void 0)}if(Ve!=="translate exists"&&It(Ta)&&Ta===Ks||Ve==="translate exists"&&!Ta){const[Ut,yn]=ee();if(process.env.NODE_ENV!=="production"&&a&&se(Ut)&&st(Ve,yn)&&(C&&(Js(w,Ut)||am(y,Ut))&&Mt(da(wt.FALLBACK_TO_ROOT,{key:Ut,type:Ve})),process.env.NODE_ENV!=="production")){const{__v_emitter:Rn}=P;Rn&&C&&Rn.emit("fallback",{type:Ve,key:Ut,to:"global",groupId:`${Ve}:${Ut}`})}return a&&C?_t(a):Lt(Ut)}else{if(en(Ta))return Ta;throw Rt(Je.UNEXPECTED_RETURN_TYPE)}};function ft(...U){return Bt(ee=>Reflect.apply(dm,null,[ee,...U]),()=>sd(...U),"translate",ee=>Reflect.apply(ee.t,ee,[...U]),ee=>ee,ee=>se(ee))}function gt(...U){const[ee,Ve,_t]=U;if(_t&&!Qe(_t))throw Rt(Je.INVALID_ARGUMENT);return ft(ee,Ve,Zt({resolvedMessage:!0},_t||{}))}function St(...U){return Bt(ee=>Reflect.apply(hm,null,[ee,...U]),()=>ld(...U),"datetime format",ee=>Reflect.apply(ee.d,ee,[...U]),()=>Zs,ee=>se(ee))}function W(...U){return Bt(ee=>Reflect.apply(pm,null,[ee,...U]),()=>ud(...U),"number format",ee=>Reflect.apply(ee.n,ee,[...U]),()=>Zs,ee=>se(ee))}function ae(U){return U.map(ee=>se(ee)||It(ee)||Le(ee)?xm(String(ee)):ee)}const ie={normalize:ae,interpolate:U=>U,type:"vnode"};function J(...U){return Bt(ee=>{let Ve;const _t=ee;try{_t.processor=ie,Ve=Reflect.apply(dm,null,[_t,...U])}finally{_t.processor=null}return Ve},()=>sd(...U),"translate",ee=>ee[cd](...U),ee=>[xm(ee)],ee=>mt(ee))}function Se(...U){return Bt(ee=>Reflect.apply(pm,null,[ee,...U]),()=>ud(...U),"number format",ee=>ee[_d](...U),Sm,ee=>se(ee)||mt(ee))}function xe(...U){return Bt(ee=>Reflect.apply(hm,null,[ee,...U]),()=>ld(...U),"datetime format",ee=>ee[fd](...U),Sm,ee=>se(ee)||mt(ee))}function Xe(U){O=U,P.pluralRules=O}function H(U,ee){return Bt(()=>{if(!U)return!1;const Ve=se(ee)?ee:_.value,_t=$e(Ve),Lt=P.messageResolver(_t,U);return d?Lt!=null:ja(Lt)||qa(Lt)||se(Lt)},()=>[U],"translate exists",Ve=>Reflect.apply(Ve.te,Ve,[U,ee]),jA,Ve=>Le(Ve))}function ke(U){let ee=null;const Ve=Yh(P,g.value,_.value);for(let _t=0;_t<Ve.length;_t++){const Lt=h.value[Ve[_t]]||{},en=P.messageResolver(Lt,U);if(en!=null){ee=en;break}}return ee}function rt(U){const ee=ke(U);return ee??(a?a.tm(U)||{}:{})}function $e(U){return h.value[U]||{}}function he(U,ee){if(s){const Ve={[U]:ee};for(const _t in Ve)Za(Ve,_t)&&ko(Ve[_t]);ee=Ve[U]}h.value[U]=ee,P.messages=h.value}function ze(U,ee){h.value[U]=h.value[U]||{};const Ve={[U]:ee};if(s)for(const _t in Ve)Za(Ve,_t)&&ko(Ve[_t]);ee=Ve[U],Gs(ee,h.value[U]),P.messages=h.value}function v(U){return F.value[U]||{}}function N(U,ee){F.value[U]=ee,P.datetimeFormats=F.value,Fm(P,U,ee)}function Y(U,ee){F.value[U]=Zt(F.value[U]||{},ee),P.datetimeFormats=F.value,Fm(P,U,ee)}function ue(U){return p.value[U]||{}}function Ue(U,ee){p.value[U]=ee,P.numberFormats=p.value,ym(P,U,ee)}function Oe(U,ee){p.value[U]=Zt(p.value[U]||{},ee),P.numberFormats=p.value,ym(P,U,ee)}jm++,a&&Ka&&(t.watch(a.locale,U=>{c&&(_.value=U,P.locale=U,bo(P,_.value,g.value))}),t.watch(a.fallbackLocale,U=>{c&&(g.value=U,P.fallbackLocale=U,bo(P,_.value,g.value))}));const Ge={id:jm,locale:X,fallbackLocale:ye,get inheritLocale(){return c},set inheritLocale(U){c=U,U&&a&&(_.value=a.locale.value,g.value=a.fallbackLocale.value,bo(P,_.value,g.value))},get availableLocales(){return Object.keys(h.value).sort()},messages:De,get modifiers(){return T},get pluralRules(){return O||{}},get isGlobal(){return r},get missingWarn(){return y},set missingWarn(U){y=U,P.missingWarn=y},get fallbackWarn(){return w},set fallbackWarn(U){w=U,P.fallbackWarn=w},get fallbackRoot(){return C},set fallbackRoot(U){C=U},get fallbackFormat(){return q},set fallbackFormat(U){q=U,P.fallbackFormat=q},get warnHtmlMessage(){return S},set warnHtmlMessage(U){S=U,P.warnHtmlMessage=U},get escapeParameter(){return I},set escapeParameter(U){I=U,P.escapeParameter=U},t:ft,getLocaleMessage:$e,setLocaleMessage:he,mergeLocaleMessage:ze,getPostTranslationHandler:qe,setPostTranslationHandler:te,getMissingHandler:et,setMissingHandler:vt,[Cm]:Xe};return Ge.datetimeFormats=pe,Ge.numberFormats=oe,Ge.rt=gt,Ge.te=H,Ge.tm=rt,Ge.d=St,Ge.n=W,Ge.getDateTimeFormat=v,Ge.setDateTimeFormat=N,Ge.mergeDateTimeFormat=Y,Ge.getNumberFormat=ue,Ge.setNumberFormat=Ue,Ge.mergeNumberFormat=Oe,Ge[Em]=i,Ge[cd]=J,Ge[fd]=xe,Ge[_d]=Se,process.env.NODE_ENV!=="production"&&(Ge[Ii]=U=>{P.__v_emitter=U},Ge[yo]=()=>{P.__v_emitter=void 0}),Ge}function IA(e){const n=se(e.locale)?e.locale:br,a=se(e.fallbackLocale)||mt(e.fallbackLocale)||ve(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:n,i=ct(e.missing)?e.missing:void 0,r=Le(e.silentTranslationWarn)||li(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,s=Le(e.silentFallbackWarn)||li(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,l=Le(e.fallbackRoot)?e.fallbackRoot:!0,d=!!e.formatFallbackMessages,c=ve(e.modifiers)?e.modifiers:{},_=e.pluralizationRules,g=ct(e.postTranslation)?e.postTranslation:void 0,h=se(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,F=!!e.escapeParameterHtml,p=Le(e.sync)?e.sync:!0;process.env.NODE_ENV!=="production"&&e.formatter&&Mt(da(wt.NOT_SUPPORTED_FORMATTER)),process.env.NODE_ENV!=="production"&&e.preserveDirectiveContent&&Mt(da(wt.NOT_SUPPORTED_PRESERVE_DIRECTIVE));let y=e.messages;if(ve(e.sharedMessages)){const I=e.sharedMessages;y=Object.keys(I).reduce((O,P)=>{const Z=O[P]||(O[P]={});return Zt(Z,I[P]),O},y||{})}const{__i18n:w,__root:C,__injectWithOption:q}=e,B=e.datetimeFormats,D=e.numberFormats,A=e.flatJson,S=e.translateExistCompatible;return{locale:n,fallbackLocale:a,messages:y,flatJson:A,datetimeFormats:B,numberFormats:D,missing:i,missingWarn:r,fallbackWarn:s,fallbackRoot:l,fallbackFormat:d,modifiers:c,pluralRules:_,postTranslation:g,warnHtmlMessage:h,escapeParameter:F,messageResolver:e.messageResolver,inheritLocale:p,translateExistCompatible:S,__i18n:w,__root:C,__injectWithOption:q}}function md(e={},n){{const a=hd(IA(e)),{__extender:i}=e,r={id:a.id,get locale(){return a.locale.value},set locale(s){a.locale.value=s},get fallbackLocale(){return a.fallbackLocale.value},set fallbackLocale(s){a.fallbackLocale.value=s},get messages(){return a.messages.value},get datetimeFormats(){return a.datetimeFormats.value},get numberFormats(){return a.numberFormats.value},get availableLocales(){return a.availableLocales},get formatter(){return process.env.NODE_ENV!=="production"&&Mt(da(wt.NOT_SUPPORTED_FORMATTER)),{interpolate(){return[]}}},set formatter(s){process.env.NODE_ENV!=="production"&&Mt(da(wt.NOT_SUPPORTED_FORMATTER))},get missing(){return a.getMissingHandler()},set missing(s){a.setMissingHandler(s)},get silentTranslationWarn(){return Le(a.missingWarn)?!a.missingWarn:a.missingWarn},set silentTranslationWarn(s){a.missingWarn=Le(s)?!s:s},get silentFallbackWarn(){return Le(a.fallbackWarn)?!a.fallbackWarn:a.fallbackWarn},set silentFallbackWarn(s){a.fallbackWarn=Le(s)?!s:s},get modifiers(){return a.modifiers},get formatFallbackMessages(){return a.fallbackFormat},set formatFallbackMessages(s){a.fallbackFormat=s},get postTranslation(){return a.getPostTranslationHandler()},set postTranslation(s){a.setPostTranslationHandler(s)},get sync(){return a.inheritLocale},set sync(s){a.inheritLocale=s},get warnHtmlInMessage(){return a.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(s){a.warnHtmlMessage=s!=="off"},get escapeParameterHtml(){return a.escapeParameter},set escapeParameterHtml(s){a.escapeParameter=s},get preserveDirectiveContent(){return process.env.NODE_ENV!=="production"&&Mt(da(wt.NOT_SUPPORTED_PRESERVE_DIRECTIVE)),!0},set preserveDirectiveContent(s){process.env.NODE_ENV!=="production"&&Mt(da(wt.NOT_SUPPORTED_PRESERVE_DIRECTIVE))},get pluralizationRules(){return a.pluralRules||{}},__composer:a,t(...s){const[l,d,c]=s,_={};let g=null,h=null;if(!se(l))throw Rt(Je.INVALID_ARGUMENT);const F=l;return se(d)?_.locale=d:mt(d)?g=d:ve(d)&&(h=d),mt(c)?g=c:ve(c)&&(h=c),Reflect.apply(a.t,a,[F,g||h||{},_])},rt(...s){return Reflect.apply(a.rt,a,[...s])},tc(...s){const[l,d,c]=s,_={plural:1};let g=null,h=null;if(!se(l))throw Rt(Je.INVALID_ARGUMENT);const F=l;return se(d)?_.locale=d:It(d)?_.plural=d:mt(d)?g=d:ve(d)&&(h=d),se(c)?_.locale=c:mt(c)?g=c:ve(c)&&(h=c),Reflect.apply(a.t,a,[F,g||h||{},_])},te(s,l){return a.te(s,l)},tm(s){return a.tm(s)},getLocaleMessage(s){return a.getLocaleMessage(s)},setLocaleMessage(s,l){a.setLocaleMessage(s,l)},mergeLocaleMessage(s,l){a.mergeLocaleMessage(s,l)},d(...s){return Reflect.apply(a.d,a,[...s])},getDateTimeFormat(s){return a.getDateTimeFormat(s)},setDateTimeFormat(s,l){a.setDateTimeFormat(s,l)},mergeDateTimeFormat(s,l){a.mergeDateTimeFormat(s,l)},n(...s){return Reflect.apply(a.n,a,[...s])},getNumberFormat(s){return a.getNumberFormat(s)},setNumberFormat(s,l){a.setNumberFormat(s,l)},mergeNumberFormat(s,l){a.mergeNumberFormat(s,l)},getChoiceIndex(s,l){return process.env.NODE_ENV!=="production"&&Mt(da(wt.NOT_SUPPORTED_GET_CHOICE_INDEX)),-1}};return r.__extender=i,process.env.NODE_ENV!=="production"&&(r.__enableEmitter=s=>{const l=a;l[Ii]&&l[Ii](s)},r.__disableEmitter=()=>{const s=a;s[yo]&&s[yo]()}),r}}const Fd={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function NA({slots:e},n){return n.length===1&&n[0]==="default"?(e.default?e.default():[]).reduce((i,r)=>[...i,...r.type===t.Fragment?r.children:[r]],[]):n.reduce((a,i)=>{const r=e[i];return r&&(a[i]=r()),a},dt())}function Im(e){return t.Fragment}const pd=t.defineComponent({name:"i18n-t",props:Zt({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>It(e)||!isNaN(e)}},Fd),setup(e,n){const{slots:a,attrs:i}=n,r=e.i18n||wd({useScope:e.scope,__useComponent:!0});return()=>{const s=Object.keys(a).filter(h=>h!=="_"),l=dt();e.locale&&(l.locale=e.locale),e.plural!==void 0&&(l.plural=se(e.plural)?+e.plural:e.plural);const d=NA(n,s),c=r[cd](e.keypath,d,l),_=Zt(dt(),i),g=se(e.tag)||Qe(e.tag)?e.tag:Im();return t.h(g,_,c)}}});function TA(e){return mt(e)&&!se(e[0])}function Nm(e,n,a,i){const{slots:r,attrs:s}=n;return()=>{const l={part:!0};let d=dt();e.locale&&(l.locale=e.locale),se(e.format)?l.key=e.format:Qe(e.format)&&(se(e.format.key)&&(l.key=e.format.key),d=Object.keys(e.format).reduce((F,p)=>a.includes(p)?Zt(dt(),F,{[p]:e.format[p]}):F,dt()));const c=i(e.value,l,d);let _=[l.key];mt(c)?_=c.map((F,p)=>{const y=r[F.type],w=y?y({[F.type]:F.value,index:p,parts:c}):[F.value];return TA(w)&&(w[0].key=`${F.type}-${p}`),w}):se(c)&&(_=[c]);const g=Zt(dt(),s),h=se(e.tag)||Qe(e.tag)?e.tag:Im();return t.h(h,g,_)}}const Tm=t.defineComponent({name:"i18n-n",props:Zt({value:{type:Number,required:!0},format:{type:[String,Object]}},Fd),setup(e,n){const a=e.i18n||wd({useScope:e.scope,__useComponent:!0});return Nm(e,n,bm,(...i)=>a[_d](...i))}}),Om=t.defineComponent({name:"i18n-d",props:Zt({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Fd),setup(e,n){const a=e.i18n||wd({useScope:e.scope,__useComponent:!0});return Nm(e,n,mm,(...i)=>a[fd](...i))}});function OA(e,n){const a=e;if(e.mode==="composition")return a.__getInstance(n)||e.global;{const i=a.__getInstance(n);return i!=null?i.__composer:e.global.__composer}}function MA(e){const n=l=>{const{instance:d,modifiers:c,value:_}=l;if(!d||!d.$)throw Rt(Je.UNEXPECTED_ERROR);const g=OA(e,d.$);process.env.NODE_ENV!=="production"&&c.preserve&&Mt(da(wt.NOT_SUPPORTED_PRESERVE));const h=Mm(_);return[Reflect.apply(g.t,g,[...Pm(h)]),g]};return{created:(l,d)=>{const[c,_]=n(d);Ka&&e.global===_&&(l.__i18nWatcher=t.watch(_.locale,()=>{d.instance&&d.instance.$forceUpdate()})),l.__composer=_,l.textContent=c},unmounted:l=>{Ka&&l.__i18nWatcher&&(l.__i18nWatcher(),l.__i18nWatcher=void 0,delete l.__i18nWatcher),l.__composer&&(l.__composer=void 0,delete l.__composer)},beforeUpdate:(l,{value:d})=>{if(l.__composer){const c=l.__composer,_=Mm(d);l.textContent=Reflect.apply(c.t,c,[...Pm(_)])}},getSSRProps:l=>{const[d]=n(l);return{textContent:d}}}}function Mm(e){if(se(e))return{path:e};if(ve(e)){if(!("path"in e))throw Rt(Je.REQUIRED_VALUE,"path");return e}else throw Rt(Je.INVALID_VALUE)}function Pm(e){const{path:n,locale:a,args:i,choice:r,plural:s}=e,l={},d=i||{};return se(a)&&(l.locale=a),It(r)&&(l.plural=r),It(s)&&(l.plural=s),[n,d,l]}function PA(e,n,...a){const i=ve(a[0])?a[0]:{},r=!!i.useI18nComponentName,s=Le(i.globalInstall)?i.globalInstall:!0;process.env.NODE_ENV!=="production"&&s&&r&&Mt(da(wt.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:pd.name})),s&&([r?"i18n":pd.name,"I18nT"].forEach(l=>e.component(l,pd)),[Tm.name,"I18nN"].forEach(l=>e.component(l,Tm)),[Om.name,"I18nD"].forEach(l=>e.component(l,Om))),e.directive("t",MA(n))}const bd={"vue-devtools-plugin-vue-i18n":"Vue I18n devtools","vue-i18n-resource-inspector":"I18n Resources","vue-i18n-timeline":"Vue I18n"},LA={"vue-i18n-resource-inspector":"Search for scopes ..."},zA={"vue-i18n-timeline":16764185},Lm="vue-i18n: composer properties";let yd;async function VA(e,n){return new Promise((a,i)=>{try{AA({id:"vue-devtools-plugin-vue-i18n",label:bd["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:[Lm],app:e},r=>{yd=r,r.on.visitComponentTree(({componentInstance:l,treeNode:d})=>{RA(l,d,n)}),r.on.inspectComponent(({componentInstance:l,instanceData:d})=>{l.vnode.el&&l.vnode.el.__VUE_I18N__&&d&&(n.mode==="legacy"?l.vnode.el.__VUE_I18N__!==n.global.__composer&&Vm(d,l.vnode.el.__VUE_I18N__):Vm(d,l.vnode.el.__VUE_I18N__))}),r.addInspector({id:"vue-i18n-resource-inspector",label:bd["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:LA["vue-i18n-resource-inspector"]}),r.on.getInspectorTree(l=>{l.app===e&&l.inspectorId==="vue-i18n-resource-inspector"&&WA(l,n)});const s=new Map;r.on.getInspectorState(async l=>{if(l.app===e&&l.inspectorId==="vue-i18n-resource-inspector")if(r.unhighlightElement(),XA(l,n),l.nodeId==="global"){if(!s.has(l.app)){const[d]=await r.getComponentInstances(l.app);s.set(l.app,d)}r.highlightElement(s.get(l.app))}else{const d=QA(l.nodeId,n);d&&r.highlightElement(d)}}),r.on.editInspectorState(l=>{l.app===e&&l.inspectorId==="vue-i18n-resource-inspector"&&ZA(l,n)}),r.addTimelineLayer({id:"vue-i18n-timeline",label:bd["vue-i18n-timeline"],color:zA["vue-i18n-timeline"]}),a(!0)})}catch(r){console.error(r),i(!1)}})}function zm(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function RA(e,n,a){const i=a.mode==="composition"?a.global:a.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==i){const r={label:`i18n (${zm(e)} Scope)`,textColor:0,backgroundColor:16764185};n.tags.push(r)}}function Vm(e,n){const a=Lm;e.state.push({type:a,key:"locale",editable:!0,value:n.locale.value}),e.state.push({type:a,key:"availableLocales",editable:!1,value:n.availableLocales}),e.state.push({type:a,key:"fallbackLocale",editable:!0,value:n.fallbackLocale.value}),e.state.push({type:a,key:"inheritLocale",editable:!0,value:n.inheritLocale}),e.state.push({type:a,key:"messages",editable:!1,value:kd(n.messages.value)}),e.state.push({type:a,key:"datetimeFormats",editable:!1,value:n.datetimeFormats.value}),e.state.push({type:a,key:"numberFormats",editable:!1,value:n.numberFormats.value})}function kd(e){const n={};return Object.keys(e).forEach(a=>{const i=e[a];ct(i)&&"source"in i?n[a]=GA(i):ja(i)&&i.loc&&i.loc.source?n[a]=i.loc.source:Qe(i)?n[a]=kd(i):n[a]=i}),n}const UA={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function HA(e){return e.replace(/[<>"&]/g,YA)}function YA(e){return UA[e]||e}function GA(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${HA(e.source)}")`:"(?)"}`}}}function WA(e,n){e.rootNodes.push({id:"global",label:"Global Scope"});const a=n.mode==="composition"?n.global:n.global.__composer;for(const[i,r]of n.__instances){const s=n.mode==="composition"?r:r.__composer;a!==s&&e.rootNodes.push({id:s.id.toString(),label:`${zm(i)} Scope`})}}function QA(e,n){let a=null;if(e!=="global"){for(const[i,r]of n.__instances.entries())if(r.id.toString()===e){a=i;break}}return a}function Rm(e,n){if(e==="global")return n.mode==="composition"?n.global:n.global.__composer;{const a=Array.from(n.__instances.values()).find(i=>i.id.toString()===e);return a?n.mode==="composition"?a:a.__composer:null}}function XA(e,n){const a=Rm(e.nodeId,n);return a&&(e.state=KA(a)),null}function KA(e){const n={},a="Locale related info",i=[{type:a,key:"locale",editable:!0,value:e.locale.value},{type:a,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:a,key:"availableLocales",editable:!1,value:e.availableLocales},{type:a,key:"inheritLocale",editable:!0,value:e.inheritLocale}];n[a]=i;const r="Locale messages info",s=[{type:r,key:"messages",editable:!1,value:kd(e.messages.value)}];n[r]=s;{const l="Datetime formats info",d=[{type:l,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];n[l]=d;const c="Datetime formats info",_=[{type:c,key:"numberFormats",editable:!1,value:e.numberFormats.value}];n[c]=_}return n}function wo(e,n){if(yd){let a;n&&"groupId"in n&&(a=n.groupId,delete n.groupId),yd.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:a,time:Date.now(),meta:{},data:n||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function ZA(e,n){const a=Rm(e.nodeId,n);if(a){const[i]=e.path;i==="locale"&&se(e.state.value)?a.locale.value=e.state.value:i==="fallbackLocale"&&(se(e.state.value)||mt(e.state.value)||Qe(e.state.value))?a.fallbackLocale.value=e.state.value:i==="inheritLocale"&&Le(e.state.value)&&(a.inheritLocale=e.state.value)}}function JA(e,n,a){return{beforeCreate(){const i=t.getCurrentInstance();if(!i)throw Rt(Je.UNEXPECTED_ERROR);const r=this.$options;if(r.i18n){const s=r.i18n;if(r.__i18n&&(s.__i18n=r.__i18n),s.__root=n,this===this.$root)this.$i18n=Um(e,s);else{s.__injectWithOption=!0,s.__extender=a.__vueI18nExtend,this.$i18n=md(s);const l=this.$i18n;l.__extender&&(l.__disposer=l.__extender(this.$i18n))}}else if(r.__i18n)if(this===this.$root)this.$i18n=Um(e,r);else{this.$i18n=md({__i18n:r.__i18n,__injectWithOption:!0,__extender:a.__vueI18nExtend,__root:n});const s=this.$i18n;s.__extender&&(s.__disposer=s.__extender(this.$i18n))}else this.$i18n=e;r.__i18nGlobal&&Bm(n,r,r),this.$t=(...s)=>this.$i18n.t(...s),this.$rt=(...s)=>this.$i18n.rt(...s),this.$tc=(...s)=>this.$i18n.tc(...s),this.$te=(s,l)=>this.$i18n.te(s,l),this.$d=(...s)=>this.$i18n.d(...s),this.$n=(...s)=>this.$i18n.n(...s),this.$tm=s=>this.$i18n.tm(s),a.__setInstance(i,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$el&&this.$i18n){const i=this.$i18n;this.$el.__VUE_I18N__=i.__composer;const r=this.__v_emitter=J0();i.__enableEmitter&&i.__enableEmitter(r),r.on("*",wo)}},unmounted(){const i=t.getCurrentInstance();if(!i)throw Rt(Je.UNEXPECTED_ERROR);const r=this.$i18n;process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",wo),delete this.__v_emitter),this.$i18n&&(r.__disableEmitter&&r.__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,r.__disposer&&(r.__disposer(),delete r.__disposer,delete r.__extender),a.__deleteInstance(i),delete this.$i18n}}}function Um(e,n){e.locale=n.locale||e.locale,e.fallbackLocale=n.fallbackLocale||e.fallbackLocale,e.missing=n.missing||e.missing,e.silentTranslationWarn=n.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=n.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=n.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=n.postTranslation||e.postTranslation,e.warnHtmlInMessage=n.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=n.escapeParameterHtml||e.escapeParameterHtml,e.sync=n.sync||e.sync,e.__composer[Cm](n.pluralizationRules||e.pluralizationRules);const a=$s(e.locale,{messages:n.messages,__i18n:n.__i18n});return Object.keys(a).forEach(i=>e.mergeLocaleMessage(i,a[i])),n.datetimeFormats&&Object.keys(n.datetimeFormats).forEach(i=>e.mergeDateTimeFormat(i,n.datetimeFormats[i])),n.numberFormats&&Object.keys(n.numberFormats).forEach(i=>e.mergeNumberFormat(i,n.numberFormats[i])),e}const $A=pn("global-vue-i18n");function eB(e={},n){const a=__VUE_I18N_LEGACY_API__&&Le(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,i=Le(e.globalInjection)?e.globalInjection:!0,r=__VUE_I18N_LEGACY_API__&&a?!!e.allowComposition:!0,s=new Map,[l,d]=tB(e,a),c=pn(process.env.NODE_ENV!=="production"?"vue-i18n":"");process.env.NODE_ENV!=="production"&&a&&r&&Mt(da(wt.NOTICE_DROP_ALLOW_COMPOSITION));function _(F){return s.get(F)||null}function g(F,p){s.set(F,p)}function h(F){s.delete(F)}{const F={get mode(){return __VUE_I18N_LEGACY_API__&&a?"legacy":"composition"},get allowComposition(){return r},async install(p,...y){if(process.env.NODE_ENV!=="production"&&(p.__VUE_I18N__=F),p.__VUE_I18N_SYMBOL__=c,p.provide(p.__VUE_I18N_SYMBOL__,F),ve(y[0])){const q=y[0];F.__composerExtend=q.__composerExtend,F.__vueI18nExtend=q.__vueI18nExtend}let w=null;!a&&i&&(w=dB(p,F.global)),__VUE_I18N_FULL_INSTALL__&&PA(p,F,...y),__VUE_I18N_LEGACY_API__&&a&&p.mixin(JA(d,d.__composer,F));const C=p.unmount;if(p.unmount=()=>{w&&w(),F.dispose(),C()},process.env.NODE_ENV!=="production"){if(!await VA(p,F))throw Rt(Je.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const B=J0();if(a){const D=d;D.__enableEmitter&&D.__enableEmitter(B)}else{const D=d;D[Ii]&&D[Ii](B)}B.on("*",wo)}},get global(){return d},dispose(){l.stop()},__instances:s,__getInstance:_,__setInstance:g,__deleteInstance:h};return F}}function wd(e={}){const n=t.getCurrentInstance();if(n==null)throw Rt(Je.MUST_BE_CALL_SETUP_TOP);if(!n.isCE&&n.appContext.app!=null&&!n.appContext.app.__VUE_I18N_SYMBOL__)throw Rt(Je.NOT_INSTALLED);const a=aB(n),i=iB(a),r=Am(n),s=nB(e,r);if(__VUE_I18N_LEGACY_API__&&a.mode==="legacy"&&!e.__useComponent){if(!a.allowComposition)throw Rt(Je.NOT_AVAILABLE_IN_LEGACY_MODE);return lB(n,s,i,e)}if(s==="global")return Bm(i,e,r),i;if(s==="parent"){let c=rB(a,n,e.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&Mt(da(wt.NOT_FOUND_PARENT_SCOPE)),c=i),c}const l=a;let d=l.__getInstance(n);if(d==null){const c=Zt({},e);"__i18n"in r&&(c.__i18n=r.__i18n),i&&(c.__root=i),d=hd(c),l.__composerExtend&&(d[gd]=l.__composerExtend(d)),sB(l,n,d),l.__setInstance(n,d)}return d}function tB(e,n,a){const i=t.effectScope();{const r=__VUE_I18N_LEGACY_API__&&n?i.run(()=>md(e)):i.run(()=>hd(e));if(r==null)throw Rt(Je.UNEXPECTED_ERROR);return[i,r]}}function aB(e){{const n=t.inject(e.isCE?$A:e.appContext.app.__VUE_I18N_SYMBOL__);if(!n)throw Rt(e.isCE?Je.NOT_INSTALLED_WITH_PROVIDE:Je.UNEXPECTED_ERROR);return n}}function nB(e,n){return Us(e)?"__i18n"in n?"local":"global":e.useScope?e.useScope:"local"}function iB(e){return e.mode==="composition"?e.global:e.global.__composer}function rB(e,n,a=!1){let i=null;const r=n.root;let s=oB(n,a);for(;s!=null;){const l=e;if(e.mode==="composition")i=l.__getInstance(s);else if(__VUE_I18N_LEGACY_API__){const d=l.__getInstance(s);d!=null&&(i=d.__composer,a&&i&&!i[Em]&&(i=null))}if(i!=null||r===s)break;s=s.parent}return i}function oB(e,n=!1){return e==null?null:n&&e.vnode.ctx||e.parent}function sB(e,n,a){let i=null;t.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&n.vnode.el){n.vnode.el.__VUE_I18N__=a,i=J0();const r=a;r[Ii]&&r[Ii](i),i.on("*",wo)}},n),t.onUnmounted(()=>{const r=a;process.env.NODE_ENV!=="production"&&n.vnode.el&&n.vnode.el.__VUE_I18N__&&(i&&i.off("*",wo),r[yo]&&r[yo](),delete n.vnode.el.__VUE_I18N__),e.__deleteInstance(n);const s=r[gd];s&&(s(),delete r[gd])},n)}function lB(e,n,a,i={}){const r=n==="local",s=t.shallowRef(null);if(r&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw Rt(Je.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const l=Le(i.inheritLocale)?i.inheritLocale:!se(i.locale),d=t.ref(!r||l?a.locale.value:se(i.locale)?i.locale:br),c=t.ref(!r||l?a.fallbackLocale.value:se(i.fallbackLocale)||mt(i.fallbackLocale)||ve(i.fallbackLocale)||i.fallbackLocale===!1?i.fallbackLocale:d.value),_=t.ref($s(d.value,i)),g=t.ref(ve(i.datetimeFormats)?i.datetimeFormats:{[d.value]:{}}),h=t.ref(ve(i.numberFormats)?i.numberFormats:{[d.value]:{}}),F=r?a.missingWarn:Le(i.missingWarn)||li(i.missingWarn)?i.missingWarn:!0,p=r?a.fallbackWarn:Le(i.fallbackWarn)||li(i.fallbackWarn)?i.fallbackWarn:!0,y=r?a.fallbackRoot:Le(i.fallbackRoot)?i.fallbackRoot:!0,w=!!i.fallbackFormat,C=ct(i.missing)?i.missing:null,q=ct(i.postTranslation)?i.postTranslation:null,B=r?a.warnHtmlMessage:Le(i.warnHtmlMessage)?i.warnHtmlMessage:!0,D=!!i.escapeParameter,A=r?a.modifiers:ve(i.modifiers)?i.modifiers:{},S=i.pluralRules||r&&a.pluralRules;function I(){return[d.value,c.value,_.value,g.value,h.value]}const T=t.computed({get:()=>s.value?s.value.locale.value:d.value,set:H=>{s.value&&(s.value.locale.value=H),d.value=H}}),O=t.computed({get:()=>s.value?s.value.fallbackLocale.value:c.value,set:H=>{s.value&&(s.value.fallbackLocale.value=H),c.value=H}}),P=t.computed(()=>s.value?s.value.messages.value:_.value),Z=t.computed(()=>g.value),ce=t.computed(()=>h.value);function X(){return s.value?s.value.getPostTranslationHandler():q}function ye(H){s.value&&s.value.setPostTranslationHandler(H)}function De(){return s.value?s.value.getMissingHandler():C}function pe(H){s.value&&s.value.setMissingHandler(H)}function oe(H){return I(),H()}function qe(...H){return s.value?oe(()=>Reflect.apply(s.value.t,null,[...H])):oe(()=>"")}function te(...H){return s.value?Reflect.apply(s.value.rt,null,[...H]):""}function et(...H){return s.value?oe(()=>Reflect.apply(s.value.d,null,[...H])):oe(()=>"")}function vt(...H){return s.value?oe(()=>Reflect.apply(s.value.n,null,[...H])):oe(()=>"")}function st(H){return s.value?s.value.tm(H):{}}function Bt(H,ke){return s.value?s.value.te(H,ke):!1}function ft(H){return s.value?s.value.getLocaleMessage(H):{}}function gt(H,ke){s.value&&(s.value.setLocaleMessage(H,ke),_.value[H]=ke)}function St(H,ke){s.value&&s.value.mergeLocaleMessage(H,ke)}function W(H){return s.value?s.value.getDateTimeFormat(H):{}}function ae(H,ke){s.value&&(s.value.setDateTimeFormat(H,ke),g.value[H]=ke)}function le(H,ke){s.value&&s.value.mergeDateTimeFormat(H,ke)}function ie(H){return s.value?s.value.getNumberFormat(H):{}}function J(H,ke){s.value&&(s.value.setNumberFormat(H,ke),h.value[H]=ke)}function Se(H,ke){s.value&&s.value.mergeNumberFormat(H,ke)}const xe={get id(){return s.value?s.value.id:-1},locale:T,fallbackLocale:O,messages:P,datetimeFormats:Z,numberFormats:ce,get inheritLocale(){return s.value?s.value.inheritLocale:l},set inheritLocale(H){s.value&&(s.value.inheritLocale=H)},get availableLocales(){return s.value?s.value.availableLocales:Object.keys(_.value)},get modifiers(){return s.value?s.value.modifiers:A},get pluralRules(){return s.value?s.value.pluralRules:S},get isGlobal(){return s.value?s.value.isGlobal:!1},get missingWarn(){return s.value?s.value.missingWarn:F},set missingWarn(H){s.value&&(s.value.missingWarn=H)},get fallbackWarn(){return s.value?s.value.fallbackWarn:p},set fallbackWarn(H){s.value&&(s.value.missingWarn=H)},get fallbackRoot(){return s.value?s.value.fallbackRoot:y},set fallbackRoot(H){s.value&&(s.value.fallbackRoot=H)},get fallbackFormat(){return s.value?s.value.fallbackFormat:w},set fallbackFormat(H){s.value&&(s.value.fallbackFormat=H)},get warnHtmlMessage(){return s.value?s.value.warnHtmlMessage:B},set warnHtmlMessage(H){s.value&&(s.value.warnHtmlMessage=H)},get escapeParameter(){return s.value?s.value.escapeParameter:D},set escapeParameter(H){s.value&&(s.value.escapeParameter=H)},t:qe,getPostTranslationHandler:X,setPostTranslationHandler:ye,getMissingHandler:De,setMissingHandler:pe,rt:te,d:et,n:vt,tm:st,te:Bt,getLocaleMessage:ft,setLocaleMessage:gt,mergeLocaleMessage:St,getDateTimeFormat:W,setDateTimeFormat:ae,mergeDateTimeFormat:le,getNumberFormat:ie,setNumberFormat:J,mergeNumberFormat:Se};function Xe(H){H.locale.value=d.value,H.fallbackLocale.value=c.value,Object.keys(_.value).forEach(ke=>{H.mergeLocaleMessage(ke,_.value[ke])}),Object.keys(g.value).forEach(ke=>{H.mergeDateTimeFormat(ke,g.value[ke])}),Object.keys(h.value).forEach(ke=>{H.mergeNumberFormat(ke,h.value[ke])}),H.escapeParameter=D,H.fallbackFormat=w,H.fallbackRoot=y,H.fallbackWarn=p,H.missingWarn=F,H.warnHtmlMessage=B}return t.onBeforeMount(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw Rt(Je.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const H=s.value=e.proxy.$i18n.__composer;n==="global"?(d.value=H.locale.value,c.value=H.fallbackLocale.value,_.value=H.messages.value,g.value=H.datetimeFormats.value,h.value=H.numberFormats.value):r&&Xe(H)}),xe}const uB=["locale","fallbackLocale","availableLocales"],Hm=["t","rt","d","n","tm","te"];function dB(e,n){const a=Object.create(null);return uB.forEach(r=>{const s=Object.getOwnPropertyDescriptor(n,r);if(!s)throw Rt(Je.UNEXPECTED_ERROR);const l=t.isRef(s.value)?{get(){return s.value.value},set(d){s.value.value=d}}:{get(){return s.get&&s.get()}};Object.defineProperty(a,r,l)}),e.config.globalProperties.$i18n=a,Hm.forEach(r=>{const s=Object.getOwnPropertyDescriptor(n,r);if(!s||!s.value)throw Rt(Je.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${r}`,s)}),()=>{delete e.config.globalProperties.$i18n,Hm.forEach(r=>{delete e.config.globalProperties[`$${r}`]})}}if(xA(),__INTLIFY_JIT_COMPILATION__?Xh(_A):Xh(fA),nA(ME),iA(Yh),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=Ln();e.__INTLIFY__=!0,GE(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const cB={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"}},chats_contact:{yesterday:"Yesterday"},emoji_picker:{title:"Pick your emoji...",search:"Search",notfound:"No Emoji Found",categories:{search:"Search Results",recent:"Frequently Used",smileys:"Smileys & Emotion",people:"People & Body",nature:"Animals & Nature",foods:"Food & Drink",activity:"Activity",places:"Travel & Places",objects:"Objects",symbols:"Symbols",flags:"Flags",custom:"Custom"}},search:"Search",without_results:"No results found"},fB={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"}},chats_contact:{yesterday:"Ayer"},emoji_picker:{title:"Elige tu emoji...",search:"Buscar",notfound:"No se encontró ningún emoji",categories:{search:"Resultados de búsqueda",recent:"Usados frecuentemente",smileys:"Caritas y Emociones",people:"Personas y Cuerpo",nature:"Animales y Naturaleza",foods:"Comidas y Bebidas",activity:"Actividades",places:"Viajes y Lugares",objects:"Objetos",symbols:"Símbolos",flags:"Banderas",custom:"Personalizados"}},search:"Buscar",without_results:"No se encontró ningún resultado"},Ym={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"}},chats_contact:{yesterday:"Ontem"},emoji_picker:{title:"Escolha seu emoji...",search:"Buscar",notfound:"Nenhum emoji encontrado",categories:{search:"Resultados da busca",recent:"Usados frequentemente",smileys:"Carinhas & Pessoas",people:"Pessoas e Corpo",nature:"Animais e Natureza",foods:"Comidas e Bebidas",activity:"Atividades",places:"Viagens e Lugares",objects:"Objetos",symbols:"Símbolos",flags:"Bandeiras",custom:"Personalizados"}},search:"Buscar",without_results:"Nenhum resultado encontrado"},_B=Object.assign({en:cB,es:fB,"pt-br":Ym,"pt-BR":Ym}),Ni=eB({locale:"en",fallbackLocale:"en",messages:_B}),gB=["width","height"],wr=z(t.defineComponent({name:"UnnnicIconLoading",__name:"IconLoading",props:{scheme:{type:String,default:"fg-muted"},size:{type:String,default:"lg"},strokeWidth:{type:Number,default:5}},setup(e){t.useCssVars(r=>({"7b04333c":e.strokeWidth}));const n={xs:12,sm:16,ant:20,md:24,lg:32,xl:40,"avatar-nano":20,"avatar-xs":32,"avatar-sm":40,"avatar-md":72,"avatar-lg":104},a=e,i=t.computed(()=>n[a.size]??a.size);return(r,s)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["unnnic-icon-loading",`unnnic-icon-loading--${e.scheme}`]),"aria-atomic":"true","aria-live":"assertive"},[(t.openBlock(),t.createElementBlock("svg",{viewBox:"0 0 50 50",width:i.value,height:i.value},s[0]||(s[0]=[t.createElementVNode("circle",{cx:"25",cy:"25",r:"20"},null,-1)]),8,gB))],2))}}),[["__scopeId","data-v-05fd00f9"]]),hB=["disabled"],Dt=z(t.defineComponent({name:"UnnnicButton",__name:"Button",props:{size:{default:"large"},text:{default:""},type:{default:"primary"},float:{type:Boolean,default:!1},iconLeft:{default:""},iconRight:{default:""},iconCenter:{default:""},iconsFilled:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},pressed:{type:Boolean,default:!1}},setup(e){const n=e,a=t.useSlots(),i=t.computed(()=>n.disabled||n.loading),r=t.computed(()=>n.size==="extra-large"?"lg":"ant"),s=t.computed(()=>a.default?!0:n.text&&n.text.length>0),l=t.computed(()=>i.value?"fg-muted":{primary:"fg-on-primary",secondary:"fg-emphasized",tertiary:"fg-emphasized",warning:"fg-on-primary",attention:"fg-on-primary"}[c.value]||"fg-on-primary"),d=t.computed(()=>n.size==="large"||!n.float&&n.size==="small"||n.float&&n.size==="extra-large"),c=t.computed(()=>({alternative:"tertiary"})[n.type]||n.type),_=t.computed(()=>["primary","secondary","tertiary","warning","attention"].includes(c.value)),g=()=>{if(!d.value||!_.value){let h="TypeError:";throw d.value||(h+=" Invalid size prop.",h+=" Please provide 'large', 'small' (only if float prop is false), or 'extra-large' (only if float prop is true)."),_.value||(h+=" Invalid type prop.",h+=" Please provide one of the following types: primary, secondary, tertiary, warning, attention. Alternative is discontinued and it was forced renamed to tertiary."),new Error(h)}};return t.watch(()=>n,()=>{g()},{deep:!0,immediate:!0}),(h,F)=>(t.openBlock(),t.createElementBlock("button",t.mergeProps(h.$attrs,{disabled:i.value,class:["unnnic-button",`unnnic-button--size-${h.size}`,`unnnic-button--${c.value}`,h.iconCenter?"unnnic-button--icon-on-center":null,h.float?"unnnic-button--float":null,h.pressed?"unnnic-button--pressed":null]}),[h.loading?(t.openBlock(),t.createBlock(wr,{key:0,scheme:l.value,size:r.value,style:{position:"absolute"},"data-testid":"icon-loading"},null,8,["scheme","size"])):t.createCommentVNode("",!0),h.iconLeft?(t.openBlock(),t.createBlock(fe,{key:1,icon:h.iconLeft,scheme:l.value,size:r.value,filled:h.iconsFilled,class:t.normalizeClass({"unnnic-button__icon-left":s.value}),style:t.normalizeStyle({visibility:h.loading?"hidden":"visible"}),clickable:"","data-testid":"icon-left"},null,8,["icon","scheme","size","filled","class","style"])):t.createCommentVNode("",!0),h.iconCenter?(t.openBlock(),t.createBlock(fe,{key:2,icon:h.iconCenter,scheme:l.value,style:t.normalizeStyle({visibility:h.loading?"hidden":"visible"}),size:r.value,filled:h.iconsFilled,clickable:"","data-testid":"icon-center"},null,8,["icon","scheme","style","size","filled"])):t.createCommentVNode("",!0),h.float?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:3,class:"unnnic-button__label",style:t.normalizeStyle({visibility:h.loading?"hidden":"visible"}),"data-testid":"button-label"},[t.renderSlot(h.$slots,"default",{},void 0,!0),t.createTextVNode(" "+t.toDisplayString(h.text),1)],4)),h.iconRight?(t.openBlock(),t.createBlock(fe,{key:4,icon:h.iconRight,scheme:l.value,size:r.value,filled:h.iconsFilled,class:t.normalizeClass({"unnnic-button__icon-right":s.value}),style:t.normalizeStyle({visibility:h.loading?"hidden":"visible"}),clickable:"","data-testid":"icon-right"},null,8,["icon","scheme","size","filled","class","style"])):t.createCommentVNode("",!0)],16,hB))}}),[["__scopeId","data-v-d7396b6a"]]),mB={class:"month-container","data-testid":"date-picker-month-container"},FB=["onClick"],pB={class:"month-container","data-testid":"date-picker-month-container"},bB=["onClick"],yB={class:"month-container","data-testid":"date-picker-month-container"},kB=["onClick"],wB={key:0,class:"options"},DB=["onClick"],CB={class:"actions"},el=z(t.defineComponent({name:"UnnnicDatePicker",__name:"DatePicker",props:{initialStartDate:{default:""},initialEndDate:{default:""},minDate:{default:""},maxDate:{default:""},periodBaseDate:{default:""},equivalentOption:{default:""},type:{default:"day"},size:{default:"large"},clearLabel:{default:""},actionLabel:{default:""},months:{default:()=>[]},days:{default:()=>[]},options:{default:()=>[]},disableClear:{type:Boolean,default:!1},hideOptions:{type:Boolean,default:!1},locale:{default:void 0},translations:{default:void 0},variant:{default:"card"}},emits:["change","submit","update:equivalentOption"],setup(e,{expose:n,emit:a}){t.useCssVars(W=>({c04bd20c:D.value}));const i=e,r=a,s=new Date,l=t.ref(`${s.getMonth()+1} 1 ${s.getFullYear()}`),d=t.ref((i.initialStartDate||"").replace(/-/g," ")),c=t.ref((i.initialEndDate||"").replace(/-/g," ")),_=t.ref(""),g={clean:{"pt-br":"Limpar",en:"Clean",es:"Limpiar"},filter:{"pt-br":"Filtrar",en:"Filter",es:"Filtrar"}},h=t.getCurrentInstance(),F=t.computed(()=>{var le,ie;const ae=((ie=(le=h==null?void 0:h.proxy)==null?void 0:le.$i18n)==null?void 0:ie.locale)||"en-us";return String(ae).toLowerCase()}),p=t.computed(()=>{const W=i.months||[];return W.length?W:jC[F.value]}),y=t.computed(()=>{const W=i.days||[];return W.length?W:qC[F.value]}),w=t.computed(()=>{const W=i.options||[];return W.length?W:IC[F.value]}),C=t.computed(()=>i.clearLabel||Rs[F.value].clear),q=t.computed(()=>i.actionLabel||Rs[F.value].filter),B=t.computed(()=>({startDate:d.value.replaceAll(" ","-"),endDate:c.value.replaceAll(" ","-")})),D=t.computed(()=>i.hideOptions?"column-reverse":"column");n({i18n:(...W)=>{const[ae,le]=W,ie=Object.keys(Ni.global.messages||{});let J=i.locale;const Se=Kt.get(Ni,"global.locale")==="en-us"?"en":Kt.get(Ni,"global.locale");J=J&&ie.includes(J)?J:Se,J=J==null?void 0:J.toLowerCase();let xe=Kt.get(i.translations,`${ae}.${J}`,Kt.get(i.translations,ae));if(xe||(xe=Kt.get(g,`${ae}.${J}`,Kt.get(g,ae,le))),xe!=null&&xe.includes("|")&&typeof W[1]=="number"){const H=W[1],ke=xe.split("|");ke.length===3?xe=ke[H]||ke[2]:ke.length===2&&(xe=H===1?ke[0]:ke[1])}let Xe={};return Object.values(W).slice(1).forEach(H=>{!(H instanceof Array)&&H instanceof Object&&(Xe=H)}),Object.keys(Xe).forEach(H=>{xe=xe==null?void 0:xe.replaceAll(new RegExp(`{ *${H} *}`,"g"),Xe[H])}),xe},startDate:d,endDate:c,optionSelected:_,referenceDate:l,autoSelect:Bt,dateToString:S,getStartAndEndDateByPeriod:st,getDatesOfTheMonth:oe});function S(W){return`${W.getMonth()+1} ${W.getDate()} ${W.getFullYear()}`}function I(W){return`${W.getMonth()+1} ${W.getFullYear()}`}function T(W){return W.getFullYear()}function O(W){const[ae,le,ie]=W.split(" ");return new Date(Number(ie),Number(ae)-1,Number(le)).getTime()}function P(W){return W.toString().split(" ")[1]}function Z(W){return Number(W.toString().split(" ")[0])}function ce(W){const[ae,le,ie]=W.split(" ");return new Date(Number(ie),Number(ae)-1,Number(le)).getFullYear()}function X(W,ae){const[le,ie,J]=W.split(" "),Se=new Date(Number(J),Number(le)-1,Number(ie));return Se.setMonth(Se.getMonth()+ae),S(Se)}function ye(W){if(d.value&&c.value){if(W>=O(d.value)&&W<=O(c.value))return!0}else{if(d.value&&W>=O(d.value))return!0;if(c.value&&W<=O(c.value))return!0}return!1}function De(W){if(d.value&&c.value){const ae=O(d.value),le=O(c.value);return W>=ae&&W<=le}if(d.value){const ae=O(d.value);return W>=ae}if(c.value){const ae=O(c.value);return W<=ae}return!1}function pe(W){if(d.value&&c.value){const ae=O(d.value),le=O(c.value);return W>=ae&&W<=le}if(d.value){const ae=O(d.value);return W>=ae}if(c.value){const ae=O(c.value);return W<=ae}return!1}function oe(W){const[ae,le,ie]=W.split(" "),J=new Date(Number(ie),Number(ae)-1,Number(le)),Se=J.getMonth(),xe=86400;J.setDate(1-J.getDay());const Xe=[];for(let H=0;H<6*7;H+=1){const ke=S(J),rt=[];if(i.minDate){const[$e,he,ze]=i.minDate.split("-"),v=new Date(Number($e),Number(he)-1,Number(ze));J<v&&rt.push("out of range")}if(i.maxDate){const[$e,he,ze]=i.maxDate.split("-"),v=new Date(Number($e),Number(he)-1,Number(ze));J>v&&rt.push("out of range")}if(Se===J.getMonth()){rt.push("inside month");const $e=O(S(J)),he=$e-xe,ze=$e+xe;ye($e)&&(rt.push("selected"),ye(he)||rt.push("left-highlighted"),ye(ze)||rt.push("right-highlighted"),(rt.includes("left-highlighted")||rt.includes("right-highlighted"))&&rt.push("highlighted"))}S(J)===S(new Date)&&rt.push("today"),Xe.push({properties:rt,toString:()=>ke}),J.setDate(J.getDate()+1)}return Xe}function qe(W){const[ae,le,ie]=W.split(" "),J=new Date(Number(ie),Number(ae)-1,Number(le));J.setMonth(0);const Se=[];for(let xe=0;xe<3*4;xe+=1){const Xe=S(J),H=[];H.push("inside month");const ke=O(S(J)),rt=new Date(ke),$e=new Date(ke);rt.setMonth(rt.getMonth()-1),$e.setMonth($e.getMonth()+1);const he=rt.getTime(),ze=$e.getTime();De(ke)&&(H.push("selected"),De(he)||H.push("left-highlighted"),De(ze)||H.push("right-highlighted"),(H.includes("left-highlighted")||H.includes("right-highlighted"))&&H.push("highlighted")),I(J)===I(new Date)&&H.push("today"),Se.push({properties:H,date:Xe,toString:()=>Xe}),J.setMonth(J.getMonth()+1)}return Se}function te(W){const[ae,le,ie]=W.split(" "),J=new Date(Number(ie),Number(ae)-1,Number(le));J.setMonth(0);const Se=[];for(let xe=0;xe<3*4;xe+=1){const Xe=S(J),H=[];H.push("inside month");const ke=O(S(J)),[rt,$e,he]=W.split(" "),ze=new Date(Number(he),Number(rt)-1,Number($e)),v=new Date(Number(he),Number(rt)-1,Number($e));ze.setMonth(ze.getMonth()-12),v.setMonth(v.getMonth()+12);const N=ze.getTime(),Y=v.getTime();pe(ke)&&(H.push("selected"),pe(N)||H.push("left-highlighted"),pe(Y)||H.push("right-highlighted"),(H.includes("left-highlighted")||H.includes("right-highlighted"))&&H.push("highlighted")),T(J)===T(new Date)&&H.push("today"),Se.push({properties:H,date:J.getFullYear(),toString:()=>Xe}),J.setFullYear(J.getFullYear()+1)}return Se}function et(W){if(!d.value||!c.value)d.value=W.toString(),c.value=d.value;else{const ae=O(W.toString()),le=O(d.value),ie=O(c.value);le!==ie?(d.value=W.toString(),c.value=d.value):ae>ie?c.value=W.toString():ae<le?d.value=W.toString():ae===le||ae===ie?(d.value=W.toString(),c.value=d.value):ae-le<ie-ae?d.value=W.toString():c.value=W.toString()}}function vt(){d.value="",c.value="",_.value=""}function st(W){let ae,le,ie;if(i.periodBaseDate){const Xe=i.periodBaseDate.split("-");if(Xe.length===3){const[H,ke,rt]=Xe;ie=new Date(Number(H),Number(ke)-1,Number(rt))}else{const H=new Date(i.periodBaseDate);ie=Number.isNaN(H.getTime())?new Date:H}}else ie=new Date;const J=new Date(ie.getTime()),Se=W.match(/^last-(\d+)-days$/),xe=W.match(/^last-(\d+)-months$/);if(Se){const Xe=Number(Se[1]);le=S(J),J.setDate(J.getDate()-Xe+1),ae=S(J)}else if(xe){const Xe=Number(xe[1]);le=S(J),J.setDate(J.getDate()+1),J.setMonth(J.getMonth()-Xe),ae=S(J)}else if(W==="current-month"){const Xe=ie.getDate();J.setDate(1),ae=S(J),J.setDate(Xe),le=S(J)}else W==="previous-month"&&(J.setDate(1),J.setMonth(J.getMonth()-1),ae=S(J),J.setMonth(J.getMonth()+1),J.setDate(0),le=S(J));return{startDate:ae,endDate:le}}function Bt(W){const{startDate:ae,endDate:le}=st(W);if(d.value=ae||"",c.value=le||"",c.value){const ie=X(l.value,1),J=`${Number(Z({toString:()=>c.value}))} 1 ${ce(c.value)}`;[l.value,ie].includes(J)||(l.value=J)}t.nextTick(()=>{_.value=W})}function ft(){if(r("submit",B.value),_.value==="custom")r("update:equivalentOption","");else{const W=w.value.find(({id:ae})=>ae===_.value);r("update:equivalentOption",(W==null?void 0:W.name)||"")}}function gt(){const{startDate:W,endDate:ae}=B.value,le=(J,Se)=>!J||!Se?!1:new Date(J).getTime()===new Date(Se).getTime(),ie=w.value.find(({id:J})=>{const{startDate:Se,endDate:xe}=st(J);return le(W,Se)&&le(ae,xe)});_.value=W||ae?ie?ie.id:"custom":""}const St=t.computed(()=>[X(l.value,-1),l.value]);return t.watch(B,W=>{gt(),r("change",W)}),t.onMounted(()=>{gt()}),(W,ae)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["unnnic-date-picker",`unnnic-date-picker--${i.variant}`]),"data-testid":"date-picker-root"},[W.type==="day"?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(St.value,(le,ie)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:le},[t.createElementVNode("div",mB,[t.createElementVNode("div",{class:t.normalizeClass(["header",`header--${W.size}`])},[t.createVNode(Dt,{size:"small",iconCenter:`keyboard_arrow_${ie===0?"left":"right"}`,type:W.size==="large"?"secondary":"tertiary",class:"button-space",style:t.normalizeStyle({gridArea:`${ie===0?"left":"right"}-button`}),"data-testid":`date-picker-nav-${ie===0?"left":"right"}`,onClick:t.withModifiers(J=>l.value=X(l.value,ie===0?-1:1),["stop"])},null,8,["iconCenter","type","style","data-testid","onClick"]),t.createElementVNode("div",{class:t.normalizeClass(["label",`label--${W.size}`])},t.toDisplayString(p.value[Number(Z(le))-1])+" "+t.toDisplayString(ce(le)),3)],2),t.createElementVNode("div",{class:t.normalizeClass(["days",`days--${W.size}`])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(y.value,(J,Se)=>(t.openBlock(),t.createElementBlock("div",{key:Se,class:"name"},t.toDisplayString(J),1))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(oe(le),(J,Se)=>(t.openBlock(),t.createElementBlock("div",{key:`${le}-${Se}`,class:t.normalizeClass({disabled:!J.properties.includes("inside month")||J.properties.includes("out of range"),selectable:J.properties.includes("inside month")&&!J.properties.includes("out of range"),today:J.properties.includes("today"),selected:J.properties.includes("selected"),highlighted:J.properties.includes("highlighted"),left:J.properties.includes("left-highlighted"),right:J.properties.includes("right-highlighted")}),"data-testid":"date-picker-day",onClick:xe=>J.properties.includes("inside month")&&!J.properties.includes("out of range")&&et(J)},t.toDisplayString(P(J)),11,FB))),128))],2)]),ae[4]||(ae[4]=t.createElementVNode("div",{class:"divider"},null,-1))],64))),128)):W.type==="month"?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList([l.value],le=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:le},[t.createElementVNode("div",pB,[t.createElementVNode("div",{class:t.normalizeClass(["header",`header--${W.size}`])},[t.createVNode(Dt,{size:"small",iconCenter:"keyboard_arrow_left",type:W.size==="large"?"secondary":"tertiary",class:"button-space",style:{gridArea:"left-button"},"data-testid":"date-picker-month-nav-left",onClick:ae[0]||(ae[0]=ie=>l.value=X(l.value,-12))},null,8,["type"]),t.createElementVNode("div",{class:t.normalizeClass(["label",`label--${W.size}`])},t.toDisplayString(ce(le)),3),t.createVNode(Dt,{size:"small",iconCenter:"keyboard_arrow_right",type:W.size==="large"?"secondary":"tertiary",class:"button-space",style:{gridArea:"right-button"},"data-testid":"date-picker-month-nav-right",onClick:ae[1]||(ae[1]=ie=>l.value=X(l.value,12))},null,8,["type"])],2),t.createElementVNode("div",{class:t.normalizeClass(["days",`months--${W.size}`])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(qe(le),(ie,J)=>(t.openBlock(),t.createElementBlock("div",{key:`${le}-${J}`,class:t.normalizeClass({disabled:!ie.properties.includes("inside month"),selectable:ie.properties.includes("inside month"),today:ie.properties.includes("today"),selected:ie.properties.includes("selected"),highlighted:ie.properties.includes("highlighted"),left:ie.properties.includes("left-highlighted"),right:ie.properties.includes("right-highlighted")}),"data-testid":"date-picker-month-cell",onClick:Se=>ie.properties.includes("inside month")&&et(ie)},t.toDisplayString(p.value[Z(ie)-1].substr(0,3)),11,bB))),128))],2)]),ae[5]||(ae[5]=t.createElementVNode("div",{class:"divider"},null,-1))],64))),128)):W.type==="year"?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:2},t.renderList([l.value],le=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:le},[t.createElementVNode("div",yB,[t.createElementVNode("div",{class:t.normalizeClass(["header",`header--${W.size}`])},[t.createVNode(Dt,{size:"small",iconCenter:"arrow-left-1-1",type:W.size==="large"?"secondary":"tertiary",class:"button-space",style:{gridArea:"left-button"},"data-testid":"date-picker-year-nav-left",onClick:ae[2]||(ae[2]=ie=>l.value=X(l.value,-12*12))},null,8,["type"]),t.createElementVNode("div",{class:t.normalizeClass(["label",`label--${W.size}`])},t.toDisplayString(ce(le)),3),t.createVNode(Dt,{size:"small",iconCenter:"arrow-right-1-1",type:W.size==="large"?"secondary":"tertiary",class:"button-space",style:{gridArea:"right-button"},"data-testid":"date-picker-year-nav-right",onClick:ae[3]||(ae[3]=ie=>l.value=X(l.value,12*12))},null,8,["type"])],2),t.createElementVNode("div",{class:t.normalizeClass(["days",`months--${W.size}`])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(te(le),(ie,J)=>(t.openBlock(),t.createElementBlock("div",{key:`${le}-${J}`,class:t.normalizeClass({disabled:!ie.properties.includes("inside month"),selectable:ie.properties.includes("inside month"),today:ie.properties.includes("today"),selected:ie.properties.includes("selected"),highlighted:ie.properties.includes("highlighted"),left:ie.properties.includes("left-highlighted"),right:ie.properties.includes("right-highlighted")}),"data-testid":"date-picker-year-cell",onClick:Se=>ie.properties.includes("inside month")&&et(ie)},t.toDisplayString(ie.date),11,kB))),128))],2)]),ae[6]||(ae[6]=t.createElementVNode("div",{class:"divider"},null,-1))],64))),128)):t.createCommentVNode("",!0),W.size!=="small"?(t.openBlock(),t.createElementBlock("div",{key:3,class:"options-container",style:t.normalizeStyle({flexDirection:D.value}),"data-testid":"date-picker-options"},[W.hideOptions?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",wB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(w.value,(le,ie)=>(t.openBlock(),t.createElementBlock("div",{key:ie,class:t.normalizeClass(["option",{selectable:le.id!=="custom",selected:_.value===le.id}]),"data-testid":"date-picker-option",onClick:J=>le.id==="custom"?null:Bt(le.id)},t.toDisplayString(le.name),11,DB))),128))])),t.createElementVNode("div",CB,[W.disableClear?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(Dt,{key:0,size:"small",text:C.value,type:"tertiary","data-testid":"date-picker-clear",onClick:vt},null,8,["text"])),t.createVNode(Dt,{size:"small",text:q.value,type:"secondary","data-testid":"date-picker-submit",onClick:ft},null,8,["text"])])],4)):t.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-98518cc6"]]),Dr=t.defineComponent({name:"UnnnicPopover",__name:"Popover",props:{defaultOpen:{type:Boolean},open:{type:Boolean},modal:{type:Boolean}},emits:["update:open"],setup(e,{emit:n}){const r=ma(e,n);return(s,l)=>(t.openBlock(),t.createBlock(t.unref(u6),t.normalizeProps(t.guardReactiveProps(t.unref(r))),{default:t.withCtx(()=>[t.renderSlot(s.$slots,"default")]),_:3},16))}}),Gm=Symbol("unnnicPopoverFooterTarget"),Cr=t.defineComponent({inheritAttrs:!1,__name:"PopoverContent",props:{forceMount:{type:Boolean},side:{},sideOffset:{default:4},sideFlip:{type:Boolean},align:{default:"center"},alignOffset:{},alignFlip:{type:Boolean},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean},class:{default:""},size:{default:"medium"},width:{default:""}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:n}){const a=e,i=n,r=na(a,"class","size"),s=ma(r,i),l=ir(),d=_s(),c=t.ref(null);t.provide(Gm,c);const _=t.computed(()=>a.width?a.width:{small:"240px",medium:"320px",large:"400px"}[a.size]);return(g,h)=>(t.openBlock(),t.createBlock(t.unref(p6),{to:t.unref(d)},{default:t.withCtx(()=>[t.createVNode(t.unref(m6),t.mergeProps({...t.unref(s),...g.$attrs},{style:{width:_.value,zIndex:t.unref(l)},class:t.unref(Et)("unnnic-popover","bg-popover text-popover-foreground outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2")}),{default:t.withCtx(()=>[t.createElementVNode("section",{class:t.normalizeClass(`unnnic-popover__content ${a.class||""}`)},[t.renderSlot(g.$slots,"default")],2),t.createElementVNode("div",{ref_key:"footerContainer",ref:c,"data-testid":"popover-footer-container"},null,512)]),_:3},16,["style","class"])]),_:3},8,["to"]))}}),EB={class:"unnnic-popover__footer"},AB={key:1,class:"unnnic-popover__footer"},tl=t.defineComponent({name:"UnnnicPopoverFooter",__name:"PopoverFooter",setup(e){const n=t.inject(Gm,null);return(a,i)=>t.unref(n)?(t.openBlock(),t.createBlock(t.Teleport,{key:0,to:t.unref(n)},[t.createElementVNode("footer",EB,[t.renderSlot(a.$slots,"default")])],8,["to"])):(t.openBlock(),t.createElementBlock("footer",AB,[t.renderSlot(a.$slots,"default")]))}}),Er=z(t.defineComponent({__name:"PopoverTrigger",props:{asChild:{type:Boolean},as:{}},setup(e){const n=e;return(a,i)=>(t.openBlock(),t.createBlock(t.unref(y6),t.mergeProps(n,{class:"unnnic-popover-trigger"}),{default:t.withCtx(()=>[t.renderSlot(a.$slots,"default",{},void 0,!0)]),_:3},16))}}),[["__scopeId","data-v-df136255"]]),al=z(t.defineComponent({name:"UnnnicPopoverOption",__name:"PopoverOption",props:{label:{},disabled:{type:Boolean,default:!1},active:{type:Boolean,default:!1},focused:{type:Boolean,default:!1},scheme:{default:"fg-emphasized"},icon:{default:""}},setup(e){const n=e,a=t.useSlots(),i=t.computed(()=>!!a.default),r=t.computed(()=>n.active?"fg-on-primary":n.disabled?"fg-muted":n.scheme);return(s,l)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["unnnic-popover-option",{"unnnic-popover-option--disabled":n.disabled,"unnnic-popover-option--active":n.active,"unnnic-popover-option--focused":n.focused,"unnnic-popover-option--with-content":i.value}])},[n.icon?(t.openBlock(),t.createBlock(fe,{key:0,icon:n.icon,scheme:r.value,size:"ant"},null,8,["icon","scheme"])):t.createCommentVNode("",!0),t.renderSlot(s.$slots,"default",{},()=>[t.createElementVNode("p",{class:t.normalizeClass(["unnnic-popover-option__label",`unnnic-popover-option__label--${r.value}`,`unnnic-popover-option--disabled: ${n.disabled}`])},t.toDisplayString(n.label),3)],!0)],2))}}),[["__scopeId","data-v-25ebf283"]]),Dd=z(t.defineComponent({name:"UnnnicInputDatePicker",__name:"InputDatePicker",props:{modelValue:{},iconPosition:{default:"left"},minDate:{default:""},maxDate:{default:""},fillW:{type:Boolean,default:!1},type:{default:"day"},size:{default:"md"},clearText:{default:"Clear"},actionText:{default:"Filter"},months:{default:()=>[]},days:{default:()=>[]},options:{default:()=>[]},next:{type:Boolean,default:!1},format:{default:"YYYY-MM-DD"},inputFormat:{default:"MM-DD-YYYY"},position:{default:"left"},disableClear:{type:Boolean,default:!1},hideOptions:{type:Boolean,default:!1},periodBaseDate:{default:""},disabled:{type:Boolean,default:!1},disableShowOverwrittenValue:{type:Boolean,default:!1}},emits:["update:model-value","selectDate"],setup(e,{emit:n}){const a=t.useSlots(),i=t.computed(()=>!!a.footer),r=e,s=n,l=t.ref(!1),d=t.ref(""),c=t.computed(()=>r.position==="right"?"end":"start"),_=t.computed(()=>r.disableShowOverwrittenValue?g.value||"":d.value||g.value||""),g=t.computed(()=>{const C=[],{start:q,end:B}=r.modelValue||{};return q&&C.push(re(q,r.format).format(r.inputFormat||"")),B&&C.push(re(B,r.format).format(r.inputFormat||"")),C.length?C.join(" ~ "):String(r.inputFormat||"").replaceAll("-","/").toLowerCase()}),h=t.computed(()=>r.modelValue.start?re(r.modelValue.start,r.format).format("MM DD YYYY"):void 0),F=t.computed(()=>r.modelValue.end?re(r.modelValue.end,r.format).format("MM DD YYYY"):void 0);function p(C){const{startDate:q,endDate:B}=C,D={start:re(q,"MM-DD-YYYY").format(r.format),end:re(B,"MM-DD-YYYY").format(r.format)};s("selectDate",D)}function y(C){const q=C.startDate.replace(/(\d+)-(\d+)-(\d+)/,"$3-$1-$2"),B=C.endDate.replace(/(\d+)-(\d+)-(\d+)/,"$3-$1-$2");l.value=!1,s("update:model-value",{start:q?re(q,"YYYY-MM-DD").format(r.format):null,end:B?re(B,"YYYY-MM-DD").format(r.format):null})}function w(){l.value=!0}return(C,q)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["dropdown",{"fill-w":C.fillW}])},[t.createVNode(t.unref(Dr),{open:l.value,"onUpdate:open":q[1]||(q[1]=B=>l.value=B)},{default:t.withCtx(()=>[t.createVNode(t.unref(Er),{asChild:!0},{default:t.withCtx(()=>[t.createVNode(_n,{"data-testid":"input",class:t.normalizeClass(["input",{"date-picker-input-next":C.next}]),size:C.size,iconLeft:C.iconPosition==="left"?"calendar_month":void 0,iconRight:C.iconPosition==="right"?"calendar_month":void 0,readonly:"",modelValue:_.value,disabled:C.disabled,onClick:w,onFocus:w},null,8,["class","size","iconLeft","iconRight","modelValue","disabled"])]),_:1}),t.createVNode(t.unref(Cr),{width:"auto",side:"bottom",align:c.value,class:"date-picker-popover-content"},{default:t.withCtx(()=>[t.createVNode(el,{equivalentOption:d.value,"onUpdate:equivalentOption":q[0]||(q[0]=B=>d.value=B),"data-testid":"date-picker",variant:"popover",type:C.type,clearLabel:C.clearText,actionLabel:C.actionText,months:C.months,days:C.days,options:C.options,periodBaseDate:C.periodBaseDate,initialStartDate:h.value,initialEndDate:F.value,minDate:C.minDate,maxDate:C.maxDate,disableClear:C.disableClear,hideOptions:C.hideOptions,onChange:p,onSubmit:y},null,8,["equivalentOption","type","clearLabel","actionLabel","months","days","options","periodBaseDate","initialStartDate","initialEndDate","minDate","maxDate","disableClear","hideOptions"]),i.value?(t.openBlock(),t.createBlock(t.unref(tl),{key:0},{default:t.withCtx(()=>[t.renderSlot(C.$slots,"footer",{},void 0,!0)]),_:3})):t.createCommentVNode("",!0)]),_:3},8,["align"])]),_:3},8,["open"])],2))}}),[["__scopeId","data-v-a874255c"]]),BB={components:{UnnnicIcon:fe},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"?"fg-inverted":"fg-emphasized"}}};function xB(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createElementBlock("button",t.mergeProps({class:["button-icon",a.size,a.type]},e.$attrs),[t.createVNode(l,{icon:a.icon,scheme:s.iconScheme,size:"ant"},null,8,["icon","scheme"])],16)}const Cd=z(BB,[["render",xB],["__scopeId","data-v-07258e26"]]),Ed=e=>{const{label:n,children:a}=e;if(!!!n.trim())throw new Error('Each item in "items" must have "label".');return a&&Array.isArray(a)&&a.forEach(Ed),!0},vB=e=>{if(!(e!=null&&e[0]))throw new Error("Items property cannot be an empty array.");return e.forEach(Ed),!0},SB=["title"],jB={key:0,class:"unnnic-sidebar-item-children"},qB=["onClick"],IB=["title"],nl=z(Object.assign({name:"UnnnicSidebarItem"},{props:{item:{type:Object,required:!0,validator:Ed},active:{type:Object,default:()=>({item:!1,childIndex:null})},autoNavigateFirstChild:{type:Boolean,default:!1}},emits:["navigate"],setup(e,{emit:n}){const a=e;t.onMounted(()=>{const{childIndex:g,item:h}=a.active;typeof g=="number"&&g>=0&&h&&s()});const i=t.computed(()=>{var g;return!!((g=a.item.children)!=null&&g.length)}),r=t.ref(!1),s=()=>{r.value=!r.value,r.value&&a.autoNavigateFirstChild&&_("navigate",{item:a.item,child:a.item.children[0]})},l=g=>{const{item:h,childIndex:F}=a.active;return typeof F!="number"?h:h&&F===g},d=()=>{i.value?s():c()},c=()=>{a.active.item||_("navigate",{item:a.item,child:null})},_=n;return(g,h)=>{var F;return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("section",{"data-testid":"sidebar-item",class:t.normalizeClass({"unnnic-sidebar-item":!0,active:e.active.item}),onClick:t.withModifiers(d,["stop"])},[e.item.icon?(t.openBlock(),t.createBlock(fe,{key:0,class:"unnnic-sidebar-item__icon",icon:e.item.icon,size:"ant",scheme:e.active.item?"fg-accent":"fg-base","data-testid":"item-icon"},null,8,["icon","scheme"])):t.createCommentVNode("",!0),t.createElementVNode("p",{class:t.normalizeClass({"unnnic-sidebar-item__label":!0,active:e.active.item}),title:e.item.label},t.toDisplayString(e.item.label),11,SB),(F=e.item.children)!=null&&F.length?(t.openBlock(),t.createBlock(fe,{key:1,class:"unnnic-sidebar-item__arrow",icon:r.value?"keyboard_arrow_up":"keyboard_arrow_down",size:"ant",scheme:"fg-base","data-testid":"arrow-icon"},null,8,["icon"])):t.createCommentVNode("",!0)],2),t.createVNode(t.Transition,{name:"slide-fade"},{default:t.withCtx(()=>[r.value?(t.openBlock(),t.createElementBlock("ul",jB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.item.children,(p,y)=>(t.openBlock(),t.createElementBlock("li",{key:p,class:t.normalizeClass({"unnnic-sidebar-item-child":!0,active:l(y)}),"data-testid":"sidebar-item-child",onClick:t.withModifiers(w=>!l(y)&&_("navigate",{item:e.item,child:p}),["stop"])},[p.icon?(t.openBlock(),t.createBlock(fe,{key:0,class:"unnnic-sidebar-item-child__icon",icon:p.icon,size:"ant",scheme:l(y)?"fg-accent":"fg-base"},null,8,["icon","scheme"])):t.createCommentVNode("",!0),t.createElementVNode("p",{class:t.normalizeClass({"unnnic-sidebar-item-child__label":!0,active:l(y)}),title:p.label},t.toDisplayString(p.label),11,IB)],10,qB))),128))])):t.createCommentVNode("",!0)]),_:1})],64)}}}),[["__scopeId","data-v-6c66c728"]]),NB={class:"unnnic-sidebar-items"},Ad=z(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 n=/^\d+(\.\d+)?px$/,a=/^\d+(\.\d+)?%$/;return n.test(e)||a.test(e)}},items:{type:Array,required:!0,validator:vB},active:{type:Object,default:()=>({itemIndex:null,childIndex:null})},autoNavigateFirstChild:{type:Boolean,default:!1}},emits:["navigate"],setup(e,{emit:n}){t.useCssVars(s=>({"4c47a8e2":a.width}));const a=e,i=n,r=({item:s,child:l})=>{i("navigate",{item:s,child:l})};return(s,l)=>(t.openBlock(),t.createElementBlock("nav",{class:t.normalizeClass(["unnnic-sidebar",`unnnic-sidebar--${e.position}`])},[t.renderSlot(s.$slots,"top",{class:"unnnic-sidebar-top"},void 0,!0),t.createElementVNode("ul",NB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(d,c)=>(t.openBlock(),t.createElementBlock("li",{key:d},[t.createVNode(nl,{item:d,active:{item:e.active.itemIndex===c,childIndex:e.active.childIndex},autoNavigateFirstChild:e.autoNavigateFirstChild,"data-testid":"sidebar-item",onNavigate:l[0]||(l[0]=_=>r(_))},null,8,["item","active","autoNavigateFirstChild"])]))),128))]),t.renderSlot(s.$slots,"bottom",{class:"unnnic-sidebar-bottom"},void 0,!0)],2))}}),[["__scopeId","data-v-df7cccc8"]]),TB={class:"relative w-full overflow-auto"},OB=z(t.defineComponent({__name:"Table",props:{class:{}},setup(e){const n=e;return(a,i)=>(t.openBlock(),t.createElementBlock("div",TB,[t.createElementVNode("table",{class:t.normalizeClass(t.unref(Et)("unnnic-table",n.class))},[t.renderSlot(a.$slots,"default",{},void 0,!0)],2)]))}}),[["__scopeId","data-v-4a4bf08c"]]),Bd=t.defineComponent({__name:"TableBody",props:{class:{}},setup(e){const n=e;return(a,i)=>(t.openBlock(),t.createElementBlock("tbody",{class:t.normalizeClass(t.unref(Et)(n.class))},[t.renderSlot(a.$slots,"default")],2))}}),xd=z(t.defineComponent({__name:"TableCell",props:{class:{}},setup(e){const n=e;return(a,i)=>(t.openBlock(),t.createElementBlock("td",{class:t.normalizeClass(t.unref(Et)("unnnic-table-cell",n.class))},[t.renderSlot(a.$slots,"default",{},void 0,!0)],2))}}),[["__scopeId","data-v-145f18ba"]]),vd=z(t.defineComponent({__name:"TableHead",props:{class:{}},setup(e){const n=e;return(a,i)=>(t.openBlock(),t.createElementBlock("th",{class:t.normalizeClass(t.unref(Et)("unnnic-table-head",n.class))},[t.renderSlot(a.$slots,"default",{},void 0,!0)],2))}}),[["__scopeId","data-v-09877208"]]),Sd=z(t.defineComponent({__name:"TableHeader",props:{class:{}},setup(e){const n=e;return(a,i)=>(t.openBlock(),t.createElementBlock("thead",{class:t.normalizeClass(t.unref(Et)("unnnic-table-header",n.class))},[t.renderSlot(a.$slots,"default",{},void 0,!0)],2))}}),[["__scopeId","data-v-363df9eb"]]),MB=["tabindex"],PB=z(t.defineComponent({__name:"TableRow",props:{class:{}},setup(e){const n=e,a=t.useAttrs(),i=t.computed(()=>!!a.onClick);return(r,s)=>(t.openBlock(),t.createElementBlock("tr",{tabindex:i.value?0:void 0,class:t.normalizeClass(t.unref(Et)("unnnic-table-row","transition-colors data-[state=selected]:bg-muted",i.value&&"cursor-pointer",n.class)),onKeydown:[s[0]||(s[0]=t.withKeys(l=>i.value&&r.$emit("click",l),["enter"])),s[1]||(s[1]=t.withKeys(t.withModifiers(l=>i.value&&r.$emit("click",l),["prevent"]),["space"]))]},[t.renderSlot(r.$slots,"default",{},void 0,!0)],42,MB))}}),[["__scopeId","data-v-cf250062"]]),LB={name:"UnnnicTable",components:{UiTable:OB},provide(){return{unnnicTableVersion:t.computed(()=>this.version)}},props:{items:{type:Array},version:{type:String,default:"1"}},data(){return{value:!1}},computed:{}},zB={key:1,class:"unnnic-table"},VB={class:"header"},RB={class:"scroll"};function UB(e,n,a,i,r,s){const l=t.resolveComponent("UiTable");return a.version==="2"?(t.openBlock(),t.createBlock(l,{key:0},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3})):(t.openBlock(),t.createElementBlock("div",zB,[t.createElementVNode("div",VB,[t.renderSlot(e.$slots,"header",{},void 0,!0)]),n[0]||(n[0]=t.createElementVNode("div",null,[t.createElementVNode("div",{class:"item-spacer"})],-1)),t.createElementVNode("div",RB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.items,(d,c)=>(t.openBlock(),t.createElementBlock("div",{key:c,class:"item"},[t.renderSlot(e.$slots,"item",{item:d},void 0,!0)]))),128))])]))}const jd=z(LB,[["render",UB],["__scopeId","data-v-c57f8bbb"]]),HB={name:"UnnnicTableRow",components:{UiTableRow:PB},inheritAttrs:!1,props:{headers:{type:Array}},setup(){const e=t.inject("unnnicTableVersion","1");return{isVersion2:t.computed(()=>t.unref(e)==="2")}}},YB={class:"break-text"};function GB(e,n,a,i,r,s){const l=t.resolveComponent("UiTableRow");return i.isVersion2?(t.openBlock(),t.createBlock(l,t.normalizeProps(t.mergeProps({key:0},e.$attrs)),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3},16)):(t.openBlock(),t.createElementBlock("div",t.mergeProps({key:1,class:"table-row"},e.$attrs),[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.headers,(d,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:d.id},[t.createElementVNode("div",{class:"col",style:t.normalizeStyle({width:d.width,flex:d.flex,minWidth:0})},[t.renderSlot(e.$slots,d.id,{},()=>[t.createElementVNode("div",YB,t.toDisplayString(d.text),1)],!0)],4),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(["divider",{condensed:d.condensed}])},null,2),[[t.vShow,c+1!==a.headers.length]])],64))),128))],16))}const qd=z(HB,[["render",GB],["__scopeId","data-v-b5deec9c"]]);function Wm(e){return t.getCurrentScope()?(t.onScopeDispose(e),!0):!1}function Do(e){return typeof e=="function"?e():t.unref(e)}const Qm=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const WB=Object.prototype.toString,QB=e=>WB.call(e)==="[object Object]",Co=()=>{},Id=XB();function XB(){var e,n;return Qm&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((n=window==null?void 0:window.navigator)==null?void 0:n.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}const Xm={mounted:"mounted",unmounted:"unmounted"};function KB(...e){if(e.length!==1)return t.toRef(...e);const n=e[0];return typeof n=="function"?t.readonly(t.customRef(()=>({get:n,set:Co}))):t.ref(n)}function Eo(e){var n;const a=Do(e);return(n=a==null?void 0:a.$el)!=null?n:a}const Km=Qm?window:void 0;function il(...e){let n,a,i,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([a,i,r]=e,n=Km):[n,a,i,r]=e,!n)return Co;Array.isArray(a)||(a=[a]),Array.isArray(i)||(i=[i]);const s=[],l=()=>{s.forEach(g=>g()),s.length=0},d=(g,h,F,p)=>(g.addEventListener(h,F,p),()=>g.removeEventListener(h,F,p)),c=t.watch(()=>[Eo(n),Do(r)],([g,h])=>{if(l(),!g)return;const F=QB(h)?{...h}:h;s.push(...a.flatMap(p=>i.map(y=>d(g,p,y,F))))},{immediate:!0,flush:"post"}),_=()=>{c(),l()};return Wm(_),_}let Zm=!1;function Jm(e,n,a={}){const{window:i=Km,ignore:r=[],capture:s=!0,detectIframe:l=!1}=a;if(!i)return Co;Id&&!Zm&&(Zm=!0,Array.from(i.document.body.children).forEach(F=>F.addEventListener("click",Co)),i.document.documentElement.addEventListener("click",Co));let d=!0;const c=F=>r.some(p=>{if(typeof p=="string")return Array.from(i.document.querySelectorAll(p)).some(y=>y===F.target||F.composedPath().includes(y));{const y=Eo(p);return y&&(F.target===y||F.composedPath().includes(y))}}),g=[il(i,"click",F=>{const p=Eo(e);if(!(!p||p===F.target||F.composedPath().includes(p))){if(F.detail===0&&(d=!c(F)),!d){d=!0;return}n(F)}},{passive:!0,capture:s}),il(i,"pointerdown",F=>{const p=Eo(e);d=!c(F)&&!!(p&&!F.composedPath().includes(p))},{passive:!0}),l&&il(i,"blur",F=>{setTimeout(()=>{var p;const y=Eo(e);((p=i.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!(y!=null&&y.contains(i.document.activeElement))&&n(F)},0)})].filter(Boolean);return()=>g.forEach(F=>F())}const rl={[Xm.mounted](e,n){const a=!n.modifiers.bubble;if(typeof n.value=="function")e.__onClickOutside_stop=Jm(e,n.value,{capture:a});else{const[i,r]=n.value;e.__onClickOutside_stop=Jm(e,i,Object.assign({capture:a},r))}},[Xm.unmounted](e){e.__onClickOutside_stop()}};function Nd(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function $m(e){const n=window.getComputedStyle(e);if(n.overflowX==="scroll"||n.overflowY==="scroll"||n.overflowX==="auto"&&e.clientWidth<e.scrollWidth||n.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const a=e.parentNode;return!a||a.tagName==="BODY"?!1:$m(a)}}function ZB(e){const n=e||window.event,a=n.target;return $m(a)?!1:n.touches.length>1?!0:(n.preventDefault&&n.preventDefault(),!1)}const Td=new WeakMap;function JB(e,n=!1){const a=t.ref(n);let i=null,r="";t.watch(KB(e),d=>{const c=Nd(Do(d));if(c){const _=c;if(Td.get(_)||Td.set(_,_.style.overflow),_.style.overflow!=="hidden"&&(r=_.style.overflow),_.style.overflow==="hidden")return a.value=!0;if(a.value)return _.style.overflow="hidden"}},{immediate:!0});const s=()=>{const d=Nd(Do(e));!d||a.value||(Id&&(i=il(d,"touchmove",c=>{ZB(c)},{passive:!1})),d.style.overflow="hidden",a.value=!0)},l=()=>{const d=Nd(Do(e));!d||!a.value||(Id&&(i==null||i()),d.style.overflow=r,Td.delete(d),a.value=!1)};return Wm(l),t.computed({get(){return a.value},set(d){d?s():l()}})}function $B(){let e=!1;const n=t.ref(!1);return(a,i)=>{if(n.value=i.value,e)return;e=!0;const r=JB(a,i.value);t.watch(n,s=>r.value=s)}}$B();const ex={name:"UnnnicDropdown",directives:{onClickOutside:rl},props:{useOpenProp:{type:Boolean,default:!1},open:{type:Boolean,default:!1},forceOpen:{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.forceOpen||(this.useOpenProp?this.$emit("update:open",!this.open):this.active=!this.active)},onClickOutside(){if(!this.forceOpen){if(this.useOpenProp&&this.open){this.$emit("update:open",!1);return}this.active&&(this.active=!1)}}}},tx={class:"unnnic-dropdown__trigger"};function ax(e,n,a,i,r,s){const l=t.resolveDirective("on-click-outside");return t.openBlock(),t.createElementBlock("div",{class:"unnnic-dropdown",onClick:n[0]||(n[0]=t.withModifiers((...d)=>s.onClickTrigger&&s.onClickTrigger(...d),["stop"]))},[t.createElementVNode("div",tx,[t.renderSlot(e.$slots,"trigger",{},void 0,!0),(a.useOpenProp?a.open:r.active)?t.withDirectives((t.openBlock(),t.createElementBlock("div",{key:0,"data-testid":"dropdown-content",class:t.normalizeClass(["unnnic-dropdown__content",a.useOpenProp?a.open:r.active?"":"unnnic-dropdown__content--hidden",`unnnic-dropdown__content__position-${a.position}`])},[t.renderSlot(e.$slots,"default",{},void 0,!0)],2)),[[l,s.onClickOutside]]):t.createCommentVNode("",!0)])])}const Ao=z(ex,[["render",ax],["__scopeId","data-v-2f5344c2"]]),nx={name:"UnnnicDropdownItem"},ix={class:"unnnic-dropdown-item unnnic--clickable","data-testid":"dropdown-item"};function rx(e,n,a,i,r,s){return t.openBlock(),t.createElementBlock("a",ix,[t.renderSlot(e.$slots,"default")])}const ol=z(nx,[["render",rx]]),ox={components:{UnnnicIcon:fe},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:"fg-info"},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 sx(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["unnnic-avatar-icon",a.scheme,a.size,{disabled:!a.enabled},a.filled,{opacity:!a.opacity}])},[t.createVNode(l,{icon:a.icon,scheme:a.enabled?a.scheme:"fg-base",size:s.iconSize,filled:a.filled},null,8,["icon","scheme","size","filled"])],2)}const Ti=z(ox,[["render",sx],["__scopeId","data-v-0522f602"]]),lx={name:"UnnnicCard",components:{UnnnicIcon:fe,UnnnicAvatarIcon:Ti},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"}}},ux={class:"unnnic-card-dash"},dx={class:"header"},cx={class:"label"},fx={class:"content"},_x={class:"value"},gx={class:"label"};function hx(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicAvatarIcon"),d=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createElementBlock("div",ux,[t.createElementVNode("div",dx,[t.createVNode(l,{size:"sm",scheme:a.scheme,icon:a.icon},null,8,["scheme","icon"]),t.createElementVNode("div",cx,t.toDisplayString(a.title),1)]),t.createElementVNode("div",fx,[t.createElementVNode("div",_x,t.toDisplayString(a.value),1),a.percent?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["percent",`unnnic-card-scheme--feedback-${s.color}`])},[t.createVNode(d,{icon:`graph-stats-${a.percent>=0?"ascend":"descend"}-2`,scheme:`feedback-${s.color}`,size:"sm",class:"icon"},null,8,["icon","scheme"]),t.createElementVNode("div",gx,t.toDisplayString(a.percent>=0?`+${a.percent}%`:`${a.percent}%`),1)],2)):t.createCommentVNode("",!0)])])}const mx=z(lx,[["render",hx],["__scopeId","data-v-32f9b938"]]),Fx={name:"UnnnicCard",components:{ToolTip:Xt,UnnnicIcon:fe},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}}},px={class:"unnnic-card-title"},bx={class:"title"};function yx(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicIcon"),d=t.resolveComponent("ToolTip");return t.openBlock(),t.createElementBlock("div",px,[t.createElementVNode("div",{class:t.normalizeClass(["avatar-icon",`unnnic-card-scheme--${a.scheme}`])},[t.createVNode(l,{icon:a.icon,scheme:a.scheme,size:"md"},null,8,["icon","scheme"])],2),t.createElementVNode("div",bx,t.toDisplayString(a.title),1),a.hasInformationIcon?(t.openBlock(),t.createBlock(d,{key:0,class:"information",side:a.infoPosition,text:a.info,enabled:a.enabled},{default:t.withCtx(()=>[t.createVNode(l,{icon:"information-circle-4",class:"unnnic-card-title__content_info",size:"sm",scheme:"fg-muted"})]),_:1},8,["side","text","enabled"])):t.createCommentVNode("",!0)])}const e2=z(Fx,[["render",yx],["__scopeId","data-v-ff5285fa"]]),kx={name:"UnnnicCard",components:{UnnnicIcon:fe},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}}},wx={class:"header"},Dx={class:"label"},Cx={class:"content"},Ex={class:"title-container"},Ax={class:"title"},Bx={class:"description"};function xx(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["unnnic-card-status",`unnnic-card-scheme--${a.scheme}--border`])},[t.createElementVNode("div",wx,[t.createVNode(l,{icon:a.icon,scheme:"fg-base",size:"md",class:"icon"},null,8,["icon"]),t.createElementVNode("div",Dx,t.toDisplayString(a.title),1)]),t.createElementVNode("div",Cx,[t.createElementVNode("div",Ex,[t.createVNode(l,{icon:"indicator",scheme:a.scheme,size:"sm"},null,8,["scheme"]),t.createElementVNode("div",Ax,t.toDisplayString(a.status),1)]),t.createElementVNode("div",Bx,t.toDisplayString(a.description),1)])],2)}const vx=z(kx,[["render",xx],["__scopeId","data-v-784b6871"]]),Sx={name:"UnnnicCard",components:{UnnnicAvatarIcon:Ti},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}}},jx={class:"icon"},qx={class:"content"},Ix={class:"title"},Nx={class:"description"};function Tx(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicAvatarIcon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass({"unnnic-card-account":!0,enabled:a.enabled})},[t.createElementVNode("div",jx,[t.createVNode(l,{size:"xs",scheme:a.scheme,icon:a.icon,enabled:a.enabled},null,8,["scheme","icon","enabled"])]),t.createElementVNode("div",qx,[t.createElementVNode("div",Ix,t.toDisplayString(a.title),1),t.createElementVNode("div",Nx,t.toDisplayString(a.description),1)])],2)}const Ox=z(Sx,[["render",Tx],["__scopeId","data-v-cd0328b9"]]),Mx={name:"UnnnicCard",props:{title:{type:String,default:null},description:{type:String,default:null},clickable:{type:Boolean,default:!1}}},Px={class:"unnnic-card-default__content"},Lx={class:"unnnic-card-default__title"},zx=["title"];function Vx(e,n,a,i,r,s){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass({"unnnic-card-default":!0,"unnnic-card-default__clickable":a.clickable})},[t.createElementVNode("div",Px,[t.createElementVNode("div",Lx,t.toDisplayString(a.title),1),t.createElementVNode("p",{class:"unnnic-card-default__description",title:a.description},t.toDisplayString(a.description),9,zx)])],2)}const Rx=z(Mx,[["render",Vx]]),Ux={name:"UnnnicCard",components:{UnnnicIcon:fe},props:{text:{type:String,default:null},icon:{type:String,default:null},clickable:{type:Boolean,default:!1}}},Hx={class:"unnnic-card-blank__content"},Yx={class:"unnnic-card-blank__content__text"};function Gx(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass({"unnnic-card-blank":!0,"unnnic-card-blank__clickable":a.clickable})},[t.createElementVNode("div",Hx,[t.createVNode(l,{icon:a.icon,scheme:"fg-base",class:"unnnic-card-blank__content__icon",size:"xl"},null,8,["icon"]),t.createElementVNode("div",Yx,t.toDisplayString(a.text),1)])],2)}const Wx=z(Ux,[["render",Gx]]),Qx={name:"UnnnicCard",components:{UnnnicIcon:fe},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}}},Xx={class:"unnnic-card-content__content"},Kx={class:"unnnic-card-content__content__title"},Zx={class:"unnnic-card-content__content__description"};function Jx(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass({"unnnic-card-content":!0,"unnnic-card-content--disabled":!a.enabled,"unnnic-card-content__clickable":a.clickable})},[t.createElementVNode("div",{class:t.normalizeClass(["unnnic-card-content__icon",a.enabled&&"unnnic-card-content__icon--disabled"])},[t.createVNode(l,{icon:a.icon,scheme:"fg-base",size:"sm"},null,8,["icon"])],2),t.createElementVNode("div",Xx,[t.createElementVNode("div",Kx,t.toDisplayString(a.title),1),t.createElementVNode("div",Zx,t.toDisplayString(a.description),1)])],2)}const $x=z(Qx,[["render",Jx]]),ev={name:"UnnnicCard",components:{UnnnicIcon:fe},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")}}},tv={class:t.normalizeClass(["unnnic-card-marketplace__icons"])},av=["src"],nv={class:"unnnic-card-marketplace__content"},iv={class:"unnnic-card-marketplace__content__title"},rv=["title"],ov={key:0,class:"unnnic-card-marketplace__content__rating"},sv={class:"unnnic-card-marketplace__content__rating__value"},lv={class:"unnnic-card-marketplace__content__rating__comments"};function uv(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass({"unnnic-card-marketplace":!0,"unnnic-card-marketplace__clickable":a.clickable,"unnnic-card-marketplace__add":a.typeAction==="add","unnnic-card-marketplace__config":a.typeAction==="config","unnnic-card-marketplace__edit":a.typeAction==="edit"}),onClick:n[0]||(n[0]=(...d)=>s.cardClick&&s.cardClick(...d))},[t.createElementVNode("div",tv,[t.createElementVNode("img",{class:"unnnic-card-marketplace__icons__app",src:a.iconSrc},null,8,av),t.renderSlot(e.$slots,"actions")]),t.createElementVNode("div",nv,[t.createElementVNode("div",iv,t.toDisplayString(a.title),1),t.createElementVNode("div",{class:"unnnic-card-marketplace__content__description",title:a.description},t.toDisplayString(a.description),9,rv),a.typeAction==="add"?(t.openBlock(),t.createElementBlock("div",ov,[t.createVNode(l,{class:"unnnic-card-marketplace__content__rating__star",scheme:"feedback-yellow",icon:"rating-star-1",size:"ant",filled:""}),t.createElementVNode("div",sv,t.toDisplayString(a.rating),1),t.createElementVNode("div",lv," ("+t.toDisplayString(a.comments)+") ",1)])):t.createCommentVNode("",!0)])],2)}const dv=z(ev,[["render",uv]]),cv={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"?e2:this.type==="dash"?mx:this.type==="status"?vx:this.type==="account"?Ox:this.type==="default"?Rx:this.type==="blank"?Wx:this.type==="content"?$x:this.type==="marketplace"?dv:e2}},methods:{openModal(){this.$emit("openModal")}}};function fv(e,n,a,i,r,s){return t.openBlock(),t.createBlock(t.resolveDynamicComponent(s.currentComponent),t.mergeProps({class:"unnnic-card-component"},e.$attrs,{title:a.title,text:a.text,info:a.info,icon:s.currentTypeIcon,iconSrc:a.iconSrc,rating:a.rating,comments:a.comments,typeAction:a.typeAction,buttonAction:a.buttonAction,value:a.value,percent:a.percent,invertedPercentage:a.invertedPercentage||null,status:a.status,description:a.description,infoPosition:a.infoPosition,enabled:a.enabled,scheme:a.scheme,clickable:a.clickable||null,hasInformationIcon:a.hasInformationIcon||null,onOpenModal:s.openModal}),t.createSlots({_:2},[t.renderList(e.$slots,(l,d)=>({name:d,fn:t.withCtx(()=>[t.renderSlot(e.$slots,d)])}))]),1040,["title","text","info","icon","iconSrc","rating","comments","typeAction","buttonAction","value","percent","invertedPercentage","status","description","infoPosition","enabled","scheme","clickable","hasInformationIcon","onOpenModal"])}const Od=z(cv,[["render",fv]]),Md={name:"UnnnicSimpleCard",components:{UnnnicToolTip:Xt,UnnnicIcon:fe},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"]},t2=()=>{t.useCssVars(e=>({"503b66d5":e.titleSize}))},a2=Md.setup;Md.setup=a2?(e,n)=>(t2(),a2(e,n)):t2;const _v={key:0,class:"unnnic-simple-card__header"},gv={class:"unnnic-simple-card-header-container"},hv={class:"unnnic-simple-card-header-container__title"},mv={key:0,class:"unnnic-simple-card__header-slot"},Fv=["title"],pv={key:2,class:"unnnic-simple-card__footer"};function bv(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicIcon"),d=t.resolveComponent("UnnnicToolTip");return t.openBlock(),t.createElementBlock("section",{class:t.normalizeClass({"unnnic-simple-card":!0,"unnnic-simple-card--clickable":a.clickable}),onClick:n[0]||(n[0]=t.withModifiers(c=>a.clickable&&e.$emit("click"),["stop"]))},[a.title||e.$slots.headerSlot?(t.openBlock(),t.createElementBlock("section",_v,[t.createElementVNode("section",gv,[t.createElementVNode("h1",hv,t.toDisplayString(a.title),1),a.titleTooltip?(t.openBlock(),t.createBlock(d,{key:0,text:a.titleTooltip,enabled:"",class:"unnnic-simple-card-header-container__title-tooltip"},{default:t.withCtx(()=>[t.createVNode(l,{icon:"info",size:"nano",scheme:"fg-base"})]),_:1},8,["text"])):t.createCommentVNode("",!0)]),e.$slots.headerSlot?(t.openBlock(),t.createElementBlock("section",mv,[t.renderSlot(e.$slots,"headerSlot",{},void 0,!0)])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),a.text?(t.openBlock(),t.createElementBlock("p",{key:1,class:"unnnic-simple-card__text",title:a.text},t.toDisplayString(a.text),9,Fv)):t.createCommentVNode("",!0),e.$slots.footer?(t.openBlock(),t.createElementBlock("section",pv,[t.renderSlot(e.$slots,"footer",{},void 0,!0)])):t.createCommentVNode("",!0)],2)}const Pd=z(Md,[["render",bv],["__scopeId","data-v-29a7f9ca"]]),$a={props:{locale:{type:String},translations:{type:Object}},methods:{i18n(...e){const[n,a]=e,i=Object.keys(Ni.global.messages);let{locale:r}=this;const s=Kt.get(Ni,"global.locale")==="en-us"?"en":Kt.get(Ni,"global.locale");r=i.includes(r)?r:s,r=r==null?void 0:r.toLowerCase();let l=Kt.get(this.translations,`${n}.${r}`,Kt.get(this.translations,n));if(l||(l=Kt.get(Kt.get(this.defaultTranslations,n),r,a)),l!=null&&l.includes("|")&&typeof e[1]=="number"){const c=e[1],_=l.split("|");_.length===3?l=_[c]||_[2]:_.length===2&&(l=c===1?_[0]:_[1])}let d={};return Object.values(e).slice(1).forEach(c=>{!(c instanceof Array)&&c instanceof Object&&(d=c)}),Object.keys(d).forEach(c=>{l=l==null?void 0:l.replaceAll(new RegExp(`{ *${c} *}`,"g"),d[c])}),l}}},yv={class:"chip__text"},sl=z(t.defineComponent({__name:"Chip",props:{isSelected:{type:Boolean},text:{},count:{},type:{},isClickable:{type:Boolean},onClick:{type:Function}},emits:["click"],setup(e,{emit:n}){const a=e,i=n,r=c=>{i("click",c)},s=t.computed(()=>!a.isSelected),l=t.computed(()=>a.isSelected?"chip__count--is-selected":""),d=t.computed(()=>a.isSelected?"chip--is-selected":"");return(c,_)=>(t.openBlock(),t.createElementBlock("section",{class:t.normalizeClass(["chip",d.value,{"chip--border":s.value,"chip--is-clickable":c.isClickable}]),onClick:r},[t.createElementVNode("p",yv,t.toDisplayString(c.text),1),c.count?(t.openBlock(),t.createElementBlock("p",{key:0,class:t.normalizeClass(["chip__count",l.value])},t.toDisplayString(c.count),3)):t.createCommentVNode("",!0),t.renderSlot(c.$slots,"right",{},void 0,!0),c.type==="multiple"?(t.openBlock(),t.createBlock(fe,{key:1,icon:c.isSelected?"close":"add",scheme:"fg-emphasized",class:"chip__icon",size:"sm"},null,8,["icon"])):t.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-97d74d2c"]]),kv={key:0,class:"unnnic-tag__icon"},wv={class:t.normalizeClass("unnnic-tag__label")},Dv=z(t.defineComponent({__name:"DefaultTag",props:{text:{default:void 0},size:{default:"medium"},scheme:{default:"aux-purple"},leftIcon:{default:void 0}},setup(e){const n=e,a=[{keywords:["green"],color:"var(--unnnic-color-bg-green-plain)"},{keywords:["blue"],color:"var(--unnnic-color-bg-blue-plain)"},{keywords:["purple"],color:"var(--unnnic-color-bg-purple-plain)"},{keywords:["red","pink"],color:"var(--unnnic-color-bg-red-plain)"},{keywords:["orange"],color:"var(--unnnic-color-bg-orange-plain)"},{keywords:["yellow"],color:"var(--unnnic-color-bg-yellow-plain)"},{keywords:["gray"],color:"var(--unnnic-color-bg-muted)"},{keywords:["teal","weni"],color:"var(--unnnic-color-bg-teal-plain)"}],i=t.computed(()=>{const r=n.scheme.toLowerCase(),s=a.find(({keywords:l})=>l.some(d=>r.includes(d)));return(s==null?void 0:s.color)??"var(--unnnic-color-bg-muted)"});return(r,s)=>(t.openBlock(),t.createElementBlock("section",{class:t.normalizeClass(`unnnic-tag unnnic-tag--${r.size}`),style:t.normalizeStyle({backgroundColor:i.value})},[r.leftIcon?(t.openBlock(),t.createElementBlock("section",kv,[t.createVNode(fe,{icon:r.leftIcon,scheme:"fg-emphasized",size:"sm"},null,8,["icon"])])):t.createCommentVNode("",!0),t.createElementVNode("p",wv,t.toDisplayString(r.text),1)],6))}}),[["__scopeId","data-v-299f2efd"]]),Ar=t.defineComponent({name:"UnnnicTag",__name:"Tag",props:{type:{default:"default"},size:{default:"medium"},text:{default:void 0},disabled:{type:Boolean,default:!1},scheme:{default:"aux-purple"},leftIcon:{default:""},hasCloseIcon:{type:Boolean,default:!1}},emits:["close","click"],setup(e){return(n,a)=>n.type==="brand"||n.hasCloseIcon?(t.openBlock(),t.createBlock(sl,{key:0,text:n.text,type:"multiple",isSelected:n.disabled||n.hasCloseIcon,isClickable:"",onClick:a[0]||(a[0]=i=>n.hasCloseIcon?n.$emit("close"):n.$emit("click"))},null,8,["text","isSelected"])):(t.openBlock(),t.createBlock(Dv,{key:1,size:n.type==="next"?"small":n.size,text:n.text,scheme:n.scheme,leftIcon:n.leftIcon},null,8,["size","text","scheme","leftIcon"]))}}),Cv={components:{UnnnicTag:Ar},mixins:[$a],props:{oldVersion:Boolean,name:String,description:String,plan:String,actionText:String},data(){return{isOptionsOpen:!1}}},Ev={class:"name"},Av={class:"description"},Bv={key:1};function xv(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicTag"),d=t.resolveComponent("UnnnicIcon"),c=t.resolveComponent("UnnnicDropdown");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["unnnic-connect-card-company",{"unnnic-connect-card-company--old-version":a.oldVersion}]),onClick:n[3]||(n[3]=_=>e.$emit("enter"))},[t.createElementVNode("div",null,[t.createElementVNode("h2",Ev,t.toDisplayString(a.name),1),t.createElementVNode("p",Av,t.toDisplayString(a.description),1),a.plan?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["tag",a.plan])},t.toDisplayString(e.i18n(`plans.${a.plan}`)),3)):t.createCommentVNode("",!0)]),a.actionText?(t.openBlock(),t.createBlock(l,{key:0,class:"action",clickable:"",text:a.actionText,scheme:"aux-blue",onClick:n[0]||(n[0]=_=>e.$emit("action"))},null,8,["text"])):t.createCommentVNode("",!0),e.$slots.options?(t.openBlock(),t.createElementBlock("div",Bv,[t.createVNode(c,{open:r.isOptionsOpen,"onUpdate:open":n[1]||(n[1]=_=>r.isOptionsOpen=_),class:"unnnic-dropdown",onClick:n[2]||(n[2]=t.withModifiers(()=>{},["prevent"]))},{trigger:t.withCtx(()=>[t.createVNode(d,{class:"menu-icon",icon:"navigation-menu-vertical-1",size:"sm",scheme:"fg-base"})]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"options",{},void 0,!0)]),_:3},8,["open"])])):t.createCommentVNode("",!0)],2)}const Ld=z(Cv,[["render",xv],["__scopeId","data-v-dac06e20"]]),vv={components:{UnnnicIcon:fe},props:{title:{type:String},description:{type:String},score:{type:String},info:{type:String},checked:{type:Boolean,default:!1}}},Sv={class:"card"},jv={class:"header"},qv={class:"title"},Iv={key:0,class:"check"},Nv={class:"description"},Tv={key:0,class:"footer"},Ov={class:"evaluation"},Mv={class:"info"};function Pv(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createElementBlock("div",Sv,[t.createElementVNode("div",jv,[t.createElementVNode("div",qv,t.toDisplayString(a.title),1),a.checked?(t.openBlock(),t.createElementBlock("div",Iv,[t.createVNode(l,{size:"md",icon:"check-circle-1-1-1",scheme:"feedback-green"})])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Nv,t.toDisplayString(a.description),1),a.score||a.info?(t.openBlock(),t.createElementBlock("div",Tv,[t.createElementVNode("div",Ov,[a.score?(t.openBlock(),t.createBlock(l,{key:0,size:"sm",icon:"rating-star-1",scheme:"feedback-yellow"})):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(a.score)+" ",1),t.createElementVNode("span",Mv,t.toDisplayString(a.info),1)])])):t.createCommentVNode("",!0)])}const zd=z(vv,[["render",Pv],["__scopeId","data-v-0ebd61ad"]]),Lv={model:{event:"change"},props:{modelValue:{type:[Boolean,String],default:!1,validator(e){return[!0,!1,"less"].includes(e)}},disabled:{type:Boolean,default:!1},label:{type:String,default:""},helper:{type:String,default:""},textRight:{type:String,default:""}},emits:["change","update:model-value"],computed:{valueName(){return this.modelValue===!0?"checked":this.modelValue===!1?"default":"less"}},methods:{pick:Kt.pick,click(){const e=["checked","less"].includes(this.valueName);this.$emit("change",!e),this.$emit("update:model-value",!e)}}},zv={class:"unnnic-checkbox"},Vv=["disabled","checked"],Rv={key:0,class:"unnnic-checkbox__helper"};function Uv(e,n,a,i,r,s){return t.openBlock(),t.createElementBlock("section",zv,[t.createElementVNode("label",{class:t.normalizeClass(["unnnic-checkbox__input-wrapper",{"unnnic-checkbox__input-wrapper--disabled":a.disabled}])},[t.createElementVNode("input",t.mergeProps({class:["unnnic-checkbox__input",{"unnnic-checkbox__input--less":a.modelValue==="less"}],type:"checkbox",disabled:a.disabled,checked:a.modelValue==="less"||a.modelValue},s.pick(e.$attrs,["id","name"]),{onChange:n[0]||(n[0]=(...l)=>s.click&&s.click(...l))}),null,16,Vv),a.label||a.textRight?(t.openBlock(),t.createElementBlock("p",{key:0,class:t.normalizeClass(["unnnic-checkbox__label",{"unnnic-checkbox__label--disabled":a.disabled}]),"data-testid":"checkbox-text-right"},t.toDisplayString(a.label||a.textRight),3)):t.createCommentVNode("",!0)],2),a.helper?(t.openBlock(),t.createElementBlock("p",Rv,t.toDisplayString(a.helper),1)):t.createCommentVNode("",!0)])}const Br=z(Lv,[["render",Uv],["__scopeId","data-v-14c8c277"]]),Hv={components:{UnnnicIcon:fe,UnnnicCheckbox:Br,UnnnicAvatarIcon:Ti,UnnnicDropdown:Ao},props:{modelValue:Boolean,title:String,description:String,image:String,data:{type:Array,default(){return[]}}}},Yv={class:"header"},Gv={class:"content"},Wv={key:0,class:"u font secondary body-lg bold color-fg-emphasized"},Qv={key:1,class:"u font secondary body-md color-fg-base"},Xv=["src"],Kv={key:0,class:"details"},Zv={class:"u font secondary body-gt color-fg-base"},Jv={class:"value-container"},$v={class:"u font secondary body-gt color-fg-emphasized"};function eS(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicCheckbox"),d=t.resolveComponent("UnnnicIcon"),c=t.resolveComponent("UnnnicDropdown"),_=t.resolveComponent("UnnnicAvatarIcon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["unnnic-card-image",{checked:a.modelValue}])},[t.createElementVNode("div",Yv,[t.createElementVNode("div",Gv,[a.title?(t.openBlock(),t.createElementBlock("div",Wv,t.toDisplayString(a.title),1)):t.createCommentVNode("",!0),a.description?(t.openBlock(),t.createElementBlock("div",Qv,t.toDisplayString(a.description),1)):t.createCommentVNode("",!0)]),t.createVNode(l,{modelValue:a.modelValue,onChange:n[0]||(n[0]=g=>e.$emit("update:model-value",g))},null,8,["modelValue"]),e.$slots.actions?(t.openBlock(),t.createBlock(c,{key:0,position:"bottom-left"},{trigger:t.withCtx(()=>[t.createVNode(d,{icon:"navigation-menu-vertical-1",size:"sm",scheme:"fg-muted",clickable:""})]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"actions",{},void 0,!0)]),_:3})):t.createCommentVNode("",!0)]),t.createElementVNode("img",{class:"image",src:a.image},null,8,Xv),a.data.length?(t.openBlock(),t.createElementBlock("div",Kv,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.data,(g,h)=>(t.openBlock(),t.createElementBlock("div",{key:h,class:"data"},[t.createElementVNode("div",Zv,t.toDisplayString(g.name),1),t.createElementVNode("div",Jv,[t.createVNode(_,{icon:g.icon,size:"xs",scheme:g.scheme},null,8,["icon","scheme"]),t.createElementVNode("div",$v,t.toDisplayString(g.value),1)])]))),128))])):t.createCommentVNode("",!0)],2)}const Vd=z(Hv,[["render",eS],["__scopeId","data-v-d331e392"]]),tS={components:{UnnnicIcon:fe,UnnnicDropdown:Ao,UnnnicDropdownItem:ol},mixins:[$a],props:{name:{type:String,default:""},description:{type:String,default:""},status:{type:String,required:!0},canUpdateStatus:{type:Boolean,default:!1},clickable:{type:Boolean,default:!1}},emits:["click","changeProjectStatus"],data(){return{openDropdown:!1,defaultTranslations:{IN_TEST:{"pt-br":"Em teste",en:"In test",es:"En prueba"},ACTIVE:{"pt-br":"Ativo",en:"Active",es:"Activo"},INACTIVE:{"pt-br":"Inativo",en:"Inactive",es:"Inactivo"}}}},computed:{showActions(){var n,a;const e=(a=(n=this.$slots).actions)==null?void 0:a.call(n);return!!(e!=null&&e.length)},colorStatus(){return{ACTIVE:"fg-success",INACTIVE:"fg-base",IN_TEST:"fg-warning"}[this.status]},statusOptions(){return["ACTIVE","INACTIVE","IN_TEST"].filter(e=>e!==this.status)}},methods:{emitClick(e){this.clickable&&this.$emit("click",{button:e==null?void 0:e.button})},handlerDropdownOpen(){this.canUpdateStatus&&(this.openDropdown=!this.openDropdown)},handlerClickDropdownItem(e){this.$emit("changeProjectStatus",e)}}},aS={class:"unnnic-card-project__header"},nS=["title"],iS={class:"unnnic-card-project__description"},rS=["title"],oS={class:"unnnic-card-project__bottom"},sS={class:"unnnic-card-project__status-options-container"};function lS(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicIcon"),d=t.resolveComponent("UnnnicDropdown"),c=t.resolveComponent("UnnnicDropdownItem");return t.openBlock(),t.createElementBlock("section",{class:t.normalizeClass({"unnnic-card-project":!0,"unnnic-card-project--clickable":a.clickable,"unnnic-card-project--inactive":a.status==="INACTIVE"}),"data-testid":"unnnic-card-project",onClick:[n[2]||(n[2]=t.withModifiers((..._)=>s.emitClick&&s.emitClick(..._),["left","exact"])),n[4]||(n[4]=t.withModifiers(_=>s.emitClick({button:1}),["ctrl"]))],onMouseup:n[3]||(n[3]=t.withModifiers((..._)=>s.emitClick&&s.emitClick(..._),["middle","exact","prevent"]))},[t.createElementVNode("section",aS,[t.createElementVNode("h1",{title:a.name,class:t.normalizeClass({"unnnic-card-project__title":!0,"unnnic-card-project__title--inactive":a.status==="INACTIVE"}),"data-testid":"card-project-title"},t.toDisplayString(a.name),11,nS),s.showActions?(t.openBlock(),t.createBlock(d,{key:0,position:"bottom-left","data-testid":"dropdown-actions"},{trigger:t.withCtx(()=>[t.createVNode(l,{size:"sm",icon:"navigation-menu-vertical-1",clickable:"",scheme:"fg-muted"})]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"actions",{},void 0,!0)]),_:3})):t.createCommentVNode("",!0)]),t.createElementVNode("section",iS,[t.createElementVNode("p",{title:a.description,class:t.normalizeClass({"unnnic-card-project__description":!0,"unnnic-card-project__description--inactive":a.status==="INACTIVE"})},t.toDisplayString(a.description),11,rS)]),t.createElementVNode("section",oS,[t.createElementVNode("section",{class:t.normalizeClass(["unnnic-card-project__status-chip",`unnnic-card-project__status-chip--${a.status}`]),"data-testid":"project-status-chip",onClick:n[1]||(n[1]=t.withModifiers(_=>s.handlerDropdownOpen(),["stop"]))},[t.createElementVNode("p",null,t.toDisplayString(e.i18n(a.status)),1),a.canUpdateStatus?(t.openBlock(),t.createBlock(l,{key:0,icon:"keyboard_arrow_down",size:"sm",clickable:"",scheme:s.colorStatus},null,8,["scheme"])):t.createCommentVNode("",!0),t.createVNode(d,{open:r.openDropdown,useOpenProp:"","data-testid":"status-dropdown","onUpdate:open":n[0]||(n[0]=_=>r.openDropdown=_)},{default:t.withCtx(()=>[t.createElementVNode("section",sS,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.statusOptions,_=>(t.openBlock(),t.createBlock(c,{key:_,class:"status-option",onClick:g=>s.handlerClickDropdownItem(_)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.i18n(_)),1)]),_:2},1032,["onClick"]))),128))])]),_:1},8,["open"])],2)])],34)}const Rd=z(tS,[["render",lS],["__scopeId","data-v-e9dc5349"]]),uS={components:{UnnnicAvatarIcon:Ti,UnnnicToolTip:Xt,UnnnicIcon:fe},props:{name:{type:String,default:""},subtitle:{type:String,default:""},description:{type:String,default:""},descriptionRow:{type:String,default:""},descriptionRowInfo:{type:String,default:""},statuses:{type:Array},minStatusWidth:{type:[String,Number],default:5.625*Gr}}},dS={class:"unnnic-card-container"},cS={class:"header"},fS={class:"title"},_S=["title"],gS={key:0,class:"subtitle"},hS={key:0,class:"description"},mS={key:1,class:"description-row-container"},FS={key:0,class:"description-row"},pS={class:"title"},bS={class:"content"},yS={class:"number"};function kS(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicIcon"),d=t.resolveComponent("UnnnicToolTip"),c=t.resolveComponent("UnnnicAvatarIcon");return t.openBlock(),t.createElementBlock("div",dS,[t.createElementVNode("div",cS,[t.createElementVNode("div",fS,[t.createElementVNode("span",{class:"name",title:a.name.length>25?a.name:null},t.toDisplayString(a.name),9,_S),a.subtitle?(t.openBlock(),t.createElementBlock("div",gS,t.toDisplayString(a.subtitle),1)):t.createCommentVNode("",!0)]),t.renderSlot(e.$slots,"header-buttons",{},void 0,!0)]),a.description?(t.openBlock(),t.createElementBlock("div",hS,t.toDisplayString(a.description),1)):t.createCommentVNode("",!0),a.descriptionRow||a.descriptionRowInfo?(t.openBlock(),t.createElementBlock("div",mS,[a.descriptionRow?(t.openBlock(),t.createElementBlock("div",FS,t.toDisplayString(a.descriptionRow),1)):t.createCommentVNode("",!0),a.descriptionRowInfo?(t.openBlock(),t.createBlock(d,{key:1,side:"top",text:a.descriptionRowInfo,enabled:""},{default:t.withCtx(()=>[t.createVNode(l,{class:"info",icon:"information-circle-4",size:"sm",scheme:"fg-muted"})]),_:1},8,["text"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),n[0]||(n[0]=t.createElementVNode("div",{class:"separator"},null,-1)),t.renderSlot(e.$slots,"content",{},void 0,!0),t.createElementVNode("div",{class:"statuses",style:t.normalizeStyle({gridTemplateColumns:`repeat(auto-fit, minmax(${a.minStatusWidth}, 1fr))`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.statuses,(_,g)=>(t.openBlock(),t.createElementBlock("div",{key:g,class:"status"},[t.createElementVNode("div",pS,t.toDisplayString(_.title),1),t.createElementVNode("div",bS,[t.createVNode(c,{icon:_.icon,scheme:_.scheme,size:"xs"},null,8,["icon","scheme"]),t.createElementVNode("div",yS,t.toDisplayString(_.count),1)])]))),128))],4)])}const wS={components:{CardStatusesContainer:z(uS,[["render",kS],["__scopeId","data-v-cf53b28b"]])},props:{name:{type:String,default:""},subtitle:{type:String,default:""},description:{type:String,default:""},descriptionRow:{type:String,default:""},descriptionRowInfo:{type:String,default:""},statuses:{type:Array}},data(){return{unnnicFontSize:Gr}}};function DS(e,n,a,i,r,s){const l=t.resolveComponent("CardStatusesContainer");return t.openBlock(),t.createBlock(l,{class:"unnnic-card-information",name:a.name,subtitle:a.subtitle,description:a.description,descriptionRow:a.descriptionRow,descriptionRowInfo:a.descriptionRowInfo,statuses:a.statuses,minStatusWidth:8.75*r.unnnicFontSize+"px"},null,8,["name","subtitle","description","descriptionRow","descriptionRowInfo","statuses","minStatusWidth"])}const Ud=z(wS,[["render",DS],["__scopeId","data-v-ee17403c"]]),CS={class:"unnnic-checkbox-group__checkboxes"},ES={key:1,class:"unnnic-checkbox-group__helper"},Hd=z(t.defineComponent({name:"UnnnicCheckboxGroup",__name:"CheckboxGroup",props:{state:{default:"horizontal"},label:{default:""},labelTooltip:{default:void 0},helper:{default:""}},setup(e){return(n,a)=>(t.openBlock(),t.createElementBlock("section",{class:t.normalizeClass(["unnnic-checkbox-group__container",`unnnic-checkbox-group--state-${n.state}`])},[n.label?(t.openBlock(),t.createBlock(Ci,{key:0,label:n.label,tooltip:n.labelTooltip},null,8,["label","tooltip"])):t.createCommentVNode("",!0),t.createElementVNode("section",CS,[t.renderSlot(n.$slots,"default",{},void 0,!0)]),n.helper?(t.openBlock(),t.createElementBlock("footer",ES,t.toDisplayString(n.helper),1)):t.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-f03f56c7"]]),AS={class:"unnnic-collapse__body"},Yd=z({__name:"Collapse",props:{title:String,active:Boolean,borderBottom:Boolean,unspacedIcon:Boolean,size:{type:String,default:"lg",validator(e){return["md","lg"].includes(e)}},modelValue:Boolean},emits:["update:modelValue","change"],setup(e,{emit:n}){const a=e,i=n,r=t.ref(!1);return t.watch(r,s=>{i("change",s),i("update:modelValue",s)}),t.watch(()=>a.active,s=>{r.value=s},{immediate:!0}),t.watch(()=>a.modelValue,s=>{r.value=s},{immediate:!0}),(s,l)=>(t.openBlock(),t.createElementBlock("div",{"data-testid":"collapse",class:t.normalizeClass(["unnnic-collapse",`unnnic-collapse--size-${e.size}`,{"unnnic-collapse--border-bottom":e.borderBottom,"unnnic-collapse--unspaced-icon":e.unspacedIcon,"unnnic-collapse--active":r.value}])},[t.createElementVNode("div",{"data-testid":"collapse-header",class:"unnnic-collapse__header",onClick:l[0]||(l[0]=d=>r.value=!r.value)},[t.createTextVNode(t.toDisplayString(e.title),1),t.renderSlot(s.$slots,"header",{},void 0,!0),t.createVNode(fe,{size:"ant",icon:r.value?"arrow-button-up-1":"arrow-button-down-1",scheme:"fg-base"},null,8,["icon"])]),t.withDirectives(t.createElementVNode("div",AS,[t.renderSlot(s.$slots,"default",{},void 0,!0)],512),[[t.vShow,r.value]])],2))}},[["__scopeId","data-v-cc0e62a7"]]),BS={class:"unnnic-radio"},xS=["disabled","checked","name"],vS={key:0,class:"unnnic-radio__helper"},Gd=z({__name:"Radio",props:{modelValue:{type:[String,Number],default:""},value:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1},label:{type:String,default:""},name:{type:String,default:""},helper:{type:String,default:""}},emits:["update:modelValue"],setup(e,{emit:n}){const a=e,i=n,r=t.inject("contextModelValue",void 0),s=t.inject("contextName",void 0);function l(){a.disabled||(i("update:modelValue",a.value),r&&(r.value=a.value))}const d=t.computed(()=>(r==null?void 0:r.value)||a.modelValue),c=t.computed(()=>(s==null?void 0:s.value)||a.name);return(_,g)=>(t.openBlock(),t.createElementBlock("section",BS,[t.createElementVNode("label",{class:t.normalizeClass(["unnnic-radio__input-wrapper",{"unnnic-radio__input-wrapper--disabled":e.disabled}])},[t.createElementVNode("input",t.mergeProps({class:"unnnic-radio__input",type:"radio",disabled:e.disabled,checked:d.value===e.value,name:c.value},t.unref(Kt.pick)(_.$attrs,["id"]),{onChange:l}),null,16,xS),t.createElementVNode("p",{class:t.normalizeClass(["unnnic-radio__label",{"unnnic-radio__label--disabled":e.disabled}])},[t.createTextVNode(t.toDisplayString(e.label)+" ",1),t.renderSlot(_.$slots,"default",{},void 0,!0)],2),e.helper?(t.openBlock(),t.createElementBlock("footer",vS,t.toDisplayString(e.helper),1)):t.createCommentVNode("",!0)],2)]))}},[["__scopeId","data-v-9f51b54f"]]),SS={class:"unnnic-radio-group__radios"},jS={key:1,class:"unnnic-radio-group__helper"},Wd=z(t.defineComponent({name:"UnnnicRadioGroup",__name:"RadioGroup",props:{modelValue:{default:""},state:{default:"horizontal"},label:{default:""},labelTooltip:{default:void 0},name:{default:""},helper:{default:""}},emits:["update:modelValue"],setup(e,{emit:n}){const a=e,i=n,r=t.ref(a.modelValue);t.watch(()=>a.modelValue,l=>{l!==r.value&&(r.value=l)}),t.watch(r,l=>{l!==a.modelValue&&i("update:modelValue",l)});const s=t.computed(()=>a.name||`unnnic-radio-group-${Math.random().toString(36).substring(2,15)}`);return t.provide("contextModelValue",r),t.provide("contextName",s),(l,d)=>(t.openBlock(),t.createElementBlock("section",{class:t.normalizeClass(["unnnic-radio-group__container",`unnnic-radio-group--state-${l.state}`])},[l.label?(t.openBlock(),t.createBlock(Ci,{key:0,label:l.label,tooltip:l.labelTooltip,class:"unnnic-radio-group__label"},null,8,["label","tooltip"])):t.createCommentVNode("",!0),t.createElementVNode("section",SS,[t.renderSlot(l.$slots,"default",{},void 0,!0)]),l.helper?(t.openBlock(),t.createElementBlock("footer",jS,t.toDisplayString(l.helper),1)):t.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-d5af6106"]]),qS={name:"Flag",components:{UnnnicIcon:fe},props:{code:{type:String,default:null},size:{type:String,default:"md",validator(e){return["nano","xs","sm","md","lg"].indexOf(e)!==-1}}},computed:{name(){return{"pt-br":"Brazil",en:"USA",es:"Spain"}[this.code]}}};function IS(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createBlock(l,{icon:s.name,size:a.size},null,8,["icon","size"])}const NS={name:"LanguageSelect",components:{UnnnicFlag:z(qS,[["render",IS]]),UnnnicIcon:fe},directives:{onClickOutside:rl},props:{modelValue:{type:String,default:""},position:{type:String,default:"top-right"},contracted:{type:Boolean,default:!1},supportedLanguages:{type:Array,default:()=>["pt-br","en"]}},data(){return{open:!1,val:this.modelValue,unnnicFontSize:Gr}},computed:{languages(){const e={"pt-br":"Português - Brasil",en:"English",es:"Español"};return this.supportedLanguages.reduce((n,a)=>({...n,[a]:e[a]}),{})},otherLanguages(){return this.languageList.filter(({id:e})=>e!==this.val)},languageList(){return Object.entries(this.languages).map(([e,n])=>({id:e,name:n}))},dropdownIcon(){let e="";return this.position==="bottom"?e=this.open?"up":"down":e=this.open?"down":"up",`arrow-button-${e}-1`}},watch:{val(){this.$emit("update:model-value",this.val)},modelValue(){this.val=this.modelValue}},methods:{onClickTrigger(){this.open=!this.open},onClickOutside(){this.open&&(this.open=!1)}}},TS={key:0,class:"unnnic-language-select contracted"},OS={class:"option"},MS=["onClick"],PS={key:1,class:"unnnic-language-select normal"},LS={class:"option"},zS={class:"label"},VS=["onClick"],RS={class:"label"},US={class:"option"},HS={class:"label"};function YS(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicFlag"),d=t.resolveComponent("UnnnicIcon"),c=t.resolveDirective("on-click-outside");return a.contracted?t.withDirectives((t.openBlock(),t.createElementBlock("div",TS,[t.createElementVNode("div",{class:t.normalizeClass(["container contracted",{open:r.open}]),onClick:n[0]||(n[0]=(..._)=>s.onClickTrigger&&s.onClickTrigger(..._))},[t.createElementVNode("div",OS,[t.createVNode(l,{size:"sm",code:r.val},null,8,["code"])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.otherLanguages,_=>(t.openBlock(),t.createElementBlock("div",{key:_.id,class:"option",onClick:g=>r.val=_.id},[t.createVNode(l,{size:"sm",code:_.id},null,8,["code"])],8,MS))),128))],2)])),[[c,s.onClickOutside]]):t.withDirectives((t.openBlock(),t.createElementBlock("div",PS,[t.createElementVNode("div",{class:t.normalizeClass(["container normal",{open:r.open}]),onClick:n[1]||(n[1]=(..._)=>s.onClickTrigger&&s.onClickTrigger(..._))},[t.createElementVNode("div",{style:t.normalizeStyle({position:"absolute",[a.position==="bottom"?"top":"bottom"]:-.125*r.unnnicFontSize+"px",width:"100%",padding:.0625*r.unnnicFontSize+"px",left:-.0625*r.unnnicFontSize+"px"}),class:"all"},[a.position==="bottom"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",LS,[t.createVNode(l,{size:"sm",code:r.val},null,8,["code"]),t.createElementVNode("div",zS,t.toDisplayString(s.languages[r.val]),1),t.createVNode(d,{size:"xs",icon:s.dropdownIcon,scheme:"fg-base"},null,8,["icon"])]),n[2]||(n[2]=t.createElementVNode("div",{class:"divider"},null,-1))],64)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.otherLanguages,_=>(t.openBlock(),t.createElementBlock("div",{key:_.id,class:"option",onClick:g=>r.val=_.id},[t.createVNode(l,{size:"sm",code:_.id},null,8,["code"]),t.createElementVNode("div",RS,t.toDisplayString(s.languages[_.id]),1)],8,VS))),128)),a.position!=="bottom"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[n[3]||(n[3]=t.createElementVNode("div",{class:"divider"},null,-1)),t.createElementVNode("div",US,[t.createVNode(l,{size:"sm",code:r.val},null,8,["code"]),t.createElementVNode("div",HS,t.toDisplayString(s.languages[r.val]),1),t.createVNode(d,{size:"xs",icon:s.dropdownIcon,scheme:"fg-base"},null,8,["icon"])])],64)):t.createCommentVNode("",!0)],4)],2)])),[[c,s.onClickOutside]])}const Qd=z(NS,[["render",YS]]),GS={name:"UnnnicModal",components:{UnnnicIcon:fe},props:{text:{type:String,default:null},modalIcon:{type:String,default:null},closeIcon:{type:Boolean,default:!0},description:{type:String,default:null},alertMessage:{type:String,default:null},showModal:{type:Boolean,default:!0},scheme:{type:String,default:null},persistent:{type:Boolean,default:!1}},computed:{hasAlertMessage(){return!(this.alertMessage===null||this.alertMessage.length===0)},hasButton(){var e,n;return!!((n=(e=this.$slots).options)!=null&&n.call(e).length)},hasIcon(){var e,n;return!!((n=(e=this.$slots).icon)!=null&&n.call(e).length)}},mounted(){window.innerWidth<=600&&this.mobileAnimateOpen()},methods:{mobileAnimateReset(){this.$refs.modalContainer&&(this.$refs.modalContainer.style.transition=null),this.$refs.modal&&(this.$refs.modal.style.transition=null)},mobileAnimateOpen(){this.$nextTick(()=>{this.$refs.modalContainer&&(this.$refs.modalContainer.style.transition="none",this.$refs.modalContainer.style.backgroundColor="transparent"),this.$refs.modal&&(this.$refs.modal.style.transition="none",this.$refs.modal.style.marginBottom=`${-this.$refs.modal.offsetHeight}px`),setTimeout(()=>{this.$refs.modalContainer&&(this.$refs.modalContainer.style.transition="background-color 0.2s",this.$refs.modalContainer.style.backgroundColor=null),this.$refs.modal&&(this.$refs.modal.style.transition="margin-bottom 0.2s",this.$refs.modal.style.marginBottom=null),setTimeout(()=>{this.mobileAnimateReset()},200)})})},mobileAnimateClose(){return new Promise(e=>{this.$refs.modalContainer&&(this.$refs.modalContainer.style.transition="background-color 0.2s",this.$refs.modalContainer.style.backgroundColor="transparent"),this.$refs.modal&&(this.$refs.modal.style.transition="margin-bottom 0.2s",this.$refs.modal.style.marginBottom=`${-this.$refs.modal.offsetHeight}px`),setTimeout(()=>{this.mobileAnimateReset(),e()},200)})},onOutsideCloseClick(){this.persistent||this.onCloseClick()},async onCloseClick(){console.log("keycloak log",window),window.innerWidth<=600&&await this.mobileAnimateClose(),this.$emit("close")}}},WS={ref:"modal",class:"unnnic-modal-container-background"},QS={class:"unnnic-modal-container-background-body"},XS={key:0,class:"unnnic-modal-container-background-body-close_icon"},KS={key:1,class:"unnnic-modal-container-background-body__icon-slot"},ZS={class:"unnnic-modal-container-background-body-title"},JS={class:"unnnic-modal-container-background-body-description-container"},$S={class:"unnnic-modal-container-background-body-description"},ej={key:0,class:"unnnic-modal-container-background-report"},tj={key:1,class:"unnnic-modal-container-background-button"};function aj(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createBlock(t.Transition,{name:"modal"},{default:t.withCtx(()=>[a.showModal?(t.openBlock(),t.createElementBlock("div",t.mergeProps({key:0},e.$attrs,{ref:"modalContainer",class:["unnnic-modal"]}),[t.createElementVNode("div",{class:"unnnic-modal-container",onClick:n[0]||(n[0]=t.withModifiers((...d)=>s.onOutsideCloseClick&&s.onOutsideCloseClick(...d),["self"]))},[t.createElementVNode("div",WS,[t.createElementVNode("div",QS,[a.closeIcon?(t.openBlock(),t.createElementBlock("div",XS,[t.createVNode(l,{icon:"close-1",scheme:"fg-base",size:"sm",clickable:"",onClick:s.onCloseClick},null,8,["onClick"])])):t.createCommentVNode("",!0),s.hasIcon?(t.openBlock(),t.createElementBlock("div",KS,[t.renderSlot(e.$slots,"icon",{},void 0,!0)])):t.createCommentVNode("",!0),a.modalIcon?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(["unnnic-modal-container-background-body-alert_icon",`unnnic-card-scheme--${a.scheme}--icon`,a.closeIcon?"":"unnnic-modal-container-background-body-spacing_header"])},[t.createVNode(l,{scheme:a.scheme,icon:a.modalIcon,size:"xl"},null,8,["scheme","icon"])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",ZS,t.toDisplayString(a.text),1)]),t.createElementVNode("div",JS,[t.createElementVNode("div",$S,[t.createTextVNode(t.toDisplayString(a.description)+" ",1),t.renderSlot(e.$slots,"message",{},void 0,!0),t.renderSlot(e.$slots,"default",{},void 0,!0)])]),s.hasAlertMessage?(t.openBlock(),t.createElementBlock("div",ej,t.toDisplayString(a.alertMessage),1)):t.createCommentVNode("",!0),s.hasButton?(t.openBlock(),t.createElementBlock("div",tj,[t.renderSlot(e.$slots,"options",{},void 0,!0)])):t.createCommentVNode("",!0)],512)])],16)):t.createCommentVNode("",!0)]),_:3})}const ll=z(GS,[["render",aj],["__scopeId","data-v-bc6e5f19"]]),n2={"application/prs.cww":["cww"],"application/prs.xsf+xml":["xsf"],"application/vnd.1000minds.decision-model+xml":["1km"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["*xfdf"],"application/vnd.age":["age"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.keynote":["key"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.numbers":["numbers"],"application/vnd.apple.pages":["pages"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.autodesk.fbx":["fbx"],"application/vnd.balsamiq.bmml+xml":["bmml"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.citationstyles.style+xml":["csl"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dbf":["dbf"],"application/vnd.dcmp+xml":["dcmp"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["*fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.slides":["ggs"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.drawing":["gdraw"],"application/vnd.google-apps.form":["gform"],"application/vnd.google-apps.jam":["gjam"],"application/vnd.google-apps.map":["gmap"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.script":["gscript"],"application/vnd.google-apps.site":["gsite"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.gov.sk.xmldatacontainer+xml":["xdcf"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mapbox-vector-tile":["mvt"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["*stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["*mpp","mpt"],"application/vnd.ms-visio.viewer":["vdx"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.nato.bindingdataobject+xml":["bdo"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.ac+xml":["*ac"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openblox.game+xml":["obgx"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openstreetmap.data+xml":["osm"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.procrate.brushset":["brushset"],"application/vnd.procreate.brush":["brush"],"application/vnd.procreate.dream":["drm"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.pwg-xhtml-print+xml":["xhtm"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.rar":["rar"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.software602.filler.form+xml":["fo"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.syncml.dmddf+xml":["ddf"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml","uo"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw","vsdx","vtx"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":["*dmg"],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":["*bdoc"],"application/x-bittorrent":["torrent"],"application/x-blender":["blend"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-compressed":["*rar"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["*deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-ipynb+json":["ipynb"],"application/x-iso9660-image":["*iso"],"application/x-iwork-keynote-sffkey":["*key"],"application/x-iwork-numbers-sffnumbers":["*numbers"],"application/x-iwork-pages-sffpages":["*pages"],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-keepass2":["kdbx"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["*prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":["*exe"],"application/x-msdownload":["*exe","*dll","com","bat","*msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["*wmf","*wmz","*emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":["*prc","*pdb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["*rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["*sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["*obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["*xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zip-compressed":["*zip"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["*aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":["*m4a"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":["*ra"],"audio/x-wav":["*wav"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif","btf"],"image/prs.pti":["pti"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.airzip.accelerator.azv":["azv"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":["*sub"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.microsoft.icon":["ico"],"image/vnd.ms-dds":["dds"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.pco.b16":["b16"],"image/vnd.tencent.tap":["tap"],"image/vnd.valve.source.texture":["vtf"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/vnd.zbrush.pcx":["pcx"],"image/x-3ds":["3ds"],"image/x-adobe-dng":["dng"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["*ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":["*bmp"],"image/x-pcx":["*pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/vnd.wfa.wsc":["wsc"],"model/vnd.bary":["bary"],"model/vnd.cld":["cld"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["*mts"],"model/vnd.opengex":["ogex"],"model/vnd.parasolid.transmit.binary":["x_b"],"model/vnd.parasolid.transmit.text":["x_t"],"model/vnd.pytha.pyox":["pyo","pyox"],"model/vnd.sap.vds":["vds"],"model/vnd.usda":["usda"],"model/vnd.usdz+zip":["usdz"],"model/vnd.valve.source.compiled-map":["bsp"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.familysearch.gedcom":["ged"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":["*org"],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]};Object.freeze(n2);const i2={"application/andrew-inset":["ez"],"application/appinstaller":["appinstaller"],"application/applixware":["aw"],"application/appx":["appx"],"application/appxbundle":["appxbundle"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/automationml-aml+xml":["aml"],"application/automationml-amlx+zip":["amlx"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cpl+xml":["cpl"],"application/cu-seeme":["cu"],"application/cwl":["cwl"],"application/dash+xml":["mpd"],"application/dash-patch+xml":["mpp"],"application/davmount+xml":["davmount"],"application/dicom":["dcm"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdf":["fdf"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["*js"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/media-policy-dataset+xml":["mpf"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["*mp4","*mpg4","mp4s","m4p"],"application/msix":["msix"],"application/msixbundle":["msixbundle"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg","one","onea"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-keys":["asc"],"application/pgp-signature":["sig","*asc"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/sql":["sql"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/watcherinfo+xml":["wif"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xfdf":["xfdf"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"application/zip+dotlottie":["lottie"],"audio/3gpp":["*3gpp"],"audio/aac":["adts","aac"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a","m4b"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avci":["avci"],"image/avcs":["avcs"],"image/avif":["avif"],"image/bmp":["bmp","dib"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/dpx":["dpx"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/ief":["ief"],"image/jaii":["jaii"],"image/jais":["jais"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpg","jpeg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm","jpgm"],"image/jpx":["jpx","jpf"],"image/jxl":["jxl"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/pjpeg":["jfif"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime","mht","mhtml"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/jt":["jt"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/prc":["prc"],"model/step":["step","stp","stpnc","p21","210"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/u3d":["u3d"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/javascript":["js","mjs"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["md","markdown"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/wgsl":["wgsl"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","*jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts","m2t","m2ts","mts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]};Object.freeze(i2);var Ia=function(e,n,a,i){if(a==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof n=="function"?e!==n||!i:!n.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return a==="m"?i:a==="a"?i.call(e):i?i.value:n.get(e)},xr,Bo,Oi;class nj{constructor(...n){xr.set(this,new Map),Bo.set(this,new Map),Oi.set(this,new Map);for(const a of n)this.define(a)}define(n,a=!1){for(let[i,r]of Object.entries(n)){i=i.toLowerCase(),r=r.map(d=>d.toLowerCase()),Ia(this,Oi,"f").has(i)||Ia(this,Oi,"f").set(i,new Set);const s=Ia(this,Oi,"f").get(i);let l=!0;for(let d of r){const c=d.startsWith("*");if(d=c?d.slice(1):d,s==null||s.add(d),l&&Ia(this,Bo,"f").set(i,d),l=!1,c)continue;const _=Ia(this,xr,"f").get(d);if(_&&_!=i&&!a)throw new Error(`"${i} -> ${d}" conflicts with "${_} -> ${d}". Pass \`force=true\` to override this definition.`);Ia(this,xr,"f").set(d,i)}}return this}getType(n){if(typeof n!="string")return null;const a=n.replace(/^.*[/\\]/s,"").toLowerCase(),i=a.replace(/^.*\./s,"").toLowerCase(),r=a.length<n.length;return!(i.length<a.length-1)&&r?null:Ia(this,xr,"f").get(i)??null}getExtension(n){var a;return typeof n!="string"?null:(n=(a=n==null?void 0:n.split)==null?void 0:a.call(n,";")[0],(n&&Ia(this,Bo,"f").get(n.trim().toLowerCase()))??null)}getAllExtensions(n){return typeof n!="string"?null:Ia(this,Oi,"f").get(n.toLowerCase())??null}_freeze(){this.define=()=>{throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances")},Object.freeze(this);for(const n of Ia(this,Oi,"f").values())Object.freeze(n);return this}_getTestState(){return{types:Ia(this,xr,"f"),extensions:Ia(this,Bo,"f")}}}xr=new WeakMap,Bo=new WeakMap,Oi=new WeakMap;const ij=new nj(i2,n2)._freeze(),rj={class:"unnnic-upload-area__dropzone__content"},oj={class:"unnnic-upload-area__dropzone__content__title"},sj=["title"],lj=["accept","multiple"],ul=z({__name:"DropArea",props:{acceptMultiple:{type:Boolean,default:!0},supportedFormats:{type:String,default:"*"},maxFileSize:{type:Number,default:void 0},shouldReplace:{type:Boolean,default:!1},currentFiles:{type:Array,default(){return[]}},maximumUploads:{type:Number,default:1},subtitle:{type:String,default:""},disabled:{type:Boolean,default:!1}},emits:["update:currentFiles","fileChange","unsupportedFormat","exceededTheMaximumFileSizeLimit"],setup(e,{emit:n}){const a=t.ref(!1),i=t.ref(!1),r=t.ref(0),s=t.useTemplateRef("file"),l=e,d=n,c=t.getCurrentInstance();function _(T){var O,P;return!!((P=(O=c==null?void 0:c.vnode)==null?void 0:O.props)!=null&&P[T])}const g=t.computed(()=>l.supportedFormats.split(",").map(O=>O.toUpperCase()).join(", "));function h(){l.disabled||(r.value+=1,a.value=!0)}function F(){l.disabled||(a.value=!0)}function p(){l.disabled||(r.value-=1,r.value===0&&(a.value=!1))}function y(){l.disabled||(a.value=!1)}function w(T){if(l.disabled)return;a.value=!1;const{files:O}=T.dataTransfer;D(O)&&I(O)}function C(){l.disabled||s.value.click()}function q(T){if(l.disabled)return;const{files:O}=T.target;D(O)&&I(O),s.value.value=""}function B(){i.value=!0,setTimeout(()=>{i.value=!1},5e3)}function D(T){return!l.acceptMultiple&&T.length>1?(B(),!1):A(T)?S(T)?!0:(_("onExceededTheMaximumFileSizeLimit")?d("exceededTheMaximumFileSizeLimit"):B(),!1):(_("onUnsupportedFormat")?d("unsupportedFormat"):B(),!1)}function A(T){if(l.supportedFormats==="*")return!0;const O=l.supportedFormats.split(",").map(Z=>Z.trim());return Array.from(T).find(Z=>{const ce=Z.name.toLowerCase(),X=Z.type.toLowerCase(),ye=`.${ce.split(".").pop()}`,De=O.includes(ye),pe=X===ij.getType(ce);return De&&pe})}function S(T){return l.maxFileSize?Array.from(T).find(P=>(P.size/1048576).toFixed(2)<=l.maxFileSize):!0}function I(T){let O=T.length;if(l.shouldReplace||(O+=l.currentFiles.length),O>l.maximumUploads){B();return}const P=Array.from(T).filter(ce=>!!(A([ce])&&S([ce])));let Z;l.shouldReplace?Z=P:Z=l.currentFiles.concat(P),d("update:currentFiles",Z),d("fileChange",Z)}return(T,O)=>(t.openBlock(),t.createElementBlock("section",{ref:"dropzone",class:t.normalizeClass({"unnnic-upload-area__dropzone":!0,"unnnic-upload-area__dropzone__is-dragover":a.value,"unnnic-upload-area__dropzone__has-error":i.value}),onDragenter:t.withModifiers(h,["stop","prevent"]),onDragover:t.withModifiers(F,["stop","prevent"]),onDragleave:t.withModifiers(p,["stop","prevent"]),onDragend:t.withModifiers(y,["stop","prevent"]),onDrop:t.withModifiers(w,["stop","prevent"]),onClick:C},[t.createVNode(fe,{class:"unnnic-upload-area__dropzone__icon",icon:"upload",scheme:i.value?"feedback-red":"weni-500",size:"lg"},null,8,["scheme"]),t.createElementVNode("div",rj,[t.createElementVNode("span",oj,[t.renderSlot(T.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(T.$t("upload_area.title.text"))+" ",1),t.createElementVNode("span",{class:t.normalizeClass(`unnnic-upload-area__dropzone__content__title__${i.value?"error":"search"}`)},t.toDisplayString(T.$t("upload_area.title.highlight")),3)],!0)]),t.createElementVNode("span",{class:t.normalizeClass(["unnnic-upload-area__dropzone__content__subtitle",{"unnnic-upload-area__dropzone__content__subtitle__error":i.value}]),title:g.value},[t.renderSlot(T.$slots,"subtitle",{},()=>[t.createTextVNode(t.toDisplayString(e.subtitle||`${T.$t(`upload_area${i.value?".invalid":""}.subtitle`)} ${g.value}`),1)],!0)],10,sj)]),t.withDirectives(t.createElementVNode("input",{ref:"file",type:"file",accept:e.supportedFormats,multiple:e.acceptMultiple,onInput:q},null,40,lj),[[t.vShow,!1]])],34))}},[["__scopeId","data-v-9585b47a"]]),uj={name:"ImportCard",components:{UnnnicButton:Dt,UnnnicIcon:fe},props:{title:{type:String,default:""},subtitle:{type:String,default:""},importProgress:{type:Number,default:0},isImporting:{type:Boolean,default:!1},canImport:{type:Boolean,default:!0},canDelete:{type:Boolean,default:!0},acceptedFormats:{type:String,default:"*"},uploadIcon:{type:String,default:"upload-bottom-1"}},computed:{fileIcon(){const e=this.title.slice(this.title.lastIndexOf(".")+1);return{pdf:"picture_as_pdf",txt:"text_snippet",xls:"table",xlsx:"table",doc:"draft",docx:"draft"}[e]||"draft"}},methods:{importFile(){this.$refs.file.click()},handleFileChange(e){const{files:n}=e.target;let a;n.length>0&&([a]=e.target.files),a&&this.$emit("modifiedFile",a)},emitDeletion(){this.$emit("delete")}}},dj={class:"unnnic-import-card"},cj={class:"unnnic-import-card__data"},fj={key:0,class:"unnnic-import-card__data__title"},_j={key:1,class:"unnnic-import-card__data__title"},gj={key:2,class:"unnnic-import-card__data__subtitle"},hj={key:0,class:"unnnic-import-card__data__subtitle__text"},mj={key:1,class:"unnnic-import-card__data__subtitle__progress"},Fj={class:"unnnic-import-card__buttons"},pj=["accept"];function bj(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicIcon"),d=t.resolveComponent("UnnnicButton");return t.openBlock(),t.createElementBlock("div",dj,[t.createVNode(l,{class:"unnnic-import-card__file-icon",size:"md",scheme:"weni-600",icon:s.fileIcon},null,8,["icon"]),t.createElementVNode("div",cj,[a.isImporting?(t.openBlock(),t.createElementBlock("div",fj,t.toDisplayString(e.$t("import_card.importing"))+"... ",1)):(t.openBlock(),t.createElementBlock("div",_j,t.toDisplayString(a.title),1)),a.subtitle&&a.isImporting?(t.openBlock(),t.createElementBlock("div",gj,[a.subtitle&&a.isImporting?(t.openBlock(),t.createElementBlock("div",hj,t.toDisplayString(a.subtitle),1)):t.createCommentVNode("",!0),a.subtitle&&a.isImporting?(t.openBlock(),t.createElementBlock("div",mj,"  - "+t.toDisplayString(a.importProgress)+"% ",1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Fj,[a.canImport?(t.openBlock(),t.createBlock(d,{key:0,class:"unnnic-import-card__buttons__import",size:"small",iconCenter:a.uploadIcon,type:"primary",onClick:s.importFile},{default:t.withCtx(()=>[t.createElementVNode("input",{ref:"file",type:"file",accept:a.acceptedFormats,style:{display:"none"},onChange:n[0]||(n[0]=(...c)=>s.handleFileChange&&s.handleFileChange(...c))},null,40,pj)]),_:1},8,["iconCenter","onClick"])):t.createCommentVNode("",!0),a.canDelete?(t.openBlock(),t.createBlock(l,{key:1,class:"unnnic-import-card__buttons__delete",size:"sm",scheme:"fg-base",icon:"delete",clickable:"",onClick:s.emitDeletion},null,8,["onClick"])):t.createCommentVNode("",!0)])])}const dl=z(uj,[["render",bj],["__scopeId","data-v-ae2cb257"]]),yj={name:"UnnnicUploadArea",components:{UnnnicDropArea:ul,UnnnicImportCard:dl},model:{prop:"files",event:"fileChange"},props:{files:{type:Array,default:()=>[]},acceptMultiple:{type:Boolean,default:!0},supportedFormats:{type:String,default:"*"},maximumUploads:{type:Number,default:1},filesProgress:{type:Array,default:()=>[]},isUploading:{type:Boolean,default:!1},canImport:{type:Boolean,default:!1},canDelete:{type:Boolean,default:!0},maxFileSize:{type:Number,default:void 0},shouldReplace:{type:Boolean,default:!1},subtitle:{required:!1,type:String,default:""}},emits:["fileChange"],data(){return{currentFiles:this.files}},watch:{files(e){this.currentFiles=e}},methods:{emitFileChange(){this.$emit("fileChange",this.currentFiles)},modifyFile(e,n){this.currentFiles.splice(e,1,n),this.emitFileChange()},removeFile(e){this.currentFiles.splice(e,1),this.emitFileChange()}}},kj={key:0,class:"unnnic-upload-area__cards"};function wj(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicDropArea"),d=t.resolveComponent("UnnnicImportCard");return t.openBlock(),t.createElementBlock("div",null,[t.createVNode(l,{currentFiles:r.currentFiles,"onUpdate:currentFiles":n[0]||(n[0]=c=>r.currentFiles=c),acceptMultiple:a.acceptMultiple,supportedFormats:a.supportedFormats,maxFileSize:a.maxFileSize,shouldReplace:a.shouldReplace,maximumUploads:a.maximumUploads,subtitle:a.subtitle,onFileChange:n[1]||(n[1]=c=>e.$emit("fileChange",c))},null,8,["currentFiles","acceptMultiple","supportedFormats","maxFileSize","shouldReplace","maximumUploads","subtitle"]),r.currentFiles.length>0?(t.openBlock(),t.createElementBlock("div",kj,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.currentFiles,(c,_)=>(t.openBlock(),t.createBlock(d,{key:_,title:c.name,subtitle:c.name,isImporting:a.isUploading,importProgress:a.filesProgress[_]||100,canImport:a.canImport,canDelete:a.canDelete,acceptedFormats:a.supportedFormats,uploadIcon:"button-refresh-arrows-1",onDelete:g=>s.removeFile(_),onModifiedFile:g=>s.modifyFile(_,g)},null,8,["title","subtitle","isImporting","importProgress","canImport","canDelete","acceptedFormats","onDelete","onModifiedFile"]))),128))])):t.createCommentVNode("",!0)])}const cl=z(yj,[["render",wj],["__scopeId","data-v-872a45ed"]]),Dj={components:{UnnnicUploadArea:cl,UnnnicIcon:fe,UnnnicButton:Dt},model:{prop:"files",event:"file-change"},props:{textCancel:{type:String,default:"Cancelar"},textAction:{type:String,default:"Importar tudo"},textTitle:{type:String,default:"Importar sentenças"},acceptMultiple:{type:Boolean,default:!0},supportedFormats:{type:String,default:".png"},maximumUploads:{type:Number,default:1},filesProgress:{type:Array,default:()=>[]},isUploading:{type:Boolean,default:!1},canImport:{type:Boolean,default:!1},canDelete:{type:Boolean,default:!0},maxFileSize:{type:Number,default:void 0},files:{type:Array,default:()=>[]},subtitle:{required:!1,type:String,default:""}},emits:["close","file-change","cancel","action"],data(){return{}}},Cj={class:"modal-upload"},Ej={class:"close-button-container"},Aj={class:"title"},Bj={class:"footer"};function xj(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicIcon"),d=t.resolveComponent("UnnnicUploadArea"),c=t.resolveComponent("UnnnicButton");return t.openBlock(),t.createElementBlock("div",Cj,[t.createElementVNode("div",Ej,[t.createVNode(l,{class:"close-button",icon:"close-1",scheme:"fg-base",size:"sm",clickable:"",onClick:n[0]||(n[0]=_=>e.$emit("close"))})]),t.createElementVNode("div",Aj,t.toDisplayString(a.textTitle),1),t.createVNode(d,{acceptMultiple:a.acceptMultiple,supportedFormats:a.supportedFormats,maximumUploads:a.maximumUploads,filesProgress:a.filesProgress,isUploading:a.isUploading,canImport:a.canImport,canDelete:a.canDelete,maxFileSize:a.maxFileSize,files:a.files,subtitle:a.subtitle,onFileChange:n[1]||(n[1]=_=>e.$emit("file-change",_))},null,8,["acceptMultiple","supportedFormats","maximumUploads","filesProgress","isUploading","canImport","canDelete","maxFileSize","files","subtitle"]),t.createElementVNode("div",Bj,[t.createVNode(c,{size:"large",type:"tertiary",text:a.textCancel,onClick:n[2]||(n[2]=_=>e.$emit("cancel"))},null,8,["text"]),t.createVNode(c,{size:"large",type:"primary",text:a.textAction,onClick:n[3]||(n[3]=_=>e.$emit("action"))},null,8,["text"])])])}const Xd=z(Dj,[["render",xj],["__scopeId","data-v-02afb3f6"]]),vj={components:{UnnnicIcon:fe},props:{text:{type:String,default:null},scheme:{type:String,default:null},onClose:{type:Function,default:()=>{}},type:{type:String,default:"default"}},emits:["close"],mounted(){this.$refs.progress.addEventListener("animationend",()=>{this.$refs.alertContainer.classList.add("slide-down")}),this.$refs.alertContainer.addEventListener("animationend",e=>{var n;(n=e.animationName)!=null&&n.startsWith("slideDown")&&this.emitClose()})},methods:{emitClose(){this.onClose(),this.$emit("close")}}},Sj={ref:"alertContainer",class:"alert-container"},jj={ref:"progress",class:"alert__progress"};function qj(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createElementBlock("div",Sj,[t.createElementVNode("div",{class:t.normalizeClass(["alert",{"alert--scheme-aux-green":a.scheme==="feedback-green"||a.type==="success","alert--scheme-aux-red":a.scheme==="feedback-red"||a.type==="error"}])},[t.createElementVNode("div",jj,null,512),t.withDirectives(t.createElementVNode("div",{class:"alert__text"},t.toDisplayString(a.text),513),[[t.vShow,a.text]]),t.createElementVNode("div",{class:"alert__close",onClick:n[0]||(n[0]=(...d)=>s.emitClose&&s.emitClose(...d))},[t.createVNode(l,{icon:"close-1",size:"sm",scheme:"fg-inverted"})])],2)],512)}const Ij=z(vj,[["render",qj],["__scopeId","data-v-fb34701b"]]),Nj=["role","aria-live"],Tj={class:"unnnic-toast__content","data-testid":"toast-content"},Oj={class:"unnnic-toast__header","data-testid":"toast-header"},Mj={class:"unnnic-toast__title","data-testid":"toast-title"},Pj={key:0,"data-testid":"toast-text",class:"unnnic-toast__text"},xo=z(t.defineComponent({name:"UnnnicToast",__name:"Toast",props:{title:{default:""},description:{default:""},type:{default:"informational"},button:{default:void 0},timeout:{default:5e3}},emits:["close","destroy"],setup(e,{emit:n}){const a=e,i=n,r=t.ref(!1);let s=null;const l=t.computed(()=>({informational:{icon:"info",scheme:"fg-info"},attention:{icon:"error",scheme:"fg-warning"},success:{icon:"check_circle",scheme:"fg-success"},error:{icon:"cancel",scheme:"fg-critical"}})[a.type||"informational"]),d=ir(),c=()=>{r.value=!1,i("close")},_=()=>{var F;(F=a.button)!=null&&F.action&&a.button.action()},g=()=>{a.timeout>0&&(s=window.setTimeout(()=>{c()},a.timeout))},h=()=>{s&&(window.clearTimeout(s),s=null)};return t.onMounted(()=>{r.value=!0,g()}),t.onUnmounted(()=>{h()}),(F,p)=>(t.openBlock(),t.createBlock(t.Transition,{name:"toast-slide",appear:"","data-testid":"toast-transition",onAfterLeave:p[0]||(p[0]=y=>F.$emit("destroy"))},{default:t.withCtx(()=>[r.value?(t.openBlock(),t.createElementBlock("aside",{key:0,class:t.normalizeClass(["unnnic-toast",`unnnic-toast--${F.type}`]),role:F.type==="error"?"alert":"status","aria-live":F.type==="error"?"assertive":"polite","data-testid":"toast",style:t.normalizeStyle({zIndex:t.unref(d)})},[t.createElementVNode("section",Tj,[t.createElementVNode("header",Oj,[t.createVNode(fe,{icon:l.value.icon,scheme:l.value.scheme,size:"ant","data-testid":"toast-type-icon"},null,8,["icon","scheme"]),t.createElementVNode("h3",Mj,t.toDisplayString(F.title),1),t.createVNode(fe,{icon:"close",scheme:"fg-base",size:"ant",clickable:"",class:"unnnic-toast__close","data-testid":"toast-close-icon",onClick:c,onKeydown:t.withKeys(c,["enter"])})]),F.description?(t.openBlock(),t.createElementBlock("p",Pj,t.toDisplayString(F.description),1)):t.createCommentVNode("",!0)]),F.button?(t.openBlock(),t.createBlock(Dt,{key:0,type:"tertiary",text:F.button.text,class:"unnnic-toast__action-button","data-testid":"toast-action-button",onClick:_,onKeydown:[t.withKeys(_,["enter"]),t.withKeys(t.withModifiers(_,["prevent"]),["space"])]},null,8,["text","onKeydown"])):t.createCommentVNode("",!0)],14,Nj)):t.createCommentVNode("",!0)]),_:1}))}}),[["__scopeId","data-v-5445aa0d"]]),Lj={name:"UnnnicAlert",components:{UnnnicToast:xo,Version1dot1:Ij},props:{version:{type:String,default:"1.1"},text:{type:String,default:null},scheme:{type:String,default:null},onClose:{type:Function,default:()=>{}},type:{type:String,default:""}},computed:{toastType(){return this.scheme==="feedback-green"||this.type==="success"?"success":this.scheme==="feedback-red"||this.type==="error"?"error":this.type==="attention"?"attention":"informational"}}};function zj(e,n,a,i,r,s){const l=t.resolveComponent("Version1dot1"),d=t.resolveComponent("UnnnicToast");return a.version==="1.1"?(t.openBlock(),t.createBlock(l,t.normalizeProps(t.mergeProps({key:0},{...e.$props})),null,16)):(t.openBlock(),t.createBlock(d,{key:1,title:a.text||"",type:s.toastType,onClose:n[0]||(n[0]=()=>a.onClose())},null,8,["title","type"]))}const fl=z(Lj,[["render",zj]]);class Vj{constructor(){this.toasts=new Map,this.container=null,this.nextId=0}createContainer(){if(this.container)return this.container;this.container=document.createElement("div"),this.container.setAttribute("unnnic-toast-container","true");const n=t9()??document.body;return n==null||n.appendChild(this.container),this.container}generateId(){return`toast-${++this.nextId}`}show(n){const a=this.generateId(),i=this.createContainer(),r=document.createElement("div");let s;const l=new Promise(_=>{s=_}),d=t.createApp(xo,{...n,onClose:()=>{this.close(a)},onDestroy:()=>{d.unmount(),r.remove(),s()}});d.mount(r),i.appendChild(r);const c={id:a,props:n,close:()=>this.close(a),promise:l};return this.toasts.set(a,c),c}close(n){this.toasts.get(n)&&this.toasts.delete(n)}}const vo=new Vj,Kd={info:(e,n,a)=>vo.show({title:e,description:n,...a,type:"informational"}).promise,success:(e,n,a)=>vo.show({title:e,description:n,...a,type:"success"}).promise,attention:(e,n,a)=>vo.show({title:e,description:n,...a,type:"attention"}).promise,error:(e,n,a)=>vo.show({title:e,description:n,...a,type:"error"}).promise};function Rj(e){return{all:e=e||new Map,on:function(n,a){var i=e.get(n);i?i.push(a):e.set(n,[a])},off:function(n,a){var i=e.get(n);i&&(a?i.splice(i.indexOf(a)>>>0,1):e.set(n,[]))},emit:function(n,a){var i=e.get(n);i&&i.slice().map(function(r){r(a)}),(i=e.get("*"))&&i.slice().map(function(r){r(n,a)})}}}const Zd=Rj(),Jd=({props:e,containerRef:n,seconds:a})=>{if(e.version==="1.1"||n){const i=t.createApp(fl,{...e,seconds:a,version:"1.1",onClose:()=>{s.$el.remove()},created(){Zd.on(["close"],()=>{s.$el.remove()})}}),r=document.createElement("div"),s=i.mount(r);n?(s.$el.style.position="absolute",n.appendChild(s.$el)):document.body.appendChild(s.$el)}else{const i={success:"success",error:"error",attention:"attention",default:"informational","feedback-green":"success","feedback-red":"error"},r={timeout:a?a*1e3:5e3,type:i[e.scheme||e.type]||i.default,onClose:()=>{Zd.emit(["close"])}};vo.show({title:e.text,description:"",...r})}},$d=({props:e})=>{const n=t.createApp(ll,{...e,onClose:()=>{i.$el.remove()},created(){Zd.on(["close"],()=>{i.$el.remove()})}}),a=document.createElement("div"),i=n.mount(a);document.body.appendChild(a)},Uj={name:"UnnnicSelectSmartOption",components:{UnnnicCheckbox:Br},props:{label:{type:String,default:"Option",required:!0},description:{type:String,default:"",required:!1},size:{type:String,default:""},selectable:{type:Boolean,default:!0},focused:{type:Boolean,default:!1},active:{type:Boolean,default:null},disabled:{type:Boolean,default:!1},allowCheckbox:{type:Boolean,default:!1},isMultiple:Boolean,activeColor:{type:String,default:"primary",validator(e){return["primary","secondary"].indexOf(e)!==-1}}},methods:{fullySanitize:Jn}},Hj=["title"];function Yj(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicCheckbox");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass({"unnnic-select-smart-option":!0,"unnnic-select-smart-option--focused":a.focused,"unnnic-select-smart-option--active":a.active,"unnnic-select-smart-option--active-secondary":a.active&&a.activeColor==="secondary","unnnic--clickable":a.selectable,"unnnic-select-smart-option--selectable":a.selectable,"unnnic-select-smart-option--with-checkbox":a.allowCheckbox}),title:a.label,"data-testid":"select-smart-option"},[a.allowCheckbox?(t.openBlock(),t.createBlock(l,{key:0,ref:"checkbox","data-testid":"checkbox",modelValue:a.active,size:a.size,disabled:a.disabled},null,8,["modelValue","size","disabled"])):t.createCommentVNode("",!0),t.createElementVNode("div",null,[t.createElementVNode("span",{class:t.normalizeClass(["unnnic-select-smart-option__label",`unnnic-select-smart-option__label--${a.size}`]),"data-testid":"label"},t.toDisplayString(s.fullySanitize(a.label)),3),a.description?(t.openBlock(),t.createElementBlock("p",{key:0,"data-testid":"description",class:t.normalizeClass(["unnnic-select-smart-option__description",`unnnic-select-smart-option__description--${a.size}`])},t.toDisplayString(s.fullySanitize(a.description)),3)):t.createCommentVNode("",!0)])],10,Hj)}const Gj=z(Uj,[["render",Yj]]),Wj={name:"UnnnicSelectSmartMultipleHeader",components:{Tag:Ar},mixins:[$a],props:{selectedOptions:{type:Array,required:!0},withoutSelectsMessage:{type:String,default:""}},data(){return{multipleSelectedsTags:2,defaultTranslations:{without_multiple_selected:{"pt-br":"Nenhuma opção selecionada",en:"No option selected",es:"Ninguna opción seleccionada"}}}},computed:{firstMultipleSelecteds(){const{selectedOptions:e,multipleSelectedsTags:n}=this,a=[];for(let i=0;i<n;i+=1)a.push(e==null?void 0:e[i]);return a.filter(i=>i!==void 0)}},methods:{unselectOption(e){this.$emit("unselect-option",e)}}},Qj={class:"unnnic-select-smart__options__multiple"},Xj={key:0,class:"unnnic-select-smart__options__multiple__selecteds__container"},Kj={class:"unnnic-select-smart__options__multiple__selecteds"},Zj={key:0,class:"unnnic-select-smart__options__multiple__selecteds__remaining","data-testid":"remaining-count"},Jj={key:1,class:"unnnic-select-smart__options__multiple--without-multiples","data-testid":"without-selects-message"};function $j(e,n,a,i,r,s){const l=t.resolveComponent("Tag");return t.openBlock(),t.createElementBlock("div",Qj,[a.selectedOptions[0]?(t.openBlock(),t.createElementBlock("div",Xj,[t.createElementVNode("div",Kj,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.firstMultipleSelecteds,d=>(t.openBlock(),t.createBlock(l,{key:d.value,class:"unnnic-select-smart__options__multiple__selecteds__option",text:d.label,hasCloseIcon:!d.disableRemove,onClose:c=>s.unselectOption(d)},null,8,["text","hasCloseIcon","onClose"]))),128)),a.selectedOptions.length>r.multipleSelectedsTags?(t.openBlock(),t.createElementBlock("p",Zj," +"+t.toDisplayString(a.selectedOptions.length-r.multipleSelectedsTags),1)):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0),a.selectedOptions[0]?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("p",Jj,t.toDisplayString(a.withoutSelectsMessage||e.i18n("without_multiple_selected")),1))])}const eq=z(Wj,[["render",$j],["__scopeId","data-v-4310b808"]]),tq={props:{type:{type:String,default:"automatic"},modelValue:Boolean,position:{type:String,default:"bottom-left"},useAbsolutePosition:{type:Boolean,default:!1}},data(){return{clientHeight:0,clientWidth:0,x:0,y:0,width:0,height:0,data:{x:0,y:0,width:0,height:0}}},computed:{active(){return this.type==="manual"?this.modelValue:!1},positions(){let e,n;return this.position.startsWith("bottom")?(e=this.y+this.height,e+this.data.height>this.clientHeight&&(e=this.clientHeight-this.data.height,this.y>=this.data.height&&(e=this.y-this.data.height))):this.position.startsWith("top")&&(e=this.y-this.data.height,e<0&&(e=0,this.y+this.height+this.data.height<=this.clientHeight&&(e=this.y+this.height))),this.position.endsWith("right")?(n=this.x+this.width,n+this.data.width>this.clientWidth&&(n=this.clientWidth-this.data.width,this.x>=this.data.width&&(n=this.x-this.data.width))):this.position.endsWith("left")&&(n=this.x-this.data.width,n<0&&(n=0,this.x+this.width+this.data.width<=this.clientWidth&&(n=this.x+this.width))),{left:`${n}px`,top:`${e}px`}}},mounted(){this.calculatePosition(),window.addEventListener("scroll",this.calculatePosition),window.addEventListener("resize",this.calculatePosition)},beforeUnmount(){window.removeEventListener("scroll",this.calculatePosition),window.removeEventListener("resize",this.calculatePosition)},methods:{calculatePosition(){const e=this.$refs.dropdown.getBoundingClientRect(),n=this.$refs["dropdown-data"].getBoundingClientRect();this.clientHeight=document.documentElement.clientHeight,this.clientWidth=document.documentElement.clientWidth,this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height,this.data.x=n.x,this.data.y=n.y,this.data.width=n.width,this.data.height=n.height}}};function aq(e,n,a,i,r,s){return t.openBlock(),t.createElementBlock("span",{ref:"dropdown","data-testid":"dropdown-skeleton",class:t.normalizeClass(["dropdown",{active:s.active}])},[t.renderSlot(e.$slots,"default",{},void 0,!0),t.createElementVNode("div",{ref:"dropdown-data","data-testid":"dropdown-data",class:"dropdown-data",style:t.normalizeStyle({position:a.useAbsolutePosition?"absolute":"fixed",...s.positions})},[t.renderSlot(e.$slots,"inside",{width:`${r.width}px`,height:`${r.height}px`},void 0,!0)],4)],2)}const r2=z(tq,[["render",aq],["__scopeId","data-v-05c4ead6"]]),nq={name:"UnnnicSelectSmart",components:{TextInput:m0,SelectSmartOption:Gj,SelectSmartMultipleHeader:eq,DropdownSkeleton:r2,UnnnicIconLoading:wr},directives:{onClickOutside:rl},mixins:[$a],props:{options:{type:Array,required:!0,default:()=>[{value:"",label:"Initial value"},{value:"option1",label:"Option1"},{value:"option2",label:"Option2"}]},modelValue:{type:Array,default:()=>[]},size:{type:String,default:"md"},type:{type:String,default:"normal",validator(e){return["normal","error","secondary"].indexOf(e)!==-1}},disabled:{type:Boolean,default:null},orderedByIndex:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},multipleWithoutSelectsMessage:{type:String,default:""},autocomplete:{type:Boolean,default:!1},autocompleteIconLeft:{type:Boolean,default:!1},autocompleteClearOnFocus:{type:Boolean,default:!1},selectFirst:{type:Boolean,default:!0},placeholder:{type:String,default:null},isLoading:{type:Boolean,default:!1},enableSearchByValue:{type:Boolean,default:!1},multipleLimit:{type:[Number,null],default:null},infiniteScroll:{type:Boolean,default:!1},infiniteScrollDistance:{type:Number,default:10},infiniteScrollCanLoadMore:{type:Function,default:()=>!0},disableInternalFilter:{type:Boolean,default:!1}},emits:["update:searchValue","onChange","update:modelValue","onActiveChange","scroll-end"],data(){return{active:!1,status:"not-mounted",focusedOption:null,searchValue:"",isAutocompleteAllowed:!1,multipleSelectedsTags:2,infiniteScrollReset:null,infiniteScrollLoading:!1,defaultTranslations:{without_results:{"pt-br":"Nenhum resultado encontrado",en:"No results found",es:"Ningún resultado encontrado"}}}},computed:{selectedLabel(){var a;if(this.status!=="mounted")return"";const e=this.options.find(i=>{const r=i.value===this.modelValue;return this.isAutocompleteAllowed?r&&i.value!=="":i.value===""&&this.modelValue.length===0||r});return e?e.label:this.multiple?this.modelValue.map(r=>r.label).join(", "):((a=this.modelValue.at(-1))==null?void 0:a.label)||""},hasDescriptionOptions(){return this.options.some(e=>typeof e.description<"u")},autocompletePlaceholder(){if(this.isAutocompleteAllowed){const e=this.options.find(n=>n.value==="");if(e)return e.label}return""},inputValue(){const{isAutocompleteAllowed:e,searchValue:n,multiple:a,modelValue:i}=this;return e||a?n:!a&&i.length!==0?i==null?void 0:i[0].label:""}},watch:{active(e){this.$refs["dropdown-skeleton"].calculatePosition(),this.$emit("onActiveChange",e),this.$nextTick(()=>{if(e&&!this.multiple){const n=this.getOptionIndex("active");n!==-1&&this.scrollToOption(n,"center")}e&&this.infiniteScroll&&this.setupInfiniteScroll()})},searchValue(e,n){this.focusedOption=null,!this.active&&n&&(this.active=!0),this.$emit("update:searchValue",e)},modelValue:{deep:!0,handler(e){this.$emit("onChange",e),this.$emit("update:modelValue",e),this.onSelectOption(e.at(-1))}},autocomplete(e){this.multiple||(this.isAutocompleteAllowed=e)}},mounted(){var e,n,a,i,r;this.status="mounted",(this.multiple||this.autocomplete)&&(this.isAutocompleteAllowed=!0),(e=this.modelValue)!=null&&e[0]&&((n=this.modelValue)!=null&&n[0].value)?this.isAutocompleteAllowed&&this.$nextTick(()=>{this.searchValue=this.selectedLabel}):this.selectFirst&&((a=this.options)!=null&&a[0])&&((i=this.options)!=null&&i[0].value)&&this.selectOption((r=this.options)==null?void 0:r[0]),this.setupInfiniteScroll()},beforeUnmount(){this.infiniteScrollReset&&this.infiniteScrollReset()},methods:{setupInfiniteScroll(){this.infiniteScroll&&this.$nextTick(()=>{const e=this.$refs.selectSmartOptionsScrollArea;if(!e)return;const{reset:n}=Ju(e,()=>{this.infiniteScrollLoading||(this.infiniteScrollLoading=!0,this.$emit("scroll-end"))},{distance:this.infiniteScrollDistance,canLoadMore:()=>this.infiniteScrollCanLoadMore()&&!this.infiniteScrollLoading});this.infiniteScrollReset=n})},finishInfiniteScroll(){this.infiniteScrollLoading=!1},resetInfiniteScroll(){this.infiniteScrollLoading=!1,this.infiniteScrollReset&&this.infiniteScrollReset()},optionIsSelected(e){return this.modelValue.some(n=>n.value===e.value)},handleSelect(e){if(e){if(this.multiple&&this.optionIsSelected(e)&&!e.disableRemove){this.unselectOption(e);return}if(this.multiple&&e.disableRemove&&this.optionIsSelected(e)||this.multipleLimit&&this.modelValue.length>=this.multipleLimit)return;this.selectOption(e)}},handleClickInput(){if(this.isAutocompleteAllowed){if(this.active)return;(this.autocompleteClearOnFocus||this.multiple)&&(this.searchValue="")}this.active=!this.active},filterOptions(e){if(this.disableInternalFilter)return e;const a=this.searchValue.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").split(" "),i=d=>d.toString().toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,""),r=d=>{var c;return parseInt((c=d.match(/\d+/))==null?void 0:c[0],10)||0},s=e.filter(({value:d,label:c},_,g)=>{const h=i(c),F=g.findIndex(y=>y.value===d)===_,p=a.every(y=>{const w=h.includes(y),C=d.includes(y);return this.enableSearchByValue?w||C:w});return F&&p&&d});return this.orderedByIndex?s:s.sort((d,c)=>{const _=i(d.label),g=i(c.label),h=r(_),F=r(g);return h-F||_.localeCompare(g)})},onClickOutside(){this.active&&(this.isAutocompleteAllowed&&(this.searchValue=this.selectedLabel),this.$nextTick(()=>{this.active=!1}))},getOptionIndex(e){var i,r,s,l;const n=this.filterOptions(this.options);let a="";return e==="active"&&(a=(r=(i=this.modelValue)==null?void 0:i[0])==null?void 0:r.value),e==="focused"&&(a=((s=this.focusedOption)==null?void 0:s.value)||((l=this.modelValue.at(-1))==null?void 0:l.value)),n.findIndex(d=>d.value===a)},scrollToOption(e,n="nearest"){const a=this.$refs.selectSmartOptionsScrollArea;if(a&&e>=0&&e<a.childNodes.length){const i=a.childNodes[e];i instanceof HTMLElement&&(i==null||i.scrollIntoView({block:n}))}},selectOption(e){const n=e.value===null||e.value.length===0?null:e;this.$emit("update:modelValue",this.multiple?[...this.modelValue,n]:[n])},unselectOption(e){const n=this.modelValue.findIndex(a=>a.value===e.value);if(n!==-1){const a=this.modelValue;a.splice(n,1),this.$emit("update:modelValue",a)}this.multiple&&(this.searchValue="")},onSelectOption(e){if(this.$nextTick(()=>{this.multiple||(this.active=!1)}),this.isAutocompleteAllowed&&!this.multiple&&e&&e.label){this.searchValue=e.label;return}this.multiple&&(this.searchValue="")},async onKeyDownSelect(e){const{key:n}=e;if(["Escape","Enter","ArrowUp","ArrowDown"].includes(n)){e.preventDefault();const i=this.filterOptions(this.options),r=this.getOptionIndex("focused");let s;switch(n){case"Escape":this.active=!1,this.searchValue="";break;case"Enter":this.focusedOption&&this.active&&this.handleSelect(this.focusedOption),this.active||(this.active=!0);break;case"ArrowUp":case"ArrowDown":this.multiple&&!this.active&&(this.active=!0,await this.$nextTick()),s=n==="ArrowUp"?Math.max(r-1,0):Math.min(r+1,i.length-1),this.active||this.handleSelect(i[s]);break}s!==void 0&&this.active&&this.scrollToOption(s);const l=i[s===void 0?r:s];this.focusedOption=l}}}},iq={style:{overflow:"auto"}},rq={key:0,class:"unnnic-select-smart__options-infinite-loading"},oq={key:1,class:"unnnic-select-smart__options--no-results"};function sq(e,n,a,i,r,s){const l=t.resolveComponent("TextInput"),d=t.resolveComponent("SelectSmartMultipleHeader"),c=t.resolveComponent("UnnnicIconLoading"),_=t.resolveComponent("SelectSmartOption"),g=t.resolveComponent("DropdownSkeleton"),h=t.resolveDirective("on-click-outside");return t.withDirectives((t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["unnnic-select-smart",{"unnnic-select-smart--secondary":a.type==="secondary"}]),"data-testid":"select-smart",onKeydown:n[1]||(n[1]=(...F)=>s.onKeyDownSelect&&s.onKeyDownSelect(...F))},[t.createVNode(g,{ref:"dropdown-skeleton",type:"manual",modelValue:r.active||null,position:"bottom"},{inside:t.withCtx(F=>[r.active?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle({width:F.width}),class:t.normalizeClass({"unnnic-select-smart__options":!0,active:r.active,inactive:!r.active}),"data-testid":"options-container"},[t.createElementVNode("div",iq,[a.multiple?(t.openBlock(),t.createBlock(d,{key:0,selectedOptions:a.modelValue,withoutSelectsMessage:a.multipleWithoutSelectsMessage,locale:e.locale,translations:e.translations,onUnselectOption:s.unselectOption},null,8,["selectedOptions","withoutSelectsMessage","locale","translations","onUnselectOption"])):t.createCommentVNode("",!0),t.createElementVNode("div",{ref:"selectSmartOptionsScrollArea","data-testid":"options-scroll-area",class:t.normalizeClass(["unnnic-select-smart__options__scroll-area",`size-${a.size}`,{"with-descriptions":s.hasDescriptionOptions,"with-checkboxes":!!a.multiple}])},[a.isLoading?(t.openBlock(),t.createBlock(c,{key:0,class:"unnnic-select-smart__options-loading",scheme:"fg-base",size:"sm"})):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.filterOptions(a.options),(p,y)=>(t.openBlock(),t.createBlock(_,{key:p.value,"data-testid":"option",label:p.label,description:p.description,tabindex:y,size:a.size,active:p.value===a.modelValue||s.optionIsSelected(p),disabled:s.optionIsSelected(p)&&p.disableRemove,focused:r.focusedOption&&r.focusedOption.value===p.value,allowCheckbox:!!a.multiple,activeColor:a.type==="secondary"?"secondary":"primary",onClick:w=>s.handleSelect(p)},null,8,["label","description","tabindex","size","active","disabled","focused","allowCheckbox","activeColor","onClick"]))),128)),a.infiniteScroll&&r.infiniteScrollLoading?(t.openBlock(),t.createElementBlock("div",rq,[t.createVNode(c,{scheme:"fg-base",size:"sm"})])):t.createCommentVNode("",!0),s.filterOptions(a.options).length===0?(t.openBlock(),t.createElementBlock("p",oq,t.toDisplayString(e.i18n("without_results")),1)):t.createCommentVNode("",!0)],64))],2)])],6)):t.createCommentVNode("",!0)]),default:t.withCtx(()=>[t.createVNode(l,{ref:"selectSmartInput",class:t.normalizeClass(["unnnic-select-smart__input",{"unnnic-select-smart__input--secondary":a.type==="secondary"}]),"data-testid":"select-smart-input",modelValue:s.inputValue,placeholder:a.placeholder||s.autocompletePlaceholder||s.selectedLabel,type:a.type,size:a.size,disabled:a.disabled,readonly:!r.isAutocompleteAllowed,iconLeft:r.isAutocompleteAllowed&&a.autocompleteIconLeft?"search-1":"",iconRight:r.active?"keyboard_arrow_up":"keyboard_arrow_down",iconRightSize:"ant",onClick:t.withModifiers(s.handleClickInput,["stop"]),"onUpdate:modelValue":n[0]||(n[0]=F=>r.searchValue=F)},null,8,["class","modelValue","placeholder","type","size","disabled","readonly","iconLeft","iconRight","onClick"])]),_:1},8,["modelValue"])],34)),[[h,s.onClickOutside]])}const e1=z(nq,[["render",sq]]);function o2(e,n,a,i){const r=t.ref(!1),{width:s}=dy(a),l=t.computed(()=>`${s.value}px`),d=t.computed(()=>{var p;const h=e.options;if(!e.enableSearch||!e.search)return h;const F=((p=e.search)==null?void 0:p.toLowerCase())??"";return h.filter(y=>{const w=String(y[e.itemLabel]??"").toLowerCase().includes(F),C=String(y[e.itemValue]??"").toLowerCase().includes(F);return w||C})});function c(h){const{optionsLength:F,optionsLines:p,enableSearch:y,variant:w}=h;if(F===0)return"unset";if(w==="single"){const I=37*p,T=y?1:2,O=I+32+(4*p-T);return`${y?O+45+1:O}px`}const C=y?16:0,D=22*p+(24*p-2);return`${y?D+51+C:D}px`}const _=t.computed(()=>{var h;return c({optionsLength:((h=e.options)==null?void 0:h.length)??0,optionsLines:e.optionsLines,enableSearch:e.enableSearch,variant:n})}),g=t.computed(()=>{var p;const h=((p=d.value)==null?void 0:p.length)===0,F=_.value;return{overflow:"auto",display:"flex",flexDirection:"column",minHeight:F,maxHeight:h?"unset":F,height:h?F:"unset"}});return{openPopover:r,triggerRef:a,contentRef:i,inputWidthString:l,calculatedPopoverHeight:_,popoverContentCustomStyles:g,filteredOptions:d}}const lq="data-option-index";function s2(e,n,a){const{closeOnSelect:i=!0,closePopover:r,openPopoverRef:s}=a,l=t.ref(-1);function d(p,y="smooth",w="center"){t.nextTick(()=>{var q;const C=document.querySelector(`[${lq}="${p}"]`);(q=C==null?void 0:C.scrollIntoView)==null||q.call(C,{behavior:y,block:w})})}function c(p){if(!["ArrowUp","ArrowDown","Enter"].includes(p.key))return;p.preventDefault();const w=e();if(p.key==="ArrowUp"){if(l.value<=0)return;l.value--,d(l.value)}else if(p.key==="ArrowDown"){if(l.value>=w.length-1)return;l.value++,d(l.value)}else if(p.key==="Enter"&&l.value>=0&&w[l.value]){const C=w[l.value];if(C!=null&&C.disabled)return;n(C),i&&r()}}function _(p){s.value&&c(p)}function g(){document.addEventListener("keydown",_)}function h(){document.removeEventListener("keydown",_)}function F(){t.watch(s,p=>{p?t.nextTick(g):h()}),t.onBeforeUnmount(h)}return{focusedOptionIndex:l,scrollToOption:d,handleKeyDown:c,setupKeydownBinding:F}}const uq={class:"unnnic-select"},dq={key:0,class:"unnnic-select__trigger-label"},cq={class:"unnnic-select__trigger-content"},fq={key:1,class:"unnnic-select__content-no-results"},_q={key:0,class:"unnnic-select__infinite-loading"},t1=z(t.defineComponent({name:"UnnnicSelect",__name:"index",props:{modelValue:{},infiniteScroll:{type:Boolean,default:!1},infiniteScrollDistance:{default:10},infiniteScrollCanLoadMore:{type:Function,default:()=>!0},options:{},itemLabel:{default:"label"},itemValue:{default:"value"},placeholder:{default:""},label:{default:""},type:{default:"normal"},errors:{default:""},message:{default:""},size:{default:"md"},optionsLines:{default:5},enableSearch:{type:Boolean,default:!1},search:{default:""},locale:{default:"en"},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},returnObject:{type:Boolean,default:!1}},emits:["update:modelValue","update:search","scroll-end"],setup(e,{expose:n,emit:a}){const i=e,r=a,s=t.useSlots(),l=t.computed(()=>!!s.selected),d=t.useTemplateRef("selectInputRef"),c=t.useTemplateRef("contentRef"),_=o2(i,"single",d,c),g=_.openPopover,h=_.popoverContentCustomStyles,F=_.inputWidthString,p=_.filteredOptions;function y(Z){_.openPopover.value=Z}const w=t.computed(()=>i.returnObject?i.modelValue==null||i.modelValue===""?void 0:i.modelValue:i.options.find(Z=>Z[i.itemValue]===i.modelValue)),C=t.computed(()=>{var Z;return(Z=w.value)==null?void 0:Z[i.itemLabel]});function q(Z){var ce;Z[i.itemValue]===((ce=w.value)==null?void 0:ce[i.itemValue])||Z.disabled||(r("update:modelValue",i.returnObject?Z:Z[i.itemValue]),_.openPopover.value=!1)}const B=s2(()=>_.filteredOptions.value,q,{closeOnSelect:!0,closePopover:()=>_.openPopover.value=!1,openPopoverRef:_.openPopover});B.setupKeydownBinding();const D=B.focusedOptionIndex;t.watch(_.openPopover,()=>{if(!_.openPopover.value)P("");else{if(B.focusedOptionIndex.value=-1,i.modelValue){const Z=i.options.findIndex(ce=>{var X;return ce[i.itemValue]===((X=w.value)==null?void 0:X[i.itemValue])});B.scrollToOption(Z,"instant","center")}i.infiniteScroll&&t.nextTick(()=>I())}});const A=t.ref(null),S=t.ref(!1);function I(){i.infiniteScroll&&(A.value&&(A.value(),A.value=null),t.nextTick(()=>{const Z=_.contentRef.value;if(!Z)return;const{reset:ce}=Ju(Z,()=>{S.value||(S.value=!0,r("scroll-end"))},{distance:i.infiniteScrollDistance,canLoadMore:()=>i.infiniteScrollCanLoadMore()&&!S.value});A.value=ce}))}function T(){S.value=!1,_.openPopover.value&&i.infiniteScroll&&t.nextTick(()=>I())}function O(){S.value=!1,A.value&&A.value(),_.openPopover.value&&i.infiniteScroll&&t.nextTick(()=>I())}function P(Z){r("update:search",Z)}return t.onBeforeUnmount(()=>{A.value&&A.value()}),n({openPopover:g,setOpenPopover:y,filteredOptions:p,calculatedPopoverHeight:_.calculatedPopoverHeight,selectedItem:w,inputValue:C,infiniteScrollLoading:S,finishInfiniteScroll:T,resetInfiniteScroll:O}),(Z,ce)=>(t.openBlock(),t.createElementBlock("div",uq,[t.createVNode(t.unref(Dr),{open:t.unref(g),"onUpdate:open":y},{default:t.withCtx(()=>[t.createVNode(t.unref(Er),{class:"w-full"},{default:t.withCtx(()=>[l.value&&w.value?(t.openBlock(),t.createElementBlock("section",{key:0,ref_key:"selectInputRef",ref:d,class:"unnnic-select__trigger-wrapper"},[i.label?(t.openBlock(),t.createElementBlock("span",dq,t.toDisplayString(i.label),1)):t.createCommentVNode("",!0),t.createElementVNode("section",{class:t.normalizeClass(["unnnic-select__trigger",`unnnic-select__trigger--${i.size}`,{"unnnic-select__trigger--focused":t.unref(g),"unnnic-select__trigger--disabled":i.disabled}])},[t.createElementVNode("section",cq,[t.renderSlot(Z.$slots,"selected",{option:w.value,label:C.value},void 0,!0)]),i.clearable&&!i.disabled?(t.openBlock(),t.createBlock(fe,{key:0,class:"unnnic-select__trigger-clear",icon:"close",size:"ant",scheme:"fg-base",clickable:"",onClick:ce[0]||(ce[0]=t.withModifiers(X=>r("update:modelValue",""),["stop"]))})):t.createCommentVNode("",!0),t.createVNode(fe,{class:"unnnic-select__trigger-arrow",icon:t.unref(g)?"keyboard_arrow_up":"keyboard_arrow_down",size:"ant",scheme:"fg-base"},null,8,["icon"])],2)],512)):(t.openBlock(),t.createBlock(_n,{key:1,ref_key:"selectInputRef",ref:d,modelValue:C.value,class:"unnnic-select__input",readonly:"",useFocusProp:"",focus:t.unref(g),size:i.size,placeholder:i.placeholder,label:i.label,errors:i.errors,message:i.message,iconRight:t.unref(g)?"keyboard_arrow_up":"keyboard_arrow_down",disabled:i.disabled,showClear:!!w.value&&i.clearable,onClear:ce[1]||(ce[1]=X=>r("update:modelValue",""))},null,8,["modelValue","focus","size","placeholder","label","errors","message","iconRight","disabled","showClear"]))]),_:3}),t.createVNode(t.unref(Cr),{align:"start",class:t.normalizeClass("h-full"),style:t.normalizeStyle(t.unref(h)),width:t.unref(F)},{default:t.withCtx(()=>[t.createElementVNode("div",{ref_key:"contentRef",ref:c,class:"unnnic-select__content"},[i.enableSearch?(t.openBlock(),t.createBlock(_n,{key:0,class:"unnnic-select__input-search",modelValue:i.search,placeholder:Z.$t("search"),iconLeft:"search","onUpdate:modelValue":P},null,8,["modelValue","placeholder"])):t.createCommentVNode("",!0),t.unref(p).length===0?(t.openBlock(),t.createElementBlock("p",fq,t.toDisplayString(Z.$t("without_results")),1)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(p),(X,ye)=>{var De;return t.openBlock(),t.createBlock(t.unref(al),{key:X[i.itemValue],"data-option-index":ye,"data-testid":"select-option",label:X[i.itemLabel],active:X[i.itemValue]===((De=w.value)==null?void 0:De[i.itemValue]),focused:t.unref(D)===ye,disabled:X.disabled,onClick:pe=>q(X)},t.createSlots({_:2},[Z.$slots.option?{name:"default",fn:t.withCtx(()=>{var pe;return[t.renderSlot(Z.$slots,"option",{option:X,label:X[i.itemLabel],active:X[i.itemValue]===((pe=w.value)==null?void 0:pe[i.itemValue]),focused:t.unref(D)===ye,index:ye},void 0,!0)]}),key:"0"}:void 0]),1032,["data-option-index","label","active","focused","disabled","onClick"])}),128)),i.infiniteScroll&&S.value?(t.openBlock(),t.createElementBlock("div",_q,[t.createVNode(wr,{scheme:"fg-base",size:"sm"})])):t.createCommentVNode("",!0)],64))],512)]),_:3},8,["style","width"])]),_:3},8,["open"])]))}}),[["__scopeId","data-v-745da521"]]),gq={name:"UnnicSelectItem",props:{size:{type:String,default:""},selectable:{type:Boolean,default:!0},active:{type:Boolean,default:!1},textFocused:{type:Boolean,default:!1}}};function hq(e,n,a,i,r,s){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass({"unnnic-select-item":!0,"unnnic-select-item__active":a.active,"unnnic--clickable":a.selectable,"unnnic-select-item--selectable":a.selectable,"text-focused":a.textFocused}),onClick:n[0]||(n[0]=l=>e.$emit("click"))},[t.createElementVNode("span",{class:t.normalizeClass(["unnnic-select-item__label",`unnnic-select-item__label--${a.size}`])},[t.renderSlot(e.$slots,"default")],2)],2)}const a1=z(gq,[["render",hq]]),mq={class:t.normalizeClass(["unnnic-multi-select-option"])},Fq=z(t.defineComponent({name:"UnnnicMultiSelectOption",__name:"MultiSelectOption",props:{label:{},disabled:{type:Boolean,default:!1},active:{type:Boolean,default:!1},focused:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:n}){const a=n,i=e;return(r,s)=>(t.openBlock(),t.createElementBlock("div",mq,[t.createVNode(Br,{modelValue:i.active,disabled:i.disabled,label:i.label,"onUpdate:modelValue":s[0]||(s[0]=l=>a("update:modelValue",!i.active))},null,8,["modelValue","disabled","label"])]))}}),[["__scopeId","data-v-872f231b"]]),pq={class:"unnnic-multi-select"},bq={key:1,class:"unnnic-multi-select__content-no-results"},yq={key:2,class:"unnnic-multi-select__options"},n1=z(t.defineComponent({name:"UnnnicMultiSelect",__name:"index",props:{modelValue:{},options:{},itemLabel:{default:"label"},itemValue:{default:"value"},placeholder:{default:""},label:{default:""},type:{default:"normal"},errors:{default:""},message:{default:""},size:{default:"md"},optionsLines:{default:5},enableSearch:{type:Boolean,default:!1},search:{default:""},locale:{default:"en"},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},returnObject:{type:Boolean,default:!1}},emits:["update:modelValue","update:search"],setup(e,{expose:n,emit:a}){const i=e,r=a,s=t.useTemplateRef("multiSelectInputRef"),l=t.useTemplateRef("contentRef"),d=o2(i,"multi",s,l),c=d.openPopover,_=d.popoverContentCustomStyles,g=d.inputWidthString,h=d.filteredOptions;function F(A){d.openPopover.value=A}const p=t.computed(()=>{if(i.returnObject)return i.modelValue;const A=i.modelValue.slice();return i.options.filter(S=>A.includes(S[i.itemValue]))}),y=t.computed(()=>p.value.map(A=>A[i.itemLabel]).join(", "));function w(A){r("update:search",A)}function C(A){return i.returnObject?i.modelValue.some(S=>S[i.itemValue]===A[i.itemValue]):i.modelValue.includes(A[i.itemValue])}function q(A,S){if(S){const I=i.returnObject?[...i.modelValue,A]:[...i.modelValue,A[i.itemValue]];r("update:modelValue",I)}else{const I=i.returnObject?i.modelValue.filter(T=>T[i.itemValue]!==A[i.itemValue]):i.modelValue.filter(T=>T!==A[i.itemValue]);r("update:modelValue",I)}}const B=s2(()=>d.filteredOptions.value,A=>{if(A.disabled)return;const S=C(A);q(A,!S)},{closeOnSelect:!1,closePopover:()=>F(!1),openPopoverRef:d.openPopover});B.setupKeydownBinding();const D=B.focusedOptionIndex;return t.watch(c,()=>{d.openPopover.value?B.focusedOptionIndex.value=-1:w("")}),n({openPopover:c,setOpenPopover:F,filteredOptions:h,calculatedPopoverHeight:d.calculatedPopoverHeight,selectedItems:p,inputValue:y}),(A,S)=>(t.openBlock(),t.createElementBlock("div",pq,[t.createVNode(t.unref(Dr),{open:t.unref(c),"onUpdate:open":F},{default:t.withCtx(()=>[t.createVNode(t.unref(Er),{class:"w-full"},{default:t.withCtx(()=>[t.createVNode(_n,{ref_key:"multiSelectInputRef",ref:s,modelValue:y.value,class:"unnnic-multi-select__input",readonly:"",useFocusProp:"",focus:t.unref(c),size:i.size,placeholder:i.placeholder,label:i.label,errors:i.errors,message:i.message,iconRight:t.unref(c)?"keyboard_arrow_up":"keyboard_arrow_down",disabled:i.disabled,showClear:!!p.value.length&&i.clearable,onClear:S[0]||(S[0]=I=>r("update:modelValue",[]))},null,8,["modelValue","focus","size","placeholder","label","errors","message","iconRight","disabled","showClear"])]),_:1}),t.createVNode(t.unref(Cr),{align:"start",class:"h-full",style:t.normalizeStyle(t.unref(_)),width:t.unref(g)},{default:t.withCtx(()=>[t.createElementVNode("div",{ref_key:"contentRef",ref:l,class:"unnnic-multi-select__content"},[i.enableSearch?(t.openBlock(),t.createBlock(_n,{key:0,class:"unnnic-multi-select__input-search",modelValue:i.search,placeholder:A.$t("search"),iconLeft:"search","onUpdate:modelValue":w},null,8,["modelValue","placeholder"])):t.createCommentVNode("",!0),t.unref(h).length===0?(t.openBlock(),t.createElementBlock("p",bq,t.toDisplayString(A.$t("without_results")),1)):(t.openBlock(),t.createElementBlock("div",yq,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(h),(I,T)=>(t.openBlock(),t.createBlock(Fq,{key:String(I[i.itemValue]),"data-option-index":T,label:String(I[i.itemLabel]??""),active:C(I),focused:t.unref(D)===T,disabled:I.disabled,"onUpdate:modelValue":O=>q(I,O)},null,8,["data-option-index","label","active","focused","disabled","onUpdate:modelValue"]))),128))]))],512)]),_:1},8,["style","width"])]),_:1},8,["open"])]))}}),[["__scopeId","data-v-22e0f7f3"]]),kq={components:{UnnnicIcon:fe},props:{open:{type:Boolean,default:!1},title:{type:String}},data(){return{height:0,setHeightToNull:null}},watch:{open(e){clearTimeout(this.setHeightToNull),e?(this.height=`${this.$refs.content.scrollHeight}px`,this.setHeightToNull=setTimeout(()=>{this.height=null},200)):(this.height=`${this.$refs.content.scrollHeight}px`,setTimeout(()=>{this.height=0},0))}},mounted(){this.open&&(this.height=null)}},wq={class:"header"},Dq={class:"actions"};function Cq(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createElementBlock("div",{class:"unnnic-accordion",onClick:n[0]||(n[0]=d=>e.$emit("update:open",!a.open))},[t.createElementVNode("div",wq,[t.createVNode(l,{icon:a.open?"subtract-circle-1":"add-circle-1",scheme:"fg-base",size:"md"},null,8,["icon"]),t.createElementVNode("div",{class:t.normalizeClass(["title",{open:a.open}])},t.toDisplayString(a.title),3),t.withDirectives(t.createElementVNode("div",Dq,[t.renderSlot(e.$slots,"actions",{},void 0,!0)],512),[[t.vShow,a.open]])]),t.createElementVNode("div",{ref:"content",class:t.normalizeClass(["content",{open:a.open}]),style:t.normalizeStyle({height:r.height})},[t.renderSlot(e.$slots,"default",{},void 0,!0)],6)])}const i1=z(kq,[["render",Cq],["__scopeId","data-v-0943a5ba"]]),Eq={name:"UnnnicIndicator",props:{numberOfSteps:{type:Number,required:!0},titles:{type:Array,default:()=>[]},currentStep:{type:Number,default:0}},methods:{titleForStep(e){try{return this.titles[e-1]}catch{return null}}}},Aq={class:"weni-step-indicator"},Bq={class:"weni-step-indicator__label"};function xq(e,n,a,i,r,s){return t.openBlock(),t.createElementBlock("div",Aq,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.numberOfSteps,l=>(t.openBlock(),t.createElementBlock("div",{key:l,class:t.normalizeClass({"weni-step-indicator__step__wrapper":!0,"weni-step-indicator--has-separator":l>1})},[l!==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass({"weni-step-indicator__step__separator":!0,"weni-step-indicator__step__separator--active":l<=a.currentStep})},null,2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass({"weni-step-indicator__step":!0,"weni-step-indicator__step--active":l<=a.currentStep})},[t.createElementVNode("span",Bq,t.toDisplayString(s.titleForStep(l)),1)],2)],2))),128))])}const r1=z(Eq,[["render",xq],["__scopeId","data-v-cb023da6"]]),vq={"--skeleton-bg":"var(--unnnic-color-bg-muted)","--skeleton-highlight":"var(--unnnic-color-bg-base-soft)","--skeleton-duration":"2s"},Sq={name:"UnnnicSkeletonLoading",props:{prefix:{type:String,default:"unnnic"},count:{type:Number,default:1},duration:{type:Number,default:2},tag:{type:String,default:"span"},width:[String,Number],height:[String,Number],circle:{type:Boolean,default:!1},loading:{type:Boolean,default:void 0},direct:{type:Boolean}},setup(){const e=t.inject("_themeStyle",t.ref({...vq})),n=t.inject("_skeletonTheme",t.ref({}));return{themeStyle:e,theme:n}},computed:{classes(){return[`${this.prefix}-skeleton`,this.circle?`${this.prefix}-skeleton--circle`:""]},styles(){const e={};return e["--skeleton-bg"]=this.themeStyle["--skeleton-bg"],e["--skeleton-highlight"]=this.themeStyle["--skeleton-highlight"],e["--skeleton-duration"]=this.duration?`${this.duration}s`:"0s",this.width&&(e.width=this.width),this.height&&(e.height=this.height),e},elements(){return Array.from({length:this.count},()=>({}))},showLoading(){return typeof this.loading<"u"?this.loading:this.isEmptyVNode(this.$slots.default)}},methods:{isEmptyVNode(e){if(!e)return!0;const[n]=e();let a=n.children;return a&&(a=a.replace(/(\n|\r\n|\s)/g,"")),!a}}};function jq(e,n,a,i,r,s){return a.direct?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(a.tag),{key:0,class:t.normalizeClass(s.classes),style:t.normalizeStyle(s.styles)},null,8,["class","style"])):s.showLoading?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(a.tag),{key:1},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.elements,(l,d)=>(t.openBlock(),t.createElementBlock("span",{key:d,class:t.normalizeClass(s.classes),style:t.normalizeStyle(s.styles)}," ‌ ",6))),128))]),_:1})):t.createCommentVNode("",!0)}const o1=z(Sq,[["render",jq]]),qq={name:"UnnnicTagCarousel",components:{UnnnicTag:Ar,UnnnicIcon:fe},props:{modelValue:{type:Array,default(){return[]}},tagItems:{type:Array,default:()=>[]}},data(){return{hasNext:!0,hasPrev:!1,slides:[]}},mounted(){this.slides=this.tagItems},methods:{handleNext(){this.next()},handlePrevious(){this.previous()},save(e){let n=this.modelValue;this.checkIsInclude(e)?n=n.filter(a=>a!==e.id):n=[...n,e.id],this.$emit("selected",n)},checkIsInclude(e){return this.modelValue.some(n=>n===e.id)},next(){const e=document.querySelector("#scroll"),n=e.scrollWidth-e.clientWidth;e.scrollLeft+=200,n!==e.scrollLeft?(this.hasNext||(this.hasNext=!0),this.hasPrev=!0):this.hasNext=!1},previous(){const e=document.querySelector("#scroll");e.scrollLeft-=200,e.scrollLeft!==0?(this.hasPrev||(this.hasPrev=!0),this.hasNext=!0):this.hasPrev=!1}}},Iq={class:"unnnic-card-tag-carousel"},Nq={class:"unnnic-card-tag-carousel__button unnnic-card-tag-carousel__button--left"},Tq={class:"unnnic-card-tag-carousel__button__icon"},Oq={class:"unnnic-card-tag-carousel__button__blur unnnic-card-tag-carousel__button__blur--left"},Mq={id:"scroll",class:"unnnic-card-tag-carousel__container"},Pq={class:"unnnic-card-tag-carousel__button unnnic-card-tag-carousel__button--right"},Lq={class:"unnnic-card-tag-carousel__button__blur unnnic-card-tag-carousel__button__blur--right"},zq={class:"unnnic-card-tag-carousel__button__icon"};function Vq(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicIcon"),d=t.resolveComponent("UnnnicTag");return t.openBlock(),t.createElementBlock("div",Iq,[t.createElementVNode("div",Nq,[t.createElementVNode("div",Tq,[t.createVNode(l,{icon:"arrow-left-1-1",size:"sm",scheme:r.hasPrev?"fg-emphasized":"fg-muted",clickable:"",onClick:s.handlePrevious},null,8,["scheme","onClick"])]),t.withDirectives(t.createElementVNode("span",Oq,null,512),[[t.vShow,r.hasPrev]])]),t.createElementVNode("div",Mq,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.slides,c=>(t.openBlock(),t.createElementBlock("div",{key:c.id,class:"unnnic-card-tag-carousel__container__slide"},[t.createVNode(d,{text:c.name,clickable:"",type:"brand",disabled:s.checkIsInclude(c),class:"unnnic-card-tag-carousel__container__slide__item",onClick:_=>s.save(c)},null,8,["text","disabled","onClick"])]))),128))]),t.createElementVNode("div",Pq,[t.withDirectives(t.createElementVNode("span",Lq,null,512),[[t.vShow,r.hasNext]]),t.createElementVNode("div",zq,[t.createVNode(l,{icon:"arrow-right-1-1",size:"sm",scheme:r.hasNext?"fg-emphasized":"fg-muted",clickable:"",onClick:s.handleNext},null,8,["scheme","onClick"])])])])}const Rq=z(qq,[["render",Vq]]),Uq={name:"UnnnicCarousel",model:{event:"update:model-value"},props:{modelValue:{type:Array,default(){return[]}},type:{type:String,default:"brand",validator(e){return["brand"].indexOf(e)!==-1}},tagItems:{type:Array,default:()=>[]},name:{type:String,default:null},icon:{type:String,default:null},clickable:{type:Boolean,default:!1}},computed:{currentComponent(){return Rq}}};function Hq(e,n,a,i,r,s){return t.openBlock(),t.createBlock(t.resolveDynamicComponent(s.currentComponent),t.mergeProps({class:"unnnic-carousel-component"},e.$attrs,{name:a.name,clickable:a.clickable,tagItems:a.tagItems,modelValue:a.modelValue,onSelected:n[0]||(n[0]=l=>e.$emit("update:model-value",l))}),null,16,["name","clickable","tagItems","modelValue"])}const s1=z(Uq,[["render",Hq]]),Yq={components:{UnnnicIcon:fe,UnnnicToolTip:Xt},model:{prop:"activeTab",event:"change"},props:{size:{type:String,default:"md",validator:e=>["md","sm"].includes(e)},activeTab:{type:String,default:""},initialTab:{type:String,default:null},tabs:{type:Array,default:null,validator:e=>e.every(n=>typeof n=="string")&&e.length<=5},disabledTabs:{type:Array,default:null}},emits:["change"],data(){return{localValue:""}},computed:{tabPanelSlotName(){return`tab-panel-${this.localValue}`}},watch:{activeTab(){this.localValue=this.activeTab}},created(){const e=this.initialTab||this.activeTab||this.tabs&&this.tabs[0];this.change(e)},methods:{tabHeadSlotName(e){return`tab-head-${e}`},tabHeadTooltipSlotName(e){return e?`tab-head-${e}-tooltip`:""},getHeadTooltip(e){var a,i;const n=this.$slots[this.tabHeadTooltipSlotName(e)];return n?(i=(a=n())==null?void 0:a[0])==null?void 0:i.children:""},change(e){var n;(n=this.disabledTabs)!=null&&n.includes(e)||(this.localValue=e,this.$emit("change",this.localValue))}}},Gq={class:"tab-header"},Wq={class:"tab-content"},Qq=["onClick"],Xq={class:"tab-body"},Kq={class:"tab-panel"};function Zq(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicIcon"),d=t.resolveComponent("UnnnicToolTip");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["tab",`size-${a.size}`])},[t.createElementVNode("header",Gq,[t.createElementVNode("ul",Wq,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.tabs,c=>{var _;return t.openBlock(),t.createElementBlock("li",{key:c,class:t.normalizeClass(["tab-head",{"tab-head--active":r.localValue===c,"tab-head--disabled":(_=a.disabledTabs)==null?void 0:_.includes(c)}]),onClick:g=>s.change(c)},[t.renderSlot(e.$slots,s.tabHeadSlotName(c),{},()=>[t.createTextVNode(t.toDisplayString(c),1)],!0),s.getHeadTooltip(c)?(t.openBlock(),t.createBlock(d,{key:0,enabled:"",text:s.getHeadTooltip(c),side:"bottom"},{default:t.withCtx(()=>[t.createVNode(l,{icon:"help",size:a.size==="sm"?"xs":"sm",scheme:"fg-base"},null,8,["size"])]),_:2},1032,["text"])):t.createCommentVNode("",!0)],10,Qq)}),128))])]),t.createElementVNode("main",Xq,[t.createElementVNode("div",Kq,[t.renderSlot(e.$slots,s.tabPanelSlotName,{},void 0,!0)])])],2)}const l1=z(Yq,[["render",Zq],["__scopeId","data-v-2860998c"]]),Jq={components:{UnnnicIcon:fe},props:{modelValue:{type:[String,Number],required:!0},items:{type:Array,required:!0}},emits:["back","update:model-value","close-tab","add"]},$q={class:"unnnic-tabs-expanded"},eI=["onClick"],tI={"data-testid":"tab-description",class:"u font secondary body-sm color-fg-base"},aI={key:0,class:"close-container"};function nI(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createElementBlock("div",$q,[t.createElementVNode("div",{class:"back-container","data-testid":"back",onClick:n[0]||(n[0]=d=>e.$emit("back"))},[t.createVNode(l,{icon:"keyboard-arrow-left-1",scheme:"fg-base"})]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.items,d=>(t.openBlock(),t.createElementBlock("div",{key:d.value,class:"tab","data-testid":"tab",onClick:c=>e.$emit("update:model-value",d.value)},[t.createElementVNode("div",null,[t.createElementVNode("div",{class:t.normalizeClass(["u font secondary body-gt bold",d.value===a.modelValue?"color-brand-weni-soft":"color-fg-base"]),"data-testid":"tab-title"},t.toDisplayString(d.title),3),t.createElementVNode("div",tI,t.toDisplayString(d.description),1)]),d.value===a.modelValue?(t.openBlock(),t.createElementBlock("div",aI,[t.createVNode(l,{icon:"close-1",size:"xs",clickable:"",scheme:"fg-base","data-testid":"tab-close-icon",onClick:t.withModifiers(c=>e.$emit("close-tab",d),["stop"])},null,8,["onClick"])])):t.createCommentVNode("",!0)],8,eI))),128)),t.createElementVNode("div",{class:"add-container","data-testid":"tab-add",onClick:n[1]||(n[1]=d=>e.$emit("add"))},[t.createVNode(l,{icon:"add-1",scheme:"fg-base",size:"sm"})])])}const u1=z(Jq,[["render",nI],["__scopeId","data-v-a72bb16c"]]),iI={name:"UnnnicBanner",components:{UnnnicIcon:fe},props:{firstTitle:{type:String,default:null},secondTitle:{type:String,default:null},thirdTitle:{type:String,default:null},firstDescription:{type:String,default:null},secondDescription:{type:String,default:null},thirdDescription:{type:String,default:null},subtitle:{type:String,default:null},rating:{type:Number,default:0}},data(){return{tempRating:null,baseRating:this.rating}},methods:{emitRatingAction(e){this.$emit("ratingAction",e)},starScheme(e){return e<=this.baseRating?"feedback-yellow":"fg-base"},starOver(e){this.tempRating=this.baseRating,this.baseRating=e},starOut(){this.baseRating=this.tempRating}}},rI={class:"unnnic-banner-info"},oI={class:"unnnic-banner-info__section"},sI={class:"unnnic-banner-info__title"},lI={class:"unnnic-banner-info__description"},uI={class:"unnnic-banner-info__section"},dI={class:"unnnic-banner-info__title"},cI={class:"unnnic-banner-info__description"},fI={class:"unnnic-banner-info__subtitle"},_I={class:"unnnic-banner-info__section"},gI={class:"unnnic-banner-info__title"},hI={class:"unnnic-banner-info__description"},mI={class:"unnnic-banner-info__rating"};function FI(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createElementBlock("div",rI,[t.createElementVNode("section",oI,[t.createElementVNode("div",sI,t.toDisplayString(a.firstTitle),1),t.createElementVNode("div",lI,t.toDisplayString(a.firstDescription),1)]),n[0]||(n[0]=t.createElementVNode("div",{class:"unnnic-banner-info__divider"},null,-1)),t.createElementVNode("section",uI,[t.createElementVNode("div",dI,t.toDisplayString(a.secondTitle),1),t.createElementVNode("div",cI,t.toDisplayString(a.secondDescription),1),t.createElementVNode("div",fI,t.toDisplayString(a.subtitle),1)]),n[1]||(n[1]=t.createElementVNode("div",{class:"unnnic-banner-info__divider"},null,-1)),t.createElementVNode("section",_I,[t.createElementVNode("div",gI,t.toDisplayString(a.thirdTitle),1),t.createElementVNode("div",hI,t.toDisplayString(a.thirdDescription),1),t.createElementVNode("div",mI,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(5,d=>t.createVNode(l,{key:d,class:t.normalizeClass({"unnnic-banner-info__rating__star":!0,"unnnic-banner-info__rating__star__active":d<=r.baseRating}),scheme:s.starScheme(d),icon:"rating-star-1",size:"ant",onClick:c=>s.emitRatingAction(d),onMouseover:c=>s.starOver(d),onMouseout:s.starOut},null,8,["class","scheme","onClick","onMouseover","onMouseout"])),64))])])])}const l2=z(iI,[["render",FI]]),pI={name:"UnnnicBanner",props:{type:{type:String,default:"info",validator(e){return["info"].indexOf(e)!==-1}},firstTitle:{type:String,default:null},secondTitle:{type:String,default:null},thirdTitle:{type:String,default:null},firstDescription:{type:String,default:null},secondDescription:{type:String,default:null},thirdDescription:{type:String,default:null},subtitle:{type:String,default:null},rating:{type:Number,default:0}},computed:{currentComponent(){return this.type==="info",l2}},methods:{emitRatingAction(e){this.$emit("ratingAction",e)}}};function bI(e,n,a,i,r,s){return t.openBlock(),t.createBlock(t.resolveDynamicComponent(s.currentComponent),t.mergeProps({class:"unnnic-banner-component"},e.$attrs,{firstTitle:a.firstTitle,secondTitle:a.secondTitle,thirdTitle:a.thirdTitle,firstDescription:a.firstDescription,secondDescription:a.secondDescription,thirdDescription:a.thirdDescription,subtitle:a.subtitle,rating:a.rating}),null,16,["firstTitle","secondTitle","thirdTitle","firstDescription","secondDescription","thirdDescription","subtitle","rating"])}const d1=z(pI,[["render",bI]]),yI={name:"UnnnicComment",components:{},props:{title:{type:String,default:null},time:{type:String,default:null},text:{type:String,default:null}}},kI={class:"unnnic-comment"},wI={class:"unnnic-comment__avatar"},DI={class:"unnnic-comment__content"},CI={class:"unnnic-comment__content__header"},EI={class:"unnnic-comment__content__header__title"},AI={class:"unnnic-comment__content__header__time"},BI={class:"unnnic-comment__content__header__actions"},xI={class:"unnnic-comment__content__text"};function vI(e,n,a,i,r,s){return t.openBlock(),t.createElementBlock("div",kI,[t.createElementVNode("div",wI,[t.renderSlot(e.$slots,"avatar",{},void 0,!0)]),t.createElementVNode("div",DI,[t.createElementVNode("div",CI,[t.createElementVNode("div",EI,t.toDisplayString(a.title),1),t.createElementVNode("div",AI,t.toDisplayString(a.time),1),t.createElementVNode("div",BI,[t.renderSlot(e.$slots,"actions",{},void 0,!0)])]),t.createElementVNode("div",xI,t.toDisplayString(a.text),1)])])}const c1=z(yI,[["render",vI],["__scopeId","data-v-5925e703"]]),SI={name:"UnnnicBreadcrumb",components:{UnnnicIcon:fe},props:{crumbs:{type:Array,default:null,validator:e=>e.every(n=>n.name!==null)}},emits:["crumb-click"]},jI={class:"unnnic-breadcrumb"},qI=["data-test","onClick"];function II(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createElementBlock("div",jI,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.crumbs,(d,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:d.name},[t.createElementVNode("div",{class:t.normalizeClass({"unnnic-breadcrumb__container__link":!0,"unnnic-breadcrumb__container__link__active":c===a.crumbs.length-1}),"data-test":d.name,onClick:_=>e.$emit("crumb-click",d)},t.toDisplayString(d.name),11,qI),c!==a.crumbs.length-1?(t.openBlock(),t.createBlock(l,{key:0,"data-test":"right-icon",icon:"arrow-right-1-1",size:"xs",lineHeight:"md",class:"unnnic-breadcrumb__container__divider",scheme:"fg-base"})):t.createCommentVNode("",!0)],64))),128))])}const f1=z(SI,[["render",II],["__scopeId","data-v-b1be1eed"]]),NI={class:"unnnic-switch"},TI=["disabled","checked"],OI={key:1,class:"unnnic-switch__helper"},_1=z(t.defineComponent({name:"UnnnicSwitch",__name:"Switch",props:{size:{default:"medium"},label:{default:""},labelTooltip:{default:void 0},option:{default:""},helper:{default:""},textLeft:{default:""},textRight:{default:""},disabled:{type:Boolean,default:!1},modelValue:{type:Boolean,default:!1}},emits:["update:model-value"],setup(e,{emit:n}){const a=e,i=n,r=t.ref(a.modelValue);t.watch(()=>a.modelValue,l=>{l!==r.value&&(r.value=l)},{immediate:!0});function s(){a.disabled||(r.value=!r.value,i("update:model-value",r.value))}return(l,d)=>(t.openBlock(),t.createElementBlock("section",NI,[l.label?(t.openBlock(),t.createBlock(Ci,{key:0,label:l.label,tooltip:l.labelTooltip,class:"unnnic-switch__label"},null,8,["label","tooltip"])):t.createCommentVNode("",!0),t.createElementVNode("label",{class:t.normalizeClass(["unnnic-switch__input-wrapper",{"unnnic-switch__input-wrapper--disabled":l.disabled}])},[t.createElementVNode("input",t.mergeProps({class:"unnnic-switch__input",type:"checkbox",disabled:l.disabled,checked:l.modelValue},t.unref(Kt.pick)(l.$attrs,["id","name"]),{onChange:s}),null,16,TI),l.option||l.textLeft||l.textRight?(t.openBlock(),t.createElementBlock("p",{key:0,class:t.normalizeClass(["unnnic-switch__option",{"unnnic-switch__option--disabled":l.disabled}]),"data-testid":"switch-option"},[t.createTextVNode(t.toDisplayString(l.option)+" "+t.toDisplayString(l.textLeft)+" "+t.toDisplayString(l.textRight)+" ",1),t.renderSlot(l.$slots,"suffix",{},void 0,!0)],2)):t.createCommentVNode("",!0)],2),l.helper?(t.openBlock(),t.createElementBlock("p",OI,t.toDisplayString(l.helper),1)):t.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-ee5c330b"]]),MI={name:"UnnnicSlider",components:{UnnnicTooltip:Xt,UnnnicIcon:fe},props:{initialValue:{type:Number,default:0},showInputValue:{type:Boolean,default:!0},label:{type:String,default:""},labelInfo:{type:String,default:""},minValue:{type:Number,default:0},maxValue:{type:Number,default:5},step:{type:Number,default:1},minLabel:{type:String,default:""},maxLabel:{type:String,default:""}},data(){return{showTooltip:!1,sliderVal:this.initialValue,tooltipOffset:0,sliderWidth:0,labelWidth:0}},computed:{cssVars(){return{"--val":this.sliderVal,"--tooltip-offset":this.tooltipOffset,"--min":this.minValue,"--max":this.maxValue}}},watch:{sliderVal:{handler(){this.$nextTick(()=>{this.configureTooltip();const e=this.$refs["value-input"];e&&e.textContent!==this.sliderVal&&(this.$refs["value-input"].textContent=this.sliderVal)})},immediate:!0,deep:!0}},created(){window.addEventListener("resize",this.handleResize)},unmounted(){window.removeEventListener("resize",this.handleResize)},mounted(){this.checkInputWidth(),this.checkTooltipLabelWidth()},methods:{configureTooltip(){this.sliderWidth=this.$refs.input.clientWidth,this.labelWidth=this.$refs.tooltip.$refs.label.clientWidth,this.tooltipOffset=this.getNewTooltipPosition()},handleResize(){this.configureTooltip()},handleValueChange(){this.configureTooltip(),this.$emit("valueChange",this.sliderVal)},handleInput(e){this.sliderVal=e.target.value,this.handleValueChange()},checkInputWidth(){const e=setInterval(()=>{const n=this.$refs.input;if(n){const{offsetWidth:a}=n;a>0&&(this.sliderWidth=a,this.configureTooltip(),clearInterval(e))}},100)},checkTooltipLabelWidth(){const e=setInterval(()=>{var i;const n=(i=this.$refs.tooltip)==null?void 0:i.$refs.label;if(!n)return;const{clientWidth:a}=n;a>0&&(this.labelWidth=a,this.configureTooltip(),clearInterval(e))},100)},getNewTooltipPosition(){if(this.sliderWidth===0||this.labelWidth===0)return 0;const e=12/2,n=this.labelWidth/2||16,a=this.sliderWidth/2;let i=(this.sliderVal-this.minValue)/(this.maxValue-this.minValue);Number.isNaN(i)&&(i=0);const r=i*this.sliderWidth,d=(r-a)/a*e;return r-n-d}}},PI={class:"unnnic-label"},LI={key:0,class:"unnnic-slider__label"},zI={class:"unnnic-slider__content"},VI={class:"unnnic-slider__content__labels"},RI={class:"unnnic-slider__content__labels__min"},UI=["min","max","step"],HI={class:"unnnic-slider__content__labels__max"},YI=["value"];function GI(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicIcon"),d=t.resolveComponent("UnnnicTooltip");return t.openBlock(),t.createElementBlock("article",null,[t.createElementVNode("section",PI,[a.label?(t.openBlock(),t.createElementBlock("p",LI,t.toDisplayString(a.label),1)):t.createCommentVNode("",!0),a.labelInfo?(t.openBlock(),t.createBlock(d,{key:1,class:"unnnic-label__tooltip",text:a.labelInfo,enabled:"",side:"top"},{default:t.withCtx(()=>[t.createVNode(l,{class:"unnnic-label__tooltip__icon",icon:"info",size:"sm",scheme:"fg-base",filled:!0})]),_:1},8,["text"])):t.createCommentVNode("",!0)]),t.createElementVNode("section",{class:"unnnic-slider",style:t.normalizeStyle(s.cssVars)},[t.createElementVNode("section",zI,[t.createElementVNode("section",VI,[t.createElementVNode("span",RI,t.toDisplayString(a.minLabel),1),t.createVNode(d,{ref:"tooltip",class:"unnnic-slider__content__tooltip",text:r.sliderVal.toString(),forceOpen:!0,enabled:r.showTooltip,side:"top"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("input",{ref:"input","onUpdate:modelValue":n[0]||(n[0]=c=>r.sliderVal=c),class:"unnnic-slider__content__range-input",type:"range",min:a.minValue,max:a.maxValue,step:a.step,onChange:n[1]||(n[1]=(...c)=>s.handleValueChange&&s.handleValueChange(...c)),onMouseover:n[2]||(n[2]=c=>r.showTooltip=!0),onMouseleave:n[3]||(n[3]=c=>r.showTooltip=!1)},null,40,UI),[[t.vModelText,r.sliderVal]])]),_:1},8,["text","enabled"]),t.createElementVNode("span",HI,t.toDisplayString(a.maxLabel),1)])]),a.showInputValue?(t.openBlock(),t.createElementBlock("input",{key:0,ref:"value-input",class:"value-input",value:r.sliderVal,onInput:n[4]||(n[4]=(...c)=>s.handleInput&&s.handleInput(...c))},null,40,YI)):t.createCommentVNode("",!0)],4)])}const g1=z(MI,[["render",GI],["__scopeId","data-v-4d22fbdb"]]),WI={name:"UnnnicDataArea",components:{ToolTip:Xt},props:{title:{type:String,default:null},text:{type:String,default:null},enableHover:{type:Boolean,default:!1},hoverText:{type:String,default:""}}},QI={class:"data-area-container"},XI={class:"data-area-container__header"},KI={class:"data-area-container__header__title"},ZI={class:"data-area-container__header__links-slot"},JI={class:"data-area-container__content"},$I={class:"data-area-container__content__text"},eN={class:"data-area-container__content__buttons-slot"};function tN(e,n,a,i,r,s){const l=t.resolveComponent("ToolTip");return t.openBlock(),t.createElementBlock("div",QI,[t.createElementVNode("div",XI,[t.createElementVNode("div",KI,t.toDisplayString(a.title),1),t.createElementVNode("div",ZI,[t.renderSlot(e.$slots,"links",{},void 0,!0)])]),t.createElementVNode("div",JI,[t.createVNode(l,{enabled:a.enableHover,text:a.hoverText},{default:t.withCtx(()=>[t.createElementVNode("div",$I,t.toDisplayString(a.text),1)]),_:1},8,["enabled","text"]),t.createElementVNode("div",eN,[t.renderSlot(e.$slots,"buttons",{},void 0,!0)])])])}const h1=z(WI,[["render",tN],["__scopeId","data-v-532aa33d"]]),aN={components:{UnnnicButton:Dt},props:{modelValue:{type:Number,default:1},max:{type:Number,default:1},show:{type:Number,default:5},disabled:{type:Boolean,default:!1}},emits:["update:model-value"],data(){return{reference:3}},computed:{pages(){const e=[];for(let i=1;i<=this.max;i+=1)e.push(i);const n=this.show-4,a=this.max-n-3;if(this.reference>3){const i=this.reference-2,r=i>a?a:i;e.splice(1,r,"left-hidden")}if(this.reference<this.max-n-1){const i=this.max-n-this.reference,r=i>a?a:i;e.splice(-(r+1),r,"right-hidden")}return e},canPrevious(){return this.modelValue>1},canNext(){return this.modelValue<this.max}},created(){const e=this.modelValue;this.selectPage(e,!0),this.pages.includes(e)||this.setReference(e)},methods:{selectPage(e,n){if(e==="left-hidden"){const a=this.pages[this.pages.indexOf("left-hidden")+1]-1;n||this.$emit("update:model-value",a),this.setReference(a)}else if(e==="right-hidden"){const a=this.pages[this.pages.indexOf("right-hidden")-1]+1;n||this.$emit("update:model-value",a),this.pages.includes("left-hidden")?this.setReference(this.pages[this.pages.indexOf("left-hidden")+1]+1):this.setReference(4)}else n||this.$emit("update:model-value",e)},previousPage(){if(this.canPrevious){const e=this.modelValue-1;this.selectPage(e),this.pages.includes(e)||this.setReference(e)}},nextPage(){if(this.canNext){const e=this.modelValue+1;this.selectPage(e),this.pages.includes(e)||this.setReference(e)}},setReference(e){this.reference=e}}},nN={class:"pagination"};function iN(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicButton");return t.openBlock(),t.createElementBlock("div",nN,[t.createVNode(l,{type:"tertiary",size:"small",iconCenter:"arrow-left-1-1",disabled:!s.canPrevious||a.disabled,"data-test":"previous-button",onClick:s.previousPage},null,8,["disabled","onClick"]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.pages,(d,c)=>(t.openBlock(),t.createBlock(l,{key:c,type:d===a.modelValue?"secondary":"tertiary",size:"small",text:["left-hidden","right-hidden"].includes(d)?"...":String(d),disabled:a.disabled,"data-test":"page-button",onClick:_=>s.selectPage(d)},null,8,["type","text","disabled","onClick"]))),128)),t.createVNode(l,{type:"tertiary",size:"small",iconCenter:"arrow-right-1-1",disabled:!s.canNext||a.disabled,"data-test":"next-button",onClick:s.nextPage},null,8,["disabled","onClick"])])}const _l=z(aN,[["render",iN],["__scopeId","data-v-b2612197"]]),rN={name:"UnnnicDateFilter",components:{UnnnicInput:_n},props:{size:{type:String,default:"sm"},dateFormat:{type:String,default:"DD/MM/YYYY"},dateSeparator:{type:String,default:"~"},startDate:{type:Date,default:null},endDate:{type:Date,default:null},placeholder:{type:String,default:""}},computed:{dateRange(){let e="";if(this.startDate){const n=re(this.startDate).format(this.dateFormat.replaceAll("/",""));e+=n.toString()}if(this.endDate){const n=re(this.endDate).format(this.dateFormat.replaceAll("/",""));e+=n.toString()}return e},fullMask(){return`${this.maskedDateFormat} !${this.dateSeparator} ${this.maskedDateFormat}`},maskedDateFormat(){return this.dateFormat.replace(/D|M|Y/gi,"#")}},methods:{emitFilter(){this.$emit("filter")}}},oN={class:"unnnic-date-filter"};function sN(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicInput");return t.openBlock(),t.createElementBlock("div",oN,[t.createVNode(l,{class:"unnnic-date-filter__input",size:a.size,iconLeft:"notes-1",readonly:"",mask:s.fullMask,value:s.dateRange,placeholder:a.placeholder,onFocus:t.withModifiers(s.emitFilter,["stop"])},null,8,["size","mask","value","placeholder","onFocus"])])}const m1=z(rN,[["render",sN]]),lN={components:{UnnnicToolTip:Xt,UnnnicIcon:fe},props:{size:{type:String,default:"normal"},title:{type:String},titleColor:{type:String,default:"brand-weni-soft"},info:{type:String}},data(){return{isScrollable:!1}},mounted(){const e=this.$refs.description.scrollHeight-this.$refs.description.offsetHeight;this.isScrollable=e}},uN={class:"header"},dN={ref:"description",class:"description"},cN={key:0,class:"scrollable-gradient"};function fN(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicIcon"),d=t.resolveComponent("UnnnicToolTip");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["unnnic-chat-text",a.size])},[t.createElementVNode("div",uN,[t.createElementVNode("div",{class:t.normalizeClass(["title",a.titleColor])},[t.createTextVNode(t.toDisplayString(a.title)+" ",1),a.info?(t.openBlock(),t.createBlock(d,{key:0,side:"top",class:"info",text:a.info,enabled:""},{default:t.withCtx(()=>[t.createVNode(l,{class:"info__icon",icon:"info",size:"sm",scheme:"fg-base"})]),_:1},8,["text"])):t.createCommentVNode("",!0)],2),t.renderSlot(e.$slots,"actions",{},void 0,!0)]),t.createElementVNode("div",dN,[t.renderSlot(e.$slots,"description",{},void 0,!0),r.isScrollable?(t.openBlock(),t.createElementBlock("div",cN)):t.createCommentVNode("",!0)],512)],2)}const F1=z(lN,[["render",fN],["__scopeId","data-v-fa86c05f"]]),_N=["placeholder","maxlength","disabled","value"],p1=z(t.defineComponent({name:"UnnnicTextArea",__name:"TextArea",props:{size:{default:"md"},resize:{default:"vertical"},label:{default:""},placeholder:{default:""},modelValue:{default:""},maxLength:{default:void 0},message:{default:""},disabled:{type:Boolean,default:!1},type:{default:"normal"},tooltip:{default:void 0},errors:{default:()=>[]}},emits:["update:modelValue"],setup(e,{expose:n}){t.useCssVars(s=>({a63f65de:s.resize}));const a=e,i=t.computed(()=>Array.isArray(a.errors)?a.errors.join(", "):typeof a.errors=="string"?a.errors:""),r=t.ref(null);return n({focus:()=>{var s;(s=r.value)==null||s.focus()}}),(s,l)=>(t.openBlock(),t.createBlock(io,{label:s.label,size:s.size,disabled:s.disabled,message:s.message,tooltip:s.tooltip,error:i.value},t.createSlots({default:t.withCtx(()=>[t.createElementVNode("textarea",{ref_key:"textareaRef",ref:r,class:t.normalizeClass(["unnnic-text-area__textarea",[`unnnic-text-area__textarea--size-${s.size}`,`unnnic-text-area__textarea--type-${s.type}`]]),placeholder:t.unref(Jn)(s.placeholder),maxlength:s.maxLength,disabled:s.disabled,value:s.modelValue,onInput:l[0]||(l[0]=d=>{var c;return s.$emit("update:modelValue",t.unref(Jn)(((c=d.target)==null?void 0:c.value)??""))})},null,42,_N)]),_:2},[s.maxLength?{name:"rightMessage",fn:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(s.modelValue.length)+"/"+t.toDisplayString(s.maxLength),1)]),key:"0"}:void 0]),1032,["label","size","disabled","message","tooltip","error"]))}}),[["__scopeId","data-v-f10cd9b6"]]),gN={props:{description:{type:String,default:""},number:{type:String,default:""},fullSize:{type:Boolean,default:!1}}};function hN(e,n,a,i,r,s){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["unnnic-card-number",{"v-full":a.fullSize}])},[t.createElementVNode("h4",null,t.toDisplayString(a.description),1),t.createElementVNode("span",null,t.toDisplayString(a.number),1)],2)}const b1=z(gN,[["render",hN],["__scopeId","data-v-b36ba472"]]),mN={components:{},props:{modelValue:{type:Number,default:0},description:{type:String}},watch:{modelValue(){this.updateChartSvg()}},mounted(){this.updateChartSvg()},methods:{updateChartSvg(){function e(i,r,s,l){const d=(l-90)*Math.PI/180;return{x:i+s*Math.cos(d),y:r+s*Math.sin(d)}}function n(i,r,s,l,d,c){const _=s,g=l-s,h=e(i,r,_+g,c),F=e(i,r,_+g,d),p=c-d<=180?"0":"1";return["M",h.x,h.y,"A",_+g,_+g,0,p,0,F.x,F.y].join(" ")}const a=n(166,166,139.44,152.72,-85,85);this.$refs.background.setAttribute("d",a),this.$refs.front.setAttribute("d",n(166,166,139.44,152.72,-85,-85+this.modelValue/100*170))}}},FN={class:"unnnic-chart-rainbow"},pN={width:"332",height:"166",class:"semicircle"},bN={id:"path",ref:"background",fill:"none","stroke-linecap":"round",class:"background","stroke-width":"26.56px"},yN={id:"path",ref:"front",fill:"none","stroke-linecap":"round",class:"front","stroke-width":"26.56px"},kN={class:"content"},wN={class:"percentage"},DN={class:"number"},CN={key:0,class:"description"};function EN(e,n,a,i,r,s){return t.openBlock(),t.createElementBlock("div",FN,[(t.openBlock(),t.createElementBlock("svg",pN,[n[0]||(n[0]=t.createElementVNode("defs",{xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("linearGradient",{id:"paint0_linear_10224_36584",x1:"178",y1:"45",x2:"28",y2:"198",gradientUnits:"userSpaceOnUse"},[t.createElementVNode("stop",{"stop-color":"#00DED2"}),t.createElementVNode("stop",{offset:"1","stop-color":"#00DED2","stop-opacity":"0"})])],-1)),t.createElementVNode("path",bN,null,512),t.createElementVNode("path",yN,null,512)])),t.createElementVNode("div",kN,[t.createElementVNode("div",wN,[t.createElementVNode("span",DN,t.toDisplayString(a.modelValue),1),n[1]||(n[1]=t.createElementVNode("span",{class:"symbol"},"%",-1))]),a.description?(t.openBlock(),t.createElementBlock("div",CN,t.toDisplayString(a.description),1)):t.createCommentVNode("",!0)])])}const y1=z(mN,[["render",EN],["__scopeId","data-v-ae7c10f4"]]),AN={components:{UnnnicIcon:fe,UnnnicButton:Dt,UnnnicToolTip:Xt},props:{condensed:Boolean,groups:Array,fixedMaxValue:Number,title:String,description:String,updateText:String,previousDisabled:Boolean,nextDisabled:Boolean,showFooterLegend:Boolean},data(){return{colors:["aux-blue","aux-purple","aux-orange","aux-lemon","aux-pink","aux-baby-blue","aux-baby-yellow","aux-baby-red","aux-baby-green","aux-baby-pink"]}},computed:{legends(){return this.groups.map(({values:e})=>Object.keys(e)).flat().filter((e,n,a)=>a.indexOf(e)===n)},maxValue(){return this.fixedMaxValue||Math.max(...this.groups.map(({values:e})=>Object.values(e)).flat())}},methods:{value(e){return this.maxValue<=1?e.toFixed(1):String(Math.ceil(e))}}},BN={key:0,class:"header"},xN={key:0,class:"content"},vN={key:1,class:"description unnnic-font secondary body-gt color-fg-base"},SN={key:1,class:"actions"},jN={key:0,class:"unnnic-font secondary body-md color-fg-base"},qN={key:1,class:"navigation-container"},IN={class:"main"},NN={class:"reference"},TN={class:"values"},ON={class:"groups"},MN={class:"bars"},PN={class:"title unnnic-font secondary body-md color-fg-muted"},LN={key:1,class:"footer"},zN={class:"unnnic-font secondary body-gt color-fg-base"};function VN(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicIcon"),d=t.resolveComponent("UnnnicButton"),c=t.resolveComponent("UnnnicToolTip");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["unnnic-chart-bar",{condensed:a.condensed}])},[a.title||a.description||e.$attrs.update||e.$attrs.previous||e.$attrs.next?(t.openBlock(),t.createElementBlock("div",BN,[a.title||a.description?(t.openBlock(),t.createElementBlock("div",xN,[a.title?(t.openBlock(),t.createElementBlock("div",{key:0,class:"title unnnic-font bold title-sm color-fg-emphasized",onClick:n[0]||(n[0]=_=>e.$emit("update"))},t.toDisplayString(a.title),1)):t.createCommentVNode("",!0),a.description?(t.openBlock(),t.createElementBlock("div",vN,t.toDisplayString(a.description),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),e.$attrs.update||e.$attrs.previous||e.$attrs.next?(t.openBlock(),t.createElementBlock("div",SN,[e.$attrs.update?(t.openBlock(),t.createElementBlock("div",{key:0,class:"update-button",onClick:n[1]||(n[1]=_=>e.$emit("update"))},[t.createVNode(l,{icon:"button-refresh-arrow-1",size:"sm",scheme:"fg-emphasized"}),a.updateText?(t.openBlock(),t.createElementBlock("span",jN,t.toDisplayString(a.updateText),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),e.$attrs.previous||e.$attrs.next?(t.openBlock(),t.createElementBlock("div",qN,[e.$attrs.previous?(t.openBlock(),t.createBlock(d,{key:0,size:"small",type:"tertiary",iconCenter:"arrow-left-1-1",disabled:a.previousDisabled,onClick:n[2]||(n[2]=_=>e.$emit("previous"))},null,8,["disabled"])):t.createCommentVNode("",!0),e.$attrs.next?(t.openBlock(),t.createBlock(d,{key:1,size:"small",type:"tertiary",iconCenter:"arrow-right-1-1",disabled:a.nextDisabled,onClick:n[3]||(n[3]=_=>e.$emit("next"))},null,8,["disabled"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",IN,[t.createElementVNode("div",NN,[t.createElementVNode("div",TN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList([s.value(s.maxValue),s.value(s.maxValue/2),s.value(0)],(_,g)=>(t.openBlock(),t.createElementBlock("div",{key:g,class:"value unnnic-font secondary body-md color-fg-muted"},t.toDisplayString(_),1))),128))]),n[4]||(n[4]=t.createElementVNode("div",{class:"unnnic-font secondary body-md color-fg-muted"}," ",-1))]),t.createElementVNode("div",ON,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.groups,(_,g)=>(t.openBlock(),t.createElementBlock("div",{key:g,class:"group"},[t.createElementVNode("div",MN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.legends.map((h,F)=>({legend:h,index:F})).filter(({legend:h})=>_.values[h]),({legend:h,index:F})=>(t.openBlock(),t.createBlock(c,{key:F,enabled:"",text:`${_.title}: ${_.values[h]}
65
+ */const BA="9.14.5";function xA(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Ln().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Ln().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Ln().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ln().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ln().__INTLIFY_PROD_DEVTOOLS__=!1)}const wm=ra.__EXTEND_POINT__,Vn=Hs(wm),wt={FALLBACK_TO_ROOT:wm,NOT_SUPPORTED_PRESERVE:Vn(),NOT_SUPPORTED_FORMATTER:Vn(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:Vn(),NOT_SUPPORTED_GET_CHOICE_INDEX:Vn(),COMPONENT_NAME_LEGACY_COMPATIBLE:Vn(),NOT_FOUND_PARENT_SCOPE:Vn(),IGNORE_OBJ_FLATTEN:Vn(),NOTICE_DROP_ALLOW_COMPOSITION:Vn(),NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG:Vn()},vA={[wt.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[wt.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[wt.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[wt.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[wt.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[wt.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[wt.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[wt.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[wt.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze",[wt.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]:"'translateExistCompatible' option will be dropped in the next major version."};function da(e,...n){return Z0(vA[e],...n)}const Dm=Gt.__EXTEND_POINT__,ca=Hs(Dm),Je={UNEXPECTED_RETURN_TYPE:Dm,INVALID_ARGUMENT:ca(),MUST_BE_CALL_SETUP_TOP:ca(),NOT_INSTALLED:ca(),NOT_AVAILABLE_IN_LEGACY_MODE:ca(),REQUIRED_VALUE:ca(),INVALID_VALUE:ca(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:ca(),NOT_INSTALLED_WITH_PROVIDE:ca(),UNEXPECTED_ERROR:ca(),NOT_COMPATIBLE_LEGACY_VUE_I18N:ca(),BRIDGE_SUPPORT_VUE_2_ONLY:ca(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:ca(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:ca(),__EXTEND_POINT__:ca()};function Rt(e,...n){return mr(e,null,process.env.NODE_ENV!=="production"?{messages:SA,args:n}:void 0)}const SA={[Je.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[Je.INVALID_ARGUMENT]:"Invalid argument",[Je.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[Je.NOT_INSTALLED]:"Need to install with `app.use` function",[Je.UNEXPECTED_ERROR]:"Unexpected error",[Je.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[Je.REQUIRED_VALUE]:"Required in value: {0}",[Je.INVALID_VALUE]:"Invalid value",[Je.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[Je.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[Je.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[Je.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[Je.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",[Je.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},cd=pn("__translateVNode"),fd=pn("__datetimeParts"),_d=pn("__numberParts"),Ii=pn("__enableEmitter"),yo=pn("__disableEmitter"),Cm=pn("__setPluralRules"),Em=pn("__injectWithOption"),gd=pn("__dispose");function ko(e){if(!Qe(e)||ja(e))return e;for(const n in e)if(Za(e,n))if(!n.includes("."))Qe(e[n])&&ko(e[n]);else{const a=n.split("."),i=a.length-1;let r=e,s=!1;for(let l=0;l<i;l++){if(a[l]==="__proto__")throw new Error(`unsafe key: ${a[l]}`);if(a[l]in r||(r[a[l]]=dt()),!Qe(r[a[l]])){process.env.NODE_ENV!=="production"&&Mt(da(wt.IGNORE_OBJ_FLATTEN,{key:a[l]})),s=!0;break}r=r[a[l]]}if(s||(ja(r)?Lh.includes(a[i])||delete e[n]:(r[a[i]]=e[n],delete e[n])),!ja(r)){const l=r[a[i]];Qe(l)&&ko(l)}}return e}function $s(e,n){const{messages:a,__i18n:i,messageResolver:r,flatJson:s}=n,l=ve(a)?a:mt(i)?dt():{[e]:dt()};if(mt(i)&&i.forEach(d=>{if("locale"in d&&"resource"in d){const{locale:c,resource:_}=d;c?(l[c]=l[c]||dt(),Gs(_,l[c])):Gs(_,l)}else se(d)&&Gs(JSON.parse(d),l)}),r==null&&s)for(const d in l)Za(l,d)&&ko(l[d]);return l}function Am(e){return e.type}function Bm(e,n,a){let i=Qe(n.messages)?n.messages:dt();"__i18nGlobal"in a&&(i=$s(e.locale.value,{messages:i,__i18n:a.__i18nGlobal}));const r=Object.keys(i);r.length&&r.forEach(s=>{e.mergeLocaleMessage(s,i[s])});{if(Qe(n.datetimeFormats)){const s=Object.keys(n.datetimeFormats);s.length&&s.forEach(l=>{e.mergeDateTimeFormat(l,n.datetimeFormats[l])})}if(Qe(n.numberFormats)){const s=Object.keys(n.numberFormats);s.length&&s.forEach(l=>{e.mergeNumberFormat(l,n.numberFormats[l])})}}}function xm(e){return t.createVNode(t.Text,null,e,0)}const vm="__INTLIFY_META__",Sm=()=>[],jA=()=>!1;let jm=0;function qm(e){return(n,a,i,r)=>e(a,i,t.getCurrentInstance()||void 0,r)}const qA=()=>{const e=t.getCurrentInstance();let n=null;return e&&(n=Am(e)[vm])?{[vm]:n}:null};function hd(e={},n){const{__root:a,__injectWithOption:i}=e,r=a===void 0,s=e.flatJson,l=Ka?t.ref:t.shallowRef,d=!!e.translateExistCompatible;process.env.NODE_ENV!=="production"&&d&&Fh(da(wt.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));let c=Le(e.inheritLocale)?e.inheritLocale:!0;const _=l(a&&c?a.locale.value:se(e.locale)?e.locale:br),g=l(a&&c?a.fallbackLocale.value:se(e.fallbackLocale)||mt(e.fallbackLocale)||ve(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:_.value),h=l($s(_.value,e)),F=l(ve(e.datetimeFormats)?e.datetimeFormats:{[_.value]:{}}),p=l(ve(e.numberFormats)?e.numberFormats:{[_.value]:{}});let y=a?a.missingWarn:Le(e.missingWarn)||li(e.missingWarn)?e.missingWarn:!0,w=a?a.fallbackWarn:Le(e.fallbackWarn)||li(e.fallbackWarn)?e.fallbackWarn:!0,C=a?a.fallbackRoot:Le(e.fallbackRoot)?e.fallbackRoot:!0,q=!!e.fallbackFormat,B=ct(e.missing)?e.missing:null,D=ct(e.missing)?qm(e.missing):null,A=ct(e.postTranslation)?e.postTranslation:null,S=a?a.warnHtmlMessage:Le(e.warnHtmlMessage)?e.warnHtmlMessage:!0,I=!!e.escapeParameter;const T=a?a.modifiers:ve(e.modifiers)?e.modifiers:{};let O=e.pluralRules||a&&a.pluralRules,P;P=(()=>{r&&em(null);const U={version:BA,locale:_.value,fallbackLocale:g.value,messages:h.value,modifiers:T,pluralRules:O,missing:D===null?void 0:D,missingWarn:y,fallbackWarn:w,fallbackFormat:q,unresolving:!0,postTranslation:A===null?void 0:A,warnHtmlMessage:S,escapeParameter:I,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};U.datetimeFormats=F.value,U.numberFormats=p.value,U.__datetimeFormatters=ve(P)?P.__datetimeFormatters:void 0,U.__numberFormatters=ve(P)?P.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(U.__v_emitter=ve(P)?P.__v_emitter:void 0);const ee=lA(U);return r&&em(ee),ee})(),bo(P,_.value,g.value);function ce(){return[_.value,g.value,h.value,F.value,p.value]}const X=t.computed({get:()=>_.value,set:U=>{_.value=U,P.locale=_.value}}),ye=t.computed({get:()=>g.value,set:U=>{g.value=U,P.fallbackLocale=g.value,bo(P,_.value,U)}}),De=t.computed(()=>h.value),pe=t.computed(()=>F.value),oe=t.computed(()=>p.value);function qe(){return ct(A)?A:null}function te(U){A=U,P.postTranslation=U}function et(){return B}function vt(U){U!==null&&(D=qm(U)),B=U,P.missing=D}function st(U,ee){return U!=="translate"||!ee.resolvedMessage}const Bt=(U,ee,Ve,_t,Lt,en)=>{ce();let Ta;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(P.fallbackContext=a?sA():void 0),Ta=U(P)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(P.fallbackContext=void 0)}if(Ve!=="translate exists"&&It(Ta)&&Ta===Ks||Ve==="translate exists"&&!Ta){const[Ut,yn]=ee();if(process.env.NODE_ENV!=="production"&&a&&se(Ut)&&st(Ve,yn)&&(C&&(Js(w,Ut)||am(y,Ut))&&Mt(da(wt.FALLBACK_TO_ROOT,{key:Ut,type:Ve})),process.env.NODE_ENV!=="production")){const{__v_emitter:Rn}=P;Rn&&C&&Rn.emit("fallback",{type:Ve,key:Ut,to:"global",groupId:`${Ve}:${Ut}`})}return a&&C?_t(a):Lt(Ut)}else{if(en(Ta))return Ta;throw Rt(Je.UNEXPECTED_RETURN_TYPE)}};function ft(...U){return Bt(ee=>Reflect.apply(dm,null,[ee,...U]),()=>sd(...U),"translate",ee=>Reflect.apply(ee.t,ee,[...U]),ee=>ee,ee=>se(ee))}function gt(...U){const[ee,Ve,_t]=U;if(_t&&!Qe(_t))throw Rt(Je.INVALID_ARGUMENT);return ft(ee,Ve,Zt({resolvedMessage:!0},_t||{}))}function St(...U){return Bt(ee=>Reflect.apply(hm,null,[ee,...U]),()=>ld(...U),"datetime format",ee=>Reflect.apply(ee.d,ee,[...U]),()=>Zs,ee=>se(ee))}function W(...U){return Bt(ee=>Reflect.apply(pm,null,[ee,...U]),()=>ud(...U),"number format",ee=>Reflect.apply(ee.n,ee,[...U]),()=>Zs,ee=>se(ee))}function ae(U){return U.map(ee=>se(ee)||It(ee)||Le(ee)?xm(String(ee)):ee)}const ie={normalize:ae,interpolate:U=>U,type:"vnode"};function J(...U){return Bt(ee=>{let Ve;const _t=ee;try{_t.processor=ie,Ve=Reflect.apply(dm,null,[_t,...U])}finally{_t.processor=null}return Ve},()=>sd(...U),"translate",ee=>ee[cd](...U),ee=>[xm(ee)],ee=>mt(ee))}function Se(...U){return Bt(ee=>Reflect.apply(pm,null,[ee,...U]),()=>ud(...U),"number format",ee=>ee[_d](...U),Sm,ee=>se(ee)||mt(ee))}function xe(...U){return Bt(ee=>Reflect.apply(hm,null,[ee,...U]),()=>ld(...U),"datetime format",ee=>ee[fd](...U),Sm,ee=>se(ee)||mt(ee))}function Xe(U){O=U,P.pluralRules=O}function H(U,ee){return Bt(()=>{if(!U)return!1;const Ve=se(ee)?ee:_.value,_t=$e(Ve),Lt=P.messageResolver(_t,U);return d?Lt!=null:ja(Lt)||qa(Lt)||se(Lt)},()=>[U],"translate exists",Ve=>Reflect.apply(Ve.te,Ve,[U,ee]),jA,Ve=>Le(Ve))}function ke(U){let ee=null;const Ve=Yh(P,g.value,_.value);for(let _t=0;_t<Ve.length;_t++){const Lt=h.value[Ve[_t]]||{},en=P.messageResolver(Lt,U);if(en!=null){ee=en;break}}return ee}function rt(U){const ee=ke(U);return ee??(a?a.tm(U)||{}:{})}function $e(U){return h.value[U]||{}}function he(U,ee){if(s){const Ve={[U]:ee};for(const _t in Ve)Za(Ve,_t)&&ko(Ve[_t]);ee=Ve[U]}h.value[U]=ee,P.messages=h.value}function ze(U,ee){h.value[U]=h.value[U]||{};const Ve={[U]:ee};if(s)for(const _t in Ve)Za(Ve,_t)&&ko(Ve[_t]);ee=Ve[U],Gs(ee,h.value[U]),P.messages=h.value}function v(U){return F.value[U]||{}}function N(U,ee){F.value[U]=ee,P.datetimeFormats=F.value,Fm(P,U,ee)}function Y(U,ee){F.value[U]=Zt(F.value[U]||{},ee),P.datetimeFormats=F.value,Fm(P,U,ee)}function ue(U){return p.value[U]||{}}function Ue(U,ee){p.value[U]=ee,P.numberFormats=p.value,ym(P,U,ee)}function Oe(U,ee){p.value[U]=Zt(p.value[U]||{},ee),P.numberFormats=p.value,ym(P,U,ee)}jm++,a&&Ka&&(t.watch(a.locale,U=>{c&&(_.value=U,P.locale=U,bo(P,_.value,g.value))}),t.watch(a.fallbackLocale,U=>{c&&(g.value=U,P.fallbackLocale=U,bo(P,_.value,g.value))}));const Ge={id:jm,locale:X,fallbackLocale:ye,get inheritLocale(){return c},set inheritLocale(U){c=U,U&&a&&(_.value=a.locale.value,g.value=a.fallbackLocale.value,bo(P,_.value,g.value))},get availableLocales(){return Object.keys(h.value).sort()},messages:De,get modifiers(){return T},get pluralRules(){return O||{}},get isGlobal(){return r},get missingWarn(){return y},set missingWarn(U){y=U,P.missingWarn=y},get fallbackWarn(){return w},set fallbackWarn(U){w=U,P.fallbackWarn=w},get fallbackRoot(){return C},set fallbackRoot(U){C=U},get fallbackFormat(){return q},set fallbackFormat(U){q=U,P.fallbackFormat=q},get warnHtmlMessage(){return S},set warnHtmlMessage(U){S=U,P.warnHtmlMessage=U},get escapeParameter(){return I},set escapeParameter(U){I=U,P.escapeParameter=U},t:ft,getLocaleMessage:$e,setLocaleMessage:he,mergeLocaleMessage:ze,getPostTranslationHandler:qe,setPostTranslationHandler:te,getMissingHandler:et,setMissingHandler:vt,[Cm]:Xe};return Ge.datetimeFormats=pe,Ge.numberFormats=oe,Ge.rt=gt,Ge.te=H,Ge.tm=rt,Ge.d=St,Ge.n=W,Ge.getDateTimeFormat=v,Ge.setDateTimeFormat=N,Ge.mergeDateTimeFormat=Y,Ge.getNumberFormat=ue,Ge.setNumberFormat=Ue,Ge.mergeNumberFormat=Oe,Ge[Em]=i,Ge[cd]=J,Ge[fd]=xe,Ge[_d]=Se,process.env.NODE_ENV!=="production"&&(Ge[Ii]=U=>{P.__v_emitter=U},Ge[yo]=()=>{P.__v_emitter=void 0}),Ge}function IA(e){const n=se(e.locale)?e.locale:br,a=se(e.fallbackLocale)||mt(e.fallbackLocale)||ve(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:n,i=ct(e.missing)?e.missing:void 0,r=Le(e.silentTranslationWarn)||li(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,s=Le(e.silentFallbackWarn)||li(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,l=Le(e.fallbackRoot)?e.fallbackRoot:!0,d=!!e.formatFallbackMessages,c=ve(e.modifiers)?e.modifiers:{},_=e.pluralizationRules,g=ct(e.postTranslation)?e.postTranslation:void 0,h=se(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,F=!!e.escapeParameterHtml,p=Le(e.sync)?e.sync:!0;process.env.NODE_ENV!=="production"&&e.formatter&&Mt(da(wt.NOT_SUPPORTED_FORMATTER)),process.env.NODE_ENV!=="production"&&e.preserveDirectiveContent&&Mt(da(wt.NOT_SUPPORTED_PRESERVE_DIRECTIVE));let y=e.messages;if(ve(e.sharedMessages)){const I=e.sharedMessages;y=Object.keys(I).reduce((O,P)=>{const Z=O[P]||(O[P]={});return Zt(Z,I[P]),O},y||{})}const{__i18n:w,__root:C,__injectWithOption:q}=e,B=e.datetimeFormats,D=e.numberFormats,A=e.flatJson,S=e.translateExistCompatible;return{locale:n,fallbackLocale:a,messages:y,flatJson:A,datetimeFormats:B,numberFormats:D,missing:i,missingWarn:r,fallbackWarn:s,fallbackRoot:l,fallbackFormat:d,modifiers:c,pluralRules:_,postTranslation:g,warnHtmlMessage:h,escapeParameter:F,messageResolver:e.messageResolver,inheritLocale:p,translateExistCompatible:S,__i18n:w,__root:C,__injectWithOption:q}}function md(e={},n){{const a=hd(IA(e)),{__extender:i}=e,r={id:a.id,get locale(){return a.locale.value},set locale(s){a.locale.value=s},get fallbackLocale(){return a.fallbackLocale.value},set fallbackLocale(s){a.fallbackLocale.value=s},get messages(){return a.messages.value},get datetimeFormats(){return a.datetimeFormats.value},get numberFormats(){return a.numberFormats.value},get availableLocales(){return a.availableLocales},get formatter(){return process.env.NODE_ENV!=="production"&&Mt(da(wt.NOT_SUPPORTED_FORMATTER)),{interpolate(){return[]}}},set formatter(s){process.env.NODE_ENV!=="production"&&Mt(da(wt.NOT_SUPPORTED_FORMATTER))},get missing(){return a.getMissingHandler()},set missing(s){a.setMissingHandler(s)},get silentTranslationWarn(){return Le(a.missingWarn)?!a.missingWarn:a.missingWarn},set silentTranslationWarn(s){a.missingWarn=Le(s)?!s:s},get silentFallbackWarn(){return Le(a.fallbackWarn)?!a.fallbackWarn:a.fallbackWarn},set silentFallbackWarn(s){a.fallbackWarn=Le(s)?!s:s},get modifiers(){return a.modifiers},get formatFallbackMessages(){return a.fallbackFormat},set formatFallbackMessages(s){a.fallbackFormat=s},get postTranslation(){return a.getPostTranslationHandler()},set postTranslation(s){a.setPostTranslationHandler(s)},get sync(){return a.inheritLocale},set sync(s){a.inheritLocale=s},get warnHtmlInMessage(){return a.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(s){a.warnHtmlMessage=s!=="off"},get escapeParameterHtml(){return a.escapeParameter},set escapeParameterHtml(s){a.escapeParameter=s},get preserveDirectiveContent(){return process.env.NODE_ENV!=="production"&&Mt(da(wt.NOT_SUPPORTED_PRESERVE_DIRECTIVE)),!0},set preserveDirectiveContent(s){process.env.NODE_ENV!=="production"&&Mt(da(wt.NOT_SUPPORTED_PRESERVE_DIRECTIVE))},get pluralizationRules(){return a.pluralRules||{}},__composer:a,t(...s){const[l,d,c]=s,_={};let g=null,h=null;if(!se(l))throw Rt(Je.INVALID_ARGUMENT);const F=l;return se(d)?_.locale=d:mt(d)?g=d:ve(d)&&(h=d),mt(c)?g=c:ve(c)&&(h=c),Reflect.apply(a.t,a,[F,g||h||{},_])},rt(...s){return Reflect.apply(a.rt,a,[...s])},tc(...s){const[l,d,c]=s,_={plural:1};let g=null,h=null;if(!se(l))throw Rt(Je.INVALID_ARGUMENT);const F=l;return se(d)?_.locale=d:It(d)?_.plural=d:mt(d)?g=d:ve(d)&&(h=d),se(c)?_.locale=c:mt(c)?g=c:ve(c)&&(h=c),Reflect.apply(a.t,a,[F,g||h||{},_])},te(s,l){return a.te(s,l)},tm(s){return a.tm(s)},getLocaleMessage(s){return a.getLocaleMessage(s)},setLocaleMessage(s,l){a.setLocaleMessage(s,l)},mergeLocaleMessage(s,l){a.mergeLocaleMessage(s,l)},d(...s){return Reflect.apply(a.d,a,[...s])},getDateTimeFormat(s){return a.getDateTimeFormat(s)},setDateTimeFormat(s,l){a.setDateTimeFormat(s,l)},mergeDateTimeFormat(s,l){a.mergeDateTimeFormat(s,l)},n(...s){return Reflect.apply(a.n,a,[...s])},getNumberFormat(s){return a.getNumberFormat(s)},setNumberFormat(s,l){a.setNumberFormat(s,l)},mergeNumberFormat(s,l){a.mergeNumberFormat(s,l)},getChoiceIndex(s,l){return process.env.NODE_ENV!=="production"&&Mt(da(wt.NOT_SUPPORTED_GET_CHOICE_INDEX)),-1}};return r.__extender=i,process.env.NODE_ENV!=="production"&&(r.__enableEmitter=s=>{const l=a;l[Ii]&&l[Ii](s)},r.__disableEmitter=()=>{const s=a;s[yo]&&s[yo]()}),r}}const Fd={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function NA({slots:e},n){return n.length===1&&n[0]==="default"?(e.default?e.default():[]).reduce((i,r)=>[...i,...r.type===t.Fragment?r.children:[r]],[]):n.reduce((a,i)=>{const r=e[i];return r&&(a[i]=r()),a},dt())}function Im(e){return t.Fragment}const pd=t.defineComponent({name:"i18n-t",props:Zt({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>It(e)||!isNaN(e)}},Fd),setup(e,n){const{slots:a,attrs:i}=n,r=e.i18n||wd({useScope:e.scope,__useComponent:!0});return()=>{const s=Object.keys(a).filter(h=>h!=="_"),l=dt();e.locale&&(l.locale=e.locale),e.plural!==void 0&&(l.plural=se(e.plural)?+e.plural:e.plural);const d=NA(n,s),c=r[cd](e.keypath,d,l),_=Zt(dt(),i),g=se(e.tag)||Qe(e.tag)?e.tag:Im();return t.h(g,_,c)}}});function TA(e){return mt(e)&&!se(e[0])}function Nm(e,n,a,i){const{slots:r,attrs:s}=n;return()=>{const l={part:!0};let d=dt();e.locale&&(l.locale=e.locale),se(e.format)?l.key=e.format:Qe(e.format)&&(se(e.format.key)&&(l.key=e.format.key),d=Object.keys(e.format).reduce((F,p)=>a.includes(p)?Zt(dt(),F,{[p]:e.format[p]}):F,dt()));const c=i(e.value,l,d);let _=[l.key];mt(c)?_=c.map((F,p)=>{const y=r[F.type],w=y?y({[F.type]:F.value,index:p,parts:c}):[F.value];return TA(w)&&(w[0].key=`${F.type}-${p}`),w}):se(c)&&(_=[c]);const g=Zt(dt(),s),h=se(e.tag)||Qe(e.tag)?e.tag:Im();return t.h(h,g,_)}}const Tm=t.defineComponent({name:"i18n-n",props:Zt({value:{type:Number,required:!0},format:{type:[String,Object]}},Fd),setup(e,n){const a=e.i18n||wd({useScope:e.scope,__useComponent:!0});return Nm(e,n,bm,(...i)=>a[_d](...i))}}),Om=t.defineComponent({name:"i18n-d",props:Zt({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Fd),setup(e,n){const a=e.i18n||wd({useScope:e.scope,__useComponent:!0});return Nm(e,n,mm,(...i)=>a[fd](...i))}});function OA(e,n){const a=e;if(e.mode==="composition")return a.__getInstance(n)||e.global;{const i=a.__getInstance(n);return i!=null?i.__composer:e.global.__composer}}function MA(e){const n=l=>{const{instance:d,modifiers:c,value:_}=l;if(!d||!d.$)throw Rt(Je.UNEXPECTED_ERROR);const g=OA(e,d.$);process.env.NODE_ENV!=="production"&&c.preserve&&Mt(da(wt.NOT_SUPPORTED_PRESERVE));const h=Mm(_);return[Reflect.apply(g.t,g,[...Pm(h)]),g]};return{created:(l,d)=>{const[c,_]=n(d);Ka&&e.global===_&&(l.__i18nWatcher=t.watch(_.locale,()=>{d.instance&&d.instance.$forceUpdate()})),l.__composer=_,l.textContent=c},unmounted:l=>{Ka&&l.__i18nWatcher&&(l.__i18nWatcher(),l.__i18nWatcher=void 0,delete l.__i18nWatcher),l.__composer&&(l.__composer=void 0,delete l.__composer)},beforeUpdate:(l,{value:d})=>{if(l.__composer){const c=l.__composer,_=Mm(d);l.textContent=Reflect.apply(c.t,c,[...Pm(_)])}},getSSRProps:l=>{const[d]=n(l);return{textContent:d}}}}function Mm(e){if(se(e))return{path:e};if(ve(e)){if(!("path"in e))throw Rt(Je.REQUIRED_VALUE,"path");return e}else throw Rt(Je.INVALID_VALUE)}function Pm(e){const{path:n,locale:a,args:i,choice:r,plural:s}=e,l={},d=i||{};return se(a)&&(l.locale=a),It(r)&&(l.plural=r),It(s)&&(l.plural=s),[n,d,l]}function PA(e,n,...a){const i=ve(a[0])?a[0]:{},r=!!i.useI18nComponentName,s=Le(i.globalInstall)?i.globalInstall:!0;process.env.NODE_ENV!=="production"&&s&&r&&Mt(da(wt.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:pd.name})),s&&([r?"i18n":pd.name,"I18nT"].forEach(l=>e.component(l,pd)),[Tm.name,"I18nN"].forEach(l=>e.component(l,Tm)),[Om.name,"I18nD"].forEach(l=>e.component(l,Om))),e.directive("t",MA(n))}const bd={"vue-devtools-plugin-vue-i18n":"Vue I18n devtools","vue-i18n-resource-inspector":"I18n Resources","vue-i18n-timeline":"Vue I18n"},LA={"vue-i18n-resource-inspector":"Search for scopes ..."},zA={"vue-i18n-timeline":16764185},Lm="vue-i18n: composer properties";let yd;async function VA(e,n){return new Promise((a,i)=>{try{AA({id:"vue-devtools-plugin-vue-i18n",label:bd["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:[Lm],app:e},r=>{yd=r,r.on.visitComponentTree(({componentInstance:l,treeNode:d})=>{RA(l,d,n)}),r.on.inspectComponent(({componentInstance:l,instanceData:d})=>{l.vnode.el&&l.vnode.el.__VUE_I18N__&&d&&(n.mode==="legacy"?l.vnode.el.__VUE_I18N__!==n.global.__composer&&Vm(d,l.vnode.el.__VUE_I18N__):Vm(d,l.vnode.el.__VUE_I18N__))}),r.addInspector({id:"vue-i18n-resource-inspector",label:bd["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:LA["vue-i18n-resource-inspector"]}),r.on.getInspectorTree(l=>{l.app===e&&l.inspectorId==="vue-i18n-resource-inspector"&&WA(l,n)});const s=new Map;r.on.getInspectorState(async l=>{if(l.app===e&&l.inspectorId==="vue-i18n-resource-inspector")if(r.unhighlightElement(),XA(l,n),l.nodeId==="global"){if(!s.has(l.app)){const[d]=await r.getComponentInstances(l.app);s.set(l.app,d)}r.highlightElement(s.get(l.app))}else{const d=QA(l.nodeId,n);d&&r.highlightElement(d)}}),r.on.editInspectorState(l=>{l.app===e&&l.inspectorId==="vue-i18n-resource-inspector"&&ZA(l,n)}),r.addTimelineLayer({id:"vue-i18n-timeline",label:bd["vue-i18n-timeline"],color:zA["vue-i18n-timeline"]}),a(!0)})}catch(r){console.error(r),i(!1)}})}function zm(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function RA(e,n,a){const i=a.mode==="composition"?a.global:a.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==i){const r={label:`i18n (${zm(e)} Scope)`,textColor:0,backgroundColor:16764185};n.tags.push(r)}}function Vm(e,n){const a=Lm;e.state.push({type:a,key:"locale",editable:!0,value:n.locale.value}),e.state.push({type:a,key:"availableLocales",editable:!1,value:n.availableLocales}),e.state.push({type:a,key:"fallbackLocale",editable:!0,value:n.fallbackLocale.value}),e.state.push({type:a,key:"inheritLocale",editable:!0,value:n.inheritLocale}),e.state.push({type:a,key:"messages",editable:!1,value:kd(n.messages.value)}),e.state.push({type:a,key:"datetimeFormats",editable:!1,value:n.datetimeFormats.value}),e.state.push({type:a,key:"numberFormats",editable:!1,value:n.numberFormats.value})}function kd(e){const n={};return Object.keys(e).forEach(a=>{const i=e[a];ct(i)&&"source"in i?n[a]=GA(i):ja(i)&&i.loc&&i.loc.source?n[a]=i.loc.source:Qe(i)?n[a]=kd(i):n[a]=i}),n}const UA={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function HA(e){return e.replace(/[<>"&]/g,YA)}function YA(e){return UA[e]||e}function GA(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${HA(e.source)}")`:"(?)"}`}}}function WA(e,n){e.rootNodes.push({id:"global",label:"Global Scope"});const a=n.mode==="composition"?n.global:n.global.__composer;for(const[i,r]of n.__instances){const s=n.mode==="composition"?r:r.__composer;a!==s&&e.rootNodes.push({id:s.id.toString(),label:`${zm(i)} Scope`})}}function QA(e,n){let a=null;if(e!=="global"){for(const[i,r]of n.__instances.entries())if(r.id.toString()===e){a=i;break}}return a}function Rm(e,n){if(e==="global")return n.mode==="composition"?n.global:n.global.__composer;{const a=Array.from(n.__instances.values()).find(i=>i.id.toString()===e);return a?n.mode==="composition"?a:a.__composer:null}}function XA(e,n){const a=Rm(e.nodeId,n);return a&&(e.state=KA(a)),null}function KA(e){const n={},a="Locale related info",i=[{type:a,key:"locale",editable:!0,value:e.locale.value},{type:a,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:a,key:"availableLocales",editable:!1,value:e.availableLocales},{type:a,key:"inheritLocale",editable:!0,value:e.inheritLocale}];n[a]=i;const r="Locale messages info",s=[{type:r,key:"messages",editable:!1,value:kd(e.messages.value)}];n[r]=s;{const l="Datetime formats info",d=[{type:l,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];n[l]=d;const c="Datetime formats info",_=[{type:c,key:"numberFormats",editable:!1,value:e.numberFormats.value}];n[c]=_}return n}function wo(e,n){if(yd){let a;n&&"groupId"in n&&(a=n.groupId,delete n.groupId),yd.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:a,time:Date.now(),meta:{},data:n||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function ZA(e,n){const a=Rm(e.nodeId,n);if(a){const[i]=e.path;i==="locale"&&se(e.state.value)?a.locale.value=e.state.value:i==="fallbackLocale"&&(se(e.state.value)||mt(e.state.value)||Qe(e.state.value))?a.fallbackLocale.value=e.state.value:i==="inheritLocale"&&Le(e.state.value)&&(a.inheritLocale=e.state.value)}}function JA(e,n,a){return{beforeCreate(){const i=t.getCurrentInstance();if(!i)throw Rt(Je.UNEXPECTED_ERROR);const r=this.$options;if(r.i18n){const s=r.i18n;if(r.__i18n&&(s.__i18n=r.__i18n),s.__root=n,this===this.$root)this.$i18n=Um(e,s);else{s.__injectWithOption=!0,s.__extender=a.__vueI18nExtend,this.$i18n=md(s);const l=this.$i18n;l.__extender&&(l.__disposer=l.__extender(this.$i18n))}}else if(r.__i18n)if(this===this.$root)this.$i18n=Um(e,r);else{this.$i18n=md({__i18n:r.__i18n,__injectWithOption:!0,__extender:a.__vueI18nExtend,__root:n});const s=this.$i18n;s.__extender&&(s.__disposer=s.__extender(this.$i18n))}else this.$i18n=e;r.__i18nGlobal&&Bm(n,r,r),this.$t=(...s)=>this.$i18n.t(...s),this.$rt=(...s)=>this.$i18n.rt(...s),this.$tc=(...s)=>this.$i18n.tc(...s),this.$te=(s,l)=>this.$i18n.te(s,l),this.$d=(...s)=>this.$i18n.d(...s),this.$n=(...s)=>this.$i18n.n(...s),this.$tm=s=>this.$i18n.tm(s),a.__setInstance(i,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$el&&this.$i18n){const i=this.$i18n;this.$el.__VUE_I18N__=i.__composer;const r=this.__v_emitter=J0();i.__enableEmitter&&i.__enableEmitter(r),r.on("*",wo)}},unmounted(){const i=t.getCurrentInstance();if(!i)throw Rt(Je.UNEXPECTED_ERROR);const r=this.$i18n;process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",wo),delete this.__v_emitter),this.$i18n&&(r.__disableEmitter&&r.__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,r.__disposer&&(r.__disposer(),delete r.__disposer,delete r.__extender),a.__deleteInstance(i),delete this.$i18n}}}function Um(e,n){e.locale=n.locale||e.locale,e.fallbackLocale=n.fallbackLocale||e.fallbackLocale,e.missing=n.missing||e.missing,e.silentTranslationWarn=n.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=n.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=n.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=n.postTranslation||e.postTranslation,e.warnHtmlInMessage=n.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=n.escapeParameterHtml||e.escapeParameterHtml,e.sync=n.sync||e.sync,e.__composer[Cm](n.pluralizationRules||e.pluralizationRules);const a=$s(e.locale,{messages:n.messages,__i18n:n.__i18n});return Object.keys(a).forEach(i=>e.mergeLocaleMessage(i,a[i])),n.datetimeFormats&&Object.keys(n.datetimeFormats).forEach(i=>e.mergeDateTimeFormat(i,n.datetimeFormats[i])),n.numberFormats&&Object.keys(n.numberFormats).forEach(i=>e.mergeNumberFormat(i,n.numberFormats[i])),e}const $A=pn("global-vue-i18n");function eB(e={},n){const a=__VUE_I18N_LEGACY_API__&&Le(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,i=Le(e.globalInjection)?e.globalInjection:!0,r=__VUE_I18N_LEGACY_API__&&a?!!e.allowComposition:!0,s=new Map,[l,d]=tB(e,a),c=pn(process.env.NODE_ENV!=="production"?"vue-i18n":"");process.env.NODE_ENV!=="production"&&a&&r&&Mt(da(wt.NOTICE_DROP_ALLOW_COMPOSITION));function _(F){return s.get(F)||null}function g(F,p){s.set(F,p)}function h(F){s.delete(F)}{const F={get mode(){return __VUE_I18N_LEGACY_API__&&a?"legacy":"composition"},get allowComposition(){return r},async install(p,...y){if(process.env.NODE_ENV!=="production"&&(p.__VUE_I18N__=F),p.__VUE_I18N_SYMBOL__=c,p.provide(p.__VUE_I18N_SYMBOL__,F),ve(y[0])){const q=y[0];F.__composerExtend=q.__composerExtend,F.__vueI18nExtend=q.__vueI18nExtend}let w=null;!a&&i&&(w=dB(p,F.global)),__VUE_I18N_FULL_INSTALL__&&PA(p,F,...y),__VUE_I18N_LEGACY_API__&&a&&p.mixin(JA(d,d.__composer,F));const C=p.unmount;if(p.unmount=()=>{w&&w(),F.dispose(),C()},process.env.NODE_ENV!=="production"){if(!await VA(p,F))throw Rt(Je.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const B=J0();if(a){const D=d;D.__enableEmitter&&D.__enableEmitter(B)}else{const D=d;D[Ii]&&D[Ii](B)}B.on("*",wo)}},get global(){return d},dispose(){l.stop()},__instances:s,__getInstance:_,__setInstance:g,__deleteInstance:h};return F}}function wd(e={}){const n=t.getCurrentInstance();if(n==null)throw Rt(Je.MUST_BE_CALL_SETUP_TOP);if(!n.isCE&&n.appContext.app!=null&&!n.appContext.app.__VUE_I18N_SYMBOL__)throw Rt(Je.NOT_INSTALLED);const a=aB(n),i=iB(a),r=Am(n),s=nB(e,r);if(__VUE_I18N_LEGACY_API__&&a.mode==="legacy"&&!e.__useComponent){if(!a.allowComposition)throw Rt(Je.NOT_AVAILABLE_IN_LEGACY_MODE);return lB(n,s,i,e)}if(s==="global")return Bm(i,e,r),i;if(s==="parent"){let c=rB(a,n,e.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&Mt(da(wt.NOT_FOUND_PARENT_SCOPE)),c=i),c}const l=a;let d=l.__getInstance(n);if(d==null){const c=Zt({},e);"__i18n"in r&&(c.__i18n=r.__i18n),i&&(c.__root=i),d=hd(c),l.__composerExtend&&(d[gd]=l.__composerExtend(d)),sB(l,n,d),l.__setInstance(n,d)}return d}function tB(e,n,a){const i=t.effectScope();{const r=__VUE_I18N_LEGACY_API__&&n?i.run(()=>md(e)):i.run(()=>hd(e));if(r==null)throw Rt(Je.UNEXPECTED_ERROR);return[i,r]}}function aB(e){{const n=t.inject(e.isCE?$A:e.appContext.app.__VUE_I18N_SYMBOL__);if(!n)throw Rt(e.isCE?Je.NOT_INSTALLED_WITH_PROVIDE:Je.UNEXPECTED_ERROR);return n}}function nB(e,n){return Us(e)?"__i18n"in n?"local":"global":e.useScope?e.useScope:"local"}function iB(e){return e.mode==="composition"?e.global:e.global.__composer}function rB(e,n,a=!1){let i=null;const r=n.root;let s=oB(n,a);for(;s!=null;){const l=e;if(e.mode==="composition")i=l.__getInstance(s);else if(__VUE_I18N_LEGACY_API__){const d=l.__getInstance(s);d!=null&&(i=d.__composer,a&&i&&!i[Em]&&(i=null))}if(i!=null||r===s)break;s=s.parent}return i}function oB(e,n=!1){return e==null?null:n&&e.vnode.ctx||e.parent}function sB(e,n,a){let i=null;t.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&n.vnode.el){n.vnode.el.__VUE_I18N__=a,i=J0();const r=a;r[Ii]&&r[Ii](i),i.on("*",wo)}},n),t.onUnmounted(()=>{const r=a;process.env.NODE_ENV!=="production"&&n.vnode.el&&n.vnode.el.__VUE_I18N__&&(i&&i.off("*",wo),r[yo]&&r[yo](),delete n.vnode.el.__VUE_I18N__),e.__deleteInstance(n);const s=r[gd];s&&(s(),delete r[gd])},n)}function lB(e,n,a,i={}){const r=n==="local",s=t.shallowRef(null);if(r&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw Rt(Je.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const l=Le(i.inheritLocale)?i.inheritLocale:!se(i.locale),d=t.ref(!r||l?a.locale.value:se(i.locale)?i.locale:br),c=t.ref(!r||l?a.fallbackLocale.value:se(i.fallbackLocale)||mt(i.fallbackLocale)||ve(i.fallbackLocale)||i.fallbackLocale===!1?i.fallbackLocale:d.value),_=t.ref($s(d.value,i)),g=t.ref(ve(i.datetimeFormats)?i.datetimeFormats:{[d.value]:{}}),h=t.ref(ve(i.numberFormats)?i.numberFormats:{[d.value]:{}}),F=r?a.missingWarn:Le(i.missingWarn)||li(i.missingWarn)?i.missingWarn:!0,p=r?a.fallbackWarn:Le(i.fallbackWarn)||li(i.fallbackWarn)?i.fallbackWarn:!0,y=r?a.fallbackRoot:Le(i.fallbackRoot)?i.fallbackRoot:!0,w=!!i.fallbackFormat,C=ct(i.missing)?i.missing:null,q=ct(i.postTranslation)?i.postTranslation:null,B=r?a.warnHtmlMessage:Le(i.warnHtmlMessage)?i.warnHtmlMessage:!0,D=!!i.escapeParameter,A=r?a.modifiers:ve(i.modifiers)?i.modifiers:{},S=i.pluralRules||r&&a.pluralRules;function I(){return[d.value,c.value,_.value,g.value,h.value]}const T=t.computed({get:()=>s.value?s.value.locale.value:d.value,set:H=>{s.value&&(s.value.locale.value=H),d.value=H}}),O=t.computed({get:()=>s.value?s.value.fallbackLocale.value:c.value,set:H=>{s.value&&(s.value.fallbackLocale.value=H),c.value=H}}),P=t.computed(()=>s.value?s.value.messages.value:_.value),Z=t.computed(()=>g.value),ce=t.computed(()=>h.value);function X(){return s.value?s.value.getPostTranslationHandler():q}function ye(H){s.value&&s.value.setPostTranslationHandler(H)}function De(){return s.value?s.value.getMissingHandler():C}function pe(H){s.value&&s.value.setMissingHandler(H)}function oe(H){return I(),H()}function qe(...H){return s.value?oe(()=>Reflect.apply(s.value.t,null,[...H])):oe(()=>"")}function te(...H){return s.value?Reflect.apply(s.value.rt,null,[...H]):""}function et(...H){return s.value?oe(()=>Reflect.apply(s.value.d,null,[...H])):oe(()=>"")}function vt(...H){return s.value?oe(()=>Reflect.apply(s.value.n,null,[...H])):oe(()=>"")}function st(H){return s.value?s.value.tm(H):{}}function Bt(H,ke){return s.value?s.value.te(H,ke):!1}function ft(H){return s.value?s.value.getLocaleMessage(H):{}}function gt(H,ke){s.value&&(s.value.setLocaleMessage(H,ke),_.value[H]=ke)}function St(H,ke){s.value&&s.value.mergeLocaleMessage(H,ke)}function W(H){return s.value?s.value.getDateTimeFormat(H):{}}function ae(H,ke){s.value&&(s.value.setDateTimeFormat(H,ke),g.value[H]=ke)}function le(H,ke){s.value&&s.value.mergeDateTimeFormat(H,ke)}function ie(H){return s.value?s.value.getNumberFormat(H):{}}function J(H,ke){s.value&&(s.value.setNumberFormat(H,ke),h.value[H]=ke)}function Se(H,ke){s.value&&s.value.mergeNumberFormat(H,ke)}const xe={get id(){return s.value?s.value.id:-1},locale:T,fallbackLocale:O,messages:P,datetimeFormats:Z,numberFormats:ce,get inheritLocale(){return s.value?s.value.inheritLocale:l},set inheritLocale(H){s.value&&(s.value.inheritLocale=H)},get availableLocales(){return s.value?s.value.availableLocales:Object.keys(_.value)},get modifiers(){return s.value?s.value.modifiers:A},get pluralRules(){return s.value?s.value.pluralRules:S},get isGlobal(){return s.value?s.value.isGlobal:!1},get missingWarn(){return s.value?s.value.missingWarn:F},set missingWarn(H){s.value&&(s.value.missingWarn=H)},get fallbackWarn(){return s.value?s.value.fallbackWarn:p},set fallbackWarn(H){s.value&&(s.value.missingWarn=H)},get fallbackRoot(){return s.value?s.value.fallbackRoot:y},set fallbackRoot(H){s.value&&(s.value.fallbackRoot=H)},get fallbackFormat(){return s.value?s.value.fallbackFormat:w},set fallbackFormat(H){s.value&&(s.value.fallbackFormat=H)},get warnHtmlMessage(){return s.value?s.value.warnHtmlMessage:B},set warnHtmlMessage(H){s.value&&(s.value.warnHtmlMessage=H)},get escapeParameter(){return s.value?s.value.escapeParameter:D},set escapeParameter(H){s.value&&(s.value.escapeParameter=H)},t:qe,getPostTranslationHandler:X,setPostTranslationHandler:ye,getMissingHandler:De,setMissingHandler:pe,rt:te,d:et,n:vt,tm:st,te:Bt,getLocaleMessage:ft,setLocaleMessage:gt,mergeLocaleMessage:St,getDateTimeFormat:W,setDateTimeFormat:ae,mergeDateTimeFormat:le,getNumberFormat:ie,setNumberFormat:J,mergeNumberFormat:Se};function Xe(H){H.locale.value=d.value,H.fallbackLocale.value=c.value,Object.keys(_.value).forEach(ke=>{H.mergeLocaleMessage(ke,_.value[ke])}),Object.keys(g.value).forEach(ke=>{H.mergeDateTimeFormat(ke,g.value[ke])}),Object.keys(h.value).forEach(ke=>{H.mergeNumberFormat(ke,h.value[ke])}),H.escapeParameter=D,H.fallbackFormat=w,H.fallbackRoot=y,H.fallbackWarn=p,H.missingWarn=F,H.warnHtmlMessage=B}return t.onBeforeMount(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw Rt(Je.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const H=s.value=e.proxy.$i18n.__composer;n==="global"?(d.value=H.locale.value,c.value=H.fallbackLocale.value,_.value=H.messages.value,g.value=H.datetimeFormats.value,h.value=H.numberFormats.value):r&&Xe(H)}),xe}const uB=["locale","fallbackLocale","availableLocales"],Hm=["t","rt","d","n","tm","te"];function dB(e,n){const a=Object.create(null);return uB.forEach(r=>{const s=Object.getOwnPropertyDescriptor(n,r);if(!s)throw Rt(Je.UNEXPECTED_ERROR);const l=t.isRef(s.value)?{get(){return s.value.value},set(d){s.value.value=d}}:{get(){return s.get&&s.get()}};Object.defineProperty(a,r,l)}),e.config.globalProperties.$i18n=a,Hm.forEach(r=>{const s=Object.getOwnPropertyDescriptor(n,r);if(!s||!s.value)throw Rt(Je.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${r}`,s)}),()=>{delete e.config.globalProperties.$i18n,Hm.forEach(r=>{delete e.config.globalProperties[`$${r}`]})}}if(xA(),__INTLIFY_JIT_COMPILATION__?Xh(_A):Xh(fA),nA(ME),iA(Yh),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=Ln();e.__INTLIFY__=!0,GE(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const cB={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"}},chats_contact:{yesterday:"Yesterday"},emoji_picker:{title:"Pick your emoji...",search:"Search",notfound:"No Emoji Found",categories:{search:"Search Results",recent:"Frequently Used",smileys:"Smileys & Emotion",people:"People & Body",nature:"Animals & Nature",foods:"Food & Drink",activity:"Activity",places:"Travel & Places",objects:"Objects",symbols:"Symbols",flags:"Flags",custom:"Custom"}},search:"Search",without_results:"No results found"},fB={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"}},chats_contact:{yesterday:"Ayer"},emoji_picker:{title:"Elige tu emoji...",search:"Buscar",notfound:"No se encontró ningún emoji",categories:{search:"Resultados de búsqueda",recent:"Usados frecuentemente",smileys:"Caritas y Emociones",people:"Personas y Cuerpo",nature:"Animales y Naturaleza",foods:"Comidas y Bebidas",activity:"Actividades",places:"Viajes y Lugares",objects:"Objetos",symbols:"Símbolos",flags:"Banderas",custom:"Personalizados"}},search:"Buscar",without_results:"No se encontró ningún resultado"},Ym={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"}},chats_contact:{yesterday:"Ontem"},emoji_picker:{title:"Escolha seu emoji...",search:"Buscar",notfound:"Nenhum emoji encontrado",categories:{search:"Resultados da busca",recent:"Usados frequentemente",smileys:"Carinhas & Pessoas",people:"Pessoas e Corpo",nature:"Animais e Natureza",foods:"Comidas e Bebidas",activity:"Atividades",places:"Viagens e Lugares",objects:"Objetos",symbols:"Símbolos",flags:"Bandeiras",custom:"Personalizados"}},search:"Buscar",without_results:"Nenhum resultado encontrado"},_B=Object.assign({en:cB,es:fB,"pt-br":Ym,"pt-BR":Ym}),Ni=eB({locale:"en",fallbackLocale:"en",messages:_B}),gB=["width","height"],wr=z(t.defineComponent({name:"UnnnicIconLoading",__name:"IconLoading",props:{scheme:{type:String,default:"fg-muted"},size:{type:String,default:"lg"},strokeWidth:{type:Number,default:5}},setup(e){t.useCssVars(r=>({"7b04333c":e.strokeWidth}));const n={xs:12,sm:16,ant:20,md:24,lg:32,xl:40,"avatar-nano":20,"avatar-xs":32,"avatar-sm":40,"avatar-md":72,"avatar-lg":104},a=e,i=t.computed(()=>n[a.size]??a.size);return(r,s)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["unnnic-icon-loading",`unnnic-icon-loading--${e.scheme}`]),"aria-atomic":"true","aria-live":"assertive"},[(t.openBlock(),t.createElementBlock("svg",{viewBox:"0 0 50 50",width:i.value,height:i.value},s[0]||(s[0]=[t.createElementVNode("circle",{cx:"25",cy:"25",r:"20"},null,-1)]),8,gB))],2))}}),[["__scopeId","data-v-05fd00f9"]]),hB=["disabled"],Dt=z(t.defineComponent({name:"UnnnicButton",__name:"Button",props:{size:{default:"large"},text:{default:""},type:{default:"primary"},float:{type:Boolean,default:!1},iconLeft:{default:""},iconRight:{default:""},iconCenter:{default:""},iconsFilled:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},pressed:{type:Boolean,default:!1}},setup(e){const n=e,a=t.useSlots(),i=t.computed(()=>n.disabled||n.loading),r=t.computed(()=>n.size==="extra-large"?"lg":"ant"),s=t.computed(()=>a.default?!0:n.text&&n.text.length>0),l=t.computed(()=>i.value?"fg-muted":{primary:"fg-on-primary",secondary:"fg-emphasized",tertiary:"fg-emphasized",warning:"fg-on-primary",attention:"fg-on-primary"}[c.value]||"fg-on-primary"),d=t.computed(()=>n.size==="large"||!n.float&&n.size==="small"||n.float&&n.size==="extra-large"),c=t.computed(()=>({alternative:"tertiary"})[n.type]||n.type),_=t.computed(()=>["primary","secondary","tertiary","warning","attention"].includes(c.value)),g=()=>{if(!d.value||!_.value){let h="TypeError:";throw d.value||(h+=" Invalid size prop.",h+=" Please provide 'large', 'small' (only if float prop is false), or 'extra-large' (only if float prop is true)."),_.value||(h+=" Invalid type prop.",h+=" Please provide one of the following types: primary, secondary, tertiary, warning, attention. Alternative is discontinued and it was forced renamed to tertiary."),new Error(h)}};return t.watch(()=>n,()=>{g()},{deep:!0,immediate:!0}),(h,F)=>(t.openBlock(),t.createElementBlock("button",t.mergeProps(h.$attrs,{disabled:i.value,class:["unnnic-button",`unnnic-button--size-${h.size}`,`unnnic-button--${c.value}`,h.iconCenter?"unnnic-button--icon-on-center":null,h.float?"unnnic-button--float":null,h.pressed?"unnnic-button--pressed":null]}),[h.loading?(t.openBlock(),t.createBlock(wr,{key:0,scheme:l.value,size:r.value,style:{position:"absolute"},"data-testid":"icon-loading"},null,8,["scheme","size"])):t.createCommentVNode("",!0),h.iconLeft?(t.openBlock(),t.createBlock(fe,{key:1,icon:h.iconLeft,scheme:l.value,size:r.value,filled:h.iconsFilled,class:t.normalizeClass({"unnnic-button__icon-left":s.value}),style:t.normalizeStyle({visibility:h.loading?"hidden":"visible"}),clickable:"","data-testid":"icon-left"},null,8,["icon","scheme","size","filled","class","style"])):t.createCommentVNode("",!0),h.iconCenter?(t.openBlock(),t.createBlock(fe,{key:2,icon:h.iconCenter,scheme:l.value,style:t.normalizeStyle({visibility:h.loading?"hidden":"visible"}),size:r.value,filled:h.iconsFilled,clickable:"","data-testid":"icon-center"},null,8,["icon","scheme","style","size","filled"])):t.createCommentVNode("",!0),h.float?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:3,class:"unnnic-button__label",style:t.normalizeStyle({visibility:h.loading?"hidden":"visible"}),"data-testid":"button-label"},[t.renderSlot(h.$slots,"default",{},void 0,!0),t.createTextVNode(" "+t.toDisplayString(h.text),1)],4)),h.iconRight?(t.openBlock(),t.createBlock(fe,{key:4,icon:h.iconRight,scheme:l.value,size:r.value,filled:h.iconsFilled,class:t.normalizeClass({"unnnic-button__icon-right":s.value}),style:t.normalizeStyle({visibility:h.loading?"hidden":"visible"}),clickable:"","data-testid":"icon-right"},null,8,["icon","scheme","size","filled","class","style"])):t.createCommentVNode("",!0)],16,hB))}}),[["__scopeId","data-v-d7396b6a"]]),mB={class:"month-container","data-testid":"date-picker-month-container"},FB=["onClick"],pB={class:"month-container","data-testid":"date-picker-month-container"},bB=["onClick"],yB={class:"month-container","data-testid":"date-picker-month-container"},kB=["onClick"],wB={key:0,class:"options"},DB=["onClick"],CB={class:"actions"},el=z(t.defineComponent({name:"UnnnicDatePicker",__name:"DatePicker",props:{initialStartDate:{default:""},initialEndDate:{default:""},minDate:{default:""},maxDate:{default:""},periodBaseDate:{default:""},equivalentOption:{default:""},type:{default:"day"},size:{default:"large"},clearLabel:{default:""},actionLabel:{default:""},months:{default:()=>[]},days:{default:()=>[]},options:{default:()=>[]},disableClear:{type:Boolean,default:!1},hideOptions:{type:Boolean,default:!1},locale:{default:void 0},translations:{default:void 0},variant:{default:"card"}},emits:["change","submit","update:equivalentOption"],setup(e,{expose:n,emit:a}){t.useCssVars(W=>({c04bd20c:D.value}));const i=e,r=a,s=new Date,l=t.ref(`${s.getMonth()+1} 1 ${s.getFullYear()}`),d=t.ref((i.initialStartDate||"").replace(/-/g," ")),c=t.ref((i.initialEndDate||"").replace(/-/g," ")),_=t.ref(""),g={clean:{"pt-br":"Limpar",en:"Clean",es:"Limpiar"},filter:{"pt-br":"Filtrar",en:"Filter",es:"Filtrar"}},h=t.getCurrentInstance(),F=t.computed(()=>{var le,ie;const ae=((ie=(le=h==null?void 0:h.proxy)==null?void 0:le.$i18n)==null?void 0:ie.locale)||"en-us";return String(ae).toLowerCase()}),p=t.computed(()=>{const W=i.months||[];return W.length?W:jC[F.value]}),y=t.computed(()=>{const W=i.days||[];return W.length?W:qC[F.value]}),w=t.computed(()=>{const W=i.options||[];return W.length?W:IC[F.value]}),C=t.computed(()=>i.clearLabel||Rs[F.value].clear),q=t.computed(()=>i.actionLabel||Rs[F.value].filter),B=t.computed(()=>({startDate:d.value.replaceAll(" ","-"),endDate:c.value.replaceAll(" ","-")})),D=t.computed(()=>i.hideOptions?"column-reverse":"column");n({i18n:(...W)=>{const[ae,le]=W,ie=Object.keys(Ni.global.messages||{});let J=i.locale;const Se=Kt.get(Ni,"global.locale")==="en-us"?"en":Kt.get(Ni,"global.locale");J=J&&ie.includes(J)?J:Se,J=J==null?void 0:J.toLowerCase();let xe=Kt.get(i.translations,`${ae}.${J}`,Kt.get(i.translations,ae));if(xe||(xe=Kt.get(g,`${ae}.${J}`,Kt.get(g,ae,le))),xe!=null&&xe.includes("|")&&typeof W[1]=="number"){const H=W[1],ke=xe.split("|");ke.length===3?xe=ke[H]||ke[2]:ke.length===2&&(xe=H===1?ke[0]:ke[1])}let Xe={};return Object.values(W).slice(1).forEach(H=>{!(H instanceof Array)&&H instanceof Object&&(Xe=H)}),Object.keys(Xe).forEach(H=>{xe=xe==null?void 0:xe.replaceAll(new RegExp(`{ *${H} *}`,"g"),Xe[H])}),xe},startDate:d,endDate:c,optionSelected:_,referenceDate:l,autoSelect:Bt,dateToString:S,getStartAndEndDateByPeriod:st,getDatesOfTheMonth:oe});function S(W){return`${W.getMonth()+1} ${W.getDate()} ${W.getFullYear()}`}function I(W){return`${W.getMonth()+1} ${W.getFullYear()}`}function T(W){return W.getFullYear()}function O(W){const[ae,le,ie]=W.split(" ");return new Date(Number(ie),Number(ae)-1,Number(le)).getTime()}function P(W){return W.toString().split(" ")[1]}function Z(W){return Number(W.toString().split(" ")[0])}function ce(W){const[ae,le,ie]=W.split(" ");return new Date(Number(ie),Number(ae)-1,Number(le)).getFullYear()}function X(W,ae){const[le,ie,J]=W.split(" "),Se=new Date(Number(J),Number(le)-1,Number(ie));return Se.setMonth(Se.getMonth()+ae),S(Se)}function ye(W){if(d.value&&c.value){if(W>=O(d.value)&&W<=O(c.value))return!0}else{if(d.value&&W>=O(d.value))return!0;if(c.value&&W<=O(c.value))return!0}return!1}function De(W){if(d.value&&c.value){const ae=O(d.value),le=O(c.value);return W>=ae&&W<=le}if(d.value){const ae=O(d.value);return W>=ae}if(c.value){const ae=O(c.value);return W<=ae}return!1}function pe(W){if(d.value&&c.value){const ae=O(d.value),le=O(c.value);return W>=ae&&W<=le}if(d.value){const ae=O(d.value);return W>=ae}if(c.value){const ae=O(c.value);return W<=ae}return!1}function oe(W){const[ae,le,ie]=W.split(" "),J=new Date(Number(ie),Number(ae)-1,Number(le)),Se=J.getMonth(),xe=86400;J.setDate(1-J.getDay());const Xe=[];for(let H=0;H<6*7;H+=1){const ke=S(J),rt=[];if(i.minDate){const[$e,he,ze]=i.minDate.split("-"),v=new Date(Number($e),Number(he)-1,Number(ze));J<v&&rt.push("out of range")}if(i.maxDate){const[$e,he,ze]=i.maxDate.split("-"),v=new Date(Number($e),Number(he)-1,Number(ze));J>v&&rt.push("out of range")}if(Se===J.getMonth()){rt.push("inside month");const $e=O(S(J)),he=$e-xe,ze=$e+xe;ye($e)&&(rt.push("selected"),ye(he)||rt.push("left-highlighted"),ye(ze)||rt.push("right-highlighted"),(rt.includes("left-highlighted")||rt.includes("right-highlighted"))&&rt.push("highlighted"))}S(J)===S(new Date)&&rt.push("today"),Xe.push({properties:rt,toString:()=>ke}),J.setDate(J.getDate()+1)}return Xe}function qe(W){const[ae,le,ie]=W.split(" "),J=new Date(Number(ie),Number(ae)-1,Number(le));J.setMonth(0);const Se=[];for(let xe=0;xe<3*4;xe+=1){const Xe=S(J),H=[];H.push("inside month");const ke=O(S(J)),rt=new Date(ke),$e=new Date(ke);rt.setMonth(rt.getMonth()-1),$e.setMonth($e.getMonth()+1);const he=rt.getTime(),ze=$e.getTime();De(ke)&&(H.push("selected"),De(he)||H.push("left-highlighted"),De(ze)||H.push("right-highlighted"),(H.includes("left-highlighted")||H.includes("right-highlighted"))&&H.push("highlighted")),I(J)===I(new Date)&&H.push("today"),Se.push({properties:H,date:Xe,toString:()=>Xe}),J.setMonth(J.getMonth()+1)}return Se}function te(W){const[ae,le,ie]=W.split(" "),J=new Date(Number(ie),Number(ae)-1,Number(le));J.setMonth(0);const Se=[];for(let xe=0;xe<3*4;xe+=1){const Xe=S(J),H=[];H.push("inside month");const ke=O(S(J)),[rt,$e,he]=W.split(" "),ze=new Date(Number(he),Number(rt)-1,Number($e)),v=new Date(Number(he),Number(rt)-1,Number($e));ze.setMonth(ze.getMonth()-12),v.setMonth(v.getMonth()+12);const N=ze.getTime(),Y=v.getTime();pe(ke)&&(H.push("selected"),pe(N)||H.push("left-highlighted"),pe(Y)||H.push("right-highlighted"),(H.includes("left-highlighted")||H.includes("right-highlighted"))&&H.push("highlighted")),T(J)===T(new Date)&&H.push("today"),Se.push({properties:H,date:J.getFullYear(),toString:()=>Xe}),J.setFullYear(J.getFullYear()+1)}return Se}function et(W){if(!d.value||!c.value)d.value=W.toString(),c.value=d.value;else{const ae=O(W.toString()),le=O(d.value),ie=O(c.value);le!==ie?(d.value=W.toString(),c.value=d.value):ae>ie?c.value=W.toString():ae<le?d.value=W.toString():ae===le||ae===ie?(d.value=W.toString(),c.value=d.value):ae-le<ie-ae?d.value=W.toString():c.value=W.toString()}}function vt(){d.value="",c.value="",_.value=""}function st(W){let ae,le,ie;if(i.periodBaseDate){const Xe=i.periodBaseDate.split("-");if(Xe.length===3){const[H,ke,rt]=Xe;ie=new Date(Number(H),Number(ke)-1,Number(rt))}else{const H=new Date(i.periodBaseDate);ie=Number.isNaN(H.getTime())?new Date:H}}else ie=new Date;const J=new Date(ie.getTime()),Se=W.match(/^last-(\d+)-days$/),xe=W.match(/^last-(\d+)-months$/);if(Se){const Xe=Number(Se[1]);le=S(J),J.setDate(J.getDate()-Xe+1),ae=S(J)}else if(xe){const Xe=Number(xe[1]);le=S(J),J.setDate(J.getDate()+1),J.setMonth(J.getMonth()-Xe),ae=S(J)}else if(W==="current-month"){const Xe=ie.getDate();J.setDate(1),ae=S(J),J.setDate(Xe),le=S(J)}else W==="previous-month"&&(J.setDate(1),J.setMonth(J.getMonth()-1),ae=S(J),J.setMonth(J.getMonth()+1),J.setDate(0),le=S(J));return{startDate:ae,endDate:le}}function Bt(W){const{startDate:ae,endDate:le}=st(W);if(d.value=ae||"",c.value=le||"",c.value){const ie=X(l.value,1),J=`${Number(Z({toString:()=>c.value}))} 1 ${ce(c.value)}`;[l.value,ie].includes(J)||(l.value=J)}t.nextTick(()=>{_.value=W})}function ft(){if(r("submit",B.value),_.value==="custom")r("update:equivalentOption","");else{const W=w.value.find(({id:ae})=>ae===_.value);r("update:equivalentOption",(W==null?void 0:W.name)||"")}}function gt(){const{startDate:W,endDate:ae}=B.value,le=(J,Se)=>!J||!Se?!1:new Date(J).getTime()===new Date(Se).getTime(),ie=w.value.find(({id:J})=>{const{startDate:Se,endDate:xe}=st(J);return le(W,Se)&&le(ae,xe)});_.value=W||ae?ie?ie.id:"custom":""}const St=t.computed(()=>[X(l.value,-1),l.value]);return t.watch(B,W=>{gt(),r("change",W)}),t.onMounted(()=>{gt()}),(W,ae)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["unnnic-date-picker",`unnnic-date-picker--${i.variant}`]),"data-testid":"date-picker-root"},[W.type==="day"?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(St.value,(le,ie)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:le},[t.createElementVNode("div",mB,[t.createElementVNode("div",{class:t.normalizeClass(["header",`header--${W.size}`])},[t.createVNode(Dt,{size:"small",iconCenter:`keyboard_arrow_${ie===0?"left":"right"}`,type:W.size==="large"?"secondary":"tertiary",class:"button-space",style:t.normalizeStyle({gridArea:`${ie===0?"left":"right"}-button`}),"data-testid":`date-picker-nav-${ie===0?"left":"right"}`,onClick:t.withModifiers(J=>l.value=X(l.value,ie===0?-1:1),["stop"])},null,8,["iconCenter","type","style","data-testid","onClick"]),t.createElementVNode("div",{class:t.normalizeClass(["label",`label--${W.size}`])},t.toDisplayString(p.value[Number(Z(le))-1])+" "+t.toDisplayString(ce(le)),3)],2),t.createElementVNode("div",{class:t.normalizeClass(["days",`days--${W.size}`])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(y.value,(J,Se)=>(t.openBlock(),t.createElementBlock("div",{key:Se,class:"name"},t.toDisplayString(J),1))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(oe(le),(J,Se)=>(t.openBlock(),t.createElementBlock("div",{key:`${le}-${Se}`,class:t.normalizeClass({disabled:!J.properties.includes("inside month")||J.properties.includes("out of range"),selectable:J.properties.includes("inside month")&&!J.properties.includes("out of range"),today:J.properties.includes("today"),selected:J.properties.includes("selected"),highlighted:J.properties.includes("highlighted"),left:J.properties.includes("left-highlighted"),right:J.properties.includes("right-highlighted")}),"data-testid":"date-picker-day",onClick:xe=>J.properties.includes("inside month")&&!J.properties.includes("out of range")&&et(J)},t.toDisplayString(P(J)),11,FB))),128))],2)]),ae[4]||(ae[4]=t.createElementVNode("div",{class:"divider"},null,-1))],64))),128)):W.type==="month"?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList([l.value],le=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:le},[t.createElementVNode("div",pB,[t.createElementVNode("div",{class:t.normalizeClass(["header",`header--${W.size}`])},[t.createVNode(Dt,{size:"small",iconCenter:"keyboard_arrow_left",type:W.size==="large"?"secondary":"tertiary",class:"button-space",style:{gridArea:"left-button"},"data-testid":"date-picker-month-nav-left",onClick:ae[0]||(ae[0]=ie=>l.value=X(l.value,-12))},null,8,["type"]),t.createElementVNode("div",{class:t.normalizeClass(["label",`label--${W.size}`])},t.toDisplayString(ce(le)),3),t.createVNode(Dt,{size:"small",iconCenter:"keyboard_arrow_right",type:W.size==="large"?"secondary":"tertiary",class:"button-space",style:{gridArea:"right-button"},"data-testid":"date-picker-month-nav-right",onClick:ae[1]||(ae[1]=ie=>l.value=X(l.value,12))},null,8,["type"])],2),t.createElementVNode("div",{class:t.normalizeClass(["days",`months--${W.size}`])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(qe(le),(ie,J)=>(t.openBlock(),t.createElementBlock("div",{key:`${le}-${J}`,class:t.normalizeClass({disabled:!ie.properties.includes("inside month"),selectable:ie.properties.includes("inside month"),today:ie.properties.includes("today"),selected:ie.properties.includes("selected"),highlighted:ie.properties.includes("highlighted"),left:ie.properties.includes("left-highlighted"),right:ie.properties.includes("right-highlighted")}),"data-testid":"date-picker-month-cell",onClick:Se=>ie.properties.includes("inside month")&&et(ie)},t.toDisplayString(p.value[Z(ie)-1].substr(0,3)),11,bB))),128))],2)]),ae[5]||(ae[5]=t.createElementVNode("div",{class:"divider"},null,-1))],64))),128)):W.type==="year"?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:2},t.renderList([l.value],le=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:le},[t.createElementVNode("div",yB,[t.createElementVNode("div",{class:t.normalizeClass(["header",`header--${W.size}`])},[t.createVNode(Dt,{size:"small",iconCenter:"arrow-left-1-1",type:W.size==="large"?"secondary":"tertiary",class:"button-space",style:{gridArea:"left-button"},"data-testid":"date-picker-year-nav-left",onClick:ae[2]||(ae[2]=ie=>l.value=X(l.value,-12*12))},null,8,["type"]),t.createElementVNode("div",{class:t.normalizeClass(["label",`label--${W.size}`])},t.toDisplayString(ce(le)),3),t.createVNode(Dt,{size:"small",iconCenter:"arrow-right-1-1",type:W.size==="large"?"secondary":"tertiary",class:"button-space",style:{gridArea:"right-button"},"data-testid":"date-picker-year-nav-right",onClick:ae[3]||(ae[3]=ie=>l.value=X(l.value,12*12))},null,8,["type"])],2),t.createElementVNode("div",{class:t.normalizeClass(["days",`months--${W.size}`])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(te(le),(ie,J)=>(t.openBlock(),t.createElementBlock("div",{key:`${le}-${J}`,class:t.normalizeClass({disabled:!ie.properties.includes("inside month"),selectable:ie.properties.includes("inside month"),today:ie.properties.includes("today"),selected:ie.properties.includes("selected"),highlighted:ie.properties.includes("highlighted"),left:ie.properties.includes("left-highlighted"),right:ie.properties.includes("right-highlighted")}),"data-testid":"date-picker-year-cell",onClick:Se=>ie.properties.includes("inside month")&&et(ie)},t.toDisplayString(ie.date),11,kB))),128))],2)]),ae[6]||(ae[6]=t.createElementVNode("div",{class:"divider"},null,-1))],64))),128)):t.createCommentVNode("",!0),W.size!=="small"?(t.openBlock(),t.createElementBlock("div",{key:3,class:"options-container",style:t.normalizeStyle({flexDirection:D.value}),"data-testid":"date-picker-options"},[W.hideOptions?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",wB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(w.value,(le,ie)=>(t.openBlock(),t.createElementBlock("div",{key:ie,class:t.normalizeClass(["option",{selectable:le.id!=="custom",selected:_.value===le.id}]),"data-testid":"date-picker-option",onClick:J=>le.id==="custom"?null:Bt(le.id)},t.toDisplayString(le.name),11,DB))),128))])),t.createElementVNode("div",CB,[W.disableClear?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(Dt,{key:0,size:"small",text:C.value,type:"tertiary","data-testid":"date-picker-clear",onClick:vt},null,8,["text"])),t.createVNode(Dt,{size:"small",text:q.value,type:"secondary","data-testid":"date-picker-submit",onClick:ft},null,8,["text"])])],4)):t.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-98518cc6"]]),Dr=t.defineComponent({name:"UnnnicPopover",__name:"Popover",props:{defaultOpen:{type:Boolean},open:{type:Boolean},modal:{type:Boolean}},emits:["update:open"],setup(e,{emit:n}){const r=ma(e,n);return(s,l)=>(t.openBlock(),t.createBlock(t.unref(u6),t.normalizeProps(t.guardReactiveProps(t.unref(r))),{default:t.withCtx(()=>[t.renderSlot(s.$slots,"default")]),_:3},16))}}),Gm=Symbol("unnnicPopoverFooterTarget"),Cr=t.defineComponent({inheritAttrs:!1,__name:"PopoverContent",props:{forceMount:{type:Boolean},side:{},sideOffset:{default:4},sideFlip:{type:Boolean},align:{default:"center"},alignOffset:{},alignFlip:{type:Boolean},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean},class:{default:""},size:{default:"medium"},width:{default:""}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:n}){const a=e,i=n,r=na(a,"class","size"),s=ma(r,i),l=ir(),d=_s(),c=t.ref(null);t.provide(Gm,c);const _=t.computed(()=>a.width?a.width:{small:"240px",medium:"320px",large:"400px"}[a.size]);return(g,h)=>(t.openBlock(),t.createBlock(t.unref(p6),{to:t.unref(d)},{default:t.withCtx(()=>[t.createVNode(t.unref(m6),t.mergeProps({...t.unref(s),...g.$attrs},{style:{width:_.value,zIndex:t.unref(l)},class:t.unref(Et)("unnnic-popover","bg-popover text-popover-foreground outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2")}),{default:t.withCtx(()=>[t.createElementVNode("section",{class:t.normalizeClass(`unnnic-popover__content ${a.class||""}`)},[t.renderSlot(g.$slots,"default")],2),t.createElementVNode("div",{ref_key:"footerContainer",ref:c,"data-testid":"popover-footer-container"},null,512)]),_:3},16,["style","class"])]),_:3},8,["to"]))}}),EB={class:"unnnic-popover__footer"},AB={key:1,class:"unnnic-popover__footer"},tl=t.defineComponent({name:"UnnnicPopoverFooter",__name:"PopoverFooter",setup(e){const n=t.inject(Gm,null);return(a,i)=>t.unref(n)?(t.openBlock(),t.createBlock(t.Teleport,{key:0,to:t.unref(n)},[t.createElementVNode("footer",EB,[t.renderSlot(a.$slots,"default")])],8,["to"])):(t.openBlock(),t.createElementBlock("footer",AB,[t.renderSlot(a.$slots,"default")]))}}),Er=z(t.defineComponent({__name:"PopoverTrigger",props:{asChild:{type:Boolean},as:{}},setup(e){const n=e;return(a,i)=>(t.openBlock(),t.createBlock(t.unref(y6),t.mergeProps(n,{class:"unnnic-popover-trigger"}),{default:t.withCtx(()=>[t.renderSlot(a.$slots,"default",{},void 0,!0)]),_:3},16))}}),[["__scopeId","data-v-df136255"]]),al=z(t.defineComponent({name:"UnnnicPopoverOption",__name:"PopoverOption",props:{label:{},disabled:{type:Boolean,default:!1},active:{type:Boolean,default:!1},focused:{type:Boolean,default:!1},scheme:{default:"fg-emphasized"},icon:{default:""}},setup(e){const n=e,a=t.useSlots(),i=t.computed(()=>!!a.default),r=t.computed(()=>n.active?"fg-on-primary":n.disabled?"fg-muted":n.scheme);return(s,l)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["unnnic-popover-option",{"unnnic-popover-option--disabled":n.disabled,"unnnic-popover-option--active":n.active,"unnnic-popover-option--focused":n.focused,"unnnic-popover-option--with-content":i.value}])},[n.icon?(t.openBlock(),t.createBlock(fe,{key:0,icon:n.icon,scheme:r.value,size:"ant"},null,8,["icon","scheme"])):t.createCommentVNode("",!0),t.renderSlot(s.$slots,"default",{},()=>[t.createElementVNode("p",{class:t.normalizeClass(["unnnic-popover-option__label",`unnnic-popover-option__label--${r.value}`,`unnnic-popover-option--disabled: ${n.disabled}`])},t.toDisplayString(n.label),3)],!0)],2))}}),[["__scopeId","data-v-25ebf283"]]),Dd=z(t.defineComponent({name:"UnnnicInputDatePicker",__name:"InputDatePicker",props:{modelValue:{},iconPosition:{default:"left"},minDate:{default:""},maxDate:{default:""},fillW:{type:Boolean,default:!1},type:{default:"day"},size:{default:"md"},clearText:{default:"Clear"},actionText:{default:"Filter"},months:{default:()=>[]},days:{default:()=>[]},options:{default:()=>[]},next:{type:Boolean,default:!1},format:{default:"YYYY-MM-DD"},inputFormat:{default:"MM-DD-YYYY"},position:{default:"left"},disableClear:{type:Boolean,default:!1},hideOptions:{type:Boolean,default:!1},periodBaseDate:{default:""},disabled:{type:Boolean,default:!1},disableShowOverwrittenValue:{type:Boolean,default:!1}},emits:["update:model-value","selectDate"],setup(e,{emit:n}){const a=t.useSlots(),i=t.computed(()=>!!a.footer),r=e,s=n,l=t.ref(!1),d=t.ref(""),c=t.computed(()=>r.position==="right"?"end":"start"),_=t.computed(()=>r.disableShowOverwrittenValue?g.value||"":d.value||g.value||""),g=t.computed(()=>{const C=[],{start:q,end:B}=r.modelValue||{};return q&&C.push(re(q,r.format).format(r.inputFormat||"")),B&&C.push(re(B,r.format).format(r.inputFormat||"")),C.length?C.join(" ~ "):String(r.inputFormat||"").replaceAll("-","/").toLowerCase()}),h=t.computed(()=>r.modelValue.start?re(r.modelValue.start,r.format).format("MM DD YYYY"):void 0),F=t.computed(()=>r.modelValue.end?re(r.modelValue.end,r.format).format("MM DD YYYY"):void 0);function p(C){const{startDate:q,endDate:B}=C,D={start:re(q,"MM-DD-YYYY").format(r.format),end:re(B,"MM-DD-YYYY").format(r.format)};s("selectDate",D)}function y(C){const q=C.startDate.replace(/(\d+)-(\d+)-(\d+)/,"$3-$1-$2"),B=C.endDate.replace(/(\d+)-(\d+)-(\d+)/,"$3-$1-$2");l.value=!1,s("update:model-value",{start:q?re(q,"YYYY-MM-DD").format(r.format):null,end:B?re(B,"YYYY-MM-DD").format(r.format):null})}function w(){l.value=!0}return(C,q)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["dropdown",{"fill-w":C.fillW}])},[t.createVNode(t.unref(Dr),{open:l.value,"onUpdate:open":q[1]||(q[1]=B=>l.value=B)},{default:t.withCtx(()=>[t.createVNode(t.unref(Er),{asChild:!0},{default:t.withCtx(()=>[t.createVNode(_n,{"data-testid":"input",class:t.normalizeClass(["input",{"date-picker-input-next":C.next}]),size:C.size,iconLeft:C.iconPosition==="left"?"calendar_month":void 0,iconRight:C.iconPosition==="right"?"calendar_month":void 0,readonly:"",modelValue:_.value,disabled:C.disabled,onClick:w,onFocus:w},null,8,["class","size","iconLeft","iconRight","modelValue","disabled"])]),_:1}),t.createVNode(t.unref(Cr),{width:"auto",side:"bottom",align:c.value,class:"date-picker-popover-content"},{default:t.withCtx(()=>[t.createVNode(el,{equivalentOption:d.value,"onUpdate:equivalentOption":q[0]||(q[0]=B=>d.value=B),"data-testid":"date-picker",variant:"popover",type:C.type,clearLabel:C.clearText,actionLabel:C.actionText,months:C.months,days:C.days,options:C.options,periodBaseDate:C.periodBaseDate,initialStartDate:h.value,initialEndDate:F.value,minDate:C.minDate,maxDate:C.maxDate,disableClear:C.disableClear,hideOptions:C.hideOptions,onChange:p,onSubmit:y},null,8,["equivalentOption","type","clearLabel","actionLabel","months","days","options","periodBaseDate","initialStartDate","initialEndDate","minDate","maxDate","disableClear","hideOptions"]),i.value?(t.openBlock(),t.createBlock(t.unref(tl),{key:0},{default:t.withCtx(()=>[t.renderSlot(C.$slots,"footer",{},void 0,!0)]),_:3})):t.createCommentVNode("",!0)]),_:3},8,["align"])]),_:3},8,["open"])],2))}}),[["__scopeId","data-v-a874255c"]]),BB={components:{UnnnicIcon:fe},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"?"fg-inverted":"fg-emphasized"}}};function xB(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createElementBlock("button",t.mergeProps({class:["button-icon",a.size,a.type]},e.$attrs),[t.createVNode(l,{icon:a.icon,scheme:s.iconScheme,size:"ant"},null,8,["icon","scheme"])],16)}const Cd=z(BB,[["render",xB],["__scopeId","data-v-07258e26"]]),Ed=e=>{const{label:n,children:a}=e;if(!!!n.trim())throw new Error('Each item in "items" must have "label".');return a&&Array.isArray(a)&&a.forEach(Ed),!0},vB=e=>{if(!(e!=null&&e[0]))throw new Error("Items property cannot be an empty array.");return e.forEach(Ed),!0},SB=["title"],jB={key:0,class:"unnnic-sidebar-item-children"},qB=["onClick"],IB=["title"],nl=z(Object.assign({name:"UnnnicSidebarItem"},{props:{item:{type:Object,required:!0,validator:Ed},active:{type:Object,default:()=>({item:!1,childIndex:null})},autoNavigateFirstChild:{type:Boolean,default:!1}},emits:["navigate"],setup(e,{emit:n}){const a=e;t.onMounted(()=>{const{childIndex:g,item:h}=a.active;typeof g=="number"&&g>=0&&h&&s()});const i=t.computed(()=>{var g;return!!((g=a.item.children)!=null&&g.length)}),r=t.ref(!1),s=()=>{r.value=!r.value,r.value&&a.autoNavigateFirstChild&&_("navigate",{item:a.item,child:a.item.children[0]})},l=g=>{const{item:h,childIndex:F}=a.active;return typeof F!="number"?h:h&&F===g},d=()=>{i.value?s():c()},c=()=>{a.active.item||_("navigate",{item:a.item,child:null})},_=n;return(g,h)=>{var F;return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("section",{"data-testid":"sidebar-item",class:t.normalizeClass({"unnnic-sidebar-item":!0,active:e.active.item}),onClick:t.withModifiers(d,["stop"])},[e.item.icon?(t.openBlock(),t.createBlock(fe,{key:0,class:"unnnic-sidebar-item__icon",icon:e.item.icon,size:"ant",scheme:e.active.item?"fg-accent":"fg-base","data-testid":"item-icon"},null,8,["icon","scheme"])):t.createCommentVNode("",!0),t.createElementVNode("p",{class:t.normalizeClass({"unnnic-sidebar-item__label":!0,active:e.active.item}),title:e.item.label},t.toDisplayString(e.item.label),11,SB),(F=e.item.children)!=null&&F.length?(t.openBlock(),t.createBlock(fe,{key:1,class:"unnnic-sidebar-item__arrow",icon:r.value?"keyboard_arrow_up":"keyboard_arrow_down",size:"ant",scheme:"fg-base","data-testid":"arrow-icon"},null,8,["icon"])):t.createCommentVNode("",!0)],2),t.createVNode(t.Transition,{name:"slide-fade"},{default:t.withCtx(()=>[r.value?(t.openBlock(),t.createElementBlock("ul",jB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.item.children,(p,y)=>(t.openBlock(),t.createElementBlock("li",{key:p,class:t.normalizeClass({"unnnic-sidebar-item-child":!0,active:l(y)}),"data-testid":"sidebar-item-child",onClick:t.withModifiers(w=>!l(y)&&_("navigate",{item:e.item,child:p}),["stop"])},[p.icon?(t.openBlock(),t.createBlock(fe,{key:0,class:"unnnic-sidebar-item-child__icon",icon:p.icon,size:"ant",scheme:l(y)?"fg-accent":"fg-base"},null,8,["icon","scheme"])):t.createCommentVNode("",!0),t.createElementVNode("p",{class:t.normalizeClass({"unnnic-sidebar-item-child__label":!0,active:l(y)}),title:p.label},t.toDisplayString(p.label),11,IB)],10,qB))),128))])):t.createCommentVNode("",!0)]),_:1})],64)}}}),[["__scopeId","data-v-6c66c728"]]),NB={class:"unnnic-sidebar-items"},Ad=z(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 n=/^\d+(\.\d+)?px$/,a=/^\d+(\.\d+)?%$/;return n.test(e)||a.test(e)}},items:{type:Array,required:!0,validator:vB},active:{type:Object,default:()=>({itemIndex:null,childIndex:null})},autoNavigateFirstChild:{type:Boolean,default:!1}},emits:["navigate"],setup(e,{emit:n}){t.useCssVars(s=>({"4c47a8e2":a.width}));const a=e,i=n,r=({item:s,child:l})=>{i("navigate",{item:s,child:l})};return(s,l)=>(t.openBlock(),t.createElementBlock("nav",{class:t.normalizeClass(["unnnic-sidebar",`unnnic-sidebar--${e.position}`])},[t.renderSlot(s.$slots,"top",{class:"unnnic-sidebar-top"},void 0,!0),t.createElementVNode("ul",NB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(d,c)=>(t.openBlock(),t.createElementBlock("li",{key:d},[t.createVNode(nl,{item:d,active:{item:e.active.itemIndex===c,childIndex:e.active.childIndex},autoNavigateFirstChild:e.autoNavigateFirstChild,"data-testid":"sidebar-item",onNavigate:l[0]||(l[0]=_=>r(_))},null,8,["item","active","autoNavigateFirstChild"])]))),128))]),t.renderSlot(s.$slots,"bottom",{class:"unnnic-sidebar-bottom"},void 0,!0)],2))}}),[["__scopeId","data-v-df7cccc8"]]),TB={class:"relative w-full overflow-auto"},OB=z(t.defineComponent({__name:"Table",props:{class:{}},setup(e){const n=e;return(a,i)=>(t.openBlock(),t.createElementBlock("div",TB,[t.createElementVNode("table",{class:t.normalizeClass(t.unref(Et)("unnnic-table",n.class))},[t.renderSlot(a.$slots,"default",{},void 0,!0)],2)]))}}),[["__scopeId","data-v-4a4bf08c"]]),Bd=t.defineComponent({__name:"TableBody",props:{class:{}},setup(e){const n=e;return(a,i)=>(t.openBlock(),t.createElementBlock("tbody",{class:t.normalizeClass(t.unref(Et)(n.class))},[t.renderSlot(a.$slots,"default")],2))}}),xd=z(t.defineComponent({__name:"TableCell",props:{class:{}},setup(e){const n=e;return(a,i)=>(t.openBlock(),t.createElementBlock("td",{class:t.normalizeClass(t.unref(Et)("unnnic-table-cell",n.class))},[t.renderSlot(a.$slots,"default",{},void 0,!0)],2))}}),[["__scopeId","data-v-145f18ba"]]),vd=z(t.defineComponent({__name:"TableHead",props:{class:{}},setup(e){const n=e;return(a,i)=>(t.openBlock(),t.createElementBlock("th",{class:t.normalizeClass(t.unref(Et)("unnnic-table-head",n.class))},[t.renderSlot(a.$slots,"default",{},void 0,!0)],2))}}),[["__scopeId","data-v-09877208"]]),Sd=z(t.defineComponent({__name:"TableHeader",props:{class:{}},setup(e){const n=e;return(a,i)=>(t.openBlock(),t.createElementBlock("thead",{class:t.normalizeClass(t.unref(Et)("unnnic-table-header",n.class))},[t.renderSlot(a.$slots,"default",{},void 0,!0)],2))}}),[["__scopeId","data-v-363df9eb"]]),MB=["tabindex"],PB=z(t.defineComponent({__name:"TableRow",props:{class:{}},setup(e){const n=e,a=t.useAttrs(),i=t.computed(()=>!!a.onClick);return(r,s)=>(t.openBlock(),t.createElementBlock("tr",{tabindex:i.value?0:void 0,class:t.normalizeClass(t.unref(Et)("unnnic-table-row","transition-colors data-[state=selected]:bg-muted",i.value&&"cursor-pointer",n.class)),onKeydown:[s[0]||(s[0]=t.withKeys(l=>i.value&&r.$emit("click",l),["enter"])),s[1]||(s[1]=t.withKeys(t.withModifiers(l=>i.value&&r.$emit("click",l),["prevent"]),["space"]))]},[t.renderSlot(r.$slots,"default",{},void 0,!0)],42,MB))}}),[["__scopeId","data-v-b60a70fb"]]),LB={name:"UnnnicTable",components:{UiTable:OB},provide(){return{unnnicTableVersion:t.computed(()=>this.version)}},props:{items:{type:Array},version:{type:String,default:"1"}},data(){return{value:!1}},computed:{}},zB={key:1,class:"unnnic-table"},VB={class:"header"},RB={class:"scroll"};function UB(e,n,a,i,r,s){const l=t.resolveComponent("UiTable");return a.version==="2"?(t.openBlock(),t.createBlock(l,{key:0},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3})):(t.openBlock(),t.createElementBlock("div",zB,[t.createElementVNode("div",VB,[t.renderSlot(e.$slots,"header",{},void 0,!0)]),n[0]||(n[0]=t.createElementVNode("div",null,[t.createElementVNode("div",{class:"item-spacer"})],-1)),t.createElementVNode("div",RB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.items,(d,c)=>(t.openBlock(),t.createElementBlock("div",{key:c,class:"item"},[t.renderSlot(e.$slots,"item",{item:d},void 0,!0)]))),128))])]))}const jd=z(LB,[["render",UB],["__scopeId","data-v-c57f8bbb"]]),HB={name:"UnnnicTableRow",components:{UiTableRow:PB},inheritAttrs:!1,props:{headers:{type:Array}},setup(){const e=t.inject("unnnicTableVersion","1");return{isVersion2:t.computed(()=>t.unref(e)==="2")}}},YB={class:"break-text"};function GB(e,n,a,i,r,s){const l=t.resolveComponent("UiTableRow");return i.isVersion2?(t.openBlock(),t.createBlock(l,t.normalizeProps(t.mergeProps({key:0},e.$attrs)),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3},16)):(t.openBlock(),t.createElementBlock("div",t.mergeProps({key:1,class:"table-row"},e.$attrs),[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.headers,(d,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:d.id},[t.createElementVNode("div",{class:"col",style:t.normalizeStyle({width:d.width,flex:d.flex,minWidth:0})},[t.renderSlot(e.$slots,d.id,{},()=>[t.createElementVNode("div",YB,t.toDisplayString(d.text),1)],!0)],4),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(["divider",{condensed:d.condensed}])},null,2),[[t.vShow,c+1!==a.headers.length]])],64))),128))],16))}const qd=z(HB,[["render",GB],["__scopeId","data-v-b5deec9c"]]);function Wm(e){return t.getCurrentScope()?(t.onScopeDispose(e),!0):!1}function Do(e){return typeof e=="function"?e():t.unref(e)}const Qm=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const WB=Object.prototype.toString,QB=e=>WB.call(e)==="[object Object]",Co=()=>{},Id=XB();function XB(){var e,n;return Qm&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((n=window==null?void 0:window.navigator)==null?void 0:n.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}const Xm={mounted:"mounted",unmounted:"unmounted"};function KB(...e){if(e.length!==1)return t.toRef(...e);const n=e[0];return typeof n=="function"?t.readonly(t.customRef(()=>({get:n,set:Co}))):t.ref(n)}function Eo(e){var n;const a=Do(e);return(n=a==null?void 0:a.$el)!=null?n:a}const Km=Qm?window:void 0;function il(...e){let n,a,i,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([a,i,r]=e,n=Km):[n,a,i,r]=e,!n)return Co;Array.isArray(a)||(a=[a]),Array.isArray(i)||(i=[i]);const s=[],l=()=>{s.forEach(g=>g()),s.length=0},d=(g,h,F,p)=>(g.addEventListener(h,F,p),()=>g.removeEventListener(h,F,p)),c=t.watch(()=>[Eo(n),Do(r)],([g,h])=>{if(l(),!g)return;const F=QB(h)?{...h}:h;s.push(...a.flatMap(p=>i.map(y=>d(g,p,y,F))))},{immediate:!0,flush:"post"}),_=()=>{c(),l()};return Wm(_),_}let Zm=!1;function Jm(e,n,a={}){const{window:i=Km,ignore:r=[],capture:s=!0,detectIframe:l=!1}=a;if(!i)return Co;Id&&!Zm&&(Zm=!0,Array.from(i.document.body.children).forEach(F=>F.addEventListener("click",Co)),i.document.documentElement.addEventListener("click",Co));let d=!0;const c=F=>r.some(p=>{if(typeof p=="string")return Array.from(i.document.querySelectorAll(p)).some(y=>y===F.target||F.composedPath().includes(y));{const y=Eo(p);return y&&(F.target===y||F.composedPath().includes(y))}}),g=[il(i,"click",F=>{const p=Eo(e);if(!(!p||p===F.target||F.composedPath().includes(p))){if(F.detail===0&&(d=!c(F)),!d){d=!0;return}n(F)}},{passive:!0,capture:s}),il(i,"pointerdown",F=>{const p=Eo(e);d=!c(F)&&!!(p&&!F.composedPath().includes(p))},{passive:!0}),l&&il(i,"blur",F=>{setTimeout(()=>{var p;const y=Eo(e);((p=i.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!(y!=null&&y.contains(i.document.activeElement))&&n(F)},0)})].filter(Boolean);return()=>g.forEach(F=>F())}const rl={[Xm.mounted](e,n){const a=!n.modifiers.bubble;if(typeof n.value=="function")e.__onClickOutside_stop=Jm(e,n.value,{capture:a});else{const[i,r]=n.value;e.__onClickOutside_stop=Jm(e,i,Object.assign({capture:a},r))}},[Xm.unmounted](e){e.__onClickOutside_stop()}};function Nd(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function $m(e){const n=window.getComputedStyle(e);if(n.overflowX==="scroll"||n.overflowY==="scroll"||n.overflowX==="auto"&&e.clientWidth<e.scrollWidth||n.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const a=e.parentNode;return!a||a.tagName==="BODY"?!1:$m(a)}}function ZB(e){const n=e||window.event,a=n.target;return $m(a)?!1:n.touches.length>1?!0:(n.preventDefault&&n.preventDefault(),!1)}const Td=new WeakMap;function JB(e,n=!1){const a=t.ref(n);let i=null,r="";t.watch(KB(e),d=>{const c=Nd(Do(d));if(c){const _=c;if(Td.get(_)||Td.set(_,_.style.overflow),_.style.overflow!=="hidden"&&(r=_.style.overflow),_.style.overflow==="hidden")return a.value=!0;if(a.value)return _.style.overflow="hidden"}},{immediate:!0});const s=()=>{const d=Nd(Do(e));!d||a.value||(Id&&(i=il(d,"touchmove",c=>{ZB(c)},{passive:!1})),d.style.overflow="hidden",a.value=!0)},l=()=>{const d=Nd(Do(e));!d||!a.value||(Id&&(i==null||i()),d.style.overflow=r,Td.delete(d),a.value=!1)};return Wm(l),t.computed({get(){return a.value},set(d){d?s():l()}})}function $B(){let e=!1;const n=t.ref(!1);return(a,i)=>{if(n.value=i.value,e)return;e=!0;const r=JB(a,i.value);t.watch(n,s=>r.value=s)}}$B();const ex={name:"UnnnicDropdown",directives:{onClickOutside:rl},props:{useOpenProp:{type:Boolean,default:!1},open:{type:Boolean,default:!1},forceOpen:{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.forceOpen||(this.useOpenProp?this.$emit("update:open",!this.open):this.active=!this.active)},onClickOutside(){if(!this.forceOpen){if(this.useOpenProp&&this.open){this.$emit("update:open",!1);return}this.active&&(this.active=!1)}}}},tx={class:"unnnic-dropdown__trigger"};function ax(e,n,a,i,r,s){const l=t.resolveDirective("on-click-outside");return t.openBlock(),t.createElementBlock("div",{class:"unnnic-dropdown",onClick:n[0]||(n[0]=t.withModifiers((...d)=>s.onClickTrigger&&s.onClickTrigger(...d),["stop"]))},[t.createElementVNode("div",tx,[t.renderSlot(e.$slots,"trigger",{},void 0,!0),(a.useOpenProp?a.open:r.active)?t.withDirectives((t.openBlock(),t.createElementBlock("div",{key:0,"data-testid":"dropdown-content",class:t.normalizeClass(["unnnic-dropdown__content",a.useOpenProp?a.open:r.active?"":"unnnic-dropdown__content--hidden",`unnnic-dropdown__content__position-${a.position}`])},[t.renderSlot(e.$slots,"default",{},void 0,!0)],2)),[[l,s.onClickOutside]]):t.createCommentVNode("",!0)])])}const Ao=z(ex,[["render",ax],["__scopeId","data-v-2f5344c2"]]),nx={name:"UnnnicDropdownItem"},ix={class:"unnnic-dropdown-item unnnic--clickable","data-testid":"dropdown-item"};function rx(e,n,a,i,r,s){return t.openBlock(),t.createElementBlock("a",ix,[t.renderSlot(e.$slots,"default")])}const ol=z(nx,[["render",rx]]),ox={components:{UnnnicIcon:fe},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:"fg-info"},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 sx(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["unnnic-avatar-icon",a.scheme,a.size,{disabled:!a.enabled},a.filled,{opacity:!a.opacity}])},[t.createVNode(l,{icon:a.icon,scheme:a.enabled?a.scheme:"fg-base",size:s.iconSize,filled:a.filled},null,8,["icon","scheme","size","filled"])],2)}const Ti=z(ox,[["render",sx],["__scopeId","data-v-0522f602"]]),lx={name:"UnnnicCard",components:{UnnnicIcon:fe,UnnnicAvatarIcon:Ti},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"}}},ux={class:"unnnic-card-dash"},dx={class:"header"},cx={class:"label"},fx={class:"content"},_x={class:"value"},gx={class:"label"};function hx(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicAvatarIcon"),d=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createElementBlock("div",ux,[t.createElementVNode("div",dx,[t.createVNode(l,{size:"sm",scheme:a.scheme,icon:a.icon},null,8,["scheme","icon"]),t.createElementVNode("div",cx,t.toDisplayString(a.title),1)]),t.createElementVNode("div",fx,[t.createElementVNode("div",_x,t.toDisplayString(a.value),1),a.percent?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["percent",`unnnic-card-scheme--feedback-${s.color}`])},[t.createVNode(d,{icon:`graph-stats-${a.percent>=0?"ascend":"descend"}-2`,scheme:`feedback-${s.color}`,size:"sm",class:"icon"},null,8,["icon","scheme"]),t.createElementVNode("div",gx,t.toDisplayString(a.percent>=0?`+${a.percent}%`:`${a.percent}%`),1)],2)):t.createCommentVNode("",!0)])])}const mx=z(lx,[["render",hx],["__scopeId","data-v-32f9b938"]]),Fx={name:"UnnnicCard",components:{ToolTip:Xt,UnnnicIcon:fe},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}}},px={class:"unnnic-card-title"},bx={class:"title"};function yx(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicIcon"),d=t.resolveComponent("ToolTip");return t.openBlock(),t.createElementBlock("div",px,[t.createElementVNode("div",{class:t.normalizeClass(["avatar-icon",`unnnic-card-scheme--${a.scheme}`])},[t.createVNode(l,{icon:a.icon,scheme:a.scheme,size:"md"},null,8,["icon","scheme"])],2),t.createElementVNode("div",bx,t.toDisplayString(a.title),1),a.hasInformationIcon?(t.openBlock(),t.createBlock(d,{key:0,class:"information",side:a.infoPosition,text:a.info,enabled:a.enabled},{default:t.withCtx(()=>[t.createVNode(l,{icon:"information-circle-4",class:"unnnic-card-title__content_info",size:"sm",scheme:"fg-muted"})]),_:1},8,["side","text","enabled"])):t.createCommentVNode("",!0)])}const e2=z(Fx,[["render",yx],["__scopeId","data-v-ff5285fa"]]),kx={name:"UnnnicCard",components:{UnnnicIcon:fe},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}}},wx={class:"header"},Dx={class:"label"},Cx={class:"content"},Ex={class:"title-container"},Ax={class:"title"},Bx={class:"description"};function xx(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["unnnic-card-status",`unnnic-card-scheme--${a.scheme}--border`])},[t.createElementVNode("div",wx,[t.createVNode(l,{icon:a.icon,scheme:"fg-base",size:"md",class:"icon"},null,8,["icon"]),t.createElementVNode("div",Dx,t.toDisplayString(a.title),1)]),t.createElementVNode("div",Cx,[t.createElementVNode("div",Ex,[t.createVNode(l,{icon:"indicator",scheme:a.scheme,size:"sm"},null,8,["scheme"]),t.createElementVNode("div",Ax,t.toDisplayString(a.status),1)]),t.createElementVNode("div",Bx,t.toDisplayString(a.description),1)])],2)}const vx=z(kx,[["render",xx],["__scopeId","data-v-784b6871"]]),Sx={name:"UnnnicCard",components:{UnnnicAvatarIcon:Ti},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}}},jx={class:"icon"},qx={class:"content"},Ix={class:"title"},Nx={class:"description"};function Tx(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicAvatarIcon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass({"unnnic-card-account":!0,enabled:a.enabled})},[t.createElementVNode("div",jx,[t.createVNode(l,{size:"xs",scheme:a.scheme,icon:a.icon,enabled:a.enabled},null,8,["scheme","icon","enabled"])]),t.createElementVNode("div",qx,[t.createElementVNode("div",Ix,t.toDisplayString(a.title),1),t.createElementVNode("div",Nx,t.toDisplayString(a.description),1)])],2)}const Ox=z(Sx,[["render",Tx],["__scopeId","data-v-cd0328b9"]]),Mx={name:"UnnnicCard",props:{title:{type:String,default:null},description:{type:String,default:null},clickable:{type:Boolean,default:!1}}},Px={class:"unnnic-card-default__content"},Lx={class:"unnnic-card-default__title"},zx=["title"];function Vx(e,n,a,i,r,s){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass({"unnnic-card-default":!0,"unnnic-card-default__clickable":a.clickable})},[t.createElementVNode("div",Px,[t.createElementVNode("div",Lx,t.toDisplayString(a.title),1),t.createElementVNode("p",{class:"unnnic-card-default__description",title:a.description},t.toDisplayString(a.description),9,zx)])],2)}const Rx=z(Mx,[["render",Vx]]),Ux={name:"UnnnicCard",components:{UnnnicIcon:fe},props:{text:{type:String,default:null},icon:{type:String,default:null},clickable:{type:Boolean,default:!1}}},Hx={class:"unnnic-card-blank__content"},Yx={class:"unnnic-card-blank__content__text"};function Gx(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass({"unnnic-card-blank":!0,"unnnic-card-blank__clickable":a.clickable})},[t.createElementVNode("div",Hx,[t.createVNode(l,{icon:a.icon,scheme:"fg-base",class:"unnnic-card-blank__content__icon",size:"xl"},null,8,["icon"]),t.createElementVNode("div",Yx,t.toDisplayString(a.text),1)])],2)}const Wx=z(Ux,[["render",Gx]]),Qx={name:"UnnnicCard",components:{UnnnicIcon:fe},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}}},Xx={class:"unnnic-card-content__content"},Kx={class:"unnnic-card-content__content__title"},Zx={class:"unnnic-card-content__content__description"};function Jx(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass({"unnnic-card-content":!0,"unnnic-card-content--disabled":!a.enabled,"unnnic-card-content__clickable":a.clickable})},[t.createElementVNode("div",{class:t.normalizeClass(["unnnic-card-content__icon",a.enabled&&"unnnic-card-content__icon--disabled"])},[t.createVNode(l,{icon:a.icon,scheme:"fg-base",size:"sm"},null,8,["icon"])],2),t.createElementVNode("div",Xx,[t.createElementVNode("div",Kx,t.toDisplayString(a.title),1),t.createElementVNode("div",Zx,t.toDisplayString(a.description),1)])],2)}const $x=z(Qx,[["render",Jx]]),ev={name:"UnnnicCard",components:{UnnnicIcon:fe},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")}}},tv={class:t.normalizeClass(["unnnic-card-marketplace__icons"])},av=["src"],nv={class:"unnnic-card-marketplace__content"},iv={class:"unnnic-card-marketplace__content__title"},rv=["title"],ov={key:0,class:"unnnic-card-marketplace__content__rating"},sv={class:"unnnic-card-marketplace__content__rating__value"},lv={class:"unnnic-card-marketplace__content__rating__comments"};function uv(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass({"unnnic-card-marketplace":!0,"unnnic-card-marketplace__clickable":a.clickable,"unnnic-card-marketplace__add":a.typeAction==="add","unnnic-card-marketplace__config":a.typeAction==="config","unnnic-card-marketplace__edit":a.typeAction==="edit"}),onClick:n[0]||(n[0]=(...d)=>s.cardClick&&s.cardClick(...d))},[t.createElementVNode("div",tv,[t.createElementVNode("img",{class:"unnnic-card-marketplace__icons__app",src:a.iconSrc},null,8,av),t.renderSlot(e.$slots,"actions")]),t.createElementVNode("div",nv,[t.createElementVNode("div",iv,t.toDisplayString(a.title),1),t.createElementVNode("div",{class:"unnnic-card-marketplace__content__description",title:a.description},t.toDisplayString(a.description),9,rv),a.typeAction==="add"?(t.openBlock(),t.createElementBlock("div",ov,[t.createVNode(l,{class:"unnnic-card-marketplace__content__rating__star",scheme:"feedback-yellow",icon:"rating-star-1",size:"ant",filled:""}),t.createElementVNode("div",sv,t.toDisplayString(a.rating),1),t.createElementVNode("div",lv," ("+t.toDisplayString(a.comments)+") ",1)])):t.createCommentVNode("",!0)])],2)}const dv=z(ev,[["render",uv]]),cv={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"?e2:this.type==="dash"?mx:this.type==="status"?vx:this.type==="account"?Ox:this.type==="default"?Rx:this.type==="blank"?Wx:this.type==="content"?$x:this.type==="marketplace"?dv:e2}},methods:{openModal(){this.$emit("openModal")}}};function fv(e,n,a,i,r,s){return t.openBlock(),t.createBlock(t.resolveDynamicComponent(s.currentComponent),t.mergeProps({class:"unnnic-card-component"},e.$attrs,{title:a.title,text:a.text,info:a.info,icon:s.currentTypeIcon,iconSrc:a.iconSrc,rating:a.rating,comments:a.comments,typeAction:a.typeAction,buttonAction:a.buttonAction,value:a.value,percent:a.percent,invertedPercentage:a.invertedPercentage||null,status:a.status,description:a.description,infoPosition:a.infoPosition,enabled:a.enabled,scheme:a.scheme,clickable:a.clickable||null,hasInformationIcon:a.hasInformationIcon||null,onOpenModal:s.openModal}),t.createSlots({_:2},[t.renderList(e.$slots,(l,d)=>({name:d,fn:t.withCtx(()=>[t.renderSlot(e.$slots,d)])}))]),1040,["title","text","info","icon","iconSrc","rating","comments","typeAction","buttonAction","value","percent","invertedPercentage","status","description","infoPosition","enabled","scheme","clickable","hasInformationIcon","onOpenModal"])}const Od=z(cv,[["render",fv]]),Md={name:"UnnnicSimpleCard",components:{UnnnicToolTip:Xt,UnnnicIcon:fe},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"]},t2=()=>{t.useCssVars(e=>({"503b66d5":e.titleSize}))},a2=Md.setup;Md.setup=a2?(e,n)=>(t2(),a2(e,n)):t2;const _v={key:0,class:"unnnic-simple-card__header"},gv={class:"unnnic-simple-card-header-container"},hv={class:"unnnic-simple-card-header-container__title"},mv={key:0,class:"unnnic-simple-card__header-slot"},Fv=["title"],pv={key:2,class:"unnnic-simple-card__footer"};function bv(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicIcon"),d=t.resolveComponent("UnnnicToolTip");return t.openBlock(),t.createElementBlock("section",{class:t.normalizeClass({"unnnic-simple-card":!0,"unnnic-simple-card--clickable":a.clickable}),onClick:n[0]||(n[0]=t.withModifiers(c=>a.clickable&&e.$emit("click"),["stop"]))},[a.title||e.$slots.headerSlot?(t.openBlock(),t.createElementBlock("section",_v,[t.createElementVNode("section",gv,[t.createElementVNode("h1",hv,t.toDisplayString(a.title),1),a.titleTooltip?(t.openBlock(),t.createBlock(d,{key:0,text:a.titleTooltip,enabled:"",class:"unnnic-simple-card-header-container__title-tooltip"},{default:t.withCtx(()=>[t.createVNode(l,{icon:"info",size:"nano",scheme:"fg-base"})]),_:1},8,["text"])):t.createCommentVNode("",!0)]),e.$slots.headerSlot?(t.openBlock(),t.createElementBlock("section",mv,[t.renderSlot(e.$slots,"headerSlot",{},void 0,!0)])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),a.text?(t.openBlock(),t.createElementBlock("p",{key:1,class:"unnnic-simple-card__text",title:a.text},t.toDisplayString(a.text),9,Fv)):t.createCommentVNode("",!0),e.$slots.footer?(t.openBlock(),t.createElementBlock("section",pv,[t.renderSlot(e.$slots,"footer",{},void 0,!0)])):t.createCommentVNode("",!0)],2)}const Pd=z(Md,[["render",bv],["__scopeId","data-v-29a7f9ca"]]),$a={props:{locale:{type:String},translations:{type:Object}},methods:{i18n(...e){const[n,a]=e,i=Object.keys(Ni.global.messages);let{locale:r}=this;const s=Kt.get(Ni,"global.locale")==="en-us"?"en":Kt.get(Ni,"global.locale");r=i.includes(r)?r:s,r=r==null?void 0:r.toLowerCase();let l=Kt.get(this.translations,`${n}.${r}`,Kt.get(this.translations,n));if(l||(l=Kt.get(Kt.get(this.defaultTranslations,n),r,a)),l!=null&&l.includes("|")&&typeof e[1]=="number"){const c=e[1],_=l.split("|");_.length===3?l=_[c]||_[2]:_.length===2&&(l=c===1?_[0]:_[1])}let d={};return Object.values(e).slice(1).forEach(c=>{!(c instanceof Array)&&c instanceof Object&&(d=c)}),Object.keys(d).forEach(c=>{l=l==null?void 0:l.replaceAll(new RegExp(`{ *${c} *}`,"g"),d[c])}),l}}},yv={class:"chip__text"},sl=z(t.defineComponent({__name:"Chip",props:{isSelected:{type:Boolean},text:{},count:{},type:{},isClickable:{type:Boolean},onClick:{type:Function}},emits:["click"],setup(e,{emit:n}){const a=e,i=n,r=c=>{i("click",c)},s=t.computed(()=>!a.isSelected),l=t.computed(()=>a.isSelected?"chip__count--is-selected":""),d=t.computed(()=>a.isSelected?"chip--is-selected":"");return(c,_)=>(t.openBlock(),t.createElementBlock("section",{class:t.normalizeClass(["chip",d.value,{"chip--border":s.value,"chip--is-clickable":c.isClickable}]),onClick:r},[t.createElementVNode("p",yv,t.toDisplayString(c.text),1),c.count?(t.openBlock(),t.createElementBlock("p",{key:0,class:t.normalizeClass(["chip__count",l.value])},t.toDisplayString(c.count),3)):t.createCommentVNode("",!0),t.renderSlot(c.$slots,"right",{},void 0,!0),c.type==="multiple"?(t.openBlock(),t.createBlock(fe,{key:1,icon:c.isSelected?"close":"add",scheme:"fg-emphasized",class:"chip__icon",size:"sm"},null,8,["icon"])):t.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-97d74d2c"]]),kv={key:0,class:"unnnic-tag__icon"},wv={class:t.normalizeClass("unnnic-tag__label")},Dv=z(t.defineComponent({__name:"DefaultTag",props:{text:{default:void 0},size:{default:"medium"},scheme:{default:"aux-purple"},leftIcon:{default:void 0}},setup(e){const n=e,a=[{keywords:["green"],color:"var(--unnnic-color-bg-green-plain)"},{keywords:["blue"],color:"var(--unnnic-color-bg-blue-plain)"},{keywords:["purple"],color:"var(--unnnic-color-bg-purple-plain)"},{keywords:["red","pink"],color:"var(--unnnic-color-bg-red-plain)"},{keywords:["orange"],color:"var(--unnnic-color-bg-orange-plain)"},{keywords:["yellow"],color:"var(--unnnic-color-bg-yellow-plain)"},{keywords:["gray"],color:"var(--unnnic-color-bg-muted)"},{keywords:["teal","weni"],color:"var(--unnnic-color-bg-teal-plain)"}],i=t.computed(()=>{const r=n.scheme.toLowerCase(),s=a.find(({keywords:l})=>l.some(d=>r.includes(d)));return(s==null?void 0:s.color)??"var(--unnnic-color-bg-muted)"});return(r,s)=>(t.openBlock(),t.createElementBlock("section",{class:t.normalizeClass(`unnnic-tag unnnic-tag--${r.size}`),style:t.normalizeStyle({backgroundColor:i.value})},[r.leftIcon?(t.openBlock(),t.createElementBlock("section",kv,[t.createVNode(fe,{icon:r.leftIcon,scheme:"fg-emphasized",size:"sm"},null,8,["icon"])])):t.createCommentVNode("",!0),t.createElementVNode("p",wv,t.toDisplayString(r.text),1)],6))}}),[["__scopeId","data-v-299f2efd"]]),Ar=t.defineComponent({name:"UnnnicTag",__name:"Tag",props:{type:{default:"default"},size:{default:"medium"},text:{default:void 0},disabled:{type:Boolean,default:!1},scheme:{default:"aux-purple"},leftIcon:{default:""},hasCloseIcon:{type:Boolean,default:!1}},emits:["close","click"],setup(e){return(n,a)=>n.type==="brand"||n.hasCloseIcon?(t.openBlock(),t.createBlock(sl,{key:0,text:n.text,type:"multiple",isSelected:n.disabled||n.hasCloseIcon,isClickable:"",onClick:a[0]||(a[0]=i=>n.hasCloseIcon?n.$emit("close"):n.$emit("click"))},null,8,["text","isSelected"])):(t.openBlock(),t.createBlock(Dv,{key:1,size:n.type==="next"?"small":n.size,text:n.text,scheme:n.scheme,leftIcon:n.leftIcon},null,8,["size","text","scheme","leftIcon"]))}}),Cv={components:{UnnnicTag:Ar},mixins:[$a],props:{oldVersion:Boolean,name:String,description:String,plan:String,actionText:String},data(){return{isOptionsOpen:!1}}},Ev={class:"name"},Av={class:"description"},Bv={key:1};function xv(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicTag"),d=t.resolveComponent("UnnnicIcon"),c=t.resolveComponent("UnnnicDropdown");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["unnnic-connect-card-company",{"unnnic-connect-card-company--old-version":a.oldVersion}]),onClick:n[3]||(n[3]=_=>e.$emit("enter"))},[t.createElementVNode("div",null,[t.createElementVNode("h2",Ev,t.toDisplayString(a.name),1),t.createElementVNode("p",Av,t.toDisplayString(a.description),1),a.plan?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["tag",a.plan])},t.toDisplayString(e.i18n(`plans.${a.plan}`)),3)):t.createCommentVNode("",!0)]),a.actionText?(t.openBlock(),t.createBlock(l,{key:0,class:"action",clickable:"",text:a.actionText,scheme:"aux-blue",onClick:n[0]||(n[0]=_=>e.$emit("action"))},null,8,["text"])):t.createCommentVNode("",!0),e.$slots.options?(t.openBlock(),t.createElementBlock("div",Bv,[t.createVNode(c,{open:r.isOptionsOpen,"onUpdate:open":n[1]||(n[1]=_=>r.isOptionsOpen=_),class:"unnnic-dropdown",onClick:n[2]||(n[2]=t.withModifiers(()=>{},["prevent"]))},{trigger:t.withCtx(()=>[t.createVNode(d,{class:"menu-icon",icon:"navigation-menu-vertical-1",size:"sm",scheme:"fg-base"})]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"options",{},void 0,!0)]),_:3},8,["open"])])):t.createCommentVNode("",!0)],2)}const Ld=z(Cv,[["render",xv],["__scopeId","data-v-dac06e20"]]),vv={components:{UnnnicIcon:fe},props:{title:{type:String},description:{type:String},score:{type:String},info:{type:String},checked:{type:Boolean,default:!1}}},Sv={class:"card"},jv={class:"header"},qv={class:"title"},Iv={key:0,class:"check"},Nv={class:"description"},Tv={key:0,class:"footer"},Ov={class:"evaluation"},Mv={class:"info"};function Pv(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createElementBlock("div",Sv,[t.createElementVNode("div",jv,[t.createElementVNode("div",qv,t.toDisplayString(a.title),1),a.checked?(t.openBlock(),t.createElementBlock("div",Iv,[t.createVNode(l,{size:"md",icon:"check-circle-1-1-1",scheme:"feedback-green"})])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Nv,t.toDisplayString(a.description),1),a.score||a.info?(t.openBlock(),t.createElementBlock("div",Tv,[t.createElementVNode("div",Ov,[a.score?(t.openBlock(),t.createBlock(l,{key:0,size:"sm",icon:"rating-star-1",scheme:"feedback-yellow"})):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(a.score)+" ",1),t.createElementVNode("span",Mv,t.toDisplayString(a.info),1)])])):t.createCommentVNode("",!0)])}const zd=z(vv,[["render",Pv],["__scopeId","data-v-0ebd61ad"]]),Lv={model:{event:"change"},props:{modelValue:{type:[Boolean,String],default:!1,validator(e){return[!0,!1,"less"].includes(e)}},disabled:{type:Boolean,default:!1},label:{type:String,default:""},helper:{type:String,default:""},textRight:{type:String,default:""}},emits:["change","update:model-value"],computed:{valueName(){return this.modelValue===!0?"checked":this.modelValue===!1?"default":"less"}},methods:{pick:Kt.pick,click(){const e=["checked","less"].includes(this.valueName);this.$emit("change",!e),this.$emit("update:model-value",!e)}}},zv={class:"unnnic-checkbox"},Vv=["disabled","checked"],Rv={key:0,class:"unnnic-checkbox__helper"};function Uv(e,n,a,i,r,s){return t.openBlock(),t.createElementBlock("section",zv,[t.createElementVNode("label",{class:t.normalizeClass(["unnnic-checkbox__input-wrapper",{"unnnic-checkbox__input-wrapper--disabled":a.disabled}])},[t.createElementVNode("input",t.mergeProps({class:["unnnic-checkbox__input",{"unnnic-checkbox__input--less":a.modelValue==="less"}],type:"checkbox",disabled:a.disabled,checked:a.modelValue==="less"||a.modelValue},s.pick(e.$attrs,["id","name"]),{onChange:n[0]||(n[0]=(...l)=>s.click&&s.click(...l))}),null,16,Vv),a.label||a.textRight?(t.openBlock(),t.createElementBlock("p",{key:0,class:t.normalizeClass(["unnnic-checkbox__label",{"unnnic-checkbox__label--disabled":a.disabled}]),"data-testid":"checkbox-text-right"},t.toDisplayString(a.label||a.textRight),3)):t.createCommentVNode("",!0)],2),a.helper?(t.openBlock(),t.createElementBlock("p",Rv,t.toDisplayString(a.helper),1)):t.createCommentVNode("",!0)])}const Br=z(Lv,[["render",Uv],["__scopeId","data-v-14c8c277"]]),Hv={components:{UnnnicIcon:fe,UnnnicCheckbox:Br,UnnnicAvatarIcon:Ti,UnnnicDropdown:Ao},props:{modelValue:Boolean,title:String,description:String,image:String,data:{type:Array,default(){return[]}}}},Yv={class:"header"},Gv={class:"content"},Wv={key:0,class:"u font secondary body-lg bold color-fg-emphasized"},Qv={key:1,class:"u font secondary body-md color-fg-base"},Xv=["src"],Kv={key:0,class:"details"},Zv={class:"u font secondary body-gt color-fg-base"},Jv={class:"value-container"},$v={class:"u font secondary body-gt color-fg-emphasized"};function eS(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicCheckbox"),d=t.resolveComponent("UnnnicIcon"),c=t.resolveComponent("UnnnicDropdown"),_=t.resolveComponent("UnnnicAvatarIcon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["unnnic-card-image",{checked:a.modelValue}])},[t.createElementVNode("div",Yv,[t.createElementVNode("div",Gv,[a.title?(t.openBlock(),t.createElementBlock("div",Wv,t.toDisplayString(a.title),1)):t.createCommentVNode("",!0),a.description?(t.openBlock(),t.createElementBlock("div",Qv,t.toDisplayString(a.description),1)):t.createCommentVNode("",!0)]),t.createVNode(l,{modelValue:a.modelValue,onChange:n[0]||(n[0]=g=>e.$emit("update:model-value",g))},null,8,["modelValue"]),e.$slots.actions?(t.openBlock(),t.createBlock(c,{key:0,position:"bottom-left"},{trigger:t.withCtx(()=>[t.createVNode(d,{icon:"navigation-menu-vertical-1",size:"sm",scheme:"fg-muted",clickable:""})]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"actions",{},void 0,!0)]),_:3})):t.createCommentVNode("",!0)]),t.createElementVNode("img",{class:"image",src:a.image},null,8,Xv),a.data.length?(t.openBlock(),t.createElementBlock("div",Kv,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.data,(g,h)=>(t.openBlock(),t.createElementBlock("div",{key:h,class:"data"},[t.createElementVNode("div",Zv,t.toDisplayString(g.name),1),t.createElementVNode("div",Jv,[t.createVNode(_,{icon:g.icon,size:"xs",scheme:g.scheme},null,8,["icon","scheme"]),t.createElementVNode("div",$v,t.toDisplayString(g.value),1)])]))),128))])):t.createCommentVNode("",!0)],2)}const Vd=z(Hv,[["render",eS],["__scopeId","data-v-d331e392"]]),tS={components:{UnnnicIcon:fe,UnnnicDropdown:Ao,UnnnicDropdownItem:ol},mixins:[$a],props:{name:{type:String,default:""},description:{type:String,default:""},status:{type:String,required:!0},canUpdateStatus:{type:Boolean,default:!1},clickable:{type:Boolean,default:!1}},emits:["click","changeProjectStatus"],data(){return{openDropdown:!1,defaultTranslations:{IN_TEST:{"pt-br":"Em teste",en:"In test",es:"En prueba"},ACTIVE:{"pt-br":"Ativo",en:"Active",es:"Activo"},INACTIVE:{"pt-br":"Inativo",en:"Inactive",es:"Inactivo"}}}},computed:{showActions(){var n,a;const e=(a=(n=this.$slots).actions)==null?void 0:a.call(n);return!!(e!=null&&e.length)},colorStatus(){return{ACTIVE:"fg-success",INACTIVE:"fg-base",IN_TEST:"fg-warning"}[this.status]},statusOptions(){return["ACTIVE","INACTIVE","IN_TEST"].filter(e=>e!==this.status)}},methods:{emitClick(e){this.clickable&&this.$emit("click",{button:e==null?void 0:e.button})},handlerDropdownOpen(){this.canUpdateStatus&&(this.openDropdown=!this.openDropdown)},handlerClickDropdownItem(e){this.$emit("changeProjectStatus",e)}}},aS={class:"unnnic-card-project__header"},nS=["title"],iS={class:"unnnic-card-project__description"},rS=["title"],oS={class:"unnnic-card-project__bottom"},sS={class:"unnnic-card-project__status-options-container"};function lS(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicIcon"),d=t.resolveComponent("UnnnicDropdown"),c=t.resolveComponent("UnnnicDropdownItem");return t.openBlock(),t.createElementBlock("section",{class:t.normalizeClass({"unnnic-card-project":!0,"unnnic-card-project--clickable":a.clickable,"unnnic-card-project--inactive":a.status==="INACTIVE"}),"data-testid":"unnnic-card-project",onClick:[n[2]||(n[2]=t.withModifiers((..._)=>s.emitClick&&s.emitClick(..._),["left","exact"])),n[4]||(n[4]=t.withModifiers(_=>s.emitClick({button:1}),["ctrl"]))],onMouseup:n[3]||(n[3]=t.withModifiers((..._)=>s.emitClick&&s.emitClick(..._),["middle","exact","prevent"]))},[t.createElementVNode("section",aS,[t.createElementVNode("h1",{title:a.name,class:t.normalizeClass({"unnnic-card-project__title":!0,"unnnic-card-project__title--inactive":a.status==="INACTIVE"}),"data-testid":"card-project-title"},t.toDisplayString(a.name),11,nS),s.showActions?(t.openBlock(),t.createBlock(d,{key:0,position:"bottom-left","data-testid":"dropdown-actions"},{trigger:t.withCtx(()=>[t.createVNode(l,{size:"sm",icon:"navigation-menu-vertical-1",clickable:"",scheme:"fg-muted"})]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"actions",{},void 0,!0)]),_:3})):t.createCommentVNode("",!0)]),t.createElementVNode("section",iS,[t.createElementVNode("p",{title:a.description,class:t.normalizeClass({"unnnic-card-project__description":!0,"unnnic-card-project__description--inactive":a.status==="INACTIVE"})},t.toDisplayString(a.description),11,rS)]),t.createElementVNode("section",oS,[t.createElementVNode("section",{class:t.normalizeClass(["unnnic-card-project__status-chip",`unnnic-card-project__status-chip--${a.status}`]),"data-testid":"project-status-chip",onClick:n[1]||(n[1]=t.withModifiers(_=>s.handlerDropdownOpen(),["stop"]))},[t.createElementVNode("p",null,t.toDisplayString(e.i18n(a.status)),1),a.canUpdateStatus?(t.openBlock(),t.createBlock(l,{key:0,icon:"keyboard_arrow_down",size:"sm",clickable:"",scheme:s.colorStatus},null,8,["scheme"])):t.createCommentVNode("",!0),t.createVNode(d,{open:r.openDropdown,useOpenProp:"","data-testid":"status-dropdown","onUpdate:open":n[0]||(n[0]=_=>r.openDropdown=_)},{default:t.withCtx(()=>[t.createElementVNode("section",sS,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.statusOptions,_=>(t.openBlock(),t.createBlock(c,{key:_,class:"status-option",onClick:g=>s.handlerClickDropdownItem(_)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.i18n(_)),1)]),_:2},1032,["onClick"]))),128))])]),_:1},8,["open"])],2)])],34)}const Rd=z(tS,[["render",lS],["__scopeId","data-v-e9dc5349"]]),uS={components:{UnnnicAvatarIcon:Ti,UnnnicToolTip:Xt,UnnnicIcon:fe},props:{name:{type:String,default:""},subtitle:{type:String,default:""},description:{type:String,default:""},descriptionRow:{type:String,default:""},descriptionRowInfo:{type:String,default:""},statuses:{type:Array},minStatusWidth:{type:[String,Number],default:5.625*Gr}}},dS={class:"unnnic-card-container"},cS={class:"header"},fS={class:"title"},_S=["title"],gS={key:0,class:"subtitle"},hS={key:0,class:"description"},mS={key:1,class:"description-row-container"},FS={key:0,class:"description-row"},pS={class:"title"},bS={class:"content"},yS={class:"number"};function kS(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicIcon"),d=t.resolveComponent("UnnnicToolTip"),c=t.resolveComponent("UnnnicAvatarIcon");return t.openBlock(),t.createElementBlock("div",dS,[t.createElementVNode("div",cS,[t.createElementVNode("div",fS,[t.createElementVNode("span",{class:"name",title:a.name.length>25?a.name:null},t.toDisplayString(a.name),9,_S),a.subtitle?(t.openBlock(),t.createElementBlock("div",gS,t.toDisplayString(a.subtitle),1)):t.createCommentVNode("",!0)]),t.renderSlot(e.$slots,"header-buttons",{},void 0,!0)]),a.description?(t.openBlock(),t.createElementBlock("div",hS,t.toDisplayString(a.description),1)):t.createCommentVNode("",!0),a.descriptionRow||a.descriptionRowInfo?(t.openBlock(),t.createElementBlock("div",mS,[a.descriptionRow?(t.openBlock(),t.createElementBlock("div",FS,t.toDisplayString(a.descriptionRow),1)):t.createCommentVNode("",!0),a.descriptionRowInfo?(t.openBlock(),t.createBlock(d,{key:1,side:"top",text:a.descriptionRowInfo,enabled:""},{default:t.withCtx(()=>[t.createVNode(l,{class:"info",icon:"information-circle-4",size:"sm",scheme:"fg-muted"})]),_:1},8,["text"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),n[0]||(n[0]=t.createElementVNode("div",{class:"separator"},null,-1)),t.renderSlot(e.$slots,"content",{},void 0,!0),t.createElementVNode("div",{class:"statuses",style:t.normalizeStyle({gridTemplateColumns:`repeat(auto-fit, minmax(${a.minStatusWidth}, 1fr))`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.statuses,(_,g)=>(t.openBlock(),t.createElementBlock("div",{key:g,class:"status"},[t.createElementVNode("div",pS,t.toDisplayString(_.title),1),t.createElementVNode("div",bS,[t.createVNode(c,{icon:_.icon,scheme:_.scheme,size:"xs"},null,8,["icon","scheme"]),t.createElementVNode("div",yS,t.toDisplayString(_.count),1)])]))),128))],4)])}const wS={components:{CardStatusesContainer:z(uS,[["render",kS],["__scopeId","data-v-cf53b28b"]])},props:{name:{type:String,default:""},subtitle:{type:String,default:""},description:{type:String,default:""},descriptionRow:{type:String,default:""},descriptionRowInfo:{type:String,default:""},statuses:{type:Array}},data(){return{unnnicFontSize:Gr}}};function DS(e,n,a,i,r,s){const l=t.resolveComponent("CardStatusesContainer");return t.openBlock(),t.createBlock(l,{class:"unnnic-card-information",name:a.name,subtitle:a.subtitle,description:a.description,descriptionRow:a.descriptionRow,descriptionRowInfo:a.descriptionRowInfo,statuses:a.statuses,minStatusWidth:8.75*r.unnnicFontSize+"px"},null,8,["name","subtitle","description","descriptionRow","descriptionRowInfo","statuses","minStatusWidth"])}const Ud=z(wS,[["render",DS],["__scopeId","data-v-ee17403c"]]),CS={class:"unnnic-checkbox-group__checkboxes"},ES={key:1,class:"unnnic-checkbox-group__helper"},Hd=z(t.defineComponent({name:"UnnnicCheckboxGroup",__name:"CheckboxGroup",props:{state:{default:"horizontal"},label:{default:""},labelTooltip:{default:void 0},helper:{default:""}},setup(e){return(n,a)=>(t.openBlock(),t.createElementBlock("section",{class:t.normalizeClass(["unnnic-checkbox-group__container",`unnnic-checkbox-group--state-${n.state}`])},[n.label?(t.openBlock(),t.createBlock(Ci,{key:0,label:n.label,tooltip:n.labelTooltip},null,8,["label","tooltip"])):t.createCommentVNode("",!0),t.createElementVNode("section",CS,[t.renderSlot(n.$slots,"default",{},void 0,!0)]),n.helper?(t.openBlock(),t.createElementBlock("footer",ES,t.toDisplayString(n.helper),1)):t.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-f03f56c7"]]),AS={class:"unnnic-collapse__body"},Yd=z({__name:"Collapse",props:{title:String,active:Boolean,borderBottom:Boolean,unspacedIcon:Boolean,size:{type:String,default:"lg",validator(e){return["md","lg"].includes(e)}},modelValue:Boolean},emits:["update:modelValue","change"],setup(e,{emit:n}){const a=e,i=n,r=t.ref(!1);return t.watch(r,s=>{i("change",s),i("update:modelValue",s)}),t.watch(()=>a.active,s=>{r.value=s},{immediate:!0}),t.watch(()=>a.modelValue,s=>{r.value=s},{immediate:!0}),(s,l)=>(t.openBlock(),t.createElementBlock("div",{"data-testid":"collapse",class:t.normalizeClass(["unnnic-collapse",`unnnic-collapse--size-${e.size}`,{"unnnic-collapse--border-bottom":e.borderBottom,"unnnic-collapse--unspaced-icon":e.unspacedIcon,"unnnic-collapse--active":r.value}])},[t.createElementVNode("div",{"data-testid":"collapse-header",class:"unnnic-collapse__header",onClick:l[0]||(l[0]=d=>r.value=!r.value)},[t.createTextVNode(t.toDisplayString(e.title),1),t.renderSlot(s.$slots,"header",{},void 0,!0),t.createVNode(fe,{size:"ant",icon:r.value?"arrow-button-up-1":"arrow-button-down-1",scheme:"fg-base"},null,8,["icon"])]),t.withDirectives(t.createElementVNode("div",AS,[t.renderSlot(s.$slots,"default",{},void 0,!0)],512),[[t.vShow,r.value]])],2))}},[["__scopeId","data-v-cc0e62a7"]]),BS={class:"unnnic-radio"},xS=["disabled","checked","name"],vS={key:0,class:"unnnic-radio__helper"},Gd=z({__name:"Radio",props:{modelValue:{type:[String,Number],default:""},value:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1},label:{type:String,default:""},name:{type:String,default:""},helper:{type:String,default:""}},emits:["update:modelValue"],setup(e,{emit:n}){const a=e,i=n,r=t.inject("contextModelValue",void 0),s=t.inject("contextName",void 0);function l(){a.disabled||(i("update:modelValue",a.value),r&&(r.value=a.value))}const d=t.computed(()=>(r==null?void 0:r.value)||a.modelValue),c=t.computed(()=>(s==null?void 0:s.value)||a.name);return(_,g)=>(t.openBlock(),t.createElementBlock("section",BS,[t.createElementVNode("label",{class:t.normalizeClass(["unnnic-radio__input-wrapper",{"unnnic-radio__input-wrapper--disabled":e.disabled}])},[t.createElementVNode("input",t.mergeProps({class:"unnnic-radio__input",type:"radio",disabled:e.disabled,checked:d.value===e.value,name:c.value},t.unref(Kt.pick)(_.$attrs,["id"]),{onChange:l}),null,16,xS),t.createElementVNode("p",{class:t.normalizeClass(["unnnic-radio__label",{"unnnic-radio__label--disabled":e.disabled}])},[t.createTextVNode(t.toDisplayString(e.label)+" ",1),t.renderSlot(_.$slots,"default",{},void 0,!0)],2),e.helper?(t.openBlock(),t.createElementBlock("footer",vS,t.toDisplayString(e.helper),1)):t.createCommentVNode("",!0)],2)]))}},[["__scopeId","data-v-9f51b54f"]]),SS={class:"unnnic-radio-group__radios"},jS={key:1,class:"unnnic-radio-group__helper"},Wd=z(t.defineComponent({name:"UnnnicRadioGroup",__name:"RadioGroup",props:{modelValue:{default:""},state:{default:"horizontal"},label:{default:""},labelTooltip:{default:void 0},name:{default:""},helper:{default:""}},emits:["update:modelValue"],setup(e,{emit:n}){const a=e,i=n,r=t.ref(a.modelValue);t.watch(()=>a.modelValue,l=>{l!==r.value&&(r.value=l)}),t.watch(r,l=>{l!==a.modelValue&&i("update:modelValue",l)});const s=t.computed(()=>a.name||`unnnic-radio-group-${Math.random().toString(36).substring(2,15)}`);return t.provide("contextModelValue",r),t.provide("contextName",s),(l,d)=>(t.openBlock(),t.createElementBlock("section",{class:t.normalizeClass(["unnnic-radio-group__container",`unnnic-radio-group--state-${l.state}`])},[l.label?(t.openBlock(),t.createBlock(Ci,{key:0,label:l.label,tooltip:l.labelTooltip,class:"unnnic-radio-group__label"},null,8,["label","tooltip"])):t.createCommentVNode("",!0),t.createElementVNode("section",SS,[t.renderSlot(l.$slots,"default",{},void 0,!0)]),l.helper?(t.openBlock(),t.createElementBlock("footer",jS,t.toDisplayString(l.helper),1)):t.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-d5af6106"]]),qS={name:"Flag",components:{UnnnicIcon:fe},props:{code:{type:String,default:null},size:{type:String,default:"md",validator(e){return["nano","xs","sm","md","lg"].indexOf(e)!==-1}}},computed:{name(){return{"pt-br":"Brazil",en:"USA",es:"Spain"}[this.code]}}};function IS(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createBlock(l,{icon:s.name,size:a.size},null,8,["icon","size"])}const NS={name:"LanguageSelect",components:{UnnnicFlag:z(qS,[["render",IS]]),UnnnicIcon:fe},directives:{onClickOutside:rl},props:{modelValue:{type:String,default:""},position:{type:String,default:"top-right"},contracted:{type:Boolean,default:!1},supportedLanguages:{type:Array,default:()=>["pt-br","en"]}},data(){return{open:!1,val:this.modelValue,unnnicFontSize:Gr}},computed:{languages(){const e={"pt-br":"Português - Brasil",en:"English",es:"Español"};return this.supportedLanguages.reduce((n,a)=>({...n,[a]:e[a]}),{})},otherLanguages(){return this.languageList.filter(({id:e})=>e!==this.val)},languageList(){return Object.entries(this.languages).map(([e,n])=>({id:e,name:n}))},dropdownIcon(){let e="";return this.position==="bottom"?e=this.open?"up":"down":e=this.open?"down":"up",`arrow-button-${e}-1`}},watch:{val(){this.$emit("update:model-value",this.val)},modelValue(){this.val=this.modelValue}},methods:{onClickTrigger(){this.open=!this.open},onClickOutside(){this.open&&(this.open=!1)}}},TS={key:0,class:"unnnic-language-select contracted"},OS={class:"option"},MS=["onClick"],PS={key:1,class:"unnnic-language-select normal"},LS={class:"option"},zS={class:"label"},VS=["onClick"],RS={class:"label"},US={class:"option"},HS={class:"label"};function YS(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicFlag"),d=t.resolveComponent("UnnnicIcon"),c=t.resolveDirective("on-click-outside");return a.contracted?t.withDirectives((t.openBlock(),t.createElementBlock("div",TS,[t.createElementVNode("div",{class:t.normalizeClass(["container contracted",{open:r.open}]),onClick:n[0]||(n[0]=(..._)=>s.onClickTrigger&&s.onClickTrigger(..._))},[t.createElementVNode("div",OS,[t.createVNode(l,{size:"sm",code:r.val},null,8,["code"])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.otherLanguages,_=>(t.openBlock(),t.createElementBlock("div",{key:_.id,class:"option",onClick:g=>r.val=_.id},[t.createVNode(l,{size:"sm",code:_.id},null,8,["code"])],8,MS))),128))],2)])),[[c,s.onClickOutside]]):t.withDirectives((t.openBlock(),t.createElementBlock("div",PS,[t.createElementVNode("div",{class:t.normalizeClass(["container normal",{open:r.open}]),onClick:n[1]||(n[1]=(..._)=>s.onClickTrigger&&s.onClickTrigger(..._))},[t.createElementVNode("div",{style:t.normalizeStyle({position:"absolute",[a.position==="bottom"?"top":"bottom"]:-.125*r.unnnicFontSize+"px",width:"100%",padding:.0625*r.unnnicFontSize+"px",left:-.0625*r.unnnicFontSize+"px"}),class:"all"},[a.position==="bottom"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",LS,[t.createVNode(l,{size:"sm",code:r.val},null,8,["code"]),t.createElementVNode("div",zS,t.toDisplayString(s.languages[r.val]),1),t.createVNode(d,{size:"xs",icon:s.dropdownIcon,scheme:"fg-base"},null,8,["icon"])]),n[2]||(n[2]=t.createElementVNode("div",{class:"divider"},null,-1))],64)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.otherLanguages,_=>(t.openBlock(),t.createElementBlock("div",{key:_.id,class:"option",onClick:g=>r.val=_.id},[t.createVNode(l,{size:"sm",code:_.id},null,8,["code"]),t.createElementVNode("div",RS,t.toDisplayString(s.languages[_.id]),1)],8,VS))),128)),a.position!=="bottom"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[n[3]||(n[3]=t.createElementVNode("div",{class:"divider"},null,-1)),t.createElementVNode("div",US,[t.createVNode(l,{size:"sm",code:r.val},null,8,["code"]),t.createElementVNode("div",HS,t.toDisplayString(s.languages[r.val]),1),t.createVNode(d,{size:"xs",icon:s.dropdownIcon,scheme:"fg-base"},null,8,["icon"])])],64)):t.createCommentVNode("",!0)],4)],2)])),[[c,s.onClickOutside]])}const Qd=z(NS,[["render",YS]]),GS={name:"UnnnicModal",components:{UnnnicIcon:fe},props:{text:{type:String,default:null},modalIcon:{type:String,default:null},closeIcon:{type:Boolean,default:!0},description:{type:String,default:null},alertMessage:{type:String,default:null},showModal:{type:Boolean,default:!0},scheme:{type:String,default:null},persistent:{type:Boolean,default:!1}},computed:{hasAlertMessage(){return!(this.alertMessage===null||this.alertMessage.length===0)},hasButton(){var e,n;return!!((n=(e=this.$slots).options)!=null&&n.call(e).length)},hasIcon(){var e,n;return!!((n=(e=this.$slots).icon)!=null&&n.call(e).length)}},mounted(){window.innerWidth<=600&&this.mobileAnimateOpen()},methods:{mobileAnimateReset(){this.$refs.modalContainer&&(this.$refs.modalContainer.style.transition=null),this.$refs.modal&&(this.$refs.modal.style.transition=null)},mobileAnimateOpen(){this.$nextTick(()=>{this.$refs.modalContainer&&(this.$refs.modalContainer.style.transition="none",this.$refs.modalContainer.style.backgroundColor="transparent"),this.$refs.modal&&(this.$refs.modal.style.transition="none",this.$refs.modal.style.marginBottom=`${-this.$refs.modal.offsetHeight}px`),setTimeout(()=>{this.$refs.modalContainer&&(this.$refs.modalContainer.style.transition="background-color 0.2s",this.$refs.modalContainer.style.backgroundColor=null),this.$refs.modal&&(this.$refs.modal.style.transition="margin-bottom 0.2s",this.$refs.modal.style.marginBottom=null),setTimeout(()=>{this.mobileAnimateReset()},200)})})},mobileAnimateClose(){return new Promise(e=>{this.$refs.modalContainer&&(this.$refs.modalContainer.style.transition="background-color 0.2s",this.$refs.modalContainer.style.backgroundColor="transparent"),this.$refs.modal&&(this.$refs.modal.style.transition="margin-bottom 0.2s",this.$refs.modal.style.marginBottom=`${-this.$refs.modal.offsetHeight}px`),setTimeout(()=>{this.mobileAnimateReset(),e()},200)})},onOutsideCloseClick(){this.persistent||this.onCloseClick()},async onCloseClick(){console.log("keycloak log",window),window.innerWidth<=600&&await this.mobileAnimateClose(),this.$emit("close")}}},WS={ref:"modal",class:"unnnic-modal-container-background"},QS={class:"unnnic-modal-container-background-body"},XS={key:0,class:"unnnic-modal-container-background-body-close_icon"},KS={key:1,class:"unnnic-modal-container-background-body__icon-slot"},ZS={class:"unnnic-modal-container-background-body-title"},JS={class:"unnnic-modal-container-background-body-description-container"},$S={class:"unnnic-modal-container-background-body-description"},ej={key:0,class:"unnnic-modal-container-background-report"},tj={key:1,class:"unnnic-modal-container-background-button"};function aj(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createBlock(t.Transition,{name:"modal"},{default:t.withCtx(()=>[a.showModal?(t.openBlock(),t.createElementBlock("div",t.mergeProps({key:0},e.$attrs,{ref:"modalContainer",class:["unnnic-modal"]}),[t.createElementVNode("div",{class:"unnnic-modal-container",onClick:n[0]||(n[0]=t.withModifiers((...d)=>s.onOutsideCloseClick&&s.onOutsideCloseClick(...d),["self"]))},[t.createElementVNode("div",WS,[t.createElementVNode("div",QS,[a.closeIcon?(t.openBlock(),t.createElementBlock("div",XS,[t.createVNode(l,{icon:"close-1",scheme:"fg-base",size:"sm",clickable:"",onClick:s.onCloseClick},null,8,["onClick"])])):t.createCommentVNode("",!0),s.hasIcon?(t.openBlock(),t.createElementBlock("div",KS,[t.renderSlot(e.$slots,"icon",{},void 0,!0)])):t.createCommentVNode("",!0),a.modalIcon?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(["unnnic-modal-container-background-body-alert_icon",`unnnic-card-scheme--${a.scheme}--icon`,a.closeIcon?"":"unnnic-modal-container-background-body-spacing_header"])},[t.createVNode(l,{scheme:a.scheme,icon:a.modalIcon,size:"xl"},null,8,["scheme","icon"])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",ZS,t.toDisplayString(a.text),1)]),t.createElementVNode("div",JS,[t.createElementVNode("div",$S,[t.createTextVNode(t.toDisplayString(a.description)+" ",1),t.renderSlot(e.$slots,"message",{},void 0,!0),t.renderSlot(e.$slots,"default",{},void 0,!0)])]),s.hasAlertMessage?(t.openBlock(),t.createElementBlock("div",ej,t.toDisplayString(a.alertMessage),1)):t.createCommentVNode("",!0),s.hasButton?(t.openBlock(),t.createElementBlock("div",tj,[t.renderSlot(e.$slots,"options",{},void 0,!0)])):t.createCommentVNode("",!0)],512)])],16)):t.createCommentVNode("",!0)]),_:3})}const ll=z(GS,[["render",aj],["__scopeId","data-v-bc6e5f19"]]),n2={"application/prs.cww":["cww"],"application/prs.xsf+xml":["xsf"],"application/vnd.1000minds.decision-model+xml":["1km"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["*xfdf"],"application/vnd.age":["age"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.keynote":["key"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.numbers":["numbers"],"application/vnd.apple.pages":["pages"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.autodesk.fbx":["fbx"],"application/vnd.balsamiq.bmml+xml":["bmml"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.citationstyles.style+xml":["csl"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dbf":["dbf"],"application/vnd.dcmp+xml":["dcmp"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["*fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.slides":["ggs"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.drawing":["gdraw"],"application/vnd.google-apps.form":["gform"],"application/vnd.google-apps.jam":["gjam"],"application/vnd.google-apps.map":["gmap"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.script":["gscript"],"application/vnd.google-apps.site":["gsite"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.gov.sk.xmldatacontainer+xml":["xdcf"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mapbox-vector-tile":["mvt"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["*stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["*mpp","mpt"],"application/vnd.ms-visio.viewer":["vdx"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.nato.bindingdataobject+xml":["bdo"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.ac+xml":["*ac"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openblox.game+xml":["obgx"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openstreetmap.data+xml":["osm"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.procrate.brushset":["brushset"],"application/vnd.procreate.brush":["brush"],"application/vnd.procreate.dream":["drm"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.pwg-xhtml-print+xml":["xhtm"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.rar":["rar"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.software602.filler.form+xml":["fo"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.syncml.dmddf+xml":["ddf"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml","uo"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw","vsdx","vtx"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":["*dmg"],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":["*bdoc"],"application/x-bittorrent":["torrent"],"application/x-blender":["blend"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-compressed":["*rar"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["*deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-ipynb+json":["ipynb"],"application/x-iso9660-image":["*iso"],"application/x-iwork-keynote-sffkey":["*key"],"application/x-iwork-numbers-sffnumbers":["*numbers"],"application/x-iwork-pages-sffpages":["*pages"],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-keepass2":["kdbx"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["*prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":["*exe"],"application/x-msdownload":["*exe","*dll","com","bat","*msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["*wmf","*wmz","*emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":["*prc","*pdb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["*rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["*sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["*obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["*xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zip-compressed":["*zip"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["*aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":["*m4a"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":["*ra"],"audio/x-wav":["*wav"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif","btf"],"image/prs.pti":["pti"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.airzip.accelerator.azv":["azv"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":["*sub"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.microsoft.icon":["ico"],"image/vnd.ms-dds":["dds"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.pco.b16":["b16"],"image/vnd.tencent.tap":["tap"],"image/vnd.valve.source.texture":["vtf"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/vnd.zbrush.pcx":["pcx"],"image/x-3ds":["3ds"],"image/x-adobe-dng":["dng"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["*ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":["*bmp"],"image/x-pcx":["*pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/vnd.wfa.wsc":["wsc"],"model/vnd.bary":["bary"],"model/vnd.cld":["cld"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["*mts"],"model/vnd.opengex":["ogex"],"model/vnd.parasolid.transmit.binary":["x_b"],"model/vnd.parasolid.transmit.text":["x_t"],"model/vnd.pytha.pyox":["pyo","pyox"],"model/vnd.sap.vds":["vds"],"model/vnd.usda":["usda"],"model/vnd.usdz+zip":["usdz"],"model/vnd.valve.source.compiled-map":["bsp"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.familysearch.gedcom":["ged"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":["*org"],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]};Object.freeze(n2);const i2={"application/andrew-inset":["ez"],"application/appinstaller":["appinstaller"],"application/applixware":["aw"],"application/appx":["appx"],"application/appxbundle":["appxbundle"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/automationml-aml+xml":["aml"],"application/automationml-amlx+zip":["amlx"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cpl+xml":["cpl"],"application/cu-seeme":["cu"],"application/cwl":["cwl"],"application/dash+xml":["mpd"],"application/dash-patch+xml":["mpp"],"application/davmount+xml":["davmount"],"application/dicom":["dcm"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdf":["fdf"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["*js"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/media-policy-dataset+xml":["mpf"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["*mp4","*mpg4","mp4s","m4p"],"application/msix":["msix"],"application/msixbundle":["msixbundle"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg","one","onea"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-keys":["asc"],"application/pgp-signature":["sig","*asc"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/sql":["sql"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/watcherinfo+xml":["wif"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xfdf":["xfdf"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"application/zip+dotlottie":["lottie"],"audio/3gpp":["*3gpp"],"audio/aac":["adts","aac"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a","m4b"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avci":["avci"],"image/avcs":["avcs"],"image/avif":["avif"],"image/bmp":["bmp","dib"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/dpx":["dpx"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/ief":["ief"],"image/jaii":["jaii"],"image/jais":["jais"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpg","jpeg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm","jpgm"],"image/jpx":["jpx","jpf"],"image/jxl":["jxl"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/pjpeg":["jfif"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime","mht","mhtml"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/jt":["jt"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/prc":["prc"],"model/step":["step","stp","stpnc","p21","210"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/u3d":["u3d"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/javascript":["js","mjs"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["md","markdown"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/wgsl":["wgsl"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","*jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts","m2t","m2ts","mts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]};Object.freeze(i2);var Ia=function(e,n,a,i){if(a==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof n=="function"?e!==n||!i:!n.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return a==="m"?i:a==="a"?i.call(e):i?i.value:n.get(e)},xr,Bo,Oi;class nj{constructor(...n){xr.set(this,new Map),Bo.set(this,new Map),Oi.set(this,new Map);for(const a of n)this.define(a)}define(n,a=!1){for(let[i,r]of Object.entries(n)){i=i.toLowerCase(),r=r.map(d=>d.toLowerCase()),Ia(this,Oi,"f").has(i)||Ia(this,Oi,"f").set(i,new Set);const s=Ia(this,Oi,"f").get(i);let l=!0;for(let d of r){const c=d.startsWith("*");if(d=c?d.slice(1):d,s==null||s.add(d),l&&Ia(this,Bo,"f").set(i,d),l=!1,c)continue;const _=Ia(this,xr,"f").get(d);if(_&&_!=i&&!a)throw new Error(`"${i} -> ${d}" conflicts with "${_} -> ${d}". Pass \`force=true\` to override this definition.`);Ia(this,xr,"f").set(d,i)}}return this}getType(n){if(typeof n!="string")return null;const a=n.replace(/^.*[/\\]/s,"").toLowerCase(),i=a.replace(/^.*\./s,"").toLowerCase(),r=a.length<n.length;return!(i.length<a.length-1)&&r?null:Ia(this,xr,"f").get(i)??null}getExtension(n){var a;return typeof n!="string"?null:(n=(a=n==null?void 0:n.split)==null?void 0:a.call(n,";")[0],(n&&Ia(this,Bo,"f").get(n.trim().toLowerCase()))??null)}getAllExtensions(n){return typeof n!="string"?null:Ia(this,Oi,"f").get(n.toLowerCase())??null}_freeze(){this.define=()=>{throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances")},Object.freeze(this);for(const n of Ia(this,Oi,"f").values())Object.freeze(n);return this}_getTestState(){return{types:Ia(this,xr,"f"),extensions:Ia(this,Bo,"f")}}}xr=new WeakMap,Bo=new WeakMap,Oi=new WeakMap;const ij=new nj(i2,n2)._freeze(),rj={class:"unnnic-upload-area__dropzone__content"},oj={class:"unnnic-upload-area__dropzone__content__title"},sj=["title"],lj=["accept","multiple"],ul=z({__name:"DropArea",props:{acceptMultiple:{type:Boolean,default:!0},supportedFormats:{type:String,default:"*"},maxFileSize:{type:Number,default:void 0},shouldReplace:{type:Boolean,default:!1},currentFiles:{type:Array,default(){return[]}},maximumUploads:{type:Number,default:1},subtitle:{type:String,default:""},disabled:{type:Boolean,default:!1}},emits:["update:currentFiles","fileChange","unsupportedFormat","exceededTheMaximumFileSizeLimit"],setup(e,{emit:n}){const a=t.ref(!1),i=t.ref(!1),r=t.ref(0),s=t.useTemplateRef("file"),l=e,d=n,c=t.getCurrentInstance();function _(T){var O,P;return!!((P=(O=c==null?void 0:c.vnode)==null?void 0:O.props)!=null&&P[T])}const g=t.computed(()=>l.supportedFormats.split(",").map(O=>O.toUpperCase()).join(", "));function h(){l.disabled||(r.value+=1,a.value=!0)}function F(){l.disabled||(a.value=!0)}function p(){l.disabled||(r.value-=1,r.value===0&&(a.value=!1))}function y(){l.disabled||(a.value=!1)}function w(T){if(l.disabled)return;a.value=!1;const{files:O}=T.dataTransfer;D(O)&&I(O)}function C(){l.disabled||s.value.click()}function q(T){if(l.disabled)return;const{files:O}=T.target;D(O)&&I(O),s.value.value=""}function B(){i.value=!0,setTimeout(()=>{i.value=!1},5e3)}function D(T){return!l.acceptMultiple&&T.length>1?(B(),!1):A(T)?S(T)?!0:(_("onExceededTheMaximumFileSizeLimit")?d("exceededTheMaximumFileSizeLimit"):B(),!1):(_("onUnsupportedFormat")?d("unsupportedFormat"):B(),!1)}function A(T){if(l.supportedFormats==="*")return!0;const O=l.supportedFormats.split(",").map(Z=>Z.trim());return Array.from(T).find(Z=>{const ce=Z.name.toLowerCase(),X=Z.type.toLowerCase(),ye=`.${ce.split(".").pop()}`,De=O.includes(ye),pe=X===ij.getType(ce);return De&&pe})}function S(T){return l.maxFileSize?Array.from(T).find(P=>(P.size/1048576).toFixed(2)<=l.maxFileSize):!0}function I(T){let O=T.length;if(l.shouldReplace||(O+=l.currentFiles.length),O>l.maximumUploads){B();return}const P=Array.from(T).filter(ce=>!!(A([ce])&&S([ce])));let Z;l.shouldReplace?Z=P:Z=l.currentFiles.concat(P),d("update:currentFiles",Z),d("fileChange",Z)}return(T,O)=>(t.openBlock(),t.createElementBlock("section",{ref:"dropzone",class:t.normalizeClass({"unnnic-upload-area__dropzone":!0,"unnnic-upload-area__dropzone__is-dragover":a.value,"unnnic-upload-area__dropzone__has-error":i.value}),onDragenter:t.withModifiers(h,["stop","prevent"]),onDragover:t.withModifiers(F,["stop","prevent"]),onDragleave:t.withModifiers(p,["stop","prevent"]),onDragend:t.withModifiers(y,["stop","prevent"]),onDrop:t.withModifiers(w,["stop","prevent"]),onClick:C},[t.createVNode(fe,{class:"unnnic-upload-area__dropzone__icon",icon:"upload",scheme:i.value?"feedback-red":"weni-500",size:"lg"},null,8,["scheme"]),t.createElementVNode("div",rj,[t.createElementVNode("span",oj,[t.renderSlot(T.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(T.$t("upload_area.title.text"))+" ",1),t.createElementVNode("span",{class:t.normalizeClass(`unnnic-upload-area__dropzone__content__title__${i.value?"error":"search"}`)},t.toDisplayString(T.$t("upload_area.title.highlight")),3)],!0)]),t.createElementVNode("span",{class:t.normalizeClass(["unnnic-upload-area__dropzone__content__subtitle",{"unnnic-upload-area__dropzone__content__subtitle__error":i.value}]),title:g.value},[t.renderSlot(T.$slots,"subtitle",{},()=>[t.createTextVNode(t.toDisplayString(e.subtitle||`${T.$t(`upload_area${i.value?".invalid":""}.subtitle`)} ${g.value}`),1)],!0)],10,sj)]),t.withDirectives(t.createElementVNode("input",{ref:"file",type:"file",accept:e.supportedFormats,multiple:e.acceptMultiple,onInput:q},null,40,lj),[[t.vShow,!1]])],34))}},[["__scopeId","data-v-9585b47a"]]),uj={name:"ImportCard",components:{UnnnicButton:Dt,UnnnicIcon:fe},props:{title:{type:String,default:""},subtitle:{type:String,default:""},importProgress:{type:Number,default:0},isImporting:{type:Boolean,default:!1},canImport:{type:Boolean,default:!0},canDelete:{type:Boolean,default:!0},acceptedFormats:{type:String,default:"*"},uploadIcon:{type:String,default:"upload-bottom-1"}},computed:{fileIcon(){const e=this.title.slice(this.title.lastIndexOf(".")+1);return{pdf:"picture_as_pdf",txt:"text_snippet",xls:"table",xlsx:"table",doc:"draft",docx:"draft"}[e]||"draft"}},methods:{importFile(){this.$refs.file.click()},handleFileChange(e){const{files:n}=e.target;let a;n.length>0&&([a]=e.target.files),a&&this.$emit("modifiedFile",a)},emitDeletion(){this.$emit("delete")}}},dj={class:"unnnic-import-card"},cj={class:"unnnic-import-card__data"},fj={key:0,class:"unnnic-import-card__data__title"},_j={key:1,class:"unnnic-import-card__data__title"},gj={key:2,class:"unnnic-import-card__data__subtitle"},hj={key:0,class:"unnnic-import-card__data__subtitle__text"},mj={key:1,class:"unnnic-import-card__data__subtitle__progress"},Fj={class:"unnnic-import-card__buttons"},pj=["accept"];function bj(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicIcon"),d=t.resolveComponent("UnnnicButton");return t.openBlock(),t.createElementBlock("div",dj,[t.createVNode(l,{class:"unnnic-import-card__file-icon",size:"md",scheme:"weni-600",icon:s.fileIcon},null,8,["icon"]),t.createElementVNode("div",cj,[a.isImporting?(t.openBlock(),t.createElementBlock("div",fj,t.toDisplayString(e.$t("import_card.importing"))+"... ",1)):(t.openBlock(),t.createElementBlock("div",_j,t.toDisplayString(a.title),1)),a.subtitle&&a.isImporting?(t.openBlock(),t.createElementBlock("div",gj,[a.subtitle&&a.isImporting?(t.openBlock(),t.createElementBlock("div",hj,t.toDisplayString(a.subtitle),1)):t.createCommentVNode("",!0),a.subtitle&&a.isImporting?(t.openBlock(),t.createElementBlock("div",mj,"  - "+t.toDisplayString(a.importProgress)+"% ",1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Fj,[a.canImport?(t.openBlock(),t.createBlock(d,{key:0,class:"unnnic-import-card__buttons__import",size:"small",iconCenter:a.uploadIcon,type:"primary",onClick:s.importFile},{default:t.withCtx(()=>[t.createElementVNode("input",{ref:"file",type:"file",accept:a.acceptedFormats,style:{display:"none"},onChange:n[0]||(n[0]=(...c)=>s.handleFileChange&&s.handleFileChange(...c))},null,40,pj)]),_:1},8,["iconCenter","onClick"])):t.createCommentVNode("",!0),a.canDelete?(t.openBlock(),t.createBlock(l,{key:1,class:"unnnic-import-card__buttons__delete",size:"sm",scheme:"fg-base",icon:"delete",clickable:"",onClick:s.emitDeletion},null,8,["onClick"])):t.createCommentVNode("",!0)])])}const dl=z(uj,[["render",bj],["__scopeId","data-v-ae2cb257"]]),yj={name:"UnnnicUploadArea",components:{UnnnicDropArea:ul,UnnnicImportCard:dl},model:{prop:"files",event:"fileChange"},props:{files:{type:Array,default:()=>[]},acceptMultiple:{type:Boolean,default:!0},supportedFormats:{type:String,default:"*"},maximumUploads:{type:Number,default:1},filesProgress:{type:Array,default:()=>[]},isUploading:{type:Boolean,default:!1},canImport:{type:Boolean,default:!1},canDelete:{type:Boolean,default:!0},maxFileSize:{type:Number,default:void 0},shouldReplace:{type:Boolean,default:!1},subtitle:{required:!1,type:String,default:""}},emits:["fileChange"],data(){return{currentFiles:this.files}},watch:{files(e){this.currentFiles=e}},methods:{emitFileChange(){this.$emit("fileChange",this.currentFiles)},modifyFile(e,n){this.currentFiles.splice(e,1,n),this.emitFileChange()},removeFile(e){this.currentFiles.splice(e,1),this.emitFileChange()}}},kj={key:0,class:"unnnic-upload-area__cards"};function wj(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicDropArea"),d=t.resolveComponent("UnnnicImportCard");return t.openBlock(),t.createElementBlock("div",null,[t.createVNode(l,{currentFiles:r.currentFiles,"onUpdate:currentFiles":n[0]||(n[0]=c=>r.currentFiles=c),acceptMultiple:a.acceptMultiple,supportedFormats:a.supportedFormats,maxFileSize:a.maxFileSize,shouldReplace:a.shouldReplace,maximumUploads:a.maximumUploads,subtitle:a.subtitle,onFileChange:n[1]||(n[1]=c=>e.$emit("fileChange",c))},null,8,["currentFiles","acceptMultiple","supportedFormats","maxFileSize","shouldReplace","maximumUploads","subtitle"]),r.currentFiles.length>0?(t.openBlock(),t.createElementBlock("div",kj,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.currentFiles,(c,_)=>(t.openBlock(),t.createBlock(d,{key:_,title:c.name,subtitle:c.name,isImporting:a.isUploading,importProgress:a.filesProgress[_]||100,canImport:a.canImport,canDelete:a.canDelete,acceptedFormats:a.supportedFormats,uploadIcon:"button-refresh-arrows-1",onDelete:g=>s.removeFile(_),onModifiedFile:g=>s.modifyFile(_,g)},null,8,["title","subtitle","isImporting","importProgress","canImport","canDelete","acceptedFormats","onDelete","onModifiedFile"]))),128))])):t.createCommentVNode("",!0)])}const cl=z(yj,[["render",wj],["__scopeId","data-v-872a45ed"]]),Dj={components:{UnnnicUploadArea:cl,UnnnicIcon:fe,UnnnicButton:Dt},model:{prop:"files",event:"file-change"},props:{textCancel:{type:String,default:"Cancelar"},textAction:{type:String,default:"Importar tudo"},textTitle:{type:String,default:"Importar sentenças"},acceptMultiple:{type:Boolean,default:!0},supportedFormats:{type:String,default:".png"},maximumUploads:{type:Number,default:1},filesProgress:{type:Array,default:()=>[]},isUploading:{type:Boolean,default:!1},canImport:{type:Boolean,default:!1},canDelete:{type:Boolean,default:!0},maxFileSize:{type:Number,default:void 0},files:{type:Array,default:()=>[]},subtitle:{required:!1,type:String,default:""}},emits:["close","file-change","cancel","action"],data(){return{}}},Cj={class:"modal-upload"},Ej={class:"close-button-container"},Aj={class:"title"},Bj={class:"footer"};function xj(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicIcon"),d=t.resolveComponent("UnnnicUploadArea"),c=t.resolveComponent("UnnnicButton");return t.openBlock(),t.createElementBlock("div",Cj,[t.createElementVNode("div",Ej,[t.createVNode(l,{class:"close-button",icon:"close-1",scheme:"fg-base",size:"sm",clickable:"",onClick:n[0]||(n[0]=_=>e.$emit("close"))})]),t.createElementVNode("div",Aj,t.toDisplayString(a.textTitle),1),t.createVNode(d,{acceptMultiple:a.acceptMultiple,supportedFormats:a.supportedFormats,maximumUploads:a.maximumUploads,filesProgress:a.filesProgress,isUploading:a.isUploading,canImport:a.canImport,canDelete:a.canDelete,maxFileSize:a.maxFileSize,files:a.files,subtitle:a.subtitle,onFileChange:n[1]||(n[1]=_=>e.$emit("file-change",_))},null,8,["acceptMultiple","supportedFormats","maximumUploads","filesProgress","isUploading","canImport","canDelete","maxFileSize","files","subtitle"]),t.createElementVNode("div",Bj,[t.createVNode(c,{size:"large",type:"tertiary",text:a.textCancel,onClick:n[2]||(n[2]=_=>e.$emit("cancel"))},null,8,["text"]),t.createVNode(c,{size:"large",type:"primary",text:a.textAction,onClick:n[3]||(n[3]=_=>e.$emit("action"))},null,8,["text"])])])}const Xd=z(Dj,[["render",xj],["__scopeId","data-v-02afb3f6"]]),vj={components:{UnnnicIcon:fe},props:{text:{type:String,default:null},scheme:{type:String,default:null},onClose:{type:Function,default:()=>{}},type:{type:String,default:"default"}},emits:["close"],mounted(){this.$refs.progress.addEventListener("animationend",()=>{this.$refs.alertContainer.classList.add("slide-down")}),this.$refs.alertContainer.addEventListener("animationend",e=>{var n;(n=e.animationName)!=null&&n.startsWith("slideDown")&&this.emitClose()})},methods:{emitClose(){this.onClose(),this.$emit("close")}}},Sj={ref:"alertContainer",class:"alert-container"},jj={ref:"progress",class:"alert__progress"};function qj(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createElementBlock("div",Sj,[t.createElementVNode("div",{class:t.normalizeClass(["alert",{"alert--scheme-aux-green":a.scheme==="feedback-green"||a.type==="success","alert--scheme-aux-red":a.scheme==="feedback-red"||a.type==="error"}])},[t.createElementVNode("div",jj,null,512),t.withDirectives(t.createElementVNode("div",{class:"alert__text"},t.toDisplayString(a.text),513),[[t.vShow,a.text]]),t.createElementVNode("div",{class:"alert__close",onClick:n[0]||(n[0]=(...d)=>s.emitClose&&s.emitClose(...d))},[t.createVNode(l,{icon:"close-1",size:"sm",scheme:"fg-inverted"})])],2)],512)}const Ij=z(vj,[["render",qj],["__scopeId","data-v-fb34701b"]]),Nj=["role","aria-live"],Tj={class:"unnnic-toast__content","data-testid":"toast-content"},Oj={class:"unnnic-toast__header","data-testid":"toast-header"},Mj={class:"unnnic-toast__title","data-testid":"toast-title"},Pj={key:0,"data-testid":"toast-text",class:"unnnic-toast__text"},xo=z(t.defineComponent({name:"UnnnicToast",__name:"Toast",props:{title:{default:""},description:{default:""},type:{default:"informational"},button:{default:void 0},timeout:{default:5e3}},emits:["close","destroy"],setup(e,{emit:n}){const a=e,i=n,r=t.ref(!1);let s=null;const l=t.computed(()=>({informational:{icon:"info",scheme:"fg-info"},attention:{icon:"error",scheme:"fg-warning"},success:{icon:"check_circle",scheme:"fg-success"},error:{icon:"cancel",scheme:"fg-critical"}})[a.type||"informational"]),d=ir(),c=()=>{r.value=!1,i("close")},_=()=>{var F;(F=a.button)!=null&&F.action&&a.button.action()},g=()=>{a.timeout>0&&(s=window.setTimeout(()=>{c()},a.timeout))},h=()=>{s&&(window.clearTimeout(s),s=null)};return t.onMounted(()=>{r.value=!0,g()}),t.onUnmounted(()=>{h()}),(F,p)=>(t.openBlock(),t.createBlock(t.Transition,{name:"toast-slide",appear:"","data-testid":"toast-transition",onAfterLeave:p[0]||(p[0]=y=>F.$emit("destroy"))},{default:t.withCtx(()=>[r.value?(t.openBlock(),t.createElementBlock("aside",{key:0,class:t.normalizeClass(["unnnic-toast",`unnnic-toast--${F.type}`]),role:F.type==="error"?"alert":"status","aria-live":F.type==="error"?"assertive":"polite","data-testid":"toast",style:t.normalizeStyle({zIndex:t.unref(d)})},[t.createElementVNode("section",Tj,[t.createElementVNode("header",Oj,[t.createVNode(fe,{icon:l.value.icon,scheme:l.value.scheme,size:"ant","data-testid":"toast-type-icon"},null,8,["icon","scheme"]),t.createElementVNode("h3",Mj,t.toDisplayString(F.title),1),t.createVNode(fe,{icon:"close",scheme:"fg-base",size:"ant",clickable:"",class:"unnnic-toast__close","data-testid":"toast-close-icon",onClick:c,onKeydown:t.withKeys(c,["enter"])})]),F.description?(t.openBlock(),t.createElementBlock("p",Pj,t.toDisplayString(F.description),1)):t.createCommentVNode("",!0)]),F.button?(t.openBlock(),t.createBlock(Dt,{key:0,type:"tertiary",text:F.button.text,class:"unnnic-toast__action-button","data-testid":"toast-action-button",onClick:_,onKeydown:[t.withKeys(_,["enter"]),t.withKeys(t.withModifiers(_,["prevent"]),["space"])]},null,8,["text","onKeydown"])):t.createCommentVNode("",!0)],14,Nj)):t.createCommentVNode("",!0)]),_:1}))}}),[["__scopeId","data-v-5445aa0d"]]),Lj={name:"UnnnicAlert",components:{UnnnicToast:xo,Version1dot1:Ij},props:{version:{type:String,default:"1.1"},text:{type:String,default:null},scheme:{type:String,default:null},onClose:{type:Function,default:()=>{}},type:{type:String,default:""}},computed:{toastType(){return this.scheme==="feedback-green"||this.type==="success"?"success":this.scheme==="feedback-red"||this.type==="error"?"error":this.type==="attention"?"attention":"informational"}}};function zj(e,n,a,i,r,s){const l=t.resolveComponent("Version1dot1"),d=t.resolveComponent("UnnnicToast");return a.version==="1.1"?(t.openBlock(),t.createBlock(l,t.normalizeProps(t.mergeProps({key:0},{...e.$props})),null,16)):(t.openBlock(),t.createBlock(d,{key:1,title:a.text||"",type:s.toastType,onClose:n[0]||(n[0]=()=>a.onClose())},null,8,["title","type"]))}const fl=z(Lj,[["render",zj]]);class Vj{constructor(){this.toasts=new Map,this.container=null,this.nextId=0}createContainer(){if(this.container)return this.container;this.container=document.createElement("div"),this.container.setAttribute("unnnic-toast-container","true");const n=t9()??document.body;return n==null||n.appendChild(this.container),this.container}generateId(){return`toast-${++this.nextId}`}show(n){const a=this.generateId(),i=this.createContainer(),r=document.createElement("div");let s;const l=new Promise(_=>{s=_}),d=t.createApp(xo,{...n,onClose:()=>{this.close(a)},onDestroy:()=>{d.unmount(),r.remove(),s()}});d.mount(r),i.appendChild(r);const c={id:a,props:n,close:()=>this.close(a),promise:l};return this.toasts.set(a,c),c}close(n){this.toasts.get(n)&&this.toasts.delete(n)}}const vo=new Vj,Kd={info:(e,n,a)=>vo.show({title:e,description:n,...a,type:"informational"}).promise,success:(e,n,a)=>vo.show({title:e,description:n,...a,type:"success"}).promise,attention:(e,n,a)=>vo.show({title:e,description:n,...a,type:"attention"}).promise,error:(e,n,a)=>vo.show({title:e,description:n,...a,type:"error"}).promise};function Rj(e){return{all:e=e||new Map,on:function(n,a){var i=e.get(n);i?i.push(a):e.set(n,[a])},off:function(n,a){var i=e.get(n);i&&(a?i.splice(i.indexOf(a)>>>0,1):e.set(n,[]))},emit:function(n,a){var i=e.get(n);i&&i.slice().map(function(r){r(a)}),(i=e.get("*"))&&i.slice().map(function(r){r(n,a)})}}}const Zd=Rj(),Jd=({props:e,containerRef:n,seconds:a})=>{if(e.version==="1.1"||n){const i=t.createApp(fl,{...e,seconds:a,version:"1.1",onClose:()=>{s.$el.remove()},created(){Zd.on(["close"],()=>{s.$el.remove()})}}),r=document.createElement("div"),s=i.mount(r);n?(s.$el.style.position="absolute",n.appendChild(s.$el)):document.body.appendChild(s.$el)}else{const i={success:"success",error:"error",attention:"attention",default:"informational","feedback-green":"success","feedback-red":"error"},r={timeout:a?a*1e3:5e3,type:i[e.scheme||e.type]||i.default,onClose:()=>{Zd.emit(["close"])}};vo.show({title:e.text,description:"",...r})}},$d=({props:e})=>{const n=t.createApp(ll,{...e,onClose:()=>{i.$el.remove()},created(){Zd.on(["close"],()=>{i.$el.remove()})}}),a=document.createElement("div"),i=n.mount(a);document.body.appendChild(a)},Uj={name:"UnnnicSelectSmartOption",components:{UnnnicCheckbox:Br},props:{label:{type:String,default:"Option",required:!0},description:{type:String,default:"",required:!1},size:{type:String,default:""},selectable:{type:Boolean,default:!0},focused:{type:Boolean,default:!1},active:{type:Boolean,default:null},disabled:{type:Boolean,default:!1},allowCheckbox:{type:Boolean,default:!1},isMultiple:Boolean,activeColor:{type:String,default:"primary",validator(e){return["primary","secondary"].indexOf(e)!==-1}}},methods:{fullySanitize:Jn}},Hj=["title"];function Yj(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicCheckbox");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass({"unnnic-select-smart-option":!0,"unnnic-select-smart-option--focused":a.focused,"unnnic-select-smart-option--active":a.active,"unnnic-select-smart-option--active-secondary":a.active&&a.activeColor==="secondary","unnnic--clickable":a.selectable,"unnnic-select-smart-option--selectable":a.selectable,"unnnic-select-smart-option--with-checkbox":a.allowCheckbox}),title:a.label,"data-testid":"select-smart-option"},[a.allowCheckbox?(t.openBlock(),t.createBlock(l,{key:0,ref:"checkbox","data-testid":"checkbox",modelValue:a.active,size:a.size,disabled:a.disabled},null,8,["modelValue","size","disabled"])):t.createCommentVNode("",!0),t.createElementVNode("div",null,[t.createElementVNode("span",{class:t.normalizeClass(["unnnic-select-smart-option__label",`unnnic-select-smart-option__label--${a.size}`]),"data-testid":"label"},t.toDisplayString(s.fullySanitize(a.label)),3),a.description?(t.openBlock(),t.createElementBlock("p",{key:0,"data-testid":"description",class:t.normalizeClass(["unnnic-select-smart-option__description",`unnnic-select-smart-option__description--${a.size}`])},t.toDisplayString(s.fullySanitize(a.description)),3)):t.createCommentVNode("",!0)])],10,Hj)}const Gj=z(Uj,[["render",Yj]]),Wj={name:"UnnnicSelectSmartMultipleHeader",components:{Tag:Ar},mixins:[$a],props:{selectedOptions:{type:Array,required:!0},withoutSelectsMessage:{type:String,default:""}},data(){return{multipleSelectedsTags:2,defaultTranslations:{without_multiple_selected:{"pt-br":"Nenhuma opção selecionada",en:"No option selected",es:"Ninguna opción seleccionada"}}}},computed:{firstMultipleSelecteds(){const{selectedOptions:e,multipleSelectedsTags:n}=this,a=[];for(let i=0;i<n;i+=1)a.push(e==null?void 0:e[i]);return a.filter(i=>i!==void 0)}},methods:{unselectOption(e){this.$emit("unselect-option",e)}}},Qj={class:"unnnic-select-smart__options__multiple"},Xj={key:0,class:"unnnic-select-smart__options__multiple__selecteds__container"},Kj={class:"unnnic-select-smart__options__multiple__selecteds"},Zj={key:0,class:"unnnic-select-smart__options__multiple__selecteds__remaining","data-testid":"remaining-count"},Jj={key:1,class:"unnnic-select-smart__options__multiple--without-multiples","data-testid":"without-selects-message"};function $j(e,n,a,i,r,s){const l=t.resolveComponent("Tag");return t.openBlock(),t.createElementBlock("div",Qj,[a.selectedOptions[0]?(t.openBlock(),t.createElementBlock("div",Xj,[t.createElementVNode("div",Kj,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.firstMultipleSelecteds,d=>(t.openBlock(),t.createBlock(l,{key:d.value,class:"unnnic-select-smart__options__multiple__selecteds__option",text:d.label,hasCloseIcon:!d.disableRemove,onClose:c=>s.unselectOption(d)},null,8,["text","hasCloseIcon","onClose"]))),128)),a.selectedOptions.length>r.multipleSelectedsTags?(t.openBlock(),t.createElementBlock("p",Zj," +"+t.toDisplayString(a.selectedOptions.length-r.multipleSelectedsTags),1)):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0),a.selectedOptions[0]?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("p",Jj,t.toDisplayString(a.withoutSelectsMessage||e.i18n("without_multiple_selected")),1))])}const eq=z(Wj,[["render",$j],["__scopeId","data-v-4310b808"]]),tq={props:{type:{type:String,default:"automatic"},modelValue:Boolean,position:{type:String,default:"bottom-left"},useAbsolutePosition:{type:Boolean,default:!1}},data(){return{clientHeight:0,clientWidth:0,x:0,y:0,width:0,height:0,data:{x:0,y:0,width:0,height:0}}},computed:{active(){return this.type==="manual"?this.modelValue:!1},positions(){let e,n;return this.position.startsWith("bottom")?(e=this.y+this.height,e+this.data.height>this.clientHeight&&(e=this.clientHeight-this.data.height,this.y>=this.data.height&&(e=this.y-this.data.height))):this.position.startsWith("top")&&(e=this.y-this.data.height,e<0&&(e=0,this.y+this.height+this.data.height<=this.clientHeight&&(e=this.y+this.height))),this.position.endsWith("right")?(n=this.x+this.width,n+this.data.width>this.clientWidth&&(n=this.clientWidth-this.data.width,this.x>=this.data.width&&(n=this.x-this.data.width))):this.position.endsWith("left")&&(n=this.x-this.data.width,n<0&&(n=0,this.x+this.width+this.data.width<=this.clientWidth&&(n=this.x+this.width))),{left:`${n}px`,top:`${e}px`}}},mounted(){this.calculatePosition(),window.addEventListener("scroll",this.calculatePosition),window.addEventListener("resize",this.calculatePosition)},beforeUnmount(){window.removeEventListener("scroll",this.calculatePosition),window.removeEventListener("resize",this.calculatePosition)},methods:{calculatePosition(){const e=this.$refs.dropdown.getBoundingClientRect(),n=this.$refs["dropdown-data"].getBoundingClientRect();this.clientHeight=document.documentElement.clientHeight,this.clientWidth=document.documentElement.clientWidth,this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height,this.data.x=n.x,this.data.y=n.y,this.data.width=n.width,this.data.height=n.height}}};function aq(e,n,a,i,r,s){return t.openBlock(),t.createElementBlock("span",{ref:"dropdown","data-testid":"dropdown-skeleton",class:t.normalizeClass(["dropdown",{active:s.active}])},[t.renderSlot(e.$slots,"default",{},void 0,!0),t.createElementVNode("div",{ref:"dropdown-data","data-testid":"dropdown-data",class:"dropdown-data",style:t.normalizeStyle({position:a.useAbsolutePosition?"absolute":"fixed",...s.positions})},[t.renderSlot(e.$slots,"inside",{width:`${r.width}px`,height:`${r.height}px`},void 0,!0)],4)],2)}const r2=z(tq,[["render",aq],["__scopeId","data-v-05c4ead6"]]),nq={name:"UnnnicSelectSmart",components:{TextInput:m0,SelectSmartOption:Gj,SelectSmartMultipleHeader:eq,DropdownSkeleton:r2,UnnnicIconLoading:wr},directives:{onClickOutside:rl},mixins:[$a],props:{options:{type:Array,required:!0,default:()=>[{value:"",label:"Initial value"},{value:"option1",label:"Option1"},{value:"option2",label:"Option2"}]},modelValue:{type:Array,default:()=>[]},size:{type:String,default:"md"},type:{type:String,default:"normal",validator(e){return["normal","error","secondary"].indexOf(e)!==-1}},disabled:{type:Boolean,default:null},orderedByIndex:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},multipleWithoutSelectsMessage:{type:String,default:""},autocomplete:{type:Boolean,default:!1},autocompleteIconLeft:{type:Boolean,default:!1},autocompleteClearOnFocus:{type:Boolean,default:!1},selectFirst:{type:Boolean,default:!0},placeholder:{type:String,default:null},isLoading:{type:Boolean,default:!1},enableSearchByValue:{type:Boolean,default:!1},multipleLimit:{type:[Number,null],default:null},infiniteScroll:{type:Boolean,default:!1},infiniteScrollDistance:{type:Number,default:10},infiniteScrollCanLoadMore:{type:Function,default:()=>!0},disableInternalFilter:{type:Boolean,default:!1}},emits:["update:searchValue","onChange","update:modelValue","onActiveChange","scroll-end"],data(){return{active:!1,status:"not-mounted",focusedOption:null,searchValue:"",isAutocompleteAllowed:!1,multipleSelectedsTags:2,infiniteScrollReset:null,infiniteScrollLoading:!1,defaultTranslations:{without_results:{"pt-br":"Nenhum resultado encontrado",en:"No results found",es:"Ningún resultado encontrado"}}}},computed:{selectedLabel(){var a;if(this.status!=="mounted")return"";const e=this.options.find(i=>{const r=i.value===this.modelValue;return this.isAutocompleteAllowed?r&&i.value!=="":i.value===""&&this.modelValue.length===0||r});return e?e.label:this.multiple?this.modelValue.map(r=>r.label).join(", "):((a=this.modelValue.at(-1))==null?void 0:a.label)||""},hasDescriptionOptions(){return this.options.some(e=>typeof e.description<"u")},autocompletePlaceholder(){if(this.isAutocompleteAllowed){const e=this.options.find(n=>n.value==="");if(e)return e.label}return""},inputValue(){const{isAutocompleteAllowed:e,searchValue:n,multiple:a,modelValue:i}=this;return e||a?n:!a&&i.length!==0?i==null?void 0:i[0].label:""}},watch:{active(e){this.$refs["dropdown-skeleton"].calculatePosition(),this.$emit("onActiveChange",e),this.$nextTick(()=>{if(e&&!this.multiple){const n=this.getOptionIndex("active");n!==-1&&this.scrollToOption(n,"center")}e&&this.infiniteScroll&&this.setupInfiniteScroll()})},searchValue(e,n){this.focusedOption=null,!this.active&&n&&(this.active=!0),this.$emit("update:searchValue",e)},modelValue:{deep:!0,handler(e){this.$emit("onChange",e),this.$emit("update:modelValue",e),this.onSelectOption(e.at(-1))}},autocomplete(e){this.multiple||(this.isAutocompleteAllowed=e)}},mounted(){var e,n,a,i,r;this.status="mounted",(this.multiple||this.autocomplete)&&(this.isAutocompleteAllowed=!0),(e=this.modelValue)!=null&&e[0]&&((n=this.modelValue)!=null&&n[0].value)?this.isAutocompleteAllowed&&this.$nextTick(()=>{this.searchValue=this.selectedLabel}):this.selectFirst&&((a=this.options)!=null&&a[0])&&((i=this.options)!=null&&i[0].value)&&this.selectOption((r=this.options)==null?void 0:r[0]),this.setupInfiniteScroll()},beforeUnmount(){this.infiniteScrollReset&&this.infiniteScrollReset()},methods:{setupInfiniteScroll(){this.infiniteScroll&&this.$nextTick(()=>{const e=this.$refs.selectSmartOptionsScrollArea;if(!e)return;const{reset:n}=Ju(e,()=>{this.infiniteScrollLoading||(this.infiniteScrollLoading=!0,this.$emit("scroll-end"))},{distance:this.infiniteScrollDistance,canLoadMore:()=>this.infiniteScrollCanLoadMore()&&!this.infiniteScrollLoading});this.infiniteScrollReset=n})},finishInfiniteScroll(){this.infiniteScrollLoading=!1},resetInfiniteScroll(){this.infiniteScrollLoading=!1,this.infiniteScrollReset&&this.infiniteScrollReset()},optionIsSelected(e){return this.modelValue.some(n=>n.value===e.value)},handleSelect(e){if(e){if(this.multiple&&this.optionIsSelected(e)&&!e.disableRemove){this.unselectOption(e);return}if(this.multiple&&e.disableRemove&&this.optionIsSelected(e)||this.multipleLimit&&this.modelValue.length>=this.multipleLimit)return;this.selectOption(e)}},handleClickInput(){if(this.isAutocompleteAllowed){if(this.active)return;(this.autocompleteClearOnFocus||this.multiple)&&(this.searchValue="")}this.active=!this.active},filterOptions(e){if(this.disableInternalFilter)return e;const a=this.searchValue.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").split(" "),i=d=>d.toString().toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,""),r=d=>{var c;return parseInt((c=d.match(/\d+/))==null?void 0:c[0],10)||0},s=e.filter(({value:d,label:c},_,g)=>{const h=i(c),F=g.findIndex(y=>y.value===d)===_,p=a.every(y=>{const w=h.includes(y),C=d.includes(y);return this.enableSearchByValue?w||C:w});return F&&p&&d});return this.orderedByIndex?s:s.sort((d,c)=>{const _=i(d.label),g=i(c.label),h=r(_),F=r(g);return h-F||_.localeCompare(g)})},onClickOutside(){this.active&&(this.isAutocompleteAllowed&&(this.searchValue=this.selectedLabel),this.$nextTick(()=>{this.active=!1}))},getOptionIndex(e){var i,r,s,l;const n=this.filterOptions(this.options);let a="";return e==="active"&&(a=(r=(i=this.modelValue)==null?void 0:i[0])==null?void 0:r.value),e==="focused"&&(a=((s=this.focusedOption)==null?void 0:s.value)||((l=this.modelValue.at(-1))==null?void 0:l.value)),n.findIndex(d=>d.value===a)},scrollToOption(e,n="nearest"){const a=this.$refs.selectSmartOptionsScrollArea;if(a&&e>=0&&e<a.childNodes.length){const i=a.childNodes[e];i instanceof HTMLElement&&(i==null||i.scrollIntoView({block:n}))}},selectOption(e){const n=e.value===null||e.value.length===0?null:e;this.$emit("update:modelValue",this.multiple?[...this.modelValue,n]:[n])},unselectOption(e){const n=this.modelValue.findIndex(a=>a.value===e.value);if(n!==-1){const a=this.modelValue;a.splice(n,1),this.$emit("update:modelValue",a)}this.multiple&&(this.searchValue="")},onSelectOption(e){if(this.$nextTick(()=>{this.multiple||(this.active=!1)}),this.isAutocompleteAllowed&&!this.multiple&&e&&e.label){this.searchValue=e.label;return}this.multiple&&(this.searchValue="")},async onKeyDownSelect(e){const{key:n}=e;if(["Escape","Enter","ArrowUp","ArrowDown"].includes(n)){e.preventDefault();const i=this.filterOptions(this.options),r=this.getOptionIndex("focused");let s;switch(n){case"Escape":this.active=!1,this.searchValue="";break;case"Enter":this.focusedOption&&this.active&&this.handleSelect(this.focusedOption),this.active||(this.active=!0);break;case"ArrowUp":case"ArrowDown":this.multiple&&!this.active&&(this.active=!0,await this.$nextTick()),s=n==="ArrowUp"?Math.max(r-1,0):Math.min(r+1,i.length-1),this.active||this.handleSelect(i[s]);break}s!==void 0&&this.active&&this.scrollToOption(s);const l=i[s===void 0?r:s];this.focusedOption=l}}}},iq={style:{overflow:"auto"}},rq={key:0,class:"unnnic-select-smart__options-infinite-loading"},oq={key:1,class:"unnnic-select-smart__options--no-results"};function sq(e,n,a,i,r,s){const l=t.resolveComponent("TextInput"),d=t.resolveComponent("SelectSmartMultipleHeader"),c=t.resolveComponent("UnnnicIconLoading"),_=t.resolveComponent("SelectSmartOption"),g=t.resolveComponent("DropdownSkeleton"),h=t.resolveDirective("on-click-outside");return t.withDirectives((t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["unnnic-select-smart",{"unnnic-select-smart--secondary":a.type==="secondary"}]),"data-testid":"select-smart",onKeydown:n[1]||(n[1]=(...F)=>s.onKeyDownSelect&&s.onKeyDownSelect(...F))},[t.createVNode(g,{ref:"dropdown-skeleton",type:"manual",modelValue:r.active||null,position:"bottom"},{inside:t.withCtx(F=>[r.active?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle({width:F.width}),class:t.normalizeClass({"unnnic-select-smart__options":!0,active:r.active,inactive:!r.active}),"data-testid":"options-container"},[t.createElementVNode("div",iq,[a.multiple?(t.openBlock(),t.createBlock(d,{key:0,selectedOptions:a.modelValue,withoutSelectsMessage:a.multipleWithoutSelectsMessage,locale:e.locale,translations:e.translations,onUnselectOption:s.unselectOption},null,8,["selectedOptions","withoutSelectsMessage","locale","translations","onUnselectOption"])):t.createCommentVNode("",!0),t.createElementVNode("div",{ref:"selectSmartOptionsScrollArea","data-testid":"options-scroll-area",class:t.normalizeClass(["unnnic-select-smart__options__scroll-area",`size-${a.size}`,{"with-descriptions":s.hasDescriptionOptions,"with-checkboxes":!!a.multiple}])},[a.isLoading?(t.openBlock(),t.createBlock(c,{key:0,class:"unnnic-select-smart__options-loading",scheme:"fg-base",size:"sm"})):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.filterOptions(a.options),(p,y)=>(t.openBlock(),t.createBlock(_,{key:p.value,"data-testid":"option",label:p.label,description:p.description,tabindex:y,size:a.size,active:p.value===a.modelValue||s.optionIsSelected(p),disabled:s.optionIsSelected(p)&&p.disableRemove,focused:r.focusedOption&&r.focusedOption.value===p.value,allowCheckbox:!!a.multiple,activeColor:a.type==="secondary"?"secondary":"primary",onClick:w=>s.handleSelect(p)},null,8,["label","description","tabindex","size","active","disabled","focused","allowCheckbox","activeColor","onClick"]))),128)),a.infiniteScroll&&r.infiniteScrollLoading?(t.openBlock(),t.createElementBlock("div",rq,[t.createVNode(c,{scheme:"fg-base",size:"sm"})])):t.createCommentVNode("",!0),s.filterOptions(a.options).length===0?(t.openBlock(),t.createElementBlock("p",oq,t.toDisplayString(e.i18n("without_results")),1)):t.createCommentVNode("",!0)],64))],2)])],6)):t.createCommentVNode("",!0)]),default:t.withCtx(()=>[t.createVNode(l,{ref:"selectSmartInput",class:t.normalizeClass(["unnnic-select-smart__input",{"unnnic-select-smart__input--secondary":a.type==="secondary"}]),"data-testid":"select-smart-input",modelValue:s.inputValue,placeholder:a.placeholder||s.autocompletePlaceholder||s.selectedLabel,type:a.type,size:a.size,disabled:a.disabled,readonly:!r.isAutocompleteAllowed,iconLeft:r.isAutocompleteAllowed&&a.autocompleteIconLeft?"search-1":"",iconRight:r.active?"keyboard_arrow_up":"keyboard_arrow_down",iconRightSize:"ant",onClick:t.withModifiers(s.handleClickInput,["stop"]),"onUpdate:modelValue":n[0]||(n[0]=F=>r.searchValue=F)},null,8,["class","modelValue","placeholder","type","size","disabled","readonly","iconLeft","iconRight","onClick"])]),_:1},8,["modelValue"])],34)),[[h,s.onClickOutside]])}const e1=z(nq,[["render",sq]]);function o2(e,n,a,i){const r=t.ref(!1),{width:s}=dy(a),l=t.computed(()=>`${s.value}px`),d=t.computed(()=>{var p;const h=e.options;if(!e.enableSearch||!e.search)return h;const F=((p=e.search)==null?void 0:p.toLowerCase())??"";return h.filter(y=>{const w=String(y[e.itemLabel]??"").toLowerCase().includes(F),C=String(y[e.itemValue]??"").toLowerCase().includes(F);return w||C})});function c(h){const{optionsLength:F,optionsLines:p,enableSearch:y,variant:w}=h;if(F===0)return"unset";if(w==="single"){const I=37*p,T=y?1:2,O=I+32+(4*p-T);return`${y?O+45+1:O}px`}const C=y?16:0,D=22*p+(24*p-2);return`${y?D+51+C:D}px`}const _=t.computed(()=>{var h;return c({optionsLength:((h=e.options)==null?void 0:h.length)??0,optionsLines:e.optionsLines,enableSearch:e.enableSearch,variant:n})}),g=t.computed(()=>{var p;const h=((p=d.value)==null?void 0:p.length)===0,F=_.value;return{overflow:"auto",display:"flex",flexDirection:"column",minHeight:F,maxHeight:h?"unset":F,height:h?F:"unset"}});return{openPopover:r,triggerRef:a,contentRef:i,inputWidthString:l,calculatedPopoverHeight:_,popoverContentCustomStyles:g,filteredOptions:d}}const lq="data-option-index";function s2(e,n,a){const{closeOnSelect:i=!0,closePopover:r,openPopoverRef:s}=a,l=t.ref(-1);function d(p,y="smooth",w="center"){t.nextTick(()=>{var q;const C=document.querySelector(`[${lq}="${p}"]`);(q=C==null?void 0:C.scrollIntoView)==null||q.call(C,{behavior:y,block:w})})}function c(p){if(!["ArrowUp","ArrowDown","Enter"].includes(p.key))return;p.preventDefault();const w=e();if(p.key==="ArrowUp"){if(l.value<=0)return;l.value--,d(l.value)}else if(p.key==="ArrowDown"){if(l.value>=w.length-1)return;l.value++,d(l.value)}else if(p.key==="Enter"&&l.value>=0&&w[l.value]){const C=w[l.value];if(C!=null&&C.disabled)return;n(C),i&&r()}}function _(p){s.value&&c(p)}function g(){document.addEventListener("keydown",_)}function h(){document.removeEventListener("keydown",_)}function F(){t.watch(s,p=>{p?t.nextTick(g):h()}),t.onBeforeUnmount(h)}return{focusedOptionIndex:l,scrollToOption:d,handleKeyDown:c,setupKeydownBinding:F}}const uq={class:"unnnic-select"},dq={key:0,class:"unnnic-select__trigger-label"},cq={class:"unnnic-select__trigger-content"},fq={key:1,class:"unnnic-select__content-no-results"},_q={key:0,class:"unnnic-select__infinite-loading"},t1=z(t.defineComponent({name:"UnnnicSelect",__name:"index",props:{modelValue:{},infiniteScroll:{type:Boolean,default:!1},infiniteScrollDistance:{default:10},infiniteScrollCanLoadMore:{type:Function,default:()=>!0},options:{},itemLabel:{default:"label"},itemValue:{default:"value"},placeholder:{default:""},label:{default:""},type:{default:"normal"},errors:{default:""},message:{default:""},size:{default:"md"},optionsLines:{default:5},enableSearch:{type:Boolean,default:!1},search:{default:""},locale:{default:"en"},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},returnObject:{type:Boolean,default:!1}},emits:["update:modelValue","update:search","scroll-end"],setup(e,{expose:n,emit:a}){const i=e,r=a,s=t.useSlots(),l=t.computed(()=>!!s.selected),d=t.useTemplateRef("selectInputRef"),c=t.useTemplateRef("contentRef"),_=o2(i,"single",d,c),g=_.openPopover,h=_.popoverContentCustomStyles,F=_.inputWidthString,p=_.filteredOptions;function y(Z){_.openPopover.value=Z}const w=t.computed(()=>i.returnObject?i.modelValue==null||i.modelValue===""?void 0:i.modelValue:i.options.find(Z=>Z[i.itemValue]===i.modelValue)),C=t.computed(()=>{var Z;return(Z=w.value)==null?void 0:Z[i.itemLabel]});function q(Z){var ce;Z[i.itemValue]===((ce=w.value)==null?void 0:ce[i.itemValue])||Z.disabled||(r("update:modelValue",i.returnObject?Z:Z[i.itemValue]),_.openPopover.value=!1)}const B=s2(()=>_.filteredOptions.value,q,{closeOnSelect:!0,closePopover:()=>_.openPopover.value=!1,openPopoverRef:_.openPopover});B.setupKeydownBinding();const D=B.focusedOptionIndex;t.watch(_.openPopover,()=>{if(!_.openPopover.value)P("");else{if(B.focusedOptionIndex.value=-1,i.modelValue){const Z=i.options.findIndex(ce=>{var X;return ce[i.itemValue]===((X=w.value)==null?void 0:X[i.itemValue])});B.scrollToOption(Z,"instant","center")}i.infiniteScroll&&t.nextTick(()=>I())}});const A=t.ref(null),S=t.ref(!1);function I(){i.infiniteScroll&&(A.value&&(A.value(),A.value=null),t.nextTick(()=>{const Z=_.contentRef.value;if(!Z)return;const{reset:ce}=Ju(Z,()=>{S.value||(S.value=!0,r("scroll-end"))},{distance:i.infiniteScrollDistance,canLoadMore:()=>i.infiniteScrollCanLoadMore()&&!S.value});A.value=ce}))}function T(){S.value=!1,_.openPopover.value&&i.infiniteScroll&&t.nextTick(()=>I())}function O(){S.value=!1,A.value&&A.value(),_.openPopover.value&&i.infiniteScroll&&t.nextTick(()=>I())}function P(Z){r("update:search",Z)}return t.onBeforeUnmount(()=>{A.value&&A.value()}),n({openPopover:g,setOpenPopover:y,filteredOptions:p,calculatedPopoverHeight:_.calculatedPopoverHeight,selectedItem:w,inputValue:C,infiniteScrollLoading:S,finishInfiniteScroll:T,resetInfiniteScroll:O}),(Z,ce)=>(t.openBlock(),t.createElementBlock("div",uq,[t.createVNode(t.unref(Dr),{open:t.unref(g),"onUpdate:open":y},{default:t.withCtx(()=>[t.createVNode(t.unref(Er),{class:"w-full"},{default:t.withCtx(()=>[l.value&&w.value?(t.openBlock(),t.createElementBlock("section",{key:0,ref_key:"selectInputRef",ref:d,class:"unnnic-select__trigger-wrapper"},[i.label?(t.openBlock(),t.createElementBlock("span",dq,t.toDisplayString(i.label),1)):t.createCommentVNode("",!0),t.createElementVNode("section",{class:t.normalizeClass(["unnnic-select__trigger",`unnnic-select__trigger--${i.size}`,{"unnnic-select__trigger--focused":t.unref(g),"unnnic-select__trigger--disabled":i.disabled}])},[t.createElementVNode("section",cq,[t.renderSlot(Z.$slots,"selected",{option:w.value,label:C.value},void 0,!0)]),i.clearable&&!i.disabled?(t.openBlock(),t.createBlock(fe,{key:0,class:"unnnic-select__trigger-clear",icon:"close",size:"ant",scheme:"fg-base",clickable:"",onClick:ce[0]||(ce[0]=t.withModifiers(X=>r("update:modelValue",""),["stop"]))})):t.createCommentVNode("",!0),t.createVNode(fe,{class:"unnnic-select__trigger-arrow",icon:t.unref(g)?"keyboard_arrow_up":"keyboard_arrow_down",size:"ant",scheme:"fg-base"},null,8,["icon"])],2)],512)):(t.openBlock(),t.createBlock(_n,{key:1,ref_key:"selectInputRef",ref:d,modelValue:C.value,class:"unnnic-select__input",readonly:"",useFocusProp:"",focus:t.unref(g),size:i.size,placeholder:i.placeholder,label:i.label,errors:i.errors,message:i.message,iconRight:t.unref(g)?"keyboard_arrow_up":"keyboard_arrow_down",disabled:i.disabled,showClear:!!w.value&&i.clearable,onClear:ce[1]||(ce[1]=X=>r("update:modelValue",""))},null,8,["modelValue","focus","size","placeholder","label","errors","message","iconRight","disabled","showClear"]))]),_:3}),t.createVNode(t.unref(Cr),{align:"start",class:t.normalizeClass("h-full"),style:t.normalizeStyle(t.unref(h)),width:t.unref(F)},{default:t.withCtx(()=>[t.createElementVNode("div",{ref_key:"contentRef",ref:c,class:"unnnic-select__content"},[i.enableSearch?(t.openBlock(),t.createBlock(_n,{key:0,class:"unnnic-select__input-search",modelValue:i.search,placeholder:Z.$t("search"),iconLeft:"search","onUpdate:modelValue":P},null,8,["modelValue","placeholder"])):t.createCommentVNode("",!0),t.unref(p).length===0?(t.openBlock(),t.createElementBlock("p",fq,t.toDisplayString(Z.$t("without_results")),1)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(p),(X,ye)=>{var De;return t.openBlock(),t.createBlock(t.unref(al),{key:X[i.itemValue],"data-option-index":ye,"data-testid":"select-option",label:X[i.itemLabel],active:X[i.itemValue]===((De=w.value)==null?void 0:De[i.itemValue]),focused:t.unref(D)===ye,disabled:X.disabled,onClick:pe=>q(X)},t.createSlots({_:2},[Z.$slots.option?{name:"default",fn:t.withCtx(()=>{var pe;return[t.renderSlot(Z.$slots,"option",{option:X,label:X[i.itemLabel],active:X[i.itemValue]===((pe=w.value)==null?void 0:pe[i.itemValue]),focused:t.unref(D)===ye,index:ye},void 0,!0)]}),key:"0"}:void 0]),1032,["data-option-index","label","active","focused","disabled","onClick"])}),128)),i.infiniteScroll&&S.value?(t.openBlock(),t.createElementBlock("div",_q,[t.createVNode(wr,{scheme:"fg-base",size:"sm"})])):t.createCommentVNode("",!0)],64))],512)]),_:3},8,["style","width"])]),_:3},8,["open"])]))}}),[["__scopeId","data-v-745da521"]]),gq={name:"UnnicSelectItem",props:{size:{type:String,default:""},selectable:{type:Boolean,default:!0},active:{type:Boolean,default:!1},textFocused:{type:Boolean,default:!1}}};function hq(e,n,a,i,r,s){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass({"unnnic-select-item":!0,"unnnic-select-item__active":a.active,"unnnic--clickable":a.selectable,"unnnic-select-item--selectable":a.selectable,"text-focused":a.textFocused}),onClick:n[0]||(n[0]=l=>e.$emit("click"))},[t.createElementVNode("span",{class:t.normalizeClass(["unnnic-select-item__label",`unnnic-select-item__label--${a.size}`])},[t.renderSlot(e.$slots,"default")],2)],2)}const a1=z(gq,[["render",hq]]),mq={class:t.normalizeClass(["unnnic-multi-select-option"])},Fq=z(t.defineComponent({name:"UnnnicMultiSelectOption",__name:"MultiSelectOption",props:{label:{},disabled:{type:Boolean,default:!1},active:{type:Boolean,default:!1},focused:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:n}){const a=n,i=e;return(r,s)=>(t.openBlock(),t.createElementBlock("div",mq,[t.createVNode(Br,{modelValue:i.active,disabled:i.disabled,label:i.label,"onUpdate:modelValue":s[0]||(s[0]=l=>a("update:modelValue",!i.active))},null,8,["modelValue","disabled","label"])]))}}),[["__scopeId","data-v-872f231b"]]),pq={class:"unnnic-multi-select"},bq={key:1,class:"unnnic-multi-select__content-no-results"},yq={key:2,class:"unnnic-multi-select__options"},n1=z(t.defineComponent({name:"UnnnicMultiSelect",__name:"index",props:{modelValue:{},options:{},itemLabel:{default:"label"},itemValue:{default:"value"},placeholder:{default:""},label:{default:""},type:{default:"normal"},errors:{default:""},message:{default:""},size:{default:"md"},optionsLines:{default:5},enableSearch:{type:Boolean,default:!1},search:{default:""},locale:{default:"en"},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},returnObject:{type:Boolean,default:!1}},emits:["update:modelValue","update:search"],setup(e,{expose:n,emit:a}){const i=e,r=a,s=t.useTemplateRef("multiSelectInputRef"),l=t.useTemplateRef("contentRef"),d=o2(i,"multi",s,l),c=d.openPopover,_=d.popoverContentCustomStyles,g=d.inputWidthString,h=d.filteredOptions;function F(A){d.openPopover.value=A}const p=t.computed(()=>{if(i.returnObject)return i.modelValue;const A=i.modelValue.slice();return i.options.filter(S=>A.includes(S[i.itemValue]))}),y=t.computed(()=>p.value.map(A=>A[i.itemLabel]).join(", "));function w(A){r("update:search",A)}function C(A){return i.returnObject?i.modelValue.some(S=>S[i.itemValue]===A[i.itemValue]):i.modelValue.includes(A[i.itemValue])}function q(A,S){if(S){const I=i.returnObject?[...i.modelValue,A]:[...i.modelValue,A[i.itemValue]];r("update:modelValue",I)}else{const I=i.returnObject?i.modelValue.filter(T=>T[i.itemValue]!==A[i.itemValue]):i.modelValue.filter(T=>T!==A[i.itemValue]);r("update:modelValue",I)}}const B=s2(()=>d.filteredOptions.value,A=>{if(A.disabled)return;const S=C(A);q(A,!S)},{closeOnSelect:!1,closePopover:()=>F(!1),openPopoverRef:d.openPopover});B.setupKeydownBinding();const D=B.focusedOptionIndex;return t.watch(c,()=>{d.openPopover.value?B.focusedOptionIndex.value=-1:w("")}),n({openPopover:c,setOpenPopover:F,filteredOptions:h,calculatedPopoverHeight:d.calculatedPopoverHeight,selectedItems:p,inputValue:y}),(A,S)=>(t.openBlock(),t.createElementBlock("div",pq,[t.createVNode(t.unref(Dr),{open:t.unref(c),"onUpdate:open":F},{default:t.withCtx(()=>[t.createVNode(t.unref(Er),{class:"w-full"},{default:t.withCtx(()=>[t.createVNode(_n,{ref_key:"multiSelectInputRef",ref:s,modelValue:y.value,class:"unnnic-multi-select__input",readonly:"",useFocusProp:"",focus:t.unref(c),size:i.size,placeholder:i.placeholder,label:i.label,errors:i.errors,message:i.message,iconRight:t.unref(c)?"keyboard_arrow_up":"keyboard_arrow_down",disabled:i.disabled,showClear:!!p.value.length&&i.clearable,onClear:S[0]||(S[0]=I=>r("update:modelValue",[]))},null,8,["modelValue","focus","size","placeholder","label","errors","message","iconRight","disabled","showClear"])]),_:1}),t.createVNode(t.unref(Cr),{align:"start",class:"h-full",style:t.normalizeStyle(t.unref(_)),width:t.unref(g)},{default:t.withCtx(()=>[t.createElementVNode("div",{ref_key:"contentRef",ref:l,class:"unnnic-multi-select__content"},[i.enableSearch?(t.openBlock(),t.createBlock(_n,{key:0,class:"unnnic-multi-select__input-search",modelValue:i.search,placeholder:A.$t("search"),iconLeft:"search","onUpdate:modelValue":w},null,8,["modelValue","placeholder"])):t.createCommentVNode("",!0),t.unref(h).length===0?(t.openBlock(),t.createElementBlock("p",bq,t.toDisplayString(A.$t("without_results")),1)):(t.openBlock(),t.createElementBlock("div",yq,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(h),(I,T)=>(t.openBlock(),t.createBlock(Fq,{key:String(I[i.itemValue]),"data-option-index":T,label:String(I[i.itemLabel]??""),active:C(I),focused:t.unref(D)===T,disabled:I.disabled,"onUpdate:modelValue":O=>q(I,O)},null,8,["data-option-index","label","active","focused","disabled","onUpdate:modelValue"]))),128))]))],512)]),_:1},8,["style","width"])]),_:1},8,["open"])]))}}),[["__scopeId","data-v-22e0f7f3"]]),kq={components:{UnnnicIcon:fe},props:{open:{type:Boolean,default:!1},title:{type:String}},data(){return{height:0,setHeightToNull:null}},watch:{open(e){clearTimeout(this.setHeightToNull),e?(this.height=`${this.$refs.content.scrollHeight}px`,this.setHeightToNull=setTimeout(()=>{this.height=null},200)):(this.height=`${this.$refs.content.scrollHeight}px`,setTimeout(()=>{this.height=0},0))}},mounted(){this.open&&(this.height=null)}},wq={class:"header"},Dq={class:"actions"};function Cq(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createElementBlock("div",{class:"unnnic-accordion",onClick:n[0]||(n[0]=d=>e.$emit("update:open",!a.open))},[t.createElementVNode("div",wq,[t.createVNode(l,{icon:a.open?"subtract-circle-1":"add-circle-1",scheme:"fg-base",size:"md"},null,8,["icon"]),t.createElementVNode("div",{class:t.normalizeClass(["title",{open:a.open}])},t.toDisplayString(a.title),3),t.withDirectives(t.createElementVNode("div",Dq,[t.renderSlot(e.$slots,"actions",{},void 0,!0)],512),[[t.vShow,a.open]])]),t.createElementVNode("div",{ref:"content",class:t.normalizeClass(["content",{open:a.open}]),style:t.normalizeStyle({height:r.height})},[t.renderSlot(e.$slots,"default",{},void 0,!0)],6)])}const i1=z(kq,[["render",Cq],["__scopeId","data-v-0943a5ba"]]),Eq={name:"UnnnicIndicator",props:{numberOfSteps:{type:Number,required:!0},titles:{type:Array,default:()=>[]},currentStep:{type:Number,default:0}},methods:{titleForStep(e){try{return this.titles[e-1]}catch{return null}}}},Aq={class:"weni-step-indicator"},Bq={class:"weni-step-indicator__label"};function xq(e,n,a,i,r,s){return t.openBlock(),t.createElementBlock("div",Aq,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.numberOfSteps,l=>(t.openBlock(),t.createElementBlock("div",{key:l,class:t.normalizeClass({"weni-step-indicator__step__wrapper":!0,"weni-step-indicator--has-separator":l>1})},[l!==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass({"weni-step-indicator__step__separator":!0,"weni-step-indicator__step__separator--active":l<=a.currentStep})},null,2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass({"weni-step-indicator__step":!0,"weni-step-indicator__step--active":l<=a.currentStep})},[t.createElementVNode("span",Bq,t.toDisplayString(s.titleForStep(l)),1)],2)],2))),128))])}const r1=z(Eq,[["render",xq],["__scopeId","data-v-cb023da6"]]),vq={"--skeleton-bg":"var(--unnnic-color-bg-muted)","--skeleton-highlight":"var(--unnnic-color-bg-base-soft)","--skeleton-duration":"2s"},Sq={name:"UnnnicSkeletonLoading",props:{prefix:{type:String,default:"unnnic"},count:{type:Number,default:1},duration:{type:Number,default:2},tag:{type:String,default:"span"},width:[String,Number],height:[String,Number],circle:{type:Boolean,default:!1},loading:{type:Boolean,default:void 0},direct:{type:Boolean}},setup(){const e=t.inject("_themeStyle",t.ref({...vq})),n=t.inject("_skeletonTheme",t.ref({}));return{themeStyle:e,theme:n}},computed:{classes(){return[`${this.prefix}-skeleton`,this.circle?`${this.prefix}-skeleton--circle`:""]},styles(){const e={};return e["--skeleton-bg"]=this.themeStyle["--skeleton-bg"],e["--skeleton-highlight"]=this.themeStyle["--skeleton-highlight"],e["--skeleton-duration"]=this.duration?`${this.duration}s`:"0s",this.width&&(e.width=this.width),this.height&&(e.height=this.height),e},elements(){return Array.from({length:this.count},()=>({}))},showLoading(){return typeof this.loading<"u"?this.loading:this.isEmptyVNode(this.$slots.default)}},methods:{isEmptyVNode(e){if(!e)return!0;const[n]=e();let a=n.children;return a&&(a=a.replace(/(\n|\r\n|\s)/g,"")),!a}}};function jq(e,n,a,i,r,s){return a.direct?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(a.tag),{key:0,class:t.normalizeClass(s.classes),style:t.normalizeStyle(s.styles)},null,8,["class","style"])):s.showLoading?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(a.tag),{key:1},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.elements,(l,d)=>(t.openBlock(),t.createElementBlock("span",{key:d,class:t.normalizeClass(s.classes),style:t.normalizeStyle(s.styles)}," ‌ ",6))),128))]),_:1})):t.createCommentVNode("",!0)}const o1=z(Sq,[["render",jq]]),qq={name:"UnnnicTagCarousel",components:{UnnnicTag:Ar,UnnnicIcon:fe},props:{modelValue:{type:Array,default(){return[]}},tagItems:{type:Array,default:()=>[]}},data(){return{hasNext:!0,hasPrev:!1,slides:[]}},mounted(){this.slides=this.tagItems},methods:{handleNext(){this.next()},handlePrevious(){this.previous()},save(e){let n=this.modelValue;this.checkIsInclude(e)?n=n.filter(a=>a!==e.id):n=[...n,e.id],this.$emit("selected",n)},checkIsInclude(e){return this.modelValue.some(n=>n===e.id)},next(){const e=document.querySelector("#scroll"),n=e.scrollWidth-e.clientWidth;e.scrollLeft+=200,n!==e.scrollLeft?(this.hasNext||(this.hasNext=!0),this.hasPrev=!0):this.hasNext=!1},previous(){const e=document.querySelector("#scroll");e.scrollLeft-=200,e.scrollLeft!==0?(this.hasPrev||(this.hasPrev=!0),this.hasNext=!0):this.hasPrev=!1}}},Iq={class:"unnnic-card-tag-carousel"},Nq={class:"unnnic-card-tag-carousel__button unnnic-card-tag-carousel__button--left"},Tq={class:"unnnic-card-tag-carousel__button__icon"},Oq={class:"unnnic-card-tag-carousel__button__blur unnnic-card-tag-carousel__button__blur--left"},Mq={id:"scroll",class:"unnnic-card-tag-carousel__container"},Pq={class:"unnnic-card-tag-carousel__button unnnic-card-tag-carousel__button--right"},Lq={class:"unnnic-card-tag-carousel__button__blur unnnic-card-tag-carousel__button__blur--right"},zq={class:"unnnic-card-tag-carousel__button__icon"};function Vq(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicIcon"),d=t.resolveComponent("UnnnicTag");return t.openBlock(),t.createElementBlock("div",Iq,[t.createElementVNode("div",Nq,[t.createElementVNode("div",Tq,[t.createVNode(l,{icon:"arrow-left-1-1",size:"sm",scheme:r.hasPrev?"fg-emphasized":"fg-muted",clickable:"",onClick:s.handlePrevious},null,8,["scheme","onClick"])]),t.withDirectives(t.createElementVNode("span",Oq,null,512),[[t.vShow,r.hasPrev]])]),t.createElementVNode("div",Mq,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.slides,c=>(t.openBlock(),t.createElementBlock("div",{key:c.id,class:"unnnic-card-tag-carousel__container__slide"},[t.createVNode(d,{text:c.name,clickable:"",type:"brand",disabled:s.checkIsInclude(c),class:"unnnic-card-tag-carousel__container__slide__item",onClick:_=>s.save(c)},null,8,["text","disabled","onClick"])]))),128))]),t.createElementVNode("div",Pq,[t.withDirectives(t.createElementVNode("span",Lq,null,512),[[t.vShow,r.hasNext]]),t.createElementVNode("div",zq,[t.createVNode(l,{icon:"arrow-right-1-1",size:"sm",scheme:r.hasNext?"fg-emphasized":"fg-muted",clickable:"",onClick:s.handleNext},null,8,["scheme","onClick"])])])])}const Rq=z(qq,[["render",Vq]]),Uq={name:"UnnnicCarousel",model:{event:"update:model-value"},props:{modelValue:{type:Array,default(){return[]}},type:{type:String,default:"brand",validator(e){return["brand"].indexOf(e)!==-1}},tagItems:{type:Array,default:()=>[]},name:{type:String,default:null},icon:{type:String,default:null},clickable:{type:Boolean,default:!1}},computed:{currentComponent(){return Rq}}};function Hq(e,n,a,i,r,s){return t.openBlock(),t.createBlock(t.resolveDynamicComponent(s.currentComponent),t.mergeProps({class:"unnnic-carousel-component"},e.$attrs,{name:a.name,clickable:a.clickable,tagItems:a.tagItems,modelValue:a.modelValue,onSelected:n[0]||(n[0]=l=>e.$emit("update:model-value",l))}),null,16,["name","clickable","tagItems","modelValue"])}const s1=z(Uq,[["render",Hq]]),Yq={components:{UnnnicIcon:fe,UnnnicToolTip:Xt},model:{prop:"activeTab",event:"change"},props:{size:{type:String,default:"md",validator:e=>["md","sm"].includes(e)},activeTab:{type:String,default:""},initialTab:{type:String,default:null},tabs:{type:Array,default:null,validator:e=>e.every(n=>typeof n=="string")&&e.length<=5},disabledTabs:{type:Array,default:null}},emits:["change"],data(){return{localValue:""}},computed:{tabPanelSlotName(){return`tab-panel-${this.localValue}`}},watch:{activeTab(){this.localValue=this.activeTab}},created(){const e=this.initialTab||this.activeTab||this.tabs&&this.tabs[0];this.change(e)},methods:{tabHeadSlotName(e){return`tab-head-${e}`},tabHeadTooltipSlotName(e){return e?`tab-head-${e}-tooltip`:""},getHeadTooltip(e){var a,i;const n=this.$slots[this.tabHeadTooltipSlotName(e)];return n?(i=(a=n())==null?void 0:a[0])==null?void 0:i.children:""},change(e){var n;(n=this.disabledTabs)!=null&&n.includes(e)||(this.localValue=e,this.$emit("change",this.localValue))}}},Gq={class:"tab-header"},Wq={class:"tab-content"},Qq=["onClick"],Xq={class:"tab-body"},Kq={class:"tab-panel"};function Zq(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicIcon"),d=t.resolveComponent("UnnnicToolTip");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["tab",`size-${a.size}`])},[t.createElementVNode("header",Gq,[t.createElementVNode("ul",Wq,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.tabs,c=>{var _;return t.openBlock(),t.createElementBlock("li",{key:c,class:t.normalizeClass(["tab-head",{"tab-head--active":r.localValue===c,"tab-head--disabled":(_=a.disabledTabs)==null?void 0:_.includes(c)}]),onClick:g=>s.change(c)},[t.renderSlot(e.$slots,s.tabHeadSlotName(c),{},()=>[t.createTextVNode(t.toDisplayString(c),1)],!0),s.getHeadTooltip(c)?(t.openBlock(),t.createBlock(d,{key:0,enabled:"",text:s.getHeadTooltip(c),side:"bottom"},{default:t.withCtx(()=>[t.createVNode(l,{icon:"help",size:a.size==="sm"?"xs":"sm",scheme:"fg-base"},null,8,["size"])]),_:2},1032,["text"])):t.createCommentVNode("",!0)],10,Qq)}),128))])]),t.createElementVNode("main",Xq,[t.createElementVNode("div",Kq,[t.renderSlot(e.$slots,s.tabPanelSlotName,{},void 0,!0)])])],2)}const l1=z(Yq,[["render",Zq],["__scopeId","data-v-2860998c"]]),Jq={components:{UnnnicIcon:fe},props:{modelValue:{type:[String,Number],required:!0},items:{type:Array,required:!0}},emits:["back","update:model-value","close-tab","add"]},$q={class:"unnnic-tabs-expanded"},eI=["onClick"],tI={"data-testid":"tab-description",class:"u font secondary body-sm color-fg-base"},aI={key:0,class:"close-container"};function nI(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createElementBlock("div",$q,[t.createElementVNode("div",{class:"back-container","data-testid":"back",onClick:n[0]||(n[0]=d=>e.$emit("back"))},[t.createVNode(l,{icon:"keyboard-arrow-left-1",scheme:"fg-base"})]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.items,d=>(t.openBlock(),t.createElementBlock("div",{key:d.value,class:"tab","data-testid":"tab",onClick:c=>e.$emit("update:model-value",d.value)},[t.createElementVNode("div",null,[t.createElementVNode("div",{class:t.normalizeClass(["u font secondary body-gt bold",d.value===a.modelValue?"color-brand-weni-soft":"color-fg-base"]),"data-testid":"tab-title"},t.toDisplayString(d.title),3),t.createElementVNode("div",tI,t.toDisplayString(d.description),1)]),d.value===a.modelValue?(t.openBlock(),t.createElementBlock("div",aI,[t.createVNode(l,{icon:"close-1",size:"xs",clickable:"",scheme:"fg-base","data-testid":"tab-close-icon",onClick:t.withModifiers(c=>e.$emit("close-tab",d),["stop"])},null,8,["onClick"])])):t.createCommentVNode("",!0)],8,eI))),128)),t.createElementVNode("div",{class:"add-container","data-testid":"tab-add",onClick:n[1]||(n[1]=d=>e.$emit("add"))},[t.createVNode(l,{icon:"add-1",scheme:"fg-base",size:"sm"})])])}const u1=z(Jq,[["render",nI],["__scopeId","data-v-a72bb16c"]]),iI={name:"UnnnicBanner",components:{UnnnicIcon:fe},props:{firstTitle:{type:String,default:null},secondTitle:{type:String,default:null},thirdTitle:{type:String,default:null},firstDescription:{type:String,default:null},secondDescription:{type:String,default:null},thirdDescription:{type:String,default:null},subtitle:{type:String,default:null},rating:{type:Number,default:0}},data(){return{tempRating:null,baseRating:this.rating}},methods:{emitRatingAction(e){this.$emit("ratingAction",e)},starScheme(e){return e<=this.baseRating?"feedback-yellow":"fg-base"},starOver(e){this.tempRating=this.baseRating,this.baseRating=e},starOut(){this.baseRating=this.tempRating}}},rI={class:"unnnic-banner-info"},oI={class:"unnnic-banner-info__section"},sI={class:"unnnic-banner-info__title"},lI={class:"unnnic-banner-info__description"},uI={class:"unnnic-banner-info__section"},dI={class:"unnnic-banner-info__title"},cI={class:"unnnic-banner-info__description"},fI={class:"unnnic-banner-info__subtitle"},_I={class:"unnnic-banner-info__section"},gI={class:"unnnic-banner-info__title"},hI={class:"unnnic-banner-info__description"},mI={class:"unnnic-banner-info__rating"};function FI(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createElementBlock("div",rI,[t.createElementVNode("section",oI,[t.createElementVNode("div",sI,t.toDisplayString(a.firstTitle),1),t.createElementVNode("div",lI,t.toDisplayString(a.firstDescription),1)]),n[0]||(n[0]=t.createElementVNode("div",{class:"unnnic-banner-info__divider"},null,-1)),t.createElementVNode("section",uI,[t.createElementVNode("div",dI,t.toDisplayString(a.secondTitle),1),t.createElementVNode("div",cI,t.toDisplayString(a.secondDescription),1),t.createElementVNode("div",fI,t.toDisplayString(a.subtitle),1)]),n[1]||(n[1]=t.createElementVNode("div",{class:"unnnic-banner-info__divider"},null,-1)),t.createElementVNode("section",_I,[t.createElementVNode("div",gI,t.toDisplayString(a.thirdTitle),1),t.createElementVNode("div",hI,t.toDisplayString(a.thirdDescription),1),t.createElementVNode("div",mI,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(5,d=>t.createVNode(l,{key:d,class:t.normalizeClass({"unnnic-banner-info__rating__star":!0,"unnnic-banner-info__rating__star__active":d<=r.baseRating}),scheme:s.starScheme(d),icon:"rating-star-1",size:"ant",onClick:c=>s.emitRatingAction(d),onMouseover:c=>s.starOver(d),onMouseout:s.starOut},null,8,["class","scheme","onClick","onMouseover","onMouseout"])),64))])])])}const l2=z(iI,[["render",FI]]),pI={name:"UnnnicBanner",props:{type:{type:String,default:"info",validator(e){return["info"].indexOf(e)!==-1}},firstTitle:{type:String,default:null},secondTitle:{type:String,default:null},thirdTitle:{type:String,default:null},firstDescription:{type:String,default:null},secondDescription:{type:String,default:null},thirdDescription:{type:String,default:null},subtitle:{type:String,default:null},rating:{type:Number,default:0}},computed:{currentComponent(){return this.type==="info",l2}},methods:{emitRatingAction(e){this.$emit("ratingAction",e)}}};function bI(e,n,a,i,r,s){return t.openBlock(),t.createBlock(t.resolveDynamicComponent(s.currentComponent),t.mergeProps({class:"unnnic-banner-component"},e.$attrs,{firstTitle:a.firstTitle,secondTitle:a.secondTitle,thirdTitle:a.thirdTitle,firstDescription:a.firstDescription,secondDescription:a.secondDescription,thirdDescription:a.thirdDescription,subtitle:a.subtitle,rating:a.rating}),null,16,["firstTitle","secondTitle","thirdTitle","firstDescription","secondDescription","thirdDescription","subtitle","rating"])}const d1=z(pI,[["render",bI]]),yI={name:"UnnnicComment",components:{},props:{title:{type:String,default:null},time:{type:String,default:null},text:{type:String,default:null}}},kI={class:"unnnic-comment"},wI={class:"unnnic-comment__avatar"},DI={class:"unnnic-comment__content"},CI={class:"unnnic-comment__content__header"},EI={class:"unnnic-comment__content__header__title"},AI={class:"unnnic-comment__content__header__time"},BI={class:"unnnic-comment__content__header__actions"},xI={class:"unnnic-comment__content__text"};function vI(e,n,a,i,r,s){return t.openBlock(),t.createElementBlock("div",kI,[t.createElementVNode("div",wI,[t.renderSlot(e.$slots,"avatar",{},void 0,!0)]),t.createElementVNode("div",DI,[t.createElementVNode("div",CI,[t.createElementVNode("div",EI,t.toDisplayString(a.title),1),t.createElementVNode("div",AI,t.toDisplayString(a.time),1),t.createElementVNode("div",BI,[t.renderSlot(e.$slots,"actions",{},void 0,!0)])]),t.createElementVNode("div",xI,t.toDisplayString(a.text),1)])])}const c1=z(yI,[["render",vI],["__scopeId","data-v-5925e703"]]),SI={name:"UnnnicBreadcrumb",components:{UnnnicIcon:fe},props:{crumbs:{type:Array,default:null,validator:e=>e.every(n=>n.name!==null)}},emits:["crumb-click"]},jI={class:"unnnic-breadcrumb"},qI=["data-test","onClick"];function II(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createElementBlock("div",jI,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.crumbs,(d,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:d.name},[t.createElementVNode("div",{class:t.normalizeClass({"unnnic-breadcrumb__container__link":!0,"unnnic-breadcrumb__container__link__active":c===a.crumbs.length-1}),"data-test":d.name,onClick:_=>e.$emit("crumb-click",d)},t.toDisplayString(d.name),11,qI),c!==a.crumbs.length-1?(t.openBlock(),t.createBlock(l,{key:0,"data-test":"right-icon",icon:"arrow-right-1-1",size:"xs",lineHeight:"md",class:"unnnic-breadcrumb__container__divider",scheme:"fg-base"})):t.createCommentVNode("",!0)],64))),128))])}const f1=z(SI,[["render",II],["__scopeId","data-v-b1be1eed"]]),NI={class:"unnnic-switch"},TI=["disabled","checked"],OI={key:1,class:"unnnic-switch__helper"},_1=z(t.defineComponent({name:"UnnnicSwitch",__name:"Switch",props:{size:{default:"medium"},label:{default:""},labelTooltip:{default:void 0},option:{default:""},helper:{default:""},textLeft:{default:""},textRight:{default:""},disabled:{type:Boolean,default:!1},modelValue:{type:Boolean,default:!1}},emits:["update:model-value"],setup(e,{emit:n}){const a=e,i=n,r=t.ref(a.modelValue);t.watch(()=>a.modelValue,l=>{l!==r.value&&(r.value=l)},{immediate:!0});function s(){a.disabled||(r.value=!r.value,i("update:model-value",r.value))}return(l,d)=>(t.openBlock(),t.createElementBlock("section",NI,[l.label?(t.openBlock(),t.createBlock(Ci,{key:0,label:l.label,tooltip:l.labelTooltip,class:"unnnic-switch__label"},null,8,["label","tooltip"])):t.createCommentVNode("",!0),t.createElementVNode("label",{class:t.normalizeClass(["unnnic-switch__input-wrapper",{"unnnic-switch__input-wrapper--disabled":l.disabled}])},[t.createElementVNode("input",t.mergeProps({class:"unnnic-switch__input",type:"checkbox",disabled:l.disabled,checked:l.modelValue},t.unref(Kt.pick)(l.$attrs,["id","name"]),{onChange:s}),null,16,TI),l.option||l.textLeft||l.textRight?(t.openBlock(),t.createElementBlock("p",{key:0,class:t.normalizeClass(["unnnic-switch__option",{"unnnic-switch__option--disabled":l.disabled}]),"data-testid":"switch-option"},[t.createTextVNode(t.toDisplayString(l.option)+" "+t.toDisplayString(l.textLeft)+" "+t.toDisplayString(l.textRight)+" ",1),t.renderSlot(l.$slots,"suffix",{},void 0,!0)],2)):t.createCommentVNode("",!0)],2),l.helper?(t.openBlock(),t.createElementBlock("p",OI,t.toDisplayString(l.helper),1)):t.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-ee5c330b"]]),MI={name:"UnnnicSlider",components:{UnnnicTooltip:Xt,UnnnicIcon:fe},props:{initialValue:{type:Number,default:0},showInputValue:{type:Boolean,default:!0},label:{type:String,default:""},labelInfo:{type:String,default:""},minValue:{type:Number,default:0},maxValue:{type:Number,default:5},step:{type:Number,default:1},minLabel:{type:String,default:""},maxLabel:{type:String,default:""}},data(){return{showTooltip:!1,sliderVal:this.initialValue,tooltipOffset:0,sliderWidth:0,labelWidth:0}},computed:{cssVars(){return{"--val":this.sliderVal,"--tooltip-offset":this.tooltipOffset,"--min":this.minValue,"--max":this.maxValue}}},watch:{sliderVal:{handler(){this.$nextTick(()=>{this.configureTooltip();const e=this.$refs["value-input"];e&&e.textContent!==this.sliderVal&&(this.$refs["value-input"].textContent=this.sliderVal)})},immediate:!0,deep:!0}},created(){window.addEventListener("resize",this.handleResize)},unmounted(){window.removeEventListener("resize",this.handleResize)},mounted(){this.checkInputWidth(),this.checkTooltipLabelWidth()},methods:{configureTooltip(){this.sliderWidth=this.$refs.input.clientWidth,this.labelWidth=this.$refs.tooltip.$refs.label.clientWidth,this.tooltipOffset=this.getNewTooltipPosition()},handleResize(){this.configureTooltip()},handleValueChange(){this.configureTooltip(),this.$emit("valueChange",this.sliderVal)},handleInput(e){this.sliderVal=e.target.value,this.handleValueChange()},checkInputWidth(){const e=setInterval(()=>{const n=this.$refs.input;if(n){const{offsetWidth:a}=n;a>0&&(this.sliderWidth=a,this.configureTooltip(),clearInterval(e))}},100)},checkTooltipLabelWidth(){const e=setInterval(()=>{var i;const n=(i=this.$refs.tooltip)==null?void 0:i.$refs.label;if(!n)return;const{clientWidth:a}=n;a>0&&(this.labelWidth=a,this.configureTooltip(),clearInterval(e))},100)},getNewTooltipPosition(){if(this.sliderWidth===0||this.labelWidth===0)return 0;const e=12/2,n=this.labelWidth/2||16,a=this.sliderWidth/2;let i=(this.sliderVal-this.minValue)/(this.maxValue-this.minValue);Number.isNaN(i)&&(i=0);const r=i*this.sliderWidth,d=(r-a)/a*e;return r-n-d}}},PI={class:"unnnic-label"},LI={key:0,class:"unnnic-slider__label"},zI={class:"unnnic-slider__content"},VI={class:"unnnic-slider__content__labels"},RI={class:"unnnic-slider__content__labels__min"},UI=["min","max","step"],HI={class:"unnnic-slider__content__labels__max"},YI=["value"];function GI(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicIcon"),d=t.resolveComponent("UnnnicTooltip");return t.openBlock(),t.createElementBlock("article",null,[t.createElementVNode("section",PI,[a.label?(t.openBlock(),t.createElementBlock("p",LI,t.toDisplayString(a.label),1)):t.createCommentVNode("",!0),a.labelInfo?(t.openBlock(),t.createBlock(d,{key:1,class:"unnnic-label__tooltip",text:a.labelInfo,enabled:"",side:"top"},{default:t.withCtx(()=>[t.createVNode(l,{class:"unnnic-label__tooltip__icon",icon:"info",size:"sm",scheme:"fg-base",filled:!0})]),_:1},8,["text"])):t.createCommentVNode("",!0)]),t.createElementVNode("section",{class:"unnnic-slider",style:t.normalizeStyle(s.cssVars)},[t.createElementVNode("section",zI,[t.createElementVNode("section",VI,[t.createElementVNode("span",RI,t.toDisplayString(a.minLabel),1),t.createVNode(d,{ref:"tooltip",class:"unnnic-slider__content__tooltip",text:r.sliderVal.toString(),forceOpen:!0,enabled:r.showTooltip,side:"top"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("input",{ref:"input","onUpdate:modelValue":n[0]||(n[0]=c=>r.sliderVal=c),class:"unnnic-slider__content__range-input",type:"range",min:a.minValue,max:a.maxValue,step:a.step,onChange:n[1]||(n[1]=(...c)=>s.handleValueChange&&s.handleValueChange(...c)),onMouseover:n[2]||(n[2]=c=>r.showTooltip=!0),onMouseleave:n[3]||(n[3]=c=>r.showTooltip=!1)},null,40,UI),[[t.vModelText,r.sliderVal]])]),_:1},8,["text","enabled"]),t.createElementVNode("span",HI,t.toDisplayString(a.maxLabel),1)])]),a.showInputValue?(t.openBlock(),t.createElementBlock("input",{key:0,ref:"value-input",class:"value-input",value:r.sliderVal,onInput:n[4]||(n[4]=(...c)=>s.handleInput&&s.handleInput(...c))},null,40,YI)):t.createCommentVNode("",!0)],4)])}const g1=z(MI,[["render",GI],["__scopeId","data-v-4d22fbdb"]]),WI={name:"UnnnicDataArea",components:{ToolTip:Xt},props:{title:{type:String,default:null},text:{type:String,default:null},enableHover:{type:Boolean,default:!1},hoverText:{type:String,default:""}}},QI={class:"data-area-container"},XI={class:"data-area-container__header"},KI={class:"data-area-container__header__title"},ZI={class:"data-area-container__header__links-slot"},JI={class:"data-area-container__content"},$I={class:"data-area-container__content__text"},eN={class:"data-area-container__content__buttons-slot"};function tN(e,n,a,i,r,s){const l=t.resolveComponent("ToolTip");return t.openBlock(),t.createElementBlock("div",QI,[t.createElementVNode("div",XI,[t.createElementVNode("div",KI,t.toDisplayString(a.title),1),t.createElementVNode("div",ZI,[t.renderSlot(e.$slots,"links",{},void 0,!0)])]),t.createElementVNode("div",JI,[t.createVNode(l,{enabled:a.enableHover,text:a.hoverText},{default:t.withCtx(()=>[t.createElementVNode("div",$I,t.toDisplayString(a.text),1)]),_:1},8,["enabled","text"]),t.createElementVNode("div",eN,[t.renderSlot(e.$slots,"buttons",{},void 0,!0)])])])}const h1=z(WI,[["render",tN],["__scopeId","data-v-532aa33d"]]),aN={components:{UnnnicButton:Dt},props:{modelValue:{type:Number,default:1},max:{type:Number,default:1},show:{type:Number,default:5},disabled:{type:Boolean,default:!1}},emits:["update:model-value"],data(){return{reference:3}},computed:{pages(){const e=[];for(let i=1;i<=this.max;i+=1)e.push(i);const n=this.show-4,a=this.max-n-3;if(this.reference>3){const i=this.reference-2,r=i>a?a:i;e.splice(1,r,"left-hidden")}if(this.reference<this.max-n-1){const i=this.max-n-this.reference,r=i>a?a:i;e.splice(-(r+1),r,"right-hidden")}return e},canPrevious(){return this.modelValue>1},canNext(){return this.modelValue<this.max}},created(){const e=this.modelValue;this.selectPage(e,!0),this.pages.includes(e)||this.setReference(e)},methods:{selectPage(e,n){if(e==="left-hidden"){const a=this.pages[this.pages.indexOf("left-hidden")+1]-1;n||this.$emit("update:model-value",a),this.setReference(a)}else if(e==="right-hidden"){const a=this.pages[this.pages.indexOf("right-hidden")-1]+1;n||this.$emit("update:model-value",a),this.pages.includes("left-hidden")?this.setReference(this.pages[this.pages.indexOf("left-hidden")+1]+1):this.setReference(4)}else n||this.$emit("update:model-value",e)},previousPage(){if(this.canPrevious){const e=this.modelValue-1;this.selectPage(e),this.pages.includes(e)||this.setReference(e)}},nextPage(){if(this.canNext){const e=this.modelValue+1;this.selectPage(e),this.pages.includes(e)||this.setReference(e)}},setReference(e){this.reference=e}}},nN={class:"pagination"};function iN(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicButton");return t.openBlock(),t.createElementBlock("div",nN,[t.createVNode(l,{type:"tertiary",size:"small",iconCenter:"arrow-left-1-1",disabled:!s.canPrevious||a.disabled,"data-test":"previous-button",onClick:s.previousPage},null,8,["disabled","onClick"]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.pages,(d,c)=>(t.openBlock(),t.createBlock(l,{key:c,type:d===a.modelValue?"secondary":"tertiary",size:"small",text:["left-hidden","right-hidden"].includes(d)?"...":String(d),disabled:a.disabled,"data-test":"page-button",onClick:_=>s.selectPage(d)},null,8,["type","text","disabled","onClick"]))),128)),t.createVNode(l,{type:"tertiary",size:"small",iconCenter:"arrow-right-1-1",disabled:!s.canNext||a.disabled,"data-test":"next-button",onClick:s.nextPage},null,8,["disabled","onClick"])])}const _l=z(aN,[["render",iN],["__scopeId","data-v-b2612197"]]),rN={name:"UnnnicDateFilter",components:{UnnnicInput:_n},props:{size:{type:String,default:"sm"},dateFormat:{type:String,default:"DD/MM/YYYY"},dateSeparator:{type:String,default:"~"},startDate:{type:Date,default:null},endDate:{type:Date,default:null},placeholder:{type:String,default:""}},computed:{dateRange(){let e="";if(this.startDate){const n=re(this.startDate).format(this.dateFormat.replaceAll("/",""));e+=n.toString()}if(this.endDate){const n=re(this.endDate).format(this.dateFormat.replaceAll("/",""));e+=n.toString()}return e},fullMask(){return`${this.maskedDateFormat} !${this.dateSeparator} ${this.maskedDateFormat}`},maskedDateFormat(){return this.dateFormat.replace(/D|M|Y/gi,"#")}},methods:{emitFilter(){this.$emit("filter")}}},oN={class:"unnnic-date-filter"};function sN(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicInput");return t.openBlock(),t.createElementBlock("div",oN,[t.createVNode(l,{class:"unnnic-date-filter__input",size:a.size,iconLeft:"notes-1",readonly:"",mask:s.fullMask,value:s.dateRange,placeholder:a.placeholder,onFocus:t.withModifiers(s.emitFilter,["stop"])},null,8,["size","mask","value","placeholder","onFocus"])])}const m1=z(rN,[["render",sN]]),lN={components:{UnnnicToolTip:Xt,UnnnicIcon:fe},props:{size:{type:String,default:"normal"},title:{type:String},titleColor:{type:String,default:"brand-weni-soft"},info:{type:String}},data(){return{isScrollable:!1}},mounted(){const e=this.$refs.description.scrollHeight-this.$refs.description.offsetHeight;this.isScrollable=e}},uN={class:"header"},dN={ref:"description",class:"description"},cN={key:0,class:"scrollable-gradient"};function fN(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicIcon"),d=t.resolveComponent("UnnnicToolTip");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["unnnic-chat-text",a.size])},[t.createElementVNode("div",uN,[t.createElementVNode("div",{class:t.normalizeClass(["title",a.titleColor])},[t.createTextVNode(t.toDisplayString(a.title)+" ",1),a.info?(t.openBlock(),t.createBlock(d,{key:0,side:"top",class:"info",text:a.info,enabled:""},{default:t.withCtx(()=>[t.createVNode(l,{class:"info__icon",icon:"info",size:"sm",scheme:"fg-base"})]),_:1},8,["text"])):t.createCommentVNode("",!0)],2),t.renderSlot(e.$slots,"actions",{},void 0,!0)]),t.createElementVNode("div",dN,[t.renderSlot(e.$slots,"description",{},void 0,!0),r.isScrollable?(t.openBlock(),t.createElementBlock("div",cN)):t.createCommentVNode("",!0)],512)],2)}const F1=z(lN,[["render",fN],["__scopeId","data-v-fa86c05f"]]),_N=["placeholder","maxlength","disabled","value"],p1=z(t.defineComponent({name:"UnnnicTextArea",__name:"TextArea",props:{size:{default:"md"},resize:{default:"vertical"},label:{default:""},placeholder:{default:""},modelValue:{default:""},maxLength:{default:void 0},message:{default:""},disabled:{type:Boolean,default:!1},type:{default:"normal"},tooltip:{default:void 0},errors:{default:()=>[]}},emits:["update:modelValue"],setup(e,{expose:n}){t.useCssVars(s=>({a63f65de:s.resize}));const a=e,i=t.computed(()=>Array.isArray(a.errors)?a.errors.join(", "):typeof a.errors=="string"?a.errors:""),r=t.ref(null);return n({focus:()=>{var s;(s=r.value)==null||s.focus()}}),(s,l)=>(t.openBlock(),t.createBlock(io,{label:s.label,size:s.size,disabled:s.disabled,message:s.message,tooltip:s.tooltip,error:i.value},t.createSlots({default:t.withCtx(()=>[t.createElementVNode("textarea",{ref_key:"textareaRef",ref:r,class:t.normalizeClass(["unnnic-text-area__textarea",[`unnnic-text-area__textarea--size-${s.size}`,`unnnic-text-area__textarea--type-${s.type}`]]),placeholder:t.unref(Jn)(s.placeholder),maxlength:s.maxLength,disabled:s.disabled,value:s.modelValue,onInput:l[0]||(l[0]=d=>{var c;return s.$emit("update:modelValue",t.unref(Jn)(((c=d.target)==null?void 0:c.value)??""))})},null,42,_N)]),_:2},[s.maxLength?{name:"rightMessage",fn:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(s.modelValue.length)+"/"+t.toDisplayString(s.maxLength),1)]),key:"0"}:void 0]),1032,["label","size","disabled","message","tooltip","error"]))}}),[["__scopeId","data-v-f10cd9b6"]]),gN={props:{description:{type:String,default:""},number:{type:String,default:""},fullSize:{type:Boolean,default:!1}}};function hN(e,n,a,i,r,s){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["unnnic-card-number",{"v-full":a.fullSize}])},[t.createElementVNode("h4",null,t.toDisplayString(a.description),1),t.createElementVNode("span",null,t.toDisplayString(a.number),1)],2)}const b1=z(gN,[["render",hN],["__scopeId","data-v-b36ba472"]]),mN={components:{},props:{modelValue:{type:Number,default:0},description:{type:String}},watch:{modelValue(){this.updateChartSvg()}},mounted(){this.updateChartSvg()},methods:{updateChartSvg(){function e(i,r,s,l){const d=(l-90)*Math.PI/180;return{x:i+s*Math.cos(d),y:r+s*Math.sin(d)}}function n(i,r,s,l,d,c){const _=s,g=l-s,h=e(i,r,_+g,c),F=e(i,r,_+g,d),p=c-d<=180?"0":"1";return["M",h.x,h.y,"A",_+g,_+g,0,p,0,F.x,F.y].join(" ")}const a=n(166,166,139.44,152.72,-85,85);this.$refs.background.setAttribute("d",a),this.$refs.front.setAttribute("d",n(166,166,139.44,152.72,-85,-85+this.modelValue/100*170))}}},FN={class:"unnnic-chart-rainbow"},pN={width:"332",height:"166",class:"semicircle"},bN={id:"path",ref:"background",fill:"none","stroke-linecap":"round",class:"background","stroke-width":"26.56px"},yN={id:"path",ref:"front",fill:"none","stroke-linecap":"round",class:"front","stroke-width":"26.56px"},kN={class:"content"},wN={class:"percentage"},DN={class:"number"},CN={key:0,class:"description"};function EN(e,n,a,i,r,s){return t.openBlock(),t.createElementBlock("div",FN,[(t.openBlock(),t.createElementBlock("svg",pN,[n[0]||(n[0]=t.createElementVNode("defs",{xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("linearGradient",{id:"paint0_linear_10224_36584",x1:"178",y1:"45",x2:"28",y2:"198",gradientUnits:"userSpaceOnUse"},[t.createElementVNode("stop",{"stop-color":"#00DED2"}),t.createElementVNode("stop",{offset:"1","stop-color":"#00DED2","stop-opacity":"0"})])],-1)),t.createElementVNode("path",bN,null,512),t.createElementVNode("path",yN,null,512)])),t.createElementVNode("div",kN,[t.createElementVNode("div",wN,[t.createElementVNode("span",DN,t.toDisplayString(a.modelValue),1),n[1]||(n[1]=t.createElementVNode("span",{class:"symbol"},"%",-1))]),a.description?(t.openBlock(),t.createElementBlock("div",CN,t.toDisplayString(a.description),1)):t.createCommentVNode("",!0)])])}const y1=z(mN,[["render",EN],["__scopeId","data-v-ae7c10f4"]]),AN={components:{UnnnicIcon:fe,UnnnicButton:Dt,UnnnicToolTip:Xt},props:{condensed:Boolean,groups:Array,fixedMaxValue:Number,title:String,description:String,updateText:String,previousDisabled:Boolean,nextDisabled:Boolean,showFooterLegend:Boolean},data(){return{colors:["aux-blue","aux-purple","aux-orange","aux-lemon","aux-pink","aux-baby-blue","aux-baby-yellow","aux-baby-red","aux-baby-green","aux-baby-pink"]}},computed:{legends(){return this.groups.map(({values:e})=>Object.keys(e)).flat().filter((e,n,a)=>a.indexOf(e)===n)},maxValue(){return this.fixedMaxValue||Math.max(...this.groups.map(({values:e})=>Object.values(e)).flat())}},methods:{value(e){return this.maxValue<=1?e.toFixed(1):String(Math.ceil(e))}}},BN={key:0,class:"header"},xN={key:0,class:"content"},vN={key:1,class:"description unnnic-font secondary body-gt color-fg-base"},SN={key:1,class:"actions"},jN={key:0,class:"unnnic-font secondary body-md color-fg-base"},qN={key:1,class:"navigation-container"},IN={class:"main"},NN={class:"reference"},TN={class:"values"},ON={class:"groups"},MN={class:"bars"},PN={class:"title unnnic-font secondary body-md color-fg-muted"},LN={key:1,class:"footer"},zN={class:"unnnic-font secondary body-gt color-fg-base"};function VN(e,n,a,i,r,s){const l=t.resolveComponent("UnnnicIcon"),d=t.resolveComponent("UnnnicButton"),c=t.resolveComponent("UnnnicToolTip");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["unnnic-chart-bar",{condensed:a.condensed}])},[a.title||a.description||e.$attrs.update||e.$attrs.previous||e.$attrs.next?(t.openBlock(),t.createElementBlock("div",BN,[a.title||a.description?(t.openBlock(),t.createElementBlock("div",xN,[a.title?(t.openBlock(),t.createElementBlock("div",{key:0,class:"title unnnic-font bold title-sm color-fg-emphasized",onClick:n[0]||(n[0]=_=>e.$emit("update"))},t.toDisplayString(a.title),1)):t.createCommentVNode("",!0),a.description?(t.openBlock(),t.createElementBlock("div",vN,t.toDisplayString(a.description),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),e.$attrs.update||e.$attrs.previous||e.$attrs.next?(t.openBlock(),t.createElementBlock("div",SN,[e.$attrs.update?(t.openBlock(),t.createElementBlock("div",{key:0,class:"update-button",onClick:n[1]||(n[1]=_=>e.$emit("update"))},[t.createVNode(l,{icon:"button-refresh-arrow-1",size:"sm",scheme:"fg-emphasized"}),a.updateText?(t.openBlock(),t.createElementBlock("span",jN,t.toDisplayString(a.updateText),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),e.$attrs.previous||e.$attrs.next?(t.openBlock(),t.createElementBlock("div",qN,[e.$attrs.previous?(t.openBlock(),t.createBlock(d,{key:0,size:"small",type:"tertiary",iconCenter:"arrow-left-1-1",disabled:a.previousDisabled,onClick:n[2]||(n[2]=_=>e.$emit("previous"))},null,8,["disabled"])):t.createCommentVNode("",!0),e.$attrs.next?(t.openBlock(),t.createBlock(d,{key:1,size:"small",type:"tertiary",iconCenter:"arrow-right-1-1",disabled:a.nextDisabled,onClick:n[3]||(n[3]=_=>e.$emit("next"))},null,8,["disabled"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",IN,[t.createElementVNode("div",NN,[t.createElementVNode("div",TN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList([s.value(s.maxValue),s.value(s.maxValue/2),s.value(0)],(_,g)=>(t.openBlock(),t.createElementBlock("div",{key:g,class:"value unnnic-font secondary body-md color-fg-muted"},t.toDisplayString(_),1))),128))]),n[4]||(n[4]=t.createElementVNode("div",{class:"unnnic-font secondary body-md color-fg-muted"}," ",-1))]),t.createElementVNode("div",ON,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.groups,(_,g)=>(t.openBlock(),t.createElementBlock("div",{key:g,class:"group"},[t.createElementVNode("div",MN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.legends.map((h,F)=>({legend:h,index:F})).filter(({legend:h})=>_.values[h]),({legend:h,index:F})=>(t.openBlock(),t.createBlock(c,{key:F,enabled:"",text:`${_.title}: ${_.values[h]}
66
66
  ${h}`,side:"top",style:t.normalizeStyle({height:`${_.values[h]/s.maxValue*100}%`})},{default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass(["bar",`color-${F}`])},null,2)]),_:2},1032,["text","style"]))),128))]),t.createElementVNode("div",PN,t.toDisplayString(_.title),1)]))),128))])]),a.showFooterLegend?(t.openBlock(),t.createElementBlock("div",LN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.legends,(_,g)=>(t.openBlock(),t.createElementBlock("div",{key:g,class:"legend"},[t.createVNode(l,{icon:"indicator",scheme:r.colors[g]},null,8,["scheme"]),t.createElementVNode("div",zN,t.toDisplayString(_),1)]))),128))])):t.createCommentVNode("",!0)],2)}const k1=z(AN,[["render",VN],["__scopeId","data-v-f866faa8"]]),RN={components:{UnnnicToolTip:Xt},props:{condensed:Boolean,fixedMaxValue:Number,data:Array,title:String},data(){return{chartContainerWidthInterval:null,chartContainerWidth:0}},computed:{maxValue(){return this.fixedMaxValue||Math.max(...this.data.map(({value:e})=>e).flat())},svgChart(){const e=this.data.map(({value:l})=>49.39-(l/this.maxValue*48.78+Math.random()*.01)),n=100/e.length,a=n/2;let i="";i+=`L ${n/2} ${e[0]}`;let r=0;for(let l=1;l<e.length;l+=1)l===1?r=n*1.5:r+=n,i+=`C ${r-a} ${e[l-1]} ${r-a} ${e[l]} ${r} ${e[l]}`;e.length<=1&&(r+=n/2),i+=`L ${r+a} ${e[e.length-1]}`;const s=`
67
67
  <svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 100 50" width="100%" height="100%">
68
68
  <defs>