@weni/unnnic-system 3.34.1 → 3.34.2

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.
@@ -40,7 +40,7 @@ __p += '`),Ke&&(J+=`' +
40
40
  function print() { __p += __j.call(arguments, '') }
41
41
  `:`;
42
42
  `)+J+`return __p
43
- }`;var Pe=Gp(function(){return nt(E,we+"return "+J).apply(n,q)});if(Pe.source=J,Kc(Pe))throw Pe;return Pe}function BQ(o){return it(o).toLowerCase()}function vQ(o){return it(o).toUpperCase()}function jQ(o,l,f){if(o=it(o),o&&(f||l===n))return t2(o);if(!o||!(l=Da(l)))return o;var m=tn(o),b=tn(l),E=a2(m,b),q=n2(m,b)+1;return bi(m,E,q).join("")}function SQ(o,l,f){if(o=it(o),o&&(f||l===n))return o.slice(0,r2(o)+1);if(!o||!(l=Da(l)))return o;var m=tn(o),b=n2(m,tn(l))+1;return bi(m,0,b).join("")}function qQ(o,l,f){if(o=it(o),o&&(f||l===n))return o.replace(Kd,"");if(!o||!(l=Da(l)))return o;var m=tn(o),b=a2(m,tn(l));return bi(m,b).join("")}function TQ(o,l){var f=W,m=ee;if(vt(l)){var b="separator"in l?l.separator:b;f="length"in l?Ne(l.length):f,m="omission"in l?Da(l.omission):m}o=it(o);var E=o.length;if(qr(o)){var q=tn(o);E=q.length}if(f>=E)return o;var O=f-Tr(m);if(O<1)return m;var V=q?bi(q,0,O).join(""):o.slice(0,O);if(b===n)return V+m;if(q&&(O+=V.length-O),Xc(b)){if(o.slice(O).search(b)){var K,X=V;for(b.global||(b=_c(b.source,it(DF.exec(b))+"g")),b.lastIndex=0;K=b.exec(X);)var J=K.index;V=V.slice(0,J===n?O:J)}}else if(o.indexOf(Da(b),O)!=O){var _e=V.lastIndexOf(b);_e>-1&&(V=V.slice(0,_e))}return V+m}function IQ(o){return o=it(o),o&&Yz.test(o)?o.replace(yF,uH):o}var NQ=Vr(function(o,l,f){return o+(f?" ":"")+l.toUpperCase()}),ef=W2("toUpperCase");function Yp(o,l,f){return o=it(o),l=f?n:l,l===n?iH(o)?fH(o):QU(o):o.match(l)||[]}var Gp=ze(function(o,l){try{return ka(o,n,l)}catch(f){return Kc(f)?f:new Se(f)}}),OQ=Wn(function(o,l){return Ma(l,function(f){f=Dn(f),Yn(o,f,$c(o[f],o))}),o});function MQ(o){var l=o==null?0:o.length,f=Ce();return o=l?Et(o,function(m){if(typeof m[1]!="function")throw new Pa(u);return[f(m[0]),m[1]]}):[],ze(function(m){for(var b=-1;++b<l;){var E=o[b];if(ka(E[0],this,m))return ka(E[1],this,m)}})}function PQ(o){return uY(Va(o,h))}function tf(o){return function(){return o}}function LQ(o,l){return o==null||o!==o?l:o}var VQ=Q2(),RQ=Q2(!0);function ha(o){return o}function af(o){return E2(typeof o=="function"?o:Va(o,h))}function zQ(o){return x2(Va(o,h))}function UQ(o,l){return B2(o,Va(l,h))}var HQ=ze(function(o,l){return function(f){return Ro(f,o,l)}}),YQ=ze(function(o,l){return function(f){return Ro(o,f,l)}});function nf(o,l,f){var m=Wt(l),b=au(l,m);f==null&&!(vt(l)&&(b.length||!m.length))&&(f=l,l=o,o=this,b=au(l,Wt(l)));var E=!(vt(f)&&"chain"in f)||!!f.chain,q=Qn(o);return Ma(b,function(O){var V=l[O];o[O]=V,q&&(o.prototype[O]=function(){var K=this.__chain__;if(E||K){var X=o(this.__wrapped__),J=X.__actions__=fa(this.__actions__);return J.push({func:V,args:arguments,thisArg:o}),X.__chain__=K,X}return V.apply(o,_i([this.value()],arguments))})}),o}function GQ(){return Xt._===this&&(Xt._=pH),this}function rf(){}function WQ(o){return o=Ne(o),ze(function(l){return v2(l,o)})}var $Q=Nc(Et),QQ=Nc(KF),KQ=Nc(oc);function Wp(o){return zc(o)?sc(Dn(o)):AY(o)}function XQ(o){return function(l){return o==null?n:zi(o,l)}}var ZQ=X2(),JQ=X2(!0);function of(){return[]}function sf(){return!1}function eK(){return{}}function tK(){return""}function aK(){return!0}function nK(o,l){if(o=Ne(o),o<1||o>ae)return[];var f=ct,m=ea(o,ct);l=Ce(l),o-=ct;for(var b=dc(m,l);++f<o;)l(f);return b}function iK(o){return Te(o)?Et(o,Dn):Ca(o)?[o]:fa(_p(it(o)))}function rK(o){var l=++mH;return it(o)+l}var oK=lu(function(o,l){return o+l},0),sK=Oc("ceil"),lK=lu(function(o,l){return o/l},1),uK=Oc("floor");function dK(o){return o&&o.length?tu(o,ha,kc):n}function cK(o,l){return o&&o.length?tu(o,Ce(l,2),kc):n}function fK(o){return JF(o,ha)}function _K(o,l){return JF(o,Ce(l,2))}function gK(o){return o&&o.length?tu(o,ha,Ec):n}function hK(o,l){return o&&o.length?tu(o,Ce(l,2),Ec):n}var mK=lu(function(o,l){return o*l},1),FK=Oc("round"),pK=lu(function(o,l){return o-l},0);function bK(o){return o&&o.length?uc(o,ha):0}function yK(o,l){return o&&o.length?uc(o,Ce(l,2)):0}return D.after=zW,D.ary=Cp,D.assign=v$,D.assignIn=Pp,D.assignInWith=ku,D.assignWith=j$,D.at=S$,D.before=Ep,D.bind=$c,D.bindAll=OQ,D.bindKey=Ap,D.castArray=e$,D.chain=kp,D.chunk=uG,D.compact=dG,D.concat=cG,D.cond=MQ,D.conforms=PQ,D.constant=tf,D.countBy=bW,D.create=q$,D.curry=xp,D.curryRight=Bp,D.debounce=vp,D.defaults=T$,D.defaultsDeep=I$,D.defer=UW,D.delay=HW,D.difference=fG,D.differenceBy=_G,D.differenceWith=gG,D.drop=hG,D.dropRight=mG,D.dropRightWhile=FG,D.dropWhile=pG,D.fill=bG,D.filter=kW,D.flatMap=CW,D.flatMapDeep=EW,D.flatMapDepth=AW,D.flatten=Fp,D.flattenDeep=yG,D.flattenDepth=kG,D.flip=YW,D.flow=VQ,D.flowRight=RQ,D.fromPairs=wG,D.functions=R$,D.functionsIn=z$,D.groupBy=xW,D.initial=CG,D.intersection=EG,D.intersectionBy=AG,D.intersectionWith=xG,D.invert=H$,D.invertBy=Y$,D.invokeMap=vW,D.iteratee=af,D.keyBy=jW,D.keys=Wt,D.keysIn=ga,D.map=hu,D.mapKeys=W$,D.mapValues=$$,D.matches=zQ,D.matchesProperty=UQ,D.memoize=Fu,D.merge=Q$,D.mergeWith=Lp,D.method=HQ,D.methodOf=YQ,D.mixin=nf,D.negate=pu,D.nthArg=WQ,D.omit=K$,D.omitBy=X$,D.once=GW,D.orderBy=SW,D.over=$Q,D.overArgs=WW,D.overEvery=QQ,D.overSome=KQ,D.partial=Qc,D.partialRight=jp,D.partition=qW,D.pick=Z$,D.pickBy=Vp,D.property=Wp,D.propertyOf=XQ,D.pull=SG,D.pullAll=bp,D.pullAllBy=qG,D.pullAllWith=TG,D.pullAt=IG,D.range=ZQ,D.rangeRight=JQ,D.rearg=$W,D.reject=NW,D.remove=NG,D.rest=QW,D.reverse=Gc,D.sampleSize=MW,D.set=eQ,D.setWith=tQ,D.shuffle=PW,D.slice=OG,D.sortBy=RW,D.sortedUniq=UG,D.sortedUniqBy=HG,D.split=CQ,D.spread=KW,D.tail=YG,D.take=GG,D.takeRight=WG,D.takeRightWhile=$G,D.takeWhile=QG,D.tap=dW,D.throttle=XW,D.thru=gu,D.toArray=Np,D.toPairs=Rp,D.toPairsIn=zp,D.toPath=iK,D.toPlainObject=Mp,D.transform=aQ,D.unary=ZW,D.union=KG,D.unionBy=XG,D.unionWith=ZG,D.uniq=JG,D.uniqBy=eW,D.uniqWith=tW,D.unset=nQ,D.unzip=Wc,D.unzipWith=yp,D.update=iQ,D.updateWith=rQ,D.values=Ur,D.valuesIn=oQ,D.without=aW,D.words=Yp,D.wrap=JW,D.xor=nW,D.xorBy=iW,D.xorWith=rW,D.zip=oW,D.zipObject=sW,D.zipObjectDeep=lW,D.zipWith=uW,D.entries=Rp,D.entriesIn=zp,D.extend=Pp,D.extendWith=ku,nf(D,D),D.add=oK,D.attempt=Gp,D.camelCase=dQ,D.capitalize=Up,D.ceil=sK,D.clamp=sQ,D.clone=t$,D.cloneDeep=n$,D.cloneDeepWith=i$,D.cloneWith=a$,D.conformsTo=r$,D.deburr=Hp,D.defaultTo=LQ,D.divide=lK,D.endsWith=cQ,D.eq=nn,D.escape=fQ,D.escapeRegExp=_Q,D.every=yW,D.find=wW,D.findIndex=hp,D.findKey=N$,D.findLast=DW,D.findLastIndex=mp,D.findLastKey=O$,D.floor=uK,D.forEach=wp,D.forEachRight=Dp,D.forIn=M$,D.forInRight=P$,D.forOwn=L$,D.forOwnRight=V$,D.get=Zc,D.gt=o$,D.gte=s$,D.has=U$,D.hasIn=Jc,D.head=pp,D.identity=ha,D.includes=BW,D.indexOf=DG,D.inRange=lQ,D.invoke=G$,D.isArguments=Yi,D.isArray=Te,D.isArrayBuffer=l$,D.isArrayLike=_a,D.isArrayLikeObject=Tt,D.isBoolean=u$,D.isBuffer=yi,D.isDate=d$,D.isElement=c$,D.isEmpty=f$,D.isEqual=_$,D.isEqualWith=g$,D.isError=Kc,D.isFinite=h$,D.isFunction=Qn,D.isInteger=Sp,D.isLength=bu,D.isMap=qp,D.isMatch=m$,D.isMatchWith=F$,D.isNaN=p$,D.isNative=b$,D.isNil=k$,D.isNull=y$,D.isNumber=Tp,D.isObject=vt,D.isObjectLike=jt,D.isPlainObject=Wo,D.isRegExp=Xc,D.isSafeInteger=w$,D.isSet=Ip,D.isString=yu,D.isSymbol=Ca,D.isTypedArray=zr,D.isUndefined=D$,D.isWeakMap=C$,D.isWeakSet=E$,D.join=BG,D.kebabCase=gQ,D.last=za,D.lastIndexOf=vG,D.lowerCase=hQ,D.lowerFirst=mQ,D.lt=A$,D.lte=x$,D.max=dK,D.maxBy=cK,D.mean=fK,D.meanBy=_K,D.min=gK,D.minBy=hK,D.stubArray=of,D.stubFalse=sf,D.stubObject=eK,D.stubString=tK,D.stubTrue=aK,D.multiply=mK,D.nth=jG,D.noConflict=GQ,D.noop=rf,D.now=mu,D.pad=FQ,D.padEnd=pQ,D.padStart=bQ,D.parseInt=yQ,D.random=uQ,D.reduce=TW,D.reduceRight=IW,D.repeat=kQ,D.replace=wQ,D.result=J$,D.round=FK,D.runInContext=L,D.sample=OW,D.size=LW,D.snakeCase=DQ,D.some=VW,D.sortedIndex=MG,D.sortedIndexBy=PG,D.sortedIndexOf=LG,D.sortedLastIndex=VG,D.sortedLastIndexBy=RG,D.sortedLastIndexOf=zG,D.startCase=EQ,D.startsWith=AQ,D.subtract=pK,D.sum=bK,D.sumBy=yK,D.template=xQ,D.times=nK,D.toFinite=Kn,D.toInteger=Ne,D.toLength=Op,D.toLower=BQ,D.toNumber=Ua,D.toSafeInteger=B$,D.toString=it,D.toUpper=vQ,D.trim=jQ,D.trimEnd=SQ,D.trimStart=qQ,D.truncate=TQ,D.unescape=IQ,D.uniqueId=rK,D.upperCase=NQ,D.upperFirst=ef,D.each=wp,D.eachRight=Dp,D.first=pp,nf(D,function(){var o={};return kn(D,function(l,f){ot.call(D.prototype,f)||(o[f]=l)}),o}(),{chain:!1}),D.VERSION=i,Ma(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){D[o].placeholder=D}),Ma(["drop","take"],function(o,l){$e.prototype[o]=function(f){f=f===n?1:Ht(Ne(f),0);var m=this.__filtered__&&!l?new $e(this):this.clone();return m.__filtered__?m.__takeCount__=ea(f,m.__takeCount__):m.__views__.push({size:ea(f,ct),type:o+(m.__dir__<0?"Right":"")}),m},$e.prototype[o+"Right"]=function(f){return this.reverse()[o](f).reverse()}}),Ma(["filter","map","takeWhile"],function(o,l){var f=l+1,m=f==ye||f==ie;$e.prototype[o]=function(b){var E=this.clone();return E.__iteratees__.push({iteratee:Ce(b,3),type:f}),E.__filtered__=E.__filtered__||m,E}}),Ma(["head","last"],function(o,l){var f="take"+(l?"Right":"");$e.prototype[o]=function(){return this[f](1).value()[0]}}),Ma(["initial","tail"],function(o,l){var f="drop"+(l?"":"Right");$e.prototype[o]=function(){return this.__filtered__?new $e(this):this[f](1)}}),$e.prototype.compact=function(){return this.filter(ha)},$e.prototype.find=function(o){return this.filter(o).head()},$e.prototype.findLast=function(o){return this.reverse().find(o)},$e.prototype.invokeMap=ze(function(o,l){return typeof o=="function"?new $e(this):this.map(function(f){return Ro(f,o,l)})}),$e.prototype.reject=function(o){return this.filter(pu(Ce(o)))},$e.prototype.slice=function(o,l){o=Ne(o);var f=this;return f.__filtered__&&(o>0||l<0)?new $e(f):(o<0?f=f.takeRight(-o):o&&(f=f.drop(o)),l!==n&&(l=Ne(l),f=l<0?f.dropRight(-l):f.take(l-o)),f)},$e.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},$e.prototype.toArray=function(){return this.take(ct)},kn($e.prototype,function(o,l){var f=/^(?:filter|find|map|reject)|While$/.test(l),m=/^(?:head|last)$/.test(l),b=D[m?"take"+(l=="last"?"Right":""):l],E=m||/^find/.test(l);b&&(D.prototype[l]=function(){var q=this.__wrapped__,O=m?[1]:arguments,V=q instanceof $e,K=O[0],X=V||Te(q),J=function(Ye){var Ke=b.apply(D,_i([Ye],O));return m&&_e?Ke[0]:Ke};X&&f&&typeof K=="function"&&K.length!=1&&(V=X=!1);var _e=this.__chain__,we=!!this.__actions__.length,Ee=E&&!_e,Pe=V&&!we;if(!E&&X){q=Pe?q:new $e(this);var Ae=o.apply(q,O);return Ae.__actions__.push({func:gu,args:[J],thisArg:n}),new La(Ae,_e)}return Ee&&Pe?o.apply(this,O):(Ae=this.thru(J),Ee?m?Ae.value()[0]:Ae.value():Ae)})}),Ma(["pop","push","shift","sort","splice","unshift"],function(o){var l=Vl[o],f=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",m=/^(?:pop|shift)$/.test(o);D.prototype[o]=function(){var b=arguments;if(m&&!this.__chain__){var E=this.value();return l.apply(Te(E)?E:[],b)}return this[f](function(q){return l.apply(Te(q)?q:[],b)})}}),kn($e.prototype,function(o,l){var f=D[l];if(f){var m=f.name+"";ot.call(Mr,m)||(Mr[m]=[]),Mr[m].push({name:l,func:f})}}),Mr[su(n,v).name]=[{name:"wrapper",func:n}],$e.prototype.clone=IH,$e.prototype.reverse=NH,$e.prototype.value=OH,D.prototype.at=cW,D.prototype.chain=fW,D.prototype.commit=_W,D.prototype.next=gW,D.prototype.plant=mW,D.prototype.reverse=FW,D.prototype.toJSON=D.prototype.valueOf=D.prototype.value=pW,D.prototype.first=D.prototype.head,Io&&(D.prototype[Io]=hW),D},Ir=_H();Mi?((Mi.exports=Ir)._=Ir,ac._=Ir):Xt._=Ir}).call(or)}(zs,zs.exports);var $t=zs.exports;const nh=["January","February","March","April","May","June","July","August","September","October","November","December"],ih=["S","M","T","W","T","F","S"],rh=[{name:"Last 7 days",id:"last-7-days"},{name:"Last 14 days",id:"last-14-days"},{name:"Last 30 days",id:"last-30-days"},{name:"Last 12 months",id:"last-12-months"},{name:"Current month",id:"current-month"},{name:"Previous month",id:"previous-month"},{name:"Custom",id:"custom"}],cC={"pt-br":["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],en:nh,"en-us":nh,es:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"]},fC={"pt-br":["D","S","T","Q","Q","S","S"],en:ih,"en-us":ih,es:["D","L","M","M","J","V","S"]},Us={"pt-br":{clear:"Limpar",filter:"Filtrar"},"en-us":{clear:"Clear",filter:"Filter"},es:{clear:"Limpiar",filter:"Filtrar"}};Us.en=Us["en-us"];const _C={"pt-br":[{name:"Últimos 7 dias",id:"last-7-days"},{name:"Últimos 14 dias",id:"last-14-days"},{name:"Últimos 30 dias",id:"last-30-days"},{name:"Últimos 12 meses",id:"last-12-months"},{name:"Mês Atual",id:"current-month"},{name:"Mês Anterior",id:"previous-month"},{name:"Personalizar",id:"custom"}],en:rh,"en-us":rh,es:[{name:"Últimos 7 días",id:"last-7-days"},{name:"Últimos 14 días",id:"last-14-days"},{name:"Últimos 30 días",id:"last-30-days"},{name:"Últimos 12 meses",id:"last-12-months"},{name:"Mes actual",id:"current-month"},{name:"Mes anterior",id:"previous-month"},{name:"Personalizar",id:"custom"}]};/*!
43
+ }`;var Pe=Gp(function(){return nt(E,we+"return "+J).apply(n,q)});if(Pe.source=J,Kc(Pe))throw Pe;return Pe}function BQ(o){return it(o).toLowerCase()}function vQ(o){return it(o).toUpperCase()}function jQ(o,l,f){if(o=it(o),o&&(f||l===n))return t2(o);if(!o||!(l=Da(l)))return o;var m=tn(o),b=tn(l),E=a2(m,b),q=n2(m,b)+1;return bi(m,E,q).join("")}function SQ(o,l,f){if(o=it(o),o&&(f||l===n))return o.slice(0,r2(o)+1);if(!o||!(l=Da(l)))return o;var m=tn(o),b=n2(m,tn(l))+1;return bi(m,0,b).join("")}function qQ(o,l,f){if(o=it(o),o&&(f||l===n))return o.replace(Kd,"");if(!o||!(l=Da(l)))return o;var m=tn(o),b=a2(m,tn(l));return bi(m,b).join("")}function TQ(o,l){var f=W,m=ee;if(vt(l)){var b="separator"in l?l.separator:b;f="length"in l?Ne(l.length):f,m="omission"in l?Da(l.omission):m}o=it(o);var E=o.length;if(qr(o)){var q=tn(o);E=q.length}if(f>=E)return o;var O=f-Tr(m);if(O<1)return m;var V=q?bi(q,0,O).join(""):o.slice(0,O);if(b===n)return V+m;if(q&&(O+=V.length-O),Xc(b)){if(o.slice(O).search(b)){var K,X=V;for(b.global||(b=_c(b.source,it(DF.exec(b))+"g")),b.lastIndex=0;K=b.exec(X);)var J=K.index;V=V.slice(0,J===n?O:J)}}else if(o.indexOf(Da(b),O)!=O){var _e=V.lastIndexOf(b);_e>-1&&(V=V.slice(0,_e))}return V+m}function IQ(o){return o=it(o),o&&Yz.test(o)?o.replace(yF,uH):o}var NQ=Vr(function(o,l,f){return o+(f?" ":"")+l.toUpperCase()}),ef=W2("toUpperCase");function Yp(o,l,f){return o=it(o),l=f?n:l,l===n?iH(o)?fH(o):QU(o):o.match(l)||[]}var Gp=ze(function(o,l){try{return ka(o,n,l)}catch(f){return Kc(f)?f:new Se(f)}}),OQ=Wn(function(o,l){return Ma(l,function(f){f=Dn(f),Yn(o,f,$c(o[f],o))}),o});function MQ(o){var l=o==null?0:o.length,f=Ce();return o=l?Et(o,function(m){if(typeof m[1]!="function")throw new Pa(u);return[f(m[0]),m[1]]}):[],ze(function(m){for(var b=-1;++b<l;){var E=o[b];if(ka(E[0],this,m))return ka(E[1],this,m)}})}function PQ(o){return uY(Va(o,h))}function tf(o){return function(){return o}}function LQ(o,l){return o==null||o!==o?l:o}var VQ=Q2(),RQ=Q2(!0);function ha(o){return o}function af(o){return E2(typeof o=="function"?o:Va(o,h))}function zQ(o){return x2(Va(o,h))}function UQ(o,l){return B2(o,Va(l,h))}var HQ=ze(function(o,l){return function(f){return Ro(f,o,l)}}),YQ=ze(function(o,l){return function(f){return Ro(o,f,l)}});function nf(o,l,f){var m=Wt(l),b=au(l,m);f==null&&!(vt(l)&&(b.length||!m.length))&&(f=l,l=o,o=this,b=au(l,Wt(l)));var E=!(vt(f)&&"chain"in f)||!!f.chain,q=Qn(o);return Ma(b,function(O){var V=l[O];o[O]=V,q&&(o.prototype[O]=function(){var K=this.__chain__;if(E||K){var X=o(this.__wrapped__),J=X.__actions__=fa(this.__actions__);return J.push({func:V,args:arguments,thisArg:o}),X.__chain__=K,X}return V.apply(o,_i([this.value()],arguments))})}),o}function GQ(){return Xt._===this&&(Xt._=pH),this}function rf(){}function WQ(o){return o=Ne(o),ze(function(l){return v2(l,o)})}var $Q=Nc(Et),QQ=Nc(KF),KQ=Nc(oc);function Wp(o){return zc(o)?sc(Dn(o)):AY(o)}function XQ(o){return function(l){return o==null?n:zi(o,l)}}var ZQ=X2(),JQ=X2(!0);function of(){return[]}function sf(){return!1}function eK(){return{}}function tK(){return""}function aK(){return!0}function nK(o,l){if(o=Ne(o),o<1||o>ae)return[];var f=ct,m=ea(o,ct);l=Ce(l),o-=ct;for(var b=dc(m,l);++f<o;)l(f);return b}function iK(o){return Te(o)?Et(o,Dn):Ca(o)?[o]:fa(_p(it(o)))}function rK(o){var l=++mH;return it(o)+l}var oK=lu(function(o,l){return o+l},0),sK=Oc("ceil"),lK=lu(function(o,l){return o/l},1),uK=Oc("floor");function dK(o){return o&&o.length?tu(o,ha,kc):n}function cK(o,l){return o&&o.length?tu(o,Ce(l,2),kc):n}function fK(o){return JF(o,ha)}function _K(o,l){return JF(o,Ce(l,2))}function gK(o){return o&&o.length?tu(o,ha,Ec):n}function hK(o,l){return o&&o.length?tu(o,Ce(l,2),Ec):n}var mK=lu(function(o,l){return o*l},1),FK=Oc("round"),pK=lu(function(o,l){return o-l},0);function bK(o){return o&&o.length?uc(o,ha):0}function yK(o,l){return o&&o.length?uc(o,Ce(l,2)):0}return D.after=zW,D.ary=Cp,D.assign=v$,D.assignIn=Pp,D.assignInWith=ku,D.assignWith=j$,D.at=S$,D.before=Ep,D.bind=$c,D.bindAll=OQ,D.bindKey=Ap,D.castArray=e$,D.chain=kp,D.chunk=uG,D.compact=dG,D.concat=cG,D.cond=MQ,D.conforms=PQ,D.constant=tf,D.countBy=bW,D.create=q$,D.curry=xp,D.curryRight=Bp,D.debounce=vp,D.defaults=T$,D.defaultsDeep=I$,D.defer=UW,D.delay=HW,D.difference=fG,D.differenceBy=_G,D.differenceWith=gG,D.drop=hG,D.dropRight=mG,D.dropRightWhile=FG,D.dropWhile=pG,D.fill=bG,D.filter=kW,D.flatMap=CW,D.flatMapDeep=EW,D.flatMapDepth=AW,D.flatten=Fp,D.flattenDeep=yG,D.flattenDepth=kG,D.flip=YW,D.flow=VQ,D.flowRight=RQ,D.fromPairs=wG,D.functions=R$,D.functionsIn=z$,D.groupBy=xW,D.initial=CG,D.intersection=EG,D.intersectionBy=AG,D.intersectionWith=xG,D.invert=H$,D.invertBy=Y$,D.invokeMap=vW,D.iteratee=af,D.keyBy=jW,D.keys=Wt,D.keysIn=ga,D.map=hu,D.mapKeys=W$,D.mapValues=$$,D.matches=zQ,D.matchesProperty=UQ,D.memoize=Fu,D.merge=Q$,D.mergeWith=Lp,D.method=HQ,D.methodOf=YQ,D.mixin=nf,D.negate=pu,D.nthArg=WQ,D.omit=K$,D.omitBy=X$,D.once=GW,D.orderBy=SW,D.over=$Q,D.overArgs=WW,D.overEvery=QQ,D.overSome=KQ,D.partial=Qc,D.partialRight=jp,D.partition=qW,D.pick=Z$,D.pickBy=Vp,D.property=Wp,D.propertyOf=XQ,D.pull=SG,D.pullAll=bp,D.pullAllBy=qG,D.pullAllWith=TG,D.pullAt=IG,D.range=ZQ,D.rangeRight=JQ,D.rearg=$W,D.reject=NW,D.remove=NG,D.rest=QW,D.reverse=Gc,D.sampleSize=MW,D.set=eQ,D.setWith=tQ,D.shuffle=PW,D.slice=OG,D.sortBy=RW,D.sortedUniq=UG,D.sortedUniqBy=HG,D.split=CQ,D.spread=KW,D.tail=YG,D.take=GG,D.takeRight=WG,D.takeRightWhile=$G,D.takeWhile=QG,D.tap=dW,D.throttle=XW,D.thru=gu,D.toArray=Np,D.toPairs=Rp,D.toPairsIn=zp,D.toPath=iK,D.toPlainObject=Mp,D.transform=aQ,D.unary=ZW,D.union=KG,D.unionBy=XG,D.unionWith=ZG,D.uniq=JG,D.uniqBy=eW,D.uniqWith=tW,D.unset=nQ,D.unzip=Wc,D.unzipWith=yp,D.update=iQ,D.updateWith=rQ,D.values=Ur,D.valuesIn=oQ,D.without=aW,D.words=Yp,D.wrap=JW,D.xor=nW,D.xorBy=iW,D.xorWith=rW,D.zip=oW,D.zipObject=sW,D.zipObjectDeep=lW,D.zipWith=uW,D.entries=Rp,D.entriesIn=zp,D.extend=Pp,D.extendWith=ku,nf(D,D),D.add=oK,D.attempt=Gp,D.camelCase=dQ,D.capitalize=Up,D.ceil=sK,D.clamp=sQ,D.clone=t$,D.cloneDeep=n$,D.cloneDeepWith=i$,D.cloneWith=a$,D.conformsTo=r$,D.deburr=Hp,D.defaultTo=LQ,D.divide=lK,D.endsWith=cQ,D.eq=nn,D.escape=fQ,D.escapeRegExp=_Q,D.every=yW,D.find=wW,D.findIndex=hp,D.findKey=N$,D.findLast=DW,D.findLastIndex=mp,D.findLastKey=O$,D.floor=uK,D.forEach=wp,D.forEachRight=Dp,D.forIn=M$,D.forInRight=P$,D.forOwn=L$,D.forOwnRight=V$,D.get=Zc,D.gt=o$,D.gte=s$,D.has=U$,D.hasIn=Jc,D.head=pp,D.identity=ha,D.includes=BW,D.indexOf=DG,D.inRange=lQ,D.invoke=G$,D.isArguments=Yi,D.isArray=Te,D.isArrayBuffer=l$,D.isArrayLike=_a,D.isArrayLikeObject=Tt,D.isBoolean=u$,D.isBuffer=yi,D.isDate=d$,D.isElement=c$,D.isEmpty=f$,D.isEqual=_$,D.isEqualWith=g$,D.isError=Kc,D.isFinite=h$,D.isFunction=Qn,D.isInteger=Sp,D.isLength=bu,D.isMap=qp,D.isMatch=m$,D.isMatchWith=F$,D.isNaN=p$,D.isNative=b$,D.isNil=k$,D.isNull=y$,D.isNumber=Tp,D.isObject=vt,D.isObjectLike=jt,D.isPlainObject=Wo,D.isRegExp=Xc,D.isSafeInteger=w$,D.isSet=Ip,D.isString=yu,D.isSymbol=Ca,D.isTypedArray=zr,D.isUndefined=D$,D.isWeakMap=C$,D.isWeakSet=E$,D.join=BG,D.kebabCase=gQ,D.last=za,D.lastIndexOf=vG,D.lowerCase=hQ,D.lowerFirst=mQ,D.lt=A$,D.lte=x$,D.max=dK,D.maxBy=cK,D.mean=fK,D.meanBy=_K,D.min=gK,D.minBy=hK,D.stubArray=of,D.stubFalse=sf,D.stubObject=eK,D.stubString=tK,D.stubTrue=aK,D.multiply=mK,D.nth=jG,D.noConflict=GQ,D.noop=rf,D.now=mu,D.pad=FQ,D.padEnd=pQ,D.padStart=bQ,D.parseInt=yQ,D.random=uQ,D.reduce=TW,D.reduceRight=IW,D.repeat=kQ,D.replace=wQ,D.result=J$,D.round=FK,D.runInContext=L,D.sample=OW,D.size=LW,D.snakeCase=DQ,D.some=VW,D.sortedIndex=MG,D.sortedIndexBy=PG,D.sortedIndexOf=LG,D.sortedLastIndex=VG,D.sortedLastIndexBy=RG,D.sortedLastIndexOf=zG,D.startCase=EQ,D.startsWith=AQ,D.subtract=pK,D.sum=bK,D.sumBy=yK,D.template=xQ,D.times=nK,D.toFinite=Kn,D.toInteger=Ne,D.toLength=Op,D.toLower=BQ,D.toNumber=Ua,D.toSafeInteger=B$,D.toString=it,D.toUpper=vQ,D.trim=jQ,D.trimEnd=SQ,D.trimStart=qQ,D.truncate=TQ,D.unescape=IQ,D.uniqueId=rK,D.upperCase=NQ,D.upperFirst=ef,D.each=wp,D.eachRight=Dp,D.first=pp,nf(D,function(){var o={};return kn(D,function(l,f){ot.call(D.prototype,f)||(o[f]=l)}),o}(),{chain:!1}),D.VERSION=i,Ma(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){D[o].placeholder=D}),Ma(["drop","take"],function(o,l){$e.prototype[o]=function(f){f=f===n?1:Ht(Ne(f),0);var m=this.__filtered__&&!l?new $e(this):this.clone();return m.__filtered__?m.__takeCount__=ea(f,m.__takeCount__):m.__views__.push({size:ea(f,ct),type:o+(m.__dir__<0?"Right":"")}),m},$e.prototype[o+"Right"]=function(f){return this.reverse()[o](f).reverse()}}),Ma(["filter","map","takeWhile"],function(o,l){var f=l+1,m=f==ye||f==ie;$e.prototype[o]=function(b){var E=this.clone();return E.__iteratees__.push({iteratee:Ce(b,3),type:f}),E.__filtered__=E.__filtered__||m,E}}),Ma(["head","last"],function(o,l){var f="take"+(l?"Right":"");$e.prototype[o]=function(){return this[f](1).value()[0]}}),Ma(["initial","tail"],function(o,l){var f="drop"+(l?"":"Right");$e.prototype[o]=function(){return this.__filtered__?new $e(this):this[f](1)}}),$e.prototype.compact=function(){return this.filter(ha)},$e.prototype.find=function(o){return this.filter(o).head()},$e.prototype.findLast=function(o){return this.reverse().find(o)},$e.prototype.invokeMap=ze(function(o,l){return typeof o=="function"?new $e(this):this.map(function(f){return Ro(f,o,l)})}),$e.prototype.reject=function(o){return this.filter(pu(Ce(o)))},$e.prototype.slice=function(o,l){o=Ne(o);var f=this;return f.__filtered__&&(o>0||l<0)?new $e(f):(o<0?f=f.takeRight(-o):o&&(f=f.drop(o)),l!==n&&(l=Ne(l),f=l<0?f.dropRight(-l):f.take(l-o)),f)},$e.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},$e.prototype.toArray=function(){return this.take(ct)},kn($e.prototype,function(o,l){var f=/^(?:filter|find|map|reject)|While$/.test(l),m=/^(?:head|last)$/.test(l),b=D[m?"take"+(l=="last"?"Right":""):l],E=m||/^find/.test(l);b&&(D.prototype[l]=function(){var q=this.__wrapped__,O=m?[1]:arguments,V=q instanceof $e,K=O[0],X=V||Te(q),J=function(Ye){var Ke=b.apply(D,_i([Ye],O));return m&&_e?Ke[0]:Ke};X&&f&&typeof K=="function"&&K.length!=1&&(V=X=!1);var _e=this.__chain__,we=!!this.__actions__.length,Ee=E&&!_e,Pe=V&&!we;if(!E&&X){q=Pe?q:new $e(this);var Ae=o.apply(q,O);return Ae.__actions__.push({func:gu,args:[J],thisArg:n}),new La(Ae,_e)}return Ee&&Pe?o.apply(this,O):(Ae=this.thru(J),Ee?m?Ae.value()[0]:Ae.value():Ae)})}),Ma(["pop","push","shift","sort","splice","unshift"],function(o){var l=Vl[o],f=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",m=/^(?:pop|shift)$/.test(o);D.prototype[o]=function(){var b=arguments;if(m&&!this.__chain__){var E=this.value();return l.apply(Te(E)?E:[],b)}return this[f](function(q){return l.apply(Te(q)?q:[],b)})}}),kn($e.prototype,function(o,l){var f=D[l];if(f){var m=f.name+"";ot.call(Mr,m)||(Mr[m]=[]),Mr[m].push({name:l,func:f})}}),Mr[su(n,v).name]=[{name:"wrapper",func:n}],$e.prototype.clone=IH,$e.prototype.reverse=NH,$e.prototype.value=OH,D.prototype.at=cW,D.prototype.chain=fW,D.prototype.commit=_W,D.prototype.next=gW,D.prototype.plant=mW,D.prototype.reverse=FW,D.prototype.toJSON=D.prototype.valueOf=D.prototype.value=pW,D.prototype.first=D.prototype.head,Io&&(D.prototype[Io]=hW),D},Ir=_H();Mi?((Mi.exports=Ir)._=Ir,ac._=Ir):Xt._=Ir}).call(or)}(zs,zs.exports);var $t=zs.exports;const nh=["January","February","March","April","May","June","July","August","September","October","November","December"],ih=["S","M","T","W","T","F","S"],rh=[{name:"Today",id:"today"},{name:"Last 7 days",id:"last-7-days"},{name:"Last 14 days",id:"last-14-days"},{name:"Last 30 days",id:"last-30-days"},{name:"Last 12 months",id:"last-12-months"},{name:"Current month",id:"current-month"},{name:"Previous month",id:"previous-month"},{name:"Custom",id:"custom"}],cC={"pt-br":["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],en:nh,"en-us":nh,es:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"]},fC={"pt-br":["D","S","T","Q","Q","S","S"],en:ih,"en-us":ih,es:["D","L","M","M","J","V","S"]},Us={"pt-br":{clear:"Limpar",filter:"Filtrar"},"en-us":{clear:"Clear",filter:"Filter"},es:{clear:"Limpiar",filter:"Filtrar"}};Us.en=Us["en-us"];const _C={"pt-br":[{name:"Hoje",id:"today"},{name:"Últimos 7 dias",id:"last-7-days"},{name:"Últimos 14 dias",id:"last-14-days"},{name:"Últimos 30 dias",id:"last-30-days"},{name:"Últimos 12 meses",id:"last-12-months"},{name:"Mês Atual",id:"current-month"},{name:"Mês Anterior",id:"previous-month"},{name:"Personalizar",id:"custom"}],en:rh,"en-us":rh,es:[{name:"Hoy",id:"today"},{name:"Últimos 7 días",id:"last-7-days"},{name:"Últimos 14 días",id:"last-14-days"},{name:"Últimos 30 días",id:"last-30-days"},{name:"Últimos 12 meses",id:"last-12-months"},{name:"Mes actual",id:"current-month"},{name:"Mes anterior",id:"previous-month"},{name:"Personalizar",id:"custom"}]};/*!
44
44
  * shared v9.14.5
45
45
  * (c) 2025 kazuya kawaguchi
46
46
  * Released under the MIT License.
@@ -62,7 +62,7 @@ ${_}`:c)}else throw u},onCacheKey:u=>hC(a,n,u)}}function XE(e){if(le(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 sA="9.14.5";function lA(){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 fm=ia.__EXTEND_POINT__,Rn=Ys(fm),wt={FALLBACK_TO_ROOT:fm,NOT_SUPPORTED_PRESERVE:Rn(),NOT_SUPPORTED_FORMATTER:Rn(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:Rn(),NOT_SUPPORTED_GET_CHOICE_INDEX:Rn(),COMPONENT_NAME_LEGACY_COMPATIBLE:Rn(),NOT_FOUND_PARENT_SCOPE:Rn(),IGNORE_OBJ_FLATTEN:Rn(),NOTICE_DROP_ALLOW_COMPOSITION:Rn(),NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG:Rn()},uA={[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,...a){return Q0(uA[e],...a)}const _m=Yt.__EXTEND_POINT__,ca=Ys(_m),Ze={UNEXPECTED_RETURN_TYPE:_m,INVALID_ARGUMENT:ca(),MUST_BE_CALL_SETUP_TOP:ca(),NOT_INSTALLED:ca(),NOT_AVAILABLE_IN_LEGACY_MODE:ca(),REQUIRED_VALUE:ca(),INVALID_VALUE:ca(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:ca(),NOT_INSTALLED_WITH_PROVIDE:ca(),UNEXPECTED_ERROR:ca(),NOT_COMPATIBLE_LEGACY_VUE_I18N:ca(),BRIDGE_SUPPORT_VUE_2_ONLY:ca(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:ca(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:ca(),__EXTEND_POINT__:ca()};function Rt(e,...a){return mr(e,null,process.env.NODE_ENV!=="production"?{messages:dA,args:a}:void 0)}const dA={[Ze.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[Ze.INVALID_ARGUMENT]:"Invalid argument",[Ze.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[Ze.NOT_INSTALLED]:"Need to install with `app.use` function",[Ze.UNEXPECTED_ERROR]:"Unexpected error",[Ze.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[Ze.REQUIRED_VALUE]:"Required in value: {0}",[Ze.INVALID_VALUE]:"Invalid value",[Ze.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[Ze.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[Ze.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[Ze.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[Ze.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",[Ze.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},u1=pn("__translateVNode"),d1=pn("__datetimeParts"),c1=pn("__numberParts"),Ti=pn("__enableEmitter"),po=pn("__disableEmitter"),gm=pn("__setPluralRules"),hm=pn("__injectWithOption"),f1=pn("__dispose");function bo(e){if(!Qe(e)||Sa(e))return e;for(const a in e)if(Xa(e,a))if(!a.includes("."))Qe(e[a])&&bo(e[a]);else{const n=a.split("."),i=n.length-1;let r=e,s=!1;for(let u=0;u<i;u++){if(n[u]==="__proto__")throw new Error(`unsafe key: ${n[u]}`);if(n[u]in r||(r[n[u]]=lt()),!Qe(r[n[u]])){process.env.NODE_ENV!=="production"&&Ot(da(wt.IGNORE_OBJ_FLATTEN,{key:n[u]})),s=!0;break}r=r[n[u]]}if(s||(Sa(r)?vh.includes(n[i])||delete e[a]:(r[n[i]]=e[a],delete e[a])),!Sa(r)){const u=r[n[i]];Qe(u)&&bo(u)}}return e}function el(e,a){const{messages:n,__i18n:i,messageResolver:r,flatJson:s}=a,u=Be(n)?n:_t(i)?lt():{[e]:lt()};if(_t(i)&&i.forEach(d=>{if("locale"in d&&"resource"in d){const{locale:c,resource:_}=d;c?(u[c]=u[c]||lt(),Ws(_,u[c])):Ws(_,u)}else le(d)&&Ws(JSON.parse(d),u)}),r==null&&s)for(const d in u)Xa(u,d)&&bo(u[d]);return u}function mm(e){return e.type}function Fm(e,a,n){let i=Qe(a.messages)?a.messages:lt();"__i18nGlobal"in n&&(i=el(e.locale.value,{messages:i,__i18n:n.__i18nGlobal}));const r=Object.keys(i);r.length&&r.forEach(s=>{e.mergeLocaleMessage(s,i[s])});{if(Qe(a.datetimeFormats)){const s=Object.keys(a.datetimeFormats);s.length&&s.forEach(u=>{e.mergeDateTimeFormat(u,a.datetimeFormats[u])})}if(Qe(a.numberFormats)){const s=Object.keys(a.numberFormats);s.length&&s.forEach(u=>{e.mergeNumberFormat(u,a.numberFormats[u])})}}}function pm(e){return t.createVNode(t.Text,null,e,0)}const bm="__INTLIFY_META__",ym=()=>[],cA=()=>!1;let km=0;function wm(e){return(a,n,i,r)=>e(n,i,t.getCurrentInstance()||void 0,r)}const fA=()=>{const e=t.getCurrentInstance();let a=null;return e&&(a=mm(e)[bm])?{[bm]:a}:null};function _1(e={},a){const{__root:n,__injectWithOption:i}=e,r=n===void 0,s=e.flatJson,u=Ka?t.ref:t.shallowRef,d=!!e.translateExistCompatible;process.env.NODE_ENV!=="production"&&d&&sh(da(wt.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));let c=Ve(e.inheritLocale)?e.inheritLocale:!0;const _=u(n&&c?n.locale.value:le(e.locale)?e.locale:br),g=u(n&&c?n.fallbackLocale.value:le(e.fallbackLocale)||_t(e.fallbackLocale)||Be(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:_.value),h=u(el(_.value,e)),F=u(Be(e.datetimeFormats)?e.datetimeFormats:{[_.value]:{}}),p=u(Be(e.numberFormats)?e.numberFormats:{[_.value]:{}});let y=n?n.missingWarn:Ve(e.missingWarn)||li(e.missingWarn)?e.missingWarn:!0,w=n?n.fallbackWarn:Ve(e.fallbackWarn)||li(e.fallbackWarn)?e.fallbackWarn:!0,C=n?n.fallbackRoot:Ve(e.fallbackRoot)?e.fallbackRoot:!0,v=!!e.fallbackFormat,x=ut(e.missing)?e.missing:null,k=ut(e.missing)?wm(e.missing):null,A=ut(e.postTranslation)?e.postTranslation:null,N=n?n.warnHtmlMessage:Ve(e.warnHtmlMessage)?e.warnHtmlMessage:!0,j=!!e.escapeParameter;const I=n?n.modifiers:Be(e.modifiers)?e.modifiers:{};let P=e.pluralRules||n&&n.pluralRules,M;M=(()=>{r&&Hh(null);const U={version:sA,locale:_.value,fallbackLocale:g.value,messages:h.value,modifiers:I,pluralRules:P,missing:k===null?void 0:k,missingWarn:y,fallbackWarn:w,fallbackFormat:v,unresolving:!0,postTranslation:A===null?void 0:A,warnHtmlMessage:N,escapeParameter:j,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};U.datetimeFormats=F.value,U.numberFormats=p.value,U.__datetimeFormatters=Be(M)?M.__datetimeFormatters:void 0,U.__numberFormatters=Be(M)?M.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(U.__v_emitter=Be(M)?M.__v_emitter:void 0);const te=zE(U);return r&&Hh(te),te})(),Fo(M,_.value,g.value);function ee(){return[_.value,g.value,h.value,F.value,p.value]}const $=t.computed({get:()=>_.value,set:U=>{_.value=U,M.locale=_.value}}),ce=t.computed({get:()=>g.value,set:U=>{g.value=U,M.fallbackLocale=g.value,Fo(M,_.value,U)}}),ye=t.computed(()=>h.value),ke=t.computed(()=>F.value),ie=t.computed(()=>p.value);function je(){return ut(A)?A:null}function ae(U){A=U,M.postTranslation=U}function at(){return x}function Dt(U){U!==null&&(k=wm(U)),x=U,M.missing=k}function ct(U,te){return U!=="translate"||!te.resolvedMessage}const Ct=(U,te,Re,dt,Pt,en)=>{ee();let Na;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(M.fallbackContext=n?RE():void 0),Na=U(M)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(M.fallbackContext=void 0)}if(Re!=="translate exists"&&qt(Na)&&Na===Xs||Re==="translate exists"&&!Na){const[zt,yn]=te();if(process.env.NODE_ENV!=="production"&&n&&le(zt)&&ct(Re,yn)&&(C&&(Js(w,zt)||Gh(y,zt))&&Ot(da(wt.FALLBACK_TO_ROOT,{key:zt,type:Re})),process.env.NODE_ENV!=="production")){const{__v_emitter:zn}=M;zn&&C&&zn.emit("fallback",{type:Re,key:zt,to:"global",groupId:`${Re}:${zt}`})}return n&&C?dt(n):Pt(zt)}else{if(en(Na))return Na;throw Rt(Ze.UNEXPECTED_RETURN_TYPE)}};function rt(...U){return Ct(te=>Reflect.apply(em,null,[te,...U]),()=>r1(...U),"translate",te=>Reflect.apply(te.t,te,[...U]),te=>te,te=>le(te))}function gt(...U){const[te,Re,dt]=U;if(dt&&!Qe(dt))throw Rt(Ze.INVALID_ARGUMENT);return rt(te,Re,Qt({resolvedMessage:!0},dt||{}))}function Bt(...U){return Ct(te=>Reflect.apply(rm,null,[te,...U]),()=>o1(...U),"datetime format",te=>Reflect.apply(te.d,te,[...U]),()=>Zs,te=>le(te))}function Kt(...U){return Ct(te=>Reflect.apply(lm,null,[te,...U]),()=>s1(...U),"number format",te=>Reflect.apply(te.n,te,[...U]),()=>Zs,te=>le(te))}function H(U){return U.map(te=>le(te)||qt(te)||Ve(te)?pm(String(te)):te)}const ue={normalize:H,interpolate:U=>U,type:"vnode"};function se(...U){return Ct(te=>{let Re;const dt=te;try{dt.processor=ue,Re=Reflect.apply(em,null,[dt,...U])}finally{dt.processor=null}return Re},()=>r1(...U),"translate",te=>te[u1](...U),te=>[pm(te)],te=>_t(te))}function Z(...U){return Ct(te=>Reflect.apply(lm,null,[te,...U]),()=>s1(...U),"number format",te=>te[c1](...U),ym,te=>le(te)||_t(te))}function ve(...U){return Ct(te=>Reflect.apply(rm,null,[te,...U]),()=>o1(...U),"datetime format",te=>te[d1](...U),ym,te=>le(te)||_t(te))}function qe(U){P=U,M.pluralRules=P}function Q(U,te){return Ct(()=>{if(!U)return!1;const Re=le(te)?te:_.value,dt=Oe(Re),Pt=M.messageResolver(dt,U);return d?Pt!=null:Sa(Pt)||qa(Pt)||le(Pt)},()=>[U],"translate exists",Re=>Reflect.apply(Re.te,Re,[U,te]),cA,Re=>Ve(Re))}function fe(U){let te=null;const Re=Nh(M,g.value,_.value);for(let dt=0;dt<Re.length;dt++){const Pt=h.value[Re[dt]]||{},en=M.messageResolver(Pt,U);if(en!=null){te=en;break}}return te}function ht(U){const te=fe(U);return te??(n?n.tm(U)||{}:{})}function Oe(U){return h.value[U]||{}}function ge(U,te){if(s){const Re={[U]:te};for(const dt in Re)Xa(Re,dt)&&bo(Re[dt]);te=Re[U]}h.value[U]=te,M.messages=h.value}function Ue(U,te){h.value[U]=h.value[U]||{};const Re={[U]:te};if(s)for(const dt in Re)Xa(Re,dt)&&bo(Re[dt]);te=Re[U],Ws(te,h.value[U]),M.messages=h.value}function B(U){return F.value[U]||{}}function S(U,te){F.value[U]=te,M.datetimeFormats=F.value,sm(M,U,te)}function Y(U,te){F.value[U]=Qt(F.value[U]||{},te),M.datetimeFormats=F.value,sm(M,U,te)}function de(U){return p.value[U]||{}}function He(U,te){p.value[U]=te,M.numberFormats=p.value,dm(M,U,te)}function Me(U,te){p.value[U]=Qt(p.value[U]||{},te),M.numberFormats=p.value,dm(M,U,te)}km++,n&&Ka&&(t.watch(n.locale,U=>{c&&(_.value=U,M.locale=U,Fo(M,_.value,g.value))}),t.watch(n.fallbackLocale,U=>{c&&(g.value=U,M.fallbackLocale=U,Fo(M,_.value,g.value))}));const We={id:km,locale:$,fallbackLocale:ce,get inheritLocale(){return c},set inheritLocale(U){c=U,U&&n&&(_.value=n.locale.value,g.value=n.fallbackLocale.value,Fo(M,_.value,g.value))},get availableLocales(){return Object.keys(h.value).sort()},messages:ye,get modifiers(){return I},get pluralRules(){return P||{}},get isGlobal(){return r},get missingWarn(){return y},set missingWarn(U){y=U,M.missingWarn=y},get fallbackWarn(){return w},set fallbackWarn(U){w=U,M.fallbackWarn=w},get fallbackRoot(){return C},set fallbackRoot(U){C=U},get fallbackFormat(){return v},set fallbackFormat(U){v=U,M.fallbackFormat=v},get warnHtmlMessage(){return N},set warnHtmlMessage(U){N=U,M.warnHtmlMessage=U},get escapeParameter(){return j},set escapeParameter(U){j=U,M.escapeParameter=U},t:rt,getLocaleMessage:Oe,setLocaleMessage:ge,mergeLocaleMessage:Ue,getPostTranslationHandler:je,setPostTranslationHandler:ae,getMissingHandler:at,setMissingHandler:Dt,[gm]:qe};return We.datetimeFormats=ke,We.numberFormats=ie,We.rt=gt,We.te=Q,We.tm=ht,We.d=Bt,We.n=Kt,We.getDateTimeFormat=B,We.setDateTimeFormat=S,We.mergeDateTimeFormat=Y,We.getNumberFormat=de,We.setNumberFormat=He,We.mergeNumberFormat=Me,We[hm]=i,We[u1]=se,We[d1]=ve,We[c1]=Z,process.env.NODE_ENV!=="production"&&(We[Ti]=U=>{M.__v_emitter=U},We[po]=()=>{M.__v_emitter=void 0}),We}function _A(e){const a=le(e.locale)?e.locale:br,n=le(e.fallbackLocale)||_t(e.fallbackLocale)||Be(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a,i=ut(e.missing)?e.missing:void 0,r=Ve(e.silentTranslationWarn)||li(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,s=Ve(e.silentFallbackWarn)||li(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,u=Ve(e.fallbackRoot)?e.fallbackRoot:!0,d=!!e.formatFallbackMessages,c=Be(e.modifiers)?e.modifiers:{},_=e.pluralizationRules,g=ut(e.postTranslation)?e.postTranslation:void 0,h=le(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,F=!!e.escapeParameterHtml,p=Ve(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 y=e.messages;if(Be(e.sharedMessages)){const j=e.sharedMessages;y=Object.keys(j).reduce((P,M)=>{const W=P[M]||(P[M]={});return Qt(W,j[M]),P},y||{})}const{__i18n:w,__root:C,__injectWithOption:v}=e,x=e.datetimeFormats,k=e.numberFormats,A=e.flatJson,N=e.translateExistCompatible;return{locale:a,fallbackLocale:n,messages:y,flatJson:A,datetimeFormats:x,numberFormats:k,missing:i,missingWarn:r,fallbackWarn:s,fallbackRoot:u,fallbackFormat:d,modifiers:c,pluralRules:_,postTranslation:g,warnHtmlMessage:h,escapeParameter:F,messageResolver:e.messageResolver,inheritLocale:p,translateExistCompatible:N,__i18n:w,__root:C,__injectWithOption:v}}function g1(e={},a){{const n=_1(_A(e)),{__extender:i}=e,r={id:n.id,get locale(){return n.locale.value},set locale(s){n.locale.value=s},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(s){n.fallbackLocale.value=s},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.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 n.getMissingHandler()},set missing(s){n.setMissingHandler(s)},get silentTranslationWarn(){return Ve(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(s){n.missingWarn=Ve(s)?!s:s},get silentFallbackWarn(){return Ve(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(s){n.fallbackWarn=Ve(s)?!s:s},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(s){n.fallbackFormat=s},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(s){n.setPostTranslationHandler(s)},get sync(){return n.inheritLocale},set sync(s){n.inheritLocale=s},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(s){n.warnHtmlMessage=s!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(s){n.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 n.pluralRules||{}},__composer:n,t(...s){const[u,d,c]=s,_={};let g=null,h=null;if(!le(u))throw Rt(Ze.INVALID_ARGUMENT);const F=u;return le(d)?_.locale=d:_t(d)?g=d:Be(d)&&(h=d),_t(c)?g=c:Be(c)&&(h=c),Reflect.apply(n.t,n,[F,g||h||{},_])},rt(...s){return Reflect.apply(n.rt,n,[...s])},tc(...s){const[u,d,c]=s,_={plural:1};let g=null,h=null;if(!le(u))throw Rt(Ze.INVALID_ARGUMENT);const F=u;return le(d)?_.locale=d:qt(d)?_.plural=d:_t(d)?g=d:Be(d)&&(h=d),le(c)?_.locale=c:_t(c)?g=c:Be(c)&&(h=c),Reflect.apply(n.t,n,[F,g||h||{},_])},te(s,u){return n.te(s,u)},tm(s){return n.tm(s)},getLocaleMessage(s){return n.getLocaleMessage(s)},setLocaleMessage(s,u){n.setLocaleMessage(s,u)},mergeLocaleMessage(s,u){n.mergeLocaleMessage(s,u)},d(...s){return Reflect.apply(n.d,n,[...s])},getDateTimeFormat(s){return n.getDateTimeFormat(s)},setDateTimeFormat(s,u){n.setDateTimeFormat(s,u)},mergeDateTimeFormat(s,u){n.mergeDateTimeFormat(s,u)},n(...s){return Reflect.apply(n.n,n,[...s])},getNumberFormat(s){return n.getNumberFormat(s)},setNumberFormat(s,u){n.setNumberFormat(s,u)},mergeNumberFormat(s,u){n.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=n;u[Ti]&&u[Ti](s)},r.__disableEmitter=()=>{const s=n;s[po]&&s[po]()}),r}}const h1={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function gA({slots:e},a){return a.length===1&&a[0]==="default"?(e.default?e.default():[]).reduce((i,r)=>[...i,...r.type===t.Fragment?r.children:[r]],[]):a.reduce((n,i)=>{const r=e[i];return r&&(n[i]=r()),n},lt())}function Dm(e){return t.Fragment}const m1=t.defineComponent({name:"i18n-t",props:Qt({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>qt(e)||!isNaN(e)}},h1),setup(e,a){const{slots:n,attrs:i}=a,r=e.i18n||y1({useScope:e.scope,__useComponent:!0});return()=>{const s=Object.keys(n).filter(h=>h!=="_"),u=lt();e.locale&&(u.locale=e.locale),e.plural!==void 0&&(u.plural=le(e.plural)?+e.plural:e.plural);const d=gA(a,s),c=r[u1](e.keypath,d,u),_=Qt(lt(),i),g=le(e.tag)||Qe(e.tag)?e.tag:Dm();return t.h(g,_,c)}}});function hA(e){return _t(e)&&!le(e[0])}function Cm(e,a,n,i){const{slots:r,attrs:s}=a;return()=>{const u={part:!0};let d=lt();e.locale&&(u.locale=e.locale),le(e.format)?u.key=e.format:Qe(e.format)&&(le(e.format.key)&&(u.key=e.format.key),d=Object.keys(e.format).reduce((F,p)=>n.includes(p)?Qt(lt(),F,{[p]:e.format[p]}):F,lt()));const c=i(e.value,u,d);let _=[u.key];_t(c)?_=c.map((F,p)=>{const y=r[F.type],w=y?y({[F.type]:F.value,index:p,parts:c}):[F.value];return hA(w)&&(w[0].key=`${F.type}-${p}`),w}):le(c)&&(_=[c]);const g=Qt(lt(),s),h=le(e.tag)||Qe(e.tag)?e.tag:Dm();return t.h(h,g,_)}}const Em=t.defineComponent({name:"i18n-n",props:Qt({value:{type:Number,required:!0},format:{type:[String,Object]}},h1),setup(e,a){const n=e.i18n||y1({useScope:e.scope,__useComponent:!0});return Cm(e,a,um,(...i)=>n[c1](...i))}}),Am=t.defineComponent({name:"i18n-d",props:Qt({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},h1),setup(e,a){const n=e.i18n||y1({useScope:e.scope,__useComponent:!0});return Cm(e,a,om,(...i)=>n[d1](...i))}});function mA(e,a){const n=e;if(e.mode==="composition")return n.__getInstance(a)||e.global;{const i=n.__getInstance(a);return i!=null?i.__composer:e.global.__composer}}function FA(e){const a=u=>{const{instance:d,modifiers:c,value:_}=u;if(!d||!d.$)throw Rt(Ze.UNEXPECTED_ERROR);const g=mA(e,d.$);process.env.NODE_ENV!=="production"&&c.preserve&&Ot(da(wt.NOT_SUPPORTED_PRESERVE));const h=xm(_);return[Reflect.apply(g.t,g,[...Bm(h)]),g]};return{created:(u,d)=>{const[c,_]=a(d);Ka&&e.global===_&&(u.__i18nWatcher=t.watch(_.locale,()=>{d.instance&&d.instance.$forceUpdate()})),u.__composer=_,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,_=xm(d);u.textContent=Reflect.apply(c.t,c,[...Bm(_)])}},getSSRProps:u=>{const[d]=a(u);return{textContent:d}}}}function xm(e){if(le(e))return{path:e};if(Be(e)){if(!("path"in e))throw Rt(Ze.REQUIRED_VALUE,"path");return e}else throw Rt(Ze.INVALID_VALUE)}function Bm(e){const{path:a,locale:n,args:i,choice:r,plural:s}=e,u={},d=i||{};return le(n)&&(u.locale=n),qt(r)&&(u.plural=r),qt(s)&&(u.plural=s),[a,d,u]}function pA(e,a,...n){const i=Be(n[0])?n[0]:{},r=!!i.useI18nComponentName,s=Ve(i.globalInstall)?i.globalInstall:!0;process.env.NODE_ENV!=="production"&&s&&r&&Ot(da(wt.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:m1.name})),s&&([r?"i18n":m1.name,"I18nT"].forEach(u=>e.component(u,m1)),[Em.name,"I18nN"].forEach(u=>e.component(u,Em)),[Am.name,"I18nD"].forEach(u=>e.component(u,Am))),e.directive("t",FA(a))}const F1={"vue-devtools-plugin-vue-i18n":"Vue I18n devtools","vue-i18n-resource-inspector":"I18n Resources","vue-i18n-timeline":"Vue I18n"},bA={"vue-i18n-resource-inspector":"Search for scopes ..."},yA={"vue-i18n-timeline":16764185},vm="vue-i18n: composer properties";let p1;async function kA(e,a){return new Promise((n,i)=>{try{oA({id:"vue-devtools-plugin-vue-i18n",label:F1["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:[vm],app:e},r=>{p1=r,r.on.visitComponentTree(({componentInstance:u,treeNode:d})=>{wA(u,d,a)}),r.on.inspectComponent(({componentInstance:u,instanceData:d})=>{u.vnode.el&&u.vnode.el.__VUE_I18N__&&d&&(a.mode==="legacy"?u.vnode.el.__VUE_I18N__!==a.global.__composer&&Sm(d,u.vnode.el.__VUE_I18N__):Sm(d,u.vnode.el.__VUE_I18N__))}),r.addInspector({id:"vue-i18n-resource-inspector",label:F1["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:bA["vue-i18n-resource-inspector"]}),r.on.getInspectorTree(u=>{u.app===e&&u.inspectorId==="vue-i18n-resource-inspector"&&xA(u,a)});const s=new Map;r.on.getInspectorState(async u=>{if(u.app===e&&u.inspectorId==="vue-i18n-resource-inspector")if(r.unhighlightElement(),vA(u,a),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=BA(u.nodeId,a);d&&r.highlightElement(d)}}),r.on.editInspectorState(u=>{u.app===e&&u.inspectorId==="vue-i18n-resource-inspector"&&SA(u,a)}),r.addTimelineLayer({id:"vue-i18n-timeline",label:F1["vue-i18n-timeline"],color:yA["vue-i18n-timeline"]}),n(!0)})}catch(r){console.error(r),i(!1)}})}function jm(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function wA(e,a,n){const i=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==i){const r={label:`i18n (${jm(e)} Scope)`,textColor:0,backgroundColor:16764185};a.tags.push(r)}}function Sm(e,a){const n=vm;e.state.push({type:n,key:"locale",editable:!0,value:a.locale.value}),e.state.push({type:n,key:"availableLocales",editable:!1,value:a.availableLocales}),e.state.push({type:n,key:"fallbackLocale",editable:!0,value:a.fallbackLocale.value}),e.state.push({type:n,key:"inheritLocale",editable:!0,value:a.inheritLocale}),e.state.push({type:n,key:"messages",editable:!1,value:b1(a.messages.value)}),e.state.push({type:n,key:"datetimeFormats",editable:!1,value:a.datetimeFormats.value}),e.state.push({type:n,key:"numberFormats",editable:!1,value:a.numberFormats.value})}function b1(e){const a={};return Object.keys(e).forEach(n=>{const i=e[n];ut(i)&&"source"in i?a[n]=AA(i):Sa(i)&&i.loc&&i.loc.source?a[n]=i.loc.source:Qe(i)?a[n]=b1(i):a[n]=i}),a}const DA={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function CA(e){return e.replace(/[<>"&]/g,EA)}function EA(e){return DA[e]||e}function AA(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${CA(e.source)}")`:"(?)"}`}}}function xA(e,a){e.rootNodes.push({id:"global",label:"Global Scope"});const n=a.mode==="composition"?a.global:a.global.__composer;for(const[i,r]of a.__instances){const s=a.mode==="composition"?r:r.__composer;n!==s&&e.rootNodes.push({id:s.id.toString(),label:`${jm(i)} Scope`})}}function BA(e,a){let n=null;if(e!=="global"){for(const[i,r]of a.__instances.entries())if(r.id.toString()===e){n=i;break}}return n}function qm(e,a){if(e==="global")return a.mode==="composition"?a.global:a.global.__composer;{const n=Array.from(a.__instances.values()).find(i=>i.id.toString()===e);return n?a.mode==="composition"?n:n.__composer:null}}function vA(e,a){const n=qm(e.nodeId,a);return n&&(e.state=jA(n)),null}function jA(e){const a={},n="Locale related info",i=[{type:n,key:"locale",editable:!0,value:e.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:e.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}];a[n]=i;const r="Locale messages info",s=[{type:r,key:"messages",editable:!1,value:b1(e.messages.value)}];a[r]=s;{const u="Datetime formats info",d=[{type:u,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];a[u]=d;const c="Datetime formats info",_=[{type:c,key:"numberFormats",editable:!1,value:e.numberFormats.value}];a[c]=_}return a}function yo(e,a){if(p1){let n;a&&"groupId"in a&&(n=a.groupId,delete a.groupId),p1.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:n,time:Date.now(),meta:{},data:a||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function SA(e,a){const n=qm(e.nodeId,a);if(n){const[i]=e.path;i==="locale"&&le(e.state.value)?n.locale.value=e.state.value:i==="fallbackLocale"&&(le(e.state.value)||_t(e.state.value)||Qe(e.state.value))?n.fallbackLocale.value=e.state.value:i==="inheritLocale"&&Ve(e.state.value)&&(n.inheritLocale=e.state.value)}}function qA(e,a,n){return{beforeCreate(){const i=t.getCurrentInstance();if(!i)throw Rt(Ze.UNEXPECTED_ERROR);const r=this.$options;if(r.i18n){const s=r.i18n;if(r.__i18n&&(s.__i18n=r.__i18n),s.__root=a,this===this.$root)this.$i18n=Tm(e,s);else{s.__injectWithOption=!0,s.__extender=n.__vueI18nExtend,this.$i18n=g1(s);const u=this.$i18n;u.__extender&&(u.__disposer=u.__extender(this.$i18n))}}else if(r.__i18n)if(this===this.$root)this.$i18n=Tm(e,r);else{this.$i18n=g1({__i18n:r.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:a});const s=this.$i18n;s.__extender&&(s.__disposer=s.__extender(this.$i18n))}else this.$i18n=e;r.__i18nGlobal&&Fm(a,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),n.__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=K0();i.__enableEmitter&&i.__enableEmitter(r),r.on("*",yo)}},unmounted(){const i=t.getCurrentInstance();if(!i)throw Rt(Ze.UNEXPECTED_ERROR);const r=this.$i18n;process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",yo),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),n.__deleteInstance(i),delete this.$i18n}}}function Tm(e,a){e.locale=a.locale||e.locale,e.fallbackLocale=a.fallbackLocale||e.fallbackLocale,e.missing=a.missing||e.missing,e.silentTranslationWarn=a.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=a.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=a.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=a.postTranslation||e.postTranslation,e.warnHtmlInMessage=a.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=a.escapeParameterHtml||e.escapeParameterHtml,e.sync=a.sync||e.sync,e.__composer[gm](a.pluralizationRules||e.pluralizationRules);const n=el(e.locale,{messages:a.messages,__i18n:a.__i18n});return Object.keys(n).forEach(i=>e.mergeLocaleMessage(i,n[i])),a.datetimeFormats&&Object.keys(a.datetimeFormats).forEach(i=>e.mergeDateTimeFormat(i,a.datetimeFormats[i])),a.numberFormats&&Object.keys(a.numberFormats).forEach(i=>e.mergeNumberFormat(i,a.numberFormats[i])),e}const TA=pn("global-vue-i18n");function IA(e={},a){const n=__VUE_I18N_LEGACY_API__&&Ve(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,i=Ve(e.globalInjection)?e.globalInjection:!0,r=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,s=new Map,[u,d]=NA(e,n),c=pn(process.env.NODE_ENV!=="production"?"vue-i18n":"");process.env.NODE_ENV!=="production"&&n&&r&&Ot(da(wt.NOTICE_DROP_ALLOW_COMPOSITION));function _(F){return s.get(F)||null}function g(F,p){s.set(F,p)}function h(F){s.delete(F)}{const F={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return r},async install(p,...y){if(process.env.NODE_ENV!=="production"&&(p.__VUE_I18N__=F),p.__VUE_I18N_SYMBOL__=c,p.provide(p.__VUE_I18N_SYMBOL__,F),Be(y[0])){const v=y[0];F.__composerExtend=v.__composerExtend,F.__vueI18nExtend=v.__vueI18nExtend}let w=null;!n&&i&&(w=HA(p,F.global)),__VUE_I18N_FULL_INSTALL__&&pA(p,F,...y),__VUE_I18N_LEGACY_API__&&n&&p.mixin(qA(d,d.__composer,F));const C=p.unmount;if(p.unmount=()=>{w&&w(),F.dispose(),C()},process.env.NODE_ENV!=="production"){if(!await kA(p,F))throw Rt(Ze.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const x=K0();if(n){const k=d;k.__enableEmitter&&k.__enableEmitter(x)}else{const k=d;k[Ti]&&k[Ti](x)}x.on("*",yo)}},get global(){return d},dispose(){u.stop()},__instances:s,__getInstance:_,__setInstance:g,__deleteInstance:h};return F}}function y1(e={}){const a=t.getCurrentInstance();if(a==null)throw Rt(Ze.MUST_BE_CALL_SETUP_TOP);if(!a.isCE&&a.appContext.app!=null&&!a.appContext.app.__VUE_I18N_SYMBOL__)throw Rt(Ze.NOT_INSTALLED);const n=OA(a),i=PA(n),r=mm(a),s=MA(e,r);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw Rt(Ze.NOT_AVAILABLE_IN_LEGACY_MODE);return zA(a,s,i,e)}if(s==="global")return Fm(i,e,r),i;if(s==="parent"){let c=LA(n,a,e.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&Ot(da(wt.NOT_FOUND_PARENT_SCOPE)),c=i),c}const u=n;let d=u.__getInstance(a);if(d==null){const c=Qt({},e);"__i18n"in r&&(c.__i18n=r.__i18n),i&&(c.__root=i),d=_1(c),u.__composerExtend&&(d[f1]=u.__composerExtend(d)),RA(u,a,d),u.__setInstance(a,d)}return d}function NA(e,a,n){const i=t.effectScope();{const r=__VUE_I18N_LEGACY_API__&&a?i.run(()=>g1(e)):i.run(()=>_1(e));if(r==null)throw Rt(Ze.UNEXPECTED_ERROR);return[i,r]}}function OA(e){{const a=t.inject(e.isCE?TA:e.appContext.app.__VUE_I18N_SYMBOL__);if(!a)throw Rt(e.isCE?Ze.NOT_INSTALLED_WITH_PROVIDE:Ze.UNEXPECTED_ERROR);return a}}function MA(e,a){return Hs(e)?"__i18n"in a?"local":"global":e.useScope?e.useScope:"local"}function PA(e){return e.mode==="composition"?e.global:e.global.__composer}function LA(e,a,n=!1){let i=null;const r=a.root;let s=VA(a,n);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,n&&i&&!i[hm]&&(i=null))}if(i!=null||r===s)break;s=s.parent}return i}function VA(e,a=!1){return e==null?null:a&&e.vnode.ctx||e.parent}function RA(e,a,n){let i=null;t.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&a.vnode.el){a.vnode.el.__VUE_I18N__=n,i=K0();const r=n;r[Ti]&&r[Ti](i),i.on("*",yo)}},a),t.onUnmounted(()=>{const r=n;process.env.NODE_ENV!=="production"&&a.vnode.el&&a.vnode.el.__VUE_I18N__&&(i&&i.off("*",yo),r[po]&&r[po](),delete a.vnode.el.__VUE_I18N__),e.__deleteInstance(a);const s=r[f1];s&&(s(),delete r[f1])},a)}function zA(e,a,n,i={}){const r=a==="local",s=t.shallowRef(null);if(r&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw Rt(Ze.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const u=Ve(i.inheritLocale)?i.inheritLocale:!le(i.locale),d=t.ref(!r||u?n.locale.value:le(i.locale)?i.locale:br),c=t.ref(!r||u?n.fallbackLocale.value:le(i.fallbackLocale)||_t(i.fallbackLocale)||Be(i.fallbackLocale)||i.fallbackLocale===!1?i.fallbackLocale:d.value),_=t.ref(el(d.value,i)),g=t.ref(Be(i.datetimeFormats)?i.datetimeFormats:{[d.value]:{}}),h=t.ref(Be(i.numberFormats)?i.numberFormats:{[d.value]:{}}),F=r?n.missingWarn:Ve(i.missingWarn)||li(i.missingWarn)?i.missingWarn:!0,p=r?n.fallbackWarn:Ve(i.fallbackWarn)||li(i.fallbackWarn)?i.fallbackWarn:!0,y=r?n.fallbackRoot:Ve(i.fallbackRoot)?i.fallbackRoot:!0,w=!!i.fallbackFormat,C=ut(i.missing)?i.missing:null,v=ut(i.postTranslation)?i.postTranslation:null,x=r?n.warnHtmlMessage:Ve(i.warnHtmlMessage)?i.warnHtmlMessage:!0,k=!!i.escapeParameter,A=r?n.modifiers:Be(i.modifiers)?i.modifiers:{},N=i.pluralRules||r&&n.pluralRules;function j(){return[d.value,c.value,_.value,g.value,h.value]}const I=t.computed({get:()=>s.value?s.value.locale.value:d.value,set:Q=>{s.value&&(s.value.locale.value=Q),d.value=Q}}),P=t.computed({get:()=>s.value?s.value.fallbackLocale.value:c.value,set:Q=>{s.value&&(s.value.fallbackLocale.value=Q),c.value=Q}}),M=t.computed(()=>s.value?s.value.messages.value:_.value),W=t.computed(()=>g.value),ee=t.computed(()=>h.value);function $(){return s.value?s.value.getPostTranslationHandler():v}function ce(Q){s.value&&s.value.setPostTranslationHandler(Q)}function ye(){return s.value?s.value.getMissingHandler():C}function ke(Q){s.value&&s.value.setMissingHandler(Q)}function ie(Q){return j(),Q()}function je(...Q){return s.value?ie(()=>Reflect.apply(s.value.t,null,[...Q])):ie(()=>"")}function ae(...Q){return s.value?Reflect.apply(s.value.rt,null,[...Q]):""}function at(...Q){return s.value?ie(()=>Reflect.apply(s.value.d,null,[...Q])):ie(()=>"")}function Dt(...Q){return s.value?ie(()=>Reflect.apply(s.value.n,null,[...Q])):ie(()=>"")}function ct(Q){return s.value?s.value.tm(Q):{}}function Ct(Q,fe){return s.value?s.value.te(Q,fe):!1}function rt(Q){return s.value?s.value.getLocaleMessage(Q):{}}function gt(Q,fe){s.value&&(s.value.setLocaleMessage(Q,fe),_.value[Q]=fe)}function Bt(Q,fe){s.value&&s.value.mergeLocaleMessage(Q,fe)}function Kt(Q){return s.value?s.value.getDateTimeFormat(Q):{}}function H(Q,fe){s.value&&(s.value.setDateTimeFormat(Q,fe),g.value[Q]=fe)}function re(Q,fe){s.value&&s.value.mergeDateTimeFormat(Q,fe)}function ue(Q){return s.value?s.value.getNumberFormat(Q):{}}function se(Q,fe){s.value&&(s.value.setNumberFormat(Q,fe),h.value[Q]=fe)}function Z(Q,fe){s.value&&s.value.mergeNumberFormat(Q,fe)}const ve={get id(){return s.value?s.value.id:-1},locale:I,fallbackLocale:P,messages:M,datetimeFormats:W,numberFormats:ee,get inheritLocale(){return s.value?s.value.inheritLocale:u},set inheritLocale(Q){s.value&&(s.value.inheritLocale=Q)},get availableLocales(){return s.value?s.value.availableLocales:Object.keys(_.value)},get modifiers(){return s.value?s.value.modifiers:A},get pluralRules(){return s.value?s.value.pluralRules:N},get isGlobal(){return s.value?s.value.isGlobal:!1},get missingWarn(){return s.value?s.value.missingWarn:F},set missingWarn(Q){s.value&&(s.value.missingWarn=Q)},get fallbackWarn(){return s.value?s.value.fallbackWarn:p},set fallbackWarn(Q){s.value&&(s.value.missingWarn=Q)},get fallbackRoot(){return s.value?s.value.fallbackRoot:y},set fallbackRoot(Q){s.value&&(s.value.fallbackRoot=Q)},get fallbackFormat(){return s.value?s.value.fallbackFormat:w},set fallbackFormat(Q){s.value&&(s.value.fallbackFormat=Q)},get warnHtmlMessage(){return s.value?s.value.warnHtmlMessage:x},set warnHtmlMessage(Q){s.value&&(s.value.warnHtmlMessage=Q)},get escapeParameter(){return s.value?s.value.escapeParameter:k},set escapeParameter(Q){s.value&&(s.value.escapeParameter=Q)},t:je,getPostTranslationHandler:$,setPostTranslationHandler:ce,getMissingHandler:ye,setMissingHandler:ke,rt:ae,d:at,n:Dt,tm:ct,te:Ct,getLocaleMessage:rt,setLocaleMessage:gt,mergeLocaleMessage:Bt,getDateTimeFormat:Kt,setDateTimeFormat:H,mergeDateTimeFormat:re,getNumberFormat:ue,setNumberFormat:se,mergeNumberFormat:Z};function qe(Q){Q.locale.value=d.value,Q.fallbackLocale.value=c.value,Object.keys(_.value).forEach(fe=>{Q.mergeLocaleMessage(fe,_.value[fe])}),Object.keys(g.value).forEach(fe=>{Q.mergeDateTimeFormat(fe,g.value[fe])}),Object.keys(h.value).forEach(fe=>{Q.mergeNumberFormat(fe,h.value[fe])}),Q.escapeParameter=k,Q.fallbackFormat=w,Q.fallbackRoot=y,Q.fallbackWarn=p,Q.missingWarn=F,Q.warnHtmlMessage=x}return t.onBeforeMount(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw Rt(Ze.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const Q=s.value=e.proxy.$i18n.__composer;a==="global"?(d.value=Q.locale.value,c.value=Q.fallbackLocale.value,_.value=Q.messages.value,g.value=Q.datetimeFormats.value,h.value=Q.numberFormats.value):r&&qe(Q)}),ve}const UA=["locale","fallbackLocale","availableLocales"],Im=["t","rt","d","n","tm","te"];function HA(e,a){const n=Object.create(null);return UA.forEach(r=>{const s=Object.getOwnPropertyDescriptor(a,r);if(!s)throw Rt(Ze.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(n,r,u)}),e.config.globalProperties.$i18n=n,Im.forEach(r=>{const s=Object.getOwnPropertyDescriptor(a,r);if(!s||!s.value)throw Rt(Ze.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${r}`,s)}),()=>{delete e.config.globalProperties.$i18n,Im.forEach(r=>{delete e.config.globalProperties[`$${r}`]})}}if(lA(),__INTLIFY_JIT_COMPILATION__?Lh(WE):Lh(GE),ME(FE),PE(Nh),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=Ln();e.__INTLIFY__=!0,AE(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const YA={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"},GA={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"},Nm={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"},WA=Object.assign({en:YA,es:GA,"pt-br":Nm,"pt-BR":Nm}),ko=IA({locale:"en",fallbackLocale:"en",messages:WA}),$A=["width","height"],Ii=R(t.defineComponent({name:"UnnnicIconLoading",__name:"IconLoading",props:{scheme:{type:String,default:"fg-muted"},size:{type:String,default:"lg"},strokeWidth:{type:Number,default:5}},setup(e){t.useCssVars(r=>({"7b04333c":e.strokeWidth}));const a={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},n=e,i=t.computed(()=>a[n.size]??n.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,$A))],2))}}),[["__scopeId","data-v-05fd00f9"]]),QA=["disabled"],bt=R(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 a=e,n=t.useSlots(),i=t.computed(()=>a.disabled||a.loading),r=t.computed(()=>a.size==="extra-large"?"lg":"ant"),s=t.computed(()=>n.default?!0:a.text&&a.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(()=>a.size==="large"||!a.float&&a.size==="small"||a.float&&a.size==="extra-large"),c=t.computed(()=>({alternative:"tertiary"})[a.type]||a.type),_=t.computed(()=>["primary","secondary","tertiary","warning","attention"].includes(c.value)),g=()=>{if(!d.value||!_.value){let h="TypeError:";throw d.value||(h+=" Invalid size prop.",h+=" Please provide 'large', 'small' (only if float prop is false), or 'extra-large' (only if float prop is true)."),_.value||(h+=" Invalid type prop.",h+=" Please provide one of the following types: primary, secondary, tertiary, warning, attention. Alternative is discontinued and it was forced renamed to tertiary."),new Error(h)}};return t.watch(()=>a,()=>{g()},{deep:!0,immediate:!0}),(h,F)=>(t.openBlock(),t.createElementBlock("button",t.mergeProps(h.$attrs,{disabled:i.value,class:["unnnic-button",`unnnic-button--size-${h.size}`,`unnnic-button--${c.value}`,h.iconCenter?"unnnic-button--icon-on-center":null,h.float?"unnnic-button--float":null,h.pressed?"unnnic-button--pressed":null]}),[h.loading?(t.openBlock(),t.createBlock(Ii,{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(be,{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(be,{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(be,{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,QA))}}),[["__scopeId","data-v-d7396b6a"]]),KA={class:"month-container","data-testid":"date-picker-month-container"},XA=["onClick"],ZA={class:"month-container","data-testid":"date-picker-month-container"},JA=["onClick"],ex={class:"month-container","data-testid":"date-picker-month-container"},tx=["onClick"],ax={key:0,class:"options"},nx=["onClick"],ix={class:"actions"},tl=R(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:a,emit:n}){t.useCssVars(H=>({c158b944:k.value}));const i=e,r=n,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," ")),_=t.ref(""),g={clean:{"pt-br":"Limpar",en:"Clean",es:"Limpiar"},filter:{"pt-br":"Filtrar",en:"Filter",es:"Filtrar"}},h=t.getCurrentInstance(),F=t.computed(()=>{var ue,se;const re=((se=(ue=h==null?void 0:h.proxy)==null?void 0:ue.$i18n)==null?void 0:se.locale)||"en-us";return String(re).toLowerCase()}),p=t.computed(()=>{const H=i.months||[];return H.length?H:cC[F.value]}),y=t.computed(()=>{const H=i.days||[];return H.length?H:fC[F.value]}),w=t.computed(()=>{const H=i.options||[];return H.length?H:_C[F.value]}),C=t.computed(()=>i.clearLabel||Us[F.value].clear),v=t.computed(()=>i.actionLabel||Us[F.value].filter),x=t.computed(()=>({startDate:d.value.replaceAll(" ","-"),endDate:c.value.replaceAll(" ","-")})),k=t.computed(()=>i.hideOptions?"column-reverse":"column"),A=ko;a({i18n:(H,...re)=>{const[ue]=re,se=Object.keys(A.global.messages||{});let Z=i.locale;const ve=$t.get(A,"global.locale")==="en-us"?"en":$t.get(A,"global.locale");Z=Z&&se.includes(Z)?Z:ve,Z=Z==null?void 0:Z.toLowerCase();let qe=$t.get(i.translations,`${H}.${Z}`,$t.get(i.translations,H));if(qe||(qe=$t.get(g,`${H}.${Z}`,$t.get(g,H,ue))),qe!=null&&qe.includes("|")&&typeof re[0]=="number"){const fe=re[0],ht=qe.split("|");ht.length===3?qe=ht[fe]||ht[2]:ht.length===2&&(qe=fe===1?ht[0]:ht[1])}let Q={};return re.forEach(fe=>{!(fe instanceof Array)&&fe instanceof Object&&(Q=fe)}),Object.keys(Q).forEach(fe=>{qe=qe==null?void 0:qe.replaceAll(new RegExp(`{ *${fe} *}`,"g"),Q[fe])}),qe},startDate:d,endDate:c,optionSelected:_,referenceDate:u,autoSelect:rt,dateToString:j,getStartAndEndDateByPeriod:Ct,getDatesOfTheMonth:je});function j(H){return`${H.getMonth()+1} ${H.getDate()} ${H.getFullYear()}`}function I(H){return`${H.getMonth()+1} ${H.getFullYear()}`}function P(H){return H.getFullYear()}function M(H){const[re,ue,se]=H.split(" ");return new Date(Number(se),Number(re)-1,Number(ue)).getTime()}function W(H){return H.toString().split(" ")[1]}function ee(H){return Number(H.toString().split(" ")[0])}function $(H){const[re,ue,se]=H.split(" ");return new Date(Number(se),Number(re)-1,Number(ue)).getFullYear()}function ce(H,re){const[ue,se,Z]=H.split(" "),ve=new Date(Number(Z),Number(ue)-1,Number(se));return ve.setMonth(ve.getMonth()+re),j(ve)}function ye(H){if(d.value&&c.value){if(H>=M(d.value)&&H<=M(c.value))return!0}else{if(d.value&&H>=M(d.value))return!0;if(c.value&&H<=M(c.value))return!0}return!1}function ke(H){if(d.value&&c.value){const re=M(d.value),ue=M(c.value);return H>=re&&H<=ue}if(d.value){const re=M(d.value);return H>=re}if(c.value){const re=M(c.value);return H<=re}return!1}function ie(H){if(d.value&&c.value){const re=M(d.value),ue=M(c.value);return H>=re&&H<=ue}if(d.value){const re=M(d.value);return H>=re}if(c.value){const re=M(c.value);return H<=re}return!1}function je(H){const[re,ue,se]=H.split(" "),Z=new Date(Number(se),Number(re)-1,Number(ue)),ve=Z.getMonth(),qe=86400;Z.setDate(1-Z.getDay());const Q=[];for(let fe=0;fe<6*7;fe+=1){const ht=j(Z),Oe=[];if(i.minDate){const[ge,Ue,B]=i.minDate.split("-"),S=new Date(Number(ge),Number(Ue)-1,Number(B));Z<S&&Oe.push("out of range")}if(i.maxDate){const[ge,Ue,B]=i.maxDate.split("-"),S=new Date(Number(ge),Number(Ue)-1,Number(B));Z>S&&Oe.push("out of range")}if(ve===Z.getMonth()){Oe.push("inside month");const ge=M(j(Z)),Ue=ge-qe,B=ge+qe;ye(ge)&&(Oe.push("selected"),ye(Ue)||Oe.push("left-highlighted"),ye(B)||Oe.push("right-highlighted"),(Oe.includes("left-highlighted")||Oe.includes("right-highlighted"))&&Oe.push("highlighted"))}j(Z)===j(new Date)&&Oe.push("today"),Q.push({properties:Oe,toString:()=>ht}),Z.setDate(Z.getDate()+1)}return Q}function ae(H){const[re,ue,se]=H.split(" "),Z=new Date(Number(se),Number(re)-1,Number(ue));Z.setMonth(0);const ve=[];for(let qe=0;qe<3*4;qe+=1){const Q=j(Z),fe=[];fe.push("inside month");const ht=M(j(Z)),Oe=new Date(ht),ge=new Date(ht);Oe.setMonth(Oe.getMonth()-1),ge.setMonth(ge.getMonth()+1);const Ue=Oe.getTime(),B=ge.getTime();ke(ht)&&(fe.push("selected"),ke(Ue)||fe.push("left-highlighted"),ke(B)||fe.push("right-highlighted"),(fe.includes("left-highlighted")||fe.includes("right-highlighted"))&&fe.push("highlighted")),I(Z)===I(new Date)&&fe.push("today"),ve.push({properties:fe,date:Q,toString:()=>Q}),Z.setMonth(Z.getMonth()+1)}return ve}function at(H){const[re,ue,se]=H.split(" "),Z=new Date(Number(se),Number(re)-1,Number(ue));Z.setMonth(0);const ve=[];for(let qe=0;qe<3*4;qe+=1){const Q=j(Z),fe=[];fe.push("inside month");const ht=M(j(Z)),[Oe,ge,Ue]=H.split(" "),B=new Date(Number(Ue),Number(Oe)-1,Number(ge)),S=new Date(Number(Ue),Number(Oe)-1,Number(ge));B.setMonth(B.getMonth()-12),S.setMonth(S.getMonth()+12);const Y=B.getTime(),de=S.getTime();ie(ht)&&(fe.push("selected"),ie(Y)||fe.push("left-highlighted"),ie(de)||fe.push("right-highlighted"),(fe.includes("left-highlighted")||fe.includes("right-highlighted"))&&fe.push("highlighted")),P(Z)===P(new Date)&&fe.push("today"),ve.push({properties:fe,date:Z.getFullYear(),toString:()=>Q}),Z.setFullYear(Z.getFullYear()+1)}return ve}function Dt(H){if(!d.value||!c.value)d.value=H.toString(),c.value=d.value;else{const re=M(H.toString()),ue=M(d.value),se=M(c.value);ue!==se?(d.value=H.toString(),c.value=d.value):re>se?c.value=H.toString():re<ue?d.value=H.toString():re===ue||re===se?(d.value=H.toString(),c.value=d.value):re-ue<se-re?d.value=H.toString():c.value=H.toString()}}function ct(){d.value="",c.value="",_.value=""}function Ct(H){let re,ue,se;if(i.periodBaseDate){const Q=i.periodBaseDate.split("-");if(Q.length===3){const[fe,ht,Oe]=Q;se=new Date(Number(fe),Number(ht)-1,Number(Oe))}else{const fe=new Date(i.periodBaseDate);se=Number.isNaN(fe.getTime())?new Date:fe}}else se=new Date;const Z=new Date(se.getTime()),ve=H.match(/^last-(\d+)-days$/),qe=H.match(/^last-(\d+)-months$/);if(ve){const Q=Number(ve[1]);ue=j(Z),Z.setDate(Z.getDate()-Q+1),re=j(Z)}else if(qe){const Q=Number(qe[1]);ue=j(Z),Z.setDate(Z.getDate()+1),Z.setMonth(Z.getMonth()-Q),re=j(Z)}else if(H==="current-month"){const Q=se.getDate();Z.setDate(1),re=j(Z),Z.setDate(Q),ue=j(Z)}else H==="previous-month"&&(Z.setDate(1),Z.setMonth(Z.getMonth()-1),re=j(Z),Z.setMonth(Z.getMonth()+1),Z.setDate(0),ue=j(Z));return{startDate:re,endDate:ue}}function rt(H){const{startDate:re,endDate:ue}=Ct(H);if(d.value=re||"",c.value=ue||"",c.value){const se=ce(u.value,1),Z=`${Number(ee({toString:()=>c.value}))} 1 ${$(c.value)}`;[u.value,se].includes(Z)||(u.value=Z)}t.nextTick(()=>{_.value=H})}function gt(){if(r("submit",x.value),_.value==="custom")r("update:equivalentOption","");else{const H=w.value.find(({id:re})=>re===_.value);r("update:equivalentOption",(H==null?void 0:H.name)||"")}}function Bt(){const{startDate:H,endDate:re}=x.value,ue=(Z,ve)=>!Z||!ve?!1:new Date(Z).getTime()===new Date(ve).getTime(),se=w.value.find(({id:Z})=>{const{startDate:ve,endDate:qe}=Ct(Z);return ue(H,ve)&&ue(re,qe)});_.value=H||re?se?se.id:"custom":""}const Kt=t.computed(()=>[ce(u.value,-1),u.value]);return t.watch(x,H=>{Bt(),r("change",H)}),t.onMounted(()=>{Bt()}),(H,re)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["unnnic-date-picker",`unnnic-date-picker--${i.variant}`]),"data-testid":"date-picker-root"},[H.type==="day"?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(Kt.value,(ue,se)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:ue},[t.createElementVNode("div",KA,[t.createElementVNode("div",{class:t.normalizeClass(["header",`header--${H.size}`])},[t.createVNode(bt,{size:"small",iconCenter:`keyboard_arrow_${se===0?"left":"right"}`,type:H.size==="large"?"secondary":"tertiary",class:"button-space",style:t.normalizeStyle({gridArea:`${se===0?"left":"right"}-button`}),"data-testid":`date-picker-nav-${se===0?"left":"right"}`,onClick:t.withModifiers(Z=>u.value=ce(u.value,se===0?-1:1),["stop"])},null,8,["iconCenter","type","style","data-testid","onClick"]),t.createElementVNode("div",{class:t.normalizeClass(["label",`label--${H.size}`])},t.toDisplayString(p.value[Number(ee(ue))-1])+" "+t.toDisplayString($(ue)),3)],2),t.createElementVNode("div",{class:t.normalizeClass(["days",`days--${H.size}`])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(y.value,(Z,ve)=>(t.openBlock(),t.createElementBlock("div",{key:ve,class:"name"},t.toDisplayString(Z),1))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(je(ue),(Z,ve)=>(t.openBlock(),t.createElementBlock("div",{key:`${ue}-${ve}`,class:t.normalizeClass({disabled:!Z.properties.includes("inside month")||Z.properties.includes("out of range"),selectable:Z.properties.includes("inside month")&&!Z.properties.includes("out of range"),today:Z.properties.includes("today"),selected:Z.properties.includes("selected"),highlighted:Z.properties.includes("highlighted"),left:Z.properties.includes("left-highlighted"),right:Z.properties.includes("right-highlighted")}),"data-testid":"date-picker-day",onClick:qe=>Z.properties.includes("inside month")&&!Z.properties.includes("out of range")&&Dt(Z)},t.toDisplayString(W(Z)),11,XA))),128))],2)]),re[4]||(re[4]=t.createElementVNode("div",{class:"divider"},null,-1))],64))),128)):H.type==="month"?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList([u.value],ue=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:ue},[t.createElementVNode("div",ZA,[t.createElementVNode("div",{class:t.normalizeClass(["header",`header--${H.size}`])},[t.createVNode(bt,{size:"small",iconCenter:"keyboard_arrow_left",type:H.size==="large"?"secondary":"tertiary",class:"button-space",style:{gridArea:"left-button"},"data-testid":"date-picker-month-nav-left",onClick:re[0]||(re[0]=se=>u.value=ce(u.value,-12))},null,8,["type"]),t.createElementVNode("div",{class:t.normalizeClass(["label",`label--${H.size}`])},t.toDisplayString($(ue)),3),t.createVNode(bt,{size:"small",iconCenter:"keyboard_arrow_right",type:H.size==="large"?"secondary":"tertiary",class:"button-space",style:{gridArea:"right-button"},"data-testid":"date-picker-month-nav-right",onClick:re[1]||(re[1]=se=>u.value=ce(u.value,12))},null,8,["type"])],2),t.createElementVNode("div",{class:t.normalizeClass(["days",`months--${H.size}`])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(ae(ue),(se,Z)=>(t.openBlock(),t.createElementBlock("div",{key:`${ue}-${Z}`,class:t.normalizeClass({disabled:!se.properties.includes("inside month"),selectable:se.properties.includes("inside month"),today:se.properties.includes("today"),selected:se.properties.includes("selected"),highlighted:se.properties.includes("highlighted"),left:se.properties.includes("left-highlighted"),right:se.properties.includes("right-highlighted")}),"data-testid":"date-picker-month-cell",onClick:ve=>se.properties.includes("inside month")&&Dt(se)},t.toDisplayString(p.value[ee(se)-1].substr(0,3)),11,JA))),128))],2)]),re[5]||(re[5]=t.createElementVNode("div",{class:"divider"},null,-1))],64))),128)):H.type==="year"?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:2},t.renderList([u.value],ue=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:ue},[t.createElementVNode("div",ex,[t.createElementVNode("div",{class:t.normalizeClass(["header",`header--${H.size}`])},[t.createVNode(bt,{size:"small",iconCenter:"arrow-left-1-1",type:H.size==="large"?"secondary":"tertiary",class:"button-space",style:{gridArea:"left-button"},"data-testid":"date-picker-year-nav-left",onClick:re[2]||(re[2]=se=>u.value=ce(u.value,-12*12))},null,8,["type"]),t.createElementVNode("div",{class:t.normalizeClass(["label",`label--${H.size}`])},t.toDisplayString($(ue)),3),t.createVNode(bt,{size:"small",iconCenter:"arrow-right-1-1",type:H.size==="large"?"secondary":"tertiary",class:"button-space",style:{gridArea:"right-button"},"data-testid":"date-picker-year-nav-right",onClick:re[3]||(re[3]=se=>u.value=ce(u.value,12*12))},null,8,["type"])],2),t.createElementVNode("div",{class:t.normalizeClass(["days",`months--${H.size}`])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(at(ue),(se,Z)=>(t.openBlock(),t.createElementBlock("div",{key:`${ue}-${Z}`,class:t.normalizeClass({disabled:!se.properties.includes("inside month"),selectable:se.properties.includes("inside month"),today:se.properties.includes("today"),selected:se.properties.includes("selected"),highlighted:se.properties.includes("highlighted"),left:se.properties.includes("left-highlighted"),right:se.properties.includes("right-highlighted")}),"data-testid":"date-picker-year-cell",onClick:ve=>se.properties.includes("inside month")&&Dt(se)},t.toDisplayString(se.date),11,tx))),128))],2)]),re[6]||(re[6]=t.createElementVNode("div",{class:"divider"},null,-1))],64))),128)):t.createCommentVNode("",!0),H.size!=="small"?(t.openBlock(),t.createElementBlock("div",{key:3,class:"options-container",style:t.normalizeStyle({flexDirection:k.value}),"data-testid":"date-picker-options"},[H.hideOptions?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",ax,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(w.value,(ue,se)=>(t.openBlock(),t.createElementBlock("div",{key:se,class:t.normalizeClass(["option",{selectable:ue.id!=="custom",selected:_.value===ue.id}]),"data-testid":"date-picker-option",onClick:Z=>ue.id==="custom"?null:rt(ue.id)},t.toDisplayString(ue.name),11,nx))),128))])),t.createElementVNode("div",ix,[H.disableClear?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(bt,{key:0,size:"small",text:C.value,type:"tertiary","data-testid":"date-picker-clear",onClick:ct},null,8,["text"])),t.createVNode(bt,{size:"small",text:v.value,type:"secondary","data-testid":"date-picker-submit",onClick:gt},null,8,["text"])])],4)):t.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-5b2a3095"]]),wr=t.defineComponent({name:"UnnnicPopover",__name:"Popover",props:{defaultOpen:{type:Boolean},open:{type:Boolean},modal:{type:Boolean}},emits:["update:open"],setup(e,{emit:a}){const r=ma(e,a);return(s,u)=>(t.openBlock(),t.createBlock(t.unref(Jb),t.normalizeProps(t.guardReactiveProps(t.unref(r))),{default:t.withCtx(()=>[t.renderSlot(s.$slots,"default")]),_:3},16))}}),Om=Symbol("unnnicPopoverFooterTarget"),Dr=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:a}){const n=e,i=a,r=aa(n,"class","size"),s=ma(r,i),u=ir(),d=gs(),c=t.ref(null);t.provide(Om,c);const _=t.computed(()=>n.width?n.width:{small:"240px",medium:"320px",large:"400px"}[n.size]);return(g,h)=>(t.openBlock(),t.createBlock(t.unref(l6),{to:t.unref(d)},{default:t.withCtx(()=>[t.createVNode(t.unref(o6),t.mergeProps({...t.unref(s),...g.$attrs},{style:{width:_.value,zIndex:t.unref(u)},class:t.unref(At)("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 ${n.class||""}`)},[t.renderSlot(g.$slots,"default")],2),t.createElementVNode("div",{ref_key:"footerContainer",ref:c,"data-testid":"popover-footer-container"},null,512)]),_:3},16,["style","class"])]),_:3},8,["to"]))}}),rx={class:"unnnic-popover__footer"},ox={key:1,class:"unnnic-popover__footer"},al=t.defineComponent({name:"UnnnicPopoverFooter",__name:"PopoverFooter",setup(e){const a=t.inject(Om,null);return(n,i)=>t.unref(a)?(t.openBlock(),t.createBlock(t.Teleport,{key:0,to:t.unref(a)},[t.createElementVNode("footer",rx,[t.renderSlot(n.$slots,"default")])],8,["to"])):(t.openBlock(),t.createElementBlock("footer",ox,[t.renderSlot(n.$slots,"default")]))}}),Cr=R(t.defineComponent({__name:"PopoverTrigger",props:{asChild:{type:Boolean},as:{}},setup(e){const a=e;return(n,i)=>(t.openBlock(),t.createBlock(t.unref(d6),t.mergeProps(a,{class:"unnnic-popover-trigger"}),{default:t.withCtx(()=>[t.renderSlot(n.$slots,"default",{},void 0,!0)]),_:3},16))}}),[["__scopeId","data-v-df136255"]]),nl=R(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 a=e,n=t.useSlots(),i=t.computed(()=>!!n.default),r=t.computed(()=>a.active?"fg-on-primary":a.disabled?"fg-muted":a.scheme);return(s,u)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["unnnic-popover-option",{"unnnic-popover-option--disabled":a.disabled,"unnnic-popover-option--active":a.active,"unnnic-popover-option--focused":a.focused,"unnnic-popover-option--with-content":i.value}])},[a.icon?(t.openBlock(),t.createBlock(be,{key:0,icon:a.icon,scheme:r.value,size:"ant"},null,8,["icon","scheme"])):t.createCommentVNode("",!0),t.renderSlot(s.$slots,"default",{},()=>[t.createElementVNode("p",{class:t.normalizeClass(["unnnic-popover-option__label",`unnnic-popover-option__label--${r.value}`,`unnnic-popover-option--disabled: ${a.disabled}`])},t.toDisplayString(a.label),3)],!0)],2))}}),[["__scopeId","data-v-25ebf283"]]),k1=R(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:a}){const n=t.useSlots(),i=t.computed(()=>!!n.footer),r=e,s=a,u=t.ref(!1),d=t.ref(""),c=t.computed(()=>r.position==="right"?"end":"start"),_=t.computed(()=>r.disableShowOverwrittenValue?g.value||"":d.value||g.value||""),g=t.computed(()=>{const C=[],{start:v,end:x}=r.modelValue||{};return v&&C.push(oe(v,r.format).format(r.inputFormat||"")),x&&C.push(oe(x,r.format).format(r.inputFormat||"")),C.length?C.join(" ~ "):String(r.inputFormat||"").replaceAll("-","/").toLowerCase()}),h=t.computed(()=>r.modelValue.start?oe(r.modelValue.start,r.format).format("MM DD YYYY"):void 0),F=t.computed(()=>r.modelValue.end?oe(r.modelValue.end,r.format).format("MM DD YYYY"):void 0);function p(C){const{startDate:v,endDate:x}=C,k={start:oe(v,"MM-DD-YYYY").format(r.format),end:oe(x,"MM-DD-YYYY").format(r.format)};s("selectDate",k)}function y(C){const v=C.startDate.replace(/(\d+)-(\d+)-(\d+)/,"$3-$1-$2"),x=C.endDate.replace(/(\d+)-(\d+)-(\d+)/,"$3-$1-$2");u.value=!1,s("update:model-value",{start:v?oe(v,"YYYY-MM-DD").format(r.format):null,end:x?oe(x,"YYYY-MM-DD").format(r.format):null})}function w(){u.value=!0}return(C,v)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["dropdown",{"fill-w":C.fillW}])},[t.createVNode(t.unref(wr),{open:u.value,"onUpdate:open":v[1]||(v[1]=x=>u.value=x)},{default:t.withCtx(()=>[t.createVNode(t.unref(Cr),{asChild:!0},{default:t.withCtx(()=>[t.createVNode(_n,{"data-testid":"input",class:t.normalizeClass(["input",{"date-picker-input-next":C.next}]),size:C.size,iconLeft:C.iconPosition==="left"?"calendar_month":void 0,iconRight:C.iconPosition==="right"?"calendar_month":void 0,readonly:"",modelValue:_.value,disabled:C.disabled,onClick:w,onFocus:w},null,8,["class","size","iconLeft","iconRight","modelValue","disabled"])]),_:1}),t.createVNode(t.unref(Dr),{width:"auto",side:"bottom",align:c.value,class:"date-picker-popover-content"},{default:t.withCtx(()=>[t.createVNode(tl,{equivalentOption:d.value,"onUpdate:equivalentOption":v[0]||(v[0]=x=>d.value=x),"data-testid":"date-picker",variant:"popover",type:C.type,clearLabel:C.clearText,actionLabel:C.actionText,months:C.months,days:C.days,options:C.options,periodBaseDate:C.periodBaseDate,initialStartDate:h.value,initialEndDate:F.value,minDate:C.minDate,maxDate:C.maxDate,disableClear:C.disableClear,hideOptions:C.hideOptions,onChange:p,onSubmit:y},null,8,["equivalentOption","type","clearLabel","actionLabel","months","days","options","periodBaseDate","initialStartDate","initialEndDate","minDate","maxDate","disableClear","hideOptions"]),i.value?(t.openBlock(),t.createBlock(t.unref(al),{key:0},{default:t.withCtx(()=>[t.renderSlot(C.$slots,"footer",{},void 0,!0)]),_:3})):t.createCommentVNode("",!0)]),_:3},8,["align"])]),_:3},8,["open"])],2))}}),[["__scopeId","data-v-a874255c"]]),w1=e=>{const{label:a,children:n}=e;if(!!!a.trim())throw new Error('Each item in "items" must have "label".');return n&&Array.isArray(n)&&n.forEach(w1),!0},sx=e=>{if(!(e!=null&&e[0]))throw new Error("Items property cannot be an empty array.");return e.forEach(w1),!0},lx=["title"],ux={key:0,class:"unnnic-sidebar-item-children"},dx=["onClick"],cx=["title"],il=R(Object.assign({name:"UnnnicSidebarItem"},{props:{item:{type:Object,required:!0,validator:w1},active:{type:Object,default:()=>({item:!1,childIndex:null})},autoNavigateFirstChild:{type:Boolean,default:!1}},emits:["navigate"],setup(e,{emit:a}){const n=e;t.onMounted(()=>{const{childIndex:g,item:h}=n.active;typeof g=="number"&&g>=0&&h&&s()});const i=t.computed(()=>{var g;return!!((g=n.item.children)!=null&&g.length)}),r=t.ref(!1),s=()=>{r.value=!r.value,r.value&&n.autoNavigateFirstChild&&_("navigate",{item:n.item,child:n.item.children[0]})},u=g=>{const{item:h,childIndex:F}=n.active;return typeof F!="number"?h:h&&F===g},d=()=>{i.value?s():c()},c=()=>{n.active.item||_("navigate",{item:n.item,child:null})},_=a;return(g,h)=>{var F;return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("section",{"data-testid":"sidebar-item",class:t.normalizeClass({"unnnic-sidebar-item":!0,active:e.active.item}),onClick:t.withModifiers(d,["stop"])},[e.item.icon?(t.openBlock(),t.createBlock(be,{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,lx),(F=e.item.children)!=null&&F.length?(t.openBlock(),t.createBlock(be,{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",ux,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.item.children,(p,y)=>(t.openBlock(),t.createElementBlock("li",{key:p,class:t.normalizeClass({"unnnic-sidebar-item-child":!0,active:u(y)}),"data-testid":"sidebar-item-child",onClick:t.withModifiers(w=>!u(y)&&_("navigate",{item:e.item,child:p}),["stop"])},[p.icon?(t.openBlock(),t.createBlock(be,{key:0,class:"unnnic-sidebar-item-child__icon",icon:p.icon,size:"ant",scheme:u(y)?"fg-accent":"fg-base"},null,8,["icon","scheme"])):t.createCommentVNode("",!0),t.createElementVNode("p",{class:t.normalizeClass({"unnnic-sidebar-item-child__label":!0,active:u(y)}),title:p.label},t.toDisplayString(p.label),11,cx)],10,dx))),128))])):t.createCommentVNode("",!0)]),_:1})],64)}}}),[["__scopeId","data-v-6c66c728"]]),fx={class:"unnnic-sidebar-items"},D1=R(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 a=/^\d+(\.\d+)?px$/,n=/^\d+(\.\d+)?%$/;return a.test(e)||n.test(e)}},items:{type:Array,required:!0,validator:sx},active:{type:Object,default:()=>({itemIndex:null,childIndex:null})},autoNavigateFirstChild:{type:Boolean,default:!1}},emits:["navigate"],setup(e,{emit:a}){t.useCssVars(s=>({"4c47a8e2":n.width}));const n=e,i=a,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",fx,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(d,c)=>(t.openBlock(),t.createElementBlock("li",{key:d},[t.createVNode(il,{item:d,active:{item:e.active.itemIndex===c,childIndex:e.active.childIndex},autoNavigateFirstChild:e.autoNavigateFirstChild,"data-testid":"sidebar-item",onNavigate:u[0]||(u[0]=_=>r(_))},null,8,["item","active","autoNavigateFirstChild"])]))),128))]),t.renderSlot(s.$slots,"bottom",{class:"unnnic-sidebar-bottom"},void 0,!0)],2))}}),[["__scopeId","data-v-df7cccc8"]]),_x={class:"relative w-full overflow-auto"},gx=R(t.defineComponent({__name:"Table",props:{class:{}},setup(e){const a=e;return(n,i)=>(t.openBlock(),t.createElementBlock("div",_x,[t.createElementVNode("table",{class:t.normalizeClass(t.unref(At)("unnnic-table",a.class))},[t.renderSlot(n.$slots,"default",{},void 0,!0)],2)]))}}),[["__scopeId","data-v-e69706d4"]]),C1=t.defineComponent({__name:"TableBody",props:{class:{}},setup(e){const a=e;return(n,i)=>(t.openBlock(),t.createElementBlock("tbody",{class:t.normalizeClass(t.unref(At)(a.class))},[t.renderSlot(n.$slots,"default")],2))}}),E1=R(t.defineComponent({__name:"TableCell",props:{class:{},ellipsis:{type:Boolean,default:!1},width:{}},setup(e){const a=e;return(n,i)=>(t.openBlock(),t.createElementBlock("td",{class:t.normalizeClass(t.unref(At)("unnnic-table-cell",{"unnnic-table-cell--ellipsis":a.ellipsis},a.class)),style:t.normalizeStyle({width:a.width})},[t.renderSlot(n.$slots,"default",{},void 0,!0)],6))}}),[["__scopeId","data-v-8ab2c1d0"]]),A1=R(t.defineComponent({__name:"TableHead",props:{class:{},ellipsis:{type:Boolean,default:!1},width:{}},setup(e){const a=e;return(n,i)=>(t.openBlock(),t.createElementBlock("th",{class:t.normalizeClass(t.unref(At)("unnnic-table-head",{"unnnic-table-head--ellipsis":a.ellipsis},a.class)),style:t.normalizeStyle({width:a.width})},[t.renderSlot(n.$slots,"default",{},void 0,!0)],6))}}),[["__scopeId","data-v-e96c2cbc"]]),x1=R(t.defineComponent({__name:"TableHeader",props:{class:{}},setup(e){const a=e;return(n,i)=>(t.openBlock(),t.createElementBlock("thead",{class:t.normalizeClass(t.unref(At)("unnnic-table-header",a.class))},[t.renderSlot(n.$slots,"default",{},void 0,!0)],2))}}),[["__scopeId","data-v-363df9eb"]]),hx=["tabindex"],mx=R(t.defineComponent({__name:"TableRow",props:{class:{}},emits:["click"],setup(e){const a=e,n=t.useAttrs(),i=t.computed(()=>!!n.onClick);return(r,s)=>(t.openBlock(),t.createElementBlock("tr",{tabindex:i.value?0:void 0,class:t.normalizeClass(t.unref(At)("unnnic-table-row","transition-colors data-[state=selected]:bg-muted",i.value&&"cursor-pointer",a.class)),onKeydown:[s[0]||(s[0]=t.withKeys(u=>i.value&&r.$emit("click",u),["enter"])),s[1]||(s[1]=t.withKeys(t.withModifiers(u=>i.value&&r.$emit("click",u),["prevent"]),["space"]))]},[t.renderSlot(r.$slots,"default",{},void 0,!0)],42,hx))}}),[["__scopeId","data-v-83c011a0"]]),Fx={name:"UnnnicTable",components:{UiTable:gx},provide(){return{unnnicTableVersion:t.computed(()=>this.version)}},inheritAttrs:!1,props:{items:{type:Array},version:{type:String,default:"1"}},data(){return{value:!1}},computed:{}},px={key:1,class:"unnnic-table"},bx={class:"header"},yx={class:"scroll"};function kx(e,a,n,i,r,s){const u=t.resolveComponent("UiTable");return n.version==="2"?(t.openBlock(),t.createBlock(u,t.normalizeProps(t.mergeProps({key:0},e.$attrs)),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3},16)):(t.openBlock(),t.createElementBlock("div",px,[t.createElementVNode("div",bx,[t.renderSlot(e.$slots,"header",{},void 0,!0)]),a[0]||(a[0]=t.createElementVNode("div",null,[t.createElementVNode("div",{class:"item-spacer"})],-1)),t.createElementVNode("div",yx,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.items,(d,c)=>(t.openBlock(),t.createElementBlock("div",{key:c,class:"item"},[t.renderSlot(e.$slots,"item",{item:d},void 0,!0)]))),128))])]))}const B1=R(Fx,[["render",kx],["__scopeId","data-v-f213dd07"]]),wx={name:"UnnnicTableRow",components:{UiTableRow:mx},inheritAttrs:!1,props:{headers:{type:Array}},setup(){const e=t.inject("unnnicTableVersion","1");return{isVersion2:t.computed(()=>t.unref(e)==="2")}}},Dx={class:"break-text"};function Cx(e,a,n,i,r,s){const u=t.resolveComponent("UiTableRow");return i.isVersion2?(t.openBlock(),t.createBlock(u,t.normalizeProps(t.mergeProps({key:0},e.$attrs)),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3},16)):(t.openBlock(),t.createElementBlock("div",t.mergeProps({key:1,class:"table-row"},e.$attrs),[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.headers,(d,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:d.id},[t.createElementVNode("div",{class:"col",style:t.normalizeStyle({width:d.width,flex:d.flex,minWidth:0})},[t.renderSlot(e.$slots,d.id,{},()=>[t.createElementVNode("div",Dx,t.toDisplayString(d.text),1)],!0)],4),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(["divider",{condensed:d.condensed}])},null,2),[[t.vShow,c+1!==n.headers.length]])],64))),128))],16))}const v1=R(wx,[["render",Cx],["__scopeId","data-v-b5deec9c"]]);function Mm(e){return t.getCurrentScope()?(t.onScopeDispose(e),!0):!1}function wo(e){return typeof e=="function"?e():t.unref(e)}const Pm=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Ex=Object.prototype.toString,Ax=e=>Ex.call(e)==="[object Object]",Do=()=>{},j1=xx();function xx(){var e,a;return Pm&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((a=window==null?void 0:window.navigator)==null?void 0:a.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}const Lm={mounted:"mounted",unmounted:"unmounted"};function Bx(...e){if(e.length!==1)return t.toRef(...e);const a=e[0];return typeof a=="function"?t.readonly(t.customRef(()=>({get:a,set:Do}))):t.ref(a)}function Co(e){var a;const n=wo(e);return(a=n==null?void 0:n.$el)!=null?a:n}const Vm=Pm?window:void 0;function rl(...e){let a,n,i,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,i,r]=e,a=Vm):[a,n,i,r]=e,!a)return Do;Array.isArray(n)||(n=[n]),Array.isArray(i)||(i=[i]);const s=[],u=()=>{s.forEach(g=>g()),s.length=0},d=(g,h,F,p)=>(g.addEventListener(h,F,p),()=>g.removeEventListener(h,F,p)),c=t.watch(()=>[Co(a),wo(r)],([g,h])=>{if(u(),!g)return;const F=Ax(h)?{...h}:h;s.push(...n.flatMap(p=>i.map(y=>d(g,p,y,F))))},{immediate:!0,flush:"post"}),_=()=>{c(),u()};return Mm(_),_}let Rm=!1;function zm(e,a,n={}){const{window:i=Vm,ignore:r=[],capture:s=!0,detectIframe:u=!1}=n;if(!i)return Do;j1&&!Rm&&(Rm=!0,Array.from(i.document.body.children).forEach(F=>F.addEventListener("click",Do)),i.document.documentElement.addEventListener("click",Do));let d=!0;const c=F=>r.some(p=>{if(typeof p=="string")return Array.from(i.document.querySelectorAll(p)).some(y=>y===F.target||F.composedPath().includes(y));{const y=Co(p);return y&&(F.target===y||F.composedPath().includes(y))}}),g=[rl(i,"click",F=>{const p=Co(e);if(!(!p||p===F.target||F.composedPath().includes(p))){if(F.detail===0&&(d=!c(F)),!d){d=!0;return}a(F)}},{passive:!0,capture:s}),rl(i,"pointerdown",F=>{const p=Co(e);d=!c(F)&&!!(p&&!F.composedPath().includes(p))},{passive:!0}),u&&rl(i,"blur",F=>{setTimeout(()=>{var p;const y=Co(e);((p=i.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!(y!=null&&y.contains(i.document.activeElement))&&a(F)},0)})].filter(Boolean);return()=>g.forEach(F=>F())}const ol={[Lm.mounted](e,a){const n=!a.modifiers.bubble;if(typeof a.value=="function")e.__onClickOutside_stop=zm(e,a.value,{capture:n});else{const[i,r]=a.value;e.__onClickOutside_stop=zm(e,i,Object.assign({capture:n},r))}},[Lm.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 Um(e){const a=window.getComputedStyle(e);if(a.overflowX==="scroll"||a.overflowY==="scroll"||a.overflowX==="auto"&&e.clientWidth<e.scrollWidth||a.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const n=e.parentNode;return!n||n.tagName==="BODY"?!1:Um(n)}}function vx(e){const a=e||window.event,n=a.target;return Um(n)?!1:a.touches.length>1?!0:(a.preventDefault&&a.preventDefault(),!1)}const q1=new WeakMap;function jx(e,a=!1){const n=t.ref(a);let i=null,r="";t.watch(Bx(e),d=>{const c=S1(wo(d));if(c){const _=c;if(q1.get(_)||q1.set(_,_.style.overflow),_.style.overflow!=="hidden"&&(r=_.style.overflow),_.style.overflow==="hidden")return n.value=!0;if(n.value)return _.style.overflow="hidden"}},{immediate:!0});const s=()=>{const d=S1(wo(e));!d||n.value||(j1&&(i=rl(d,"touchmove",c=>{vx(c)},{passive:!1})),d.style.overflow="hidden",n.value=!0)},u=()=>{const d=S1(wo(e));!d||!n.value||(j1&&(i==null||i()),d.style.overflow=r,q1.delete(d),n.value=!1)};return Mm(u),t.computed({get(){return n.value},set(d){d?s():u()}})}function Sx(){let e=!1;const a=t.ref(!1);return(n,i)=>{if(a.value=i.value,e)return;e=!0;const r=jx(n,i.value);t.watch(a,s=>r.value=s)}}Sx();const qx={name:"UnnnicDropdown",directives:{onClickOutside:ol},props:{useOpenProp:{type:Boolean,default:!1},open:{type:Boolean,default:!1},forceOpen:{type:Boolean,default:!1},position:{type:String,default:"bottom-left",validator(e){return["top-left","top-right","none","bottom-left","bottom-right"].indexOf(e)!==-1}}},emits:["update:open"],data(){return{active:!1}},watch:{open:{handler(){this.active=this.open},immediate:!0},active(){this.useOpenProp||this.$emit("update:open",this.active)}},methods:{onClickTrigger(){this.forceOpen||(this.useOpenProp?this.$emit("update:open",!this.open):this.active=!this.active)},onClickOutside(){if(!this.forceOpen){if(this.useOpenProp&&this.open){this.$emit("update:open",!1);return}this.active&&(this.active=!1)}}}},Tx={class:"unnnic-dropdown__trigger"};function Ix(e,a,n,i,r,s){const u=t.resolveDirective("on-click-outside");return t.openBlock(),t.createElementBlock("div",{class:"unnnic-dropdown",onClick:a[0]||(a[0]=t.withModifiers((...d)=>s.onClickTrigger&&s.onClickTrigger(...d),["stop"]))},[t.createElementVNode("div",Tx,[t.renderSlot(e.$slots,"trigger",{},void 0,!0),(n.useOpenProp?n.open:r.active)?t.withDirectives((t.openBlock(),t.createElementBlock("div",{key:0,"data-testid":"dropdown-content",class:t.normalizeClass(["unnnic-dropdown__content",n.useOpenProp?n.open:r.active?"":"unnnic-dropdown__content--hidden",`unnnic-dropdown__content__position-${n.position}`])},[t.renderSlot(e.$slots,"default",{},void 0,!0)],2)),[[u,s.onClickOutside]]):t.createCommentVNode("",!0)])])}const Eo=R(qx,[["render",Ix],["__scopeId","data-v-2f5344c2"]]),Nx={name:"UnnnicDropdownItem"},Ox={class:"unnnic-dropdown-item unnnic--clickable","data-testid":"dropdown-item"};function Mx(e,a,n,i,r,s){return t.openBlock(),t.createElementBlock("a",Ox,[t.renderSlot(e.$slots,"default")])}const sl=R(Nx,[["render",Mx]]),Ni=R(t.defineComponent({name:"UnnnicAvatarIcon",__name:"AvatarIcon",props:{enabled:{type:Boolean,default:!0},icon:{default:"graph-stats-1"},size:{default:"sm"},scheme:{default:"fg-info"},filled:{type:Boolean,default:!1},opacity:{type:Boolean,default:!0}},setup(e){const a=e,n=t.computed(()=>({nano:"xs",xs:"sm",sm:"md",lg:"lg",xl:"xl"})[a.size]);return(i,r)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["unnnic-avatar-icon",i.scheme,i.size,{disabled:!i.enabled},i.filled,{opacity:!i.opacity}])},[t.createVNode(be,{icon:i.icon,scheme:i.enabled?i.scheme:"fg-base",size:n.value,filled:i.filled},null,8,["icon","scheme","size","filled"])],2))}}),[["__scopeId","data-v-bb67e89b"]]),Px={name:"UnnnicCard",components:{UnnnicIcon:be,UnnnicAvatarIcon:Ni},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"}}},Lx={class:"unnnic-card-dash"},Vx={class:"header"},Rx={class:"label"},zx={class:"content"},Ux={class:"value"},Hx={class:"label"};function Yx(e,a,n,i,r,s){const u=t.resolveComponent("UnnnicAvatarIcon"),d=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createElementBlock("div",Lx,[t.createElementVNode("div",Vx,[t.createVNode(u,{size:"sm",scheme:n.scheme,icon:n.icon},null,8,["scheme","icon"]),t.createElementVNode("div",Rx,t.toDisplayString(n.title),1)]),t.createElementVNode("div",zx,[t.createElementVNode("div",Ux,t.toDisplayString(n.value),1),n.percent?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["percent",`unnnic-card-scheme--feedback-${s.color}`])},[t.createVNode(d,{icon:`graph-stats-${n.percent>=0?"ascend":"descend"}-2`,scheme:`feedback-${s.color}`,size:"sm",class:"icon"},null,8,["icon","scheme"]),t.createElementVNode("div",Hx,t.toDisplayString(n.percent>=0?`+${n.percent}%`:`${n.percent}%`),1)],2)):t.createCommentVNode("",!0)])])}const Gx=R(Px,[["render",Yx],["__scopeId","data-v-32f9b938"]]),Wx={name:"UnnnicCard",components:{ToolTip:la,UnnnicIcon:be},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}}},$x={class:"unnnic-card-title"},Qx={class:"title"};function Kx(e,a,n,i,r,s){const u=t.resolveComponent("UnnnicIcon"),d=t.resolveComponent("ToolTip");return t.openBlock(),t.createElementBlock("div",$x,[t.createElementVNode("div",{class:t.normalizeClass(["avatar-icon",`unnnic-card-scheme--${n.scheme}`])},[t.createVNode(u,{icon:n.icon,scheme:n.scheme,size:"md"},null,8,["icon","scheme"])],2),t.createElementVNode("div",Qx,t.toDisplayString(n.title),1),n.hasInformationIcon?(t.openBlock(),t.createBlock(d,{key:0,class:"information",side:n.infoPosition,text:n.info,enabled:n.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 Hm=R(Wx,[["render",Kx],["__scopeId","data-v-ff5285fa"]]),Xx={name:"UnnnicCard",components:{UnnnicIcon:be},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}}},Zx={class:"header"},Jx={class:"label"},eB={class:"content"},tB={class:"title-container"},aB={class:"title"},nB={class:"description"};function iB(e,a,n,i,r,s){const u=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["unnnic-card-status",`unnnic-card-scheme--${n.scheme}--border`])},[t.createElementVNode("div",Zx,[t.createVNode(u,{icon:n.icon,scheme:"fg-base",size:"md",class:"icon"},null,8,["icon"]),t.createElementVNode("div",Jx,t.toDisplayString(n.title),1)]),t.createElementVNode("div",eB,[t.createElementVNode("div",tB,[t.createVNode(u,{icon:"indicator",scheme:n.scheme,size:"sm"},null,8,["scheme"]),t.createElementVNode("div",aB,t.toDisplayString(n.status),1)]),t.createElementVNode("div",nB,t.toDisplayString(n.description),1)])],2)}const rB=R(Xx,[["render",iB],["__scopeId","data-v-784b6871"]]),oB={name:"UnnnicCard",components:{UnnnicAvatarIcon:Ni},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}}},sB={class:"icon"},lB={class:"content"},uB={class:"title"},dB={class:"description"};function cB(e,a,n,i,r,s){const u=t.resolveComponent("UnnnicAvatarIcon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass({"unnnic-card-account":!0,enabled:n.enabled})},[t.createElementVNode("div",sB,[t.createVNode(u,{size:"xs",scheme:n.scheme,icon:n.icon,enabled:n.enabled},null,8,["scheme","icon","enabled"])]),t.createElementVNode("div",lB,[t.createElementVNode("div",uB,t.toDisplayString(n.title),1),t.createElementVNode("div",dB,t.toDisplayString(n.description),1)])],2)}const fB=R(oB,[["render",cB],["__scopeId","data-v-cd0328b9"]]),_B={name:"UnnnicCard",props:{title:{type:String,default:null},description:{type:String,default:null},clickable:{type:Boolean,default:!1}}},gB={class:"unnnic-card-default__content"},hB={class:"unnnic-card-default__title"},mB=["title"];function FB(e,a,n,i,r,s){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass({"unnnic-card-default":!0,"unnnic-card-default__clickable":n.clickable})},[t.createElementVNode("div",gB,[t.createElementVNode("div",hB,t.toDisplayString(n.title),1),t.createElementVNode("p",{class:"unnnic-card-default__description",title:n.description},t.toDisplayString(n.description),9,mB)])],2)}const pB=R(_B,[["render",FB]]),bB={name:"UnnnicCard",components:{UnnnicIcon:be},props:{text:{type:String,default:null},icon:{type:String,default:null},clickable:{type:Boolean,default:!1}}},yB={class:"unnnic-card-blank__content"},kB={class:"unnnic-card-blank__content__text"};function wB(e,a,n,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":n.clickable})},[t.createElementVNode("div",yB,[t.createVNode(u,{icon:n.icon,scheme:"fg-base",class:"unnnic-card-blank__content__icon",size:"xl"},null,8,["icon"]),t.createElementVNode("div",kB,t.toDisplayString(n.text),1)])],2)}const DB=R(bB,[["render",wB]]),CB={name:"UnnnicCard",components:{UnnnicIcon:be},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}}},EB={class:"unnnic-card-content__content"},AB={class:"unnnic-card-content__content__title"},xB={class:"unnnic-card-content__content__description"};function BB(e,a,n,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":!n.enabled,"unnnic-card-content__clickable":n.clickable})},[t.createElementVNode("div",{class:t.normalizeClass(["unnnic-card-content__icon",n.enabled&&"unnnic-card-content__icon--disabled"])},[t.createVNode(u,{icon:n.icon,scheme:"fg-base",size:"sm"},null,8,["icon"])],2),t.createElementVNode("div",EB,[t.createElementVNode("div",AB,t.toDisplayString(n.title),1),t.createElementVNode("div",xB,t.toDisplayString(n.description),1)])],2)}const vB=R(CB,[["render",BB]]),jB={name:"UnnnicCard",components:{UnnnicIcon:be},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")}}},SB={class:t.normalizeClass(["unnnic-card-marketplace__icons"])},qB=["src"],TB={class:"unnnic-card-marketplace__content"},IB={class:"unnnic-card-marketplace__content__title"},NB=["title"],OB={key:0,class:"unnnic-card-marketplace__content__rating"},MB={class:"unnnic-card-marketplace__content__rating__value"},PB={class:"unnnic-card-marketplace__content__rating__comments"};function LB(e,a,n,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":n.clickable,"unnnic-card-marketplace__add":n.typeAction==="add","unnnic-card-marketplace__config":n.typeAction==="config","unnnic-card-marketplace__edit":n.typeAction==="edit"}),onClick:a[0]||(a[0]=(...d)=>s.cardClick&&s.cardClick(...d))},[t.createElementVNode("div",SB,[t.createElementVNode("img",{class:"unnnic-card-marketplace__icons__app",src:n.iconSrc},null,8,qB),t.renderSlot(e.$slots,"actions")]),t.createElementVNode("div",TB,[t.createElementVNode("div",IB,t.toDisplayString(n.title),1),t.createElementVNode("div",{class:"unnnic-card-marketplace__content__description",title:n.description},t.toDisplayString(n.description),9,NB),n.typeAction==="add"?(t.openBlock(),t.createElementBlock("div",OB,[t.createVNode(u,{class:"unnnic-card-marketplace__content__rating__star",scheme:"feedback-yellow",icon:"rating-star-1",size:"ant",filled:""}),t.createElementVNode("div",MB,t.toDisplayString(n.rating),1),t.createElementVNode("div",PB," ("+t.toDisplayString(n.comments)+") ",1)])):t.createCommentVNode("",!0)])],2)}const VB=R(jB,[["render",LB]]),RB={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"?Hm:this.type==="dash"?Gx:this.type==="status"?rB:this.type==="account"?fB:this.type==="default"?pB:this.type==="blank"?DB:this.type==="content"?vB:this.type==="marketplace"?VB:Hm}},methods:{openModal(){this.$emit("openModal")}}};function zB(e,a,n,i,r,s){return t.openBlock(),t.createBlock(t.resolveDynamicComponent(s.currentComponent),t.mergeProps({class:"unnnic-card-component"},e.$attrs,{title:n.title,text:n.text,info:n.info,icon:s.currentTypeIcon,iconSrc:n.iconSrc,rating:n.rating,comments:n.comments,typeAction:n.typeAction,buttonAction:n.buttonAction,value:n.value,percent:n.percent,invertedPercentage:n.invertedPercentage||null,status:n.status,description:n.description,infoPosition:n.infoPosition,enabled:n.enabled,scheme:n.scheme,clickable:n.clickable||null,hasInformationIcon:n.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 T1=R(RB,[["render",zB]]),I1={name:"UnnnicSimpleCard",components:{UnnnicToolTip:la,UnnnicIcon:be},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"]},Ym=()=>{t.useCssVars(e=>({"503b66d5":e.titleSize}))},Gm=I1.setup;I1.setup=Gm?(e,a)=>(Ym(),Gm(e,a)):Ym;const UB={key:0,class:"unnnic-simple-card__header"},HB={class:"unnnic-simple-card-header-container"},YB={class:"unnnic-simple-card-header-container__title"},GB={key:0,class:"unnnic-simple-card__header-slot"},WB=["title"],$B={key:2,class:"unnnic-simple-card__footer"};function QB(e,a,n,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":n.clickable}),onClick:a[0]||(a[0]=t.withModifiers(c=>n.clickable&&e.$emit("click"),["stop"]))},[n.title||e.$slots.headerSlot?(t.openBlock(),t.createElementBlock("section",UB,[t.createElementVNode("section",HB,[t.createElementVNode("h1",YB,t.toDisplayString(n.title),1),n.titleTooltip?(t.openBlock(),t.createBlock(d,{key:0,text:n.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",GB,[t.renderSlot(e.$slots,"headerSlot",{},void 0,!0)])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),n.text?(t.openBlock(),t.createElementBlock("p",{key:1,class:"unnnic-simple-card__text",title:n.text},t.toDisplayString(n.text),9,WB)):t.createCommentVNode("",!0),e.$slots.footer?(t.openBlock(),t.createElementBlock("section",$B,[t.renderSlot(e.$slots,"footer",{},void 0,!0)])):t.createCommentVNode("",!0)],2)}const N1=R(I1,[["render",QB],["__scopeId","data-v-29a7f9ca"]]),Ja={props:{locale:{type:String},translations:{type:Object}},methods:{i18n(...e){const[a,n]=e,i=Object.keys(ko.global.messages);let{locale:r}=this;const s=$t.get(ko,"global.locale")==="en-us"?"en":$t.get(ko,"global.locale");r=i.includes(r)?r:s,r=r==null?void 0:r.toLowerCase();let u=$t.get(this.translations,`${a}.${r}`,$t.get(this.translations,a));if(u||(u=$t.get($t.get(this.defaultTranslations,a),r,n)),u!=null&&u.includes("|")&&typeof e[1]=="number"){const c=e[1],_=u.split("|");_.length===3?u=_[c]||_[2]:_.length===2&&(u=c===1?_[0]:_[1])}let d={};return Object.values(e).slice(1).forEach(c=>{!(c instanceof Array)&&c instanceof Object&&(d=c)}),Object.keys(d).forEach(c=>{u=u==null?void 0:u.replaceAll(new RegExp(`{ *${c} *}`,"g"),d[c])}),u}}},KB={class:"chip__text"},ll=R(t.defineComponent({__name:"Chip",props:{isSelected:{type:Boolean},text:{},count:{},type:{},isClickable:{type:Boolean},onClick:{type:Function}},emits:["click"],setup(e,{emit:a}){const n=e,i=a,r=c=>{i("click",c)},s=t.computed(()=>!n.isSelected),u=t.computed(()=>n.isSelected?"chip__count--is-selected":""),d=t.computed(()=>n.isSelected?"chip--is-selected":"");return(c,_)=>(t.openBlock(),t.createElementBlock("section",{class:t.normalizeClass(["chip",d.value,{"chip--border":s.value,"chip--is-clickable":c.isClickable}]),onClick:r},[t.createElementVNode("p",KB,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(be,{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"]]),XB={key:0,class:"unnnic-tag__icon"},ZB={class:t.normalizeClass("unnnic-tag__label")},JB=R(t.defineComponent({__name:"DefaultTag",props:{text:{default:void 0},size:{default:"medium"},scheme:{default:"aux-purple"},leftIcon:{default:void 0}},setup(e){const a=e,n=[{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=a.scheme.toLowerCase(),s=n.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}`),style:t.normalizeStyle({backgroundColor:i.value})},[r.leftIcon?(t.openBlock(),t.createElementBlock("section",XB,[t.createVNode(be,{icon:r.leftIcon,scheme:"fg-emphasized",size:"sm"},null,8,["icon"])])):t.createCommentVNode("",!0),t.createElementVNode("p",ZB,t.toDisplayString(r.text),1)],6))}}),[["__scopeId","data-v-299f2efd"]]),Ao=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(a,n)=>a.type==="brand"||a.hasCloseIcon?(t.openBlock(),t.createBlock(ll,{key:0,text:a.text,type:"multiple",isSelected:a.disabled||a.hasCloseIcon,isClickable:"",onClick:n[0]||(n[0]=i=>a.hasCloseIcon?a.$emit("close"):a.$emit("click"))},null,8,["text","isSelected"])):(t.openBlock(),t.createBlock(JB,{key:1,size:a.type==="next"?"small":a.size,text:a.text,scheme:a.scheme,leftIcon:a.leftIcon},null,8,["size","text","scheme","leftIcon"]))}}),ev={components:{UnnnicTag:Ao},mixins:[Ja],props:{oldVersion:Boolean,name:String,description:String,plan:String,actionText:String},data(){return{isOptionsOpen:!1}}},tv={class:"name"},av={class:"description"},nv={key:1};function iv(e,a,n,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":n.oldVersion}]),onClick:a[3]||(a[3]=_=>e.$emit("enter"))},[t.createElementVNode("div",null,[t.createElementVNode("h2",tv,t.toDisplayString(n.name),1),t.createElementVNode("p",av,t.toDisplayString(n.description),1),n.plan?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["tag",n.plan])},t.toDisplayString(e.i18n(`plans.${n.plan}`)),3)):t.createCommentVNode("",!0)]),n.actionText?(t.openBlock(),t.createBlock(u,{key:0,class:"action",clickable:"",text:n.actionText,scheme:"aux-blue",onClick:a[0]||(a[0]=_=>e.$emit("action"))},null,8,["text"])):t.createCommentVNode("",!0),e.$slots.options?(t.openBlock(),t.createElementBlock("div",nv,[t.createVNode(c,{open:r.isOptionsOpen,"onUpdate:open":a[1]||(a[1]=_=>r.isOptionsOpen=_),class:"unnnic-dropdown",onClick:a[2]||(a[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 O1=R(ev,[["render",iv],["__scopeId","data-v-dac06e20"]]),rv={components:{UnnnicIcon:be},props:{title:{type:String},description:{type:String},score:{type:String},info:{type:String},checked:{type:Boolean,default:!1}}},ov={class:"card"},sv={class:"header"},lv={class:"title"},uv={key:0,class:"check"},dv={class:"description"},cv={key:0,class:"footer"},fv={class:"evaluation"},_v={class:"info"};function gv(e,a,n,i,r,s){const u=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createElementBlock("div",ov,[t.createElementVNode("div",sv,[t.createElementVNode("div",lv,t.toDisplayString(n.title),1),n.checked?(t.openBlock(),t.createElementBlock("div",uv,[t.createVNode(u,{size:"md",icon:"check-circle-1-1-1",scheme:"feedback-green"})])):t.createCommentVNode("",!0)]),t.createElementVNode("div",dv,t.toDisplayString(n.description),1),n.score||n.info?(t.openBlock(),t.createElementBlock("div",cv,[t.createElementVNode("div",fv,[n.score?(t.openBlock(),t.createBlock(u,{key:0,size:"sm",icon:"rating-star-1",scheme:"feedback-yellow"})):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(n.score)+" ",1),t.createElementVNode("span",_v,t.toDisplayString(n.info),1)])])):t.createCommentVNode("",!0)])}const M1=R(rv,[["render",gv],["__scopeId","data-v-0ebd61ad"]]),hv={class:"unnnic-checkbox"},mv=["disabled","checked"],Fv={key:0,class:"unnnic-checkbox__helper"},Er=R(t.defineComponent({name:"UnnnicCheckbox",__name:"Checkbox",props:{modelValue:{type:[Boolean,String],default:!1},disabled:{type:Boolean,default:!1},label:{default:""},helper:{default:""},textRight:{default:""}},emits:["change","update:model-value"],setup(e,{emit:a}){const n=e,i=a,r=t.useAttrs(),s=t.computed(()=>n.modelValue===!0?"checked":n.modelValue===!1?"default":"less");function u(){const d=["checked","less"].includes(s.value);i("change",!d),i("update:model-value",!d)}return(d,c)=>(t.openBlock(),t.createElementBlock("section",hv,[t.createElementVNode("label",{class:t.normalizeClass(["unnnic-checkbox__input-wrapper",{"unnnic-checkbox__input-wrapper--disabled":d.disabled}])},[t.createElementVNode("input",t.mergeProps({class:["unnnic-checkbox__input",{"unnnic-checkbox__input--less":d.modelValue==="less"}],type:"checkbox",disabled:d.disabled,checked:d.modelValue==="less"||d.modelValue},t.unref($t.pick)(t.unref(r),["id","name"]),{onChange:u}),null,16,mv),d.label||d.textRight?(t.openBlock(),t.createElementBlock("p",{key:0,class:t.normalizeClass(["unnnic-checkbox__label",{"unnnic-checkbox__label--disabled":d.disabled}]),"data-testid":"checkbox-text-right"},t.toDisplayString(d.label||d.textRight),3)):t.createCommentVNode("",!0)],2),d.helper?(t.openBlock(),t.createElementBlock("p",Fv,t.toDisplayString(d.helper),1)):t.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-bcd5de2d"]]),pv={components:{UnnnicIcon:be,UnnnicCheckbox:Er,UnnnicAvatarIcon:Ni,UnnnicDropdown:Eo},props:{modelValue:Boolean,title:String,description:String,image:String,data:{type:Array,default(){return[]}}}},bv={class:"header"},yv={class:"content"},kv={key:0,class:"u font secondary body-lg bold color-fg-emphasized"},wv={key:1,class:"u font secondary body-md color-fg-base"},Dv=["src"],Cv={key:0,class:"details"},Ev={class:"u font secondary body-gt color-fg-base"},Av={class:"value-container"},xv={class:"u font secondary body-gt color-fg-emphasized"};function Bv(e,a,n,i,r,s){const u=t.resolveComponent("UnnnicCheckbox"),d=t.resolveComponent("UnnnicIcon"),c=t.resolveComponent("UnnnicDropdown"),_=t.resolveComponent("UnnnicAvatarIcon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["unnnic-card-image",{checked:n.modelValue}])},[t.createElementVNode("div",bv,[t.createElementVNode("div",yv,[n.title?(t.openBlock(),t.createElementBlock("div",kv,t.toDisplayString(n.title),1)):t.createCommentVNode("",!0),n.description?(t.openBlock(),t.createElementBlock("div",wv,t.toDisplayString(n.description),1)):t.createCommentVNode("",!0)]),t.createVNode(u,{modelValue:n.modelValue,onChange:a[0]||(a[0]=g=>e.$emit("update:model-value",g))},null,8,["modelValue"]),e.$slots.actions?(t.openBlock(),t.createBlock(c,{key:0,position:"bottom-left"},{trigger:t.withCtx(()=>[t.createVNode(d,{icon:"navigation-menu-vertical-1",size:"sm",scheme:"fg-muted",clickable:""})]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"actions",{},void 0,!0)]),_:3})):t.createCommentVNode("",!0)]),t.createElementVNode("img",{class:"image",src:n.image},null,8,Dv),n.data.length?(t.openBlock(),t.createElementBlock("div",Cv,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.data,(g,h)=>(t.openBlock(),t.createElementBlock("div",{key:h,class:"data"},[t.createElementVNode("div",Ev,t.toDisplayString(g.name),1),t.createElementVNode("div",Av,[t.createVNode(_,{icon:g.icon,size:"xs",scheme:g.scheme},null,8,["icon","scheme"]),t.createElementVNode("div",xv,t.toDisplayString(g.value),1)])]))),128))])):t.createCommentVNode("",!0)],2)}const P1=R(pv,[["render",Bv],["__scopeId","data-v-d331e392"]]),vv={components:{UnnnicIcon:be,UnnnicDropdown:Eo,UnnnicDropdownItem:sl},mixins:[Ja],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 a,n;const e=(n=(a=this.$slots).actions)==null?void 0:n.call(a);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)}}},jv={class:"unnnic-card-project__header"},Sv=["title"],qv={class:"unnnic-card-project__description"},Tv=["title"],Iv={class:"unnnic-card-project__bottom"},Nv={class:"unnnic-card-project__status-options-container"};function Ov(e,a,n,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":n.clickable,"unnnic-card-project--inactive":n.status==="INACTIVE"}),"data-testid":"unnnic-card-project",onClick:[a[2]||(a[2]=t.withModifiers((..._)=>s.emitClick&&s.emitClick(..._),["left","exact"])),a[4]||(a[4]=t.withModifiers(_=>s.emitClick({button:1}),["ctrl"]))],onMouseup:a[3]||(a[3]=t.withModifiers((..._)=>s.emitClick&&s.emitClick(..._),["middle","exact","prevent"]))},[t.createElementVNode("section",jv,[t.createElementVNode("h1",{title:n.name,class:t.normalizeClass({"unnnic-card-project__title":!0,"unnnic-card-project__title--inactive":n.status==="INACTIVE"}),"data-testid":"card-project-title"},t.toDisplayString(n.name),11,Sv),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",qv,[t.createElementVNode("p",{title:n.description,class:t.normalizeClass({"unnnic-card-project__description":!0,"unnnic-card-project__description--inactive":n.status==="INACTIVE"})},t.toDisplayString(n.description),11,Tv)]),t.createElementVNode("section",Iv,[t.createElementVNode("section",{class:t.normalizeClass(["unnnic-card-project__status-chip",`unnnic-card-project__status-chip--${n.status}`]),"data-testid":"project-status-chip",onClick:a[1]||(a[1]=t.withModifiers(_=>s.handlerDropdownOpen(),["stop"]))},[t.createElementVNode("p",null,t.toDisplayString(e.i18n(n.status)),1),n.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":a[0]||(a[0]=_=>r.openDropdown=_)},{default:t.withCtx(()=>[t.createElementVNode("section",Nv,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.statusOptions,_=>(t.openBlock(),t.createBlock(c,{key:_,class:"status-option",onClick:g=>s.handlerClickDropdownItem(_)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.i18n(_)),1)]),_:2},1032,["onClick"]))),128))])]),_:1},8,["open"])],2)])],34)}const L1=R(vv,[["render",Ov],["__scopeId","data-v-e9dc5349"]]),Mv={components:{UnnnicAvatarIcon:Ni,UnnnicToolTip:la,UnnnicIcon:be},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*Hr}}},Pv={class:"unnnic-card-container"},Lv={class:"header"},Vv={class:"title"},Rv=["title"],zv={key:0,class:"subtitle"},Uv={key:0,class:"description"},Hv={key:1,class:"description-row-container"},Yv={key:0,class:"description-row"},Gv={class:"title"},Wv={class:"content"},$v={class:"number"};function Qv(e,a,n,i,r,s){const u=t.resolveComponent("UnnnicIcon"),d=t.resolveComponent("UnnnicToolTip"),c=t.resolveComponent("UnnnicAvatarIcon");return t.openBlock(),t.createElementBlock("div",Pv,[t.createElementVNode("div",Lv,[t.createElementVNode("div",Vv,[t.createElementVNode("span",{class:"name",title:n.name.length>25?n.name:null},t.toDisplayString(n.name),9,Rv),n.subtitle?(t.openBlock(),t.createElementBlock("div",zv,t.toDisplayString(n.subtitle),1)):t.createCommentVNode("",!0)]),t.renderSlot(e.$slots,"header-buttons",{},void 0,!0)]),n.description?(t.openBlock(),t.createElementBlock("div",Uv,t.toDisplayString(n.description),1)):t.createCommentVNode("",!0),n.descriptionRow||n.descriptionRowInfo?(t.openBlock(),t.createElementBlock("div",Hv,[n.descriptionRow?(t.openBlock(),t.createElementBlock("div",Yv,t.toDisplayString(n.descriptionRow),1)):t.createCommentVNode("",!0),n.descriptionRowInfo?(t.openBlock(),t.createBlock(d,{key:1,side:"top",text:n.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),a[0]||(a[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(${n.minStatusWidth}, 1fr))`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.statuses,(_,g)=>(t.openBlock(),t.createElementBlock("div",{key:g,class:"status"},[t.createElementVNode("div",Gv,t.toDisplayString(_.title),1),t.createElementVNode("div",Wv,[t.createVNode(c,{icon:_.icon,scheme:_.scheme,size:"xs"},null,8,["icon","scheme"]),t.createElementVNode("div",$v,t.toDisplayString(_.count),1)])]))),128))],4)])}const Kv={components:{CardStatusesContainer:R(Mv,[["render",Qv],["__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:Hr}}};function Xv(e,a,n,i,r,s){const u=t.resolveComponent("CardStatusesContainer");return t.openBlock(),t.createBlock(u,{class:"unnnic-card-information",name:n.name,subtitle:n.subtitle,description:n.description,descriptionRow:n.descriptionRow,descriptionRowInfo:n.descriptionRowInfo,statuses:n.statuses,minStatusWidth:8.75*r.unnnicFontSize+"px"},null,8,["name","subtitle","description","descriptionRow","descriptionRowInfo","statuses","minStatusWidth"])}const V1=R(Kv,[["render",Xv],["__scopeId","data-v-ee17403c"]]),Zv={class:"unnnic-checkbox-group__checkboxes"},Jv={key:1,class:"unnnic-checkbox-group__helper"},R1=R(t.defineComponent({name:"UnnnicCheckboxGroup",__name:"CheckboxGroup",props:{state:{default:"horizontal"},label:{default:""},labelTooltip:{default:void 0},helper:{default:""}},setup(e){return(a,n)=>(t.openBlock(),t.createElementBlock("section",{class:t.normalizeClass(["unnnic-checkbox-group__container",`unnnic-checkbox-group--state-${a.state}`])},[a.label?(t.openBlock(),t.createBlock(Ci,{key:0,label:a.label,tooltip:a.labelTooltip},null,8,["label","tooltip"])):t.createCommentVNode("",!0),t.createElementVNode("section",Zv,[t.renderSlot(a.$slots,"default",{},void 0,!0)]),a.helper?(t.openBlock(),t.createElementBlock("footer",Jv,t.toDisplayString(a.helper),1)):t.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-f03f56c7"]]),ej={class:"unnnic-collapse__body"},z1=R({__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:a}){const n=e,i=a,r=t.ref(!1);return t.watch(r,s=>{i("change",s),i("update:modelValue",s)}),t.watch(()=>n.active,s=>{r.value=s},{immediate:!0}),t.watch(()=>n.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(be,{size:"ant",icon:r.value?"arrow-button-up-1":"arrow-button-down-1",scheme:"fg-base"},null,8,["icon"])]),t.withDirectives(t.createElementVNode("div",ej,[t.renderSlot(s.$slots,"default",{},void 0,!0)],512),[[t.vShow,r.value]])],2))}},[["__scopeId","data-v-cc0e62a7"]]),tj={class:"unnnic-radio"},aj=["disabled","checked","name"],nj={key:0,class:"unnnic-radio__helper"},U1=R(t.defineComponent({name:"UnnnicRadio",__name:"Radio",props:{modelValue:{default:""},value:{default:""},disabled:{type:Boolean,default:!1},label:{default:""},name:{default:""},helper:{default:""}},emits:["update:modelValue"],setup(e,{emit:a}){const n=e,i=a,r=t.useAttrs(),s=t.inject("contextModelValue",void 0),u=t.inject("contextName",void 0);function d(){n.disabled||(i("update:modelValue",n.value),s&&(s.value=n.value))}const c=t.computed(()=>(s==null?void 0:s.value)||n.modelValue),_=t.computed(()=>(u==null?void 0:u.value)||n.name);return(g,h)=>(t.openBlock(),t.createElementBlock("section",tj,[t.createElementVNode("label",{class:t.normalizeClass(["unnnic-radio__input-wrapper",{"unnnic-radio__input-wrapper--disabled":g.disabled}])},[t.createElementVNode("input",t.mergeProps({class:"unnnic-radio__input",type:"radio",disabled:g.disabled,checked:c.value===g.value,name:_.value},t.unref($t.pick)(t.unref(r),["id"]),{onChange:d}),null,16,aj),t.createElementVNode("p",{class:t.normalizeClass(["unnnic-radio__label",{"unnnic-radio__label--disabled":g.disabled}])},[t.createTextVNode(t.toDisplayString(g.label)+" ",1),t.renderSlot(g.$slots,"default",{},void 0,!0)],2),g.helper?(t.openBlock(),t.createElementBlock("footer",nj,t.toDisplayString(g.helper),1)):t.createCommentVNode("",!0)],2)]))}}),[["__scopeId","data-v-5a197c2a"]]),ij={class:"unnnic-radio-group__radios"},rj={key:1,class:"unnnic-radio-group__helper"},H1=R(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:a}){const n=e,i=a,r=t.ref(n.modelValue);t.watch(()=>n.modelValue,u=>{u!==r.value&&(r.value=u)}),t.watch(r,u=>{u!==n.modelValue&&i("update:modelValue",u)});const s=t.computed(()=>n.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",ij,[t.renderSlot(u.$slots,"default",{},void 0,!0)]),u.helper?(t.openBlock(),t.createElementBlock("footer",rj,t.toDisplayString(u.helper),1)):t.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-d5af6106"]]),oj={name:"Flag",components:{UnnnicIcon:be},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 sj(e,a,n,i,r,s){const u=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createBlock(u,{icon:s.name,size:n.size},null,8,["icon","size"])}const lj={name:"LanguageSelect",components:{UnnnicFlag:R(oj,[["render",sj]]),UnnnicIcon:be},directives:{onClickOutside:ol},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:Hr}},computed:{languages(){const e={"pt-br":"Português - Brasil",en:"English",es:"Español"};return this.supportedLanguages.reduce((a,n)=>({...a,[n]:e[n]}),{})},otherLanguages(){return this.languageList.filter(({id:e})=>e!==this.val)},languageList(){return Object.entries(this.languages).map(([e,a])=>({id:e,name:a}))},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)}}},uj={key:0,class:"unnnic-language-select contracted"},dj={class:"option"},cj=["onClick"],fj={key:1,class:"unnnic-language-select normal"},_j={class:"option"},gj={class:"label"},hj=["onClick"],mj={class:"label"},Fj={class:"option"},pj={class:"label"};function bj(e,a,n,i,r,s){const u=t.resolveComponent("UnnnicFlag"),d=t.resolveComponent("UnnnicIcon"),c=t.resolveDirective("on-click-outside");return n.contracted?t.withDirectives((t.openBlock(),t.createElementBlock("div",uj,[t.createElementVNode("div",{class:t.normalizeClass(["container contracted",{open:r.open}]),onClick:a[0]||(a[0]=(..._)=>s.onClickTrigger&&s.onClickTrigger(..._))},[t.createElementVNode("div",dj,[t.createVNode(u,{size:"sm",code:r.val},null,8,["code"])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.otherLanguages,_=>(t.openBlock(),t.createElementBlock("div",{key:_.id,class:"option",onClick:g=>r.val=_.id},[t.createVNode(u,{size:"sm",code:_.id},null,8,["code"])],8,cj))),128))],2)])),[[c,s.onClickOutside]]):t.withDirectives((t.openBlock(),t.createElementBlock("div",fj,[t.createElementVNode("div",{class:t.normalizeClass(["container normal",{open:r.open}]),onClick:a[1]||(a[1]=(..._)=>s.onClickTrigger&&s.onClickTrigger(..._))},[t.createElementVNode("div",{style:t.normalizeStyle({position:"absolute",[n.position==="bottom"?"top":"bottom"]:-.125*r.unnnicFontSize+"px",width:"100%",padding:.0625*r.unnnicFontSize+"px",left:-.0625*r.unnnicFontSize+"px"}),class:"all"},[n.position==="bottom"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",_j,[t.createVNode(u,{size:"sm",code:r.val},null,8,["code"]),t.createElementVNode("div",gj,t.toDisplayString(s.languages[r.val]),1),t.createVNode(d,{size:"xs",icon:s.dropdownIcon,scheme:"fg-base"},null,8,["icon"])]),a[2]||(a[2]=t.createElementVNode("div",{class:"divider"},null,-1))],64)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.otherLanguages,_=>(t.openBlock(),t.createElementBlock("div",{key:_.id,class:"option",onClick:g=>r.val=_.id},[t.createVNode(u,{size:"sm",code:_.id},null,8,["code"]),t.createElementVNode("div",mj,t.toDisplayString(s.languages[_.id]),1)],8,hj))),128)),n.position!=="bottom"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[a[3]||(a[3]=t.createElementVNode("div",{class:"divider"},null,-1)),t.createElementVNode("div",Fj,[t.createVNode(u,{size:"sm",code:r.val},null,8,["code"]),t.createElementVNode("div",pj,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 Y1=R(lj,[["render",bj]]),yj={name:"UnnnicModal",components:{UnnnicIcon:be},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,a;return!!((a=(e=this.$slots).options)!=null&&a.call(e).length)},hasIcon(){var e,a;return!!((a=(e=this.$slots).icon)!=null&&a.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")}}},kj={ref:"modal",class:"unnnic-modal-container-background"},wj={class:"unnnic-modal-container-background-body"},Dj={key:0,class:"unnnic-modal-container-background-body-close_icon"},Cj={key:1,class:"unnnic-modal-container-background-body__icon-slot"},Ej={class:"unnnic-modal-container-background-body-title"},Aj={class:"unnnic-modal-container-background-body-description-container"},xj={class:"unnnic-modal-container-background-body-description"},Bj={key:0,class:"unnnic-modal-container-background-report"},vj={key:1,class:"unnnic-modal-container-background-button"};function jj(e,a,n,i,r,s){const u=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createBlock(t.Transition,{name:"modal"},{default:t.withCtx(()=>[n.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:a[0]||(a[0]=t.withModifiers((...d)=>s.onOutsideCloseClick&&s.onOutsideCloseClick(...d),["self"]))},[t.createElementVNode("div",kj,[t.createElementVNode("div",wj,[n.closeIcon?(t.openBlock(),t.createElementBlock("div",Dj,[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",Cj,[t.renderSlot(e.$slots,"icon",{},void 0,!0)])):t.createCommentVNode("",!0),n.modalIcon?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(["unnnic-modal-container-background-body-alert_icon",`unnnic-card-scheme--${n.scheme}--icon`,n.closeIcon?"":"unnnic-modal-container-background-body-spacing_header"])},[t.createVNode(u,{scheme:n.scheme,icon:n.modalIcon,size:"xl"},null,8,["scheme","icon"])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",Ej,t.toDisplayString(n.text),1)]),t.createElementVNode("div",Aj,[t.createElementVNode("div",xj,[t.createTextVNode(t.toDisplayString(n.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",Bj,t.toDisplayString(n.alertMessage),1)):t.createCommentVNode("",!0),s.hasButton?(t.openBlock(),t.createElementBlock("div",vj,[t.renderSlot(e.$slots,"options",{},void 0,!0)])):t.createCommentVNode("",!0)],512)])],16)):t.createCommentVNode("",!0)]),_:3})}const ul=R(yj,[["render",jj],["__scopeId","data-v-bc6e5f19"]]),Sj={components:{UnnnicIcon:be},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 a;(a=e.animationName)!=null&&a.startsWith("slideDown")&&this.emitClose()})},methods:{emitClose(){this.onClose(),this.$emit("close")}}},qj={ref:"alertContainer",class:"alert-container"},Tj={ref:"progress",class:"alert__progress"};function Ij(e,a,n,i,r,s){const u=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createElementBlock("div",qj,[t.createElementVNode("div",{class:t.normalizeClass(["alert",{"alert--scheme-aux-green":n.scheme==="feedback-green"||n.type==="success","alert--scheme-aux-red":n.scheme==="feedback-red"||n.type==="error"}])},[t.createElementVNode("div",Tj,null,512),t.withDirectives(t.createElementVNode("div",{class:"alert__text"},t.toDisplayString(n.text),513),[[t.vShow,n.text]]),t.createElementVNode("div",{class:"alert__close",onClick:a[0]||(a[0]=(...d)=>s.emitClose&&s.emitClose(...d))},[t.createVNode(u,{icon:"close-1",size:"sm",scheme:"fg-inverted"})])],2)],512)}const Nj=R(Sj,[["render",Ij],["__scopeId","data-v-fb34701b"]]),Oj=["role","aria-live"],Mj={class:"unnnic-toast__content","data-testid":"toast-content"},Pj={class:"unnnic-toast__header","data-testid":"toast-header"},Lj={class:"unnnic-toast__title","data-testid":"toast-title"},Vj={key:0,"data-testid":"toast-text",class:"unnnic-toast__text"},xo=R(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:a}){const n=e,i=a,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"}})[n.type||"informational"]),d=ir(),c=()=>{r.value=!1,i("close")},_=()=>{var F;(F=n.button)!=null&&F.action&&n.button.action()},g=()=>{n.timeout>0&&(s=window.setTimeout(()=>{c()},n.timeout))},h=()=>{s&&(window.clearTimeout(s),s=null)};return t.onMounted(()=>{r.value=!0,g()}),t.onUnmounted(()=>{h()}),(F,p)=>(t.openBlock(),t.createBlock(t.Transition,{name:"toast-slide",appear:"","data-testid":"toast-transition",onAfterLeave:p[0]||(p[0]=y=>F.$emit("destroy"))},{default:t.withCtx(()=>[r.value?(t.openBlock(),t.createElementBlock("aside",{key:0,class:t.normalizeClass(["unnnic-toast",`unnnic-toast--${F.type}`]),role:F.type==="error"?"alert":"status","aria-live":F.type==="error"?"assertive":"polite","data-testid":"toast",style:t.normalizeStyle({zIndex:t.unref(d)})},[t.createElementVNode("section",Mj,[t.createElementVNode("header",Pj,[t.createVNode(be,{icon:u.value.icon,scheme:u.value.scheme,size:"ant","data-testid":"toast-type-icon"},null,8,["icon","scheme"]),t.createElementVNode("h3",Lj,t.toDisplayString(F.title),1),t.createVNode(be,{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",Vj,t.toDisplayString(F.description),1)):t.createCommentVNode("",!0)]),F.button?(t.openBlock(),t.createBlock(bt,{key:0,type:"tertiary",text:F.button.text,class:"unnnic-toast__action-button","data-testid":"toast-action-button",onClick:_,onKeydown:[t.withKeys(_,["enter"]),t.withKeys(t.withModifiers(_,["prevent"]),["space"])]},null,8,["text","onKeydown"])):t.createCommentVNode("",!0)],14,Oj)):t.createCommentVNode("",!0)]),_:1}))}}),[["__scopeId","data-v-5445aa0d"]]),Rj={name:"UnnnicAlert",components:{UnnnicToast:xo,Version1dot1:Nj},props:{version:{type:String,default:"1.1"},text:{type:String,default:null},scheme:{type:String,default:null},onClose:{type:Function,default:()=>{}},type:{type:String,default:""}},computed:{toastType(){return this.scheme==="feedback-green"||this.type==="success"?"success":this.scheme==="feedback-red"||this.type==="error"?"error":this.type==="attention"?"attention":"informational"}}};function zj(e,a,n,i,r,s){const u=t.resolveComponent("Version1dot1"),d=t.resolveComponent("UnnnicToast");return n.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:n.text||"",type:s.toastType,onClose:a[0]||(a[0]=()=>n.onClose())},null,8,["title","type"]))}const dl=R(Rj,[["render",zj]]);class Uj{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 a=Yy()??document.body;return a==null||a.appendChild(this.container),this.container}generateId(){return`toast-${++this.nextId}`}show(a){const n=this.generateId(),i=this.createContainer(),r=document.createElement("div");let s;const u=new Promise(_=>{s=_}),d=t.createApp(xo,{...a,onClose:()=>{this.close(n)},onDestroy:()=>{d.unmount(),r.remove(),s()}});d.mount(r),i.appendChild(r);const c={id:n,props:a,close:()=>this.close(n),promise:u};return this.toasts.set(n,c),c}close(a){this.toasts.get(a)&&this.toasts.delete(a)}}const Bo=new Uj,G1={info:(e,a,n)=>Bo.show({title:e,description:a,...n,type:"informational"}).promise,success:(e,a,n)=>Bo.show({title:e,description:a,...n,type:"success"}).promise,attention:(e,a,n)=>Bo.show({title:e,description:a,...n,type:"attention"}).promise,error:(e,a,n)=>Bo.show({title:e,description:a,...n,type:"error"}).promise};function Hj(e){return{all:e=e||new Map,on:function(a,n){var i=e.get(a);i?i.push(n):e.set(a,[n])},off:function(a,n){var i=e.get(a);i&&(n?i.splice(i.indexOf(n)>>>0,1):e.set(a,[]))},emit:function(a,n){var i=e.get(a);i&&i.slice().map(function(r){r(n)}),(i=e.get("*"))&&i.slice().map(function(r){r(a,n)})}}}const W1=Hj(),$1=({props:e,containerRef:a,seconds:n})=>{if(e.version==="1.1"||a){const i=t.createApp(dl,{...e,seconds:n,version:"1.1",onClose:()=>{s.$el.remove()},created(){W1.on(["close"],()=>{s.$el.remove()})}}),r=document.createElement("div"),s=i.mount(r);a?(s.$el.style.position="absolute",a.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:n?n*1e3:5e3,type:i[e.scheme||e.type]||i.default,onClose:()=>{W1.emit(["close"])}};Bo.show({title:e.text,description:"",...r})}},Q1=({props:e})=>{const a=t.createApp(ul,{...e,onClose:()=>{i.$el.remove()},created(){W1.on(["close"],()=>{i.$el.remove()})}}),n=document.createElement("div"),i=a.mount(n);document.body.appendChild(n)},Yj={name:"UnnnicSelectSmartOption",components:{UnnnicCheckbox:Er},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:Zn}},Gj=["title"];function Wj(e,a,n,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":n.focused,"unnnic-select-smart-option--active":n.active,"unnnic-select-smart-option--active-secondary":n.active&&n.activeColor==="secondary","unnnic--clickable":n.selectable,"unnnic-select-smart-option--selectable":n.selectable,"unnnic-select-smart-option--with-checkbox":n.allowCheckbox}),title:n.label,"data-testid":"select-smart-option"},[n.allowCheckbox?(t.openBlock(),t.createBlock(u,{key:0,ref:"checkbox","data-testid":"checkbox",modelValue:n.active,size:n.size,disabled:n.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--${n.size}`]),"data-testid":"label"},t.toDisplayString(s.fullySanitize(n.label)),3),n.description?(t.openBlock(),t.createElementBlock("p",{key:0,"data-testid":"description",class:t.normalizeClass(["unnnic-select-smart-option__description",`unnnic-select-smart-option__description--${n.size}`])},t.toDisplayString(s.fullySanitize(n.description)),3)):t.createCommentVNode("",!0)])],10,Gj)}const $j=R(Yj,[["render",Wj]]),Qj={name:"UnnnicSelectSmartMultipleHeader",components:{Tag:Ao},mixins:[Ja],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:a}=this,n=[];for(let i=0;i<a;i+=1)n.push(e==null?void 0:e[i]);return n.filter(i=>i!==void 0)}},methods:{unselectOption(e){this.$emit("unselect-option",e)}}},Kj={class:"unnnic-select-smart__options__multiple"},Xj={key:0,class:"unnnic-select-smart__options__multiple__selecteds__container"},Zj={class:"unnnic-select-smart__options__multiple__selecteds"},Jj={key:0,class:"unnnic-select-smart__options__multiple__selecteds__remaining","data-testid":"remaining-count"},eS={key:1,class:"unnnic-select-smart__options__multiple--without-multiples","data-testid":"without-selects-message"};function tS(e,a,n,i,r,s){const u=t.resolveComponent("Tag");return t.openBlock(),t.createElementBlock("div",Kj,[n.selectedOptions[0]?(t.openBlock(),t.createElementBlock("div",Xj,[t.createElementVNode("div",Zj,[(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)),n.selectedOptions.length>r.multipleSelectedsTags?(t.openBlock(),t.createElementBlock("p",Jj," +"+t.toDisplayString(n.selectedOptions.length-r.multipleSelectedsTags),1)):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0),n.selectedOptions[0]?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("p",eS,t.toDisplayString(n.withoutSelectsMessage||e.i18n("without_multiple_selected")),1))])}const aS=R(Qj,[["render",tS],["__scopeId","data-v-4310b808"]]),nS={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,a;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")?(a=this.x+this.width,a+this.data.width>this.clientWidth&&(a=this.clientWidth-this.data.width,this.x>=this.data.width&&(a=this.x-this.data.width))):this.position.endsWith("left")&&(a=this.x-this.data.width,a<0&&(a=0,this.x+this.width+this.data.width<=this.clientWidth&&(a=this.x+this.width))),{left:`${a}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(),a=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=a.x,this.data.y=a.y,this.data.width=a.width,this.data.height=a.height}}};function iS(e,a,n,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:n.useAbsolutePosition?"absolute":"fixed",...s.positions})},[t.renderSlot(e.$slots,"inside",{width:`${r.width}px`,height:`${r.height}px`},void 0,!0)],4)],2)}const Wm=R(nS,[["render",iS],["__scopeId","data-v-05c4ead6"]]),rS={name:"UnnnicSelectSmart",components:{TextInput:h0,SelectSmartOption:$j,SelectSmartMultipleHeader:aS,DropdownSkeleton:Wm,UnnnicIconLoading:Ii},directives:{onClickOutside:ol},mixins:[Ja],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 n;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(", "):((n=this.modelValue.at(-1))==null?void 0:n.label)||""},hasDescriptionOptions(){return this.options.some(e=>typeof e.description<"u")},autocompletePlaceholder(){if(this.isAutocompleteAllowed){const e=this.options.find(a=>a.value==="");if(e)return e.label}return""},inputValue(){const{isAutocompleteAllowed:e,searchValue:a,multiple:n,modelValue:i}=this;return e||n?a:!n&&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 a=this.getOptionIndex("active");a!==-1&&this.scrollToOption(a,"center")}e&&this.infiniteScroll&&this.setupInfiniteScroll()})},searchValue(e,a){this.focusedOption=null,!this.active&&a&&(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,a,n,i,r;this.status="mounted",(this.multiple||this.autocomplete)&&(this.isAutocompleteAllowed=!0),(e=this.modelValue)!=null&&e[0]&&((a=this.modelValue)!=null&&a[0].value)?this.isAutocompleteAllowed&&this.$nextTick(()=>{this.searchValue=this.selectedLabel}):this.selectFirst&&((n=this.options)!=null&&n[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:a}=cs(e,()=>{this.infiniteScrollLoading||(this.infiniteScrollLoading=!0,this.$emit("scroll-end"))},{distance:this.infiniteScrollDistance,canLoadMore:()=>this.infiniteScrollCanLoadMore()&&!this.infiniteScrollLoading});this.infiniteScrollReset=a})},finishInfiniteScroll(){this.infiniteScrollLoading=!1},resetInfiniteScroll(){this.infiniteScrollLoading=!1,this.infiniteScrollReset&&this.infiniteScrollReset()},optionIsSelected(e){return this.modelValue.some(a=>a.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 n=this.searchValue.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").split(" "),i=d=>d.toString().toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,""),r=d=>{var c;return parseInt((c=d.match(/\d+/))==null?void 0:c[0],10)||0},s=e.filter(({value:d,label:c},_,g)=>{const h=i(c),F=g.findIndex(y=>y.value===d)===_,p=n.every(y=>{const w=h.includes(y),C=d.includes(y);return this.enableSearchByValue?w||C:w});return F&&p&&d});return this.orderedByIndex?s:s.sort((d,c)=>{const _=i(d.label),g=i(c.label),h=r(_),F=r(g);return h-F||_.localeCompare(g)})},onClickOutside(){this.active&&(this.isAutocompleteAllowed&&(this.searchValue=this.selectedLabel),this.$nextTick(()=>{this.active=!1}))},getOptionIndex(e){var i,r,s,u;const a=this.filterOptions(this.options);let n="";return e==="active"&&(n=(r=(i=this.modelValue)==null?void 0:i[0])==null?void 0:r.value),e==="focused"&&(n=((s=this.focusedOption)==null?void 0:s.value)||((u=this.modelValue.at(-1))==null?void 0:u.value)),a.findIndex(d=>d.value===n)},scrollToOption(e,a="nearest"){const n=this.$refs.selectSmartOptionsScrollArea;if(n&&e>=0&&e<n.childNodes.length){const i=n.childNodes[e];i instanceof HTMLElement&&(i==null||i.scrollIntoView({block:a}))}},selectOption(e){const a=e.value===null||e.value.length===0?null:e;this.$emit("update:modelValue",this.multiple?[...this.modelValue,a]:[a])},unselectOption(e){const a=this.modelValue.findIndex(n=>n.value===e.value);if(a!==-1){const n=this.modelValue;n.splice(a,1),this.$emit("update:modelValue",n)}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:a}=e;if(["Escape","Enter","ArrowUp","ArrowDown"].includes(a)){e.preventDefault();const i=this.filterOptions(this.options),r=this.getOptionIndex("focused");let s;switch(a){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=a==="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}}}},oS={style:{overflow:"auto"}},sS={key:0,class:"unnnic-select-smart__options-infinite-loading"},lS={key:1,class:"unnnic-select-smart__options--no-results"};function uS(e,a,n,i,r,s){const u=t.resolveComponent("TextInput"),d=t.resolveComponent("SelectSmartMultipleHeader"),c=t.resolveComponent("UnnnicIconLoading"),_=t.resolveComponent("SelectSmartOption"),g=t.resolveComponent("DropdownSkeleton"),h=t.resolveDirective("on-click-outside");return t.withDirectives((t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["unnnic-select-smart",{"unnnic-select-smart--secondary":n.type==="secondary"}]),"data-testid":"select-smart",onKeydown:a[1]||(a[1]=(...F)=>s.onKeyDownSelect&&s.onKeyDownSelect(...F))},[t.createVNode(g,{ref:"dropdown-skeleton",type:"manual",modelValue:r.active||null,position:"bottom"},{inside:t.withCtx(F=>[r.active?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle({width:F.width}),class:t.normalizeClass({"unnnic-select-smart__options":!0,active:r.active,inactive:!r.active}),"data-testid":"options-container"},[t.createElementVNode("div",oS,[n.multiple?(t.openBlock(),t.createBlock(d,{key:0,selectedOptions:n.modelValue,withoutSelectsMessage:n.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-${n.size}`,{"with-descriptions":s.hasDescriptionOptions,"with-checkboxes":!!n.multiple}])},[n.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(n.options),(p,y)=>(t.openBlock(),t.createBlock(_,{key:p.value,"data-testid":"option",label:p.label,description:p.description,tabindex:y,size:n.size,active:p.value===n.modelValue||s.optionIsSelected(p),disabled:s.optionIsSelected(p)&&p.disableRemove,focused:r.focusedOption&&r.focusedOption.value===p.value,allowCheckbox:!!n.multiple,activeColor:n.type==="secondary"?"secondary":"primary",onClick:w=>s.handleSelect(p)},null,8,["label","description","tabindex","size","active","disabled","focused","allowCheckbox","activeColor","onClick"]))),128)),n.infiniteScroll&&r.infiniteScrollLoading?(t.openBlock(),t.createElementBlock("div",sS,[t.createVNode(c,{scheme:"fg-base",size:"sm"})])):t.createCommentVNode("",!0),s.filterOptions(n.options).length===0?(t.openBlock(),t.createElementBlock("p",lS,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":n.type==="secondary"}]),"data-testid":"select-smart-input",modelValue:s.inputValue,placeholder:n.placeholder||s.autocompletePlaceholder||s.selectedLabel,type:n.type,size:n.size,disabled:n.disabled,readonly:!r.isAutocompleteAllowed,iconLeft:r.isAutocompleteAllowed&&n.autocompleteIconLeft?"search-1":"",iconRight:r.active?"keyboard_arrow_up":"keyboard_arrow_down",iconRightSize:"ant",onClick:t.withModifiers(s.handleClickInput,["stop"]),"onUpdate:modelValue":a[0]||(a[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=R(rS,[["render",uS]]);function $m(e,a,n,i){const r=t.ref(!1),{width:s}=ey(n),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(y=>{const w=String(y[e.itemLabel]??"").toLowerCase().includes(F),C=String(y[e.itemValue]??"").toLowerCase().includes(F);return w||C})});function c(h){const{optionsLength:F,optionsLines:p,enableSearch:y,variant:w}=h;if(F===0)return"unset";if(w==="single"){const j=37*p,I=y?1:2,P=j+32+(4*p-I);return`${y?P+45+1:P}px`}const C=y?16:0,k=22*p+(24*p-2);return`${y?k+51+C:k}px`}const _=t.computed(()=>{var h;return c({optionsLength:((h=e.options)==null?void 0:h.length)??0,optionsLines:e.optionsLines,enableSearch:e.enableSearch,variant:a})}),g=t.computed(()=>{var p;const h=((p=d.value)==null?void 0:p.length)===0,F=_.value;return{overflow:"auto",display:"flex",flexDirection:"column",minHeight:F,maxHeight:h?"unset":F,height:h?F:"unset"}});return{openPopover:r,triggerRef:n,contentRef:i,inputWidthString:u,calculatedPopoverHeight:_,popoverContentCustomStyles:g,filteredOptions:d}}const dS="data-option-index";function Qm(e,a,n){const{closeOnSelect:i=!0,closePopover:r,openPopoverRef:s}=n,u=t.ref(-1);function d(p,y="smooth",w="center"){t.nextTick(()=>{var v;const C=document.querySelector(`[${dS}="${p}"]`);(v=C==null?void 0:C.scrollIntoView)==null||v.call(C,{behavior:y,block:w})})}function c(p){if(!["ArrowUp","ArrowDown","Enter"].includes(p.key))return;p.preventDefault();const w=e();if(p.key==="ArrowUp"){if(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 C=w[u.value];if(C!=null&&C.disabled)return;a(C),i&&r()}}function _(p){s.value&&c(p)}function g(){document.addEventListener("keydown",_)}function h(){document.removeEventListener("keydown",_)}function F(){t.watch(s,p=>{p?t.nextTick(g):h()}),t.onBeforeUnmount(h)}return{focusedOptionIndex:u,scrollToOption:d,handleKeyDown:c,setupKeydownBinding:F}}const cS={class:"unnnic-select"},fS={key:0,class:"unnnic-select__trigger-label"},_S={class:"unnnic-select__trigger-content"},gS={key:1,class:"unnnic-select__content-no-results"},hS={key:0,class:"unnnic-select__infinite-loading"},X1=R(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:a,emit:n}){const i=e,r=n,s=t.useSlots(),u=t.computed(()=>!!s.selected),d=t.useTemplateRef("selectInputRef"),c=t.useTemplateRef("contentRef"),_=$m(i,"single",d,c),g=_.openPopover,h=_.popoverContentCustomStyles,F=_.inputWidthString,p=_.filteredOptions;function y(ee){_.openPopover.value=ee}const w=t.computed(()=>i.returnObject?i.modelValue==null||i.modelValue===""?void 0:i.modelValue:i.options.find(ee=>ee[i.itemValue]===i.modelValue)),C=t.computed(()=>{var ee;return(ee=w.value)==null?void 0:ee[i.itemLabel]});function v(ee){var $;ee[i.itemValue]===(($=w.value)==null?void 0:$[i.itemValue])||ee.disabled||(r("update:modelValue",i.returnObject?ee:ee[i.itemValue]),_.openPopover.value=!1)}const x=Qm(()=>_.filteredOptions.value,v,{closeOnSelect:!0,closePopover:()=>_.openPopover.value=!1,openPopoverRef:_.openPopover});x.setupKeydownBinding();const k=x.focusedOptionIndex,A=t.ref(!1);function N(ee){return!i.infiniteScroll||!_.openPopover.value||A.value||!i.infiniteScrollCanLoadMore()||!ee||typeof ee!="object"||!("clientHeight"in ee)?!1:ee.clientHeight>0}const j=t.computed(()=>{var ee;return((ee=c.value)==null?void 0:ee.closest(".unnnic-popover"))??c.value}),{reset:I}=cs(j,()=>{A.value||(A.value=!0,r("scroll-end"))},{distance:i.infiniteScrollDistance,canLoadMore:N});t.watch(_.openPopover,ee=>{if(!ee){W(""),A.value=!1;return}if(x.focusedOptionIndex.value=-1,i.modelValue){const $=i.options.findIndex(ce=>{var ye;return ce[i.itemValue]===((ye=w.value)==null?void 0:ye[i.itemValue])});x.scrollToOption($,"instant","center")}i.infiniteScroll&&t.nextTick(()=>I())});function P(){A.value=!1,_.openPopover.value&&i.infiniteScroll&&t.nextTick(()=>I())}function M(){A.value=!1,t.nextTick(()=>I())}function W(ee){r("update:search",ee)}return a({openPopover:g,setOpenPopover:y,filteredOptions:p,calculatedPopoverHeight:_.calculatedPopoverHeight,selectedItem:w,inputValue:C,infiniteScrollLoading:A,finishInfiniteScroll:P,resetInfiniteScroll:M}),(ee,$)=>(t.openBlock(),t.createElementBlock("div",cS,[t.createVNode(t.unref(wr),{open:t.unref(g),"onUpdate:open":y},{default:t.withCtx(()=>[t.createVNode(t.unref(Cr),{class:"w-full"},{default:t.withCtx(()=>[u.value&&w.value?(t.openBlock(),t.createElementBlock("section",{key:0,ref_key:"selectInputRef",ref:d,class:"unnnic-select__trigger-wrapper"},[i.label?(t.openBlock(),t.createElementBlock("span",fS,t.toDisplayString(i.label),1)):t.createCommentVNode("",!0),t.createElementVNode("section",{class:t.normalizeClass(["unnnic-select__trigger",`unnnic-select__trigger--${i.size}`,{"unnnic-select__trigger--focused":t.unref(g),"unnnic-select__trigger--disabled":i.disabled}])},[t.createElementVNode("section",_S,[t.renderSlot(ee.$slots,"selected",{option:w.value,label:C.value},void 0,!0)]),i.clearable&&!i.disabled?(t.openBlock(),t.createBlock(be,{key:0,class:"unnnic-select__trigger-clear",icon:"close",size:"ant",scheme:"fg-base",clickable:"",onClick:$[0]||($[0]=t.withModifiers(ce=>r("update:modelValue",""),["stop"]))})):t.createCommentVNode("",!0),t.createVNode(be,{class:"unnnic-select__trigger-arrow",icon:t.unref(g)?"keyboard_arrow_up":"keyboard_arrow_down",size:"ant",scheme:"fg-base"},null,8,["icon"])],2)],512)):(t.openBlock(),t.createBlock(_n,{key:1,ref_key:"selectInputRef",ref:d,modelValue:C.value,class:"unnnic-select__input",readonly:"",useFocusProp:"",focus:t.unref(g),size:i.size,placeholder:i.placeholder,label:i.label,errors:i.errors,message:i.message,iconRight:t.unref(g)?"keyboard_arrow_up":"keyboard_arrow_down",disabled:i.disabled,showClear:!!w.value&&i.clearable,onClear:$[1]||($[1]=ce=>r("update:modelValue",""))},null,8,["modelValue","focus","size","placeholder","label","errors","message","iconRight","disabled","showClear"]))]),_:3}),t.createVNode(t.unref(Dr),{align:"start",class:t.normalizeClass("h-full"),style:t.normalizeStyle(t.unref(h)),width:t.unref(F)},{default:t.withCtx(()=>[t.createElementVNode("div",{ref_key:"contentRef",ref:c,class:"unnnic-select__content"},[i.enableSearch?(t.openBlock(),t.createBlock(_n,{key:0,class:"unnnic-select__input-search",modelValue:i.search,placeholder:ee.$t("search"),iconLeft:"search","onUpdate:modelValue":W},null,8,["modelValue","placeholder"])):t.createCommentVNode("",!0),t.unref(p).length===0?(t.openBlock(),t.createElementBlock("p",gS,t.toDisplayString(ee.$t("without_results")),1)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(p),(ce,ye)=>{var ke;return t.openBlock(),t.createBlock(t.unref(nl),{key:ce[i.itemValue],"data-option-index":ye,"data-testid":"select-option",label:ce[i.itemLabel],active:ce[i.itemValue]===((ke=w.value)==null?void 0:ke[i.itemValue]),focused:t.unref(k)===ye,disabled:ce.disabled,onClick:ie=>v(ce)},t.createSlots({_:2},[ee.$slots.option?{name:"default",fn:t.withCtx(()=>{var ie;return[t.renderSlot(ee.$slots,"option",{option:ce,label:ce[i.itemLabel],active:ce[i.itemValue]===((ie=w.value)==null?void 0:ie[i.itemValue]),focused:t.unref(k)===ye,index:ye},void 0,!0)]}),key:"0"}:void 0]),1032,["data-option-index","label","active","focused","disabled","onClick"])}),128)),i.infiniteScroll&&A.value?(t.openBlock(),t.createElementBlock("div",hS,[t.createVNode(Ii,{scheme:"fg-base",size:"sm"})])):t.createCommentVNode("",!0)],64))],512)]),_:3},8,["style","width"])]),_:3},8,["open"])]))}}),[["__scopeId","data-v-31008d10"]]),Z1=t.defineComponent({name:"UnnicSelectItem",__name:"SelectItem",props:{size:{default:""},selectable:{type:Boolean,default:!0},active:{type:Boolean,default:!1},textFocused:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:a}){const n=a;return(i,r)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass({"unnnic-select-item":!0,"unnnic-select-item__active":i.active,"unnnic--clickable":i.selectable,"unnnic-select-item--selectable":i.selectable,"text-focused":i.textFocused}),onClick:r[0]||(r[0]=s=>n("click"))},[t.createElementVNode("span",{class:t.normalizeClass(["unnnic-select-item__label",`unnnic-select-item__label--${i.size}`])},[t.renderSlot(i.$slots,"default")],2)],2))}}),mS={class:t.normalizeClass(["unnnic-multi-select-option"])},FS=R(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:a}){const n=a,i=e;return(r,s)=>(t.openBlock(),t.createElementBlock("div",mS,[t.createVNode(Er,{modelValue:i.active,disabled:i.disabled,label:i.label,"onUpdate:modelValue":s[0]||(s[0]=u=>n("update:modelValue",!i.active))},null,8,["modelValue","disabled","label"])]))}}),[["__scopeId","data-v-872f231b"]]),pS={class:"unnnic-multi-select"},bS={key:1,class:"unnnic-multi-select__content-no-results"},yS={class:"unnnic-multi-select__options"},kS={key:0,class:"unnnic-multi-select__infinite-loading"},J1=R(t.defineComponent({name:"UnnnicMultiSelect",__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:a,emit:n}){const i=e,r=n,s=t.useTemplateRef("multiSelectInputRef"),u=t.useTemplateRef("contentRef"),d=$m(i,"multi",s,u),c=d.openPopover,_=d.popoverContentCustomStyles,g=d.inputWidthString,h=d.filteredOptions;function F(W){d.openPopover.value=W}const p=t.computed(()=>{if(i.returnObject)return i.modelValue;const W=i.modelValue.slice();return i.options.filter(ee=>W.includes(ee[i.itemValue]))}),y=t.computed(()=>p.value.map(W=>W[i.itemLabel]).join(", "));function w(W){r("update:search",W)}function C(W){return i.returnObject?i.modelValue.some(ee=>ee[i.itemValue]===W[i.itemValue]):i.modelValue.includes(W[i.itemValue])}function v(W,ee){if(ee){const $=i.returnObject?[...i.modelValue,W]:[...i.modelValue,W[i.itemValue]];r("update:modelValue",$)}else{const $=i.returnObject?i.modelValue.filter(ce=>ce[i.itemValue]!==W[i.itemValue]):i.modelValue.filter(ce=>ce!==W[i.itemValue]);r("update:modelValue",$)}}const x=Qm(()=>d.filteredOptions.value,W=>{if(W.disabled)return;const ee=C(W);v(W,!ee)},{closeOnSelect:!1,closePopover:()=>F(!1),openPopoverRef:d.openPopover});x.setupKeydownBinding();const k=x.focusedOptionIndex,A=t.ref(!1);function N(W){return!i.infiniteScroll||!d.openPopover.value||A.value||!i.infiniteScrollCanLoadMore()||!W||typeof W!="object"||!("clientHeight"in W)?!1:W.clientHeight>0}const j=t.computed(()=>{var W;return((W=u.value)==null?void 0:W.closest(".unnnic-popover"))??u.value}),{reset:I}=cs(j,()=>{A.value||(A.value=!0,r("scroll-end"))},{distance:i.infiniteScrollDistance,canLoadMore:N});t.watch(d.openPopover,W=>{if(!W){w(""),A.value=!1;return}x.focusedOptionIndex.value=-1,i.infiniteScroll&&t.nextTick(()=>I())});function P(){A.value=!1,d.openPopover.value&&i.infiniteScroll&&t.nextTick(()=>I())}function M(){A.value=!1,t.nextTick(()=>I())}return a({openPopover:c,setOpenPopover:F,filteredOptions:h,calculatedPopoverHeight:d.calculatedPopoverHeight,selectedItems:p,inputValue:y,infiniteScrollLoading:A,finishInfiniteScroll:P,resetInfiniteScroll:M}),(W,ee)=>(t.openBlock(),t.createElementBlock("div",pS,[t.createVNode(t.unref(wr),{open:t.unref(c),"onUpdate:open":F},{default:t.withCtx(()=>[t.createVNode(t.unref(Cr),{class:"w-full"},{default:t.withCtx(()=>[t.createVNode(_n,{ref_key:"multiSelectInputRef",ref:s,modelValue:y.value,class:"unnnic-multi-select__input",readonly:"",useFocusProp:"",focus:t.unref(c),size:i.size,placeholder:i.placeholder,label:i.label,errors:i.errors,message:i.message,iconRight:t.unref(c)?"keyboard_arrow_up":"keyboard_arrow_down",disabled:i.disabled,showClear:!!p.value.length&&i.clearable,onClear:ee[0]||(ee[0]=$=>r("update:modelValue",[]))},null,8,["modelValue","focus","size","placeholder","label","errors","message","iconRight","disabled","showClear"])]),_:1}),t.createVNode(t.unref(Dr),{align:"start",class:"h-full",style:t.normalizeStyle(t.unref(_)),width:t.unref(g)},{default:t.withCtx(()=>[t.createElementVNode("div",{ref_key:"contentRef",ref:u,class:"unnnic-multi-select__content"},[i.enableSearch?(t.openBlock(),t.createBlock(_n,{key:0,class:"unnnic-multi-select__input-search",modelValue:i.search,placeholder:W.$t("search"),iconLeft:"search","onUpdate:modelValue":w},null,8,["modelValue","placeholder"])):t.createCommentVNode("",!0),t.unref(h).length===0?(t.openBlock(),t.createElementBlock("p",bS,t.toDisplayString(W.$t("without_results")),1)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createElementVNode("div",yS,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(h),($,ce)=>(t.openBlock(),t.createBlock(FS,{key:String($[i.itemValue]),"data-option-index":ce,label:String($[i.itemLabel]??""),active:C($),focused:t.unref(k)===ce,disabled:$.disabled,"onUpdate:modelValue":ye=>v($,ye)},null,8,["data-option-index","label","active","focused","disabled","onUpdate:modelValue"]))),128))]),i.infiniteScroll&&A.value?(t.openBlock(),t.createElementBlock("div",kS,[t.createVNode(Ii,{scheme:"fg-base",size:"sm"})])):t.createCommentVNode("",!0)],64))],512)]),_:1},8,["style","width"])]),_:1},8,["open"])]))}}),[["__scopeId","data-v-866091db"]]),wS={components:{UnnnicIcon:be},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)}},DS={class:"header"},CS={class:"actions"};function ES(e,a,n,i,r,s){const u=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createElementBlock("div",{class:"unnnic-accordion",onClick:a[0]||(a[0]=d=>e.$emit("update:open",!n.open))},[t.createElementVNode("div",DS,[t.createVNode(u,{icon:n.open?"subtract-circle-1":"add-circle-1",scheme:"fg-base",size:"md"},null,8,["icon"]),t.createElementVNode("div",{class:t.normalizeClass(["title",{open:n.open}])},t.toDisplayString(n.title),3),t.withDirectives(t.createElementVNode("div",CS,[t.renderSlot(e.$slots,"actions",{},void 0,!0)],512),[[t.vShow,n.open]])]),t.createElementVNode("div",{ref:"content",class:t.normalizeClass(["content",{open:n.open}]),style:t.normalizeStyle({height:r.height})},[t.renderSlot(e.$slots,"default",{},void 0,!0)],6)])}const ed=R(wS,[["render",ES],["__scopeId","data-v-0943a5ba"]]),AS={"--skeleton-bg":"var(--unnnic-color-bg-muted)","--skeleton-highlight":"var(--unnnic-color-bg-base-soft)","--skeleton-duration":"2s"},td=t.defineComponent({name:"UnnnicSkeletonLoading",__name:"SkeletonLoading",props:{prefix:{default:"unnnic"},count:{default:1},duration:{default:2},tag:{default:"span"},width:{default:void 0},height:{default:void 0},circle:{type:Boolean,default:!1},loading:{type:Boolean,default:void 0},direct:{type:Boolean,default:!1}},setup(e){const a=e,n=t.useSlots(),i=t.inject("_themeStyle",t.ref({...AS})),r=t.computed(()=>[`${a.prefix}-skeleton`,a.circle?`${a.prefix}-skeleton--circle`:""]),s=t.computed(()=>{const _={};return _["--skeleton-bg"]=i.value["--skeleton-bg"],_["--skeleton-highlight"]=i.value["--skeleton-highlight"],_["--skeleton-duration"]=a.duration?`${a.duration}s`:"0s",a.width&&(_.width=a.width),a.height&&(_.height=a.height),_}),u=t.computed(()=>Array.from({length:a.count},()=>({})));function d(_){if(!_)return!0;const[g]=_();let h=g==null?void 0:g.children;return h&&(h=h.replace(/(\n|\r\n|\s)/g,"")),!h}const c=t.computed(()=>typeof a.loading<"u"?a.loading:d(n.default));return(_,g)=>_.direct?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(_.tag),{key:0,class:t.normalizeClass(r.value),style:t.normalizeStyle(s.value)},null,8,["class","style"])):c.value?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(_.tag),{key:1},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.value,(h,F)=>(t.openBlock(),t.createElementBlock("span",{key:F,class:t.normalizeClass(r.value),style:t.normalizeStyle(s.value)}," ‌ ",6))),128))]),_:1})):t.createCommentVNode("",!0)}}),xS={components:{UnnnicIcon:be,UnnnicToolTip:la},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(a=>typeof a=="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 n,i;const a=this.$slots[this.tabHeadTooltipSlotName(e)];return a?(i=(n=a())==null?void 0:n[0])==null?void 0:i.children:""},change(e){var a;(a=this.disabledTabs)!=null&&a.includes(e)||(this.localValue=e,this.$emit("change",this.localValue))}}},BS={class:"tab-header"},vS={class:"tab-content"},jS=["onClick"],SS={class:"tab-body"},qS={class:"tab-panel"};function TS(e,a,n,i,r,s){const u=t.resolveComponent("UnnnicIcon"),d=t.resolveComponent("UnnnicToolTip");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["tab",`size-${n.size}`])},[t.createElementVNode("header",BS,[t.createElementVNode("ul",vS,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.tabs,c=>{var _;return t.openBlock(),t.createElementBlock("li",{key:c,class:t.normalizeClass(["tab-head",{"tab-head--active":r.localValue===c,"tab-head--disabled":(_=n.disabledTabs)==null?void 0:_.includes(c)}]),onClick:g=>s.change(c)},[t.renderSlot(e.$slots,s.tabHeadSlotName(c),{},()=>[t.createTextVNode(t.toDisplayString(c),1)],!0),s.getHeadTooltip(c)?(t.openBlock(),t.createBlock(d,{key:0,enabled:"",text:s.getHeadTooltip(c),side:"bottom"},{default:t.withCtx(()=>[t.createVNode(u,{icon:"help",size:n.size==="sm"?"xs":"sm",scheme:"fg-base"},null,8,["size"])]),_:2},1032,["text"])):t.createCommentVNode("",!0)],10,jS)}),128))])]),t.createElementVNode("main",SS,[t.createElementVNode("div",qS,[t.renderSlot(e.$slots,s.tabPanelSlotName,{},void 0,!0)])])],2)}const ad=R(xS,[["render",TS],["__scopeId","data-v-2860998c"]]),IS={components:{UnnnicIcon:be},props:{modelValue:{type:[String,Number],required:!0},items:{type:Array,required:!0}},emits:["back","update:model-value","close-tab","add"]},NS={class:"unnnic-tabs-expanded"},OS=["onClick"],MS={"data-testid":"tab-description",class:"u font secondary body-sm color-fg-base"},PS={key:0,class:"close-container"};function LS(e,a,n,i,r,s){const u=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createElementBlock("div",NS,[t.createElementVNode("div",{class:"back-container","data-testid":"back",onClick:a[0]||(a[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(n.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===n.modelValue?"color-brand-weni-soft":"color-fg-base"]),"data-testid":"tab-title"},t.toDisplayString(d.title),3),t.createElementVNode("div",MS,t.toDisplayString(d.description),1)]),d.value===n.modelValue?(t.openBlock(),t.createElementBlock("div",PS,[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,OS))),128)),t.createElementVNode("div",{class:"add-container","data-testid":"tab-add",onClick:a[1]||(a[1]=d=>e.$emit("add"))},[t.createVNode(u,{icon:"add-1",scheme:"fg-base",size:"sm"})])])}const nd=R(IS,[["render",LS],["__scopeId","data-v-a72bb16c"]]),VS={name:"UnnnicBanner",components:{UnnnicIcon:be},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}}},RS={class:"unnnic-banner-info"},zS={class:"unnnic-banner-info__section"},US={class:"unnnic-banner-info__title"},HS={class:"unnnic-banner-info__description"},YS={class:"unnnic-banner-info__section"},GS={class:"unnnic-banner-info__title"},WS={class:"unnnic-banner-info__description"},$S={class:"unnnic-banner-info__subtitle"},QS={class:"unnnic-banner-info__section"},KS={class:"unnnic-banner-info__title"},XS={class:"unnnic-banner-info__description"},ZS={class:"unnnic-banner-info__rating"};function JS(e,a,n,i,r,s){const u=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createElementBlock("div",RS,[t.createElementVNode("section",zS,[t.createElementVNode("div",US,t.toDisplayString(n.firstTitle),1),t.createElementVNode("div",HS,t.toDisplayString(n.firstDescription),1)]),a[0]||(a[0]=t.createElementVNode("div",{class:"unnnic-banner-info__divider"},null,-1)),t.createElementVNode("section",YS,[t.createElementVNode("div",GS,t.toDisplayString(n.secondTitle),1),t.createElementVNode("div",WS,t.toDisplayString(n.secondDescription),1),t.createElementVNode("div",$S,t.toDisplayString(n.subtitle),1)]),a[1]||(a[1]=t.createElementVNode("div",{class:"unnnic-banner-info__divider"},null,-1)),t.createElementVNode("section",QS,[t.createElementVNode("div",KS,t.toDisplayString(n.thirdTitle),1),t.createElementVNode("div",XS,t.toDisplayString(n.thirdDescription),1),t.createElementVNode("div",ZS,[(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 Km=R(VS,[["render",JS]]),eq={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",Km}},methods:{emitRatingAction(e){this.$emit("ratingAction",e)}}};function tq(e,a,n,i,r,s){return t.openBlock(),t.createBlock(t.resolveDynamicComponent(s.currentComponent),t.mergeProps({class:"unnnic-banner-component"},e.$attrs,{firstTitle:n.firstTitle,secondTitle:n.secondTitle,thirdTitle:n.thirdTitle,firstDescription:n.firstDescription,secondDescription:n.secondDescription,thirdDescription:n.thirdDescription,subtitle:n.subtitle,rating:n.rating}),null,16,["firstTitle","secondTitle","thirdTitle","firstDescription","secondDescription","thirdDescription","subtitle","rating"])}const id=R(eq,[["render",tq]]),aq={name:"UnnnicComment",components:{},props:{title:{type:String,default:null},time:{type:String,default:null},text:{type:String,default:null}}},nq={class:"unnnic-comment"},iq={class:"unnnic-comment__avatar"},rq={class:"unnnic-comment__content"},oq={class:"unnnic-comment__content__header"},sq={class:"unnnic-comment__content__header__title"},lq={class:"unnnic-comment__content__header__time"},uq={class:"unnnic-comment__content__header__actions"},dq={class:"unnnic-comment__content__text"};function cq(e,a,n,i,r,s){return t.openBlock(),t.createElementBlock("div",nq,[t.createElementVNode("div",iq,[t.renderSlot(e.$slots,"avatar",{},void 0,!0)]),t.createElementVNode("div",rq,[t.createElementVNode("div",oq,[t.createElementVNode("div",sq,t.toDisplayString(n.title),1),t.createElementVNode("div",lq,t.toDisplayString(n.time),1),t.createElementVNode("div",uq,[t.renderSlot(e.$slots,"actions",{},void 0,!0)])]),t.createElementVNode("div",dq,t.toDisplayString(n.text),1)])])}const rd=R(aq,[["render",cq],["__scopeId","data-v-5925e703"]]),fq={class:"unnnic-breadcrumb"},_q=["data-test","onClick"],od=R(t.defineComponent({name:"UnnnicBreadcrumb",__name:"Breadcrumb",props:{crumbs:{default:null}},emits:["crumb-click"],setup(e,{emit:a}){const n=a;return(i,r)=>(t.openBlock(),t.createElementBlock("div",fq,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.crumbs,(s,u)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:s.name},[t.createElementVNode("div",{class:t.normalizeClass({"unnnic-breadcrumb__container__link":!0,"unnnic-breadcrumb__container__link__active":u===i.crumbs.length-1}),"data-test":s.name,onClick:d=>n("crumb-click",s)},t.toDisplayString(s.name),11,_q),u!==i.crumbs.length-1?(t.openBlock(),t.createBlock(be,{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))]))}}),[["__scopeId","data-v-13c72b4a"]]),gq={class:"unnnic-switch"},hq=["disabled","checked"],mq={key:1,class:"unnnic-switch__helper"},sd=R(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:a}){const n=e,i=a,r=t.ref(n.modelValue);t.watch(()=>n.modelValue,u=>{u!==r.value&&(r.value=u)},{immediate:!0});function s(){n.disabled||(r.value=!r.value,i("update:model-value",r.value))}return(u,d)=>(t.openBlock(),t.createElementBlock("section",gq,[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($t.pick)(u.$attrs,["id","name"]),{onChange:s}),null,16,hq),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",mq,t.toDisplayString(u.helper),1)):t.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-ee5c330b"]]),Fq={name:"UnnnicDataArea",components:{ToolTip:la},props:{title:{type:String,default:null},text:{type:String,default:null},enableHover:{type:Boolean,default:!1},hoverText:{type:String,default:""}}},pq={class:"data-area-container"},bq={class:"data-area-container__header"},yq={class:"data-area-container__header__title"},kq={class:"data-area-container__header__links-slot"},wq={class:"data-area-container__content"},Dq={class:"data-area-container__content__text"},Cq={class:"data-area-container__content__buttons-slot"};function Eq(e,a,n,i,r,s){const u=t.resolveComponent("ToolTip");return t.openBlock(),t.createElementBlock("div",pq,[t.createElementVNode("div",bq,[t.createElementVNode("div",yq,t.toDisplayString(n.title),1),t.createElementVNode("div",kq,[t.renderSlot(e.$slots,"links",{},void 0,!0)])]),t.createElementVNode("div",wq,[t.createVNode(u,{enabled:n.enableHover,text:n.hoverText},{default:t.withCtx(()=>[t.createElementVNode("div",Dq,t.toDisplayString(n.text),1)]),_:1},8,["enabled","text"]),t.createElementVNode("div",Cq,[t.renderSlot(e.$slots,"buttons",{},void 0,!0)])])])}const ld=R(Fq,[["render",Eq],["__scopeId","data-v-532aa33d"]]),Aq={class:"pagination"},cl=R(t.defineComponent({name:"UnnnicPagination",__name:"Pagination",props:{modelValue:{default:1},max:{default:1},show:{default:5},disabled:{type:Boolean,default:!1}},emits:["update:model-value"],setup(e,{emit:a}){const n=e,i=a,r=t.ref(3),s=t.computed(()=>{const p=[];for(let C=1;C<=n.max;C+=1)p.push(C);const y=n.show-4,w=n.max-y-3;if(r.value>3){const C=r.value-2,v=C>w?w:C;p.splice(1,v,"left-hidden")}if(r.value<n.max-y-1){const C=n.max-y-r.value,v=C>w?w:C;p.splice(-(v+1),v,"right-hidden")}return p}),u=t.computed(()=>n.modelValue>1),d=t.computed(()=>n.modelValue<n.max);function c(p){r.value=p}function _(p,y){if(p==="left-hidden"){const w=s.value[s.value.indexOf("left-hidden")+1]-1;y||i("update:model-value",w),c(w)}else if(p==="right-hidden"){const w=s.value[s.value.indexOf("right-hidden")-1]+1;y||i("update:model-value",w),s.value.includes("left-hidden")?c(s.value[s.value.indexOf("left-hidden")+1]+1):c(4)}else y||i("update:model-value",p)}function g(){if(u.value){const p=n.modelValue-1;_(p),s.value.includes(p)||c(p)}}function h(){if(d.value){const p=n.modelValue+1;_(p),s.value.includes(p)||c(p)}}const F=n.modelValue;return _(F,!0),s.value.includes(F)||c(F),(p,y)=>(t.openBlock(),t.createElementBlock("div",Aq,[t.createVNode(bt,{type:"tertiary",size:"small",iconCenter:"arrow-left-1-1",disabled:!u.value||p.disabled,"data-test":"previous-button",onClick:g},null,8,["disabled"]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.value,(w,C)=>(t.openBlock(),t.createBlock(bt,{key:C,type:w===p.modelValue?"secondary":"tertiary",size:"small",text:["left-hidden","right-hidden"].includes(w)?"...":String(w),disabled:p.disabled,"data-test":"page-button",onClick:v=>_(w)},null,8,["type","text","disabled","onClick"]))),128)),t.createVNode(bt,{type:"tertiary",size:"small",iconCenter:"arrow-right-1-1",disabled:!d.value||p.disabled,"data-test":"next-button",onClick:h},null,8,["disabled"])]))}}),[["__scopeId","data-v-0e9e368a"]]),Xm={"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(Xm);const Zm={"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(Zm);var Ta=function(e,a,n,i){if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof a=="function"?e!==a||!i:!a.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?i:n==="a"?i.call(e):i?i.value:a.get(e)},Ar,vo,Oi;class xq{constructor(...a){Ar.set(this,new Map),vo.set(this,new Map),Oi.set(this,new Map);for(const n of a)this.define(n)}define(a,n=!1){for(let[i,r]of Object.entries(a)){i=i.toLowerCase(),r=r.map(d=>d.toLowerCase()),Ta(this,Oi,"f").has(i)||Ta(this,Oi,"f").set(i,new Set);const s=Ta(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&&Ta(this,vo,"f").set(i,d),u=!1,c)continue;const _=Ta(this,Ar,"f").get(d);if(_&&_!=i&&!n)throw new Error(`"${i} -> ${d}" conflicts with "${_} -> ${d}". Pass \`force=true\` to override this definition.`);Ta(this,Ar,"f").set(d,i)}}return this}getType(a){if(typeof a!="string")return null;const n=a.replace(/^.*[/\\]/s,"").toLowerCase(),i=n.replace(/^.*\./s,"").toLowerCase(),r=n.length<a.length;return!(i.length<n.length-1)&&r?null:Ta(this,Ar,"f").get(i)??null}getExtension(a){var n;return typeof a!="string"?null:(a=(n=a==null?void 0:a.split)==null?void 0:n.call(a,";")[0],(a&&Ta(this,vo,"f").get(a.trim().toLowerCase()))??null)}getAllExtensions(a){return typeof a!="string"?null:Ta(this,Oi,"f").get(a.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 a of Ta(this,Oi,"f").values())Object.freeze(a);return this}_getTestState(){return{types:Ta(this,Ar,"f"),extensions:Ta(this,vo,"f")}}}Ar=new WeakMap,vo=new WeakMap,Oi=new WeakMap;const Bq=new xq(Zm,Xm)._freeze(),vq={class:"unnnic-upload-area__dropzone__content"},jq={class:"unnnic-upload-area__dropzone__content__title"},Sq=["title"],qq=["accept","multiple"],fl=R({__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:a}){const n=t.ref(!1),i=t.ref(!1),r=t.ref(0),s=t.useTemplateRef("file"),u=e,d=a,c=t.getCurrentInstance();function _(I){var P,M;return!!((M=(P=c==null?void 0:c.vnode)==null?void 0:P.props)!=null&&M[I])}const g=t.computed(()=>u.supportedFormats.split(",").map(P=>P.toUpperCase()).join(", "));function h(){u.disabled||(r.value+=1,n.value=!0)}function F(){u.disabled||(n.value=!0)}function p(){u.disabled||(r.value-=1,r.value===0&&(n.value=!1))}function y(){u.disabled||(n.value=!1)}function w(I){if(u.disabled)return;n.value=!1;const{files:P}=I.dataTransfer;k(P)&&j(P)}function C(){u.disabled||s.value.click()}function v(I){if(u.disabled)return;const{files:P}=I.target;k(P)&&j(P),s.value.value=""}function x(){i.value=!0,setTimeout(()=>{i.value=!1},5e3)}function k(I){return!u.acceptMultiple&&I.length>1?(x(),!1):A(I)?N(I)?!0:(_("onExceededTheMaximumFileSizeLimit")?d("exceededTheMaximumFileSizeLimit"):x(),!1):(_("onUnsupportedFormat")?d("unsupportedFormat"):x(),!1)}function A(I){if(u.supportedFormats==="*")return!0;const P=u.supportedFormats.split(",").map(W=>W.trim());return Array.from(I).find(W=>{const ee=W.name.toLowerCase(),$=W.type.toLowerCase(),ce=`.${ee.split(".").pop()}`,ye=P.includes(ce),ke=$===Bq.getType(ee);return ye&&ke})}function N(I){return u.maxFileSize?Array.from(I).find(M=>(M.size/1048576).toFixed(2)<=u.maxFileSize):!0}function j(I){let P=I.length;if(u.shouldReplace||(P+=u.currentFiles.length),P>u.maximumUploads){x();return}const M=Array.from(I).filter(ee=>!!(A([ee])&&N([ee])));let W;u.shouldReplace?W=M:W=u.currentFiles.concat(M),d("update:currentFiles",W),d("fileChange",W)}return(I,P)=>(t.openBlock(),t.createElementBlock("section",{ref:"dropzone",class:t.normalizeClass({"unnnic-upload-area__dropzone":!0,"unnnic-upload-area__dropzone__is-dragover":n.value,"unnnic-upload-area__dropzone__has-error":i.value}),onDragenter:t.withModifiers(h,["stop","prevent"]),onDragover:t.withModifiers(F,["stop","prevent"]),onDragleave:t.withModifiers(p,["stop","prevent"]),onDragend:t.withModifiers(y,["stop","prevent"]),onDrop:t.withModifiers(w,["stop","prevent"]),onClick:C},[t.createVNode(be,{class:"unnnic-upload-area__dropzone__icon",icon:"upload",scheme:i.value?"feedback-red":"weni-500",size:"lg"},null,8,["scheme"]),t.createElementVNode("div",vq,[t.createElementVNode("span",jq,[t.renderSlot(I.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(I.$t("upload_area.title.text"))+" ",1),t.createElementVNode("span",{class:t.normalizeClass(`unnnic-upload-area__dropzone__content__title__${i.value?"error":"search"}`)},t.toDisplayString(I.$t("upload_area.title.highlight")),3)],!0)]),t.createElementVNode("span",{class:t.normalizeClass(["unnnic-upload-area__dropzone__content__subtitle",{"unnnic-upload-area__dropzone__content__subtitle__error":i.value}]),title:g.value},[t.renderSlot(I.$slots,"subtitle",{},()=>[t.createTextVNode(t.toDisplayString(e.subtitle||`${I.$t(`upload_area${i.value?".invalid":""}.subtitle`)} ${g.value}`),1)],!0)],10,Sq)]),t.withDirectives(t.createElementVNode("input",{ref:"file",type:"file",accept:e.supportedFormats,multiple:e.acceptMultiple,onInput:v},null,40,qq),[[t.vShow,!1]])],34))}},[["__scopeId","data-v-9585b47a"]]),Tq={name:"ImportCard",components:{UnnnicButton:bt,UnnnicIcon:be},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:a}=e.target;let n;a.length>0&&([n]=e.target.files),n&&this.$emit("modifiedFile",n)},emitDeletion(){this.$emit("delete")}}},Iq={class:"unnnic-import-card"},Nq={class:"unnnic-import-card__data"},Oq={key:0,class:"unnnic-import-card__data__title"},Mq={key:1,class:"unnnic-import-card__data__title"},Pq={key:2,class:"unnnic-import-card__data__subtitle"},Lq={key:0,class:"unnnic-import-card__data__subtitle__text"},Vq={key:1,class:"unnnic-import-card__data__subtitle__progress"},Rq={class:"unnnic-import-card__buttons"},zq=["accept"];function Uq(e,a,n,i,r,s){const u=t.resolveComponent("UnnnicIcon"),d=t.resolveComponent("UnnnicButton");return t.openBlock(),t.createElementBlock("div",Iq,[t.createVNode(u,{class:"unnnic-import-card__file-icon",size:"md",scheme:"weni-600",icon:s.fileIcon},null,8,["icon"]),t.createElementVNode("div",Nq,[n.isImporting?(t.openBlock(),t.createElementBlock("div",Oq,t.toDisplayString(e.$t("import_card.importing"))+"... ",1)):(t.openBlock(),t.createElementBlock("div",Mq,t.toDisplayString(n.title),1)),n.subtitle&&n.isImporting?(t.openBlock(),t.createElementBlock("div",Pq,[n.subtitle&&n.isImporting?(t.openBlock(),t.createElementBlock("div",Lq,t.toDisplayString(n.subtitle),1)):t.createCommentVNode("",!0),n.subtitle&&n.isImporting?(t.openBlock(),t.createElementBlock("div",Vq,"  - "+t.toDisplayString(n.importProgress)+"% ",1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Rq,[n.canImport?(t.openBlock(),t.createBlock(d,{key:0,class:"unnnic-import-card__buttons__import",size:"small",iconCenter:n.uploadIcon,type:"primary",onClick:s.importFile},{default:t.withCtx(()=>[t.createElementVNode("input",{ref:"file",type:"file",accept:n.acceptedFormats,style:{display:"none"},onChange:a[0]||(a[0]=(...c)=>s.handleFileChange&&s.handleFileChange(...c))},null,40,zq)]),_:1},8,["iconCenter","onClick"])):t.createCommentVNode("",!0),n.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 _l=R(Tq,[["render",Uq],["__scopeId","data-v-ae2cb257"]]),Hq={name:"UnnnicUploadArea",components:{UnnnicDropArea:fl,UnnnicImportCard:_l},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,a){this.currentFiles.splice(e,1,a),this.emitFileChange()},removeFile(e){this.currentFiles.splice(e,1),this.emitFileChange()}}},Yq={key:0,class:"unnnic-upload-area__cards"};function Gq(e,a,n,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":a[0]||(a[0]=c=>r.currentFiles=c),acceptMultiple:n.acceptMultiple,supportedFormats:n.supportedFormats,maxFileSize:n.maxFileSize,shouldReplace:n.shouldReplace,maximumUploads:n.maximumUploads,subtitle:n.subtitle,onFileChange:a[1]||(a[1]=c=>e.$emit("fileChange",c))},null,8,["currentFiles","acceptMultiple","supportedFormats","maxFileSize","shouldReplace","maximumUploads","subtitle"]),r.currentFiles.length>0?(t.openBlock(),t.createElementBlock("div",Yq,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.currentFiles,(c,_)=>(t.openBlock(),t.createBlock(d,{key:_,title:c.name,subtitle:c.name,isImporting:n.isUploading,importProgress:n.filesProgress[_]||100,canImport:n.canImport,canDelete:n.canDelete,acceptedFormats:n.supportedFormats,uploadIcon:"button-refresh-arrows-1",onDelete:g=>s.removeFile(_),onModifiedFile:g=>s.modifyFile(_,g)},null,8,["title","subtitle","isImporting","importProgress","canImport","canDelete","acceptedFormats","onDelete","onModifiedFile"]))),128))])):t.createCommentVNode("",!0)])}const ud=R(Hq,[["render",Gq],["__scopeId","data-v-872a45ed"]]),Wq={name:"UnnnicDateFilter",components:{UnnnicInput:_n},props:{size:{type:String,default:"sm"},dateFormat:{type:String,default:"DD/MM/YYYY"},dateSeparator:{type:String,default:"~"},startDate:{type:Date,default:null},endDate:{type:Date,default:null},placeholder:{type:String,default:""}},computed:{dateRange(){let e="";if(this.startDate){const a=oe(this.startDate).format(this.dateFormat.replaceAll("/",""));e+=a.toString()}if(this.endDate){const a=oe(this.endDate).format(this.dateFormat.replaceAll("/",""));e+=a.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")}}},$q={class:"unnnic-date-filter"};function Qq(e,a,n,i,r,s){const u=t.resolveComponent("UnnnicInput");return t.openBlock(),t.createElementBlock("div",$q,[t.createVNode(u,{class:"unnnic-date-filter__input",size:n.size,iconLeft:"notes-1",readonly:"",mask:s.fullMask,value:s.dateRange,placeholder:n.placeholder,onFocus:t.withModifiers(s.emitFilter,["stop"])},null,8,["size","mask","value","placeholder","onFocus"])])}const dd=R(Wq,[["render",Qq]]),Kq=["placeholder","maxlength","disabled","value"],cd=R(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:a}){t.useCssVars(s=>({a63f65de:s.resize}));const n=e,i=t.computed(()=>Array.isArray(n.errors)?n.errors.join(", "):typeof n.errors=="string"?n.errors:""),r=t.ref(null);return a({focus:()=>{var s;(s=r.value)==null||s.focus()}}),(s,u)=>(t.openBlock(),t.createBlock(ao,{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(Zn)(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(Zn)(((c=d.target)==null?void 0:c.value)??""))})},null,42,Kq)]),_: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"]]),Xq={props:{description:{type:String,default:""},number:{type:String,default:""},fullSize:{type:Boolean,default:!1}}};function Zq(e,a,n,i,r,s){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["unnnic-card-number",{"v-full":n.fullSize}])},[t.createElementVNode("h4",null,t.toDisplayString(n.description),1),t.createElementVNode("span",null,t.toDisplayString(n.number),1)],2)}const fd=R(Xq,[["render",Zq],["__scopeId","data-v-b36ba472"]]),Jq={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 a(i,r,s,u,d,c){const _=s,g=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 n=a(166,166,139.44,152.72,-85,85);this.$refs.background.setAttribute("d",n),this.$refs.front.setAttribute("d",a(166,166,139.44,152.72,-85,-85+this.modelValue/100*170))}}},eT={class:"unnnic-chart-rainbow"},tT={width:"332",height:"166",class:"semicircle"},aT={id:"path",ref:"background",fill:"none","stroke-linecap":"round",class:"background","stroke-width":"26.56px"},nT={id:"path",ref:"front",fill:"none","stroke-linecap":"round",class:"front","stroke-width":"26.56px"},iT={class:"content"},rT={class:"percentage"},oT={class:"number"},sT={key:0,class:"description"};function lT(e,a,n,i,r,s){return t.openBlock(),t.createElementBlock("div",eT,[(t.openBlock(),t.createElementBlock("svg",tT,[a[0]||(a[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",aT,null,512),t.createElementVNode("path",nT,null,512)])),t.createElementVNode("div",iT,[t.createElementVNode("div",rT,[t.createElementVNode("span",oT,t.toDisplayString(n.modelValue),1),a[1]||(a[1]=t.createElementVNode("span",{class:"symbol"},"%",-1))]),n.description?(t.openBlock(),t.createElementBlock("div",sT,t.toDisplayString(n.description),1)):t.createCommentVNode("",!0)])])}const _d=R(Jq,[["render",lT],["__scopeId","data-v-ae7c10f4"]]),uT={components:{UnnnicIcon:be,UnnnicButton:bt,UnnnicToolTip:la},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,a,n)=>n.indexOf(e)===a)},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))}}},dT={key:0,class:"header"},cT={key:0,class:"content"},fT={key:1,class:"description unnnic-font secondary body-gt color-fg-base"},_T={key:1,class:"actions"},gT={key:0,class:"unnnic-font secondary body-md color-fg-base"},hT={key:1,class:"navigation-container"},mT={class:"main"},FT={class:"reference"},pT={class:"values"},bT={class:"groups"},yT={class:"bars"},kT={class:"title unnnic-font secondary body-md color-fg-muted"},wT={key:1,class:"footer"},DT={class:"unnnic-font secondary body-gt color-fg-base"};function CT(e,a,n,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:n.condensed}])},[n.title||n.description||e.$attrs.update||e.$attrs.previous||e.$attrs.next?(t.openBlock(),t.createElementBlock("div",dT,[n.title||n.description?(t.openBlock(),t.createElementBlock("div",cT,[n.title?(t.openBlock(),t.createElementBlock("div",{key:0,class:"title unnnic-font bold title-sm color-fg-emphasized",onClick:a[0]||(a[0]=_=>e.$emit("update"))},t.toDisplayString(n.title),1)):t.createCommentVNode("",!0),n.description?(t.openBlock(),t.createElementBlock("div",fT,t.toDisplayString(n.description),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),e.$attrs.update||e.$attrs.previous||e.$attrs.next?(t.openBlock(),t.createElementBlock("div",_T,[e.$attrs.update?(t.openBlock(),t.createElementBlock("div",{key:0,class:"update-button",onClick:a[1]||(a[1]=_=>e.$emit("update"))},[t.createVNode(u,{icon:"button-refresh-arrow-1",size:"sm",scheme:"fg-emphasized"}),n.updateText?(t.openBlock(),t.createElementBlock("span",gT,t.toDisplayString(n.updateText),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),e.$attrs.previous||e.$attrs.next?(t.openBlock(),t.createElementBlock("div",hT,[e.$attrs.previous?(t.openBlock(),t.createBlock(d,{key:0,size:"small",type:"tertiary",iconCenter:"arrow-left-1-1",disabled:n.previousDisabled,onClick:a[2]||(a[2]=_=>e.$emit("previous"))},null,8,["disabled"])):t.createCommentVNode("",!0),e.$attrs.next?(t.openBlock(),t.createBlock(d,{key:1,size:"small",type:"tertiary",iconCenter:"arrow-right-1-1",disabled:n.nextDisabled,onClick:a[3]||(a[3]=_=>e.$emit("next"))},null,8,["disabled"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",mT,[t.createElementVNode("div",FT,[t.createElementVNode("div",pT,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList([s.value(s.maxValue),s.value(s.maxValue/2),s.value(0)],(_,g)=>(t.openBlock(),t.createElementBlock("div",{key:g,class:"value unnnic-font secondary body-md color-fg-muted"},t.toDisplayString(_),1))),128))]),a[4]||(a[4]=t.createElementVNode("div",{class:"unnnic-font secondary body-md color-fg-muted"}," ",-1))]),t.createElementVNode("div",bT,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.groups,(_,g)=>(t.openBlock(),t.createElementBlock("div",{key:g,class:"group"},[t.createElementVNode("div",yT,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.legends.map((h,F)=>({legend:h,index:F})).filter(({legend:h})=>_.values[h]),({legend:h,index:F})=>(t.openBlock(),t.createBlock(c,{key:F,enabled:"",text:`${_.title}: ${_.values[h]}
65
+ */const sA="9.14.5";function lA(){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 fm=ia.__EXTEND_POINT__,Rn=Ys(fm),wt={FALLBACK_TO_ROOT:fm,NOT_SUPPORTED_PRESERVE:Rn(),NOT_SUPPORTED_FORMATTER:Rn(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:Rn(),NOT_SUPPORTED_GET_CHOICE_INDEX:Rn(),COMPONENT_NAME_LEGACY_COMPATIBLE:Rn(),NOT_FOUND_PARENT_SCOPE:Rn(),IGNORE_OBJ_FLATTEN:Rn(),NOTICE_DROP_ALLOW_COMPOSITION:Rn(),NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG:Rn()},uA={[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,...a){return Q0(uA[e],...a)}const _m=Yt.__EXTEND_POINT__,ca=Ys(_m),Ze={UNEXPECTED_RETURN_TYPE:_m,INVALID_ARGUMENT:ca(),MUST_BE_CALL_SETUP_TOP:ca(),NOT_INSTALLED:ca(),NOT_AVAILABLE_IN_LEGACY_MODE:ca(),REQUIRED_VALUE:ca(),INVALID_VALUE:ca(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:ca(),NOT_INSTALLED_WITH_PROVIDE:ca(),UNEXPECTED_ERROR:ca(),NOT_COMPATIBLE_LEGACY_VUE_I18N:ca(),BRIDGE_SUPPORT_VUE_2_ONLY:ca(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:ca(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:ca(),__EXTEND_POINT__:ca()};function Rt(e,...a){return mr(e,null,process.env.NODE_ENV!=="production"?{messages:dA,args:a}:void 0)}const dA={[Ze.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[Ze.INVALID_ARGUMENT]:"Invalid argument",[Ze.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[Ze.NOT_INSTALLED]:"Need to install with `app.use` function",[Ze.UNEXPECTED_ERROR]:"Unexpected error",[Ze.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[Ze.REQUIRED_VALUE]:"Required in value: {0}",[Ze.INVALID_VALUE]:"Invalid value",[Ze.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[Ze.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[Ze.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[Ze.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[Ze.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",[Ze.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},u1=pn("__translateVNode"),d1=pn("__datetimeParts"),c1=pn("__numberParts"),Ti=pn("__enableEmitter"),po=pn("__disableEmitter"),gm=pn("__setPluralRules"),hm=pn("__injectWithOption"),f1=pn("__dispose");function bo(e){if(!Qe(e)||Sa(e))return e;for(const a in e)if(Xa(e,a))if(!a.includes("."))Qe(e[a])&&bo(e[a]);else{const n=a.split("."),i=n.length-1;let r=e,s=!1;for(let u=0;u<i;u++){if(n[u]==="__proto__")throw new Error(`unsafe key: ${n[u]}`);if(n[u]in r||(r[n[u]]=lt()),!Qe(r[n[u]])){process.env.NODE_ENV!=="production"&&Ot(da(wt.IGNORE_OBJ_FLATTEN,{key:n[u]})),s=!0;break}r=r[n[u]]}if(s||(Sa(r)?vh.includes(n[i])||delete e[a]:(r[n[i]]=e[a],delete e[a])),!Sa(r)){const u=r[n[i]];Qe(u)&&bo(u)}}return e}function el(e,a){const{messages:n,__i18n:i,messageResolver:r,flatJson:s}=a,u=Be(n)?n:_t(i)?lt():{[e]:lt()};if(_t(i)&&i.forEach(d=>{if("locale"in d&&"resource"in d){const{locale:c,resource:_}=d;c?(u[c]=u[c]||lt(),Ws(_,u[c])):Ws(_,u)}else le(d)&&Ws(JSON.parse(d),u)}),r==null&&s)for(const d in u)Xa(u,d)&&bo(u[d]);return u}function mm(e){return e.type}function Fm(e,a,n){let i=Qe(a.messages)?a.messages:lt();"__i18nGlobal"in n&&(i=el(e.locale.value,{messages:i,__i18n:n.__i18nGlobal}));const r=Object.keys(i);r.length&&r.forEach(s=>{e.mergeLocaleMessage(s,i[s])});{if(Qe(a.datetimeFormats)){const s=Object.keys(a.datetimeFormats);s.length&&s.forEach(u=>{e.mergeDateTimeFormat(u,a.datetimeFormats[u])})}if(Qe(a.numberFormats)){const s=Object.keys(a.numberFormats);s.length&&s.forEach(u=>{e.mergeNumberFormat(u,a.numberFormats[u])})}}}function pm(e){return t.createVNode(t.Text,null,e,0)}const bm="__INTLIFY_META__",ym=()=>[],cA=()=>!1;let km=0;function wm(e){return(a,n,i,r)=>e(n,i,t.getCurrentInstance()||void 0,r)}const fA=()=>{const e=t.getCurrentInstance();let a=null;return e&&(a=mm(e)[bm])?{[bm]:a}:null};function _1(e={},a){const{__root:n,__injectWithOption:i}=e,r=n===void 0,s=e.flatJson,u=Ka?t.ref:t.shallowRef,d=!!e.translateExistCompatible;process.env.NODE_ENV!=="production"&&d&&sh(da(wt.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));let c=Ve(e.inheritLocale)?e.inheritLocale:!0;const _=u(n&&c?n.locale.value:le(e.locale)?e.locale:br),g=u(n&&c?n.fallbackLocale.value:le(e.fallbackLocale)||_t(e.fallbackLocale)||Be(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:_.value),h=u(el(_.value,e)),F=u(Be(e.datetimeFormats)?e.datetimeFormats:{[_.value]:{}}),p=u(Be(e.numberFormats)?e.numberFormats:{[_.value]:{}});let y=n?n.missingWarn:Ve(e.missingWarn)||li(e.missingWarn)?e.missingWarn:!0,w=n?n.fallbackWarn:Ve(e.fallbackWarn)||li(e.fallbackWarn)?e.fallbackWarn:!0,C=n?n.fallbackRoot:Ve(e.fallbackRoot)?e.fallbackRoot:!0,v=!!e.fallbackFormat,x=ut(e.missing)?e.missing:null,k=ut(e.missing)?wm(e.missing):null,A=ut(e.postTranslation)?e.postTranslation:null,N=n?n.warnHtmlMessage:Ve(e.warnHtmlMessage)?e.warnHtmlMessage:!0,j=!!e.escapeParameter;const I=n?n.modifiers:Be(e.modifiers)?e.modifiers:{};let P=e.pluralRules||n&&n.pluralRules,M;M=(()=>{r&&Hh(null);const U={version:sA,locale:_.value,fallbackLocale:g.value,messages:h.value,modifiers:I,pluralRules:P,missing:k===null?void 0:k,missingWarn:y,fallbackWarn:w,fallbackFormat:v,unresolving:!0,postTranslation:A===null?void 0:A,warnHtmlMessage:N,escapeParameter:j,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};U.datetimeFormats=F.value,U.numberFormats=p.value,U.__datetimeFormatters=Be(M)?M.__datetimeFormatters:void 0,U.__numberFormatters=Be(M)?M.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(U.__v_emitter=Be(M)?M.__v_emitter:void 0);const te=zE(U);return r&&Hh(te),te})(),Fo(M,_.value,g.value);function ee(){return[_.value,g.value,h.value,F.value,p.value]}const $=t.computed({get:()=>_.value,set:U=>{_.value=U,M.locale=_.value}}),ce=t.computed({get:()=>g.value,set:U=>{g.value=U,M.fallbackLocale=g.value,Fo(M,_.value,U)}}),ye=t.computed(()=>h.value),ke=t.computed(()=>F.value),ie=t.computed(()=>p.value);function je(){return ut(A)?A:null}function ae(U){A=U,M.postTranslation=U}function at(){return x}function Dt(U){U!==null&&(k=wm(U)),x=U,M.missing=k}function ct(U,te){return U!=="translate"||!te.resolvedMessage}const Ct=(U,te,Re,dt,Pt,en)=>{ee();let Na;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(M.fallbackContext=n?RE():void 0),Na=U(M)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(M.fallbackContext=void 0)}if(Re!=="translate exists"&&qt(Na)&&Na===Xs||Re==="translate exists"&&!Na){const[zt,yn]=te();if(process.env.NODE_ENV!=="production"&&n&&le(zt)&&ct(Re,yn)&&(C&&(Js(w,zt)||Gh(y,zt))&&Ot(da(wt.FALLBACK_TO_ROOT,{key:zt,type:Re})),process.env.NODE_ENV!=="production")){const{__v_emitter:zn}=M;zn&&C&&zn.emit("fallback",{type:Re,key:zt,to:"global",groupId:`${Re}:${zt}`})}return n&&C?dt(n):Pt(zt)}else{if(en(Na))return Na;throw Rt(Ze.UNEXPECTED_RETURN_TYPE)}};function rt(...U){return Ct(te=>Reflect.apply(em,null,[te,...U]),()=>r1(...U),"translate",te=>Reflect.apply(te.t,te,[...U]),te=>te,te=>le(te))}function gt(...U){const[te,Re,dt]=U;if(dt&&!Qe(dt))throw Rt(Ze.INVALID_ARGUMENT);return rt(te,Re,Qt({resolvedMessage:!0},dt||{}))}function Bt(...U){return Ct(te=>Reflect.apply(rm,null,[te,...U]),()=>o1(...U),"datetime format",te=>Reflect.apply(te.d,te,[...U]),()=>Zs,te=>le(te))}function Kt(...U){return Ct(te=>Reflect.apply(lm,null,[te,...U]),()=>s1(...U),"number format",te=>Reflect.apply(te.n,te,[...U]),()=>Zs,te=>le(te))}function H(U){return U.map(te=>le(te)||qt(te)||Ve(te)?pm(String(te)):te)}const ue={normalize:H,interpolate:U=>U,type:"vnode"};function se(...U){return Ct(te=>{let Re;const dt=te;try{dt.processor=ue,Re=Reflect.apply(em,null,[dt,...U])}finally{dt.processor=null}return Re},()=>r1(...U),"translate",te=>te[u1](...U),te=>[pm(te)],te=>_t(te))}function Z(...U){return Ct(te=>Reflect.apply(lm,null,[te,...U]),()=>s1(...U),"number format",te=>te[c1](...U),ym,te=>le(te)||_t(te))}function ve(...U){return Ct(te=>Reflect.apply(rm,null,[te,...U]),()=>o1(...U),"datetime format",te=>te[d1](...U),ym,te=>le(te)||_t(te))}function qe(U){P=U,M.pluralRules=P}function Q(U,te){return Ct(()=>{if(!U)return!1;const Re=le(te)?te:_.value,dt=Oe(Re),Pt=M.messageResolver(dt,U);return d?Pt!=null:Sa(Pt)||qa(Pt)||le(Pt)},()=>[U],"translate exists",Re=>Reflect.apply(Re.te,Re,[U,te]),cA,Re=>Ve(Re))}function fe(U){let te=null;const Re=Nh(M,g.value,_.value);for(let dt=0;dt<Re.length;dt++){const Pt=h.value[Re[dt]]||{},en=M.messageResolver(Pt,U);if(en!=null){te=en;break}}return te}function ht(U){const te=fe(U);return te??(n?n.tm(U)||{}:{})}function Oe(U){return h.value[U]||{}}function ge(U,te){if(s){const Re={[U]:te};for(const dt in Re)Xa(Re,dt)&&bo(Re[dt]);te=Re[U]}h.value[U]=te,M.messages=h.value}function Ue(U,te){h.value[U]=h.value[U]||{};const Re={[U]:te};if(s)for(const dt in Re)Xa(Re,dt)&&bo(Re[dt]);te=Re[U],Ws(te,h.value[U]),M.messages=h.value}function B(U){return F.value[U]||{}}function S(U,te){F.value[U]=te,M.datetimeFormats=F.value,sm(M,U,te)}function Y(U,te){F.value[U]=Qt(F.value[U]||{},te),M.datetimeFormats=F.value,sm(M,U,te)}function de(U){return p.value[U]||{}}function He(U,te){p.value[U]=te,M.numberFormats=p.value,dm(M,U,te)}function Me(U,te){p.value[U]=Qt(p.value[U]||{},te),M.numberFormats=p.value,dm(M,U,te)}km++,n&&Ka&&(t.watch(n.locale,U=>{c&&(_.value=U,M.locale=U,Fo(M,_.value,g.value))}),t.watch(n.fallbackLocale,U=>{c&&(g.value=U,M.fallbackLocale=U,Fo(M,_.value,g.value))}));const We={id:km,locale:$,fallbackLocale:ce,get inheritLocale(){return c},set inheritLocale(U){c=U,U&&n&&(_.value=n.locale.value,g.value=n.fallbackLocale.value,Fo(M,_.value,g.value))},get availableLocales(){return Object.keys(h.value).sort()},messages:ye,get modifiers(){return I},get pluralRules(){return P||{}},get isGlobal(){return r},get missingWarn(){return y},set missingWarn(U){y=U,M.missingWarn=y},get fallbackWarn(){return w},set fallbackWarn(U){w=U,M.fallbackWarn=w},get fallbackRoot(){return C},set fallbackRoot(U){C=U},get fallbackFormat(){return v},set fallbackFormat(U){v=U,M.fallbackFormat=v},get warnHtmlMessage(){return N},set warnHtmlMessage(U){N=U,M.warnHtmlMessage=U},get escapeParameter(){return j},set escapeParameter(U){j=U,M.escapeParameter=U},t:rt,getLocaleMessage:Oe,setLocaleMessage:ge,mergeLocaleMessage:Ue,getPostTranslationHandler:je,setPostTranslationHandler:ae,getMissingHandler:at,setMissingHandler:Dt,[gm]:qe};return We.datetimeFormats=ke,We.numberFormats=ie,We.rt=gt,We.te=Q,We.tm=ht,We.d=Bt,We.n=Kt,We.getDateTimeFormat=B,We.setDateTimeFormat=S,We.mergeDateTimeFormat=Y,We.getNumberFormat=de,We.setNumberFormat=He,We.mergeNumberFormat=Me,We[hm]=i,We[u1]=se,We[d1]=ve,We[c1]=Z,process.env.NODE_ENV!=="production"&&(We[Ti]=U=>{M.__v_emitter=U},We[po]=()=>{M.__v_emitter=void 0}),We}function _A(e){const a=le(e.locale)?e.locale:br,n=le(e.fallbackLocale)||_t(e.fallbackLocale)||Be(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a,i=ut(e.missing)?e.missing:void 0,r=Ve(e.silentTranslationWarn)||li(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,s=Ve(e.silentFallbackWarn)||li(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,u=Ve(e.fallbackRoot)?e.fallbackRoot:!0,d=!!e.formatFallbackMessages,c=Be(e.modifiers)?e.modifiers:{},_=e.pluralizationRules,g=ut(e.postTranslation)?e.postTranslation:void 0,h=le(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,F=!!e.escapeParameterHtml,p=Ve(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 y=e.messages;if(Be(e.sharedMessages)){const j=e.sharedMessages;y=Object.keys(j).reduce((P,M)=>{const W=P[M]||(P[M]={});return Qt(W,j[M]),P},y||{})}const{__i18n:w,__root:C,__injectWithOption:v}=e,x=e.datetimeFormats,k=e.numberFormats,A=e.flatJson,N=e.translateExistCompatible;return{locale:a,fallbackLocale:n,messages:y,flatJson:A,datetimeFormats:x,numberFormats:k,missing:i,missingWarn:r,fallbackWarn:s,fallbackRoot:u,fallbackFormat:d,modifiers:c,pluralRules:_,postTranslation:g,warnHtmlMessage:h,escapeParameter:F,messageResolver:e.messageResolver,inheritLocale:p,translateExistCompatible:N,__i18n:w,__root:C,__injectWithOption:v}}function g1(e={},a){{const n=_1(_A(e)),{__extender:i}=e,r={id:n.id,get locale(){return n.locale.value},set locale(s){n.locale.value=s},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(s){n.fallbackLocale.value=s},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.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 n.getMissingHandler()},set missing(s){n.setMissingHandler(s)},get silentTranslationWarn(){return Ve(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(s){n.missingWarn=Ve(s)?!s:s},get silentFallbackWarn(){return Ve(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(s){n.fallbackWarn=Ve(s)?!s:s},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(s){n.fallbackFormat=s},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(s){n.setPostTranslationHandler(s)},get sync(){return n.inheritLocale},set sync(s){n.inheritLocale=s},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(s){n.warnHtmlMessage=s!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(s){n.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 n.pluralRules||{}},__composer:n,t(...s){const[u,d,c]=s,_={};let g=null,h=null;if(!le(u))throw Rt(Ze.INVALID_ARGUMENT);const F=u;return le(d)?_.locale=d:_t(d)?g=d:Be(d)&&(h=d),_t(c)?g=c:Be(c)&&(h=c),Reflect.apply(n.t,n,[F,g||h||{},_])},rt(...s){return Reflect.apply(n.rt,n,[...s])},tc(...s){const[u,d,c]=s,_={plural:1};let g=null,h=null;if(!le(u))throw Rt(Ze.INVALID_ARGUMENT);const F=u;return le(d)?_.locale=d:qt(d)?_.plural=d:_t(d)?g=d:Be(d)&&(h=d),le(c)?_.locale=c:_t(c)?g=c:Be(c)&&(h=c),Reflect.apply(n.t,n,[F,g||h||{},_])},te(s,u){return n.te(s,u)},tm(s){return n.tm(s)},getLocaleMessage(s){return n.getLocaleMessage(s)},setLocaleMessage(s,u){n.setLocaleMessage(s,u)},mergeLocaleMessage(s,u){n.mergeLocaleMessage(s,u)},d(...s){return Reflect.apply(n.d,n,[...s])},getDateTimeFormat(s){return n.getDateTimeFormat(s)},setDateTimeFormat(s,u){n.setDateTimeFormat(s,u)},mergeDateTimeFormat(s,u){n.mergeDateTimeFormat(s,u)},n(...s){return Reflect.apply(n.n,n,[...s])},getNumberFormat(s){return n.getNumberFormat(s)},setNumberFormat(s,u){n.setNumberFormat(s,u)},mergeNumberFormat(s,u){n.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=n;u[Ti]&&u[Ti](s)},r.__disableEmitter=()=>{const s=n;s[po]&&s[po]()}),r}}const h1={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function gA({slots:e},a){return a.length===1&&a[0]==="default"?(e.default?e.default():[]).reduce((i,r)=>[...i,...r.type===t.Fragment?r.children:[r]],[]):a.reduce((n,i)=>{const r=e[i];return r&&(n[i]=r()),n},lt())}function Dm(e){return t.Fragment}const m1=t.defineComponent({name:"i18n-t",props:Qt({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>qt(e)||!isNaN(e)}},h1),setup(e,a){const{slots:n,attrs:i}=a,r=e.i18n||y1({useScope:e.scope,__useComponent:!0});return()=>{const s=Object.keys(n).filter(h=>h!=="_"),u=lt();e.locale&&(u.locale=e.locale),e.plural!==void 0&&(u.plural=le(e.plural)?+e.plural:e.plural);const d=gA(a,s),c=r[u1](e.keypath,d,u),_=Qt(lt(),i),g=le(e.tag)||Qe(e.tag)?e.tag:Dm();return t.h(g,_,c)}}});function hA(e){return _t(e)&&!le(e[0])}function Cm(e,a,n,i){const{slots:r,attrs:s}=a;return()=>{const u={part:!0};let d=lt();e.locale&&(u.locale=e.locale),le(e.format)?u.key=e.format:Qe(e.format)&&(le(e.format.key)&&(u.key=e.format.key),d=Object.keys(e.format).reduce((F,p)=>n.includes(p)?Qt(lt(),F,{[p]:e.format[p]}):F,lt()));const c=i(e.value,u,d);let _=[u.key];_t(c)?_=c.map((F,p)=>{const y=r[F.type],w=y?y({[F.type]:F.value,index:p,parts:c}):[F.value];return hA(w)&&(w[0].key=`${F.type}-${p}`),w}):le(c)&&(_=[c]);const g=Qt(lt(),s),h=le(e.tag)||Qe(e.tag)?e.tag:Dm();return t.h(h,g,_)}}const Em=t.defineComponent({name:"i18n-n",props:Qt({value:{type:Number,required:!0},format:{type:[String,Object]}},h1),setup(e,a){const n=e.i18n||y1({useScope:e.scope,__useComponent:!0});return Cm(e,a,um,(...i)=>n[c1](...i))}}),Am=t.defineComponent({name:"i18n-d",props:Qt({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},h1),setup(e,a){const n=e.i18n||y1({useScope:e.scope,__useComponent:!0});return Cm(e,a,om,(...i)=>n[d1](...i))}});function mA(e,a){const n=e;if(e.mode==="composition")return n.__getInstance(a)||e.global;{const i=n.__getInstance(a);return i!=null?i.__composer:e.global.__composer}}function FA(e){const a=u=>{const{instance:d,modifiers:c,value:_}=u;if(!d||!d.$)throw Rt(Ze.UNEXPECTED_ERROR);const g=mA(e,d.$);process.env.NODE_ENV!=="production"&&c.preserve&&Ot(da(wt.NOT_SUPPORTED_PRESERVE));const h=xm(_);return[Reflect.apply(g.t,g,[...Bm(h)]),g]};return{created:(u,d)=>{const[c,_]=a(d);Ka&&e.global===_&&(u.__i18nWatcher=t.watch(_.locale,()=>{d.instance&&d.instance.$forceUpdate()})),u.__composer=_,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,_=xm(d);u.textContent=Reflect.apply(c.t,c,[...Bm(_)])}},getSSRProps:u=>{const[d]=a(u);return{textContent:d}}}}function xm(e){if(le(e))return{path:e};if(Be(e)){if(!("path"in e))throw Rt(Ze.REQUIRED_VALUE,"path");return e}else throw Rt(Ze.INVALID_VALUE)}function Bm(e){const{path:a,locale:n,args:i,choice:r,plural:s}=e,u={},d=i||{};return le(n)&&(u.locale=n),qt(r)&&(u.plural=r),qt(s)&&(u.plural=s),[a,d,u]}function pA(e,a,...n){const i=Be(n[0])?n[0]:{},r=!!i.useI18nComponentName,s=Ve(i.globalInstall)?i.globalInstall:!0;process.env.NODE_ENV!=="production"&&s&&r&&Ot(da(wt.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:m1.name})),s&&([r?"i18n":m1.name,"I18nT"].forEach(u=>e.component(u,m1)),[Em.name,"I18nN"].forEach(u=>e.component(u,Em)),[Am.name,"I18nD"].forEach(u=>e.component(u,Am))),e.directive("t",FA(a))}const F1={"vue-devtools-plugin-vue-i18n":"Vue I18n devtools","vue-i18n-resource-inspector":"I18n Resources","vue-i18n-timeline":"Vue I18n"},bA={"vue-i18n-resource-inspector":"Search for scopes ..."},yA={"vue-i18n-timeline":16764185},vm="vue-i18n: composer properties";let p1;async function kA(e,a){return new Promise((n,i)=>{try{oA({id:"vue-devtools-plugin-vue-i18n",label:F1["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:[vm],app:e},r=>{p1=r,r.on.visitComponentTree(({componentInstance:u,treeNode:d})=>{wA(u,d,a)}),r.on.inspectComponent(({componentInstance:u,instanceData:d})=>{u.vnode.el&&u.vnode.el.__VUE_I18N__&&d&&(a.mode==="legacy"?u.vnode.el.__VUE_I18N__!==a.global.__composer&&Sm(d,u.vnode.el.__VUE_I18N__):Sm(d,u.vnode.el.__VUE_I18N__))}),r.addInspector({id:"vue-i18n-resource-inspector",label:F1["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:bA["vue-i18n-resource-inspector"]}),r.on.getInspectorTree(u=>{u.app===e&&u.inspectorId==="vue-i18n-resource-inspector"&&xA(u,a)});const s=new Map;r.on.getInspectorState(async u=>{if(u.app===e&&u.inspectorId==="vue-i18n-resource-inspector")if(r.unhighlightElement(),vA(u,a),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=BA(u.nodeId,a);d&&r.highlightElement(d)}}),r.on.editInspectorState(u=>{u.app===e&&u.inspectorId==="vue-i18n-resource-inspector"&&SA(u,a)}),r.addTimelineLayer({id:"vue-i18n-timeline",label:F1["vue-i18n-timeline"],color:yA["vue-i18n-timeline"]}),n(!0)})}catch(r){console.error(r),i(!1)}})}function jm(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function wA(e,a,n){const i=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==i){const r={label:`i18n (${jm(e)} Scope)`,textColor:0,backgroundColor:16764185};a.tags.push(r)}}function Sm(e,a){const n=vm;e.state.push({type:n,key:"locale",editable:!0,value:a.locale.value}),e.state.push({type:n,key:"availableLocales",editable:!1,value:a.availableLocales}),e.state.push({type:n,key:"fallbackLocale",editable:!0,value:a.fallbackLocale.value}),e.state.push({type:n,key:"inheritLocale",editable:!0,value:a.inheritLocale}),e.state.push({type:n,key:"messages",editable:!1,value:b1(a.messages.value)}),e.state.push({type:n,key:"datetimeFormats",editable:!1,value:a.datetimeFormats.value}),e.state.push({type:n,key:"numberFormats",editable:!1,value:a.numberFormats.value})}function b1(e){const a={};return Object.keys(e).forEach(n=>{const i=e[n];ut(i)&&"source"in i?a[n]=AA(i):Sa(i)&&i.loc&&i.loc.source?a[n]=i.loc.source:Qe(i)?a[n]=b1(i):a[n]=i}),a}const DA={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function CA(e){return e.replace(/[<>"&]/g,EA)}function EA(e){return DA[e]||e}function AA(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${CA(e.source)}")`:"(?)"}`}}}function xA(e,a){e.rootNodes.push({id:"global",label:"Global Scope"});const n=a.mode==="composition"?a.global:a.global.__composer;for(const[i,r]of a.__instances){const s=a.mode==="composition"?r:r.__composer;n!==s&&e.rootNodes.push({id:s.id.toString(),label:`${jm(i)} Scope`})}}function BA(e,a){let n=null;if(e!=="global"){for(const[i,r]of a.__instances.entries())if(r.id.toString()===e){n=i;break}}return n}function qm(e,a){if(e==="global")return a.mode==="composition"?a.global:a.global.__composer;{const n=Array.from(a.__instances.values()).find(i=>i.id.toString()===e);return n?a.mode==="composition"?n:n.__composer:null}}function vA(e,a){const n=qm(e.nodeId,a);return n&&(e.state=jA(n)),null}function jA(e){const a={},n="Locale related info",i=[{type:n,key:"locale",editable:!0,value:e.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:e.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}];a[n]=i;const r="Locale messages info",s=[{type:r,key:"messages",editable:!1,value:b1(e.messages.value)}];a[r]=s;{const u="Datetime formats info",d=[{type:u,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];a[u]=d;const c="Datetime formats info",_=[{type:c,key:"numberFormats",editable:!1,value:e.numberFormats.value}];a[c]=_}return a}function yo(e,a){if(p1){let n;a&&"groupId"in a&&(n=a.groupId,delete a.groupId),p1.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:n,time:Date.now(),meta:{},data:a||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function SA(e,a){const n=qm(e.nodeId,a);if(n){const[i]=e.path;i==="locale"&&le(e.state.value)?n.locale.value=e.state.value:i==="fallbackLocale"&&(le(e.state.value)||_t(e.state.value)||Qe(e.state.value))?n.fallbackLocale.value=e.state.value:i==="inheritLocale"&&Ve(e.state.value)&&(n.inheritLocale=e.state.value)}}function qA(e,a,n){return{beforeCreate(){const i=t.getCurrentInstance();if(!i)throw Rt(Ze.UNEXPECTED_ERROR);const r=this.$options;if(r.i18n){const s=r.i18n;if(r.__i18n&&(s.__i18n=r.__i18n),s.__root=a,this===this.$root)this.$i18n=Tm(e,s);else{s.__injectWithOption=!0,s.__extender=n.__vueI18nExtend,this.$i18n=g1(s);const u=this.$i18n;u.__extender&&(u.__disposer=u.__extender(this.$i18n))}}else if(r.__i18n)if(this===this.$root)this.$i18n=Tm(e,r);else{this.$i18n=g1({__i18n:r.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:a});const s=this.$i18n;s.__extender&&(s.__disposer=s.__extender(this.$i18n))}else this.$i18n=e;r.__i18nGlobal&&Fm(a,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),n.__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=K0();i.__enableEmitter&&i.__enableEmitter(r),r.on("*",yo)}},unmounted(){const i=t.getCurrentInstance();if(!i)throw Rt(Ze.UNEXPECTED_ERROR);const r=this.$i18n;process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",yo),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),n.__deleteInstance(i),delete this.$i18n}}}function Tm(e,a){e.locale=a.locale||e.locale,e.fallbackLocale=a.fallbackLocale||e.fallbackLocale,e.missing=a.missing||e.missing,e.silentTranslationWarn=a.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=a.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=a.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=a.postTranslation||e.postTranslation,e.warnHtmlInMessage=a.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=a.escapeParameterHtml||e.escapeParameterHtml,e.sync=a.sync||e.sync,e.__composer[gm](a.pluralizationRules||e.pluralizationRules);const n=el(e.locale,{messages:a.messages,__i18n:a.__i18n});return Object.keys(n).forEach(i=>e.mergeLocaleMessage(i,n[i])),a.datetimeFormats&&Object.keys(a.datetimeFormats).forEach(i=>e.mergeDateTimeFormat(i,a.datetimeFormats[i])),a.numberFormats&&Object.keys(a.numberFormats).forEach(i=>e.mergeNumberFormat(i,a.numberFormats[i])),e}const TA=pn("global-vue-i18n");function IA(e={},a){const n=__VUE_I18N_LEGACY_API__&&Ve(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,i=Ve(e.globalInjection)?e.globalInjection:!0,r=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,s=new Map,[u,d]=NA(e,n),c=pn(process.env.NODE_ENV!=="production"?"vue-i18n":"");process.env.NODE_ENV!=="production"&&n&&r&&Ot(da(wt.NOTICE_DROP_ALLOW_COMPOSITION));function _(F){return s.get(F)||null}function g(F,p){s.set(F,p)}function h(F){s.delete(F)}{const F={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return r},async install(p,...y){if(process.env.NODE_ENV!=="production"&&(p.__VUE_I18N__=F),p.__VUE_I18N_SYMBOL__=c,p.provide(p.__VUE_I18N_SYMBOL__,F),Be(y[0])){const v=y[0];F.__composerExtend=v.__composerExtend,F.__vueI18nExtend=v.__vueI18nExtend}let w=null;!n&&i&&(w=HA(p,F.global)),__VUE_I18N_FULL_INSTALL__&&pA(p,F,...y),__VUE_I18N_LEGACY_API__&&n&&p.mixin(qA(d,d.__composer,F));const C=p.unmount;if(p.unmount=()=>{w&&w(),F.dispose(),C()},process.env.NODE_ENV!=="production"){if(!await kA(p,F))throw Rt(Ze.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const x=K0();if(n){const k=d;k.__enableEmitter&&k.__enableEmitter(x)}else{const k=d;k[Ti]&&k[Ti](x)}x.on("*",yo)}},get global(){return d},dispose(){u.stop()},__instances:s,__getInstance:_,__setInstance:g,__deleteInstance:h};return F}}function y1(e={}){const a=t.getCurrentInstance();if(a==null)throw Rt(Ze.MUST_BE_CALL_SETUP_TOP);if(!a.isCE&&a.appContext.app!=null&&!a.appContext.app.__VUE_I18N_SYMBOL__)throw Rt(Ze.NOT_INSTALLED);const n=OA(a),i=PA(n),r=mm(a),s=MA(e,r);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw Rt(Ze.NOT_AVAILABLE_IN_LEGACY_MODE);return zA(a,s,i,e)}if(s==="global")return Fm(i,e,r),i;if(s==="parent"){let c=LA(n,a,e.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&Ot(da(wt.NOT_FOUND_PARENT_SCOPE)),c=i),c}const u=n;let d=u.__getInstance(a);if(d==null){const c=Qt({},e);"__i18n"in r&&(c.__i18n=r.__i18n),i&&(c.__root=i),d=_1(c),u.__composerExtend&&(d[f1]=u.__composerExtend(d)),RA(u,a,d),u.__setInstance(a,d)}return d}function NA(e,a,n){const i=t.effectScope();{const r=__VUE_I18N_LEGACY_API__&&a?i.run(()=>g1(e)):i.run(()=>_1(e));if(r==null)throw Rt(Ze.UNEXPECTED_ERROR);return[i,r]}}function OA(e){{const a=t.inject(e.isCE?TA:e.appContext.app.__VUE_I18N_SYMBOL__);if(!a)throw Rt(e.isCE?Ze.NOT_INSTALLED_WITH_PROVIDE:Ze.UNEXPECTED_ERROR);return a}}function MA(e,a){return Hs(e)?"__i18n"in a?"local":"global":e.useScope?e.useScope:"local"}function PA(e){return e.mode==="composition"?e.global:e.global.__composer}function LA(e,a,n=!1){let i=null;const r=a.root;let s=VA(a,n);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,n&&i&&!i[hm]&&(i=null))}if(i!=null||r===s)break;s=s.parent}return i}function VA(e,a=!1){return e==null?null:a&&e.vnode.ctx||e.parent}function RA(e,a,n){let i=null;t.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&a.vnode.el){a.vnode.el.__VUE_I18N__=n,i=K0();const r=n;r[Ti]&&r[Ti](i),i.on("*",yo)}},a),t.onUnmounted(()=>{const r=n;process.env.NODE_ENV!=="production"&&a.vnode.el&&a.vnode.el.__VUE_I18N__&&(i&&i.off("*",yo),r[po]&&r[po](),delete a.vnode.el.__VUE_I18N__),e.__deleteInstance(a);const s=r[f1];s&&(s(),delete r[f1])},a)}function zA(e,a,n,i={}){const r=a==="local",s=t.shallowRef(null);if(r&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw Rt(Ze.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const u=Ve(i.inheritLocale)?i.inheritLocale:!le(i.locale),d=t.ref(!r||u?n.locale.value:le(i.locale)?i.locale:br),c=t.ref(!r||u?n.fallbackLocale.value:le(i.fallbackLocale)||_t(i.fallbackLocale)||Be(i.fallbackLocale)||i.fallbackLocale===!1?i.fallbackLocale:d.value),_=t.ref(el(d.value,i)),g=t.ref(Be(i.datetimeFormats)?i.datetimeFormats:{[d.value]:{}}),h=t.ref(Be(i.numberFormats)?i.numberFormats:{[d.value]:{}}),F=r?n.missingWarn:Ve(i.missingWarn)||li(i.missingWarn)?i.missingWarn:!0,p=r?n.fallbackWarn:Ve(i.fallbackWarn)||li(i.fallbackWarn)?i.fallbackWarn:!0,y=r?n.fallbackRoot:Ve(i.fallbackRoot)?i.fallbackRoot:!0,w=!!i.fallbackFormat,C=ut(i.missing)?i.missing:null,v=ut(i.postTranslation)?i.postTranslation:null,x=r?n.warnHtmlMessage:Ve(i.warnHtmlMessage)?i.warnHtmlMessage:!0,k=!!i.escapeParameter,A=r?n.modifiers:Be(i.modifiers)?i.modifiers:{},N=i.pluralRules||r&&n.pluralRules;function j(){return[d.value,c.value,_.value,g.value,h.value]}const I=t.computed({get:()=>s.value?s.value.locale.value:d.value,set:Q=>{s.value&&(s.value.locale.value=Q),d.value=Q}}),P=t.computed({get:()=>s.value?s.value.fallbackLocale.value:c.value,set:Q=>{s.value&&(s.value.fallbackLocale.value=Q),c.value=Q}}),M=t.computed(()=>s.value?s.value.messages.value:_.value),W=t.computed(()=>g.value),ee=t.computed(()=>h.value);function $(){return s.value?s.value.getPostTranslationHandler():v}function ce(Q){s.value&&s.value.setPostTranslationHandler(Q)}function ye(){return s.value?s.value.getMissingHandler():C}function ke(Q){s.value&&s.value.setMissingHandler(Q)}function ie(Q){return j(),Q()}function je(...Q){return s.value?ie(()=>Reflect.apply(s.value.t,null,[...Q])):ie(()=>"")}function ae(...Q){return s.value?Reflect.apply(s.value.rt,null,[...Q]):""}function at(...Q){return s.value?ie(()=>Reflect.apply(s.value.d,null,[...Q])):ie(()=>"")}function Dt(...Q){return s.value?ie(()=>Reflect.apply(s.value.n,null,[...Q])):ie(()=>"")}function ct(Q){return s.value?s.value.tm(Q):{}}function Ct(Q,fe){return s.value?s.value.te(Q,fe):!1}function rt(Q){return s.value?s.value.getLocaleMessage(Q):{}}function gt(Q,fe){s.value&&(s.value.setLocaleMessage(Q,fe),_.value[Q]=fe)}function Bt(Q,fe){s.value&&s.value.mergeLocaleMessage(Q,fe)}function Kt(Q){return s.value?s.value.getDateTimeFormat(Q):{}}function H(Q,fe){s.value&&(s.value.setDateTimeFormat(Q,fe),g.value[Q]=fe)}function re(Q,fe){s.value&&s.value.mergeDateTimeFormat(Q,fe)}function ue(Q){return s.value?s.value.getNumberFormat(Q):{}}function se(Q,fe){s.value&&(s.value.setNumberFormat(Q,fe),h.value[Q]=fe)}function Z(Q,fe){s.value&&s.value.mergeNumberFormat(Q,fe)}const ve={get id(){return s.value?s.value.id:-1},locale:I,fallbackLocale:P,messages:M,datetimeFormats:W,numberFormats:ee,get inheritLocale(){return s.value?s.value.inheritLocale:u},set inheritLocale(Q){s.value&&(s.value.inheritLocale=Q)},get availableLocales(){return s.value?s.value.availableLocales:Object.keys(_.value)},get modifiers(){return s.value?s.value.modifiers:A},get pluralRules(){return s.value?s.value.pluralRules:N},get isGlobal(){return s.value?s.value.isGlobal:!1},get missingWarn(){return s.value?s.value.missingWarn:F},set missingWarn(Q){s.value&&(s.value.missingWarn=Q)},get fallbackWarn(){return s.value?s.value.fallbackWarn:p},set fallbackWarn(Q){s.value&&(s.value.missingWarn=Q)},get fallbackRoot(){return s.value?s.value.fallbackRoot:y},set fallbackRoot(Q){s.value&&(s.value.fallbackRoot=Q)},get fallbackFormat(){return s.value?s.value.fallbackFormat:w},set fallbackFormat(Q){s.value&&(s.value.fallbackFormat=Q)},get warnHtmlMessage(){return s.value?s.value.warnHtmlMessage:x},set warnHtmlMessage(Q){s.value&&(s.value.warnHtmlMessage=Q)},get escapeParameter(){return s.value?s.value.escapeParameter:k},set escapeParameter(Q){s.value&&(s.value.escapeParameter=Q)},t:je,getPostTranslationHandler:$,setPostTranslationHandler:ce,getMissingHandler:ye,setMissingHandler:ke,rt:ae,d:at,n:Dt,tm:ct,te:Ct,getLocaleMessage:rt,setLocaleMessage:gt,mergeLocaleMessage:Bt,getDateTimeFormat:Kt,setDateTimeFormat:H,mergeDateTimeFormat:re,getNumberFormat:ue,setNumberFormat:se,mergeNumberFormat:Z};function qe(Q){Q.locale.value=d.value,Q.fallbackLocale.value=c.value,Object.keys(_.value).forEach(fe=>{Q.mergeLocaleMessage(fe,_.value[fe])}),Object.keys(g.value).forEach(fe=>{Q.mergeDateTimeFormat(fe,g.value[fe])}),Object.keys(h.value).forEach(fe=>{Q.mergeNumberFormat(fe,h.value[fe])}),Q.escapeParameter=k,Q.fallbackFormat=w,Q.fallbackRoot=y,Q.fallbackWarn=p,Q.missingWarn=F,Q.warnHtmlMessage=x}return t.onBeforeMount(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw Rt(Ze.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const Q=s.value=e.proxy.$i18n.__composer;a==="global"?(d.value=Q.locale.value,c.value=Q.fallbackLocale.value,_.value=Q.messages.value,g.value=Q.datetimeFormats.value,h.value=Q.numberFormats.value):r&&qe(Q)}),ve}const UA=["locale","fallbackLocale","availableLocales"],Im=["t","rt","d","n","tm","te"];function HA(e,a){const n=Object.create(null);return UA.forEach(r=>{const s=Object.getOwnPropertyDescriptor(a,r);if(!s)throw Rt(Ze.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(n,r,u)}),e.config.globalProperties.$i18n=n,Im.forEach(r=>{const s=Object.getOwnPropertyDescriptor(a,r);if(!s||!s.value)throw Rt(Ze.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${r}`,s)}),()=>{delete e.config.globalProperties.$i18n,Im.forEach(r=>{delete e.config.globalProperties[`$${r}`]})}}if(lA(),__INTLIFY_JIT_COMPILATION__?Lh(WE):Lh(GE),ME(FE),PE(Nh),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=Ln();e.__INTLIFY__=!0,AE(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const YA={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"},GA={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"},Nm={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"},WA=Object.assign({en:YA,es:GA,"pt-br":Nm,"pt-BR":Nm}),ko=IA({locale:"en",fallbackLocale:"en",messages:WA}),$A=["width","height"],Ii=R(t.defineComponent({name:"UnnnicIconLoading",__name:"IconLoading",props:{scheme:{type:String,default:"fg-muted"},size:{type:String,default:"lg"},strokeWidth:{type:Number,default:5}},setup(e){t.useCssVars(r=>({"7b04333c":e.strokeWidth}));const a={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},n=e,i=t.computed(()=>a[n.size]??n.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,$A))],2))}}),[["__scopeId","data-v-05fd00f9"]]),QA=["disabled"],bt=R(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 a=e,n=t.useSlots(),i=t.computed(()=>a.disabled||a.loading),r=t.computed(()=>a.size==="extra-large"?"lg":"ant"),s=t.computed(()=>n.default?!0:a.text&&a.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(()=>a.size==="large"||!a.float&&a.size==="small"||a.float&&a.size==="extra-large"),c=t.computed(()=>({alternative:"tertiary"})[a.type]||a.type),_=t.computed(()=>["primary","secondary","tertiary","warning","attention"].includes(c.value)),g=()=>{if(!d.value||!_.value){let h="TypeError:";throw d.value||(h+=" Invalid size prop.",h+=" Please provide 'large', 'small' (only if float prop is false), or 'extra-large' (only if float prop is true)."),_.value||(h+=" Invalid type prop.",h+=" Please provide one of the following types: primary, secondary, tertiary, warning, attention. Alternative is discontinued and it was forced renamed to tertiary."),new Error(h)}};return t.watch(()=>a,()=>{g()},{deep:!0,immediate:!0}),(h,F)=>(t.openBlock(),t.createElementBlock("button",t.mergeProps(h.$attrs,{disabled:i.value,class:["unnnic-button",`unnnic-button--size-${h.size}`,`unnnic-button--${c.value}`,h.iconCenter?"unnnic-button--icon-on-center":null,h.float?"unnnic-button--float":null,h.pressed?"unnnic-button--pressed":null]}),[h.loading?(t.openBlock(),t.createBlock(Ii,{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(be,{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(be,{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(be,{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,QA))}}),[["__scopeId","data-v-d7396b6a"]]),KA={class:"month-container","data-testid":"date-picker-month-container"},XA=["onClick"],ZA={class:"month-container","data-testid":"date-picker-month-container"},JA=["onClick"],ex={class:"month-container","data-testid":"date-picker-month-container"},tx=["onClick"],ax={key:0,class:"options"},nx=["onClick"],ix={class:"actions"},tl=R(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:a,emit:n}){t.useCssVars(H=>({"71cc28ee":k.value}));const i=e,r=n,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," ")),_=t.ref(""),g={clean:{"pt-br":"Limpar",en:"Clean",es:"Limpiar"},filter:{"pt-br":"Filtrar",en:"Filter",es:"Filtrar"}},h=t.getCurrentInstance(),F=t.computed(()=>{var ue,se;const re=((se=(ue=h==null?void 0:h.proxy)==null?void 0:ue.$i18n)==null?void 0:se.locale)||"en-us";return String(re).toLowerCase()}),p=t.computed(()=>{const H=i.months||[];return H.length?H:cC[F.value]}),y=t.computed(()=>{const H=i.days||[];return H.length?H:fC[F.value]}),w=t.computed(()=>{const H=i.options||[];return H.length?H:_C[F.value]}),C=t.computed(()=>i.clearLabel||Us[F.value].clear),v=t.computed(()=>i.actionLabel||Us[F.value].filter),x=t.computed(()=>({startDate:d.value.replaceAll(" ","-"),endDate:c.value.replaceAll(" ","-")})),k=t.computed(()=>i.hideOptions?"column-reverse":"column"),A=ko;a({i18n:(H,...re)=>{const[ue]=re,se=Object.keys(A.global.messages||{});let Z=i.locale;const ve=$t.get(A,"global.locale")==="en-us"?"en":$t.get(A,"global.locale");Z=Z&&se.includes(Z)?Z:ve,Z=Z==null?void 0:Z.toLowerCase();let qe=$t.get(i.translations,`${H}.${Z}`,$t.get(i.translations,H));if(qe||(qe=$t.get(g,`${H}.${Z}`,$t.get(g,H,ue))),qe!=null&&qe.includes("|")&&typeof re[0]=="number"){const fe=re[0],ht=qe.split("|");ht.length===3?qe=ht[fe]||ht[2]:ht.length===2&&(qe=fe===1?ht[0]:ht[1])}let Q={};return re.forEach(fe=>{!(fe instanceof Array)&&fe instanceof Object&&(Q=fe)}),Object.keys(Q).forEach(fe=>{qe=qe==null?void 0:qe.replaceAll(new RegExp(`{ *${fe} *}`,"g"),Q[fe])}),qe},startDate:d,endDate:c,optionSelected:_,referenceDate:u,autoSelect:rt,dateToString:j,getStartAndEndDateByPeriod:Ct,getDatesOfTheMonth:je});function j(H){return`${H.getMonth()+1} ${H.getDate()} ${H.getFullYear()}`}function I(H){return`${H.getMonth()+1} ${H.getFullYear()}`}function P(H){return H.getFullYear()}function M(H){const[re,ue,se]=H.split(" ");return new Date(Number(se),Number(re)-1,Number(ue)).getTime()}function W(H){return H.toString().split(" ")[1]}function ee(H){return Number(H.toString().split(" ")[0])}function $(H){const[re,ue,se]=H.split(" ");return new Date(Number(se),Number(re)-1,Number(ue)).getFullYear()}function ce(H,re){const[ue,se,Z]=H.split(" "),ve=new Date(Number(Z),Number(ue)-1,Number(se));return ve.setMonth(ve.getMonth()+re),j(ve)}function ye(H){if(d.value&&c.value){if(H>=M(d.value)&&H<=M(c.value))return!0}else{if(d.value&&H>=M(d.value))return!0;if(c.value&&H<=M(c.value))return!0}return!1}function ke(H){if(d.value&&c.value){const re=M(d.value),ue=M(c.value);return H>=re&&H<=ue}if(d.value){const re=M(d.value);return H>=re}if(c.value){const re=M(c.value);return H<=re}return!1}function ie(H){if(d.value&&c.value){const re=M(d.value),ue=M(c.value);return H>=re&&H<=ue}if(d.value){const re=M(d.value);return H>=re}if(c.value){const re=M(c.value);return H<=re}return!1}function je(H){const[re,ue,se]=H.split(" "),Z=new Date(Number(se),Number(re)-1,Number(ue)),ve=Z.getMonth(),qe=86400;Z.setDate(1-Z.getDay());const Q=[];for(let fe=0;fe<6*7;fe+=1){const ht=j(Z),Oe=[];if(i.minDate){const[ge,Ue,B]=i.minDate.split("-"),S=new Date(Number(ge),Number(Ue)-1,Number(B));Z<S&&Oe.push("out of range")}if(i.maxDate){const[ge,Ue,B]=i.maxDate.split("-"),S=new Date(Number(ge),Number(Ue)-1,Number(B));Z>S&&Oe.push("out of range")}if(ve===Z.getMonth()){Oe.push("inside month");const ge=M(j(Z)),Ue=ge-qe,B=ge+qe;ye(ge)&&(Oe.push("selected"),ye(Ue)||Oe.push("left-highlighted"),ye(B)||Oe.push("right-highlighted"),(Oe.includes("left-highlighted")||Oe.includes("right-highlighted"))&&Oe.push("highlighted"))}j(Z)===j(new Date)&&Oe.push("today"),Q.push({properties:Oe,toString:()=>ht}),Z.setDate(Z.getDate()+1)}return Q}function ae(H){const[re,ue,se]=H.split(" "),Z=new Date(Number(se),Number(re)-1,Number(ue));Z.setMonth(0);const ve=[];for(let qe=0;qe<3*4;qe+=1){const Q=j(Z),fe=[];fe.push("inside month");const ht=M(j(Z)),Oe=new Date(ht),ge=new Date(ht);Oe.setMonth(Oe.getMonth()-1),ge.setMonth(ge.getMonth()+1);const Ue=Oe.getTime(),B=ge.getTime();ke(ht)&&(fe.push("selected"),ke(Ue)||fe.push("left-highlighted"),ke(B)||fe.push("right-highlighted"),(fe.includes("left-highlighted")||fe.includes("right-highlighted"))&&fe.push("highlighted")),I(Z)===I(new Date)&&fe.push("today"),ve.push({properties:fe,date:Q,toString:()=>Q}),Z.setMonth(Z.getMonth()+1)}return ve}function at(H){const[re,ue,se]=H.split(" "),Z=new Date(Number(se),Number(re)-1,Number(ue));Z.setMonth(0);const ve=[];for(let qe=0;qe<3*4;qe+=1){const Q=j(Z),fe=[];fe.push("inside month");const ht=M(j(Z)),[Oe,ge,Ue]=H.split(" "),B=new Date(Number(Ue),Number(Oe)-1,Number(ge)),S=new Date(Number(Ue),Number(Oe)-1,Number(ge));B.setMonth(B.getMonth()-12),S.setMonth(S.getMonth()+12);const Y=B.getTime(),de=S.getTime();ie(ht)&&(fe.push("selected"),ie(Y)||fe.push("left-highlighted"),ie(de)||fe.push("right-highlighted"),(fe.includes("left-highlighted")||fe.includes("right-highlighted"))&&fe.push("highlighted")),P(Z)===P(new Date)&&fe.push("today"),ve.push({properties:fe,date:Z.getFullYear(),toString:()=>Q}),Z.setFullYear(Z.getFullYear()+1)}return ve}function Dt(H){if(!d.value||!c.value)d.value=H.toString(),c.value=d.value;else{const re=M(H.toString()),ue=M(d.value),se=M(c.value);ue!==se?(d.value=H.toString(),c.value=d.value):re>se?c.value=H.toString():re<ue?d.value=H.toString():re===ue||re===se?(d.value=H.toString(),c.value=d.value):re-ue<se-re?d.value=H.toString():c.value=H.toString()}}function ct(){d.value="",c.value="",_.value=""}function Ct(H){let re,ue,se;if(i.periodBaseDate){const Q=i.periodBaseDate.split("-");if(Q.length===3){const[fe,ht,Oe]=Q;se=new Date(Number(fe),Number(ht)-1,Number(Oe))}else{const fe=new Date(i.periodBaseDate);se=Number.isNaN(fe.getTime())?new Date:fe}}else se=new Date;const Z=new Date(se.getTime()),ve=H.match(/^last-(\d+)-days$/),qe=H.match(/^last-(\d+)-months$/);if(H==="today")re=j(Z),ue=j(Z);else if(ve){const Q=Number(ve[1]);ue=j(Z),Z.setDate(Z.getDate()-Q+1),re=j(Z)}else if(qe){const Q=Number(qe[1]);ue=j(Z),Z.setDate(Z.getDate()+1),Z.setMonth(Z.getMonth()-Q),re=j(Z)}else if(H==="current-month"){const Q=se.getDate();Z.setDate(1),re=j(Z),Z.setDate(Q),ue=j(Z)}else H==="previous-month"&&(Z.setDate(1),Z.setMonth(Z.getMonth()-1),re=j(Z),Z.setMonth(Z.getMonth()+1),Z.setDate(0),ue=j(Z));return{startDate:re,endDate:ue}}function rt(H){const{startDate:re,endDate:ue}=Ct(H);if(d.value=re||"",c.value=ue||"",c.value){const se=ce(u.value,1),Z=`${Number(ee({toString:()=>c.value}))} 1 ${$(c.value)}`;[u.value,se].includes(Z)||(u.value=Z)}t.nextTick(()=>{_.value=H})}function gt(){if(r("submit",x.value),_.value==="custom")r("update:equivalentOption","");else{const H=w.value.find(({id:re})=>re===_.value);r("update:equivalentOption",(H==null?void 0:H.name)||"")}}function Bt(){const{startDate:H,endDate:re}=x.value,ue=(Z,ve)=>!Z||!ve?!1:new Date(Z).getTime()===new Date(ve).getTime(),se=w.value.find(({id:Z})=>{const{startDate:ve,endDate:qe}=Ct(Z);return ue(H,ve)&&ue(re,qe)});_.value=H||re?se?se.id:"custom":""}const Kt=t.computed(()=>[ce(u.value,-1),u.value]);return t.watch(x,H=>{Bt(),r("change",H)}),t.onMounted(()=>{Bt()}),(H,re)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["unnnic-date-picker",`unnnic-date-picker--${i.variant}`]),"data-testid":"date-picker-root"},[H.type==="day"?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(Kt.value,(ue,se)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:ue},[t.createElementVNode("div",KA,[t.createElementVNode("div",{class:t.normalizeClass(["header",`header--${H.size}`])},[t.createVNode(bt,{size:"small",iconCenter:`keyboard_arrow_${se===0?"left":"right"}`,type:H.size==="large"?"secondary":"tertiary",class:"button-space",style:t.normalizeStyle({gridArea:`${se===0?"left":"right"}-button`}),"data-testid":`date-picker-nav-${se===0?"left":"right"}`,onClick:t.withModifiers(Z=>u.value=ce(u.value,se===0?-1:1),["stop"])},null,8,["iconCenter","type","style","data-testid","onClick"]),t.createElementVNode("div",{class:t.normalizeClass(["label",`label--${H.size}`])},t.toDisplayString(p.value[Number(ee(ue))-1])+" "+t.toDisplayString($(ue)),3)],2),t.createElementVNode("div",{class:t.normalizeClass(["days",`days--${H.size}`])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(y.value,(Z,ve)=>(t.openBlock(),t.createElementBlock("div",{key:ve,class:"name"},t.toDisplayString(Z),1))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(je(ue),(Z,ve)=>(t.openBlock(),t.createElementBlock("div",{key:`${ue}-${ve}`,class:t.normalizeClass({disabled:!Z.properties.includes("inside month")||Z.properties.includes("out of range"),selectable:Z.properties.includes("inside month")&&!Z.properties.includes("out of range"),today:Z.properties.includes("today"),selected:Z.properties.includes("selected"),highlighted:Z.properties.includes("highlighted"),left:Z.properties.includes("left-highlighted"),right:Z.properties.includes("right-highlighted")}),"data-testid":"date-picker-day",onClick:qe=>Z.properties.includes("inside month")&&!Z.properties.includes("out of range")&&Dt(Z)},t.toDisplayString(W(Z)),11,XA))),128))],2)]),re[4]||(re[4]=t.createElementVNode("div",{class:"divider"},null,-1))],64))),128)):H.type==="month"?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList([u.value],ue=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:ue},[t.createElementVNode("div",ZA,[t.createElementVNode("div",{class:t.normalizeClass(["header",`header--${H.size}`])},[t.createVNode(bt,{size:"small",iconCenter:"keyboard_arrow_left",type:H.size==="large"?"secondary":"tertiary",class:"button-space",style:{gridArea:"left-button"},"data-testid":"date-picker-month-nav-left",onClick:re[0]||(re[0]=se=>u.value=ce(u.value,-12))},null,8,["type"]),t.createElementVNode("div",{class:t.normalizeClass(["label",`label--${H.size}`])},t.toDisplayString($(ue)),3),t.createVNode(bt,{size:"small",iconCenter:"keyboard_arrow_right",type:H.size==="large"?"secondary":"tertiary",class:"button-space",style:{gridArea:"right-button"},"data-testid":"date-picker-month-nav-right",onClick:re[1]||(re[1]=se=>u.value=ce(u.value,12))},null,8,["type"])],2),t.createElementVNode("div",{class:t.normalizeClass(["days",`months--${H.size}`])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(ae(ue),(se,Z)=>(t.openBlock(),t.createElementBlock("div",{key:`${ue}-${Z}`,class:t.normalizeClass({disabled:!se.properties.includes("inside month"),selectable:se.properties.includes("inside month"),today:se.properties.includes("today"),selected:se.properties.includes("selected"),highlighted:se.properties.includes("highlighted"),left:se.properties.includes("left-highlighted"),right:se.properties.includes("right-highlighted")}),"data-testid":"date-picker-month-cell",onClick:ve=>se.properties.includes("inside month")&&Dt(se)},t.toDisplayString(p.value[ee(se)-1].substr(0,3)),11,JA))),128))],2)]),re[5]||(re[5]=t.createElementVNode("div",{class:"divider"},null,-1))],64))),128)):H.type==="year"?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:2},t.renderList([u.value],ue=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:ue},[t.createElementVNode("div",ex,[t.createElementVNode("div",{class:t.normalizeClass(["header",`header--${H.size}`])},[t.createVNode(bt,{size:"small",iconCenter:"arrow-left-1-1",type:H.size==="large"?"secondary":"tertiary",class:"button-space",style:{gridArea:"left-button"},"data-testid":"date-picker-year-nav-left",onClick:re[2]||(re[2]=se=>u.value=ce(u.value,-12*12))},null,8,["type"]),t.createElementVNode("div",{class:t.normalizeClass(["label",`label--${H.size}`])},t.toDisplayString($(ue)),3),t.createVNode(bt,{size:"small",iconCenter:"arrow-right-1-1",type:H.size==="large"?"secondary":"tertiary",class:"button-space",style:{gridArea:"right-button"},"data-testid":"date-picker-year-nav-right",onClick:re[3]||(re[3]=se=>u.value=ce(u.value,12*12))},null,8,["type"])],2),t.createElementVNode("div",{class:t.normalizeClass(["days",`months--${H.size}`])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(at(ue),(se,Z)=>(t.openBlock(),t.createElementBlock("div",{key:`${ue}-${Z}`,class:t.normalizeClass({disabled:!se.properties.includes("inside month"),selectable:se.properties.includes("inside month"),today:se.properties.includes("today"),selected:se.properties.includes("selected"),highlighted:se.properties.includes("highlighted"),left:se.properties.includes("left-highlighted"),right:se.properties.includes("right-highlighted")}),"data-testid":"date-picker-year-cell",onClick:ve=>se.properties.includes("inside month")&&Dt(se)},t.toDisplayString(se.date),11,tx))),128))],2)]),re[6]||(re[6]=t.createElementVNode("div",{class:"divider"},null,-1))],64))),128)):t.createCommentVNode("",!0),H.size!=="small"?(t.openBlock(),t.createElementBlock("div",{key:3,class:"options-container",style:t.normalizeStyle({flexDirection:k.value}),"data-testid":"date-picker-options"},[H.hideOptions?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",ax,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(w.value,(ue,se)=>(t.openBlock(),t.createElementBlock("div",{key:se,class:t.normalizeClass(["option",{selectable:ue.id!=="custom",selected:_.value===ue.id}]),"data-testid":"date-picker-option",onClick:Z=>ue.id==="custom"?null:rt(ue.id)},t.toDisplayString(ue.name),11,nx))),128))])),t.createElementVNode("div",ix,[H.disableClear?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(bt,{key:0,size:"small",text:C.value,type:"tertiary","data-testid":"date-picker-clear",onClick:ct},null,8,["text"])),t.createVNode(bt,{size:"small",text:v.value,type:"secondary","data-testid":"date-picker-submit",onClick:gt},null,8,["text"])])],4)):t.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-62bed0cb"]]),wr=t.defineComponent({name:"UnnnicPopover",__name:"Popover",props:{defaultOpen:{type:Boolean},open:{type:Boolean},modal:{type:Boolean}},emits:["update:open"],setup(e,{emit:a}){const r=ma(e,a);return(s,u)=>(t.openBlock(),t.createBlock(t.unref(Jb),t.normalizeProps(t.guardReactiveProps(t.unref(r))),{default:t.withCtx(()=>[t.renderSlot(s.$slots,"default")]),_:3},16))}}),Om=Symbol("unnnicPopoverFooterTarget"),Dr=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:a}){const n=e,i=a,r=aa(n,"class","size"),s=ma(r,i),u=ir(),d=gs(),c=t.ref(null);t.provide(Om,c);const _=t.computed(()=>n.width?n.width:{small:"240px",medium:"320px",large:"400px"}[n.size]);return(g,h)=>(t.openBlock(),t.createBlock(t.unref(l6),{to:t.unref(d)},{default:t.withCtx(()=>[t.createVNode(t.unref(o6),t.mergeProps({...t.unref(s),...g.$attrs},{style:{width:_.value,zIndex:t.unref(u)},class:t.unref(At)("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 ${n.class||""}`)},[t.renderSlot(g.$slots,"default")],2),t.createElementVNode("div",{ref_key:"footerContainer",ref:c,"data-testid":"popover-footer-container"},null,512)]),_:3},16,["style","class"])]),_:3},8,["to"]))}}),rx={class:"unnnic-popover__footer"},ox={key:1,class:"unnnic-popover__footer"},al=t.defineComponent({name:"UnnnicPopoverFooter",__name:"PopoverFooter",setup(e){const a=t.inject(Om,null);return(n,i)=>t.unref(a)?(t.openBlock(),t.createBlock(t.Teleport,{key:0,to:t.unref(a)},[t.createElementVNode("footer",rx,[t.renderSlot(n.$slots,"default")])],8,["to"])):(t.openBlock(),t.createElementBlock("footer",ox,[t.renderSlot(n.$slots,"default")]))}}),Cr=R(t.defineComponent({__name:"PopoverTrigger",props:{asChild:{type:Boolean},as:{}},setup(e){const a=e;return(n,i)=>(t.openBlock(),t.createBlock(t.unref(d6),t.mergeProps(a,{class:"unnnic-popover-trigger"}),{default:t.withCtx(()=>[t.renderSlot(n.$slots,"default",{},void 0,!0)]),_:3},16))}}),[["__scopeId","data-v-df136255"]]),nl=R(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 a=e,n=t.useSlots(),i=t.computed(()=>!!n.default),r=t.computed(()=>a.active?"fg-on-primary":a.disabled?"fg-muted":a.scheme);return(s,u)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["unnnic-popover-option",{"unnnic-popover-option--disabled":a.disabled,"unnnic-popover-option--active":a.active,"unnnic-popover-option--focused":a.focused,"unnnic-popover-option--with-content":i.value}])},[a.icon?(t.openBlock(),t.createBlock(be,{key:0,icon:a.icon,scheme:r.value,size:"ant"},null,8,["icon","scheme"])):t.createCommentVNode("",!0),t.renderSlot(s.$slots,"default",{},()=>[t.createElementVNode("p",{class:t.normalizeClass(["unnnic-popover-option__label",`unnnic-popover-option__label--${r.value}`,`unnnic-popover-option--disabled: ${a.disabled}`])},t.toDisplayString(a.label),3)],!0)],2))}}),[["__scopeId","data-v-25ebf283"]]),k1=R(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:a}){const n=t.useSlots(),i=t.computed(()=>!!n.footer),r=e,s=a,u=t.ref(!1),d=t.ref(""),c=t.computed(()=>r.position==="right"?"end":"start"),_=t.computed(()=>r.disableShowOverwrittenValue?g.value||"":d.value||g.value||""),g=t.computed(()=>{const C=[],{start:v,end:x}=r.modelValue||{};return v&&C.push(oe(v,r.format).format(r.inputFormat||"")),x&&C.push(oe(x,r.format).format(r.inputFormat||"")),C.length?C.join(" ~ "):String(r.inputFormat||"").replaceAll("-","/").toLowerCase()}),h=t.computed(()=>r.modelValue.start?oe(r.modelValue.start,r.format).format("MM DD YYYY"):void 0),F=t.computed(()=>r.modelValue.end?oe(r.modelValue.end,r.format).format("MM DD YYYY"):void 0);function p(C){const{startDate:v,endDate:x}=C,k={start:oe(v,"MM-DD-YYYY").format(r.format),end:oe(x,"MM-DD-YYYY").format(r.format)};s("selectDate",k)}function y(C){const v=C.startDate.replace(/(\d+)-(\d+)-(\d+)/,"$3-$1-$2"),x=C.endDate.replace(/(\d+)-(\d+)-(\d+)/,"$3-$1-$2");u.value=!1,s("update:model-value",{start:v?oe(v,"YYYY-MM-DD").format(r.format):null,end:x?oe(x,"YYYY-MM-DD").format(r.format):null})}function w(){u.value=!0}return(C,v)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["dropdown",{"fill-w":C.fillW}])},[t.createVNode(t.unref(wr),{open:u.value,"onUpdate:open":v[1]||(v[1]=x=>u.value=x)},{default:t.withCtx(()=>[t.createVNode(t.unref(Cr),{asChild:!0},{default:t.withCtx(()=>[t.createVNode(_n,{"data-testid":"input",class:t.normalizeClass(["input",{"date-picker-input-next":C.next}]),size:C.size,iconLeft:C.iconPosition==="left"?"calendar_month":void 0,iconRight:C.iconPosition==="right"?"calendar_month":void 0,readonly:"",modelValue:_.value,disabled:C.disabled,onClick:w,onFocus:w},null,8,["class","size","iconLeft","iconRight","modelValue","disabled"])]),_:1}),t.createVNode(t.unref(Dr),{width:"auto",side:"bottom",align:c.value,class:"date-picker-popover-content"},{default:t.withCtx(()=>[t.createVNode(tl,{equivalentOption:d.value,"onUpdate:equivalentOption":v[0]||(v[0]=x=>d.value=x),"data-testid":"date-picker",variant:"popover",type:C.type,clearLabel:C.clearText,actionLabel:C.actionText,months:C.months,days:C.days,options:C.options,periodBaseDate:C.periodBaseDate,initialStartDate:h.value,initialEndDate:F.value,minDate:C.minDate,maxDate:C.maxDate,disableClear:C.disableClear,hideOptions:C.hideOptions,onChange:p,onSubmit:y},null,8,["equivalentOption","type","clearLabel","actionLabel","months","days","options","periodBaseDate","initialStartDate","initialEndDate","minDate","maxDate","disableClear","hideOptions"]),i.value?(t.openBlock(),t.createBlock(t.unref(al),{key:0},{default:t.withCtx(()=>[t.renderSlot(C.$slots,"footer",{},void 0,!0)]),_:3})):t.createCommentVNode("",!0)]),_:3},8,["align"])]),_:3},8,["open"])],2))}}),[["__scopeId","data-v-a874255c"]]),w1=e=>{const{label:a,children:n}=e;if(!!!a.trim())throw new Error('Each item in "items" must have "label".');return n&&Array.isArray(n)&&n.forEach(w1),!0},sx=e=>{if(!(e!=null&&e[0]))throw new Error("Items property cannot be an empty array.");return e.forEach(w1),!0},lx=["title"],ux={key:0,class:"unnnic-sidebar-item-children"},dx=["onClick"],cx=["title"],il=R(Object.assign({name:"UnnnicSidebarItem"},{props:{item:{type:Object,required:!0,validator:w1},active:{type:Object,default:()=>({item:!1,childIndex:null})},autoNavigateFirstChild:{type:Boolean,default:!1}},emits:["navigate"],setup(e,{emit:a}){const n=e;t.onMounted(()=>{const{childIndex:g,item:h}=n.active;typeof g=="number"&&g>=0&&h&&s()});const i=t.computed(()=>{var g;return!!((g=n.item.children)!=null&&g.length)}),r=t.ref(!1),s=()=>{r.value=!r.value,r.value&&n.autoNavigateFirstChild&&_("navigate",{item:n.item,child:n.item.children[0]})},u=g=>{const{item:h,childIndex:F}=n.active;return typeof F!="number"?h:h&&F===g},d=()=>{i.value?s():c()},c=()=>{n.active.item||_("navigate",{item:n.item,child:null})},_=a;return(g,h)=>{var F;return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("section",{"data-testid":"sidebar-item",class:t.normalizeClass({"unnnic-sidebar-item":!0,active:e.active.item}),onClick:t.withModifiers(d,["stop"])},[e.item.icon?(t.openBlock(),t.createBlock(be,{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,lx),(F=e.item.children)!=null&&F.length?(t.openBlock(),t.createBlock(be,{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",ux,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.item.children,(p,y)=>(t.openBlock(),t.createElementBlock("li",{key:p,class:t.normalizeClass({"unnnic-sidebar-item-child":!0,active:u(y)}),"data-testid":"sidebar-item-child",onClick:t.withModifiers(w=>!u(y)&&_("navigate",{item:e.item,child:p}),["stop"])},[p.icon?(t.openBlock(),t.createBlock(be,{key:0,class:"unnnic-sidebar-item-child__icon",icon:p.icon,size:"ant",scheme:u(y)?"fg-accent":"fg-base"},null,8,["icon","scheme"])):t.createCommentVNode("",!0),t.createElementVNode("p",{class:t.normalizeClass({"unnnic-sidebar-item-child__label":!0,active:u(y)}),title:p.label},t.toDisplayString(p.label),11,cx)],10,dx))),128))])):t.createCommentVNode("",!0)]),_:1})],64)}}}),[["__scopeId","data-v-6c66c728"]]),fx={class:"unnnic-sidebar-items"},D1=R(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 a=/^\d+(\.\d+)?px$/,n=/^\d+(\.\d+)?%$/;return a.test(e)||n.test(e)}},items:{type:Array,required:!0,validator:sx},active:{type:Object,default:()=>({itemIndex:null,childIndex:null})},autoNavigateFirstChild:{type:Boolean,default:!1}},emits:["navigate"],setup(e,{emit:a}){t.useCssVars(s=>({"4c47a8e2":n.width}));const n=e,i=a,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",fx,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(d,c)=>(t.openBlock(),t.createElementBlock("li",{key:d},[t.createVNode(il,{item:d,active:{item:e.active.itemIndex===c,childIndex:e.active.childIndex},autoNavigateFirstChild:e.autoNavigateFirstChild,"data-testid":"sidebar-item",onNavigate:u[0]||(u[0]=_=>r(_))},null,8,["item","active","autoNavigateFirstChild"])]))),128))]),t.renderSlot(s.$slots,"bottom",{class:"unnnic-sidebar-bottom"},void 0,!0)],2))}}),[["__scopeId","data-v-df7cccc8"]]),_x={class:"relative w-full overflow-auto"},gx=R(t.defineComponent({__name:"Table",props:{class:{}},setup(e){const a=e;return(n,i)=>(t.openBlock(),t.createElementBlock("div",_x,[t.createElementVNode("table",{class:t.normalizeClass(t.unref(At)("unnnic-table",a.class))},[t.renderSlot(n.$slots,"default",{},void 0,!0)],2)]))}}),[["__scopeId","data-v-e69706d4"]]),C1=t.defineComponent({__name:"TableBody",props:{class:{}},setup(e){const a=e;return(n,i)=>(t.openBlock(),t.createElementBlock("tbody",{class:t.normalizeClass(t.unref(At)(a.class))},[t.renderSlot(n.$slots,"default")],2))}}),E1=R(t.defineComponent({__name:"TableCell",props:{class:{},ellipsis:{type:Boolean,default:!1},width:{}},setup(e){const a=e;return(n,i)=>(t.openBlock(),t.createElementBlock("td",{class:t.normalizeClass(t.unref(At)("unnnic-table-cell",{"unnnic-table-cell--ellipsis":a.ellipsis},a.class)),style:t.normalizeStyle({width:a.width})},[t.renderSlot(n.$slots,"default",{},void 0,!0)],6))}}),[["__scopeId","data-v-8ab2c1d0"]]),A1=R(t.defineComponent({__name:"TableHead",props:{class:{},ellipsis:{type:Boolean,default:!1},width:{}},setup(e){const a=e;return(n,i)=>(t.openBlock(),t.createElementBlock("th",{class:t.normalizeClass(t.unref(At)("unnnic-table-head",{"unnnic-table-head--ellipsis":a.ellipsis},a.class)),style:t.normalizeStyle({width:a.width})},[t.renderSlot(n.$slots,"default",{},void 0,!0)],6))}}),[["__scopeId","data-v-e96c2cbc"]]),x1=R(t.defineComponent({__name:"TableHeader",props:{class:{}},setup(e){const a=e;return(n,i)=>(t.openBlock(),t.createElementBlock("thead",{class:t.normalizeClass(t.unref(At)("unnnic-table-header",a.class))},[t.renderSlot(n.$slots,"default",{},void 0,!0)],2))}}),[["__scopeId","data-v-363df9eb"]]),hx=["tabindex"],mx=R(t.defineComponent({__name:"TableRow",props:{class:{}},emits:["click"],setup(e){const a=e,n=t.useAttrs(),i=t.computed(()=>!!n.onClick);return(r,s)=>(t.openBlock(),t.createElementBlock("tr",{tabindex:i.value?0:void 0,class:t.normalizeClass(t.unref(At)("unnnic-table-row","transition-colors data-[state=selected]:bg-muted",i.value&&"cursor-pointer",a.class)),onKeydown:[s[0]||(s[0]=t.withKeys(u=>i.value&&r.$emit("click",u),["enter"])),s[1]||(s[1]=t.withKeys(t.withModifiers(u=>i.value&&r.$emit("click",u),["prevent"]),["space"]))]},[t.renderSlot(r.$slots,"default",{},void 0,!0)],42,hx))}}),[["__scopeId","data-v-83c011a0"]]),Fx={name:"UnnnicTable",components:{UiTable:gx},provide(){return{unnnicTableVersion:t.computed(()=>this.version)}},inheritAttrs:!1,props:{items:{type:Array},version:{type:String,default:"1"}},data(){return{value:!1}},computed:{}},px={key:1,class:"unnnic-table"},bx={class:"header"},yx={class:"scroll"};function kx(e,a,n,i,r,s){const u=t.resolveComponent("UiTable");return n.version==="2"?(t.openBlock(),t.createBlock(u,t.normalizeProps(t.mergeProps({key:0},e.$attrs)),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3},16)):(t.openBlock(),t.createElementBlock("div",px,[t.createElementVNode("div",bx,[t.renderSlot(e.$slots,"header",{},void 0,!0)]),a[0]||(a[0]=t.createElementVNode("div",null,[t.createElementVNode("div",{class:"item-spacer"})],-1)),t.createElementVNode("div",yx,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.items,(d,c)=>(t.openBlock(),t.createElementBlock("div",{key:c,class:"item"},[t.renderSlot(e.$slots,"item",{item:d},void 0,!0)]))),128))])]))}const B1=R(Fx,[["render",kx],["__scopeId","data-v-f213dd07"]]),wx={name:"UnnnicTableRow",components:{UiTableRow:mx},inheritAttrs:!1,props:{headers:{type:Array}},setup(){const e=t.inject("unnnicTableVersion","1");return{isVersion2:t.computed(()=>t.unref(e)==="2")}}},Dx={class:"break-text"};function Cx(e,a,n,i,r,s){const u=t.resolveComponent("UiTableRow");return i.isVersion2?(t.openBlock(),t.createBlock(u,t.normalizeProps(t.mergeProps({key:0},e.$attrs)),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3},16)):(t.openBlock(),t.createElementBlock("div",t.mergeProps({key:1,class:"table-row"},e.$attrs),[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.headers,(d,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:d.id},[t.createElementVNode("div",{class:"col",style:t.normalizeStyle({width:d.width,flex:d.flex,minWidth:0})},[t.renderSlot(e.$slots,d.id,{},()=>[t.createElementVNode("div",Dx,t.toDisplayString(d.text),1)],!0)],4),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(["divider",{condensed:d.condensed}])},null,2),[[t.vShow,c+1!==n.headers.length]])],64))),128))],16))}const v1=R(wx,[["render",Cx],["__scopeId","data-v-b5deec9c"]]);function Mm(e){return t.getCurrentScope()?(t.onScopeDispose(e),!0):!1}function wo(e){return typeof e=="function"?e():t.unref(e)}const Pm=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Ex=Object.prototype.toString,Ax=e=>Ex.call(e)==="[object Object]",Do=()=>{},j1=xx();function xx(){var e,a;return Pm&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((a=window==null?void 0:window.navigator)==null?void 0:a.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}const Lm={mounted:"mounted",unmounted:"unmounted"};function Bx(...e){if(e.length!==1)return t.toRef(...e);const a=e[0];return typeof a=="function"?t.readonly(t.customRef(()=>({get:a,set:Do}))):t.ref(a)}function Co(e){var a;const n=wo(e);return(a=n==null?void 0:n.$el)!=null?a:n}const Vm=Pm?window:void 0;function rl(...e){let a,n,i,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,i,r]=e,a=Vm):[a,n,i,r]=e,!a)return Do;Array.isArray(n)||(n=[n]),Array.isArray(i)||(i=[i]);const s=[],u=()=>{s.forEach(g=>g()),s.length=0},d=(g,h,F,p)=>(g.addEventListener(h,F,p),()=>g.removeEventListener(h,F,p)),c=t.watch(()=>[Co(a),wo(r)],([g,h])=>{if(u(),!g)return;const F=Ax(h)?{...h}:h;s.push(...n.flatMap(p=>i.map(y=>d(g,p,y,F))))},{immediate:!0,flush:"post"}),_=()=>{c(),u()};return Mm(_),_}let Rm=!1;function zm(e,a,n={}){const{window:i=Vm,ignore:r=[],capture:s=!0,detectIframe:u=!1}=n;if(!i)return Do;j1&&!Rm&&(Rm=!0,Array.from(i.document.body.children).forEach(F=>F.addEventListener("click",Do)),i.document.documentElement.addEventListener("click",Do));let d=!0;const c=F=>r.some(p=>{if(typeof p=="string")return Array.from(i.document.querySelectorAll(p)).some(y=>y===F.target||F.composedPath().includes(y));{const y=Co(p);return y&&(F.target===y||F.composedPath().includes(y))}}),g=[rl(i,"click",F=>{const p=Co(e);if(!(!p||p===F.target||F.composedPath().includes(p))){if(F.detail===0&&(d=!c(F)),!d){d=!0;return}a(F)}},{passive:!0,capture:s}),rl(i,"pointerdown",F=>{const p=Co(e);d=!c(F)&&!!(p&&!F.composedPath().includes(p))},{passive:!0}),u&&rl(i,"blur",F=>{setTimeout(()=>{var p;const y=Co(e);((p=i.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!(y!=null&&y.contains(i.document.activeElement))&&a(F)},0)})].filter(Boolean);return()=>g.forEach(F=>F())}const ol={[Lm.mounted](e,a){const n=!a.modifiers.bubble;if(typeof a.value=="function")e.__onClickOutside_stop=zm(e,a.value,{capture:n});else{const[i,r]=a.value;e.__onClickOutside_stop=zm(e,i,Object.assign({capture:n},r))}},[Lm.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 Um(e){const a=window.getComputedStyle(e);if(a.overflowX==="scroll"||a.overflowY==="scroll"||a.overflowX==="auto"&&e.clientWidth<e.scrollWidth||a.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const n=e.parentNode;return!n||n.tagName==="BODY"?!1:Um(n)}}function vx(e){const a=e||window.event,n=a.target;return Um(n)?!1:a.touches.length>1?!0:(a.preventDefault&&a.preventDefault(),!1)}const q1=new WeakMap;function jx(e,a=!1){const n=t.ref(a);let i=null,r="";t.watch(Bx(e),d=>{const c=S1(wo(d));if(c){const _=c;if(q1.get(_)||q1.set(_,_.style.overflow),_.style.overflow!=="hidden"&&(r=_.style.overflow),_.style.overflow==="hidden")return n.value=!0;if(n.value)return _.style.overflow="hidden"}},{immediate:!0});const s=()=>{const d=S1(wo(e));!d||n.value||(j1&&(i=rl(d,"touchmove",c=>{vx(c)},{passive:!1})),d.style.overflow="hidden",n.value=!0)},u=()=>{const d=S1(wo(e));!d||!n.value||(j1&&(i==null||i()),d.style.overflow=r,q1.delete(d),n.value=!1)};return Mm(u),t.computed({get(){return n.value},set(d){d?s():u()}})}function Sx(){let e=!1;const a=t.ref(!1);return(n,i)=>{if(a.value=i.value,e)return;e=!0;const r=jx(n,i.value);t.watch(a,s=>r.value=s)}}Sx();const qx={name:"UnnnicDropdown",directives:{onClickOutside:ol},props:{useOpenProp:{type:Boolean,default:!1},open:{type:Boolean,default:!1},forceOpen:{type:Boolean,default:!1},position:{type:String,default:"bottom-left",validator(e){return["top-left","top-right","none","bottom-left","bottom-right"].indexOf(e)!==-1}}},emits:["update:open"],data(){return{active:!1}},watch:{open:{handler(){this.active=this.open},immediate:!0},active(){this.useOpenProp||this.$emit("update:open",this.active)}},methods:{onClickTrigger(){this.forceOpen||(this.useOpenProp?this.$emit("update:open",!this.open):this.active=!this.active)},onClickOutside(){if(!this.forceOpen){if(this.useOpenProp&&this.open){this.$emit("update:open",!1);return}this.active&&(this.active=!1)}}}},Tx={class:"unnnic-dropdown__trigger"};function Ix(e,a,n,i,r,s){const u=t.resolveDirective("on-click-outside");return t.openBlock(),t.createElementBlock("div",{class:"unnnic-dropdown",onClick:a[0]||(a[0]=t.withModifiers((...d)=>s.onClickTrigger&&s.onClickTrigger(...d),["stop"]))},[t.createElementVNode("div",Tx,[t.renderSlot(e.$slots,"trigger",{},void 0,!0),(n.useOpenProp?n.open:r.active)?t.withDirectives((t.openBlock(),t.createElementBlock("div",{key:0,"data-testid":"dropdown-content",class:t.normalizeClass(["unnnic-dropdown__content",n.useOpenProp?n.open:r.active?"":"unnnic-dropdown__content--hidden",`unnnic-dropdown__content__position-${n.position}`])},[t.renderSlot(e.$slots,"default",{},void 0,!0)],2)),[[u,s.onClickOutside]]):t.createCommentVNode("",!0)])])}const Eo=R(qx,[["render",Ix],["__scopeId","data-v-2f5344c2"]]),Nx={name:"UnnnicDropdownItem"},Ox={class:"unnnic-dropdown-item unnnic--clickable","data-testid":"dropdown-item"};function Mx(e,a,n,i,r,s){return t.openBlock(),t.createElementBlock("a",Ox,[t.renderSlot(e.$slots,"default")])}const sl=R(Nx,[["render",Mx]]),Ni=R(t.defineComponent({name:"UnnnicAvatarIcon",__name:"AvatarIcon",props:{enabled:{type:Boolean,default:!0},icon:{default:"graph-stats-1"},size:{default:"sm"},scheme:{default:"fg-info"},filled:{type:Boolean,default:!1},opacity:{type:Boolean,default:!0}},setup(e){const a=e,n=t.computed(()=>({nano:"xs",xs:"sm",sm:"md",lg:"lg",xl:"xl"})[a.size]);return(i,r)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["unnnic-avatar-icon",i.scheme,i.size,{disabled:!i.enabled},i.filled,{opacity:!i.opacity}])},[t.createVNode(be,{icon:i.icon,scheme:i.enabled?i.scheme:"fg-base",size:n.value,filled:i.filled},null,8,["icon","scheme","size","filled"])],2))}}),[["__scopeId","data-v-bb67e89b"]]),Px={name:"UnnnicCard",components:{UnnnicIcon:be,UnnnicAvatarIcon:Ni},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"}}},Lx={class:"unnnic-card-dash"},Vx={class:"header"},Rx={class:"label"},zx={class:"content"},Ux={class:"value"},Hx={class:"label"};function Yx(e,a,n,i,r,s){const u=t.resolveComponent("UnnnicAvatarIcon"),d=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createElementBlock("div",Lx,[t.createElementVNode("div",Vx,[t.createVNode(u,{size:"sm",scheme:n.scheme,icon:n.icon},null,8,["scheme","icon"]),t.createElementVNode("div",Rx,t.toDisplayString(n.title),1)]),t.createElementVNode("div",zx,[t.createElementVNode("div",Ux,t.toDisplayString(n.value),1),n.percent?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["percent",`unnnic-card-scheme--feedback-${s.color}`])},[t.createVNode(d,{icon:`graph-stats-${n.percent>=0?"ascend":"descend"}-2`,scheme:`feedback-${s.color}`,size:"sm",class:"icon"},null,8,["icon","scheme"]),t.createElementVNode("div",Hx,t.toDisplayString(n.percent>=0?`+${n.percent}%`:`${n.percent}%`),1)],2)):t.createCommentVNode("",!0)])])}const Gx=R(Px,[["render",Yx],["__scopeId","data-v-32f9b938"]]),Wx={name:"UnnnicCard",components:{ToolTip:la,UnnnicIcon:be},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}}},$x={class:"unnnic-card-title"},Qx={class:"title"};function Kx(e,a,n,i,r,s){const u=t.resolveComponent("UnnnicIcon"),d=t.resolveComponent("ToolTip");return t.openBlock(),t.createElementBlock("div",$x,[t.createElementVNode("div",{class:t.normalizeClass(["avatar-icon",`unnnic-card-scheme--${n.scheme}`])},[t.createVNode(u,{icon:n.icon,scheme:n.scheme,size:"md"},null,8,["icon","scheme"])],2),t.createElementVNode("div",Qx,t.toDisplayString(n.title),1),n.hasInformationIcon?(t.openBlock(),t.createBlock(d,{key:0,class:"information",side:n.infoPosition,text:n.info,enabled:n.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 Hm=R(Wx,[["render",Kx],["__scopeId","data-v-ff5285fa"]]),Xx={name:"UnnnicCard",components:{UnnnicIcon:be},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}}},Zx={class:"header"},Jx={class:"label"},eB={class:"content"},tB={class:"title-container"},aB={class:"title"},nB={class:"description"};function iB(e,a,n,i,r,s){const u=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["unnnic-card-status",`unnnic-card-scheme--${n.scheme}--border`])},[t.createElementVNode("div",Zx,[t.createVNode(u,{icon:n.icon,scheme:"fg-base",size:"md",class:"icon"},null,8,["icon"]),t.createElementVNode("div",Jx,t.toDisplayString(n.title),1)]),t.createElementVNode("div",eB,[t.createElementVNode("div",tB,[t.createVNode(u,{icon:"indicator",scheme:n.scheme,size:"sm"},null,8,["scheme"]),t.createElementVNode("div",aB,t.toDisplayString(n.status),1)]),t.createElementVNode("div",nB,t.toDisplayString(n.description),1)])],2)}const rB=R(Xx,[["render",iB],["__scopeId","data-v-784b6871"]]),oB={name:"UnnnicCard",components:{UnnnicAvatarIcon:Ni},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}}},sB={class:"icon"},lB={class:"content"},uB={class:"title"},dB={class:"description"};function cB(e,a,n,i,r,s){const u=t.resolveComponent("UnnnicAvatarIcon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass({"unnnic-card-account":!0,enabled:n.enabled})},[t.createElementVNode("div",sB,[t.createVNode(u,{size:"xs",scheme:n.scheme,icon:n.icon,enabled:n.enabled},null,8,["scheme","icon","enabled"])]),t.createElementVNode("div",lB,[t.createElementVNode("div",uB,t.toDisplayString(n.title),1),t.createElementVNode("div",dB,t.toDisplayString(n.description),1)])],2)}const fB=R(oB,[["render",cB],["__scopeId","data-v-cd0328b9"]]),_B={name:"UnnnicCard",props:{title:{type:String,default:null},description:{type:String,default:null},clickable:{type:Boolean,default:!1}}},gB={class:"unnnic-card-default__content"},hB={class:"unnnic-card-default__title"},mB=["title"];function FB(e,a,n,i,r,s){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass({"unnnic-card-default":!0,"unnnic-card-default__clickable":n.clickable})},[t.createElementVNode("div",gB,[t.createElementVNode("div",hB,t.toDisplayString(n.title),1),t.createElementVNode("p",{class:"unnnic-card-default__description",title:n.description},t.toDisplayString(n.description),9,mB)])],2)}const pB=R(_B,[["render",FB]]),bB={name:"UnnnicCard",components:{UnnnicIcon:be},props:{text:{type:String,default:null},icon:{type:String,default:null},clickable:{type:Boolean,default:!1}}},yB={class:"unnnic-card-blank__content"},kB={class:"unnnic-card-blank__content__text"};function wB(e,a,n,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":n.clickable})},[t.createElementVNode("div",yB,[t.createVNode(u,{icon:n.icon,scheme:"fg-base",class:"unnnic-card-blank__content__icon",size:"xl"},null,8,["icon"]),t.createElementVNode("div",kB,t.toDisplayString(n.text),1)])],2)}const DB=R(bB,[["render",wB]]),CB={name:"UnnnicCard",components:{UnnnicIcon:be},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}}},EB={class:"unnnic-card-content__content"},AB={class:"unnnic-card-content__content__title"},xB={class:"unnnic-card-content__content__description"};function BB(e,a,n,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":!n.enabled,"unnnic-card-content__clickable":n.clickable})},[t.createElementVNode("div",{class:t.normalizeClass(["unnnic-card-content__icon",n.enabled&&"unnnic-card-content__icon--disabled"])},[t.createVNode(u,{icon:n.icon,scheme:"fg-base",size:"sm"},null,8,["icon"])],2),t.createElementVNode("div",EB,[t.createElementVNode("div",AB,t.toDisplayString(n.title),1),t.createElementVNode("div",xB,t.toDisplayString(n.description),1)])],2)}const vB=R(CB,[["render",BB]]),jB={name:"UnnnicCard",components:{UnnnicIcon:be},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")}}},SB={class:t.normalizeClass(["unnnic-card-marketplace__icons"])},qB=["src"],TB={class:"unnnic-card-marketplace__content"},IB={class:"unnnic-card-marketplace__content__title"},NB=["title"],OB={key:0,class:"unnnic-card-marketplace__content__rating"},MB={class:"unnnic-card-marketplace__content__rating__value"},PB={class:"unnnic-card-marketplace__content__rating__comments"};function LB(e,a,n,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":n.clickable,"unnnic-card-marketplace__add":n.typeAction==="add","unnnic-card-marketplace__config":n.typeAction==="config","unnnic-card-marketplace__edit":n.typeAction==="edit"}),onClick:a[0]||(a[0]=(...d)=>s.cardClick&&s.cardClick(...d))},[t.createElementVNode("div",SB,[t.createElementVNode("img",{class:"unnnic-card-marketplace__icons__app",src:n.iconSrc},null,8,qB),t.renderSlot(e.$slots,"actions")]),t.createElementVNode("div",TB,[t.createElementVNode("div",IB,t.toDisplayString(n.title),1),t.createElementVNode("div",{class:"unnnic-card-marketplace__content__description",title:n.description},t.toDisplayString(n.description),9,NB),n.typeAction==="add"?(t.openBlock(),t.createElementBlock("div",OB,[t.createVNode(u,{class:"unnnic-card-marketplace__content__rating__star",scheme:"feedback-yellow",icon:"rating-star-1",size:"ant",filled:""}),t.createElementVNode("div",MB,t.toDisplayString(n.rating),1),t.createElementVNode("div",PB," ("+t.toDisplayString(n.comments)+") ",1)])):t.createCommentVNode("",!0)])],2)}const VB=R(jB,[["render",LB]]),RB={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"?Hm:this.type==="dash"?Gx:this.type==="status"?rB:this.type==="account"?fB:this.type==="default"?pB:this.type==="blank"?DB:this.type==="content"?vB:this.type==="marketplace"?VB:Hm}},methods:{openModal(){this.$emit("openModal")}}};function zB(e,a,n,i,r,s){return t.openBlock(),t.createBlock(t.resolveDynamicComponent(s.currentComponent),t.mergeProps({class:"unnnic-card-component"},e.$attrs,{title:n.title,text:n.text,info:n.info,icon:s.currentTypeIcon,iconSrc:n.iconSrc,rating:n.rating,comments:n.comments,typeAction:n.typeAction,buttonAction:n.buttonAction,value:n.value,percent:n.percent,invertedPercentage:n.invertedPercentage||null,status:n.status,description:n.description,infoPosition:n.infoPosition,enabled:n.enabled,scheme:n.scheme,clickable:n.clickable||null,hasInformationIcon:n.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 T1=R(RB,[["render",zB]]),I1={name:"UnnnicSimpleCard",components:{UnnnicToolTip:la,UnnnicIcon:be},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"]},Ym=()=>{t.useCssVars(e=>({"503b66d5":e.titleSize}))},Gm=I1.setup;I1.setup=Gm?(e,a)=>(Ym(),Gm(e,a)):Ym;const UB={key:0,class:"unnnic-simple-card__header"},HB={class:"unnnic-simple-card-header-container"},YB={class:"unnnic-simple-card-header-container__title"},GB={key:0,class:"unnnic-simple-card__header-slot"},WB=["title"],$B={key:2,class:"unnnic-simple-card__footer"};function QB(e,a,n,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":n.clickable}),onClick:a[0]||(a[0]=t.withModifiers(c=>n.clickable&&e.$emit("click"),["stop"]))},[n.title||e.$slots.headerSlot?(t.openBlock(),t.createElementBlock("section",UB,[t.createElementVNode("section",HB,[t.createElementVNode("h1",YB,t.toDisplayString(n.title),1),n.titleTooltip?(t.openBlock(),t.createBlock(d,{key:0,text:n.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",GB,[t.renderSlot(e.$slots,"headerSlot",{},void 0,!0)])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),n.text?(t.openBlock(),t.createElementBlock("p",{key:1,class:"unnnic-simple-card__text",title:n.text},t.toDisplayString(n.text),9,WB)):t.createCommentVNode("",!0),e.$slots.footer?(t.openBlock(),t.createElementBlock("section",$B,[t.renderSlot(e.$slots,"footer",{},void 0,!0)])):t.createCommentVNode("",!0)],2)}const N1=R(I1,[["render",QB],["__scopeId","data-v-29a7f9ca"]]),Ja={props:{locale:{type:String},translations:{type:Object}},methods:{i18n(...e){const[a,n]=e,i=Object.keys(ko.global.messages);let{locale:r}=this;const s=$t.get(ko,"global.locale")==="en-us"?"en":$t.get(ko,"global.locale");r=i.includes(r)?r:s,r=r==null?void 0:r.toLowerCase();let u=$t.get(this.translations,`${a}.${r}`,$t.get(this.translations,a));if(u||(u=$t.get($t.get(this.defaultTranslations,a),r,n)),u!=null&&u.includes("|")&&typeof e[1]=="number"){const c=e[1],_=u.split("|");_.length===3?u=_[c]||_[2]:_.length===2&&(u=c===1?_[0]:_[1])}let d={};return Object.values(e).slice(1).forEach(c=>{!(c instanceof Array)&&c instanceof Object&&(d=c)}),Object.keys(d).forEach(c=>{u=u==null?void 0:u.replaceAll(new RegExp(`{ *${c} *}`,"g"),d[c])}),u}}},KB={class:"chip__text"},ll=R(t.defineComponent({__name:"Chip",props:{isSelected:{type:Boolean},text:{},count:{},type:{},isClickable:{type:Boolean},onClick:{type:Function}},emits:["click"],setup(e,{emit:a}){const n=e,i=a,r=c=>{i("click",c)},s=t.computed(()=>!n.isSelected),u=t.computed(()=>n.isSelected?"chip__count--is-selected":""),d=t.computed(()=>n.isSelected?"chip--is-selected":"");return(c,_)=>(t.openBlock(),t.createElementBlock("section",{class:t.normalizeClass(["chip",d.value,{"chip--border":s.value,"chip--is-clickable":c.isClickable}]),onClick:r},[t.createElementVNode("p",KB,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(be,{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"]]),XB={key:0,class:"unnnic-tag__icon"},ZB={class:t.normalizeClass("unnnic-tag__label")},JB=R(t.defineComponent({__name:"DefaultTag",props:{text:{default:void 0},size:{default:"medium"},scheme:{default:"aux-purple"},leftIcon:{default:void 0}},setup(e){const a=e,n=[{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=a.scheme.toLowerCase(),s=n.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}`),style:t.normalizeStyle({backgroundColor:i.value})},[r.leftIcon?(t.openBlock(),t.createElementBlock("section",XB,[t.createVNode(be,{icon:r.leftIcon,scheme:"fg-emphasized",size:"sm"},null,8,["icon"])])):t.createCommentVNode("",!0),t.createElementVNode("p",ZB,t.toDisplayString(r.text),1)],6))}}),[["__scopeId","data-v-299f2efd"]]),Ao=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(a,n)=>a.type==="brand"||a.hasCloseIcon?(t.openBlock(),t.createBlock(ll,{key:0,text:a.text,type:"multiple",isSelected:a.disabled||a.hasCloseIcon,isClickable:"",onClick:n[0]||(n[0]=i=>a.hasCloseIcon?a.$emit("close"):a.$emit("click"))},null,8,["text","isSelected"])):(t.openBlock(),t.createBlock(JB,{key:1,size:a.type==="next"?"small":a.size,text:a.text,scheme:a.scheme,leftIcon:a.leftIcon},null,8,["size","text","scheme","leftIcon"]))}}),ev={components:{UnnnicTag:Ao},mixins:[Ja],props:{oldVersion:Boolean,name:String,description:String,plan:String,actionText:String},data(){return{isOptionsOpen:!1}}},tv={class:"name"},av={class:"description"},nv={key:1};function iv(e,a,n,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":n.oldVersion}]),onClick:a[3]||(a[3]=_=>e.$emit("enter"))},[t.createElementVNode("div",null,[t.createElementVNode("h2",tv,t.toDisplayString(n.name),1),t.createElementVNode("p",av,t.toDisplayString(n.description),1),n.plan?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["tag",n.plan])},t.toDisplayString(e.i18n(`plans.${n.plan}`)),3)):t.createCommentVNode("",!0)]),n.actionText?(t.openBlock(),t.createBlock(u,{key:0,class:"action",clickable:"",text:n.actionText,scheme:"aux-blue",onClick:a[0]||(a[0]=_=>e.$emit("action"))},null,8,["text"])):t.createCommentVNode("",!0),e.$slots.options?(t.openBlock(),t.createElementBlock("div",nv,[t.createVNode(c,{open:r.isOptionsOpen,"onUpdate:open":a[1]||(a[1]=_=>r.isOptionsOpen=_),class:"unnnic-dropdown",onClick:a[2]||(a[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 O1=R(ev,[["render",iv],["__scopeId","data-v-dac06e20"]]),rv={components:{UnnnicIcon:be},props:{title:{type:String},description:{type:String},score:{type:String},info:{type:String},checked:{type:Boolean,default:!1}}},ov={class:"card"},sv={class:"header"},lv={class:"title"},uv={key:0,class:"check"},dv={class:"description"},cv={key:0,class:"footer"},fv={class:"evaluation"},_v={class:"info"};function gv(e,a,n,i,r,s){const u=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createElementBlock("div",ov,[t.createElementVNode("div",sv,[t.createElementVNode("div",lv,t.toDisplayString(n.title),1),n.checked?(t.openBlock(),t.createElementBlock("div",uv,[t.createVNode(u,{size:"md",icon:"check-circle-1-1-1",scheme:"feedback-green"})])):t.createCommentVNode("",!0)]),t.createElementVNode("div",dv,t.toDisplayString(n.description),1),n.score||n.info?(t.openBlock(),t.createElementBlock("div",cv,[t.createElementVNode("div",fv,[n.score?(t.openBlock(),t.createBlock(u,{key:0,size:"sm",icon:"rating-star-1",scheme:"feedback-yellow"})):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(n.score)+" ",1),t.createElementVNode("span",_v,t.toDisplayString(n.info),1)])])):t.createCommentVNode("",!0)])}const M1=R(rv,[["render",gv],["__scopeId","data-v-0ebd61ad"]]),hv={class:"unnnic-checkbox"},mv=["disabled","checked"],Fv={key:0,class:"unnnic-checkbox__helper"},Er=R(t.defineComponent({name:"UnnnicCheckbox",__name:"Checkbox",props:{modelValue:{type:[Boolean,String],default:!1},disabled:{type:Boolean,default:!1},label:{default:""},helper:{default:""},textRight:{default:""}},emits:["change","update:model-value"],setup(e,{emit:a}){const n=e,i=a,r=t.useAttrs(),s=t.computed(()=>n.modelValue===!0?"checked":n.modelValue===!1?"default":"less");function u(){const d=["checked","less"].includes(s.value);i("change",!d),i("update:model-value",!d)}return(d,c)=>(t.openBlock(),t.createElementBlock("section",hv,[t.createElementVNode("label",{class:t.normalizeClass(["unnnic-checkbox__input-wrapper",{"unnnic-checkbox__input-wrapper--disabled":d.disabled}])},[t.createElementVNode("input",t.mergeProps({class:["unnnic-checkbox__input",{"unnnic-checkbox__input--less":d.modelValue==="less"}],type:"checkbox",disabled:d.disabled,checked:d.modelValue==="less"||d.modelValue},t.unref($t.pick)(t.unref(r),["id","name"]),{onChange:u}),null,16,mv),d.label||d.textRight?(t.openBlock(),t.createElementBlock("p",{key:0,class:t.normalizeClass(["unnnic-checkbox__label",{"unnnic-checkbox__label--disabled":d.disabled}]),"data-testid":"checkbox-text-right"},t.toDisplayString(d.label||d.textRight),3)):t.createCommentVNode("",!0)],2),d.helper?(t.openBlock(),t.createElementBlock("p",Fv,t.toDisplayString(d.helper),1)):t.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-bcd5de2d"]]),pv={components:{UnnnicIcon:be,UnnnicCheckbox:Er,UnnnicAvatarIcon:Ni,UnnnicDropdown:Eo},props:{modelValue:Boolean,title:String,description:String,image:String,data:{type:Array,default(){return[]}}}},bv={class:"header"},yv={class:"content"},kv={key:0,class:"u font secondary body-lg bold color-fg-emphasized"},wv={key:1,class:"u font secondary body-md color-fg-base"},Dv=["src"],Cv={key:0,class:"details"},Ev={class:"u font secondary body-gt color-fg-base"},Av={class:"value-container"},xv={class:"u font secondary body-gt color-fg-emphasized"};function Bv(e,a,n,i,r,s){const u=t.resolveComponent("UnnnicCheckbox"),d=t.resolveComponent("UnnnicIcon"),c=t.resolveComponent("UnnnicDropdown"),_=t.resolveComponent("UnnnicAvatarIcon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["unnnic-card-image",{checked:n.modelValue}])},[t.createElementVNode("div",bv,[t.createElementVNode("div",yv,[n.title?(t.openBlock(),t.createElementBlock("div",kv,t.toDisplayString(n.title),1)):t.createCommentVNode("",!0),n.description?(t.openBlock(),t.createElementBlock("div",wv,t.toDisplayString(n.description),1)):t.createCommentVNode("",!0)]),t.createVNode(u,{modelValue:n.modelValue,onChange:a[0]||(a[0]=g=>e.$emit("update:model-value",g))},null,8,["modelValue"]),e.$slots.actions?(t.openBlock(),t.createBlock(c,{key:0,position:"bottom-left"},{trigger:t.withCtx(()=>[t.createVNode(d,{icon:"navigation-menu-vertical-1",size:"sm",scheme:"fg-muted",clickable:""})]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"actions",{},void 0,!0)]),_:3})):t.createCommentVNode("",!0)]),t.createElementVNode("img",{class:"image",src:n.image},null,8,Dv),n.data.length?(t.openBlock(),t.createElementBlock("div",Cv,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.data,(g,h)=>(t.openBlock(),t.createElementBlock("div",{key:h,class:"data"},[t.createElementVNode("div",Ev,t.toDisplayString(g.name),1),t.createElementVNode("div",Av,[t.createVNode(_,{icon:g.icon,size:"xs",scheme:g.scheme},null,8,["icon","scheme"]),t.createElementVNode("div",xv,t.toDisplayString(g.value),1)])]))),128))])):t.createCommentVNode("",!0)],2)}const P1=R(pv,[["render",Bv],["__scopeId","data-v-d331e392"]]),vv={components:{UnnnicIcon:be,UnnnicDropdown:Eo,UnnnicDropdownItem:sl},mixins:[Ja],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 a,n;const e=(n=(a=this.$slots).actions)==null?void 0:n.call(a);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)}}},jv={class:"unnnic-card-project__header"},Sv=["title"],qv={class:"unnnic-card-project__description"},Tv=["title"],Iv={class:"unnnic-card-project__bottom"},Nv={class:"unnnic-card-project__status-options-container"};function Ov(e,a,n,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":n.clickable,"unnnic-card-project--inactive":n.status==="INACTIVE"}),"data-testid":"unnnic-card-project",onClick:[a[2]||(a[2]=t.withModifiers((..._)=>s.emitClick&&s.emitClick(..._),["left","exact"])),a[4]||(a[4]=t.withModifiers(_=>s.emitClick({button:1}),["ctrl"]))],onMouseup:a[3]||(a[3]=t.withModifiers((..._)=>s.emitClick&&s.emitClick(..._),["middle","exact","prevent"]))},[t.createElementVNode("section",jv,[t.createElementVNode("h1",{title:n.name,class:t.normalizeClass({"unnnic-card-project__title":!0,"unnnic-card-project__title--inactive":n.status==="INACTIVE"}),"data-testid":"card-project-title"},t.toDisplayString(n.name),11,Sv),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",qv,[t.createElementVNode("p",{title:n.description,class:t.normalizeClass({"unnnic-card-project__description":!0,"unnnic-card-project__description--inactive":n.status==="INACTIVE"})},t.toDisplayString(n.description),11,Tv)]),t.createElementVNode("section",Iv,[t.createElementVNode("section",{class:t.normalizeClass(["unnnic-card-project__status-chip",`unnnic-card-project__status-chip--${n.status}`]),"data-testid":"project-status-chip",onClick:a[1]||(a[1]=t.withModifiers(_=>s.handlerDropdownOpen(),["stop"]))},[t.createElementVNode("p",null,t.toDisplayString(e.i18n(n.status)),1),n.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":a[0]||(a[0]=_=>r.openDropdown=_)},{default:t.withCtx(()=>[t.createElementVNode("section",Nv,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.statusOptions,_=>(t.openBlock(),t.createBlock(c,{key:_,class:"status-option",onClick:g=>s.handlerClickDropdownItem(_)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.i18n(_)),1)]),_:2},1032,["onClick"]))),128))])]),_:1},8,["open"])],2)])],34)}const L1=R(vv,[["render",Ov],["__scopeId","data-v-e9dc5349"]]),Mv={components:{UnnnicAvatarIcon:Ni,UnnnicToolTip:la,UnnnicIcon:be},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*Hr}}},Pv={class:"unnnic-card-container"},Lv={class:"header"},Vv={class:"title"},Rv=["title"],zv={key:0,class:"subtitle"},Uv={key:0,class:"description"},Hv={key:1,class:"description-row-container"},Yv={key:0,class:"description-row"},Gv={class:"title"},Wv={class:"content"},$v={class:"number"};function Qv(e,a,n,i,r,s){const u=t.resolveComponent("UnnnicIcon"),d=t.resolveComponent("UnnnicToolTip"),c=t.resolveComponent("UnnnicAvatarIcon");return t.openBlock(),t.createElementBlock("div",Pv,[t.createElementVNode("div",Lv,[t.createElementVNode("div",Vv,[t.createElementVNode("span",{class:"name",title:n.name.length>25?n.name:null},t.toDisplayString(n.name),9,Rv),n.subtitle?(t.openBlock(),t.createElementBlock("div",zv,t.toDisplayString(n.subtitle),1)):t.createCommentVNode("",!0)]),t.renderSlot(e.$slots,"header-buttons",{},void 0,!0)]),n.description?(t.openBlock(),t.createElementBlock("div",Uv,t.toDisplayString(n.description),1)):t.createCommentVNode("",!0),n.descriptionRow||n.descriptionRowInfo?(t.openBlock(),t.createElementBlock("div",Hv,[n.descriptionRow?(t.openBlock(),t.createElementBlock("div",Yv,t.toDisplayString(n.descriptionRow),1)):t.createCommentVNode("",!0),n.descriptionRowInfo?(t.openBlock(),t.createBlock(d,{key:1,side:"top",text:n.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),a[0]||(a[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(${n.minStatusWidth}, 1fr))`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.statuses,(_,g)=>(t.openBlock(),t.createElementBlock("div",{key:g,class:"status"},[t.createElementVNode("div",Gv,t.toDisplayString(_.title),1),t.createElementVNode("div",Wv,[t.createVNode(c,{icon:_.icon,scheme:_.scheme,size:"xs"},null,8,["icon","scheme"]),t.createElementVNode("div",$v,t.toDisplayString(_.count),1)])]))),128))],4)])}const Kv={components:{CardStatusesContainer:R(Mv,[["render",Qv],["__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:Hr}}};function Xv(e,a,n,i,r,s){const u=t.resolveComponent("CardStatusesContainer");return t.openBlock(),t.createBlock(u,{class:"unnnic-card-information",name:n.name,subtitle:n.subtitle,description:n.description,descriptionRow:n.descriptionRow,descriptionRowInfo:n.descriptionRowInfo,statuses:n.statuses,minStatusWidth:8.75*r.unnnicFontSize+"px"},null,8,["name","subtitle","description","descriptionRow","descriptionRowInfo","statuses","minStatusWidth"])}const V1=R(Kv,[["render",Xv],["__scopeId","data-v-ee17403c"]]),Zv={class:"unnnic-checkbox-group__checkboxes"},Jv={key:1,class:"unnnic-checkbox-group__helper"},R1=R(t.defineComponent({name:"UnnnicCheckboxGroup",__name:"CheckboxGroup",props:{state:{default:"horizontal"},label:{default:""},labelTooltip:{default:void 0},helper:{default:""}},setup(e){return(a,n)=>(t.openBlock(),t.createElementBlock("section",{class:t.normalizeClass(["unnnic-checkbox-group__container",`unnnic-checkbox-group--state-${a.state}`])},[a.label?(t.openBlock(),t.createBlock(Ci,{key:0,label:a.label,tooltip:a.labelTooltip},null,8,["label","tooltip"])):t.createCommentVNode("",!0),t.createElementVNode("section",Zv,[t.renderSlot(a.$slots,"default",{},void 0,!0)]),a.helper?(t.openBlock(),t.createElementBlock("footer",Jv,t.toDisplayString(a.helper),1)):t.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-f03f56c7"]]),ej={class:"unnnic-collapse__body"},z1=R({__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:a}){const n=e,i=a,r=t.ref(!1);return t.watch(r,s=>{i("change",s),i("update:modelValue",s)}),t.watch(()=>n.active,s=>{r.value=s},{immediate:!0}),t.watch(()=>n.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(be,{size:"ant",icon:r.value?"arrow-button-up-1":"arrow-button-down-1",scheme:"fg-base"},null,8,["icon"])]),t.withDirectives(t.createElementVNode("div",ej,[t.renderSlot(s.$slots,"default",{},void 0,!0)],512),[[t.vShow,r.value]])],2))}},[["__scopeId","data-v-cc0e62a7"]]),tj={class:"unnnic-radio"},aj=["disabled","checked","name"],nj={key:0,class:"unnnic-radio__helper"},U1=R(t.defineComponent({name:"UnnnicRadio",__name:"Radio",props:{modelValue:{default:""},value:{default:""},disabled:{type:Boolean,default:!1},label:{default:""},name:{default:""},helper:{default:""}},emits:["update:modelValue"],setup(e,{emit:a}){const n=e,i=a,r=t.useAttrs(),s=t.inject("contextModelValue",void 0),u=t.inject("contextName",void 0);function d(){n.disabled||(i("update:modelValue",n.value),s&&(s.value=n.value))}const c=t.computed(()=>(s==null?void 0:s.value)||n.modelValue),_=t.computed(()=>(u==null?void 0:u.value)||n.name);return(g,h)=>(t.openBlock(),t.createElementBlock("section",tj,[t.createElementVNode("label",{class:t.normalizeClass(["unnnic-radio__input-wrapper",{"unnnic-radio__input-wrapper--disabled":g.disabled}])},[t.createElementVNode("input",t.mergeProps({class:"unnnic-radio__input",type:"radio",disabled:g.disabled,checked:c.value===g.value,name:_.value},t.unref($t.pick)(t.unref(r),["id"]),{onChange:d}),null,16,aj),t.createElementVNode("p",{class:t.normalizeClass(["unnnic-radio__label",{"unnnic-radio__label--disabled":g.disabled}])},[t.createTextVNode(t.toDisplayString(g.label)+" ",1),t.renderSlot(g.$slots,"default",{},void 0,!0)],2),g.helper?(t.openBlock(),t.createElementBlock("footer",nj,t.toDisplayString(g.helper),1)):t.createCommentVNode("",!0)],2)]))}}),[["__scopeId","data-v-5a197c2a"]]),ij={class:"unnnic-radio-group__radios"},rj={key:1,class:"unnnic-radio-group__helper"},H1=R(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:a}){const n=e,i=a,r=t.ref(n.modelValue);t.watch(()=>n.modelValue,u=>{u!==r.value&&(r.value=u)}),t.watch(r,u=>{u!==n.modelValue&&i("update:modelValue",u)});const s=t.computed(()=>n.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",ij,[t.renderSlot(u.$slots,"default",{},void 0,!0)]),u.helper?(t.openBlock(),t.createElementBlock("footer",rj,t.toDisplayString(u.helper),1)):t.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-d5af6106"]]),oj={name:"Flag",components:{UnnnicIcon:be},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 sj(e,a,n,i,r,s){const u=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createBlock(u,{icon:s.name,size:n.size},null,8,["icon","size"])}const lj={name:"LanguageSelect",components:{UnnnicFlag:R(oj,[["render",sj]]),UnnnicIcon:be},directives:{onClickOutside:ol},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:Hr}},computed:{languages(){const e={"pt-br":"Português - Brasil",en:"English",es:"Español"};return this.supportedLanguages.reduce((a,n)=>({...a,[n]:e[n]}),{})},otherLanguages(){return this.languageList.filter(({id:e})=>e!==this.val)},languageList(){return Object.entries(this.languages).map(([e,a])=>({id:e,name:a}))},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)}}},uj={key:0,class:"unnnic-language-select contracted"},dj={class:"option"},cj=["onClick"],fj={key:1,class:"unnnic-language-select normal"},_j={class:"option"},gj={class:"label"},hj=["onClick"],mj={class:"label"},Fj={class:"option"},pj={class:"label"};function bj(e,a,n,i,r,s){const u=t.resolveComponent("UnnnicFlag"),d=t.resolveComponent("UnnnicIcon"),c=t.resolveDirective("on-click-outside");return n.contracted?t.withDirectives((t.openBlock(),t.createElementBlock("div",uj,[t.createElementVNode("div",{class:t.normalizeClass(["container contracted",{open:r.open}]),onClick:a[0]||(a[0]=(..._)=>s.onClickTrigger&&s.onClickTrigger(..._))},[t.createElementVNode("div",dj,[t.createVNode(u,{size:"sm",code:r.val},null,8,["code"])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.otherLanguages,_=>(t.openBlock(),t.createElementBlock("div",{key:_.id,class:"option",onClick:g=>r.val=_.id},[t.createVNode(u,{size:"sm",code:_.id},null,8,["code"])],8,cj))),128))],2)])),[[c,s.onClickOutside]]):t.withDirectives((t.openBlock(),t.createElementBlock("div",fj,[t.createElementVNode("div",{class:t.normalizeClass(["container normal",{open:r.open}]),onClick:a[1]||(a[1]=(..._)=>s.onClickTrigger&&s.onClickTrigger(..._))},[t.createElementVNode("div",{style:t.normalizeStyle({position:"absolute",[n.position==="bottom"?"top":"bottom"]:-.125*r.unnnicFontSize+"px",width:"100%",padding:.0625*r.unnnicFontSize+"px",left:-.0625*r.unnnicFontSize+"px"}),class:"all"},[n.position==="bottom"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",_j,[t.createVNode(u,{size:"sm",code:r.val},null,8,["code"]),t.createElementVNode("div",gj,t.toDisplayString(s.languages[r.val]),1),t.createVNode(d,{size:"xs",icon:s.dropdownIcon,scheme:"fg-base"},null,8,["icon"])]),a[2]||(a[2]=t.createElementVNode("div",{class:"divider"},null,-1))],64)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.otherLanguages,_=>(t.openBlock(),t.createElementBlock("div",{key:_.id,class:"option",onClick:g=>r.val=_.id},[t.createVNode(u,{size:"sm",code:_.id},null,8,["code"]),t.createElementVNode("div",mj,t.toDisplayString(s.languages[_.id]),1)],8,hj))),128)),n.position!=="bottom"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[a[3]||(a[3]=t.createElementVNode("div",{class:"divider"},null,-1)),t.createElementVNode("div",Fj,[t.createVNode(u,{size:"sm",code:r.val},null,8,["code"]),t.createElementVNode("div",pj,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 Y1=R(lj,[["render",bj]]),yj={name:"UnnnicModal",components:{UnnnicIcon:be},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,a;return!!((a=(e=this.$slots).options)!=null&&a.call(e).length)},hasIcon(){var e,a;return!!((a=(e=this.$slots).icon)!=null&&a.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")}}},kj={ref:"modal",class:"unnnic-modal-container-background"},wj={class:"unnnic-modal-container-background-body"},Dj={key:0,class:"unnnic-modal-container-background-body-close_icon"},Cj={key:1,class:"unnnic-modal-container-background-body__icon-slot"},Ej={class:"unnnic-modal-container-background-body-title"},Aj={class:"unnnic-modal-container-background-body-description-container"},xj={class:"unnnic-modal-container-background-body-description"},Bj={key:0,class:"unnnic-modal-container-background-report"},vj={key:1,class:"unnnic-modal-container-background-button"};function jj(e,a,n,i,r,s){const u=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createBlock(t.Transition,{name:"modal"},{default:t.withCtx(()=>[n.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:a[0]||(a[0]=t.withModifiers((...d)=>s.onOutsideCloseClick&&s.onOutsideCloseClick(...d),["self"]))},[t.createElementVNode("div",kj,[t.createElementVNode("div",wj,[n.closeIcon?(t.openBlock(),t.createElementBlock("div",Dj,[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",Cj,[t.renderSlot(e.$slots,"icon",{},void 0,!0)])):t.createCommentVNode("",!0),n.modalIcon?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(["unnnic-modal-container-background-body-alert_icon",`unnnic-card-scheme--${n.scheme}--icon`,n.closeIcon?"":"unnnic-modal-container-background-body-spacing_header"])},[t.createVNode(u,{scheme:n.scheme,icon:n.modalIcon,size:"xl"},null,8,["scheme","icon"])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",Ej,t.toDisplayString(n.text),1)]),t.createElementVNode("div",Aj,[t.createElementVNode("div",xj,[t.createTextVNode(t.toDisplayString(n.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",Bj,t.toDisplayString(n.alertMessage),1)):t.createCommentVNode("",!0),s.hasButton?(t.openBlock(),t.createElementBlock("div",vj,[t.renderSlot(e.$slots,"options",{},void 0,!0)])):t.createCommentVNode("",!0)],512)])],16)):t.createCommentVNode("",!0)]),_:3})}const ul=R(yj,[["render",jj],["__scopeId","data-v-bc6e5f19"]]),Sj={components:{UnnnicIcon:be},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 a;(a=e.animationName)!=null&&a.startsWith("slideDown")&&this.emitClose()})},methods:{emitClose(){this.onClose(),this.$emit("close")}}},qj={ref:"alertContainer",class:"alert-container"},Tj={ref:"progress",class:"alert__progress"};function Ij(e,a,n,i,r,s){const u=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createElementBlock("div",qj,[t.createElementVNode("div",{class:t.normalizeClass(["alert",{"alert--scheme-aux-green":n.scheme==="feedback-green"||n.type==="success","alert--scheme-aux-red":n.scheme==="feedback-red"||n.type==="error"}])},[t.createElementVNode("div",Tj,null,512),t.withDirectives(t.createElementVNode("div",{class:"alert__text"},t.toDisplayString(n.text),513),[[t.vShow,n.text]]),t.createElementVNode("div",{class:"alert__close",onClick:a[0]||(a[0]=(...d)=>s.emitClose&&s.emitClose(...d))},[t.createVNode(u,{icon:"close-1",size:"sm",scheme:"fg-inverted"})])],2)],512)}const Nj=R(Sj,[["render",Ij],["__scopeId","data-v-fb34701b"]]),Oj=["role","aria-live"],Mj={class:"unnnic-toast__content","data-testid":"toast-content"},Pj={class:"unnnic-toast__header","data-testid":"toast-header"},Lj={class:"unnnic-toast__title","data-testid":"toast-title"},Vj={key:0,"data-testid":"toast-text",class:"unnnic-toast__text"},xo=R(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:a}){const n=e,i=a,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"}})[n.type||"informational"]),d=ir(),c=()=>{r.value=!1,i("close")},_=()=>{var F;(F=n.button)!=null&&F.action&&n.button.action()},g=()=>{n.timeout>0&&(s=window.setTimeout(()=>{c()},n.timeout))},h=()=>{s&&(window.clearTimeout(s),s=null)};return t.onMounted(()=>{r.value=!0,g()}),t.onUnmounted(()=>{h()}),(F,p)=>(t.openBlock(),t.createBlock(t.Transition,{name:"toast-slide",appear:"","data-testid":"toast-transition",onAfterLeave:p[0]||(p[0]=y=>F.$emit("destroy"))},{default:t.withCtx(()=>[r.value?(t.openBlock(),t.createElementBlock("aside",{key:0,class:t.normalizeClass(["unnnic-toast",`unnnic-toast--${F.type}`]),role:F.type==="error"?"alert":"status","aria-live":F.type==="error"?"assertive":"polite","data-testid":"toast",style:t.normalizeStyle({zIndex:t.unref(d)})},[t.createElementVNode("section",Mj,[t.createElementVNode("header",Pj,[t.createVNode(be,{icon:u.value.icon,scheme:u.value.scheme,size:"ant","data-testid":"toast-type-icon"},null,8,["icon","scheme"]),t.createElementVNode("h3",Lj,t.toDisplayString(F.title),1),t.createVNode(be,{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",Vj,t.toDisplayString(F.description),1)):t.createCommentVNode("",!0)]),F.button?(t.openBlock(),t.createBlock(bt,{key:0,type:"tertiary",text:F.button.text,class:"unnnic-toast__action-button","data-testid":"toast-action-button",onClick:_,onKeydown:[t.withKeys(_,["enter"]),t.withKeys(t.withModifiers(_,["prevent"]),["space"])]},null,8,["text","onKeydown"])):t.createCommentVNode("",!0)],14,Oj)):t.createCommentVNode("",!0)]),_:1}))}}),[["__scopeId","data-v-5445aa0d"]]),Rj={name:"UnnnicAlert",components:{UnnnicToast:xo,Version1dot1:Nj},props:{version:{type:String,default:"1.1"},text:{type:String,default:null},scheme:{type:String,default:null},onClose:{type:Function,default:()=>{}},type:{type:String,default:""}},computed:{toastType(){return this.scheme==="feedback-green"||this.type==="success"?"success":this.scheme==="feedback-red"||this.type==="error"?"error":this.type==="attention"?"attention":"informational"}}};function zj(e,a,n,i,r,s){const u=t.resolveComponent("Version1dot1"),d=t.resolveComponent("UnnnicToast");return n.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:n.text||"",type:s.toastType,onClose:a[0]||(a[0]=()=>n.onClose())},null,8,["title","type"]))}const dl=R(Rj,[["render",zj]]);class Uj{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 a=Yy()??document.body;return a==null||a.appendChild(this.container),this.container}generateId(){return`toast-${++this.nextId}`}show(a){const n=this.generateId(),i=this.createContainer(),r=document.createElement("div");let s;const u=new Promise(_=>{s=_}),d=t.createApp(xo,{...a,onClose:()=>{this.close(n)},onDestroy:()=>{d.unmount(),r.remove(),s()}});d.mount(r),i.appendChild(r);const c={id:n,props:a,close:()=>this.close(n),promise:u};return this.toasts.set(n,c),c}close(a){this.toasts.get(a)&&this.toasts.delete(a)}}const Bo=new Uj,G1={info:(e,a,n)=>Bo.show({title:e,description:a,...n,type:"informational"}).promise,success:(e,a,n)=>Bo.show({title:e,description:a,...n,type:"success"}).promise,attention:(e,a,n)=>Bo.show({title:e,description:a,...n,type:"attention"}).promise,error:(e,a,n)=>Bo.show({title:e,description:a,...n,type:"error"}).promise};function Hj(e){return{all:e=e||new Map,on:function(a,n){var i=e.get(a);i?i.push(n):e.set(a,[n])},off:function(a,n){var i=e.get(a);i&&(n?i.splice(i.indexOf(n)>>>0,1):e.set(a,[]))},emit:function(a,n){var i=e.get(a);i&&i.slice().map(function(r){r(n)}),(i=e.get("*"))&&i.slice().map(function(r){r(a,n)})}}}const W1=Hj(),$1=({props:e,containerRef:a,seconds:n})=>{if(e.version==="1.1"||a){const i=t.createApp(dl,{...e,seconds:n,version:"1.1",onClose:()=>{s.$el.remove()},created(){W1.on(["close"],()=>{s.$el.remove()})}}),r=document.createElement("div"),s=i.mount(r);a?(s.$el.style.position="absolute",a.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:n?n*1e3:5e3,type:i[e.scheme||e.type]||i.default,onClose:()=>{W1.emit(["close"])}};Bo.show({title:e.text,description:"",...r})}},Q1=({props:e})=>{const a=t.createApp(ul,{...e,onClose:()=>{i.$el.remove()},created(){W1.on(["close"],()=>{i.$el.remove()})}}),n=document.createElement("div"),i=a.mount(n);document.body.appendChild(n)},Yj={name:"UnnnicSelectSmartOption",components:{UnnnicCheckbox:Er},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:Zn}},Gj=["title"];function Wj(e,a,n,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":n.focused,"unnnic-select-smart-option--active":n.active,"unnnic-select-smart-option--active-secondary":n.active&&n.activeColor==="secondary","unnnic--clickable":n.selectable,"unnnic-select-smart-option--selectable":n.selectable,"unnnic-select-smart-option--with-checkbox":n.allowCheckbox}),title:n.label,"data-testid":"select-smart-option"},[n.allowCheckbox?(t.openBlock(),t.createBlock(u,{key:0,ref:"checkbox","data-testid":"checkbox",modelValue:n.active,size:n.size,disabled:n.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--${n.size}`]),"data-testid":"label"},t.toDisplayString(s.fullySanitize(n.label)),3),n.description?(t.openBlock(),t.createElementBlock("p",{key:0,"data-testid":"description",class:t.normalizeClass(["unnnic-select-smart-option__description",`unnnic-select-smart-option__description--${n.size}`])},t.toDisplayString(s.fullySanitize(n.description)),3)):t.createCommentVNode("",!0)])],10,Gj)}const $j=R(Yj,[["render",Wj]]),Qj={name:"UnnnicSelectSmartMultipleHeader",components:{Tag:Ao},mixins:[Ja],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:a}=this,n=[];for(let i=0;i<a;i+=1)n.push(e==null?void 0:e[i]);return n.filter(i=>i!==void 0)}},methods:{unselectOption(e){this.$emit("unselect-option",e)}}},Kj={class:"unnnic-select-smart__options__multiple"},Xj={key:0,class:"unnnic-select-smart__options__multiple__selecteds__container"},Zj={class:"unnnic-select-smart__options__multiple__selecteds"},Jj={key:0,class:"unnnic-select-smart__options__multiple__selecteds__remaining","data-testid":"remaining-count"},eS={key:1,class:"unnnic-select-smart__options__multiple--without-multiples","data-testid":"without-selects-message"};function tS(e,a,n,i,r,s){const u=t.resolveComponent("Tag");return t.openBlock(),t.createElementBlock("div",Kj,[n.selectedOptions[0]?(t.openBlock(),t.createElementBlock("div",Xj,[t.createElementVNode("div",Zj,[(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)),n.selectedOptions.length>r.multipleSelectedsTags?(t.openBlock(),t.createElementBlock("p",Jj," +"+t.toDisplayString(n.selectedOptions.length-r.multipleSelectedsTags),1)):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0),n.selectedOptions[0]?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("p",eS,t.toDisplayString(n.withoutSelectsMessage||e.i18n("without_multiple_selected")),1))])}const aS=R(Qj,[["render",tS],["__scopeId","data-v-4310b808"]]),nS={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,a;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")?(a=this.x+this.width,a+this.data.width>this.clientWidth&&(a=this.clientWidth-this.data.width,this.x>=this.data.width&&(a=this.x-this.data.width))):this.position.endsWith("left")&&(a=this.x-this.data.width,a<0&&(a=0,this.x+this.width+this.data.width<=this.clientWidth&&(a=this.x+this.width))),{left:`${a}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(),a=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=a.x,this.data.y=a.y,this.data.width=a.width,this.data.height=a.height}}};function iS(e,a,n,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:n.useAbsolutePosition?"absolute":"fixed",...s.positions})},[t.renderSlot(e.$slots,"inside",{width:`${r.width}px`,height:`${r.height}px`},void 0,!0)],4)],2)}const Wm=R(nS,[["render",iS],["__scopeId","data-v-05c4ead6"]]),rS={name:"UnnnicSelectSmart",components:{TextInput:h0,SelectSmartOption:$j,SelectSmartMultipleHeader:aS,DropdownSkeleton:Wm,UnnnicIconLoading:Ii},directives:{onClickOutside:ol},mixins:[Ja],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 n;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(", "):((n=this.modelValue.at(-1))==null?void 0:n.label)||""},hasDescriptionOptions(){return this.options.some(e=>typeof e.description<"u")},autocompletePlaceholder(){if(this.isAutocompleteAllowed){const e=this.options.find(a=>a.value==="");if(e)return e.label}return""},inputValue(){const{isAutocompleteAllowed:e,searchValue:a,multiple:n,modelValue:i}=this;return e||n?a:!n&&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 a=this.getOptionIndex("active");a!==-1&&this.scrollToOption(a,"center")}e&&this.infiniteScroll&&this.setupInfiniteScroll()})},searchValue(e,a){this.focusedOption=null,!this.active&&a&&(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,a,n,i,r;this.status="mounted",(this.multiple||this.autocomplete)&&(this.isAutocompleteAllowed=!0),(e=this.modelValue)!=null&&e[0]&&((a=this.modelValue)!=null&&a[0].value)?this.isAutocompleteAllowed&&this.$nextTick(()=>{this.searchValue=this.selectedLabel}):this.selectFirst&&((n=this.options)!=null&&n[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:a}=cs(e,()=>{this.infiniteScrollLoading||(this.infiniteScrollLoading=!0,this.$emit("scroll-end"))},{distance:this.infiniteScrollDistance,canLoadMore:()=>this.infiniteScrollCanLoadMore()&&!this.infiniteScrollLoading});this.infiniteScrollReset=a})},finishInfiniteScroll(){this.infiniteScrollLoading=!1},resetInfiniteScroll(){this.infiniteScrollLoading=!1,this.infiniteScrollReset&&this.infiniteScrollReset()},optionIsSelected(e){return this.modelValue.some(a=>a.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 n=this.searchValue.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").split(" "),i=d=>d.toString().toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,""),r=d=>{var c;return parseInt((c=d.match(/\d+/))==null?void 0:c[0],10)||0},s=e.filter(({value:d,label:c},_,g)=>{const h=i(c),F=g.findIndex(y=>y.value===d)===_,p=n.every(y=>{const w=h.includes(y),C=d.includes(y);return this.enableSearchByValue?w||C:w});return F&&p&&d});return this.orderedByIndex?s:s.sort((d,c)=>{const _=i(d.label),g=i(c.label),h=r(_),F=r(g);return h-F||_.localeCompare(g)})},onClickOutside(){this.active&&(this.isAutocompleteAllowed&&(this.searchValue=this.selectedLabel),this.$nextTick(()=>{this.active=!1}))},getOptionIndex(e){var i,r,s,u;const a=this.filterOptions(this.options);let n="";return e==="active"&&(n=(r=(i=this.modelValue)==null?void 0:i[0])==null?void 0:r.value),e==="focused"&&(n=((s=this.focusedOption)==null?void 0:s.value)||((u=this.modelValue.at(-1))==null?void 0:u.value)),a.findIndex(d=>d.value===n)},scrollToOption(e,a="nearest"){const n=this.$refs.selectSmartOptionsScrollArea;if(n&&e>=0&&e<n.childNodes.length){const i=n.childNodes[e];i instanceof HTMLElement&&(i==null||i.scrollIntoView({block:a}))}},selectOption(e){const a=e.value===null||e.value.length===0?null:e;this.$emit("update:modelValue",this.multiple?[...this.modelValue,a]:[a])},unselectOption(e){const a=this.modelValue.findIndex(n=>n.value===e.value);if(a!==-1){const n=this.modelValue;n.splice(a,1),this.$emit("update:modelValue",n)}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:a}=e;if(["Escape","Enter","ArrowUp","ArrowDown"].includes(a)){e.preventDefault();const i=this.filterOptions(this.options),r=this.getOptionIndex("focused");let s;switch(a){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=a==="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}}}},oS={style:{overflow:"auto"}},sS={key:0,class:"unnnic-select-smart__options-infinite-loading"},lS={key:1,class:"unnnic-select-smart__options--no-results"};function uS(e,a,n,i,r,s){const u=t.resolveComponent("TextInput"),d=t.resolveComponent("SelectSmartMultipleHeader"),c=t.resolveComponent("UnnnicIconLoading"),_=t.resolveComponent("SelectSmartOption"),g=t.resolveComponent("DropdownSkeleton"),h=t.resolveDirective("on-click-outside");return t.withDirectives((t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["unnnic-select-smart",{"unnnic-select-smart--secondary":n.type==="secondary"}]),"data-testid":"select-smart",onKeydown:a[1]||(a[1]=(...F)=>s.onKeyDownSelect&&s.onKeyDownSelect(...F))},[t.createVNode(g,{ref:"dropdown-skeleton",type:"manual",modelValue:r.active||null,position:"bottom"},{inside:t.withCtx(F=>[r.active?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle({width:F.width}),class:t.normalizeClass({"unnnic-select-smart__options":!0,active:r.active,inactive:!r.active}),"data-testid":"options-container"},[t.createElementVNode("div",oS,[n.multiple?(t.openBlock(),t.createBlock(d,{key:0,selectedOptions:n.modelValue,withoutSelectsMessage:n.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-${n.size}`,{"with-descriptions":s.hasDescriptionOptions,"with-checkboxes":!!n.multiple}])},[n.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(n.options),(p,y)=>(t.openBlock(),t.createBlock(_,{key:p.value,"data-testid":"option",label:p.label,description:p.description,tabindex:y,size:n.size,active:p.value===n.modelValue||s.optionIsSelected(p),disabled:s.optionIsSelected(p)&&p.disableRemove,focused:r.focusedOption&&r.focusedOption.value===p.value,allowCheckbox:!!n.multiple,activeColor:n.type==="secondary"?"secondary":"primary",onClick:w=>s.handleSelect(p)},null,8,["label","description","tabindex","size","active","disabled","focused","allowCheckbox","activeColor","onClick"]))),128)),n.infiniteScroll&&r.infiniteScrollLoading?(t.openBlock(),t.createElementBlock("div",sS,[t.createVNode(c,{scheme:"fg-base",size:"sm"})])):t.createCommentVNode("",!0),s.filterOptions(n.options).length===0?(t.openBlock(),t.createElementBlock("p",lS,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":n.type==="secondary"}]),"data-testid":"select-smart-input",modelValue:s.inputValue,placeholder:n.placeholder||s.autocompletePlaceholder||s.selectedLabel,type:n.type,size:n.size,disabled:n.disabled,readonly:!r.isAutocompleteAllowed,iconLeft:r.isAutocompleteAllowed&&n.autocompleteIconLeft?"search-1":"",iconRight:r.active?"keyboard_arrow_up":"keyboard_arrow_down",iconRightSize:"ant",onClick:t.withModifiers(s.handleClickInput,["stop"]),"onUpdate:modelValue":a[0]||(a[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=R(rS,[["render",uS]]);function $m(e,a,n,i){const r=t.ref(!1),{width:s}=ey(n),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(y=>{const w=String(y[e.itemLabel]??"").toLowerCase().includes(F),C=String(y[e.itemValue]??"").toLowerCase().includes(F);return w||C})});function c(h){const{optionsLength:F,optionsLines:p,enableSearch:y,variant:w}=h;if(F===0)return"unset";if(w==="single"){const j=37*p,I=y?1:2,P=j+32+(4*p-I);return`${y?P+45+1:P}px`}const C=y?16:0,k=22*p+(24*p-2);return`${y?k+51+C:k}px`}const _=t.computed(()=>{var h;return c({optionsLength:((h=e.options)==null?void 0:h.length)??0,optionsLines:e.optionsLines,enableSearch:e.enableSearch,variant:a})}),g=t.computed(()=>{var p;const h=((p=d.value)==null?void 0:p.length)===0,F=_.value;return{overflow:"auto",display:"flex",flexDirection:"column",minHeight:F,maxHeight:h?"unset":F,height:h?F:"unset"}});return{openPopover:r,triggerRef:n,contentRef:i,inputWidthString:u,calculatedPopoverHeight:_,popoverContentCustomStyles:g,filteredOptions:d}}const dS="data-option-index";function Qm(e,a,n){const{closeOnSelect:i=!0,closePopover:r,openPopoverRef:s}=n,u=t.ref(-1);function d(p,y="smooth",w="center"){t.nextTick(()=>{var v;const C=document.querySelector(`[${dS}="${p}"]`);(v=C==null?void 0:C.scrollIntoView)==null||v.call(C,{behavior:y,block:w})})}function c(p){if(!["ArrowUp","ArrowDown","Enter"].includes(p.key))return;p.preventDefault();const w=e();if(p.key==="ArrowUp"){if(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 C=w[u.value];if(C!=null&&C.disabled)return;a(C),i&&r()}}function _(p){s.value&&c(p)}function g(){document.addEventListener("keydown",_)}function h(){document.removeEventListener("keydown",_)}function F(){t.watch(s,p=>{p?t.nextTick(g):h()}),t.onBeforeUnmount(h)}return{focusedOptionIndex:u,scrollToOption:d,handleKeyDown:c,setupKeydownBinding:F}}const cS={class:"unnnic-select"},fS={key:0,class:"unnnic-select__trigger-label"},_S={class:"unnnic-select__trigger-content"},gS={key:1,class:"unnnic-select__content-no-results"},hS={key:0,class:"unnnic-select__infinite-loading"},X1=R(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:a,emit:n}){const i=e,r=n,s=t.useSlots(),u=t.computed(()=>!!s.selected),d=t.useTemplateRef("selectInputRef"),c=t.useTemplateRef("contentRef"),_=$m(i,"single",d,c),g=_.openPopover,h=_.popoverContentCustomStyles,F=_.inputWidthString,p=_.filteredOptions;function y(ee){_.openPopover.value=ee}const w=t.computed(()=>i.returnObject?i.modelValue==null||i.modelValue===""?void 0:i.modelValue:i.options.find(ee=>ee[i.itemValue]===i.modelValue)),C=t.computed(()=>{var ee;return(ee=w.value)==null?void 0:ee[i.itemLabel]});function v(ee){var $;ee[i.itemValue]===(($=w.value)==null?void 0:$[i.itemValue])||ee.disabled||(r("update:modelValue",i.returnObject?ee:ee[i.itemValue]),_.openPopover.value=!1)}const x=Qm(()=>_.filteredOptions.value,v,{closeOnSelect:!0,closePopover:()=>_.openPopover.value=!1,openPopoverRef:_.openPopover});x.setupKeydownBinding();const k=x.focusedOptionIndex,A=t.ref(!1);function N(ee){return!i.infiniteScroll||!_.openPopover.value||A.value||!i.infiniteScrollCanLoadMore()||!ee||typeof ee!="object"||!("clientHeight"in ee)?!1:ee.clientHeight>0}const j=t.computed(()=>{var ee;return((ee=c.value)==null?void 0:ee.closest(".unnnic-popover"))??c.value}),{reset:I}=cs(j,()=>{A.value||(A.value=!0,r("scroll-end"))},{distance:i.infiniteScrollDistance,canLoadMore:N});t.watch(_.openPopover,ee=>{if(!ee){W(""),A.value=!1;return}if(x.focusedOptionIndex.value=-1,i.modelValue){const $=i.options.findIndex(ce=>{var ye;return ce[i.itemValue]===((ye=w.value)==null?void 0:ye[i.itemValue])});x.scrollToOption($,"instant","center")}i.infiniteScroll&&t.nextTick(()=>I())});function P(){A.value=!1,_.openPopover.value&&i.infiniteScroll&&t.nextTick(()=>I())}function M(){A.value=!1,t.nextTick(()=>I())}function W(ee){r("update:search",ee)}return a({openPopover:g,setOpenPopover:y,filteredOptions:p,calculatedPopoverHeight:_.calculatedPopoverHeight,selectedItem:w,inputValue:C,infiniteScrollLoading:A,finishInfiniteScroll:P,resetInfiniteScroll:M}),(ee,$)=>(t.openBlock(),t.createElementBlock("div",cS,[t.createVNode(t.unref(wr),{open:t.unref(g),"onUpdate:open":y},{default:t.withCtx(()=>[t.createVNode(t.unref(Cr),{class:"w-full"},{default:t.withCtx(()=>[u.value&&w.value?(t.openBlock(),t.createElementBlock("section",{key:0,ref_key:"selectInputRef",ref:d,class:"unnnic-select__trigger-wrapper"},[i.label?(t.openBlock(),t.createElementBlock("span",fS,t.toDisplayString(i.label),1)):t.createCommentVNode("",!0),t.createElementVNode("section",{class:t.normalizeClass(["unnnic-select__trigger",`unnnic-select__trigger--${i.size}`,{"unnnic-select__trigger--focused":t.unref(g),"unnnic-select__trigger--disabled":i.disabled}])},[t.createElementVNode("section",_S,[t.renderSlot(ee.$slots,"selected",{option:w.value,label:C.value},void 0,!0)]),i.clearable&&!i.disabled?(t.openBlock(),t.createBlock(be,{key:0,class:"unnnic-select__trigger-clear",icon:"close",size:"ant",scheme:"fg-base",clickable:"",onClick:$[0]||($[0]=t.withModifiers(ce=>r("update:modelValue",""),["stop"]))})):t.createCommentVNode("",!0),t.createVNode(be,{class:"unnnic-select__trigger-arrow",icon:t.unref(g)?"keyboard_arrow_up":"keyboard_arrow_down",size:"ant",scheme:"fg-base"},null,8,["icon"])],2)],512)):(t.openBlock(),t.createBlock(_n,{key:1,ref_key:"selectInputRef",ref:d,modelValue:C.value,class:"unnnic-select__input",readonly:"",useFocusProp:"",focus:t.unref(g),size:i.size,placeholder:i.placeholder,label:i.label,errors:i.errors,message:i.message,iconRight:t.unref(g)?"keyboard_arrow_up":"keyboard_arrow_down",disabled:i.disabled,showClear:!!w.value&&i.clearable,onClear:$[1]||($[1]=ce=>r("update:modelValue",""))},null,8,["modelValue","focus","size","placeholder","label","errors","message","iconRight","disabled","showClear"]))]),_:3}),t.createVNode(t.unref(Dr),{align:"start",class:t.normalizeClass("h-full"),style:t.normalizeStyle(t.unref(h)),width:t.unref(F)},{default:t.withCtx(()=>[t.createElementVNode("div",{ref_key:"contentRef",ref:c,class:"unnnic-select__content"},[i.enableSearch?(t.openBlock(),t.createBlock(_n,{key:0,class:"unnnic-select__input-search",modelValue:i.search,placeholder:ee.$t("search"),iconLeft:"search","onUpdate:modelValue":W},null,8,["modelValue","placeholder"])):t.createCommentVNode("",!0),t.unref(p).length===0?(t.openBlock(),t.createElementBlock("p",gS,t.toDisplayString(ee.$t("without_results")),1)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(p),(ce,ye)=>{var ke;return t.openBlock(),t.createBlock(t.unref(nl),{key:ce[i.itemValue],"data-option-index":ye,"data-testid":"select-option",label:ce[i.itemLabel],active:ce[i.itemValue]===((ke=w.value)==null?void 0:ke[i.itemValue]),focused:t.unref(k)===ye,disabled:ce.disabled,onClick:ie=>v(ce)},t.createSlots({_:2},[ee.$slots.option?{name:"default",fn:t.withCtx(()=>{var ie;return[t.renderSlot(ee.$slots,"option",{option:ce,label:ce[i.itemLabel],active:ce[i.itemValue]===((ie=w.value)==null?void 0:ie[i.itemValue]),focused:t.unref(k)===ye,index:ye},void 0,!0)]}),key:"0"}:void 0]),1032,["data-option-index","label","active","focused","disabled","onClick"])}),128)),i.infiniteScroll&&A.value?(t.openBlock(),t.createElementBlock("div",hS,[t.createVNode(Ii,{scheme:"fg-base",size:"sm"})])):t.createCommentVNode("",!0)],64))],512)]),_:3},8,["style","width"])]),_:3},8,["open"])]))}}),[["__scopeId","data-v-31008d10"]]),Z1=t.defineComponent({name:"UnnicSelectItem",__name:"SelectItem",props:{size:{default:""},selectable:{type:Boolean,default:!0},active:{type:Boolean,default:!1},textFocused:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:a}){const n=a;return(i,r)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass({"unnnic-select-item":!0,"unnnic-select-item__active":i.active,"unnnic--clickable":i.selectable,"unnnic-select-item--selectable":i.selectable,"text-focused":i.textFocused}),onClick:r[0]||(r[0]=s=>n("click"))},[t.createElementVNode("span",{class:t.normalizeClass(["unnnic-select-item__label",`unnnic-select-item__label--${i.size}`])},[t.renderSlot(i.$slots,"default")],2)],2))}}),mS={class:t.normalizeClass(["unnnic-multi-select-option"])},FS=R(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:a}){const n=a,i=e;return(r,s)=>(t.openBlock(),t.createElementBlock("div",mS,[t.createVNode(Er,{modelValue:i.active,disabled:i.disabled,label:i.label,"onUpdate:modelValue":s[0]||(s[0]=u=>n("update:modelValue",!i.active))},null,8,["modelValue","disabled","label"])]))}}),[["__scopeId","data-v-872f231b"]]),pS={class:"unnnic-multi-select"},bS={key:1,class:"unnnic-multi-select__content-no-results"},yS={class:"unnnic-multi-select__options"},kS={key:0,class:"unnnic-multi-select__infinite-loading"},J1=R(t.defineComponent({name:"UnnnicMultiSelect",__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:a,emit:n}){const i=e,r=n,s=t.useTemplateRef("multiSelectInputRef"),u=t.useTemplateRef("contentRef"),d=$m(i,"multi",s,u),c=d.openPopover,_=d.popoverContentCustomStyles,g=d.inputWidthString,h=d.filteredOptions;function F(W){d.openPopover.value=W}const p=t.computed(()=>{if(i.returnObject)return i.modelValue;const W=i.modelValue.slice();return i.options.filter(ee=>W.includes(ee[i.itemValue]))}),y=t.computed(()=>p.value.map(W=>W[i.itemLabel]).join(", "));function w(W){r("update:search",W)}function C(W){return i.returnObject?i.modelValue.some(ee=>ee[i.itemValue]===W[i.itemValue]):i.modelValue.includes(W[i.itemValue])}function v(W,ee){if(ee){const $=i.returnObject?[...i.modelValue,W]:[...i.modelValue,W[i.itemValue]];r("update:modelValue",$)}else{const $=i.returnObject?i.modelValue.filter(ce=>ce[i.itemValue]!==W[i.itemValue]):i.modelValue.filter(ce=>ce!==W[i.itemValue]);r("update:modelValue",$)}}const x=Qm(()=>d.filteredOptions.value,W=>{if(W.disabled)return;const ee=C(W);v(W,!ee)},{closeOnSelect:!1,closePopover:()=>F(!1),openPopoverRef:d.openPopover});x.setupKeydownBinding();const k=x.focusedOptionIndex,A=t.ref(!1);function N(W){return!i.infiniteScroll||!d.openPopover.value||A.value||!i.infiniteScrollCanLoadMore()||!W||typeof W!="object"||!("clientHeight"in W)?!1:W.clientHeight>0}const j=t.computed(()=>{var W;return((W=u.value)==null?void 0:W.closest(".unnnic-popover"))??u.value}),{reset:I}=cs(j,()=>{A.value||(A.value=!0,r("scroll-end"))},{distance:i.infiniteScrollDistance,canLoadMore:N});t.watch(d.openPopover,W=>{if(!W){w(""),A.value=!1;return}x.focusedOptionIndex.value=-1,i.infiniteScroll&&t.nextTick(()=>I())});function P(){A.value=!1,d.openPopover.value&&i.infiniteScroll&&t.nextTick(()=>I())}function M(){A.value=!1,t.nextTick(()=>I())}return a({openPopover:c,setOpenPopover:F,filteredOptions:h,calculatedPopoverHeight:d.calculatedPopoverHeight,selectedItems:p,inputValue:y,infiniteScrollLoading:A,finishInfiniteScroll:P,resetInfiniteScroll:M}),(W,ee)=>(t.openBlock(),t.createElementBlock("div",pS,[t.createVNode(t.unref(wr),{open:t.unref(c),"onUpdate:open":F},{default:t.withCtx(()=>[t.createVNode(t.unref(Cr),{class:"w-full"},{default:t.withCtx(()=>[t.createVNode(_n,{ref_key:"multiSelectInputRef",ref:s,modelValue:y.value,class:"unnnic-multi-select__input",readonly:"",useFocusProp:"",focus:t.unref(c),size:i.size,placeholder:i.placeholder,label:i.label,errors:i.errors,message:i.message,iconRight:t.unref(c)?"keyboard_arrow_up":"keyboard_arrow_down",disabled:i.disabled,showClear:!!p.value.length&&i.clearable,onClear:ee[0]||(ee[0]=$=>r("update:modelValue",[]))},null,8,["modelValue","focus","size","placeholder","label","errors","message","iconRight","disabled","showClear"])]),_:1}),t.createVNode(t.unref(Dr),{align:"start",class:"h-full",style:t.normalizeStyle(t.unref(_)),width:t.unref(g)},{default:t.withCtx(()=>[t.createElementVNode("div",{ref_key:"contentRef",ref:u,class:"unnnic-multi-select__content"},[i.enableSearch?(t.openBlock(),t.createBlock(_n,{key:0,class:"unnnic-multi-select__input-search",modelValue:i.search,placeholder:W.$t("search"),iconLeft:"search","onUpdate:modelValue":w},null,8,["modelValue","placeholder"])):t.createCommentVNode("",!0),t.unref(h).length===0?(t.openBlock(),t.createElementBlock("p",bS,t.toDisplayString(W.$t("without_results")),1)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createElementVNode("div",yS,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(h),($,ce)=>(t.openBlock(),t.createBlock(FS,{key:String($[i.itemValue]),"data-option-index":ce,label:String($[i.itemLabel]??""),active:C($),focused:t.unref(k)===ce,disabled:$.disabled,"onUpdate:modelValue":ye=>v($,ye)},null,8,["data-option-index","label","active","focused","disabled","onUpdate:modelValue"]))),128))]),i.infiniteScroll&&A.value?(t.openBlock(),t.createElementBlock("div",kS,[t.createVNode(Ii,{scheme:"fg-base",size:"sm"})])):t.createCommentVNode("",!0)],64))],512)]),_:1},8,["style","width"])]),_:1},8,["open"])]))}}),[["__scopeId","data-v-866091db"]]),wS={components:{UnnnicIcon:be},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)}},DS={class:"header"},CS={class:"actions"};function ES(e,a,n,i,r,s){const u=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createElementBlock("div",{class:"unnnic-accordion",onClick:a[0]||(a[0]=d=>e.$emit("update:open",!n.open))},[t.createElementVNode("div",DS,[t.createVNode(u,{icon:n.open?"subtract-circle-1":"add-circle-1",scheme:"fg-base",size:"md"},null,8,["icon"]),t.createElementVNode("div",{class:t.normalizeClass(["title",{open:n.open}])},t.toDisplayString(n.title),3),t.withDirectives(t.createElementVNode("div",CS,[t.renderSlot(e.$slots,"actions",{},void 0,!0)],512),[[t.vShow,n.open]])]),t.createElementVNode("div",{ref:"content",class:t.normalizeClass(["content",{open:n.open}]),style:t.normalizeStyle({height:r.height})},[t.renderSlot(e.$slots,"default",{},void 0,!0)],6)])}const ed=R(wS,[["render",ES],["__scopeId","data-v-0943a5ba"]]),AS={"--skeleton-bg":"var(--unnnic-color-bg-muted)","--skeleton-highlight":"var(--unnnic-color-bg-base-soft)","--skeleton-duration":"2s"},td=t.defineComponent({name:"UnnnicSkeletonLoading",__name:"SkeletonLoading",props:{prefix:{default:"unnnic"},count:{default:1},duration:{default:2},tag:{default:"span"},width:{default:void 0},height:{default:void 0},circle:{type:Boolean,default:!1},loading:{type:Boolean,default:void 0},direct:{type:Boolean,default:!1}},setup(e){const a=e,n=t.useSlots(),i=t.inject("_themeStyle",t.ref({...AS})),r=t.computed(()=>[`${a.prefix}-skeleton`,a.circle?`${a.prefix}-skeleton--circle`:""]),s=t.computed(()=>{const _={};return _["--skeleton-bg"]=i.value["--skeleton-bg"],_["--skeleton-highlight"]=i.value["--skeleton-highlight"],_["--skeleton-duration"]=a.duration?`${a.duration}s`:"0s",a.width&&(_.width=a.width),a.height&&(_.height=a.height),_}),u=t.computed(()=>Array.from({length:a.count},()=>({})));function d(_){if(!_)return!0;const[g]=_();let h=g==null?void 0:g.children;return h&&(h=h.replace(/(\n|\r\n|\s)/g,"")),!h}const c=t.computed(()=>typeof a.loading<"u"?a.loading:d(n.default));return(_,g)=>_.direct?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(_.tag),{key:0,class:t.normalizeClass(r.value),style:t.normalizeStyle(s.value)},null,8,["class","style"])):c.value?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(_.tag),{key:1},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.value,(h,F)=>(t.openBlock(),t.createElementBlock("span",{key:F,class:t.normalizeClass(r.value),style:t.normalizeStyle(s.value)}," ‌ ",6))),128))]),_:1})):t.createCommentVNode("",!0)}}),xS={components:{UnnnicIcon:be,UnnnicToolTip:la},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(a=>typeof a=="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 n,i;const a=this.$slots[this.tabHeadTooltipSlotName(e)];return a?(i=(n=a())==null?void 0:n[0])==null?void 0:i.children:""},change(e){var a;(a=this.disabledTabs)!=null&&a.includes(e)||(this.localValue=e,this.$emit("change",this.localValue))}}},BS={class:"tab-header"},vS={class:"tab-content"},jS=["onClick"],SS={class:"tab-body"},qS={class:"tab-panel"};function TS(e,a,n,i,r,s){const u=t.resolveComponent("UnnnicIcon"),d=t.resolveComponent("UnnnicToolTip");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["tab",`size-${n.size}`])},[t.createElementVNode("header",BS,[t.createElementVNode("ul",vS,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.tabs,c=>{var _;return t.openBlock(),t.createElementBlock("li",{key:c,class:t.normalizeClass(["tab-head",{"tab-head--active":r.localValue===c,"tab-head--disabled":(_=n.disabledTabs)==null?void 0:_.includes(c)}]),onClick:g=>s.change(c)},[t.renderSlot(e.$slots,s.tabHeadSlotName(c),{},()=>[t.createTextVNode(t.toDisplayString(c),1)],!0),s.getHeadTooltip(c)?(t.openBlock(),t.createBlock(d,{key:0,enabled:"",text:s.getHeadTooltip(c),side:"bottom"},{default:t.withCtx(()=>[t.createVNode(u,{icon:"help",size:n.size==="sm"?"xs":"sm",scheme:"fg-base"},null,8,["size"])]),_:2},1032,["text"])):t.createCommentVNode("",!0)],10,jS)}),128))])]),t.createElementVNode("main",SS,[t.createElementVNode("div",qS,[t.renderSlot(e.$slots,s.tabPanelSlotName,{},void 0,!0)])])],2)}const ad=R(xS,[["render",TS],["__scopeId","data-v-2860998c"]]),IS={components:{UnnnicIcon:be},props:{modelValue:{type:[String,Number],required:!0},items:{type:Array,required:!0}},emits:["back","update:model-value","close-tab","add"]},NS={class:"unnnic-tabs-expanded"},OS=["onClick"],MS={"data-testid":"tab-description",class:"u font secondary body-sm color-fg-base"},PS={key:0,class:"close-container"};function LS(e,a,n,i,r,s){const u=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createElementBlock("div",NS,[t.createElementVNode("div",{class:"back-container","data-testid":"back",onClick:a[0]||(a[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(n.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===n.modelValue?"color-brand-weni-soft":"color-fg-base"]),"data-testid":"tab-title"},t.toDisplayString(d.title),3),t.createElementVNode("div",MS,t.toDisplayString(d.description),1)]),d.value===n.modelValue?(t.openBlock(),t.createElementBlock("div",PS,[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,OS))),128)),t.createElementVNode("div",{class:"add-container","data-testid":"tab-add",onClick:a[1]||(a[1]=d=>e.$emit("add"))},[t.createVNode(u,{icon:"add-1",scheme:"fg-base",size:"sm"})])])}const nd=R(IS,[["render",LS],["__scopeId","data-v-a72bb16c"]]),VS={name:"UnnnicBanner",components:{UnnnicIcon:be},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}}},RS={class:"unnnic-banner-info"},zS={class:"unnnic-banner-info__section"},US={class:"unnnic-banner-info__title"},HS={class:"unnnic-banner-info__description"},YS={class:"unnnic-banner-info__section"},GS={class:"unnnic-banner-info__title"},WS={class:"unnnic-banner-info__description"},$S={class:"unnnic-banner-info__subtitle"},QS={class:"unnnic-banner-info__section"},KS={class:"unnnic-banner-info__title"},XS={class:"unnnic-banner-info__description"},ZS={class:"unnnic-banner-info__rating"};function JS(e,a,n,i,r,s){const u=t.resolveComponent("UnnnicIcon");return t.openBlock(),t.createElementBlock("div",RS,[t.createElementVNode("section",zS,[t.createElementVNode("div",US,t.toDisplayString(n.firstTitle),1),t.createElementVNode("div",HS,t.toDisplayString(n.firstDescription),1)]),a[0]||(a[0]=t.createElementVNode("div",{class:"unnnic-banner-info__divider"},null,-1)),t.createElementVNode("section",YS,[t.createElementVNode("div",GS,t.toDisplayString(n.secondTitle),1),t.createElementVNode("div",WS,t.toDisplayString(n.secondDescription),1),t.createElementVNode("div",$S,t.toDisplayString(n.subtitle),1)]),a[1]||(a[1]=t.createElementVNode("div",{class:"unnnic-banner-info__divider"},null,-1)),t.createElementVNode("section",QS,[t.createElementVNode("div",KS,t.toDisplayString(n.thirdTitle),1),t.createElementVNode("div",XS,t.toDisplayString(n.thirdDescription),1),t.createElementVNode("div",ZS,[(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 Km=R(VS,[["render",JS]]),eq={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",Km}},methods:{emitRatingAction(e){this.$emit("ratingAction",e)}}};function tq(e,a,n,i,r,s){return t.openBlock(),t.createBlock(t.resolveDynamicComponent(s.currentComponent),t.mergeProps({class:"unnnic-banner-component"},e.$attrs,{firstTitle:n.firstTitle,secondTitle:n.secondTitle,thirdTitle:n.thirdTitle,firstDescription:n.firstDescription,secondDescription:n.secondDescription,thirdDescription:n.thirdDescription,subtitle:n.subtitle,rating:n.rating}),null,16,["firstTitle","secondTitle","thirdTitle","firstDescription","secondDescription","thirdDescription","subtitle","rating"])}const id=R(eq,[["render",tq]]),aq={name:"UnnnicComment",components:{},props:{title:{type:String,default:null},time:{type:String,default:null},text:{type:String,default:null}}},nq={class:"unnnic-comment"},iq={class:"unnnic-comment__avatar"},rq={class:"unnnic-comment__content"},oq={class:"unnnic-comment__content__header"},sq={class:"unnnic-comment__content__header__title"},lq={class:"unnnic-comment__content__header__time"},uq={class:"unnnic-comment__content__header__actions"},dq={class:"unnnic-comment__content__text"};function cq(e,a,n,i,r,s){return t.openBlock(),t.createElementBlock("div",nq,[t.createElementVNode("div",iq,[t.renderSlot(e.$slots,"avatar",{},void 0,!0)]),t.createElementVNode("div",rq,[t.createElementVNode("div",oq,[t.createElementVNode("div",sq,t.toDisplayString(n.title),1),t.createElementVNode("div",lq,t.toDisplayString(n.time),1),t.createElementVNode("div",uq,[t.renderSlot(e.$slots,"actions",{},void 0,!0)])]),t.createElementVNode("div",dq,t.toDisplayString(n.text),1)])])}const rd=R(aq,[["render",cq],["__scopeId","data-v-5925e703"]]),fq={class:"unnnic-breadcrumb"},_q=["data-test","onClick"],od=R(t.defineComponent({name:"UnnnicBreadcrumb",__name:"Breadcrumb",props:{crumbs:{default:null}},emits:["crumb-click"],setup(e,{emit:a}){const n=a;return(i,r)=>(t.openBlock(),t.createElementBlock("div",fq,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.crumbs,(s,u)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:s.name},[t.createElementVNode("div",{class:t.normalizeClass({"unnnic-breadcrumb__container__link":!0,"unnnic-breadcrumb__container__link__active":u===i.crumbs.length-1}),"data-test":s.name,onClick:d=>n("crumb-click",s)},t.toDisplayString(s.name),11,_q),u!==i.crumbs.length-1?(t.openBlock(),t.createBlock(be,{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))]))}}),[["__scopeId","data-v-13c72b4a"]]),gq={class:"unnnic-switch"},hq=["disabled","checked"],mq={key:1,class:"unnnic-switch__helper"},sd=R(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:a}){const n=e,i=a,r=t.ref(n.modelValue);t.watch(()=>n.modelValue,u=>{u!==r.value&&(r.value=u)},{immediate:!0});function s(){n.disabled||(r.value=!r.value,i("update:model-value",r.value))}return(u,d)=>(t.openBlock(),t.createElementBlock("section",gq,[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($t.pick)(u.$attrs,["id","name"]),{onChange:s}),null,16,hq),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",mq,t.toDisplayString(u.helper),1)):t.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-ee5c330b"]]),Fq={name:"UnnnicDataArea",components:{ToolTip:la},props:{title:{type:String,default:null},text:{type:String,default:null},enableHover:{type:Boolean,default:!1},hoverText:{type:String,default:""}}},pq={class:"data-area-container"},bq={class:"data-area-container__header"},yq={class:"data-area-container__header__title"},kq={class:"data-area-container__header__links-slot"},wq={class:"data-area-container__content"},Dq={class:"data-area-container__content__text"},Cq={class:"data-area-container__content__buttons-slot"};function Eq(e,a,n,i,r,s){const u=t.resolveComponent("ToolTip");return t.openBlock(),t.createElementBlock("div",pq,[t.createElementVNode("div",bq,[t.createElementVNode("div",yq,t.toDisplayString(n.title),1),t.createElementVNode("div",kq,[t.renderSlot(e.$slots,"links",{},void 0,!0)])]),t.createElementVNode("div",wq,[t.createVNode(u,{enabled:n.enableHover,text:n.hoverText},{default:t.withCtx(()=>[t.createElementVNode("div",Dq,t.toDisplayString(n.text),1)]),_:1},8,["enabled","text"]),t.createElementVNode("div",Cq,[t.renderSlot(e.$slots,"buttons",{},void 0,!0)])])])}const ld=R(Fq,[["render",Eq],["__scopeId","data-v-532aa33d"]]),Aq={class:"pagination"},cl=R(t.defineComponent({name:"UnnnicPagination",__name:"Pagination",props:{modelValue:{default:1},max:{default:1},show:{default:5},disabled:{type:Boolean,default:!1}},emits:["update:model-value"],setup(e,{emit:a}){const n=e,i=a,r=t.ref(3),s=t.computed(()=>{const p=[];for(let C=1;C<=n.max;C+=1)p.push(C);const y=n.show-4,w=n.max-y-3;if(r.value>3){const C=r.value-2,v=C>w?w:C;p.splice(1,v,"left-hidden")}if(r.value<n.max-y-1){const C=n.max-y-r.value,v=C>w?w:C;p.splice(-(v+1),v,"right-hidden")}return p}),u=t.computed(()=>n.modelValue>1),d=t.computed(()=>n.modelValue<n.max);function c(p){r.value=p}function _(p,y){if(p==="left-hidden"){const w=s.value[s.value.indexOf("left-hidden")+1]-1;y||i("update:model-value",w),c(w)}else if(p==="right-hidden"){const w=s.value[s.value.indexOf("right-hidden")-1]+1;y||i("update:model-value",w),s.value.includes("left-hidden")?c(s.value[s.value.indexOf("left-hidden")+1]+1):c(4)}else y||i("update:model-value",p)}function g(){if(u.value){const p=n.modelValue-1;_(p),s.value.includes(p)||c(p)}}function h(){if(d.value){const p=n.modelValue+1;_(p),s.value.includes(p)||c(p)}}const F=n.modelValue;return _(F,!0),s.value.includes(F)||c(F),(p,y)=>(t.openBlock(),t.createElementBlock("div",Aq,[t.createVNode(bt,{type:"tertiary",size:"small",iconCenter:"arrow-left-1-1",disabled:!u.value||p.disabled,"data-test":"previous-button",onClick:g},null,8,["disabled"]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.value,(w,C)=>(t.openBlock(),t.createBlock(bt,{key:C,type:w===p.modelValue?"secondary":"tertiary",size:"small",text:["left-hidden","right-hidden"].includes(w)?"...":String(w),disabled:p.disabled,"data-test":"page-button",onClick:v=>_(w)},null,8,["type","text","disabled","onClick"]))),128)),t.createVNode(bt,{type:"tertiary",size:"small",iconCenter:"arrow-right-1-1",disabled:!d.value||p.disabled,"data-test":"next-button",onClick:h},null,8,["disabled"])]))}}),[["__scopeId","data-v-0e9e368a"]]),Xm={"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(Xm);const Zm={"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(Zm);var Ta=function(e,a,n,i){if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof a=="function"?e!==a||!i:!a.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?i:n==="a"?i.call(e):i?i.value:a.get(e)},Ar,vo,Oi;class xq{constructor(...a){Ar.set(this,new Map),vo.set(this,new Map),Oi.set(this,new Map);for(const n of a)this.define(n)}define(a,n=!1){for(let[i,r]of Object.entries(a)){i=i.toLowerCase(),r=r.map(d=>d.toLowerCase()),Ta(this,Oi,"f").has(i)||Ta(this,Oi,"f").set(i,new Set);const s=Ta(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&&Ta(this,vo,"f").set(i,d),u=!1,c)continue;const _=Ta(this,Ar,"f").get(d);if(_&&_!=i&&!n)throw new Error(`"${i} -> ${d}" conflicts with "${_} -> ${d}". Pass \`force=true\` to override this definition.`);Ta(this,Ar,"f").set(d,i)}}return this}getType(a){if(typeof a!="string")return null;const n=a.replace(/^.*[/\\]/s,"").toLowerCase(),i=n.replace(/^.*\./s,"").toLowerCase(),r=n.length<a.length;return!(i.length<n.length-1)&&r?null:Ta(this,Ar,"f").get(i)??null}getExtension(a){var n;return typeof a!="string"?null:(a=(n=a==null?void 0:a.split)==null?void 0:n.call(a,";")[0],(a&&Ta(this,vo,"f").get(a.trim().toLowerCase()))??null)}getAllExtensions(a){return typeof a!="string"?null:Ta(this,Oi,"f").get(a.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 a of Ta(this,Oi,"f").values())Object.freeze(a);return this}_getTestState(){return{types:Ta(this,Ar,"f"),extensions:Ta(this,vo,"f")}}}Ar=new WeakMap,vo=new WeakMap,Oi=new WeakMap;const Bq=new xq(Zm,Xm)._freeze(),vq={class:"unnnic-upload-area__dropzone__content"},jq={class:"unnnic-upload-area__dropzone__content__title"},Sq=["title"],qq=["accept","multiple"],fl=R({__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:a}){const n=t.ref(!1),i=t.ref(!1),r=t.ref(0),s=t.useTemplateRef("file"),u=e,d=a,c=t.getCurrentInstance();function _(I){var P,M;return!!((M=(P=c==null?void 0:c.vnode)==null?void 0:P.props)!=null&&M[I])}const g=t.computed(()=>u.supportedFormats.split(",").map(P=>P.toUpperCase()).join(", "));function h(){u.disabled||(r.value+=1,n.value=!0)}function F(){u.disabled||(n.value=!0)}function p(){u.disabled||(r.value-=1,r.value===0&&(n.value=!1))}function y(){u.disabled||(n.value=!1)}function w(I){if(u.disabled)return;n.value=!1;const{files:P}=I.dataTransfer;k(P)&&j(P)}function C(){u.disabled||s.value.click()}function v(I){if(u.disabled)return;const{files:P}=I.target;k(P)&&j(P),s.value.value=""}function x(){i.value=!0,setTimeout(()=>{i.value=!1},5e3)}function k(I){return!u.acceptMultiple&&I.length>1?(x(),!1):A(I)?N(I)?!0:(_("onExceededTheMaximumFileSizeLimit")?d("exceededTheMaximumFileSizeLimit"):x(),!1):(_("onUnsupportedFormat")?d("unsupportedFormat"):x(),!1)}function A(I){if(u.supportedFormats==="*")return!0;const P=u.supportedFormats.split(",").map(W=>W.trim());return Array.from(I).find(W=>{const ee=W.name.toLowerCase(),$=W.type.toLowerCase(),ce=`.${ee.split(".").pop()}`,ye=P.includes(ce),ke=$===Bq.getType(ee);return ye&&ke})}function N(I){return u.maxFileSize?Array.from(I).find(M=>(M.size/1048576).toFixed(2)<=u.maxFileSize):!0}function j(I){let P=I.length;if(u.shouldReplace||(P+=u.currentFiles.length),P>u.maximumUploads){x();return}const M=Array.from(I).filter(ee=>!!(A([ee])&&N([ee])));let W;u.shouldReplace?W=M:W=u.currentFiles.concat(M),d("update:currentFiles",W),d("fileChange",W)}return(I,P)=>(t.openBlock(),t.createElementBlock("section",{ref:"dropzone",class:t.normalizeClass({"unnnic-upload-area__dropzone":!0,"unnnic-upload-area__dropzone__is-dragover":n.value,"unnnic-upload-area__dropzone__has-error":i.value}),onDragenter:t.withModifiers(h,["stop","prevent"]),onDragover:t.withModifiers(F,["stop","prevent"]),onDragleave:t.withModifiers(p,["stop","prevent"]),onDragend:t.withModifiers(y,["stop","prevent"]),onDrop:t.withModifiers(w,["stop","prevent"]),onClick:C},[t.createVNode(be,{class:"unnnic-upload-area__dropzone__icon",icon:"upload",scheme:i.value?"feedback-red":"weni-500",size:"lg"},null,8,["scheme"]),t.createElementVNode("div",vq,[t.createElementVNode("span",jq,[t.renderSlot(I.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(I.$t("upload_area.title.text"))+" ",1),t.createElementVNode("span",{class:t.normalizeClass(`unnnic-upload-area__dropzone__content__title__${i.value?"error":"search"}`)},t.toDisplayString(I.$t("upload_area.title.highlight")),3)],!0)]),t.createElementVNode("span",{class:t.normalizeClass(["unnnic-upload-area__dropzone__content__subtitle",{"unnnic-upload-area__dropzone__content__subtitle__error":i.value}]),title:g.value},[t.renderSlot(I.$slots,"subtitle",{},()=>[t.createTextVNode(t.toDisplayString(e.subtitle||`${I.$t(`upload_area${i.value?".invalid":""}.subtitle`)} ${g.value}`),1)],!0)],10,Sq)]),t.withDirectives(t.createElementVNode("input",{ref:"file",type:"file",accept:e.supportedFormats,multiple:e.acceptMultiple,onInput:v},null,40,qq),[[t.vShow,!1]])],34))}},[["__scopeId","data-v-9585b47a"]]),Tq={name:"ImportCard",components:{UnnnicButton:bt,UnnnicIcon:be},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:a}=e.target;let n;a.length>0&&([n]=e.target.files),n&&this.$emit("modifiedFile",n)},emitDeletion(){this.$emit("delete")}}},Iq={class:"unnnic-import-card"},Nq={class:"unnnic-import-card__data"},Oq={key:0,class:"unnnic-import-card__data__title"},Mq={key:1,class:"unnnic-import-card__data__title"},Pq={key:2,class:"unnnic-import-card__data__subtitle"},Lq={key:0,class:"unnnic-import-card__data__subtitle__text"},Vq={key:1,class:"unnnic-import-card__data__subtitle__progress"},Rq={class:"unnnic-import-card__buttons"},zq=["accept"];function Uq(e,a,n,i,r,s){const u=t.resolveComponent("UnnnicIcon"),d=t.resolveComponent("UnnnicButton");return t.openBlock(),t.createElementBlock("div",Iq,[t.createVNode(u,{class:"unnnic-import-card__file-icon",size:"md",scheme:"weni-600",icon:s.fileIcon},null,8,["icon"]),t.createElementVNode("div",Nq,[n.isImporting?(t.openBlock(),t.createElementBlock("div",Oq,t.toDisplayString(e.$t("import_card.importing"))+"... ",1)):(t.openBlock(),t.createElementBlock("div",Mq,t.toDisplayString(n.title),1)),n.subtitle&&n.isImporting?(t.openBlock(),t.createElementBlock("div",Pq,[n.subtitle&&n.isImporting?(t.openBlock(),t.createElementBlock("div",Lq,t.toDisplayString(n.subtitle),1)):t.createCommentVNode("",!0),n.subtitle&&n.isImporting?(t.openBlock(),t.createElementBlock("div",Vq,"  - "+t.toDisplayString(n.importProgress)+"% ",1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Rq,[n.canImport?(t.openBlock(),t.createBlock(d,{key:0,class:"unnnic-import-card__buttons__import",size:"small",iconCenter:n.uploadIcon,type:"primary",onClick:s.importFile},{default:t.withCtx(()=>[t.createElementVNode("input",{ref:"file",type:"file",accept:n.acceptedFormats,style:{display:"none"},onChange:a[0]||(a[0]=(...c)=>s.handleFileChange&&s.handleFileChange(...c))},null,40,zq)]),_:1},8,["iconCenter","onClick"])):t.createCommentVNode("",!0),n.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 _l=R(Tq,[["render",Uq],["__scopeId","data-v-ae2cb257"]]),Hq={name:"UnnnicUploadArea",components:{UnnnicDropArea:fl,UnnnicImportCard:_l},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,a){this.currentFiles.splice(e,1,a),this.emitFileChange()},removeFile(e){this.currentFiles.splice(e,1),this.emitFileChange()}}},Yq={key:0,class:"unnnic-upload-area__cards"};function Gq(e,a,n,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":a[0]||(a[0]=c=>r.currentFiles=c),acceptMultiple:n.acceptMultiple,supportedFormats:n.supportedFormats,maxFileSize:n.maxFileSize,shouldReplace:n.shouldReplace,maximumUploads:n.maximumUploads,subtitle:n.subtitle,onFileChange:a[1]||(a[1]=c=>e.$emit("fileChange",c))},null,8,["currentFiles","acceptMultiple","supportedFormats","maxFileSize","shouldReplace","maximumUploads","subtitle"]),r.currentFiles.length>0?(t.openBlock(),t.createElementBlock("div",Yq,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.currentFiles,(c,_)=>(t.openBlock(),t.createBlock(d,{key:_,title:c.name,subtitle:c.name,isImporting:n.isUploading,importProgress:n.filesProgress[_]||100,canImport:n.canImport,canDelete:n.canDelete,acceptedFormats:n.supportedFormats,uploadIcon:"button-refresh-arrows-1",onDelete:g=>s.removeFile(_),onModifiedFile:g=>s.modifyFile(_,g)},null,8,["title","subtitle","isImporting","importProgress","canImport","canDelete","acceptedFormats","onDelete","onModifiedFile"]))),128))])):t.createCommentVNode("",!0)])}const ud=R(Hq,[["render",Gq],["__scopeId","data-v-872a45ed"]]),Wq={name:"UnnnicDateFilter",components:{UnnnicInput:_n},props:{size:{type:String,default:"sm"},dateFormat:{type:String,default:"DD/MM/YYYY"},dateSeparator:{type:String,default:"~"},startDate:{type:Date,default:null},endDate:{type:Date,default:null},placeholder:{type:String,default:""}},computed:{dateRange(){let e="";if(this.startDate){const a=oe(this.startDate).format(this.dateFormat.replaceAll("/",""));e+=a.toString()}if(this.endDate){const a=oe(this.endDate).format(this.dateFormat.replaceAll("/",""));e+=a.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")}}},$q={class:"unnnic-date-filter"};function Qq(e,a,n,i,r,s){const u=t.resolveComponent("UnnnicInput");return t.openBlock(),t.createElementBlock("div",$q,[t.createVNode(u,{class:"unnnic-date-filter__input",size:n.size,iconLeft:"notes-1",readonly:"",mask:s.fullMask,value:s.dateRange,placeholder:n.placeholder,onFocus:t.withModifiers(s.emitFilter,["stop"])},null,8,["size","mask","value","placeholder","onFocus"])])}const dd=R(Wq,[["render",Qq]]),Kq=["placeholder","maxlength","disabled","value"],cd=R(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:a}){t.useCssVars(s=>({a63f65de:s.resize}));const n=e,i=t.computed(()=>Array.isArray(n.errors)?n.errors.join(", "):typeof n.errors=="string"?n.errors:""),r=t.ref(null);return a({focus:()=>{var s;(s=r.value)==null||s.focus()}}),(s,u)=>(t.openBlock(),t.createBlock(ao,{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(Zn)(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(Zn)(((c=d.target)==null?void 0:c.value)??""))})},null,42,Kq)]),_: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"]]),Xq={props:{description:{type:String,default:""},number:{type:String,default:""},fullSize:{type:Boolean,default:!1}}};function Zq(e,a,n,i,r,s){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["unnnic-card-number",{"v-full":n.fullSize}])},[t.createElementVNode("h4",null,t.toDisplayString(n.description),1),t.createElementVNode("span",null,t.toDisplayString(n.number),1)],2)}const fd=R(Xq,[["render",Zq],["__scopeId","data-v-b36ba472"]]),Jq={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 a(i,r,s,u,d,c){const _=s,g=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 n=a(166,166,139.44,152.72,-85,85);this.$refs.background.setAttribute("d",n),this.$refs.front.setAttribute("d",a(166,166,139.44,152.72,-85,-85+this.modelValue/100*170))}}},eT={class:"unnnic-chart-rainbow"},tT={width:"332",height:"166",class:"semicircle"},aT={id:"path",ref:"background",fill:"none","stroke-linecap":"round",class:"background","stroke-width":"26.56px"},nT={id:"path",ref:"front",fill:"none","stroke-linecap":"round",class:"front","stroke-width":"26.56px"},iT={class:"content"},rT={class:"percentage"},oT={class:"number"},sT={key:0,class:"description"};function lT(e,a,n,i,r,s){return t.openBlock(),t.createElementBlock("div",eT,[(t.openBlock(),t.createElementBlock("svg",tT,[a[0]||(a[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",aT,null,512),t.createElementVNode("path",nT,null,512)])),t.createElementVNode("div",iT,[t.createElementVNode("div",rT,[t.createElementVNode("span",oT,t.toDisplayString(n.modelValue),1),a[1]||(a[1]=t.createElementVNode("span",{class:"symbol"},"%",-1))]),n.description?(t.openBlock(),t.createElementBlock("div",sT,t.toDisplayString(n.description),1)):t.createCommentVNode("",!0)])])}const _d=R(Jq,[["render",lT],["__scopeId","data-v-ae7c10f4"]]),uT={components:{UnnnicIcon:be,UnnnicButton:bt,UnnnicToolTip:la},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,a,n)=>n.indexOf(e)===a)},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))}}},dT={key:0,class:"header"},cT={key:0,class:"content"},fT={key:1,class:"description unnnic-font secondary body-gt color-fg-base"},_T={key:1,class:"actions"},gT={key:0,class:"unnnic-font secondary body-md color-fg-base"},hT={key:1,class:"navigation-container"},mT={class:"main"},FT={class:"reference"},pT={class:"values"},bT={class:"groups"},yT={class:"bars"},kT={class:"title unnnic-font secondary body-md color-fg-muted"},wT={key:1,class:"footer"},DT={class:"unnnic-font secondary body-gt color-fg-base"};function CT(e,a,n,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:n.condensed}])},[n.title||n.description||e.$attrs.update||e.$attrs.previous||e.$attrs.next?(t.openBlock(),t.createElementBlock("div",dT,[n.title||n.description?(t.openBlock(),t.createElementBlock("div",cT,[n.title?(t.openBlock(),t.createElementBlock("div",{key:0,class:"title unnnic-font bold title-sm color-fg-emphasized",onClick:a[0]||(a[0]=_=>e.$emit("update"))},t.toDisplayString(n.title),1)):t.createCommentVNode("",!0),n.description?(t.openBlock(),t.createElementBlock("div",fT,t.toDisplayString(n.description),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),e.$attrs.update||e.$attrs.previous||e.$attrs.next?(t.openBlock(),t.createElementBlock("div",_T,[e.$attrs.update?(t.openBlock(),t.createElementBlock("div",{key:0,class:"update-button",onClick:a[1]||(a[1]=_=>e.$emit("update"))},[t.createVNode(u,{icon:"button-refresh-arrow-1",size:"sm",scheme:"fg-emphasized"}),n.updateText?(t.openBlock(),t.createElementBlock("span",gT,t.toDisplayString(n.updateText),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),e.$attrs.previous||e.$attrs.next?(t.openBlock(),t.createElementBlock("div",hT,[e.$attrs.previous?(t.openBlock(),t.createBlock(d,{key:0,size:"small",type:"tertiary",iconCenter:"arrow-left-1-1",disabled:n.previousDisabled,onClick:a[2]||(a[2]=_=>e.$emit("previous"))},null,8,["disabled"])):t.createCommentVNode("",!0),e.$attrs.next?(t.openBlock(),t.createBlock(d,{key:1,size:"small",type:"tertiary",iconCenter:"arrow-right-1-1",disabled:n.nextDisabled,onClick:a[3]||(a[3]=_=>e.$emit("next"))},null,8,["disabled"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",mT,[t.createElementVNode("div",FT,[t.createElementVNode("div",pT,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList([s.value(s.maxValue),s.value(s.maxValue/2),s.value(0)],(_,g)=>(t.openBlock(),t.createElementBlock("div",{key:g,class:"value unnnic-font secondary body-md color-fg-muted"},t.toDisplayString(_),1))),128))]),a[4]||(a[4]=t.createElementVNode("div",{class:"unnnic-font secondary body-md color-fg-muted"}," ",-1))]),t.createElementVNode("div",bT,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.groups,(_,g)=>(t.openBlock(),t.createElementBlock("div",{key:g,class:"group"},[t.createElementVNode("div",yT,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.legends.map((h,F)=>({legend:h,index:F})).filter(({legend:h})=>_.values[h]),({legend:h,index:F})=>(t.openBlock(),t.createBlock(c,{key:F,enabled:"",text:`${_.title}: ${_.values[h]}
66
66
  ${h}`,side:"top",style:t.normalizeStyle({height:`${_.values[h]/s.maxValue*100}%`})},{default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass(["bar",`color-${F}`])},null,2)]),_:2},1032,["text","style"]))),128))]),t.createElementVNode("div",kT,t.toDisplayString(_.title),1)]))),128))])]),n.showFooterLegend?(t.openBlock(),t.createElementBlock("div",wT,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.legends,(_,g)=>(t.openBlock(),t.createElementBlock("div",{key:g,class:"legend"},[t.createVNode(u,{icon:"indicator",scheme:r.colors[g]},null,8,["scheme"]),t.createElementVNode("div",DT,t.toDisplayString(_),1)]))),128))])):t.createCommentVNode("",!0)],2)}const gd=R(uT,[["render",CT],["__scopeId","data-v-f866faa8"]]),ET={components:{UnnnicToolTip:la},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)),a=100/e.length,n=a/2;let i="";i+=`L ${a/2} ${e[0]}`;let r=0;for(let u=1;u<e.length;u+=1)u===1?r=a*1.5:r+=a,i+=`C ${r-n} ${e[u-1]} ${r-n} ${e[u]} ${r} ${e[u]}`;e.length<=1&&(r+=a/2),i+=`L ${r+n} ${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>