@weni/unnnic-system 3.27.0 → 3.27.1

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 @@ ${g}`:c)}else throw u},onCacheKey:u=>SC(n,a,u)}}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 wA="9.14.5";function DA(){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 pm=ra.__EXTEND_POINT__,Vn=Hs(pm),wt={FALLBACK_TO_ROOT:pm,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()},CA={[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 K0(CA[e],...n)}const bm=Yt.__EXTEND_POINT__,ca=Hs(bm),Je={UNEXPECTED_RETURN_TYPE:bm,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 Vt(e,...n){return mr(e,null,process.env.NODE_ENV!=="production"?{messages:EA,args:n}:void 0)}const EA={[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"},d1=pn("__translateVNode"),c1=pn("__datetimeParts"),f1=pn("__numberParts"),Ii=pn("__enableEmitter"),yo=pn("__disableEmitter"),ym=pn("__setPluralRules"),km=pn("__injectWithOption"),g1=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 u=0;u<i;u++){if(a[u]==="__proto__")throw new Error(`unsafe key: ${a[u]}`);if(a[u]in r||(r[a[u]]=dt()),!Qe(r[a[u]])){process.env.NODE_ENV!=="production"&&Ot(da(wt.IGNORE_OBJ_FLATTEN,{key:a[u]})),s=!0;break}r=r[a[u]]}if(s||(ja(r)?Th.includes(a[i])||delete e[n]:(r[a[i]]=e[n],delete e[n])),!ja(r)){const u=r[a[i]];Qe(u)&&ko(u)}}return e}function $s(e,n){const{messages:a,__i18n:i,messageResolver:r,flatJson:s}=n,u=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:g}=d;c?(u[c]=u[c]||dt(),Gs(g,u[c])):Gs(g,u)}else se(d)&&Gs(JSON.parse(d),u)}),r==null&&s)for(const d in u)Za(u,d)&&ko(u[d]);return u}function wm(e){return e.type}function Dm(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(u=>{e.mergeDateTimeFormat(u,n.datetimeFormats[u])})}if(Qe(n.numberFormats)){const s=Object.keys(n.numberFormats);s.length&&s.forEach(u=>{e.mergeNumberFormat(u,n.numberFormats[u])})}}}function Cm(e){return t.createVNode(t.Text,null,e,0)}const Em="__INTLIFY_META__",Am=()=>[],AA=()=>!1;let Bm=0;function xm(e){return(n,a,i,r)=>e(a,i,t.getCurrentInstance()||void 0,r)}const BA=()=>{const e=t.getCurrentInstance();let n=null;return e&&(n=wm(e)[Em])?{[Em]:n}:null};function _1(e={},n){const{__root:a,__injectWithOption:i}=e,r=a===void 0,s=e.flatJson,u=Ka?t.ref:t.shallowRef,d=!!e.translateExistCompatible;process.env.NODE_ENV!=="production"&&d&&gh(da(wt.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));let c=Le(e.inheritLocale)?e.inheritLocale:!0;const g=u(a&&c?a.locale.value:se(e.locale)?e.locale:br),_=u(a&&c?a.fallbackLocale.value:se(e.fallbackLocale)||mt(e.fallbackLocale)||ve(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:g.value),h=u($s(g.value,e)),F=u(ve(e.datetimeFormats)?e.datetimeFormats:{[g.value]:{}}),p=u(ve(e.numberFormats)?e.numberFormats:{[g.value]:{}});let b=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,E=a?a.fallbackRoot:Le(e.fallbackRoot)?e.fallbackRoot:!0,T=!!e.fallbackFormat,B=ct(e.missing)?e.missing:null,D=ct(e.missing)?xm(e.missing):null,A=ct(e.postTranslation)?e.postTranslation:null,j=a?a.warnHtmlMessage:Le(e.warnHtmlMessage)?e.warnHtmlMessage:!0,I=!!e.escapeParameter;const P=a?a.modifiers:ve(e.modifiers)?e.modifiers:{};let q=e.pluralRules||a&&a.pluralRules,M;M=(()=>{r&&Kh(null);const U={version:wA,locale:g.value,fallbackLocale:_.value,messages:h.value,modifiers:P,pluralRules:q,missing:D===null?void 0:D,missingWarn:b,fallbackWarn:w,fallbackFormat:T,unresolving:!0,postTranslation:A===null?void 0:A,warnHtmlMessage:j,escapeParameter:I,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};U.datetimeFormats=F.value,U.numberFormats=p.value,U.__datetimeFormatters=ve(M)?M.__datetimeFormatters:void 0,U.__numberFormatters=ve(M)?M.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(U.__v_emitter=ve(M)?M.__v_emitter:void 0);const $=nA(U);return r&&Kh($),$})(),bo(M,g.value,_.value);function fe(){return[g.value,_.value,h.value,F.value,p.value]}const Z=t.computed({get:()=>g.value,set:U=>{g.value=U,M.locale=g.value}}),we=t.computed({get:()=>_.value,set:U=>{_.value=U,M.fallbackLocale=_.value,bo(M,g.value,U)}}),De=t.computed(()=>h.value),be=t.computed(()=>F.value),re=t.computed(()=>p.value);function qe(){return ct(A)?A:null}function ee(U){A=U,M.postTranslation=U}function et(){return B}function xt(U){U!==null&&(D=xm(U)),B=U,M.missing=D}function st(U,$){return U!=="translate"||!$.resolvedMessage}const At=(U,$,Ve,gt,Pt,en)=>{fe();let Ta;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(M.fallbackContext=a?aA():void 0),Ta=U(M)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(M.fallbackContext=void 0)}if(Ve!=="translate exists"&&qt(Ta)&&Ta===Ks||Ve==="translate exists"&&!Ta){const[Rt,yn]=$();if(process.env.NODE_ENV!=="production"&&a&&se(Rt)&&st(Ve,yn)&&(E&&(Js(w,Rt)||Jh(b,Rt))&&Ot(da(wt.FALLBACK_TO_ROOT,{key:Rt,type:Ve})),process.env.NODE_ENV!=="production")){const{__v_emitter:Rn}=M;Rn&&E&&Rn.emit("fallback",{type:Ve,key:Rt,to:"global",groupId:`${Ve}:${Rt}`})}return a&&E?gt(a):Pt(Rt)}else{if(en(Ta))return Ta;throw Vt(Je.UNEXPECTED_RETURN_TYPE)}};function ft(...U){return At($=>Reflect.apply(om,null,[$,...U]),()=>o1(...U),"translate",$=>Reflect.apply($.t,$,[...U]),$=>$,$=>se($))}function _t(...U){const[$,Ve,gt]=U;if(gt&&!Qe(gt))throw Vt(Je.INVALID_ARGUMENT);return ft($,Ve,Zt({resolvedMessage:!0},gt||{}))}function vt(...U){return At($=>Reflect.apply(cm,null,[$,...U]),()=>s1(...U),"datetime format",$=>Reflect.apply($.d,$,[...U]),()=>Zs,$=>se($))}function W(...U){return At($=>Reflect.apply(_m,null,[$,...U]),()=>l1(...U),"number format",$=>Reflect.apply($.n,$,[...U]),()=>Zs,$=>se($))}function te(U){return U.map($=>se($)||qt($)||Le($)?Cm(String($)):$)}const ie={normalize:te,interpolate:U=>U,type:"vnode"};function K(...U){return At($=>{let Ve;const gt=$;try{gt.processor=ie,Ve=Reflect.apply(om,null,[gt,...U])}finally{gt.processor=null}return Ve},()=>o1(...U),"translate",$=>$[d1](...U),$=>[Cm($)],$=>mt($))}function Se(...U){return At($=>Reflect.apply(_m,null,[$,...U]),()=>l1(...U),"number format",$=>$[f1](...U),Am,$=>se($)||mt($))}function xe(...U){return At($=>Reflect.apply(cm,null,[$,...U]),()=>s1(...U),"datetime format",$=>$[c1](...U),Am,$=>se($)||mt($))}function Xe(U){q=U,M.pluralRules=q}function H(U,$){return At(()=>{if(!U)return!1;const Ve=se($)?$:g.value,gt=$e(Ve),Pt=M.messageResolver(gt,U);return d?Pt!=null:ja(Pt)||qa(Pt)||se(Pt)},()=>[U],"translate exists",Ve=>Reflect.apply(Ve.te,Ve,[U,$]),AA,Ve=>Le(Ve))}function ye(U){let $=null;const Ve=Vh(M,_.value,g.value);for(let gt=0;gt<Ve.length;gt++){const Pt=h.value[Ve[gt]]||{},en=M.messageResolver(Pt,U);if(en!=null){$=en;break}}return $}function rt(U){const $=ye(U);return $??(a?a.tm(U)||{}:{})}function $e(U){return h.value[U]||{}}function _e(U,$){if(s){const Ve={[U]:$};for(const gt in Ve)Za(Ve,gt)&&ko(Ve[gt]);$=Ve[U]}h.value[U]=$,M.messages=h.value}function ze(U,$){h.value[U]=h.value[U]||{};const Ve={[U]:$};if(s)for(const gt in Ve)Za(Ve,gt)&&ko(Ve[gt]);$=Ve[U],Gs($,h.value[U]),M.messages=h.value}function x(U){return F.value[U]||{}}function N(U,$){F.value[U]=$,M.datetimeFormats=F.value,gm(M,U,$)}function Y(U,$){F.value[U]=Zt(F.value[U]||{},$),M.datetimeFormats=F.value,gm(M,U,$)}function ue(U){return p.value[U]||{}}function Ue(U,$){p.value[U]=$,M.numberFormats=p.value,mm(M,U,$)}function Oe(U,$){p.value[U]=Zt(p.value[U]||{},$),M.numberFormats=p.value,mm(M,U,$)}Bm++,a&&Ka&&(t.watch(a.locale,U=>{c&&(g.value=U,M.locale=U,bo(M,g.value,_.value))}),t.watch(a.fallbackLocale,U=>{c&&(_.value=U,M.fallbackLocale=U,bo(M,g.value,_.value))}));const Ge={id:Bm,locale:Z,fallbackLocale:we,get inheritLocale(){return c},set inheritLocale(U){c=U,U&&a&&(g.value=a.locale.value,_.value=a.fallbackLocale.value,bo(M,g.value,_.value))},get availableLocales(){return Object.keys(h.value).sort()},messages:De,get modifiers(){return P},get pluralRules(){return q||{}},get isGlobal(){return r},get missingWarn(){return b},set missingWarn(U){b=U,M.missingWarn=b},get fallbackWarn(){return w},set fallbackWarn(U){w=U,M.fallbackWarn=w},get fallbackRoot(){return E},set fallbackRoot(U){E=U},get fallbackFormat(){return T},set fallbackFormat(U){T=U,M.fallbackFormat=T},get warnHtmlMessage(){return j},set warnHtmlMessage(U){j=U,M.warnHtmlMessage=U},get escapeParameter(){return I},set escapeParameter(U){I=U,M.escapeParameter=U},t:ft,getLocaleMessage:$e,setLocaleMessage:_e,mergeLocaleMessage:ze,getPostTranslationHandler:qe,setPostTranslationHandler:ee,getMissingHandler:et,setMissingHandler:xt,[ym]:Xe};return Ge.datetimeFormats=be,Ge.numberFormats=re,Ge.rt=_t,Ge.te=H,Ge.tm=rt,Ge.d=vt,Ge.n=W,Ge.getDateTimeFormat=x,Ge.setDateTimeFormat=N,Ge.mergeDateTimeFormat=Y,Ge.getNumberFormat=ue,Ge.setNumberFormat=Ue,Ge.mergeNumberFormat=Oe,Ge[km]=i,Ge[d1]=K,Ge[c1]=xe,Ge[f1]=Se,process.env.NODE_ENV!=="production"&&(Ge[Ii]=U=>{M.__v_emitter=U},Ge[yo]=()=>{M.__v_emitter=void 0}),Ge}function xA(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,u=Le(e.fallbackRoot)?e.fallbackRoot:!0,d=!!e.formatFallbackMessages,c=ve(e.modifiers)?e.modifiers:{},g=e.pluralizationRules,_=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&&Ot(da(wt.NOT_SUPPORTED_FORMATTER)),process.env.NODE_ENV!=="production"&&e.preserveDirectiveContent&&Ot(da(wt.NOT_SUPPORTED_PRESERVE_DIRECTIVE));let b=e.messages;if(ve(e.sharedMessages)){const I=e.sharedMessages;b=Object.keys(I).reduce((q,M)=>{const ne=q[M]||(q[M]={});return Zt(ne,I[M]),q},b||{})}const{__i18n:w,__root:E,__injectWithOption:T}=e,B=e.datetimeFormats,D=e.numberFormats,A=e.flatJson,j=e.translateExistCompatible;return{locale:n,fallbackLocale:a,messages:b,flatJson:A,datetimeFormats:B,numberFormats:D,missing:i,missingWarn:r,fallbackWarn:s,fallbackRoot:u,fallbackFormat:d,modifiers:c,pluralRules:g,postTranslation:_,warnHtmlMessage:h,escapeParameter:F,messageResolver:e.messageResolver,inheritLocale:p,translateExistCompatible:j,__i18n:w,__root:E,__injectWithOption:T}}function h1(e={},n){{const a=_1(xA(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"&&Ot(da(wt.NOT_SUPPORTED_FORMATTER)),{interpolate(){return[]}}},set formatter(s){process.env.NODE_ENV!=="production"&&Ot(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"&&Ot(da(wt.NOT_SUPPORTED_PRESERVE_DIRECTIVE)),!0},set preserveDirectiveContent(s){process.env.NODE_ENV!=="production"&&Ot(da(wt.NOT_SUPPORTED_PRESERVE_DIRECTIVE))},get pluralizationRules(){return a.pluralRules||{}},__composer:a,t(...s){const[u,d,c]=s,g={};let _=null,h=null;if(!se(u))throw Vt(Je.INVALID_ARGUMENT);const F=u;return se(d)?g.locale=d:mt(d)?_=d:ve(d)&&(h=d),mt(c)?_=c:ve(c)&&(h=c),Reflect.apply(a.t,a,[F,_||h||{},g])},rt(...s){return Reflect.apply(a.rt,a,[...s])},tc(...s){const[u,d,c]=s,g={plural:1};let _=null,h=null;if(!se(u))throw Vt(Je.INVALID_ARGUMENT);const F=u;return se(d)?g.locale=d:qt(d)?g.plural=d:mt(d)?_=d:ve(d)&&(h=d),se(c)?g.locale=c:mt(c)?_=c:ve(c)&&(h=c),Reflect.apply(a.t,a,[F,_||h||{},g])},te(s,u){return a.te(s,u)},tm(s){return a.tm(s)},getLocaleMessage(s){return a.getLocaleMessage(s)},setLocaleMessage(s,u){a.setLocaleMessage(s,u)},mergeLocaleMessage(s,u){a.mergeLocaleMessage(s,u)},d(...s){return Reflect.apply(a.d,a,[...s])},getDateTimeFormat(s){return a.getDateTimeFormat(s)},setDateTimeFormat(s,u){a.setDateTimeFormat(s,u)},mergeDateTimeFormat(s,u){a.mergeDateTimeFormat(s,u)},n(...s){return Reflect.apply(a.n,a,[...s])},getNumberFormat(s){return a.getNumberFormat(s)},setNumberFormat(s,u){a.setNumberFormat(s,u)},mergeNumberFormat(s,u){a.mergeNumberFormat(s,u)},getChoiceIndex(s,u){return process.env.NODE_ENV!=="production"&&Ot(da(wt.NOT_SUPPORTED_GET_CHOICE_INDEX)),-1}};return r.__extender=i,process.env.NODE_ENV!=="production"&&(r.__enableEmitter=s=>{const u=a;u[Ii]&&u[Ii](s)},r.__disableEmitter=()=>{const s=a;s[yo]&&s[yo]()}),r}}const m1={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function vA({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 vm(e){return t.Fragment}const F1=t.defineComponent({name:"i18n-t",props:Zt({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>qt(e)||!isNaN(e)}},m1),setup(e,n){const{slots:a,attrs:i}=n,r=e.i18n||k1({useScope:e.scope,__useComponent:!0});return()=>{const s=Object.keys(a).filter(h=>h!=="_"),u=dt();e.locale&&(u.locale=e.locale),e.plural!==void 0&&(u.plural=se(e.plural)?+e.plural:e.plural);const d=vA(n,s),c=r[d1](e.keypath,d,u),g=Zt(dt(),i),_=se(e.tag)||Qe(e.tag)?e.tag:vm();return t.h(_,g,c)}}});function SA(e){return mt(e)&&!se(e[0])}function Sm(e,n,a,i){const{slots:r,attrs:s}=n;return()=>{const u={part:!0};let d=dt();e.locale&&(u.locale=e.locale),se(e.format)?u.key=e.format:Qe(e.format)&&(se(e.format.key)&&(u.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,u,d);let g=[u.key];mt(c)?g=c.map((F,p)=>{const b=r[F.type],w=b?b({[F.type]:F.value,index:p,parts:c}):[F.value];return SA(w)&&(w[0].key=`${F.type}-${p}`),w}):se(c)&&(g=[c]);const _=Zt(dt(),s),h=se(e.tag)||Qe(e.tag)?e.tag:vm();return t.h(h,_,g)}}const jm=t.defineComponent({name:"i18n-n",props:Zt({value:{type:Number,required:!0},format:{type:[String,Object]}},m1),setup(e,n){const a=e.i18n||k1({useScope:e.scope,__useComponent:!0});return Sm(e,n,hm,(...i)=>a[f1](...i))}}),qm=t.defineComponent({name:"i18n-d",props:Zt({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},m1),setup(e,n){const a=e.i18n||k1({useScope:e.scope,__useComponent:!0});return Sm(e,n,fm,(...i)=>a[c1](...i))}});function jA(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 qA(e){const n=u=>{const{instance:d,modifiers:c,value:g}=u;if(!d||!d.$)throw Vt(Je.UNEXPECTED_ERROR);const _=jA(e,d.$);process.env.NODE_ENV!=="production"&&c.preserve&&Ot(da(wt.NOT_SUPPORTED_PRESERVE));const h=Im(g);return[Reflect.apply(_.t,_,[...Nm(h)]),_]};return{created:(u,d)=>{const[c,g]=n(d);Ka&&e.global===g&&(u.__i18nWatcher=t.watch(g.locale,()=>{d.instance&&d.instance.$forceUpdate()})),u.__composer=g,u.textContent=c},unmounted:u=>{Ka&&u.__i18nWatcher&&(u.__i18nWatcher(),u.__i18nWatcher=void 0,delete u.__i18nWatcher),u.__composer&&(u.__composer=void 0,delete u.__composer)},beforeUpdate:(u,{value:d})=>{if(u.__composer){const c=u.__composer,g=Im(d);u.textContent=Reflect.apply(c.t,c,[...Nm(g)])}},getSSRProps:u=>{const[d]=n(u);return{textContent:d}}}}function Im(e){if(se(e))return{path:e};if(ve(e)){if(!("path"in e))throw Vt(Je.REQUIRED_VALUE,"path");return e}else throw Vt(Je.INVALID_VALUE)}function Nm(e){const{path:n,locale:a,args:i,choice:r,plural:s}=e,u={},d=i||{};return se(a)&&(u.locale=a),qt(r)&&(u.plural=r),qt(s)&&(u.plural=s),[n,d,u]}function IA(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&&Ot(da(wt.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:F1.name})),s&&([r?"i18n":F1.name,"I18nT"].forEach(u=>e.component(u,F1)),[jm.name,"I18nN"].forEach(u=>e.component(u,jm)),[qm.name,"I18nD"].forEach(u=>e.component(u,qm))),e.directive("t",qA(n))}const p1={"vue-devtools-plugin-vue-i18n":"Vue I18n devtools","vue-i18n-resource-inspector":"I18n Resources","vue-i18n-timeline":"Vue I18n"},NA={"vue-i18n-resource-inspector":"Search for scopes ..."},TA={"vue-i18n-timeline":16764185},Tm="vue-i18n: composer properties";let b1;async function OA(e,n){return new Promise((a,i)=>{try{kA({id:"vue-devtools-plugin-vue-i18n",label:p1["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:[Tm],app:e},r=>{b1=r,r.on.visitComponentTree(({componentInstance:u,treeNode:d})=>{MA(u,d,n)}),r.on.inspectComponent(({componentInstance:u,instanceData:d})=>{u.vnode.el&&u.vnode.el.__VUE_I18N__&&d&&(n.mode==="legacy"?u.vnode.el.__VUE_I18N__!==n.global.__composer&&Mm(d,u.vnode.el.__VUE_I18N__):Mm(d,u.vnode.el.__VUE_I18N__))}),r.addInspector({id:"vue-i18n-resource-inspector",label:p1["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:NA["vue-i18n-resource-inspector"]}),r.on.getInspectorTree(u=>{u.app===e&&u.inspectorId==="vue-i18n-resource-inspector"&&RA(u,n)});const s=new Map;r.on.getInspectorState(async u=>{if(u.app===e&&u.inspectorId==="vue-i18n-resource-inspector")if(r.unhighlightElement(),HA(u,n),u.nodeId==="global"){if(!s.has(u.app)){const[d]=await r.getComponentInstances(u.app);s.set(u.app,d)}r.highlightElement(s.get(u.app))}else{const d=UA(u.nodeId,n);d&&r.highlightElement(d)}}),r.on.editInspectorState(u=>{u.app===e&&u.inspectorId==="vue-i18n-resource-inspector"&&GA(u,n)}),r.addTimelineLayer({id:"vue-i18n-timeline",label:p1["vue-i18n-timeline"],color:TA["vue-i18n-timeline"]}),a(!0)})}catch(r){console.error(r),i(!1)}})}function Om(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function MA(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 (${Om(e)} Scope)`,textColor:0,backgroundColor:16764185};n.tags.push(r)}}function Mm(e,n){const a=Tm;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:y1(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 y1(e){const n={};return Object.keys(e).forEach(a=>{const i=e[a];ct(i)&&"source"in i?n[a]=VA(i):ja(i)&&i.loc&&i.loc.source?n[a]=i.loc.source:Qe(i)?n[a]=y1(i):n[a]=i}),n}const PA={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function LA(e){return e.replace(/[<>"&]/g,zA)}function zA(e){return PA[e]||e}function VA(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${LA(e.source)}")`:"(?)"}`}}}function RA(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:`${Om(i)} Scope`})}}function UA(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 Pm(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 HA(e,n){const a=Pm(e.nodeId,n);return a&&(e.state=YA(a)),null}function YA(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:y1(e.messages.value)}];n[r]=s;{const u="Datetime formats info",d=[{type:u,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];n[u]=d;const c="Datetime formats info",g=[{type:c,key:"numberFormats",editable:!1,value:e.numberFormats.value}];n[c]=g}return n}function wo(e,n){if(b1){let a;n&&"groupId"in n&&(a=n.groupId,delete n.groupId),b1.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 GA(e,n){const a=Pm(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 WA(e,n,a){return{beforeCreate(){const i=t.getCurrentInstance();if(!i)throw Vt(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=Lm(e,s);else{s.__injectWithOption=!0,s.__extender=a.__vueI18nExtend,this.$i18n=h1(s);const u=this.$i18n;u.__extender&&(u.__disposer=u.__extender(this.$i18n))}}else if(r.__i18n)if(this===this.$root)this.$i18n=Lm(e,r);else{this.$i18n=h1({__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&&Dm(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,u)=>this.$i18n.te(s,u),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=Z0();i.__enableEmitter&&i.__enableEmitter(r),r.on("*",wo)}},unmounted(){const i=t.getCurrentInstance();if(!i)throw Vt(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 Lm(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[ym](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 QA=pn("global-vue-i18n");function XA(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,[u,d]=KA(e,a),c=pn(process.env.NODE_ENV!=="production"?"vue-i18n":"");process.env.NODE_ENV!=="production"&&a&&r&&Ot(da(wt.NOTICE_DROP_ALLOW_COMPOSITION));function g(F){return s.get(F)||null}function _(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,...b){if(process.env.NODE_ENV!=="production"&&(p.__VUE_I18N__=F),p.__VUE_I18N_SYMBOL__=c,p.provide(p.__VUE_I18N_SYMBOL__,F),ve(b[0])){const T=b[0];F.__composerExtend=T.__composerExtend,F.__vueI18nExtend=T.__vueI18nExtend}let w=null;!a&&i&&(w=rB(p,F.global)),__VUE_I18N_FULL_INSTALL__&&IA(p,F,...b),__VUE_I18N_LEGACY_API__&&a&&p.mixin(WA(d,d.__composer,F));const E=p.unmount;if(p.unmount=()=>{w&&w(),F.dispose(),E()},process.env.NODE_ENV!=="production"){if(!await OA(p,F))throw Vt(Je.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const B=Z0();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(){u.stop()},__instances:s,__getInstance:g,__setInstance:_,__deleteInstance:h};return F}}function k1(e={}){const n=t.getCurrentInstance();if(n==null)throw Vt(Je.MUST_BE_CALL_SETUP_TOP);if(!n.isCE&&n.appContext.app!=null&&!n.appContext.app.__VUE_I18N_SYMBOL__)throw Vt(Je.NOT_INSTALLED);const a=ZA(n),i=$A(a),r=wm(n),s=JA(e,r);if(__VUE_I18N_LEGACY_API__&&a.mode==="legacy"&&!e.__useComponent){if(!a.allowComposition)throw Vt(Je.NOT_AVAILABLE_IN_LEGACY_MODE);return nB(n,s,i,e)}if(s==="global")return Dm(i,e,r),i;if(s==="parent"){let c=eB(a,n,e.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&Ot(da(wt.NOT_FOUND_PARENT_SCOPE)),c=i),c}const u=a;let d=u.__getInstance(n);if(d==null){const c=Zt({},e);"__i18n"in r&&(c.__i18n=r.__i18n),i&&(c.__root=i),d=_1(c),u.__composerExtend&&(d[g1]=u.__composerExtend(d)),aB(u,n,d),u.__setInstance(n,d)}return d}function KA(e,n,a){const i=t.effectScope();{const r=__VUE_I18N_LEGACY_API__&&n?i.run(()=>h1(e)):i.run(()=>_1(e));if(r==null)throw Vt(Je.UNEXPECTED_ERROR);return[i,r]}}function ZA(e){{const n=t.inject(e.isCE?QA:e.appContext.app.__VUE_I18N_SYMBOL__);if(!n)throw Vt(e.isCE?Je.NOT_INSTALLED_WITH_PROVIDE:Je.UNEXPECTED_ERROR);return n}}function JA(e,n){return Us(e)?"__i18n"in n?"local":"global":e.useScope?e.useScope:"local"}function $A(e){return e.mode==="composition"?e.global:e.global.__composer}function eB(e,n,a=!1){let i=null;const r=n.root;let s=tB(n,a);for(;s!=null;){const u=e;if(e.mode==="composition")i=u.__getInstance(s);else if(__VUE_I18N_LEGACY_API__){const d=u.__getInstance(s);d!=null&&(i=d.__composer,a&&i&&!i[km]&&(i=null))}if(i!=null||r===s)break;s=s.parent}return i}function tB(e,n=!1){return e==null?null:n&&e.vnode.ctx||e.parent}function aB(e,n,a){let i=null;t.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&n.vnode.el){n.vnode.el.__VUE_I18N__=a,i=Z0();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[g1];s&&(s(),delete r[g1])},n)}function nB(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 Vt(Je.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const u=Le(i.inheritLocale)?i.inheritLocale:!se(i.locale),d=t.ref(!r||u?a.locale.value:se(i.locale)?i.locale:br),c=t.ref(!r||u?a.fallbackLocale.value:se(i.fallbackLocale)||mt(i.fallbackLocale)||ve(i.fallbackLocale)||i.fallbackLocale===!1?i.fallbackLocale:d.value),g=t.ref($s(d.value,i)),_=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,b=r?a.fallbackRoot:Le(i.fallbackRoot)?i.fallbackRoot:!0,w=!!i.fallbackFormat,E=ct(i.missing)?i.missing:null,T=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:{},j=i.pluralRules||r&&a.pluralRules;function I(){return[d.value,c.value,g.value,_.value,h.value]}const P=t.computed({get:()=>s.value?s.value.locale.value:d.value,set:H=>{s.value&&(s.value.locale.value=H),d.value=H}}),q=t.computed({get:()=>s.value?s.value.fallbackLocale.value:c.value,set:H=>{s.value&&(s.value.fallbackLocale.value=H),c.value=H}}),M=t.computed(()=>s.value?s.value.messages.value:g.value),ne=t.computed(()=>_.value),fe=t.computed(()=>h.value);function Z(){return s.value?s.value.getPostTranslationHandler():T}function we(H){s.value&&s.value.setPostTranslationHandler(H)}function De(){return s.value?s.value.getMissingHandler():E}function be(H){s.value&&s.value.setMissingHandler(H)}function re(H){return I(),H()}function qe(...H){return s.value?re(()=>Reflect.apply(s.value.t,null,[...H])):re(()=>"")}function ee(...H){return s.value?Reflect.apply(s.value.rt,null,[...H]):""}function et(...H){return s.value?re(()=>Reflect.apply(s.value.d,null,[...H])):re(()=>"")}function xt(...H){return s.value?re(()=>Reflect.apply(s.value.n,null,[...H])):re(()=>"")}function st(H){return s.value?s.value.tm(H):{}}function At(H,ye){return s.value?s.value.te(H,ye):!1}function ft(H){return s.value?s.value.getLocaleMessage(H):{}}function _t(H,ye){s.value&&(s.value.setLocaleMessage(H,ye),g.value[H]=ye)}function vt(H,ye){s.value&&s.value.mergeLocaleMessage(H,ye)}function W(H){return s.value?s.value.getDateTimeFormat(H):{}}function te(H,ye){s.value&&(s.value.setDateTimeFormat(H,ye),_.value[H]=ye)}function le(H,ye){s.value&&s.value.mergeDateTimeFormat(H,ye)}function ie(H){return s.value?s.value.getNumberFormat(H):{}}function K(H,ye){s.value&&(s.value.setNumberFormat(H,ye),h.value[H]=ye)}function Se(H,ye){s.value&&s.value.mergeNumberFormat(H,ye)}const xe={get id(){return s.value?s.value.id:-1},locale:P,fallbackLocale:q,messages:M,datetimeFormats:ne,numberFormats:fe,get inheritLocale(){return s.value?s.value.inheritLocale:u},set inheritLocale(H){s.value&&(s.value.inheritLocale=H)},get availableLocales(){return s.value?s.value.availableLocales:Object.keys(g.value)},get modifiers(){return s.value?s.value.modifiers:A},get pluralRules(){return s.value?s.value.pluralRules:j},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:b},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:Z,setPostTranslationHandler:we,getMissingHandler:De,setMissingHandler:be,rt:ee,d:et,n:xt,tm:st,te:At,getLocaleMessage:ft,setLocaleMessage:_t,mergeLocaleMessage:vt,getDateTimeFormat:W,setDateTimeFormat:te,mergeDateTimeFormat:le,getNumberFormat:ie,setNumberFormat:K,mergeNumberFormat:Se};function Xe(H){H.locale.value=d.value,H.fallbackLocale.value=c.value,Object.keys(g.value).forEach(ye=>{H.mergeLocaleMessage(ye,g.value[ye])}),Object.keys(_.value).forEach(ye=>{H.mergeDateTimeFormat(ye,_.value[ye])}),Object.keys(h.value).forEach(ye=>{H.mergeNumberFormat(ye,h.value[ye])}),H.escapeParameter=D,H.fallbackFormat=w,H.fallbackRoot=b,H.fallbackWarn=p,H.missingWarn=F,H.warnHtmlMessage=B}return t.onBeforeMount(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw Vt(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,g.value=H.messages.value,_.value=H.datetimeFormats.value,h.value=H.numberFormats.value):r&&Xe(H)}),xe}const iB=["locale","fallbackLocale","availableLocales"],zm=["t","rt","d","n","tm","te"];function rB(e,n){const a=Object.create(null);return iB.forEach(r=>{const s=Object.getOwnPropertyDescriptor(n,r);if(!s)throw Vt(Je.UNEXPECTED_ERROR);const u=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,u)}),e.config.globalProperties.$i18n=a,zm.forEach(r=>{const s=Object.getOwnPropertyDescriptor(n,r);if(!s||!s.value)throw Vt(Je.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${r}`,s)}),()=>{delete e.config.globalProperties.$i18n,zm.forEach(r=>{delete e.config.globalProperties[`$${r}`]})}}if(DA(),__INTLIFY_JIT_COMPILATION__?Yh(lA):Yh(sA),JE(qE),$E(Vh),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=Ln();e.__INTLIFY__=!0,VE(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const oB={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"},sB={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"},Vm={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"},lB=Object.assign({en:oB,es:sB,"pt-br":Vm,"pt-BR":Vm}),Ni=XA({locale:"en",fallbackLocale:"en",messages:lB}),uB=["width","height"],wr=V(t.defineComponent({name:"UnnnicIconLoading",__name:"IconLoading",props:{scheme:{type:String,default:"fg-muted"},size:{type:String,default:"lg"}},setup(e){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,uB))],2))}}),[["__scopeId","data-v-0d2aa870"]]),dB=["disabled"],Dt=V(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),u=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),g=t.computed(()=>["primary","secondary","tertiary","warning","attention"].includes(c.value)),_=()=>{if(!d.value||!g.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)."),g.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,()=>{_()},{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:u.value,size:r.value,style:{position:"absolute"},"data-testid":"icon-loading"},null,8,["scheme","size"])):t.createCommentVNode("",!0),h.iconLeft?(t.openBlock(),t.createBlock(he,{key:1,icon:h.iconLeft,scheme:u.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(he,{key:2,icon:h.iconCenter,scheme:u.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(he,{key:4,icon:h.iconRight,scheme:u.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,dB))}}),[["__scopeId","data-v-d7396b6a"]]),cB={class:"month-container","data-testid":"date-picker-month-container"},fB=["onClick"],gB={class:"month-container","data-testid":"date-picker-month-container"},_B=["onClick"],hB={class:"month-container","data-testid":"date-picker-month-container"},mB=["onClick"],FB={key:3,class:"options-container","data-testid":"date-picker-options"},pB={key:0,class:"options"},bB=["onClick"],yB={class:"actions"},el=V(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=>({"98b98bce":D.value}));const i=e,r=a,s=new Date,u=t.ref(`${s.getMonth()+1} 1 ${s.getFullYear()}`),d=t.ref((i.initialStartDate||"").replace(/-/g," ")),c=t.ref((i.initialEndDate||"").replace(/-/g," ")),g=t.ref(""),_={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 te=((ie=(le=h==null?void 0:h.proxy)==null?void 0:le.$i18n)==null?void 0:ie.locale)||"en-us";return String(te).toLowerCase()}),p=t.computed(()=>{const W=i.months||[];return W.length?W:AC[F.value]}),b=t.computed(()=>{const W=i.days||[];return W.length?W:BC[F.value]}),w=t.computed(()=>{const W=i.options||[];return W.length?W:xC[F.value]}),E=t.computed(()=>i.clearLabel||Rs[F.value].clear),T=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[te,le]=W,ie=Object.keys(Ni.global.messages||{});let K=i.locale;const Se=Kt.get(Ni,"global.locale")==="en-us"?"en":Kt.get(Ni,"global.locale");K=K&&ie.includes(K)?K:Se,K=K==null?void 0:K.toLowerCase();let xe=Kt.get(i.translations,`${te}.${K}`,Kt.get(i.translations,te));if(xe||(xe=Kt.get(_,`${te}.${K}`,Kt.get(_,te,le))),xe!=null&&xe.includes("|")&&typeof W[1]=="number"){const H=W[1],ye=xe.split("|");ye.length===3?xe=ye[H]||ye[2]:ye.length===2&&(xe=H===1?ye[0]:ye[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:g,referenceDate:u,autoSelect:At,dateToString:j,getStartAndEndDateByPeriod:st,getDatesOfTheMonth:re});function j(W){return`${W.getMonth()+1} ${W.getDate()} ${W.getFullYear()}`}function I(W){return`${W.getMonth()+1} ${W.getFullYear()}`}function P(W){return W.getFullYear()}function q(W){const[te,le,ie]=W.split(" ");return new Date(Number(ie),Number(te)-1,Number(le)).getTime()}function M(W){return W.toString().split(" ")[1]}function ne(W){return Number(W.toString().split(" ")[0])}function fe(W){const[te,le,ie]=W.split(" ");return new Date(Number(ie),Number(te)-1,Number(le)).getFullYear()}function Z(W,te){const[le,ie,K]=W.split(" "),Se=new Date(Number(K),Number(le)-1,Number(ie));return Se.setMonth(Se.getMonth()+te),j(Se)}function we(W){if(d.value&&c.value){if(W>=q(d.value)&&W<=q(c.value))return!0}else{if(d.value&&W>=q(d.value))return!0;if(c.value&&W<=q(c.value))return!0}return!1}function De(W){if(d.value&&c.value){const te=q(d.value),le=q(c.value);return W>=te&&W<=le}if(d.value){const te=q(d.value);return W>=te}if(c.value){const te=q(c.value);return W<=te}return!1}function be(W){if(d.value&&c.value){const te=q(d.value),le=q(c.value);return W>=te&&W<=le}if(d.value){const te=q(d.value);return W>=te}if(c.value){const te=q(c.value);return W<=te}return!1}function re(W){const[te,le,ie]=W.split(" "),K=new Date(Number(ie),Number(te)-1,Number(le)),Se=K.getMonth(),xe=86400;K.setDate(1-K.getDay());const Xe=[];for(let H=0;H<6*7;H+=1){const ye=j(K),rt=[];if(i.minDate){const[$e,_e,ze]=i.minDate.split("-"),x=new Date(Number($e),Number(_e)-1,Number(ze));K<x&&rt.push("out of range")}if(i.maxDate){const[$e,_e,ze]=i.maxDate.split("-"),x=new Date(Number($e),Number(_e)-1,Number(ze));K>x&&rt.push("out of range")}if(Se===K.getMonth()){rt.push("inside month");const $e=q(j(K)),_e=$e-xe,ze=$e+xe;we($e)&&(rt.push("selected"),we(_e)||rt.push("left-highlighted"),we(ze)||rt.push("right-highlighted"),(rt.includes("left-highlighted")||rt.includes("right-highlighted"))&&rt.push("highlighted"))}j(K)===j(new Date)&&rt.push("today"),Xe.push({properties:rt,toString:()=>ye}),K.setDate(K.getDate()+1)}return Xe}function qe(W){const[te,le,ie]=W.split(" "),K=new Date(Number(ie),Number(te)-1,Number(le));K.setMonth(0);const Se=[];for(let xe=0;xe<3*4;xe+=1){const Xe=j(K),H=[];H.push("inside month");const ye=q(j(K)),rt=new Date(ye),$e=new Date(ye);rt.setMonth(rt.getMonth()-1),$e.setMonth($e.getMonth()+1);const _e=rt.getTime(),ze=$e.getTime();De(ye)&&(H.push("selected"),De(_e)||H.push("left-highlighted"),De(ze)||H.push("right-highlighted"),(H.includes("left-highlighted")||H.includes("right-highlighted"))&&H.push("highlighted")),I(K)===I(new Date)&&H.push("today"),Se.push({properties:H,date:Xe,toString:()=>Xe}),K.setMonth(K.getMonth()+1)}return Se}function ee(W){const[te,le,ie]=W.split(" "),K=new Date(Number(ie),Number(te)-1,Number(le));K.setMonth(0);const Se=[];for(let xe=0;xe<3*4;xe+=1){const Xe=j(K),H=[];H.push("inside month");const ye=q(j(K)),[rt,$e,_e]=W.split(" "),ze=new Date(Number(_e),Number(rt)-1,Number($e)),x=new Date(Number(_e),Number(rt)-1,Number($e));ze.setMonth(ze.getMonth()-12),x.setMonth(x.getMonth()+12);const N=ze.getTime(),Y=x.getTime();be(ye)&&(H.push("selected"),be(N)||H.push("left-highlighted"),be(Y)||H.push("right-highlighted"),(H.includes("left-highlighted")||H.includes("right-highlighted"))&&H.push("highlighted")),P(K)===P(new Date)&&H.push("today"),Se.push({properties:H,date:K.getFullYear(),toString:()=>Xe}),K.setFullYear(K.getFullYear()+1)}return Se}function et(W){if(!d.value||!c.value)d.value=W.toString(),c.value=d.value;else{const te=q(W.toString()),le=q(d.value),ie=q(c.value);le!==ie?(d.value=W.toString(),c.value=d.value):te>ie?c.value=W.toString():te<le?d.value=W.toString():te===le||te===ie?(d.value=W.toString(),c.value=d.value):te-le<ie-te?d.value=W.toString():c.value=W.toString()}}function xt(){d.value="",c.value="",g.value=""}function st(W){let te,le,ie;if(i.periodBaseDate){const Xe=i.periodBaseDate.split("-");if(Xe.length===3){const[H,ye,rt]=Xe;ie=new Date(Number(H),Number(ye)-1,Number(rt))}else{const H=new Date(i.periodBaseDate);ie=Number.isNaN(H.getTime())?new Date:H}}else ie=new Date;const K=new Date(ie.getTime()),Se=W.match(/^last-(\d+)-days$/),xe=W.match(/^last-(\d+)-months$/);if(Se){const Xe=Number(Se[1]);le=j(K),K.setDate(K.getDate()-Xe+1),te=j(K)}else if(xe){const Xe=Number(xe[1]);le=j(K),K.setDate(K.getDate()+1),K.setMonth(K.getMonth()-Xe),te=j(K)}else if(W==="current-month"){const Xe=ie.getDate();K.setDate(1),te=j(K),K.setDate(Xe),le=j(K)}else W==="previous-month"&&(K.setDate(1),K.setMonth(K.getMonth()-1),te=j(K),K.setMonth(K.getMonth()+1),K.setDate(0),le=j(K));return{startDate:te,endDate:le}}function At(W){const{startDate:te,endDate:le}=st(W);if(d.value=te||"",c.value=le||"",c.value){const ie=Z(u.value,1),K=`${Number(ne({toString:()=>c.value}))} 1 ${fe(c.value)}`;[u.value,ie].includes(K)||(u.value=K)}t.nextTick(()=>{g.value=W})}function ft(){if(r("submit",B.value),g.value==="custom")r("update:equivalentOption","");else{const W=w.value.find(({id:te})=>te===g.value);r("update:equivalentOption",(W==null?void 0:W.name)||"")}}function _t(){const{startDate:W,endDate:te}=B.value,le=(K,Se)=>!K||!Se?!1:new Date(K).getTime()===new Date(Se).getTime(),ie=w.value.find(({id:K})=>{const{startDate:Se,endDate:xe}=st(K);return le(W,Se)&&le(te,xe)});g.value=W||te?ie?ie.id:"custom":""}const vt=t.computed(()=>[Z(u.value,-1),u.value]);return t.watch(B,W=>{_t(),r("change",W)}),t.onMounted(()=>{_t()}),(W,te)=>(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(vt.value,(le,ie)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:le},[t.createElementVNode("div",cB,[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(K=>u.value=Z(u.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(ne(le))-1])+" "+t.toDisplayString(fe(le)),3)],2),t.createElementVNode("div",{class:t.normalizeClass(["days",`days--${W.size}`])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(b.value,(K,Se)=>(t.openBlock(),t.createElementBlock("div",{key:Se,class:"name"},t.toDisplayString(K),1))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(re(le),(K,Se)=>(t.openBlock(),t.createElementBlock("div",{key:`${le}-${Se}`,class:t.normalizeClass({disabled:!K.properties.includes("inside month")||K.properties.includes("out of range"),selectable:K.properties.includes("inside month")&&!K.properties.includes("out of range"),today:K.properties.includes("today"),selected:K.properties.includes("selected"),highlighted:K.properties.includes("highlighted"),left:K.properties.includes("left-highlighted"),right:K.properties.includes("right-highlighted")}),"data-testid":"date-picker-day",onClick:xe=>K.properties.includes("inside month")&&!K.properties.includes("out of range")&&et(K)},t.toDisplayString(M(K)),11,fB))),128))],2)]),te[4]||(te[4]=t.createElementVNode("div",{class:"divider"},null,-1))],64))),128)):W.type==="month"?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList([u.value],le=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:le},[t.createElementVNode("div",gB,[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:te[0]||(te[0]=ie=>u.value=Z(u.value,-12))},null,8,["type"]),t.createElementVNode("div",{class:t.normalizeClass(["label",`label--${W.size}`])},t.toDisplayString(fe(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:te[1]||(te[1]=ie=>u.value=Z(u.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,K)=>(t.openBlock(),t.createElementBlock("div",{key:`${le}-${K}`,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[ne(ie)-1].substr(0,3)),11,_B))),128))],2)]),te[5]||(te[5]=t.createElementVNode("div",{class:"divider"},null,-1))],64))),128)):W.type==="year"?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:2},t.renderList([u.value],le=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:le},[t.createElementVNode("div",hB,[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:te[2]||(te[2]=ie=>u.value=Z(u.value,-12*12))},null,8,["type"]),t.createElementVNode("div",{class:t.normalizeClass(["label",`label--${W.size}`])},t.toDisplayString(fe(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:te[3]||(te[3]=ie=>u.value=Z(u.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(ee(le),(ie,K)=>(t.openBlock(),t.createElementBlock("div",{key:`${le}-${K}`,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,mB))),128))],2)]),te[6]||(te[6]=t.createElementVNode("div",{class:"divider"},null,-1))],64))),128)):t.createCommentVNode("",!0),W.size!=="small"?(t.openBlock(),t.createElementBlock("div",FB,[W.hideOptions?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",pB,[(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:g.value===le.id}]),"data-testid":"date-picker-option",onClick:K=>le.id==="custom"?null:At(le.id)},t.toDisplayString(le.name),11,bB))),128))])),t.createElementVNode("div",yB,[W.disableClear?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(Dt,{key:0,size:"small",text:E.value,type:"tertiary","data-testid":"date-picker-clear",onClick:xt},null,8,["text"])),t.createVNode(Dt,{size:"small",text:T.value,type:"secondary","data-testid":"date-picker-submit",onClick:ft},null,8,["text"])])])):t.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-a1579a66"]]),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,u)=>(t.openBlock(),t.createBlock(t.unref(i6),t.normalizeProps(t.guardReactiveProps(t.unref(r))),{default:t.withCtx(()=>[t.renderSlot(s.$slots,"default")]),_:3},16))}}),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),u=t.useSlots(),d=ir(),c=gs(),g=p=>{const b=p.type;return(b==null?void 0:b.name)||(b==null?void 0:b.__name)},_=t.computed(()=>{var b;return(((b=u.default)==null?void 0:b.call(u))||[]).filter(w=>g(w)!=="UnnnicPopoverFooter")}),h=t.computed(()=>{var b;return(((b=u.default)==null?void 0:b.call(u))||[]).filter(w=>g(w)==="UnnnicPopoverFooter")}),F=t.computed(()=>a.width?a.width:{small:"240px",medium:"320px",large:"400px"}[a.size]);return(p,b)=>(t.openBlock(),t.createBlock(t.unref(g6),{to:t.unref(c)},{default:t.withCtx(()=>[t.createVNode(t.unref(c6),t.mergeProps({...t.unref(s),...p.$attrs},{style:{width:F.value,zIndex:t.unref(d)},class:t.unref(Qt)("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.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(_.value,(w,E)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(w),{key:E}))),128))],2),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(h.value,(w,E)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(w),{key:E}))),128))]),_:1},16,["style","class"])]),_:1},8,["to"]))}}),kB={class:"unnnic-popover__footer"},w1=t.defineComponent({name:"UnnnicPopoverFooter",__name:"PopoverFooter",setup(e){return(n,a)=>(t.openBlock(),t.createElementBlock("footer",kB,[t.renderSlot(n.$slots,"default")]))}}),Er=V(t.defineComponent({__name:"PopoverTrigger",props:{asChild:{type:Boolean},as:{}},setup(e){const n=e;return(a,i)=>(t.openBlock(),t.createBlock(t.unref(h6),t.mergeProps(n,{class:"unnnic-popover-trigger"}),{default:t.withCtx(()=>[t.renderSlot(a.$slots,"default",{},void 0,!0)]),_:3},16))}}),[["__scopeId","data-v-df136255"]]),tl=V(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.computed(()=>n.active?"fg-on-primary":n.disabled?"fg-muted":n.scheme);return(i,r)=>(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}])},[n.icon?(t.openBlock(),t.createBlock(he,{key:0,icon:n.icon,scheme:a.value,size:"ant"},null,8,["icon","scheme"])):t.createCommentVNode("",!0),t.createElementVNode("p",{class:t.normalizeClass(["unnnic-popover-option__label",`unnnic-popover-option__label--${a.value}`,`unnnic-popover-option--disabled: ${n.disabled}`])},t.toDisplayString(n.label),3)],2))}}),[["__scopeId","data-v-214e96e8"]]),D1=V(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=e,i=n,r=t.ref(!1),s=t.ref(""),u=t.computed(()=>a.position==="right"?"end":"start"),d=t.computed(()=>a.disableShowOverwrittenValue?c.value||"":s.value||c.value||""),c=t.computed(()=>{const b=[],{start:w,end:E}=a.modelValue||{};return w&&b.push(oe(w,a.format).format(a.inputFormat||"")),E&&b.push(oe(E,a.format).format(a.inputFormat||"")),b.length?b.join(" ~ "):String(a.inputFormat||"").replaceAll("-","/").toLowerCase()}),g=t.computed(()=>a.modelValue.start?oe(a.modelValue.start,a.format).format("MM DD YYYY"):void 0),_=t.computed(()=>a.modelValue.end?oe(a.modelValue.end,a.format).format("MM DD YYYY"):void 0);function h(b){const{startDate:w,endDate:E}=b,T={start:oe(w,"MM-DD-YYYY").format(a.format),end:oe(E,"MM-DD-YYYY").format(a.format)};i("selectDate",T)}function F(b){const w=b.startDate.replace(/(\d+)-(\d+)-(\d+)/,"$3-$1-$2"),E=b.endDate.replace(/(\d+)-(\d+)-(\d+)/,"$3-$1-$2");r.value=!1,i("update:model-value",{start:w?oe(w,"YYYY-MM-DD").format(a.format):null,end:E?oe(E,"YYYY-MM-DD").format(a.format):null})}function p(){r.value=!0}return(b,w)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["dropdown",{"fill-w":b.fillW}])},[t.createVNode(t.unref(Dr),{open:r.value,"onUpdate:open":w[1]||(w[1]=E=>r.value=E)},{default:t.withCtx(()=>[t.createVNode(t.unref(Er),{asChild:!0},{default:t.withCtx(()=>[t.createVNode(gn,{"data-testid":"input",class:t.normalizeClass(["input",{"date-picker-input-next":b.next}]),size:b.size,iconLeft:b.iconPosition==="left"?"calendar_month":void 0,iconRight:b.iconPosition==="right"?"calendar_month":void 0,readonly:"",modelValue:d.value,disabled:b.disabled,onClick:p,onFocus:p},null,8,["class","size","iconLeft","iconRight","modelValue","disabled"])]),_:1}),t.createVNode(t.unref(Cr),{width:"auto",side:"bottom",align:u.value,class:"date-picker-popover-content"},{default:t.withCtx(()=>[t.createVNode(el,{equivalentOption:s.value,"onUpdate:equivalentOption":w[0]||(w[0]=E=>s.value=E),"data-testid":"date-picker",variant:"popover",type:b.type,clearLabel:b.clearText,actionLabel:b.actionText,months:b.months,days:b.days,options:b.options,periodBaseDate:b.periodBaseDate,initialStartDate:g.value,initialEndDate:_.value,minDate:b.minDate,maxDate:b.maxDate,disableClear:b.disableClear,hideOptions:b.hideOptions,onChange:h,onSubmit:F},null,8,["equivalentOption","type","clearLabel","actionLabel","months","days","options","periodBaseDate","initialStartDate","initialEndDate","minDate","maxDate","disableClear","hideOptions"])]),_:1},8,["align"])]),_:1},8,["open"])],2))}}),[["__scopeId","data-v-6f66c34f"]]),wB={components:{UnnnicIcon:he},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 DB(e,n,a,i,r,s){const u=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createElementBlock("button",t.mergeProps({class:["button-icon",a.size,a.type]},e.$attrs),[t.createVNode(u,{icon:a.icon,scheme:s.iconScheme,size:"ant"},null,8,["icon","scheme"])],16)}const C1=V(wB,[["render",DB],["__scopeId","data-v-07258e26"]]),E1=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(E1),!0},CB=e=>{if(!(e!=null&&e[0]))throw new Error("Items property cannot be an empty array.");return e.forEach(E1),!0},EB=["title"],AB={key:0,class:"unnnic-sidebar-item-children"},BB=["onClick"],xB=["title"],al=V(Object.assign({name:"UnnnicSidebarItem"},{props:{item:{type:Object,required:!0,validator:E1},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:_,item:h}=a.active;typeof _=="number"&&_>=0&&h&&s()});const i=t.computed(()=>{var _;return!!((_=a.item.children)!=null&&_.length)}),r=t.ref(!1),s=()=>{r.value=!r.value,r.value&&a.autoNavigateFirstChild&&g("navigate",{item:a.item,child:a.item.children[0]})},u=_=>{const{item:h,childIndex:F}=a.active;return typeof F!="number"?h:h&&F===_},d=()=>{i.value?s():c()},c=()=>{a.active.item||g("navigate",{item:a.item,child:null})},g=n;return(_,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(he,{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,EB),(F=e.item.children)!=null&&F.length?(t.openBlock(),t.createBlock(he,{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",AB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.item.children,(p,b)=>(t.openBlock(),t.createElementBlock("li",{key:p,class:t.normalizeClass({"unnnic-sidebar-item-child":!0,active:u(b)}),"data-testid":"sidebar-item-child",onClick:t.withModifiers(w=>!u(b)&&g("navigate",{item:e.item,child:p}),["stop"])},[p.icon?(t.openBlock(),t.createBlock(he,{key:0,class:"unnnic-sidebar-item-child__icon",icon:p.icon,size:"ant",scheme:u(b)?"fg-accent":"fg-base"},null,8,["icon","scheme"])):t.createCommentVNode("",!0),t.createElementVNode("p",{class:t.normalizeClass({"unnnic-sidebar-item-child__label":!0,active:u(b)}),title:p.label},t.toDisplayString(p.label),11,xB)],10,BB))),128))])):t.createCommentVNode("",!0)]),_:1})],64)}}}),[["__scopeId","data-v-6c66c728"]]),vB={class:"unnnic-sidebar-items"},A1=V(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:CB},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:u})=>{i("navigate",{item:s,child:u})};return(s,u)=>(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",vB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(d,c)=>(t.openBlock(),t.createElementBlock("li",{key:d},[t.createVNode(al,{item:d,active:{item:e.active.itemIndex===c,childIndex:e.active.childIndex},autoNavigateFirstChild:e.autoNavigateFirstChild,"data-testid":"sidebar-item",onNavigate:u[0]||(u[0]=g=>r(g))},null,8,["item","active","autoNavigateFirstChild"])]))),128))]),t.renderSlot(s.$slots,"bottom",{class:"unnnic-sidebar-bottom"},void 0,!0)],2))}}),[["__scopeId","data-v-df7cccc8"]]),SB={name:"UnnnicTable",components:{},props:{items:{type:Array}},data(){return{value:!1}},computed:{}},jB={class:"unnnic-table"},qB={class:"header"},IB={class:"scroll"};function NB(e,n,a,i,r,s){return t.withDirectives((t.openBlock(),t.createElementBlock("div",jB,[t.createElementVNode("div",qB,[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",IB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.items,(u,d)=>(t.openBlock(),t.createElementBlock("div",{key:d,class:"item"},[t.renderSlot(e.$slots,"item",{item:u},void 0,!0)]))),128))])],512)),[[t.vShow,!0]])}const B1=V(SB,[["render",NB],["__scopeId","data-v-60422fd1"]]),TB={name:"UnnnicTableRow",props:{headers:{type:Array}},data(){return{}}},OB={class:"table-row"},MB={class:"break-text"};function PB(e,n,a,i,r,s){return t.openBlock(),t.createElementBlock("div",OB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.headers,(u,d)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:u.id},[t.createElementVNode("div",{class:"col",style:t.normalizeStyle({width:u.width,flex:u.flex,minWidth:0})},[t.renderSlot(e.$slots,u.id,{},()=>[t.createElementVNode("div",MB,t.toDisplayString(u.text),1)],!0)],4),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(["divider",{condensed:u.condensed}])},null,2),[[t.vShow,d+1!==a.headers.length]])],64))),128))])}const x1=V(TB,[["render",PB],["__scopeId","data-v-e163e6dd"]]);function Rm(e){return t.getCurrentScope()?(t.onScopeDispose(e),!0):!1}function Do(e){return typeof e=="function"?e():t.unref(e)}const Um=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const LB=Object.prototype.toString,zB=e=>LB.call(e)==="[object Object]",Co=()=>{},v1=VB();function VB(){var e,n;return Um&&((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 Hm={mounted:"mounted",unmounted:"unmounted"};function RB(...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 Ym=Um?window:void 0;function nl(...e){let n,a,i,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([a,i,r]=e,n=Ym):[n,a,i,r]=e,!n)return Co;Array.isArray(a)||(a=[a]),Array.isArray(i)||(i=[i]);const s=[],u=()=>{s.forEach(_=>_()),s.length=0},d=(_,h,F,p)=>(_.addEventListener(h,F,p),()=>_.removeEventListener(h,F,p)),c=t.watch(()=>[Eo(n),Do(r)],([_,h])=>{if(u(),!_)return;const F=zB(h)?{...h}:h;s.push(...a.flatMap(p=>i.map(b=>d(_,p,b,F))))},{immediate:!0,flush:"post"}),g=()=>{c(),u()};return Rm(g),g}let Gm=!1;function Wm(e,n,a={}){const{window:i=Ym,ignore:r=[],capture:s=!0,detectIframe:u=!1}=a;if(!i)return Co;v1&&!Gm&&(Gm=!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(b=>b===F.target||F.composedPath().includes(b));{const b=Eo(p);return b&&(F.target===b||F.composedPath().includes(b))}}),_=[nl(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}),nl(i,"pointerdown",F=>{const p=Eo(e);d=!c(F)&&!!(p&&!F.composedPath().includes(p))},{passive:!0}),u&&nl(i,"blur",F=>{setTimeout(()=>{var p;const b=Eo(e);((p=i.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!(b!=null&&b.contains(i.document.activeElement))&&n(F)},0)})].filter(Boolean);return()=>_.forEach(F=>F())}const il={[Hm.mounted](e,n){const a=!n.modifiers.bubble;if(typeof n.value=="function")e.__onClickOutside_stop=Wm(e,n.value,{capture:a});else{const[i,r]=n.value;e.__onClickOutside_stop=Wm(e,i,Object.assign({capture:a},r))}},[Hm.unmounted](e){e.__onClickOutside_stop()}};function S1(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function Qm(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:Qm(a)}}function UB(e){const n=e||window.event,a=n.target;return Qm(a)?!1:n.touches.length>1?!0:(n.preventDefault&&n.preventDefault(),!1)}const j1=new WeakMap;function HB(e,n=!1){const a=t.ref(n);let i=null,r="";t.watch(RB(e),d=>{const c=S1(Do(d));if(c){const g=c;if(j1.get(g)||j1.set(g,g.style.overflow),g.style.overflow!=="hidden"&&(r=g.style.overflow),g.style.overflow==="hidden")return a.value=!0;if(a.value)return g.style.overflow="hidden"}},{immediate:!0});const s=()=>{const d=S1(Do(e));!d||a.value||(v1&&(i=nl(d,"touchmove",c=>{UB(c)},{passive:!1})),d.style.overflow="hidden",a.value=!0)},u=()=>{const d=S1(Do(e));!d||!a.value||(v1&&(i==null||i()),d.style.overflow=r,j1.delete(d),a.value=!1)};return Rm(u),t.computed({get(){return a.value},set(d){d?s():u()}})}function YB(){let e=!1;const n=t.ref(!1);return(a,i)=>{if(n.value=i.value,e)return;e=!0;const r=HB(a,i.value);t.watch(n,s=>r.value=s)}}YB();const GB={name:"UnnnicDropdown",directives:{onClickOutside:il},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)}}}},WB={class:"unnnic-dropdown__trigger"};function QB(e,n,a,i,r,s){const u=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",WB,[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)),[[u,s.onClickOutside]]):t.createCommentVNode("",!0)])])}const Ao=V(GB,[["render",QB],["__scopeId","data-v-2f5344c2"]]),XB={name:"UnnnicDropdownItem"},KB={class:"unnnic-dropdown-item unnnic--clickable","data-testid":"dropdown-item"};function ZB(e,n,a,i,r,s){return t.openBlock(),t.createElementBlock("a",KB,[t.renderSlot(e.$slots,"default")])}const rl=V(XB,[["render",ZB]]),JB={components:{UnnnicIcon:he},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 $B(e,n,a,i,r,s){const u=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(u,{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=V(JB,[["render",$B],["__scopeId","data-v-0522f602"]]),ex={name:"UnnnicCard",components:{UnnnicIcon:he,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"}}},tx={class:"unnnic-card-dash"},ax={class:"header"},nx={class:"label"},ix={class:"content"},rx={class:"value"},ox={class:"label"};function sx(e,n,a,i,r,s){const u=t.resolveComponent("UnnnicAvatarIcon"),d=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createElementBlock("div",tx,[t.createElementVNode("div",ax,[t.createVNode(u,{size:"sm",scheme:a.scheme,icon:a.icon},null,8,["scheme","icon"]),t.createElementVNode("div",nx,t.toDisplayString(a.title),1)]),t.createElementVNode("div",ix,[t.createElementVNode("div",rx,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",ox,t.toDisplayString(a.percent>=0?`+${a.percent}%`:`${a.percent}%`),1)],2)):t.createCommentVNode("",!0)])])}const lx=V(ex,[["render",sx],["__scopeId","data-v-32f9b938"]]),ux={name:"UnnnicCard",components:{ToolTip:Xt,UnnnicIcon:he},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}}},dx={class:"unnnic-card-title"},cx={class:"title"};function fx(e,n,a,i,r,s){const u=t.resolveComponent("UnnnicIcon"),d=t.resolveComponent("ToolTip");return t.openBlock(),t.createElementBlock("div",dx,[t.createElementVNode("div",{class:t.normalizeClass(["avatar-icon",`unnnic-card-scheme--${a.scheme}`])},[t.createVNode(u,{icon:a.icon,scheme:a.scheme,size:"md"},null,8,["icon","scheme"])],2),t.createElementVNode("div",cx,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(u,{icon:"information-circle-4",class:"unnnic-card-title__content_info",size:"sm",scheme:"fg-muted"})]),_:1},8,["side","text","enabled"])):t.createCommentVNode("",!0)])}const Xm=V(ux,[["render",fx],["__scopeId","data-v-ff5285fa"]]),gx={name:"UnnnicCard",components:{UnnnicIcon:he},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}}},_x={class:"header"},hx={class:"label"},mx={class:"content"},Fx={class:"title-container"},px={class:"title"},bx={class:"description"};function yx(e,n,a,i,r,s){const u=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["unnnic-card-status",`unnnic-card-scheme--${a.scheme}--border`])},[t.createElementVNode("div",_x,[t.createVNode(u,{icon:a.icon,scheme:"fg-base",size:"md",class:"icon"},null,8,["icon"]),t.createElementVNode("div",hx,t.toDisplayString(a.title),1)]),t.createElementVNode("div",mx,[t.createElementVNode("div",Fx,[t.createVNode(u,{icon:"indicator",scheme:a.scheme,size:"sm"},null,8,["scheme"]),t.createElementVNode("div",px,t.toDisplayString(a.status),1)]),t.createElementVNode("div",bx,t.toDisplayString(a.description),1)])],2)}const kx=V(gx,[["render",yx],["__scopeId","data-v-784b6871"]]),wx={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}}},Dx={class:"icon"},Cx={class:"content"},Ex={class:"title"},Ax={class:"description"};function Bx(e,n,a,i,r,s){const u=t.resolveComponent("UnnnicAvatarIcon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass({"unnnic-card-account":!0,enabled:a.enabled})},[t.createElementVNode("div",Dx,[t.createVNode(u,{size:"xs",scheme:a.scheme,icon:a.icon,enabled:a.enabled},null,8,["scheme","icon","enabled"])]),t.createElementVNode("div",Cx,[t.createElementVNode("div",Ex,t.toDisplayString(a.title),1),t.createElementVNode("div",Ax,t.toDisplayString(a.description),1)])],2)}const xx=V(wx,[["render",Bx],["__scopeId","data-v-cd0328b9"]]),vx={name:"UnnnicCard",props:{title:{type:String,default:null},description:{type:String,default:null},clickable:{type:Boolean,default:!1}}},Sx={class:"unnnic-card-default__content"},jx={class:"unnnic-card-default__title"},qx=["title"];function Ix(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",Sx,[t.createElementVNode("div",jx,t.toDisplayString(a.title),1),t.createElementVNode("p",{class:"unnnic-card-default__description",title:a.description},t.toDisplayString(a.description),9,qx)])],2)}const Nx=V(vx,[["render",Ix]]),Tx={name:"UnnnicCard",components:{UnnnicIcon:he},props:{text:{type:String,default:null},icon:{type:String,default:null},clickable:{type:Boolean,default:!1}}},Ox={class:"unnnic-card-blank__content"},Mx={class:"unnnic-card-blank__content__text"};function Px(e,n,a,i,r,s){const u=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",Ox,[t.createVNode(u,{icon:a.icon,scheme:"fg-base",class:"unnnic-card-blank__content__icon",size:"xl"},null,8,["icon"]),t.createElementVNode("div",Mx,t.toDisplayString(a.text),1)])],2)}const Lx=V(Tx,[["render",Px]]),zx={name:"UnnnicCard",components:{UnnnicIcon:he},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}}},Vx={class:"unnnic-card-content__content"},Rx={class:"unnnic-card-content__content__title"},Ux={class:"unnnic-card-content__content__description"};function Hx(e,n,a,i,r,s){const u=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(u,{icon:a.icon,scheme:"fg-base",size:"sm"},null,8,["icon"])],2),t.createElementVNode("div",Vx,[t.createElementVNode("div",Rx,t.toDisplayString(a.title),1),t.createElementVNode("div",Ux,t.toDisplayString(a.description),1)])],2)}const Yx=V(zx,[["render",Hx]]),Gx={name:"UnnnicCard",components:{UnnnicIcon:he},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")}}},Wx={class:t.normalizeClass(["unnnic-card-marketplace__icons"])},Qx=["src"],Xx={class:"unnnic-card-marketplace__content"},Kx={class:"unnnic-card-marketplace__content__title"},Zx=["title"],Jx={key:0,class:"unnnic-card-marketplace__content__rating"},$x={class:"unnnic-card-marketplace__content__rating__value"},ev={class:"unnnic-card-marketplace__content__rating__comments"};function tv(e,n,a,i,r,s){const u=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",Wx,[t.createElementVNode("img",{class:"unnnic-card-marketplace__icons__app",src:a.iconSrc},null,8,Qx),t.renderSlot(e.$slots,"actions")]),t.createElementVNode("div",Xx,[t.createElementVNode("div",Kx,t.toDisplayString(a.title),1),t.createElementVNode("div",{class:"unnnic-card-marketplace__content__description",title:a.description},t.toDisplayString(a.description),9,Zx),a.typeAction==="add"?(t.openBlock(),t.createElementBlock("div",Jx,[t.createVNode(u,{class:"unnnic-card-marketplace__content__rating__star",scheme:"feedback-yellow",icon:"rating-star-1",size:"ant",filled:""}),t.createElementVNode("div",$x,t.toDisplayString(a.rating),1),t.createElementVNode("div",ev," ("+t.toDisplayString(a.comments)+") ",1)])):t.createCommentVNode("",!0)])],2)}const av=V(Gx,[["render",tv]]),nv={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"?Xm:this.type==="dash"?lx:this.type==="status"?kx:this.type==="account"?xx:this.type==="default"?Nx:this.type==="blank"?Lx:this.type==="content"?Yx:this.type==="marketplace"?av:Xm}},methods:{openModal(){this.$emit("openModal")}}};function iv(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,(u,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 q1=V(nv,[["render",iv]]),I1={name:"UnnnicSimpleCard",components:{UnnnicToolTip:Xt,UnnnicIcon:he},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"]},Km=()=>{t.useCssVars(e=>({"503b66d5":e.titleSize}))},Zm=I1.setup;I1.setup=Zm?(e,n)=>(Km(),Zm(e,n)):Km;const rv={key:0,class:"unnnic-simple-card__header"},ov={class:"unnnic-simple-card-header-container"},sv={class:"unnnic-simple-card-header-container__title"},lv={key:0,class:"unnnic-simple-card__header-slot"},uv=["title"],dv={key:2,class:"unnnic-simple-card__footer"};function cv(e,n,a,i,r,s){const u=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",rv,[t.createElementVNode("section",ov,[t.createElementVNode("h1",sv,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(u,{icon:"info",size:"nano",scheme:"fg-base"})]),_:1},8,["text"])):t.createCommentVNode("",!0)]),e.$slots.headerSlot?(t.openBlock(),t.createElementBlock("section",lv,[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,uv)):t.createCommentVNode("",!0),e.$slots.footer?(t.openBlock(),t.createElementBlock("section",dv,[t.renderSlot(e.$slots,"footer",{},void 0,!0)])):t.createCommentVNode("",!0)],2)}const N1=V(I1,[["render",cv],["__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 u=Kt.get(this.translations,`${n}.${r}`,Kt.get(this.translations,n));if(u||(u=Kt.get(Kt.get(this.defaultTranslations,n),r,a)),u!=null&&u.includes("|")&&typeof e[1]=="number"){const c=e[1],g=u.split("|");g.length===3?u=g[c]||g[2]:g.length===2&&(u=c===1?g[0]:g[1])}let d={};return Object.values(e).slice(1).forEach(c=>{!(c instanceof Array)&&c instanceof Object&&(d=c)}),Object.keys(d).forEach(c=>{u=u==null?void 0:u.replaceAll(new RegExp(`{ *${c} *}`,"g"),d[c])}),u}}},fv={class:"chip__text"},ol=V(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),u=t.computed(()=>a.isSelected?"chip__count--is-selected":""),d=t.computed(()=>a.isSelected?"chip--is-selected":"");return(c,g)=>(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",fv,t.toDisplayString(c.text),1),c.count?(t.openBlock(),t.createElementBlock("p",{key:0,class:t.normalizeClass(["chip__count",u.value])},t.toDisplayString(c.count),3)):t.createCommentVNode("",!0),t.renderSlot(c.$slots,"right",{},void 0,!0),c.type==="multiple"?(t.openBlock(),t.createBlock(he,{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"]]),gv={key:0,class:"unnnic-tag__icon"},_v={class:t.normalizeClass("unnnic-tag__label")},hv=V(t.defineComponent({__name:"DefaultTag",props:{text:{default:void 0},size:{default:"medium"},scheme:{default:"aux-purple"},leftIcon:{default:void 0}},setup(e){t.useCssVars(r=>({"007074d2":i.value}));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:u})=>u.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}`)},[r.leftIcon?(t.openBlock(),t.createElementBlock("section",gv,[t.createVNode(he,{icon:r.leftIcon,scheme:"fg-emphasized",size:"sm"},null,8,["icon"])])):t.createCommentVNode("",!0),t.createElementVNode("p",_v,t.toDisplayString(r.text),1)],2))}}),[["__scopeId","data-v-fae8d172"]]),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(ol,{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(hv,{key:1,size:n.type==="next"?"small":n.size,text:n.text,scheme:n.scheme,leftIcon:n.leftIcon},null,8,["size","text","scheme","leftIcon"]))}}),mv={components:{UnnnicTag:Ar},mixins:[$a],props:{oldVersion:Boolean,name:String,description:String,plan:String,actionText:String},data(){return{isOptionsOpen:!1}}},Fv={class:"name"},pv={class:"description"},bv={key:1};function yv(e,n,a,i,r,s){const u=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]=g=>e.$emit("enter"))},[t.createElementVNode("div",null,[t.createElementVNode("h2",Fv,t.toDisplayString(a.name),1),t.createElementVNode("p",pv,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(u,{key:0,class:"action",clickable:"",text:a.actionText,scheme:"aux-blue",onClick:n[0]||(n[0]=g=>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]=g=>r.isOptionsOpen=g),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 T1=V(mv,[["render",yv],["__scopeId","data-v-dac06e20"]]),kv={components:{UnnnicIcon:he},props:{title:{type:String},description:{type:String},score:{type:String},info:{type:String},checked:{type:Boolean,default:!1}}},wv={class:"card"},Dv={class:"header"},Cv={class:"title"},Ev={key:0,class:"check"},Av={class:"description"},Bv={key:0,class:"footer"},xv={class:"evaluation"},vv={class:"info"};function Sv(e,n,a,i,r,s){const u=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createElementBlock("div",wv,[t.createElementVNode("div",Dv,[t.createElementVNode("div",Cv,t.toDisplayString(a.title),1),a.checked?(t.openBlock(),t.createElementBlock("div",Ev,[t.createVNode(u,{size:"md",icon:"check-circle-1-1-1",scheme:"feedback-green"})])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Av,t.toDisplayString(a.description),1),a.score||a.info?(t.openBlock(),t.createElementBlock("div",Bv,[t.createElementVNode("div",xv,[a.score?(t.openBlock(),t.createBlock(u,{key:0,size:"sm",icon:"rating-star-1",scheme:"feedback-yellow"})):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(a.score)+" ",1),t.createElementVNode("span",vv,t.toDisplayString(a.info),1)])])):t.createCommentVNode("",!0)])}const O1=V(kv,[["render",Sv],["__scopeId","data-v-0ebd61ad"]]),jv={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)}}},qv={class:"unnnic-checkbox"},Iv=["disabled","checked"],Nv={key:0,class:"unnnic-checkbox__helper"};function Tv(e,n,a,i,r,s){return t.openBlock(),t.createElementBlock("section",qv,[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]=(...u)=>s.click&&s.click(...u))}),null,16,Iv),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",Nv,t.toDisplayString(a.helper),1)):t.createCommentVNode("",!0)])}const Br=V(jv,[["render",Tv],["__scopeId","data-v-14c8c277"]]),Ov={components:{UnnnicIcon:he,UnnnicCheckbox:Br,UnnnicAvatarIcon:Ti,UnnnicDropdown:Ao},props:{modelValue:Boolean,title:String,description:String,image:String,data:{type:Array,default(){return[]}}}},Mv={class:"header"},Pv={class:"content"},Lv={key:0,class:"u font secondary body-lg bold color-fg-emphasized"},zv={key:1,class:"u font secondary body-md color-fg-base"},Vv=["src"],Rv={key:0,class:"details"},Uv={class:"u font secondary body-gt color-fg-base"},Hv={class:"value-container"},Yv={class:"u font secondary body-gt color-fg-emphasized"};function Gv(e,n,a,i,r,s){const u=t.resolveComponent("UnnnicCheckbox"),d=t.resolveComponent("UnnnicIcon"),c=t.resolveComponent("UnnnicDropdown"),g=t.resolveComponent("UnnnicAvatarIcon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["unnnic-card-image",{checked:a.modelValue}])},[t.createElementVNode("div",Mv,[t.createElementVNode("div",Pv,[a.title?(t.openBlock(),t.createElementBlock("div",Lv,t.toDisplayString(a.title),1)):t.createCommentVNode("",!0),a.description?(t.openBlock(),t.createElementBlock("div",zv,t.toDisplayString(a.description),1)):t.createCommentVNode("",!0)]),t.createVNode(u,{modelValue:a.modelValue,onChange:n[0]||(n[0]=_=>e.$emit("update:model-value",_))},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,Vv),a.data.length?(t.openBlock(),t.createElementBlock("div",Rv,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.data,(_,h)=>(t.openBlock(),t.createElementBlock("div",{key:h,class:"data"},[t.createElementVNode("div",Uv,t.toDisplayString(_.name),1),t.createElementVNode("div",Hv,[t.createVNode(g,{icon:_.icon,size:"xs",scheme:_.scheme},null,8,["icon","scheme"]),t.createElementVNode("div",Yv,t.toDisplayString(_.value),1)])]))),128))])):t.createCommentVNode("",!0)],2)}const M1=V(Ov,[["render",Gv],["__scopeId","data-v-d331e392"]]),Wv={components:{UnnnicIcon:he,UnnnicDropdown:Ao,UnnnicDropdownItem:rl},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)}}},Qv={class:"unnnic-card-project__header"},Xv=["title"],Kv={class:"unnnic-card-project__description"},Zv=["title"],Jv={class:"unnnic-card-project__bottom"},$v={class:"unnnic-card-project__status-options-container"};function eS(e,n,a,i,r,s){const u=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((...g)=>s.emitClick&&s.emitClick(...g),["left","exact"])),n[4]||(n[4]=t.withModifiers(g=>s.emitClick({button:1}),["ctrl"]))],onMouseup:n[3]||(n[3]=t.withModifiers((...g)=>s.emitClick&&s.emitClick(...g),["middle","exact","prevent"]))},[t.createElementVNode("section",Qv,[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,Xv),s.showActions?(t.openBlock(),t.createBlock(d,{key:0,position:"bottom-left","data-testid":"dropdown-actions"},{trigger:t.withCtx(()=>[t.createVNode(u,{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",Kv,[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,Zv)]),t.createElementVNode("section",Jv,[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(g=>s.handlerDropdownOpen(),["stop"]))},[t.createElementVNode("p",null,t.toDisplayString(e.i18n(a.status)),1),a.canUpdateStatus?(t.openBlock(),t.createBlock(u,{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]=g=>r.openDropdown=g)},{default:t.withCtx(()=>[t.createElementVNode("section",$v,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.statusOptions,g=>(t.openBlock(),t.createBlock(c,{key:g,class:"status-option",onClick:_=>s.handlerClickDropdownItem(g)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.i18n(g)),1)]),_:2},1032,["onClick"]))),128))])]),_:1},8,["open"])],2)])],34)}const P1=V(Wv,[["render",eS],["__scopeId","data-v-e9dc5349"]]),tS={components:{UnnnicAvatarIcon:Ti,UnnnicToolTip:Xt,UnnnicIcon:he},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}}},aS={class:"unnnic-card-container"},nS={class:"header"},iS={class:"title"},rS=["title"],oS={key:0,class:"subtitle"},sS={key:0,class:"description"},lS={key:1,class:"description-row-container"},uS={key:0,class:"description-row"},dS={class:"title"},cS={class:"content"},fS={class:"number"};function gS(e,n,a,i,r,s){const u=t.resolveComponent("UnnnicIcon"),d=t.resolveComponent("UnnnicToolTip"),c=t.resolveComponent("UnnnicAvatarIcon");return t.openBlock(),t.createElementBlock("div",aS,[t.createElementVNode("div",nS,[t.createElementVNode("div",iS,[t.createElementVNode("span",{class:"name",title:a.name.length>25?a.name:null},t.toDisplayString(a.name),9,rS),a.subtitle?(t.openBlock(),t.createElementBlock("div",oS,t.toDisplayString(a.subtitle),1)):t.createCommentVNode("",!0)]),t.renderSlot(e.$slots,"header-buttons",{},void 0,!0)]),a.description?(t.openBlock(),t.createElementBlock("div",sS,t.toDisplayString(a.description),1)):t.createCommentVNode("",!0),a.descriptionRow||a.descriptionRowInfo?(t.openBlock(),t.createElementBlock("div",lS,[a.descriptionRow?(t.openBlock(),t.createElementBlock("div",uS,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(u,{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:_,class:"status"},[t.createElementVNode("div",dS,t.toDisplayString(g.title),1),t.createElementVNode("div",cS,[t.createVNode(c,{icon:g.icon,scheme:g.scheme,size:"xs"},null,8,["icon","scheme"]),t.createElementVNode("div",fS,t.toDisplayString(g.count),1)])]))),128))],4)])}const _S={components:{CardStatusesContainer:V(tS,[["render",gS],["__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 hS(e,n,a,i,r,s){const u=t.resolveComponent("CardStatusesContainer");return t.openBlock(),t.createBlock(u,{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 L1=V(_S,[["render",hS],["__scopeId","data-v-ee17403c"]]),mS={class:"unnnic-checkbox-group__checkboxes"},FS={key:1,class:"unnnic-checkbox-group__helper"},z1=V(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",mS,[t.renderSlot(n.$slots,"default",{},void 0,!0)]),n.helper?(t.openBlock(),t.createElementBlock("footer",FS,t.toDisplayString(n.helper),1)):t.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-f03f56c7"]]),pS={class:"unnnic-collapse__body"},V1=V({__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,u)=>(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:u[0]||(u[0]=d=>r.value=!r.value)},[t.createTextVNode(t.toDisplayString(e.title),1),t.renderSlot(s.$slots,"header",{},void 0,!0),t.createVNode(he,{size:"ant",icon:r.value?"arrow-button-up-1":"arrow-button-down-1",scheme:"fg-base"},null,8,["icon"])]),t.withDirectives(t.createElementVNode("div",pS,[t.renderSlot(s.$slots,"default",{},void 0,!0)],512),[[t.vShow,r.value]])],2))}},[["__scopeId","data-v-cc0e62a7"]]),bS={class:"unnnic-radio"},yS=["disabled","checked","name"],kS={key:0,class:"unnnic-radio__helper"},R1=V({__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 u(){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)(g.$attrs,["id"]),{onChange:u}),null,16,yS),t.createElementVNode("p",{class:t.normalizeClass(["unnnic-radio__label",{"unnnic-radio__label--disabled":e.disabled}])},[t.createTextVNode(t.toDisplayString(e.label)+" ",1),t.renderSlot(g.$slots,"default",{},void 0,!0)],2),e.helper?(t.openBlock(),t.createElementBlock("footer",kS,t.toDisplayString(e.helper),1)):t.createCommentVNode("",!0)],2)]))}},[["__scopeId","data-v-9f51b54f"]]),wS={class:"unnnic-radio-group__radios"},DS={key:1,class:"unnnic-radio-group__helper"},U1=V(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,u=>{u!==r.value&&(r.value=u)}),t.watch(r,u=>{u!==a.modelValue&&i("update:modelValue",u)});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),(u,d)=>(t.openBlock(),t.createElementBlock("section",{class:t.normalizeClass(["unnnic-radio-group__container",`unnnic-radio-group--state-${u.state}`])},[u.label?(t.openBlock(),t.createBlock(Ci,{key:0,label:u.label,tooltip:u.labelTooltip,class:"unnnic-radio-group__label"},null,8,["label","tooltip"])):t.createCommentVNode("",!0),t.createElementVNode("section",wS,[t.renderSlot(u.$slots,"default",{},void 0,!0)]),u.helper?(t.openBlock(),t.createElementBlock("footer",DS,t.toDisplayString(u.helper),1)):t.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-d5af6106"]]),CS={name:"Flag",components:{UnnnicIcon:he},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 ES(e,n,a,i,r,s){const u=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createBlock(u,{icon:s.name,size:a.size},null,8,["icon","size"])}const AS={name:"LanguageSelect",components:{UnnnicFlag:V(CS,[["render",ES]]),UnnnicIcon:he},directives:{onClickOutside:il},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)}}},BS={key:0,class:"unnnic-language-select contracted"},xS={class:"option"},vS=["onClick"],SS={key:1,class:"unnnic-language-select normal"},jS={class:"option"},qS={class:"label"},IS=["onClick"],NS={class:"label"},TS={class:"option"},OS={class:"label"};function MS(e,n,a,i,r,s){const u=t.resolveComponent("UnnnicFlag"),d=t.resolveComponent("UnnnicIcon"),c=t.resolveDirective("on-click-outside");return a.contracted?t.withDirectives((t.openBlock(),t.createElementBlock("div",BS,[t.createElementVNode("div",{class:t.normalizeClass(["container contracted",{open:r.open}]),onClick:n[0]||(n[0]=(...g)=>s.onClickTrigger&&s.onClickTrigger(...g))},[t.createElementVNode("div",xS,[t.createVNode(u,{size:"sm",code:r.val},null,8,["code"])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.otherLanguages,g=>(t.openBlock(),t.createElementBlock("div",{key:g.id,class:"option",onClick:_=>r.val=g.id},[t.createVNode(u,{size:"sm",code:g.id},null,8,["code"])],8,vS))),128))],2)])),[[c,s.onClickOutside]]):t.withDirectives((t.openBlock(),t.createElementBlock("div",SS,[t.createElementVNode("div",{class:t.normalizeClass(["container normal",{open:r.open}]),onClick:n[1]||(n[1]=(...g)=>s.onClickTrigger&&s.onClickTrigger(...g))},[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",jS,[t.createVNode(u,{size:"sm",code:r.val},null,8,["code"]),t.createElementVNode("div",qS,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,g=>(t.openBlock(),t.createElementBlock("div",{key:g.id,class:"option",onClick:_=>r.val=g.id},[t.createVNode(u,{size:"sm",code:g.id},null,8,["code"]),t.createElementVNode("div",NS,t.toDisplayString(s.languages[g.id]),1)],8,IS))),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",TS,[t.createVNode(u,{size:"sm",code:r.val},null,8,["code"]),t.createElementVNode("div",OS,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 H1=V(AS,[["render",MS]]),PS={name:"UnnnicModal",components:{UnnnicIcon:he},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")}}},LS={ref:"modal",class:"unnnic-modal-container-background"},zS={class:"unnnic-modal-container-background-body"},VS={key:0,class:"unnnic-modal-container-background-body-close_icon"},RS={key:1,class:"unnnic-modal-container-background-body__icon-slot"},US={class:"unnnic-modal-container-background-body-title"},HS={class:"unnnic-modal-container-background-body-description-container"},YS={class:"unnnic-modal-container-background-body-description"},GS={key:0,class:"unnnic-modal-container-background-report"},WS={key:1,class:"unnnic-modal-container-background-button"};function QS(e,n,a,i,r,s){const u=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",LS,[t.createElementVNode("div",zS,[a.closeIcon?(t.openBlock(),t.createElementBlock("div",VS,[t.createVNode(u,{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",RS,[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(u,{scheme:a.scheme,icon:a.modalIcon,size:"xl"},null,8,["scheme","icon"])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",US,t.toDisplayString(a.text),1)]),t.createElementVNode("div",HS,[t.createElementVNode("div",YS,[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",GS,t.toDisplayString(a.alertMessage),1)):t.createCommentVNode("",!0),s.hasButton?(t.openBlock(),t.createElementBlock("div",WS,[t.renderSlot(e.$slots,"options",{},void 0,!0)])):t.createCommentVNode("",!0)],512)])],16)):t.createCommentVNode("",!0)]),_:3})}const sl=V(PS,[["render",QS],["__scopeId","data-v-bc6e5f19"]]),Jm={"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(Jm);const $m={"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($m);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 XS{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 u=!0;for(let d of r){const c=d.startsWith("*");if(d=c?d.slice(1):d,s==null||s.add(d),u&&Ia(this,Bo,"f").set(i,d),u=!1,c)continue;const g=Ia(this,xr,"f").get(d);if(g&&g!=i&&!a)throw new Error(`"${i} -> ${d}" conflicts with "${g} -> ${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 KS=new XS($m,Jm)._freeze(),ZS={class:"unnnic-upload-area__dropzone__content"},JS={class:"unnnic-upload-area__dropzone__content__title"},$S=["title"],ej=["accept","multiple"],ll=V({__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.ref(),u=t.useTemplateRef("file"),d=e,c=n,g=t.getCurrentInstance();function _(q){var M,ne;return!!((ne=(M=g==null?void 0:g.vnode)==null?void 0:M.props)!=null&&ne[q])}const h=t.computed(()=>d.supportedFormats.split(",").map(M=>M.toUpperCase()).join(", "));function F(){d.disabled||(r.value+=1,a.value=!0)}function p(){d.disabled||(a.value=!0)}function b(){d.disabled||(r.value-=1,r.value===0&&(a.value=!1))}function w(){d.disabled||(a.value=!1)}function E(q){if(d.disabled)return;a.value=!1;const{files:M}=q.dataTransfer;A(M)&&P(M)}function T(){d.disabled||u.value.click()}function B(q){if(d.disabled)return;const{files:M}=q.target;A(M)&&P(M),s.value.value=""}function D(){i.value=!0,setTimeout(()=>{i.value=!1},5e3)}function A(q){return!d.acceptMultiple&&q.length>1?(D(),!1):j(q)?I(q)?!0:(_("onExceededTheMaximumFileSizeLimit")?c("exceededTheMaximumFileSizeLimit"):D(),!1):(_("onUnsupportedFormat")?c("unsupportedFormat"):D(),!1)}function j(q){if(d.supportedFormats==="*")return!0;const M=d.supportedFormats.split(",").map(fe=>fe.trim());return Array.from(q).find(fe=>{const Z=fe.name.toLowerCase(),we=fe.type.toLowerCase(),De=`.${Z.split(".").pop()}`,be=M.includes(De),re=we===KS.getType(Z);return be&&re})}function I(q){return d.maxFileSize?Array.from(q).find(ne=>(ne.size/1048576).toFixed(2)<=d.maxFileSize):!0}function P(q){let M=q.length;if(d.shouldReplace||(M+=d.currentFiles.length),M>d.maximumUploads){D();return}const ne=Array.from(q).filter(Z=>!!(j([Z])&&I([Z])));let fe;d.shouldReplace?fe=ne:fe=d.currentFiles.concat(ne),c("update:currentFiles",fe),c("fileChange",fe)}return(q,M)=>(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(F,["stop","prevent"]),onDragover:t.withModifiers(p,["stop","prevent"]),onDragleave:t.withModifiers(b,["stop","prevent"]),onDragend:t.withModifiers(w,["stop","prevent"]),onDrop:t.withModifiers(E,["stop","prevent"]),onClick:T},[t.createVNode(he,{class:"unnnic-upload-area__dropzone__icon",icon:"upload",scheme:i.value?"feedback-red":"weni-500",size:"lg"},null,8,["scheme"]),t.createElementVNode("div",ZS,[t.createElementVNode("span",JS,[t.renderSlot(q.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(q.$t("upload_area.title.text"))+" ",1),t.createElementVNode("span",{class:t.normalizeClass(`unnnic-upload-area__dropzone__content__title__${i.value?"error":"search"}`)},t.toDisplayString(q.$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:h.value},[t.renderSlot(q.$slots,"subtitle",{},()=>[t.createTextVNode(t.toDisplayString(e.subtitle||`${q.$t(`upload_area${i.value?".invalid":""}.subtitle`)} ${h.value}`),1)],!0)],10,$S)]),t.withDirectives(t.createElementVNode("input",{ref_key:"file",ref:s,type:"file",accept:e.supportedFormats,multiple:e.acceptMultiple,onInput:B},null,40,ej),[[t.vShow,!1]])],34))}},[["__scopeId","data-v-ee8a4825"]]),tj={name:"ImportCard",components:{UnnnicButton:Dt,UnnnicIcon:he},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")}}},aj={class:"unnnic-import-card"},nj={class:"unnnic-import-card__data"},ij={key:0,class:"unnnic-import-card__data__title"},rj={key:1,class:"unnnic-import-card__data__title"},oj={key:2,class:"unnnic-import-card__data__subtitle"},sj={key:0,class:"unnnic-import-card__data__subtitle__text"},lj={key:1,class:"unnnic-import-card__data__subtitle__progress"},uj={class:"unnnic-import-card__buttons"},dj=["accept"];function cj(e,n,a,i,r,s){const u=t.resolveComponent("UnnnicIcon"),d=t.resolveComponent("UnnnicButton");return t.openBlock(),t.createElementBlock("div",aj,[t.createVNode(u,{class:"unnnic-import-card__file-icon",size:"md",scheme:"weni-600",icon:s.fileIcon},null,8,["icon"]),t.createElementVNode("div",nj,[a.isImporting?(t.openBlock(),t.createElementBlock("div",ij,t.toDisplayString(e.$t("import_card.importing"))+"... ",1)):(t.openBlock(),t.createElementBlock("div",rj,t.toDisplayString(a.title),1)),a.subtitle&&a.isImporting?(t.openBlock(),t.createElementBlock("div",oj,[a.subtitle&&a.isImporting?(t.openBlock(),t.createElementBlock("div",sj,t.toDisplayString(a.subtitle),1)):t.createCommentVNode("",!0),a.subtitle&&a.isImporting?(t.openBlock(),t.createElementBlock("div",lj,"  - "+t.toDisplayString(a.importProgress)+"% ",1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",uj,[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,dj)]),_:1},8,["iconCenter","onClick"])):t.createCommentVNode("",!0),a.canDelete?(t.openBlock(),t.createBlock(u,{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 ul=V(tj,[["render",cj],["__scopeId","data-v-ae2cb257"]]),fj={name:"UnnnicUploadArea",components:{UnnnicDropArea:ll,UnnnicImportCard:ul},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()}}},gj={key:0,class:"unnnic-upload-area__cards"};function _j(e,n,a,i,r,s){const u=t.resolveComponent("UnnnicDropArea"),d=t.resolveComponent("UnnnicImportCard");return t.openBlock(),t.createElementBlock("div",null,[t.createVNode(u,{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",gj,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.currentFiles,(c,g)=>(t.openBlock(),t.createBlock(d,{key:g,title:c.name,subtitle:c.name,isImporting:a.isUploading,importProgress:a.filesProgress[g]||100,canImport:a.canImport,canDelete:a.canDelete,acceptedFormats:a.supportedFormats,uploadIcon:"button-refresh-arrows-1",onDelete:_=>s.removeFile(g),onModifiedFile:_=>s.modifyFile(g,_)},null,8,["title","subtitle","isImporting","importProgress","canImport","canDelete","acceptedFormats","onDelete","onModifiedFile"]))),128))])):t.createCommentVNode("",!0)])}const dl=V(fj,[["render",_j],["__scopeId","data-v-872a45ed"]]),hj={components:{UnnnicUploadArea:dl,UnnnicIcon:he,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{}}},mj={class:"modal-upload"},Fj={class:"close-button-container"},pj={class:"title"},bj={class:"footer"};function yj(e,n,a,i,r,s){const u=t.resolveComponent("UnnnicIcon"),d=t.resolveComponent("UnnnicUploadArea"),c=t.resolveComponent("UnnnicButton");return t.openBlock(),t.createElementBlock("div",mj,[t.createElementVNode("div",Fj,[t.createVNode(u,{class:"close-button",icon:"close-1",scheme:"fg-base",size:"sm",clickable:"",onClick:n[0]||(n[0]=g=>e.$emit("close"))})]),t.createElementVNode("div",pj,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]=g=>e.$emit("file-change",g))},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]=g=>e.$emit("cancel"))},null,8,["text"]),t.createVNode(c,{size:"large",type:"primary",text:a.textAction,onClick:n[3]||(n[3]=g=>e.$emit("action"))},null,8,["text"])])])}const Y1=V(hj,[["render",yj],["__scopeId","data-v-02afb3f6"]]),kj={components:{UnnnicIcon:he},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")}}},wj={ref:"alertContainer",class:"alert-container"},Dj={ref:"progress",class:"alert__progress"};function Cj(e,n,a,i,r,s){const u=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createElementBlock("div",wj,[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",Dj,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(u,{icon:"close-1",size:"sm",scheme:"fg-inverted"})])],2)],512)}const Ej=V(kj,[["render",Cj],["__scopeId","data-v-fb34701b"]]),Aj=["role","aria-live"],Bj={class:"unnnic-toast__content","data-testid":"toast-content"},xj={class:"unnnic-toast__header","data-testid":"toast-header"},vj={class:"unnnic-toast__title","data-testid":"toast-title"},Sj={key:0,"data-testid":"toast-text",class:"unnnic-toast__text"},xo=V(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 u=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")},g=()=>{var F;(F=a.button)!=null&&F.action&&a.button.action()},_=()=>{a.timeout>0&&(s=window.setTimeout(()=>{c()},a.timeout))},h=()=>{s&&(window.clearTimeout(s),s=null)};return t.onMounted(()=>{r.value=!0,_()}),t.onUnmounted(()=>{h()}),(F,p)=>(t.openBlock(),t.createBlock(t.Transition,{name:"toast-slide",appear:"","data-testid":"toast-transition",onAfterLeave:p[0]||(p[0]=b=>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",Bj,[t.createElementVNode("header",xj,[t.createVNode(he,{icon:u.value.icon,scheme:u.value.scheme,size:"ant","data-testid":"toast-type-icon"},null,8,["icon","scheme"]),t.createElementVNode("h3",vj,t.toDisplayString(F.title),1),t.createVNode(he,{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",Sj,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:g,onKeydown:[t.withKeys(g,["enter"]),t.withKeys(t.withModifiers(g,["prevent"]),["space"])]},null,8,["text","onKeydown"])):t.createCommentVNode("",!0)],14,Aj)):t.createCommentVNode("",!0)]),_:1}))}}),[["__scopeId","data-v-b46b944d"]]),jj={name:"UnnnicAlert",components:{UnnnicToast:xo,Version1dot1:Ej},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 qj(e,n,a,i,r,s){const u=t.resolveComponent("Version1dot1"),d=t.resolveComponent("UnnnicToast");return a.version==="1.1"?(t.openBlock(),t.createBlock(u,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 cl=V(jj,[["render",qj]]);class Ij{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=Ky()??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 u=new Promise(g=>{s=g}),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:u};return this.toasts.set(a,c),c}close(n){this.toasts.get(n)&&this.toasts.delete(n)}}const vo=new Ij,G1={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 Nj(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 W1=Nj(),Q1=({props:e,containerRef:n,seconds:a})=>{if(e.version==="1.1"||n){const i=t.createApp(cl,{...e,seconds:a,version:"1.1",onClose:()=>{s.$el.remove()},created(){W1.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:()=>{W1.emit(["close"])}};vo.show({title:e.text,description:"",...r})}},X1=({props:e})=>{const n=t.createApp(sl,{...e,onClose:()=>{i.$el.remove()},created(){W1.on(["close"],()=>{i.$el.remove()})}}),a=document.createElement("div"),i=n.mount(a);document.body.appendChild(a)},Tj={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}},Oj=["title"];function Mj(e,n,a,i,r,s){const u=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(u,{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,Oj)}const Pj=V(Tj,[["render",Mj]]),Lj={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)}}},zj={class:"unnnic-select-smart__options__multiple"},Vj={key:0,class:"unnnic-select-smart__options__multiple__selecteds__container"},Rj={class:"unnnic-select-smart__options__multiple__selecteds"},Uj={key:0,class:"unnnic-select-smart__options__multiple__selecteds__remaining","data-testid":"remaining-count"},Hj={key:1,class:"unnnic-select-smart__options__multiple--without-multiples","data-testid":"without-selects-message"};function Yj(e,n,a,i,r,s){const u=t.resolveComponent("Tag");return t.openBlock(),t.createElementBlock("div",zj,[a.selectedOptions[0]?(t.openBlock(),t.createElementBlock("div",Vj,[t.createElementVNode("div",Rj,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.firstMultipleSelecteds,d=>(t.openBlock(),t.createBlock(u,{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",Uj," +"+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",Hj,t.toDisplayString(a.withoutSelectsMessage||e.i18n("without_multiple_selected")),1))])}const Gj=V(Lj,[["render",Yj],["__scopeId","data-v-4310b808"]]),Wj={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 Qj(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 e2=V(Wj,[["render",Qj],["__scopeId","data-v-05c4ead6"]]),Xj={name:"UnnnicSelectSmart",components:{TextInput:h0,SelectSmartOption:Pj,SelectSmartMultipleHeader:Gj,DropdownSkeleton:e2,UnnnicIconLoading:wr},directives:{onClickOutside:il},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}=Zu(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=_.findIndex(b=>b.value===d)===g,p=a.every(b=>{const w=h.includes(b),E=d.includes(b);return this.enableSearchByValue?w||E:w});return F&&p&&d});return this.orderedByIndex?s:s.sort((d,c)=>{const g=i(d.label),_=i(c.label),h=r(g),F=r(_);return h-F||g.localeCompare(_)})},onClickOutside(){this.active&&(this.isAutocompleteAllowed&&(this.searchValue=this.selectedLabel),this.$nextTick(()=>{this.active=!1}))},getOptionIndex(e){var i,r,s,u;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)||((u=this.modelValue.at(-1))==null?void 0:u.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 u=i[s===void 0?r:s];this.focusedOption=u}}}},Kj={style:{overflow:"auto"}},Zj={key:0,class:"unnnic-select-smart__options-infinite-loading"},Jj={key:1,class:"unnnic-select-smart__options--no-results"};function $j(e,n,a,i,r,s){const u=t.resolveComponent("TextInput"),d=t.resolveComponent("SelectSmartMultipleHeader"),c=t.resolveComponent("UnnnicIconLoading"),g=t.resolveComponent("SelectSmartOption"),_=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(_,{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",Kj,[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,b)=>(t.openBlock(),t.createBlock(g,{key:p.value,"data-testid":"option",label:p.label,description:p.description,tabindex:b,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",Zj,[t.createVNode(c,{scheme:"fg-base",size:"sm"})])):t.createCommentVNode("",!0),s.filterOptions(a.options).length===0?(t.openBlock(),t.createElementBlock("p",Jj,t.toDisplayString(e.i18n("without_results")),1)):t.createCommentVNode("",!0)],64))],2)])],6)):t.createCommentVNode("",!0)]),default:t.withCtx(()=>[t.createVNode(u,{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 K1=V(Xj,[["render",$j]]);function t2(e,n,a,i){const r=t.ref(!1),{width:s}=ry(a),u=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(b=>{const w=String(b[e.itemLabel]??"").toLowerCase().includes(F),E=String(b[e.itemValue]??"").toLowerCase().includes(F);return w||E})});function c(h){const{optionsLength:F,optionsLines:p,enableSearch:b,variant:w}=h;if(F===0)return"unset";if(w==="single"){const I=37*p,P=b?1:2,q=I+32+(4*p-P);return`${b?q+45+1:q}px`}const E=b?16:0,D=22*p+(24*p-2);return`${b?D+51+E:D}px`}const g=t.computed(()=>{var h;return c({optionsLength:((h=e.options)==null?void 0:h.length)??0,optionsLines:e.optionsLines,enableSearch:e.enableSearch,variant:n})}),_=t.computed(()=>{var p;const h=((p=d.value)==null?void 0:p.length)===0,F=g.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:u,calculatedPopoverHeight:g,popoverContentCustomStyles:_,filteredOptions:d}}const eq="data-option-index";function a2(e,n,a){const{closeOnSelect:i=!0,closePopover:r,openPopoverRef:s}=a,u=t.ref(-1);function d(p,b="smooth",w="center"){t.nextTick(()=>{var T;const E=document.querySelector(`[${eq}="${p}"]`);(T=E==null?void 0:E.scrollIntoView)==null||T.call(E,{behavior:b,block:w})})}function c(p){if(!["ArrowUp","ArrowDown","Enter"].includes(p.key))return;p.preventDefault();const w=e();if(p.key==="ArrowUp"){if(u.value<=0)return;u.value--,d(u.value)}else if(p.key==="ArrowDown"){if(u.value>=w.length-1)return;u.value++,d(u.value)}else if(p.key==="Enter"&&u.value>=0&&w[u.value]){const E=w[u.value];if(E!=null&&E.disabled)return;n(E),i&&r()}}function g(p){s.value&&c(p)}function _(){document.addEventListener("keydown",g)}function h(){document.removeEventListener("keydown",g)}function F(){t.watch(s,p=>{p?t.nextTick(_):h()}),t.onBeforeUnmount(h)}return{focusedOptionIndex:u,scrollToOption:d,handleKeyDown:c,setupKeydownBinding:F}}const tq={class:"unnnic-select"},aq={key:1,class:"unnnic-select__content-no-results"},nq={key:0,class:"unnnic-select__infinite-loading"},Z1=V(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.useTemplateRef("selectInputRef"),u=t.useTemplateRef("contentRef"),d=t2(i,"single",s,u),c=d.openPopover,g=d.popoverContentCustomStyles,_=d.inputWidthString,h=d.filteredOptions;function F(q){d.openPopover.value=q}const p=t.computed(()=>i.returnObject?i.modelValue:i.options.find(q=>q[i.itemValue]===i.modelValue)),b=t.computed(()=>{var q;return(q=p.value)==null?void 0:q[i.itemLabel]});function w(q){var M;q[i.itemValue]===((M=p.value)==null?void 0:M[i.itemValue])||q.disabled||(r("update:modelValue",i.returnObject?q:q[i.itemValue]),d.openPopover.value=!1)}const E=a2(()=>d.filteredOptions.value,w,{closeOnSelect:!0,closePopover:()=>d.openPopover.value=!1,openPopoverRef:d.openPopover});E.setupKeydownBinding();const T=E.focusedOptionIndex;t.watch(d.openPopover,()=>{if(!d.openPopover.value)P("");else{if(E.focusedOptionIndex.value=-1,i.modelValue){const q=i.options.findIndex(M=>{var ne;return M[i.itemValue]===((ne=p.value)==null?void 0:ne[i.itemValue])});E.scrollToOption(q,"instant","center")}i.infiniteScroll&&t.nextTick(()=>A())}});const B=t.ref(null),D=t.ref(!1);function A(){i.infiniteScroll&&(B.value&&(B.value(),B.value=null),t.nextTick(()=>{const q=d.contentRef.value;if(!q)return;const{reset:M}=Zu(q,()=>{D.value||(D.value=!0,r("scroll-end"))},{distance:i.infiniteScrollDistance,canLoadMore:()=>i.infiniteScrollCanLoadMore()&&!D.value});B.value=M}))}function j(){D.value=!1,d.openPopover.value&&i.infiniteScroll&&t.nextTick(()=>A())}function I(){D.value=!1,B.value&&B.value(),d.openPopover.value&&i.infiniteScroll&&t.nextTick(()=>A())}function P(q){r("update:search",q)}return t.onBeforeUnmount(()=>{B.value&&B.value()}),n({openPopover:c,setOpenPopover:F,filteredOptions:h,calculatedPopoverHeight:d.calculatedPopoverHeight,selectedItem:p,inputValue:b,infiniteScrollLoading:D,finishInfiniteScroll:j,resetInfiniteScroll:I}),(q,M)=>(t.openBlock(),t.createElementBlock("div",tq,[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(gn,{ref_key:"selectInputRef",ref:s,modelValue:b.value,class:"unnnic-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&&i.clearable,onClear:M[0]||(M[0]=ne=>r("update:modelValue",""))},null,8,["modelValue","focus","size","placeholder","label","errors","message","iconRight","disabled","showClear"])]),_:1}),t.createVNode(t.unref(Cr),{align:"start",class:t.normalizeClass("h-full"),style:t.normalizeStyle(t.unref(g)),width:t.unref(_)},{default:t.withCtx(()=>[t.createElementVNode("div",{ref_key:"contentRef",ref:u,class:"unnnic-select__content"},[i.enableSearch?(t.openBlock(),t.createBlock(gn,{key:0,class:"unnnic-select__input-search",modelValue:i.search,placeholder:q.$t("search"),iconLeft:"search","onUpdate:modelValue":P},null,8,["modelValue","placeholder"])):t.createCommentVNode("",!0),t.unref(h).length===0?(t.openBlock(),t.createElementBlock("p",aq,t.toDisplayString(q.$t("without_results")),1)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(h),(ne,fe)=>{var Z;return t.openBlock(),t.createBlock(t.unref(tl),{key:ne[i.itemValue],"data-option-index":fe,"data-testid":"select-option",label:ne[i.itemLabel],active:ne[i.itemValue]===((Z=p.value)==null?void 0:Z[i.itemValue]),focused:t.unref(T)===fe,disabled:ne.disabled,onClick:we=>w(ne)},null,8,["data-option-index","label","active","focused","disabled","onClick"])}),128)),i.infiniteScroll&&D.value?(t.openBlock(),t.createElementBlock("div",nq,[t.createVNode(wr,{scheme:"fg-base",size:"sm"})])):t.createCommentVNode("",!0)],64))],512)]),_:1},8,["style","width"])]),_:1},8,["open"])]))}}),[["__scopeId","data-v-38d626f4"]]),iq={name:"UnnicSelectItem",props:{size:{type:String,default:""},selectable:{type:Boolean,default:!0},active:{type:Boolean,default:!1},textFocused:{type:Boolean,default:!1}}};function rq(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]=u=>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 J1=V(iq,[["render",rq]]),oq={class:t.normalizeClass(["unnnic-multi-select-option"])},sq=V(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",oq,[t.createVNode(Br,{modelValue:i.active,disabled:i.disabled,label:i.label,"onUpdate:modelValue":s[0]||(s[0]=u=>a("update:modelValue",!i.active))},null,8,["modelValue","disabled","label"])]))}}),[["__scopeId","data-v-872f231b"]]),lq={class:"unnnic-multi-select"},uq={key:1,class:"unnnic-multi-select__content-no-results"},dq={key:2,class:"unnnic-multi-select__options"},$1=V(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"),u=t.useTemplateRef("contentRef"),d=t2(i,"multi",s,u),c=d.openPopover,g=d.popoverContentCustomStyles,_=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(j=>A.includes(j[i.itemValue]))}),b=t.computed(()=>p.value.map(A=>A[i.itemLabel]).join(", "));function w(A){r("update:search",A)}function E(A){return i.returnObject?i.modelValue.some(j=>j[i.itemValue]===A[i.itemValue]):i.modelValue.includes(A[i.itemValue])}function T(A,j){if(j){const I=i.returnObject?[...i.modelValue,A]:[...i.modelValue,A[i.itemValue]];r("update:modelValue",I)}else{const I=i.returnObject?i.modelValue.filter(P=>P[i.itemValue]!==A[i.itemValue]):i.modelValue.filter(P=>P!==A[i.itemValue]);r("update:modelValue",I)}}const B=a2(()=>d.filteredOptions.value,A=>{if(A.disabled)return;const j=E(A);T(A,!j)},{closeOnSelect:!1,closePopover:()=>d.openPopover.value=!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:b}),(A,j)=>(t.openBlock(),t.createElementBlock("div",lq,[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(gn,{ref_key:"multiSelectInputRef",ref:s,modelValue:b.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:j[0]||(j[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(g)),width:t.unref(_)},{default:t.withCtx(()=>[t.createElementVNode("div",{ref_key:"contentRef",ref:u,class:"unnnic-multi-select__content"},[i.enableSearch?(t.openBlock(),t.createBlock(gn,{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",uq,t.toDisplayString(A.$t("without_results")),1)):(t.openBlock(),t.createElementBlock("div",dq,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(h),(I,P)=>(t.openBlock(),t.createBlock(sq,{key:String(I[i.itemValue]),"data-option-index":P,label:String(I[i.itemLabel]??""),active:E(I),focused:t.unref(D)===P,disabled:I.disabled,"onUpdate:modelValue":q=>T(I,q)},null,8,["data-option-index","label","active","focused","disabled","onUpdate:modelValue"]))),128))]))],512)]),_:1},8,["style","width"])]),_:1},8,["open"])]))}}),[["__scopeId","data-v-0a08840d"]]),cq={components:{UnnnicIcon:he},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)}},fq={class:"header"},gq={class:"actions"};function _q(e,n,a,i,r,s){const u=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",fq,[t.createVNode(u,{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",gq,[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 ed=V(cq,[["render",_q],["__scopeId","data-v-0943a5ba"]]),hq={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}}}},mq={class:"weni-step-indicator"},Fq={class:"weni-step-indicator__label"};function pq(e,n,a,i,r,s){return t.openBlock(),t.createElementBlock("div",mq,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.numberOfSteps,u=>(t.openBlock(),t.createElementBlock("div",{key:u,class:t.normalizeClass({"weni-step-indicator__step__wrapper":!0,"weni-step-indicator--has-separator":u>1})},[u!==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass({"weni-step-indicator__step__separator":!0,"weni-step-indicator__step__separator--active":u<=a.currentStep})},null,2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass({"weni-step-indicator__step":!0,"weni-step-indicator__step--active":u<=a.currentStep})},[t.createElementVNode("span",Fq,t.toDisplayString(s.titleForStep(u)),1)],2)],2))),128))])}const td=V(hq,[["render",pq],["__scopeId","data-v-cb023da6"]]),bq={"--skeleton-bg":"var(--unnnic-color-bg-muted)","--skeleton-highlight":"var(--unnnic-color-bg-base-soft)","--skeleton-duration":"2s"},yq={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({...bq})),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 kq(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,(u,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 ad=V(yq,[["render",kq]]),wq={name:"UnnnicTagCarousel",components:{UnnnicTag:Ar,UnnnicIcon:he},props:{modelValue:{type:Array,default(){return[]}},tagItems:{type:Array,default:()=>[]}},data(){return{hasNext:!0,hasPrev:!1,slides:[]}},mounted(){this.slides=this.tagItems},methods:{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}}},Dq={class:"unnnic-card-tag-carousel"},Cq={class:"unnnic-card-tag-carousel__button unnnic-card-tag-carousel__button--left"},Eq={class:"unnnic-card-tag-carousel__button__icon"},Aq={class:"unnnic-card-tag-carousel__button__blur unnnic-card-tag-carousel__button__blur--left"},Bq={id:"scroll",class:"unnnic-card-tag-carousel__container"},xq={class:"unnnic-card-tag-carousel__button unnnic-card-tag-carousel__button--right"},vq={class:"unnnic-card-tag-carousel__button__blur unnnic-card-tag-carousel__button__blur--right"},Sq={class:"unnnic-card-tag-carousel__button__icon"};function jq(e,n,a,i,r,s){const u=t.resolveComponent("UnnnicIcon"),d=t.resolveComponent("UnnnicTag");return t.openBlock(),t.createElementBlock("div",Dq,[t.createElementVNode("div",Cq,[t.createElementVNode("div",Eq,[t.createVNode(u,{icon:"arrow-left-1-1",size:"sm",scheme:r.hasPrev?"fg-emphasized":"fg-muted",clickable:"",onClick:n[0]||(n[0]=c=>s.previous())},null,8,["scheme"])]),t.withDirectives(t.createElementVNode("span",Aq,null,512),[[t.vShow,r.hasPrev]])]),t.createElementVNode("div",Bq,[(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:g=>s.save(c)},null,8,["text","disabled","onClick"])]))),128))]),t.createElementVNode("div",xq,[t.withDirectives(t.createElementVNode("span",vq,null,512),[[t.vShow,r.hasNext]]),t.createElementVNode("div",Sq,[t.createVNode(u,{icon:"arrow-right-1-1",size:"sm",scheme:r.hasNext?"fg-emphasized":"fg-muted",clickable:"",onClick:n[1]||(n[1]=c=>s.next())},null,8,["scheme"])])])])}const qq=V(wq,[["render",jq]]),Iq={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 qq}}};function Nq(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]=u=>e.$emit("update:model-value",u))}),null,16,["name","clickable","tagItems","modelValue"])}const nd=V(Iq,[["render",Nq]]),Tq={components:{UnnnicIcon:he,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))}}},Oq={class:"tab-header"},Mq={class:"tab-content"},Pq=["onClick"],Lq={class:"tab-body"},zq={class:"tab-panel"};function Vq(e,n,a,i,r,s){const u=t.resolveComponent("UnnnicIcon"),d=t.resolveComponent("UnnnicToolTip");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["tab",`size-${a.size}`])},[t.createElementVNode("header",Oq,[t.createElementVNode("ul",Mq,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.tabs,c=>{var g;return t.openBlock(),t.createElementBlock("li",{key:c,class:t.normalizeClass(["tab-head",{"tab-head--active":r.localValue===c,"tab-head--disabled":(g=a.disabledTabs)==null?void 0:g.includes(c)}]),onClick:_=>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(u,{icon:"help",size:a.size==="sm"?"xs":"sm",scheme:"fg-base"},null,8,["size"])]),_:2},1032,["text"])):t.createCommentVNode("",!0)],10,Pq)}),128))])]),t.createElementVNode("main",Lq,[t.createElementVNode("div",zq,[t.renderSlot(e.$slots,s.tabPanelSlotName,{},void 0,!0)])])],2)}const id=V(Tq,[["render",Vq],["__scopeId","data-v-2860998c"]]),Rq={components:{UnnnicIcon:he},props:{modelValue:{type:[String,Number],required:!0},items:{type:Array,required:!0}},emits:["back","update:model-value","close-tab","add"]},Uq={class:"unnnic-tabs-expanded"},Hq=["onClick"],Yq={"data-testid":"tab-description",class:"u font secondary body-sm color-fg-base"},Gq={key:0,class:"close-container"};function Wq(e,n,a,i,r,s){const u=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createElementBlock("div",Uq,[t.createElementVNode("div",{class:"back-container","data-testid":"back",onClick:n[0]||(n[0]=d=>e.$emit("back"))},[t.createVNode(u,{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",Yq,t.toDisplayString(d.description),1)]),d.value===a.modelValue?(t.openBlock(),t.createElementBlock("div",Gq,[t.createVNode(u,{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,Hq))),128)),t.createElementVNode("div",{class:"add-container","data-testid":"tab-add",onClick:n[1]||(n[1]=d=>e.$emit("add"))},[t.createVNode(u,{icon:"add-1",scheme:"fg-base",size:"sm"})])])}const rd=V(Rq,[["render",Wq],["__scopeId","data-v-a72bb16c"]]),Qq={name:"UnnnicBanner",components:{UnnnicIcon:he},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}}},Xq={class:"unnnic-banner-info"},Kq={class:"unnnic-banner-info__section"},Zq={class:"unnnic-banner-info__title"},Jq={class:"unnnic-banner-info__description"},$q={class:"unnnic-banner-info__section"},eI={class:"unnnic-banner-info__title"},tI={class:"unnnic-banner-info__description"},aI={class:"unnnic-banner-info__subtitle"},nI={class:"unnnic-banner-info__section"},iI={class:"unnnic-banner-info__title"},rI={class:"unnnic-banner-info__description"},oI={class:"unnnic-banner-info__rating"};function sI(e,n,a,i,r,s){const u=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createElementBlock("div",Xq,[t.createElementVNode("section",Kq,[t.createElementVNode("div",Zq,t.toDisplayString(a.firstTitle),1),t.createElementVNode("div",Jq,t.toDisplayString(a.firstDescription),1)]),n[0]||(n[0]=t.createElementVNode("div",{class:"unnnic-banner-info__divider"},null,-1)),t.createElementVNode("section",$q,[t.createElementVNode("div",eI,t.toDisplayString(a.secondTitle),1),t.createElementVNode("div",tI,t.toDisplayString(a.secondDescription),1),t.createElementVNode("div",aI,t.toDisplayString(a.subtitle),1)]),n[1]||(n[1]=t.createElementVNode("div",{class:"unnnic-banner-info__divider"},null,-1)),t.createElementVNode("section",nI,[t.createElementVNode("div",iI,t.toDisplayString(a.thirdTitle),1),t.createElementVNode("div",rI,t.toDisplayString(a.thirdDescription),1),t.createElementVNode("div",oI,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(5,d=>t.createVNode(u,{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 n2=V(Qq,[["render",sI]]),lI={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",n2}},methods:{emitRatingAction(e){this.$emit("ratingAction",e)}}};function uI(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 od=V(lI,[["render",uI]]),dI={name:"UnnnicComment",components:{},props:{title:{type:String,default:null},time:{type:String,default:null},text:{type:String,default:null}}},cI={class:"unnnic-comment"},fI={class:"unnnic-comment__avatar"},gI={class:"unnnic-comment__content"},_I={class:"unnnic-comment__content__header"},hI={class:"unnnic-comment__content__header__title"},mI={class:"unnnic-comment__content__header__time"},FI={class:"unnnic-comment__content__header__actions"},pI={class:"unnnic-comment__content__text"};function bI(e,n,a,i,r,s){return t.openBlock(),t.createElementBlock("div",cI,[t.createElementVNode("div",fI,[t.renderSlot(e.$slots,"avatar",{},void 0,!0)]),t.createElementVNode("div",gI,[t.createElementVNode("div",_I,[t.createElementVNode("div",hI,t.toDisplayString(a.title),1),t.createElementVNode("div",mI,t.toDisplayString(a.time),1),t.createElementVNode("div",FI,[t.renderSlot(e.$slots,"actions",{},void 0,!0)])]),t.createElementVNode("div",pI,t.toDisplayString(a.text),1)])])}const sd=V(dI,[["render",bI],["__scopeId","data-v-5925e703"]]),yI={name:"UnnnicBreadcrumb",components:{UnnnicIcon:he},props:{crumbs:{type:Array,default:null,validator:e=>e.every(n=>n.name!==null)}},emits:["crumb-click"]},kI={class:"unnnic-breadcrumb"},wI=["data-test","onClick"];function DI(e,n,a,i,r,s){const u=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createElementBlock("div",kI,[(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:g=>e.$emit("crumb-click",d)},t.toDisplayString(d.name),11,wI),c!==a.crumbs.length-1?(t.openBlock(),t.createBlock(u,{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 ld=V(yI,[["render",DI],["__scopeId","data-v-b1be1eed"]]),CI={class:"unnnic-switch"},EI=["disabled","checked"],AI={key:1,class:"unnnic-switch__helper"},ud=V(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,u=>{u!==r.value&&(r.value=u)},{immediate:!0});function s(){a.disabled||(r.value=!r.value,i("update:model-value",r.value))}return(u,d)=>(t.openBlock(),t.createElementBlock("section",CI,[u.label?(t.openBlock(),t.createBlock(Ci,{key:0,label:u.label,tooltip:u.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":u.disabled}])},[t.createElementVNode("input",t.mergeProps({class:"unnnic-switch__input",type:"checkbox",disabled:u.disabled,checked:u.modelValue},t.unref(Kt.pick)(u.$attrs,["id","name"]),{onChange:s}),null,16,EI),u.option||u.textLeft||u.textRight?(t.openBlock(),t.createElementBlock("p",{key:0,class:t.normalizeClass(["unnnic-switch__option",{"unnnic-switch__option--disabled":u.disabled}]),"data-testid":"switch-option"},[t.createTextVNode(t.toDisplayString(u.option)+" "+t.toDisplayString(u.textLeft)+" "+t.toDisplayString(u.textRight)+" ",1),t.renderSlot(u.$slots,"suffix",{},void 0,!0)],2)):t.createCommentVNode("",!0)],2),u.helper?(t.openBlock(),t.createElementBlock("p",AI,t.toDisplayString(u.helper),1)):t.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-ee5c330b"]]),BI={name:"UnnnicSlider",components:{UnnnicTooltip:Xt,UnnnicIcon:he},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}}},xI={class:"unnnic-label"},vI={key:0,class:"unnnic-slider__label"},SI={class:"unnnic-slider__content"},jI={class:"unnnic-slider__content__labels"},qI={class:"unnnic-slider__content__labels__min"},II=["min","max","step"],NI={class:"unnnic-slider__content__labels__max"},TI=["value"];function OI(e,n,a,i,r,s){const u=t.resolveComponent("UnnnicIcon"),d=t.resolveComponent("UnnnicTooltip");return t.openBlock(),t.createElementBlock("article",null,[t.createElementVNode("section",xI,[a.label?(t.openBlock(),t.createElementBlock("p",vI,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(u,{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",SI,[t.createElementVNode("section",jI,[t.createElementVNode("span",qI,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,II),[[t.vModelText,r.sliderVal]])]),_:1},8,["text","enabled"]),t.createElementVNode("span",NI,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,TI)):t.createCommentVNode("",!0)],4)])}const dd=V(BI,[["render",OI],["__scopeId","data-v-4d22fbdb"]]),MI={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:""}}},PI={class:"data-area-container"},LI={class:"data-area-container__header"},zI={class:"data-area-container__header__title"},VI={class:"data-area-container__header__links-slot"},RI={class:"data-area-container__content"},UI={class:"data-area-container__content__text"},HI={class:"data-area-container__content__buttons-slot"};function YI(e,n,a,i,r,s){const u=t.resolveComponent("ToolTip");return t.openBlock(),t.createElementBlock("div",PI,[t.createElementVNode("div",LI,[t.createElementVNode("div",zI,t.toDisplayString(a.title),1),t.createElementVNode("div",VI,[t.renderSlot(e.$slots,"links",{},void 0,!0)])]),t.createElementVNode("div",RI,[t.createVNode(u,{enabled:a.enableHover,text:a.hoverText},{default:t.withCtx(()=>[t.createElementVNode("div",UI,t.toDisplayString(a.text),1)]),_:1},8,["enabled","text"]),t.createElementVNode("div",HI,[t.renderSlot(e.$slots,"buttons",{},void 0,!0)])])])}const cd=V(MI,[["render",YI],["__scopeId","data-v-532aa33d"]]),GI={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}}},WI={class:"pagination"};function QI(e,n,a,i,r,s){const u=t.resolveComponent("UnnnicButton");return t.openBlock(),t.createElementBlock("div",WI,[t.createVNode(u,{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(u,{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:g=>s.selectPage(d)},null,8,["type","text","disabled","onClick"]))),128)),t.createVNode(u,{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 fl=V(GI,[["render",QI],["__scopeId","data-v-b2612197"]]),XI={name:"UnnnicDateFilter",components:{UnnnicInput:gn},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=oe(this.startDate).format(this.dateFormat.replaceAll("/",""));e+=n.toString()}if(this.endDate){const n=oe(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")}}},KI={class:"unnnic-date-filter"};function ZI(e,n,a,i,r,s){const u=t.resolveComponent("UnnnicInput");return t.openBlock(),t.createElementBlock("div",KI,[t.createVNode(u,{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 fd=V(XI,[["render",ZI]]),JI={components:{UnnnicToolTip:Xt,UnnnicIcon:he},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}},$I={class:"header"},eN={ref:"description",class:"description"},tN={key:0,class:"scrollable-gradient"};function aN(e,n,a,i,r,s){const u=t.resolveComponent("UnnnicIcon"),d=t.resolveComponent("UnnnicToolTip");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["unnnic-chat-text",a.size])},[t.createElementVNode("div",$I,[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(u,{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",eN,[t.renderSlot(e.$slots,"description",{},void 0,!0),r.isScrollable?(t.openBlock(),t.createElementBlock("div",tN)):t.createCommentVNode("",!0)],512)],2)}const gd=V(JI,[["render",aN],["__scopeId","data-v-fa86c05f"]]),nN=["placeholder","maxlength","disabled","value"],_d=V(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,u)=>(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:u[0]||(u[0]=d=>{var c;return s.$emit("update:modelValue",t.unref(Jn)(((c=d.target)==null?void 0:c.value)??""))})},null,42,nN)]),_: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"]]),iN={props:{description:{type:String,default:""},number:{type:String,default:""},fullSize:{type:Boolean,default:!1}}};function rN(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 hd=V(iN,[["render",rN],["__scopeId","data-v-b36ba472"]]),oN={components:{},props:{modelValue:{type:Number,default:0},description:{type:String}},watch:{modelValue(){this.updateChartSvg()}},mounted(){this.updateChartSvg()},methods:{updateChartSvg(){function e(i,r,s,u){const d=(u-90)*Math.PI/180;return{x:i+s*Math.cos(d),y:r+s*Math.sin(d)}}function n(i,r,s,u,d,c){const g=s,_=u-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))}}},sN={class:"unnnic-chart-rainbow"},lN={width:"332",height:"166",class:"semicircle"},uN={id:"path",ref:"background",fill:"none","stroke-linecap":"round",class:"background","stroke-width":"26.56px"},dN={id:"path",ref:"front",fill:"none","stroke-linecap":"round",class:"front","stroke-width":"26.56px"},cN={class:"content"},fN={class:"percentage"},gN={class:"number"},_N={key:0,class:"description"};function hN(e,n,a,i,r,s){return t.openBlock(),t.createElementBlock("div",sN,[(t.openBlock(),t.createElementBlock("svg",lN,[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",uN,null,512),t.createElementVNode("path",dN,null,512)])),t.createElementVNode("div",cN,[t.createElementVNode("div",fN,[t.createElementVNode("span",gN,t.toDisplayString(a.modelValue),1),n[1]||(n[1]=t.createElementVNode("span",{class:"symbol"},"%",-1))]),a.description?(t.openBlock(),t.createElementBlock("div",_N,t.toDisplayString(a.description),1)):t.createCommentVNode("",!0)])])}const md=V(oN,[["render",hN],["__scopeId","data-v-ae7c10f4"]]),mN={components:{UnnnicIcon:he,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))}}},FN={key:0,class:"header"},pN={key:0,class:"content"},bN={key:1,class:"description unnnic-font secondary body-gt color-fg-base"},yN={key:1,class:"actions"},kN={key:0,class:"unnnic-font secondary body-md color-fg-base"},wN={key:1,class:"navigation-container"},DN={class:"main"},CN={class:"reference"},EN={class:"values"},AN={class:"groups"},BN={class:"bars"},xN={class:"title unnnic-font secondary body-md color-fg-muted"},vN={key:1,class:"footer"},SN={class:"unnnic-font secondary body-gt color-fg-base"};function jN(e,n,a,i,r,s){const u=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",FN,[a.title||a.description?(t.openBlock(),t.createElementBlock("div",pN,[a.title?(t.openBlock(),t.createElementBlock("div",{key:0,class:"title unnnic-font bold title-sm color-fg-emphasized",onClick:n[0]||(n[0]=g=>e.$emit("update"))},t.toDisplayString(a.title),1)):t.createCommentVNode("",!0),a.description?(t.openBlock(),t.createElementBlock("div",bN,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",yN,[e.$attrs.update?(t.openBlock(),t.createElementBlock("div",{key:0,class:"update-button",onClick:n[1]||(n[1]=g=>e.$emit("update"))},[t.createVNode(u,{icon:"button-refresh-arrow-1",size:"sm",scheme:"fg-emphasized"}),a.updateText?(t.openBlock(),t.createElementBlock("span",kN,t.toDisplayString(a.updateText),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),e.$attrs.previous||e.$attrs.next?(t.openBlock(),t.createElementBlock("div",wN,[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]=g=>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]=g=>e.$emit("next"))},null,8,["disabled"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",DN,[t.createElementVNode("div",CN,[t.createElementVNode("div",EN,[(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:_,class:"value unnnic-font secondary body-md color-fg-muted"},t.toDisplayString(g),1))),128))]),n[4]||(n[4]=t.createElementVNode("div",{class:"unnnic-font secondary body-md color-fg-muted"}," ",-1))]),t.createElementVNode("div",AN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.groups,(g,_)=>(t.openBlock(),t.createElementBlock("div",{key:_,class:"group"},[t.createElementVNode("div",BN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.legends.map((h,F)=>({legend:h,index:F})).filter(({legend:h})=>g.values[h]),({legend:h,index:F})=>(t.openBlock(),t.createBlock(c,{key:F,enabled:"",text:`${g.title}: ${g.values[h]}
65
+ */const wA="9.14.5";function DA(){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 pm=ra.__EXTEND_POINT__,Vn=Hs(pm),wt={FALLBACK_TO_ROOT:pm,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()},CA={[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 K0(CA[e],...n)}const bm=Yt.__EXTEND_POINT__,ca=Hs(bm),Je={UNEXPECTED_RETURN_TYPE:bm,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 Vt(e,...n){return mr(e,null,process.env.NODE_ENV!=="production"?{messages:EA,args:n}:void 0)}const EA={[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"},d1=pn("__translateVNode"),c1=pn("__datetimeParts"),f1=pn("__numberParts"),Ii=pn("__enableEmitter"),yo=pn("__disableEmitter"),ym=pn("__setPluralRules"),km=pn("__injectWithOption"),g1=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 u=0;u<i;u++){if(a[u]==="__proto__")throw new Error(`unsafe key: ${a[u]}`);if(a[u]in r||(r[a[u]]=dt()),!Qe(r[a[u]])){process.env.NODE_ENV!=="production"&&Ot(da(wt.IGNORE_OBJ_FLATTEN,{key:a[u]})),s=!0;break}r=r[a[u]]}if(s||(ja(r)?Th.includes(a[i])||delete e[n]:(r[a[i]]=e[n],delete e[n])),!ja(r)){const u=r[a[i]];Qe(u)&&ko(u)}}return e}function $s(e,n){const{messages:a,__i18n:i,messageResolver:r,flatJson:s}=n,u=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:g}=d;c?(u[c]=u[c]||dt(),Gs(g,u[c])):Gs(g,u)}else se(d)&&Gs(JSON.parse(d),u)}),r==null&&s)for(const d in u)Za(u,d)&&ko(u[d]);return u}function wm(e){return e.type}function Dm(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(u=>{e.mergeDateTimeFormat(u,n.datetimeFormats[u])})}if(Qe(n.numberFormats)){const s=Object.keys(n.numberFormats);s.length&&s.forEach(u=>{e.mergeNumberFormat(u,n.numberFormats[u])})}}}function Cm(e){return t.createVNode(t.Text,null,e,0)}const Em="__INTLIFY_META__",Am=()=>[],AA=()=>!1;let Bm=0;function xm(e){return(n,a,i,r)=>e(a,i,t.getCurrentInstance()||void 0,r)}const BA=()=>{const e=t.getCurrentInstance();let n=null;return e&&(n=wm(e)[Em])?{[Em]:n}:null};function _1(e={},n){const{__root:a,__injectWithOption:i}=e,r=a===void 0,s=e.flatJson,u=Ka?t.ref:t.shallowRef,d=!!e.translateExistCompatible;process.env.NODE_ENV!=="production"&&d&&gh(da(wt.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));let c=Le(e.inheritLocale)?e.inheritLocale:!0;const g=u(a&&c?a.locale.value:se(e.locale)?e.locale:br),_=u(a&&c?a.fallbackLocale.value:se(e.fallbackLocale)||mt(e.fallbackLocale)||ve(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:g.value),h=u($s(g.value,e)),F=u(ve(e.datetimeFormats)?e.datetimeFormats:{[g.value]:{}}),p=u(ve(e.numberFormats)?e.numberFormats:{[g.value]:{}});let b=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,E=a?a.fallbackRoot:Le(e.fallbackRoot)?e.fallbackRoot:!0,T=!!e.fallbackFormat,B=ct(e.missing)?e.missing:null,D=ct(e.missing)?xm(e.missing):null,A=ct(e.postTranslation)?e.postTranslation:null,j=a?a.warnHtmlMessage:Le(e.warnHtmlMessage)?e.warnHtmlMessage:!0,I=!!e.escapeParameter;const P=a?a.modifiers:ve(e.modifiers)?e.modifiers:{};let q=e.pluralRules||a&&a.pluralRules,M;M=(()=>{r&&Kh(null);const U={version:wA,locale:g.value,fallbackLocale:_.value,messages:h.value,modifiers:P,pluralRules:q,missing:D===null?void 0:D,missingWarn:b,fallbackWarn:w,fallbackFormat:T,unresolving:!0,postTranslation:A===null?void 0:A,warnHtmlMessage:j,escapeParameter:I,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};U.datetimeFormats=F.value,U.numberFormats=p.value,U.__datetimeFormatters=ve(M)?M.__datetimeFormatters:void 0,U.__numberFormatters=ve(M)?M.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(U.__v_emitter=ve(M)?M.__v_emitter:void 0);const $=nA(U);return r&&Kh($),$})(),bo(M,g.value,_.value);function fe(){return[g.value,_.value,h.value,F.value,p.value]}const Z=t.computed({get:()=>g.value,set:U=>{g.value=U,M.locale=g.value}}),we=t.computed({get:()=>_.value,set:U=>{_.value=U,M.fallbackLocale=_.value,bo(M,g.value,U)}}),De=t.computed(()=>h.value),be=t.computed(()=>F.value),re=t.computed(()=>p.value);function qe(){return ct(A)?A:null}function ee(U){A=U,M.postTranslation=U}function et(){return B}function xt(U){U!==null&&(D=xm(U)),B=U,M.missing=D}function st(U,$){return U!=="translate"||!$.resolvedMessage}const At=(U,$,Ve,gt,Pt,en)=>{fe();let Ta;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(M.fallbackContext=a?aA():void 0),Ta=U(M)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(M.fallbackContext=void 0)}if(Ve!=="translate exists"&&qt(Ta)&&Ta===Ks||Ve==="translate exists"&&!Ta){const[Rt,yn]=$();if(process.env.NODE_ENV!=="production"&&a&&se(Rt)&&st(Ve,yn)&&(E&&(Js(w,Rt)||Jh(b,Rt))&&Ot(da(wt.FALLBACK_TO_ROOT,{key:Rt,type:Ve})),process.env.NODE_ENV!=="production")){const{__v_emitter:Rn}=M;Rn&&E&&Rn.emit("fallback",{type:Ve,key:Rt,to:"global",groupId:`${Ve}:${Rt}`})}return a&&E?gt(a):Pt(Rt)}else{if(en(Ta))return Ta;throw Vt(Je.UNEXPECTED_RETURN_TYPE)}};function ft(...U){return At($=>Reflect.apply(om,null,[$,...U]),()=>o1(...U),"translate",$=>Reflect.apply($.t,$,[...U]),$=>$,$=>se($))}function _t(...U){const[$,Ve,gt]=U;if(gt&&!Qe(gt))throw Vt(Je.INVALID_ARGUMENT);return ft($,Ve,Zt({resolvedMessage:!0},gt||{}))}function vt(...U){return At($=>Reflect.apply(cm,null,[$,...U]),()=>s1(...U),"datetime format",$=>Reflect.apply($.d,$,[...U]),()=>Zs,$=>se($))}function W(...U){return At($=>Reflect.apply(_m,null,[$,...U]),()=>l1(...U),"number format",$=>Reflect.apply($.n,$,[...U]),()=>Zs,$=>se($))}function te(U){return U.map($=>se($)||qt($)||Le($)?Cm(String($)):$)}const ie={normalize:te,interpolate:U=>U,type:"vnode"};function K(...U){return At($=>{let Ve;const gt=$;try{gt.processor=ie,Ve=Reflect.apply(om,null,[gt,...U])}finally{gt.processor=null}return Ve},()=>o1(...U),"translate",$=>$[d1](...U),$=>[Cm($)],$=>mt($))}function Se(...U){return At($=>Reflect.apply(_m,null,[$,...U]),()=>l1(...U),"number format",$=>$[f1](...U),Am,$=>se($)||mt($))}function xe(...U){return At($=>Reflect.apply(cm,null,[$,...U]),()=>s1(...U),"datetime format",$=>$[c1](...U),Am,$=>se($)||mt($))}function Xe(U){q=U,M.pluralRules=q}function H(U,$){return At(()=>{if(!U)return!1;const Ve=se($)?$:g.value,gt=$e(Ve),Pt=M.messageResolver(gt,U);return d?Pt!=null:ja(Pt)||qa(Pt)||se(Pt)},()=>[U],"translate exists",Ve=>Reflect.apply(Ve.te,Ve,[U,$]),AA,Ve=>Le(Ve))}function ye(U){let $=null;const Ve=Vh(M,_.value,g.value);for(let gt=0;gt<Ve.length;gt++){const Pt=h.value[Ve[gt]]||{},en=M.messageResolver(Pt,U);if(en!=null){$=en;break}}return $}function rt(U){const $=ye(U);return $??(a?a.tm(U)||{}:{})}function $e(U){return h.value[U]||{}}function _e(U,$){if(s){const Ve={[U]:$};for(const gt in Ve)Za(Ve,gt)&&ko(Ve[gt]);$=Ve[U]}h.value[U]=$,M.messages=h.value}function ze(U,$){h.value[U]=h.value[U]||{};const Ve={[U]:$};if(s)for(const gt in Ve)Za(Ve,gt)&&ko(Ve[gt]);$=Ve[U],Gs($,h.value[U]),M.messages=h.value}function x(U){return F.value[U]||{}}function N(U,$){F.value[U]=$,M.datetimeFormats=F.value,gm(M,U,$)}function Y(U,$){F.value[U]=Zt(F.value[U]||{},$),M.datetimeFormats=F.value,gm(M,U,$)}function ue(U){return p.value[U]||{}}function Ue(U,$){p.value[U]=$,M.numberFormats=p.value,mm(M,U,$)}function Oe(U,$){p.value[U]=Zt(p.value[U]||{},$),M.numberFormats=p.value,mm(M,U,$)}Bm++,a&&Ka&&(t.watch(a.locale,U=>{c&&(g.value=U,M.locale=U,bo(M,g.value,_.value))}),t.watch(a.fallbackLocale,U=>{c&&(_.value=U,M.fallbackLocale=U,bo(M,g.value,_.value))}));const Ge={id:Bm,locale:Z,fallbackLocale:we,get inheritLocale(){return c},set inheritLocale(U){c=U,U&&a&&(g.value=a.locale.value,_.value=a.fallbackLocale.value,bo(M,g.value,_.value))},get availableLocales(){return Object.keys(h.value).sort()},messages:De,get modifiers(){return P},get pluralRules(){return q||{}},get isGlobal(){return r},get missingWarn(){return b},set missingWarn(U){b=U,M.missingWarn=b},get fallbackWarn(){return w},set fallbackWarn(U){w=U,M.fallbackWarn=w},get fallbackRoot(){return E},set fallbackRoot(U){E=U},get fallbackFormat(){return T},set fallbackFormat(U){T=U,M.fallbackFormat=T},get warnHtmlMessage(){return j},set warnHtmlMessage(U){j=U,M.warnHtmlMessage=U},get escapeParameter(){return I},set escapeParameter(U){I=U,M.escapeParameter=U},t:ft,getLocaleMessage:$e,setLocaleMessage:_e,mergeLocaleMessage:ze,getPostTranslationHandler:qe,setPostTranslationHandler:ee,getMissingHandler:et,setMissingHandler:xt,[ym]:Xe};return Ge.datetimeFormats=be,Ge.numberFormats=re,Ge.rt=_t,Ge.te=H,Ge.tm=rt,Ge.d=vt,Ge.n=W,Ge.getDateTimeFormat=x,Ge.setDateTimeFormat=N,Ge.mergeDateTimeFormat=Y,Ge.getNumberFormat=ue,Ge.setNumberFormat=Ue,Ge.mergeNumberFormat=Oe,Ge[km]=i,Ge[d1]=K,Ge[c1]=xe,Ge[f1]=Se,process.env.NODE_ENV!=="production"&&(Ge[Ii]=U=>{M.__v_emitter=U},Ge[yo]=()=>{M.__v_emitter=void 0}),Ge}function xA(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,u=Le(e.fallbackRoot)?e.fallbackRoot:!0,d=!!e.formatFallbackMessages,c=ve(e.modifiers)?e.modifiers:{},g=e.pluralizationRules,_=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&&Ot(da(wt.NOT_SUPPORTED_FORMATTER)),process.env.NODE_ENV!=="production"&&e.preserveDirectiveContent&&Ot(da(wt.NOT_SUPPORTED_PRESERVE_DIRECTIVE));let b=e.messages;if(ve(e.sharedMessages)){const I=e.sharedMessages;b=Object.keys(I).reduce((q,M)=>{const ne=q[M]||(q[M]={});return Zt(ne,I[M]),q},b||{})}const{__i18n:w,__root:E,__injectWithOption:T}=e,B=e.datetimeFormats,D=e.numberFormats,A=e.flatJson,j=e.translateExistCompatible;return{locale:n,fallbackLocale:a,messages:b,flatJson:A,datetimeFormats:B,numberFormats:D,missing:i,missingWarn:r,fallbackWarn:s,fallbackRoot:u,fallbackFormat:d,modifiers:c,pluralRules:g,postTranslation:_,warnHtmlMessage:h,escapeParameter:F,messageResolver:e.messageResolver,inheritLocale:p,translateExistCompatible:j,__i18n:w,__root:E,__injectWithOption:T}}function h1(e={},n){{const a=_1(xA(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"&&Ot(da(wt.NOT_SUPPORTED_FORMATTER)),{interpolate(){return[]}}},set formatter(s){process.env.NODE_ENV!=="production"&&Ot(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"&&Ot(da(wt.NOT_SUPPORTED_PRESERVE_DIRECTIVE)),!0},set preserveDirectiveContent(s){process.env.NODE_ENV!=="production"&&Ot(da(wt.NOT_SUPPORTED_PRESERVE_DIRECTIVE))},get pluralizationRules(){return a.pluralRules||{}},__composer:a,t(...s){const[u,d,c]=s,g={};let _=null,h=null;if(!se(u))throw Vt(Je.INVALID_ARGUMENT);const F=u;return se(d)?g.locale=d:mt(d)?_=d:ve(d)&&(h=d),mt(c)?_=c:ve(c)&&(h=c),Reflect.apply(a.t,a,[F,_||h||{},g])},rt(...s){return Reflect.apply(a.rt,a,[...s])},tc(...s){const[u,d,c]=s,g={plural:1};let _=null,h=null;if(!se(u))throw Vt(Je.INVALID_ARGUMENT);const F=u;return se(d)?g.locale=d:qt(d)?g.plural=d:mt(d)?_=d:ve(d)&&(h=d),se(c)?g.locale=c:mt(c)?_=c:ve(c)&&(h=c),Reflect.apply(a.t,a,[F,_||h||{},g])},te(s,u){return a.te(s,u)},tm(s){return a.tm(s)},getLocaleMessage(s){return a.getLocaleMessage(s)},setLocaleMessage(s,u){a.setLocaleMessage(s,u)},mergeLocaleMessage(s,u){a.mergeLocaleMessage(s,u)},d(...s){return Reflect.apply(a.d,a,[...s])},getDateTimeFormat(s){return a.getDateTimeFormat(s)},setDateTimeFormat(s,u){a.setDateTimeFormat(s,u)},mergeDateTimeFormat(s,u){a.mergeDateTimeFormat(s,u)},n(...s){return Reflect.apply(a.n,a,[...s])},getNumberFormat(s){return a.getNumberFormat(s)},setNumberFormat(s,u){a.setNumberFormat(s,u)},mergeNumberFormat(s,u){a.mergeNumberFormat(s,u)},getChoiceIndex(s,u){return process.env.NODE_ENV!=="production"&&Ot(da(wt.NOT_SUPPORTED_GET_CHOICE_INDEX)),-1}};return r.__extender=i,process.env.NODE_ENV!=="production"&&(r.__enableEmitter=s=>{const u=a;u[Ii]&&u[Ii](s)},r.__disableEmitter=()=>{const s=a;s[yo]&&s[yo]()}),r}}const m1={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function vA({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 vm(e){return t.Fragment}const F1=t.defineComponent({name:"i18n-t",props:Zt({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>qt(e)||!isNaN(e)}},m1),setup(e,n){const{slots:a,attrs:i}=n,r=e.i18n||k1({useScope:e.scope,__useComponent:!0});return()=>{const s=Object.keys(a).filter(h=>h!=="_"),u=dt();e.locale&&(u.locale=e.locale),e.plural!==void 0&&(u.plural=se(e.plural)?+e.plural:e.plural);const d=vA(n,s),c=r[d1](e.keypath,d,u),g=Zt(dt(),i),_=se(e.tag)||Qe(e.tag)?e.tag:vm();return t.h(_,g,c)}}});function SA(e){return mt(e)&&!se(e[0])}function Sm(e,n,a,i){const{slots:r,attrs:s}=n;return()=>{const u={part:!0};let d=dt();e.locale&&(u.locale=e.locale),se(e.format)?u.key=e.format:Qe(e.format)&&(se(e.format.key)&&(u.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,u,d);let g=[u.key];mt(c)?g=c.map((F,p)=>{const b=r[F.type],w=b?b({[F.type]:F.value,index:p,parts:c}):[F.value];return SA(w)&&(w[0].key=`${F.type}-${p}`),w}):se(c)&&(g=[c]);const _=Zt(dt(),s),h=se(e.tag)||Qe(e.tag)?e.tag:vm();return t.h(h,_,g)}}const jm=t.defineComponent({name:"i18n-n",props:Zt({value:{type:Number,required:!0},format:{type:[String,Object]}},m1),setup(e,n){const a=e.i18n||k1({useScope:e.scope,__useComponent:!0});return Sm(e,n,hm,(...i)=>a[f1](...i))}}),qm=t.defineComponent({name:"i18n-d",props:Zt({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},m1),setup(e,n){const a=e.i18n||k1({useScope:e.scope,__useComponent:!0});return Sm(e,n,fm,(...i)=>a[c1](...i))}});function jA(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 qA(e){const n=u=>{const{instance:d,modifiers:c,value:g}=u;if(!d||!d.$)throw Vt(Je.UNEXPECTED_ERROR);const _=jA(e,d.$);process.env.NODE_ENV!=="production"&&c.preserve&&Ot(da(wt.NOT_SUPPORTED_PRESERVE));const h=Im(g);return[Reflect.apply(_.t,_,[...Nm(h)]),_]};return{created:(u,d)=>{const[c,g]=n(d);Ka&&e.global===g&&(u.__i18nWatcher=t.watch(g.locale,()=>{d.instance&&d.instance.$forceUpdate()})),u.__composer=g,u.textContent=c},unmounted:u=>{Ka&&u.__i18nWatcher&&(u.__i18nWatcher(),u.__i18nWatcher=void 0,delete u.__i18nWatcher),u.__composer&&(u.__composer=void 0,delete u.__composer)},beforeUpdate:(u,{value:d})=>{if(u.__composer){const c=u.__composer,g=Im(d);u.textContent=Reflect.apply(c.t,c,[...Nm(g)])}},getSSRProps:u=>{const[d]=n(u);return{textContent:d}}}}function Im(e){if(se(e))return{path:e};if(ve(e)){if(!("path"in e))throw Vt(Je.REQUIRED_VALUE,"path");return e}else throw Vt(Je.INVALID_VALUE)}function Nm(e){const{path:n,locale:a,args:i,choice:r,plural:s}=e,u={},d=i||{};return se(a)&&(u.locale=a),qt(r)&&(u.plural=r),qt(s)&&(u.plural=s),[n,d,u]}function IA(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&&Ot(da(wt.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:F1.name})),s&&([r?"i18n":F1.name,"I18nT"].forEach(u=>e.component(u,F1)),[jm.name,"I18nN"].forEach(u=>e.component(u,jm)),[qm.name,"I18nD"].forEach(u=>e.component(u,qm))),e.directive("t",qA(n))}const p1={"vue-devtools-plugin-vue-i18n":"Vue I18n devtools","vue-i18n-resource-inspector":"I18n Resources","vue-i18n-timeline":"Vue I18n"},NA={"vue-i18n-resource-inspector":"Search for scopes ..."},TA={"vue-i18n-timeline":16764185},Tm="vue-i18n: composer properties";let b1;async function OA(e,n){return new Promise((a,i)=>{try{kA({id:"vue-devtools-plugin-vue-i18n",label:p1["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:[Tm],app:e},r=>{b1=r,r.on.visitComponentTree(({componentInstance:u,treeNode:d})=>{MA(u,d,n)}),r.on.inspectComponent(({componentInstance:u,instanceData:d})=>{u.vnode.el&&u.vnode.el.__VUE_I18N__&&d&&(n.mode==="legacy"?u.vnode.el.__VUE_I18N__!==n.global.__composer&&Mm(d,u.vnode.el.__VUE_I18N__):Mm(d,u.vnode.el.__VUE_I18N__))}),r.addInspector({id:"vue-i18n-resource-inspector",label:p1["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:NA["vue-i18n-resource-inspector"]}),r.on.getInspectorTree(u=>{u.app===e&&u.inspectorId==="vue-i18n-resource-inspector"&&RA(u,n)});const s=new Map;r.on.getInspectorState(async u=>{if(u.app===e&&u.inspectorId==="vue-i18n-resource-inspector")if(r.unhighlightElement(),HA(u,n),u.nodeId==="global"){if(!s.has(u.app)){const[d]=await r.getComponentInstances(u.app);s.set(u.app,d)}r.highlightElement(s.get(u.app))}else{const d=UA(u.nodeId,n);d&&r.highlightElement(d)}}),r.on.editInspectorState(u=>{u.app===e&&u.inspectorId==="vue-i18n-resource-inspector"&&GA(u,n)}),r.addTimelineLayer({id:"vue-i18n-timeline",label:p1["vue-i18n-timeline"],color:TA["vue-i18n-timeline"]}),a(!0)})}catch(r){console.error(r),i(!1)}})}function Om(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function MA(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 (${Om(e)} Scope)`,textColor:0,backgroundColor:16764185};n.tags.push(r)}}function Mm(e,n){const a=Tm;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:y1(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 y1(e){const n={};return Object.keys(e).forEach(a=>{const i=e[a];ct(i)&&"source"in i?n[a]=VA(i):ja(i)&&i.loc&&i.loc.source?n[a]=i.loc.source:Qe(i)?n[a]=y1(i):n[a]=i}),n}const PA={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function LA(e){return e.replace(/[<>"&]/g,zA)}function zA(e){return PA[e]||e}function VA(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${LA(e.source)}")`:"(?)"}`}}}function RA(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:`${Om(i)} Scope`})}}function UA(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 Pm(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 HA(e,n){const a=Pm(e.nodeId,n);return a&&(e.state=YA(a)),null}function YA(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:y1(e.messages.value)}];n[r]=s;{const u="Datetime formats info",d=[{type:u,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];n[u]=d;const c="Datetime formats info",g=[{type:c,key:"numberFormats",editable:!1,value:e.numberFormats.value}];n[c]=g}return n}function wo(e,n){if(b1){let a;n&&"groupId"in n&&(a=n.groupId,delete n.groupId),b1.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 GA(e,n){const a=Pm(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 WA(e,n,a){return{beforeCreate(){const i=t.getCurrentInstance();if(!i)throw Vt(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=Lm(e,s);else{s.__injectWithOption=!0,s.__extender=a.__vueI18nExtend,this.$i18n=h1(s);const u=this.$i18n;u.__extender&&(u.__disposer=u.__extender(this.$i18n))}}else if(r.__i18n)if(this===this.$root)this.$i18n=Lm(e,r);else{this.$i18n=h1({__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&&Dm(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,u)=>this.$i18n.te(s,u),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=Z0();i.__enableEmitter&&i.__enableEmitter(r),r.on("*",wo)}},unmounted(){const i=t.getCurrentInstance();if(!i)throw Vt(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 Lm(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[ym](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 QA=pn("global-vue-i18n");function XA(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,[u,d]=KA(e,a),c=pn(process.env.NODE_ENV!=="production"?"vue-i18n":"");process.env.NODE_ENV!=="production"&&a&&r&&Ot(da(wt.NOTICE_DROP_ALLOW_COMPOSITION));function g(F){return s.get(F)||null}function _(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,...b){if(process.env.NODE_ENV!=="production"&&(p.__VUE_I18N__=F),p.__VUE_I18N_SYMBOL__=c,p.provide(p.__VUE_I18N_SYMBOL__,F),ve(b[0])){const T=b[0];F.__composerExtend=T.__composerExtend,F.__vueI18nExtend=T.__vueI18nExtend}let w=null;!a&&i&&(w=rB(p,F.global)),__VUE_I18N_FULL_INSTALL__&&IA(p,F,...b),__VUE_I18N_LEGACY_API__&&a&&p.mixin(WA(d,d.__composer,F));const E=p.unmount;if(p.unmount=()=>{w&&w(),F.dispose(),E()},process.env.NODE_ENV!=="production"){if(!await OA(p,F))throw Vt(Je.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const B=Z0();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(){u.stop()},__instances:s,__getInstance:g,__setInstance:_,__deleteInstance:h};return F}}function k1(e={}){const n=t.getCurrentInstance();if(n==null)throw Vt(Je.MUST_BE_CALL_SETUP_TOP);if(!n.isCE&&n.appContext.app!=null&&!n.appContext.app.__VUE_I18N_SYMBOL__)throw Vt(Je.NOT_INSTALLED);const a=ZA(n),i=$A(a),r=wm(n),s=JA(e,r);if(__VUE_I18N_LEGACY_API__&&a.mode==="legacy"&&!e.__useComponent){if(!a.allowComposition)throw Vt(Je.NOT_AVAILABLE_IN_LEGACY_MODE);return nB(n,s,i,e)}if(s==="global")return Dm(i,e,r),i;if(s==="parent"){let c=eB(a,n,e.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&Ot(da(wt.NOT_FOUND_PARENT_SCOPE)),c=i),c}const u=a;let d=u.__getInstance(n);if(d==null){const c=Zt({},e);"__i18n"in r&&(c.__i18n=r.__i18n),i&&(c.__root=i),d=_1(c),u.__composerExtend&&(d[g1]=u.__composerExtend(d)),aB(u,n,d),u.__setInstance(n,d)}return d}function KA(e,n,a){const i=t.effectScope();{const r=__VUE_I18N_LEGACY_API__&&n?i.run(()=>h1(e)):i.run(()=>_1(e));if(r==null)throw Vt(Je.UNEXPECTED_ERROR);return[i,r]}}function ZA(e){{const n=t.inject(e.isCE?QA:e.appContext.app.__VUE_I18N_SYMBOL__);if(!n)throw Vt(e.isCE?Je.NOT_INSTALLED_WITH_PROVIDE:Je.UNEXPECTED_ERROR);return n}}function JA(e,n){return Us(e)?"__i18n"in n?"local":"global":e.useScope?e.useScope:"local"}function $A(e){return e.mode==="composition"?e.global:e.global.__composer}function eB(e,n,a=!1){let i=null;const r=n.root;let s=tB(n,a);for(;s!=null;){const u=e;if(e.mode==="composition")i=u.__getInstance(s);else if(__VUE_I18N_LEGACY_API__){const d=u.__getInstance(s);d!=null&&(i=d.__composer,a&&i&&!i[km]&&(i=null))}if(i!=null||r===s)break;s=s.parent}return i}function tB(e,n=!1){return e==null?null:n&&e.vnode.ctx||e.parent}function aB(e,n,a){let i=null;t.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&n.vnode.el){n.vnode.el.__VUE_I18N__=a,i=Z0();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[g1];s&&(s(),delete r[g1])},n)}function nB(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 Vt(Je.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const u=Le(i.inheritLocale)?i.inheritLocale:!se(i.locale),d=t.ref(!r||u?a.locale.value:se(i.locale)?i.locale:br),c=t.ref(!r||u?a.fallbackLocale.value:se(i.fallbackLocale)||mt(i.fallbackLocale)||ve(i.fallbackLocale)||i.fallbackLocale===!1?i.fallbackLocale:d.value),g=t.ref($s(d.value,i)),_=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,b=r?a.fallbackRoot:Le(i.fallbackRoot)?i.fallbackRoot:!0,w=!!i.fallbackFormat,E=ct(i.missing)?i.missing:null,T=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:{},j=i.pluralRules||r&&a.pluralRules;function I(){return[d.value,c.value,g.value,_.value,h.value]}const P=t.computed({get:()=>s.value?s.value.locale.value:d.value,set:H=>{s.value&&(s.value.locale.value=H),d.value=H}}),q=t.computed({get:()=>s.value?s.value.fallbackLocale.value:c.value,set:H=>{s.value&&(s.value.fallbackLocale.value=H),c.value=H}}),M=t.computed(()=>s.value?s.value.messages.value:g.value),ne=t.computed(()=>_.value),fe=t.computed(()=>h.value);function Z(){return s.value?s.value.getPostTranslationHandler():T}function we(H){s.value&&s.value.setPostTranslationHandler(H)}function De(){return s.value?s.value.getMissingHandler():E}function be(H){s.value&&s.value.setMissingHandler(H)}function re(H){return I(),H()}function qe(...H){return s.value?re(()=>Reflect.apply(s.value.t,null,[...H])):re(()=>"")}function ee(...H){return s.value?Reflect.apply(s.value.rt,null,[...H]):""}function et(...H){return s.value?re(()=>Reflect.apply(s.value.d,null,[...H])):re(()=>"")}function xt(...H){return s.value?re(()=>Reflect.apply(s.value.n,null,[...H])):re(()=>"")}function st(H){return s.value?s.value.tm(H):{}}function At(H,ye){return s.value?s.value.te(H,ye):!1}function ft(H){return s.value?s.value.getLocaleMessage(H):{}}function _t(H,ye){s.value&&(s.value.setLocaleMessage(H,ye),g.value[H]=ye)}function vt(H,ye){s.value&&s.value.mergeLocaleMessage(H,ye)}function W(H){return s.value?s.value.getDateTimeFormat(H):{}}function te(H,ye){s.value&&(s.value.setDateTimeFormat(H,ye),_.value[H]=ye)}function le(H,ye){s.value&&s.value.mergeDateTimeFormat(H,ye)}function ie(H){return s.value?s.value.getNumberFormat(H):{}}function K(H,ye){s.value&&(s.value.setNumberFormat(H,ye),h.value[H]=ye)}function Se(H,ye){s.value&&s.value.mergeNumberFormat(H,ye)}const xe={get id(){return s.value?s.value.id:-1},locale:P,fallbackLocale:q,messages:M,datetimeFormats:ne,numberFormats:fe,get inheritLocale(){return s.value?s.value.inheritLocale:u},set inheritLocale(H){s.value&&(s.value.inheritLocale=H)},get availableLocales(){return s.value?s.value.availableLocales:Object.keys(g.value)},get modifiers(){return s.value?s.value.modifiers:A},get pluralRules(){return s.value?s.value.pluralRules:j},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:b},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:Z,setPostTranslationHandler:we,getMissingHandler:De,setMissingHandler:be,rt:ee,d:et,n:xt,tm:st,te:At,getLocaleMessage:ft,setLocaleMessage:_t,mergeLocaleMessage:vt,getDateTimeFormat:W,setDateTimeFormat:te,mergeDateTimeFormat:le,getNumberFormat:ie,setNumberFormat:K,mergeNumberFormat:Se};function Xe(H){H.locale.value=d.value,H.fallbackLocale.value=c.value,Object.keys(g.value).forEach(ye=>{H.mergeLocaleMessage(ye,g.value[ye])}),Object.keys(_.value).forEach(ye=>{H.mergeDateTimeFormat(ye,_.value[ye])}),Object.keys(h.value).forEach(ye=>{H.mergeNumberFormat(ye,h.value[ye])}),H.escapeParameter=D,H.fallbackFormat=w,H.fallbackRoot=b,H.fallbackWarn=p,H.missingWarn=F,H.warnHtmlMessage=B}return t.onBeforeMount(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw Vt(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,g.value=H.messages.value,_.value=H.datetimeFormats.value,h.value=H.numberFormats.value):r&&Xe(H)}),xe}const iB=["locale","fallbackLocale","availableLocales"],zm=["t","rt","d","n","tm","te"];function rB(e,n){const a=Object.create(null);return iB.forEach(r=>{const s=Object.getOwnPropertyDescriptor(n,r);if(!s)throw Vt(Je.UNEXPECTED_ERROR);const u=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,u)}),e.config.globalProperties.$i18n=a,zm.forEach(r=>{const s=Object.getOwnPropertyDescriptor(n,r);if(!s||!s.value)throw Vt(Je.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${r}`,s)}),()=>{delete e.config.globalProperties.$i18n,zm.forEach(r=>{delete e.config.globalProperties[`$${r}`]})}}if(DA(),__INTLIFY_JIT_COMPILATION__?Yh(lA):Yh(sA),JE(qE),$E(Vh),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=Ln();e.__INTLIFY__=!0,VE(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const oB={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"},sB={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"},Vm={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"},lB=Object.assign({en:oB,es:sB,"pt-br":Vm,"pt-BR":Vm}),Ni=XA({locale:"en",fallbackLocale:"en",messages:lB}),uB=["width","height"],wr=V(t.defineComponent({name:"UnnnicIconLoading",__name:"IconLoading",props:{scheme:{type:String,default:"fg-muted"},size:{type:String,default:"lg"}},setup(e){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,uB))],2))}}),[["__scopeId","data-v-0d2aa870"]]),dB=["disabled"],Dt=V(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),u=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),g=t.computed(()=>["primary","secondary","tertiary","warning","attention"].includes(c.value)),_=()=>{if(!d.value||!g.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)."),g.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,()=>{_()},{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:u.value,size:r.value,style:{position:"absolute"},"data-testid":"icon-loading"},null,8,["scheme","size"])):t.createCommentVNode("",!0),h.iconLeft?(t.openBlock(),t.createBlock(he,{key:1,icon:h.iconLeft,scheme:u.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(he,{key:2,icon:h.iconCenter,scheme:u.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(he,{key:4,icon:h.iconRight,scheme:u.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,dB))}}),[["__scopeId","data-v-d7396b6a"]]),cB={class:"month-container","data-testid":"date-picker-month-container"},fB=["onClick"],gB={class:"month-container","data-testid":"date-picker-month-container"},_B=["onClick"],hB={class:"month-container","data-testid":"date-picker-month-container"},mB=["onClick"],FB={key:3,class:"options-container","data-testid":"date-picker-options"},pB={key:0,class:"options"},bB=["onClick"],yB={class:"actions"},el=V(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=>({"98b98bce":D.value}));const i=e,r=a,s=new Date,u=t.ref(`${s.getMonth()+1} 1 ${s.getFullYear()}`),d=t.ref((i.initialStartDate||"").replace(/-/g," ")),c=t.ref((i.initialEndDate||"").replace(/-/g," ")),g=t.ref(""),_={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 te=((ie=(le=h==null?void 0:h.proxy)==null?void 0:le.$i18n)==null?void 0:ie.locale)||"en-us";return String(te).toLowerCase()}),p=t.computed(()=>{const W=i.months||[];return W.length?W:AC[F.value]}),b=t.computed(()=>{const W=i.days||[];return W.length?W:BC[F.value]}),w=t.computed(()=>{const W=i.options||[];return W.length?W:xC[F.value]}),E=t.computed(()=>i.clearLabel||Rs[F.value].clear),T=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[te,le]=W,ie=Object.keys(Ni.global.messages||{});let K=i.locale;const Se=Kt.get(Ni,"global.locale")==="en-us"?"en":Kt.get(Ni,"global.locale");K=K&&ie.includes(K)?K:Se,K=K==null?void 0:K.toLowerCase();let xe=Kt.get(i.translations,`${te}.${K}`,Kt.get(i.translations,te));if(xe||(xe=Kt.get(_,`${te}.${K}`,Kt.get(_,te,le))),xe!=null&&xe.includes("|")&&typeof W[1]=="number"){const H=W[1],ye=xe.split("|");ye.length===3?xe=ye[H]||ye[2]:ye.length===2&&(xe=H===1?ye[0]:ye[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:g,referenceDate:u,autoSelect:At,dateToString:j,getStartAndEndDateByPeriod:st,getDatesOfTheMonth:re});function j(W){return`${W.getMonth()+1} ${W.getDate()} ${W.getFullYear()}`}function I(W){return`${W.getMonth()+1} ${W.getFullYear()}`}function P(W){return W.getFullYear()}function q(W){const[te,le,ie]=W.split(" ");return new Date(Number(ie),Number(te)-1,Number(le)).getTime()}function M(W){return W.toString().split(" ")[1]}function ne(W){return Number(W.toString().split(" ")[0])}function fe(W){const[te,le,ie]=W.split(" ");return new Date(Number(ie),Number(te)-1,Number(le)).getFullYear()}function Z(W,te){const[le,ie,K]=W.split(" "),Se=new Date(Number(K),Number(le)-1,Number(ie));return Se.setMonth(Se.getMonth()+te),j(Se)}function we(W){if(d.value&&c.value){if(W>=q(d.value)&&W<=q(c.value))return!0}else{if(d.value&&W>=q(d.value))return!0;if(c.value&&W<=q(c.value))return!0}return!1}function De(W){if(d.value&&c.value){const te=q(d.value),le=q(c.value);return W>=te&&W<=le}if(d.value){const te=q(d.value);return W>=te}if(c.value){const te=q(c.value);return W<=te}return!1}function be(W){if(d.value&&c.value){const te=q(d.value),le=q(c.value);return W>=te&&W<=le}if(d.value){const te=q(d.value);return W>=te}if(c.value){const te=q(c.value);return W<=te}return!1}function re(W){const[te,le,ie]=W.split(" "),K=new Date(Number(ie),Number(te)-1,Number(le)),Se=K.getMonth(),xe=86400;K.setDate(1-K.getDay());const Xe=[];for(let H=0;H<6*7;H+=1){const ye=j(K),rt=[];if(i.minDate){const[$e,_e,ze]=i.minDate.split("-"),x=new Date(Number($e),Number(_e)-1,Number(ze));K<x&&rt.push("out of range")}if(i.maxDate){const[$e,_e,ze]=i.maxDate.split("-"),x=new Date(Number($e),Number(_e)-1,Number(ze));K>x&&rt.push("out of range")}if(Se===K.getMonth()){rt.push("inside month");const $e=q(j(K)),_e=$e-xe,ze=$e+xe;we($e)&&(rt.push("selected"),we(_e)||rt.push("left-highlighted"),we(ze)||rt.push("right-highlighted"),(rt.includes("left-highlighted")||rt.includes("right-highlighted"))&&rt.push("highlighted"))}j(K)===j(new Date)&&rt.push("today"),Xe.push({properties:rt,toString:()=>ye}),K.setDate(K.getDate()+1)}return Xe}function qe(W){const[te,le,ie]=W.split(" "),K=new Date(Number(ie),Number(te)-1,Number(le));K.setMonth(0);const Se=[];for(let xe=0;xe<3*4;xe+=1){const Xe=j(K),H=[];H.push("inside month");const ye=q(j(K)),rt=new Date(ye),$e=new Date(ye);rt.setMonth(rt.getMonth()-1),$e.setMonth($e.getMonth()+1);const _e=rt.getTime(),ze=$e.getTime();De(ye)&&(H.push("selected"),De(_e)||H.push("left-highlighted"),De(ze)||H.push("right-highlighted"),(H.includes("left-highlighted")||H.includes("right-highlighted"))&&H.push("highlighted")),I(K)===I(new Date)&&H.push("today"),Se.push({properties:H,date:Xe,toString:()=>Xe}),K.setMonth(K.getMonth()+1)}return Se}function ee(W){const[te,le,ie]=W.split(" "),K=new Date(Number(ie),Number(te)-1,Number(le));K.setMonth(0);const Se=[];for(let xe=0;xe<3*4;xe+=1){const Xe=j(K),H=[];H.push("inside month");const ye=q(j(K)),[rt,$e,_e]=W.split(" "),ze=new Date(Number(_e),Number(rt)-1,Number($e)),x=new Date(Number(_e),Number(rt)-1,Number($e));ze.setMonth(ze.getMonth()-12),x.setMonth(x.getMonth()+12);const N=ze.getTime(),Y=x.getTime();be(ye)&&(H.push("selected"),be(N)||H.push("left-highlighted"),be(Y)||H.push("right-highlighted"),(H.includes("left-highlighted")||H.includes("right-highlighted"))&&H.push("highlighted")),P(K)===P(new Date)&&H.push("today"),Se.push({properties:H,date:K.getFullYear(),toString:()=>Xe}),K.setFullYear(K.getFullYear()+1)}return Se}function et(W){if(!d.value||!c.value)d.value=W.toString(),c.value=d.value;else{const te=q(W.toString()),le=q(d.value),ie=q(c.value);le!==ie?(d.value=W.toString(),c.value=d.value):te>ie?c.value=W.toString():te<le?d.value=W.toString():te===le||te===ie?(d.value=W.toString(),c.value=d.value):te-le<ie-te?d.value=W.toString():c.value=W.toString()}}function xt(){d.value="",c.value="",g.value=""}function st(W){let te,le,ie;if(i.periodBaseDate){const Xe=i.periodBaseDate.split("-");if(Xe.length===3){const[H,ye,rt]=Xe;ie=new Date(Number(H),Number(ye)-1,Number(rt))}else{const H=new Date(i.periodBaseDate);ie=Number.isNaN(H.getTime())?new Date:H}}else ie=new Date;const K=new Date(ie.getTime()),Se=W.match(/^last-(\d+)-days$/),xe=W.match(/^last-(\d+)-months$/);if(Se){const Xe=Number(Se[1]);le=j(K),K.setDate(K.getDate()-Xe+1),te=j(K)}else if(xe){const Xe=Number(xe[1]);le=j(K),K.setDate(K.getDate()+1),K.setMonth(K.getMonth()-Xe),te=j(K)}else if(W==="current-month"){const Xe=ie.getDate();K.setDate(1),te=j(K),K.setDate(Xe),le=j(K)}else W==="previous-month"&&(K.setDate(1),K.setMonth(K.getMonth()-1),te=j(K),K.setMonth(K.getMonth()+1),K.setDate(0),le=j(K));return{startDate:te,endDate:le}}function At(W){const{startDate:te,endDate:le}=st(W);if(d.value=te||"",c.value=le||"",c.value){const ie=Z(u.value,1),K=`${Number(ne({toString:()=>c.value}))} 1 ${fe(c.value)}`;[u.value,ie].includes(K)||(u.value=K)}t.nextTick(()=>{g.value=W})}function ft(){if(r("submit",B.value),g.value==="custom")r("update:equivalentOption","");else{const W=w.value.find(({id:te})=>te===g.value);r("update:equivalentOption",(W==null?void 0:W.name)||"")}}function _t(){const{startDate:W,endDate:te}=B.value,le=(K,Se)=>!K||!Se?!1:new Date(K).getTime()===new Date(Se).getTime(),ie=w.value.find(({id:K})=>{const{startDate:Se,endDate:xe}=st(K);return le(W,Se)&&le(te,xe)});g.value=W||te?ie?ie.id:"custom":""}const vt=t.computed(()=>[Z(u.value,-1),u.value]);return t.watch(B,W=>{_t(),r("change",W)}),t.onMounted(()=>{_t()}),(W,te)=>(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(vt.value,(le,ie)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:le},[t.createElementVNode("div",cB,[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(K=>u.value=Z(u.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(ne(le))-1])+" "+t.toDisplayString(fe(le)),3)],2),t.createElementVNode("div",{class:t.normalizeClass(["days",`days--${W.size}`])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(b.value,(K,Se)=>(t.openBlock(),t.createElementBlock("div",{key:Se,class:"name"},t.toDisplayString(K),1))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(re(le),(K,Se)=>(t.openBlock(),t.createElementBlock("div",{key:`${le}-${Se}`,class:t.normalizeClass({disabled:!K.properties.includes("inside month")||K.properties.includes("out of range"),selectable:K.properties.includes("inside month")&&!K.properties.includes("out of range"),today:K.properties.includes("today"),selected:K.properties.includes("selected"),highlighted:K.properties.includes("highlighted"),left:K.properties.includes("left-highlighted"),right:K.properties.includes("right-highlighted")}),"data-testid":"date-picker-day",onClick:xe=>K.properties.includes("inside month")&&!K.properties.includes("out of range")&&et(K)},t.toDisplayString(M(K)),11,fB))),128))],2)]),te[4]||(te[4]=t.createElementVNode("div",{class:"divider"},null,-1))],64))),128)):W.type==="month"?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList([u.value],le=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:le},[t.createElementVNode("div",gB,[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:te[0]||(te[0]=ie=>u.value=Z(u.value,-12))},null,8,["type"]),t.createElementVNode("div",{class:t.normalizeClass(["label",`label--${W.size}`])},t.toDisplayString(fe(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:te[1]||(te[1]=ie=>u.value=Z(u.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,K)=>(t.openBlock(),t.createElementBlock("div",{key:`${le}-${K}`,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[ne(ie)-1].substr(0,3)),11,_B))),128))],2)]),te[5]||(te[5]=t.createElementVNode("div",{class:"divider"},null,-1))],64))),128)):W.type==="year"?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:2},t.renderList([u.value],le=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:le},[t.createElementVNode("div",hB,[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:te[2]||(te[2]=ie=>u.value=Z(u.value,-12*12))},null,8,["type"]),t.createElementVNode("div",{class:t.normalizeClass(["label",`label--${W.size}`])},t.toDisplayString(fe(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:te[3]||(te[3]=ie=>u.value=Z(u.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(ee(le),(ie,K)=>(t.openBlock(),t.createElementBlock("div",{key:`${le}-${K}`,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,mB))),128))],2)]),te[6]||(te[6]=t.createElementVNode("div",{class:"divider"},null,-1))],64))),128)):t.createCommentVNode("",!0),W.size!=="small"?(t.openBlock(),t.createElementBlock("div",FB,[W.hideOptions?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",pB,[(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:g.value===le.id}]),"data-testid":"date-picker-option",onClick:K=>le.id==="custom"?null:At(le.id)},t.toDisplayString(le.name),11,bB))),128))])),t.createElementVNode("div",yB,[W.disableClear?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(Dt,{key:0,size:"small",text:E.value,type:"tertiary","data-testid":"date-picker-clear",onClick:xt},null,8,["text"])),t.createVNode(Dt,{size:"small",text:T.value,type:"secondary","data-testid":"date-picker-submit",onClick:ft},null,8,["text"])])])):t.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-a1579a66"]]),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,u)=>(t.openBlock(),t.createBlock(t.unref(i6),t.normalizeProps(t.guardReactiveProps(t.unref(r))),{default:t.withCtx(()=>[t.renderSlot(s.$slots,"default")]),_:3},16))}}),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),u=t.useSlots(),d=ir(),c=gs(),g=p=>{const b=p.type;return(b==null?void 0:b.name)||(b==null?void 0:b.__name)},_=t.computed(()=>{var b;return(((b=u.default)==null?void 0:b.call(u))||[]).filter(w=>g(w)!=="UnnnicPopoverFooter")}),h=t.computed(()=>{var b;return(((b=u.default)==null?void 0:b.call(u))||[]).filter(w=>g(w)==="UnnnicPopoverFooter")}),F=t.computed(()=>a.width?a.width:{small:"240px",medium:"320px",large:"400px"}[a.size]);return(p,b)=>(t.openBlock(),t.createBlock(t.unref(g6),{to:t.unref(c)},{default:t.withCtx(()=>[t.createVNode(t.unref(c6),t.mergeProps({...t.unref(s),...p.$attrs},{style:{width:F.value,zIndex:t.unref(d)},class:t.unref(Qt)("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.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(_.value,(w,E)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(w),{key:E}))),128))],2),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(h.value,(w,E)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(w),{key:E}))),128))]),_:1},16,["style","class"])]),_:1},8,["to"]))}}),kB={class:"unnnic-popover__footer"},w1=t.defineComponent({name:"UnnnicPopoverFooter",__name:"PopoverFooter",setup(e){return(n,a)=>(t.openBlock(),t.createElementBlock("footer",kB,[t.renderSlot(n.$slots,"default")]))}}),Er=V(t.defineComponent({__name:"PopoverTrigger",props:{asChild:{type:Boolean},as:{}},setup(e){const n=e;return(a,i)=>(t.openBlock(),t.createBlock(t.unref(h6),t.mergeProps(n,{class:"unnnic-popover-trigger"}),{default:t.withCtx(()=>[t.renderSlot(a.$slots,"default",{},void 0,!0)]),_:3},16))}}),[["__scopeId","data-v-df136255"]]),tl=V(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.computed(()=>n.active?"fg-on-primary":n.disabled?"fg-muted":n.scheme);return(i,r)=>(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}])},[n.icon?(t.openBlock(),t.createBlock(he,{key:0,icon:n.icon,scheme:a.value,size:"ant"},null,8,["icon","scheme"])):t.createCommentVNode("",!0),t.createElementVNode("p",{class:t.normalizeClass(["unnnic-popover-option__label",`unnnic-popover-option__label--${a.value}`,`unnnic-popover-option--disabled: ${n.disabled}`])},t.toDisplayString(n.label),3)],2))}}),[["__scopeId","data-v-214e96e8"]]),D1=V(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=e,i=n,r=t.ref(!1),s=t.ref(""),u=t.computed(()=>a.position==="right"?"end":"start"),d=t.computed(()=>a.disableShowOverwrittenValue?c.value||"":s.value||c.value||""),c=t.computed(()=>{const b=[],{start:w,end:E}=a.modelValue||{};return w&&b.push(oe(w,a.format).format(a.inputFormat||"")),E&&b.push(oe(E,a.format).format(a.inputFormat||"")),b.length?b.join(" ~ "):String(a.inputFormat||"").replaceAll("-","/").toLowerCase()}),g=t.computed(()=>a.modelValue.start?oe(a.modelValue.start,a.format).format("MM DD YYYY"):void 0),_=t.computed(()=>a.modelValue.end?oe(a.modelValue.end,a.format).format("MM DD YYYY"):void 0);function h(b){const{startDate:w,endDate:E}=b,T={start:oe(w,"MM-DD-YYYY").format(a.format),end:oe(E,"MM-DD-YYYY").format(a.format)};i("selectDate",T)}function F(b){const w=b.startDate.replace(/(\d+)-(\d+)-(\d+)/,"$3-$1-$2"),E=b.endDate.replace(/(\d+)-(\d+)-(\d+)/,"$3-$1-$2");r.value=!1,i("update:model-value",{start:w?oe(w,"YYYY-MM-DD").format(a.format):null,end:E?oe(E,"YYYY-MM-DD").format(a.format):null})}function p(){r.value=!0}return(b,w)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["dropdown",{"fill-w":b.fillW}])},[t.createVNode(t.unref(Dr),{open:r.value,"onUpdate:open":w[1]||(w[1]=E=>r.value=E)},{default:t.withCtx(()=>[t.createVNode(t.unref(Er),{asChild:!0},{default:t.withCtx(()=>[t.createVNode(gn,{"data-testid":"input",class:t.normalizeClass(["input",{"date-picker-input-next":b.next}]),size:b.size,iconLeft:b.iconPosition==="left"?"calendar_month":void 0,iconRight:b.iconPosition==="right"?"calendar_month":void 0,readonly:"",modelValue:d.value,disabled:b.disabled,onClick:p,onFocus:p},null,8,["class","size","iconLeft","iconRight","modelValue","disabled"])]),_:1}),t.createVNode(t.unref(Cr),{width:"auto",side:"bottom",align:u.value,class:"date-picker-popover-content"},{default:t.withCtx(()=>[t.createVNode(el,{equivalentOption:s.value,"onUpdate:equivalentOption":w[0]||(w[0]=E=>s.value=E),"data-testid":"date-picker",variant:"popover",type:b.type,clearLabel:b.clearText,actionLabel:b.actionText,months:b.months,days:b.days,options:b.options,periodBaseDate:b.periodBaseDate,initialStartDate:g.value,initialEndDate:_.value,minDate:b.minDate,maxDate:b.maxDate,disableClear:b.disableClear,hideOptions:b.hideOptions,onChange:h,onSubmit:F},null,8,["equivalentOption","type","clearLabel","actionLabel","months","days","options","periodBaseDate","initialStartDate","initialEndDate","minDate","maxDate","disableClear","hideOptions"])]),_:1},8,["align"])]),_:1},8,["open"])],2))}}),[["__scopeId","data-v-6f66c34f"]]),wB={components:{UnnnicIcon:he},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 DB(e,n,a,i,r,s){const u=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createElementBlock("button",t.mergeProps({class:["button-icon",a.size,a.type]},e.$attrs),[t.createVNode(u,{icon:a.icon,scheme:s.iconScheme,size:"ant"},null,8,["icon","scheme"])],16)}const C1=V(wB,[["render",DB],["__scopeId","data-v-07258e26"]]),E1=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(E1),!0},CB=e=>{if(!(e!=null&&e[0]))throw new Error("Items property cannot be an empty array.");return e.forEach(E1),!0},EB=["title"],AB={key:0,class:"unnnic-sidebar-item-children"},BB=["onClick"],xB=["title"],al=V(Object.assign({name:"UnnnicSidebarItem"},{props:{item:{type:Object,required:!0,validator:E1},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:_,item:h}=a.active;typeof _=="number"&&_>=0&&h&&s()});const i=t.computed(()=>{var _;return!!((_=a.item.children)!=null&&_.length)}),r=t.ref(!1),s=()=>{r.value=!r.value,r.value&&a.autoNavigateFirstChild&&g("navigate",{item:a.item,child:a.item.children[0]})},u=_=>{const{item:h,childIndex:F}=a.active;return typeof F!="number"?h:h&&F===_},d=()=>{i.value?s():c()},c=()=>{a.active.item||g("navigate",{item:a.item,child:null})},g=n;return(_,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(he,{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,EB),(F=e.item.children)!=null&&F.length?(t.openBlock(),t.createBlock(he,{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",AB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.item.children,(p,b)=>(t.openBlock(),t.createElementBlock("li",{key:p,class:t.normalizeClass({"unnnic-sidebar-item-child":!0,active:u(b)}),"data-testid":"sidebar-item-child",onClick:t.withModifiers(w=>!u(b)&&g("navigate",{item:e.item,child:p}),["stop"])},[p.icon?(t.openBlock(),t.createBlock(he,{key:0,class:"unnnic-sidebar-item-child__icon",icon:p.icon,size:"ant",scheme:u(b)?"fg-accent":"fg-base"},null,8,["icon","scheme"])):t.createCommentVNode("",!0),t.createElementVNode("p",{class:t.normalizeClass({"unnnic-sidebar-item-child__label":!0,active:u(b)}),title:p.label},t.toDisplayString(p.label),11,xB)],10,BB))),128))])):t.createCommentVNode("",!0)]),_:1})],64)}}}),[["__scopeId","data-v-6c66c728"]]),vB={class:"unnnic-sidebar-items"},A1=V(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:CB},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:u})=>{i("navigate",{item:s,child:u})};return(s,u)=>(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",vB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(d,c)=>(t.openBlock(),t.createElementBlock("li",{key:d},[t.createVNode(al,{item:d,active:{item:e.active.itemIndex===c,childIndex:e.active.childIndex},autoNavigateFirstChild:e.autoNavigateFirstChild,"data-testid":"sidebar-item",onNavigate:u[0]||(u[0]=g=>r(g))},null,8,["item","active","autoNavigateFirstChild"])]))),128))]),t.renderSlot(s.$slots,"bottom",{class:"unnnic-sidebar-bottom"},void 0,!0)],2))}}),[["__scopeId","data-v-df7cccc8"]]),SB={name:"UnnnicTable",components:{},props:{items:{type:Array}},data(){return{value:!1}},computed:{}},jB={class:"unnnic-table"},qB={class:"header"},IB={class:"scroll"};function NB(e,n,a,i,r,s){return t.withDirectives((t.openBlock(),t.createElementBlock("div",jB,[t.createElementVNode("div",qB,[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",IB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.items,(u,d)=>(t.openBlock(),t.createElementBlock("div",{key:d,class:"item"},[t.renderSlot(e.$slots,"item",{item:u},void 0,!0)]))),128))])],512)),[[t.vShow,!0]])}const B1=V(SB,[["render",NB],["__scopeId","data-v-60422fd1"]]),TB={name:"UnnnicTableRow",props:{headers:{type:Array}},data(){return{}}},OB={class:"table-row"},MB={class:"break-text"};function PB(e,n,a,i,r,s){return t.openBlock(),t.createElementBlock("div",OB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.headers,(u,d)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:u.id},[t.createElementVNode("div",{class:"col",style:t.normalizeStyle({width:u.width,flex:u.flex,minWidth:0})},[t.renderSlot(e.$slots,u.id,{},()=>[t.createElementVNode("div",MB,t.toDisplayString(u.text),1)],!0)],4),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(["divider",{condensed:u.condensed}])},null,2),[[t.vShow,d+1!==a.headers.length]])],64))),128))])}const x1=V(TB,[["render",PB],["__scopeId","data-v-e163e6dd"]]);function Rm(e){return t.getCurrentScope()?(t.onScopeDispose(e),!0):!1}function Do(e){return typeof e=="function"?e():t.unref(e)}const Um=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const LB=Object.prototype.toString,zB=e=>LB.call(e)==="[object Object]",Co=()=>{},v1=VB();function VB(){var e,n;return Um&&((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 Hm={mounted:"mounted",unmounted:"unmounted"};function RB(...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 Ym=Um?window:void 0;function nl(...e){let n,a,i,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([a,i,r]=e,n=Ym):[n,a,i,r]=e,!n)return Co;Array.isArray(a)||(a=[a]),Array.isArray(i)||(i=[i]);const s=[],u=()=>{s.forEach(_=>_()),s.length=0},d=(_,h,F,p)=>(_.addEventListener(h,F,p),()=>_.removeEventListener(h,F,p)),c=t.watch(()=>[Eo(n),Do(r)],([_,h])=>{if(u(),!_)return;const F=zB(h)?{...h}:h;s.push(...a.flatMap(p=>i.map(b=>d(_,p,b,F))))},{immediate:!0,flush:"post"}),g=()=>{c(),u()};return Rm(g),g}let Gm=!1;function Wm(e,n,a={}){const{window:i=Ym,ignore:r=[],capture:s=!0,detectIframe:u=!1}=a;if(!i)return Co;v1&&!Gm&&(Gm=!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(b=>b===F.target||F.composedPath().includes(b));{const b=Eo(p);return b&&(F.target===b||F.composedPath().includes(b))}}),_=[nl(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}),nl(i,"pointerdown",F=>{const p=Eo(e);d=!c(F)&&!!(p&&!F.composedPath().includes(p))},{passive:!0}),u&&nl(i,"blur",F=>{setTimeout(()=>{var p;const b=Eo(e);((p=i.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!(b!=null&&b.contains(i.document.activeElement))&&n(F)},0)})].filter(Boolean);return()=>_.forEach(F=>F())}const il={[Hm.mounted](e,n){const a=!n.modifiers.bubble;if(typeof n.value=="function")e.__onClickOutside_stop=Wm(e,n.value,{capture:a});else{const[i,r]=n.value;e.__onClickOutside_stop=Wm(e,i,Object.assign({capture:a},r))}},[Hm.unmounted](e){e.__onClickOutside_stop()}};function S1(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function Qm(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:Qm(a)}}function UB(e){const n=e||window.event,a=n.target;return Qm(a)?!1:n.touches.length>1?!0:(n.preventDefault&&n.preventDefault(),!1)}const j1=new WeakMap;function HB(e,n=!1){const a=t.ref(n);let i=null,r="";t.watch(RB(e),d=>{const c=S1(Do(d));if(c){const g=c;if(j1.get(g)||j1.set(g,g.style.overflow),g.style.overflow!=="hidden"&&(r=g.style.overflow),g.style.overflow==="hidden")return a.value=!0;if(a.value)return g.style.overflow="hidden"}},{immediate:!0});const s=()=>{const d=S1(Do(e));!d||a.value||(v1&&(i=nl(d,"touchmove",c=>{UB(c)},{passive:!1})),d.style.overflow="hidden",a.value=!0)},u=()=>{const d=S1(Do(e));!d||!a.value||(v1&&(i==null||i()),d.style.overflow=r,j1.delete(d),a.value=!1)};return Rm(u),t.computed({get(){return a.value},set(d){d?s():u()}})}function YB(){let e=!1;const n=t.ref(!1);return(a,i)=>{if(n.value=i.value,e)return;e=!0;const r=HB(a,i.value);t.watch(n,s=>r.value=s)}}YB();const GB={name:"UnnnicDropdown",directives:{onClickOutside:il},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)}}}},WB={class:"unnnic-dropdown__trigger"};function QB(e,n,a,i,r,s){const u=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",WB,[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)),[[u,s.onClickOutside]]):t.createCommentVNode("",!0)])])}const Ao=V(GB,[["render",QB],["__scopeId","data-v-2f5344c2"]]),XB={name:"UnnnicDropdownItem"},KB={class:"unnnic-dropdown-item unnnic--clickable","data-testid":"dropdown-item"};function ZB(e,n,a,i,r,s){return t.openBlock(),t.createElementBlock("a",KB,[t.renderSlot(e.$slots,"default")])}const rl=V(XB,[["render",ZB]]),JB={components:{UnnnicIcon:he},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 $B(e,n,a,i,r,s){const u=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(u,{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=V(JB,[["render",$B],["__scopeId","data-v-0522f602"]]),ex={name:"UnnnicCard",components:{UnnnicIcon:he,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"}}},tx={class:"unnnic-card-dash"},ax={class:"header"},nx={class:"label"},ix={class:"content"},rx={class:"value"},ox={class:"label"};function sx(e,n,a,i,r,s){const u=t.resolveComponent("UnnnicAvatarIcon"),d=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createElementBlock("div",tx,[t.createElementVNode("div",ax,[t.createVNode(u,{size:"sm",scheme:a.scheme,icon:a.icon},null,8,["scheme","icon"]),t.createElementVNode("div",nx,t.toDisplayString(a.title),1)]),t.createElementVNode("div",ix,[t.createElementVNode("div",rx,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",ox,t.toDisplayString(a.percent>=0?`+${a.percent}%`:`${a.percent}%`),1)],2)):t.createCommentVNode("",!0)])])}const lx=V(ex,[["render",sx],["__scopeId","data-v-32f9b938"]]),ux={name:"UnnnicCard",components:{ToolTip:Xt,UnnnicIcon:he},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}}},dx={class:"unnnic-card-title"},cx={class:"title"};function fx(e,n,a,i,r,s){const u=t.resolveComponent("UnnnicIcon"),d=t.resolveComponent("ToolTip");return t.openBlock(),t.createElementBlock("div",dx,[t.createElementVNode("div",{class:t.normalizeClass(["avatar-icon",`unnnic-card-scheme--${a.scheme}`])},[t.createVNode(u,{icon:a.icon,scheme:a.scheme,size:"md"},null,8,["icon","scheme"])],2),t.createElementVNode("div",cx,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(u,{icon:"information-circle-4",class:"unnnic-card-title__content_info",size:"sm",scheme:"fg-muted"})]),_:1},8,["side","text","enabled"])):t.createCommentVNode("",!0)])}const Xm=V(ux,[["render",fx],["__scopeId","data-v-ff5285fa"]]),gx={name:"UnnnicCard",components:{UnnnicIcon:he},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}}},_x={class:"header"},hx={class:"label"},mx={class:"content"},Fx={class:"title-container"},px={class:"title"},bx={class:"description"};function yx(e,n,a,i,r,s){const u=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["unnnic-card-status",`unnnic-card-scheme--${a.scheme}--border`])},[t.createElementVNode("div",_x,[t.createVNode(u,{icon:a.icon,scheme:"fg-base",size:"md",class:"icon"},null,8,["icon"]),t.createElementVNode("div",hx,t.toDisplayString(a.title),1)]),t.createElementVNode("div",mx,[t.createElementVNode("div",Fx,[t.createVNode(u,{icon:"indicator",scheme:a.scheme,size:"sm"},null,8,["scheme"]),t.createElementVNode("div",px,t.toDisplayString(a.status),1)]),t.createElementVNode("div",bx,t.toDisplayString(a.description),1)])],2)}const kx=V(gx,[["render",yx],["__scopeId","data-v-784b6871"]]),wx={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}}},Dx={class:"icon"},Cx={class:"content"},Ex={class:"title"},Ax={class:"description"};function Bx(e,n,a,i,r,s){const u=t.resolveComponent("UnnnicAvatarIcon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass({"unnnic-card-account":!0,enabled:a.enabled})},[t.createElementVNode("div",Dx,[t.createVNode(u,{size:"xs",scheme:a.scheme,icon:a.icon,enabled:a.enabled},null,8,["scheme","icon","enabled"])]),t.createElementVNode("div",Cx,[t.createElementVNode("div",Ex,t.toDisplayString(a.title),1),t.createElementVNode("div",Ax,t.toDisplayString(a.description),1)])],2)}const xx=V(wx,[["render",Bx],["__scopeId","data-v-cd0328b9"]]),vx={name:"UnnnicCard",props:{title:{type:String,default:null},description:{type:String,default:null},clickable:{type:Boolean,default:!1}}},Sx={class:"unnnic-card-default__content"},jx={class:"unnnic-card-default__title"},qx=["title"];function Ix(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",Sx,[t.createElementVNode("div",jx,t.toDisplayString(a.title),1),t.createElementVNode("p",{class:"unnnic-card-default__description",title:a.description},t.toDisplayString(a.description),9,qx)])],2)}const Nx=V(vx,[["render",Ix]]),Tx={name:"UnnnicCard",components:{UnnnicIcon:he},props:{text:{type:String,default:null},icon:{type:String,default:null},clickable:{type:Boolean,default:!1}}},Ox={class:"unnnic-card-blank__content"},Mx={class:"unnnic-card-blank__content__text"};function Px(e,n,a,i,r,s){const u=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",Ox,[t.createVNode(u,{icon:a.icon,scheme:"fg-base",class:"unnnic-card-blank__content__icon",size:"xl"},null,8,["icon"]),t.createElementVNode("div",Mx,t.toDisplayString(a.text),1)])],2)}const Lx=V(Tx,[["render",Px]]),zx={name:"UnnnicCard",components:{UnnnicIcon:he},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}}},Vx={class:"unnnic-card-content__content"},Rx={class:"unnnic-card-content__content__title"},Ux={class:"unnnic-card-content__content__description"};function Hx(e,n,a,i,r,s){const u=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(u,{icon:a.icon,scheme:"fg-base",size:"sm"},null,8,["icon"])],2),t.createElementVNode("div",Vx,[t.createElementVNode("div",Rx,t.toDisplayString(a.title),1),t.createElementVNode("div",Ux,t.toDisplayString(a.description),1)])],2)}const Yx=V(zx,[["render",Hx]]),Gx={name:"UnnnicCard",components:{UnnnicIcon:he},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")}}},Wx={class:t.normalizeClass(["unnnic-card-marketplace__icons"])},Qx=["src"],Xx={class:"unnnic-card-marketplace__content"},Kx={class:"unnnic-card-marketplace__content__title"},Zx=["title"],Jx={key:0,class:"unnnic-card-marketplace__content__rating"},$x={class:"unnnic-card-marketplace__content__rating__value"},ev={class:"unnnic-card-marketplace__content__rating__comments"};function tv(e,n,a,i,r,s){const u=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",Wx,[t.createElementVNode("img",{class:"unnnic-card-marketplace__icons__app",src:a.iconSrc},null,8,Qx),t.renderSlot(e.$slots,"actions")]),t.createElementVNode("div",Xx,[t.createElementVNode("div",Kx,t.toDisplayString(a.title),1),t.createElementVNode("div",{class:"unnnic-card-marketplace__content__description",title:a.description},t.toDisplayString(a.description),9,Zx),a.typeAction==="add"?(t.openBlock(),t.createElementBlock("div",Jx,[t.createVNode(u,{class:"unnnic-card-marketplace__content__rating__star",scheme:"feedback-yellow",icon:"rating-star-1",size:"ant",filled:""}),t.createElementVNode("div",$x,t.toDisplayString(a.rating),1),t.createElementVNode("div",ev," ("+t.toDisplayString(a.comments)+") ",1)])):t.createCommentVNode("",!0)])],2)}const av=V(Gx,[["render",tv]]),nv={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"?Xm:this.type==="dash"?lx:this.type==="status"?kx:this.type==="account"?xx:this.type==="default"?Nx:this.type==="blank"?Lx:this.type==="content"?Yx:this.type==="marketplace"?av:Xm}},methods:{openModal(){this.$emit("openModal")}}};function iv(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,(u,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 q1=V(nv,[["render",iv]]),I1={name:"UnnnicSimpleCard",components:{UnnnicToolTip:Xt,UnnnicIcon:he},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"]},Km=()=>{t.useCssVars(e=>({"503b66d5":e.titleSize}))},Zm=I1.setup;I1.setup=Zm?(e,n)=>(Km(),Zm(e,n)):Km;const rv={key:0,class:"unnnic-simple-card__header"},ov={class:"unnnic-simple-card-header-container"},sv={class:"unnnic-simple-card-header-container__title"},lv={key:0,class:"unnnic-simple-card__header-slot"},uv=["title"],dv={key:2,class:"unnnic-simple-card__footer"};function cv(e,n,a,i,r,s){const u=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",rv,[t.createElementVNode("section",ov,[t.createElementVNode("h1",sv,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(u,{icon:"info",size:"nano",scheme:"fg-base"})]),_:1},8,["text"])):t.createCommentVNode("",!0)]),e.$slots.headerSlot?(t.openBlock(),t.createElementBlock("section",lv,[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,uv)):t.createCommentVNode("",!0),e.$slots.footer?(t.openBlock(),t.createElementBlock("section",dv,[t.renderSlot(e.$slots,"footer",{},void 0,!0)])):t.createCommentVNode("",!0)],2)}const N1=V(I1,[["render",cv],["__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 u=Kt.get(this.translations,`${n}.${r}`,Kt.get(this.translations,n));if(u||(u=Kt.get(Kt.get(this.defaultTranslations,n),r,a)),u!=null&&u.includes("|")&&typeof e[1]=="number"){const c=e[1],g=u.split("|");g.length===3?u=g[c]||g[2]:g.length===2&&(u=c===1?g[0]:g[1])}let d={};return Object.values(e).slice(1).forEach(c=>{!(c instanceof Array)&&c instanceof Object&&(d=c)}),Object.keys(d).forEach(c=>{u=u==null?void 0:u.replaceAll(new RegExp(`{ *${c} *}`,"g"),d[c])}),u}}},fv={class:"chip__text"},ol=V(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),u=t.computed(()=>a.isSelected?"chip__count--is-selected":""),d=t.computed(()=>a.isSelected?"chip--is-selected":"");return(c,g)=>(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",fv,t.toDisplayString(c.text),1),c.count?(t.openBlock(),t.createElementBlock("p",{key:0,class:t.normalizeClass(["chip__count",u.value])},t.toDisplayString(c.count),3)):t.createCommentVNode("",!0),t.renderSlot(c.$slots,"right",{},void 0,!0),c.type==="multiple"?(t.openBlock(),t.createBlock(he,{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"]]),gv={key:0,class:"unnnic-tag__icon"},_v={class:t.normalizeClass("unnnic-tag__label")},hv=V(t.defineComponent({__name:"DefaultTag",props:{text:{default:void 0},size:{default:"medium"},scheme:{default:"aux-purple"},leftIcon:{default:void 0}},setup(e){t.useCssVars(r=>({"007074d2":i.value}));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:u})=>u.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}`)},[r.leftIcon?(t.openBlock(),t.createElementBlock("section",gv,[t.createVNode(he,{icon:r.leftIcon,scheme:"fg-emphasized",size:"sm"},null,8,["icon"])])):t.createCommentVNode("",!0),t.createElementVNode("p",_v,t.toDisplayString(r.text),1)],2))}}),[["__scopeId","data-v-fae8d172"]]),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(ol,{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(hv,{key:1,size:n.type==="next"?"small":n.size,text:n.text,scheme:n.scheme,leftIcon:n.leftIcon},null,8,["size","text","scheme","leftIcon"]))}}),mv={components:{UnnnicTag:Ar},mixins:[$a],props:{oldVersion:Boolean,name:String,description:String,plan:String,actionText:String},data(){return{isOptionsOpen:!1}}},Fv={class:"name"},pv={class:"description"},bv={key:1};function yv(e,n,a,i,r,s){const u=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]=g=>e.$emit("enter"))},[t.createElementVNode("div",null,[t.createElementVNode("h2",Fv,t.toDisplayString(a.name),1),t.createElementVNode("p",pv,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(u,{key:0,class:"action",clickable:"",text:a.actionText,scheme:"aux-blue",onClick:n[0]||(n[0]=g=>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]=g=>r.isOptionsOpen=g),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 T1=V(mv,[["render",yv],["__scopeId","data-v-dac06e20"]]),kv={components:{UnnnicIcon:he},props:{title:{type:String},description:{type:String},score:{type:String},info:{type:String},checked:{type:Boolean,default:!1}}},wv={class:"card"},Dv={class:"header"},Cv={class:"title"},Ev={key:0,class:"check"},Av={class:"description"},Bv={key:0,class:"footer"},xv={class:"evaluation"},vv={class:"info"};function Sv(e,n,a,i,r,s){const u=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createElementBlock("div",wv,[t.createElementVNode("div",Dv,[t.createElementVNode("div",Cv,t.toDisplayString(a.title),1),a.checked?(t.openBlock(),t.createElementBlock("div",Ev,[t.createVNode(u,{size:"md",icon:"check-circle-1-1-1",scheme:"feedback-green"})])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Av,t.toDisplayString(a.description),1),a.score||a.info?(t.openBlock(),t.createElementBlock("div",Bv,[t.createElementVNode("div",xv,[a.score?(t.openBlock(),t.createBlock(u,{key:0,size:"sm",icon:"rating-star-1",scheme:"feedback-yellow"})):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(a.score)+" ",1),t.createElementVNode("span",vv,t.toDisplayString(a.info),1)])])):t.createCommentVNode("",!0)])}const O1=V(kv,[["render",Sv],["__scopeId","data-v-0ebd61ad"]]),jv={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)}}},qv={class:"unnnic-checkbox"},Iv=["disabled","checked"],Nv={key:0,class:"unnnic-checkbox__helper"};function Tv(e,n,a,i,r,s){return t.openBlock(),t.createElementBlock("section",qv,[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]=(...u)=>s.click&&s.click(...u))}),null,16,Iv),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",Nv,t.toDisplayString(a.helper),1)):t.createCommentVNode("",!0)])}const Br=V(jv,[["render",Tv],["__scopeId","data-v-14c8c277"]]),Ov={components:{UnnnicIcon:he,UnnnicCheckbox:Br,UnnnicAvatarIcon:Ti,UnnnicDropdown:Ao},props:{modelValue:Boolean,title:String,description:String,image:String,data:{type:Array,default(){return[]}}}},Mv={class:"header"},Pv={class:"content"},Lv={key:0,class:"u font secondary body-lg bold color-fg-emphasized"},zv={key:1,class:"u font secondary body-md color-fg-base"},Vv=["src"],Rv={key:0,class:"details"},Uv={class:"u font secondary body-gt color-fg-base"},Hv={class:"value-container"},Yv={class:"u font secondary body-gt color-fg-emphasized"};function Gv(e,n,a,i,r,s){const u=t.resolveComponent("UnnnicCheckbox"),d=t.resolveComponent("UnnnicIcon"),c=t.resolveComponent("UnnnicDropdown"),g=t.resolveComponent("UnnnicAvatarIcon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["unnnic-card-image",{checked:a.modelValue}])},[t.createElementVNode("div",Mv,[t.createElementVNode("div",Pv,[a.title?(t.openBlock(),t.createElementBlock("div",Lv,t.toDisplayString(a.title),1)):t.createCommentVNode("",!0),a.description?(t.openBlock(),t.createElementBlock("div",zv,t.toDisplayString(a.description),1)):t.createCommentVNode("",!0)]),t.createVNode(u,{modelValue:a.modelValue,onChange:n[0]||(n[0]=_=>e.$emit("update:model-value",_))},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,Vv),a.data.length?(t.openBlock(),t.createElementBlock("div",Rv,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.data,(_,h)=>(t.openBlock(),t.createElementBlock("div",{key:h,class:"data"},[t.createElementVNode("div",Uv,t.toDisplayString(_.name),1),t.createElementVNode("div",Hv,[t.createVNode(g,{icon:_.icon,size:"xs",scheme:_.scheme},null,8,["icon","scheme"]),t.createElementVNode("div",Yv,t.toDisplayString(_.value),1)])]))),128))])):t.createCommentVNode("",!0)],2)}const M1=V(Ov,[["render",Gv],["__scopeId","data-v-d331e392"]]),Wv={components:{UnnnicIcon:he,UnnnicDropdown:Ao,UnnnicDropdownItem:rl},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)}}},Qv={class:"unnnic-card-project__header"},Xv=["title"],Kv={class:"unnnic-card-project__description"},Zv=["title"],Jv={class:"unnnic-card-project__bottom"},$v={class:"unnnic-card-project__status-options-container"};function eS(e,n,a,i,r,s){const u=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((...g)=>s.emitClick&&s.emitClick(...g),["left","exact"])),n[4]||(n[4]=t.withModifiers(g=>s.emitClick({button:1}),["ctrl"]))],onMouseup:n[3]||(n[3]=t.withModifiers((...g)=>s.emitClick&&s.emitClick(...g),["middle","exact","prevent"]))},[t.createElementVNode("section",Qv,[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,Xv),s.showActions?(t.openBlock(),t.createBlock(d,{key:0,position:"bottom-left","data-testid":"dropdown-actions"},{trigger:t.withCtx(()=>[t.createVNode(u,{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",Kv,[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,Zv)]),t.createElementVNode("section",Jv,[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(g=>s.handlerDropdownOpen(),["stop"]))},[t.createElementVNode("p",null,t.toDisplayString(e.i18n(a.status)),1),a.canUpdateStatus?(t.openBlock(),t.createBlock(u,{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]=g=>r.openDropdown=g)},{default:t.withCtx(()=>[t.createElementVNode("section",$v,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.statusOptions,g=>(t.openBlock(),t.createBlock(c,{key:g,class:"status-option",onClick:_=>s.handlerClickDropdownItem(g)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.i18n(g)),1)]),_:2},1032,["onClick"]))),128))])]),_:1},8,["open"])],2)])],34)}const P1=V(Wv,[["render",eS],["__scopeId","data-v-e9dc5349"]]),tS={components:{UnnnicAvatarIcon:Ti,UnnnicToolTip:Xt,UnnnicIcon:he},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}}},aS={class:"unnnic-card-container"},nS={class:"header"},iS={class:"title"},rS=["title"],oS={key:0,class:"subtitle"},sS={key:0,class:"description"},lS={key:1,class:"description-row-container"},uS={key:0,class:"description-row"},dS={class:"title"},cS={class:"content"},fS={class:"number"};function gS(e,n,a,i,r,s){const u=t.resolveComponent("UnnnicIcon"),d=t.resolveComponent("UnnnicToolTip"),c=t.resolveComponent("UnnnicAvatarIcon");return t.openBlock(),t.createElementBlock("div",aS,[t.createElementVNode("div",nS,[t.createElementVNode("div",iS,[t.createElementVNode("span",{class:"name",title:a.name.length>25?a.name:null},t.toDisplayString(a.name),9,rS),a.subtitle?(t.openBlock(),t.createElementBlock("div",oS,t.toDisplayString(a.subtitle),1)):t.createCommentVNode("",!0)]),t.renderSlot(e.$slots,"header-buttons",{},void 0,!0)]),a.description?(t.openBlock(),t.createElementBlock("div",sS,t.toDisplayString(a.description),1)):t.createCommentVNode("",!0),a.descriptionRow||a.descriptionRowInfo?(t.openBlock(),t.createElementBlock("div",lS,[a.descriptionRow?(t.openBlock(),t.createElementBlock("div",uS,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(u,{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:_,class:"status"},[t.createElementVNode("div",dS,t.toDisplayString(g.title),1),t.createElementVNode("div",cS,[t.createVNode(c,{icon:g.icon,scheme:g.scheme,size:"xs"},null,8,["icon","scheme"]),t.createElementVNode("div",fS,t.toDisplayString(g.count),1)])]))),128))],4)])}const _S={components:{CardStatusesContainer:V(tS,[["render",gS],["__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 hS(e,n,a,i,r,s){const u=t.resolveComponent("CardStatusesContainer");return t.openBlock(),t.createBlock(u,{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 L1=V(_S,[["render",hS],["__scopeId","data-v-ee17403c"]]),mS={class:"unnnic-checkbox-group__checkboxes"},FS={key:1,class:"unnnic-checkbox-group__helper"},z1=V(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",mS,[t.renderSlot(n.$slots,"default",{},void 0,!0)]),n.helper?(t.openBlock(),t.createElementBlock("footer",FS,t.toDisplayString(n.helper),1)):t.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-f03f56c7"]]),pS={class:"unnnic-collapse__body"},V1=V({__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,u)=>(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:u[0]||(u[0]=d=>r.value=!r.value)},[t.createTextVNode(t.toDisplayString(e.title),1),t.renderSlot(s.$slots,"header",{},void 0,!0),t.createVNode(he,{size:"ant",icon:r.value?"arrow-button-up-1":"arrow-button-down-1",scheme:"fg-base"},null,8,["icon"])]),t.withDirectives(t.createElementVNode("div",pS,[t.renderSlot(s.$slots,"default",{},void 0,!0)],512),[[t.vShow,r.value]])],2))}},[["__scopeId","data-v-cc0e62a7"]]),bS={class:"unnnic-radio"},yS=["disabled","checked","name"],kS={key:0,class:"unnnic-radio__helper"},R1=V({__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 u(){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)(g.$attrs,["id"]),{onChange:u}),null,16,yS),t.createElementVNode("p",{class:t.normalizeClass(["unnnic-radio__label",{"unnnic-radio__label--disabled":e.disabled}])},[t.createTextVNode(t.toDisplayString(e.label)+" ",1),t.renderSlot(g.$slots,"default",{},void 0,!0)],2),e.helper?(t.openBlock(),t.createElementBlock("footer",kS,t.toDisplayString(e.helper),1)):t.createCommentVNode("",!0)],2)]))}},[["__scopeId","data-v-9f51b54f"]]),wS={class:"unnnic-radio-group__radios"},DS={key:1,class:"unnnic-radio-group__helper"},U1=V(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,u=>{u!==r.value&&(r.value=u)}),t.watch(r,u=>{u!==a.modelValue&&i("update:modelValue",u)});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),(u,d)=>(t.openBlock(),t.createElementBlock("section",{class:t.normalizeClass(["unnnic-radio-group__container",`unnnic-radio-group--state-${u.state}`])},[u.label?(t.openBlock(),t.createBlock(Ci,{key:0,label:u.label,tooltip:u.labelTooltip,class:"unnnic-radio-group__label"},null,8,["label","tooltip"])):t.createCommentVNode("",!0),t.createElementVNode("section",wS,[t.renderSlot(u.$slots,"default",{},void 0,!0)]),u.helper?(t.openBlock(),t.createElementBlock("footer",DS,t.toDisplayString(u.helper),1)):t.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-d5af6106"]]),CS={name:"Flag",components:{UnnnicIcon:he},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 ES(e,n,a,i,r,s){const u=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createBlock(u,{icon:s.name,size:a.size},null,8,["icon","size"])}const AS={name:"LanguageSelect",components:{UnnnicFlag:V(CS,[["render",ES]]),UnnnicIcon:he},directives:{onClickOutside:il},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)}}},BS={key:0,class:"unnnic-language-select contracted"},xS={class:"option"},vS=["onClick"],SS={key:1,class:"unnnic-language-select normal"},jS={class:"option"},qS={class:"label"},IS=["onClick"],NS={class:"label"},TS={class:"option"},OS={class:"label"};function MS(e,n,a,i,r,s){const u=t.resolveComponent("UnnnicFlag"),d=t.resolveComponent("UnnnicIcon"),c=t.resolveDirective("on-click-outside");return a.contracted?t.withDirectives((t.openBlock(),t.createElementBlock("div",BS,[t.createElementVNode("div",{class:t.normalizeClass(["container contracted",{open:r.open}]),onClick:n[0]||(n[0]=(...g)=>s.onClickTrigger&&s.onClickTrigger(...g))},[t.createElementVNode("div",xS,[t.createVNode(u,{size:"sm",code:r.val},null,8,["code"])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.otherLanguages,g=>(t.openBlock(),t.createElementBlock("div",{key:g.id,class:"option",onClick:_=>r.val=g.id},[t.createVNode(u,{size:"sm",code:g.id},null,8,["code"])],8,vS))),128))],2)])),[[c,s.onClickOutside]]):t.withDirectives((t.openBlock(),t.createElementBlock("div",SS,[t.createElementVNode("div",{class:t.normalizeClass(["container normal",{open:r.open}]),onClick:n[1]||(n[1]=(...g)=>s.onClickTrigger&&s.onClickTrigger(...g))},[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",jS,[t.createVNode(u,{size:"sm",code:r.val},null,8,["code"]),t.createElementVNode("div",qS,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,g=>(t.openBlock(),t.createElementBlock("div",{key:g.id,class:"option",onClick:_=>r.val=g.id},[t.createVNode(u,{size:"sm",code:g.id},null,8,["code"]),t.createElementVNode("div",NS,t.toDisplayString(s.languages[g.id]),1)],8,IS))),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",TS,[t.createVNode(u,{size:"sm",code:r.val},null,8,["code"]),t.createElementVNode("div",OS,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 H1=V(AS,[["render",MS]]),PS={name:"UnnnicModal",components:{UnnnicIcon:he},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")}}},LS={ref:"modal",class:"unnnic-modal-container-background"},zS={class:"unnnic-modal-container-background-body"},VS={key:0,class:"unnnic-modal-container-background-body-close_icon"},RS={key:1,class:"unnnic-modal-container-background-body__icon-slot"},US={class:"unnnic-modal-container-background-body-title"},HS={class:"unnnic-modal-container-background-body-description-container"},YS={class:"unnnic-modal-container-background-body-description"},GS={key:0,class:"unnnic-modal-container-background-report"},WS={key:1,class:"unnnic-modal-container-background-button"};function QS(e,n,a,i,r,s){const u=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",LS,[t.createElementVNode("div",zS,[a.closeIcon?(t.openBlock(),t.createElementBlock("div",VS,[t.createVNode(u,{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",RS,[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(u,{scheme:a.scheme,icon:a.modalIcon,size:"xl"},null,8,["scheme","icon"])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",US,t.toDisplayString(a.text),1)]),t.createElementVNode("div",HS,[t.createElementVNode("div",YS,[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",GS,t.toDisplayString(a.alertMessage),1)):t.createCommentVNode("",!0),s.hasButton?(t.openBlock(),t.createElementBlock("div",WS,[t.renderSlot(e.$slots,"options",{},void 0,!0)])):t.createCommentVNode("",!0)],512)])],16)):t.createCommentVNode("",!0)]),_:3})}const sl=V(PS,[["render",QS],["__scopeId","data-v-bc6e5f19"]]),Jm={"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(Jm);const $m={"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($m);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 XS{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 u=!0;for(let d of r){const c=d.startsWith("*");if(d=c?d.slice(1):d,s==null||s.add(d),u&&Ia(this,Bo,"f").set(i,d),u=!1,c)continue;const g=Ia(this,xr,"f").get(d);if(g&&g!=i&&!a)throw new Error(`"${i} -> ${d}" conflicts with "${g} -> ${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 KS=new XS($m,Jm)._freeze(),ZS={class:"unnnic-upload-area__dropzone__content"},JS={class:"unnnic-upload-area__dropzone__content__title"},$S=["title"],ej=["accept","multiple"],ll=V({__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.ref(),u=t.useTemplateRef("file"),d=e,c=n,g=t.getCurrentInstance();function _(q){var M,ne;return!!((ne=(M=g==null?void 0:g.vnode)==null?void 0:M.props)!=null&&ne[q])}const h=t.computed(()=>d.supportedFormats.split(",").map(M=>M.toUpperCase()).join(", "));function F(){d.disabled||(r.value+=1,a.value=!0)}function p(){d.disabled||(a.value=!0)}function b(){d.disabled||(r.value-=1,r.value===0&&(a.value=!1))}function w(){d.disabled||(a.value=!1)}function E(q){if(d.disabled)return;a.value=!1;const{files:M}=q.dataTransfer;A(M)&&P(M)}function T(){d.disabled||u.value.click()}function B(q){if(d.disabled)return;const{files:M}=q.target;A(M)&&P(M),s.value.value=""}function D(){i.value=!0,setTimeout(()=>{i.value=!1},5e3)}function A(q){return!d.acceptMultiple&&q.length>1?(D(),!1):j(q)?I(q)?!0:(_("onExceededTheMaximumFileSizeLimit")?c("exceededTheMaximumFileSizeLimit"):D(),!1):(_("onUnsupportedFormat")?c("unsupportedFormat"):D(),!1)}function j(q){if(d.supportedFormats==="*")return!0;const M=d.supportedFormats.split(",").map(fe=>fe.trim());return Array.from(q).find(fe=>{const Z=fe.name.toLowerCase(),we=fe.type.toLowerCase(),De=`.${Z.split(".").pop()}`,be=M.includes(De),re=we===KS.getType(Z);return be&&re})}function I(q){return d.maxFileSize?Array.from(q).find(ne=>(ne.size/1048576).toFixed(2)<=d.maxFileSize):!0}function P(q){let M=q.length;if(d.shouldReplace||(M+=d.currentFiles.length),M>d.maximumUploads){D();return}const ne=Array.from(q).filter(Z=>!!(j([Z])&&I([Z])));let fe;d.shouldReplace?fe=ne:fe=d.currentFiles.concat(ne),c("update:currentFiles",fe),c("fileChange",fe)}return(q,M)=>(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(F,["stop","prevent"]),onDragover:t.withModifiers(p,["stop","prevent"]),onDragleave:t.withModifiers(b,["stop","prevent"]),onDragend:t.withModifiers(w,["stop","prevent"]),onDrop:t.withModifiers(E,["stop","prevent"]),onClick:T},[t.createVNode(he,{class:"unnnic-upload-area__dropzone__icon",icon:"upload",scheme:i.value?"feedback-red":"weni-500",size:"lg"},null,8,["scheme"]),t.createElementVNode("div",ZS,[t.createElementVNode("span",JS,[t.renderSlot(q.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(q.$t("upload_area.title.text"))+" ",1),t.createElementVNode("span",{class:t.normalizeClass(`unnnic-upload-area__dropzone__content__title__${i.value?"error":"search"}`)},t.toDisplayString(q.$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:h.value},[t.renderSlot(q.$slots,"subtitle",{},()=>[t.createTextVNode(t.toDisplayString(e.subtitle||`${q.$t(`upload_area${i.value?".invalid":""}.subtitle`)} ${h.value}`),1)],!0)],10,$S)]),t.withDirectives(t.createElementVNode("input",{ref_key:"file",ref:s,type:"file",accept:e.supportedFormats,multiple:e.acceptMultiple,onInput:B},null,40,ej),[[t.vShow,!1]])],34))}},[["__scopeId","data-v-ee8a4825"]]),tj={name:"ImportCard",components:{UnnnicButton:Dt,UnnnicIcon:he},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")}}},aj={class:"unnnic-import-card"},nj={class:"unnnic-import-card__data"},ij={key:0,class:"unnnic-import-card__data__title"},rj={key:1,class:"unnnic-import-card__data__title"},oj={key:2,class:"unnnic-import-card__data__subtitle"},sj={key:0,class:"unnnic-import-card__data__subtitle__text"},lj={key:1,class:"unnnic-import-card__data__subtitle__progress"},uj={class:"unnnic-import-card__buttons"},dj=["accept"];function cj(e,n,a,i,r,s){const u=t.resolveComponent("UnnnicIcon"),d=t.resolveComponent("UnnnicButton");return t.openBlock(),t.createElementBlock("div",aj,[t.createVNode(u,{class:"unnnic-import-card__file-icon",size:"md",scheme:"weni-600",icon:s.fileIcon},null,8,["icon"]),t.createElementVNode("div",nj,[a.isImporting?(t.openBlock(),t.createElementBlock("div",ij,t.toDisplayString(e.$t("import_card.importing"))+"... ",1)):(t.openBlock(),t.createElementBlock("div",rj,t.toDisplayString(a.title),1)),a.subtitle&&a.isImporting?(t.openBlock(),t.createElementBlock("div",oj,[a.subtitle&&a.isImporting?(t.openBlock(),t.createElementBlock("div",sj,t.toDisplayString(a.subtitle),1)):t.createCommentVNode("",!0),a.subtitle&&a.isImporting?(t.openBlock(),t.createElementBlock("div",lj,"  - "+t.toDisplayString(a.importProgress)+"% ",1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",uj,[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,dj)]),_:1},8,["iconCenter","onClick"])):t.createCommentVNode("",!0),a.canDelete?(t.openBlock(),t.createBlock(u,{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 ul=V(tj,[["render",cj],["__scopeId","data-v-ae2cb257"]]),fj={name:"UnnnicUploadArea",components:{UnnnicDropArea:ll,UnnnicImportCard:ul},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()}}},gj={key:0,class:"unnnic-upload-area__cards"};function _j(e,n,a,i,r,s){const u=t.resolveComponent("UnnnicDropArea"),d=t.resolveComponent("UnnnicImportCard");return t.openBlock(),t.createElementBlock("div",null,[t.createVNode(u,{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",gj,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.currentFiles,(c,g)=>(t.openBlock(),t.createBlock(d,{key:g,title:c.name,subtitle:c.name,isImporting:a.isUploading,importProgress:a.filesProgress[g]||100,canImport:a.canImport,canDelete:a.canDelete,acceptedFormats:a.supportedFormats,uploadIcon:"button-refresh-arrows-1",onDelete:_=>s.removeFile(g),onModifiedFile:_=>s.modifyFile(g,_)},null,8,["title","subtitle","isImporting","importProgress","canImport","canDelete","acceptedFormats","onDelete","onModifiedFile"]))),128))])):t.createCommentVNode("",!0)])}const dl=V(fj,[["render",_j],["__scopeId","data-v-872a45ed"]]),hj={components:{UnnnicUploadArea:dl,UnnnicIcon:he,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{}}},mj={class:"modal-upload"},Fj={class:"close-button-container"},pj={class:"title"},bj={class:"footer"};function yj(e,n,a,i,r,s){const u=t.resolveComponent("UnnnicIcon"),d=t.resolveComponent("UnnnicUploadArea"),c=t.resolveComponent("UnnnicButton");return t.openBlock(),t.createElementBlock("div",mj,[t.createElementVNode("div",Fj,[t.createVNode(u,{class:"close-button",icon:"close-1",scheme:"fg-base",size:"sm",clickable:"",onClick:n[0]||(n[0]=g=>e.$emit("close"))})]),t.createElementVNode("div",pj,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]=g=>e.$emit("file-change",g))},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]=g=>e.$emit("cancel"))},null,8,["text"]),t.createVNode(c,{size:"large",type:"primary",text:a.textAction,onClick:n[3]||(n[3]=g=>e.$emit("action"))},null,8,["text"])])])}const Y1=V(hj,[["render",yj],["__scopeId","data-v-02afb3f6"]]),kj={components:{UnnnicIcon:he},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")}}},wj={ref:"alertContainer",class:"alert-container"},Dj={ref:"progress",class:"alert__progress"};function Cj(e,n,a,i,r,s){const u=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createElementBlock("div",wj,[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",Dj,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(u,{icon:"close-1",size:"sm",scheme:"fg-inverted"})])],2)],512)}const Ej=V(kj,[["render",Cj],["__scopeId","data-v-fb34701b"]]),Aj=["role","aria-live"],Bj={class:"unnnic-toast__content","data-testid":"toast-content"},xj={class:"unnnic-toast__header","data-testid":"toast-header"},vj={class:"unnnic-toast__title","data-testid":"toast-title"},Sj={key:0,"data-testid":"toast-text",class:"unnnic-toast__text"},xo=V(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 u=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")},g=()=>{var F;(F=a.button)!=null&&F.action&&a.button.action()},_=()=>{a.timeout>0&&(s=window.setTimeout(()=>{c()},a.timeout))},h=()=>{s&&(window.clearTimeout(s),s=null)};return t.onMounted(()=>{r.value=!0,_()}),t.onUnmounted(()=>{h()}),(F,p)=>(t.openBlock(),t.createBlock(t.Transition,{name:"toast-slide",appear:"","data-testid":"toast-transition",onAfterLeave:p[0]||(p[0]=b=>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",Bj,[t.createElementVNode("header",xj,[t.createVNode(he,{icon:u.value.icon,scheme:u.value.scheme,size:"ant","data-testid":"toast-type-icon"},null,8,["icon","scheme"]),t.createElementVNode("h3",vj,t.toDisplayString(F.title),1),t.createVNode(he,{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",Sj,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:g,onKeydown:[t.withKeys(g,["enter"]),t.withKeys(t.withModifiers(g,["prevent"]),["space"])]},null,8,["text","onKeydown"])):t.createCommentVNode("",!0)],14,Aj)):t.createCommentVNode("",!0)]),_:1}))}}),[["__scopeId","data-v-5445aa0d"]]),jj={name:"UnnnicAlert",components:{UnnnicToast:xo,Version1dot1:Ej},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 qj(e,n,a,i,r,s){const u=t.resolveComponent("Version1dot1"),d=t.resolveComponent("UnnnicToast");return a.version==="1.1"?(t.openBlock(),t.createBlock(u,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 cl=V(jj,[["render",qj]]);class Ij{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=Ky()??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 u=new Promise(g=>{s=g}),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:u};return this.toasts.set(a,c),c}close(n){this.toasts.get(n)&&this.toasts.delete(n)}}const vo=new Ij,G1={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 Nj(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 W1=Nj(),Q1=({props:e,containerRef:n,seconds:a})=>{if(e.version==="1.1"||n){const i=t.createApp(cl,{...e,seconds:a,version:"1.1",onClose:()=>{s.$el.remove()},created(){W1.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:()=>{W1.emit(["close"])}};vo.show({title:e.text,description:"",...r})}},X1=({props:e})=>{const n=t.createApp(sl,{...e,onClose:()=>{i.$el.remove()},created(){W1.on(["close"],()=>{i.$el.remove()})}}),a=document.createElement("div"),i=n.mount(a);document.body.appendChild(a)},Tj={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}},Oj=["title"];function Mj(e,n,a,i,r,s){const u=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(u,{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,Oj)}const Pj=V(Tj,[["render",Mj]]),Lj={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)}}},zj={class:"unnnic-select-smart__options__multiple"},Vj={key:0,class:"unnnic-select-smart__options__multiple__selecteds__container"},Rj={class:"unnnic-select-smart__options__multiple__selecteds"},Uj={key:0,class:"unnnic-select-smart__options__multiple__selecteds__remaining","data-testid":"remaining-count"},Hj={key:1,class:"unnnic-select-smart__options__multiple--without-multiples","data-testid":"without-selects-message"};function Yj(e,n,a,i,r,s){const u=t.resolveComponent("Tag");return t.openBlock(),t.createElementBlock("div",zj,[a.selectedOptions[0]?(t.openBlock(),t.createElementBlock("div",Vj,[t.createElementVNode("div",Rj,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.firstMultipleSelecteds,d=>(t.openBlock(),t.createBlock(u,{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",Uj," +"+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",Hj,t.toDisplayString(a.withoutSelectsMessage||e.i18n("without_multiple_selected")),1))])}const Gj=V(Lj,[["render",Yj],["__scopeId","data-v-4310b808"]]),Wj={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 Qj(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 e2=V(Wj,[["render",Qj],["__scopeId","data-v-05c4ead6"]]),Xj={name:"UnnnicSelectSmart",components:{TextInput:h0,SelectSmartOption:Pj,SelectSmartMultipleHeader:Gj,DropdownSkeleton:e2,UnnnicIconLoading:wr},directives:{onClickOutside:il},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}=Zu(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=_.findIndex(b=>b.value===d)===g,p=a.every(b=>{const w=h.includes(b),E=d.includes(b);return this.enableSearchByValue?w||E:w});return F&&p&&d});return this.orderedByIndex?s:s.sort((d,c)=>{const g=i(d.label),_=i(c.label),h=r(g),F=r(_);return h-F||g.localeCompare(_)})},onClickOutside(){this.active&&(this.isAutocompleteAllowed&&(this.searchValue=this.selectedLabel),this.$nextTick(()=>{this.active=!1}))},getOptionIndex(e){var i,r,s,u;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)||((u=this.modelValue.at(-1))==null?void 0:u.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 u=i[s===void 0?r:s];this.focusedOption=u}}}},Kj={style:{overflow:"auto"}},Zj={key:0,class:"unnnic-select-smart__options-infinite-loading"},Jj={key:1,class:"unnnic-select-smart__options--no-results"};function $j(e,n,a,i,r,s){const u=t.resolveComponent("TextInput"),d=t.resolveComponent("SelectSmartMultipleHeader"),c=t.resolveComponent("UnnnicIconLoading"),g=t.resolveComponent("SelectSmartOption"),_=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(_,{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",Kj,[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,b)=>(t.openBlock(),t.createBlock(g,{key:p.value,"data-testid":"option",label:p.label,description:p.description,tabindex:b,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",Zj,[t.createVNode(c,{scheme:"fg-base",size:"sm"})])):t.createCommentVNode("",!0),s.filterOptions(a.options).length===0?(t.openBlock(),t.createElementBlock("p",Jj,t.toDisplayString(e.i18n("without_results")),1)):t.createCommentVNode("",!0)],64))],2)])],6)):t.createCommentVNode("",!0)]),default:t.withCtx(()=>[t.createVNode(u,{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 K1=V(Xj,[["render",$j]]);function t2(e,n,a,i){const r=t.ref(!1),{width:s}=ry(a),u=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(b=>{const w=String(b[e.itemLabel]??"").toLowerCase().includes(F),E=String(b[e.itemValue]??"").toLowerCase().includes(F);return w||E})});function c(h){const{optionsLength:F,optionsLines:p,enableSearch:b,variant:w}=h;if(F===0)return"unset";if(w==="single"){const I=37*p,P=b?1:2,q=I+32+(4*p-P);return`${b?q+45+1:q}px`}const E=b?16:0,D=22*p+(24*p-2);return`${b?D+51+E:D}px`}const g=t.computed(()=>{var h;return c({optionsLength:((h=e.options)==null?void 0:h.length)??0,optionsLines:e.optionsLines,enableSearch:e.enableSearch,variant:n})}),_=t.computed(()=>{var p;const h=((p=d.value)==null?void 0:p.length)===0,F=g.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:u,calculatedPopoverHeight:g,popoverContentCustomStyles:_,filteredOptions:d}}const eq="data-option-index";function a2(e,n,a){const{closeOnSelect:i=!0,closePopover:r,openPopoverRef:s}=a,u=t.ref(-1);function d(p,b="smooth",w="center"){t.nextTick(()=>{var T;const E=document.querySelector(`[${eq}="${p}"]`);(T=E==null?void 0:E.scrollIntoView)==null||T.call(E,{behavior:b,block:w})})}function c(p){if(!["ArrowUp","ArrowDown","Enter"].includes(p.key))return;p.preventDefault();const w=e();if(p.key==="ArrowUp"){if(u.value<=0)return;u.value--,d(u.value)}else if(p.key==="ArrowDown"){if(u.value>=w.length-1)return;u.value++,d(u.value)}else if(p.key==="Enter"&&u.value>=0&&w[u.value]){const E=w[u.value];if(E!=null&&E.disabled)return;n(E),i&&r()}}function g(p){s.value&&c(p)}function _(){document.addEventListener("keydown",g)}function h(){document.removeEventListener("keydown",g)}function F(){t.watch(s,p=>{p?t.nextTick(_):h()}),t.onBeforeUnmount(h)}return{focusedOptionIndex:u,scrollToOption:d,handleKeyDown:c,setupKeydownBinding:F}}const tq={class:"unnnic-select"},aq={key:1,class:"unnnic-select__content-no-results"},nq={key:0,class:"unnnic-select__infinite-loading"},Z1=V(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.useTemplateRef("selectInputRef"),u=t.useTemplateRef("contentRef"),d=t2(i,"single",s,u),c=d.openPopover,g=d.popoverContentCustomStyles,_=d.inputWidthString,h=d.filteredOptions;function F(q){d.openPopover.value=q}const p=t.computed(()=>i.returnObject?i.modelValue:i.options.find(q=>q[i.itemValue]===i.modelValue)),b=t.computed(()=>{var q;return(q=p.value)==null?void 0:q[i.itemLabel]});function w(q){var M;q[i.itemValue]===((M=p.value)==null?void 0:M[i.itemValue])||q.disabled||(r("update:modelValue",i.returnObject?q:q[i.itemValue]),d.openPopover.value=!1)}const E=a2(()=>d.filteredOptions.value,w,{closeOnSelect:!0,closePopover:()=>d.openPopover.value=!1,openPopoverRef:d.openPopover});E.setupKeydownBinding();const T=E.focusedOptionIndex;t.watch(d.openPopover,()=>{if(!d.openPopover.value)P("");else{if(E.focusedOptionIndex.value=-1,i.modelValue){const q=i.options.findIndex(M=>{var ne;return M[i.itemValue]===((ne=p.value)==null?void 0:ne[i.itemValue])});E.scrollToOption(q,"instant","center")}i.infiniteScroll&&t.nextTick(()=>A())}});const B=t.ref(null),D=t.ref(!1);function A(){i.infiniteScroll&&(B.value&&(B.value(),B.value=null),t.nextTick(()=>{const q=d.contentRef.value;if(!q)return;const{reset:M}=Zu(q,()=>{D.value||(D.value=!0,r("scroll-end"))},{distance:i.infiniteScrollDistance,canLoadMore:()=>i.infiniteScrollCanLoadMore()&&!D.value});B.value=M}))}function j(){D.value=!1,d.openPopover.value&&i.infiniteScroll&&t.nextTick(()=>A())}function I(){D.value=!1,B.value&&B.value(),d.openPopover.value&&i.infiniteScroll&&t.nextTick(()=>A())}function P(q){r("update:search",q)}return t.onBeforeUnmount(()=>{B.value&&B.value()}),n({openPopover:c,setOpenPopover:F,filteredOptions:h,calculatedPopoverHeight:d.calculatedPopoverHeight,selectedItem:p,inputValue:b,infiniteScrollLoading:D,finishInfiniteScroll:j,resetInfiniteScroll:I}),(q,M)=>(t.openBlock(),t.createElementBlock("div",tq,[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(gn,{ref_key:"selectInputRef",ref:s,modelValue:b.value,class:"unnnic-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&&i.clearable,onClear:M[0]||(M[0]=ne=>r("update:modelValue",""))},null,8,["modelValue","focus","size","placeholder","label","errors","message","iconRight","disabled","showClear"])]),_:1}),t.createVNode(t.unref(Cr),{align:"start",class:t.normalizeClass("h-full"),style:t.normalizeStyle(t.unref(g)),width:t.unref(_)},{default:t.withCtx(()=>[t.createElementVNode("div",{ref_key:"contentRef",ref:u,class:"unnnic-select__content"},[i.enableSearch?(t.openBlock(),t.createBlock(gn,{key:0,class:"unnnic-select__input-search",modelValue:i.search,placeholder:q.$t("search"),iconLeft:"search","onUpdate:modelValue":P},null,8,["modelValue","placeholder"])):t.createCommentVNode("",!0),t.unref(h).length===0?(t.openBlock(),t.createElementBlock("p",aq,t.toDisplayString(q.$t("without_results")),1)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(h),(ne,fe)=>{var Z;return t.openBlock(),t.createBlock(t.unref(tl),{key:ne[i.itemValue],"data-option-index":fe,"data-testid":"select-option",label:ne[i.itemLabel],active:ne[i.itemValue]===((Z=p.value)==null?void 0:Z[i.itemValue]),focused:t.unref(T)===fe,disabled:ne.disabled,onClick:we=>w(ne)},null,8,["data-option-index","label","active","focused","disabled","onClick"])}),128)),i.infiniteScroll&&D.value?(t.openBlock(),t.createElementBlock("div",nq,[t.createVNode(wr,{scheme:"fg-base",size:"sm"})])):t.createCommentVNode("",!0)],64))],512)]),_:1},8,["style","width"])]),_:1},8,["open"])]))}}),[["__scopeId","data-v-38d626f4"]]),iq={name:"UnnicSelectItem",props:{size:{type:String,default:""},selectable:{type:Boolean,default:!0},active:{type:Boolean,default:!1},textFocused:{type:Boolean,default:!1}}};function rq(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]=u=>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 J1=V(iq,[["render",rq]]),oq={class:t.normalizeClass(["unnnic-multi-select-option"])},sq=V(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",oq,[t.createVNode(Br,{modelValue:i.active,disabled:i.disabled,label:i.label,"onUpdate:modelValue":s[0]||(s[0]=u=>a("update:modelValue",!i.active))},null,8,["modelValue","disabled","label"])]))}}),[["__scopeId","data-v-872f231b"]]),lq={class:"unnnic-multi-select"},uq={key:1,class:"unnnic-multi-select__content-no-results"},dq={key:2,class:"unnnic-multi-select__options"},$1=V(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"),u=t.useTemplateRef("contentRef"),d=t2(i,"multi",s,u),c=d.openPopover,g=d.popoverContentCustomStyles,_=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(j=>A.includes(j[i.itemValue]))}),b=t.computed(()=>p.value.map(A=>A[i.itemLabel]).join(", "));function w(A){r("update:search",A)}function E(A){return i.returnObject?i.modelValue.some(j=>j[i.itemValue]===A[i.itemValue]):i.modelValue.includes(A[i.itemValue])}function T(A,j){if(j){const I=i.returnObject?[...i.modelValue,A]:[...i.modelValue,A[i.itemValue]];r("update:modelValue",I)}else{const I=i.returnObject?i.modelValue.filter(P=>P[i.itemValue]!==A[i.itemValue]):i.modelValue.filter(P=>P!==A[i.itemValue]);r("update:modelValue",I)}}const B=a2(()=>d.filteredOptions.value,A=>{if(A.disabled)return;const j=E(A);T(A,!j)},{closeOnSelect:!1,closePopover:()=>d.openPopover.value=!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:b}),(A,j)=>(t.openBlock(),t.createElementBlock("div",lq,[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(gn,{ref_key:"multiSelectInputRef",ref:s,modelValue:b.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:j[0]||(j[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(g)),width:t.unref(_)},{default:t.withCtx(()=>[t.createElementVNode("div",{ref_key:"contentRef",ref:u,class:"unnnic-multi-select__content"},[i.enableSearch?(t.openBlock(),t.createBlock(gn,{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",uq,t.toDisplayString(A.$t("without_results")),1)):(t.openBlock(),t.createElementBlock("div",dq,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(h),(I,P)=>(t.openBlock(),t.createBlock(sq,{key:String(I[i.itemValue]),"data-option-index":P,label:String(I[i.itemLabel]??""),active:E(I),focused:t.unref(D)===P,disabled:I.disabled,"onUpdate:modelValue":q=>T(I,q)},null,8,["data-option-index","label","active","focused","disabled","onUpdate:modelValue"]))),128))]))],512)]),_:1},8,["style","width"])]),_:1},8,["open"])]))}}),[["__scopeId","data-v-0a08840d"]]),cq={components:{UnnnicIcon:he},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)}},fq={class:"header"},gq={class:"actions"};function _q(e,n,a,i,r,s){const u=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",fq,[t.createVNode(u,{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",gq,[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 ed=V(cq,[["render",_q],["__scopeId","data-v-0943a5ba"]]),hq={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}}}},mq={class:"weni-step-indicator"},Fq={class:"weni-step-indicator__label"};function pq(e,n,a,i,r,s){return t.openBlock(),t.createElementBlock("div",mq,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.numberOfSteps,u=>(t.openBlock(),t.createElementBlock("div",{key:u,class:t.normalizeClass({"weni-step-indicator__step__wrapper":!0,"weni-step-indicator--has-separator":u>1})},[u!==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass({"weni-step-indicator__step__separator":!0,"weni-step-indicator__step__separator--active":u<=a.currentStep})},null,2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass({"weni-step-indicator__step":!0,"weni-step-indicator__step--active":u<=a.currentStep})},[t.createElementVNode("span",Fq,t.toDisplayString(s.titleForStep(u)),1)],2)],2))),128))])}const td=V(hq,[["render",pq],["__scopeId","data-v-cb023da6"]]),bq={"--skeleton-bg":"var(--unnnic-color-bg-muted)","--skeleton-highlight":"var(--unnnic-color-bg-base-soft)","--skeleton-duration":"2s"},yq={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({...bq})),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 kq(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,(u,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 ad=V(yq,[["render",kq]]),wq={name:"UnnnicTagCarousel",components:{UnnnicTag:Ar,UnnnicIcon:he},props:{modelValue:{type:Array,default(){return[]}},tagItems:{type:Array,default:()=>[]}},data(){return{hasNext:!0,hasPrev:!1,slides:[]}},mounted(){this.slides=this.tagItems},methods:{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}}},Dq={class:"unnnic-card-tag-carousel"},Cq={class:"unnnic-card-tag-carousel__button unnnic-card-tag-carousel__button--left"},Eq={class:"unnnic-card-tag-carousel__button__icon"},Aq={class:"unnnic-card-tag-carousel__button__blur unnnic-card-tag-carousel__button__blur--left"},Bq={id:"scroll",class:"unnnic-card-tag-carousel__container"},xq={class:"unnnic-card-tag-carousel__button unnnic-card-tag-carousel__button--right"},vq={class:"unnnic-card-tag-carousel__button__blur unnnic-card-tag-carousel__button__blur--right"},Sq={class:"unnnic-card-tag-carousel__button__icon"};function jq(e,n,a,i,r,s){const u=t.resolveComponent("UnnnicIcon"),d=t.resolveComponent("UnnnicTag");return t.openBlock(),t.createElementBlock("div",Dq,[t.createElementVNode("div",Cq,[t.createElementVNode("div",Eq,[t.createVNode(u,{icon:"arrow-left-1-1",size:"sm",scheme:r.hasPrev?"fg-emphasized":"fg-muted",clickable:"",onClick:n[0]||(n[0]=c=>s.previous())},null,8,["scheme"])]),t.withDirectives(t.createElementVNode("span",Aq,null,512),[[t.vShow,r.hasPrev]])]),t.createElementVNode("div",Bq,[(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:g=>s.save(c)},null,8,["text","disabled","onClick"])]))),128))]),t.createElementVNode("div",xq,[t.withDirectives(t.createElementVNode("span",vq,null,512),[[t.vShow,r.hasNext]]),t.createElementVNode("div",Sq,[t.createVNode(u,{icon:"arrow-right-1-1",size:"sm",scheme:r.hasNext?"fg-emphasized":"fg-muted",clickable:"",onClick:n[1]||(n[1]=c=>s.next())},null,8,["scheme"])])])])}const qq=V(wq,[["render",jq]]),Iq={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 qq}}};function Nq(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]=u=>e.$emit("update:model-value",u))}),null,16,["name","clickable","tagItems","modelValue"])}const nd=V(Iq,[["render",Nq]]),Tq={components:{UnnnicIcon:he,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))}}},Oq={class:"tab-header"},Mq={class:"tab-content"},Pq=["onClick"],Lq={class:"tab-body"},zq={class:"tab-panel"};function Vq(e,n,a,i,r,s){const u=t.resolveComponent("UnnnicIcon"),d=t.resolveComponent("UnnnicToolTip");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["tab",`size-${a.size}`])},[t.createElementVNode("header",Oq,[t.createElementVNode("ul",Mq,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.tabs,c=>{var g;return t.openBlock(),t.createElementBlock("li",{key:c,class:t.normalizeClass(["tab-head",{"tab-head--active":r.localValue===c,"tab-head--disabled":(g=a.disabledTabs)==null?void 0:g.includes(c)}]),onClick:_=>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(u,{icon:"help",size:a.size==="sm"?"xs":"sm",scheme:"fg-base"},null,8,["size"])]),_:2},1032,["text"])):t.createCommentVNode("",!0)],10,Pq)}),128))])]),t.createElementVNode("main",Lq,[t.createElementVNode("div",zq,[t.renderSlot(e.$slots,s.tabPanelSlotName,{},void 0,!0)])])],2)}const id=V(Tq,[["render",Vq],["__scopeId","data-v-2860998c"]]),Rq={components:{UnnnicIcon:he},props:{modelValue:{type:[String,Number],required:!0},items:{type:Array,required:!0}},emits:["back","update:model-value","close-tab","add"]},Uq={class:"unnnic-tabs-expanded"},Hq=["onClick"],Yq={"data-testid":"tab-description",class:"u font secondary body-sm color-fg-base"},Gq={key:0,class:"close-container"};function Wq(e,n,a,i,r,s){const u=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createElementBlock("div",Uq,[t.createElementVNode("div",{class:"back-container","data-testid":"back",onClick:n[0]||(n[0]=d=>e.$emit("back"))},[t.createVNode(u,{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",Yq,t.toDisplayString(d.description),1)]),d.value===a.modelValue?(t.openBlock(),t.createElementBlock("div",Gq,[t.createVNode(u,{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,Hq))),128)),t.createElementVNode("div",{class:"add-container","data-testid":"tab-add",onClick:n[1]||(n[1]=d=>e.$emit("add"))},[t.createVNode(u,{icon:"add-1",scheme:"fg-base",size:"sm"})])])}const rd=V(Rq,[["render",Wq],["__scopeId","data-v-a72bb16c"]]),Qq={name:"UnnnicBanner",components:{UnnnicIcon:he},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}}},Xq={class:"unnnic-banner-info"},Kq={class:"unnnic-banner-info__section"},Zq={class:"unnnic-banner-info__title"},Jq={class:"unnnic-banner-info__description"},$q={class:"unnnic-banner-info__section"},eI={class:"unnnic-banner-info__title"},tI={class:"unnnic-banner-info__description"},aI={class:"unnnic-banner-info__subtitle"},nI={class:"unnnic-banner-info__section"},iI={class:"unnnic-banner-info__title"},rI={class:"unnnic-banner-info__description"},oI={class:"unnnic-banner-info__rating"};function sI(e,n,a,i,r,s){const u=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createElementBlock("div",Xq,[t.createElementVNode("section",Kq,[t.createElementVNode("div",Zq,t.toDisplayString(a.firstTitle),1),t.createElementVNode("div",Jq,t.toDisplayString(a.firstDescription),1)]),n[0]||(n[0]=t.createElementVNode("div",{class:"unnnic-banner-info__divider"},null,-1)),t.createElementVNode("section",$q,[t.createElementVNode("div",eI,t.toDisplayString(a.secondTitle),1),t.createElementVNode("div",tI,t.toDisplayString(a.secondDescription),1),t.createElementVNode("div",aI,t.toDisplayString(a.subtitle),1)]),n[1]||(n[1]=t.createElementVNode("div",{class:"unnnic-banner-info__divider"},null,-1)),t.createElementVNode("section",nI,[t.createElementVNode("div",iI,t.toDisplayString(a.thirdTitle),1),t.createElementVNode("div",rI,t.toDisplayString(a.thirdDescription),1),t.createElementVNode("div",oI,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(5,d=>t.createVNode(u,{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 n2=V(Qq,[["render",sI]]),lI={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",n2}},methods:{emitRatingAction(e){this.$emit("ratingAction",e)}}};function uI(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 od=V(lI,[["render",uI]]),dI={name:"UnnnicComment",components:{},props:{title:{type:String,default:null},time:{type:String,default:null},text:{type:String,default:null}}},cI={class:"unnnic-comment"},fI={class:"unnnic-comment__avatar"},gI={class:"unnnic-comment__content"},_I={class:"unnnic-comment__content__header"},hI={class:"unnnic-comment__content__header__title"},mI={class:"unnnic-comment__content__header__time"},FI={class:"unnnic-comment__content__header__actions"},pI={class:"unnnic-comment__content__text"};function bI(e,n,a,i,r,s){return t.openBlock(),t.createElementBlock("div",cI,[t.createElementVNode("div",fI,[t.renderSlot(e.$slots,"avatar",{},void 0,!0)]),t.createElementVNode("div",gI,[t.createElementVNode("div",_I,[t.createElementVNode("div",hI,t.toDisplayString(a.title),1),t.createElementVNode("div",mI,t.toDisplayString(a.time),1),t.createElementVNode("div",FI,[t.renderSlot(e.$slots,"actions",{},void 0,!0)])]),t.createElementVNode("div",pI,t.toDisplayString(a.text),1)])])}const sd=V(dI,[["render",bI],["__scopeId","data-v-5925e703"]]),yI={name:"UnnnicBreadcrumb",components:{UnnnicIcon:he},props:{crumbs:{type:Array,default:null,validator:e=>e.every(n=>n.name!==null)}},emits:["crumb-click"]},kI={class:"unnnic-breadcrumb"},wI=["data-test","onClick"];function DI(e,n,a,i,r,s){const u=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createElementBlock("div",kI,[(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:g=>e.$emit("crumb-click",d)},t.toDisplayString(d.name),11,wI),c!==a.crumbs.length-1?(t.openBlock(),t.createBlock(u,{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 ld=V(yI,[["render",DI],["__scopeId","data-v-b1be1eed"]]),CI={class:"unnnic-switch"},EI=["disabled","checked"],AI={key:1,class:"unnnic-switch__helper"},ud=V(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,u=>{u!==r.value&&(r.value=u)},{immediate:!0});function s(){a.disabled||(r.value=!r.value,i("update:model-value",r.value))}return(u,d)=>(t.openBlock(),t.createElementBlock("section",CI,[u.label?(t.openBlock(),t.createBlock(Ci,{key:0,label:u.label,tooltip:u.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":u.disabled}])},[t.createElementVNode("input",t.mergeProps({class:"unnnic-switch__input",type:"checkbox",disabled:u.disabled,checked:u.modelValue},t.unref(Kt.pick)(u.$attrs,["id","name"]),{onChange:s}),null,16,EI),u.option||u.textLeft||u.textRight?(t.openBlock(),t.createElementBlock("p",{key:0,class:t.normalizeClass(["unnnic-switch__option",{"unnnic-switch__option--disabled":u.disabled}]),"data-testid":"switch-option"},[t.createTextVNode(t.toDisplayString(u.option)+" "+t.toDisplayString(u.textLeft)+" "+t.toDisplayString(u.textRight)+" ",1),t.renderSlot(u.$slots,"suffix",{},void 0,!0)],2)):t.createCommentVNode("",!0)],2),u.helper?(t.openBlock(),t.createElementBlock("p",AI,t.toDisplayString(u.helper),1)):t.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-ee5c330b"]]),BI={name:"UnnnicSlider",components:{UnnnicTooltip:Xt,UnnnicIcon:he},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}}},xI={class:"unnnic-label"},vI={key:0,class:"unnnic-slider__label"},SI={class:"unnnic-slider__content"},jI={class:"unnnic-slider__content__labels"},qI={class:"unnnic-slider__content__labels__min"},II=["min","max","step"],NI={class:"unnnic-slider__content__labels__max"},TI=["value"];function OI(e,n,a,i,r,s){const u=t.resolveComponent("UnnnicIcon"),d=t.resolveComponent("UnnnicTooltip");return t.openBlock(),t.createElementBlock("article",null,[t.createElementVNode("section",xI,[a.label?(t.openBlock(),t.createElementBlock("p",vI,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(u,{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",SI,[t.createElementVNode("section",jI,[t.createElementVNode("span",qI,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,II),[[t.vModelText,r.sliderVal]])]),_:1},8,["text","enabled"]),t.createElementVNode("span",NI,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,TI)):t.createCommentVNode("",!0)],4)])}const dd=V(BI,[["render",OI],["__scopeId","data-v-4d22fbdb"]]),MI={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:""}}},PI={class:"data-area-container"},LI={class:"data-area-container__header"},zI={class:"data-area-container__header__title"},VI={class:"data-area-container__header__links-slot"},RI={class:"data-area-container__content"},UI={class:"data-area-container__content__text"},HI={class:"data-area-container__content__buttons-slot"};function YI(e,n,a,i,r,s){const u=t.resolveComponent("ToolTip");return t.openBlock(),t.createElementBlock("div",PI,[t.createElementVNode("div",LI,[t.createElementVNode("div",zI,t.toDisplayString(a.title),1),t.createElementVNode("div",VI,[t.renderSlot(e.$slots,"links",{},void 0,!0)])]),t.createElementVNode("div",RI,[t.createVNode(u,{enabled:a.enableHover,text:a.hoverText},{default:t.withCtx(()=>[t.createElementVNode("div",UI,t.toDisplayString(a.text),1)]),_:1},8,["enabled","text"]),t.createElementVNode("div",HI,[t.renderSlot(e.$slots,"buttons",{},void 0,!0)])])])}const cd=V(MI,[["render",YI],["__scopeId","data-v-532aa33d"]]),GI={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}}},WI={class:"pagination"};function QI(e,n,a,i,r,s){const u=t.resolveComponent("UnnnicButton");return t.openBlock(),t.createElementBlock("div",WI,[t.createVNode(u,{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(u,{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:g=>s.selectPage(d)},null,8,["type","text","disabled","onClick"]))),128)),t.createVNode(u,{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 fl=V(GI,[["render",QI],["__scopeId","data-v-b2612197"]]),XI={name:"UnnnicDateFilter",components:{UnnnicInput:gn},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=oe(this.startDate).format(this.dateFormat.replaceAll("/",""));e+=n.toString()}if(this.endDate){const n=oe(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")}}},KI={class:"unnnic-date-filter"};function ZI(e,n,a,i,r,s){const u=t.resolveComponent("UnnnicInput");return t.openBlock(),t.createElementBlock("div",KI,[t.createVNode(u,{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 fd=V(XI,[["render",ZI]]),JI={components:{UnnnicToolTip:Xt,UnnnicIcon:he},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}},$I={class:"header"},eN={ref:"description",class:"description"},tN={key:0,class:"scrollable-gradient"};function aN(e,n,a,i,r,s){const u=t.resolveComponent("UnnnicIcon"),d=t.resolveComponent("UnnnicToolTip");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["unnnic-chat-text",a.size])},[t.createElementVNode("div",$I,[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(u,{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",eN,[t.renderSlot(e.$slots,"description",{},void 0,!0),r.isScrollable?(t.openBlock(),t.createElementBlock("div",tN)):t.createCommentVNode("",!0)],512)],2)}const gd=V(JI,[["render",aN],["__scopeId","data-v-fa86c05f"]]),nN=["placeholder","maxlength","disabled","value"],_d=V(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,u)=>(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:u[0]||(u[0]=d=>{var c;return s.$emit("update:modelValue",t.unref(Jn)(((c=d.target)==null?void 0:c.value)??""))})},null,42,nN)]),_: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"]]),iN={props:{description:{type:String,default:""},number:{type:String,default:""},fullSize:{type:Boolean,default:!1}}};function rN(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 hd=V(iN,[["render",rN],["__scopeId","data-v-b36ba472"]]),oN={components:{},props:{modelValue:{type:Number,default:0},description:{type:String}},watch:{modelValue(){this.updateChartSvg()}},mounted(){this.updateChartSvg()},methods:{updateChartSvg(){function e(i,r,s,u){const d=(u-90)*Math.PI/180;return{x:i+s*Math.cos(d),y:r+s*Math.sin(d)}}function n(i,r,s,u,d,c){const g=s,_=u-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))}}},sN={class:"unnnic-chart-rainbow"},lN={width:"332",height:"166",class:"semicircle"},uN={id:"path",ref:"background",fill:"none","stroke-linecap":"round",class:"background","stroke-width":"26.56px"},dN={id:"path",ref:"front",fill:"none","stroke-linecap":"round",class:"front","stroke-width":"26.56px"},cN={class:"content"},fN={class:"percentage"},gN={class:"number"},_N={key:0,class:"description"};function hN(e,n,a,i,r,s){return t.openBlock(),t.createElementBlock("div",sN,[(t.openBlock(),t.createElementBlock("svg",lN,[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",uN,null,512),t.createElementVNode("path",dN,null,512)])),t.createElementVNode("div",cN,[t.createElementVNode("div",fN,[t.createElementVNode("span",gN,t.toDisplayString(a.modelValue),1),n[1]||(n[1]=t.createElementVNode("span",{class:"symbol"},"%",-1))]),a.description?(t.openBlock(),t.createElementBlock("div",_N,t.toDisplayString(a.description),1)):t.createCommentVNode("",!0)])])}const md=V(oN,[["render",hN],["__scopeId","data-v-ae7c10f4"]]),mN={components:{UnnnicIcon:he,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))}}},FN={key:0,class:"header"},pN={key:0,class:"content"},bN={key:1,class:"description unnnic-font secondary body-gt color-fg-base"},yN={key:1,class:"actions"},kN={key:0,class:"unnnic-font secondary body-md color-fg-base"},wN={key:1,class:"navigation-container"},DN={class:"main"},CN={class:"reference"},EN={class:"values"},AN={class:"groups"},BN={class:"bars"},xN={class:"title unnnic-font secondary body-md color-fg-muted"},vN={key:1,class:"footer"},SN={class:"unnnic-font secondary body-gt color-fg-base"};function jN(e,n,a,i,r,s){const u=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",FN,[a.title||a.description?(t.openBlock(),t.createElementBlock("div",pN,[a.title?(t.openBlock(),t.createElementBlock("div",{key:0,class:"title unnnic-font bold title-sm color-fg-emphasized",onClick:n[0]||(n[0]=g=>e.$emit("update"))},t.toDisplayString(a.title),1)):t.createCommentVNode("",!0),a.description?(t.openBlock(),t.createElementBlock("div",bN,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",yN,[e.$attrs.update?(t.openBlock(),t.createElementBlock("div",{key:0,class:"update-button",onClick:n[1]||(n[1]=g=>e.$emit("update"))},[t.createVNode(u,{icon:"button-refresh-arrow-1",size:"sm",scheme:"fg-emphasized"}),a.updateText?(t.openBlock(),t.createElementBlock("span",kN,t.toDisplayString(a.updateText),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),e.$attrs.previous||e.$attrs.next?(t.openBlock(),t.createElementBlock("div",wN,[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]=g=>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]=g=>e.$emit("next"))},null,8,["disabled"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",DN,[t.createElementVNode("div",CN,[t.createElementVNode("div",EN,[(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:_,class:"value unnnic-font secondary body-md color-fg-muted"},t.toDisplayString(g),1))),128))]),n[4]||(n[4]=t.createElementVNode("div",{class:"unnnic-font secondary body-md color-fg-muted"}," ",-1))]),t.createElementVNode("div",AN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.groups,(g,_)=>(t.openBlock(),t.createElementBlock("div",{key:_,class:"group"},[t.createElementVNode("div",BN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.legends.map((h,F)=>({legend:h,index:F})).filter(({legend:h})=>g.values[h]),({legend:h,index:F})=>(t.openBlock(),t.createBlock(c,{key:F,enabled:"",text:`${g.title}: ${g.values[h]}
66
66
  ${h}`,side:"top",style:t.normalizeStyle({height:`${g.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",xN,t.toDisplayString(g.title),1)]))),128))])]),a.showFooterLegend?(t.openBlock(),t.createElementBlock("div",vN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.legends,(g,_)=>(t.openBlock(),t.createElementBlock("div",{key:_,class:"legend"},[t.createVNode(u,{icon:"indicator",scheme:r.colors[_]},null,8,["scheme"]),t.createElementVNode("div",SN,t.toDisplayString(g),1)]))),128))])):t.createCommentVNode("",!0)],2)}const Fd=V(mN,[["render",jN],["__scopeId","data-v-f866faa8"]]),qN={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:u})=>49.39-(u/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 u=1;u<e.length;u+=1)u===1?r=n*1.5:r+=n,i+=`C ${r-a} ${e[u-1]} ${r-a} ${e[u]} ${r} ${e[u]}`;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>