@sysvale/cuida 3.79.0 → 3.79.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -66,7 +66,7 @@ __p += '`),Ze&&(te+=`' +
|
|
|
66
66
|
function print() { __p += __j.call(arguments, '') }
|
|
67
67
|
`:`;
|
|
68
68
|
`)+te+`return __p
|
|
69
|
-
}`;var Le=I6(function(){return ot(D,ve+"return "+te).apply(n,T)});if(Le.source=te,wp(Le))throw Le;return Le}function lae(c){return dt(c).toLowerCase()}function cae(c){return dt(c).toUpperCase()}function dae(c,u,p){if(c=dt(c),c&&(p||u===n))return H_(c);if(!c||!(u=ci(u)))return c;var b=Ui(c),C=Ui(u),D=W_(b,C),T=Y_(b,C)+1;return Ds(b,D,T).join("")}function uae(c,u,p){if(c=dt(c),c&&(p||u===n))return c.slice(0,U_(c)+1);if(!c||!(u=ci(u)))return c;var b=Ui(c),C=Y_(b,Ui(u))+1;return Ds(b,0,C).join("")}function hae(c,u,p){if(c=dt(c),c&&(p||u===n))return c.replace(Ir,"");if(!c||!(u=ci(u)))return c;var b=Ui(c),C=W_(b,Ui(u));return Ds(b,C).join("")}function fae(c,u){var p=q,b=ne;if(Rt(u)){var C="separator"in u?u.separator:C;p="length"in u?Pe(u.length):p,b="omission"in u?ci(u.omission):b}c=dt(c);var D=c.length;if(Ao(c)){var T=Ui(c);D=T.length}if(p>=D)return c;var z=p-No(b);if(z<1)return b;var F=T?Ds(T,0,z).join(""):c.slice(0,z);if(C===n)return F+b;if(T&&(z+=F.length-z),kp(C)){if(c.slice(z).search(C)){var X,J=F;for(C.global||(C=P0(C.source,dt(on.exec(C))+"g")),C.lastIndex=0;X=C.exec(J);)var te=X.index;F=F.slice(0,te===n?z:te)}}else if(c.indexOf(ci(C),z)!=z){var de=F.lastIndexOf(C);de>-1&&(F=F.slice(0,de))}return F+b}function pae(c){return c=dt(c),c&&at.test(c)?c.replace(ke,Wee):c}var mae=Wo(function(c,u,p){return c+(p?" ":"")+u.toUpperCase()}),Sp=$v("toUpperCase");function T6(c,u,p){return c=dt(c),u=p?n:u,u===n?Pee(c)?Uee(c):Eee(c):c.match(u)||[]}var I6=Re(function(c,u){try{return fn(c,n,u)}catch(p){return wp(p)?p:new Ie(p)}}),gae=Yr(function(c,u){return Oi(u,function(p){p=fr(p),Hr(c,p,_p(c[p],c))}),c});function yae(c){var u=c==null?0:c.length,p=Se();return c=u?zt(c,function(b){if(typeof b[1]!="function")throw new Di(o);return[p(b[0]),b[1]]}):[],Re(function(b){for(var C=-1;++C<u;){var D=c[C];if(fn(D[0],this,b))return fn(D[1],this,b)}})}function bae(c){return Wte(Bi(c,m))}function Mp(c){return function(){return c}}function _ae(c,u){return c==null||c!==c?u:c}var vae=Nv(),wae=Nv(!0);function Qn(c){return c}function Op(c){return hv(typeof c=="function"?c:Bi(c,m))}function kae(c){return pv(Bi(c,m))}function Cae(c,u){return mv(c,Bi(u,m))}var xae=Re(function(c,u){return function(p){return $c(p,c,u)}}),Sae=Re(function(c,u){return function(p){return $c(c,p,u)}});function Dp(c,u,p){var b=pn(u),C=ih(u,b);p==null&&!(Rt(u)&&(C.length||!b.length))&&(p=u,u=c,c=this,C=ih(u,pn(u)));var D=!(Rt(p)&&"chain"in p)||!!p.chain,T=Ur(c);return Oi(C,function(z){var F=u[z];c[z]=F,T&&(c.prototype[z]=function(){var X=this.__chain__;if(D||X){var J=c(this.__wrapped__),te=J.__actions__=Zn(this.__actions__);return te.push({func:F,args:arguments,thisArg:c}),J.__chain__=X,J}return F.apply(c,ks([this.value()],arguments))})}),c}function Mae(){return He._===this&&(He._=Jee),this}function Ep(){}function Oae(c){return c=Pe(c),Re(function(u){return gv(u,c)})}var Dae=ap(zt),Eae=ap(z_),Bae=ap(V0);function $6(c){return fp(c)?T0(fr(c)):ane(c)}function Vae(c){return function(u){return c==null?n:_a(c,u)}}var Tae=Pv(),Iae=Pv(!0);function Bp(){return[]}function Vp(){return!1}function $ae(){return{}}function Aae(){return""}function Nae(){return!0}function zae(c,u){if(c=Pe(c),c<1||c>be)return[];var p=fe,b=En(c,fe);u=Se(u),c-=fe;for(var C=A0(b,u);++p<c;)u(p);return C}function Pae(c){return Ae(c)?zt(c,fr):di(c)?[c]:Zn(e6(dt(c)))}function Lae(c){var u=++Zee;return dt(c)+u}var Fae=ch(function(c,u){return c+u},0),Rae=op("ceil"),Hae=ch(function(c,u){return c/u},1),Wae=op("floor");function Yae(c){return c&&c.length?nh(c,Qn,U0):n}function jae(c,u){return c&&c.length?nh(c,Se(u,2),U0):n}function Uae(c){return F_(c,Qn)}function qae(c,u){return F_(c,Se(u,2))}function Gae(c){return c&&c.length?nh(c,Qn,Z0):n}function Kae(c,u){return c&&c.length?nh(c,Se(u,2),Z0):n}var Zae=ch(function(c,u){return c*u},1),Xae=op("round"),Jae=ch(function(c,u){return c-u},0);function Qae(c){return c&&c.length?$0(c,Qn):0}function eoe(c,u){return c&&c.length?$0(c,Se(u,2)):0}return M.after=kre,M.ary=u6,M.assign=cse,M.assignIn=S6,M.assignInWith=kh,M.assignWith=dse,M.at=use,M.before=h6,M.bind=_p,M.bindAll=gae,M.bindKey=f6,M.castArray=$re,M.chain=l6,M.chunk=Wne,M.compact=Yne,M.concat=jne,M.cond=yae,M.conforms=bae,M.constant=Mp,M.countBy=Qie,M.create=hse,M.curry=p6,M.curryRight=m6,M.debounce=g6,M.defaults=fse,M.defaultsDeep=pse,M.defer=Cre,M.delay=xre,M.difference=Une,M.differenceBy=qne,M.differenceWith=Gne,M.drop=Kne,M.dropRight=Zne,M.dropRightWhile=Xne,M.dropWhile=Jne,M.fill=Qne,M.filter=tre,M.flatMap=rre,M.flatMapDeep=sre,M.flatMapDepth=are,M.flatten=r6,M.flattenDeep=eie,M.flattenDepth=tie,M.flip=Sre,M.flow=vae,M.flowRight=wae,M.fromPairs=nie,M.functions=wse,M.functionsIn=kse,M.groupBy=ore,M.initial=rie,M.intersection=sie,M.intersectionBy=aie,M.intersectionWith=oie,M.invert=xse,M.invertBy=Sse,M.invokeMap=cre,M.iteratee=Op,M.keyBy=dre,M.keys=pn,M.keysIn=Jn,M.map=gh,M.mapKeys=Ose,M.mapValues=Dse,M.matches=kae,M.matchesProperty=Cae,M.memoize=bh,M.merge=Ese,M.mergeWith=M6,M.method=xae,M.methodOf=Sae,M.mixin=Dp,M.negate=_h,M.nthArg=Oae,M.omit=Bse,M.omitBy=Vse,M.once=Mre,M.orderBy=ure,M.over=Dae,M.overArgs=Ore,M.overEvery=Eae,M.overSome=Bae,M.partial=vp,M.partialRight=y6,M.partition=hre,M.pick=Tse,M.pickBy=O6,M.property=$6,M.propertyOf=Vae,M.pull=uie,M.pullAll=a6,M.pullAllBy=hie,M.pullAllWith=fie,M.pullAt=pie,M.range=Tae,M.rangeRight=Iae,M.rearg=Dre,M.reject=mre,M.remove=mie,M.rest=Ere,M.reverse=yp,M.sampleSize=yre,M.set=$se,M.setWith=Ase,M.shuffle=bre,M.slice=gie,M.sortBy=wre,M.sortedUniq=Cie,M.sortedUniqBy=xie,M.split=rae,M.spread=Bre,M.tail=Sie,M.take=Mie,M.takeRight=Oie,M.takeRightWhile=Die,M.takeWhile=Eie,M.tap=Yie,M.throttle=Vre,M.thru=mh,M.toArray=k6,M.toPairs=D6,M.toPairsIn=E6,M.toPath=Pae,M.toPlainObject=x6,M.transform=Nse,M.unary=Tre,M.union=Bie,M.unionBy=Vie,M.unionWith=Tie,M.uniq=Iie,M.uniqBy=$ie,M.uniqWith=Aie,M.unset=zse,M.unzip=bp,M.unzipWith=o6,M.update=Pse,M.updateWith=Lse,M.values=Uo,M.valuesIn=Fse,M.without=Nie,M.words=T6,M.wrap=Ire,M.xor=zie,M.xorBy=Pie,M.xorWith=Lie,M.zip=Fie,M.zipObject=Rie,M.zipObjectDeep=Hie,M.zipWith=Wie,M.entries=D6,M.entriesIn=E6,M.extend=S6,M.extendWith=kh,Dp(M,M),M.add=Fae,M.attempt=I6,M.camelCase=Yse,M.capitalize=B6,M.ceil=Rae,M.clamp=Rse,M.clone=Are,M.cloneDeep=zre,M.cloneDeepWith=Pre,M.cloneWith=Nre,M.conformsTo=Lre,M.deburr=V6,M.defaultTo=_ae,M.divide=Hae,M.endsWith=jse,M.eq=Gi,M.escape=Use,M.escapeRegExp=qse,M.every=ere,M.find=nre,M.findIndex=n6,M.findKey=mse,M.findLast=ire,M.findLastIndex=i6,M.findLastKey=gse,M.floor=Wae,M.forEach=c6,M.forEachRight=d6,M.forIn=yse,M.forInRight=bse,M.forOwn=_se,M.forOwnRight=vse,M.get=Cp,M.gt=Fre,M.gte=Rre,M.has=Cse,M.hasIn=xp,M.head=s6,M.identity=Qn,M.includes=lre,M.indexOf=iie,M.inRange=Hse,M.invoke=Mse,M.isArguments=ka,M.isArray=Ae,M.isArrayBuffer=Hre,M.isArrayLike=Xn,M.isArrayLikeObject=Zt,M.isBoolean=Wre,M.isBuffer=Es,M.isDate=Yre,M.isElement=jre,M.isEmpty=Ure,M.isEqual=qre,M.isEqualWith=Gre,M.isError=wp,M.isFinite=Kre,M.isFunction=Ur,M.isInteger=b6,M.isLength=vh,M.isMap=_6,M.isMatch=Zre,M.isMatchWith=Xre,M.isNaN=Jre,M.isNative=Qre,M.isNil=tse,M.isNull=ese,M.isNumber=v6,M.isObject=Rt,M.isObjectLike=jt,M.isPlainObject=Fc,M.isRegExp=kp,M.isSafeInteger=nse,M.isSet=w6,M.isString=wh,M.isSymbol=di,M.isTypedArray=jo,M.isUndefined=ise,M.isWeakMap=rse,M.isWeakSet=sse,M.join=lie,M.kebabCase=Gse,M.last=Ti,M.lastIndexOf=cie,M.lowerCase=Kse,M.lowerFirst=Zse,M.lt=ase,M.lte=ose,M.max=Yae,M.maxBy=jae,M.mean=Uae,M.meanBy=qae,M.min=Gae,M.minBy=Kae,M.stubArray=Bp,M.stubFalse=Vp,M.stubObject=$ae,M.stubString=Aae,M.stubTrue=Nae,M.multiply=Zae,M.nth=die,M.noConflict=Mae,M.noop=Ep,M.now=yh,M.pad=Xse,M.padEnd=Jse,M.padStart=Qse,M.parseInt=eae,M.random=Wse,M.reduce=fre,M.reduceRight=pre,M.repeat=tae,M.replace=nae,M.result=Ise,M.round=Xae,M.runInContext=L,M.sample=gre,M.size=_re,M.snakeCase=iae,M.some=vre,M.sortedIndex=yie,M.sortedIndexBy=bie,M.sortedIndexOf=_ie,M.sortedLastIndex=vie,M.sortedLastIndexBy=wie,M.sortedLastIndexOf=kie,M.startCase=sae,M.startsWith=aae,M.subtract=Jae,M.sum=Qae,M.sumBy=eoe,M.template=oae,M.times=zae,M.toFinite=qr,M.toInteger=Pe,M.toLength=C6,M.toLower=lae,M.toNumber=Ii,M.toSafeInteger=lse,M.toString=dt,M.toUpper=cae,M.trim=dae,M.trimEnd=uae,M.trimStart=hae,M.truncate=fae,M.unescape=pae,M.uniqueId=Lae,M.upperCase=mae,M.upperFirst=Sp,M.each=c6,M.eachRight=d6,M.first=s6,Dp(M,function(){var c={};return ur(M,function(u,p){yt.call(M.prototype,p)||(c[p]=u)}),c}(),{chain:!1}),M.VERSION=i,Oi(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){M[c].placeholder=M}),Oi(["drop","take"],function(c,u){qe.prototype[c]=function(p){p=p===n?1:cn(Pe(p),0);var b=this.__filtered__&&!u?new qe(this):this.clone();return b.__filtered__?b.__takeCount__=En(p,b.__takeCount__):b.__views__.push({size:En(p,fe),type:c+(b.__dir__<0?"Right":"")}),b},qe.prototype[c+"Right"]=function(p){return this.reverse()[c](p).reverse()}}),Oi(["filter","map","takeWhile"],function(c,u){var p=u+1,b=p==me||p==he;qe.prototype[c]=function(C){var D=this.clone();return D.__iteratees__.push({iteratee:Se(C,3),type:p}),D.__filtered__=D.__filtered__||b,D}}),Oi(["head","last"],function(c,u){var p="take"+(u?"Right":"");qe.prototype[c]=function(){return this[p](1).value()[0]}}),Oi(["initial","tail"],function(c,u){var p="drop"+(u?"":"Right");qe.prototype[c]=function(){return this.__filtered__?new qe(this):this[p](1)}}),qe.prototype.compact=function(){return this.filter(Qn)},qe.prototype.find=function(c){return this.filter(c).head()},qe.prototype.findLast=function(c){return this.reverse().find(c)},qe.prototype.invokeMap=Re(function(c,u){return typeof c=="function"?new qe(this):this.map(function(p){return $c(p,c,u)})}),qe.prototype.reject=function(c){return this.filter(_h(Se(c)))},qe.prototype.slice=function(c,u){c=Pe(c);var p=this;return p.__filtered__&&(c>0||u<0)?new qe(p):(c<0?p=p.takeRight(-c):c&&(p=p.drop(c)),u!==n&&(u=Pe(u),p=u<0?p.dropRight(-u):p.take(u-c)),p)},qe.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},qe.prototype.toArray=function(){return this.take(fe)},ur(qe.prototype,function(c,u){var p=/^(?:filter|find|map|reject)|While$/.test(u),b=/^(?:head|last)$/.test(u),C=M[b?"take"+(u=="last"?"Right":""):u],D=b||/^find/.test(u);C&&(M.prototype[u]=function(){var T=this.__wrapped__,z=b?[1]:arguments,F=T instanceof qe,X=z[0],J=F||Ae(T),te=function(je){var Ze=C.apply(M,ks([je],z));return b&&de?Ze[0]:Ze};J&&p&&typeof X=="function"&&X.length!=1&&(F=J=!1);var de=this.__chain__,ve=!!this.__actions__.length,Oe=D&&!de,Le=F&&!ve;if(!D&&J){T=Le?T:new qe(this);var De=c.apply(T,z);return De.__actions__.push({func:mh,args:[te],thisArg:n}),new Ei(De,de)}return Oe&&Le?c.apply(this,z):(De=this.thru(te),Oe?b?De.value()[0]:De.value():De)})}),Oi(["pop","push","shift","sort","splice","unshift"],function(c){var u=Ru[c],p=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",b=/^(?:pop|shift)$/.test(c);M.prototype[c]=function(){var C=arguments;if(b&&!this.__chain__){var D=this.value();return u.apply(Ae(D)?D:[],C)}return this[p](function(T){return u.apply(Ae(T)?T:[],C)})}}),ur(qe.prototype,function(c,u){var p=M[u];if(p){var b=p.name+"";yt.call(Fo,b)||(Fo[b]=[]),Fo[b].push({name:u,func:p})}}),Fo[lh(n,S).name]=[{name:"wrapper",func:n}],qe.prototype.clone=pte,qe.prototype.reverse=mte,qe.prototype.value=gte,M.prototype.at=jie,M.prototype.chain=Uie,M.prototype.commit=qie,M.prototype.next=Gie,M.prototype.plant=Zie,M.prototype.reverse=Xie,M.prototype.toJSON=M.prototype.valueOf=M.prototype.value=Jie,M.prototype.first=M.prototype.head,Oc&&(M.prototype[Oc]=Kie),M},zo=qee();Nt?((Nt.exports=zo)._=zo,Xe._=zo):He._=zo}).call(dn)}(Du,Du.exports);var Un=Du.exports;const ho=t=>/^(19|20)\d\d-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$/.test(t),Qf={components:{VDatePicker:bb,CdsChevron:$s,CdsIcon:Be},props:{modelValue:{type:[String,Object],default:"",validator:t=>t===""||typeof t=="object"||ho(t)},label:{type:String,default:"Date"},disabled:{type:Boolean,default:!1},state:{type:String,default:"default"},range:{type:Boolean,default:!1},required:{type:Boolean,default:!1},errorMessage:{type:String,default:"Valor inválido"},fluid:{type:Boolean,default:!1},minDate:{type:String,default:"",validator:t=>t===""||ho(t)},maxDate:{type:String,default:"",validator:t=>t===""||ho(t)},placeholder:{type:String,default:"Selecione uma data"},showTodayDot:{type:Boolean,default:!1},variant:{type:String,default:"green"},mobile:{type:Boolean,default:!1}},data(){return{sassColorVariables:Yn,internalDate:ue.now(),isBeingFocused:!1,inputControl:0,attributes:[{dates:new Date,dot:!0}],variantColorData:{}}},computed:{errorState(){return this.state==="invalid"},hasSlots(){return!!Object.keys(this.$slots).length},inputClass(){let t="";return this.disabled?this.fluid?"date-input--disabled date-input--fluid":"date-input--disabled":(this.isBeingFocused?this.disabled||(this.state==="valid"?t+=" date-input--focused-valid":this.state==="invalid"&&(t+=" date-input--focused-invalid")):this.disabled||(this.state==="valid"?t+=" date-input--valid":this.state==="invalid"&&(t+=" date-input--invalid")),t+=this.fluid?" date-input--fluid":" date-input",t)},calendarDotColor(){return this.variantColorData.colorData[4].shade},calendarTextColor(){return this.variantColorData.colorData[7].shade},calendarTrailColor(){return this.variantColorData.colorData[1].shade},resolveMobile(){return this.mobile?"48px":"40px"}},watch:{modelValue(t,e){t!==e&&this.resolveInternalDate()},variant(t,e){t!==e&&this.updateColorData()}},created(){this.updateColorData()},mounted(){this.resolveInternalDate()},methods:{paleteBuilder:rr,updateColorData(){this.variantColorData=this.paleteBuilder(Yn.palete).find(t=>t.variantName.toLowerCase()===this.variant)},handleUpdateInput(t){if(this.range){this.$emit("update:modelValue",t.start&&t.end?{start:ue.fromJSDate(t.start).toFormat("yyyy-MM-dd"),end:ue.fromJSDate(t.end).toFormat("yyyy-MM-dd")}:"");return}this.$emit("update:modelValue",t?ue.fromJSDate(t).toFormat("yyyy-MM-dd"):"")},resolveInternalDate(){if(!this.modelValue){this.internalDate=this.range?null:"";return}if(this.range){this.internalDate=ho(this.modelValue.start)&&ho(this.modelValue.end)?{start:ue.fromFormat(this.modelValue.start,"yyyy-MM-dd"),end:ue.fromFormat(this.modelValue.end,"yyyy-MM-dd")}:{start:ue.now(),end:ue.now()};return}this.internalDate=ho(this.modelValue)?ue.fromFormat(this.modelValue,"yyyy-MM-dd"):ue.now()},resolveInputValue(t){return typeof t!="object"?t:!t.start&&!t.end||Un.isEmpty(t)?null:`${t.start} a ${t.end}`}}},_b=()=>{r.useCssVars(t=>({f4f202ae:t.resolveMobile,"303646c0":t.calendarTrailColor,"528f77da":t.calendarTextColor,"1cc9da1d":t.calendarDotColor}))},vb=Qf.setup;Qf.setup=vb?(t,e)=>(_b(),vb(t,e)):_b;const hj={class:"date-input__container"},fj={key:0},pj={key:1,class:"date-input__label"},mj={class:"label__content",for:"cds-text-input"},gj={key:0,class:"label__required-indicator"},yj=["value","disabled","placeholder","onClick"],bj={class:"date-input__icon"},_j={key:0,class:"date-input__error-message"};function vj(t,e,n,i,s,a){const o=r.resolveComponent("cds-chevron"),l=r.resolveComponent("cds-icon"),d=r.resolveComponent("v-date-picker");return r.openBlock(),r.createElementBlock("div",hj,[r.createElementVNode("span",null,[a.hasSlots?(r.openBlock(),r.createElementBlock("span",fj,[r.renderSlot(t.$slots,"label",{},void 0,!0)])):(r.openBlock(),r.createElementBlock("label",pj,[r.createElementVNode("div",mj,[r.createElementVNode("span",null,r.toDisplayString(n.label),1),n.required?(r.openBlock(),r.createElementBlock("span",gj," * ")):r.createCommentVNode("",!0)])]))]),r.createVNode(d,{id:"cds-date-input",modelValue:s.internalDate,"onUpdate:modelValue":[e[2]||(e[2]=h=>s.internalDate=h),a.handleUpdateInput],locale:"pt-BR",popover:{visibility:"click"},"min-date":n.minDate?new Date(n.minDate):null,"max-date":n.maxDate?new Date(n.maxDate):null,attributes:n.showTodayDot?s.attributes:{},color:"green","is-range":n.range},{"header-left-button":r.withCtx(({page:h})=>[r.createVNode(o,{direction:"left",onClick:f=>h.movePrevMonth()},null,8,["onClick"])]),"header-right-button":r.withCtx(({page:h})=>[r.createVNode(o,{direction:"right",onClick:f=>h.moveNextMonth()},null,8,["onClick"])]),default:r.withCtx(({inputValue:h,togglePopover:f,inputEvents:m})=>[r.createElementVNode("div",{class:r.normalizeClass(a.inputClass)},[r.createElementVNode("input",r.mergeProps({value:a.resolveInputValue(h),disabled:n.disabled,placeholder:n.placeholder,type:"text"},r.toHandlers(m,!0),{onClick:f,onFocus:e[0]||(e[0]=g=>s.isBeingFocused=!0),onBlur:e[1]||(e[1]=g=>s.isBeingFocused=!1)}),null,16,yj),r.createElementVNode("div",bj,[r.createVNode(l,{height:"20",width:"20",name:"calendar-outline"})])],2)]),_:1},8,["modelValue","min-date","max-date","attributes","is-range","onUpdate:modelValue"]),a.errorState&&!n.disabled?(r.openBlock(),r.createElementBlock("div",_j,r.toDisplayString(n.errorMessage),1)):r.createCommentVNode("",!0)])}const wj=Q(Qf,[["render",vj],["__scopeId","data-v-4ae75e00"]]),kj=["teal","green","blue","indigo","violet","pink","red","orange","amber"],Cj=["warning","error","info"],xj={directives:{"on-click-outside":yr.directive},components:{CdsIcon:Be,CdsButton:Qi},props:{variant:{type:String,default:"warning",validator:t=>Cj.includes(t)},description:{type:String,required:!0},modelValue:{type:Boolean,default:!1,required:!0},title:{type:String,required:!0},okButtonText:{type:String,default:"Continuar"},cancelButtonText:{type:String,default:"Cancelar"},actionButtonVariant:{type:String,default:"green",validator:t=>kj.includes(t)}},data(){return{innerValue:!1,tmp:""}},watch:{modelValue(t){this.innerValue=t}},mounted(){this.innerValue=this.modelValue},methods:{closeHandle(){this.innerValue=!this.innerValue,this.$emit("close",!0),this.$emit("update:modelValue",!1)},okHandle(){this.innerValue=!this.innerValue,this.$emit("ok",!0),this.$emit("update:modelValue",!1)}}},Sj={key:0,class:"cds-modal__backdrop"},Mj={key:0,class:"cds-modal"},Oj={class:"cds-modal__header-content"},Dj={key:0,class:"cds-modal__header-title"},Ej={key:1,class:"cds-modal__header-title"},Bj={key:2,class:"cds-modal__header-title"},Vj={class:"cds-modal__body"},Tj={class:"cds-modal__body-title"},Ij={class:"cds-modal__body-description"},$j={class:"cds-modal__footer"};function Aj(t,e,n,i,s,a){const o=r.resolveComponent("cds-icon"),l=r.resolveComponent("cds-button");return s.innerValue?(r.openBlock(),r.createElementBlock("div",Sj,[s.innerValue?(r.openBlock(),r.createElementBlock("div",Mj,[r.createElementVNode("header",{class:r.normalizeClass(`cds-modal__header--${n.variant}`)},[r.createElementVNode("div",Oj,[n.variant==="warning"?(r.openBlock(),r.createElementBlock("div",Dj,[r.createVNode(o,{class:r.normalizeClass(`cds-modal__header-icon--${n.variant}`),height:"40",width:"40",name:"warning-outline"},null,8,["class"]),e[2]||(e[2]=r.createTextVNode(" Atenção "))])):n.variant==="error"?(r.openBlock(),r.createElementBlock("div",Ej,[r.createVNode(o,{class:r.normalizeClass(`cds-modal__header-icon--${n.variant}`),height:"40",width:"40",name:"alert-outline"},null,8,["class"]),e[3]||(e[3]=r.createTextVNode(" Erro "))])):n.variant==="info"?(r.openBlock(),r.createElementBlock("div",Bj,[r.createVNode(o,{class:r.normalizeClass(`cds-modal__header-icon--${n.variant}`),height:"40",width:"40",name:"info-outline"},null,8,["class"]),e[4]||(e[4]=r.createTextVNode(" Informativo "))])):r.createCommentVNode("",!0)]),n.variant==="warning"?(r.openBlock(),r.createBlock(o,{key:0,class:r.normalizeClass(`cds-modal__header-detail--${n.variant}`),height:"60",width:"60",name:"warning-outline"},null,8,["class"])):n.variant==="error"?(r.openBlock(),r.createBlock(o,{key:1,class:r.normalizeClass(`cds-modal__header-detail--${n.variant}`),height:"60",width:"60",name:"alert-outline"},null,8,["class"])):n.variant==="info"?(r.openBlock(),r.createBlock(o,{key:2,class:r.normalizeClass(`cds-modal__header-detail--${n.variant}`),height:"60",width:"60",name:"info-outline"},null,8,["class"])):r.createCommentVNode("",!0)],2),r.createElementVNode("div",Vj,[r.createElementVNode("span",Tj,r.toDisplayString(n.title),1),r.createElementVNode("span",Ij,r.toDisplayString(n.description),1)]),r.createElementVNode("footer",$j,[n.variant==="warning"?(r.openBlock(),r.createBlock(l,{key:0,text:n.cancelButtonText,secondary:"",onClick:e[0]||(e[0]=d=>a.closeHandle())},null,8,["text"])):r.createCommentVNode("",!0),r.createVNode(l,{class:"footer__ok-button",text:n.okButtonText,variant:n.actionButtonVariant,onClick:e[1]||(e[1]=d=>a.okHandle())},null,8,["text","variant"])])])):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0)}const Nj=Q(xj,[["render",Aj],["__scopeId","data-v-cb60983c"]]),zj={components:{CdsChevron:$s},directives:{"on-click-outside":yr.directive},props:{content:{type:String,default:"Conteúdo",required:!0},label:{type:String,default:"Label",required:!0},disabled:{type:Boolean,default:!1},dropdownWidth:{type:Number,default:0}},data(){return{id:null,isActive:!1}},computed:{dynamicStyle(){const t=document.getElementById(this.id);if(!t)return null;const e=parseFloat(window.getComputedStyle(t).width);return e>this.dropdownWidth?{"--width":`${e}px`}:{"--width":`${this.dropdownWidth}px`}}},mounted(){this.id=`filter-pill$-${this._uid}`},methods:{activeSelection(){this.disabled||(this.isActive=!this.isActive,this.$emit("click",!0))},hide(){this.isActive=!this.isActive}}},Pj=["id"],Lj={class:"filter-pill__label"},Fj={class:"filter-pill__content"};function Rj(t,e,n,i,s,a){const o=r.resolveComponent("cds-chevron"),l=r.resolveDirective("on-click-outside");return r.openBlock(),r.createElementBlock("div",null,[r.createElementVNode("span",{id:s.id,class:r.normalizeClass([{"filter-pill__container--disabled":n.disabled,"filter-pill__container--active":s.isActive&&!n.disabled},"filter-pill__container"]),onClick:e[0]||(e[0]=(...d)=>a.activeSelection&&a.activeSelection(...d))},[r.createElementVNode("span",Lj,r.toDisplayString(n.label)+": ",1),r.createElementVNode("span",Fj,r.toDisplayString(n.content),1),(r.openBlock(),r.createBlock(o,{key:s.isActive,animate:"",size:"sm",direction:s.isActive?"top":"bottom"},null,8,["direction"]))],10,Pj),s.isActive?r.withDirectives((r.openBlock(),r.createElementBlock("div",{key:0,style:r.normalizeStyle(a.dynamicStyle),class:"filter-pill__dropdown"},[r.renderSlot(t.$slots,"default",{},void 0,!0)],4)),[[l,a.hide]]):r.createCommentVNode("",!0)])}const Hj=Q(zj,[["render",Rj],["__scopeId","data-v-f6d65f66"]]),Wj={components:{CdsIcon:Be,CdsChevron:$s},directives:{"on-click-outside":yr.directive},props:{items:{type:Array,default:()=>[],required:!0},variant:{type:String,default:"gray"},secondary:{type:Boolean,default:!1},ghost:{type:Boolean,default:!1},text:{type:String,default:"Conteúdo",required:!0},dropdownWidth:{type:Number,default:0}},data(){return{id:null,isActive:!1}},computed:{dynamicStyle(){const t=document.getElementById(this.id);if(!t)return null;const e=parseFloat(window.getComputedStyle(t).width);return e>this.dropdownWidth?{"--width":`${e}px`}:{"--width":`${this.dropdownWidth}px`}},dropDownButtonClasses(){return this.ghost?"dropdown-button__container--ghost ":this.secondary?"dropdown-button__container--secondary ":`dropdown-button__container--${this.variant}`}},mounted(){this.id=`dropdown-button$-${this._uid}`},methods:{activeSelection(){this.disabled||(this.isActive=!this.isActive,this.$emit("button-click",!0))},hide(){this.isActive=!this.isActive},handleOptionClick(t,e){this.isActive=!this.isActive,this.$emit("action-click",[t,e])}}},Yj=["id"],jj={class:"dropdown-button__text"},Uj=["onClick"],qj={class:"dropdown__text"};function Gj(t,e,n,i,s,a){const o=r.resolveComponent("cds-chevron"),l=r.resolveComponent("cds-icon"),d=r.resolveDirective("on-click-outside");return r.openBlock(),r.createElementBlock("div",null,[r.createElementVNode("span",{id:s.id,class:r.normalizeClass([a.dropDownButtonClasses,"dropdown-button__container"]),onClick:e[0]||(e[0]=(...h)=>a.activeSelection&&a.activeSelection(...h))},[r.createElementVNode("span",jj,r.toDisplayString(n.text),1),r.createVNode(o,{animate:"",size:"sm",light:!n.secondary&&!n.ghost,direction:s.isActive?"bottom":"top"},null,8,["light","direction"])],10,Yj),s.isActive?r.withDirectives((r.openBlock(),r.createElementBlock("div",{key:0,style:r.normalizeStyle(a.dynamicStyle),class:"dropdown-button__dropdown"},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.items,(h,f)=>(r.openBlock(),r.createElementBlock("div",{key:f},[r.createElementVNode("div",{class:"dropdown__container",onClick:m=>a.handleOptionClick(h.name,f)},[r.createVNode(l,{class:"dropdown__icon",height:"22",width:"22",name:h.icon},null,8,["name"]),r.createElementVNode("span",qj,r.toDisplayString(h.name),1)],8,Uj)]))),128))],4)),[[d,a.hide]]):r.createCommentVNode("",!0)])}const Kj=Q(Wj,[["render",Gj],["__scopeId","data-v-14a071ad"]]),Zj={components:{Doughnut:t3},props:{data:{type:Object,required:!0,default:()=>({datasets:[{label:"",data:[]}]})},variant:{type:String,required:!0,default:"green",validator:t=>["green","teal","turquoise","blue","indigo","violet","pink","red","orange","amber","gray","dark"].includes(t)},theme:{type:String,required:!1,default:"",validator:t=>["green","teal","turquoise","blue","indigo","violet","pink","red","orange","amber","gray","dark"].includes(t)},labels:{type:Array,required:!0,default:()=>[]},colors:{type:Array,default:()=>[],validator:t=>{const e=["green","teal","turquoise","blue","indigo","violet","pink","red","orange","amber","gray","dark"];return t.every(n=>e.includes(n))}}},data(){return{sassColorVariables:Yn,localChartData:{},localLabels:[],palletColors:[],themeColors:[],deleteFirstTwoColors:!1,chartOptions:{responsive:!0,maintainAspectRatio:!1,pieceLabel:{mode:"percentage",precision:1},plugins:{legend:{display:!0,labels:{usePointStyle:!0,pointStyle:"rectRounded"}}}}}},computed:{isColorsSet(){return this.colors&&this.colors.length>0},computedBackgroundColors(){return this.colors.map(t=>{const e=this.palletColors.find(n=>n.variantName.toLowerCase().includes(t));if(e)return e.color400})}},watch:{labels:{handler(t){this.localLabels=t},immediate:!0},variant:{handler(t){t==="gray"||t==="dark"?this.deleteFirstTwoColors=!0:this.deleteFirstTwoColors=!1},immediate:!0},data:{handler(t){this.mergeChartDataNoSelect(t)},immediate:!0}},mounted(){this.mergeChartDataNoSelect(this.data)},methods:{paleteBuilder:rr,palete(){this.palletColors=this.paleteBuilder(this.sassColorVariables.palete),this.removeFirstTwoElements()},themeResolver(){this.themeColors=this.paleteBuilder(this.sassColorVariables.chartThemes)},removeFirstTwoElements(){for(let t=0;t<this.palletColors.length;t++){const e=this.palletColors[t];this.deleteFirstTwoColors===!1&&(e.colorShades.splice(0,2),e.colorTokens.splice(0,2),e.colorData.splice(0,2))}},mergeChartDataNoSelect(t){const e={labels:this.localLabels,datasets:[]};if(t.forEach(n=>{n.datasets.forEach(i=>{const s={label:i.label,data:i.data,name:i.name,borderRadius:5};e.datasets.push(s)})}),this.theme.length&&this.colors.length===0){this.themeResolver();const n=this.isColorsSet?this.computedBackgroundColors:this.generateBackgroundColorWithTheme();this.setColors(e.datasets,n)}else{this.palete();const n=this.isColorsSet?this.computedBackgroundColors:this.generateBackgroundColor();this.setColors(e.datasets,n)}this.localChartData=e},generateBackgroundColor(){const t=this.variant.toLowerCase(),e=this.palletColors.find(n=>n.variantName.toLowerCase().includes(t));return e?e.colorShades:[]},generateBackgroundColorWithTheme(){const t=this.theme.toLowerCase(),e=this.themeColors.find(n=>n.variantName.toLowerCase().includes(t));return e?e.colorShades:[]},setColors(t,e){const n={};t.forEach(i=>{const s=i.name;n[s]||(n[s]=e.slice()),i.backgroundColor=n[s].splice(0,i.data.length),i.borderRadius=5})},clickHandler(t){const n=this.$refs["doughnut-chart"].chart.getElementsAtEventForMode(t,"nearest",{intersect:!0},!1),i={index:n[0].index,data:n[0].element.$context.raw,x:n[0].element.x,y:n[0].element.y,backgroundColor:n[0].element.$context.element.options.backgroundColor.trim()};this.$emit("chart-click",i)}}},Xj={class:"responsive-container"};function Jj(t,e,n,i,s,a){const o=r.resolveComponent("Doughnut");return r.openBlock(),r.createElementBlock("span",null,[r.createElementVNode("div",Xj,[r.createVNode(o,{ref:"doughnut-chart",data:s.localChartData,options:s.chartOptions,onClick:a.clickHandler},null,8,["data","options","onClick"])])])}const Qj=Q(Zj,[["render",Jj],["__scopeId","data-v-d71f8f8f"]]),eU=["teal","green","blue","indigo","violet","pink","red","orange","amber"],tU={components:{CdsButton:Qi},props:{image:{type:String,default:""},imageDescription:{type:String,default:"Imagem de Empty State"},title:{type:String,default:"Título do empty state",required:!0},text:{type:String,default:"Para sair dessa situação de empty state, realize a ação abaixo."},hideActionButton:{type:Boolean,default:!1},actionButtonText:{type:String,default:"Finalizar"},actionButtonVariant:{type:String,default:"green",validator:t=>eU.includes(t)}}},nU={class:"empty-state"},iU=["src","alt"],rU={class:"empty-state__title"},sU={class:"empty-state__text"};function aU(t,e,n,i,s,a){const o=r.resolveComponent("cds-button");return r.openBlock(),r.createElementBlock("div",nU,[r.renderSlot(t.$slots,"graphic-element",{},()=>[r.createElementVNode("img",{class:"empty-state__image",src:n.image,alt:n.imageDescription},null,8,iU)],!0),r.createElementVNode("div",rU,r.toDisplayString(n.title),1),r.createElementVNode("div",sU,[r.renderSlot(t.$slots,"text",{},()=>[r.createTextVNode(r.toDisplayString(n.text),1)],!0)]),n.hideActionButton?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(o,{key:0,class:"empty-state__button",text:n.actionButtonText,variant:n.actionButtonVariant,onClick:e[0]||(e[0]=l=>t.$emit("action-button-click",!0))},null,8,["text","variant"]))])}const oU=Q(tU,[["render",aU],["__scopeId","data-v-4769541f"]]),e0={components:{CdsIcon:Be},props:{modelValue:{default:null,required:!0},allowedExtensions:{type:String,default:null},size:{type:String,default:"md"},state:{type:String,default:"default"},textMessage:{type:String,default:"Arraste o arquivo aqui ou pesquise no seu dispositivo"},errorMessage:{type:String,default:"Valor inválido"},disabled:{type:Boolean,default:!1}},data(){return{file:this.modelValue&&!Un.isEmpty(this.modelValue)?this.modelValue:null,isOnDragEnterState:!1,isValid:!0,internalState:this.state,invalidExtensionError:null}},computed:{sizeClass(){return{inputTitle:`file-input__title--${this.size}`,holderPadding:"px-3",wrapperPadding:"px-1 py-1",contentPadding:"mt-3",svgScale:1}},acceptString(){if(this.allowedExtensions===null)return null;let t="";return this.allowedExtensions.split(",").forEach((n,i,s)=>{n&&n.trim().length>0&&(t+=`.${n.trim()}${i!==s.length-1?", ":""}`)}),t},computedAllowedMessage(){if(this.allowedExtensions){if(this.invalidExtensionError){const e=this.allowedExtensions.split(",").length===1?"":"s";return`${`São aceitos apenas arquivo${e} do${e} seguinte${e} tipo${e}:`} ${this.acceptString}.`}return this.errorMessage}else if(this.state==="invalid")return this.errorMessage;return null},textAlignmentResolver(){return this.size==="sm"?"flex-start":"center"},formatFilename(){if(this.file instanceof File&&this.file.name.length>16){const t=this.file.name.split(".");return t.length>2?`arquivo.${Un.last(t)}`:`${t[0].substring(0,16)}....${t[1]}`}return this.file.name}},watch:{file(t){this.$emit("update:modelValue",t)},state:{handler(t){this.internalState=t},immediate:!0},isValid:{handler(t){t?this.internalState="valid":this.internalState="invalid"},immediate:!0}},methods:{dropHandler(t){if(this.isValid=null,this.isOnDragEnterState=!1,t.preventDefault(),!t.dataTransfer.items||t.dataTransfer.items[0].kind!=="file"||this.disabled)return;const e=t.dataTransfer.items[0].getAsFile();if(this.isAValidExtension(e.name)){this.file=e,this.isValid=!0;return}this.isValid=!1,this.file=null},linkClick(){this.disabled||this.$refs.fileInput.click()},isAValidExtension(t){if(this.allowedExtensions===null)return!0;const e=this.allowedExtensions.split(",");let n=t.split(".");n=n[n.length-1].trim();const i=e.filter(s=>s===n).length>0;return this.invalidExtensionError=!i,i},handleFormFileChange(t){this.isValid="invalid";const[e]=t.target.files||{};if(this.isAValidExtension(e.name)){this.file=e,this.isValid=!0;return}this.isValid=!1,this.$nextTick().then(()=>{this.file=null})},handleRemove(){this.disabled||(this.isValid="default",this.file=null)}}},wb=()=>{r.useCssVars(t=>({"3c7a40a8":t.textAlignmentResolver}))},kb=e0.setup;e0.setup=kb?(t,e)=>(wb(),kb(t,e)):wb;const lU=["accept"],cU={key:0,class:"file-input__container"},dU={key:0},uU={key:1},hU={key:1,class:"file-input__container"},fU={key:1},pU={key:0,class:"file-input__alert-container"};function mU(t,e,n,i,s,a){const o=r.resolveComponent("cds-icon");return r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("div",null,[r.createElementVNode("div",{class:r.normalizeClass(["file-input text-center",{"file-input--drag-state":s.isOnDragEnterState,"file-input--sm":n.size==="sm","file-input--md":n.size==="md","file-input--lg":n.size==="lg","file-input--valid":n.state==="valid","file-input--invalid":n.state==="invalid"||!s.isValid,"file-input--disabled":n.disabled===!0,[a.sizeClass.holderPadding]:n.size}]),onDragover:e[2]||(e[2]=r.withModifiers(l=>s.isOnDragEnterState=!0,["prevent","stop"])),onDragenter:e[3]||(e[3]=r.withModifiers(l=>s.isOnDragEnterState=!0,["prevent","stop"])),onDragleave:e[4]||(e[4]=r.withModifiers(l=>s.isOnDragEnterState=!1,["prevent","stop"])),onDragend:e[5]||(e[5]=r.withModifiers(l=>s.isOnDragEnterState=!1,["prevent","stop"])),onDrop:e[6]||(e[6]=(...l)=>a.dropHandler&&a.dropHandler(...l)),onClick:e[7]||(e[7]=(...l)=>a.linkClick&&a.linkClick(...l))},[r.withDirectives(r.createElementVNode("input",{ref:"fileInput",type:"file",accept:a.acceptString,onChange:e[0]||(e[0]=(...l)=>a.handleFormFileChange&&a.handleFormFileChange(...l))},null,40,lU),[[r.vShow,!1]]),s.file?(r.openBlock(),r.createElementBlock("div",hU,[r.createVNode(o,{height:"24",width:"24",name:"document-text-outline",class:r.normalizeClass({"icon-document--sm":n.size==="sm","icon-document--md":n.size==="md","icon-document--lg":n.size==="lg","icon-document--disabled":n.disabled===!0})},null,8,["class"]),r.createElementVNode("div",{class:r.normalizeClass({[a.sizeClass.inputTitle]:n.size,[a.sizeClass.contentPadding]:n.size})},[s.isOnDragEnterState?(r.openBlock(),r.createElementBlock("div",fU," Solte aqui o seu arquivo ")):(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["on-drag-content__container",{"on-drag-content__container--disabled":n.disabled===!0}])},[r.createElementVNode("div",null,r.toDisplayString(a.formatFilename),1),r.createElementVNode("div",{class:"x-icon__container",onClick:e[1]||(e[1]=r.withModifiers((...l)=>a.handleRemove&&a.handleRemove(...l),["stop"]))},[r.createVNode(o,{height:"18",width:"18",name:"x-outline",class:r.normalizeClass(["file-input__close-button",{"file-input__close-button--sm":n.size==="sm","file-input__close-button--md":n.size==="md","file-input__close-button--lg":n.size==="lg","file-input__close-button--disabled":n.disabled===!0}])},null,8,["class"])])],2))],2)])):(r.openBlock(),r.createElementBlock("div",cU,[r.createVNode(o,{name:"upload-cloud-outline",class:r.normalizeClass({"icon-upload--sm":n.size==="sm","icon-upload--md":n.size==="md","icon-upload--lg":n.size==="lg","icon-upload--disabled":n.disabled===!0,[a.sizeClass.holderPadding]:n.size})},null,8,["class"]),r.createElementVNode("div",{class:r.normalizeClass({[a.sizeClass.inputTitle]:n.size,[a.sizeClass.contentPadding]:n.size})},[s.isOnDragEnterState?(r.openBlock(),r.createElementBlock("div",uU," Solte aqui o seu arquivo ")):(r.openBlock(),r.createElementBlock("div",dU,r.toDisplayString(n.textMessage),1))],2)]))],34)]),s.internalState==="invalid"?(r.openBlock(),r.createElementBlock("div",pU,r.toDisplayString(a.computedAllowedMessage),1)):r.createCommentVNode("",!0)],64)}const gU=Q(e0,[["render",mU],["__scopeId","data-v-33f6f0ff"]]),si=Q({__name:"Flexbox",props:{direction:{type:String,default:"row"},wrap:{type:String,default:"wrap"},gap:{type:[Number,String],default:0},justify:{type:String,default:"flex-start"},align:{type:String,default:"stretch"},tag:{type:String,default:"div",validator:t=>["div","span","main","footer","form","header","aside","ul","li"].includes(t)}},setup(t){r.useCssVars(s=>({"15973c19":t.align,"447601e0":i.value,"0e81cab8":t.justify,"1e6d0293":t.direction,"6c1738b6":t.wrap}));const e=t,n=s=>{const a=s.match(/^(\d+(\.\d+)?)(.*)$/);return a?a[3]?s:a?`${parseFloat(a[1])*4}px`:null:null},i=r.computed(()=>{let s="";return e.gap&&e.gap!==0&&e.gap!=="0"?Number.isFinite(e.gap)?`${e.gap*4}px`:n(e.gap):(e.rowGap?Number.isFinite(e.rowGap)?s=`${e.rowGap*4}px`:s=n(e.rowGap):s="0px",e.colGap?Number.isFinite(e.colGap)?s+=` ${e.colGap*4}px`:s+=` ${n(e.colGap)}`:s+=" 0px",s)});return(s,a)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.tag),{class:"flexbox"},{default:r.withCtx(()=>[r.renderSlot(s.$slots,"default",{},void 0,!0)]),_:3}))}},[["__scopeId","data-v-2a0c9a9e"]]),yU={class:"file-viewer__image"},bU={key:0,class:"file-viewer__extension"},_U={class:"file-viewer__info"},vU={class:"file-viewer__label"},wU={class:"file-viewer__file-name"},kU={key:0,class:"file-viewer__backdrop"},CU={class:"file-viewer__visualizer-header"},xU={class:"file-viewer__visualizer-label"},SU={class:"file-viewer__visualizer-actions"},MU={key:0},OU={key:1,class:"file-viewer__visualizer-empty-state"},DU=Q({__name:"FileViewer",props:{label:{type:String,required:!0,default:"Comprovante de residência"},fileUrl:{type:String,required:!0,default:"https://images.pexels.com/photos/1254140/pexels-photo-1254140.jpeg"},variant:{type:String,default:"green",validator:t=>nu.find(e=>e.name===t)}},emits:["close","download-click"],setup(t,{emit:e}){const n=e,i=t,s=r.ref(!1),a=r.ref(!1),o=["jpg","jpeg","png","webp"],l=r.computed(()=>{if(i.fileUrl){const k=Un.last(i.fileUrl.split("/")).match(/\.([A-Za-z]{3,4})/),S=Un.get(k,"1",null);if(S)return S.toLowerCase()}return"file"}),d=r.computed(()=>i.label.length>50?i.label.substring(0,50):i.label),h=()=>{s.value=!0},f=()=>{s.value=!1},m=()=>{a.value=!a.value,y(a.value)},g=()=>{a.value=!1,y(a.value),n("close",!0)},y=v=>{document.body.style.overflow=v?"hidden":"auto"},w=r.computed(()=>window.matchMedia("(max-width: 450px)").matches);return(v,k)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("div",{ref:"fileViewer",class:r.normalizeClass(["file-viewer",`file-viewer--${t.variant}`]),tabindex:"0",onMouseenter:h,onMouseleave:f,onClick:m,onKeyup:r.withKeys(g,["esc"])},[r.createElementVNode("div",yU,[s.value?(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass(["file-viewer__icon",`file-viewer__icon--${t.variant}`])},[r.createVNode(Be,{height:"32",width:"32",name:"image-outline"})],2)):(r.openBlock(),r.createElementBlock("div",bU,r.toDisplayString(l.value),1))]),r.createElementVNode("div",_U,[r.createElementVNode("div",vU,r.toDisplayString(d.value),1),r.createElementVNode("div",wU,r.toDisplayString(t.fileUrl),1),r.createElementVNode("div",null,[r.createElementVNode("a",{class:r.normalizeClass(["file-viewer__download",`file-viewer__download--${t.variant}`]),onClick:k[0]||(k[0]=r.withModifiers(S=>n("download-click",!0),["stop"]))}," Baixar arquivo ",2)])])],34),a.value?(r.openBlock(),r.createElementBlock("div",kU,[r.createElementVNode("div",CU,[r.createElementVNode("div",xU,r.toDisplayString(d.value),1),r.createElementVNode("div",SU,[r.createElementVNode("div",{class:"file-viewer__visualizer-download",onClick:k[1]||(k[1]=S=>n("download-click",!0))},[r.createVNode(Be,{height:"24",width:"24",name:"download-cloud-outline"}),w.value?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("span",MU," Baixar arquivo "))]),r.createVNode(Be,{class:"file-viewer__visualizer-close",height:"24",width:"24",name:"x-outline",onClick:g})])]),r.createElementVNode("div",{class:"file-viewer__visualizer-image-container",onClick:g},[o.includes(l.value)?(r.openBlock(),r.createBlock(eu,{key:0,class:"file-viewer__visualizer-image",src:t.fileUrl,onClick:k[2]||(k[2]=r.withModifiers(()=>{},["stop"]))},null,8,["src"])):(r.openBlock(),r.createElementBlock("div",OU,[r.createVNode(eu,{src:"https://i.imgur.com/d842Bek.png",width:"100",height:"100"}),k[3]||(k[3]=r.createTextVNode(" Não foi possível gerar uma pré-visualização do arquivo. "))]))])])):r.createCommentVNode("",!0)],64))}},[["__scopeId","data-v-c35f914b"]]);function nc(t=""){const e="ÀÁÂÃÄÅàáâãäåÒÓÔÕÕÖØòóôõöøÈÉÊËèéêëðÇçÐÌÍÎÏìíîïÙÚÛÜùúûüÑñŠšŸÿýŽž",n="AAAAAAaaaaaaOOOOOOOooooooEEEEeeeeeCcDIIIIiiiiUUUUuuuuNnSsYyyZz",i=t.length;let s=t.split(""),a;for(let o=0;o<i;o+=1)a=e.indexOf(t[o]),a!==-1&&(s[o]=n[a]);return s=s.join(""),s=s.split(".").join(""),s=s.split("-").join(""),s=s.split("/").join(""),s}const EU={directives:{"on-click-outside":yr.directive},props:{label:{type:String,default:"Label",required:!0},placeholder:{type:String,default:"Selecione...",required:!1},options:{type:Array,default:()=>[],required:!0},modelValue:{type:[Array,Object],required:!0},searchable:{type:Boolean,default:!1,required:!1},width:{type:String,default:"default",required:!1},fluid:{type:Boolean,default:!1,required:!1},disabled:{type:Boolean,default:!1,required:!1},optionsField:{type:String,default:"value",required:!1},returnValue:{type:Boolean,default:!1,required:!1}},data(){return{currentPos:0,active:!1,id:null,allowSearch:!1,localOptions:[],pristineOptions:[],localValue:"",selectElement:"",direction:"down",uniqueKey:er()}},computed:{inputClass(){let t="";const e="filter-select__input";return this.active&&this.direction==="down"?t=`${e}--opened-down`:this.active&&this.direction==="up"?t=`${e}--opened-up`:t=`${e}--closed`,this.disabled&&(t+=` ${e}--disabled`),t+=` ${e}--${Cm.find(n=>n===this.width)}`,t+=this.fluid?` ${e}--fluid`:` ${e}--fit`,t+=this.searchable?` ${e}--searchable`:"",t},capitalizedLabel(){return this.label.charAt(0).toUpperCase()+this.label.slice(1)}},watch:{modelValue:{handler(t,e){t!==e&&(t instanceof Object?this.localValue=t:this.localValue={id:t,value:t})},immediate:!0},options:{handler(t,e){t!==e&&(this.localOptions=t,this.pristineOptions=t)},immediate:!0},searchable:{handler(t,e){t!==e&&(this.allowSearch=t)},immediate:!0},localValue:{handler(t){this.localOptions.filter(n=>JSON.stringify(n)===JSON.stringify(t)).length!==0&&(this.returnValue?this.$emit("update:modelValue",t[this.optionsField]):this.$emit("update:modelValue",t))},deep:!0}},mounted(){this.id=`cds-filter-select-${this.uniqueKey}`,this.selectElement=this.$refs["cds-filter-select"]},methods:{filterOptions(){const t=nc(this.localValue[this.optionsField]),e=new RegExp(t,"i");this.localOptions=this.options.filter(n=>nc(n[this.optionsField]).search(e)>=0)},activeSelection(){this.disabled||this.$nextTick().then(()=>{const t=this.localOptions[this.currentPos];this.$refs[`${t[this.optionsField]}-${this.currentPos}`][0].classList.add("highlight")})},activateSelectionOnEnter(){this.disabled||(this.active=!this.active,typeof this.localOptions[this.currentPos]>"u"?this.localOptions=this.pristineOptions:this.localValue=sl(this.localOptions[this.currentPos]),this.$refs["filter-select-input"].blur())},activateSelectionOnClick(){let t=this.selectElement.getBoundingClientRect();t.top+t.height+286<window.innerHeight?this.direction="down":this.direction="up",!this.disabled&&(this.active=!this.active)},hide(){this.localOptions=this.pristineOptions,this.active=!1},selectItem(){this.localValue=sl(this.localOptions[this.currentPos])},getLiInDOM(t){const e=this.localOptions[t];return this.$refs[`${e[this.optionsField]}-${t}`][0]},handleOptionVisibility(t,e,n){const i=t.getBoundingClientRect(),s=this.$refs["filter-select-options"],a=s.getBoundingClientRect();n==="up"&&i.top<=a.top&&(s.scrollTop+=e),n==="down"&&i.top>=a.bottom&&(s.scrollTop+=e)},highlightOnArrowDown(){if(this.currentPos===this.localOptions.length-1)return;this.currentPos+=1;const t=this.getLiInDOM(this.currentPos),e=this.getLiInDOM(this.currentPos-1);t.classList.add("highlight"),e.classList.remove("highlight"),this.handleOptionVisibility(t,37,"down")},highlightOnArrowUp(){if(this.currentPos===0)return;const t=this.getLiInDOM(this.currentPos),e=this.getLiInDOM(this.currentPos-1);t.classList.remove("highlight"),e.classList.add("highlight"),this.handleOptionVisibility(t,-37,"up"),this.currentPos-=1},highlightOnMouseOver(t){this.currentPos=t,this.getLiInDOM(this.currentPos).classList.add("highlight")},unhighlightOnMouseOut(){this.getLiInDOM(this.currentPos).classList.remove("highlight")}}},BU={ref:"cds-filter-select",class:"filter-select"},VU={class:"filter-select__label"},TU={for:"cds-filter-select"},IU=["id","onkeypress","placeholder","disabled","readonly"],$U={key:0,class:"option__container"},AU=["onMouseover"],NU={key:1,class:"option__container"};function zU(t,e,n,i,s,a){const o=r.resolveDirective("on-click-outside");return r.openBlock(),r.createElementBlock("div",BU,[r.withDirectives((r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["filter-select__container",a.inputClass]),onKeydown:[e[6]||(e[6]=r.withKeys(r.withModifiers((...l)=>a.activateSelectionOnEnter&&a.activateSelectionOnEnter(...l),["prevent"]),["enter"])),e[7]||(e[7]=r.withKeys(r.withModifiers((...l)=>a.highlightOnArrowDown&&a.highlightOnArrowDown(...l),["prevent"]),["arrow-down"])),e[8]||(e[8]=r.withKeys(r.withModifiers((...l)=>a.highlightOnArrowUp&&a.highlightOnArrowUp(...l),["prevent"]),["arrow-up"]))],onClick:e[9]||(e[9]=(...l)=>a.activateSelectionOnClick&&a.activateSelectionOnClick(...l))},[r.createElementVNode("label",VU,[r.createElementVNode("div",TU,[r.createElementVNode("span",null,r.toDisplayString(a.capitalizedLabel),1)])]),r.withDirectives(r.createElementVNode("input",{id:t.$attrs.id||s.id,ref:"filter-select-input","onUpdate:modelValue":e[0]||(e[0]=l=>s.localValue[n.optionsField]=l),type:"text",autocomplete:"off",onkeypress:`return ${s.allowSearch};`,class:r.normalizeClass(a.inputClass),placeholder:n.placeholder,disabled:n.disabled,readonly:!n.searchable,onInput:e[1]||(e[1]=(...l)=>a.filterOptions&&a.filterOptions(...l)),onFocus:e[2]||(e[2]=(...l)=>a.activeSelection&&a.activeSelection(...l)),onBlur:e[3]||(e[3]=(...l)=>a.hide&&a.hide(...l))},null,42,IU),[[r.vModelText,s.localValue[n.optionsField]]]),r.withDirectives(r.createElementVNode("div",{ref:"filter-select-options",class:r.normalizeClass(["filter-select__options",{"filter-select__options--thin":n.width==="thin","filter-select__options--default":n.width==="default","filter-select__options--wide":n.width==="wide","filter-select__options--fluid":n.fluid,"filter-select__options--down":s.direction==="down","filter-select__options--up":s.direction==="up"}])},[s.localOptions.length>0?(r.openBlock(),r.createElementBlock("ul",$U,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.localOptions,(l,d)=>(r.openBlock(),r.createElementBlock("li",{key:d,ref_for:!0,ref:`${l[n.optionsField]}-${d}`,class:"option__text",onMousedown:e[4]||(e[4]=(...h)=>a.selectItem&&a.selectItem(...h)),onMouseover:h=>a.highlightOnMouseOver(d),onMouseout:e[5]||(e[5]=h=>a.unhighlightOnMouseOut())},r.toDisplayString(l[n.optionsField]),41,AU))),128))])):(r.openBlock(),r.createElementBlock("ul",NU,e[10]||(e[10]=[r.createElementVNode("li",{class:"option__text--muted"}," Nenhuma opção encontrada ",-1)])))],2),[[r.vShow,s.active]]),r.createElementVNode("span",{class:r.normalizeClass(s.active?"filter-select__chevron--opened":"filter-select__chevron--closed")},null,2)],34)),[[o,a.hide]])],512)}const PU=Q(EU,[["render",zU],["__scopeId","data-v-fba155a5"]]),LU={props:{variant:{type:String,default:"green"},text:{type:String,default:"Lorem ipsum"},disabled:{type:Boolean,default:!1}},data(){return{predefinedColors:["green","teal","turquoise","blue","indigo","violet","pink","red","orange","amber"]}},computed:{predefinedColor(){return this.predefinedColors.indexOf(this.variant)>-1?`link-button--${this.variant}`:"link-button--green"},computedStyle(){const t=this.disabled?"--disabled":"--active";return`${this.predefinedColor}${t}`}},methods:{clickHandler(){this.disabled||this.$emit("click",!0)}}},FU={id:"cds-link-button"};function RU(t,e,n,i,s,a){return r.openBlock(),r.createElementBlock("span",FU,[r.createElementVNode("button",{class:r.normalizeClass(["link-button__container",a.computedStyle]),onClick:e[0]||(e[0]=o=>a.clickHandler())},[r.renderSlot(t.$slots,"default",{},()=>[r.createTextVNode(r.toDisplayString(n.text),1)],!0)],2)])}const HU=Q(LU,[["render",RU],["__scopeId","data-v-17beab84"]]),WU={props:{variant:{type:String,default:"green"},targetId:{type:String,default:""},position:{type:String,default:"top-end"}}},YU={id:"cds-pulsar"};function jU(t,e,n,i,s,a){const o=r.resolveDirective("cds-floatify");return r.withDirectives((r.openBlock(),r.createElementBlock("div",YU,[r.createElementVNode("div",{class:r.normalizeClass(`pulsar__outer-circle--${n.variant}`)},[r.createElementVNode("div",{class:r.normalizeClass(`pulsar__inner-circle--${n.variant}`)},null,2)],2)])),[[o,n.targetId,n.position]])}const Cb=Q(WU,[["render",jU],["__scopeId","data-v-6f878a26"]]),UU={components:{CdsPulsar:Cb,CdsIcon:Be},directives:{"on-click-outside":yr.directive},props:{modelValue:{type:Boolean,default:!0,required:!0},title:{type:String,default:"Nova funcionalidade!",validator:t=>t.length<=22},startOnScroll:{type:Boolean,default:!1,required:!1},url:{type:String,default:""},variant:{type:String,default:"green"},targetId:{type:String,default:""}},data(){return{isActive:this.modelValue,id:null,pulsarId:null,containerId:null,position:"right",isExpanded:!1,waitingConfirmation:!1,boxTop:0}},watch:{isActive(t){this.$emit("update:modelValue",t)},modelValue(t){this.isActive=t,this.handleEventAnimation()}},mounted(){this.handleEventAnimation()},methods:{handleEventAnimation(){this.id=`floating-assistant$-${this._uid}`,this.pulsarId=`floating-assistant-pulsar$-${this._uid}`,this.containerId=`floating-assistant-container$-${this._uid}`,this.startOnScroll?window.addEventListener("scroll",this.startAnimation):this.startAnimation()},startAnimation(){this.startOnScroll?this.isScrolledIntoView()&&setTimeout(()=>{document.getElementById(this.id).classList.add("animation"),window.removeEventListener("scroll",this.startAnimation)},1e3):setTimeout(()=>{document.getElementById(this.id).classList.add("animation")},1e3)},isScrolledIntoView(){const{top:t,bottom:e}=document.getElementById(this.id).getBoundingClientRect();return t>=0&&e<=window.innerHeight},expand(){this.waitingConfirmation||(this.isExpanded=!0)},collapse(){this.isExpanded=!1},close(){this.collapse(),this.waitingConfirmation=!0},confirmationHandle(t){if(!t){this.isActive=!1;return}this.$emit("disable-tip",!0),this.isActive=!1}}},qU=["id"],GU=["id"],KU={key:0},ZU={key:1},XU={key:0,class:"floating-assistant__content"},JU={key:0,class:"floating-assistant__footer"},QU=["href"],eq={key:1,class:"floating-assistant__subtitle"},tq={key:2};function nq(t,e,n,i,s,a){const o=r.resolveComponent("cds-pulsar"),l=r.resolveComponent("cds-icon"),d=r.resolveDirective("on-click-outside"),h=r.resolveDirective("cds-floatify");return r.openBlock(),r.createElementBlock("div",{id:s.id,class:r.normalizeClass(["floating-assistant",{"floating-assistant--hidden":!s.isActive}])},[r.createVNode(o,{id:s.pulsarId,"target-id":n.targetId,variant:n.variant},null,8,["id","target-id","variant"]),r.withDirectives((r.openBlock(),r.createElementBlock("div",{id:s.containerId,class:"floating-assistant__container"},[r.withDirectives((r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["floating-assistant__dropdown",{"floating-assistant__dropdown--expanded":s.isExpanded,"floating-assistant__dropdown--confirmation":s.waitingConfirmation}]),onClick:e[3]||(e[3]=(...f)=>a.expand&&a.expand(...f))},[s.waitingConfirmation?(r.openBlock(),r.createElementBlock("div",KU,[e[4]||(e[4]=r.createTextVNode(" Ocultar dica para sempre? ")),r.createElementVNode("span",{class:r.normalizeClass(`floating-assistant__link--${n.variant}`),onClick:e[0]||(e[0]=f=>a.confirmationHandle(!0))}," Sim ",2),e[5]||(e[5]=r.createTextVNode(" / ")),r.createElementVNode("span",{class:r.normalizeClass(`floating-assistant__link--${n.variant}`),onClick:e[1]||(e[1]=f=>a.confirmationHandle(!1))}," Não ",2)])):(r.openBlock(),r.createElementBlock("div",ZU,[r.createElementVNode("span",{class:r.normalizeClass(`floating-assistant__title--${n.variant}`)},r.toDisplayString(n.title),3),s.isExpanded?(r.openBlock(),r.createElementBlock("div",XU,[r.renderSlot(t.$slots,"default",{},void 0,!0),n.url?(r.openBlock(),r.createElementBlock("span",JU,[e[6]||(e[6]=r.createTextVNode(" Você pode saber mais ")),r.createElementVNode("a",{class:r.normalizeClass(`floating-assistant__link--${n.variant}`),href:n.url,target:"_blank"}," clicando aqui ",10,QU),e[7]||(e[7]=r.createTextVNode(". "))])):r.createCommentVNode("",!0)])):(r.openBlock(),r.createElementBlock("span",eq," Clique para mais informações "))])),s.isExpanded?(r.openBlock(),r.createElementBlock("div",tq,[r.createElementVNode("div",{onClick:e[2]||(e[2]=r.withModifiers((...f)=>a.close&&a.close(...f),["stop"]))},[r.createVNode(l,{class:"floating-assistant__close-button",name:"x-outline",height:"20",width:"20"})])])):r.createCommentVNode("",!0)],2)),[[d,a.collapse]])],8,GU)),[[h,s.pulsarId,s.position]])],10,qU)}const iq=Q(UU,[["render",nq],["__scopeId","data-v-12f84ef7"]]),t0={directives:{"on-click-outside":yr.directive},props:{modelValue:{type:Boolean,default:!1},width:{type:[String,Number],default:250},fitContentWidth:{type:Boolean,default:!1},targetId:{type:String,default:""},defaultPlacement:{type:String,default:null}},data(){return{id:"",target:"",popover:"",popperInstance:null,uniqueKey:er()}},computed:{variationPlacement(){return this.rightAligned?"end":"start"},popoverWidth(){return this.fitContentWidth?"fit-content":`${this.width}px`}},watch:{modelValue(t){t?this.show():this.hide()},targetId(t){this.setPopper(t)}},mounted(){this.id=`cds-popover-${this.uniqueKey}`,this.setPopper(this.targetId)},methods:{setPopper(t){this.$nextTick(()=>{this.target=document.querySelector(`[id='${t}']`),this.popover=document.querySelector(`#${this.id}`),this.popperInstance=tl(this.target,this.popover,{placement:this.defaultPlacement===null?"bottom":this.defaultPlacement,modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"flip",options:{fallbackPlacements:["top"]}}]})})},show(){this.popover.setAttribute("data-show",""),this.popover.classList.remove("popover-hide"),this.popover.classList.add("popover-show"),this.$emit("update:modelValue",!0),this.popperInstance.update()},hide(){this.popover.classList.remove("popover-show"),this.popover.classList.add("popover-hide"),setTimeout(()=>{this.popover.removeAttribute("data-show")},350),this.$nextTick(()=>{this.popperInstance.setOptions(t=>({...t,modifiers:[...t.modifiers,{name:"eventListeners",enabled:!1}]})),this.$emit("update:modelValue",!1)})}}},xb=()=>{r.useCssVars(t=>({d472e712:t.popoverWidth}))},Sb=t0.setup;t0.setup=Sb?(t,e)=>(xb(),Sb(t,e)):xb;const rq=["id"];function sq(t,e,n,i,s,a){const o=r.resolveDirective("on-click-outside");return r.withDirectives((r.openBlock(),r.createElementBlock("div",{id:t.$attrs.id||s.id,class:"richTooltip"},[r.renderSlot(t.$slots,"default",{},void 0,!0)],8,rq)),[[o,a.hide]])}const n0=Q(t0,[["render",sq],["__scopeId","data-v-3debc962"]]),i0={components:{CdsRichTooltip:n0},props:{value:{type:Number,default:0,validator:t=>t>=0&&t<=100},variant:{type:String,default:"green"},size:{type:Number,default:300},subtitle:{type:String,default:""},target:{type:Number,default:0,validator:t=>t>=0&&t<=100},showTarget:{type:Boolean,default:!1}},data(){return{showPopover:!1,uniqueKey:er()}},computed:{progressStyle(){return{"--value":this.value,"--size":this.size}},chartProgressValue(){return 198*(1-this.value/100)},targetValue(){let t=this.target-1;return t>=98&&(t=98),198*(1-t/100)},formatedValue(){return`${this.value.toLocaleString("pt-br",{minimumFractionDigits:1})}%`}},methods:{hasSlot:Xs}},Mb=()=>{r.useCssVars(t=>({eaad879e:t.chartProgressValue,cfd9d6d6:t.targetValue}))},Ob=i0.setup;i0.setup=Ob?(t,e)=>(Mb(),Ob(t,e)):Mb;const aq={class:"responsive-container"},oq=["id"],lq={transform:"scale(1.20) translate(-9.5 -12)"},cq={x:"50%",y:"50%","dominant-baseline":"middle","text-anchor":"middle",class:"value"},dq={x:"50%",y:"62%","dominant-baseline":"middle","text-anchor":"middle",class:"subtitle"};function uq(t,e,n,i,s,a){const o=r.resolveComponent("cds-rich-tooltip");return r.openBlock(),r.createElementBlock("span",null,[r.createElementVNode("div",aq,[r.createElementVNode("div",{class:"gauge-chart",style:r.normalizeStyle(a.progressStyle)},[(r.openBlock(),r.createElementBlock("svg",{id:s.uniqueKey,class:r.normalizeClass(`svg--${n.variant}`),viewBox:"0 0 110 100",onMouseover:e[0]||(e[0]=l=>s.showPopover=!0),onMouseleave:e[1]||(e[1]=l=>s.showPopover=!1)},[e[5]||(e[5]=r.createElementVNode("linearGradient",{id:"gradient",x1:"0",y1:"0",x2:"0",y2:"100%",gradientTransform:"rotate(-340)"},[r.createElementVNode("stop",{class:"stop",offset:"1%"}),r.createElementVNode("stop",{class:"stop-2",offset:"99%"})],-1)),r.createElementVNode("g",lq,[e[3]||(e[3]=r.createElementVNode("path",{class:"indicator-bar",d:"M30,90 A40,40 0 1,1 80,90",fill:"none"},null,-1)),e[4]||(e[4]=r.createElementVNode("path",{fill:"none",class:"indicator-progress",d:"M30,90 A40,40 0 1,1 80,90"},null,-1)),n.showTarget?(r.openBlock(),r.createElementBlock("path",{key:0,fill:"none",class:r.normalizeClass(["indicator-target",`indicator-target--${n.variant}`]),d:"M30,90 A40,40 0 1,1 80,90"},null,2)):r.createCommentVNode("",!0)]),r.createElementVNode("text",cq,r.toDisplayString(a.formatedValue),1),r.createElementVNode("text",dq,r.toDisplayString(n.subtitle),1)],42,oq))],4),a.hasSlot(t.$slots,"popover")?(r.openBlock(),r.createBlock(o,{key:0,modelValue:s.showPopover,"onUpdate:modelValue":e[2]||(e[2]=l=>s.showPopover=l),"default-placement":"top","target-id":s.uniqueKey},{default:r.withCtx(()=>[r.renderSlot(t.$slots,"popover",{},void 0,!0)]),_:3},8,["modelValue","target-id"])):r.createCommentVNode("",!0)])])}const hq=Q(i0,[["render",uq],["__scopeId","data-v-0c7cac1e"]]),fq=Q({__name:"Grid",props:{cols:{type:[Number,String,Array],default:1},rows:{type:[Number,String,Array],default:1},autoCols:{type:[Number,String],default:1},autoRows:{type:[Number,String],default:1},gap:{type:[Number,String],default:0},rowGap:{type:[Number,String],default:0},colGap:{type:[Number,String],default:0},justify:{type:String,default:"stretch"},align:{type:String,default:"stretch"},tag:{type:String,default:"div",validator:t=>["div","span","main","footer","form","header","aside","ul","li"].includes(t)}},setup(t){r.useCssVars(h=>({"3618dc9f":t.align,"6f11a316":i.value,"1a633418":l.value,"35421a4c":d.value,"83b531c6":a.value,"16d239b6":o.value,"014a9cac":t.justify}));const e=t,n=h=>{const f=h.match(/^(\d+(\.\d+)?)(.*)$/);return f?f[3]?h:f?`${parseFloat(f[1])*4}px`:null:null},i=r.computed(()=>{let h="";return e.gap&&e.gap!==0&&e.gap!=="0"?Number.isFinite(e.gap)?`${e.gap*4}px`:n(e.gap):(e.rowGap?Number.isFinite(e.rowGap)?h=`${e.rowGap*4}px`:h=n(e.rowGap):h="0px",e.colGap?Number.isFinite(e.colGap)?h+=` ${e.colGap*4}px`:h+=` ${n(e.colGap)}`:h+=" 0px",h)}),s=h=>Array.isArray(h)?h.reduce((f,m)=>`${f} ${m}`):Number.isFinite(h)?`${"1fr ".repeat(h)}`:`${h}`,a=r.computed(()=>s(e.cols)),o=r.computed(()=>s(e.rows)),l=r.computed(()=>s(e.autoCols)),d=r.computed(()=>s(e.autoRows));return(h,f)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.tag),{class:"grid"},{default:r.withCtx(()=>[r.renderSlot(h.$slots,"default",{},void 0,!0)]),_:3}))}},[["__scopeId","data-v-02611aad"]]),pq={class:"grid-item"},mq=Q({__name:"GridItem",props:{colSpan:{type:[Number,String],default:"auto"},rowSpan:{type:[Number,String],default:"1"},colStart:{type:[Number,String],default:"auto"},rowStart:{type:[Number,String],default:"auto"},gap:{type:[Number,String],default:0},rowGap:{type:[Number,String],default:0},colGap:{type:[Number,String],default:0},subGrid:{type:Boolean,default:!1},justify:{type:String,default:"auto"},align:{type:String,default:"auto"},direction:{type:String,default:"row"}},setup(t){r.useCssVars(o=>({"74e6f3ab":t.align,"00119c0e":s.value,"057d4122":a.value,"0cc4bb96":n.value,"5597afb4":i.value,"7a019494":t.justify,"5912a125":t.direction}));const e=t,n=r.computed(()=>{if(!e.colSpan&&!e.colStart)return"auto";const o=e.colStart?e.colStart:1,l=e.colSpan?`span ${e.colSpan}`:1;return`${o} / ${l}`}),i=r.computed(()=>{if(!e.rowSpan&&!e.rowStart)return"auto";const o=e.rowStart?e.rowStart:1,l=e.rowSpan?`span ${e.rowSpan}`:1;return`${o} / ${l}`}),s=r.computed(()=>e.subGrid?"grid":"block"),a=r.computed(()=>{let o="";return e.gap&&e.gap!==0&&e.gap!=="0"?Number.isFinite(e.gap)?`${e.gap}px`:e.gap:(e.rowGap?Number.isFinite(e.rowGap)?o=`${e.rowGap}px`:o=e.rowGap:o="0px",e.colGap?Number.isFinite(e.colGap)?o+=` ${e.colGap}px`:o+=` ${e.colGap}`:o+=" 0px",o)});return(o,l)=>(r.openBlock(),r.createElementBlock("div",pq,[r.renderSlot(o.$slots,"default",{},void 0,!0)]))}},[["__scopeId","data-v-47eebbde"]]),r0={props:{variant:{type:String,default:"info"},animated:{type:Boolean,default:!1},duration:{type:Number,default:1},delay:{type:Number,default:0},highlightedText:{type:[String,null],default:null},caseSensitive:{type:Boolean,default:!1}},data(){return{substrings:[]}},computed:{hasSlots(){return!!Object.keys(this.$slots).length},slotString(){return this.hasSlots?this.$slots.default()[0].children:""},normalizedSlotString(){return this.normalize(this.slotString)},normalizedHighlightText(){return this.normalize(this.highlightedText)},isAValidSubstring(){return this.normalizedSlotString.includes(this.normalizedHighlightText)},paddingResolver(){return this.highlightedText?"4px 1px":"4px"},dynamicHighlightClass(){let t="";switch(this.animated&&(t="highlight__container--highlighted"),this.variant){case"info":return`${t} highlight__container--info`;case"success":return`${t} highlight__container--success`;case"danger":return`${t} highlight__container--danger`;default:return`${t} highlight__container--info`}},dynamicStyle(){return{"--duration":`${this.duration}s`,"--delay":`${this.delay}s`}}},watch:{highlightedText(){this.splitContent()}},mounted(){this.splitContent()},methods:{normalize(t){const e={a:"[aáàâã]",á:"[aáàâã]",à:"[aáàâã]",â:"[aáàâã]",ã:"[aáàâã]",e:"[eéê]",é:"[eéê]",ê:"[eéê]",i:"[ií]",í:"[ií]",o:"[oóôõ]",ó:"[oóôõ]",ô:"[oóôõ]",õ:"[oóôõ]",u:"[uúü]",ú:"[uúü]",ü:"[uúü]"},n={a:"[aáàâã]",á:"[aáàâã]",à:"[aáàâã]",â:"[aáàâã]",ã:"[aáàâã]",e:"[eéê]",é:"[eéê]",ê:"[eéê]",i:"[ií]",í:"[ií]",o:"[oóôõ]",ó:"[oóôõ]",ô:"[oóôõ]",õ:"[oóôõ]",u:"[uúü]",ú:"[uúü]",ü:"[uúü]",A:"[AÁÀÂÃ]",Á:"[AÁÀÂÃ]",À:"[AÁÀÂÃ]",Â:"[AÁÀÂÃ]",Ã:"[AÁÀÂÃ]",E:"[EÉÊ]",É:"[EÉÊ]",Ê:"[EÉÊ]",I:"[IÍ]",Í:"[IÍ]",O:"[OÓÔÕ]",Ó:"[OÓÔÕ]",Ô:"[OÓÔÕ]",Õ:"[OÓÔÕ]",U:"[UÚÜ]",Ú:"[UÚÜ]",Ü:"[UÚÜ]"};return this.caseSensitive?t==null?void 0:t.replace(/[aáàâãeéêiíoóôõuúüAÁÀÂÃEÉÊIÍOÓÔÕUÚÜ]/g,i=>n[i]||i):t==null?void 0:t.toLowerCase().replace(/[aáàâãeéêiíoóôõuúü]/g,i=>e[i]||i)},splitContent(){let t=this.caseSensitive?"g":"gi",e=new RegExp(`(${this.normalizedHighlightText})`,t),n=this.slotString.split(e);this.substrings=n.map((i,s)=>({string:i,highlighted:new RegExp(`^${this.normalizedHighlightText}$`,t).test(this.caseSensitive?i:i==null?void 0:i.toLowerCase()),id:s}))}}},Db=()=>{r.useCssVars(t=>({"6b796b56":t.paddingResolver}))},Eb=r0.setup;r0.setup=Eb?(t,e)=>(Db(),Eb(t,e)):Db;function gq(t,e,n,i,s,a){return n.highlightedText&&a.isAValidSubstring?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:0},r.renderList(s.substrings,o=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:o.id},[o.highlighted?(r.openBlock(),r.createElementBlock("mark",{key:0,class:r.normalizeClass(["highlight__container",a.dynamicHighlightClass]),style:r.normalizeStyle(a.dynamicStyle)},r.toDisplayString(o.string),7)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(r.toDisplayString(o.string),1)],64))],64))),128)):(r.openBlock(),r.createElementBlock("mark",{key:1,class:r.normalizeClass(["highlight__container",a.dynamicHighlightClass]),style:r.normalizeStyle(a.dynamicStyle)},[r.renderSlot(t.$slots,"default",{},void 0,!0)],6))}const Bb=Q(r0,[["render",gq],["__scopeId","data-v-3c7c0a20"]]),Vb=["sm","md","lg"],yq={components:{CdsIcon:Be,CdsTooltip:Xc},props:{size:{type:String,default:"md",validator:t=>Vb.includes(t)},icon:{type:String,default:"create-outline"},disabled:{type:Boolean,default:!1},tooltipText:{type:String,default:null},feedbackOnClick:{type:Boolean,default:!1},feedbackIcon:{type:String,default:"check-outline"},variant:{type:String,default:"white"}},data(){return{predefinedSizes:Vb,innerTooltipText:this.tooltipText,internalIcon:this.icon,inputControlPanel:0}},computed:{predefinedSize(){return`cds-icon-button--${this.size}`},computedModifiers(){const t=this.disabled?"cds-icon-button--disabled":"",e=`cds-icon-button__container--${this.variant}`;return`${t} ${this.predefinedSize} ${e}`}},methods:{clickHandler(t){this.disabled||(this.feedbackOnClick&&(this.inputControlPanel+=1,this.internalIcon=this.feedbackIcon,setTimeout(()=>{this.internalIcon=this.icon,this.inputControlPanel+=1},1e3),this.inputControlPanel+=1),this.$emit("cds-click",t))}}},bq={id:"cds-icon-button"};function _q(t,e,n,i,s,a){const o=r.resolveComponent("cds-icon");return r.openBlock(),r.createElementBlock("span",bq,[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(n.tooltipText?"cds-tooltip":"span"),{text:s.innerTooltipText},{default:r.withCtx(()=>[r.createElementVNode("button",{class:r.normalizeClass(["cds-icon-button__container",a.computedModifiers]),onClick:e[0]||(e[0]=(...l)=>a.clickHandler&&a.clickHandler(...l))},[(r.openBlock(),r.createBlock(o,{key:s.inputControlPanel,name:s.internalIcon,class:"cds-icon-button__icon"},null,8,["name"]))],2)]),_:1},8,["text"]))])}const s0=Q(yq,[["render",_q],["__scopeId","data-v-ad879e60"]]);var Eu={exports:{}};Eu.exports,function(t,e){var n=200,i="__lodash_hash_undefined__",s=1,a=2,o=9007199254740991,l="[object Arguments]",d="[object Array]",h="[object AsyncFunction]",f="[object Boolean]",m="[object Date]",g="[object Error]",y="[object Function]",w="[object GeneratorFunction]",v="[object Map]",k="[object Number]",S="[object Null]",E="[object Object]",$="[object Promise]",x="[object Proxy]",I="[object RegExp]",V="[object Set]",P="[object String]",A="[object Symbol]",R="[object Undefined]",q="[object WeakMap]",ne="[object ArrayBuffer]",G="[object DataView]",ie="[object Float32Array]",me="[object Float64Array]",ee="[object Int8Array]",he="[object Int16Array]",pe="[object Int32Array]",be="[object Uint8Array]",we="[object Uint8ClampedArray]",H="[object Uint16Array]",fe="[object Uint32Array]",oe=/[\\^$.*+?()[\]{}|]/g,Ee=/^\[object .+?Constructor\]$/,Me=/^(?:0|[1-9]\d*)$/,ge={};ge[ie]=ge[me]=ge[ee]=ge[he]=ge[pe]=ge[be]=ge[we]=ge[H]=ge[fe]=!0,ge[l]=ge[d]=ge[ne]=ge[f]=ge[G]=ge[m]=ge[g]=ge[y]=ge[v]=ge[k]=ge[E]=ge[I]=ge[V]=ge[P]=ge[q]=!1;var ze=typeof dn=="object"&&dn&&dn.Object===Object&&dn,lt=typeof self=="object"&&self&&self.Object===Object&&self,Fe=ze||lt||Function("return this")(),ht=e&&!e.nodeType&&e,Vt=ht&&!0&&t&&!t.nodeType&&t,wt=Vt&&Vt.exports===ht,tt=wt&&ze.process,rt=function(){try{return tt&&tt.binding&&tt.binding("util")}catch{}}(),st=rt&&rt.isTypedArray;function Yt(_,O){for(var N=-1,K=_==null?0:_.length,Ve=0,Ce=[];++N<K;){var Ge=_[N];O(Ge,N,_)&&(Ce[Ve++]=Ge)}return Ce}function ft(_,O){for(var N=-1,K=O.length,Ve=_.length;++N<K;)_[Ve+N]=O[N];return _}function kt(_,O){for(var N=-1,K=_==null?0:_.length;++N<K;)if(O(_[N],N,_))return!0;return!1}function nn(_,O){for(var N=-1,K=Array(_);++N<_;)K[N]=O(N);return K}function rn(_){return function(O){return _(O)}}function _t(_,O){return _.has(O)}function nt(_,O){return _==null?void 0:_[O]}function At(_){var O=-1,N=Array(_.size);return _.forEach(function(K,Ve){N[++O]=[Ve,K]}),N}function Mt(_,O){return function(N){return _(O(N))}}function Tt(_){var O=-1,N=Array(_.size);return _.forEach(function(K){N[++O]=K}),N}var Ot=Array.prototype,hn=Function.prototype,It=Object.prototype,re=Fe["__core-js_shared__"],$e=hn.toString,We=It.hasOwnProperty,gn=function(){var _=/[^.]+$/.exec(re&&re.keys&&re.keys.IE_PROTO||"");return _?"Symbol(src)_1."+_:""}(),$n=It.toString,Gn=RegExp("^"+$e.call(We).replace(oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),U=wt?Fe.Buffer:void 0,le=Fe.Symbol,_e=Fe.Uint8Array,Y=It.propertyIsEnumerable,B=Ot.splice,j=le?le.toStringTag:void 0,se=Object.getOwnPropertySymbols,ke=U?U.isBuffer:void 0,Ye=Mt(Object.keys,Object),at=Dn(Fe,"DataView"),Ct=Dn(Fe,"Map"),sn=Dn(Fe,"Promise"),Kt=Dn(Fe,"Set"),Kn=Dn(Fe,"WeakMap"),pt=Dn(Object,"create"),An=yn(at),Mn=yn(Ct),ai=yn(sn),Wi=yn(Kt),Ir=yn(Kn),bo=le?le.prototype:void 0,aa=bo?bo.valueOf:void 0;function an(_){var O=-1,N=_==null?0:_.length;for(this.clear();++O<N;){var K=_[O];this.set(K[0],K[1])}}function ac(){this.__data__=pt?pt(null):{},this.size=0}function oc(_){var O=this.has(_)&&delete this.__data__[_];return this.size-=O?1:0,O}function lc(_){var O=this.__data__;if(pt){var N=O[_];return N===i?void 0:N}return We.call(O,_)?O[_]:void 0}function cc(_){var O=this.__data__;return pt?O[_]!==void 0:We.call(O,_)}function dc(_,O){var N=this.__data__;return this.size+=this.has(_)?0:1,N[_]=pt&&O===void 0?i:O,this}an.prototype.clear=ac,an.prototype.delete=oc,an.prototype.get=lc,an.prototype.has=cc,an.prototype.set=dc;function on(_){var O=-1,N=_==null?0:_.length;for(this.clear();++O<N;){var K=_[O];this.set(K[0],K[1])}}function uc(){this.__data__=[],this.size=0}function hc(_){var O=this.__data__,N=Ar(O,_);if(N<0)return!1;var K=O.length-1;return N==K?O.pop():B.call(O,N,1),--this.size,!0}function fc(_){var O=this.__data__,N=Ar(O,_);return N<0?void 0:O[N][1]}function pc(_){return Ar(this.__data__,_)>-1}function mc(_,O){var N=this.__data__,K=Ar(N,_);return K<0?(++this.size,N.push([_,O])):N[K][1]=O,this}on.prototype.clear=uc,on.prototype.delete=hc,on.prototype.get=fc,on.prototype.has=pc,on.prototype.set=mc;function On(_){var O=-1,N=_==null?0:_.length;for(this.clear();++O<N;){var K=_[O];this.set(K[0],K[1])}}function ms(){this.size=0,this.__data__={hash:new an,map:new(Ct||on),string:new an}}function gc(_){var O=Nn(this,_).delete(_);return this.size-=O?1:0,O}function gs(_){return Nn(this,_).get(_)}function yc(_){return Nn(this,_).has(_)}function bc(_,O){var N=Nn(this,_),K=N.size;return N.set(_,O),this.size+=N.size==K?0:1,this}On.prototype.clear=ms,On.prototype.delete=gc,On.prototype.get=gs,On.prototype.has=yc,On.prototype.set=bc;function ys(_){var O=-1,N=_==null?0:_.length;for(this.__data__=new On;++O<N;)this.add(_[O])}function oa(_){return this.__data__.set(_,i),this}function $r(_){return this.__data__.has(_)}ys.prototype.add=ys.prototype.push=oa,ys.prototype.has=$r;function oi(_){var O=this.__data__=new on(_);this.size=O.size}function la(){this.__data__=new on,this.size=0}function _c(_){var O=this.__data__,N=O.delete(_);return this.size=O.size,N}function vc(_){return this.__data__.get(_)}function wc(_){return this.__data__.has(_)}function _o(_,O){var N=this.__data__;if(N instanceof on){var K=N.__data__;if(!Ct||K.length<n-1)return K.push([_,O]),this.size=++N.size,this;N=this.__data__=new On(K)}return N.set(_,O),this.size=N.size,this}oi.prototype.clear=la,oi.prototype.delete=_c,oi.prototype.get=vc,oi.prototype.has=wc,oi.prototype.set=_o;function vo(_,O){var N=bs(_),K=!N&&da(_),Ve=!N&&!K&&_s(_),Ce=!N&&!K&&!Ve&&Io(_),Ge=N||K||Ve||Ce,Ke=Ge?nn(_.length,String):[],He=Ke.length;for(var Xe in _)We.call(_,Xe)&&!(Ge&&(Xe=="length"||Ve&&(Xe=="offset"||Xe=="parent")||Ce&&(Xe=="buffer"||Xe=="byteLength"||Xe=="byteOffset")||Mo(Xe,He)))&&Ke.push(Xe);return Ke}function Ar(_,O){for(var N=_.length;N--;)if(Vo(_[N][0],O))return N;return-1}function Nr(_,O,N){var K=O(_);return bs(_)?K:ft(K,N(_))}function zr(_){return _==null?_===void 0?R:S:j&&j in Object(_)?Ci(_):Bo(_)}function ca(_){return Si(_)&&zr(_)==l}function Pr(_,O,N,K,Ve){return _===O?!0:_==null||O==null||!Si(_)&&!Si(O)?_!==_&&O!==O:wo(_,O,N,K,Pr,Ve)}function wo(_,O,N,K,Ve,Ce){var Ge=bs(_),Ke=bs(O),He=Ge?d:xi(_),Xe=Ke?d:xi(O);He=He==l?E:He,Xe=Xe==l?E:Xe;var Nt=He==E,bn=Xe==E,Ft=He==Xe;if(Ft&&_s(_)){if(!_s(O))return!1;Ge=!0,Nt=!1}if(Ft&&!Nt)return Ce||(Ce=new oi),Ge||Io(_)?Lr(_,O,N,K,Ve,Ce):Cc(_,O,He,N,K,Ve,Ce);if(!(N&s)){var gt=Nt&&We.call(_,"__wrapped__"),Qt=bn&&We.call(O,"__wrapped__");if(gt||Qt){var ji=gt?_.value():_,Mi=Qt?O.value():O;return Ce||(Ce=new oi),Ve(ji,Mi,N,K,Ce)}}return Ft?(Ce||(Ce=new oi),xo(_,O,N,K,Ve,Ce)):!1}function kc(_){if(!To(_)||Do(_))return!1;var O=vs(_)?Gn:Ee;return O.test(yn(_))}function ko(_){return Si(_)&&ha(_.length)&&!!ge[zr(_)]}function Co(_){if(!Eo(_))return Ye(_);var O=[];for(var N in Object(_))We.call(_,N)&&N!="constructor"&&O.push(N);return O}function Lr(_,O,N,K,Ve,Ce){var Ge=N&s,Ke=_.length,He=O.length;if(Ke!=He&&!(Ge&&He>Ke))return!1;var Xe=Ce.get(_);if(Xe&&Ce.get(O))return Xe==O;var Nt=-1,bn=!0,Ft=N&a?new ys:void 0;for(Ce.set(_,O),Ce.set(O,_);++Nt<Ke;){var gt=_[Nt],Qt=O[Nt];if(K)var ji=Ge?K(Qt,gt,Nt,O,_,Ce):K(gt,Qt,Nt,_,O,Ce);if(ji!==void 0){if(ji)continue;bn=!1;break}if(Ft){if(!kt(O,function(Mi,dr){if(!_t(Ft,dr)&&(gt===Mi||Ve(gt,Mi,N,K,Ce)))return Ft.push(dr)})){bn=!1;break}}else if(!(gt===Qt||Ve(gt,Qt,N,K,Ce))){bn=!1;break}}return Ce.delete(_),Ce.delete(O),bn}function Cc(_,O,N,K,Ve,Ce,Ge){switch(N){case G:if(_.byteLength!=O.byteLength||_.byteOffset!=O.byteOffset)return!1;_=_.buffer,O=O.buffer;case ne:return!(_.byteLength!=O.byteLength||!Ce(new _e(_),new _e(O)));case f:case m:case k:return Vo(+_,+O);case g:return _.name==O.name&&_.message==O.message;case I:case P:return _==O+"";case v:var Ke=At;case V:var He=K&s;if(Ke||(Ke=Tt),_.size!=O.size&&!He)return!1;var Xe=Ge.get(_);if(Xe)return Xe==O;K|=a,Ge.set(_,O);var Nt=Lr(Ke(_),Ke(O),K,Ve,Ce,Ge);return Ge.delete(_),Nt;case A:if(aa)return aa.call(_)==aa.call(O)}return!1}function xo(_,O,N,K,Ve,Ce){var Ge=N&s,Ke=Yi(_),He=Ke.length,Xe=Yi(O),Nt=Xe.length;if(He!=Nt&&!Ge)return!1;for(var bn=He;bn--;){var Ft=Ke[bn];if(!(Ge?Ft in O:We.call(O,Ft)))return!1}var gt=Ce.get(_);if(gt&&Ce.get(O))return gt==O;var Qt=!0;Ce.set(_,O),Ce.set(O,_);for(var ji=Ge;++bn<He;){Ft=Ke[bn];var Mi=_[Ft],dr=O[Ft];if(K)var Sc=Ge?K(dr,Mi,Ft,O,_,Ce):K(Mi,dr,Ft,_,O,Ce);if(!(Sc===void 0?Mi===dr||Ve(Mi,dr,N,K,Ce):Sc)){Qt=!1;break}ji||(ji=Ft=="constructor")}if(Qt&&!ji){var pa=_.constructor,fn=O.constructor;pa!=fn&&"constructor"in _&&"constructor"in O&&!(typeof pa=="function"&&pa instanceof pa&&typeof fn=="function"&&fn instanceof fn)&&(Qt=!1)}return Ce.delete(_),Ce.delete(O),Qt}function Yi(_){return Nr(_,fa,So)}function Nn(_,O){var N=_.__data__;return Oo(O)?N[typeof O=="string"?"string":"hash"]:N.map}function Dn(_,O){var N=nt(_,O);return kc(N)?N:void 0}function Ci(_){var O=We.call(_,j),N=_[j];try{_[j]=void 0;var K=!0}catch{}var Ve=$n.call(_);return K&&(O?_[j]=N:delete _[j]),Ve}var So=se?function(_){return _==null?[]:(_=Object(_),Yt(se(_),function(O){return Y.call(_,O)}))}:mt,xi=zr;(at&&xi(new at(new ArrayBuffer(1)))!=G||Ct&&xi(new Ct)!=v||sn&&xi(sn.resolve())!=$||Kt&&xi(new Kt)!=V||Kn&&xi(new Kn)!=q)&&(xi=function(_){var O=zr(_),N=O==E?_.constructor:void 0,K=N?yn(N):"";if(K)switch(K){case An:return G;case Mn:return v;case ai:return $;case Wi:return V;case Ir:return q}return O});function Mo(_,O){return O=O??o,!!O&&(typeof _=="number"||Me.test(_))&&_>-1&&_%1==0&&_<O}function Oo(_){var O=typeof _;return O=="string"||O=="number"||O=="symbol"||O=="boolean"?_!=="__proto__":_===null}function Do(_){return!!gn&&gn in _}function Eo(_){var O=_&&_.constructor,N=typeof O=="function"&&O.prototype||It;return _===N}function Bo(_){return $n.call(_)}function yn(_){if(_!=null){try{return $e.call(_)}catch{}try{return _+""}catch{}}return""}function Vo(_,O){return _===O||_!==_&&O!==O}var da=ca(function(){return arguments}())?ca:function(_){return Si(_)&&We.call(_,"callee")&&!Y.call(_,"callee")},bs=Array.isArray;function ua(_){return _!=null&&ha(_.length)&&!vs(_)}var _s=ke||ct;function xc(_,O){return Pr(_,O)}function vs(_){if(!To(_))return!1;var O=zr(_);return O==y||O==w||O==h||O==x}function ha(_){return typeof _=="number"&&_>-1&&_%1==0&&_<=o}function To(_){var O=typeof _;return _!=null&&(O=="object"||O=="function")}function Si(_){return _!=null&&typeof _=="object"}var Io=st?rn(st):ko;function fa(_){return ua(_)?vo(_):Co(_)}function mt(){return[]}function ct(){return!1}t.exports=xc}(Eu,Eu.exports);var vq=Eu.exports;const fo=Gc(vq),wq={props:{tabs:{type:Array,default:()=>[],required:!0,validator:t=>!t.filter(n=>tn(n.title)||tn(n.name)).length},activeTab:{type:Object,default:()=>({}),required:!0},variant:{type:String,default:"green",validator:t=>sr.includes(t)}},data(){return{internalActiveTab:this.activeTab,colorOptions:sr}},computed:{activeBorderStyle(){return{"--indicatorColor":this.colorHexCode(this.variant)}}},watch:{tabs:{handler(t){const e=t.filter(n=>n.name===this.activeTab.name);[this.internalActiveTab]=e.length?e:t},immediate:!0}},methods:{colorHexCode:Za,getSlotName(t){return t.name},handleClick(t,e){this.$emit("tab-click",{event:t,item:e}),!this.internalActiveTab.disableTabChange&&(this.$emit("change",{event:t,item:e}),this.internalActiveTab=e)},isActive(t){return fo(this.internalActiveTab,t)},indicatorClass(t){return this.isActive(t)?`tab__indicator--active--${this.variant}`:""}}},kq={id:"inner-tabs"},Cq={class:"inner-tabs__header-container"},xq={class:"inner-tabs__header"},Sq=["onClick"],Mq={class:"inner-tabs__content"};function Oq(t,e,n,i,s,a){return r.openBlock(),r.createElementBlock("div",kq,[r.createElementVNode("div",Cq,[r.createElementVNode("ul",xq,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.tabs,(o,l)=>(r.openBlock(),r.createElementBlock("li",{key:`${l}-${o.name}-tab`,role:"presentation"},[r.createElementVNode("a",{role:"tab",href:"javascript:void(0)",target:"_self",class:r.normalizeClass(["inner-tabs__tab",a.isActive(o)?"inner-tabs__tab--active":"inner-tabs__tab--inactive"]),onClick:d=>a.handleClick(d,o)},r.toDisplayString(o.title),11,Sq),r.createElementVNode("div",{class:r.normalizeClass(a.indicatorClass(o)),style:r.normalizeStyle(a.activeBorderStyle)},null,6)]))),128))])]),r.createElementVNode("div",Mq,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.tabs,(o,l)=>(r.openBlock(),r.createElementBlock("div",{key:`${l}-${o.name}-tab`,role:"tabpanel",class:r.normalizeClass(["content__pane",a.isActive(o)?"content__pane--active":"content__pane--inactive"])},[r.renderSlot(t.$slots,a.getSlotName(o))],2))),128))])])}const Dq=Q(wq,[["render",Oq]]),ic=t=>{switch(t){case"smartphone":return window.outerWidth<500&&window.outerWidth<window.outerHeight;case"tablet":return window.outerWidth>=500&&window.outerWidth<900&&window.outerWidth<window.outerHeight;case"hd-screen":return window.outerWidth>=900&&window.outerWidth<1600&&window.outerWidth>window.outerHeight;case"fhd-screen":return window.outerWidth>=1600&&window.outerWidth<2e3&&window.outerWidth>window.outerHeight;case"uhd-screen":return window.outerWidth>=2e3&&window.outerWidth>window.outerHeight;default:throw new Error(`Valor inválido: '${t}'. Os valores aceitos são: 'smartphone', 'tablet', 'hd-screen', 'fhd-screen', 'uhd-screen'.`)}},Eq={key:0,class:"landscape-overlay"},Bq={class:"landscape-overlay__container"},Vq=["src"],Tq={class:"landscape-overlay__title"},Iq={class:"landscape-overlay__subtitle"},$q={key:0,class:"landscape-overlay__button"},Aq=Q({__name:"InteractionBlockingOverlay",props:{blockInteraction:{type:String,required:!0,default:"mobile",validator:t=>["mobile","landscape"].includes(t.toLowerCase())},title:{type:String,default:""},description:{type:String,default:""},buttonVariant:{type:String,default:"green",validator:t=>sr.includes(t.toLowerCase())},buttonText:{type:String,default:"Ir para o início"}},emits:["button-click"],setup(t,{emit:e}){const n=t,i=e,s=r.ref(!1),a=r.ref(""),o=r.ref(""),l=r.ref(""),d=r.computed(()=>ic("smartphone")||ic("tablet")),h=r.computed(()=>window.outerWidth>window.outerHeight&&d.value);return r.watch(s,f=>{f?document.body.style.overflow="hidden":document.body.style.overflow="auto"}),r.watchEffect(()=>{!d.value&&!h.value&&(s.value=!1)}),r.onMounted(()=>{if(n.blockInteraction==="mobile"){d.value&&(s.value=!0,n.title===""?a.value="Acesse o conteúdo por um computador":a.value=n.title,n.description===""?o.value="Esta tela não é otimizada para navegação em celular.":o.value=n.description,l.value="/img/page-not-responsive.svg");return}n.blockInteraction==="landscape"&&h.value&&(s.value=!0,n.title===""?a.value="Rotacione seu dispositivo":a.value=n.title,n.description===""?o.value="Este conteúdo é otimizado para a visualização em modo retrato.":o.value=n.description,l.value="/img/smartphone-rotation.svg")}),(f,m)=>s.value?(r.openBlock(),r.createElementBlock("div",Eq,[r.createElementVNode("div",Bq,[r.createElementVNode("img",{class:"landscape-overlay__image",src:l.value},null,8,Vq),r.createElementVNode("span",Tq,r.toDisplayString(a.value),1),r.createElementVNode("span",Iq,r.toDisplayString(o.value),1),f.block-f.interaction==="mobile"?(r.openBlock(),r.createElementBlock("div",$q,[r.createVNode(Qi,{variant:t.buttonVariant,block:"",onButtonClick:m[0]||(m[0]=g=>i("button-click"))},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(t.buttonText),1)]),_:1},8,["variant"])])):r.createCommentVNode("",!0)])])):r.createCommentVNode("",!0)}},[["__scopeId","data-v-a0718af5"]]),po=t=>/^(19|20)\d\d-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$/.test(t),a0={components:{VDatePicker:bb,CdsChevron:$s,CdsIcon:Be},props:{modelValue:{type:[String,Object],default:"",validator:t=>t===""||typeof t=="object"||po(t)},label:{type:String,default:"Date"},disabled:{type:Boolean,default:!1},range:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1},minDate:{type:String,default:"",validator:t=>t===""||po(t)},maxDate:{type:String,default:"",validator:t=>t===""||po(t)},placeholder:{type:String,default:"Selecione uma data"},showTodayDot:{type:Boolean,default:!1},variant:{type:String,default:"green"}},data(){return{sassColorVariables:Yn,internalDate:ue.now(),isBeingFocused:!1,inputControl:0,attributes:[{dates:new Date,dot:!0}],variantColorData:{}}},computed:{errorState(){return this.state==="invalid"},hasSlots(){return!!Object.keys(this.$slots).length},capitalizedLabel(){return this.label.charAt(0).toUpperCase()+this.label.slice(1)},dateInputClassContainer(){let t="";return this.disabled?this.fluid?"inline-date-input--disabled inline-date-input--fluid":"inline-date-input--disabled":(t+=this.fluid?" date-input--fluid":" date-input",t)},inputClass(){let t="";return this.disabled?this.fluid?"date-input--disabled date-input--fluid":"date-input--disabled":(t+=this.fluid?" date-input--fluid":" date-input",t)},inlineCalendarDotColor(){return this.variantColorData.colorData[4].shade},inlineCalendarTextColor(){return this.variantColorData.colorData[7].shade},inlineCalendarTrailColor(){return this.variantColorData.colorData[1].shade}},watch:{modelValue(t,e){t!==e&&this.resolveInternalDate()},variant(t,e){t!==e&&this.updateColorData()}},created(){this.updateColorData()},mounted(){this.resolveInternalDate()},methods:{paleteBuilder:rr,updateColorData(){this.variantColorData=this.paleteBuilder(Yn.palete).find(t=>t.variantName.toLowerCase()===this.variant)},handleUpdateInput(t){if(this.range){this.$emit("update:modelValue",t.start&&t.end?{start:ue.fromJSDate(t.start).toFormat("yyyy-MM-dd"),end:ue.fromJSDate(t.end).toFormat("yyyy-MM-dd")}:"");return}this.$emit("update:modelValue",t?ue.fromJSDate(t).toFormat("yyyy-MM-dd"):"")},resolveInternalDate(){if(!this.modelValue){this.internalDate=this.range?null:"";return}if(this.range){this.internalDate=po(this.modelValue.start)&&po(this.modelValue.end)?{start:ue.fromFormat(this.modelValue.start,"yyyy-MM-dd"),end:ue.fromFormat(this.modelValue.end,"yyyy-MM-dd")}:{start:ue.now(),end:ue.now()};return}this.internalDate=po(this.modelValue)?ue.fromFormat(this.modelValue,"yyyy-MM-dd"):ue.now()},resolveInputValue(t){return typeof t!="object"?t:!t.start&&!t.end||Un.isEmpty(t)?null:`${t.start} a ${t.end}`}}},Tb=()=>{r.useCssVars(t=>({"2a014cba":t.inlineCalendarTrailColor,"60dfc8d0":t.inlineCalendarTextColor,"311f6c80":t.inlineCalendarDotColor}))},Ib=a0.setup;a0.setup=Ib?(t,e)=>(Tb(),Ib(t,e)):Tb;const Nq={key:0},zq={key:1,class:"inline-date-input__label"},Pq={class:"label__content",for:"cds-text-input"},Lq=["value","disabled","placeholder","onClick"],Fq={class:"inline-date-input__icon"};function Rq(t,e,n,i,s,a){const o=r.resolveComponent("cds-chevron"),l=r.resolveComponent("cds-icon"),d=r.resolveComponent("v-date-picker");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["inline-date-input__container",a.dateInputClassContainer])},[r.createElementVNode("span",null,[a.hasSlots?(r.openBlock(),r.createElementBlock("span",Nq,[r.renderSlot(t.$slots,"label",{},void 0,!0)])):(r.openBlock(),r.createElementBlock("label",zq,[r.createElementVNode("div",Pq,[r.createElementVNode("span",null,r.toDisplayString(a.capitalizedLabel)+": ",1)])]))]),r.createVNode(d,{id:"cds--inline-date-input",modelValue:s.internalDate,"onUpdate:modelValue":[e[2]||(e[2]=h=>s.internalDate=h),a.handleUpdateInput],locale:"pt-BR","min-date":n.minDate?new Date(n.minDate):null,"max-date":n.maxDate?new Date(n.maxDate):null,attributes:n.showTodayDot?s.attributes:{},color:n.variant,"is-range":n.range},{"header-left-button":r.withCtx(({page:h})=>[r.createVNode(o,{direction:"left",onClick:f=>h.movePrevMonth()},null,8,["onClick"])]),"header-right-button":r.withCtx(({page:h})=>[r.createVNode(o,{direction:"right",onClick:f=>h.moveNextMonth()},null,8,["onClick"])]),default:r.withCtx(({inputValue:h,togglePopover:f,inputEvents:m})=>[r.createElementVNode("div",{class:r.normalizeClass(a.inputClass)},[r.createElementVNode("input",r.mergeProps({value:a.resolveInputValue(h),disabled:n.disabled,placeholder:n.placeholder,type:"text"},r.toHandlers(m,!0),{onClick:f,onFocus:e[0]||(e[0]=g=>s.isBeingFocused=!0),onBlur:e[1]||(e[1]=g=>s.isBeingFocused=!1)}),null,16,Lq),r.createElementVNode("div",Fq,[r.createVNode(l,{height:"20",width:"20",name:"calendar-outline"})])],2)]),_:1},8,["modelValue","min-date","max-date","attributes","color","is-range","onUpdate:modelValue"])],2)}const Hq=Q(a0,[["render",Rq],["__scopeId","data-v-fd91d96d"]]),Wq={props:{href:{type:String,required:!0},newTab:{type:Boolean,default:!1},text:{type:String,required:!0},size:{type:String,default:"md"},bold:{type:Boolean,default:!1}}},Yq=["href","target"];function jq(t,e,n,i,s,a){return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["link__container",{"link__container--sm":n.size==="sm","link__container--md":n.size==="md","link__container--lg":n.size==="lg","link__container--bold":n.bold}])},[r.createElementVNode("a",{href:n.href,target:n.newTab?"_blank":!1},[r.renderSlot(t.$slots,"default",{class:"link__text"},()=>[r.createTextVNode(r.toDisplayString(n.text),1)])],8,Yq)],2)}const Bu=Q(Wq,[["render",jq]]),Uq={};function qq(t,e,n,i,s,a){return r.openBlock(),r.createElementBlock("div",null,e[0]||(e[0]=[r.createElementVNode("div",{class:"loading-bar__container"},[r.createElementVNode("div",{class:"loading-bar"})],-1)]))}const Gq=Q(Uq,[["render",qq],["__scopeId","data-v-59f3ef96"]]),Kq=Q({__name:"LoadingIndicator",props:{modelValue:{type:Boolean,default:!1,required:!0},variant:{type:String,default:"green"},intervalTime:{type:Number,default:500}},setup(t){r.useCssVars(h=>({73610618:i.value,"0cad13a5":a.value,b6405e74:s.value}));const e=t,n=r.ref(0),i=r.computed(()=>`${n.value}%`),s=r.computed(()=>n.value===0?"none":"width 0.5s"),a=r.computed(()=>ic("smartphone")||ic("tablet")?"4px":"3px");r.watch(()=>e.modelValue,h=>{if(h){o(),l();return}d()});function o(){n.value=1}function l(){if(n.value>0&&n.value<90){if(n.value+=Math.floor(Math.random()*16+10),n.value>=90){n.value=90;return}setTimeout(l,Math.floor(Math.random()*(e.intervalTime*2-e.intervalTime+1)+e.intervalTime))}}function d(){n.value=100,setTimeout(()=>{n.value=0},600)}return(h,f)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(`loading-indicator--${t.variant}`)},null,2))}},[["__scopeId","data-v-2276da25"]]),Zq={class:"mobile-navigation__header"},Xq={class:"mobile-navigation__title"},Jq={class:"mobile-navigation__sidebar-header"},Qq={class:"mobile-navigation__sidebar-logo"},eG=["src"],tG={class:"mobile-navigation__sidebar-content"},nG={class:"mobile-navigation__sidebar-items"},iG={class:"mobile-navigation__sidebar-footer"},rG={class:"mobile-navigation__sidebar-user-text"},sG=Q({__name:"MobileNavigation",props:{variant:{type:String,default:"green"},light:{type:Boolean,default:!1},sidebarLogo:{type:String,default:""},items:{type:Array,default:()=>[]},activeItem:{type:Object,default:()=>{}},user:{type:Object,default:()=>{}},sticky:{type:Boolean,default:!1}},emits:["logout","item-click","profile-click"],setup(t,{emit:e}){const n=t,i=e,s=r.ref(n.activeItem),a=r.ref(!1),o=r.computed(()=>n.light?"light":"dark"),l=r.computed(()=>{let v=`mobile-navigation mobile-navigation--${o.value}`;return n.sticky&&(v+=" mobile-navigation--sticky"),v});r.watch(a,async(v,k)=>{v!==k&&w(v)}),r.watch(()=>n.activeItem,v=>{s.value=v});const d=()=>{a.value=!0},h=()=>{a.value=!1},f=v=>Un.isEqual(v,s.value),m=v=>{Un.isEmpty(n.activeItem)&&(s.value=v),a.value=!1,i("item-click",v)},g=({route:v,path:k})=>{const S=Un.isEmpty(v)?k:v;return S instanceof String?{path:S}:S},y=v=>g(v)?g(v).path:null,w=v=>{document.body.style.overflow=v?"hidden":"auto"};return(v,k)=>{const S=r.resolveComponent("router-link");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(l.value)},[r.createElementVNode("div",{class:r.normalizeClass(`variant-resolver--${t.variant}`)},[r.createElementVNode("div",Zq,[r.createElementVNode("div",Xq,r.toDisplayString(s.value.label??""),1),r.createElementVNode("div",{class:"mobile-navigation__menu-btn",onClick:d},[r.createVNode(Be,{name:"menu-outline"})])]),r.createElementVNode("div",{class:r.normalizeClass(["mobile-navigation__sidebar",{"mobile-navigation__sidebar--expanded":a.value}])},[r.createElementVNode("div",Jq,[r.createElementVNode("div",Qq,[r.renderSlot(v.$slots,"sidebar-logo",{},()=>[r.createElementVNode("img",{src:t.sidebarLogo},null,8,eG)],!0)]),r.createElementVNode("div",{class:"mobile-navigation__sidebar-btn",onClick:h},[r.createVNode(Be,{name:"x-outline"})])]),r.createElementVNode("div",tG,[r.createElementVNode("div",nG,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.items,E=>(r.openBlock(),r.createBlock(S,{key:E.label,to:y(E),class:r.normalizeClass(["mobile-navigation__sidebar-item",{"mobile-navigation__sidebar-item--active":f(E)}]),onClick:$=>m(E)},{default:r.withCtx(()=>[r.createVNode(Be,{name:E.icon,width:"24",height:"24"},null,8,["name"]),r.createElementVNode("span",null,r.toDisplayString(E.label),1)]),_:2},1032,["to","class","onClick"]))),128))]),r.createElementVNode("div",iG,[r.createElementVNode("div",{class:"mobile-navigation__sidebar-user-info",onClick:k[0]||(k[0]=E=>i("profile-click"))},[r.createVNode(ll,{src:t.user.picture??"",name:t.user.name??"",variant:t.variant,size:"lg"},null,8,["src","name","variant"]),r.createElementVNode("div",rG,[r.createElementVNode("p",null,r.toDisplayString(t.user.name??""),1),r.createElementVNode("p",null,r.toDisplayString(t.user.role??""),1)])]),r.createElementVNode("button",{class:"mobile-navigation__sidebar-logout",onClick:k[1]||(k[1]=E=>i("logout"))},[r.createVNode(Be,{name:"logout-outline",width:"24",height:"24"})])])])],2)],2)],2)}}},[["__scopeId","data-v-0bc86eef"]]),aG=["teal","green","blue","indigo","violet","pink","red","orange","amber"],oG={directives:{"on-click-outside":yr.directive},components:{CdsIcon:Be,CdsButton:Qi,CdsScrollable:Zc},props:{modelValue:{type:Boolean,default:!1,required:!0},title:{type:String,default:"Título"},size:{type:String,default:"md"},disableOkButton:{type:Boolean,default:!1},disableCancelButton:{type:Boolean,default:!1},noCloseOnBackdrop:{type:Boolean,default:!1},noCloseOkButton:{type:Boolean,default:!1},noCloseCancelButton:{type:Boolean,default:!1},noCloseButton:{type:Boolean,default:!1},noCancelButton:{type:Boolean,default:!1},noFooter:{type:Boolean,default:!1},noHeader:{type:Boolean,default:!1},okButtonText:{type:String,default:"Confirmar"},cancelButtonText:{type:String,default:"Cancelar"},actionButtonVariant:{type:String,default:"green",validator:t=>aG.includes(t)},scrollable:{type:Boolean,default:!1}},data(){return{innerValue:!1,tmp:""}},computed:{maxBodyHeight(){return`${window.innerHeight*.9-32*2-68-64}px`}},watch:{modelValue(t){this.innerValue=t}},mounted(){this.innerValue=this.modelValue},methods:{closeHandle(){this.innerValue=!this.innerValue,this.$emit("close",!0),this.$emit("update:modelValue",!1)},okHandle(){this.noCloseOkButton||(this.innerValue=!this.innerValue,this.$emit("update:modelValue",!1)),this.$emit("ok",!0)},cancelHandle(){this.noCloseCancelButton||(this.innerValue=!this.innerValue,this.$emit("close",!0),this.$emit("update:modelValue",!1)),this.$emit("cancel")}}},lG={key:0,class:"cds-modal__backdrop"},cG={key:0},dG={class:"cds-modal__header"},uG={key:1,class:"cds-modal__body"},hG={key:1,class:"cds-modal__footer"};function fG(t,e,n,i,s,a){const o=r.resolveComponent("cds-icon"),l=r.resolveComponent("cds-scrollable"),d=r.resolveComponent("cds-button"),h=r.resolveDirective("on-click-outside");return s.innerValue?(r.openBlock(),r.createElementBlock("div",lG,[s.innerValue?r.withDirectives((r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["cds-modal",`cds-modal--${n.size}`])},[n.noHeader?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("header",cG,[r.renderSlot(t.$slots,"header",{},()=>[r.createElementVNode("div",dG,[r.createElementVNode("h3",null,r.toDisplayString(n.title),1),n.noCloseButton?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",{key:0,class:"cds-modal__close-icon",onClick:e[0]||(e[0]=(...f)=>a.closeHandle&&a.closeHandle(...f))},[r.createVNode(o,{name:"x-outline",height:"20",width:"20",color:"#29333D"})]))])],!0)])),r.createElementVNode("section",null,[n.scrollable?(r.openBlock(),r.createBlock(l,{key:0,class:"cds-modal__body"},{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3})):(r.openBlock(),r.createElementBlock("div",uG,[r.renderSlot(t.$slots,"default",{},void 0,!0)]))]),n.noFooter?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("footer",hG,[r.renderSlot(t.$slots,"footer",{},()=>[n.noCancelButton?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(d,{key:0,text:n.cancelButtonText,secondary:"",disabled:n.disableCancelButton,onClick:e[1]||(e[1]=f=>n.disableCancelButton?!1:a.cancelHandle())},null,8,["text","disabled"])),r.createVNode(d,{class:"footer__ok-button",text:n.okButtonText,variant:n.actionButtonVariant,disabled:n.disableOkButton,onClick:e[2]||(e[2]=f=>n.disableOkButton?!1:a.okHandle())},null,8,["text","variant","disabled"])],!0)]))],2)),[[h,n.noCloseOnBackdrop?()=>{}:a.closeHandle]]):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0)}const $b=Q(oG,[["render",fG],["__scopeId","data-v-f547a4b0"]]);function o0(t){return t===0?!1:Array.isArray(t)&&t.length===0?!0:!t}function pG(t){return(...e)=>!t(...e)}function mG(t,e){return t===void 0&&(t="undefined"),t===null&&(t="null"),t===!1&&(t="false"),t.toString().toLowerCase().indexOf(e.trim())!==-1}function Ab(t,e,n,i){return e?t.filter(s=>mG(i(s,n),e)).sort((s,a)=>i(s,n).length-i(a,n).length):t}function gG(t){return t.filter(e=>!e.$isLabel)}function l0(t,e){return n=>n.reduce((i,s)=>s[t]&&s[t].length?(i.push({$groupLabel:s[e],$isLabel:!0}),i.concat(s[t])):i,[])}function yG(t,e,n,i,s){return a=>a.map(o=>{if(!o[n])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const l=Ab(o[n],t,e,s);return l.length?{[i]:o[i],[n]:l}:[]})}const Nb=(...t)=>e=>t.reduce((n,i)=>i(n),e);var bG={data(){return{search:"",isOpen:!1,preferredOpenDirection:"below",optimizedHeight:this.maxHeight}},props:{internalSearch:{type:Boolean,default:!0},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},trackBy:{type:String},label:{type:String},searchable:{type:Boolean,default:!0},clearOnSelect:{type:Boolean,default:!0},hideSelected:{type:Boolean,default:!1},placeholder:{type:String,default:"Select option"},allowEmpty:{type:Boolean,default:!0},resetAfter:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},customLabel:{type:Function,default(t,e){return o0(t)?"":e?t[e]:t}},taggable:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:"Press enter to create a tag"},tagPosition:{type:String,default:"top"},max:{type:[Number,Boolean],default:!1},id:{default:null},optionsLimit:{type:Number,default:1e3},groupValues:{type:String},groupLabel:{type:String},groupSelect:{type:Boolean,default:!1},blockKeys:{type:Array,default(){return[]}},preserveSearch:{type:Boolean,default:!1},preselectFirst:{type:Boolean,default:!1},preventAutofocus:{type:Boolean,default:!1}},mounted(){!this.multiple&&this.max&&console.warn("[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."),this.preselectFirst&&!this.internalValue.length&&this.options.length&&this.select(this.filteredOptions[0])},computed:{internalValue(){return this.modelValue||this.modelValue===0?Array.isArray(this.modelValue)?this.modelValue:[this.modelValue]:[]},filteredOptions(){const t=this.search||"",e=t.toLowerCase().trim();let n=this.options.concat();return this.internalSearch?n=this.groupValues?this.filterAndFlat(n,e,this.label):Ab(n,e,this.label,this.customLabel):n=this.groupValues?l0(this.groupValues,this.groupLabel)(n):n,n=this.hideSelected?n.filter(pG(this.isSelected)):n,this.taggable&&e.length&&!this.isExistingOption(e)&&(this.tagPosition==="bottom"?n.push({isTag:!0,label:t}):n.unshift({isTag:!0,label:t})),n.slice(0,this.optionsLimit)},valueKeys(){return this.trackBy?this.internalValue.map(t=>t[this.trackBy]):this.internalValue},optionKeys(){return(this.groupValues?this.flatAndStrip(this.options):this.options).map(e=>this.customLabel(e,this.label).toString().toLowerCase())},currentOptionLabel(){return this.multiple?this.searchable?"":this.placeholder:this.internalValue.length?this.getOptionLabel(this.internalValue[0]):this.searchable?"":this.placeholder}},watch:{internalValue:{handler(){this.resetAfter&&this.internalValue.length&&(this.search="",this.$emit("update:modelValue",this.multiple?[]:null))},deep:!0},search(){this.$emit("search-change",this.search)}},emits:["open","search-change","close","select","update:modelValue","remove","tag"],methods:{getValue(){return this.multiple?this.internalValue:this.internalValue.length===0?null:this.internalValue[0]},filterAndFlat(t,e,n){return Nb(yG(e,n,this.groupValues,this.groupLabel,this.customLabel),l0(this.groupValues,this.groupLabel))(t)},flatAndStrip(t){return Nb(l0(this.groupValues,this.groupLabel),gG)(t)},updateSearch(t){this.search=t},isExistingOption(t){return this.options?this.optionKeys.indexOf(t)>-1:!1},isSelected(t){const e=this.trackBy?t[this.trackBy]:t;return this.valueKeys.indexOf(e)>-1},isOptionDisabled(t){return!!t.$isDisabled},getOptionLabel(t){if(o0(t))return"";if(t.isTag)return t.label;if(t.$isLabel)return t.$groupLabel;const e=this.customLabel(t,this.label);return o0(e)?"":e},select(t,e){if(t.$isLabel&&this.groupSelect){this.selectGroup(t);return}if(!(this.blockKeys.indexOf(e)!==-1||this.disabled||t.$isDisabled||t.$isLabel)&&!(this.max&&this.multiple&&this.internalValue.length===this.max)&&!(e==="Tab"&&!this.pointerDirty)){if(t.isTag)this.$emit("tag",t.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(t)){e!=="Tab"&&this.removeElement(t);return}this.multiple?this.$emit("update:modelValue",this.internalValue.concat([t])):this.$emit("update:modelValue",t),this.$emit("select",t,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup(t){const e=this.options.find(n=>n[this.groupLabel]===t.$groupLabel);if(e){if(this.wholeGroupSelected(e)){this.$emit("remove",e[this.groupValues],this.id);const n=this.trackBy?e[this.groupValues].map(s=>s[this.trackBy]):e[this.groupValues],i=this.internalValue.filter(s=>n.indexOf(this.trackBy?s[this.trackBy]:s)===-1);this.$emit("update:modelValue",i)}else{let n=e[this.groupValues].filter(i=>!(this.isOptionDisabled(i)||this.isSelected(i)));this.max&&n.splice(this.max-this.internalValue.length),this.$emit("select",n,this.id),this.$emit("update:modelValue",this.internalValue.concat(n))}this.closeOnSelect&&this.deactivate()}},wholeGroupSelected(t){return t[this.groupValues].every(e=>this.isSelected(e)||this.isOptionDisabled(e))},wholeGroupDisabled(t){return t[this.groupValues].every(this.isOptionDisabled)},removeElement(t,e=!0){if(this.disabled||t.$isDisabled)return;if(!this.allowEmpty&&this.internalValue.length<=1){this.deactivate();return}const n=typeof t=="object"?this.valueKeys.indexOf(t[this.trackBy]):this.valueKeys.indexOf(t);if(this.multiple){const i=this.internalValue.slice(0,n).concat(this.internalValue.slice(n+1));this.$emit("update:modelValue",i)}else this.$emit("update:modelValue",null);this.$emit("remove",t,this.id),this.closeOnSelect&&e&&this.deactivate()},removeLastElement(){this.blockKeys.indexOf("Delete")===-1&&this.search.length===0&&Array.isArray(this.internalValue)&&this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1)},activate(){this.isOpen||this.disabled||(this.adjustPosition(),this.groupValues&&this.pointer===0&&this.filteredOptions.length&&(this.pointer=1),this.isOpen=!0,this.searchable?(this.preserveSearch||(this.search=""),this.preventAutofocus||this.$nextTick(()=>this.$refs.search&&this.$refs.search.focus())):this.preventAutofocus||typeof this.$el<"u"&&this.$el.focus(),this.$emit("open",this.id))},deactivate(){this.isOpen&&(this.isOpen=!1,this.searchable?this.$refs.search!==null&&typeof this.$refs.search<"u"&&this.$refs.search.blur():typeof this.$el<"u"&&this.$el.blur(),this.preserveSearch||(this.search=""),this.$emit("close",this.getValue(),this.id))},toggle(){this.isOpen?this.deactivate():this.activate()},adjustPosition(){if(typeof window>"u")return;const t=this.$el.getBoundingClientRect().top,e=window.innerHeight-this.$el.getBoundingClientRect().bottom;e>this.maxHeight||e>t||this.openDirection==="below"||this.openDirection==="bottom"?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(e-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(t-40,this.maxHeight))}}},_G={data(){return{pointer:0,pointerDirty:!1}},props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40}},computed:{pointerPosition(){return this.pointer*this.optionHeight},visibleElements(){return this.optimizedHeight/this.optionHeight}},watch:{filteredOptions(){this.pointerAdjust()},isOpen(){this.pointerDirty=!1},pointer(){this.$refs.search&&this.$refs.search.setAttribute("aria-activedescendant",this.id+"-"+this.pointer.toString())}},methods:{optionHighlight(t,e){return{"multiselect__option--highlight":t===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(e)}},groupHighlight(t,e){if(!this.groupSelect)return["multiselect__option--disabled",{"multiselect__option--group":e.$isLabel}];const n=this.options.find(i=>i[this.groupLabel]===e.$groupLabel);return n&&!this.wholeGroupDisabled(n)?["multiselect__option--group",{"multiselect__option--highlight":t===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(n)}]:"multiselect__option--disabled"},addPointerElement({key:t}="Enter"){this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],t),this.pointerReset()},pointerForward(){this.pointer<this.filteredOptions.length-1&&(this.pointer++,this.$refs.list.scrollTop<=this.pointerPosition-(this.visibleElements-1)*this.optionHeight&&(this.$refs.list.scrollTop=this.pointerPosition-(this.visibleElements-1)*this.optionHeight),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()),this.pointerDirty=!0},pointerBackward(){this.pointer>0?(this.pointer--,this.$refs.list.scrollTop>=this.pointerPosition&&(this.$refs.list.scrollTop=this.pointerPosition),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerBackward()):this.filteredOptions[this.pointer]&&this.filteredOptions[0].$isLabel&&!this.groupSelect&&this.pointerForward(),this.pointerDirty=!0},pointerReset(){this.closeOnSelect&&(this.pointer=0,this.$refs.list&&(this.$refs.list.scrollTop=0))},pointerAdjust(){this.pointer>=this.filteredOptions.length-1&&(this.pointer=this.filteredOptions.length?this.filteredOptions.length-1:0),this.filteredOptions.length>0&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()},pointerSet(t){this.pointer=t,this.pointerDirty=!0}}},zb={name:"vue-multiselect",mixins:[bG,_G],compatConfig:{MODE:3,ATTR_ENUMERATED_COERCION:!1},props:{name:{type:String,default:""},modelValue:{type:null,default(){return[]}},selectLabel:{type:String,default:"Press enter to select"},selectGroupLabel:{type:String,default:"Press enter to select group"},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:t=>`and ${t} more`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0}},computed:{hasOptionGroup(){return this.groupValues&&this.groupLabel&&this.groupSelect},isSingleLabelVisible(){return(this.singleValue||this.singleValue===0)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible(){return!this.internalValue.length&&(!this.searchable||!this.isOpen)},visibleValues(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue(){return this.internalValue[0]},deselectLabelText(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText(){return this.showLabels?this.selectLabel:""},selectGroupLabelText(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText(){return this.showLabels?this.selectedLabel:""},inputStyle(){return this.searchable||this.multiple&&this.modelValue&&this.modelValue.length?this.isOpen?{width:"100%"}:{width:"0",position:"absolute",padding:"0"}:""},contentStyle(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove(){return this.openDirection==="above"||this.openDirection==="top"?!0:this.openDirection==="below"||this.openDirection==="bottom"?!1:this.preferredOpenDirection==="above"},showSearchInput(){return this.searchable&&(this.hasSingleSelectedSlot&&(this.visibleSingleValue||this.visibleSingleValue===0)?this.isOpen:!0)}}};const vG={ref:"tags",class:"multiselect__tags"},wG={class:"multiselect__tags-wrap"},kG={class:"multiselect__spinner"},CG={key:0},xG={class:"multiselect__option"},SG={class:"multiselect__option"},MG=r.createTextVNode("No elements found. Consider changing the search query."),OG={class:"multiselect__option"},DG=r.createTextVNode("List is empty.");function EG(t,e,n,i,s,a){return r.openBlock(),r.createBlock("div",{tabindex:t.searchable?-1:n.tabindex,class:[{"multiselect--active":t.isOpen,"multiselect--disabled":n.disabled,"multiselect--above":a.isAbove,"multiselect--has-options-group":a.hasOptionGroup},"multiselect"],onFocus:e[14]||(e[14]=o=>t.activate()),onBlur:e[15]||(e[15]=o=>t.searchable?!1:t.deactivate()),onKeydown:[e[16]||(e[16]=r.withKeys(r.withModifiers(o=>t.pointerForward(),["self","prevent"]),["down"])),e[17]||(e[17]=r.withKeys(r.withModifiers(o=>t.pointerBackward(),["self","prevent"]),["up"]))],onKeypress:e[18]||(e[18]=r.withKeys(r.withModifiers(o=>t.addPointerElement(o),["stop","self"]),["enter","tab"])),onKeyup:e[19]||(e[19]=r.withKeys(o=>t.deactivate(),["esc"])),role:"combobox","aria-owns":"listbox-"+t.id},[r.renderSlot(t.$slots,"caret",{toggle:t.toggle},()=>[r.createVNode("div",{onMousedown:e[1]||(e[1]=r.withModifiers(o=>t.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),r.renderSlot(t.$slots,"clear",{search:t.search}),r.createVNode("div",vG,[r.renderSlot(t.$slots,"selection",{search:t.search,remove:t.removeElement,values:a.visibleValues,isOpen:t.isOpen},()=>[r.withDirectives(r.createVNode("div",wG,[(r.openBlock(!0),r.createBlock(r.Fragment,null,r.renderList(a.visibleValues,(o,l)=>r.renderSlot(t.$slots,"tag",{option:o,search:t.search,remove:t.removeElement},()=>[(r.openBlock(),r.createBlock("span",{class:"multiselect__tag",key:l},[r.createVNode("span",{textContent:r.toDisplayString(t.getOptionLabel(o))},null,8,["textContent"]),r.createVNode("i",{tabindex:"1",onKeypress:r.withKeys(r.withModifiers(d=>t.removeElement(o),["prevent"]),["enter"]),onMousedown:r.withModifiers(d=>t.removeElement(o),["prevent"]),class:"multiselect__tag-icon"},null,40,["onKeypress","onMousedown"])]))])),256))],512),[[r.vShow,a.visibleValues.length>0]]),t.internalValue&&t.internalValue.length>n.limit?r.renderSlot(t.$slots,"limit",{key:0},()=>[r.createVNode("strong",{class:"multiselect__strong",textContent:r.toDisplayString(n.limitText(t.internalValue.length-n.limit))},null,8,["textContent"])]):r.createCommentVNode("v-if",!0)]),r.createVNode(r.Transition,{name:"multiselect__loading"},{default:r.withCtx(()=>[r.renderSlot(t.$slots,"loading",{},()=>[r.withDirectives(r.createVNode("div",kG,null,512),[[r.vShow,n.loading]])])]),_:3}),t.searchable?(r.openBlock(),r.createBlock("input",{key:0,ref:"search",name:n.name,id:t.id,type:"text",autocomplete:"off",spellcheck:!1,placeholder:t.placeholder,style:a.inputStyle,value:t.search,disabled:n.disabled,tabindex:n.tabindex,onInput:e[2]||(e[2]=o=>t.updateSearch(o.target.value)),onFocus:e[3]||(e[3]=r.withModifiers(o=>t.activate(),["prevent"])),onBlur:e[4]||(e[4]=r.withModifiers(o=>t.deactivate(),["prevent"])),onKeyup:e[5]||(e[5]=r.withKeys(o=>t.deactivate(),["esc"])),onKeydown:[e[6]||(e[6]=r.withKeys(r.withModifiers(o=>t.pointerForward(),["prevent"]),["down"])),e[7]||(e[7]=r.withKeys(r.withModifiers(o=>t.pointerBackward(),["prevent"]),["up"])),e[9]||(e[9]=r.withKeys(r.withModifiers(o=>t.removeLastElement(),["stop"]),["delete"]))],onKeypress:e[8]||(e[8]=r.withKeys(r.withModifiers(o=>t.addPointerElement(o),["prevent","stop","self"]),["enter"])),class:"multiselect__input","aria-controls":"listbox-"+t.id},null,44,["name","id","placeholder","value","disabled","tabindex","aria-controls"])):r.createCommentVNode("v-if",!0),a.isSingleLabelVisible?(r.openBlock(),r.createBlock("span",{key:1,class:"multiselect__single",onMousedown:e[10]||(e[10]=r.withModifiers((...o)=>t.toggle&&t.toggle(...o),["prevent"]))},[r.renderSlot(t.$slots,"singleLabel",{option:a.singleValue},()=>[r.createTextVNode(r.toDisplayString(t.currentOptionLabel),1)])],32)):r.createCommentVNode("v-if",!0),a.isPlaceholderVisible?(r.openBlock(),r.createBlock("span",{key:2,class:"multiselect__placeholder",onMousedown:e[11]||(e[11]=r.withModifiers((...o)=>t.toggle&&t.toggle(...o),["prevent"]))},[r.renderSlot(t.$slots,"placeholder",{},()=>[r.createTextVNode(r.toDisplayString(t.placeholder),1)])],32)):r.createCommentVNode("v-if",!0)],512),r.createVNode(r.Transition,{name:"multiselect"},{default:r.withCtx(()=>[r.withDirectives(r.createVNode("div",{class:"multiselect__content-wrapper",onFocus:e[12]||(e[12]=(...o)=>t.activate&&t.activate(...o)),tabindex:"-1",onMousedown:e[13]||(e[13]=r.withModifiers(()=>{},["prevent"])),style:{maxHeight:t.optimizedHeight+"px"},ref:"list"},[r.createVNode("ul",{class:"multiselect__content",style:a.contentStyle,role:"listbox",id:"listbox-"+t.id},[r.renderSlot(t.$slots,"beforeList"),t.multiple&&t.max===t.internalValue.length?(r.openBlock(),r.createBlock("li",CG,[r.createVNode("span",xG,[r.renderSlot(t.$slots,"maxElements",{},()=>[r.createTextVNode("Maximum of "+r.toDisplayString(t.max)+" options selected. First remove a selected option to select another.",1)])])])):r.createCommentVNode("v-if",!0),!t.max||t.internalValue.length<t.max?(r.openBlock(!0),r.createBlock(r.Fragment,{key:1},r.renderList(t.filteredOptions,(o,l)=>(r.openBlock(),r.createBlock("li",{class:"multiselect__element",key:l,id:t.id+"-"+l,role:o&&(o.$isLabel||o.$isDisabled)?null:"option"},[o&&(o.$isLabel||o.$isDisabled)?r.createCommentVNode("v-if",!0):(r.openBlock(),r.createBlock("span",{key:0,class:[t.optionHighlight(l,o),"multiselect__option"],onClick:r.withModifiers(d=>t.select(o),["stop"]),onMouseenter:r.withModifiers(d=>t.pointerSet(l),["self"]),"data-select":o&&o.isTag?t.tagPlaceholder:a.selectLabelText,"data-selected":a.selectedLabelText,"data-deselect":a.deselectLabelText},[r.renderSlot(t.$slots,"option",{option:o,search:t.search,index:l},()=>[r.createVNode("span",null,r.toDisplayString(t.getOptionLabel(o)),1)])],42,["onClick","onMouseenter","data-select","data-selected","data-deselect"])),o&&(o.$isLabel||o.$isDisabled)?(r.openBlock(),r.createBlock("span",{key:1,"data-select":t.groupSelect&&a.selectGroupLabelText,"data-deselect":t.groupSelect&&a.deselectGroupLabelText,class:[t.groupHighlight(l,o),"multiselect__option"],onMouseenter:r.withModifiers(d=>t.groupSelect&&t.pointerSet(l),["self"]),onMousedown:r.withModifiers(d=>t.selectGroup(o),["prevent"])},[r.renderSlot(t.$slots,"option",{option:o,search:t.search,index:l},()=>[r.createVNode("span",null,r.toDisplayString(t.getOptionLabel(o)),1)])],42,["data-select","data-deselect","onMouseenter","onMousedown"])):r.createCommentVNode("v-if",!0)],8,["id","role"]))),128)):r.createCommentVNode("v-if",!0),r.withDirectives(r.createVNode("li",null,[r.createVNode("span",SG,[r.renderSlot(t.$slots,"noResult",{search:t.search},()=>[MG])])],512),[[r.vShow,n.showNoResults&&t.filteredOptions.length===0&&t.search&&!n.loading]]),r.withDirectives(r.createVNode("li",null,[r.createVNode("span",OG,[r.renderSlot(t.$slots,"noOptions",{},()=>[DG])])],512),[[r.vShow,n.showNoOptions&&(t.options.length===0||a.hasOptionGroup===!0&&t.filteredOptions.length===0)&&!t.search&&!n.loading]]),r.renderSlot(t.$slots,"afterList")],12,["id"])],36),[[r.vShow,t.isOpen]])]),_:3})],42,["tabindex","aria-owns"])}zb.render=EG;const mo=0,go=1,Vu=t=>t===void 0?{}:JSON.parse(JSON.stringify(t)),c0={components:{Multiselect:zb,CdsDivider:al,CdsCheckbox:tu,CdsSpacer:Xd},props:{modelValue:{type:Array,required:!0},label:{type:String,default:"text"},variant:{type:String,default:"green"},trackBy:{type:String,default:"value"},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},errorMessage:{type:String,default:"Valor inválido"},state:{type:String,default:"default"},options:{type:Array,required:!0,default:()=>[]},optionsField:{type:String,default:"value",required:!1},hideSelectAll:{type:Boolean,default:!1},mobile:{type:Boolean,default:!1}},data(){return{selectedValue:this.$attrs.modelValue||[],internalOptions:Vu(this.options),groupValues:null,groupLabel:null,selectAllValue:!1,queryString:"",indeterminate:!1,sassColorVariables:Yn,uniqueKey:er()}},computed:{hasSlots(){return!!Object.keys(this.$slots).length},errorState(){return this.state==="invalid"},selectedFancyMessage(){return t=>t===1?this.selectedValue[0][this.optionsField]:`${t} opções selecionadas`},selectAllFancyMessage(){return this.hasSelectedValues?"Desfazer seleção":"Selecionar todos"},hasSelectedValues(){return this.selectedValue.length>0},isAllItemsSelected(){return this.selectedValue.length===this.options.length},computedPlaceholder(){return this.$attrs.placeholder?this.$attrs.placeholder:"Selecione uma ou mais opções"},isGroupMode(){return this.internalOptions[mo]&&this.internalOptions[mo].$status||this.internalOptions[go]&&this.internalOptions[go].$status},attrs(){const{label:t,trackBy:e,options:n,...i}=this.$attrs;return i},inputBackgroundColor(){return this.disabled?this.sassColorVariables.n20:this.sassColorVariables.n0},resolveMultiselectHeight(){return this.mobile?"48px":"40px"},resolveMultiselectTop(){return this.mobile?"6px":"5px"}},watch:{selectedValue(t){const e=Vu(t);e.forEach(n=>delete n.isSelected),this.indeterminate=t.length>0&&t.length<this.options.length,this.$emit("input",e),this.$emit("update:modelValue",e)},isAllItemsSelected(t){if(!t&&this.selectAllValue){this.selectAllValue=!1;return}t&&!this.selectAllValue&&(this.selectAllValue=!0)},indeterminate(t){if(this.hideSelectAll)return;const e=document.getElementById(`select-all-input-id-${this.uniqueKey}`);e.indeterminate=t}},mounted(){this.modelValue===null||this.modelValue.length===0||(this.selectedValue=this.modelValue,this.updateRenderOptions(),this.indeterminate=this.hasSelectedValues&&this.selectedValue.length<this.options.length)},methods:{unselectItem(t){this.handleSelectItem(t),this.$emit("remove",t)},selectItem(t){this.handleSelectItem(t),this.$emit("select",t)},handleSelectItem(t){this.isGroupMode?(this.internalOptions[mo].options.forEach(e=>{e[this.optionsField]===t[this.optionsField]&&(e.isSelected=!e.isSelected)}),this.internalOptions[go].options.forEach(e=>{e[this.optionsField]===t[this.optionsField]&&(e.isSelected=!e.isSelected)})):this.internalOptions.forEach(e=>{e[this.optionsField]===t[this.optionsField]&&(e.isSelected=!e.isSelected)})},toggleSelectAll(){this.selectAllValue=!this.hasSelectedValues,this.selectAllValue?this.selectedValue=this.options:this.selectedValue=[],this.$nextTick().then(()=>{this.isGroupMode?(this.internalOptions[mo].options=this.internalOptions[mo].options.map(t=>({...t,isSelected:this.selectAllValue})),this.internalOptions[go].options=this.internalOptions[go].options.map(t=>({...t,isSelected:this.selectAllValue}))):this.internalOptions=this.internalOptions.map(t=>({...t,isSelected:this.selectAllValue}))})},addItemViaCustomCheckbox(t){t.isSelected=!t.isSelected,this.selectedValue=[...this.selectedValue,t]},handleClose(){this.updateRenderOptions(),this.setContentWrapperScrollToTop(),this.$emit("close")},updateRenderOptions(){if(!this.hasSelectedValues){this.internalOptions=Vu(this.options.map(e=>({...e,isSelected:!1}))),this.groupValues=null,this.groupLabel=null;return}this.selectedValue.forEach(e=>{e.isSelected=!0});let t=Vu(this.options);t=t.map(e=>(this.selectedValue.some(i=>i[this.optionsField]===e[this.optionsField])?e.isSelected=!0:e.isSelected=!1,e)),this.internalOptions=[{$status:"Selecionados",options:[]},{$status:"Não selecionados",options:[]}],this.internalOptions[mo].options=this.selectedValue,this.internalOptions[go].options=t.filter(e=>!e.isSelected),this.groupValues="options",this.groupLabel="$status"},handleSearchChange(t){this.queryString=t},setContentWrapperScrollToTop(){document.querySelector(`span[data-cds-multiselect-identifier='${this.uniqueKey}']`).getElementsByClassName("multiselect__content-wrapper")[0].scrollTo(0,0)}}},Pb=()=>{r.useCssVars(t=>({c756d324:t.inputBackgroundColor,"1ad913b3":t.resolveMultiselectHeight,"4bf72a49":t.resolveMultiselectTop}))},Lb=c0.setup;c0.setup=Lb?(t,e)=>(Pb(),Lb(t,e)):Pb;const BG=["data-cds-multiselect-identifier"],VG={key:0},TG=["for"],IG={key:0,class:"label__required-indicator"},$G={key:1,class:"cds-multiselect__grouped-divider"},AG={key:0,class:"cds-multiselect__group-label"},NG={key:1,class:"cds-multiselect__option"},zG={class:"option__checkbox"},PG=["id","onUpdate:modelValue","name"],LG=["id","for","onClick"],FG={key:0,class:"multiselect__single"},RG={key:1},HG={key:0,class:"clustered-multiselect__error-message"};function WG(t,e,n,i,s,a){const o=r.resolveComponent("cds-checkbox"),l=r.resolveComponent("cds-spacer"),d=r.resolveComponent("cds-divider"),h=r.resolveComponent("multiselect",!0);return r.openBlock(),r.createElementBlock("span",{class:"cds-multiselect","data-cds-multiselect-identifier":s.uniqueKey},[r.createElementVNode("span",null,[a.hasSlots?(r.openBlock(),r.createElementBlock("span",VG,[r.renderSlot(t.$slots,"label")])):(r.openBlock(),r.createElementBlock("label",{key:1,class:r.normalizeClass(n.mobile?"clustered-multiselect__mobile-label":"clustered-multiselect__label")},[r.createElementVNode("div",{class:"label__content",for:`clustered-multiselect-${s.uniqueKey}`},[r.createElementVNode("span",null,r.toDisplayString(n.label),1),n.required?(r.openBlock(),r.createElementBlock("span",IG," * ")):r.createCommentVNode("",!0)],8,TG)],2))]),r.createVNode(h,r.mergeProps({id:`clustered-multiselect-${s.uniqueKey}`,ref:"cds-multiselect"},a.attrs,{modelValue:s.selectedValue,"onUpdate:modelValue":e[2]||(e[2]=f=>s.selectedValue=f),options:s.internalOptions,label:n.optionsField,"track-by":n.trackBy,multiple:"","group-values":s.groupValues,"group-label":s.groupLabel,"close-on-select":!1,"clear-on-select":!1,"select-label":"","deselect-label":"","selected-label":"",disabled:n.disabled,placeholder:a.computedPlaceholder,"block-keys":["Delete","Enter"],onClose:a.handleClose,onSelect:a.selectItem,onRemove:a.unselectItem,onSearchChange:a.handleSearchChange}),{beforeList:r.withCtx(()=>[r.withDirectives(r.createElementVNode("div",null,[n.hideSelectAll?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",{key:0,class:"cds-multiselect__option multiselect__option",onClick:e[1]||(e[1]=(...f)=>a.toggleSelectAll&&a.toggleSelectAll(...f))},[r.createVNode(l,{"margin-left":"2"},{default:r.withCtx(()=>[r.createVNode(o,{id:`select-all-input-id-${s.uniqueKey}`,modelValue:s.selectAllValue,"onUpdate:modelValue":e[0]||(e[0]=f=>s.selectAllValue=f),label:a.selectAllFancyMessage,indeterminate:s.indeterminate,variant:n.variant},null,8,["id","modelValue","label","indeterminate","variant"])]),_:1})])),a.isGroupMode?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",$G,[r.createVNode(d,{dimmed:""})]))],512),[[r.vShow,!s.queryString&&n.options.length]])]),option:r.withCtx(({option:f})=>[f.$isLabel?(r.openBlock(),r.createElementBlock("div",AG,[r.createVNode(d,{text:f.$groupLabel,inline:"",dimmed:""},null,8,["text"])])):(r.openBlock(),r.createElementBlock("div",NG,[r.createElementVNode("div",zG,[r.withDirectives(r.createElementVNode("input",{id:`input-${f[n.optionsField]}-${s.uniqueKey}`,"onUpdate:modelValue":m=>f.isSelected=m,type:"checkbox",name:`input-${f[n.optionsField]}-${s.uniqueKey}`,value:!0},null,8,PG),[[r.vModelCheckbox,f.isSelected]]),r.createElementVNode("label",{id:`checkbox-${f[n.optionsField]}`,for:`input-${f[n.optionsField]}-${s.uniqueKey}`,class:r.normalizeClass(f.isSelected?`option__checkbox--${n.variant}`:""),onClick:m=>a.addItemViaCustomCheckbox(f)},null,10,LG)]),r.createTextVNode(" "+r.toDisplayString(f[n.optionsField]),1)]))]),selection:r.withCtx(({values:f,isOpen:m})=>[f.length&&!m?(r.openBlock(),r.createElementBlock("span",FG,r.toDisplayString(a.selectedFancyMessage(f.length)),1)):(r.openBlock(),r.createElementBlock("span",RG))]),noResult:r.withCtx(()=>[e[3]||(e[3]=r.createTextVNode(' Nenhum resultado encontrado para: "')),r.createElementVNode("strong",null,r.toDisplayString(s.queryString),1),e[4]||(e[4]=r.createTextVNode('" '))]),noOptions:r.withCtx(()=>e[5]||(e[5]=[r.createTextVNode(" Não há nenhuma opção para ser exibida. ")])),_:1},16,["id","modelValue","options","label","track-by","group-values","group-label","disabled","placeholder","onClose","onSelect","onRemove","onSearchChange"]),a.errorState&&!n.disabled?(r.openBlock(),r.createElementBlock("div",HG,r.toDisplayString(n.errorMessage),1)):r.createCommentVNode("",!0)],8,BG)}const YG=Q(c0,[["render",WG]]),jG={props:{items:{type:Array,default:()=>[],required:!0,validator:t=>!t.filter(n=>{const i=tn(n.path)&&tn(n.route),s=tn(n.items)||n.items.filter(a=>tn(a.path)&&tn(a.route)).length;return tn(n.label)||s&&i}).length},activeItem:{type:Object,default:()=>({}),required:!0},variant:{type:String,default:"green",validator:t=>sr.includes(t)}},data(){return{internalActiveItem:this.activeItem,colorOptions:sr}},computed:{activeBorderStyle(){return{"--indicatorColor":this.colorHexCode(this.variant)}}},watch:{items:{handler(t){const e=t.filter(n=>n.name===this.activeItem.name);[this.internalActiveItem]=e.length?e:t},immediate:!0}},mounted(){this.internalActiveItem=this.activeItem},methods:{colorHexCode:Za,handleClick(t,e){this.internalActiveItem=e,this.$emit("navbar-click",this.internalActiveItem)},isActive(t){return fo(this.internalActiveItem,t)},resolveRoute({route:t,path:e}){const n=tn(t)?e:t;return n instanceof String?{path:n}:n},routerPushTo(t){return this.resolveRoute(t)?this.resolveRoute(t).path:null},indicatorClass(t){return this.isActive(t)?`item__indicator--active--${this.variant}`:""}}},UG={id:"nav-bar"};function qG(t,e,n,i,s,a){const o=r.resolveComponent("router-link");return r.openBlock(),r.createElementBlock("div",UG,[r.createElementVNode("ul",{class:r.normalizeClass({"nav-bar__container":n.items.length>=1})},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.items,(l,d)=>(r.openBlock(),r.createElementBlock("li",{key:`${d}-${l.name}-item`,role:"presentation",class:r.normalizeClass(["nav-bar__item-container",a.isActive(l)?"nav-bar__item-container--active":"nav-bar__item-container--inactive"])},[r.createVNode(o,{to:a.routerPushTo(l),class:r.normalizeClass(["nav-bar__item",a.isActive(l)?"nav-bar__item--active":"nav-bar__item--inactive"]),onClick:h=>a.handleClick(h,l)},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(l.label),1)]),_:2},1032,["to","class","onClick"]),r.createElementVNode("div",{class:r.normalizeClass(a.indicatorClass(l)),style:r.normalizeStyle(a.activeBorderStyle)},null,6)],2))),128))],2)])}const GG=Q(jG,[["render",qG]]);var KG=Object.defineProperty,ZG=(t,e,n)=>e in t?KG(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Fb=(t,e,n)=>(ZG(t,typeof e!="symbol"?e+"":e,n),n);const Tu={debug:!1,masked:!1,prefix:"",suffix:"",thousands:",",decimal:".",precision:2,disableNegative:!1,disabled:!1,min:null,max:null,allowBlank:!1,minimumNumberOfCharacters:0,modelModifiers:{number:!1},shouldRound:!0,focusOnRight:!1},Rb=["+","-"],Hb=["decimal","thousands","prefix","suffix"];function ra(t){return Math.max(0,Math.min(t,1e3))}function Iu(t,e){return t=t.padStart(e+1,"0"),e===0?t:`${t.slice(0,-e)}.${t.slice(-e)}`}function Wb(t){return t=t?t.toString():"",t.replace(/\D+/g,"")||"0"}function XG(t,e){return t.replace(/(\d)(?=(?:\d{3})+\b)/gm,`$1${e}`)}function JG(t,e,n){return e?t+n+e:t}function QG(t,e){return Rb.includes(t)?(console.warn(`v-money3 "${e}" property don't accept "${t}" as a value.`),!1):/\d/g.test(t)?(console.warn(`v-money3 "${e}" property don't accept "${t}" (any number) as a value.`),!1):!0}function eK(t){for(const e of Hb)if(!QG(t[e],e))return!1;return!0}function Yb(t){for(const e of Hb){t[e]=t[e].replace(/\d+/g,"");for(const n of Rb)t[e]=t[e].replaceAll(n,"")}return t}function jb(t){const e=t.length,n=t.indexOf(".");return e-(n+1)}function Ub(t){return t.replace(/^(-?)0+(?!\.)(.+)/,"$1$2")}function qb(t){return/^-?[\d]+$/g.test(t)}function Gb(t){return/^-?[\d]+(\.[\d]+)$/g.test(t)}function Kb(t,e,n){return e>t.length-1?t:t.substring(0,e)+n+t.substring(e+1)}function Zb(t,e){const n=e-jb(t);if(n>=0)return t;let i=t.slice(0,n);const s=t.slice(n);if(i.charAt(i.length-1)==="."&&(i=i.slice(0,-1)),parseInt(s.charAt(0),10)>=5){for(let a=i.length-1;a>=0;a-=1){const o=i.charAt(a);if(o!=="."&&o!=="-"){const l=parseInt(o,10)+1;if(l<10)return Kb(i,a,l);i=Kb(i,a,"0")}}return`1${i}`}return i}function Xb(t,e){const n=()=>{t.setSelectionRange(e,e)};t===document.activeElement&&(n(),setTimeout(n,1))}function Jb(t){return new Event(t,{bubbles:!0,cancelable:!1})}function et({debug:t=!1},...e){t&&console.log(...e)}class $u{constructor(e){Fb(this,"number",0n),Fb(this,"decimal",0),this.setNumber(e)}getNumber(){return this.number}getDecimalPrecision(){return this.decimal}setNumber(e){this.decimal=0,typeof e=="bigint"?this.number=e:typeof e=="number"?this.setupString(e.toString()):this.setupString(e)}toFixed(e=0,n=!0){let i=this.toString();const s=e-this.getDecimalPrecision();return s>0?(i.includes(".")||(i+="."),i.padEnd(i.length+s,"0")):s<0?n?Zb(i,e):i.slice(0,s):i}toString(){let e=this.number.toString();if(this.decimal){let n=!1;return e.charAt(0)==="-"&&(e=e.substring(1),n=!0),e=e.padStart(e.length+this.decimal,"0"),e=`${e.slice(0,-this.decimal)}.${e.slice(-this.decimal)}`,e=Ub(e),(n?"-":"")+e}return e}lessThan(e){const[n,i]=this.adjustComparisonNumbers(e);return n<i}biggerThan(e){const[n,i]=this.adjustComparisonNumbers(e);return n>i}isEqual(e){const[n,i]=this.adjustComparisonNumbers(e);return n===i}setupString(e){if(e=Ub(e),qb(e))this.number=BigInt(e);else if(Gb(e))this.decimal=jb(e),this.number=BigInt(e.replace(".",""));else throw new Error(`BigNumber has received and invalid format for the constructor: ${e}`)}adjustComparisonNumbers(e){let n;e.constructor.name!=="BigNumber"?n=new $u(e):n=e;const i=this.getDecimalPrecision()-n.getDecimalPrecision();let s=this.getNumber(),a=n.getNumber();return i>0?a=n.getNumber()*10n**BigInt(i):i<0&&(s=this.getNumber()*10n**BigInt(i*-1)),[s,a]}}function tK(t,e=Tu,n=""){if(et(e,"utils format() - caller",n),et(e,"utils format() - input1",t),t==null)t="";else if(typeof t=="number")e.shouldRound?t=t.toFixed(ra(e.precision)):t=t.toFixed(ra(e.precision)+1).slice(0,-1);else if(e.modelModifiers&&e.modelModifiers.number&&qb(t))t=Number(t).toFixed(ra(e.precision));else if(!e.disableNegative&&t==="-")return t;et(e,"utils format() - input2",t);const i=e.disableNegative?"":t.indexOf("-")>=0?"-":"";let s=t.replace(e.prefix,"").replace(e.suffix,"");et(e,"utils format() - filtered",s),!e.precision&&e.thousands!=="."&&Gb(s)&&(s=Zb(s,0),et(e,"utils format() - !opt.precision && isValidFloat()",s));const a=Wb(s);et(e,"utils format() - numbers",a),et(e,"utils format() - numbersToCurrency",i+Iu(a,e.precision));const o=new $u(i+Iu(a,e.precision));et(e,"utils format() - bigNumber1",o.toString()),e.max&&o.biggerThan(e.max)&&o.setNumber(e.max),e.min&&o.lessThan(e.min)&&o.setNumber(e.min);const l=o.toFixed(ra(e.precision),e.shouldRound);if(et(e,"utils format() - bigNumber2",o.toFixed(ra(e.precision))),/^0(\.0+)?$/g.test(l)&&e.allowBlank)return"";let[d,h]=l.split(".");const f=h!==void 0?h.length:0;d=d.padStart(e.minimumNumberOfCharacters-f,"0"),d=XG(d,e.thousands);const m=e.prefix+JG(d,h,e.decimal)+e.suffix;return et(e,"utils format() - output",m),m}function Qb(t,e=Tu,n=""){if(et(e,"utils unformat() - caller",n),et(e,"utils unformat() - input",t),!e.disableNegative&&t==="-")return et(e,"utils unformat() - return netagive symbol",t),t;const i=e.disableNegative?"":t.indexOf("-")>=0?"-":"",s=t.replace(e.prefix,"").replace(e.suffix,"");et(e,"utils unformat() - filtered",s);const a=Wb(s);et(e,"utils unformat() - numbers",a);const o=new $u(i+Iu(a,e.precision));et(e,"utils unformat() - bigNumber1",a.toString()),e.max&&o.biggerThan(e.max)&&o.setNumber(e.max),e.min&&o.lessThan(e.min)&&o.setNumber(e.min);let l=o.toFixed(ra(e.precision),e.shouldRound);return e.modelModifiers&&e.modelModifiers.number&&(l=parseFloat(l)),et(e,"utils unformat() - output",l),l}const d0=(t,e,n)=>{if(et(e,"directive setValue() - caller",n),!eK(e)){et(e,"directive setValue() - validateRestrictedOptions() return false. Stopping here...",t.value);return}let i=t.value.length-(t.selectionEnd||0);t.value=tK(t.value,e,n),i=Math.max(i,e.suffix.length),i=t.value.length-i,i=Math.max(i,e.prefix.length),Xb(t,i),t.dispatchEvent(Jb("change"))},e_=(t,e)=>{const n=t.currentTarget,i=t.code==="Backspace"||t.code==="Delete",s=n.value.length-(n.selectionEnd||0)===0;if(et(e,"directive onkeydown() - el.value",n.value),et(e,"directive onkeydown() - backspacePressed",i),et(e,"directive onkeydown() - isAtEndPosition",s),e.allowBlank&&i&&s&&Qb(n.value,e,"directive onkeydown allowBlank")===0&&(et(e,'directive onkeydown() - set el.value = ""',n.value),n.value="",n.dispatchEvent(Jb("change"))),et(e,"directive onkeydown() - e.key",t.key),t.key==="+"){et(e,"directive onkeydown() - unformat el.value",n.value);let a=Qb(n.value,e,"directive onkeydown +");typeof a=="string"&&(a=parseFloat(a)),a<0&&(n.value=String(a*-1))}},t_=(t,e)=>{const n=t.currentTarget;et(e,"directive oninput()",n.value),/^[1-9]$/.test(n.value)&&(n.value=Iu(n.value,ra(e.precision)),et(e,"directive oninput() - is 1-9",n.value)),d0(n,e,"directive oninput")},n_=(t,e)=>{const n=t.currentTarget;et(e,"directive onFocus()",n.value),e.focusOnRight&&Xb(n,n.value.length-e.suffix.length)},nK={mounted(t,e){if(!e.value)return;const n=Yb({...Tu,...e.value});if(et(n,"directive mounted() - opt",n),t.tagName.toLocaleUpperCase()!=="INPUT"){const i=t.getElementsByTagName("input");i.length!==1||(t=i[0])}t.onkeydown=i=>{e_(i,n)},t.oninput=i=>{t_(i,n)},t.onfocus=i=>{n_(i,n)},et(n,"directive mounted() - el.value",t.value),d0(t,n,"directive mounted")},updated(t,e){if(!e.value)return;const n=Yb({...Tu,...e.value});t.onkeydown=i=>{e_(i,n)},t.oninput=i=>{t_(i,n)},t.onfocus=i=>{n_(i,n)},et(n,"directive updated() - el.value",t.value),et(n,"directive updated() - opt",n),d0(t,n,"directive updated")},beforeUnmount(t){t.onkeydown=null,t.oninput=null,t.onfocus=null}},iK={"#":{pattern:/\d/},X:{pattern:/[0-9a-z]/i},S:{pattern:/[a-z]/i},A:{pattern:/[a-z]/i,transform:t=>t.toLocaleUpperCase()},a:{pattern:/[a-z]/i,transform:t=>t.toLocaleLowerCase()},"\\":{escape:!0},"?":{optional:!0},"*":{repeat:!0},"|":{pipe:!0}},sa="__input-facade__";function u0(t){this.masked=this.unmasked=t||""}function i_(){return new CustomEvent("input",{bubbles:!0,cancelable:!0,detail:{facade:!0}})}function h0(t,e){return(Array.isArray(t)||typeof t=="string")&&(t={mask:t}),Object.assign(t||{},e)}function Au(t){const e=t instanceof HTMLInputElement?t:t.querySelector("input");if(!e)throw new Error("facade directive requires an input element");return e}function r_(t,e){const{target:n,detail:i,inputType:s}=t;if(i!=null&&i.facade||(t.stopPropagation(),["insertCompositionText","insertFromComposition"].includes(s)&&e[sa].config.mask))return!1;const a=n.value,o=n.selectionEnd,{oldValue:l}=n[sa];Nu(n,null,{emit:!1},t),rK(t,a,o),l!==n.value&&n.dispatchEvent(i_())}function rK(t,e,n){const{target:i}=t,s=["text","tel","search",null].includes(i.getAttribute("type")),a=i[sa]&&i[sa].config;if(i!==document.activeElement||!s||!a.mask&&!a.masked)return;const o=t.inputType||"insertText",l=["insertText","insertFromPaste"].includes(o),d=l&&n==e.length;let h=l&&e[n-1];const f=i.value.toLocaleLowerCase();let m=n;if(d)m=f.length;else if(h){h=h.toLocaleLowerCase();let g=m;for(;g<=f.length&&f.charAt(g-1)!==h;)g++;m=g<=f.length?g:m-1}i.setSelectionRange(m,m),setTimeout(function(){i.setSelectionRange(m,m)},0)}function Nu(t,e,{emit:n=!0,force:i=!1}={},s){var a,o;let{config:l,oldValue:d,isComposing:h}=t[sa],f=((o=(a=e==null?void 0:e.data)==null?void 0:a.model)==null?void 0:o.value)||t.value;if(!(l.mask&&h)&&(d=d||"",f=f||"",i||d!==f)){["deleteByCut","deleteContent","deleteContentBackward","deleteContentForward"].includes(s==null?void 0:s.inputType)&&(l={...l,short:!0});let m=o_(f,l);if(s&&typeof l.formatter=="function"){const g=l.formatter(m,s);if(typeof g=="string")m=o_(g,l);else if(g===!1){t.value=d;return}}t[sa].oldValue=m.masked,t.unmaskedValue=m.unmasked,t.value!==m.masked&&(t.value=m.masked),n&&t.dispatchEvent(i_())}}let f0=iK,s_=!1;try{"a".localeCompare("b","i")}catch(t){s_=t.name==="RangeError"}function sK(t){t&&(f0=t)}function aK(t,e){const n=e.masks.slice().sort((l,d)=>l.length-d.length),i=l=>Object.assign({},e,l),s=(l,d)=>{const h=p0(t,i({mask:d})),f=l.unmasked.length;return h.unmasked.length>f?h:l};if(!n.length)return new u0;const a=n.shift();let o=p0(t,i({mask:a}));for(;n.length;){const l=n.shift();o=s(o,l)}return o}function p0(t,e){var n,i;let{mask:s="",tokens:a,prefill:o=!1,short:l=!1}=e;a=a?Object.assign({},f0,a):f0;let d=new u0,h=!1,f=0,m=0,g="";function y(w){const v=s[m+1],k=a[v];return{escape:!!(w!=null&&w.escape),optional:!!(k!=null&&k.optional),repeat:!!(k!=null&&k.repeat),...(k==null?void 0:k.pipe)&&{pipe:s.substring(m).match(/^(.\|)+./g)[0].split("|")}}}for(;m<s.length;){const w=s[m],v=a[w];let k=t[f];const S=y(v);if(v&&!h&&!S.pipe){if(S.escape){h=!0,m++;continue}if(!k)break;if((n=v.pattern)!=null&&n.test(k))k=((i=v.transform)==null?void 0:i.call(v,k))||k,d.unmasked+=k,d.masked+=g+k,g="",S.repeat||(m+=S.optional?2:1);else if(S.optional||S.repeat){m+=2;continue}f++}else if(S.pipe){if(!k)break;const E=S.pipe.find(a_.bind(null,k));E&&(d.unmasked+=E,d.masked+=g+E,m+=S.pipe.length*2-1,g=""),f++}else a_(k,w)?(d.masked+=g+w,f++,g="",S.optional&&(d.unmasked+=w)):S.optional||(g+=w),h=!1,m+=S.optional?2:1}return(o&&!d.unmasked||!l&&d.unmasked)&&(d.masked+=g),d}function a_(t,e){return s_?(t==null?void 0:t.localeCompare(e,void 0,{sensitivity:"base"}))===0:(t==null?void 0:t.toLocaleLowerCase())===(e==null?void 0:e.toLocaleLowerCase())}function o_(t,e){return t=(t||"").toString(),e=h0(e),e.mask?Array.isArray(e.mask)?aK(t,Object.assign({},e,{masks:e.mask})):p0(t,e):new u0(t)}const yo=sa,rc={beforeMount:(t,{value:e,modifiers:n},i)=>{t=Au(t);const s=h0(e,n);t[yo]={config:s},Nu(t,i,{force:s.prefill})},mounted:t=>{t=Au(t);const e=t[yo],n=t.parentElement||t,i=a=>{a.target===t&&r_(a,t)},s=a=>{a.target===t&&(a.type==="compositionend"?(t[yo].isComposing=!1,r_(a,t)):t[yo].isComposing=!0)};n.addEventListener("input",i,!0),n.addEventListener("compositionstart",s,!0),n.addEventListener("compositionupdate",s,!0),n.addEventListener("compositionend",s,!0),e.cleanup=()=>{n.removeEventListener("input",i,!0),n.removeEventListener("compositionstart",s,!0),n.removeEventListener("compositionend",s,!0),n.removeEventListener("compositionupdate",s,!0)}},updated:(t,{value:e,oldValue:n,modifiers:i},s)=>{t=Au(t),e!==n?(t[yo].config=h0(e,i),Nu(t,s,{force:!0})):Nu(t,s)},unmounted:t=>{Au(t)[yo].cleanup()}},oK=(t,e)=>{const n=t.__vccOpts||t;for(const[i,s]of e)n[i]=s;return n},lK={name:"InputFacade",directives:{facade:rc},props:{formatter:{type:Function,default:null},mask:{type:[String,Array],default:null},masked:{type:Boolean,default:!1},prefill:{type:Boolean,default:!1},short:{type:Boolean,default:!1},tokens:{type:Object,default:()=>({})},modelValue:{type:[String,Number],default:""},modelModifiers:{type:Object,default:()=>({})}},emits:["update:model-value","change","keydown","keyup","paste"],data(){return{maskedValue:this.modelValue,unmaskedValue:null}},computed:{config(){return{mask:this.mask,masked:this.masked,tokens:this.tokens,formatter:this.formatter,prefill:this.prefill,short:this.short}},emittedValue(){return this.mask&&this.masked?this.maskedValue:this.unmaskedValue}},watch:{modelValue(t){t!==this.emittedValue&&(this.maskedValue=t)},mask:{deep:!0,handler(t){!t&&!this.masked&&(this.maskedValue=this.unmaskedValue)}},masked(){this.emitInput()}},methods:{onInput({target:t}){this.maskedValue=t.value,this.unmaskedValue=t.unmaskedValue,this.modelModifiers.lazy||this.emitInput()},onChange(){this.$emit("change",this.emittedValue),this.modelModifiers.lazy&&this.emitInput()},emitInput(){this.$emit("update:model-value",this.emittedValue)}}},cK=["value"];function dK(t,e,n,i,s,a){const o=r.resolveDirective("facade");return r.withDirectives((r.openBlock(),r.createElementBlock("input",{type:"text",value:s.maskedValue,onInput:e[0]||(e[0]=(...l)=>a.onInput&&a.onInput(...l)),onChange:e[1]||(e[1]=(...l)=>a.onChange&&a.onChange(...l)),onKeyup:e[2]||(e[2]=l=>t.$emit("keyup",l)),onKeydown:e[3]||(e[3]=l=>t.$emit("keydown",l)),onPaste:e[4]||(e[4]=l=>t.$emit("paste",l))},null,40,cK)),[[o,a.config]])}const l_=oK(lK,[["render",dK]]),uK={install(t,e={}){e.tokens&&sK(e.tokens),t.component(l_.name,l_),t.directive(e.name||"facade",rc)}};typeof window<"u"&&window.Vue&&window.Vue.use(uK);const hK={directives:{money:nK,cdstip:Ba,facade:rc},components:{CdsLink:Bu,CdsIcon:Be,CdsSpinner:Bs},props:{modelValue:{type:[Number,String],default:0},unmaskedValue:{type:[Number,String],default:0},label:{type:String,default:"Label"},disabled:{type:Boolean,default:!1},state:{type:String,default:"default"},required:{type:Boolean,default:!1},placeholder:{type:String,default:"Digite aqui a informação"},errorMessage:{type:String,default:"Valor inválido"},fluid:{type:Boolean,default:!1,required:!1},tooltip:{type:String,default:null},tooltipIcon:{type:String,default:"info-outline"},money:{type:Boolean,default:!1},linkText:{type:String,default:null},linkUrl:{type:String,default:"https://cuida.framer.wiki/"},mask:{type:[String,Array],default:null},mobile:{type:Boolean,default:!1}},data(){return{internalValue:"",isBeingFocused:!1,moneyDirectiveConfig:{decimal:",",thousands:".",prefix:"R$ ",precision:2,masked:!1}}},computed:{hasSlots(){return!!Object.keys(this.$slots).length},stepperInputDynamicClass(){let t=this.fluid?"text-input--fluid":"text-input";return this.isBeingFocused?this.disabled||(this.state==="default"?t+=" text-input--focused":this.state==="valid"?t+=" text-input--focused-valid":this.state==="invalid"?t+=" text-input--focused-invalid":this.state==="loading"&&(t+=" text-input--focused-loading")):this.disabled?t+=" text-input--disabled":this.state==="valid"?t+=" text-input--valid":this.state==="invalid"&&(t+=" text-input--invalid"),t},labelDynamicClass(){const t=this.mobile?"mobile-label":"label";return this.fluid?`text-input__${t}--fluid`:`text-input__${t}`},validState(){return this.state==="valid"},errorState(){return this.state==="invalid"},loadingState(){return this.state==="loading"},inputClass(){const t=this.mobile?"mobile-field":"field";return this.fluid?`text-input__${t}--fluid`:`text-input__${t}`}},watch:{modelValue:{handler(t,e){t!==e&&(this.internalValue=t)},immediate:!0},internalValue(t){let e=String(t);if(this.money){let n=e.replace("R$ ","");n=n.replaceAll(".",","),n=n.replace(/(.*),(\d{2})/g,"$1.$2"),n=n.replaceAll(",",""),this.$emit("update:unmaskedValue",+n),this.$emit("update:modelValue",e)}else this.mask?this.internalValue=e:e.length>15?this.internalValue=+e.slice(0,15):(this.$emit("update:modelValue",+e),this.$emit("update:unmaskedValue",+e))}},methods:{generateKey:er,handleBlur(){this.isBeingFocused=!1,this.$emit("blur",!0)},handleFocus(){this.isBeingFocused=!0,this.$emit("focus",!0)}}},fK={key:0},pK={class:"label__content",for:"cds-text-input"},mK={key:0,class:"label__required-indicator"},gK=["id","placeholder","disabled"],yK=["id","placeholder","disabled"],bK=["id","placeholder","disabled"],_K={class:"text-input__icon-container"},vK={key:0,class:"text-input__error-message"};function wK(t,e,n,i,s,a){const o=r.resolveComponent("cds-icon"),l=r.resolveComponent("cds-link"),d=r.resolveComponent("cds-spinner"),h=r.resolveDirective("cdstip"),f=r.resolveDirective("money"),m=r.resolveDirective("facade");return r.openBlock(),r.createElementBlock("div",null,[r.createElementVNode("span",null,[a.hasSlots?(r.openBlock(),r.createElementBlock("span",fK,[r.renderSlot(t.$slots,"label",{},void 0,!0)])):(r.openBlock(),r.createElementBlock("label",{key:1,class:r.normalizeClass(a.labelDynamicClass)},[r.createElementVNode("div",pK,[r.createElementVNode("span",null,r.toDisplayString(n.label),1),n.required?(r.openBlock(),r.createElementBlock("span",mK," * ")):r.createCommentVNode("",!0),n.tooltip?r.withDirectives((r.openBlock(),r.createBlock(o,{key:1,name:n.tooltipIcon,height:"20",width:"20",class:"label__icon"},null,8,["name"])),[[h,n.tooltip]]):r.createCommentVNode("",!0)]),n.linkText?(r.openBlock(),r.createBlock(l,{key:0,class:"label__link",href:n.linkUrl,text:n.linkText,"new-tab":""},null,8,["href","text"])):r.createCommentVNode("",!0)],2))]),r.createElementVNode("div",{class:r.normalizeClass(a.stepperInputDynamicClass)},[n.money?r.withDirectives((r.openBlock(),r.createElementBlock("input",{key:0,id:`cds-number-input-${t.$attrs.id||a.generateKey()}`,"onUpdate:modelValue":e[0]||(e[0]=g=>s.internalValue=g),placeholder:n.placeholder,disabled:n.disabled,class:r.normalizeClass(a.inputClass),onFocus:e[1]||(e[1]=(...g)=>a.handleFocus&&a.handleFocus(...g)),onBlur:e[2]||(e[2]=(...g)=>a.handleBlur&&a.handleBlur(...g))},null,42,gK)),[[r.vModelText,s.internalValue,void 0,{lazy:!0}],[f,s.moneyDirectiveConfig]]):n.mask?r.withDirectives((r.openBlock(),r.createElementBlock("input",{key:1,id:`cds-number-input-${t.$attrs.id||a.generateKey()}`,"onUpdate:modelValue":e[3]||(e[3]=g=>s.internalValue=g),placeholder:n.placeholder,disabled:n.disabled,class:r.normalizeClass(a.inputClass),type:"tel",onFocus:e[4]||(e[4]=(...g)=>a.handleFocus&&a.handleFocus(...g)),onBlur:e[5]||(e[5]=(...g)=>a.handleBlur&&a.handleBlur(...g))},null,42,yK)),[[r.vModelText,s.internalValue],[m,n.mask]]):r.withDirectives((r.openBlock(),r.createElementBlock("input",{key:2,id:`cds-number-input-${t.$attrs.id||a.generateKey()}`,"onUpdate:modelValue":e[6]||(e[6]=g=>s.internalValue=g),placeholder:n.placeholder,disabled:n.disabled,class:r.normalizeClass(a.inputClass),type:"number",onFocus:e[7]||(e[7]=(...g)=>a.handleFocus&&a.handleFocus(...g)),onBlur:e[8]||(e[8]=(...g)=>a.handleBlur&&a.handleBlur(...g))},null,42,bK)),[[r.vModelText,s.internalValue]]),r.createElementVNode("div",_K,[a.validState&&!n.disabled?(r.openBlock(),r.createBlock(o,{key:0,height:"20",width:"20",name:"check-outline",class:"text-input__icon--check-icon"})):r.createCommentVNode("",!0),a.errorState&&!n.disabled?(r.openBlock(),r.createBlock(o,{key:1,height:"20",width:"20",name:"alert-outline",class:"text-input__icon--alert-circle-icon"})):r.createCommentVNode("",!0),a.loadingState&&!n.disabled?(r.openBlock(),r.createBlock(d,{key:2,size:"sm",variant:"blue",class:"text-input__icon--spinner-icon"})):r.createCommentVNode("",!0)])],2),a.errorState&&!n.disabled?(r.openBlock(),r.createElementBlock("div",vK,r.toDisplayString(n.errorMessage),1)):r.createCommentVNode("",!0)])}const kK=Q(hK,[["render",wK],["__scopeId","data-v-28d3515f"]]),CK={props:{size:{type:String,default:"md"},variant:{type:String,default:"green"}},computed:{computedSizeClass(){return`spin--${this.size}`},computedColorClass(){return`spin--${this.variant}`},computedSpinnerClass(){return`${this.computedSizeClass} ${this.computedColorClass}`}}},xK={class:"overlay"};function SK(t,e,n,i,s,a){return r.openBlock(),r.createElementBlock("div",xK,[r.createElementVNode("div",{class:r.normalizeClass(a.computedSpinnerClass)},null,2)])}const MK=Q(CK,[["render",SK],["__scopeId","data-v-2022bd33"]]),OK={},DK={class:"page-container__container"};function EK(t,e,n,i,s,a){return r.openBlock(),r.createElementBlock("div",DK,[r.renderSlot(t.$slots,"default",{},void 0,!0)])}const c_=Q(OK,[["render",EK],["__scopeId","data-v-2f5908a0"]]),m0={directives:{cdstip:Ba},components:{CdsIcon:Be,CdsAvatar:ll,CdsRichTooltip:n0,CdsPopover:ol},props:{variant:{type:String,default:"green"},items:{type:Array,default:()=>[],required:!0,validator:t=>!t.filter(n=>{const i=tn(n.path)&&tn(n.route),s=tn(n.items)||n.items.filter(a=>tn(a.path)&&tn(a.route)).length;return tn(n.label)||s&&i}).length},activeItem:{type:Object,default:()=>({}),required:!0},showLogout:{type:Boolean,default:!0},showProfileMenu:{type:Boolean,default:!1},profileMenuItems:{type:Array,default:()=>[]},userName:{type:String,default:""},userRole:{type:String,default:""},userPicture:{type:String,default:null},collapsible:{type:Boolean,default:!1},collapsibleState:{type:Boolean,default:!1},logoImage:{type:String,default:null},light:{type:Boolean,default:!1},searchButton:{type:Boolean,default:!1}},data(){return{internalActiveItem:{},collapsed:!1,showUncollapsedItems:!0,colorOptions:sr,expandItemControl:0,itemsWithVisibilityController:[],logoutTooltipText:"Sair",showPopover:!1,showSearchButtonShortCut:!0}},computed:{mainClass(){return this.light?this.collapsed?"side-bar--light--collapsed":"side-bar--light":this.collapsed?"side-bar--dark--collapsed":"side-bar--dark"},collapsedTooltipClass(){return this.collapsed?"Maximizar":"Minimizar"},shouldShowProfileMenu(){var t;return this.showProfileMenu&&((t=this.profileMenuItems)==null?void 0:t.length)>0},avatarCursorResolver(){return this.shouldShowProfileMenu?"pointer":"default"},computedSearchButtonJustify(){return this.collapsed?"center":"space-between"}},watch:{items:{handler(t){const e=t.filter(n=>n.name===this.activeItem.name);[this.internalActiveItem]=e.length?e:t},immediate:!0},collapsibleState:{handler(t){this.collapsed=t},immediate:!0},activeItem:{handler(t){this.internalActiveItem=t},immediate:!0},collapsed(t){if(t){this.showUncollapsedItems=!1,this.showSearchButtonShortCut=!1;return}setTimeout(()=>{this.showUncollapsedItems=!0},500),setTimeout(()=>{this.showSearchButtonShortCut=!0},250)}},created(){this.internalActiveItem=this.activeItem,this.collapsed=this.collapsibleState,this.items.forEach((t,e)=>{this.itemsWithVisibilityController.push({name:t.label,index:e,show:!1})})},methods:{colorHexCode:Za,handleClick(t,e){if(!fo(this.internalActiveItem,e)){this.internalActiveItem=e,this.showUncollapsedItems=!0,this.expandItemControl+=1;return}if(e.items&&e.items.length>0){this.showUncollapsedItems=!this.showUncollapsedItems,this.expandItemControl+=1;return}e.icon&&(this.showUncollapsedItems=!1,this.expandItemControl+=1),this.$emit("sidebar-click",this.internalActiveItem)},isActive(t){let e=!1,n=!1;return t.items&&t.items.length>0&&(e=t.items.some(i=>fo(i,this.internalActiveItem))),n=fo(this.internalActiveItem,t),e||n},resolveRoute({route:t,path:e}){const n=tn(t)?e:t;return n instanceof String?{path:n}:n},routerPushTo(t){return this.resolveRoute(t)?this.resolveRoute(t).path:null},handleCollapse(){this.$emit("collapse-click",!this.collapsed),this.collapsed=!this.collapsed},resolveItemCollapse(t){return!!t.items&&t.items.length>0&&this.isActive(t)&&this.showUncollapsedItems},resolveCollapsibleItemIcon(t){return this.resolveItemCollapse(t)?"caret-up-outline":"caret-down-outline"},handleProfileMenuOptionClick(t){this.$emit("profile-menu-option-click",t),this.showPopover=!1},handleLogoClick(){this.$emit("logo-click")}}},d_=()=>{r.useCssVars(t=>({f94d1202:t.avatarCursorResolver,"487eda42":t.computedSearchButtonJustify}))},u_=m0.setup;m0.setup=u_?(t,e)=>(d_(),u_(t,e)):d_;const BK={class:"side-bar__header"},VK=["src"],TK={class:"search-button__text-container"},IK={key:0},$K=["onMouseleave"],AK=["onClick"],NK=["id","onMouseover"],zK={class:"side-bar__subitem-container"},PK={class:"side-bar__subitems"},LK=["href","target","onClick"],FK={key:0,class:"side-bar__subitem-link"},RK={key:1},HK={class:"side-bar__subitems--collapsed"},WK={class:"side-bar__tooltip-title"},YK=["href","onClick"],jK={key:0,class:"side-bar__subitem-link"},UK={key:0},qK={key:0},GK={class:"dropdown-button__dropdown"},KK=["onClick"],ZK={class:"dropdown__text"};function XK(t,e,n,i,s,a){const o=r.resolveComponent("cds-icon"),l=r.resolveComponent("router-link"),d=r.resolveComponent("cds-rich-tooltip"),h=r.resolveComponent("cds-avatar"),f=r.resolveComponent("cds-popover"),m=r.resolveDirective("cdstip"),g=r.resolveDirective("on-click-outside");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(a.mainClass)},[r.createElementVNode("div",{class:r.normalizeClass(`variant-resolver--${n.variant}`)},[r.createElementVNode("div",BK,[r.createElementVNode("div",{class:"side-bar__logo",onClick:e[0]||(e[0]=(...y)=>a.handleLogoClick&&a.handleLogoClick(...y))},[s.collapsed?r.createCommentVNode("",!0):r.renderSlot(t.$slots,"logo",{key:0},()=>[r.createElementVNode("img",{src:n.logoImage},null,8,VK)])]),n.collapsible?r.withDirectives((r.openBlock(),r.createElementBlock("div",{key:0,class:"side-bar__collapsible",onClick:e[1]||(e[1]=(...y)=>a.handleCollapse&&a.handleCollapse(...y))},[s.collapsed?(r.openBlock(),r.createBlock(o,{key:1,name:"sidebar-expand-outline"})):(r.openBlock(),r.createBlock(o,{key:0,name:"sidebar-collapse-outline"}))])),[[m,a.collapsedTooltipClass]]):r.createCommentVNode("",!0)]),n.searchButton?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["side-bar__search-button",{"side-bar__search-button--light":n.light}]),onClick:e[2]||(e[2]=y=>t.$emit("search-button-click"))},[r.createElementVNode("div",TK,[r.createVNode(o,{height:"20",width:"20",name:"search-outline"}),s.showSearchButtonShortCut?(r.openBlock(),r.createElementBlock("span",IK,"Busca")):r.createCommentVNode("",!0)]),s.showSearchButtonShortCut?(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass(["side-bar__search-shortcut",{"side-bar__search-shortcut--light":n.light}])}," Ctrl + K ",2)):r.createCommentVNode("",!0)],2)):r.createCommentVNode("",!0),r.createElementVNode("ul",{class:r.normalizeClass({"side-bar__container":n.items.length>=1})},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.items,(y,w)=>(r.openBlock(),r.createElementBlock("li",{key:`${w}-${y.name}-item`,role:"presentation",onMouseleave:v=>s.itemsWithVisibilityController[w].show=!1},[r.createElementVNode("div",{class:r.normalizeClass(["side-bar__item-container",a.isActive(y)?"side-bar__item-container--active":"side-bar__item-container--inactive"]),onClick:v=>a.handleClick(v,y)},[y.items||y.type==="link"?r.withDirectives((r.openBlock(),r.createElementBlock("div",{key:0,id:y.label,class:r.normalizeClass(["side-bar__item",a.isActive(y)?"side-bar__item--active":"side-bar__item--inactive"]),onMouseover:v=>s.itemsWithVisibilityController[w].show=!0},[r.createElementVNode("div",null,[r.createVNode(o,{name:y.icon,width:"20",height:"20"},null,8,["name"]),r.createElementVNode("span",null,r.toDisplayString(y.label),1)]),y.items&&y.items.length>0?(r.openBlock(),r.createBlock(o,{key:s.expandItemControl,name:a.resolveCollapsibleItemIcon(y),class:r.normalizeClass({item__caret:a.isActive(y)}),width:"16",height:"16"},null,8,["name","class"])):r.createCommentVNode("",!0)],42,NK)),[[m,s.collapsed&&y.type==="link"?y.label:null]]):r.withDirectives((r.openBlock(),r.createBlock(l,{key:1,to:a.routerPushTo(y),class:r.normalizeClass(["side-bar__item",a.isActive(y)?"side-bar__item--active":"side-bar__item--inactive"]),onClick:v=>a.handleClick(v,y)},{default:r.withCtx(()=>[r.createElementVNode("div",null,[r.createVNode(o,{name:y.icon,width:"20",height:"20"},null,8,["name"]),r.createElementVNode("span",null,r.toDisplayString(y.label),1)])]),_:2},1032,["to","class","onClick"])),[[m,s.collapsed?y.label:null]])],10,AK),s.collapsed?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(r.Transition,{key:0,name:"collapse"},{default:r.withCtx(()=>[r.withDirectives(r.createElementVNode("div",zK,[r.createElementVNode("div",PK,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(y.items,(v,k)=>(r.openBlock(),r.createElementBlock("a",{key:`${k}-${v.name}-item`,class:r.normalizeClass(["side-bar__subitem",a.isActive(v)&&(v==null?void 0:v.type)!=="external"?"side-bar__subitem--active":"side-bar__subitem--inactive"]),href:(v==null?void 0:v.type)==="external"?v.route.path:"javascript:void(0)",target:(v==null?void 0:v.type)==="external"?"_blank":"_self",rel:"noopener noreferrer",onClick:S=>a.handleClick(S,v)},[(v==null?void 0:v.type)==="external"?(r.openBlock(),r.createElementBlock("div",FK,[r.createTextVNode(r.toDisplayString(v.label)+" ",1),r.createVNode(o,{height:"16",width:"16",name:"open-in-new-tab-outline"})])):(r.openBlock(),r.createBlock(l,{key:1,class:"side-bar__subitem-link",to:a.routerPushTo(v)},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(v.label),1)]),_:2},1032,["to"]))],10,LK))),128))])],512),[[r.vShow,a.resolveItemCollapse(y)]])]),_:2},1024)),y.items&&s.collapsed?(r.openBlock(),r.createElementBlock("div",RK,[r.createVNode(d,{modelValue:s.itemsWithVisibilityController[w].show,"onUpdate:modelValue":v=>s.itemsWithVisibilityController[w].show=v,"target-id":y.label,"default-placement":"bottom-start",width:"160"},{default:r.withCtx(()=>[r.createElementVNode("div",HK,[r.createElementVNode("p",WK,r.toDisplayString(y.label),1),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(y.items,(v,k)=>(r.openBlock(),r.createElementBlock("a",{key:`${k}-${v.name}-item`,class:"side-bar__subitem",href:(v==null?void 0:v.type)==="external"?v.route.path:"javascript:void(0)",target:"_blank",rel:"noopener noreferrer",onClick:S=>a.handleClick(S,v)},[(v==null?void 0:v.type)==="external"?(r.openBlock(),r.createElementBlock("div",jK,[r.createTextVNode(r.toDisplayString(v.label)+" ",1),r.createVNode(o,{height:"16",width:"16",name:"open-in-new-tab-outline"})])):(r.openBlock(),r.createBlock(l,{key:1,class:"side-bar__subitem-link",to:a.routerPushTo(v)},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(v.label),1)]),_:2},1032,["to"]))],8,YK))),128))])]),_:2},1032,["modelValue","onUpdate:modelValue","target-id"])])):r.createCommentVNode("",!0)],40,$K))),128))],2)],2),r.createElementVNode("div",{class:r.normalizeClass(`side-bar__footer variant-resolver--${n.variant}`)},[r.createElementVNode("div",{id:"menu-profile",class:"side-bar__avatar",onClick:e[3]||(e[3]=r.withModifiers(y=>s.showPopover=!s.showPopover,["stop"]))},[r.createVNode(h,{src:n.userPicture,name:n.userName,variant:"white",size:"lg"},null,8,["src","name"]),r.createVNode(r.Transition,{name:"fade"},{default:r.withCtx(()=>[s.collapsed?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",UK,[r.createElementVNode("p",null,r.toDisplayString(n.userName),1),r.createElementVNode("p",null,r.toDisplayString(n.userRole),1)]))]),_:1})]),r.createElementVNode("ul",null,[n.showLogout?r.withDirectives((r.openBlock(),r.createElementBlock("li",{key:0,class:"side-bar__logout-button",onClick:e[4]||(e[4]=y=>t.$emit("logout",!0))},[r.createVNode(o,{name:"logout-outline",width:"20",height:"20"})])),[[m,s.logoutTooltipText]]):r.createCommentVNode("",!0)]),a.shouldShowProfileMenu?(r.openBlock(),r.createElementBlock("div",qK,[r.createVNode(f,{modelValue:s.showPopover,"onUpdate:modelValue":e[5]||(e[5]=y=>s.showPopover=y),"right-aligned":"","target-id":"menu-profile",width:"160",height:"160"},{default:r.withCtx(()=>[r.withDirectives((r.openBlock(),r.createElementBlock("div",GK,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.profileMenuItems,(y,w)=>(r.openBlock(),r.createElementBlock("div",{key:w},[r.createElementVNode("div",{class:"dropdown__container",onClick:v=>a.handleProfileMenuOptionClick(y)},[r.createVNode(o,{class:"dropdown__icon",height:"22",width:"22",name:y.icon},null,8,["name"]),r.createElementVNode("span",ZK,r.toDisplayString(y.name),1)],8,KK)]))),128))])),[[g,t.hide]])]),_:1},8,["modelValue"])])):r.createCommentVNode("",!0)],2)],2)}const h_=Q(m0,[["render",XK]]),JK={class:"secondary-navigation__container"},QK={class:"secondary-navigation__content"},eZ={key:1},tZ=["onClick","onMouseover"],nZ={class:"secondary-navigation__content"},iZ={key:1},f_=Q({__name:"SecondaryNavigation",props:{light:{type:Boolean,default:!1},activeItem:{type:Object,default:()=>{}},items:{type:Array,default:()=>[]}},emits:["item-click"],setup(t,{emit:e}){const n=t,i=e,s=r.ref(n.activeItem.key),a=r.ref(null),o=r.ref(0),l=r.computed(()=>n.light?"light":"dark");r.watch(n.activeItem,v=>{s.value=v.key});const d=v=>{o.value=v},h=v=>{if(!v.route)return null;const{path:k,name:S}=v.route;return k instanceof String?{path:k}:{name:S}},f=v=>{g(v.key)||(a.value=null,s.value=v.key,i("item-click",v.key))},m=v=>s.value===v,g=v=>n.items.find(k=>{var S;return k.key===v&&((S=k==null?void 0:k.subitems)==null?void 0:S.length)>0}),y=(v,k)=>{a.value=v,s.value=k,i("item-click",v)},w=v=>a.value===v;return(v,k)=>{const S=r.resolveComponent("router-link");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["secondary-navigation",`secondary-navigation--${l.value}`])},[r.createElementVNode("div",JK,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.items,E=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:E.key},[g(E.key)?(r.openBlock(),r.createElementBlock("div",eZ,[r.createElementVNode("div",{class:r.normalizeClass(["secondary-navigation__item",m(E.key)?`secondary-navigation__item--active-${l.value}`:""]),onClick:$=>f(E),onMouseover:$=>d(E.key),onMouseleave:k[0]||(k[0]=$=>d(-1))},[r.createElementVNode("div",nZ,[r.createTextVNode(r.toDisplayString(E.label)+" ",1),E.key!==o.value?(r.openBlock(),r.createBlock(Be,{key:0,class:"secondary-navigation__icon",name:"caret-down-outline",height:"16",width:"16"})):E.key===o.value?(r.openBlock(),r.createElementBlock("div",iZ,[r.createVNode(Be,{class:"secondary-navigation__icon",height:"16",width:"16",name:"caret-up-outline"}),r.createElementVNode("div",{class:r.normalizeClass(["secondary-navigation__dropdown",`secondary-navigation__dropdown--${l.value}`])},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(E.subitems,$=>(r.openBlock(),r.createBlock(S,{key:$.key,to:h($),class:r.normalizeClass(["secondary-navigation__subitem",{"secondary-navigation__subitem--active":w($.key)}]),onClick:x=>y($.key,E.key)},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString($.label),1)]),_:2},1032,["to","class","onClick"]))),128))],2)])):r.createCommentVNode("",!0)])],42,tZ)])):(r.openBlock(),r.createBlock(S,{key:0,class:r.normalizeClass(["secondary-navigation__item",m(E.key)?`secondary-navigation__item--active-${l.value}`:""]),to:h(E),onClick:$=>f(E)},{default:r.withCtx(()=>[r.createElementVNode("div",QK,r.toDisplayString(E.label),1)]),_:2},1032,["class","to","onClick"]))],64))),128))]),k[1]||(k[1]=r.createElementVNode("div",{class:"secondary-navigation__overflow-left"},null,-1)),k[2]||(k[2]=r.createElementVNode("div",{class:"secondary-navigation__overflow-right"},null,-1))],2)}}},[["__scopeId","data-v-2c0e5f5c"]]),rZ={class:"page-layout"},sZ={class:"page-layout__content"},aZ=Q({__name:"PageLayout",props:{variant:{type:String,default:"green"},light:{type:Boolean,default:!1},user:{type:Object,default:()=>{}},collapsibleSideBar:{type:Boolean,default:!1},showProfileMenu:{type:Boolean,default:!1},sideBarItems:{type:Array,default:()=>[]},profileMenuItems:{type:Array,default:()=>[]},navigationItems:{type:Array,default:()=>[]},logos:{type:Object,default:()=>{}},sideBarActiveItem:{type:Object,default:()=>{}},navigationActiveItem:{type:Object,default:()=>{}}},emits:["sidebar-item-click","sidebar-logout","popover-item-click","navigation-item-click"],setup(t,{emit:e}){r.useCssVars(o=>({"36685eea":a.value}));const n=t,i=e,s=r.computed(()=>{var o;return((o=n.navigationItems)==null?void 0:o.length)>0}),a=r.computed(()=>s.value?"54px":"0px");return(o,l)=>{var d;return r.openBlock(),r.createElementBlock("div",rZ,[r.createVNode(h_,{variant:t.variant,"active-item":t.sideBarActiveItem,light:t.light,"user-name":t.user.name??"","user-role":t.user.role??"","user-picture":t.user.picture??null,collapsible:t.collapsibleSideBar,items:t.sideBarItems,"logo-image":t.logos.default,"collapsed-logo-image":t.logos.collapsed,"show-profile-menu":t.showProfileMenu,"profile-menu-items":t.profileMenuItems,onProfileMenuOptionClick:l[0]||(l[0]=h=>i("profile-menu-option-click",h)),onSidebarClick:l[1]||(l[1]=h=>i("sidebar-item-click",h)),onLogout:l[2]||(l[2]=h=>i("sidebar-logout",h)),onSettings:l[3]||(l[3]=h=>i("sidebar-settings",h))},null,8,["variant","active-item","light","user-name","user-role","user-picture","collapsible","items","logo-image","collapsed-logo-image","show-profile-menu","profile-menu-items"]),r.createElementVNode("div",sZ,[((d=t.navigationItems)==null?void 0:d.length)>0?(r.openBlock(),r.createBlock(f_,{key:0,light:t.light,"active-item":t.navigationActiveItem,items:t.navigationItems,onItemClick:l[4]||(l[4]=h=>i("navigation-item-click",h))},null,8,["light","active-item","items"])):r.createCommentVNode("",!0),r.createVNode(c_,{class:"page-layout__container"},{default:r.withCtx(()=>[r.renderSlot(o.$slots,"default",{},void 0,!0)]),_:3})])])}}},[["__scopeId","data-v-428d73ca"]]),oZ={components:{CdsLink:Bu},props:{title:{type:String,required:!0},subtitle:{type:String,default:null},compact:{type:Boolean,default:!1}},data(){return{hasURL:!1,url:"",splitedSubtitle:[]}},computed:{fancyUrl(){return this.url.split(/http:\/\/|https:\/\//)[1]}},mounted(){this.computedSubtitle()},methods:{computedSubtitle(){var n;const t=/\b(?:http:\/\/|https:\/\/)?[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,}(?:\/\S*)?/g,e=(n=this.subtitle)==null?void 0:n.match(t);e&&e.length>0&&(this.splitedSubtitle=this.subtitle.split(e[0]),this.url=e[0])}}},lZ={class:"page-header__title"},cZ={key:0,class:"d-flex"},dZ={class:"page-header__subtitle"},uZ={key:1,class:"page-header__subtitle"},hZ={class:"page-header__aside-slot"};function fZ(t,e,n,i,s,a){const o=r.resolveComponent("cds-link");return r.openBlock(),r.createElementBlock("header",{class:r.normalizeClass(n.compact?"page-header__container--compact":"page-header__container")},[r.createElementVNode("div",null,[r.createElementVNode("p",lZ,r.toDisplayString(n.title),1),s.splitedSubtitle.length>0?(r.openBlock(),r.createElementBlock("div",cZ,[r.createElementVNode("span",dZ,[r.createTextVNode(r.toDisplayString(s.splitedSubtitle[0])+" ",1),r.createVNode(o,{href:s.url,bold:""},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(a.fancyUrl),1)]),_:1},8,["href"]),r.createTextVNode(" "+r.toDisplayString(s.splitedSubtitle[1]),1)])])):(r.openBlock(),r.createElementBlock("div",uZ,r.toDisplayString(n.subtitle),1))]),r.createElementVNode("div",hZ,[r.renderSlot(t.$slots,"aside")])],2)}const pZ=Q(oZ,[["render",fZ]]);class qn{constructor(e,n,i,s=null){this.index=e,this.value=n,this.selected=i,this.text=s||n}}const mZ={components:{CdsChevron:$s},props:{modelValue:{type:[Number,String],default:1},total:{type:Number,default:1,validator:t=>t>=1},perPage:{type:Number,default:1,validator:t=>t>=1},fluid:{type:Boolean,default:!1},variant:{type:String,default:"green"}},data(){return{selectedPage:new qn(null,parseInt(this.modelValue,10),!0),pages:[]}},computed:{pageCount(){return this.total/this.perPage<1?1:Math.ceil(this.total/this.perPage)},computedContainerClass(){return this.fluid?"pagination__container--fluid":"pagination__container"}},watch:{modelValue(t,e){t===e||t===this.selectedPage.value||(this.selectedPage=new qn(null,parseInt(t,10),!0),this.resolvePages())}},beforeMount(){this.resolvePages()},methods:{resolveButtonClass(t){switch(t.index){case 0:return this.selectedPage.value===1?"pagination__button--first pagination__button--disabled":"pagination__button--first";case 1:return this.selectedPage.value===1?"pagination__button pagination__button--disabled":"pagination__button";case 7:return this.selectedPage.value===this.pageCount?"pagination__button pagination__button--disabled":"pagination__button";case 8:return this.selectedPage.value===this.pageCount?"pagination__button--last pagination__button--disabled":"pagination__button--last";default:return t.selected?df("pagination__button--active",this.variant):"pagination__button"}},resolvePages(){this.pages=[new qn(0,"first",!1,"<<"),new qn(1,"back",!1,"<"),...this.mountPagesArray(),new qn(7,"forward",!1,">"),new qn(8,"last",!1,">>")]},mountPagesArray(){const t=this.pageCount<5?this.pageCount+2:7,e=[];if(this.selectedPage.value<=3||this.pageCount<=5){this.selectedPage.index=this.selectedPage.value;for(let n=2;n<t;n++)e[n-2]=new qn(n,n-1,this.selectedPage.value===n-1);return e}if(this.selectedPage.value<=this.pageCount-2){for(let n=2;n<t;n++){const i=this.selectedPage.value-4+n;e[n-2]=new qn(n+1,i,this.selectedPage.value===i)}return e}for(let n=2;n<t;n++){const i=this.pageCount-6+n;e[n-2]=new qn(n,i,this.selectedPage.value===i)}return e},handlePageClick(t){switch(t.value){case this.selectedPage.value:return;case"first":if(this.selectedPage.index===1)return;this.selectedPage=new qn(null,1,!0),this.$emit("update:modelValue",1),this.resolvePages();return;case"last":if(this.selectedPage.index===this.pageCount)return;this.selectedPage=new qn(null,this.pageCount,!0),this.$emit("update:modelValue",this.pageCount),this.resolvePages();return;case"back":if(this.selectedPage.index===1)return;this.$emit("update:modelValue",this.selectedPage.value-1),this.selectedPage=new qn(null,this.selectedPage.value-1,!0),this.resolvePages();return;case"forward":if(this.selectedPage.value===this.pageCount)return;this.$emit("update:modelValue",this.selectedPage.value+1),this.selectedPage=new qn(null,this.selectedPage.value+1,!0),this.resolvePages();return;default:this.selectedPage=new qn(null,t.value,!0),this.$emit("update:modelValue",t.value),this.resolvePages();break}}}},gZ=["onClick"],yZ={key:3};function bZ(t,e,n,i,s,a){const o=r.resolveComponent("cds-chevron");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(a.computedContainerClass)},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.pages,(l,d)=>(r.openBlock(),r.createElementBlock("div",{key:d,class:r.normalizeClass(a.resolveButtonClass(l)),onClick:h=>a.handlePageClick(l)},[d===0?(r.openBlock(),r.createBlock(o,{key:0,direction:"left",class:"pagination__double-chevron--left"})):r.createCommentVNode("",!0),d===0?(r.openBlock(),r.createBlock(o,{key:1,direction:"left",class:"pagination__double-chevron--left"})):r.createCommentVNode("",!0),d===1?(r.openBlock(),r.createBlock(o,{key:2,direction:"left"})):r.createCommentVNode("",!0),d>=2&&d<=s.pages.length-3?(r.openBlock(),r.createElementBlock("span",yZ,r.toDisplayString(l.text),1)):r.createCommentVNode("",!0),d===s.pages.length-2?(r.openBlock(),r.createBlock(o,{key:4,direction:"right"})):r.createCommentVNode("",!0),d===s.pages.length-1?(r.openBlock(),r.createBlock(o,{key:5,direction:"right",class:"pagination__double-chevron--right"})):r.createCommentVNode("",!0),d===s.pages.length-1?(r.openBlock(),r.createBlock(o,{key:6,direction:"right",class:"pagination__double-chevron--right"})):r.createCommentVNode("",!0)],10,gZ))),128))],2)}const _Z=Q(mZ,[["render",bZ],["__scopeId","data-v-c81c79f6"]]),vZ={components:{CdsBox:Jd,CdsDivider:al},props:{title:{type:String,default:"Título",required:!0},subtitle:{type:String,default:"Subtítulo",required:!0},noContentPadding:{type:Boolean,default:!1}},computed:{contentClass(){return this.noContentPadding?"panel-card__content--no-pading":"panel-card__content"}}},wZ={class:"panel-card__header"},kZ={class:"panel-card__title"},CZ={class:"panel-card__subtitle"};function xZ(t,e,n,i,s,a){const o=r.resolveComponent("cds-divider"),l=r.resolveComponent("cds-box");return r.openBlock(),r.createBlock(l,{class:"panel-card",padding:"0",fluid:""},{default:r.withCtx(()=>[r.createElementVNode("div",wZ,[r.createElementVNode("div",null,[r.createElementVNode("span",kZ,r.toDisplayString(n.title),1),e[0]||(e[0]=r.createElementVNode("br",null,null,-1)),r.createElementVNode("span",CZ,r.toDisplayString(n.subtitle),1)]),r.createElementVNode("div",null,[r.renderSlot(t.$slots,"panel-actions",{},void 0,!0)])]),r.createVNode(o,{dimmed:""}),r.createElementVNode("div",{class:r.normalizeClass(a.contentClass)},[r.renderSlot(t.$slots,"default",{},void 0,!0)],2)]),_:3})}const SZ=Q(vZ,[["render",xZ],["__scopeId","data-v-e1c5a182"]]),MZ={props:{modelValue:{type:String,default:""},length:{type:Number,default:4},state:{type:String,default:"default"},visible:{type:Boolean,default:!1},mobile:{type:Boolean,default:!1}},data(){return{innerValue:this.modelValue.split("")}},computed:{computedClass(){let t="";switch(this.state){case"valid":t="pin-input--valid";break;case"invalid":t="pin-input--invalid";break;default:t="pin-input"}return this.mobile?`${t} pin-input--mobile`:t}},watch:{modelValue(t){this.innerValue=t.split("")}},methods:{handleInput(t,e){let n=this.innerValue.join("");e<this.length&&t.inputType!=="deleteContentBackward"&&this.$refs[`pin-input${e+1}`][0].focus(),n.length===this.length&&this.$emit("update:modelValue",n)},handleBack(t){if(t>1){this.innerValue[t-1]="";let e=this.$refs[`pin-input${t-1}`][0];setTimeout(()=>{e.focus()},150)}},fixCursorPosition(t){let e=this.$refs[`pin-input${t}`][0];setTimeout(()=>{e.setSelectionRange(1,1)},3)},changeInputContent(t,e){this.innerValue.splice(e-1,1,t.key),e<this.length&&this.$refs[`pin-input${e+1}`][0].focus(),e===this.length&&this.$emit("update:modelValue",this.innerValue.join(""))}}},OZ={class:"pin-input__container"},DZ=["id","onUpdate:modelValue","type","onKeydown","onKeypress","onInput","onFocus"];function EZ(t,e,n,i,s,a){return r.openBlock(),r.createElementBlock("div",OZ,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.length,(o,l)=>r.withDirectives((r.openBlock(),r.createElementBlock("input",{id:`pin-input${o}`,key:l,ref_for:!0,ref:`pin-input${o}`,"onUpdate:modelValue":d=>s.innerValue[o-1]=d,type:n.visible?"text":"password",maxlength:"1",class:r.normalizeClass(["pin-input",a.computedClass]),autocomplete:"off",onKeydown:r.withKeys(r.withModifiers(d=>a.handleBack(o),["stop"]),["delete"]),onKeypress:d=>a.changeInputContent(d,o),onInput:d=>a.handleInput(d,o),onFocus:d=>a.fixCursorPosition(o)},null,42,DZ)),[[r.vModelDynamic,s.innerValue[o-1]]])),128))])}const BZ=Q(MZ,[["render",EZ],["__scopeId","data-v-4e202c49"]]),g0={props:{variant:{type:String,default:"green"},value:{type:Number,default:0,required:!0},showText:{type:Boolean,default:!1,required:!1},textAside:{type:Boolean,default:!1}},computed:{formatedvalue(){return`${parseInt(this.value*100,10)}%`},progressIndicatorStyle(){return{"--width":this.formatedvalue,"--leftMargin":this.textAside?"3":"10","--bottomMargin":this.textAside?"10":"2"}},textDirection(){return this.textAside?"row-reverse":"column"}}},p_=()=>{r.useCssVars(t=>({bf5feb56:t.textDirection}))},m_=g0.setup;g0.setup=m_?(t,e)=>(p_(),m_(t,e)):p_;const VZ={class:"progress-bar"},TZ={class:"progress-bar__content"};function IZ(t,e,n,i,s,a){return r.openBlock(),r.createElementBlock("div",VZ,[n.showText?(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass(n.textAside?"bar__text--aside":"bar__text")},r.toDisplayString(a.formatedvalue),3)):r.createCommentVNode("",!0),r.createElementVNode("div",TZ,[r.createElementVNode("div",{class:r.normalizeClass(`progress-bar__indicator--${n.variant}`),style:r.normalizeStyle(a.progressIndicatorStyle)},null,6)])])}const $Z=Q(g0,[["render",IZ],["__scopeId","data-v-d3a3d8d6"]]),AZ={props:{variant:{type:String,default:"green"},size:{type:String,default:"md",required:!1},value:{type:Number,default:0,required:!0},maxValue:{type:Number,default:100,required:!1},slim:{type:Boolean,default:!1},thick:{type:Boolean,default:!1},noLabel:{type:Boolean,default:!1}},computed:{label(){return this.maxValue>=100?`${Math.round(100*this.value/this.maxValue)}%`:`${this.value}/${this.maxValue}`},normalizedDashArray(){return`${100*this.value/this.maxValue}, 100`},stroke(){return this.slim?1.5:this.thick?4.5:3.5},labelClass(){return`progress-circular__label${this.maxValue>=100?"--reduced":""}`},circleIndicatorStyle(){return{"--indicatorColor":this.colorHexCode(this.variant)}}},methods:{colorHexCode:Za}},NZ=["stroke","stroke-width"],zZ=["stroke-dasharray","stroke-width"];function PZ(t,e,n,i,s,a){return r.openBlock(),r.createElementBlock("svg",{class:r.normalizeClass(["progress-circular",`progress-circular--${n.size}`]),viewBox:"0 0 36 36"},[r.createElementVNode("path",{class:"progress-circular__ring-background",stroke:t.backgroundColor,"stroke-width":a.stroke,d:`M18 2.0845
|
|
69
|
+
}`;var Le=I6(function(){return ot(D,ve+"return "+te).apply(n,T)});if(Le.source=te,wp(Le))throw Le;return Le}function lae(c){return dt(c).toLowerCase()}function cae(c){return dt(c).toUpperCase()}function dae(c,u,p){if(c=dt(c),c&&(p||u===n))return H_(c);if(!c||!(u=ci(u)))return c;var b=Ui(c),C=Ui(u),D=W_(b,C),T=Y_(b,C)+1;return Ds(b,D,T).join("")}function uae(c,u,p){if(c=dt(c),c&&(p||u===n))return c.slice(0,U_(c)+1);if(!c||!(u=ci(u)))return c;var b=Ui(c),C=Y_(b,Ui(u))+1;return Ds(b,0,C).join("")}function hae(c,u,p){if(c=dt(c),c&&(p||u===n))return c.replace(Ir,"");if(!c||!(u=ci(u)))return c;var b=Ui(c),C=W_(b,Ui(u));return Ds(b,C).join("")}function fae(c,u){var p=q,b=ne;if(Rt(u)){var C="separator"in u?u.separator:C;p="length"in u?Pe(u.length):p,b="omission"in u?ci(u.omission):b}c=dt(c);var D=c.length;if(Ao(c)){var T=Ui(c);D=T.length}if(p>=D)return c;var z=p-No(b);if(z<1)return b;var F=T?Ds(T,0,z).join(""):c.slice(0,z);if(C===n)return F+b;if(T&&(z+=F.length-z),kp(C)){if(c.slice(z).search(C)){var X,J=F;for(C.global||(C=P0(C.source,dt(on.exec(C))+"g")),C.lastIndex=0;X=C.exec(J);)var te=X.index;F=F.slice(0,te===n?z:te)}}else if(c.indexOf(ci(C),z)!=z){var de=F.lastIndexOf(C);de>-1&&(F=F.slice(0,de))}return F+b}function pae(c){return c=dt(c),c&&at.test(c)?c.replace(ke,Wee):c}var mae=Wo(function(c,u,p){return c+(p?" ":"")+u.toUpperCase()}),Sp=$v("toUpperCase");function T6(c,u,p){return c=dt(c),u=p?n:u,u===n?Pee(c)?Uee(c):Eee(c):c.match(u)||[]}var I6=Re(function(c,u){try{return fn(c,n,u)}catch(p){return wp(p)?p:new Ie(p)}}),gae=Yr(function(c,u){return Oi(u,function(p){p=fr(p),Hr(c,p,_p(c[p],c))}),c});function yae(c){var u=c==null?0:c.length,p=Se();return c=u?zt(c,function(b){if(typeof b[1]!="function")throw new Di(o);return[p(b[0]),b[1]]}):[],Re(function(b){for(var C=-1;++C<u;){var D=c[C];if(fn(D[0],this,b))return fn(D[1],this,b)}})}function bae(c){return Wte(Bi(c,m))}function Mp(c){return function(){return c}}function _ae(c,u){return c==null||c!==c?u:c}var vae=Nv(),wae=Nv(!0);function Qn(c){return c}function Op(c){return hv(typeof c=="function"?c:Bi(c,m))}function kae(c){return pv(Bi(c,m))}function Cae(c,u){return mv(c,Bi(u,m))}var xae=Re(function(c,u){return function(p){return $c(p,c,u)}}),Sae=Re(function(c,u){return function(p){return $c(c,p,u)}});function Dp(c,u,p){var b=pn(u),C=ih(u,b);p==null&&!(Rt(u)&&(C.length||!b.length))&&(p=u,u=c,c=this,C=ih(u,pn(u)));var D=!(Rt(p)&&"chain"in p)||!!p.chain,T=Ur(c);return Oi(C,function(z){var F=u[z];c[z]=F,T&&(c.prototype[z]=function(){var X=this.__chain__;if(D||X){var J=c(this.__wrapped__),te=J.__actions__=Zn(this.__actions__);return te.push({func:F,args:arguments,thisArg:c}),J.__chain__=X,J}return F.apply(c,ks([this.value()],arguments))})}),c}function Mae(){return He._===this&&(He._=Jee),this}function Ep(){}function Oae(c){return c=Pe(c),Re(function(u){return gv(u,c)})}var Dae=ap(zt),Eae=ap(z_),Bae=ap(V0);function $6(c){return fp(c)?T0(fr(c)):ane(c)}function Vae(c){return function(u){return c==null?n:_a(c,u)}}var Tae=Pv(),Iae=Pv(!0);function Bp(){return[]}function Vp(){return!1}function $ae(){return{}}function Aae(){return""}function Nae(){return!0}function zae(c,u){if(c=Pe(c),c<1||c>be)return[];var p=fe,b=En(c,fe);u=Se(u),c-=fe;for(var C=A0(b,u);++p<c;)u(p);return C}function Pae(c){return Ae(c)?zt(c,fr):di(c)?[c]:Zn(e6(dt(c)))}function Lae(c){var u=++Zee;return dt(c)+u}var Fae=ch(function(c,u){return c+u},0),Rae=op("ceil"),Hae=ch(function(c,u){return c/u},1),Wae=op("floor");function Yae(c){return c&&c.length?nh(c,Qn,U0):n}function jae(c,u){return c&&c.length?nh(c,Se(u,2),U0):n}function Uae(c){return F_(c,Qn)}function qae(c,u){return F_(c,Se(u,2))}function Gae(c){return c&&c.length?nh(c,Qn,Z0):n}function Kae(c,u){return c&&c.length?nh(c,Se(u,2),Z0):n}var Zae=ch(function(c,u){return c*u},1),Xae=op("round"),Jae=ch(function(c,u){return c-u},0);function Qae(c){return c&&c.length?$0(c,Qn):0}function eoe(c,u){return c&&c.length?$0(c,Se(u,2)):0}return M.after=kre,M.ary=u6,M.assign=cse,M.assignIn=S6,M.assignInWith=kh,M.assignWith=dse,M.at=use,M.before=h6,M.bind=_p,M.bindAll=gae,M.bindKey=f6,M.castArray=$re,M.chain=l6,M.chunk=Wne,M.compact=Yne,M.concat=jne,M.cond=yae,M.conforms=bae,M.constant=Mp,M.countBy=Qie,M.create=hse,M.curry=p6,M.curryRight=m6,M.debounce=g6,M.defaults=fse,M.defaultsDeep=pse,M.defer=Cre,M.delay=xre,M.difference=Une,M.differenceBy=qne,M.differenceWith=Gne,M.drop=Kne,M.dropRight=Zne,M.dropRightWhile=Xne,M.dropWhile=Jne,M.fill=Qne,M.filter=tre,M.flatMap=rre,M.flatMapDeep=sre,M.flatMapDepth=are,M.flatten=r6,M.flattenDeep=eie,M.flattenDepth=tie,M.flip=Sre,M.flow=vae,M.flowRight=wae,M.fromPairs=nie,M.functions=wse,M.functionsIn=kse,M.groupBy=ore,M.initial=rie,M.intersection=sie,M.intersectionBy=aie,M.intersectionWith=oie,M.invert=xse,M.invertBy=Sse,M.invokeMap=cre,M.iteratee=Op,M.keyBy=dre,M.keys=pn,M.keysIn=Jn,M.map=gh,M.mapKeys=Ose,M.mapValues=Dse,M.matches=kae,M.matchesProperty=Cae,M.memoize=bh,M.merge=Ese,M.mergeWith=M6,M.method=xae,M.methodOf=Sae,M.mixin=Dp,M.negate=_h,M.nthArg=Oae,M.omit=Bse,M.omitBy=Vse,M.once=Mre,M.orderBy=ure,M.over=Dae,M.overArgs=Ore,M.overEvery=Eae,M.overSome=Bae,M.partial=vp,M.partialRight=y6,M.partition=hre,M.pick=Tse,M.pickBy=O6,M.property=$6,M.propertyOf=Vae,M.pull=uie,M.pullAll=a6,M.pullAllBy=hie,M.pullAllWith=fie,M.pullAt=pie,M.range=Tae,M.rangeRight=Iae,M.rearg=Dre,M.reject=mre,M.remove=mie,M.rest=Ere,M.reverse=yp,M.sampleSize=yre,M.set=$se,M.setWith=Ase,M.shuffle=bre,M.slice=gie,M.sortBy=wre,M.sortedUniq=Cie,M.sortedUniqBy=xie,M.split=rae,M.spread=Bre,M.tail=Sie,M.take=Mie,M.takeRight=Oie,M.takeRightWhile=Die,M.takeWhile=Eie,M.tap=Yie,M.throttle=Vre,M.thru=mh,M.toArray=k6,M.toPairs=D6,M.toPairsIn=E6,M.toPath=Pae,M.toPlainObject=x6,M.transform=Nse,M.unary=Tre,M.union=Bie,M.unionBy=Vie,M.unionWith=Tie,M.uniq=Iie,M.uniqBy=$ie,M.uniqWith=Aie,M.unset=zse,M.unzip=bp,M.unzipWith=o6,M.update=Pse,M.updateWith=Lse,M.values=Uo,M.valuesIn=Fse,M.without=Nie,M.words=T6,M.wrap=Ire,M.xor=zie,M.xorBy=Pie,M.xorWith=Lie,M.zip=Fie,M.zipObject=Rie,M.zipObjectDeep=Hie,M.zipWith=Wie,M.entries=D6,M.entriesIn=E6,M.extend=S6,M.extendWith=kh,Dp(M,M),M.add=Fae,M.attempt=I6,M.camelCase=Yse,M.capitalize=B6,M.ceil=Rae,M.clamp=Rse,M.clone=Are,M.cloneDeep=zre,M.cloneDeepWith=Pre,M.cloneWith=Nre,M.conformsTo=Lre,M.deburr=V6,M.defaultTo=_ae,M.divide=Hae,M.endsWith=jse,M.eq=Gi,M.escape=Use,M.escapeRegExp=qse,M.every=ere,M.find=nre,M.findIndex=n6,M.findKey=mse,M.findLast=ire,M.findLastIndex=i6,M.findLastKey=gse,M.floor=Wae,M.forEach=c6,M.forEachRight=d6,M.forIn=yse,M.forInRight=bse,M.forOwn=_se,M.forOwnRight=vse,M.get=Cp,M.gt=Fre,M.gte=Rre,M.has=Cse,M.hasIn=xp,M.head=s6,M.identity=Qn,M.includes=lre,M.indexOf=iie,M.inRange=Hse,M.invoke=Mse,M.isArguments=ka,M.isArray=Ae,M.isArrayBuffer=Hre,M.isArrayLike=Xn,M.isArrayLikeObject=Zt,M.isBoolean=Wre,M.isBuffer=Es,M.isDate=Yre,M.isElement=jre,M.isEmpty=Ure,M.isEqual=qre,M.isEqualWith=Gre,M.isError=wp,M.isFinite=Kre,M.isFunction=Ur,M.isInteger=b6,M.isLength=vh,M.isMap=_6,M.isMatch=Zre,M.isMatchWith=Xre,M.isNaN=Jre,M.isNative=Qre,M.isNil=tse,M.isNull=ese,M.isNumber=v6,M.isObject=Rt,M.isObjectLike=jt,M.isPlainObject=Fc,M.isRegExp=kp,M.isSafeInteger=nse,M.isSet=w6,M.isString=wh,M.isSymbol=di,M.isTypedArray=jo,M.isUndefined=ise,M.isWeakMap=rse,M.isWeakSet=sse,M.join=lie,M.kebabCase=Gse,M.last=Ti,M.lastIndexOf=cie,M.lowerCase=Kse,M.lowerFirst=Zse,M.lt=ase,M.lte=ose,M.max=Yae,M.maxBy=jae,M.mean=Uae,M.meanBy=qae,M.min=Gae,M.minBy=Kae,M.stubArray=Bp,M.stubFalse=Vp,M.stubObject=$ae,M.stubString=Aae,M.stubTrue=Nae,M.multiply=Zae,M.nth=die,M.noConflict=Mae,M.noop=Ep,M.now=yh,M.pad=Xse,M.padEnd=Jse,M.padStart=Qse,M.parseInt=eae,M.random=Wse,M.reduce=fre,M.reduceRight=pre,M.repeat=tae,M.replace=nae,M.result=Ise,M.round=Xae,M.runInContext=L,M.sample=gre,M.size=_re,M.snakeCase=iae,M.some=vre,M.sortedIndex=yie,M.sortedIndexBy=bie,M.sortedIndexOf=_ie,M.sortedLastIndex=vie,M.sortedLastIndexBy=wie,M.sortedLastIndexOf=kie,M.startCase=sae,M.startsWith=aae,M.subtract=Jae,M.sum=Qae,M.sumBy=eoe,M.template=oae,M.times=zae,M.toFinite=qr,M.toInteger=Pe,M.toLength=C6,M.toLower=lae,M.toNumber=Ii,M.toSafeInteger=lse,M.toString=dt,M.toUpper=cae,M.trim=dae,M.trimEnd=uae,M.trimStart=hae,M.truncate=fae,M.unescape=pae,M.uniqueId=Lae,M.upperCase=mae,M.upperFirst=Sp,M.each=c6,M.eachRight=d6,M.first=s6,Dp(M,function(){var c={};return ur(M,function(u,p){yt.call(M.prototype,p)||(c[p]=u)}),c}(),{chain:!1}),M.VERSION=i,Oi(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){M[c].placeholder=M}),Oi(["drop","take"],function(c,u){qe.prototype[c]=function(p){p=p===n?1:cn(Pe(p),0);var b=this.__filtered__&&!u?new qe(this):this.clone();return b.__filtered__?b.__takeCount__=En(p,b.__takeCount__):b.__views__.push({size:En(p,fe),type:c+(b.__dir__<0?"Right":"")}),b},qe.prototype[c+"Right"]=function(p){return this.reverse()[c](p).reverse()}}),Oi(["filter","map","takeWhile"],function(c,u){var p=u+1,b=p==me||p==he;qe.prototype[c]=function(C){var D=this.clone();return D.__iteratees__.push({iteratee:Se(C,3),type:p}),D.__filtered__=D.__filtered__||b,D}}),Oi(["head","last"],function(c,u){var p="take"+(u?"Right":"");qe.prototype[c]=function(){return this[p](1).value()[0]}}),Oi(["initial","tail"],function(c,u){var p="drop"+(u?"":"Right");qe.prototype[c]=function(){return this.__filtered__?new qe(this):this[p](1)}}),qe.prototype.compact=function(){return this.filter(Qn)},qe.prototype.find=function(c){return this.filter(c).head()},qe.prototype.findLast=function(c){return this.reverse().find(c)},qe.prototype.invokeMap=Re(function(c,u){return typeof c=="function"?new qe(this):this.map(function(p){return $c(p,c,u)})}),qe.prototype.reject=function(c){return this.filter(_h(Se(c)))},qe.prototype.slice=function(c,u){c=Pe(c);var p=this;return p.__filtered__&&(c>0||u<0)?new qe(p):(c<0?p=p.takeRight(-c):c&&(p=p.drop(c)),u!==n&&(u=Pe(u),p=u<0?p.dropRight(-u):p.take(u-c)),p)},qe.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},qe.prototype.toArray=function(){return this.take(fe)},ur(qe.prototype,function(c,u){var p=/^(?:filter|find|map|reject)|While$/.test(u),b=/^(?:head|last)$/.test(u),C=M[b?"take"+(u=="last"?"Right":""):u],D=b||/^find/.test(u);C&&(M.prototype[u]=function(){var T=this.__wrapped__,z=b?[1]:arguments,F=T instanceof qe,X=z[0],J=F||Ae(T),te=function(je){var Ze=C.apply(M,ks([je],z));return b&&de?Ze[0]:Ze};J&&p&&typeof X=="function"&&X.length!=1&&(F=J=!1);var de=this.__chain__,ve=!!this.__actions__.length,Oe=D&&!de,Le=F&&!ve;if(!D&&J){T=Le?T:new qe(this);var De=c.apply(T,z);return De.__actions__.push({func:mh,args:[te],thisArg:n}),new Ei(De,de)}return Oe&&Le?c.apply(this,z):(De=this.thru(te),Oe?b?De.value()[0]:De.value():De)})}),Oi(["pop","push","shift","sort","splice","unshift"],function(c){var u=Ru[c],p=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",b=/^(?:pop|shift)$/.test(c);M.prototype[c]=function(){var C=arguments;if(b&&!this.__chain__){var D=this.value();return u.apply(Ae(D)?D:[],C)}return this[p](function(T){return u.apply(Ae(T)?T:[],C)})}}),ur(qe.prototype,function(c,u){var p=M[u];if(p){var b=p.name+"";yt.call(Fo,b)||(Fo[b]=[]),Fo[b].push({name:u,func:p})}}),Fo[lh(n,S).name]=[{name:"wrapper",func:n}],qe.prototype.clone=pte,qe.prototype.reverse=mte,qe.prototype.value=gte,M.prototype.at=jie,M.prototype.chain=Uie,M.prototype.commit=qie,M.prototype.next=Gie,M.prototype.plant=Zie,M.prototype.reverse=Xie,M.prototype.toJSON=M.prototype.valueOf=M.prototype.value=Jie,M.prototype.first=M.prototype.head,Oc&&(M.prototype[Oc]=Kie),M},zo=qee();Nt?((Nt.exports=zo)._=zo,Xe._=zo):He._=zo}).call(dn)}(Du,Du.exports);var Un=Du.exports;const ho=t=>/^(19|20)\d\d-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$/.test(t),Qf={components:{VDatePicker:bb,CdsChevron:$s,CdsIcon:Be},props:{modelValue:{type:[String,Object],default:"",validator:t=>t===""||typeof t=="object"||ho(t)},label:{type:String,default:"Date"},disabled:{type:Boolean,default:!1},state:{type:String,default:"default"},range:{type:Boolean,default:!1},required:{type:Boolean,default:!1},errorMessage:{type:String,default:"Valor inválido"},fluid:{type:Boolean,default:!1},minDate:{type:String,default:"",validator:t=>t===""||ho(t)},maxDate:{type:String,default:"",validator:t=>t===""||ho(t)},placeholder:{type:String,default:"Selecione uma data"},showTodayDot:{type:Boolean,default:!1},variant:{type:String,default:"green"},mobile:{type:Boolean,default:!1}},data(){return{sassColorVariables:Yn,internalDate:ue.now(),isBeingFocused:!1,inputControl:0,attributes:[{dates:new Date,dot:!0}],variantColorData:{}}},computed:{errorState(){return this.state==="invalid"},hasSlots(){return!!Object.keys(this.$slots).length},inputClass(){let t="";return this.disabled?this.fluid?"date-input--disabled date-input--fluid":"date-input--disabled":(this.isBeingFocused?this.disabled||(this.state==="valid"?t+=" date-input--focused-valid":this.state==="invalid"&&(t+=" date-input--focused-invalid")):this.disabled||(this.state==="valid"?t+=" date-input--valid":this.state==="invalid"&&(t+=" date-input--invalid")),t+=this.fluid?" date-input--fluid":" date-input",t)},calendarDotColor(){return this.variantColorData.colorData[4].shade},calendarTextColor(){return this.variantColorData.colorData[7].shade},calendarTrailColor(){return this.variantColorData.colorData[1].shade},resolveMobile(){return this.mobile?"48px":"40px"}},watch:{modelValue(t,e){t!==e&&this.resolveInternalDate()},variant(t,e){t!==e&&this.updateColorData()}},created(){this.updateColorData()},mounted(){this.resolveInternalDate()},methods:{paleteBuilder:rr,updateColorData(){this.variantColorData=this.paleteBuilder(Yn.palete).find(t=>t.variantName.toLowerCase()===this.variant)},handleUpdateInput(t){if(this.range){this.$emit("update:modelValue",t.start&&t.end?{start:ue.fromJSDate(t.start).toFormat("yyyy-MM-dd"),end:ue.fromJSDate(t.end).toFormat("yyyy-MM-dd")}:"");return}this.$emit("update:modelValue",t?ue.fromJSDate(t).toFormat("yyyy-MM-dd"):"")},resolveInternalDate(){if(!this.modelValue){this.internalDate=this.range?null:"";return}if(this.range){this.internalDate=ho(this.modelValue.start)&&ho(this.modelValue.end)?{start:ue.fromFormat(this.modelValue.start,"yyyy-MM-dd"),end:ue.fromFormat(this.modelValue.end,"yyyy-MM-dd")}:{start:ue.now(),end:ue.now()};return}this.internalDate=ho(this.modelValue)?ue.fromFormat(this.modelValue,"yyyy-MM-dd"):ue.now()},resolveInputValue(t){return typeof t!="object"?t:!t.start&&!t.end||Un.isEmpty(t)?null:`${t.start} a ${t.end}`}}},_b=()=>{r.useCssVars(t=>({f4f202ae:t.resolveMobile,"303646c0":t.calendarTrailColor,"528f77da":t.calendarTextColor,"1cc9da1d":t.calendarDotColor}))},vb=Qf.setup;Qf.setup=vb?(t,e)=>(_b(),vb(t,e)):_b;const hj={class:"date-input__container"},fj={key:0},pj={key:1,class:"date-input__label"},mj={class:"label__content",for:"cds-text-input"},gj={key:0,class:"label__required-indicator"},yj=["value","disabled","placeholder","onClick"],bj={class:"date-input__icon"},_j={key:0,class:"date-input__error-message"};function vj(t,e,n,i,s,a){const o=r.resolveComponent("cds-chevron"),l=r.resolveComponent("cds-icon"),d=r.resolveComponent("v-date-picker");return r.openBlock(),r.createElementBlock("div",hj,[r.createElementVNode("span",null,[a.hasSlots?(r.openBlock(),r.createElementBlock("span",fj,[r.renderSlot(t.$slots,"label",{},void 0,!0)])):(r.openBlock(),r.createElementBlock("label",pj,[r.createElementVNode("div",mj,[r.createElementVNode("span",null,r.toDisplayString(n.label),1),n.required?(r.openBlock(),r.createElementBlock("span",gj," * ")):r.createCommentVNode("",!0)])]))]),r.createVNode(d,{id:"cds-date-input",modelValue:s.internalDate,"onUpdate:modelValue":[e[2]||(e[2]=h=>s.internalDate=h),a.handleUpdateInput],locale:"pt-BR",popover:{visibility:"click"},"min-date":n.minDate?new Date(n.minDate):null,"max-date":n.maxDate?new Date(n.maxDate):null,attributes:n.showTodayDot?s.attributes:{},color:"green","is-range":n.range},{"header-left-button":r.withCtx(({page:h})=>[r.createVNode(o,{direction:"left",onClick:f=>h.movePrevMonth()},null,8,["onClick"])]),"header-right-button":r.withCtx(({page:h})=>[r.createVNode(o,{direction:"right",onClick:f=>h.moveNextMonth()},null,8,["onClick"])]),default:r.withCtx(({inputValue:h,togglePopover:f,inputEvents:m})=>[r.createElementVNode("div",{class:r.normalizeClass(a.inputClass)},[r.createElementVNode("input",r.mergeProps({value:a.resolveInputValue(h),disabled:n.disabled,placeholder:n.placeholder,type:"text"},r.toHandlers(m,!0),{onClick:f,onFocus:e[0]||(e[0]=g=>s.isBeingFocused=!0),onBlur:e[1]||(e[1]=g=>s.isBeingFocused=!1)}),null,16,yj),r.createElementVNode("div",bj,[r.createVNode(l,{height:"20",width:"20",name:"calendar-outline"})])],2)]),_:1},8,["modelValue","min-date","max-date","attributes","is-range","onUpdate:modelValue"]),a.errorState&&!n.disabled?(r.openBlock(),r.createElementBlock("div",_j,r.toDisplayString(n.errorMessage),1)):r.createCommentVNode("",!0)])}const wj=Q(Qf,[["render",vj],["__scopeId","data-v-4ae75e00"]]),kj=["teal","green","blue","indigo","violet","pink","red","orange","amber"],Cj=["warning","error","info"],xj={directives:{"on-click-outside":yr.directive},components:{CdsIcon:Be,CdsButton:Qi},props:{variant:{type:String,default:"warning",validator:t=>Cj.includes(t)},description:{type:String,required:!0},modelValue:{type:Boolean,default:!1,required:!0},title:{type:String,required:!0},okButtonText:{type:String,default:"Continuar"},cancelButtonText:{type:String,default:"Cancelar"},actionButtonVariant:{type:String,default:"green",validator:t=>kj.includes(t)}},data(){return{innerValue:!1,tmp:""}},watch:{modelValue(t){this.innerValue=t}},mounted(){this.innerValue=this.modelValue},methods:{closeHandle(){this.innerValue=!this.innerValue,this.$emit("close",!0),this.$emit("update:modelValue",!1)},okHandle(){this.innerValue=!this.innerValue,this.$emit("ok",!0),this.$emit("update:modelValue",!1)}}},Sj={key:0,class:"cds-modal__backdrop"},Mj={key:0,class:"cds-modal"},Oj={class:"cds-modal__header-content"},Dj={key:0,class:"cds-modal__header-title"},Ej={key:1,class:"cds-modal__header-title"},Bj={key:2,class:"cds-modal__header-title"},Vj={class:"cds-modal__body"},Tj={class:"cds-modal__body-title"},Ij={class:"cds-modal__body-description"},$j={class:"cds-modal__footer"};function Aj(t,e,n,i,s,a){const o=r.resolveComponent("cds-icon"),l=r.resolveComponent("cds-button");return s.innerValue?(r.openBlock(),r.createElementBlock("div",Sj,[s.innerValue?(r.openBlock(),r.createElementBlock("div",Mj,[r.createElementVNode("header",{class:r.normalizeClass(`cds-modal__header--${n.variant}`)},[r.createElementVNode("div",Oj,[n.variant==="warning"?(r.openBlock(),r.createElementBlock("div",Dj,[r.createVNode(o,{class:r.normalizeClass(`cds-modal__header-icon--${n.variant}`),height:"40",width:"40",name:"warning-outline"},null,8,["class"]),e[2]||(e[2]=r.createTextVNode(" Atenção "))])):n.variant==="error"?(r.openBlock(),r.createElementBlock("div",Ej,[r.createVNode(o,{class:r.normalizeClass(`cds-modal__header-icon--${n.variant}`),height:"40",width:"40",name:"alert-outline"},null,8,["class"]),e[3]||(e[3]=r.createTextVNode(" Erro "))])):n.variant==="info"?(r.openBlock(),r.createElementBlock("div",Bj,[r.createVNode(o,{class:r.normalizeClass(`cds-modal__header-icon--${n.variant}`),height:"40",width:"40",name:"info-outline"},null,8,["class"]),e[4]||(e[4]=r.createTextVNode(" Informativo "))])):r.createCommentVNode("",!0)]),n.variant==="warning"?(r.openBlock(),r.createBlock(o,{key:0,class:r.normalizeClass(`cds-modal__header-detail--${n.variant}`),height:"60",width:"60",name:"warning-outline"},null,8,["class"])):n.variant==="error"?(r.openBlock(),r.createBlock(o,{key:1,class:r.normalizeClass(`cds-modal__header-detail--${n.variant}`),height:"60",width:"60",name:"alert-outline"},null,8,["class"])):n.variant==="info"?(r.openBlock(),r.createBlock(o,{key:2,class:r.normalizeClass(`cds-modal__header-detail--${n.variant}`),height:"60",width:"60",name:"info-outline"},null,8,["class"])):r.createCommentVNode("",!0)],2),r.createElementVNode("div",Vj,[r.createElementVNode("span",Tj,r.toDisplayString(n.title),1),r.createElementVNode("span",Ij,r.toDisplayString(n.description),1)]),r.createElementVNode("footer",$j,[n.variant==="warning"?(r.openBlock(),r.createBlock(l,{key:0,text:n.cancelButtonText,secondary:"",onClick:e[0]||(e[0]=d=>a.closeHandle())},null,8,["text"])):r.createCommentVNode("",!0),r.createVNode(l,{class:"footer__ok-button",text:n.okButtonText,variant:n.actionButtonVariant,onClick:e[1]||(e[1]=d=>a.okHandle())},null,8,["text","variant"])])])):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0)}const Nj=Q(xj,[["render",Aj],["__scopeId","data-v-cb60983c"]]),zj={components:{CdsChevron:$s},directives:{"on-click-outside":yr.directive},props:{content:{type:String,default:"Conteúdo",required:!0},label:{type:String,default:"Label",required:!0},disabled:{type:Boolean,default:!1},dropdownWidth:{type:Number,default:0}},data(){return{id:null,isActive:!1}},computed:{dynamicStyle(){const t=document.getElementById(this.id);if(!t)return null;const e=parseFloat(window.getComputedStyle(t).width);return e>this.dropdownWidth?{"--width":`${e}px`}:{"--width":`${this.dropdownWidth}px`}}},mounted(){this.id=`filter-pill$-${this._uid}`},methods:{activeSelection(){this.disabled||(this.isActive=!this.isActive,this.$emit("click",!0))},hide(){this.isActive=!this.isActive}}},Pj=["id"],Lj={class:"filter-pill__label"},Fj={class:"filter-pill__content"};function Rj(t,e,n,i,s,a){const o=r.resolveComponent("cds-chevron"),l=r.resolveDirective("on-click-outside");return r.openBlock(),r.createElementBlock("div",null,[r.createElementVNode("span",{id:s.id,class:r.normalizeClass([{"filter-pill__container--disabled":n.disabled,"filter-pill__container--active":s.isActive&&!n.disabled},"filter-pill__container"]),onClick:e[0]||(e[0]=(...d)=>a.activeSelection&&a.activeSelection(...d))},[r.createElementVNode("span",Lj,r.toDisplayString(n.label)+": ",1),r.createElementVNode("span",Fj,r.toDisplayString(n.content),1),(r.openBlock(),r.createBlock(o,{key:s.isActive,animate:"",size:"sm",direction:s.isActive?"top":"bottom"},null,8,["direction"]))],10,Pj),s.isActive?r.withDirectives((r.openBlock(),r.createElementBlock("div",{key:0,style:r.normalizeStyle(a.dynamicStyle),class:"filter-pill__dropdown"},[r.renderSlot(t.$slots,"default",{},void 0,!0)],4)),[[l,a.hide]]):r.createCommentVNode("",!0)])}const Hj=Q(zj,[["render",Rj],["__scopeId","data-v-f6d65f66"]]),Wj={components:{CdsIcon:Be,CdsChevron:$s},directives:{"on-click-outside":yr.directive},props:{items:{type:Array,default:()=>[],required:!0},variant:{type:String,default:"gray"},secondary:{type:Boolean,default:!1},ghost:{type:Boolean,default:!1},text:{type:String,default:"Conteúdo",required:!0},dropdownWidth:{type:Number,default:0}},data(){return{id:null,isActive:!1}},computed:{dynamicStyle(){const t=document.getElementById(this.id);if(!t)return null;const e=parseFloat(window.getComputedStyle(t).width);return e>this.dropdownWidth?{"--width":`${e}px`}:{"--width":`${this.dropdownWidth}px`}},dropDownButtonClasses(){return this.ghost?"dropdown-button__container--ghost ":this.secondary?"dropdown-button__container--secondary ":`dropdown-button__container--${this.variant}`}},mounted(){this.id=`dropdown-button$-${this._uid}`},methods:{activeSelection(){this.disabled||(this.isActive=!this.isActive,this.$emit("button-click",!0))},hide(){this.isActive=!this.isActive},handleOptionClick(t,e){this.isActive=!this.isActive,this.$emit("action-click",[t,e])}}},Yj=["id"],jj={class:"dropdown-button__text"},Uj=["onClick"],qj={class:"dropdown__text"};function Gj(t,e,n,i,s,a){const o=r.resolveComponent("cds-chevron"),l=r.resolveComponent("cds-icon"),d=r.resolveDirective("on-click-outside");return r.openBlock(),r.createElementBlock("div",null,[r.createElementVNode("span",{id:s.id,class:r.normalizeClass([a.dropDownButtonClasses,"dropdown-button__container"]),onClick:e[0]||(e[0]=(...h)=>a.activeSelection&&a.activeSelection(...h))},[r.createElementVNode("span",jj,r.toDisplayString(n.text),1),r.createVNode(o,{animate:"",size:"sm",light:!n.secondary&&!n.ghost,direction:s.isActive?"bottom":"top"},null,8,["light","direction"])],10,Yj),s.isActive?r.withDirectives((r.openBlock(),r.createElementBlock("div",{key:0,style:r.normalizeStyle(a.dynamicStyle),class:"dropdown-button__dropdown"},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.items,(h,f)=>(r.openBlock(),r.createElementBlock("div",{key:f},[r.createElementVNode("div",{class:"dropdown__container",onClick:m=>a.handleOptionClick(h.name,f)},[r.createVNode(l,{class:"dropdown__icon",height:"22",width:"22",name:h.icon},null,8,["name"]),r.createElementVNode("span",qj,r.toDisplayString(h.name),1)],8,Uj)]))),128))],4)),[[d,a.hide]]):r.createCommentVNode("",!0)])}const Kj=Q(Wj,[["render",Gj],["__scopeId","data-v-14a071ad"]]),Zj={components:{Doughnut:t3},props:{data:{type:Object,required:!0,default:()=>({datasets:[{label:"",data:[]}]})},variant:{type:String,required:!0,default:"green",validator:t=>["green","teal","turquoise","blue","indigo","violet","pink","red","orange","amber","gray","dark"].includes(t)},theme:{type:String,required:!1,default:"",validator:t=>["green","teal","turquoise","blue","indigo","violet","pink","red","orange","amber","gray","dark"].includes(t)},labels:{type:Array,required:!0,default:()=>[]},colors:{type:Array,default:()=>[],validator:t=>{const e=["green","teal","turquoise","blue","indigo","violet","pink","red","orange","amber","gray","dark"];return t.every(n=>e.includes(n))}}},data(){return{sassColorVariables:Yn,localChartData:{},localLabels:[],palletColors:[],themeColors:[],deleteFirstTwoColors:!1,chartOptions:{responsive:!0,maintainAspectRatio:!1,pieceLabel:{mode:"percentage",precision:1},plugins:{legend:{display:!0,labels:{usePointStyle:!0,pointStyle:"rectRounded"}}}}}},computed:{isColorsSet(){return this.colors&&this.colors.length>0},computedBackgroundColors(){return this.colors.map(t=>{const e=this.palletColors.find(n=>n.variantName.toLowerCase().includes(t));if(e)return e.color400})}},watch:{labels:{handler(t){this.localLabels=t},immediate:!0},variant:{handler(t){t==="gray"||t==="dark"?this.deleteFirstTwoColors=!0:this.deleteFirstTwoColors=!1},immediate:!0},data:{handler(t){this.mergeChartDataNoSelect(t)},immediate:!0}},mounted(){this.mergeChartDataNoSelect(this.data)},methods:{paleteBuilder:rr,palete(){this.palletColors=this.paleteBuilder(this.sassColorVariables.palete),this.removeFirstTwoElements()},themeResolver(){this.themeColors=this.paleteBuilder(this.sassColorVariables.chartThemes)},removeFirstTwoElements(){for(let t=0;t<this.palletColors.length;t++){const e=this.palletColors[t];this.deleteFirstTwoColors===!1&&(e.colorShades.splice(0,2),e.colorTokens.splice(0,2),e.colorData.splice(0,2))}},mergeChartDataNoSelect(t){const e={labels:this.localLabels,datasets:[]};if(t.forEach(n=>{n.datasets.forEach(i=>{const s={label:i.label,data:i.data,name:i.name,borderRadius:5};e.datasets.push(s)})}),this.theme.length&&this.colors.length===0){this.themeResolver();const n=this.isColorsSet?this.computedBackgroundColors:this.generateBackgroundColorWithTheme();this.setColors(e.datasets,n)}else{this.palete();const n=this.isColorsSet?this.computedBackgroundColors:this.generateBackgroundColor();this.setColors(e.datasets,n)}this.localChartData=e},generateBackgroundColor(){const t=this.variant.toLowerCase(),e=this.palletColors.find(n=>n.variantName.toLowerCase().includes(t));return e?e.colorShades:[]},generateBackgroundColorWithTheme(){const t=this.theme.toLowerCase(),e=this.themeColors.find(n=>n.variantName.toLowerCase().includes(t));return e?e.colorShades:[]},setColors(t,e){const n={};t.forEach(i=>{const s=i.name;n[s]||(n[s]=e.slice()),i.backgroundColor=n[s].splice(0,i.data.length),i.borderRadius=5})},clickHandler(t){const n=this.$refs["doughnut-chart"].chart.getElementsAtEventForMode(t,"nearest",{intersect:!0},!1),i={index:n[0].index,data:n[0].element.$context.raw,x:n[0].element.x,y:n[0].element.y,backgroundColor:n[0].element.$context.element.options.backgroundColor.trim()};this.$emit("chart-click",i)}}},Xj={class:"responsive-container"};function Jj(t,e,n,i,s,a){const o=r.resolveComponent("Doughnut");return r.openBlock(),r.createElementBlock("span",null,[r.createElementVNode("div",Xj,[r.createVNode(o,{ref:"doughnut-chart",data:s.localChartData,options:s.chartOptions,onClick:a.clickHandler},null,8,["data","options","onClick"])])])}const Qj=Q(Zj,[["render",Jj],["__scopeId","data-v-d71f8f8f"]]),eU=["teal","green","blue","indigo","violet","pink","red","orange","amber"],tU={components:{CdsButton:Qi},props:{image:{type:String,default:""},imageDescription:{type:String,default:"Imagem de Empty State"},title:{type:String,default:"Título do empty state",required:!0},text:{type:String,default:"Para sair dessa situação de empty state, realize a ação abaixo."},hideActionButton:{type:Boolean,default:!1},actionButtonText:{type:String,default:"Finalizar"},actionButtonVariant:{type:String,default:"green",validator:t=>eU.includes(t)}}},nU={class:"empty-state"},iU=["src","alt"],rU={class:"empty-state__title"},sU={class:"empty-state__text"};function aU(t,e,n,i,s,a){const o=r.resolveComponent("cds-button");return r.openBlock(),r.createElementBlock("div",nU,[r.renderSlot(t.$slots,"graphic-element",{},()=>[r.createElementVNode("img",{class:"empty-state__image",src:n.image,alt:n.imageDescription},null,8,iU)],!0),r.createElementVNode("div",rU,r.toDisplayString(n.title),1),r.createElementVNode("div",sU,[r.renderSlot(t.$slots,"text",{},()=>[r.createTextVNode(r.toDisplayString(n.text),1)],!0)]),n.hideActionButton?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(o,{key:0,class:"empty-state__button",text:n.actionButtonText,variant:n.actionButtonVariant,onClick:e[0]||(e[0]=l=>t.$emit("action-button-click",!0))},null,8,["text","variant"]))])}const oU=Q(tU,[["render",aU],["__scopeId","data-v-4769541f"]]),e0={components:{CdsIcon:Be},props:{modelValue:{default:null,required:!0},allowedExtensions:{type:String,default:null},size:{type:String,default:"md"},state:{type:String,default:"default"},textMessage:{type:String,default:"Arraste o arquivo aqui ou pesquise no seu dispositivo"},errorMessage:{type:String,default:"Valor inválido"},disabled:{type:Boolean,default:!1}},data(){return{file:this.modelValue&&!Un.isEmpty(this.modelValue)?this.modelValue:null,isOnDragEnterState:!1,isValid:!0,internalState:this.state,invalidExtensionError:null}},computed:{sizeClass(){return{inputTitle:`file-input__title--${this.size}`,holderPadding:"px-3",wrapperPadding:"px-1 py-1",contentPadding:"mt-3",svgScale:1}},acceptString(){if(this.allowedExtensions===null)return null;let t="";return this.allowedExtensions.split(",").forEach((n,i,s)=>{n&&n.trim().length>0&&(t+=`.${n.trim()}${i!==s.length-1?", ":""}`)}),t},computedAllowedMessage(){if(this.allowedExtensions){if(this.invalidExtensionError){const e=this.allowedExtensions.split(",").length===1?"":"s";return`${`São aceitos apenas arquivo${e} do${e} seguinte${e} tipo${e}:`} ${this.acceptString}.`}return this.errorMessage}else if(this.state==="invalid")return this.errorMessage;return null},textAlignmentResolver(){return this.size==="sm"?"flex-start":"center"},formatFilename(){if(this.file instanceof File&&this.file.name.length>16){const t=this.file.name.split(".");return t.length>2?`arquivo.${Un.last(t)}`:`${t[0].substring(0,16)}....${t[1]}`}return this.file.name}},watch:{file(t){this.$emit("update:modelValue",t)},state:{handler(t){this.internalState=t},immediate:!0},isValid:{handler(t){t?this.internalState="valid":this.internalState="invalid"},immediate:!0}},methods:{dropHandler(t){if(this.isValid=null,this.isOnDragEnterState=!1,t.preventDefault(),!t.dataTransfer.items||t.dataTransfer.items[0].kind!=="file"||this.disabled)return;const e=t.dataTransfer.items[0].getAsFile();if(this.isAValidExtension(e.name)){this.file=e,this.isValid=!0;return}this.isValid=!1,this.file=null},linkClick(){this.disabled||this.$refs.fileInput.click()},isAValidExtension(t){if(this.allowedExtensions===null)return!0;const e=this.allowedExtensions.split(",");let n=t.split(".");n=n[n.length-1].trim();const i=e.filter(s=>s===n).length>0;return this.invalidExtensionError=!i,i},handleFormFileChange(t){this.isValid="invalid";const[e]=t.target.files||{};if(this.isAValidExtension(e.name)){this.file=e,this.isValid=!0;return}this.isValid=!1,this.$nextTick().then(()=>{this.file=null})},handleRemove(){this.disabled||(this.isValid="default",this.file=null)}}},wb=()=>{r.useCssVars(t=>({"3c7a40a8":t.textAlignmentResolver}))},kb=e0.setup;e0.setup=kb?(t,e)=>(wb(),kb(t,e)):wb;const lU=["accept"],cU={key:0,class:"file-input__container"},dU={key:0},uU={key:1},hU={key:1,class:"file-input__container"},fU={key:1},pU={key:0,class:"file-input__alert-container"};function mU(t,e,n,i,s,a){const o=r.resolveComponent("cds-icon");return r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("div",null,[r.createElementVNode("div",{class:r.normalizeClass(["file-input text-center",{"file-input--drag-state":s.isOnDragEnterState,"file-input--sm":n.size==="sm","file-input--md":n.size==="md","file-input--lg":n.size==="lg","file-input--valid":n.state==="valid","file-input--invalid":n.state==="invalid"||!s.isValid,"file-input--disabled":n.disabled===!0,[a.sizeClass.holderPadding]:n.size}]),onDragover:e[2]||(e[2]=r.withModifiers(l=>s.isOnDragEnterState=!0,["prevent","stop"])),onDragenter:e[3]||(e[3]=r.withModifiers(l=>s.isOnDragEnterState=!0,["prevent","stop"])),onDragleave:e[4]||(e[4]=r.withModifiers(l=>s.isOnDragEnterState=!1,["prevent","stop"])),onDragend:e[5]||(e[5]=r.withModifiers(l=>s.isOnDragEnterState=!1,["prevent","stop"])),onDrop:e[6]||(e[6]=(...l)=>a.dropHandler&&a.dropHandler(...l)),onClick:e[7]||(e[7]=(...l)=>a.linkClick&&a.linkClick(...l))},[r.withDirectives(r.createElementVNode("input",{ref:"fileInput",type:"file",accept:a.acceptString,onChange:e[0]||(e[0]=(...l)=>a.handleFormFileChange&&a.handleFormFileChange(...l))},null,40,lU),[[r.vShow,!1]]),s.file?(r.openBlock(),r.createElementBlock("div",hU,[r.createVNode(o,{height:"24",width:"24",name:"document-text-outline",class:r.normalizeClass({"icon-document--sm":n.size==="sm","icon-document--md":n.size==="md","icon-document--lg":n.size==="lg","icon-document--disabled":n.disabled===!0})},null,8,["class"]),r.createElementVNode("div",{class:r.normalizeClass({[a.sizeClass.inputTitle]:n.size,[a.sizeClass.contentPadding]:n.size})},[s.isOnDragEnterState?(r.openBlock(),r.createElementBlock("div",fU," Solte aqui o seu arquivo ")):(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["on-drag-content__container",{"on-drag-content__container--disabled":n.disabled===!0}])},[r.createElementVNode("div",null,r.toDisplayString(a.formatFilename),1),r.createElementVNode("div",{class:"x-icon__container",onClick:e[1]||(e[1]=r.withModifiers((...l)=>a.handleRemove&&a.handleRemove(...l),["stop"]))},[r.createVNode(o,{height:"18",width:"18",name:"x-outline",class:r.normalizeClass(["file-input__close-button",{"file-input__close-button--sm":n.size==="sm","file-input__close-button--md":n.size==="md","file-input__close-button--lg":n.size==="lg","file-input__close-button--disabled":n.disabled===!0}])},null,8,["class"])])],2))],2)])):(r.openBlock(),r.createElementBlock("div",cU,[r.createVNode(o,{name:"upload-cloud-outline",class:r.normalizeClass({"icon-upload--sm":n.size==="sm","icon-upload--md":n.size==="md","icon-upload--lg":n.size==="lg","icon-upload--disabled":n.disabled===!0,[a.sizeClass.holderPadding]:n.size})},null,8,["class"]),r.createElementVNode("div",{class:r.normalizeClass({[a.sizeClass.inputTitle]:n.size,[a.sizeClass.contentPadding]:n.size})},[s.isOnDragEnterState?(r.openBlock(),r.createElementBlock("div",uU," Solte aqui o seu arquivo ")):(r.openBlock(),r.createElementBlock("div",dU,r.toDisplayString(n.textMessage),1))],2)]))],34)]),s.internalState==="invalid"?(r.openBlock(),r.createElementBlock("div",pU,r.toDisplayString(a.computedAllowedMessage),1)):r.createCommentVNode("",!0)],64)}const gU=Q(e0,[["render",mU],["__scopeId","data-v-33f6f0ff"]]),si=Q({__name:"Flexbox",props:{direction:{type:String,default:"row"},wrap:{type:String,default:"wrap"},gap:{type:[Number,String],default:0},justify:{type:String,default:"flex-start"},align:{type:String,default:"stretch"},tag:{type:String,default:"div",validator:t=>["div","span","main","footer","form","header","aside","ul","li"].includes(t)}},setup(t){r.useCssVars(s=>({"15973c19":t.align,"447601e0":i.value,"0e81cab8":t.justify,"1e6d0293":t.direction,"6c1738b6":t.wrap}));const e=t,n=s=>{const a=s.match(/^(\d+(\.\d+)?)(.*)$/);return a?a[3]?s:a?`${parseFloat(a[1])*4}px`:null:null},i=r.computed(()=>{let s="";return e.gap&&e.gap!==0&&e.gap!=="0"?Number.isFinite(e.gap)?`${e.gap*4}px`:n(e.gap):(e.rowGap?Number.isFinite(e.rowGap)?s=`${e.rowGap*4}px`:s=n(e.rowGap):s="0px",e.colGap?Number.isFinite(e.colGap)?s+=` ${e.colGap*4}px`:s+=` ${n(e.colGap)}`:s+=" 0px",s)});return(s,a)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.tag),{class:"flexbox"},{default:r.withCtx(()=>[r.renderSlot(s.$slots,"default",{},void 0,!0)]),_:3}))}},[["__scopeId","data-v-2a0c9a9e"]]),yU={class:"file-viewer__image"},bU={key:0,class:"file-viewer__extension"},_U={class:"file-viewer__info"},vU={class:"file-viewer__label"},wU={class:"file-viewer__file-name"},kU={key:0,class:"file-viewer__backdrop"},CU={class:"file-viewer__visualizer-header"},xU={class:"file-viewer__visualizer-label"},SU={class:"file-viewer__visualizer-actions"},MU={key:0},OU={key:1,class:"file-viewer__visualizer-empty-state"},DU=Q({__name:"FileViewer",props:{label:{type:String,required:!0,default:"Comprovante de residência"},fileUrl:{type:String,required:!0,default:"https://images.pexels.com/photos/1254140/pexels-photo-1254140.jpeg"},variant:{type:String,default:"green",validator:t=>nu.find(e=>e.name===t)}},emits:["close","download-click"],setup(t,{emit:e}){const n=e,i=t,s=r.ref(!1),a=r.ref(!1),o=["jpg","jpeg","png","webp"],l=r.computed(()=>{if(i.fileUrl){const k=Un.last(i.fileUrl.split("/")).match(/\.([A-Za-z]{3,4})/),S=Un.get(k,"1",null);if(S)return S.toLowerCase()}return"file"}),d=r.computed(()=>i.label.length>50?i.label.substring(0,50):i.label),h=()=>{s.value=!0},f=()=>{s.value=!1},m=()=>{a.value=!a.value,y(a.value)},g=()=>{a.value=!1,y(a.value),n("close",!0)},y=v=>{document.body.style.overflow=v?"hidden":"auto"},w=r.computed(()=>window.matchMedia("(max-width: 450px)").matches);return(v,k)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("div",{ref:"fileViewer",class:r.normalizeClass(["file-viewer",`file-viewer--${t.variant}`]),tabindex:"0",onMouseenter:h,onMouseleave:f,onClick:m,onKeyup:r.withKeys(g,["esc"])},[r.createElementVNode("div",yU,[s.value?(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass(["file-viewer__icon",`file-viewer__icon--${t.variant}`])},[r.createVNode(Be,{height:"32",width:"32",name:"image-outline"})],2)):(r.openBlock(),r.createElementBlock("div",bU,r.toDisplayString(l.value),1))]),r.createElementVNode("div",_U,[r.createElementVNode("div",vU,r.toDisplayString(d.value),1),r.createElementVNode("div",wU,r.toDisplayString(t.fileUrl),1),r.createElementVNode("div",null,[r.createElementVNode("a",{class:r.normalizeClass(["file-viewer__download",`file-viewer__download--${t.variant}`]),onClick:k[0]||(k[0]=r.withModifiers(S=>n("download-click",!0),["stop"]))}," Baixar arquivo ",2)])])],34),a.value?(r.openBlock(),r.createElementBlock("div",kU,[r.createElementVNode("div",CU,[r.createElementVNode("div",xU,r.toDisplayString(d.value),1),r.createElementVNode("div",SU,[r.createElementVNode("div",{class:"file-viewer__visualizer-download",onClick:k[1]||(k[1]=S=>n("download-click",!0))},[r.createVNode(Be,{height:"24",width:"24",name:"download-cloud-outline"}),w.value?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("span",MU," Baixar arquivo "))]),r.createVNode(Be,{class:"file-viewer__visualizer-close",height:"24",width:"24",name:"x-outline",onClick:g})])]),r.createElementVNode("div",{class:"file-viewer__visualizer-image-container",onClick:g},[o.includes(l.value)?(r.openBlock(),r.createBlock(eu,{key:0,class:"file-viewer__visualizer-image",src:t.fileUrl,onClick:k[2]||(k[2]=r.withModifiers(()=>{},["stop"]))},null,8,["src"])):(r.openBlock(),r.createElementBlock("div",OU,[r.createVNode(eu,{src:"https://i.imgur.com/d842Bek.png",width:"100",height:"100"}),k[3]||(k[3]=r.createTextVNode(" Não foi possível gerar uma pré-visualização do arquivo. "))]))])])):r.createCommentVNode("",!0)],64))}},[["__scopeId","data-v-c35f914b"]]);function nc(t=""){const e="ÀÁÂÃÄÅàáâãäåÒÓÔÕÕÖØòóôõöøÈÉÊËèéêëðÇçÐÌÍÎÏìíîïÙÚÛÜùúûüÑñŠšŸÿýŽž",n="AAAAAAaaaaaaOOOOOOOooooooEEEEeeeeeCcDIIIIiiiiUUUUuuuuNnSsYyyZz",i=t.length;let s=t.split(""),a;for(let o=0;o<i;o+=1)a=e.indexOf(t[o]),a!==-1&&(s[o]=n[a]);return s=s.join(""),s=s.split(".").join(""),s=s.split("-").join(""),s=s.split("/").join(""),s}const EU={directives:{"on-click-outside":yr.directive},props:{label:{type:String,default:"Label",required:!0},placeholder:{type:String,default:"Selecione...",required:!1},options:{type:Array,default:()=>[],required:!0},modelValue:{type:[Array,Object],required:!0},searchable:{type:Boolean,default:!1,required:!1},width:{type:String,default:"default",required:!1},fluid:{type:Boolean,default:!1,required:!1},disabled:{type:Boolean,default:!1,required:!1},optionsField:{type:String,default:"value",required:!1},returnValue:{type:Boolean,default:!1,required:!1}},data(){return{currentPos:0,active:!1,id:null,allowSearch:!1,localOptions:[],pristineOptions:[],localValue:"",selectElement:"",direction:"down",uniqueKey:er()}},computed:{inputClass(){let t="";const e="filter-select__input";return this.active&&this.direction==="down"?t=`${e}--opened-down`:this.active&&this.direction==="up"?t=`${e}--opened-up`:t=`${e}--closed`,this.disabled&&(t+=` ${e}--disabled`),t+=` ${e}--${Cm.find(n=>n===this.width)}`,t+=this.fluid?` ${e}--fluid`:` ${e}--fit`,t+=this.searchable?` ${e}--searchable`:"",t},capitalizedLabel(){return this.label.charAt(0).toUpperCase()+this.label.slice(1)}},watch:{modelValue:{handler(t,e){t!==e&&(t instanceof Object?this.localValue=t:this.localValue={id:t,value:t})},immediate:!0},options:{handler(t,e){t!==e&&(this.localOptions=t,this.pristineOptions=t)},immediate:!0},searchable:{handler(t,e){t!==e&&(this.allowSearch=t)},immediate:!0},localValue:{handler(t){this.localOptions.filter(n=>JSON.stringify(n)===JSON.stringify(t)).length!==0&&(this.returnValue?this.$emit("update:modelValue",t[this.optionsField]):this.$emit("update:modelValue",t))},deep:!0}},mounted(){this.id=`cds-filter-select-${this.uniqueKey}`,this.selectElement=this.$refs["cds-filter-select"]},methods:{filterOptions(){const t=nc(this.localValue[this.optionsField]),e=new RegExp(t,"i");this.localOptions=this.options.filter(n=>nc(n[this.optionsField]).search(e)>=0)},activeSelection(){this.disabled||this.$nextTick().then(()=>{const t=this.localOptions[this.currentPos];this.$refs[`${t[this.optionsField]}-${this.currentPos}`][0].classList.add("highlight")})},activateSelectionOnEnter(){this.disabled||(this.active=!this.active,typeof this.localOptions[this.currentPos]>"u"?this.localOptions=this.pristineOptions:this.localValue=sl(this.localOptions[this.currentPos]),this.$refs["filter-select-input"].blur())},activateSelectionOnClick(){let t=this.selectElement.getBoundingClientRect();t.top+t.height+286<window.innerHeight?this.direction="down":this.direction="up",!this.disabled&&(this.active=!this.active)},hide(){this.localOptions=this.pristineOptions,this.active=!1},selectItem(){this.localValue=sl(this.localOptions[this.currentPos])},getLiInDOM(t){const e=this.localOptions[t];return this.$refs[`${e[this.optionsField]}-${t}`][0]},handleOptionVisibility(t,e,n){const i=t.getBoundingClientRect(),s=this.$refs["filter-select-options"],a=s.getBoundingClientRect();n==="up"&&i.top<=a.top&&(s.scrollTop+=e),n==="down"&&i.top>=a.bottom&&(s.scrollTop+=e)},highlightOnArrowDown(){if(this.currentPos===this.localOptions.length-1)return;this.currentPos+=1;const t=this.getLiInDOM(this.currentPos),e=this.getLiInDOM(this.currentPos-1);t.classList.add("highlight"),e.classList.remove("highlight"),this.handleOptionVisibility(t,37,"down")},highlightOnArrowUp(){if(this.currentPos===0)return;const t=this.getLiInDOM(this.currentPos),e=this.getLiInDOM(this.currentPos-1);t.classList.remove("highlight"),e.classList.add("highlight"),this.handleOptionVisibility(t,-37,"up"),this.currentPos-=1},highlightOnMouseOver(t){this.currentPos=t,this.getLiInDOM(this.currentPos).classList.add("highlight")},unhighlightOnMouseOut(){this.getLiInDOM(this.currentPos).classList.remove("highlight")}}},BU={ref:"cds-filter-select",class:"filter-select"},VU={class:"filter-select__label"},TU={for:"cds-filter-select"},IU=["id","onkeypress","placeholder","disabled","readonly"],$U={key:0,class:"option__container"},AU=["onMouseover"],NU={key:1,class:"option__container"};function zU(t,e,n,i,s,a){const o=r.resolveDirective("on-click-outside");return r.openBlock(),r.createElementBlock("div",BU,[r.withDirectives((r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["filter-select__container",a.inputClass]),onKeydown:[e[6]||(e[6]=r.withKeys(r.withModifiers((...l)=>a.activateSelectionOnEnter&&a.activateSelectionOnEnter(...l),["prevent"]),["enter"])),e[7]||(e[7]=r.withKeys(r.withModifiers((...l)=>a.highlightOnArrowDown&&a.highlightOnArrowDown(...l),["prevent"]),["arrow-down"])),e[8]||(e[8]=r.withKeys(r.withModifiers((...l)=>a.highlightOnArrowUp&&a.highlightOnArrowUp(...l),["prevent"]),["arrow-up"]))],onClick:e[9]||(e[9]=(...l)=>a.activateSelectionOnClick&&a.activateSelectionOnClick(...l))},[r.createElementVNode("label",VU,[r.createElementVNode("div",TU,[r.createElementVNode("span",null,r.toDisplayString(a.capitalizedLabel),1)])]),r.withDirectives(r.createElementVNode("input",{id:t.$attrs.id||s.id,ref:"filter-select-input","onUpdate:modelValue":e[0]||(e[0]=l=>s.localValue[n.optionsField]=l),type:"text",autocomplete:"off",onkeypress:`return ${s.allowSearch};`,class:r.normalizeClass(a.inputClass),placeholder:n.placeholder,disabled:n.disabled,readonly:!n.searchable,onInput:e[1]||(e[1]=(...l)=>a.filterOptions&&a.filterOptions(...l)),onFocus:e[2]||(e[2]=(...l)=>a.activeSelection&&a.activeSelection(...l)),onBlur:e[3]||(e[3]=(...l)=>a.hide&&a.hide(...l))},null,42,IU),[[r.vModelText,s.localValue[n.optionsField]]]),r.withDirectives(r.createElementVNode("div",{ref:"filter-select-options",class:r.normalizeClass(["filter-select__options",{"filter-select__options--thin":n.width==="thin","filter-select__options--default":n.width==="default","filter-select__options--wide":n.width==="wide","filter-select__options--fluid":n.fluid,"filter-select__options--down":s.direction==="down","filter-select__options--up":s.direction==="up"}])},[s.localOptions.length>0?(r.openBlock(),r.createElementBlock("ul",$U,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.localOptions,(l,d)=>(r.openBlock(),r.createElementBlock("li",{key:d,ref_for:!0,ref:`${l[n.optionsField]}-${d}`,class:"option__text",onMousedown:e[4]||(e[4]=(...h)=>a.selectItem&&a.selectItem(...h)),onMouseover:h=>a.highlightOnMouseOver(d),onMouseout:e[5]||(e[5]=h=>a.unhighlightOnMouseOut())},r.toDisplayString(l[n.optionsField]),41,AU))),128))])):(r.openBlock(),r.createElementBlock("ul",NU,e[10]||(e[10]=[r.createElementVNode("li",{class:"option__text--muted"}," Nenhuma opção encontrada ",-1)])))],2),[[r.vShow,s.active]]),r.createElementVNode("span",{class:r.normalizeClass(s.active?"filter-select__chevron--opened":"filter-select__chevron--closed")},null,2)],34)),[[o,a.hide]])],512)}const PU=Q(EU,[["render",zU],["__scopeId","data-v-fba155a5"]]),LU={props:{variant:{type:String,default:"green"},text:{type:String,default:"Lorem ipsum"},disabled:{type:Boolean,default:!1}},data(){return{predefinedColors:["green","teal","turquoise","blue","indigo","violet","pink","red","orange","amber"]}},computed:{predefinedColor(){return this.predefinedColors.indexOf(this.variant)>-1?`link-button--${this.variant}`:"link-button--green"},computedStyle(){const t=this.disabled?"--disabled":"--active";return`${this.predefinedColor}${t}`}},methods:{clickHandler(){this.disabled||this.$emit("click",!0)}}},FU={id:"cds-link-button"};function RU(t,e,n,i,s,a){return r.openBlock(),r.createElementBlock("span",FU,[r.createElementVNode("button",{class:r.normalizeClass(["link-button__container",a.computedStyle]),onClick:e[0]||(e[0]=o=>a.clickHandler())},[r.renderSlot(t.$slots,"default",{},()=>[r.createTextVNode(r.toDisplayString(n.text),1)],!0)],2)])}const HU=Q(LU,[["render",RU],["__scopeId","data-v-17beab84"]]),WU={props:{variant:{type:String,default:"green"},targetId:{type:String,default:""},position:{type:String,default:"top-end"}}},YU={id:"cds-pulsar"};function jU(t,e,n,i,s,a){const o=r.resolveDirective("cds-floatify");return r.withDirectives((r.openBlock(),r.createElementBlock("div",YU,[r.createElementVNode("div",{class:r.normalizeClass(`pulsar__outer-circle--${n.variant}`)},[r.createElementVNode("div",{class:r.normalizeClass(`pulsar__inner-circle--${n.variant}`)},null,2)],2)])),[[o,n.targetId,n.position]])}const Cb=Q(WU,[["render",jU],["__scopeId","data-v-6f878a26"]]),UU={components:{CdsPulsar:Cb,CdsIcon:Be},directives:{"on-click-outside":yr.directive},props:{modelValue:{type:Boolean,default:!0,required:!0},title:{type:String,default:"Nova funcionalidade!",validator:t=>t.length<=22},startOnScroll:{type:Boolean,default:!1,required:!1},url:{type:String,default:""},variant:{type:String,default:"green"},targetId:{type:String,default:""}},data(){return{isActive:this.modelValue,id:null,pulsarId:null,containerId:null,position:"right",isExpanded:!1,waitingConfirmation:!1,boxTop:0}},watch:{isActive(t){this.$emit("update:modelValue",t)},modelValue(t){this.isActive=t,this.handleEventAnimation()}},mounted(){this.handleEventAnimation()},methods:{handleEventAnimation(){this.id=`floating-assistant$-${this._uid}`,this.pulsarId=`floating-assistant-pulsar$-${this._uid}`,this.containerId=`floating-assistant-container$-${this._uid}`,this.startOnScroll?window.addEventListener("scroll",this.startAnimation):this.startAnimation()},startAnimation(){this.startOnScroll?this.isScrolledIntoView()&&setTimeout(()=>{document.getElementById(this.id).classList.add("animation"),window.removeEventListener("scroll",this.startAnimation)},1e3):setTimeout(()=>{document.getElementById(this.id).classList.add("animation")},1e3)},isScrolledIntoView(){const{top:t,bottom:e}=document.getElementById(this.id).getBoundingClientRect();return t>=0&&e<=window.innerHeight},expand(){this.waitingConfirmation||(this.isExpanded=!0)},collapse(){this.isExpanded=!1},close(){this.collapse(),this.waitingConfirmation=!0},confirmationHandle(t){if(!t){this.isActive=!1;return}this.$emit("disable-tip",!0),this.isActive=!1}}},qU=["id"],GU=["id"],KU={key:0},ZU={key:1},XU={key:0,class:"floating-assistant__content"},JU={key:0,class:"floating-assistant__footer"},QU=["href"],eq={key:1,class:"floating-assistant__subtitle"},tq={key:2};function nq(t,e,n,i,s,a){const o=r.resolveComponent("cds-pulsar"),l=r.resolveComponent("cds-icon"),d=r.resolveDirective("on-click-outside"),h=r.resolveDirective("cds-floatify");return r.openBlock(),r.createElementBlock("div",{id:s.id,class:r.normalizeClass(["floating-assistant",{"floating-assistant--hidden":!s.isActive}])},[r.createVNode(o,{id:s.pulsarId,"target-id":n.targetId,variant:n.variant},null,8,["id","target-id","variant"]),r.withDirectives((r.openBlock(),r.createElementBlock("div",{id:s.containerId,class:"floating-assistant__container"},[r.withDirectives((r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["floating-assistant__dropdown",{"floating-assistant__dropdown--expanded":s.isExpanded,"floating-assistant__dropdown--confirmation":s.waitingConfirmation}]),onClick:e[3]||(e[3]=(...f)=>a.expand&&a.expand(...f))},[s.waitingConfirmation?(r.openBlock(),r.createElementBlock("div",KU,[e[4]||(e[4]=r.createTextVNode(" Ocultar dica para sempre? ")),r.createElementVNode("span",{class:r.normalizeClass(`floating-assistant__link--${n.variant}`),onClick:e[0]||(e[0]=f=>a.confirmationHandle(!0))}," Sim ",2),e[5]||(e[5]=r.createTextVNode(" / ")),r.createElementVNode("span",{class:r.normalizeClass(`floating-assistant__link--${n.variant}`),onClick:e[1]||(e[1]=f=>a.confirmationHandle(!1))}," Não ",2)])):(r.openBlock(),r.createElementBlock("div",ZU,[r.createElementVNode("span",{class:r.normalizeClass(`floating-assistant__title--${n.variant}`)},r.toDisplayString(n.title),3),s.isExpanded?(r.openBlock(),r.createElementBlock("div",XU,[r.renderSlot(t.$slots,"default",{},void 0,!0),n.url?(r.openBlock(),r.createElementBlock("span",JU,[e[6]||(e[6]=r.createTextVNode(" Você pode saber mais ")),r.createElementVNode("a",{class:r.normalizeClass(`floating-assistant__link--${n.variant}`),href:n.url,target:"_blank"}," clicando aqui ",10,QU),e[7]||(e[7]=r.createTextVNode(". "))])):r.createCommentVNode("",!0)])):(r.openBlock(),r.createElementBlock("span",eq," Clique para mais informações "))])),s.isExpanded?(r.openBlock(),r.createElementBlock("div",tq,[r.createElementVNode("div",{onClick:e[2]||(e[2]=r.withModifiers((...f)=>a.close&&a.close(...f),["stop"]))},[r.createVNode(l,{class:"floating-assistant__close-button",name:"x-outline",height:"20",width:"20"})])])):r.createCommentVNode("",!0)],2)),[[d,a.collapse]])],8,GU)),[[h,s.pulsarId,s.position]])],10,qU)}const iq=Q(UU,[["render",nq],["__scopeId","data-v-12f84ef7"]]),t0={directives:{"on-click-outside":yr.directive},props:{modelValue:{type:Boolean,default:!1},width:{type:[String,Number],default:250},fitContentWidth:{type:Boolean,default:!1},targetId:{type:String,default:""},defaultPlacement:{type:String,default:null}},data(){return{id:"",target:"",popover:"",popperInstance:null,uniqueKey:er()}},computed:{variationPlacement(){return this.rightAligned?"end":"start"},popoverWidth(){return this.fitContentWidth?"fit-content":`${this.width}px`}},watch:{modelValue(t){t?this.show():this.hide()},targetId(t){this.setPopper(t)}},mounted(){this.id=`cds-popover-${this.uniqueKey}`,this.setPopper(this.targetId)},methods:{setPopper(t){this.$nextTick(()=>{this.target=document.querySelector(`[id='${t}']`),this.popover=document.querySelector(`#${this.id}`),this.popperInstance=tl(this.target,this.popover,{placement:this.defaultPlacement===null?"bottom":this.defaultPlacement,modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"flip",options:{fallbackPlacements:["top"]}}]})})},show(){this.popover.setAttribute("data-show",""),this.popover.classList.remove("popover-hide"),this.popover.classList.add("popover-show"),this.$emit("update:modelValue",!0),this.popperInstance.update()},hide(){this.popover.classList.remove("popover-show"),this.popover.classList.add("popover-hide"),setTimeout(()=>{this.popover.removeAttribute("data-show")},350),this.$nextTick(()=>{this.popperInstance.setOptions(t=>({...t,modifiers:[...t.modifiers,{name:"eventListeners",enabled:!1}]})),this.$emit("update:modelValue",!1)})}}},xb=()=>{r.useCssVars(t=>({d472e712:t.popoverWidth}))},Sb=t0.setup;t0.setup=Sb?(t,e)=>(xb(),Sb(t,e)):xb;const rq=["id"];function sq(t,e,n,i,s,a){const o=r.resolveDirective("on-click-outside");return r.withDirectives((r.openBlock(),r.createElementBlock("div",{id:t.$attrs.id||s.id,class:"richTooltip"},[r.renderSlot(t.$slots,"default",{},void 0,!0)],8,rq)),[[o,a.hide]])}const n0=Q(t0,[["render",sq],["__scopeId","data-v-3debc962"]]),i0={components:{CdsRichTooltip:n0},props:{value:{type:Number,default:0,validator:t=>t>=0&&t<=100},variant:{type:String,default:"green"},size:{type:Number,default:300},subtitle:{type:String,default:""},target:{type:Number,default:0,validator:t=>t>=0&&t<=100},showTarget:{type:Boolean,default:!1}},data(){return{showPopover:!1,uniqueKey:er()}},computed:{progressStyle(){return{"--value":this.value,"--size":this.size}},chartProgressValue(){return 198*(1-this.value/100)},targetValue(){let t=this.target-1;return t>=98&&(t=98),198*(1-t/100)},formatedValue(){return`${this.value.toLocaleString("pt-br",{minimumFractionDigits:1})}%`}},methods:{hasSlot:Xs}},Mb=()=>{r.useCssVars(t=>({eaad879e:t.chartProgressValue,cfd9d6d6:t.targetValue}))},Ob=i0.setup;i0.setup=Ob?(t,e)=>(Mb(),Ob(t,e)):Mb;const aq={class:"responsive-container"},oq=["id"],lq={transform:"scale(1.20) translate(-9.5 -12)"},cq={x:"50%",y:"50%","dominant-baseline":"middle","text-anchor":"middle",class:"value"},dq={x:"50%",y:"62%","dominant-baseline":"middle","text-anchor":"middle",class:"subtitle"};function uq(t,e,n,i,s,a){const o=r.resolveComponent("cds-rich-tooltip");return r.openBlock(),r.createElementBlock("span",null,[r.createElementVNode("div",aq,[r.createElementVNode("div",{class:"gauge-chart",style:r.normalizeStyle(a.progressStyle)},[(r.openBlock(),r.createElementBlock("svg",{id:s.uniqueKey,class:r.normalizeClass(`svg--${n.variant}`),viewBox:"0 0 110 100",onMouseover:e[0]||(e[0]=l=>s.showPopover=!0),onMouseleave:e[1]||(e[1]=l=>s.showPopover=!1)},[e[5]||(e[5]=r.createElementVNode("linearGradient",{id:"gradient",x1:"0",y1:"0",x2:"0",y2:"100%",gradientTransform:"rotate(-340)"},[r.createElementVNode("stop",{class:"stop",offset:"1%"}),r.createElementVNode("stop",{class:"stop-2",offset:"99%"})],-1)),r.createElementVNode("g",lq,[e[3]||(e[3]=r.createElementVNode("path",{class:"indicator-bar",d:"M30,90 A40,40 0 1,1 80,90",fill:"none"},null,-1)),e[4]||(e[4]=r.createElementVNode("path",{fill:"none",class:"indicator-progress",d:"M30,90 A40,40 0 1,1 80,90"},null,-1)),n.showTarget?(r.openBlock(),r.createElementBlock("path",{key:0,fill:"none",class:r.normalizeClass(["indicator-target",`indicator-target--${n.variant}`]),d:"M30,90 A40,40 0 1,1 80,90"},null,2)):r.createCommentVNode("",!0)]),r.createElementVNode("text",cq,r.toDisplayString(a.formatedValue),1),r.createElementVNode("text",dq,r.toDisplayString(n.subtitle),1)],42,oq))],4),a.hasSlot(t.$slots,"popover")?(r.openBlock(),r.createBlock(o,{key:0,modelValue:s.showPopover,"onUpdate:modelValue":e[2]||(e[2]=l=>s.showPopover=l),"default-placement":"top","target-id":s.uniqueKey},{default:r.withCtx(()=>[r.renderSlot(t.$slots,"popover",{},void 0,!0)]),_:3},8,["modelValue","target-id"])):r.createCommentVNode("",!0)])])}const hq=Q(i0,[["render",uq],["__scopeId","data-v-0c7cac1e"]]),fq=Q({__name:"Grid",props:{cols:{type:[Number,String,Array],default:1},rows:{type:[Number,String,Array],default:1},autoCols:{type:[Number,String],default:1},autoRows:{type:[Number,String],default:1},gap:{type:[Number,String],default:0},rowGap:{type:[Number,String],default:0},colGap:{type:[Number,String],default:0},justify:{type:String,default:"stretch"},align:{type:String,default:"stretch"},tag:{type:String,default:"div",validator:t=>["div","span","main","footer","form","header","aside","ul","li"].includes(t)}},setup(t){r.useCssVars(h=>({"3618dc9f":t.align,"6f11a316":i.value,"1a633418":l.value,"35421a4c":d.value,"83b531c6":a.value,"16d239b6":o.value,"014a9cac":t.justify}));const e=t,n=h=>{const f=h.match(/^(\d+(\.\d+)?)(.*)$/);return f?f[3]?h:f?`${parseFloat(f[1])*4}px`:null:null},i=r.computed(()=>{let h="";return e.gap&&e.gap!==0&&e.gap!=="0"?Number.isFinite(e.gap)?`${e.gap*4}px`:n(e.gap):(e.rowGap?Number.isFinite(e.rowGap)?h=`${e.rowGap*4}px`:h=n(e.rowGap):h="0px",e.colGap?Number.isFinite(e.colGap)?h+=` ${e.colGap*4}px`:h+=` ${n(e.colGap)}`:h+=" 0px",h)}),s=h=>Array.isArray(h)?h.reduce((f,m)=>`${f} ${m}`):Number.isFinite(h)?`${"1fr ".repeat(h)}`:`${h}`,a=r.computed(()=>s(e.cols)),o=r.computed(()=>s(e.rows)),l=r.computed(()=>s(e.autoCols)),d=r.computed(()=>s(e.autoRows));return(h,f)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.tag),{class:"grid"},{default:r.withCtx(()=>[r.renderSlot(h.$slots,"default",{},void 0,!0)]),_:3}))}},[["__scopeId","data-v-02611aad"]]),pq={class:"grid-item"},mq=Q({__name:"GridItem",props:{colSpan:{type:[Number,String],default:"auto"},rowSpan:{type:[Number,String],default:"1"},colStart:{type:[Number,String],default:"auto"},rowStart:{type:[Number,String],default:"auto"},gap:{type:[Number,String],default:0},rowGap:{type:[Number,String],default:0},colGap:{type:[Number,String],default:0},subGrid:{type:Boolean,default:!1},justify:{type:String,default:"auto"},align:{type:String,default:"auto"},direction:{type:String,default:"row"}},setup(t){r.useCssVars(o=>({"74e6f3ab":t.align,"00119c0e":s.value,"057d4122":a.value,"0cc4bb96":n.value,"5597afb4":i.value,"7a019494":t.justify,"5912a125":t.direction}));const e=t,n=r.computed(()=>{if(!e.colSpan&&!e.colStart)return"auto";const o=e.colStart?e.colStart:1,l=e.colSpan?`span ${e.colSpan}`:1;return`${o} / ${l}`}),i=r.computed(()=>{if(!e.rowSpan&&!e.rowStart)return"auto";const o=e.rowStart?e.rowStart:1,l=e.rowSpan?`span ${e.rowSpan}`:1;return`${o} / ${l}`}),s=r.computed(()=>e.subGrid?"grid":"block"),a=r.computed(()=>{let o="";return e.gap&&e.gap!==0&&e.gap!=="0"?Number.isFinite(e.gap)?`${e.gap}px`:e.gap:(e.rowGap?Number.isFinite(e.rowGap)?o=`${e.rowGap}px`:o=e.rowGap:o="0px",e.colGap?Number.isFinite(e.colGap)?o+=` ${e.colGap}px`:o+=` ${e.colGap}`:o+=" 0px",o)});return(o,l)=>(r.openBlock(),r.createElementBlock("div",pq,[r.renderSlot(o.$slots,"default",{},void 0,!0)]))}},[["__scopeId","data-v-47eebbde"]]),r0={props:{variant:{type:String,default:"info"},animated:{type:Boolean,default:!1},duration:{type:Number,default:1},delay:{type:Number,default:0},highlightedText:{type:[String,null],default:null},caseSensitive:{type:Boolean,default:!1}},data(){return{substrings:[]}},computed:{hasSlots(){return!!Object.keys(this.$slots).length},slotString(){return this.hasSlots?this.$slots.default()[0].children:""},normalizedSlotString(){return this.normalize(this.slotString)},normalizedHighlightText(){return this.normalize(this.highlightedText)},isAValidSubstring(){return this.normalizedSlotString.includes(this.normalizedHighlightText)},paddingResolver(){return this.highlightedText?"4px 1px":"4px"},dynamicHighlightClass(){let t="";switch(this.animated&&(t="highlight__container--highlighted"),this.variant){case"info":return`${t} highlight__container--info`;case"success":return`${t} highlight__container--success`;case"danger":return`${t} highlight__container--danger`;default:return`${t} highlight__container--info`}},dynamicStyle(){return{"--duration":`${this.duration}s`,"--delay":`${this.delay}s`}}},watch:{highlightedText(){this.splitContent()}},mounted(){this.splitContent()},methods:{normalize(t){const e={a:"[aáàâã]",á:"[aáàâã]",à:"[aáàâã]",â:"[aáàâã]",ã:"[aáàâã]",e:"[eéê]",é:"[eéê]",ê:"[eéê]",i:"[ií]",í:"[ií]",o:"[oóôõ]",ó:"[oóôõ]",ô:"[oóôõ]",õ:"[oóôõ]",u:"[uúü]",ú:"[uúü]",ü:"[uúü]"},n={a:"[aáàâã]",á:"[aáàâã]",à:"[aáàâã]",â:"[aáàâã]",ã:"[aáàâã]",e:"[eéê]",é:"[eéê]",ê:"[eéê]",i:"[ií]",í:"[ií]",o:"[oóôõ]",ó:"[oóôõ]",ô:"[oóôõ]",õ:"[oóôõ]",u:"[uúü]",ú:"[uúü]",ü:"[uúü]",A:"[AÁÀÂÃ]",Á:"[AÁÀÂÃ]",À:"[AÁÀÂÃ]",Â:"[AÁÀÂÃ]",Ã:"[AÁÀÂÃ]",E:"[EÉÊ]",É:"[EÉÊ]",Ê:"[EÉÊ]",I:"[IÍ]",Í:"[IÍ]",O:"[OÓÔÕ]",Ó:"[OÓÔÕ]",Ô:"[OÓÔÕ]",Õ:"[OÓÔÕ]",U:"[UÚÜ]",Ú:"[UÚÜ]",Ü:"[UÚÜ]"};return this.caseSensitive?t==null?void 0:t.replace(/[aáàâãeéêiíoóôõuúüAÁÀÂÃEÉÊIÍOÓÔÕUÚÜ]/g,i=>n[i]||i):t==null?void 0:t.toLowerCase().replace(/[aáàâãeéêiíoóôõuúü]/g,i=>e[i]||i)},splitContent(){let t=this.caseSensitive?"g":"gi",e=new RegExp(`(${this.normalizedHighlightText})`,t),n=this.slotString.split(e);this.substrings=n.map((i,s)=>({string:i,highlighted:new RegExp(`^${this.normalizedHighlightText}$`,t).test(this.caseSensitive?i:i==null?void 0:i.toLowerCase()),id:s}))}}},Db=()=>{r.useCssVars(t=>({"6b796b56":t.paddingResolver}))},Eb=r0.setup;r0.setup=Eb?(t,e)=>(Db(),Eb(t,e)):Db;function gq(t,e,n,i,s,a){return n.highlightedText&&a.isAValidSubstring?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:0},r.renderList(s.substrings,o=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:o.id},[o.highlighted?(r.openBlock(),r.createElementBlock("mark",{key:0,class:r.normalizeClass(["highlight__container",a.dynamicHighlightClass]),style:r.normalizeStyle(a.dynamicStyle)},r.toDisplayString(o.string),7)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(r.toDisplayString(o.string),1)],64))],64))),128)):(r.openBlock(),r.createElementBlock("mark",{key:1,class:r.normalizeClass(["highlight__container",a.dynamicHighlightClass]),style:r.normalizeStyle(a.dynamicStyle)},[r.renderSlot(t.$slots,"default",{},void 0,!0)],6))}const Bb=Q(r0,[["render",gq],["__scopeId","data-v-3c7c0a20"]]),Vb=["sm","md","lg"],yq={components:{CdsIcon:Be,CdsTooltip:Xc},props:{size:{type:String,default:"md",validator:t=>Vb.includes(t)},icon:{type:String,default:"create-outline"},disabled:{type:Boolean,default:!1},tooltipText:{type:String,default:null},feedbackOnClick:{type:Boolean,default:!1},feedbackIcon:{type:String,default:"check-outline"},variant:{type:String,default:"white"}},data(){return{predefinedSizes:Vb,innerTooltipText:this.tooltipText,internalIcon:this.icon,inputControlPanel:0}},computed:{predefinedSize(){return`cds-icon-button--${this.size}`},computedModifiers(){const t=this.disabled?"cds-icon-button--disabled":"",e=`cds-icon-button__container--${this.variant}`;return`${t} ${this.predefinedSize} ${e}`}},methods:{clickHandler(t){this.disabled||(this.feedbackOnClick&&(this.inputControlPanel+=1,this.internalIcon=this.feedbackIcon,setTimeout(()=>{this.internalIcon=this.icon,this.inputControlPanel+=1},1e3),this.inputControlPanel+=1),this.$emit("cds-click",t))}}},bq={id:"cds-icon-button"};function _q(t,e,n,i,s,a){const o=r.resolveComponent("cds-icon");return r.openBlock(),r.createElementBlock("span",bq,[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(n.tooltipText?"cds-tooltip":"span"),{text:s.innerTooltipText},{default:r.withCtx(()=>[r.createElementVNode("button",{class:r.normalizeClass(["cds-icon-button__container",a.computedModifiers]),onClick:e[0]||(e[0]=(...l)=>a.clickHandler&&a.clickHandler(...l))},[(r.openBlock(),r.createBlock(o,{key:s.inputControlPanel,name:s.internalIcon,class:"cds-icon-button__icon"},null,8,["name"]))],2)]),_:1},8,["text"]))])}const s0=Q(yq,[["render",_q],["__scopeId","data-v-ad879e60"]]);var Eu={exports:{}};Eu.exports,function(t,e){var n=200,i="__lodash_hash_undefined__",s=1,a=2,o=9007199254740991,l="[object Arguments]",d="[object Array]",h="[object AsyncFunction]",f="[object Boolean]",m="[object Date]",g="[object Error]",y="[object Function]",w="[object GeneratorFunction]",v="[object Map]",k="[object Number]",S="[object Null]",E="[object Object]",$="[object Promise]",x="[object Proxy]",I="[object RegExp]",V="[object Set]",P="[object String]",A="[object Symbol]",R="[object Undefined]",q="[object WeakMap]",ne="[object ArrayBuffer]",G="[object DataView]",ie="[object Float32Array]",me="[object Float64Array]",ee="[object Int8Array]",he="[object Int16Array]",pe="[object Int32Array]",be="[object Uint8Array]",we="[object Uint8ClampedArray]",H="[object Uint16Array]",fe="[object Uint32Array]",oe=/[\\^$.*+?()[\]{}|]/g,Ee=/^\[object .+?Constructor\]$/,Me=/^(?:0|[1-9]\d*)$/,ge={};ge[ie]=ge[me]=ge[ee]=ge[he]=ge[pe]=ge[be]=ge[we]=ge[H]=ge[fe]=!0,ge[l]=ge[d]=ge[ne]=ge[f]=ge[G]=ge[m]=ge[g]=ge[y]=ge[v]=ge[k]=ge[E]=ge[I]=ge[V]=ge[P]=ge[q]=!1;var ze=typeof dn=="object"&&dn&&dn.Object===Object&&dn,lt=typeof self=="object"&&self&&self.Object===Object&&self,Fe=ze||lt||Function("return this")(),ht=e&&!e.nodeType&&e,Vt=ht&&!0&&t&&!t.nodeType&&t,wt=Vt&&Vt.exports===ht,tt=wt&&ze.process,rt=function(){try{return tt&&tt.binding&&tt.binding("util")}catch{}}(),st=rt&&rt.isTypedArray;function Yt(_,O){for(var N=-1,K=_==null?0:_.length,Ve=0,Ce=[];++N<K;){var Ge=_[N];O(Ge,N,_)&&(Ce[Ve++]=Ge)}return Ce}function ft(_,O){for(var N=-1,K=O.length,Ve=_.length;++N<K;)_[Ve+N]=O[N];return _}function kt(_,O){for(var N=-1,K=_==null?0:_.length;++N<K;)if(O(_[N],N,_))return!0;return!1}function nn(_,O){for(var N=-1,K=Array(_);++N<_;)K[N]=O(N);return K}function rn(_){return function(O){return _(O)}}function _t(_,O){return _.has(O)}function nt(_,O){return _==null?void 0:_[O]}function At(_){var O=-1,N=Array(_.size);return _.forEach(function(K,Ve){N[++O]=[Ve,K]}),N}function Mt(_,O){return function(N){return _(O(N))}}function Tt(_){var O=-1,N=Array(_.size);return _.forEach(function(K){N[++O]=K}),N}var Ot=Array.prototype,hn=Function.prototype,It=Object.prototype,re=Fe["__core-js_shared__"],$e=hn.toString,We=It.hasOwnProperty,gn=function(){var _=/[^.]+$/.exec(re&&re.keys&&re.keys.IE_PROTO||"");return _?"Symbol(src)_1."+_:""}(),$n=It.toString,Gn=RegExp("^"+$e.call(We).replace(oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),U=wt?Fe.Buffer:void 0,le=Fe.Symbol,_e=Fe.Uint8Array,Y=It.propertyIsEnumerable,B=Ot.splice,j=le?le.toStringTag:void 0,se=Object.getOwnPropertySymbols,ke=U?U.isBuffer:void 0,Ye=Mt(Object.keys,Object),at=Dn(Fe,"DataView"),Ct=Dn(Fe,"Map"),sn=Dn(Fe,"Promise"),Kt=Dn(Fe,"Set"),Kn=Dn(Fe,"WeakMap"),pt=Dn(Object,"create"),An=yn(at),Mn=yn(Ct),ai=yn(sn),Wi=yn(Kt),Ir=yn(Kn),bo=le?le.prototype:void 0,aa=bo?bo.valueOf:void 0;function an(_){var O=-1,N=_==null?0:_.length;for(this.clear();++O<N;){var K=_[O];this.set(K[0],K[1])}}function ac(){this.__data__=pt?pt(null):{},this.size=0}function oc(_){var O=this.has(_)&&delete this.__data__[_];return this.size-=O?1:0,O}function lc(_){var O=this.__data__;if(pt){var N=O[_];return N===i?void 0:N}return We.call(O,_)?O[_]:void 0}function cc(_){var O=this.__data__;return pt?O[_]!==void 0:We.call(O,_)}function dc(_,O){var N=this.__data__;return this.size+=this.has(_)?0:1,N[_]=pt&&O===void 0?i:O,this}an.prototype.clear=ac,an.prototype.delete=oc,an.prototype.get=lc,an.prototype.has=cc,an.prototype.set=dc;function on(_){var O=-1,N=_==null?0:_.length;for(this.clear();++O<N;){var K=_[O];this.set(K[0],K[1])}}function uc(){this.__data__=[],this.size=0}function hc(_){var O=this.__data__,N=Ar(O,_);if(N<0)return!1;var K=O.length-1;return N==K?O.pop():B.call(O,N,1),--this.size,!0}function fc(_){var O=this.__data__,N=Ar(O,_);return N<0?void 0:O[N][1]}function pc(_){return Ar(this.__data__,_)>-1}function mc(_,O){var N=this.__data__,K=Ar(N,_);return K<0?(++this.size,N.push([_,O])):N[K][1]=O,this}on.prototype.clear=uc,on.prototype.delete=hc,on.prototype.get=fc,on.prototype.has=pc,on.prototype.set=mc;function On(_){var O=-1,N=_==null?0:_.length;for(this.clear();++O<N;){var K=_[O];this.set(K[0],K[1])}}function ms(){this.size=0,this.__data__={hash:new an,map:new(Ct||on),string:new an}}function gc(_){var O=Nn(this,_).delete(_);return this.size-=O?1:0,O}function gs(_){return Nn(this,_).get(_)}function yc(_){return Nn(this,_).has(_)}function bc(_,O){var N=Nn(this,_),K=N.size;return N.set(_,O),this.size+=N.size==K?0:1,this}On.prototype.clear=ms,On.prototype.delete=gc,On.prototype.get=gs,On.prototype.has=yc,On.prototype.set=bc;function ys(_){var O=-1,N=_==null?0:_.length;for(this.__data__=new On;++O<N;)this.add(_[O])}function oa(_){return this.__data__.set(_,i),this}function $r(_){return this.__data__.has(_)}ys.prototype.add=ys.prototype.push=oa,ys.prototype.has=$r;function oi(_){var O=this.__data__=new on(_);this.size=O.size}function la(){this.__data__=new on,this.size=0}function _c(_){var O=this.__data__,N=O.delete(_);return this.size=O.size,N}function vc(_){return this.__data__.get(_)}function wc(_){return this.__data__.has(_)}function _o(_,O){var N=this.__data__;if(N instanceof on){var K=N.__data__;if(!Ct||K.length<n-1)return K.push([_,O]),this.size=++N.size,this;N=this.__data__=new On(K)}return N.set(_,O),this.size=N.size,this}oi.prototype.clear=la,oi.prototype.delete=_c,oi.prototype.get=vc,oi.prototype.has=wc,oi.prototype.set=_o;function vo(_,O){var N=bs(_),K=!N&&da(_),Ve=!N&&!K&&_s(_),Ce=!N&&!K&&!Ve&&Io(_),Ge=N||K||Ve||Ce,Ke=Ge?nn(_.length,String):[],He=Ke.length;for(var Xe in _)We.call(_,Xe)&&!(Ge&&(Xe=="length"||Ve&&(Xe=="offset"||Xe=="parent")||Ce&&(Xe=="buffer"||Xe=="byteLength"||Xe=="byteOffset")||Mo(Xe,He)))&&Ke.push(Xe);return Ke}function Ar(_,O){for(var N=_.length;N--;)if(Vo(_[N][0],O))return N;return-1}function Nr(_,O,N){var K=O(_);return bs(_)?K:ft(K,N(_))}function zr(_){return _==null?_===void 0?R:S:j&&j in Object(_)?Ci(_):Bo(_)}function ca(_){return Si(_)&&zr(_)==l}function Pr(_,O,N,K,Ve){return _===O?!0:_==null||O==null||!Si(_)&&!Si(O)?_!==_&&O!==O:wo(_,O,N,K,Pr,Ve)}function wo(_,O,N,K,Ve,Ce){var Ge=bs(_),Ke=bs(O),He=Ge?d:xi(_),Xe=Ke?d:xi(O);He=He==l?E:He,Xe=Xe==l?E:Xe;var Nt=He==E,bn=Xe==E,Ft=He==Xe;if(Ft&&_s(_)){if(!_s(O))return!1;Ge=!0,Nt=!1}if(Ft&&!Nt)return Ce||(Ce=new oi),Ge||Io(_)?Lr(_,O,N,K,Ve,Ce):Cc(_,O,He,N,K,Ve,Ce);if(!(N&s)){var gt=Nt&&We.call(_,"__wrapped__"),Qt=bn&&We.call(O,"__wrapped__");if(gt||Qt){var ji=gt?_.value():_,Mi=Qt?O.value():O;return Ce||(Ce=new oi),Ve(ji,Mi,N,K,Ce)}}return Ft?(Ce||(Ce=new oi),xo(_,O,N,K,Ve,Ce)):!1}function kc(_){if(!To(_)||Do(_))return!1;var O=vs(_)?Gn:Ee;return O.test(yn(_))}function ko(_){return Si(_)&&ha(_.length)&&!!ge[zr(_)]}function Co(_){if(!Eo(_))return Ye(_);var O=[];for(var N in Object(_))We.call(_,N)&&N!="constructor"&&O.push(N);return O}function Lr(_,O,N,K,Ve,Ce){var Ge=N&s,Ke=_.length,He=O.length;if(Ke!=He&&!(Ge&&He>Ke))return!1;var Xe=Ce.get(_);if(Xe&&Ce.get(O))return Xe==O;var Nt=-1,bn=!0,Ft=N&a?new ys:void 0;for(Ce.set(_,O),Ce.set(O,_);++Nt<Ke;){var gt=_[Nt],Qt=O[Nt];if(K)var ji=Ge?K(Qt,gt,Nt,O,_,Ce):K(gt,Qt,Nt,_,O,Ce);if(ji!==void 0){if(ji)continue;bn=!1;break}if(Ft){if(!kt(O,function(Mi,dr){if(!_t(Ft,dr)&&(gt===Mi||Ve(gt,Mi,N,K,Ce)))return Ft.push(dr)})){bn=!1;break}}else if(!(gt===Qt||Ve(gt,Qt,N,K,Ce))){bn=!1;break}}return Ce.delete(_),Ce.delete(O),bn}function Cc(_,O,N,K,Ve,Ce,Ge){switch(N){case G:if(_.byteLength!=O.byteLength||_.byteOffset!=O.byteOffset)return!1;_=_.buffer,O=O.buffer;case ne:return!(_.byteLength!=O.byteLength||!Ce(new _e(_),new _e(O)));case f:case m:case k:return Vo(+_,+O);case g:return _.name==O.name&&_.message==O.message;case I:case P:return _==O+"";case v:var Ke=At;case V:var He=K&s;if(Ke||(Ke=Tt),_.size!=O.size&&!He)return!1;var Xe=Ge.get(_);if(Xe)return Xe==O;K|=a,Ge.set(_,O);var Nt=Lr(Ke(_),Ke(O),K,Ve,Ce,Ge);return Ge.delete(_),Nt;case A:if(aa)return aa.call(_)==aa.call(O)}return!1}function xo(_,O,N,K,Ve,Ce){var Ge=N&s,Ke=Yi(_),He=Ke.length,Xe=Yi(O),Nt=Xe.length;if(He!=Nt&&!Ge)return!1;for(var bn=He;bn--;){var Ft=Ke[bn];if(!(Ge?Ft in O:We.call(O,Ft)))return!1}var gt=Ce.get(_);if(gt&&Ce.get(O))return gt==O;var Qt=!0;Ce.set(_,O),Ce.set(O,_);for(var ji=Ge;++bn<He;){Ft=Ke[bn];var Mi=_[Ft],dr=O[Ft];if(K)var Sc=Ge?K(dr,Mi,Ft,O,_,Ce):K(Mi,dr,Ft,_,O,Ce);if(!(Sc===void 0?Mi===dr||Ve(Mi,dr,N,K,Ce):Sc)){Qt=!1;break}ji||(ji=Ft=="constructor")}if(Qt&&!ji){var pa=_.constructor,fn=O.constructor;pa!=fn&&"constructor"in _&&"constructor"in O&&!(typeof pa=="function"&&pa instanceof pa&&typeof fn=="function"&&fn instanceof fn)&&(Qt=!1)}return Ce.delete(_),Ce.delete(O),Qt}function Yi(_){return Nr(_,fa,So)}function Nn(_,O){var N=_.__data__;return Oo(O)?N[typeof O=="string"?"string":"hash"]:N.map}function Dn(_,O){var N=nt(_,O);return kc(N)?N:void 0}function Ci(_){var O=We.call(_,j),N=_[j];try{_[j]=void 0;var K=!0}catch{}var Ve=$n.call(_);return K&&(O?_[j]=N:delete _[j]),Ve}var So=se?function(_){return _==null?[]:(_=Object(_),Yt(se(_),function(O){return Y.call(_,O)}))}:mt,xi=zr;(at&&xi(new at(new ArrayBuffer(1)))!=G||Ct&&xi(new Ct)!=v||sn&&xi(sn.resolve())!=$||Kt&&xi(new Kt)!=V||Kn&&xi(new Kn)!=q)&&(xi=function(_){var O=zr(_),N=O==E?_.constructor:void 0,K=N?yn(N):"";if(K)switch(K){case An:return G;case Mn:return v;case ai:return $;case Wi:return V;case Ir:return q}return O});function Mo(_,O){return O=O??o,!!O&&(typeof _=="number"||Me.test(_))&&_>-1&&_%1==0&&_<O}function Oo(_){var O=typeof _;return O=="string"||O=="number"||O=="symbol"||O=="boolean"?_!=="__proto__":_===null}function Do(_){return!!gn&&gn in _}function Eo(_){var O=_&&_.constructor,N=typeof O=="function"&&O.prototype||It;return _===N}function Bo(_){return $n.call(_)}function yn(_){if(_!=null){try{return $e.call(_)}catch{}try{return _+""}catch{}}return""}function Vo(_,O){return _===O||_!==_&&O!==O}var da=ca(function(){return arguments}())?ca:function(_){return Si(_)&&We.call(_,"callee")&&!Y.call(_,"callee")},bs=Array.isArray;function ua(_){return _!=null&&ha(_.length)&&!vs(_)}var _s=ke||ct;function xc(_,O){return Pr(_,O)}function vs(_){if(!To(_))return!1;var O=zr(_);return O==y||O==w||O==h||O==x}function ha(_){return typeof _=="number"&&_>-1&&_%1==0&&_<=o}function To(_){var O=typeof _;return _!=null&&(O=="object"||O=="function")}function Si(_){return _!=null&&typeof _=="object"}var Io=st?rn(st):ko;function fa(_){return ua(_)?vo(_):Co(_)}function mt(){return[]}function ct(){return!1}t.exports=xc}(Eu,Eu.exports);var vq=Eu.exports;const fo=Gc(vq),wq={props:{tabs:{type:Array,default:()=>[],required:!0,validator:t=>!t.filter(n=>tn(n.title)||tn(n.name)).length},activeTab:{type:Object,default:()=>({}),required:!0},variant:{type:String,default:"green",validator:t=>sr.includes(t)}},data(){return{internalActiveTab:this.activeTab,colorOptions:sr}},computed:{activeBorderStyle(){return{"--indicatorColor":this.colorHexCode(this.variant)}}},watch:{tabs:{handler(t){const e=t.filter(n=>n.name===this.activeTab.name);[this.internalActiveTab]=e.length?e:t},immediate:!0}},methods:{colorHexCode:Za,getSlotName(t){return t.name},handleClick(t,e){this.$emit("tab-click",{event:t,item:e}),!this.internalActiveTab.disableTabChange&&(this.$emit("change",{event:t,item:e}),this.internalActiveTab=e)},isActive(t){return fo(this.internalActiveTab,t)},indicatorClass(t){return this.isActive(t)?`tab__indicator--active--${this.variant}`:""}}},kq={id:"inner-tabs"},Cq={class:"inner-tabs__header-container"},xq={class:"inner-tabs__header"},Sq=["onClick"],Mq={class:"inner-tabs__content"};function Oq(t,e,n,i,s,a){return r.openBlock(),r.createElementBlock("div",kq,[r.createElementVNode("div",Cq,[r.createElementVNode("ul",xq,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.tabs,(o,l)=>(r.openBlock(),r.createElementBlock("li",{key:`${l}-${o.name}-tab`,role:"presentation"},[r.createElementVNode("a",{role:"tab",href:"javascript:void(0)",target:"_self",class:r.normalizeClass(["inner-tabs__tab",a.isActive(o)?"inner-tabs__tab--active":"inner-tabs__tab--inactive"]),onClick:d=>a.handleClick(d,o)},r.toDisplayString(o.title),11,Sq),r.createElementVNode("div",{class:r.normalizeClass(a.indicatorClass(o)),style:r.normalizeStyle(a.activeBorderStyle)},null,6)]))),128))])]),r.createElementVNode("div",Mq,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.tabs,(o,l)=>(r.openBlock(),r.createElementBlock("div",{key:`${l}-${o.name}-tab`,role:"tabpanel",class:r.normalizeClass(["content__pane",a.isActive(o)?"content__pane--active":"content__pane--inactive"])},[r.renderSlot(t.$slots,a.getSlotName(o))],2))),128))])])}const Dq=Q(wq,[["render",Oq]]),ic=t=>{switch(t){case"smartphone":return window.outerWidth<500&&window.outerWidth<window.outerHeight;case"tablet":return window.outerWidth>=500&&window.outerWidth<900&&window.outerWidth<window.outerHeight;case"hd-screen":return window.outerWidth>=900&&window.outerWidth<1600&&window.outerWidth>window.outerHeight;case"fhd-screen":return window.outerWidth>=1600&&window.outerWidth<2e3&&window.outerWidth>window.outerHeight;case"uhd-screen":return window.outerWidth>=2e3&&window.outerWidth>window.outerHeight;default:throw new Error(`Valor inválido: '${t}'. Os valores aceitos são: 'smartphone', 'tablet', 'hd-screen', 'fhd-screen', 'uhd-screen'.`)}},Eq={key:0,class:"landscape-overlay"},Bq={class:"landscape-overlay__container"},Vq=["src"],Tq={class:"landscape-overlay__title"},Iq={class:"landscape-overlay__subtitle"},$q={key:0,class:"landscape-overlay__button"},Aq=Q({__name:"InteractionBlockingOverlay",props:{blockInteraction:{type:String,required:!0,default:"mobile",validator:t=>["mobile","landscape"].includes(t.toLowerCase())},title:{type:String,default:""},description:{type:String,default:""},buttonVariant:{type:String,default:"green",validator:t=>sr.includes(t.toLowerCase())},buttonText:{type:String,default:"Ir para o início"}},emits:["button-click"],setup(t,{emit:e}){const n=t,i=e,s=r.ref(!1),a=r.ref(""),o=r.ref(""),l=r.ref(""),d=r.computed(()=>ic("smartphone")||ic("tablet")),h=r.computed(()=>window.outerWidth>window.outerHeight&&d.value);return r.watch(s,f=>{f?document.body.style.overflow="hidden":document.body.style.overflow="auto"}),r.watchEffect(()=>{!d.value&&!h.value&&(s.value=!1)}),r.onMounted(()=>{if(n.blockInteraction==="mobile"){d.value&&(s.value=!0,n.title===""?a.value="Acesse o conteúdo por um computador":a.value=n.title,n.description===""?o.value="Esta tela não é otimizada para navegação em celular.":o.value=n.description,l.value="/img/page-not-responsive.svg");return}n.blockInteraction==="landscape"&&h.value&&(s.value=!0,n.title===""?a.value="Rotacione seu dispositivo":a.value=n.title,n.description===""?o.value="Este conteúdo é otimizado para a visualização em modo retrato.":o.value=n.description,l.value="/img/smartphone-rotation.svg")}),(f,m)=>s.value?(r.openBlock(),r.createElementBlock("div",Eq,[r.createElementVNode("div",Bq,[r.createElementVNode("img",{class:"landscape-overlay__image",src:l.value},null,8,Vq),r.createElementVNode("span",Tq,r.toDisplayString(a.value),1),r.createElementVNode("span",Iq,r.toDisplayString(o.value),1),f.block-f.interaction==="mobile"?(r.openBlock(),r.createElementBlock("div",$q,[r.createVNode(Qi,{variant:t.buttonVariant,block:"",onButtonClick:m[0]||(m[0]=g=>i("button-click"))},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(t.buttonText),1)]),_:1},8,["variant"])])):r.createCommentVNode("",!0)])])):r.createCommentVNode("",!0)}},[["__scopeId","data-v-a0718af5"]]),po=t=>/^(19|20)\d\d-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$/.test(t),a0={components:{VDatePicker:bb,CdsChevron:$s,CdsIcon:Be},props:{modelValue:{type:[String,Object],default:"",validator:t=>t===""||typeof t=="object"||po(t)},label:{type:String,default:"Date"},disabled:{type:Boolean,default:!1},range:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1},minDate:{type:String,default:"",validator:t=>t===""||po(t)},maxDate:{type:String,default:"",validator:t=>t===""||po(t)},placeholder:{type:String,default:"Selecione uma data"},showTodayDot:{type:Boolean,default:!1},variant:{type:String,default:"green"}},data(){return{sassColorVariables:Yn,internalDate:ue.now(),isBeingFocused:!1,inputControl:0,attributes:[{dates:new Date,dot:!0}],variantColorData:{}}},computed:{errorState(){return this.state==="invalid"},hasSlots(){return!!Object.keys(this.$slots).length},capitalizedLabel(){return this.label.charAt(0).toUpperCase()+this.label.slice(1)},dateInputClassContainer(){let t="";return this.disabled?this.fluid?"inline-date-input--disabled inline-date-input--fluid":"inline-date-input--disabled":(t+=this.fluid?" date-input--fluid":" date-input",t)},inputClass(){let t="";return this.disabled?this.fluid?"date-input--disabled date-input--fluid":"date-input--disabled":(t+=this.fluid?" date-input--fluid":" date-input",t)},inlineCalendarDotColor(){return this.variantColorData.colorData[4].shade},inlineCalendarTextColor(){return this.variantColorData.colorData[7].shade},inlineCalendarTrailColor(){return this.variantColorData.colorData[1].shade}},watch:{modelValue(t,e){t!==e&&this.resolveInternalDate()},variant(t,e){t!==e&&this.updateColorData()}},created(){this.updateColorData()},mounted(){this.resolveInternalDate()},methods:{paleteBuilder:rr,updateColorData(){this.variantColorData=this.paleteBuilder(Yn.palete).find(t=>t.variantName.toLowerCase()===this.variant)},handleUpdateInput(t){if(this.range){this.$emit("update:modelValue",t.start&&t.end?{start:ue.fromJSDate(t.start).toFormat("yyyy-MM-dd"),end:ue.fromJSDate(t.end).toFormat("yyyy-MM-dd")}:"");return}this.$emit("update:modelValue",t?ue.fromJSDate(t).toFormat("yyyy-MM-dd"):"")},resolveInternalDate(){if(!this.modelValue){this.internalDate=this.range?null:"";return}if(this.range){this.internalDate=po(this.modelValue.start)&&po(this.modelValue.end)?{start:ue.fromFormat(this.modelValue.start,"yyyy-MM-dd"),end:ue.fromFormat(this.modelValue.end,"yyyy-MM-dd")}:{start:ue.now(),end:ue.now()};return}this.internalDate=po(this.modelValue)?ue.fromFormat(this.modelValue,"yyyy-MM-dd"):ue.now()},resolveInputValue(t){return typeof t!="object"?t:!t.start&&!t.end||Un.isEmpty(t)?null:`${t.start} a ${t.end}`}}},Tb=()=>{r.useCssVars(t=>({"2a014cba":t.inlineCalendarTrailColor,"60dfc8d0":t.inlineCalendarTextColor,"311f6c80":t.inlineCalendarDotColor}))},Ib=a0.setup;a0.setup=Ib?(t,e)=>(Tb(),Ib(t,e)):Tb;const Nq={key:0},zq={key:1,class:"inline-date-input__label"},Pq={class:"label__content",for:"cds-text-input"},Lq=["value","disabled","placeholder","onClick"],Fq={class:"inline-date-input__icon"};function Rq(t,e,n,i,s,a){const o=r.resolveComponent("cds-chevron"),l=r.resolveComponent("cds-icon"),d=r.resolveComponent("v-date-picker");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["inline-date-input__container",a.dateInputClassContainer])},[r.createElementVNode("span",null,[a.hasSlots?(r.openBlock(),r.createElementBlock("span",Nq,[r.renderSlot(t.$slots,"label",{},void 0,!0)])):(r.openBlock(),r.createElementBlock("label",zq,[r.createElementVNode("div",Pq,[r.createElementVNode("span",null,r.toDisplayString(a.capitalizedLabel)+": ",1)])]))]),r.createVNode(d,{id:"cds--inline-date-input",modelValue:s.internalDate,"onUpdate:modelValue":[e[2]||(e[2]=h=>s.internalDate=h),a.handleUpdateInput],locale:"pt-BR","min-date":n.minDate?new Date(n.minDate):null,"max-date":n.maxDate?new Date(n.maxDate):null,attributes:n.showTodayDot?s.attributes:{},color:n.variant,"is-range":n.range},{"header-left-button":r.withCtx(({page:h})=>[r.createVNode(o,{direction:"left",onClick:f=>h.movePrevMonth()},null,8,["onClick"])]),"header-right-button":r.withCtx(({page:h})=>[r.createVNode(o,{direction:"right",onClick:f=>h.moveNextMonth()},null,8,["onClick"])]),default:r.withCtx(({inputValue:h,togglePopover:f,inputEvents:m})=>[r.createElementVNode("div",{class:r.normalizeClass(a.inputClass)},[r.createElementVNode("input",r.mergeProps({value:a.resolveInputValue(h),disabled:n.disabled,placeholder:n.placeholder,type:"text"},r.toHandlers(m,!0),{onClick:f,onFocus:e[0]||(e[0]=g=>s.isBeingFocused=!0),onBlur:e[1]||(e[1]=g=>s.isBeingFocused=!1)}),null,16,Lq),r.createElementVNode("div",Fq,[r.createVNode(l,{height:"20",width:"20",name:"calendar-outline"})])],2)]),_:1},8,["modelValue","min-date","max-date","attributes","color","is-range","onUpdate:modelValue"])],2)}const Hq=Q(a0,[["render",Rq],["__scopeId","data-v-fd91d96d"]]),Wq={props:{href:{type:String,required:!0},newTab:{type:Boolean,default:!1},text:{type:String,required:!0},size:{type:String,default:"md"},bold:{type:Boolean,default:!1}}},Yq=["href","target"];function jq(t,e,n,i,s,a){return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["link__container",{"link__container--sm":n.size==="sm","link__container--md":n.size==="md","link__container--lg":n.size==="lg","link__container--bold":n.bold}])},[r.createElementVNode("a",{href:n.href,target:n.newTab?"_blank":!1},[r.renderSlot(t.$slots,"default",{class:"link__text"},()=>[r.createTextVNode(r.toDisplayString(n.text),1)])],8,Yq)],2)}const Bu=Q(Wq,[["render",jq]]),Uq={};function qq(t,e,n,i,s,a){return r.openBlock(),r.createElementBlock("div",null,e[0]||(e[0]=[r.createElementVNode("div",{class:"loading-bar__container"},[r.createElementVNode("div",{class:"loading-bar"})],-1)]))}const Gq=Q(Uq,[["render",qq],["__scopeId","data-v-59f3ef96"]]),Kq=Q({__name:"LoadingIndicator",props:{modelValue:{type:Boolean,default:!1,required:!0},variant:{type:String,default:"green"},intervalTime:{type:Number,default:500}},setup(t){r.useCssVars(h=>({e0a02066:i.value,"31f71fda":a.value,"51509f9e":s.value}));const e=t,n=r.ref(0),i=r.computed(()=>`${n.value}%`),s=r.computed(()=>n.value===0?"none":"width 0.5s"),a=r.computed(()=>ic("smartphone")||ic("tablet")?"4px":"3px");r.watch(()=>e.modelValue,h=>{if(h){o(),l();return}d()});function o(){n.value=1}function l(){if(n.value>0&&n.value<90){if(n.value+=Math.floor(Math.random()*16+10),n.value>=90){n.value=90;return}let h=Math.floor(Math.random()*(e.intervalTime*1.4-e.intervalTime*.5)+e.intervalTime*.5);setTimeout(l,h)}}function d(){n.value=100,setTimeout(()=>{n.value=0},600)}return(h,f)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(`loading-indicator--${t.variant}`)},null,2))}},[["__scopeId","data-v-fe0c8374"]]),Zq={class:"mobile-navigation__header"},Xq={class:"mobile-navigation__title"},Jq={class:"mobile-navigation__sidebar-header"},Qq={class:"mobile-navigation__sidebar-logo"},eG=["src"],tG={class:"mobile-navigation__sidebar-content"},nG={class:"mobile-navigation__sidebar-items"},iG={class:"mobile-navigation__sidebar-footer"},rG={class:"mobile-navigation__sidebar-user-text"},sG=Q({__name:"MobileNavigation",props:{variant:{type:String,default:"green"},light:{type:Boolean,default:!1},sidebarLogo:{type:String,default:""},items:{type:Array,default:()=>[]},activeItem:{type:Object,default:()=>{}},user:{type:Object,default:()=>{}},sticky:{type:Boolean,default:!1}},emits:["logout","item-click","profile-click"],setup(t,{emit:e}){const n=t,i=e,s=r.ref(n.activeItem),a=r.ref(!1),o=r.computed(()=>n.light?"light":"dark"),l=r.computed(()=>{let v=`mobile-navigation mobile-navigation--${o.value}`;return n.sticky&&(v+=" mobile-navigation--sticky"),v});r.watch(a,async(v,k)=>{v!==k&&w(v)}),r.watch(()=>n.activeItem,v=>{s.value=v});const d=()=>{a.value=!0},h=()=>{a.value=!1},f=v=>Un.isEqual(v,s.value),m=v=>{Un.isEmpty(n.activeItem)&&(s.value=v),a.value=!1,i("item-click",v)},g=({route:v,path:k})=>{const S=Un.isEmpty(v)?k:v;return S instanceof String?{path:S}:S},y=v=>g(v)?g(v).path:null,w=v=>{document.body.style.overflow=v?"hidden":"auto"};return(v,k)=>{const S=r.resolveComponent("router-link");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(l.value)},[r.createElementVNode("div",{class:r.normalizeClass(`variant-resolver--${t.variant}`)},[r.createElementVNode("div",Zq,[r.createElementVNode("div",Xq,r.toDisplayString(s.value.label??""),1),r.createElementVNode("div",{class:"mobile-navigation__menu-btn",onClick:d},[r.createVNode(Be,{name:"menu-outline"})])]),r.createElementVNode("div",{class:r.normalizeClass(["mobile-navigation__sidebar",{"mobile-navigation__sidebar--expanded":a.value}])},[r.createElementVNode("div",Jq,[r.createElementVNode("div",Qq,[r.renderSlot(v.$slots,"sidebar-logo",{},()=>[r.createElementVNode("img",{src:t.sidebarLogo},null,8,eG)],!0)]),r.createElementVNode("div",{class:"mobile-navigation__sidebar-btn",onClick:h},[r.createVNode(Be,{name:"x-outline"})])]),r.createElementVNode("div",tG,[r.createElementVNode("div",nG,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.items,E=>(r.openBlock(),r.createBlock(S,{key:E.label,to:y(E),class:r.normalizeClass(["mobile-navigation__sidebar-item",{"mobile-navigation__sidebar-item--active":f(E)}]),onClick:$=>m(E)},{default:r.withCtx(()=>[r.createVNode(Be,{name:E.icon,width:"24",height:"24"},null,8,["name"]),r.createElementVNode("span",null,r.toDisplayString(E.label),1)]),_:2},1032,["to","class","onClick"]))),128))]),r.createElementVNode("div",iG,[r.createElementVNode("div",{class:"mobile-navigation__sidebar-user-info",onClick:k[0]||(k[0]=E=>i("profile-click"))},[r.createVNode(ll,{src:t.user.picture??"",name:t.user.name??"",variant:t.variant,size:"lg"},null,8,["src","name","variant"]),r.createElementVNode("div",rG,[r.createElementVNode("p",null,r.toDisplayString(t.user.name??""),1),r.createElementVNode("p",null,r.toDisplayString(t.user.role??""),1)])]),r.createElementVNode("button",{class:"mobile-navigation__sidebar-logout",onClick:k[1]||(k[1]=E=>i("logout"))},[r.createVNode(Be,{name:"logout-outline",width:"24",height:"24"})])])])],2)],2)],2)}}},[["__scopeId","data-v-0bc86eef"]]),aG=["teal","green","blue","indigo","violet","pink","red","orange","amber"],oG={directives:{"on-click-outside":yr.directive},components:{CdsIcon:Be,CdsButton:Qi,CdsScrollable:Zc},props:{modelValue:{type:Boolean,default:!1,required:!0},title:{type:String,default:"Título"},size:{type:String,default:"md"},disableOkButton:{type:Boolean,default:!1},disableCancelButton:{type:Boolean,default:!1},noCloseOnBackdrop:{type:Boolean,default:!1},noCloseOkButton:{type:Boolean,default:!1},noCloseCancelButton:{type:Boolean,default:!1},noCloseButton:{type:Boolean,default:!1},noCancelButton:{type:Boolean,default:!1},noFooter:{type:Boolean,default:!1},noHeader:{type:Boolean,default:!1},okButtonText:{type:String,default:"Confirmar"},cancelButtonText:{type:String,default:"Cancelar"},actionButtonVariant:{type:String,default:"green",validator:t=>aG.includes(t)},scrollable:{type:Boolean,default:!1}},data(){return{innerValue:!1,tmp:""}},computed:{maxBodyHeight(){return`${window.innerHeight*.9-32*2-68-64}px`}},watch:{modelValue(t){this.innerValue=t}},mounted(){this.innerValue=this.modelValue},methods:{closeHandle(){this.innerValue=!this.innerValue,this.$emit("close",!0),this.$emit("update:modelValue",!1)},okHandle(){this.noCloseOkButton||(this.innerValue=!this.innerValue,this.$emit("update:modelValue",!1)),this.$emit("ok",!0)},cancelHandle(){this.noCloseCancelButton||(this.innerValue=!this.innerValue,this.$emit("close",!0),this.$emit("update:modelValue",!1)),this.$emit("cancel")}}},lG={key:0,class:"cds-modal__backdrop"},cG={key:0},dG={class:"cds-modal__header"},uG={key:1,class:"cds-modal__body"},hG={key:1,class:"cds-modal__footer"};function fG(t,e,n,i,s,a){const o=r.resolveComponent("cds-icon"),l=r.resolveComponent("cds-scrollable"),d=r.resolveComponent("cds-button"),h=r.resolveDirective("on-click-outside");return s.innerValue?(r.openBlock(),r.createElementBlock("div",lG,[s.innerValue?r.withDirectives((r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["cds-modal",`cds-modal--${n.size}`])},[n.noHeader?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("header",cG,[r.renderSlot(t.$slots,"header",{},()=>[r.createElementVNode("div",dG,[r.createElementVNode("h3",null,r.toDisplayString(n.title),1),n.noCloseButton?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",{key:0,class:"cds-modal__close-icon",onClick:e[0]||(e[0]=(...f)=>a.closeHandle&&a.closeHandle(...f))},[r.createVNode(o,{name:"x-outline",height:"20",width:"20",color:"#29333D"})]))])],!0)])),r.createElementVNode("section",null,[n.scrollable?(r.openBlock(),r.createBlock(l,{key:0,class:"cds-modal__body"},{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3})):(r.openBlock(),r.createElementBlock("div",uG,[r.renderSlot(t.$slots,"default",{},void 0,!0)]))]),n.noFooter?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("footer",hG,[r.renderSlot(t.$slots,"footer",{},()=>[n.noCancelButton?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(d,{key:0,text:n.cancelButtonText,secondary:"",disabled:n.disableCancelButton,onClick:e[1]||(e[1]=f=>n.disableCancelButton?!1:a.cancelHandle())},null,8,["text","disabled"])),r.createVNode(d,{class:"footer__ok-button",text:n.okButtonText,variant:n.actionButtonVariant,disabled:n.disableOkButton,onClick:e[2]||(e[2]=f=>n.disableOkButton?!1:a.okHandle())},null,8,["text","variant","disabled"])],!0)]))],2)),[[h,n.noCloseOnBackdrop?()=>{}:a.closeHandle]]):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0)}const $b=Q(oG,[["render",fG],["__scopeId","data-v-f547a4b0"]]);function o0(t){return t===0?!1:Array.isArray(t)&&t.length===0?!0:!t}function pG(t){return(...e)=>!t(...e)}function mG(t,e){return t===void 0&&(t="undefined"),t===null&&(t="null"),t===!1&&(t="false"),t.toString().toLowerCase().indexOf(e.trim())!==-1}function Ab(t,e,n,i){return e?t.filter(s=>mG(i(s,n),e)).sort((s,a)=>i(s,n).length-i(a,n).length):t}function gG(t){return t.filter(e=>!e.$isLabel)}function l0(t,e){return n=>n.reduce((i,s)=>s[t]&&s[t].length?(i.push({$groupLabel:s[e],$isLabel:!0}),i.concat(s[t])):i,[])}function yG(t,e,n,i,s){return a=>a.map(o=>{if(!o[n])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const l=Ab(o[n],t,e,s);return l.length?{[i]:o[i],[n]:l}:[]})}const Nb=(...t)=>e=>t.reduce((n,i)=>i(n),e);var bG={data(){return{search:"",isOpen:!1,preferredOpenDirection:"below",optimizedHeight:this.maxHeight}},props:{internalSearch:{type:Boolean,default:!0},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},trackBy:{type:String},label:{type:String},searchable:{type:Boolean,default:!0},clearOnSelect:{type:Boolean,default:!0},hideSelected:{type:Boolean,default:!1},placeholder:{type:String,default:"Select option"},allowEmpty:{type:Boolean,default:!0},resetAfter:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},customLabel:{type:Function,default(t,e){return o0(t)?"":e?t[e]:t}},taggable:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:"Press enter to create a tag"},tagPosition:{type:String,default:"top"},max:{type:[Number,Boolean],default:!1},id:{default:null},optionsLimit:{type:Number,default:1e3},groupValues:{type:String},groupLabel:{type:String},groupSelect:{type:Boolean,default:!1},blockKeys:{type:Array,default(){return[]}},preserveSearch:{type:Boolean,default:!1},preselectFirst:{type:Boolean,default:!1},preventAutofocus:{type:Boolean,default:!1}},mounted(){!this.multiple&&this.max&&console.warn("[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."),this.preselectFirst&&!this.internalValue.length&&this.options.length&&this.select(this.filteredOptions[0])},computed:{internalValue(){return this.modelValue||this.modelValue===0?Array.isArray(this.modelValue)?this.modelValue:[this.modelValue]:[]},filteredOptions(){const t=this.search||"",e=t.toLowerCase().trim();let n=this.options.concat();return this.internalSearch?n=this.groupValues?this.filterAndFlat(n,e,this.label):Ab(n,e,this.label,this.customLabel):n=this.groupValues?l0(this.groupValues,this.groupLabel)(n):n,n=this.hideSelected?n.filter(pG(this.isSelected)):n,this.taggable&&e.length&&!this.isExistingOption(e)&&(this.tagPosition==="bottom"?n.push({isTag:!0,label:t}):n.unshift({isTag:!0,label:t})),n.slice(0,this.optionsLimit)},valueKeys(){return this.trackBy?this.internalValue.map(t=>t[this.trackBy]):this.internalValue},optionKeys(){return(this.groupValues?this.flatAndStrip(this.options):this.options).map(e=>this.customLabel(e,this.label).toString().toLowerCase())},currentOptionLabel(){return this.multiple?this.searchable?"":this.placeholder:this.internalValue.length?this.getOptionLabel(this.internalValue[0]):this.searchable?"":this.placeholder}},watch:{internalValue:{handler(){this.resetAfter&&this.internalValue.length&&(this.search="",this.$emit("update:modelValue",this.multiple?[]:null))},deep:!0},search(){this.$emit("search-change",this.search)}},emits:["open","search-change","close","select","update:modelValue","remove","tag"],methods:{getValue(){return this.multiple?this.internalValue:this.internalValue.length===0?null:this.internalValue[0]},filterAndFlat(t,e,n){return Nb(yG(e,n,this.groupValues,this.groupLabel,this.customLabel),l0(this.groupValues,this.groupLabel))(t)},flatAndStrip(t){return Nb(l0(this.groupValues,this.groupLabel),gG)(t)},updateSearch(t){this.search=t},isExistingOption(t){return this.options?this.optionKeys.indexOf(t)>-1:!1},isSelected(t){const e=this.trackBy?t[this.trackBy]:t;return this.valueKeys.indexOf(e)>-1},isOptionDisabled(t){return!!t.$isDisabled},getOptionLabel(t){if(o0(t))return"";if(t.isTag)return t.label;if(t.$isLabel)return t.$groupLabel;const e=this.customLabel(t,this.label);return o0(e)?"":e},select(t,e){if(t.$isLabel&&this.groupSelect){this.selectGroup(t);return}if(!(this.blockKeys.indexOf(e)!==-1||this.disabled||t.$isDisabled||t.$isLabel)&&!(this.max&&this.multiple&&this.internalValue.length===this.max)&&!(e==="Tab"&&!this.pointerDirty)){if(t.isTag)this.$emit("tag",t.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(t)){e!=="Tab"&&this.removeElement(t);return}this.multiple?this.$emit("update:modelValue",this.internalValue.concat([t])):this.$emit("update:modelValue",t),this.$emit("select",t,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup(t){const e=this.options.find(n=>n[this.groupLabel]===t.$groupLabel);if(e){if(this.wholeGroupSelected(e)){this.$emit("remove",e[this.groupValues],this.id);const n=this.trackBy?e[this.groupValues].map(s=>s[this.trackBy]):e[this.groupValues],i=this.internalValue.filter(s=>n.indexOf(this.trackBy?s[this.trackBy]:s)===-1);this.$emit("update:modelValue",i)}else{let n=e[this.groupValues].filter(i=>!(this.isOptionDisabled(i)||this.isSelected(i)));this.max&&n.splice(this.max-this.internalValue.length),this.$emit("select",n,this.id),this.$emit("update:modelValue",this.internalValue.concat(n))}this.closeOnSelect&&this.deactivate()}},wholeGroupSelected(t){return t[this.groupValues].every(e=>this.isSelected(e)||this.isOptionDisabled(e))},wholeGroupDisabled(t){return t[this.groupValues].every(this.isOptionDisabled)},removeElement(t,e=!0){if(this.disabled||t.$isDisabled)return;if(!this.allowEmpty&&this.internalValue.length<=1){this.deactivate();return}const n=typeof t=="object"?this.valueKeys.indexOf(t[this.trackBy]):this.valueKeys.indexOf(t);if(this.multiple){const i=this.internalValue.slice(0,n).concat(this.internalValue.slice(n+1));this.$emit("update:modelValue",i)}else this.$emit("update:modelValue",null);this.$emit("remove",t,this.id),this.closeOnSelect&&e&&this.deactivate()},removeLastElement(){this.blockKeys.indexOf("Delete")===-1&&this.search.length===0&&Array.isArray(this.internalValue)&&this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1)},activate(){this.isOpen||this.disabled||(this.adjustPosition(),this.groupValues&&this.pointer===0&&this.filteredOptions.length&&(this.pointer=1),this.isOpen=!0,this.searchable?(this.preserveSearch||(this.search=""),this.preventAutofocus||this.$nextTick(()=>this.$refs.search&&this.$refs.search.focus())):this.preventAutofocus||typeof this.$el<"u"&&this.$el.focus(),this.$emit("open",this.id))},deactivate(){this.isOpen&&(this.isOpen=!1,this.searchable?this.$refs.search!==null&&typeof this.$refs.search<"u"&&this.$refs.search.blur():typeof this.$el<"u"&&this.$el.blur(),this.preserveSearch||(this.search=""),this.$emit("close",this.getValue(),this.id))},toggle(){this.isOpen?this.deactivate():this.activate()},adjustPosition(){if(typeof window>"u")return;const t=this.$el.getBoundingClientRect().top,e=window.innerHeight-this.$el.getBoundingClientRect().bottom;e>this.maxHeight||e>t||this.openDirection==="below"||this.openDirection==="bottom"?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(e-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(t-40,this.maxHeight))}}},_G={data(){return{pointer:0,pointerDirty:!1}},props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40}},computed:{pointerPosition(){return this.pointer*this.optionHeight},visibleElements(){return this.optimizedHeight/this.optionHeight}},watch:{filteredOptions(){this.pointerAdjust()},isOpen(){this.pointerDirty=!1},pointer(){this.$refs.search&&this.$refs.search.setAttribute("aria-activedescendant",this.id+"-"+this.pointer.toString())}},methods:{optionHighlight(t,e){return{"multiselect__option--highlight":t===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(e)}},groupHighlight(t,e){if(!this.groupSelect)return["multiselect__option--disabled",{"multiselect__option--group":e.$isLabel}];const n=this.options.find(i=>i[this.groupLabel]===e.$groupLabel);return n&&!this.wholeGroupDisabled(n)?["multiselect__option--group",{"multiselect__option--highlight":t===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(n)}]:"multiselect__option--disabled"},addPointerElement({key:t}="Enter"){this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],t),this.pointerReset()},pointerForward(){this.pointer<this.filteredOptions.length-1&&(this.pointer++,this.$refs.list.scrollTop<=this.pointerPosition-(this.visibleElements-1)*this.optionHeight&&(this.$refs.list.scrollTop=this.pointerPosition-(this.visibleElements-1)*this.optionHeight),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()),this.pointerDirty=!0},pointerBackward(){this.pointer>0?(this.pointer--,this.$refs.list.scrollTop>=this.pointerPosition&&(this.$refs.list.scrollTop=this.pointerPosition),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerBackward()):this.filteredOptions[this.pointer]&&this.filteredOptions[0].$isLabel&&!this.groupSelect&&this.pointerForward(),this.pointerDirty=!0},pointerReset(){this.closeOnSelect&&(this.pointer=0,this.$refs.list&&(this.$refs.list.scrollTop=0))},pointerAdjust(){this.pointer>=this.filteredOptions.length-1&&(this.pointer=this.filteredOptions.length?this.filteredOptions.length-1:0),this.filteredOptions.length>0&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()},pointerSet(t){this.pointer=t,this.pointerDirty=!0}}},zb={name:"vue-multiselect",mixins:[bG,_G],compatConfig:{MODE:3,ATTR_ENUMERATED_COERCION:!1},props:{name:{type:String,default:""},modelValue:{type:null,default(){return[]}},selectLabel:{type:String,default:"Press enter to select"},selectGroupLabel:{type:String,default:"Press enter to select group"},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:t=>`and ${t} more`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0}},computed:{hasOptionGroup(){return this.groupValues&&this.groupLabel&&this.groupSelect},isSingleLabelVisible(){return(this.singleValue||this.singleValue===0)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible(){return!this.internalValue.length&&(!this.searchable||!this.isOpen)},visibleValues(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue(){return this.internalValue[0]},deselectLabelText(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText(){return this.showLabels?this.selectLabel:""},selectGroupLabelText(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText(){return this.showLabels?this.selectedLabel:""},inputStyle(){return this.searchable||this.multiple&&this.modelValue&&this.modelValue.length?this.isOpen?{width:"100%"}:{width:"0",position:"absolute",padding:"0"}:""},contentStyle(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove(){return this.openDirection==="above"||this.openDirection==="top"?!0:this.openDirection==="below"||this.openDirection==="bottom"?!1:this.preferredOpenDirection==="above"},showSearchInput(){return this.searchable&&(this.hasSingleSelectedSlot&&(this.visibleSingleValue||this.visibleSingleValue===0)?this.isOpen:!0)}}};const vG={ref:"tags",class:"multiselect__tags"},wG={class:"multiselect__tags-wrap"},kG={class:"multiselect__spinner"},CG={key:0},xG={class:"multiselect__option"},SG={class:"multiselect__option"},MG=r.createTextVNode("No elements found. Consider changing the search query."),OG={class:"multiselect__option"},DG=r.createTextVNode("List is empty.");function EG(t,e,n,i,s,a){return r.openBlock(),r.createBlock("div",{tabindex:t.searchable?-1:n.tabindex,class:[{"multiselect--active":t.isOpen,"multiselect--disabled":n.disabled,"multiselect--above":a.isAbove,"multiselect--has-options-group":a.hasOptionGroup},"multiselect"],onFocus:e[14]||(e[14]=o=>t.activate()),onBlur:e[15]||(e[15]=o=>t.searchable?!1:t.deactivate()),onKeydown:[e[16]||(e[16]=r.withKeys(r.withModifiers(o=>t.pointerForward(),["self","prevent"]),["down"])),e[17]||(e[17]=r.withKeys(r.withModifiers(o=>t.pointerBackward(),["self","prevent"]),["up"]))],onKeypress:e[18]||(e[18]=r.withKeys(r.withModifiers(o=>t.addPointerElement(o),["stop","self"]),["enter","tab"])),onKeyup:e[19]||(e[19]=r.withKeys(o=>t.deactivate(),["esc"])),role:"combobox","aria-owns":"listbox-"+t.id},[r.renderSlot(t.$slots,"caret",{toggle:t.toggle},()=>[r.createVNode("div",{onMousedown:e[1]||(e[1]=r.withModifiers(o=>t.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),r.renderSlot(t.$slots,"clear",{search:t.search}),r.createVNode("div",vG,[r.renderSlot(t.$slots,"selection",{search:t.search,remove:t.removeElement,values:a.visibleValues,isOpen:t.isOpen},()=>[r.withDirectives(r.createVNode("div",wG,[(r.openBlock(!0),r.createBlock(r.Fragment,null,r.renderList(a.visibleValues,(o,l)=>r.renderSlot(t.$slots,"tag",{option:o,search:t.search,remove:t.removeElement},()=>[(r.openBlock(),r.createBlock("span",{class:"multiselect__tag",key:l},[r.createVNode("span",{textContent:r.toDisplayString(t.getOptionLabel(o))},null,8,["textContent"]),r.createVNode("i",{tabindex:"1",onKeypress:r.withKeys(r.withModifiers(d=>t.removeElement(o),["prevent"]),["enter"]),onMousedown:r.withModifiers(d=>t.removeElement(o),["prevent"]),class:"multiselect__tag-icon"},null,40,["onKeypress","onMousedown"])]))])),256))],512),[[r.vShow,a.visibleValues.length>0]]),t.internalValue&&t.internalValue.length>n.limit?r.renderSlot(t.$slots,"limit",{key:0},()=>[r.createVNode("strong",{class:"multiselect__strong",textContent:r.toDisplayString(n.limitText(t.internalValue.length-n.limit))},null,8,["textContent"])]):r.createCommentVNode("v-if",!0)]),r.createVNode(r.Transition,{name:"multiselect__loading"},{default:r.withCtx(()=>[r.renderSlot(t.$slots,"loading",{},()=>[r.withDirectives(r.createVNode("div",kG,null,512),[[r.vShow,n.loading]])])]),_:3}),t.searchable?(r.openBlock(),r.createBlock("input",{key:0,ref:"search",name:n.name,id:t.id,type:"text",autocomplete:"off",spellcheck:!1,placeholder:t.placeholder,style:a.inputStyle,value:t.search,disabled:n.disabled,tabindex:n.tabindex,onInput:e[2]||(e[2]=o=>t.updateSearch(o.target.value)),onFocus:e[3]||(e[3]=r.withModifiers(o=>t.activate(),["prevent"])),onBlur:e[4]||(e[4]=r.withModifiers(o=>t.deactivate(),["prevent"])),onKeyup:e[5]||(e[5]=r.withKeys(o=>t.deactivate(),["esc"])),onKeydown:[e[6]||(e[6]=r.withKeys(r.withModifiers(o=>t.pointerForward(),["prevent"]),["down"])),e[7]||(e[7]=r.withKeys(r.withModifiers(o=>t.pointerBackward(),["prevent"]),["up"])),e[9]||(e[9]=r.withKeys(r.withModifiers(o=>t.removeLastElement(),["stop"]),["delete"]))],onKeypress:e[8]||(e[8]=r.withKeys(r.withModifiers(o=>t.addPointerElement(o),["prevent","stop","self"]),["enter"])),class:"multiselect__input","aria-controls":"listbox-"+t.id},null,44,["name","id","placeholder","value","disabled","tabindex","aria-controls"])):r.createCommentVNode("v-if",!0),a.isSingleLabelVisible?(r.openBlock(),r.createBlock("span",{key:1,class:"multiselect__single",onMousedown:e[10]||(e[10]=r.withModifiers((...o)=>t.toggle&&t.toggle(...o),["prevent"]))},[r.renderSlot(t.$slots,"singleLabel",{option:a.singleValue},()=>[r.createTextVNode(r.toDisplayString(t.currentOptionLabel),1)])],32)):r.createCommentVNode("v-if",!0),a.isPlaceholderVisible?(r.openBlock(),r.createBlock("span",{key:2,class:"multiselect__placeholder",onMousedown:e[11]||(e[11]=r.withModifiers((...o)=>t.toggle&&t.toggle(...o),["prevent"]))},[r.renderSlot(t.$slots,"placeholder",{},()=>[r.createTextVNode(r.toDisplayString(t.placeholder),1)])],32)):r.createCommentVNode("v-if",!0)],512),r.createVNode(r.Transition,{name:"multiselect"},{default:r.withCtx(()=>[r.withDirectives(r.createVNode("div",{class:"multiselect__content-wrapper",onFocus:e[12]||(e[12]=(...o)=>t.activate&&t.activate(...o)),tabindex:"-1",onMousedown:e[13]||(e[13]=r.withModifiers(()=>{},["prevent"])),style:{maxHeight:t.optimizedHeight+"px"},ref:"list"},[r.createVNode("ul",{class:"multiselect__content",style:a.contentStyle,role:"listbox",id:"listbox-"+t.id},[r.renderSlot(t.$slots,"beforeList"),t.multiple&&t.max===t.internalValue.length?(r.openBlock(),r.createBlock("li",CG,[r.createVNode("span",xG,[r.renderSlot(t.$slots,"maxElements",{},()=>[r.createTextVNode("Maximum of "+r.toDisplayString(t.max)+" options selected. First remove a selected option to select another.",1)])])])):r.createCommentVNode("v-if",!0),!t.max||t.internalValue.length<t.max?(r.openBlock(!0),r.createBlock(r.Fragment,{key:1},r.renderList(t.filteredOptions,(o,l)=>(r.openBlock(),r.createBlock("li",{class:"multiselect__element",key:l,id:t.id+"-"+l,role:o&&(o.$isLabel||o.$isDisabled)?null:"option"},[o&&(o.$isLabel||o.$isDisabled)?r.createCommentVNode("v-if",!0):(r.openBlock(),r.createBlock("span",{key:0,class:[t.optionHighlight(l,o),"multiselect__option"],onClick:r.withModifiers(d=>t.select(o),["stop"]),onMouseenter:r.withModifiers(d=>t.pointerSet(l),["self"]),"data-select":o&&o.isTag?t.tagPlaceholder:a.selectLabelText,"data-selected":a.selectedLabelText,"data-deselect":a.deselectLabelText},[r.renderSlot(t.$slots,"option",{option:o,search:t.search,index:l},()=>[r.createVNode("span",null,r.toDisplayString(t.getOptionLabel(o)),1)])],42,["onClick","onMouseenter","data-select","data-selected","data-deselect"])),o&&(o.$isLabel||o.$isDisabled)?(r.openBlock(),r.createBlock("span",{key:1,"data-select":t.groupSelect&&a.selectGroupLabelText,"data-deselect":t.groupSelect&&a.deselectGroupLabelText,class:[t.groupHighlight(l,o),"multiselect__option"],onMouseenter:r.withModifiers(d=>t.groupSelect&&t.pointerSet(l),["self"]),onMousedown:r.withModifiers(d=>t.selectGroup(o),["prevent"])},[r.renderSlot(t.$slots,"option",{option:o,search:t.search,index:l},()=>[r.createVNode("span",null,r.toDisplayString(t.getOptionLabel(o)),1)])],42,["data-select","data-deselect","onMouseenter","onMousedown"])):r.createCommentVNode("v-if",!0)],8,["id","role"]))),128)):r.createCommentVNode("v-if",!0),r.withDirectives(r.createVNode("li",null,[r.createVNode("span",SG,[r.renderSlot(t.$slots,"noResult",{search:t.search},()=>[MG])])],512),[[r.vShow,n.showNoResults&&t.filteredOptions.length===0&&t.search&&!n.loading]]),r.withDirectives(r.createVNode("li",null,[r.createVNode("span",OG,[r.renderSlot(t.$slots,"noOptions",{},()=>[DG])])],512),[[r.vShow,n.showNoOptions&&(t.options.length===0||a.hasOptionGroup===!0&&t.filteredOptions.length===0)&&!t.search&&!n.loading]]),r.renderSlot(t.$slots,"afterList")],12,["id"])],36),[[r.vShow,t.isOpen]])]),_:3})],42,["tabindex","aria-owns"])}zb.render=EG;const mo=0,go=1,Vu=t=>t===void 0?{}:JSON.parse(JSON.stringify(t)),c0={components:{Multiselect:zb,CdsDivider:al,CdsCheckbox:tu,CdsSpacer:Xd},props:{modelValue:{type:Array,required:!0},label:{type:String,default:"text"},variant:{type:String,default:"green"},trackBy:{type:String,default:"value"},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},errorMessage:{type:String,default:"Valor inválido"},state:{type:String,default:"default"},options:{type:Array,required:!0,default:()=>[]},optionsField:{type:String,default:"value",required:!1},hideSelectAll:{type:Boolean,default:!1},mobile:{type:Boolean,default:!1}},data(){return{selectedValue:this.$attrs.modelValue||[],internalOptions:Vu(this.options),groupValues:null,groupLabel:null,selectAllValue:!1,queryString:"",indeterminate:!1,sassColorVariables:Yn,uniqueKey:er()}},computed:{hasSlots(){return!!Object.keys(this.$slots).length},errorState(){return this.state==="invalid"},selectedFancyMessage(){return t=>t===1?this.selectedValue[0][this.optionsField]:`${t} opções selecionadas`},selectAllFancyMessage(){return this.hasSelectedValues?"Desfazer seleção":"Selecionar todos"},hasSelectedValues(){return this.selectedValue.length>0},isAllItemsSelected(){return this.selectedValue.length===this.options.length},computedPlaceholder(){return this.$attrs.placeholder?this.$attrs.placeholder:"Selecione uma ou mais opções"},isGroupMode(){return this.internalOptions[mo]&&this.internalOptions[mo].$status||this.internalOptions[go]&&this.internalOptions[go].$status},attrs(){const{label:t,trackBy:e,options:n,...i}=this.$attrs;return i},inputBackgroundColor(){return this.disabled?this.sassColorVariables.n20:this.sassColorVariables.n0},resolveMultiselectHeight(){return this.mobile?"48px":"40px"},resolveMultiselectTop(){return this.mobile?"6px":"5px"}},watch:{selectedValue(t){const e=Vu(t);e.forEach(n=>delete n.isSelected),this.indeterminate=t.length>0&&t.length<this.options.length,this.$emit("input",e),this.$emit("update:modelValue",e)},isAllItemsSelected(t){if(!t&&this.selectAllValue){this.selectAllValue=!1;return}t&&!this.selectAllValue&&(this.selectAllValue=!0)},indeterminate(t){if(this.hideSelectAll)return;const e=document.getElementById(`select-all-input-id-${this.uniqueKey}`);e.indeterminate=t}},mounted(){this.modelValue===null||this.modelValue.length===0||(this.selectedValue=this.modelValue,this.updateRenderOptions(),this.indeterminate=this.hasSelectedValues&&this.selectedValue.length<this.options.length)},methods:{unselectItem(t){this.handleSelectItem(t),this.$emit("remove",t)},selectItem(t){this.handleSelectItem(t),this.$emit("select",t)},handleSelectItem(t){this.isGroupMode?(this.internalOptions[mo].options.forEach(e=>{e[this.optionsField]===t[this.optionsField]&&(e.isSelected=!e.isSelected)}),this.internalOptions[go].options.forEach(e=>{e[this.optionsField]===t[this.optionsField]&&(e.isSelected=!e.isSelected)})):this.internalOptions.forEach(e=>{e[this.optionsField]===t[this.optionsField]&&(e.isSelected=!e.isSelected)})},toggleSelectAll(){this.selectAllValue=!this.hasSelectedValues,this.selectAllValue?this.selectedValue=this.options:this.selectedValue=[],this.$nextTick().then(()=>{this.isGroupMode?(this.internalOptions[mo].options=this.internalOptions[mo].options.map(t=>({...t,isSelected:this.selectAllValue})),this.internalOptions[go].options=this.internalOptions[go].options.map(t=>({...t,isSelected:this.selectAllValue}))):this.internalOptions=this.internalOptions.map(t=>({...t,isSelected:this.selectAllValue}))})},addItemViaCustomCheckbox(t){t.isSelected=!t.isSelected,this.selectedValue=[...this.selectedValue,t]},handleClose(){this.updateRenderOptions(),this.setContentWrapperScrollToTop(),this.$emit("close")},updateRenderOptions(){if(!this.hasSelectedValues){this.internalOptions=Vu(this.options.map(e=>({...e,isSelected:!1}))),this.groupValues=null,this.groupLabel=null;return}this.selectedValue.forEach(e=>{e.isSelected=!0});let t=Vu(this.options);t=t.map(e=>(this.selectedValue.some(i=>i[this.optionsField]===e[this.optionsField])?e.isSelected=!0:e.isSelected=!1,e)),this.internalOptions=[{$status:"Selecionados",options:[]},{$status:"Não selecionados",options:[]}],this.internalOptions[mo].options=this.selectedValue,this.internalOptions[go].options=t.filter(e=>!e.isSelected),this.groupValues="options",this.groupLabel="$status"},handleSearchChange(t){this.queryString=t},setContentWrapperScrollToTop(){document.querySelector(`span[data-cds-multiselect-identifier='${this.uniqueKey}']`).getElementsByClassName("multiselect__content-wrapper")[0].scrollTo(0,0)}}},Pb=()=>{r.useCssVars(t=>({c756d324:t.inputBackgroundColor,"1ad913b3":t.resolveMultiselectHeight,"4bf72a49":t.resolveMultiselectTop}))},Lb=c0.setup;c0.setup=Lb?(t,e)=>(Pb(),Lb(t,e)):Pb;const BG=["data-cds-multiselect-identifier"],VG={key:0},TG=["for"],IG={key:0,class:"label__required-indicator"},$G={key:1,class:"cds-multiselect__grouped-divider"},AG={key:0,class:"cds-multiselect__group-label"},NG={key:1,class:"cds-multiselect__option"},zG={class:"option__checkbox"},PG=["id","onUpdate:modelValue","name"],LG=["id","for","onClick"],FG={key:0,class:"multiselect__single"},RG={key:1},HG={key:0,class:"clustered-multiselect__error-message"};function WG(t,e,n,i,s,a){const o=r.resolveComponent("cds-checkbox"),l=r.resolveComponent("cds-spacer"),d=r.resolveComponent("cds-divider"),h=r.resolveComponent("multiselect",!0);return r.openBlock(),r.createElementBlock("span",{class:"cds-multiselect","data-cds-multiselect-identifier":s.uniqueKey},[r.createElementVNode("span",null,[a.hasSlots?(r.openBlock(),r.createElementBlock("span",VG,[r.renderSlot(t.$slots,"label")])):(r.openBlock(),r.createElementBlock("label",{key:1,class:r.normalizeClass(n.mobile?"clustered-multiselect__mobile-label":"clustered-multiselect__label")},[r.createElementVNode("div",{class:"label__content",for:`clustered-multiselect-${s.uniqueKey}`},[r.createElementVNode("span",null,r.toDisplayString(n.label),1),n.required?(r.openBlock(),r.createElementBlock("span",IG," * ")):r.createCommentVNode("",!0)],8,TG)],2))]),r.createVNode(h,r.mergeProps({id:`clustered-multiselect-${s.uniqueKey}`,ref:"cds-multiselect"},a.attrs,{modelValue:s.selectedValue,"onUpdate:modelValue":e[2]||(e[2]=f=>s.selectedValue=f),options:s.internalOptions,label:n.optionsField,"track-by":n.trackBy,multiple:"","group-values":s.groupValues,"group-label":s.groupLabel,"close-on-select":!1,"clear-on-select":!1,"select-label":"","deselect-label":"","selected-label":"",disabled:n.disabled,placeholder:a.computedPlaceholder,"block-keys":["Delete","Enter"],onClose:a.handleClose,onSelect:a.selectItem,onRemove:a.unselectItem,onSearchChange:a.handleSearchChange}),{beforeList:r.withCtx(()=>[r.withDirectives(r.createElementVNode("div",null,[n.hideSelectAll?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",{key:0,class:"cds-multiselect__option multiselect__option",onClick:e[1]||(e[1]=(...f)=>a.toggleSelectAll&&a.toggleSelectAll(...f))},[r.createVNode(l,{"margin-left":"2"},{default:r.withCtx(()=>[r.createVNode(o,{id:`select-all-input-id-${s.uniqueKey}`,modelValue:s.selectAllValue,"onUpdate:modelValue":e[0]||(e[0]=f=>s.selectAllValue=f),label:a.selectAllFancyMessage,indeterminate:s.indeterminate,variant:n.variant},null,8,["id","modelValue","label","indeterminate","variant"])]),_:1})])),a.isGroupMode?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",$G,[r.createVNode(d,{dimmed:""})]))],512),[[r.vShow,!s.queryString&&n.options.length]])]),option:r.withCtx(({option:f})=>[f.$isLabel?(r.openBlock(),r.createElementBlock("div",AG,[r.createVNode(d,{text:f.$groupLabel,inline:"",dimmed:""},null,8,["text"])])):(r.openBlock(),r.createElementBlock("div",NG,[r.createElementVNode("div",zG,[r.withDirectives(r.createElementVNode("input",{id:`input-${f[n.optionsField]}-${s.uniqueKey}`,"onUpdate:modelValue":m=>f.isSelected=m,type:"checkbox",name:`input-${f[n.optionsField]}-${s.uniqueKey}`,value:!0},null,8,PG),[[r.vModelCheckbox,f.isSelected]]),r.createElementVNode("label",{id:`checkbox-${f[n.optionsField]}`,for:`input-${f[n.optionsField]}-${s.uniqueKey}`,class:r.normalizeClass(f.isSelected?`option__checkbox--${n.variant}`:""),onClick:m=>a.addItemViaCustomCheckbox(f)},null,10,LG)]),r.createTextVNode(" "+r.toDisplayString(f[n.optionsField]),1)]))]),selection:r.withCtx(({values:f,isOpen:m})=>[f.length&&!m?(r.openBlock(),r.createElementBlock("span",FG,r.toDisplayString(a.selectedFancyMessage(f.length)),1)):(r.openBlock(),r.createElementBlock("span",RG))]),noResult:r.withCtx(()=>[e[3]||(e[3]=r.createTextVNode(' Nenhum resultado encontrado para: "')),r.createElementVNode("strong",null,r.toDisplayString(s.queryString),1),e[4]||(e[4]=r.createTextVNode('" '))]),noOptions:r.withCtx(()=>e[5]||(e[5]=[r.createTextVNode(" Não há nenhuma opção para ser exibida. ")])),_:1},16,["id","modelValue","options","label","track-by","group-values","group-label","disabled","placeholder","onClose","onSelect","onRemove","onSearchChange"]),a.errorState&&!n.disabled?(r.openBlock(),r.createElementBlock("div",HG,r.toDisplayString(n.errorMessage),1)):r.createCommentVNode("",!0)],8,BG)}const YG=Q(c0,[["render",WG]]),jG={props:{items:{type:Array,default:()=>[],required:!0,validator:t=>!t.filter(n=>{const i=tn(n.path)&&tn(n.route),s=tn(n.items)||n.items.filter(a=>tn(a.path)&&tn(a.route)).length;return tn(n.label)||s&&i}).length},activeItem:{type:Object,default:()=>({}),required:!0},variant:{type:String,default:"green",validator:t=>sr.includes(t)}},data(){return{internalActiveItem:this.activeItem,colorOptions:sr}},computed:{activeBorderStyle(){return{"--indicatorColor":this.colorHexCode(this.variant)}}},watch:{items:{handler(t){const e=t.filter(n=>n.name===this.activeItem.name);[this.internalActiveItem]=e.length?e:t},immediate:!0}},mounted(){this.internalActiveItem=this.activeItem},methods:{colorHexCode:Za,handleClick(t,e){this.internalActiveItem=e,this.$emit("navbar-click",this.internalActiveItem)},isActive(t){return fo(this.internalActiveItem,t)},resolveRoute({route:t,path:e}){const n=tn(t)?e:t;return n instanceof String?{path:n}:n},routerPushTo(t){return this.resolveRoute(t)?this.resolveRoute(t).path:null},indicatorClass(t){return this.isActive(t)?`item__indicator--active--${this.variant}`:""}}},UG={id:"nav-bar"};function qG(t,e,n,i,s,a){const o=r.resolveComponent("router-link");return r.openBlock(),r.createElementBlock("div",UG,[r.createElementVNode("ul",{class:r.normalizeClass({"nav-bar__container":n.items.length>=1})},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.items,(l,d)=>(r.openBlock(),r.createElementBlock("li",{key:`${d}-${l.name}-item`,role:"presentation",class:r.normalizeClass(["nav-bar__item-container",a.isActive(l)?"nav-bar__item-container--active":"nav-bar__item-container--inactive"])},[r.createVNode(o,{to:a.routerPushTo(l),class:r.normalizeClass(["nav-bar__item",a.isActive(l)?"nav-bar__item--active":"nav-bar__item--inactive"]),onClick:h=>a.handleClick(h,l)},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(l.label),1)]),_:2},1032,["to","class","onClick"]),r.createElementVNode("div",{class:r.normalizeClass(a.indicatorClass(l)),style:r.normalizeStyle(a.activeBorderStyle)},null,6)],2))),128))],2)])}const GG=Q(jG,[["render",qG]]);var KG=Object.defineProperty,ZG=(t,e,n)=>e in t?KG(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Fb=(t,e,n)=>(ZG(t,typeof e!="symbol"?e+"":e,n),n);const Tu={debug:!1,masked:!1,prefix:"",suffix:"",thousands:",",decimal:".",precision:2,disableNegative:!1,disabled:!1,min:null,max:null,allowBlank:!1,minimumNumberOfCharacters:0,modelModifiers:{number:!1},shouldRound:!0,focusOnRight:!1},Rb=["+","-"],Hb=["decimal","thousands","prefix","suffix"];function ra(t){return Math.max(0,Math.min(t,1e3))}function Iu(t,e){return t=t.padStart(e+1,"0"),e===0?t:`${t.slice(0,-e)}.${t.slice(-e)}`}function Wb(t){return t=t?t.toString():"",t.replace(/\D+/g,"")||"0"}function XG(t,e){return t.replace(/(\d)(?=(?:\d{3})+\b)/gm,`$1${e}`)}function JG(t,e,n){return e?t+n+e:t}function QG(t,e){return Rb.includes(t)?(console.warn(`v-money3 "${e}" property don't accept "${t}" as a value.`),!1):/\d/g.test(t)?(console.warn(`v-money3 "${e}" property don't accept "${t}" (any number) as a value.`),!1):!0}function eK(t){for(const e of Hb)if(!QG(t[e],e))return!1;return!0}function Yb(t){for(const e of Hb){t[e]=t[e].replace(/\d+/g,"");for(const n of Rb)t[e]=t[e].replaceAll(n,"")}return t}function jb(t){const e=t.length,n=t.indexOf(".");return e-(n+1)}function Ub(t){return t.replace(/^(-?)0+(?!\.)(.+)/,"$1$2")}function qb(t){return/^-?[\d]+$/g.test(t)}function Gb(t){return/^-?[\d]+(\.[\d]+)$/g.test(t)}function Kb(t,e,n){return e>t.length-1?t:t.substring(0,e)+n+t.substring(e+1)}function Zb(t,e){const n=e-jb(t);if(n>=0)return t;let i=t.slice(0,n);const s=t.slice(n);if(i.charAt(i.length-1)==="."&&(i=i.slice(0,-1)),parseInt(s.charAt(0),10)>=5){for(let a=i.length-1;a>=0;a-=1){const o=i.charAt(a);if(o!=="."&&o!=="-"){const l=parseInt(o,10)+1;if(l<10)return Kb(i,a,l);i=Kb(i,a,"0")}}return`1${i}`}return i}function Xb(t,e){const n=()=>{t.setSelectionRange(e,e)};t===document.activeElement&&(n(),setTimeout(n,1))}function Jb(t){return new Event(t,{bubbles:!0,cancelable:!1})}function et({debug:t=!1},...e){t&&console.log(...e)}class $u{constructor(e){Fb(this,"number",0n),Fb(this,"decimal",0),this.setNumber(e)}getNumber(){return this.number}getDecimalPrecision(){return this.decimal}setNumber(e){this.decimal=0,typeof e=="bigint"?this.number=e:typeof e=="number"?this.setupString(e.toString()):this.setupString(e)}toFixed(e=0,n=!0){let i=this.toString();const s=e-this.getDecimalPrecision();return s>0?(i.includes(".")||(i+="."),i.padEnd(i.length+s,"0")):s<0?n?Zb(i,e):i.slice(0,s):i}toString(){let e=this.number.toString();if(this.decimal){let n=!1;return e.charAt(0)==="-"&&(e=e.substring(1),n=!0),e=e.padStart(e.length+this.decimal,"0"),e=`${e.slice(0,-this.decimal)}.${e.slice(-this.decimal)}`,e=Ub(e),(n?"-":"")+e}return e}lessThan(e){const[n,i]=this.adjustComparisonNumbers(e);return n<i}biggerThan(e){const[n,i]=this.adjustComparisonNumbers(e);return n>i}isEqual(e){const[n,i]=this.adjustComparisonNumbers(e);return n===i}setupString(e){if(e=Ub(e),qb(e))this.number=BigInt(e);else if(Gb(e))this.decimal=jb(e),this.number=BigInt(e.replace(".",""));else throw new Error(`BigNumber has received and invalid format for the constructor: ${e}`)}adjustComparisonNumbers(e){let n;e.constructor.name!=="BigNumber"?n=new $u(e):n=e;const i=this.getDecimalPrecision()-n.getDecimalPrecision();let s=this.getNumber(),a=n.getNumber();return i>0?a=n.getNumber()*10n**BigInt(i):i<0&&(s=this.getNumber()*10n**BigInt(i*-1)),[s,a]}}function tK(t,e=Tu,n=""){if(et(e,"utils format() - caller",n),et(e,"utils format() - input1",t),t==null)t="";else if(typeof t=="number")e.shouldRound?t=t.toFixed(ra(e.precision)):t=t.toFixed(ra(e.precision)+1).slice(0,-1);else if(e.modelModifiers&&e.modelModifiers.number&&qb(t))t=Number(t).toFixed(ra(e.precision));else if(!e.disableNegative&&t==="-")return t;et(e,"utils format() - input2",t);const i=e.disableNegative?"":t.indexOf("-")>=0?"-":"";let s=t.replace(e.prefix,"").replace(e.suffix,"");et(e,"utils format() - filtered",s),!e.precision&&e.thousands!=="."&&Gb(s)&&(s=Zb(s,0),et(e,"utils format() - !opt.precision && isValidFloat()",s));const a=Wb(s);et(e,"utils format() - numbers",a),et(e,"utils format() - numbersToCurrency",i+Iu(a,e.precision));const o=new $u(i+Iu(a,e.precision));et(e,"utils format() - bigNumber1",o.toString()),e.max&&o.biggerThan(e.max)&&o.setNumber(e.max),e.min&&o.lessThan(e.min)&&o.setNumber(e.min);const l=o.toFixed(ra(e.precision),e.shouldRound);if(et(e,"utils format() - bigNumber2",o.toFixed(ra(e.precision))),/^0(\.0+)?$/g.test(l)&&e.allowBlank)return"";let[d,h]=l.split(".");const f=h!==void 0?h.length:0;d=d.padStart(e.minimumNumberOfCharacters-f,"0"),d=XG(d,e.thousands);const m=e.prefix+JG(d,h,e.decimal)+e.suffix;return et(e,"utils format() - output",m),m}function Qb(t,e=Tu,n=""){if(et(e,"utils unformat() - caller",n),et(e,"utils unformat() - input",t),!e.disableNegative&&t==="-")return et(e,"utils unformat() - return netagive symbol",t),t;const i=e.disableNegative?"":t.indexOf("-")>=0?"-":"",s=t.replace(e.prefix,"").replace(e.suffix,"");et(e,"utils unformat() - filtered",s);const a=Wb(s);et(e,"utils unformat() - numbers",a);const o=new $u(i+Iu(a,e.precision));et(e,"utils unformat() - bigNumber1",a.toString()),e.max&&o.biggerThan(e.max)&&o.setNumber(e.max),e.min&&o.lessThan(e.min)&&o.setNumber(e.min);let l=o.toFixed(ra(e.precision),e.shouldRound);return e.modelModifiers&&e.modelModifiers.number&&(l=parseFloat(l)),et(e,"utils unformat() - output",l),l}const d0=(t,e,n)=>{if(et(e,"directive setValue() - caller",n),!eK(e)){et(e,"directive setValue() - validateRestrictedOptions() return false. Stopping here...",t.value);return}let i=t.value.length-(t.selectionEnd||0);t.value=tK(t.value,e,n),i=Math.max(i,e.suffix.length),i=t.value.length-i,i=Math.max(i,e.prefix.length),Xb(t,i),t.dispatchEvent(Jb("change"))},e_=(t,e)=>{const n=t.currentTarget,i=t.code==="Backspace"||t.code==="Delete",s=n.value.length-(n.selectionEnd||0)===0;if(et(e,"directive onkeydown() - el.value",n.value),et(e,"directive onkeydown() - backspacePressed",i),et(e,"directive onkeydown() - isAtEndPosition",s),e.allowBlank&&i&&s&&Qb(n.value,e,"directive onkeydown allowBlank")===0&&(et(e,'directive onkeydown() - set el.value = ""',n.value),n.value="",n.dispatchEvent(Jb("change"))),et(e,"directive onkeydown() - e.key",t.key),t.key==="+"){et(e,"directive onkeydown() - unformat el.value",n.value);let a=Qb(n.value,e,"directive onkeydown +");typeof a=="string"&&(a=parseFloat(a)),a<0&&(n.value=String(a*-1))}},t_=(t,e)=>{const n=t.currentTarget;et(e,"directive oninput()",n.value),/^[1-9]$/.test(n.value)&&(n.value=Iu(n.value,ra(e.precision)),et(e,"directive oninput() - is 1-9",n.value)),d0(n,e,"directive oninput")},n_=(t,e)=>{const n=t.currentTarget;et(e,"directive onFocus()",n.value),e.focusOnRight&&Xb(n,n.value.length-e.suffix.length)},nK={mounted(t,e){if(!e.value)return;const n=Yb({...Tu,...e.value});if(et(n,"directive mounted() - opt",n),t.tagName.toLocaleUpperCase()!=="INPUT"){const i=t.getElementsByTagName("input");i.length!==1||(t=i[0])}t.onkeydown=i=>{e_(i,n)},t.oninput=i=>{t_(i,n)},t.onfocus=i=>{n_(i,n)},et(n,"directive mounted() - el.value",t.value),d0(t,n,"directive mounted")},updated(t,e){if(!e.value)return;const n=Yb({...Tu,...e.value});t.onkeydown=i=>{e_(i,n)},t.oninput=i=>{t_(i,n)},t.onfocus=i=>{n_(i,n)},et(n,"directive updated() - el.value",t.value),et(n,"directive updated() - opt",n),d0(t,n,"directive updated")},beforeUnmount(t){t.onkeydown=null,t.oninput=null,t.onfocus=null}},iK={"#":{pattern:/\d/},X:{pattern:/[0-9a-z]/i},S:{pattern:/[a-z]/i},A:{pattern:/[a-z]/i,transform:t=>t.toLocaleUpperCase()},a:{pattern:/[a-z]/i,transform:t=>t.toLocaleLowerCase()},"\\":{escape:!0},"?":{optional:!0},"*":{repeat:!0},"|":{pipe:!0}},sa="__input-facade__";function u0(t){this.masked=this.unmasked=t||""}function i_(){return new CustomEvent("input",{bubbles:!0,cancelable:!0,detail:{facade:!0}})}function h0(t,e){return(Array.isArray(t)||typeof t=="string")&&(t={mask:t}),Object.assign(t||{},e)}function Au(t){const e=t instanceof HTMLInputElement?t:t.querySelector("input");if(!e)throw new Error("facade directive requires an input element");return e}function r_(t,e){const{target:n,detail:i,inputType:s}=t;if(i!=null&&i.facade||(t.stopPropagation(),["insertCompositionText","insertFromComposition"].includes(s)&&e[sa].config.mask))return!1;const a=n.value,o=n.selectionEnd,{oldValue:l}=n[sa];Nu(n,null,{emit:!1},t),rK(t,a,o),l!==n.value&&n.dispatchEvent(i_())}function rK(t,e,n){const{target:i}=t,s=["text","tel","search",null].includes(i.getAttribute("type")),a=i[sa]&&i[sa].config;if(i!==document.activeElement||!s||!a.mask&&!a.masked)return;const o=t.inputType||"insertText",l=["insertText","insertFromPaste"].includes(o),d=l&&n==e.length;let h=l&&e[n-1];const f=i.value.toLocaleLowerCase();let m=n;if(d)m=f.length;else if(h){h=h.toLocaleLowerCase();let g=m;for(;g<=f.length&&f.charAt(g-1)!==h;)g++;m=g<=f.length?g:m-1}i.setSelectionRange(m,m),setTimeout(function(){i.setSelectionRange(m,m)},0)}function Nu(t,e,{emit:n=!0,force:i=!1}={},s){var a,o;let{config:l,oldValue:d,isComposing:h}=t[sa],f=((o=(a=e==null?void 0:e.data)==null?void 0:a.model)==null?void 0:o.value)||t.value;if(!(l.mask&&h)&&(d=d||"",f=f||"",i||d!==f)){["deleteByCut","deleteContent","deleteContentBackward","deleteContentForward"].includes(s==null?void 0:s.inputType)&&(l={...l,short:!0});let m=o_(f,l);if(s&&typeof l.formatter=="function"){const g=l.formatter(m,s);if(typeof g=="string")m=o_(g,l);else if(g===!1){t.value=d;return}}t[sa].oldValue=m.masked,t.unmaskedValue=m.unmasked,t.value!==m.masked&&(t.value=m.masked),n&&t.dispatchEvent(i_())}}let f0=iK,s_=!1;try{"a".localeCompare("b","i")}catch(t){s_=t.name==="RangeError"}function sK(t){t&&(f0=t)}function aK(t,e){const n=e.masks.slice().sort((l,d)=>l.length-d.length),i=l=>Object.assign({},e,l),s=(l,d)=>{const h=p0(t,i({mask:d})),f=l.unmasked.length;return h.unmasked.length>f?h:l};if(!n.length)return new u0;const a=n.shift();let o=p0(t,i({mask:a}));for(;n.length;){const l=n.shift();o=s(o,l)}return o}function p0(t,e){var n,i;let{mask:s="",tokens:a,prefill:o=!1,short:l=!1}=e;a=a?Object.assign({},f0,a):f0;let d=new u0,h=!1,f=0,m=0,g="";function y(w){const v=s[m+1],k=a[v];return{escape:!!(w!=null&&w.escape),optional:!!(k!=null&&k.optional),repeat:!!(k!=null&&k.repeat),...(k==null?void 0:k.pipe)&&{pipe:s.substring(m).match(/^(.\|)+./g)[0].split("|")}}}for(;m<s.length;){const w=s[m],v=a[w];let k=t[f];const S=y(v);if(v&&!h&&!S.pipe){if(S.escape){h=!0,m++;continue}if(!k)break;if((n=v.pattern)!=null&&n.test(k))k=((i=v.transform)==null?void 0:i.call(v,k))||k,d.unmasked+=k,d.masked+=g+k,g="",S.repeat||(m+=S.optional?2:1);else if(S.optional||S.repeat){m+=2;continue}f++}else if(S.pipe){if(!k)break;const E=S.pipe.find(a_.bind(null,k));E&&(d.unmasked+=E,d.masked+=g+E,m+=S.pipe.length*2-1,g=""),f++}else a_(k,w)?(d.masked+=g+w,f++,g="",S.optional&&(d.unmasked+=w)):S.optional||(g+=w),h=!1,m+=S.optional?2:1}return(o&&!d.unmasked||!l&&d.unmasked)&&(d.masked+=g),d}function a_(t,e){return s_?(t==null?void 0:t.localeCompare(e,void 0,{sensitivity:"base"}))===0:(t==null?void 0:t.toLocaleLowerCase())===(e==null?void 0:e.toLocaleLowerCase())}function o_(t,e){return t=(t||"").toString(),e=h0(e),e.mask?Array.isArray(e.mask)?aK(t,Object.assign({},e,{masks:e.mask})):p0(t,e):new u0(t)}const yo=sa,rc={beforeMount:(t,{value:e,modifiers:n},i)=>{t=Au(t);const s=h0(e,n);t[yo]={config:s},Nu(t,i,{force:s.prefill})},mounted:t=>{t=Au(t);const e=t[yo],n=t.parentElement||t,i=a=>{a.target===t&&r_(a,t)},s=a=>{a.target===t&&(a.type==="compositionend"?(t[yo].isComposing=!1,r_(a,t)):t[yo].isComposing=!0)};n.addEventListener("input",i,!0),n.addEventListener("compositionstart",s,!0),n.addEventListener("compositionupdate",s,!0),n.addEventListener("compositionend",s,!0),e.cleanup=()=>{n.removeEventListener("input",i,!0),n.removeEventListener("compositionstart",s,!0),n.removeEventListener("compositionend",s,!0),n.removeEventListener("compositionupdate",s,!0)}},updated:(t,{value:e,oldValue:n,modifiers:i},s)=>{t=Au(t),e!==n?(t[yo].config=h0(e,i),Nu(t,s,{force:!0})):Nu(t,s)},unmounted:t=>{Au(t)[yo].cleanup()}},oK=(t,e)=>{const n=t.__vccOpts||t;for(const[i,s]of e)n[i]=s;return n},lK={name:"InputFacade",directives:{facade:rc},props:{formatter:{type:Function,default:null},mask:{type:[String,Array],default:null},masked:{type:Boolean,default:!1},prefill:{type:Boolean,default:!1},short:{type:Boolean,default:!1},tokens:{type:Object,default:()=>({})},modelValue:{type:[String,Number],default:""},modelModifiers:{type:Object,default:()=>({})}},emits:["update:model-value","change","keydown","keyup","paste"],data(){return{maskedValue:this.modelValue,unmaskedValue:null}},computed:{config(){return{mask:this.mask,masked:this.masked,tokens:this.tokens,formatter:this.formatter,prefill:this.prefill,short:this.short}},emittedValue(){return this.mask&&this.masked?this.maskedValue:this.unmaskedValue}},watch:{modelValue(t){t!==this.emittedValue&&(this.maskedValue=t)},mask:{deep:!0,handler(t){!t&&!this.masked&&(this.maskedValue=this.unmaskedValue)}},masked(){this.emitInput()}},methods:{onInput({target:t}){this.maskedValue=t.value,this.unmaskedValue=t.unmaskedValue,this.modelModifiers.lazy||this.emitInput()},onChange(){this.$emit("change",this.emittedValue),this.modelModifiers.lazy&&this.emitInput()},emitInput(){this.$emit("update:model-value",this.emittedValue)}}},cK=["value"];function dK(t,e,n,i,s,a){const o=r.resolveDirective("facade");return r.withDirectives((r.openBlock(),r.createElementBlock("input",{type:"text",value:s.maskedValue,onInput:e[0]||(e[0]=(...l)=>a.onInput&&a.onInput(...l)),onChange:e[1]||(e[1]=(...l)=>a.onChange&&a.onChange(...l)),onKeyup:e[2]||(e[2]=l=>t.$emit("keyup",l)),onKeydown:e[3]||(e[3]=l=>t.$emit("keydown",l)),onPaste:e[4]||(e[4]=l=>t.$emit("paste",l))},null,40,cK)),[[o,a.config]])}const l_=oK(lK,[["render",dK]]),uK={install(t,e={}){e.tokens&&sK(e.tokens),t.component(l_.name,l_),t.directive(e.name||"facade",rc)}};typeof window<"u"&&window.Vue&&window.Vue.use(uK);const hK={directives:{money:nK,cdstip:Ba,facade:rc},components:{CdsLink:Bu,CdsIcon:Be,CdsSpinner:Bs},props:{modelValue:{type:[Number,String],default:0},unmaskedValue:{type:[Number,String],default:0},label:{type:String,default:"Label"},disabled:{type:Boolean,default:!1},state:{type:String,default:"default"},required:{type:Boolean,default:!1},placeholder:{type:String,default:"Digite aqui a informação"},errorMessage:{type:String,default:"Valor inválido"},fluid:{type:Boolean,default:!1,required:!1},tooltip:{type:String,default:null},tooltipIcon:{type:String,default:"info-outline"},money:{type:Boolean,default:!1},linkText:{type:String,default:null},linkUrl:{type:String,default:"https://cuida.framer.wiki/"},mask:{type:[String,Array],default:null},mobile:{type:Boolean,default:!1}},data(){return{internalValue:"",isBeingFocused:!1,moneyDirectiveConfig:{decimal:",",thousands:".",prefix:"R$ ",precision:2,masked:!1}}},computed:{hasSlots(){return!!Object.keys(this.$slots).length},stepperInputDynamicClass(){let t=this.fluid?"text-input--fluid":"text-input";return this.isBeingFocused?this.disabled||(this.state==="default"?t+=" text-input--focused":this.state==="valid"?t+=" text-input--focused-valid":this.state==="invalid"?t+=" text-input--focused-invalid":this.state==="loading"&&(t+=" text-input--focused-loading")):this.disabled?t+=" text-input--disabled":this.state==="valid"?t+=" text-input--valid":this.state==="invalid"&&(t+=" text-input--invalid"),t},labelDynamicClass(){const t=this.mobile?"mobile-label":"label";return this.fluid?`text-input__${t}--fluid`:`text-input__${t}`},validState(){return this.state==="valid"},errorState(){return this.state==="invalid"},loadingState(){return this.state==="loading"},inputClass(){const t=this.mobile?"mobile-field":"field";return this.fluid?`text-input__${t}--fluid`:`text-input__${t}`}},watch:{modelValue:{handler(t,e){t!==e&&(this.internalValue=t)},immediate:!0},internalValue(t){let e=String(t);if(this.money){let n=e.replace("R$ ","");n=n.replaceAll(".",","),n=n.replace(/(.*),(\d{2})/g,"$1.$2"),n=n.replaceAll(",",""),this.$emit("update:unmaskedValue",+n),this.$emit("update:modelValue",e)}else this.mask?this.internalValue=e:e.length>15?this.internalValue=+e.slice(0,15):(this.$emit("update:modelValue",+e),this.$emit("update:unmaskedValue",+e))}},methods:{generateKey:er,handleBlur(){this.isBeingFocused=!1,this.$emit("blur",!0)},handleFocus(){this.isBeingFocused=!0,this.$emit("focus",!0)}}},fK={key:0},pK={class:"label__content",for:"cds-text-input"},mK={key:0,class:"label__required-indicator"},gK=["id","placeholder","disabled"],yK=["id","placeholder","disabled"],bK=["id","placeholder","disabled"],_K={class:"text-input__icon-container"},vK={key:0,class:"text-input__error-message"};function wK(t,e,n,i,s,a){const o=r.resolveComponent("cds-icon"),l=r.resolveComponent("cds-link"),d=r.resolveComponent("cds-spinner"),h=r.resolveDirective("cdstip"),f=r.resolveDirective("money"),m=r.resolveDirective("facade");return r.openBlock(),r.createElementBlock("div",null,[r.createElementVNode("span",null,[a.hasSlots?(r.openBlock(),r.createElementBlock("span",fK,[r.renderSlot(t.$slots,"label",{},void 0,!0)])):(r.openBlock(),r.createElementBlock("label",{key:1,class:r.normalizeClass(a.labelDynamicClass)},[r.createElementVNode("div",pK,[r.createElementVNode("span",null,r.toDisplayString(n.label),1),n.required?(r.openBlock(),r.createElementBlock("span",mK," * ")):r.createCommentVNode("",!0),n.tooltip?r.withDirectives((r.openBlock(),r.createBlock(o,{key:1,name:n.tooltipIcon,height:"20",width:"20",class:"label__icon"},null,8,["name"])),[[h,n.tooltip]]):r.createCommentVNode("",!0)]),n.linkText?(r.openBlock(),r.createBlock(l,{key:0,class:"label__link",href:n.linkUrl,text:n.linkText,"new-tab":""},null,8,["href","text"])):r.createCommentVNode("",!0)],2))]),r.createElementVNode("div",{class:r.normalizeClass(a.stepperInputDynamicClass)},[n.money?r.withDirectives((r.openBlock(),r.createElementBlock("input",{key:0,id:`cds-number-input-${t.$attrs.id||a.generateKey()}`,"onUpdate:modelValue":e[0]||(e[0]=g=>s.internalValue=g),placeholder:n.placeholder,disabled:n.disabled,class:r.normalizeClass(a.inputClass),onFocus:e[1]||(e[1]=(...g)=>a.handleFocus&&a.handleFocus(...g)),onBlur:e[2]||(e[2]=(...g)=>a.handleBlur&&a.handleBlur(...g))},null,42,gK)),[[r.vModelText,s.internalValue,void 0,{lazy:!0}],[f,s.moneyDirectiveConfig]]):n.mask?r.withDirectives((r.openBlock(),r.createElementBlock("input",{key:1,id:`cds-number-input-${t.$attrs.id||a.generateKey()}`,"onUpdate:modelValue":e[3]||(e[3]=g=>s.internalValue=g),placeholder:n.placeholder,disabled:n.disabled,class:r.normalizeClass(a.inputClass),type:"tel",onFocus:e[4]||(e[4]=(...g)=>a.handleFocus&&a.handleFocus(...g)),onBlur:e[5]||(e[5]=(...g)=>a.handleBlur&&a.handleBlur(...g))},null,42,yK)),[[r.vModelText,s.internalValue],[m,n.mask]]):r.withDirectives((r.openBlock(),r.createElementBlock("input",{key:2,id:`cds-number-input-${t.$attrs.id||a.generateKey()}`,"onUpdate:modelValue":e[6]||(e[6]=g=>s.internalValue=g),placeholder:n.placeholder,disabled:n.disabled,class:r.normalizeClass(a.inputClass),type:"number",onFocus:e[7]||(e[7]=(...g)=>a.handleFocus&&a.handleFocus(...g)),onBlur:e[8]||(e[8]=(...g)=>a.handleBlur&&a.handleBlur(...g))},null,42,bK)),[[r.vModelText,s.internalValue]]),r.createElementVNode("div",_K,[a.validState&&!n.disabled?(r.openBlock(),r.createBlock(o,{key:0,height:"20",width:"20",name:"check-outline",class:"text-input__icon--check-icon"})):r.createCommentVNode("",!0),a.errorState&&!n.disabled?(r.openBlock(),r.createBlock(o,{key:1,height:"20",width:"20",name:"alert-outline",class:"text-input__icon--alert-circle-icon"})):r.createCommentVNode("",!0),a.loadingState&&!n.disabled?(r.openBlock(),r.createBlock(d,{key:2,size:"sm",variant:"blue",class:"text-input__icon--spinner-icon"})):r.createCommentVNode("",!0)])],2),a.errorState&&!n.disabled?(r.openBlock(),r.createElementBlock("div",vK,r.toDisplayString(n.errorMessage),1)):r.createCommentVNode("",!0)])}const kK=Q(hK,[["render",wK],["__scopeId","data-v-28d3515f"]]),CK={props:{size:{type:String,default:"md"},variant:{type:String,default:"green"}},computed:{computedSizeClass(){return`spin--${this.size}`},computedColorClass(){return`spin--${this.variant}`},computedSpinnerClass(){return`${this.computedSizeClass} ${this.computedColorClass}`}}},xK={class:"overlay"};function SK(t,e,n,i,s,a){return r.openBlock(),r.createElementBlock("div",xK,[r.createElementVNode("div",{class:r.normalizeClass(a.computedSpinnerClass)},null,2)])}const MK=Q(CK,[["render",SK],["__scopeId","data-v-2022bd33"]]),OK={},DK={class:"page-container__container"};function EK(t,e,n,i,s,a){return r.openBlock(),r.createElementBlock("div",DK,[r.renderSlot(t.$slots,"default",{},void 0,!0)])}const c_=Q(OK,[["render",EK],["__scopeId","data-v-2f5908a0"]]),m0={directives:{cdstip:Ba},components:{CdsIcon:Be,CdsAvatar:ll,CdsRichTooltip:n0,CdsPopover:ol},props:{variant:{type:String,default:"green"},items:{type:Array,default:()=>[],required:!0,validator:t=>!t.filter(n=>{const i=tn(n.path)&&tn(n.route),s=tn(n.items)||n.items.filter(a=>tn(a.path)&&tn(a.route)).length;return tn(n.label)||s&&i}).length},activeItem:{type:Object,default:()=>({}),required:!0},showLogout:{type:Boolean,default:!0},showProfileMenu:{type:Boolean,default:!1},profileMenuItems:{type:Array,default:()=>[]},userName:{type:String,default:""},userRole:{type:String,default:""},userPicture:{type:String,default:null},collapsible:{type:Boolean,default:!1},collapsibleState:{type:Boolean,default:!1},logoImage:{type:String,default:null},light:{type:Boolean,default:!1},searchButton:{type:Boolean,default:!1}},data(){return{internalActiveItem:{},collapsed:!1,showUncollapsedItems:!0,colorOptions:sr,expandItemControl:0,itemsWithVisibilityController:[],logoutTooltipText:"Sair",showPopover:!1,showSearchButtonShortCut:!0}},computed:{mainClass(){return this.light?this.collapsed?"side-bar--light--collapsed":"side-bar--light":this.collapsed?"side-bar--dark--collapsed":"side-bar--dark"},collapsedTooltipClass(){return this.collapsed?"Maximizar":"Minimizar"},shouldShowProfileMenu(){var t;return this.showProfileMenu&&((t=this.profileMenuItems)==null?void 0:t.length)>0},avatarCursorResolver(){return this.shouldShowProfileMenu?"pointer":"default"},computedSearchButtonJustify(){return this.collapsed?"center":"space-between"}},watch:{items:{handler(t){const e=t.filter(n=>n.name===this.activeItem.name);[this.internalActiveItem]=e.length?e:t},immediate:!0},collapsibleState:{handler(t){this.collapsed=t},immediate:!0},activeItem:{handler(t){this.internalActiveItem=t},immediate:!0},collapsed(t){if(t){this.showUncollapsedItems=!1,this.showSearchButtonShortCut=!1;return}setTimeout(()=>{this.showUncollapsedItems=!0},500),setTimeout(()=>{this.showSearchButtonShortCut=!0},250)}},created(){this.internalActiveItem=this.activeItem,this.collapsed=this.collapsibleState,this.items.forEach((t,e)=>{this.itemsWithVisibilityController.push({name:t.label,index:e,show:!1})})},methods:{colorHexCode:Za,handleClick(t,e){if(!fo(this.internalActiveItem,e)){this.internalActiveItem=e,this.showUncollapsedItems=!0,this.expandItemControl+=1;return}if(e.items&&e.items.length>0){this.showUncollapsedItems=!this.showUncollapsedItems,this.expandItemControl+=1;return}e.icon&&(this.showUncollapsedItems=!1,this.expandItemControl+=1),this.$emit("sidebar-click",this.internalActiveItem)},isActive(t){let e=!1,n=!1;return t.items&&t.items.length>0&&(e=t.items.some(i=>fo(i,this.internalActiveItem))),n=fo(this.internalActiveItem,t),e||n},resolveRoute({route:t,path:e}){const n=tn(t)?e:t;return n instanceof String?{path:n}:n},routerPushTo(t){return this.resolveRoute(t)?this.resolveRoute(t).path:null},handleCollapse(){this.$emit("collapse-click",!this.collapsed),this.collapsed=!this.collapsed},resolveItemCollapse(t){return!!t.items&&t.items.length>0&&this.isActive(t)&&this.showUncollapsedItems},resolveCollapsibleItemIcon(t){return this.resolveItemCollapse(t)?"caret-up-outline":"caret-down-outline"},handleProfileMenuOptionClick(t){this.$emit("profile-menu-option-click",t),this.showPopover=!1},handleLogoClick(){this.$emit("logo-click")}}},d_=()=>{r.useCssVars(t=>({f94d1202:t.avatarCursorResolver,"487eda42":t.computedSearchButtonJustify}))},u_=m0.setup;m0.setup=u_?(t,e)=>(d_(),u_(t,e)):d_;const BK={class:"side-bar__header"},VK=["src"],TK={class:"search-button__text-container"},IK={key:0},$K=["onMouseleave"],AK=["onClick"],NK=["id","onMouseover"],zK={class:"side-bar__subitem-container"},PK={class:"side-bar__subitems"},LK=["href","target","onClick"],FK={key:0,class:"side-bar__subitem-link"},RK={key:1},HK={class:"side-bar__subitems--collapsed"},WK={class:"side-bar__tooltip-title"},YK=["href","onClick"],jK={key:0,class:"side-bar__subitem-link"},UK={key:0},qK={key:0},GK={class:"dropdown-button__dropdown"},KK=["onClick"],ZK={class:"dropdown__text"};function XK(t,e,n,i,s,a){const o=r.resolveComponent("cds-icon"),l=r.resolveComponent("router-link"),d=r.resolveComponent("cds-rich-tooltip"),h=r.resolveComponent("cds-avatar"),f=r.resolveComponent("cds-popover"),m=r.resolveDirective("cdstip"),g=r.resolveDirective("on-click-outside");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(a.mainClass)},[r.createElementVNode("div",{class:r.normalizeClass(`variant-resolver--${n.variant}`)},[r.createElementVNode("div",BK,[r.createElementVNode("div",{class:"side-bar__logo",onClick:e[0]||(e[0]=(...y)=>a.handleLogoClick&&a.handleLogoClick(...y))},[s.collapsed?r.createCommentVNode("",!0):r.renderSlot(t.$slots,"logo",{key:0},()=>[r.createElementVNode("img",{src:n.logoImage},null,8,VK)])]),n.collapsible?r.withDirectives((r.openBlock(),r.createElementBlock("div",{key:0,class:"side-bar__collapsible",onClick:e[1]||(e[1]=(...y)=>a.handleCollapse&&a.handleCollapse(...y))},[s.collapsed?(r.openBlock(),r.createBlock(o,{key:1,name:"sidebar-expand-outline"})):(r.openBlock(),r.createBlock(o,{key:0,name:"sidebar-collapse-outline"}))])),[[m,a.collapsedTooltipClass]]):r.createCommentVNode("",!0)]),n.searchButton?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["side-bar__search-button",{"side-bar__search-button--light":n.light}]),onClick:e[2]||(e[2]=y=>t.$emit("search-button-click"))},[r.createElementVNode("div",TK,[r.createVNode(o,{height:"20",width:"20",name:"search-outline"}),s.showSearchButtonShortCut?(r.openBlock(),r.createElementBlock("span",IK,"Busca")):r.createCommentVNode("",!0)]),s.showSearchButtonShortCut?(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass(["side-bar__search-shortcut",{"side-bar__search-shortcut--light":n.light}])}," Ctrl + K ",2)):r.createCommentVNode("",!0)],2)):r.createCommentVNode("",!0),r.createElementVNode("ul",{class:r.normalizeClass({"side-bar__container":n.items.length>=1})},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.items,(y,w)=>(r.openBlock(),r.createElementBlock("li",{key:`${w}-${y.name}-item`,role:"presentation",onMouseleave:v=>s.itemsWithVisibilityController[w].show=!1},[r.createElementVNode("div",{class:r.normalizeClass(["side-bar__item-container",a.isActive(y)?"side-bar__item-container--active":"side-bar__item-container--inactive"]),onClick:v=>a.handleClick(v,y)},[y.items||y.type==="link"?r.withDirectives((r.openBlock(),r.createElementBlock("div",{key:0,id:y.label,class:r.normalizeClass(["side-bar__item",a.isActive(y)?"side-bar__item--active":"side-bar__item--inactive"]),onMouseover:v=>s.itemsWithVisibilityController[w].show=!0},[r.createElementVNode("div",null,[r.createVNode(o,{name:y.icon,width:"20",height:"20"},null,8,["name"]),r.createElementVNode("span",null,r.toDisplayString(y.label),1)]),y.items&&y.items.length>0?(r.openBlock(),r.createBlock(o,{key:s.expandItemControl,name:a.resolveCollapsibleItemIcon(y),class:r.normalizeClass({item__caret:a.isActive(y)}),width:"16",height:"16"},null,8,["name","class"])):r.createCommentVNode("",!0)],42,NK)),[[m,s.collapsed&&y.type==="link"?y.label:null]]):r.withDirectives((r.openBlock(),r.createBlock(l,{key:1,to:a.routerPushTo(y),class:r.normalizeClass(["side-bar__item",a.isActive(y)?"side-bar__item--active":"side-bar__item--inactive"]),onClick:v=>a.handleClick(v,y)},{default:r.withCtx(()=>[r.createElementVNode("div",null,[r.createVNode(o,{name:y.icon,width:"20",height:"20"},null,8,["name"]),r.createElementVNode("span",null,r.toDisplayString(y.label),1)])]),_:2},1032,["to","class","onClick"])),[[m,s.collapsed?y.label:null]])],10,AK),s.collapsed?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(r.Transition,{key:0,name:"collapse"},{default:r.withCtx(()=>[r.withDirectives(r.createElementVNode("div",zK,[r.createElementVNode("div",PK,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(y.items,(v,k)=>(r.openBlock(),r.createElementBlock("a",{key:`${k}-${v.name}-item`,class:r.normalizeClass(["side-bar__subitem",a.isActive(v)&&(v==null?void 0:v.type)!=="external"?"side-bar__subitem--active":"side-bar__subitem--inactive"]),href:(v==null?void 0:v.type)==="external"?v.route.path:"javascript:void(0)",target:(v==null?void 0:v.type)==="external"?"_blank":"_self",rel:"noopener noreferrer",onClick:S=>a.handleClick(S,v)},[(v==null?void 0:v.type)==="external"?(r.openBlock(),r.createElementBlock("div",FK,[r.createTextVNode(r.toDisplayString(v.label)+" ",1),r.createVNode(o,{height:"16",width:"16",name:"open-in-new-tab-outline"})])):(r.openBlock(),r.createBlock(l,{key:1,class:"side-bar__subitem-link",to:a.routerPushTo(v)},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(v.label),1)]),_:2},1032,["to"]))],10,LK))),128))])],512),[[r.vShow,a.resolveItemCollapse(y)]])]),_:2},1024)),y.items&&s.collapsed?(r.openBlock(),r.createElementBlock("div",RK,[r.createVNode(d,{modelValue:s.itemsWithVisibilityController[w].show,"onUpdate:modelValue":v=>s.itemsWithVisibilityController[w].show=v,"target-id":y.label,"default-placement":"bottom-start",width:"160"},{default:r.withCtx(()=>[r.createElementVNode("div",HK,[r.createElementVNode("p",WK,r.toDisplayString(y.label),1),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(y.items,(v,k)=>(r.openBlock(),r.createElementBlock("a",{key:`${k}-${v.name}-item`,class:"side-bar__subitem",href:(v==null?void 0:v.type)==="external"?v.route.path:"javascript:void(0)",target:"_blank",rel:"noopener noreferrer",onClick:S=>a.handleClick(S,v)},[(v==null?void 0:v.type)==="external"?(r.openBlock(),r.createElementBlock("div",jK,[r.createTextVNode(r.toDisplayString(v.label)+" ",1),r.createVNode(o,{height:"16",width:"16",name:"open-in-new-tab-outline"})])):(r.openBlock(),r.createBlock(l,{key:1,class:"side-bar__subitem-link",to:a.routerPushTo(v)},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(v.label),1)]),_:2},1032,["to"]))],8,YK))),128))])]),_:2},1032,["modelValue","onUpdate:modelValue","target-id"])])):r.createCommentVNode("",!0)],40,$K))),128))],2)],2),r.createElementVNode("div",{class:r.normalizeClass(`side-bar__footer variant-resolver--${n.variant}`)},[r.createElementVNode("div",{id:"menu-profile",class:"side-bar__avatar",onClick:e[3]||(e[3]=r.withModifiers(y=>s.showPopover=!s.showPopover,["stop"]))},[r.createVNode(h,{src:n.userPicture,name:n.userName,variant:"white",size:"lg"},null,8,["src","name"]),r.createVNode(r.Transition,{name:"fade"},{default:r.withCtx(()=>[s.collapsed?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",UK,[r.createElementVNode("p",null,r.toDisplayString(n.userName),1),r.createElementVNode("p",null,r.toDisplayString(n.userRole),1)]))]),_:1})]),r.createElementVNode("ul",null,[n.showLogout?r.withDirectives((r.openBlock(),r.createElementBlock("li",{key:0,class:"side-bar__logout-button",onClick:e[4]||(e[4]=y=>t.$emit("logout",!0))},[r.createVNode(o,{name:"logout-outline",width:"20",height:"20"})])),[[m,s.logoutTooltipText]]):r.createCommentVNode("",!0)]),a.shouldShowProfileMenu?(r.openBlock(),r.createElementBlock("div",qK,[r.createVNode(f,{modelValue:s.showPopover,"onUpdate:modelValue":e[5]||(e[5]=y=>s.showPopover=y),"right-aligned":"","target-id":"menu-profile",width:"160",height:"160"},{default:r.withCtx(()=>[r.withDirectives((r.openBlock(),r.createElementBlock("div",GK,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.profileMenuItems,(y,w)=>(r.openBlock(),r.createElementBlock("div",{key:w},[r.createElementVNode("div",{class:"dropdown__container",onClick:v=>a.handleProfileMenuOptionClick(y)},[r.createVNode(o,{class:"dropdown__icon",height:"22",width:"22",name:y.icon},null,8,["name"]),r.createElementVNode("span",ZK,r.toDisplayString(y.name),1)],8,KK)]))),128))])),[[g,t.hide]])]),_:1},8,["modelValue"])])):r.createCommentVNode("",!0)],2)],2)}const h_=Q(m0,[["render",XK]]),JK={class:"secondary-navigation__container"},QK={class:"secondary-navigation__content"},eZ={key:1},tZ=["onClick","onMouseover"],nZ={class:"secondary-navigation__content"},iZ={key:1},f_=Q({__name:"SecondaryNavigation",props:{light:{type:Boolean,default:!1},activeItem:{type:Object,default:()=>{}},items:{type:Array,default:()=>[]}},emits:["item-click"],setup(t,{emit:e}){const n=t,i=e,s=r.ref(n.activeItem.key),a=r.ref(null),o=r.ref(0),l=r.computed(()=>n.light?"light":"dark");r.watch(n.activeItem,v=>{s.value=v.key});const d=v=>{o.value=v},h=v=>{if(!v.route)return null;const{path:k,name:S}=v.route;return k instanceof String?{path:k}:{name:S}},f=v=>{g(v.key)||(a.value=null,s.value=v.key,i("item-click",v.key))},m=v=>s.value===v,g=v=>n.items.find(k=>{var S;return k.key===v&&((S=k==null?void 0:k.subitems)==null?void 0:S.length)>0}),y=(v,k)=>{a.value=v,s.value=k,i("item-click",v)},w=v=>a.value===v;return(v,k)=>{const S=r.resolveComponent("router-link");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["secondary-navigation",`secondary-navigation--${l.value}`])},[r.createElementVNode("div",JK,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.items,E=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:E.key},[g(E.key)?(r.openBlock(),r.createElementBlock("div",eZ,[r.createElementVNode("div",{class:r.normalizeClass(["secondary-navigation__item",m(E.key)?`secondary-navigation__item--active-${l.value}`:""]),onClick:$=>f(E),onMouseover:$=>d(E.key),onMouseleave:k[0]||(k[0]=$=>d(-1))},[r.createElementVNode("div",nZ,[r.createTextVNode(r.toDisplayString(E.label)+" ",1),E.key!==o.value?(r.openBlock(),r.createBlock(Be,{key:0,class:"secondary-navigation__icon",name:"caret-down-outline",height:"16",width:"16"})):E.key===o.value?(r.openBlock(),r.createElementBlock("div",iZ,[r.createVNode(Be,{class:"secondary-navigation__icon",height:"16",width:"16",name:"caret-up-outline"}),r.createElementVNode("div",{class:r.normalizeClass(["secondary-navigation__dropdown",`secondary-navigation__dropdown--${l.value}`])},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(E.subitems,$=>(r.openBlock(),r.createBlock(S,{key:$.key,to:h($),class:r.normalizeClass(["secondary-navigation__subitem",{"secondary-navigation__subitem--active":w($.key)}]),onClick:x=>y($.key,E.key)},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString($.label),1)]),_:2},1032,["to","class","onClick"]))),128))],2)])):r.createCommentVNode("",!0)])],42,tZ)])):(r.openBlock(),r.createBlock(S,{key:0,class:r.normalizeClass(["secondary-navigation__item",m(E.key)?`secondary-navigation__item--active-${l.value}`:""]),to:h(E),onClick:$=>f(E)},{default:r.withCtx(()=>[r.createElementVNode("div",QK,r.toDisplayString(E.label),1)]),_:2},1032,["class","to","onClick"]))],64))),128))]),k[1]||(k[1]=r.createElementVNode("div",{class:"secondary-navigation__overflow-left"},null,-1)),k[2]||(k[2]=r.createElementVNode("div",{class:"secondary-navigation__overflow-right"},null,-1))],2)}}},[["__scopeId","data-v-2c0e5f5c"]]),rZ={class:"page-layout"},sZ={class:"page-layout__content"},aZ=Q({__name:"PageLayout",props:{variant:{type:String,default:"green"},light:{type:Boolean,default:!1},user:{type:Object,default:()=>{}},collapsibleSideBar:{type:Boolean,default:!1},showProfileMenu:{type:Boolean,default:!1},sideBarItems:{type:Array,default:()=>[]},profileMenuItems:{type:Array,default:()=>[]},navigationItems:{type:Array,default:()=>[]},logos:{type:Object,default:()=>{}},sideBarActiveItem:{type:Object,default:()=>{}},navigationActiveItem:{type:Object,default:()=>{}}},emits:["sidebar-item-click","sidebar-logout","popover-item-click","navigation-item-click"],setup(t,{emit:e}){r.useCssVars(o=>({"36685eea":a.value}));const n=t,i=e,s=r.computed(()=>{var o;return((o=n.navigationItems)==null?void 0:o.length)>0}),a=r.computed(()=>s.value?"54px":"0px");return(o,l)=>{var d;return r.openBlock(),r.createElementBlock("div",rZ,[r.createVNode(h_,{variant:t.variant,"active-item":t.sideBarActiveItem,light:t.light,"user-name":t.user.name??"","user-role":t.user.role??"","user-picture":t.user.picture??null,collapsible:t.collapsibleSideBar,items:t.sideBarItems,"logo-image":t.logos.default,"collapsed-logo-image":t.logos.collapsed,"show-profile-menu":t.showProfileMenu,"profile-menu-items":t.profileMenuItems,onProfileMenuOptionClick:l[0]||(l[0]=h=>i("profile-menu-option-click",h)),onSidebarClick:l[1]||(l[1]=h=>i("sidebar-item-click",h)),onLogout:l[2]||(l[2]=h=>i("sidebar-logout",h)),onSettings:l[3]||(l[3]=h=>i("sidebar-settings",h))},null,8,["variant","active-item","light","user-name","user-role","user-picture","collapsible","items","logo-image","collapsed-logo-image","show-profile-menu","profile-menu-items"]),r.createElementVNode("div",sZ,[((d=t.navigationItems)==null?void 0:d.length)>0?(r.openBlock(),r.createBlock(f_,{key:0,light:t.light,"active-item":t.navigationActiveItem,items:t.navigationItems,onItemClick:l[4]||(l[4]=h=>i("navigation-item-click",h))},null,8,["light","active-item","items"])):r.createCommentVNode("",!0),r.createVNode(c_,{class:"page-layout__container"},{default:r.withCtx(()=>[r.renderSlot(o.$slots,"default",{},void 0,!0)]),_:3})])])}}},[["__scopeId","data-v-428d73ca"]]),oZ={components:{CdsLink:Bu},props:{title:{type:String,required:!0},subtitle:{type:String,default:null},compact:{type:Boolean,default:!1}},data(){return{hasURL:!1,url:"",splitedSubtitle:[]}},computed:{fancyUrl(){return this.url.split(/http:\/\/|https:\/\//)[1]}},mounted(){this.computedSubtitle()},methods:{computedSubtitle(){var n;const t=/\b(?:http:\/\/|https:\/\/)?[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,}(?:\/\S*)?/g,e=(n=this.subtitle)==null?void 0:n.match(t);e&&e.length>0&&(this.splitedSubtitle=this.subtitle.split(e[0]),this.url=e[0])}}},lZ={class:"page-header__title"},cZ={key:0,class:"d-flex"},dZ={class:"page-header__subtitle"},uZ={key:1,class:"page-header__subtitle"},hZ={class:"page-header__aside-slot"};function fZ(t,e,n,i,s,a){const o=r.resolveComponent("cds-link");return r.openBlock(),r.createElementBlock("header",{class:r.normalizeClass(n.compact?"page-header__container--compact":"page-header__container")},[r.createElementVNode("div",null,[r.createElementVNode("p",lZ,r.toDisplayString(n.title),1),s.splitedSubtitle.length>0?(r.openBlock(),r.createElementBlock("div",cZ,[r.createElementVNode("span",dZ,[r.createTextVNode(r.toDisplayString(s.splitedSubtitle[0])+" ",1),r.createVNode(o,{href:s.url,bold:""},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(a.fancyUrl),1)]),_:1},8,["href"]),r.createTextVNode(" "+r.toDisplayString(s.splitedSubtitle[1]),1)])])):(r.openBlock(),r.createElementBlock("div",uZ,r.toDisplayString(n.subtitle),1))]),r.createElementVNode("div",hZ,[r.renderSlot(t.$slots,"aside")])],2)}const pZ=Q(oZ,[["render",fZ]]);class qn{constructor(e,n,i,s=null){this.index=e,this.value=n,this.selected=i,this.text=s||n}}const mZ={components:{CdsChevron:$s},props:{modelValue:{type:[Number,String],default:1},total:{type:Number,default:1,validator:t=>t>=1},perPage:{type:Number,default:1,validator:t=>t>=1},fluid:{type:Boolean,default:!1},variant:{type:String,default:"green"}},data(){return{selectedPage:new qn(null,parseInt(this.modelValue,10),!0),pages:[]}},computed:{pageCount(){return this.total/this.perPage<1?1:Math.ceil(this.total/this.perPage)},computedContainerClass(){return this.fluid?"pagination__container--fluid":"pagination__container"}},watch:{modelValue(t,e){t===e||t===this.selectedPage.value||(this.selectedPage=new qn(null,parseInt(t,10),!0),this.resolvePages())}},beforeMount(){this.resolvePages()},methods:{resolveButtonClass(t){switch(t.index){case 0:return this.selectedPage.value===1?"pagination__button--first pagination__button--disabled":"pagination__button--first";case 1:return this.selectedPage.value===1?"pagination__button pagination__button--disabled":"pagination__button";case 7:return this.selectedPage.value===this.pageCount?"pagination__button pagination__button--disabled":"pagination__button";case 8:return this.selectedPage.value===this.pageCount?"pagination__button--last pagination__button--disabled":"pagination__button--last";default:return t.selected?df("pagination__button--active",this.variant):"pagination__button"}},resolvePages(){this.pages=[new qn(0,"first",!1,"<<"),new qn(1,"back",!1,"<"),...this.mountPagesArray(),new qn(7,"forward",!1,">"),new qn(8,"last",!1,">>")]},mountPagesArray(){const t=this.pageCount<5?this.pageCount+2:7,e=[];if(this.selectedPage.value<=3||this.pageCount<=5){this.selectedPage.index=this.selectedPage.value;for(let n=2;n<t;n++)e[n-2]=new qn(n,n-1,this.selectedPage.value===n-1);return e}if(this.selectedPage.value<=this.pageCount-2){for(let n=2;n<t;n++){const i=this.selectedPage.value-4+n;e[n-2]=new qn(n+1,i,this.selectedPage.value===i)}return e}for(let n=2;n<t;n++){const i=this.pageCount-6+n;e[n-2]=new qn(n,i,this.selectedPage.value===i)}return e},handlePageClick(t){switch(t.value){case this.selectedPage.value:return;case"first":if(this.selectedPage.index===1)return;this.selectedPage=new qn(null,1,!0),this.$emit("update:modelValue",1),this.resolvePages();return;case"last":if(this.selectedPage.index===this.pageCount)return;this.selectedPage=new qn(null,this.pageCount,!0),this.$emit("update:modelValue",this.pageCount),this.resolvePages();return;case"back":if(this.selectedPage.index===1)return;this.$emit("update:modelValue",this.selectedPage.value-1),this.selectedPage=new qn(null,this.selectedPage.value-1,!0),this.resolvePages();return;case"forward":if(this.selectedPage.value===this.pageCount)return;this.$emit("update:modelValue",this.selectedPage.value+1),this.selectedPage=new qn(null,this.selectedPage.value+1,!0),this.resolvePages();return;default:this.selectedPage=new qn(null,t.value,!0),this.$emit("update:modelValue",t.value),this.resolvePages();break}}}},gZ=["onClick"],yZ={key:3};function bZ(t,e,n,i,s,a){const o=r.resolveComponent("cds-chevron");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(a.computedContainerClass)},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.pages,(l,d)=>(r.openBlock(),r.createElementBlock("div",{key:d,class:r.normalizeClass(a.resolveButtonClass(l)),onClick:h=>a.handlePageClick(l)},[d===0?(r.openBlock(),r.createBlock(o,{key:0,direction:"left",class:"pagination__double-chevron--left"})):r.createCommentVNode("",!0),d===0?(r.openBlock(),r.createBlock(o,{key:1,direction:"left",class:"pagination__double-chevron--left"})):r.createCommentVNode("",!0),d===1?(r.openBlock(),r.createBlock(o,{key:2,direction:"left"})):r.createCommentVNode("",!0),d>=2&&d<=s.pages.length-3?(r.openBlock(),r.createElementBlock("span",yZ,r.toDisplayString(l.text),1)):r.createCommentVNode("",!0),d===s.pages.length-2?(r.openBlock(),r.createBlock(o,{key:4,direction:"right"})):r.createCommentVNode("",!0),d===s.pages.length-1?(r.openBlock(),r.createBlock(o,{key:5,direction:"right",class:"pagination__double-chevron--right"})):r.createCommentVNode("",!0),d===s.pages.length-1?(r.openBlock(),r.createBlock(o,{key:6,direction:"right",class:"pagination__double-chevron--right"})):r.createCommentVNode("",!0)],10,gZ))),128))],2)}const _Z=Q(mZ,[["render",bZ],["__scopeId","data-v-c81c79f6"]]),vZ={components:{CdsBox:Jd,CdsDivider:al},props:{title:{type:String,default:"Título",required:!0},subtitle:{type:String,default:"Subtítulo",required:!0},noContentPadding:{type:Boolean,default:!1}},computed:{contentClass(){return this.noContentPadding?"panel-card__content--no-pading":"panel-card__content"}}},wZ={class:"panel-card__header"},kZ={class:"panel-card__title"},CZ={class:"panel-card__subtitle"};function xZ(t,e,n,i,s,a){const o=r.resolveComponent("cds-divider"),l=r.resolveComponent("cds-box");return r.openBlock(),r.createBlock(l,{class:"panel-card",padding:"0",fluid:""},{default:r.withCtx(()=>[r.createElementVNode("div",wZ,[r.createElementVNode("div",null,[r.createElementVNode("span",kZ,r.toDisplayString(n.title),1),e[0]||(e[0]=r.createElementVNode("br",null,null,-1)),r.createElementVNode("span",CZ,r.toDisplayString(n.subtitle),1)]),r.createElementVNode("div",null,[r.renderSlot(t.$slots,"panel-actions",{},void 0,!0)])]),r.createVNode(o,{dimmed:""}),r.createElementVNode("div",{class:r.normalizeClass(a.contentClass)},[r.renderSlot(t.$slots,"default",{},void 0,!0)],2)]),_:3})}const SZ=Q(vZ,[["render",xZ],["__scopeId","data-v-e1c5a182"]]),MZ={props:{modelValue:{type:String,default:""},length:{type:Number,default:4},state:{type:String,default:"default"},visible:{type:Boolean,default:!1},mobile:{type:Boolean,default:!1}},data(){return{innerValue:this.modelValue.split("")}},computed:{computedClass(){let t="";switch(this.state){case"valid":t="pin-input--valid";break;case"invalid":t="pin-input--invalid";break;default:t="pin-input"}return this.mobile?`${t} pin-input--mobile`:t}},watch:{modelValue(t){this.innerValue=t.split("")}},methods:{handleInput(t,e){let n=this.innerValue.join("");e<this.length&&t.inputType!=="deleteContentBackward"&&this.$refs[`pin-input${e+1}`][0].focus(),n.length===this.length&&this.$emit("update:modelValue",n)},handleBack(t){if(t>1){this.innerValue[t-1]="";let e=this.$refs[`pin-input${t-1}`][0];setTimeout(()=>{e.focus()},150)}},fixCursorPosition(t){let e=this.$refs[`pin-input${t}`][0];setTimeout(()=>{e.setSelectionRange(1,1)},3)},changeInputContent(t,e){this.innerValue.splice(e-1,1,t.key),e<this.length&&this.$refs[`pin-input${e+1}`][0].focus(),e===this.length&&this.$emit("update:modelValue",this.innerValue.join(""))}}},OZ={class:"pin-input__container"},DZ=["id","onUpdate:modelValue","type","onKeydown","onKeypress","onInput","onFocus"];function EZ(t,e,n,i,s,a){return r.openBlock(),r.createElementBlock("div",OZ,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.length,(o,l)=>r.withDirectives((r.openBlock(),r.createElementBlock("input",{id:`pin-input${o}`,key:l,ref_for:!0,ref:`pin-input${o}`,"onUpdate:modelValue":d=>s.innerValue[o-1]=d,type:n.visible?"text":"password",maxlength:"1",class:r.normalizeClass(["pin-input",a.computedClass]),autocomplete:"off",onKeydown:r.withKeys(r.withModifiers(d=>a.handleBack(o),["stop"]),["delete"]),onKeypress:d=>a.changeInputContent(d,o),onInput:d=>a.handleInput(d,o),onFocus:d=>a.fixCursorPosition(o)},null,42,DZ)),[[r.vModelDynamic,s.innerValue[o-1]]])),128))])}const BZ=Q(MZ,[["render",EZ],["__scopeId","data-v-4e202c49"]]),g0={props:{variant:{type:String,default:"green"},value:{type:Number,default:0,required:!0},showText:{type:Boolean,default:!1,required:!1},textAside:{type:Boolean,default:!1}},computed:{formatedvalue(){return`${parseInt(this.value*100,10)}%`},progressIndicatorStyle(){return{"--width":this.formatedvalue,"--leftMargin":this.textAside?"3":"10","--bottomMargin":this.textAside?"10":"2"}},textDirection(){return this.textAside?"row-reverse":"column"}}},p_=()=>{r.useCssVars(t=>({bf5feb56:t.textDirection}))},m_=g0.setup;g0.setup=m_?(t,e)=>(p_(),m_(t,e)):p_;const VZ={class:"progress-bar"},TZ={class:"progress-bar__content"};function IZ(t,e,n,i,s,a){return r.openBlock(),r.createElementBlock("div",VZ,[n.showText?(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass(n.textAside?"bar__text--aside":"bar__text")},r.toDisplayString(a.formatedvalue),3)):r.createCommentVNode("",!0),r.createElementVNode("div",TZ,[r.createElementVNode("div",{class:r.normalizeClass(`progress-bar__indicator--${n.variant}`),style:r.normalizeStyle(a.progressIndicatorStyle)},null,6)])])}const $Z=Q(g0,[["render",IZ],["__scopeId","data-v-d3a3d8d6"]]),AZ={props:{variant:{type:String,default:"green"},size:{type:String,default:"md",required:!1},value:{type:Number,default:0,required:!0},maxValue:{type:Number,default:100,required:!1},slim:{type:Boolean,default:!1},thick:{type:Boolean,default:!1},noLabel:{type:Boolean,default:!1}},computed:{label(){return this.maxValue>=100?`${Math.round(100*this.value/this.maxValue)}%`:`${this.value}/${this.maxValue}`},normalizedDashArray(){return`${100*this.value/this.maxValue}, 100`},stroke(){return this.slim?1.5:this.thick?4.5:3.5},labelClass(){return`progress-circular__label${this.maxValue>=100?"--reduced":""}`},circleIndicatorStyle(){return{"--indicatorColor":this.colorHexCode(this.variant)}}},methods:{colorHexCode:Za}},NZ=["stroke","stroke-width"],zZ=["stroke-dasharray","stroke-width"];function PZ(t,e,n,i,s,a){return r.openBlock(),r.createElementBlock("svg",{class:r.normalizeClass(["progress-circular",`progress-circular--${n.size}`]),viewBox:"0 0 36 36"},[r.createElementVNode("path",{class:"progress-circular__ring-background",stroke:t.backgroundColor,"stroke-width":a.stroke,d:`M18 2.0845
|
|
70
70
|
a 15.9155 15.9155 0 0 1 0 31.831
|
|
71
71
|
a 15.9155 15.9155 0 0 1 0 -31.831`},null,8,NZ),r.createElementVNode("path",{class:r.normalizeClass(`progress-circular__ring-progress--${n.variant}`),"stroke-dasharray":a.normalizedDashArray,"stroke-width":a.stroke-1,style:r.normalizeStyle(a.circleIndicatorStyle),d:`M18 2.0845
|
|
72
72
|
a 15.9155 15.9155 0 0 1 0 31.831
|