@sysvale/cuida 3.93.0 → 3.93.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -66,11 +66,11 @@ __p += '`),tt&&(re+=`' +
66
66
  function print() { __p += __j.call(arguments, '') }
67
67
  `:`;
68
68
  `)+re+`return __p
69
- }`;var We=g6(function(){return dt(D,xe+"return "+re).apply(n,$)});if(We.source=re,Cp(We))throw We;return We}function hae(c){return ht(c).toLowerCase()}function fae(c){return ht(c).toUpperCase()}function pae(c,u,p){if(c=ht(c),c&&(p||u===n))return S_(c);if(!c||!(u=ci(u)))return c;var b=qi(c),x=qi(u),D=M_(b,x),$=B_(b,x)+1;return Bs(b,D,$).join("")}function mae(c,u,p){if(c=ht(c),c&&(p||u===n))return c.slice(0,D_(c)+1);if(!c||!(u=ci(u)))return c;var b=qi(c),x=B_(b,qi(u))+1;return Bs(b,0,x).join("")}function gae(c,u,p){if(c=ht(c),c&&(p||u===n))return c.replace(Vr,"");if(!c||!(u=ci(u)))return c;var b=qi(c),x=M_(b,qi(u));return Bs(b,x).join("")}function yae(c,u){var p=Y,b=ne;if(Ft(u)){var x="separator"in u?u.separator:x;p="length"in u?He(u.length):p,b="omission"in u?ci(u.omission):b}c=ht(c);var D=c.length;if(No(c)){var $=qi(c);D=$.length}if(p>=D)return c;var z=p-zo(b);if(z<1)return b;var R=$?Bs($,0,z).join(""):c.slice(0,z);if(x===n)return R+b;if($&&(z+=R.length-z),xp(x)){if(c.slice(z).search(x)){var X,J=R;for(x.global||(x=F0(x.source,ht(on.exec(x))+"g")),x.lastIndex=0;X=x.exec(J);)var re=X.index;R=R.slice(0,re===n?z:re)}}else if(c.indexOf(ci(x),z)!=z){var me=R.lastIndexOf(x);me>-1&&(R=R.slice(0,me))}return R+b}function bae(c){return c=ht(c),c&&ct.test(c)?c.replace(Se,qee):c}var _ae=Yo(function(c,u,p){return c+(p?" ":"")+u.toUpperCase()}),Bp=yv("toUpperCase");function m6(c,u,p){return c=ht(c),u=p?n:u,u===n?Hee(c)?Zee(c):$ee(c):c.match(u)||[]}var g6=je(function(c,u){try{return fn(c,n,u)}catch(p){return Cp(p)?p:new ze(p)}}),vae=Hr(function(c,u){return Bi(u,function(p){p=fr(p),Fr(c,p,wp(c[p],c))}),c});function wae(c){var u=c==null?0:c.length,p=De();return c=u?Nt(c,function(b){if(typeof b[1]!="function")throw new Ei(o);return[p(b[0]),b[1]]}):[],je(function(b){for(var x=-1;++x<u;){var D=c[x];if(fn(D[0],this,b))return fn(D[1],this,b)}})}function kae(c){return qte(Oi(c,m))}function Ep(c){return function(){return c}}function Cae(c,u){return c==null||c!==c?u:c}var xae=_v(),Sae=_v(!0);function Qn(c){return c}function Dp(c){return K_(typeof c=="function"?c:Oi(c,m))}function Mae(c){return X_(Oi(c,m))}function Bae(c,u){return J_(c,Oi(u,m))}var Eae=je(function(c,u){return function(p){return Nc(p,c,u)}}),Dae=je(function(c,u){return function(p){return Nc(c,p,u)}});function Op(c,u,p){var b=pn(u),x=ih(u,b);p==null&&!(Ft(u)&&(x.length||!b.length))&&(p=u,u=c,c=this,x=ih(u,pn(u)));var D=!(Ft(p)&&"chain"in p)||!!p.chain,$=Yr(c);return Bi(x,function(z){var R=u[z];c[z]=R,$&&(c.prototype[z]=function(){var X=this.__chain__;if(D||X){var J=c(this.__wrapped__),re=J.__actions__=Zn(this.__actions__);return re.push({func:R,args:arguments,thisArg:c}),J.__chain__=X,J}return R.apply(c,ws([this.value()],arguments))})}),c}function Oae(){return qe._===this&&(qe._=nte),this}function Vp(){}function Vae(c){return c=He(c),je(function(u){return Q_(u,c)})}var Tae=lp(Nt),$ae=lp(v_),Iae=lp($0);function y6(c){return mp(c)?I0(fr(c)):dne(c)}function Aae(c){return function(u){return c==null?n:_a(c,u)}}var Nae=wv(),zae=wv(!0);function Tp(){return[]}function $p(){return!1}function Pae(){return{}}function Lae(){return""}function Fae(){return!0}function Rae(c,u){if(c=He(c),c<1||c>te)return[];var p=ce,b=Dn(c,ce);u=De(u),c-=ce;for(var x=z0(b,u);++p<c;)u(p);return x}function Hae(c){return Le(c)?Nt(c,fr):di(c)?[c]:Zn(zv(ht(c)))}function Wae(c){var u=++ete;return ht(c)+u}var Yae=ch(function(c,u){return c+u},0),jae=cp("ceil"),Uae=ch(function(c,u){return c/u},1),qae=cp("floor");function Gae(c){return c&&c.length?nh(c,Qn,G0):n}function Kae(c,u){return c&&c.length?nh(c,De(u,2),G0):n}function Zae(c){return C_(c,Qn)}function Xae(c,u){return C_(c,De(u,2))}function Jae(c){return c&&c.length?nh(c,Qn,J0):n}function Qae(c,u){return c&&c.length?nh(c,De(u,2),J0):n}var eoe=ch(function(c,u){return c*u},1),toe=cp("round"),noe=ch(function(c,u){return c-u},0);function ioe(c){return c&&c.length?N0(c,Qn):0}function roe(c,u){return c&&c.length?N0(c,De(u,2)):0}return B.after=Mre,B.ary=Gv,B.assign=fse,B.assignIn=l6,B.assignInWith=kh,B.assignWith=pse,B.at=mse,B.before=Kv,B.bind=wp,B.bindAll=vae,B.bindKey=Zv,B.castArray=Pre,B.chain=jv,B.chunk=qne,B.compact=Gne,B.concat=Kne,B.cond=wae,B.conforms=kae,B.constant=Ep,B.countBy=ire,B.create=gse,B.curry=Xv,B.curryRight=Jv,B.debounce=Qv,B.defaults=yse,B.defaultsDeep=bse,B.defer=Bre,B.delay=Ere,B.difference=Zne,B.differenceBy=Xne,B.differenceWith=Jne,B.drop=Qne,B.dropRight=eie,B.dropRightWhile=tie,B.dropWhile=nie,B.fill=iie,B.filter=sre,B.flatMap=lre,B.flatMapDeep=cre,B.flatMapDepth=dre,B.flatten=Rv,B.flattenDeep=rie,B.flattenDepth=sie,B.flip=Dre,B.flow=xae,B.flowRight=Sae,B.fromPairs=aie,B.functions=Sse,B.functionsIn=Mse,B.groupBy=ure,B.initial=lie,B.intersection=cie,B.intersectionBy=die,B.intersectionWith=uie,B.invert=Ese,B.invertBy=Dse,B.invokeMap=fre,B.iteratee=Dp,B.keyBy=pre,B.keys=pn,B.keysIn=Jn,B.map=gh,B.mapKeys=Vse,B.mapValues=Tse,B.matches=Mae,B.matchesProperty=Bae,B.memoize=bh,B.merge=$se,B.mergeWith=c6,B.method=Eae,B.methodOf=Dae,B.mixin=Op,B.negate=_h,B.nthArg=Vae,B.omit=Ise,B.omitBy=Ase,B.once=Ore,B.orderBy=mre,B.over=Tae,B.overArgs=Vre,B.overEvery=$ae,B.overSome=Iae,B.partial=kp,B.partialRight=e6,B.partition=gre,B.pick=Nse,B.pickBy=d6,B.property=y6,B.propertyOf=Aae,B.pull=mie,B.pullAll=Wv,B.pullAllBy=gie,B.pullAllWith=yie,B.pullAt=bie,B.range=Nae,B.rangeRight=zae,B.rearg=Tre,B.reject=_re,B.remove=_ie,B.rest=$re,B.reverse=_p,B.sampleSize=wre,B.set=Pse,B.setWith=Lse,B.shuffle=kre,B.slice=vie,B.sortBy=Sre,B.sortedUniq=Bie,B.sortedUniqBy=Eie,B.split=lae,B.spread=Ire,B.tail=Die,B.take=Oie,B.takeRight=Vie,B.takeRightWhile=Tie,B.takeWhile=$ie,B.tap=Gie,B.throttle=Are,B.thru=mh,B.toArray=s6,B.toPairs=u6,B.toPairsIn=h6,B.toPath=Hae,B.toPlainObject=o6,B.transform=Fse,B.unary=Nre,B.union=Iie,B.unionBy=Aie,B.unionWith=Nie,B.uniq=zie,B.uniqBy=Pie,B.uniqWith=Lie,B.unset=Rse,B.unzip=vp,B.unzipWith=Yv,B.update=Hse,B.updateWith=Wse,B.values=qo,B.valuesIn=Yse,B.without=Fie,B.words=m6,B.wrap=zre,B.xor=Rie,B.xorBy=Hie,B.xorWith=Wie,B.zip=Yie,B.zipObject=jie,B.zipObjectDeep=Uie,B.zipWith=qie,B.entries=u6,B.entriesIn=h6,B.extend=l6,B.extendWith=kh,Op(B,B),B.add=Yae,B.attempt=g6,B.camelCase=Gse,B.capitalize=f6,B.ceil=jae,B.clamp=jse,B.clone=Lre,B.cloneDeep=Rre,B.cloneDeepWith=Hre,B.cloneWith=Fre,B.conformsTo=Wre,B.deburr=p6,B.defaultTo=Cae,B.divide=Uae,B.endsWith=Kse,B.eq=Ki,B.escape=Zse,B.escapeRegExp=Xse,B.every=rre,B.find=are,B.findIndex=Lv,B.findKey=_se,B.findLast=ore,B.findLastIndex=Fv,B.findLastKey=vse,B.floor=qae,B.forEach=Uv,B.forEachRight=qv,B.forIn=wse,B.forInRight=kse,B.forOwn=Cse,B.forOwnRight=xse,B.get=Sp,B.gt=Yre,B.gte=jre,B.has=Bse,B.hasIn=Mp,B.head=Hv,B.identity=Qn,B.includes=hre,B.indexOf=oie,B.inRange=Use,B.invoke=Ose,B.isArguments=ka,B.isArray=Le,B.isArrayBuffer=Ure,B.isArrayLike=Xn,B.isArrayLikeObject=Zt,B.isBoolean=qre,B.isBuffer=Es,B.isDate=Gre,B.isElement=Kre,B.isEmpty=Zre,B.isEqual=Xre,B.isEqualWith=Jre,B.isError=Cp,B.isFinite=Qre,B.isFunction=Yr,B.isInteger=t6,B.isLength=vh,B.isMap=n6,B.isMatch=ese,B.isMatchWith=tse,B.isNaN=nse,B.isNative=ise,B.isNil=sse,B.isNull=rse,B.isNumber=i6,B.isObject=Ft,B.isObjectLike=Yt,B.isPlainObject=Hc,B.isRegExp=xp,B.isSafeInteger=ase,B.isSet=r6,B.isString=wh,B.isSymbol=di,B.isTypedArray=Uo,B.isUndefined=ose,B.isWeakMap=lse,B.isWeakSet=cse,B.join=hie,B.kebabCase=Jse,B.last=Ti,B.lastIndexOf=fie,B.lowerCase=Qse,B.lowerFirst=eae,B.lt=dse,B.lte=use,B.max=Gae,B.maxBy=Kae,B.mean=Zae,B.meanBy=Xae,B.min=Jae,B.minBy=Qae,B.stubArray=Tp,B.stubFalse=$p,B.stubObject=Pae,B.stubString=Lae,B.stubTrue=Fae,B.multiply=eoe,B.nth=pie,B.noConflict=Oae,B.noop=Vp,B.now=yh,B.pad=tae,B.padEnd=nae,B.padStart=iae,B.parseInt=rae,B.random=qse,B.reduce=yre,B.reduceRight=bre,B.repeat=sae,B.replace=aae,B.result=zse,B.round=toe,B.runInContext=F,B.sample=vre,B.size=Cre,B.snakeCase=oae,B.some=xre,B.sortedIndex=wie,B.sortedIndexBy=kie,B.sortedIndexOf=Cie,B.sortedLastIndex=xie,B.sortedLastIndexBy=Sie,B.sortedLastIndexOf=Mie,B.startCase=cae,B.startsWith=dae,B.subtract=noe,B.sum=ioe,B.sumBy=roe,B.template=uae,B.times=Rae,B.toFinite=jr,B.toInteger=He,B.toLength=a6,B.toLower=hae,B.toNumber=$i,B.toSafeInteger=hse,B.toString=ht,B.toUpper=fae,B.trim=pae,B.trimEnd=mae,B.trimStart=gae,B.truncate=yae,B.unescape=bae,B.uniqueId=Wae,B.upperCase=_ae,B.upperFirst=Bp,B.each=Uv,B.eachRight=qv,B.first=Hv,Op(B,function(){var c={};return ur(B,function(u,p){bt.call(B.prototype,p)||(c[p]=u)}),c}(),{chain:!1}),B.VERSION=i,Bi(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){B[c].placeholder=B}),Bi(["drop","take"],function(c,u){Je.prototype[c]=function(p){p=p===n?1:cn(He(p),0);var b=this.__filtered__&&!u?new Je(this):this.clone();return b.__filtered__?b.__takeCount__=Dn(p,b.__takeCount__):b.__views__.push({size:Dn(p,ce),type:c+(b.__dir__<0?"Right":"")}),b},Je.prototype[c+"Right"]=function(p){return this.reverse()[c](p).reverse()}}),Bi(["filter","map","takeWhile"],function(c,u){var p=u+1,b=p==ye||p==ue;Je.prototype[c]=function(x){var D=this.clone();return D.__iteratees__.push({iteratee:De(x,3),type:p}),D.__filtered__=D.__filtered__||b,D}}),Bi(["head","last"],function(c,u){var p="take"+(u?"Right":"");Je.prototype[c]=function(){return this[p](1).value()[0]}}),Bi(["initial","tail"],function(c,u){var p="drop"+(u?"":"Right");Je.prototype[c]=function(){return this.__filtered__?new Je(this):this[p](1)}}),Je.prototype.compact=function(){return this.filter(Qn)},Je.prototype.find=function(c){return this.filter(c).head()},Je.prototype.findLast=function(c){return this.reverse().find(c)},Je.prototype.invokeMap=je(function(c,u){return typeof c=="function"?new Je(this):this.map(function(p){return Nc(p,c,u)})}),Je.prototype.reject=function(c){return this.filter(_h(De(c)))},Je.prototype.slice=function(c,u){c=He(c);var p=this;return p.__filtered__&&(c>0||u<0)?new Je(p):(c<0?p=p.takeRight(-c):c&&(p=p.drop(c)),u!==n&&(u=He(u),p=u<0?p.dropRight(-u):p.take(u-c)),p)},Je.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},Je.prototype.toArray=function(){return this.take(ce)},ur(Je.prototype,function(c,u){var p=/^(?:filter|find|map|reject)|While$/.test(u),b=/^(?:head|last)$/.test(u),x=B[b?"take"+(u=="last"?"Right":""):u],D=b||/^find/.test(u);x&&(B.prototype[u]=function(){var $=this.__wrapped__,z=b?[1]:arguments,R=$ instanceof Je,X=z[0],J=R||Le($),re=function(Ze){var tt=x.apply(B,ws([Ze],z));return b&&me?tt[0]:tt};J&&p&&typeof X=="function"&&X.length!=1&&(R=J=!1);var me=this.__chain__,xe=!!this.__actions__.length,Oe=D&&!me,We=R&&!xe;if(!D&&J){$=We?$:new Je(this);var Ve=c.apply($,z);return Ve.__actions__.push({func:mh,args:[re],thisArg:n}),new Di(Ve,me)}return Oe&&We?c.apply(this,z):(Ve=this.thru(re),Oe?b?Ve.value()[0]:Ve.value():Ve)})}),Bi(["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);B.prototype[c]=function(){var x=arguments;if(b&&!this.__chain__){var D=this.value();return u.apply(Le(D)?D:[],x)}return this[p](function($){return u.apply(Le($)?$:[],x)})}}),ur(Je.prototype,function(c,u){var p=B[u];if(p){var b=p.name+"";bt.call(Ro,b)||(Ro[b]=[]),Ro[b].push({name:u,func:p})}}),Ro[lh(n,C).name]=[{name:"wrapper",func:n}],Je.prototype.clone=bte,Je.prototype.reverse=_te,Je.prototype.value=vte,B.prototype.at=Kie,B.prototype.chain=Zie,B.prototype.commit=Xie,B.prototype.next=Jie,B.prototype.plant=ere,B.prototype.reverse=tre,B.prototype.toJSON=B.prototype.valueOf=B.prototype.value=nre,B.prototype.first=B.prototype.head,Dc&&(B.prototype[Dc]=Qie),B},Po=Xee();At?((At.exports=Po)._=Po,it._=Po):qe._=Po}).call(dn)}(Ou,Ou.exports);var Un=Ou.exports;const ho=t=>/^(19|20)\d\d-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$/.test(t),n0={components:{VDatePicker:w5,CdsChevron:Ts,CdsIcon:Ce},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:ge.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:sr,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:ge.fromJSDate(t.start).toFormat("yyyy-MM-dd"),end:ge.fromJSDate(t.end).toFormat("yyyy-MM-dd")}:"");return}this.$emit("update:modelValue",t?ge.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:ge.fromFormat(this.modelValue.start,"yyyy-MM-dd"),end:ge.fromFormat(this.modelValue.end,"yyyy-MM-dd")}:{start:ge.now(),end:ge.now()};return}this.internalDate=ho(this.modelValue)?ge.fromFormat(this.modelValue,"yyyy-MM-dd"):ge.now()},resolveInputValue(t){return typeof t!="object"?t:!t.start&&!t.end||Un.isEmpty(t)?null:`${t.start} a ${t.end}`}}},k5=()=>{r.useCssVars(t=>({f4f202ae:t.resolveMobile,"303646c0":t.calendarTrailColor,"528f77da":t.calendarTextColor,"1cc9da1d":t.calendarDotColor}))},C5=n0.setup;n0.setup=C5?(t,e)=>(k5(),C5(t,e)):k5;const XY={class:"date-input__container"},JY={key:0},QY={key:1,class:"date-input__label"},ej={class:"label__content",for:"cds-text-input"},tj={key:0,class:"label__required-indicator"},nj=["value","disabled","placeholder","onClick"],ij={class:"date-input__icon"},rj={key:0,class:"date-input__error-message"};function sj(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",XY,[r.createElementVNode("span",null,[a.hasSlots?(r.openBlock(),r.createElementBlock("span",JY,[r.renderSlot(t.$slots,"label",{},void 0,!0)])):(r.openBlock(),r.createElementBlock("label",QY,[r.createElementVNode("div",ej,[r.createElementVNode("span",null,r.toDisplayString(n.label),1),n.required?(r.openBlock(),r.createElementBlock("span",tj," * ")):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,nj),r.createElementVNode("div",ij,[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",rj,r.toDisplayString(n.errorMessage),1)):r.createCommentVNode("",!0)])}const aj=ee(n0,[["render",sj],["__scopeId","data-v-4ae75e00"]]),oj=["teal","green","blue","indigo","violet","pink","red","orange","amber"],lj=["warning","error","info"],cj={directives:{"on-click-outside":tr.directive},components:{CdsIcon:Ce,CdsButton:ni},props:{variant:{type:String,default:"warning",validator:t=>lj.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=>oj.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)}}},dj={key:0,class:"cds-modal__backdrop"},uj={key:0,class:"cds-modal"},hj={class:"cds-modal__header-content"},fj={key:0,class:"cds-modal__header-title"},pj={key:1,class:"cds-modal__header-title"},mj={key:2,class:"cds-modal__header-title"},gj={class:"cds-modal__body"},yj={class:"cds-modal__body-title"},bj={class:"cds-modal__body-description"},_j={class:"cds-modal__footer"};function vj(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",dj,[s.innerValue?(r.openBlock(),r.createElementBlock("div",uj,[r.createElementVNode("header",{class:r.normalizeClass(`cds-modal__header--${n.variant}`)},[r.createElementVNode("div",hj,[n.variant==="warning"?(r.openBlock(),r.createElementBlock("div",fj,[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",pj,[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",mj,[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",gj,[r.createElementVNode("span",yj,r.toDisplayString(n.title),1),r.createElementVNode("span",bj,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 wj=ee(cj,[["render",vj],["__scopeId","data-v-cb60983c"]]),kj={components:{CdsChevron:Ts},directives:{"on-click-outside":tr.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}}},Cj=["id"],xj={class:"filter-pill__label"},Sj={class:"filter-pill__content"};function Mj(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",xj,r.toDisplayString(n.label)+": ",1),r.createElementVNode("span",Sj,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,Cj),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 Bj=ee(kj,[["render",Mj],["__scopeId","data-v-f6d65f66"]]),Ej={components:{CdsIcon:Ce,CdsChevron:Ts},directives:{"on-click-outside":tr.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])}}},Dj=["id"],Oj={class:"dropdown-button__text"},Vj=["onClick"],Tj={class:"dropdown__text"};function $j(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",Oj,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,Dj),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",Tj,r.toDisplayString(h.name),1)],8,Vj)]))),128))],4)),[[d,a.hide]]):r.createCommentVNode("",!0)])}const Ij=ee(Ej,[["render",$j],["__scopeId","data-v-14a071ad"]]),Aj={components:{Doughnut:i3},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:sr,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)}}},Nj={class:"responsive-container"};function zj(t,e,n,i,s,a){const o=r.resolveComponent("Doughnut");return r.openBlock(),r.createElementBlock("span",null,[r.createElementVNode("div",Nj,[r.createVNode(o,{ref:"doughnut-chart",data:s.localChartData,options:s.chartOptions,onClick:a.clickHandler},null,8,["data","options","onClick"])])])}const Pj=ee(Aj,[["render",zj],["__scopeId","data-v-d71f8f8f"]]),Lj=["teal","green","blue","indigo","violet","pink","red","orange","amber"],Fj={components:{CdsButton:ni},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=>Lj.includes(t)}}},Rj={class:"empty-state"},Hj=["src","alt"],Wj={class:"empty-state__title"},Yj={class:"empty-state__text"};function jj(t,e,n,i,s,a){const o=r.resolveComponent("cds-button");return r.openBlock(),r.createElementBlock("div",Rj,[r.renderSlot(t.$slots,"graphic-element",{},()=>[r.createElementVNode("img",{class:"empty-state__image",src:n.image,alt:n.imageDescription},null,8,Hj)],!0),r.createElementVNode("div",Wj,r.toDisplayString(n.title),1),r.createElementVNode("div",Yj,[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 Uj=ee(Fj,[["render",jj],["__scopeId","data-v-4769541f"]]),i0={components:{CdsIcon:Ce},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)}}},x5=()=>{r.useCssVars(t=>({"3c7a40a8":t.textAlignmentResolver}))},S5=i0.setup;i0.setup=S5?(t,e)=>(x5(),S5(t,e)):x5;const qj=["accept"],Gj={key:0,class:"file-input__container"},Kj={key:0},Zj={key:1},Xj={key:1,class:"file-input__container"},Jj={key:1},Qj={key:0,class:"file-input__alert-container"};function eU(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,qj),[[r.vShow,!1]]),s.file?(r.openBlock(),r.createElementBlock("div",Xj,[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",Jj," 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",Gj,[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",Zj," Solte aqui o seu arquivo ")):(r.openBlock(),r.createElementBlock("div",Kj,r.toDisplayString(n.textMessage),1))],2)]))],34)]),s.internalState==="invalid"?(r.openBlock(),r.createElementBlock("div",Qj,r.toDisplayString(a.computedAllowedMessage),1)):r.createCommentVNode("",!0)],64)}const M5=ee(i0,[["render",eU],["__scopeId","data-v-33f6f0ff"]]),qt=ee({__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"]]),tU={class:"file-viewer__image"},nU={key:0,class:"file-viewer__extension"},iU={class:"file-viewer__info"},rU={class:"file-viewer__label"},sU={class:"file-viewer__file-name"},aU={key:0,class:"file-viewer__backdrop"},oU={class:"file-viewer__visualizer-header"},lU={class:"file-viewer__visualizer-label"},cU={class:"file-viewer__visualizer-actions"},dU={key:0},uU={key:1,class:"file-viewer__visualizer-empty-state"},hU=ee({__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=>ru.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})/),C=Un.get(k,"1",null);if(C)return C.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",tU,[s.value?(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass(["file-viewer__icon",`file-viewer__icon--${t.variant}`])},[r.createVNode(Ce,{height:"32",width:"32",name:"image-outline"})],2)):(r.openBlock(),r.createElementBlock("div",nU,r.toDisplayString(l.value),1))]),r.createElementVNode("div",iU,[r.createElementVNode("div",rU,r.toDisplayString(d.value),1),r.createElementVNode("div",sU,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(C=>n("download-click",!0),["stop"]))}," Baixar arquivo ",2)])])],34),a.value?(r.openBlock(),r.createElementBlock("div",aU,[r.createElementVNode("div",oU,[r.createElementVNode("div",lU,r.toDisplayString(d.value),1),r.createElementVNode("div",cU,[r.createElementVNode("div",{class:"file-viewer__visualizer-download",onClick:k[1]||(k[1]=C=>n("download-click",!0))},[r.createVNode(Ce,{height:"24",width:"24",name:"download-cloud-outline"}),w.value?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("span",dU," Baixar arquivo "))]),r.createVNode(Ce,{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(nu,{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",uU,[r.createVNode(nu,{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 rc(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 fU={directives:{"on-click-outside":tr.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:Gr()}},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}--${Hh.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=rc(this.localValue[this.optionsField]),e=new RegExp(t,"i");this.localOptions=this.options.filter(n=>rc(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=ol(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=ol(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")}}},pU={ref:"cds-filter-select",class:"filter-select"},mU={class:"filter-select__label"},gU={for:"cds-filter-select"},yU=["id","onkeypress","placeholder","disabled","readonly"],bU={key:0,class:"option__container"},_U=["onMouseover"],vU={key:1,class:"option__container"};function wU(t,e,n,i,s,a){const o=r.resolveDirective("on-click-outside");return r.openBlock(),r.createElementBlock("div",pU,[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",mU,[r.createElementVNode("div",gU,[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,yU),[[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",bU,[(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,_U))),128))])):(r.openBlock(),r.createElementBlock("ul",vU,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 kU=ee(fU,[["render",wU],["__scopeId","data-v-fba155a5"]]),CU={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)}}},xU={id:"cds-link-button"};function SU(t,e,n,i,s,a){return r.openBlock(),r.createElementBlock("span",xU,[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 MU=ee(CU,[["render",SU],["__scopeId","data-v-17beab84"]]),BU={props:{variant:{type:String,default:"green"},targetId:{type:String,default:""},position:{type:String,default:"top-end"}}},EU={id:"cds-pulsar"};function DU(t,e,n,i,s,a){const o=r.resolveDirective("cds-floatify");return r.withDirectives((r.openBlock(),r.createElementBlock("div",EU,[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 B5=ee(BU,[["render",DU],["__scopeId","data-v-6f878a26"]]),OU={components:{CdsPulsar:B5,CdsIcon:Ce},directives:{"on-click-outside":tr.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}}},VU=["id"],TU=["id"],$U={key:0},IU={key:1},AU={key:0,class:"floating-assistant__content"},NU={key:0,class:"floating-assistant__footer"},zU=["href"],PU={key:1,class:"floating-assistant__subtitle"},LU={key:2};function FU(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",$U,[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",IU,[r.createElementVNode("span",{class:r.normalizeClass(`floating-assistant__title--${n.variant}`)},r.toDisplayString(n.title),3),s.isExpanded?(r.openBlock(),r.createElementBlock("div",AU,[r.renderSlot(t.$slots,"default",{},void 0,!0),n.url?(r.openBlock(),r.createElementBlock("span",NU,[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,zU),e[7]||(e[7]=r.createTextVNode(". "))])):r.createCommentVNode("",!0)])):(r.openBlock(),r.createElementBlock("span",PU," Clique para mais informações "))])),s.isExpanded?(r.openBlock(),r.createElementBlock("div",LU,[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,TU)),[[h,s.pulsarId,s.position]])],10,VU)}const RU=ee(OU,[["render",FU],["__scopeId","data-v-12f84ef7"]]),HU={class:"floating-action-button__container"},WU=["onClick"],YU={class:"floating-action-button__subitem-label"},jU={class:"floating-action-button__subitem"},UU=ee({__name:"FloatingActionButton",props:{variant:{type:String,default:"green"},icon:{type:String,default:"plus-outline"},actions:{type:Array,default:()=>[],validator:t=>t.length<=5},size:{type:String,default:"md"}},emits:["main-button-click","action-click"],setup(t,{emit:e}){r.useCssVars(y=>({"0a3aecd8":h.value,"005b6afb":l.value,"21ef27b0":f.value,"87db115e":d.value}));const n=t,i=e,s=r.ref(!1),a=r.ref(!1),o=r.ref(-1),l=r.computed(()=>{switch(n.size){case"sm":return"44px";case"md":return"56px";case"lg":return"68px";default:return"56px"}}),d=r.computed(()=>{switch(n.size){case"sm":return"4px";case"md":return"10px";case"lg":return"16px";default:return"10px"}}),h=r.computed(()=>{switch(n.size){case"sm":return"12px";case"md":return"16px";case"lg":return"20px";default:return"16px"}}),f=r.computed(()=>n.variant==="white"||n.variant==="gray"?"#3B4754":"#fff");r.watch(s,y=>{y||(a.value=!0,setTimeout(()=>{a.value=!1},500))});function m(){if(n.actions.length>0){o.value=s.value?-1:1,s.value=!s.value;return}i("main-button-click")}function g(y){s.value=!1,i("action-click",y)}return(y,w)=>(r.openBlock(),r.createElementBlock("div",HU,[s.value||a.value?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:0},r.renderList(t.actions,v=>(r.openBlock(),r.createElementBlock("div",{key:v,class:r.normalizeClass(["floating-action-button__subitem-container",{exiting:a.value}]),onClick:k=>g(v)},[r.createElementVNode("div",YU,r.toDisplayString(v==null?void 0:v.label),1),r.createElementVNode("div",jU,[r.createVNode(Ce,{name:v==null?void 0:v.icon,height:"32",width:"32"},null,8,["name"])])],10,WU))),128)):r.createCommentVNode("",!0),r.createElementVNode("div",{class:r.normalizeClass(["floating-action-button__main-button",`floating-action-button__main-button--${t.variant}`]),onClick:m},[r.createVNode(r.Transition,{name:"icon-transition",mode:"out-in"},{default:r.withCtx(()=>[s.value?(r.openBlock(),r.createBlock(Ce,{key:"close-icon",name:"x-outline",height:"20",width:"20",style:r.normalizeStyle({"--rotation-direction":o.value})},null,8,["style"])):(r.openBlock(),r.createBlock(Ce,{key:"main-icon",name:t.icon,height:"20",width:"20",style:r.normalizeStyle({"--rotation-direction":o.value})},null,8,["name","style"]))]),_:1})],2)]))}},[["__scopeId","data-v-3f44d904"]]),r0={directives:{"on-click-outside":tr.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:Gr()}},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=nl(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)})}}},E5=()=>{r.useCssVars(t=>({d472e712:t.popoverWidth}))},D5=r0.setup;r0.setup=D5?(t,e)=>(E5(),D5(t,e)):E5;const qU=["id"];function GU(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,qU)),[[o,a.hide]])}const s0=ee(r0,[["render",GU],["__scopeId","data-v-3debc962"]]),a0={components:{CdsRichTooltip:s0},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:Gr()}},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:Ks}},O5=()=>{r.useCssVars(t=>({eaad879e:t.chartProgressValue,cfd9d6d6:t.targetValue}))},V5=a0.setup;a0.setup=V5?(t,e)=>(O5(),V5(t,e)):O5;const KU={class:"responsive-container"},ZU=["id"],XU={transform:"scale(1.20) translate(-9.5 -12)"},JU={x:"50%",y:"50%","dominant-baseline":"middle","text-anchor":"middle",class:"value"},QU={x:"50%",y:"62%","dominant-baseline":"middle","text-anchor":"middle",class:"subtitle"};function eq(t,e,n,i,s,a){const o=r.resolveComponent("cds-rich-tooltip");return r.openBlock(),r.createElementBlock("span",null,[r.createElementVNode("div",KU,[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",XU,[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",JU,r.toDisplayString(a.formatedValue),1),r.createElementVNode("text",QU,r.toDisplayString(n.subtitle),1)],42,ZU))],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 tq=ee(a0,[["render",eq],["__scopeId","data-v-0c7cac1e"]]),nq=ee({__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"]]),iq={class:"grid-item"},rq=ee({__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",iq,[r.renderSlot(o.$slots,"default",{},void 0,!0)]))}},[["__scopeId","data-v-47eebbde"]]),o0={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}))}}},T5=()=>{r.useCssVars(t=>({"6b796b56":t.paddingResolver}))},$5=o0.setup;o0.setup=$5?(t,e)=>(T5(),$5(t,e)):T5;function sq(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 I5=ee(o0,[["render",sq],["__scopeId","data-v-3c7c0a20"]]),A5=["sm","md","lg"],aq={components:{CdsIcon:Ce,CdsTooltip:Qc},props:{size:{type:String,default:"md",validator:t=>A5.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:A5,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))}}},oq={id:"cds-icon-button"};function lq(t,e,n,i,s,a){const o=r.resolveComponent("cds-icon");return r.openBlock(),r.createElementBlock("span",oq,[(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 Vu=ee(aq,[["render",lq],["__scopeId","data-v-ad879e60"]]);var Tu={exports:{}};Tu.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]",C="[object Null]",M="[object Object]",V="[object Promise]",S="[object Proxy]",T="[object RegExp]",I="[object Set]",L="[object String]",A="[object Symbol]",H="[object Undefined]",Y="[object WeakMap]",ne="[object ArrayBuffer]",q="[object DataView]",ie="[object Float32Array]",ye="[object Float64Array]",Q="[object Int8Array]",ue="[object Int16Array]",he="[object Int32Array]",te="[object Uint8Array]",be="[object Uint8ClampedArray]",P="[object Uint16Array]",ce="[object Uint32Array]",le=/[\\^$.*+?()[\]{}|]/g,Te=/^\[object .+?Constructor\]$/,Ee=/^(?:0|[1-9]\d*)$/,_e={};_e[ie]=_e[ye]=_e[Q]=_e[ue]=_e[he]=_e[te]=_e[be]=_e[P]=_e[ce]=!0,_e[l]=_e[d]=_e[ne]=_e[f]=_e[q]=_e[m]=_e[g]=_e[y]=_e[v]=_e[k]=_e[M]=_e[T]=_e[I]=_e[L]=_e[Y]=!1;var Ne=typeof dn=="object"&&dn&&dn.Object===Object&&dn,at=typeof self=="object"&&self&&self.Object===Object&&self,Re=Ne||at||Function("return this")(),oe=e&&!e.nodeType&&e,we=oe&&!0&&t&&!t.nodeType&&t,$e=we&&we.exports===oe,Ue=$e&&Ne.process,Ye=function(){try{return Ue&&Ue.binding&&Ue.binding("util")}catch{}}(),nt=Ye&&Ye.isTypedArray;function Wt(_,E){for(var N=-1,K=_==null?0:_.length,Ie=0,Me=[];++N<K;){var Qe=_[N];E(Qe,N,_)&&(Me[Ie++]=Qe)}return Me}function pt(_,E){for(var N=-1,K=E.length,Ie=_.length;++N<K;)_[Ie+N]=E[N];return _}function kt(_,E){for(var N=-1,K=_==null?0:_.length;++N<K;)if(E(_[N],N,_))return!0;return!1}function nn(_,E){for(var N=-1,K=Array(_);++N<_;)K[N]=E(N);return K}function rn(_){return function(E){return _(E)}}function vt(_,E){return _.has(E)}function ot(_,E){return _==null?void 0:_[E]}function It(_){var E=-1,N=Array(_.size);return _.forEach(function(K,Ie){N[++E]=[Ie,K]}),N}function Mt(_,E){return function(N){return _(E(N))}}function Vt(_){var E=-1,N=Array(_.size);return _.forEach(function(K){N[++E]=K}),N}var Bt=Array.prototype,hn=Function.prototype,Tt=Object.prototype,se=Re["__core-js_shared__"],Pe=hn.toString,Ge=Tt.hasOwnProperty,gn=function(){var _=/[^.]+$/.exec(se&&se.keys&&se.keys.IE_PROTO||"");return _?"Symbol(src)_1."+_:""}(),In=Tt.toString,Gn=RegExp("^"+Pe.call(Ge).replace(le,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),G=$e?Re.Buffer:void 0,fe=Re.Symbol,ke=Re.Uint8Array,j=Tt.propertyIsEnumerable,O=Bt.splice,U=fe?fe.toStringTag:void 0,ae=Object.getOwnPropertySymbols,Se=G?G.isBuffer:void 0,Ke=Mt(Object.keys,Object),ct=En(Re,"DataView"),Ct=En(Re,"Map"),sn=En(Re,"Promise"),Kt=En(Re,"Set"),Kn=En(Re,"WeakMap"),mt=En(Object,"create"),An=yn(ct),Mn=yn(Ct),ai=yn(sn),Yi=yn(Kt),Vr=yn(Kn),_o=fe?fe.prototype:void 0,aa=_o?_o.valueOf:void 0;function an(_){var E=-1,N=_==null?0:_.length;for(this.clear();++E<N;){var K=_[E];this.set(K[0],K[1])}}function lc(){this.__data__=mt?mt(null):{},this.size=0}function cc(_){var E=this.has(_)&&delete this.__data__[_];return this.size-=E?1:0,E}function dc(_){var E=this.__data__;if(mt){var N=E[_];return N===i?void 0:N}return Ge.call(E,_)?E[_]:void 0}function uc(_){var E=this.__data__;return mt?E[_]!==void 0:Ge.call(E,_)}function hc(_,E){var N=this.__data__;return this.size+=this.has(_)?0:1,N[_]=mt&&E===void 0?i:E,this}an.prototype.clear=lc,an.prototype.delete=cc,an.prototype.get=dc,an.prototype.has=uc,an.prototype.set=hc;function on(_){var E=-1,N=_==null?0:_.length;for(this.clear();++E<N;){var K=_[E];this.set(K[0],K[1])}}function fc(){this.__data__=[],this.size=0}function pc(_){var E=this.__data__,N=$r(E,_);if(N<0)return!1;var K=E.length-1;return N==K?E.pop():O.call(E,N,1),--this.size,!0}function mc(_){var E=this.__data__,N=$r(E,_);return N<0?void 0:E[N][1]}function gc(_){return $r(this.__data__,_)>-1}function yc(_,E){var N=this.__data__,K=$r(N,_);return K<0?(++this.size,N.push([_,E])):N[K][1]=E,this}on.prototype.clear=fc,on.prototype.delete=pc,on.prototype.get=mc,on.prototype.has=gc,on.prototype.set=yc;function Bn(_){var E=-1,N=_==null?0:_.length;for(this.clear();++E<N;){var K=_[E];this.set(K[0],K[1])}}function ps(){this.size=0,this.__data__={hash:new an,map:new(Ct||on),string:new an}}function bc(_){var E=Nn(this,_).delete(_);return this.size-=E?1:0,E}function ms(_){return Nn(this,_).get(_)}function _c(_){return Nn(this,_).has(_)}function vc(_,E){var N=Nn(this,_),K=N.size;return N.set(_,E),this.size+=N.size==K?0:1,this}Bn.prototype.clear=ps,Bn.prototype.delete=bc,Bn.prototype.get=ms,Bn.prototype.has=_c,Bn.prototype.set=vc;function gs(_){var E=-1,N=_==null?0:_.length;for(this.__data__=new Bn;++E<N;)this.add(_[E])}function oa(_){return this.__data__.set(_,i),this}function Tr(_){return this.__data__.has(_)}gs.prototype.add=gs.prototype.push=oa,gs.prototype.has=Tr;function oi(_){var E=this.__data__=new on(_);this.size=E.size}function la(){this.__data__=new on,this.size=0}function wc(_){var E=this.__data__,N=E.delete(_);return this.size=E.size,N}function kc(_){return this.__data__.get(_)}function Cc(_){return this.__data__.has(_)}function vo(_,E){var N=this.__data__;if(N instanceof on){var K=N.__data__;if(!Ct||K.length<n-1)return K.push([_,E]),this.size=++N.size,this;N=this.__data__=new Bn(K)}return N.set(_,E),this.size=N.size,this}oi.prototype.clear=la,oi.prototype.delete=wc,oi.prototype.get=kc,oi.prototype.has=Cc,oi.prototype.set=vo;function wo(_,E){var N=ys(_),K=!N&&da(_),Ie=!N&&!K&&bs(_),Me=!N&&!K&&!Ie&&Io(_),Qe=N||K||Ie||Me,et=Qe?nn(_.length,String):[],qe=et.length;for(var it in _)Ge.call(_,it)&&!(Qe&&(it=="length"||Ie&&(it=="offset"||it=="parent")||Me&&(it=="buffer"||it=="byteLength"||it=="byteOffset")||Bo(it,qe)))&&et.push(it);return et}function $r(_,E){for(var N=_.length;N--;)if(To(_[N][0],E))return N;return-1}function Ir(_,E,N){var K=E(_);return ys(_)?K:pt(K,N(_))}function Ar(_){return _==null?_===void 0?H:C:U&&U in Object(_)?Ci(_):Vo(_)}function ca(_){return Si(_)&&Ar(_)==l}function Nr(_,E,N,K,Ie){return _===E?!0:_==null||E==null||!Si(_)&&!Si(E)?_!==_&&E!==E:ko(_,E,N,K,Nr,Ie)}function ko(_,E,N,K,Ie,Me){var Qe=ys(_),et=ys(E),qe=Qe?d:xi(_),it=et?d:xi(E);qe=qe==l?M:qe,it=it==l?M:it;var At=qe==M,bn=it==M,Lt=qe==it;if(Lt&&bs(_)){if(!bs(E))return!1;Qe=!0,At=!1}if(Lt&&!At)return Me||(Me=new oi),Qe||Io(_)?zr(_,E,N,K,Ie,Me):Sc(_,E,qe,N,K,Ie,Me);if(!(N&s)){var yt=At&&Ge.call(_,"__wrapped__"),Qt=bn&&Ge.call(E,"__wrapped__");if(yt||Qt){var Ui=yt?_.value():_,Mi=Qt?E.value():E;return Me||(Me=new oi),Ie(Ui,Mi,N,K,Me)}}return Lt?(Me||(Me=new oi),So(_,E,N,K,Ie,Me)):!1}function xc(_){if(!$o(_)||Do(_))return!1;var E=_s(_)?Gn:Te;return E.test(yn(_))}function Co(_){return Si(_)&&ha(_.length)&&!!_e[Ar(_)]}function xo(_){if(!Oo(_))return Ke(_);var E=[];for(var N in Object(_))Ge.call(_,N)&&N!="constructor"&&E.push(N);return E}function zr(_,E,N,K,Ie,Me){var Qe=N&s,et=_.length,qe=E.length;if(et!=qe&&!(Qe&&qe>et))return!1;var it=Me.get(_);if(it&&Me.get(E))return it==E;var At=-1,bn=!0,Lt=N&a?new gs:void 0;for(Me.set(_,E),Me.set(E,_);++At<et;){var yt=_[At],Qt=E[At];if(K)var Ui=Qe?K(Qt,yt,At,E,_,Me):K(yt,Qt,At,_,E,Me);if(Ui!==void 0){if(Ui)continue;bn=!1;break}if(Lt){if(!kt(E,function(Mi,dr){if(!vt(Lt,dr)&&(yt===Mi||Ie(yt,Mi,N,K,Me)))return Lt.push(dr)})){bn=!1;break}}else if(!(yt===Qt||Ie(yt,Qt,N,K,Me))){bn=!1;break}}return Me.delete(_),Me.delete(E),bn}function Sc(_,E,N,K,Ie,Me,Qe){switch(N){case q:if(_.byteLength!=E.byteLength||_.byteOffset!=E.byteOffset)return!1;_=_.buffer,E=E.buffer;case ne:return!(_.byteLength!=E.byteLength||!Me(new ke(_),new ke(E)));case f:case m:case k:return To(+_,+E);case g:return _.name==E.name&&_.message==E.message;case T:case L:return _==E+"";case v:var et=It;case I:var qe=K&s;if(et||(et=Vt),_.size!=E.size&&!qe)return!1;var it=Qe.get(_);if(it)return it==E;K|=a,Qe.set(_,E);var At=zr(et(_),et(E),K,Ie,Me,Qe);return Qe.delete(_),At;case A:if(aa)return aa.call(_)==aa.call(E)}return!1}function So(_,E,N,K,Ie,Me){var Qe=N&s,et=ji(_),qe=et.length,it=ji(E),At=it.length;if(qe!=At&&!Qe)return!1;for(var bn=qe;bn--;){var Lt=et[bn];if(!(Qe?Lt in E:Ge.call(E,Lt)))return!1}var yt=Me.get(_);if(yt&&Me.get(E))return yt==E;var Qt=!0;Me.set(_,E),Me.set(E,_);for(var Ui=Qe;++bn<qe;){Lt=et[bn];var Mi=_[Lt],dr=E[Lt];if(K)var Bc=Qe?K(dr,Mi,Lt,E,_,Me):K(Mi,dr,Lt,_,E,Me);if(!(Bc===void 0?Mi===dr||Ie(Mi,dr,N,K,Me):Bc)){Qt=!1;break}Ui||(Ui=Lt=="constructor")}if(Qt&&!Ui){var pa=_.constructor,fn=E.constructor;pa!=fn&&"constructor"in _&&"constructor"in E&&!(typeof pa=="function"&&pa instanceof pa&&typeof fn=="function"&&fn instanceof fn)&&(Qt=!1)}return Me.delete(_),Me.delete(E),Qt}function ji(_){return Ir(_,fa,Mo)}function Nn(_,E){var N=_.__data__;return Eo(E)?N[typeof E=="string"?"string":"hash"]:N.map}function En(_,E){var N=ot(_,E);return xc(N)?N:void 0}function Ci(_){var E=Ge.call(_,U),N=_[U];try{_[U]=void 0;var K=!0}catch{}var Ie=In.call(_);return K&&(E?_[U]=N:delete _[U]),Ie}var Mo=ae?function(_){return _==null?[]:(_=Object(_),Wt(ae(_),function(E){return j.call(_,E)}))}:gt,xi=Ar;(ct&&xi(new ct(new ArrayBuffer(1)))!=q||Ct&&xi(new Ct)!=v||sn&&xi(sn.resolve())!=V||Kt&&xi(new Kt)!=I||Kn&&xi(new Kn)!=Y)&&(xi=function(_){var E=Ar(_),N=E==M?_.constructor:void 0,K=N?yn(N):"";if(K)switch(K){case An:return q;case Mn:return v;case ai:return V;case Yi:return I;case Vr:return Y}return E});function Bo(_,E){return E=E??o,!!E&&(typeof _=="number"||Ee.test(_))&&_>-1&&_%1==0&&_<E}function Eo(_){var E=typeof _;return E=="string"||E=="number"||E=="symbol"||E=="boolean"?_!=="__proto__":_===null}function Do(_){return!!gn&&gn in _}function Oo(_){var E=_&&_.constructor,N=typeof E=="function"&&E.prototype||Tt;return _===N}function Vo(_){return In.call(_)}function yn(_){if(_!=null){try{return Pe.call(_)}catch{}try{return _+""}catch{}}return""}function To(_,E){return _===E||_!==_&&E!==E}var da=ca(function(){return arguments}())?ca:function(_){return Si(_)&&Ge.call(_,"callee")&&!j.call(_,"callee")},ys=Array.isArray;function ua(_){return _!=null&&ha(_.length)&&!_s(_)}var bs=Se||ut;function Mc(_,E){return Nr(_,E)}function _s(_){if(!$o(_))return!1;var E=Ar(_);return E==y||E==w||E==h||E==S}function ha(_){return typeof _=="number"&&_>-1&&_%1==0&&_<=o}function $o(_){var E=typeof _;return _!=null&&(E=="object"||E=="function")}function Si(_){return _!=null&&typeof _=="object"}var Io=nt?rn(nt):Co;function fa(_){return ua(_)?wo(_):xo(_)}function gt(){return[]}function ut(){return!1}t.exports=Mc}(Tu,Tu.exports);var cq=Tu.exports;const fo=Zc(cq),dq={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=>Fi.includes(t)}},data(){return{internalActiveTab:this.activeTab,colorOptions:Fi}},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}`:""}}},uq={id:"inner-tabs"},hq={class:"inner-tabs__header-container"},fq={class:"inner-tabs__header"},pq=["onClick"],mq={class:"inner-tabs__content"};function gq(t,e,n,i,s,a){return r.openBlock(),r.createElementBlock("div",uq,[r.createElementVNode("div",hq,[r.createElementVNode("ul",fq,[(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,pq),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 yq=ee(dq,[["render",gq]]),bq={key:0,class:"landscape-overlay"},_q={class:"landscape-overlay__container"},vq=["src"],wq={class:"landscape-overlay__title"},kq={class:"landscape-overlay__subtitle"},Cq={key:0,class:"landscape-overlay__button"},xq=ee({__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=>Fi.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(()=>Zs("smartphone")||Zs("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",bq,[r.createElementVNode("div",_q,[r.createElementVNode("img",{class:"landscape-overlay__image",src:l.value},null,8,vq),r.createElementVNode("span",wq,r.toDisplayString(a.value),1),r.createElementVNode("span",kq,r.toDisplayString(o.value),1),f.block-f.interaction==="mobile"?(r.openBlock(),r.createElementBlock("div",Cq,[r.createVNode(ni,{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),l0={components:{VDatePicker:w5,CdsChevron:Ts,CdsIcon:Ce},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:ge.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:sr,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:ge.fromJSDate(t.start).toFormat("yyyy-MM-dd"),end:ge.fromJSDate(t.end).toFormat("yyyy-MM-dd")}:"");return}this.$emit("update:modelValue",t?ge.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:ge.fromFormat(this.modelValue.start,"yyyy-MM-dd"),end:ge.fromFormat(this.modelValue.end,"yyyy-MM-dd")}:{start:ge.now(),end:ge.now()};return}this.internalDate=po(this.modelValue)?ge.fromFormat(this.modelValue,"yyyy-MM-dd"):ge.now()},resolveInputValue(t){return typeof t!="object"?t:!t.start&&!t.end||Un.isEmpty(t)?null:`${t.start} a ${t.end}`}}},N5=()=>{r.useCssVars(t=>({"2a014cba":t.inlineCalendarTrailColor,"60dfc8d0":t.inlineCalendarTextColor,"311f6c80":t.inlineCalendarDotColor}))},z5=l0.setup;l0.setup=z5?(t,e)=>(N5(),z5(t,e)):N5;const Sq={key:0},Mq={key:1,class:"inline-date-input__label"},Bq={class:"label__content",for:"cds-text-input"},Eq=["value","disabled","placeholder","onClick"],Dq={class:"inline-date-input__icon"};function Oq(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",Sq,[r.renderSlot(t.$slots,"label",{},void 0,!0)])):(r.openBlock(),r.createElementBlock("label",Mq,[r.createElementVNode("div",Bq,[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,Eq),r.createElementVNode("div",Dq,[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 Vq=ee(l0,[["render",Oq],["__scopeId","data-v-fd91d96d"]]),Tq={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}}},$q=["href","target"];function Iq(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,$q)],2)}const sc=ee(Tq,[["render",Iq]]);function $u(t){const e=r.useSlots();return Object.keys(e).some(n=>n===t)}const Aq=["onClick"],Nq={key:1,class:"list__body"},zq={class:"list__content"},Pq={class:"list__actions"},Lq={key:1},Fq=ee({__name:"List",props:{items:{type:Array,required:!0,default:()=>[]},variant:{type:String,default:"blue",validator:t=>Fi.includes(t)}},emits:["on-item-click"],setup(t,{emit:e}){const{isMobile:n}=hf(),i=e;function s(a){n.value&&i("on-item-click",a)}return(a,o)=>(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.items,(l,d)=>(r.openBlock(),r.createElementBlock("div",{key:d,class:"list",onClick:h=>s(l)},[r.unref($u)("item")?r.renderSlot(a.$slots,"item",{key:0,item:l},void 0,!0):(r.openBlock(),r.createElementBlock("div",Nq,[r.createElementVNode("div",{class:r.normalizeClass(["list__title",`list__title--${t.variant}`])},r.toDisplayString(l.title),3),r.createElementVNode("div",zq,r.toDisplayString(l.content),1)])),r.createElementVNode("div",Pq,[r.unref(n)?(r.openBlock(),r.createBlock(Ce,{key:0,height:"24",width:"24",name:"caret-right-outline"})):(r.openBlock(),r.createElementBlock("div",Lq,[r.renderSlot(a.$slots,"actions",{},void 0,!0)]))])],8,Aq))),128))}},[["__scopeId","data-v-50b07005"]]),Rq={};function Hq(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 Wq=ee(Rq,[["render",Hq],["__scopeId","data-v-59f3ef96"]]),Yq=ee({__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(()=>Zs("smartphone")||Zs("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"]]),jq={class:"mobile-navbar"},Uq={class:"mobile-navbar__items"},qq={key:0,class:"mobile-navbar__item-text"},Gq=ee({__name:"MobileNavbar",props:{items:{type:Array,required:!0,validator:t=>t.length>0&&t.lenght<=5&&t.every(e=>e.route.path&&e.route.name)},variant:{type:String,default:"green"},showLabel:{type:Boolean,default:!1}},emits:["item-click"],setup(t,{emit:e}){const n=t,i=e,s=r.ref(n.items[0]),a=r.ref(0),o=r.computed(()=>({width:`${100/n.items.length}%`,transform:`translateX(${a.value*100}%)`})),l=r.computed(()=>{let f="";switch(a.value){case 0:f+="mobile-navbar__indicator--first ";break;case n.items.length-1:f+="mobile-navbar__indicator--last ";break;default:f+="mobile-navbar__indicator ";break}return f.concat(`mobile-navbar__indicator--${n.variant}`)});function d(f){return f.route.name?{name:f.route.name}:{path:f.route.path}}function h(f,m){s.value=f,a.value=m,i("item-click",f)}return(f,m)=>{const g=r.resolveComponent("router-link");return r.openBlock(),r.createElementBlock("div",jq,[r.createElementVNode("div",Uq,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.items,(y,w)=>(r.openBlock(),r.createBlock(g,{key:y,class:"mobile-navbar__item-link",to:d(y),onClick:v=>h(y,w)},{default:r.withCtx(()=>{var v,k;return[r.createElementVNode("div",{class:r.normalizeClass(["mobile-navbar__item",{"mobile-navbar__item--active":((v=s.value)==null?void 0:v.label)===y.label,[`mobile-navbar__item--active--${t.variant}`]:((k=s.value)==null?void 0:k.label)===y.label}])},[r.createVNode(Ce,{height:"20",width:"20",name:y.icon},null,8,["name"]),t.showLabel?(r.openBlock(),r.createElementBlock("div",qq,r.toDisplayString(y.label),1)):r.createCommentVNode("",!0)],2)]}),_:2},1032,["to","onClick"]))),128)),r.createElementVNode("div",{class:r.normalizeClass(l.value),style:r.normalizeStyle(o.value)},null,6)])])}}},[["__scopeId","data-v-c88587bc"]]),Kq={class:"mobile-navigation__header"},Zq={class:"mobile-navigation__title"},Xq={class:"mobile-navigation__sidebar-header"},Jq={class:"mobile-navigation__sidebar-logo"},Qq=["src"],eG={class:"mobile-navigation__sidebar-content"},tG={class:"mobile-navigation__sidebar-items"},nG={class:"mobile-navigation__sidebar-footer"},iG={class:"mobile-navigation__sidebar-user-text"},rG=ee({__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 C=Un.isEmpty(v)?k:v;return C instanceof String?{path:C}:C},y=v=>g(v)?g(v).path:null,w=v=>{document.body.style.overflow=v?"hidden":"auto"};return(v,k)=>{const C=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",Kq,[r.createElementVNode("div",Zq,r.toDisplayString(s.value.label??""),1),r.createElementVNode("div",{class:"mobile-navigation__menu-btn",onClick:d},[r.createVNode(Ce,{name:"menu-outline"})])]),r.createElementVNode("div",{class:r.normalizeClass(["mobile-navigation__sidebar",{"mobile-navigation__sidebar--expanded":a.value}])},[r.createElementVNode("div",Xq,[r.createElementVNode("div",Jq,[r.renderSlot(v.$slots,"sidebar-logo",{},()=>[r.createElementVNode("img",{src:t.sidebarLogo},null,8,Qq)],!0)]),r.createElementVNode("div",{class:"mobile-navigation__sidebar-btn",onClick:h},[r.createVNode(Ce,{name:"x-outline"})])]),r.createElementVNode("div",eG,[r.createElementVNode("div",tG,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.items,M=>(r.openBlock(),r.createBlock(C,{key:M.label,to:y(M),class:r.normalizeClass(["mobile-navigation__sidebar-item",{"mobile-navigation__sidebar-item--active":f(M)}]),onClick:V=>m(M)},{default:r.withCtx(()=>[r.createVNode(Ce,{name:M.icon,width:"24",height:"24"},null,8,["name"]),r.createElementVNode("span",null,r.toDisplayString(M.label),1)]),_:2},1032,["to","class","onClick"]))),128))]),r.createElementVNode("div",nG,[r.createElementVNode("div",{class:"mobile-navigation__sidebar-user-info",onClick:k[0]||(k[0]=M=>i("profile-click"))},[r.createVNode(dl,{src:t.user.picture??"",name:t.user.name??"",variant:t.variant,size:"lg"},null,8,["src","name","variant"]),r.createElementVNode("div",iG,[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]=M=>i("logout"))},[r.createVNode(Ce,{name:"logout-outline",width:"24",height:"24"})])])])],2)],2)],2)}}},[["__scopeId","data-v-0bc86eef"]]),sG=["teal","green","blue","indigo","violet","pink","red","orange","amber"],aG={directives:{"on-click-outside":tr.directive},components:{CdsIcon:Ce,CdsButton:ni,CdsScrollable:Jc},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=>sG.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")}}},oG={key:0,class:"cds-modal__backdrop"},lG={key:0},cG={class:"cds-modal__header"},dG={key:1,class:"cds-modal__body"},uG={key:1,class:"cds-modal__footer"};function hG(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",oG,[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",lG,[r.renderSlot(t.$slots,"header",{},()=>[r.createElementVNode("div",cG,[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",dG,[r.renderSlot(t.$slots,"default",{},void 0,!0)]))]),n.noFooter?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("footer",uG,[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 P5=ee(aG,[["render",hG],["__scopeId","data-v-f547a4b0"]]);function c0(t){return t===0?!1:Array.isArray(t)&&t.length===0?!0:!t}function fG(t){return(...e)=>!t(...e)}function pG(t,e){return t===void 0&&(t="undefined"),t===null&&(t="null"),t===!1&&(t="false"),t.toString().toLowerCase().indexOf(e.trim())!==-1}function L5(t,e,n,i){return e?t.filter(s=>pG(i(s,n),e)).sort((s,a)=>i(s,n).length-i(a,n).length):t}function mG(t){return t.filter(e=>!e.$isLabel)}function d0(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 gG(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=L5(o[n],t,e,s);return l.length?{[i]:o[i],[n]:l}:[]})}const F5=(...t)=>e=>t.reduce((n,i)=>i(n),e);var yG={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 c0(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):L5(n,e,this.label,this.customLabel):n=this.groupValues?d0(this.groupValues,this.groupLabel)(n):n,n=this.hideSelected?n.filter(fG(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 F5(gG(e,n,this.groupValues,this.groupLabel,this.customLabel),d0(this.groupValues,this.groupLabel))(t)},flatAndStrip(t){return F5(d0(this.groupValues,this.groupLabel),mG)(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(c0(t))return"";if(t.isTag)return t.label;if(t.$isLabel)return t.$groupLabel;const e=this.customLabel(t,this.label);return c0(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))}}},bG={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}}},R5={name:"vue-multiselect",mixins:[yG,bG],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 _G={ref:"tags",class:"multiselect__tags"},vG={class:"multiselect__tags-wrap"},wG={class:"multiselect__spinner"},kG={key:0},CG={class:"multiselect__option"},xG={class:"multiselect__option"},SG=r.createTextVNode("No elements found. Consider changing the search query."),MG={class:"multiselect__option"},BG=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",_G,[r.renderSlot(t.$slots,"selection",{search:t.search,remove:t.removeElement,values:a.visibleValues,isOpen:t.isOpen},()=>[r.withDirectives(r.createVNode("div",vG,[(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",wG,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",kG,[r.createVNode("span",CG,[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",xG,[r.renderSlot(t.$slots,"noResult",{search:t.search},()=>[SG])])],512),[[r.vShow,n.showNoResults&&t.filteredOptions.length===0&&t.search&&!n.loading]]),r.withDirectives(r.createVNode("li",null,[r.createVNode("span",MG,[r.renderSlot(t.$slots,"noOptions",{},()=>[BG])])],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"])}R5.render=EG;const mo=0,go=1,Iu=t=>t===void 0?{}:JSON.parse(JSON.stringify(t)),u0={components:{Multiselect:R5,CdsDivider:ll,CdsCheckbox:iu,CdsSpacer:Qd},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:Iu(this.options),groupValues:null,groupLabel:null,selectAllValue:!1,queryString:"",indeterminate:!1,sassColorVariables:Yn,uniqueKey:Gr()}},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=Iu(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=Iu(this.options.map(e=>({...e,isSelected:!1}))),this.groupValues=null,this.groupLabel=null;return}this.selectedValue.forEach(e=>{e.isSelected=!0});let t=Iu(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)}}},H5=()=>{r.useCssVars(t=>({c756d324:t.inputBackgroundColor,"1ad913b3":t.resolveMultiselectHeight,"4bf72a49":t.resolveMultiselectTop}))},W5=u0.setup;u0.setup=W5?(t,e)=>(H5(),W5(t,e)):H5;const DG=["data-cds-multiselect-identifier"],OG={key:0},VG=["for"],TG={key:0,class:"label__required-indicator"},$G={key:1,class:"cds-multiselect__grouped-divider"},IG={key:0,class:"cds-multiselect__group-label"},AG={key:1,class:"cds-multiselect__option"},NG={class:"option__checkbox"},zG=["id","onUpdate:modelValue","name"],PG=["id","for","onClick"],LG={key:0,class:"multiselect__single"},FG={key:1},RG={key:0,class:"clustered-multiselect__error-message"};function HG(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",OG,[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",TG," * ")):r.createCommentVNode("",!0)],8,VG)],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",IG,[r.createVNode(d,{text:f.$groupLabel,inline:"",dimmed:""},null,8,["text"])])):(r.openBlock(),r.createElementBlock("div",AG,[r.createElementVNode("div",NG,[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,zG),[[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,PG)]),r.createTextVNode(" "+r.toDisplayString(f[n.optionsField]),1)]))]),selection:r.withCtx(({values:f,isOpen:m})=>[f.length&&!m?(r.openBlock(),r.createElementBlock("span",LG,r.toDisplayString(a.selectedFancyMessage(f.length)),1)):(r.openBlock(),r.createElementBlock("span",FG))]),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",RG,r.toDisplayString(n.errorMessage),1)):r.createCommentVNode("",!0)],8,DG)}const WG=ee(u0,[["render",HG]]);function ia(t=null){return{emitBlur:()=>t("blur"),emitChange:()=>t("change"),emitClick:()=>t("click"),emitFocus:()=>t("focus"),emitKeydown:d=>t("keydown",d),emitMouseenter:()=>t("mouseenter"),emitMouseleave:()=>t("mouseleave")}}const ra={blur:null,change:null,click:null,focus:null,keydown:null,mouseenter:null,mouseleave:null};function h0(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){const e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}const YG=["text","textarea","email","password","tel","number","search","url"],Y5=t=>YG.includes(t),jG={},UG={class:"required-indicator"};function qG(t,e){return r.openBlock(),r.createElementBlock("strong",UG," * ")}const f0=ee(jG,[["render",qG],["__scopeId","data-v-42340e39"]]),GG={key:0,class:"base-mobile-input__leading-icon-container"},KG={class:"label__content"},ZG=["required","placeholder","disabled","type"],XG=["required","disabled","type"],JG={key:3,class:"base-mobile-input__spinner-container"},QG={key:4,class:"base-mobile-input__trailing-icon-container"},eK={key:0,class:"base-mobile-input__error-message"},tK={key:0,class:"base-mobile-input__supporting-text-container"},nK={key:0,class:"base-mobile-input__supporting-text-list"},iK={key:1,class:"base-mobile-input__supporting-text-list"},rK={key:1,class:"base-mobile-input__supporting-text"},sK={__name:"BaseMobileInput",props:r.mergeModels({label:{type:String,default:"Nome"},disabled:{type:Boolean,default:!1},state:{type:String,default:"default"},type:{type:String,default:"text",validator:Y5},required:{type:Boolean,default:!1},errorMessage:{type:String,default:"Valor inválido"},supportingText:{type:[String,Array],default:""},fluid:{type:Boolean,default:!1,required:!1},tooltip:{type:String,default:null},tooltipIcon:{type:String,default:"info-outline"},supportLink:{type:String,default:null},supportLinkUrl:{type:String,default:"https://cuida.framer.wiki/"},trailingIcon:{type:[String,null],default:null},leadingIcon:{type:[String,null],default:null},hasLeadingIcon:{type:Boolean,default:!1},hasTrailingIcon:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},{modelValue:{type:[String,Number]},modelModifiers:{}}),emits:r.mergeModels({...ra},["update:modelValue"]),setup(t,{expose:e,emit:n}){r.useCssVars(P=>({"856d6646":Q.value,"41ee7ea4":q.value,"74cff10a":ie.value,"0e5284bb":ne.value,"2e1d2d42":Y.value,"2f13cf8c":H.value,ca636092:L.value,"46f49589":A.value,"89c1bc2e":ye.value}));const i=r.useModel(t,"modelValue"),s=t,a=n,o=r.ref(""),l=r.ref(""),d=r.ref(!1),h=r.useAttrs(),{emitClick:f,emitFocus:m,emitBlur:g,emitKeydown:y,emitChange:w}=ia(a),v=r.useTemplateRef("htmlInput"),k=`cds-base-mobile-input-${s.type}-${h.id||h0()}`;o.value=i.value;const C=r.computed(()=>{let P=s.fluid?"base-mobile-input--fluid":"base-mobile-input";return d.value?s.disabled||(P+=s.state==="default"?" base-mobile-input--focused":` base-mobile-input--focused-${s.state}`):P+=s.disabled?" base-mobile-input--disabled":` base-mobile-input--${s.state}`,P}),M=r.computed(()=>{if(s.supportingText)return typeof s.supportingText=="string"?I.value?[s.supportingText]:s.supportingText:[...s.supportingText];const P=s.supportLink;return Array.isArray(P)&&!I.value&&P.length===1?P[0]:P}),V=r.computed(()=>s.state==="invalid"),S=r.computed(()=>s.state==="loading"),T=r.computed(()=>{const P=s.mobile?"mobile-field":"field";return s.fluid?`base-mobile-input__${P}--fluid`:`base-mobile-input__${P}`}),I=r.computed(()=>!!s.supportLink),L=r.computed(()=>s.type==="textarea"?"auto":"40px"),A=r.computed(()=>s.type==="textarea"?"120px":"auto"),H=r.computed(()=>s.type==="textarea"?"16px":"12px"),Y=r.computed(()=>s.hasTrailingIcon?"36px":"9px"),ne=r.computed(()=>d.value||o.value||o.value===0?"12px":"14.5px"),q=r.computed(()=>s.type==="textarea"?"auto":d.value||o.value||o.value===0?"25px":"14px"),ie=r.computed(()=>s.hasLeadingIcon?"36px":"12px"),ye=r.computed(()=>d.value||o.value||o.value===0?"#647382":"#3B4754"),Q=r.computed(()=>s.disabled?"not-allowed":S.value?"progress":s.readonly?"pointer":"text");r.watch(i,(P,ce)=>{P!==ce&&(o.value=P),(P===0||P==="0"||P===""||P===null||P===void 0)&&(o.value=s.money||h.money?"R$ 0,00":"")},{immediate:!0}),r.watch(o,P=>{s.lazy||(i.value=P)});function ue(){f(),v.value.focus()}function he(){d.value=!0,l.value=o.value,m()}function te(){d.value=!1,g(),l.value!==o.value&&(i.value=o.value,w()),l.value=o.value}function be(P){d.value=!0,y(P)}return e({componentRef:v,isFocused:d,focus:()=>{var P;return(P=v.value)==null?void 0:P.focus()},blur:()=>{var P;return(P=v.value)==null?void 0:P.blur()},clear:()=>{var P;return(P=v.value)==null?void 0:P.clear()},select:()=>{var P;return(P=v.value)==null?void 0:P.select()}}),(P,ce)=>(r.openBlock(),r.createBlock(qt,{direction:"column",gap:"1"},{default:r.withCtx(()=>[r.createElementVNode("div",{class:r.normalizeClass(C.value),onClick:r.withModifiers(ue,["stop"])},[t.hasLeadingIcon?(r.openBlock(),r.createElementBlock("div",GG,[r.renderSlot(P.$slots,"leading-icon",{},()=>[t.leadingIcon?(r.openBlock(),r.createBlock(Ce,{key:0,height:"22",width:"22",name:t.leadingIcon,class:"base-mobile-input__icon"},null,8,["name"])):r.createCommentVNode("",!0)],!0)])):r.createCommentVNode("",!0),r.createElementVNode("label",{class:r.normalizeClass({"base-mobile-input__label":!t.fluid,"base-mobile-input__label--fluid":t.fluid}),for:k,onClick:r.withModifiers(ue,["stop"])},[r.createElementVNode("span",KG,[r.createTextVNode(r.toDisplayString(t.label)+" ",1),t.required?(r.openBlock(),r.createBlock(f0,{key:0})):r.createCommentVNode("",!0)])],2),t.type==="textarea"?r.withDirectives((r.openBlock(),r.createElementBlock("textarea",{key:1,id:k,ref:"htmlInput","onUpdate:modelValue":ce[0]||(ce[0]=le=>o.value=le),required:t.required,placeholder:P.placeholder,disabled:t.disabled,class:r.normalizeClass(T.value),type:t.type,onFocus:he,onBlur:te,onKeydown:be},null,42,ZG)),[[r.vModelText,o.value]]):r.withDirectives((r.openBlock(),r.createElementBlock("input",r.mergeProps({key:2,id:k,ref:"htmlInput"},{...P.$attrs,...s},{"onUpdate:modelValue":ce[1]||(ce[1]=le=>o.value=le),placeholder:"",required:t.required,disabled:t.disabled,class:T.value,type:t.type,onFocus:he,onBlur:te,onKeydown:be}),null,16,XG)),[[r.vModelDynamic,o.value]]),S.value&&!t.disabled?(r.openBlock(),r.createElementBlock("div",JG,[r.createVNode(Ca,{size:"sm",variant:"blue",class:"base-mobile-input__icon--spinner-icon"})])):r.createCommentVNode("",!0),t.hasTrailingIcon?(r.openBlock(),r.createElementBlock("div",QG,[r.renderSlot(P.$slots,"trailing-icon",{},()=>[t.trailingIcon?(r.openBlock(),r.createBlock(Ce,{key:0,height:"22",width:"22",name:t.trailingIcon,class:"base-mobile-input__icon"},null,8,["name"])):r.createCommentVNode("",!0)],!0)])):r.createCommentVNode("",!0)],2),V.value&&!t.disabled?(r.openBlock(),r.createElementBlock("div",eK,r.toDisplayString(t.errorMessage),1)):r.createCommentVNode("",!0),M.value?(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[Array.isArray(M.value)?(r.openBlock(),r.createElementBlock("ul",tK,[I.value?(r.openBlock(),r.createElementBlock("li",nK,[r.createVNode(qt,{align:"baseline",gap:"1"},{default:r.withCtx(()=>[ce[2]||(ce[2]=r.createElementVNode("span",{class:"base-mobile-input__supporting-text"},"Link: ",-1)),r.createVNode(qt,{gap:"1",align:"baseline",tag:"span"},{default:r.withCtx(()=>[r.createVNode(sc,{text:t.supportLink,href:t.supportLinkUrl,class:"label__link","new-tab":""},null,8,["text","href"]),r.createVNode(Ce,{height:"13",width:"13",name:"open-in-new-tab-outline",class:"label__link-icon"})]),_:1})]),_:1})])):r.createCommentVNode("",!0),t.tooltip?(r.openBlock(),r.createElementBlock("li",iK,[r.createVNode(qt,{gap:"1",align:"center"},{default:r.withCtx(()=>[r.createVNode(Ce,{name:t.tooltipIcon,height:"16",width:"16"},null,8,["name"]),r.createTextVNode(" "+r.toDisplayString(t.tooltip),1)]),_:1})])):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(M.value,le=>(r.openBlock(),r.createElementBlock("li",{key:le,class:"base-mobile-input__supporting-text-list"},r.toDisplayString(le),1))),128))])):(r.openBlock(),r.createElementBlock("div",rK,[t.tooltip?(r.openBlock(),r.createBlock(qt,{key:0,gap:"1",align:"center"},{default:r.withCtx(()=>[r.createVNode(Ce,{name:t.tooltipIcon,height:"16",width:"16"},null,8,["name"]),r.createTextVNode(" "+r.toDisplayString(t.tooltip),1)]),_:1})):r.createCommentVNode("",!0),I.value?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(r.toDisplayString(M.value),1)],64)),t.supportLink?(r.openBlock(),r.createBlock(qt,{key:2,align:"baseline",gap:"1"},{default:r.withCtx(()=>[ce[3]||(ce[3]=r.createElementVNode("span",{class:"base-mobile-input__supporting-text"},"Link: ",-1)),r.createVNode(qt,{gap:"1",align:"baseline",tag:"span"},{default:r.withCtx(()=>[r.createVNode(sc,{class:"label__link",href:t.supportLinkUrl,text:t.supportLink,"new-tab":""},null,8,["href","text"]),r.createVNode(Ce,{height:"13",width:"13",name:"open-in-new-tab-outline",class:"label__link-icon"})]),_:1})]),_:1})):r.createCommentVNode("",!0)]))],64)):r.createCommentVNode("",!0)]),_:3}))}},aK=ee(sK,[["__scopeId","data-v-1af0304a"]]),oK={class:"label__content"},lK={key:0,class:"base-input__leading-icon-container"},cK=["required","placeholder","disabled","type"],dK=["required","placeholder","disabled","type"],uK={key:3,class:"base-input__spinner-container"},hK={key:4,class:"base-input__trailing-icon-container"},fK={key:2,class:"base-input__error-text"},pK={key:0,class:"base-input__supporting-text-container"},mK={key:1,class:"base-input__supporting-text"},gK={__name:"BaseInput",props:r.mergeModels({label:{type:String,default:"Label"},disabled:{type:Boolean,default:!1},state:{type:String,default:"default"},type:{type:String,default:"text",validator:Y5},required:{type:Boolean,default:!1},placeholder:{type:String,default:"Digite aqui..."},errorMessage:{type:String,default:"Valor inválido"},supportingText:{type:[String,Array],default:""},fluid:{type:Boolean,default:!1,required:!1},tooltip:{type:String,default:null},tooltipIcon:{type:String,default:"info-outline"},supportLink:{type:String,default:null},supportLinkUrl:{type:String,default:"https://cuida.framer.wiki/"},floatingLabel:{type:Boolean,default:!1},leadingIcon:{type:[String,null],default:null},trailingIcon:{type:[String,null],default:null},lazy:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},{modelValue:{type:[String,Number]},modelModifiers:{}}),emits:r.mergeModels({...ra},["update:modelValue"]),setup(t,{expose:e,emit:n}){r.useCssVars(te=>({"49a76bbc":Y.value,"1b6f1061":ie.value,"2e798c8d":I.value,"76d4b538":S.value,"595a9730":T.value}));const i=r.useModel(t,"modelValue"),s=t,a=n,o=r.useAttrs(),l=r.ref(),d=r.ref(""),h=r.ref(""),f=r.ref(!1),{emitClick:m,emitFocus:g,emitBlur:y,emitKeydown:w,emitChange:v}=ia(a),k=r.useTemplateRef("htmlInput"),C=r.useTemplateRef("mobileInput"),M=`cds-base-input-${s.type}-${o.id||h0()}`,V=r.computed(()=>{let te=s.fluid?"base-input--fluid":"base-input";return f.value?s.disabled||(te+=s.state==="default"?" base-input--focused":` base-input--focused-${s.state}`):te+=s.disabled?" base-input--disabled":` base-input--${s.state}`,te}),S=r.computed(()=>s.type==="textarea"?"auto":"40px"),T=r.computed(()=>s.type==="textarea"?"120px":"auto"),I=r.computed(()=>s.type==="textarea"?"8px":"14px"),L=r.computed(()=>s.state==="invalid"),A=r.computed(()=>s.state==="loading"),H=r.computed(()=>{const te="field";return s.fluid?`base-input__${te}--fluid`:`base-input__${te}`}),Y=r.computed(()=>s.disabled?"not-allowed":A.value?"progress":s.readonly?"pointer":"text"),ne=r.computed(()=>s.leadingIcon||$u("leading-icon")),q=r.computed(()=>s.trailingIcon||$u("trailing-icon")),ie=r.computed(()=>q.value?"36px":"9px");r.watch(i,(te,be)=>{te!==be&&(d.value=te)},{immediate:!0}),r.watch(d,te=>{s.lazy||(i.value=te)}),r.watch(()=>s.floatingLabel,()=>{var te;l.value=s.floatingLabel?(te=C==null?void 0:C.value)==null?void 0:te.componentRef:k.value}),r.onMounted(()=>{var te;l.value=s.floatingLabel?(te=C==null?void 0:C.value)==null?void 0:te.componentRef:k.value});function ye(){m()}function Q(){f.value=!0,h.value=d.value,g()}function ue(){f.value=!1,y(),h.value!==d.value&&(i.value=d.value,v()),h.value=d.value}function he(te){f.value=!0,w(te)}return e({componentRef:l,isFocused:f,focus:()=>{var te;return(te=l.value)==null?void 0:te.focus()},blur:()=>{var te;return(te=l.value)==null?void 0:te.blur()},clear:()=>{var te;return(te=l.value)==null?void 0:te.clear()},select:()=>{var te;return(te=l.value)==null?void 0:te.select()}}),(te,be)=>(r.openBlock(),r.createElementBlock("div",null,[t.floatingLabel?(r.openBlock(),r.createBlock(aK,r.mergeProps({key:0,ref:"mobileInput"},{...te.$attrs,...s},{modelValue:d.value,"onUpdate:modelValue":be[0]||(be[0]=P=>d.value=P),"has-leading-icon":ne.value,"has-trailing-icon":q.value,onClick:ye,onFocus:Q,onBlur:ue,onKeydown:he}),{"trailing-icon":r.withCtx(()=>[r.renderSlot(te.$slots,"trailing-icon",{},void 0,!0)]),"leading-icon":r.withCtx(()=>[r.renderSlot(te.$slots,"leading-icon",{},void 0,!0)]),_:3},16,["modelValue","has-leading-icon","has-trailing-icon"])):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.unref($u)("label")?r.renderSlot(te.$slots,"label",{key:0},void 0,!0):(r.openBlock(),r.createElementBlock("label",{key:1,class:r.normalizeClass({"base-input__label":!t.fluid,"base-input__label--fluid":t.fluid}),for:M},[r.createElementVNode("span",oK,[r.createTextVNode(r.toDisplayString(t.label)+" ",1),t.required?(r.openBlock(),r.createBlock(f0,{key:0})):r.createCommentVNode("",!0),t.tooltip?r.withDirectives((r.openBlock(),r.createBlock(Ce,{key:1,name:t.tooltipIcon,height:"18",width:"18",class:"label__icon"},null,8,["name"])),[[r.unref(al),t.tooltip]]):r.createCommentVNode("",!0)]),t.supportLink?(r.openBlock(),r.createBlock(sc,{key:0,href:t.supportLinkUrl,text:t.supportLink,class:"label__link","new-tab":""},null,8,["href","text"])):r.createCommentVNode("",!0)],2)),r.createElementVNode("div",{class:r.normalizeClass(V.value),onClick:ye},[ne.value?(r.openBlock(),r.createElementBlock("div",lK,[r.renderSlot(te.$slots,"leading-icon",{},()=>[t.leadingIcon?(r.openBlock(),r.createBlock(Ce,{key:0,height:"20",width:"20",name:t.leadingIcon,class:"base-input__icon"},null,8,["name"])):r.createCommentVNode("",!0)],!0)])):r.createCommentVNode("",!0),t.type==="textarea"?r.withDirectives((r.openBlock(),r.createElementBlock("textarea",{key:1,id:M,ref:"htmlInput","onUpdate:modelValue":be[1]||(be[1]=P=>d.value=P),required:t.required,placeholder:t.placeholder,disabled:t.disabled,class:r.normalizeClass(H.value),type:t.type,onFocus:Q,onBlur:ue,onKeydown:he},null,42,cK)),[[r.vModelText,d.value]]):r.withDirectives((r.openBlock(),r.createElementBlock("input",r.mergeProps({key:2,id:M,ref:"htmlInput"},{...te.$attrs,...s},{"onUpdate:modelValue":be[2]||(be[2]=P=>d.value=P),required:t.required,placeholder:t.placeholder,disabled:t.disabled,class:H.value,type:t.type,onFocus:Q,onBlur:ue,onKeydown:he}),null,16,dK)),[[r.vModelDynamic,d.value]]),A.value&&!t.disabled?(r.openBlock(),r.createElementBlock("div",uK,[r.createVNode(Ca,{size:"sm",variant:"blue",class:"base-input__icon--spinner-icon"})])):r.createCommentVNode("",!0),q.value?(r.openBlock(),r.createElementBlock("div",hK,[r.renderSlot(te.$slots,"trailing-icon",{},()=>[r.createVNode(Ce,{height:"20",width:"20",name:t.trailingIcon,class:"base-input__icon"},null,8,["name"])],!0)])):r.createCommentVNode("",!0)],2),L.value&&!t.disabled?(r.openBlock(),r.createElementBlock("div",fK,r.toDisplayString(t.errorMessage),1)):r.createCommentVNode("",!0),t.supportingText?(r.openBlock(),r.createElementBlock(r.Fragment,{key:3},[Array.isArray(t.supportingText)?(r.openBlock(),r.createElementBlock("ul",pK,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.supportingText,P=>(r.openBlock(),r.createElementBlock("li",{key:P,class:"base-input__supporting-text-list"},r.toDisplayString(P),1))),128))])):(r.openBlock(),r.createElementBlock("span",mK,r.toDisplayString(t.supportingText),1))],64)):r.createCommentVNode("",!0)],64))]))}},yo=ee(gK,[["__scopeId","data-v-faef2438"]]),yK={ref:"cds-select",class:"select"},bK={key:0,class:"option__container"},_K=["onMouseover"],vK={key:1,class:"option__container"},wK={__name:"Select",props:r.mergeModels({label:{type:String,default:"Label"},placeholder:{type:String,default:"Selecione...",required:!1},options:{type:Array,default:()=>[],required:!0},state:{type:String,default:"default"},required:{type:Boolean,default:!1,required:!1},errorMessage:{type:String,default:"Valor inválido"},searchable:{type:Boolean,default:!1,required:!1},width:{type:String,default:"",required:!1},fluid:{type:Boolean,default:!1,required:!1},disabled:{type:Boolean,default:!1,required:!1},tooltip:{type:String,default:null},tooltipIcon:{type:String,default:"info-outline"},optionsField:{type:String,default:"value",required:!1},returnValue:{type:Boolean,default:!1,required:!1},linkText:{type:String,default:null},linkUrl:{type:String,default:"https://cuida.framer.wiki/"},supportLink:{type:String,default:null},supportingText:{type:[String,Array],default:""},supportLinkUrl:{type:String,default:"https://cuida.framer.wiki/"},mobile:{type:Boolean,default:!1},floatingLabel:{type:Boolean,default:!1}},{modelValue:{type:[Array,Object]},modelModifiers:{}}),emits:r.mergeModels({...ra},["update:modelValue"]),setup(t,{expose:e,emit:n}){var at,Re;r.useCssVars(oe=>({"7b802a00":q.value,"96ca6f32":H.value}));const i=r.useModel(t,"modelValue"),s=t,a=n,o=r.ref(0),l=r.ref(!1),d=r.ref(null),h=r.ref(!1),f=r.ref([]),m=r.ref([]),g=r.ref({}),y=r.ref(""),w=r.ref("down"),v=r.ref(Gr()),k=r.useTemplateRef("baseInput"),C=r.useTemplateRef("cds-select"),M=r.useTemplateRef("select-options"),V=r.ref({}),{emitClick:S,emitChange:T,emitFocus:I,emitBlur:L,emitKeydown:A}=ia(a),H=r.computed(()=>s.mobile?"9px":"6px"),Y=r.computed(()=>{let oe="";const we=s.mobile?"select__mobile-input":"select__input";return oe+=` ${we}--${Hh.find($e=>$e===s.width)}`,oe+=s.fluid?` ${we}--fluid`:` ${we}--fit`,oe+=s.searchable?` ${we}--searchable`:"",oe}),ne=r.computed(()=>({"select__options--thin":s.width==="thin","select__options--default":s.width==="default","select__options--wide":s.width==="wide","select__options--fluid":s.fluid,"select__options--down":w.value==="down","select__options--up":w.value==="up"})),q=r.computed(()=>s.fluid?"100%":"fit-content"),ie=r.computed(()=>Hh.some(oe=>oe===s.width)||s.fluid);r.watch(()=>s.searchable,(oe,we)=>{oe!==we&&(h.value=oe)},{immediate:!0}),r.watch(()=>s.options,(oe,we)=>{oe!==we&&(f.value=oe,m.value=oe)},{immediate:!0}),r.watch(()=>i,(oe,we)=>{oe!==we&&(oe instanceof Object?g.value=oe.value:g.value={id:oe,value:oe})},{immediate:!0}),r.watch(g,oe=>{f.value.filter($e=>JSON.stringify($e)===JSON.stringify(oe)).length!==0&&(s.returnValue?(i.value=oe[s.optionsField],T()):(i.value=oe,T()))},{deep:!0}),r.onMounted(()=>{d.value=`cds-select-${v.value}`,y.value=C.value});function ye(){const oe=rc(g.value[s.optionsField]),we=new RegExp(oe,"i");f.value=s.options.filter($e=>rc($e[s.optionsField]).search(we)>=0)}function Q(){s.disabled||(Ne(),r.nextTick().then(()=>{const oe=f.value[o.value];V.value[`${oe[s.optionsField]}-${o.value}`].classList.add("highlight")}),I())}function ue(){s.disabled||(l.value=!l.value,Ne(),typeof f.value[o.value]>"u"?f.value=m.value:g.value=ol(f.value[o.value]),k.value.blur())}function he(){let oe=y.value.getBoundingClientRect();oe.top+oe.height+286<window.innerHeight?w.value="down":w.value="up",!s.disabled&&(l.value=!l.value,S(),k.value.focus())}function te(){g.value=s.options.some(oe=>{var we,$e;return((we=oe[s.optionsField])==null?void 0:we.toLowerCase())===(($e=g.value[s.optionsField])==null?void 0:$e.toLowerCase())})?g.value:{},f.value=m.value,l.value=!1,L()}function be(){g.value=ol(f.value[o.value])}function P(oe){const we=f.value[oe];return V.value[`${we[s.optionsField]}-${oe}`]}function ce(oe,we,$e){const Ue=oe.getBoundingClientRect(),Ye=M.value,nt=Ye.getBoundingClientRect();$e==="up"&&Ue.top<=nt.top&&(Ye.scrollTop+=we),$e==="down"&&Ue.top>=nt.bottom&&(Ye.scrollTop+=we)}function le(){if(!l.value||o.value===f.value.length-1)return;o.value+=1;const oe=P(o.value),we=P(o.value-1);oe.classList.add("highlight"),we.classList.remove("highlight"),ce(oe,37,"down")}function Te(){if(!l.value||o.value===0)return;const oe=P(o.value),we=P(o.value-1);oe.classList.remove("highlight"),we.classList.add("highlight"),ce(oe,-37,"up"),o.value-=1}function Ee(oe){o.value=oe,P(o.value).classList.add("highlight")}function _e(){P(o.value).classList.remove("highlight")}function Ne(){f.value.forEach((oe,we)=>{const $e=f.value[we];V.value[`${$e[s.optionsField]}-${we}`].classList.remove("highlight")})}return e({componentRef:(at=k.value)==null?void 0:at.componentRef,isFocused:(Re=k.value)==null?void 0:Re.isFocused,focus:()=>{var oe;return(oe=k.value)==null?void 0:oe.focus()},blur:()=>{var oe;return(oe=k.value)==null?void 0:oe.blur()},clear:()=>{var oe;return(oe=k.value)==null?void 0:oe.clear()},select:()=>{var oe;return(oe=k.value)==null?void 0:oe.select()}}),(oe,we)=>(r.openBlock(),r.createElementBlock("div",yK,[r.createElementVNode("div",{class:r.normalizeClass(["select__container",t.fluid?"select__container--fluid":"select__container--fit"])},[r.createVNode(yo,r.mergeProps({id:oe.$attrs.id||d.value,ref:"baseInput"},{...oe.$attrs,...s},{modelValue:g.value[t.optionsField],"onUpdate:modelValue":we[0]||(we[0]=$e=>g.value[t.optionsField]=$e),type:"text",autocomplete:"off",onkeypress:`return ${h.value};`,placeholder:t.placeholder,disabled:t.disabled,readonly:!t.searchable,"support-link-url":t.supportLinkUrl||t.linkUrl,"support-link":t.supportLink||t.linkText,"floating-label":t.floatingLabel||t.mobile,class:Y.value,fluid:ie.value,onKeydown:[r.withKeys(r.withModifiers(ue,["prevent"]),["enter"]),r.withKeys(r.withModifiers(le,["prevent"]),["arrow-down"]),r.withKeys(r.withModifiers(Te,["prevent"]),["arrow-up"]),r.unref(A)],onClick:he,onInput:ye,onFocus:Q,onBlur:te}),{"trailing-icon":r.withCtx(()=>[r.createElementVNode("span",{class:r.normalizeClass(l.value?"select__chevron--opened":"select__chevron--closed")},null,2)]),_:1},16,["id","modelValue","onkeypress","placeholder","disabled","readonly","support-link-url","support-link","floating-label","class","fluid","onKeydown"]),r.withDirectives(r.createElementVNode("div",{ref:"select-options",class:r.normalizeClass(["select__options",ne.value])},[f.value.length>0?(r.openBlock(),r.createElementBlock("ul",bK,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(f.value,($e,Ue)=>(r.openBlock(),r.createElementBlock("li",{key:$e.id||$e,ref_for:!0,ref:Ye=>{V.value[`${$e[t.optionsField]}-${Ue}`]=Ye},class:"option__text",onMousedown:be,onMouseover:Ye=>Ee(Ue),onMouseout:we[1]||(we[1]=Ye=>_e())},r.toDisplayString($e[t.optionsField]),41,_K))),128))])):(r.openBlock(),r.createElementBlock("ul",vK,we[2]||(we[2]=[r.createElementVNode("li",{class:"option__text--muted"}," Nenhuma opção encontrada ",-1)])))],2),[[r.vShow,l.value]])],2)],512))}},j5=ee(wK,[["__scopeId","data-v-fa41a7fa"]]),kK={class:"multi-file-input"},CK={class:"multi-file-input__file-container"},xK={class:"multi-file-input__box"},SK={class:"multi-file-input__badges_section"},MK={class:"multi-file-input__badge-content"},BK={key:0,class:"multi-file-input__empty-state"},EK={key:1,class:"multi-file-input__list-container"},DK={class:"multi-file-input__list"},OK={class:"multi-file-input__actions"},VK={key:0,class:"multi-file-input__alert"},TK={class:"multi-file-input__footer"},$K=ee({__name:"MultiFileInput",props:{documents:{type:Array,required:!0},variant:{type:String,default:"green"},submitButtonText:{type:String,default:"Enviar"},buttonSecondary:{type:Boolean,default:!1}},emits:["submit"],setup(t,{emit:e}){const n=t,i=e,s=r.ref(0),a=r.ref({}),o=r.ref([]),l=r.ref(n.documents.map(C=>({id:h0(),value:C.name,required:C.required,active:!1,file:null}))),d=r.computed(()=>o.value.filter(C=>{var M;return(M=C.selectedLabel)==null?void 0:M.id}).map(C=>C.selectedLabel.id)),h=r.computed(()=>{const C={},M=[];return d.value.forEach(V=>{C[V]?C[V]+=1:C[V]=1}),Object.keys(C).forEach(V=>{C[V]>1&&M.push(V)}),M}),f=r.computed(()=>v()&&h.value.length==0&&k());r.watch(()=>o.value,()=>{l.value.forEach(C=>{C.active=d.value.includes(C.id)})},{deep:!0});function m(C){C.name&&(o.value.push({file:C,selectedLabel:null}),s.value+=1,a.value=null)}function g(C){const M=o.value.indexOf(C);M>-1&&o.value.splice(M,1)}function y(C){var M;return h.value.includes((M=C.selectedLabel)==null?void 0:M.id)}function w(){i("submit",o.value)}function v(){return o.value.every(C=>{var M;return(M=C.selectedLabel)==null?void 0:M.id})}function k(){return l.value.filter(C=>C.required).every(C=>C.active)}return(C,M)=>(r.openBlock(),r.createElementBlock("div",kK,[r.createElementVNode("div",CK,[(r.openBlock(),r.createBlock(M5,r.mergeProps({key:s.value,modelValue:a.value,"onUpdate:modelValue":M[0]||(M[0]=V=>a.value=V)},C.$attrs,{"onUpdate:modelValue":m}),null,16,["modelValue"]))]),r.createElementVNode("div",xK,[M[2]||(M[2]=r.createElementVNode("div",{class:"multi-file-input__description"}," Os arquivos marcados com o asterisco (*) são obrigatórios: ",-1)),r.createElementVNode("div",SK,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.value,V=>(r.openBlock(),r.createBlock(Tm,{key:V,variant:V.active?t.variant:"gray"},{default:r.withCtx(()=>[r.createElementVNode("div",MK,[V.active?(r.openBlock(),r.createBlock(Ce,{key:0,name:"check-outline",height:"16",width:"16"})):r.createCommentVNode("",!0),r.createElementVNode("div",null,r.toDisplayString(V.value)+" "+r.toDisplayString(V.required?"*":""),1)])]),_:2},1032,["variant"]))),128))]),o.value.length==0?(r.openBlock(),r.createElementBlock("div",BK," Os arquivos adicionados serão exibidos aqui ")):(r.openBlock(),r.createElementBlock("div",EK,[M[1]||(M[1]=r.createElementVNode("div",{class:"multi-file-input__list-title"}," Arquivos anexados ",-1)),r.createElementVNode("div",DK,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(o.value,V=>(r.openBlock(),r.createElementBlock("div",{key:V,class:"multi-file-input__list-item"},[r.createElementVNode("div",{class:r.normalizeClass(["multi-file-input__item",`multi-file-input__item--${t.variant}`])},[r.createTextVNode(r.toDisplayString(V.file.name)+" ",1),r.createElementVNode("div",null,[r.createElementVNode("div",OK,[r.createVNode(j5,{modelValue:V.selectedLabel,"onUpdate:modelValue":S=>V.selectedLabel=S,options:l.value,label:"",style:{display:"flex"}},null,8,["modelValue","onUpdate:modelValue","options"]),r.createVNode(Vu,{icon:"trash-outline",size:"lg",onClick:S=>g(V)},null,8,["onClick"])]),y(V)?(r.openBlock(),r.createElementBlock("div",VK," Arquivo duplicado. ")):r.createCommentVNode("",!0)])],2)]))),128))])])),r.createElementVNode("div",TK,[r.createVNode(ni,{secondary:t.buttonSecondary,variant:t.variant,disabled:!f.value,onButtonClick:w},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(t.submitButtonText),1)]),_:1},8,["secondary","variant","disabled"])])])]))}},[["__scopeId","data-v-c736096e"]]),IK={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=>Fi.includes(t)}},data(){return{internalActiveItem:this.activeItem,colorOptions:Fi}},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}`:""}}},AK={id:"nav-bar"};function NK(t,e,n,i,s,a){const o=r.resolveComponent("router-link");return r.openBlock(),r.createElementBlock("div",AK,[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 zK=ee(IK,[["render",NK]]),PK={mounted(t,e){const n=a=>{if(a==0)return"R$ 0,00";if(!a)return"";let o=String(a).replace(/\D/g,"");return o?(parseFloat(o)/100).toLocaleString("pt-BR",{style:"currency",currency:"BRL"}):"R$ 0,00"};let i=!1;const s=a=>{if(i)return;i=!0;let o=String(a.target.value||""),l=o.replace(/\D/g,""),d=parseFloat(l)/100;const h=n(o);a.target.value=h;const f=new Event("input",{bubbles:!0});Object.defineProperty(f,"target",{value:{value:d},writable:!1}),t.dispatchEvent(f),i=!1};t.addEventListener("input",s),t.value=n(e.value||""),t._inputHandler=s},updated(t,e){const n=i=>{if(!i)return"";let s=String(i).replace(/\D/g,"");return(parseFloat(s)/100).toLocaleString("pt-BR",{style:"currency",currency:"BRL"})};t.value=n(e.value||"")},unmounted(t){t._inputHandler&&t.removeEventListener("input",t._inputHandler)}},LK=t=>{let e=t.replace("R$","");return e=e.replaceAll(".",""),e=e.replace(/(.*),(\d{2})/g,"$1.$2"),+e},FK={"#":{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 p0(t){this.masked=this.unmasked=t||""}function U5(){return new CustomEvent("input",{bubbles:!0,cancelable:!0,detail:{facade:!0}})}function m0(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 q5(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(U5())}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=Z5(f,l);if(s&&typeof l.formatter=="function"){const g=l.formatter(m,s);if(typeof g=="string")m=Z5(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(U5())}}let g0=FK,G5=!1;try{"a".localeCompare("b","i")}catch(t){G5=t.name==="RangeError"}function HK(t){t&&(g0=t)}function WK(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=y0(t,i({mask:d})),f=l.unmasked.length;return h.unmasked.length>f?h:l};if(!n.length)return new p0;const a=n.shift();let o=y0(t,i({mask:a}));for(;n.length;){const l=n.shift();o=s(o,l)}return o}function y0(t,e){var n,i;let{mask:s="",tokens:a,prefill:o=!1,short:l=!1}=e;a=a?Object.assign({},g0,a):g0;let d=new p0,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 C=y(v);if(v&&!h&&!C.pipe){if(C.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="",C.repeat||(m+=C.optional?2:1);else if(C.optional||C.repeat){m+=2;continue}f++}else if(C.pipe){if(!k)break;const M=C.pipe.find(K5.bind(null,k));M&&(d.unmasked+=M,d.masked+=g+M,m+=C.pipe.length*2-1,g=""),f++}else K5(k,w)?(d.masked+=g+w,f++,g="",C.optional&&(d.unmasked+=w)):C.optional||(g+=w),h=!1,m+=C.optional?2:1}return(o&&!d.unmasked||!l&&d.unmasked)&&(d.masked+=g),d}function K5(t,e){return G5?(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 Z5(t,e){return t=(t||"").toString(),e=m0(e),e.mask?Array.isArray(e.mask)?WK(t,Object.assign({},e,{masks:e.mask})):y0(t,e):new p0(t)}const bo=sa,ac={beforeMount:(t,{value:e,modifiers:n},i)=>{t=Au(t);const s=m0(e,n);t[bo]={config:s},Nu(t,i,{force:s.prefill})},mounted:t=>{t=Au(t);const e=t[bo],n=t.parentElement||t,i=a=>{a.target===t&&q5(a,t)},s=a=>{a.target===t&&(a.type==="compositionend"?(t[bo].isComposing=!1,q5(a,t)):t[bo].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[bo].config=m0(e,i),Nu(t,s,{force:!0})):Nu(t,s)},unmounted:t=>{Au(t)[bo].cleanup()}},YK=(t,e)=>{const n=t.__vccOpts||t;for(const[i,s]of e)n[i]=s;return n},jK={name:"InputFacade",directives:{facade:ac},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)}}},UK=["value"];function qK(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,UK)),[[o,a.config]])}const X5=YK(jK,[["render",qK]]),GK={install(t,e={}){e.tokens&&HK(e.tokens),t.component(X5.name,X5),t.directive(e.name||"facade",ac)}};typeof window<"u"&&window.Vue&&window.Vue.use(GK);const KK={__name:"NumberInput",props:r.mergeModels({label:{type:String,default:"Valor"},disabled:{type:Boolean,default:!1},state:{type:String,default:"default"},required:{type:Boolean,default:!1},placeholder:{type:String,default:"Digite aqui a informação"},supportingText:{type:[String,Array],default:""},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/"},supportLink:{type:String,default:null},supportLinkUrl:{type:String,default:"https://cuida.framer.wiki/"},lazy:{type:Boolean,default:!1},mask:{type:[String,Array],default:null},mobile:{type:Boolean,default:!1},floatingLabel:{type:Boolean,default:!1}},{modelValue:{type:[Number,String]},modelModifiers:{},unmaskedValue:{type:[Number,String,null]},unmaskedValueModifiers:{}}),emits:r.mergeModels({...ra},["update:modelValue","update:unmaskedValue"]),setup(t,{expose:e,emit:n}){var M,V;const i=ac,s=r.useTemplateRef("baseInput"),a=r.useModel(t,"modelValue"),o=r.useModel(t,"unmaskedValue"),l=t,d=n,h=r.ref(""),{emitClick:f,emitChange:m,emitFocus:g,emitBlur:y,emitKeydown:w}=ia(d);let v={};r.watch(h,(S,T)=>{if(S!==T){let I=String(S);l.money?(o.value=LK(I),a.value=I):l.mask?(h.value=I,a.value=I,o.value=+I.replace(/\D/g,"")):I.length>15?h.value=+I.slice(0,15):(a.value=+I,o.value=+I)}}),r.onMounted(()=>{l.money&&s.value&&s.value.componentRef&&(v={value:a.value,oldValue:"",instance:s.value.componentRef,modifiers:{},arg:null},PK.mounted(s.value.componentRef,v))});function k(){l.money&&(h.value=h.value==0||h.value==""?"R$ 0,00":h.value),g()}function C(){a.value=h.value,m()}return e({componentRef:(M=s.value)==null?void 0:M.componentRef,isFocused:(V=s.value)==null?void 0:V.isFocused,focus:()=>{var S;return(S=s.value)==null?void 0:S.focus()},blur:()=>{var S;return(S=s.value)==null?void 0:S.blur()},clear:()=>{var S;return(S=s.value)==null?void 0:S.clear()},select:()=>{var S;return(S=s.value)==null?void 0:S.select()}}),(S,T)=>(r.openBlock(),r.createElementBlock("div",null,[t.money?(r.openBlock(),r.createBlock(yo,r.mergeProps({key:0,ref:"baseInput"},{...S.$attrs,...l},{modelValue:h.value,"onUpdate:modelValue":T[0]||(T[0]=I=>h.value=I),"floating-label":t.floatingLabel||t.mobile,"support-link":t.supportLink||t.linkText,"support-link-url":t.supportLinkUrl||t.linkUrl,onClick:r.unref(f),onChange:C,onFocus:k,onBlur:r.unref(y),onKeydown:r.unref(w)}),null,16,["modelValue","floating-label","support-link","support-link-url","onClick","onBlur","onKeydown"])):t.mask?r.withDirectives((r.openBlock(),r.createBlock(yo,r.mergeProps({key:1,ref:"baseInput"},{...S.$attrs,...l},{modelValue:h.value,"onUpdate:modelValue":T[1]||(T[1]=I=>h.value=I),type:"tel","floating-label":t.floatingLabel||t.mobile,"support-link":t.supportLink||t.linkText,"support-link-url":t.supportLinkUrl||t.linkUrl,onClick:r.unref(f),onChange:C,onFocus:k,onBlur:r.unref(y),onKeydown:r.unref(w)}),null,16,["modelValue","floating-label","support-link","support-link-url","onClick","onBlur","onKeydown"])),[[r.unref(i),t.mask]]):(r.openBlock(),r.createBlock(yo,r.mergeProps({key:2,ref:"baseInput"},{...S.$attrs,...l},{modelValue:h.value,"onUpdate:modelValue":T[2]||(T[2]=I=>h.value=I),"floating-label":t.floatingLabel||t.mobile,"support-link":t.supportLink||t.linkText,"support-link-url":t.supportLinkUrl||t.linkUrl,type:"number",onClick:r.unref(f),onChange:C,onFocus:k,onBlur:r.unref(y),onKeydown:r.unref(w)}),null,16,["modelValue","floating-label","support-link","support-link-url","onClick","onBlur","onKeydown"]))]))}},ZK={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 JK(t,e,n,i,s,a){return r.openBlock(),r.createElementBlock("div",XK,[r.createElementVNode("div",{class:r.normalizeClass(a.computedSpinnerClass)},null,2)])}const QK=ee(ZK,[["render",JK],["__scopeId","data-v-2022bd33"]]),eZ={},tZ={class:"page-container__container"};function nZ(t,e,n,i,s,a){return r.openBlock(),r.createElementBlock("div",tZ,[r.renderSlot(t.$slots,"default",{},void 0,!0)])}const J5=ee(eZ,[["render",nZ],["__scopeId","data-v-2f5908a0"]]),b0={directives:{cdstip:al,"on-click-outside":tr.directive},components:{CdsIcon:Ce,CdsAvatar:dl,CdsRichTooltip:s0,CdsPopover:cl},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:Fi,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")}}},Q5=()=>{r.useCssVars(t=>({"9ad66d74":t.avatarCursorResolver,"13f872b8":t.computedSearchButtonJustify}))},e_=b0.setup;b0.setup=e_?(t,e)=>(Q5(),e_(t,e)):Q5;const iZ={class:"side-bar__header"},rZ=["src"],sZ={class:"search-button__text-container"},aZ={key:0},oZ=["onMouseleave"],lZ=["onClick"],cZ=["id","onMouseover"],dZ={class:"side-bar__subitem-container"},uZ={class:"side-bar__subitems"},hZ=["href","target","onClick"],fZ={key:0,class:"side-bar__subitem-link"},pZ={key:1},mZ={class:"side-bar__subitems--collapsed"},gZ={class:"side-bar__tooltip-title"},yZ=["href","onClick"],bZ={key:0,class:"side-bar__subitem-link"},_Z={key:0},vZ={key:0},wZ={class:"dropdown-button__dropdown"},kZ=["onClick"],CZ={class:"dropdown__text"};function xZ(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",iZ,[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,rZ)])]),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",sZ,[r.createVNode(o,{height:"20",width:"20",name:"search-outline"}),s.showSearchButtonShortCut?(r.openBlock(),r.createElementBlock("span",aZ,"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,cZ)),[[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,lZ),s.collapsed?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(r.Transition,{key:0,name:"collapse"},{default:r.withCtx(()=>[r.withDirectives(r.createElementVNode("div",dZ,[r.createElementVNode("div",uZ,[(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:C=>a.handleClick(C,v)},[(v==null?void 0:v.type)==="external"?(r.openBlock(),r.createElementBlock("div",fZ,[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,hZ))),128))])],512),[[r.vShow,a.resolveItemCollapse(y)]])]),_:2},1024)),y.items&&s.collapsed?(r.openBlock(),r.createElementBlock("div",pZ,[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",mZ,[r.createElementVNode("p",gZ,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:C=>a.handleClick(C,v)},[(v==null?void 0:v.type)==="external"?(r.openBlock(),r.createElementBlock("div",bZ,[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,yZ))),128))])]),_:2},1032,["modelValue","onUpdate:modelValue","target-id"])])):r.createCommentVNode("",!0)],40,oZ))),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",_Z,[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",vZ,[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",wZ,[(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",CZ,r.toDisplayString(y.name),1)],8,kZ)]))),128))])),[[g,t.hide]])]),_:1},8,["modelValue"])])):r.createCommentVNode("",!0)],2)],2)}const t_=ee(b0,[["render",xZ]]),SZ={class:"secondary-navigation__container"},MZ={class:"secondary-navigation__content"},BZ={key:1},EZ=["onClick","onMouseover"],DZ={class:"secondary-navigation__content"},OZ={key:1},n_=ee({__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:C}=v.route;return k instanceof String?{path:k}:{name:C}},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 C;return k.key===v&&((C=k==null?void 0:k.subitems)==null?void 0:C.length)>0}),y=(v,k)=>{a.value=v,s.value=k,i("item-click",v)},w=v=>a.value===v;return(v,k)=>{const C=r.resolveComponent("router-link");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["secondary-navigation",`secondary-navigation--${l.value}`])},[r.createElementVNode("div",SZ,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.items,M=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:M.key},[g(M.key)?(r.openBlock(),r.createElementBlock("div",BZ,[r.createElementVNode("div",{class:r.normalizeClass(["secondary-navigation__item",m(M.key)?`secondary-navigation__item--active-${l.value}`:""]),onClick:V=>f(M),onMouseover:V=>d(M.key),onMouseleave:k[0]||(k[0]=V=>d(-1))},[r.createElementVNode("div",DZ,[r.createTextVNode(r.toDisplayString(M.label)+" ",1),M.key!==o.value?(r.openBlock(),r.createBlock(Ce,{key:0,class:"secondary-navigation__icon",name:"caret-down-outline",height:"16",width:"16"})):M.key===o.value?(r.openBlock(),r.createElementBlock("div",OZ,[r.createVNode(Ce,{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(M.subitems,V=>(r.openBlock(),r.createBlock(C,{key:V.key,to:h(V),class:r.normalizeClass(["secondary-navigation__subitem",{"secondary-navigation__subitem--active":w(V.key)}]),onClick:S=>y(V.key,M.key)},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(V.label),1)]),_:2},1032,["to","class","onClick"]))),128))],2)])):r.createCommentVNode("",!0)])],42,EZ)])):(r.openBlock(),r.createBlock(C,{key:0,class:r.normalizeClass(["secondary-navigation__item",m(M.key)?`secondary-navigation__item--active-${l.value}`:""]),to:h(M),onClick:V=>f(M)},{default:r.withCtx(()=>[r.createElementVNode("div",MZ,r.toDisplayString(M.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"]]),VZ={class:"page-layout"},TZ={class:"page-layout__content"},$Z=ee({__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",VZ,[r.createVNode(t_,{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",TZ,[((d=t.navigationItems)==null?void 0:d.length)>0?(r.openBlock(),r.createBlock(n_,{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(J5,{class:"page-layout__container"},{default:r.withCtx(()=>[r.renderSlot(o.$slots,"default",{},void 0,!0)]),_:3})])])}}},[["__scopeId","data-v-428d73ca"]]),IZ={components:{CdsLink:sc},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])}}},AZ={class:"page-header__title"},NZ={key:0,class:"d-flex"},zZ={class:"page-header__subtitle"},PZ={key:1,class:"page-header__subtitle"},LZ={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",AZ,r.toDisplayString(n.title),1),s.splitedSubtitle.length>0?(r.openBlock(),r.createElementBlock("div",NZ,[r.createElementVNode("span",zZ,[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",PZ,r.toDisplayString(n.subtitle),1))]),r.createElementVNode("div",LZ,[r.renderSlot(t.$slots,"aside")])],2)}const RZ=ee(IZ,[["render",FZ]]);class qn{constructor(e,n,i,s=null){this.index=e,this.value=n,this.selected=i,this.text=s||n}}const HZ={components:{CdsChevron:Ts},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?ff("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}}}},WZ=["onClick"],YZ={key:3};function jZ(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,WZ))),128))],2)}const UZ=ee(HZ,[["render",jZ],["__scopeId","data-v-c81c79f6"]]),qZ={components:{CdsBox:eu,CdsDivider:ll},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"}}},GZ={class:"panel-card__header"},KZ={class:"panel-card__title"},ZZ={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",GZ,[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",ZZ,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 JZ=ee(qZ,[["render",XZ],["__scopeId","data-v-e1c5a182"]]),QZ={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(""))}}},eX={class:"pin-input__container"},tX=["id","onUpdate:modelValue","type","onKeydown","onKeypress","onInput","onFocus"];function nX(t,e,n,i,s,a){return r.openBlock(),r.createElementBlock("div",eX,[(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,tX)),[[r.vModelDynamic,s.innerValue[o-1]]])),128))])}const iX=ee(QZ,[["render",nX],["__scopeId","data-v-4e202c49"]]),_0={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"}}},i_=()=>{r.useCssVars(t=>({bf5feb56:t.textDirection}))},r_=_0.setup;_0.setup=r_?(t,e)=>(i_(),r_(t,e)):i_;const rX={class:"progress-bar"},sX={class:"progress-bar__content"};function aX(t,e,n,i,s,a){return r.openBlock(),r.createElementBlock("div",rX,[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",sX,[r.createElementVNode("div",{class:r.normalizeClass(`progress-bar__indicator--${n.variant}`),style:r.normalizeStyle(a.progressIndicatorStyle)},null,6)])])}const oX=ee(_0,[["render",aX],["__scopeId","data-v-d3a3d8d6"]]),lX={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}},cX=["stroke-width"],dX=["stroke-dasharray","stroke-width"];function uX(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-width":a.stroke,d:`M18 2.0845
69
+ }`;var We=g6(function(){return dt(D,xe+"return "+re).apply(n,$)});if(We.source=re,Cp(We))throw We;return We}function hae(c){return ht(c).toLowerCase()}function fae(c){return ht(c).toUpperCase()}function pae(c,u,p){if(c=ht(c),c&&(p||u===n))return S_(c);if(!c||!(u=ci(u)))return c;var b=qi(c),x=qi(u),D=M_(b,x),$=B_(b,x)+1;return Bs(b,D,$).join("")}function mae(c,u,p){if(c=ht(c),c&&(p||u===n))return c.slice(0,D_(c)+1);if(!c||!(u=ci(u)))return c;var b=qi(c),x=B_(b,qi(u))+1;return Bs(b,0,x).join("")}function gae(c,u,p){if(c=ht(c),c&&(p||u===n))return c.replace(Vr,"");if(!c||!(u=ci(u)))return c;var b=qi(c),x=M_(b,qi(u));return Bs(b,x).join("")}function yae(c,u){var p=Y,b=ne;if(Ft(u)){var x="separator"in u?u.separator:x;p="length"in u?He(u.length):p,b="omission"in u?ci(u.omission):b}c=ht(c);var D=c.length;if(No(c)){var $=qi(c);D=$.length}if(p>=D)return c;var z=p-zo(b);if(z<1)return b;var R=$?Bs($,0,z).join(""):c.slice(0,z);if(x===n)return R+b;if($&&(z+=R.length-z),xp(x)){if(c.slice(z).search(x)){var X,J=R;for(x.global||(x=F0(x.source,ht(on.exec(x))+"g")),x.lastIndex=0;X=x.exec(J);)var re=X.index;R=R.slice(0,re===n?z:re)}}else if(c.indexOf(ci(x),z)!=z){var me=R.lastIndexOf(x);me>-1&&(R=R.slice(0,me))}return R+b}function bae(c){return c=ht(c),c&&ct.test(c)?c.replace(Se,qee):c}var _ae=Yo(function(c,u,p){return c+(p?" ":"")+u.toUpperCase()}),Bp=yv("toUpperCase");function m6(c,u,p){return c=ht(c),u=p?n:u,u===n?Hee(c)?Zee(c):$ee(c):c.match(u)||[]}var g6=je(function(c,u){try{return fn(c,n,u)}catch(p){return Cp(p)?p:new ze(p)}}),vae=Hr(function(c,u){return Bi(u,function(p){p=fr(p),Fr(c,p,wp(c[p],c))}),c});function wae(c){var u=c==null?0:c.length,p=De();return c=u?Nt(c,function(b){if(typeof b[1]!="function")throw new Ei(o);return[p(b[0]),b[1]]}):[],je(function(b){for(var x=-1;++x<u;){var D=c[x];if(fn(D[0],this,b))return fn(D[1],this,b)}})}function kae(c){return qte(Oi(c,m))}function Ep(c){return function(){return c}}function Cae(c,u){return c==null||c!==c?u:c}var xae=_v(),Sae=_v(!0);function Qn(c){return c}function Dp(c){return K_(typeof c=="function"?c:Oi(c,m))}function Mae(c){return X_(Oi(c,m))}function Bae(c,u){return J_(c,Oi(u,m))}var Eae=je(function(c,u){return function(p){return Nc(p,c,u)}}),Dae=je(function(c,u){return function(p){return Nc(c,p,u)}});function Op(c,u,p){var b=pn(u),x=ih(u,b);p==null&&!(Ft(u)&&(x.length||!b.length))&&(p=u,u=c,c=this,x=ih(u,pn(u)));var D=!(Ft(p)&&"chain"in p)||!!p.chain,$=Yr(c);return Bi(x,function(z){var R=u[z];c[z]=R,$&&(c.prototype[z]=function(){var X=this.__chain__;if(D||X){var J=c(this.__wrapped__),re=J.__actions__=Zn(this.__actions__);return re.push({func:R,args:arguments,thisArg:c}),J.__chain__=X,J}return R.apply(c,ws([this.value()],arguments))})}),c}function Oae(){return qe._===this&&(qe._=nte),this}function Vp(){}function Vae(c){return c=He(c),je(function(u){return Q_(u,c)})}var Tae=lp(Nt),$ae=lp(v_),Iae=lp($0);function y6(c){return mp(c)?I0(fr(c)):dne(c)}function Aae(c){return function(u){return c==null?n:_a(c,u)}}var Nae=wv(),zae=wv(!0);function Tp(){return[]}function $p(){return!1}function Pae(){return{}}function Lae(){return""}function Fae(){return!0}function Rae(c,u){if(c=He(c),c<1||c>te)return[];var p=ce,b=Dn(c,ce);u=De(u),c-=ce;for(var x=z0(b,u);++p<c;)u(p);return x}function Hae(c){return Le(c)?Nt(c,fr):di(c)?[c]:Zn(zv(ht(c)))}function Wae(c){var u=++ete;return ht(c)+u}var Yae=ch(function(c,u){return c+u},0),jae=cp("ceil"),Uae=ch(function(c,u){return c/u},1),qae=cp("floor");function Gae(c){return c&&c.length?nh(c,Qn,G0):n}function Kae(c,u){return c&&c.length?nh(c,De(u,2),G0):n}function Zae(c){return C_(c,Qn)}function Xae(c,u){return C_(c,De(u,2))}function Jae(c){return c&&c.length?nh(c,Qn,J0):n}function Qae(c,u){return c&&c.length?nh(c,De(u,2),J0):n}var eoe=ch(function(c,u){return c*u},1),toe=cp("round"),noe=ch(function(c,u){return c-u},0);function ioe(c){return c&&c.length?N0(c,Qn):0}function roe(c,u){return c&&c.length?N0(c,De(u,2)):0}return B.after=Mre,B.ary=Gv,B.assign=fse,B.assignIn=l6,B.assignInWith=kh,B.assignWith=pse,B.at=mse,B.before=Kv,B.bind=wp,B.bindAll=vae,B.bindKey=Zv,B.castArray=Pre,B.chain=jv,B.chunk=qne,B.compact=Gne,B.concat=Kne,B.cond=wae,B.conforms=kae,B.constant=Ep,B.countBy=ire,B.create=gse,B.curry=Xv,B.curryRight=Jv,B.debounce=Qv,B.defaults=yse,B.defaultsDeep=bse,B.defer=Bre,B.delay=Ere,B.difference=Zne,B.differenceBy=Xne,B.differenceWith=Jne,B.drop=Qne,B.dropRight=eie,B.dropRightWhile=tie,B.dropWhile=nie,B.fill=iie,B.filter=sre,B.flatMap=lre,B.flatMapDeep=cre,B.flatMapDepth=dre,B.flatten=Rv,B.flattenDeep=rie,B.flattenDepth=sie,B.flip=Dre,B.flow=xae,B.flowRight=Sae,B.fromPairs=aie,B.functions=Sse,B.functionsIn=Mse,B.groupBy=ure,B.initial=lie,B.intersection=cie,B.intersectionBy=die,B.intersectionWith=uie,B.invert=Ese,B.invertBy=Dse,B.invokeMap=fre,B.iteratee=Dp,B.keyBy=pre,B.keys=pn,B.keysIn=Jn,B.map=gh,B.mapKeys=Vse,B.mapValues=Tse,B.matches=Mae,B.matchesProperty=Bae,B.memoize=bh,B.merge=$se,B.mergeWith=c6,B.method=Eae,B.methodOf=Dae,B.mixin=Op,B.negate=_h,B.nthArg=Vae,B.omit=Ise,B.omitBy=Ase,B.once=Ore,B.orderBy=mre,B.over=Tae,B.overArgs=Vre,B.overEvery=$ae,B.overSome=Iae,B.partial=kp,B.partialRight=e6,B.partition=gre,B.pick=Nse,B.pickBy=d6,B.property=y6,B.propertyOf=Aae,B.pull=mie,B.pullAll=Wv,B.pullAllBy=gie,B.pullAllWith=yie,B.pullAt=bie,B.range=Nae,B.rangeRight=zae,B.rearg=Tre,B.reject=_re,B.remove=_ie,B.rest=$re,B.reverse=_p,B.sampleSize=wre,B.set=Pse,B.setWith=Lse,B.shuffle=kre,B.slice=vie,B.sortBy=Sre,B.sortedUniq=Bie,B.sortedUniqBy=Eie,B.split=lae,B.spread=Ire,B.tail=Die,B.take=Oie,B.takeRight=Vie,B.takeRightWhile=Tie,B.takeWhile=$ie,B.tap=Gie,B.throttle=Are,B.thru=mh,B.toArray=s6,B.toPairs=u6,B.toPairsIn=h6,B.toPath=Hae,B.toPlainObject=o6,B.transform=Fse,B.unary=Nre,B.union=Iie,B.unionBy=Aie,B.unionWith=Nie,B.uniq=zie,B.uniqBy=Pie,B.uniqWith=Lie,B.unset=Rse,B.unzip=vp,B.unzipWith=Yv,B.update=Hse,B.updateWith=Wse,B.values=qo,B.valuesIn=Yse,B.without=Fie,B.words=m6,B.wrap=zre,B.xor=Rie,B.xorBy=Hie,B.xorWith=Wie,B.zip=Yie,B.zipObject=jie,B.zipObjectDeep=Uie,B.zipWith=qie,B.entries=u6,B.entriesIn=h6,B.extend=l6,B.extendWith=kh,Op(B,B),B.add=Yae,B.attempt=g6,B.camelCase=Gse,B.capitalize=f6,B.ceil=jae,B.clamp=jse,B.clone=Lre,B.cloneDeep=Rre,B.cloneDeepWith=Hre,B.cloneWith=Fre,B.conformsTo=Wre,B.deburr=p6,B.defaultTo=Cae,B.divide=Uae,B.endsWith=Kse,B.eq=Ki,B.escape=Zse,B.escapeRegExp=Xse,B.every=rre,B.find=are,B.findIndex=Lv,B.findKey=_se,B.findLast=ore,B.findLastIndex=Fv,B.findLastKey=vse,B.floor=qae,B.forEach=Uv,B.forEachRight=qv,B.forIn=wse,B.forInRight=kse,B.forOwn=Cse,B.forOwnRight=xse,B.get=Sp,B.gt=Yre,B.gte=jre,B.has=Bse,B.hasIn=Mp,B.head=Hv,B.identity=Qn,B.includes=hre,B.indexOf=oie,B.inRange=Use,B.invoke=Ose,B.isArguments=ka,B.isArray=Le,B.isArrayBuffer=Ure,B.isArrayLike=Xn,B.isArrayLikeObject=Zt,B.isBoolean=qre,B.isBuffer=Es,B.isDate=Gre,B.isElement=Kre,B.isEmpty=Zre,B.isEqual=Xre,B.isEqualWith=Jre,B.isError=Cp,B.isFinite=Qre,B.isFunction=Yr,B.isInteger=t6,B.isLength=vh,B.isMap=n6,B.isMatch=ese,B.isMatchWith=tse,B.isNaN=nse,B.isNative=ise,B.isNil=sse,B.isNull=rse,B.isNumber=i6,B.isObject=Ft,B.isObjectLike=Yt,B.isPlainObject=Hc,B.isRegExp=xp,B.isSafeInteger=ase,B.isSet=r6,B.isString=wh,B.isSymbol=di,B.isTypedArray=Uo,B.isUndefined=ose,B.isWeakMap=lse,B.isWeakSet=cse,B.join=hie,B.kebabCase=Jse,B.last=Ti,B.lastIndexOf=fie,B.lowerCase=Qse,B.lowerFirst=eae,B.lt=dse,B.lte=use,B.max=Gae,B.maxBy=Kae,B.mean=Zae,B.meanBy=Xae,B.min=Jae,B.minBy=Qae,B.stubArray=Tp,B.stubFalse=$p,B.stubObject=Pae,B.stubString=Lae,B.stubTrue=Fae,B.multiply=eoe,B.nth=pie,B.noConflict=Oae,B.noop=Vp,B.now=yh,B.pad=tae,B.padEnd=nae,B.padStart=iae,B.parseInt=rae,B.random=qse,B.reduce=yre,B.reduceRight=bre,B.repeat=sae,B.replace=aae,B.result=zse,B.round=toe,B.runInContext=F,B.sample=vre,B.size=Cre,B.snakeCase=oae,B.some=xre,B.sortedIndex=wie,B.sortedIndexBy=kie,B.sortedIndexOf=Cie,B.sortedLastIndex=xie,B.sortedLastIndexBy=Sie,B.sortedLastIndexOf=Mie,B.startCase=cae,B.startsWith=dae,B.subtract=noe,B.sum=ioe,B.sumBy=roe,B.template=uae,B.times=Rae,B.toFinite=jr,B.toInteger=He,B.toLength=a6,B.toLower=hae,B.toNumber=$i,B.toSafeInteger=hse,B.toString=ht,B.toUpper=fae,B.trim=pae,B.trimEnd=mae,B.trimStart=gae,B.truncate=yae,B.unescape=bae,B.uniqueId=Wae,B.upperCase=_ae,B.upperFirst=Bp,B.each=Uv,B.eachRight=qv,B.first=Hv,Op(B,function(){var c={};return ur(B,function(u,p){bt.call(B.prototype,p)||(c[p]=u)}),c}(),{chain:!1}),B.VERSION=i,Bi(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){B[c].placeholder=B}),Bi(["drop","take"],function(c,u){Je.prototype[c]=function(p){p=p===n?1:cn(He(p),0);var b=this.__filtered__&&!u?new Je(this):this.clone();return b.__filtered__?b.__takeCount__=Dn(p,b.__takeCount__):b.__views__.push({size:Dn(p,ce),type:c+(b.__dir__<0?"Right":"")}),b},Je.prototype[c+"Right"]=function(p){return this.reverse()[c](p).reverse()}}),Bi(["filter","map","takeWhile"],function(c,u){var p=u+1,b=p==ye||p==ue;Je.prototype[c]=function(x){var D=this.clone();return D.__iteratees__.push({iteratee:De(x,3),type:p}),D.__filtered__=D.__filtered__||b,D}}),Bi(["head","last"],function(c,u){var p="take"+(u?"Right":"");Je.prototype[c]=function(){return this[p](1).value()[0]}}),Bi(["initial","tail"],function(c,u){var p="drop"+(u?"":"Right");Je.prototype[c]=function(){return this.__filtered__?new Je(this):this[p](1)}}),Je.prototype.compact=function(){return this.filter(Qn)},Je.prototype.find=function(c){return this.filter(c).head()},Je.prototype.findLast=function(c){return this.reverse().find(c)},Je.prototype.invokeMap=je(function(c,u){return typeof c=="function"?new Je(this):this.map(function(p){return Nc(p,c,u)})}),Je.prototype.reject=function(c){return this.filter(_h(De(c)))},Je.prototype.slice=function(c,u){c=He(c);var p=this;return p.__filtered__&&(c>0||u<0)?new Je(p):(c<0?p=p.takeRight(-c):c&&(p=p.drop(c)),u!==n&&(u=He(u),p=u<0?p.dropRight(-u):p.take(u-c)),p)},Je.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},Je.prototype.toArray=function(){return this.take(ce)},ur(Je.prototype,function(c,u){var p=/^(?:filter|find|map|reject)|While$/.test(u),b=/^(?:head|last)$/.test(u),x=B[b?"take"+(u=="last"?"Right":""):u],D=b||/^find/.test(u);x&&(B.prototype[u]=function(){var $=this.__wrapped__,z=b?[1]:arguments,R=$ instanceof Je,X=z[0],J=R||Le($),re=function(Ze){var tt=x.apply(B,ws([Ze],z));return b&&me?tt[0]:tt};J&&p&&typeof X=="function"&&X.length!=1&&(R=J=!1);var me=this.__chain__,xe=!!this.__actions__.length,Oe=D&&!me,We=R&&!xe;if(!D&&J){$=We?$:new Je(this);var Ve=c.apply($,z);return Ve.__actions__.push({func:mh,args:[re],thisArg:n}),new Di(Ve,me)}return Oe&&We?c.apply(this,z):(Ve=this.thru(re),Oe?b?Ve.value()[0]:Ve.value():Ve)})}),Bi(["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);B.prototype[c]=function(){var x=arguments;if(b&&!this.__chain__){var D=this.value();return u.apply(Le(D)?D:[],x)}return this[p](function($){return u.apply(Le($)?$:[],x)})}}),ur(Je.prototype,function(c,u){var p=B[u];if(p){var b=p.name+"";bt.call(Ro,b)||(Ro[b]=[]),Ro[b].push({name:u,func:p})}}),Ro[lh(n,C).name]=[{name:"wrapper",func:n}],Je.prototype.clone=bte,Je.prototype.reverse=_te,Je.prototype.value=vte,B.prototype.at=Kie,B.prototype.chain=Zie,B.prototype.commit=Xie,B.prototype.next=Jie,B.prototype.plant=ere,B.prototype.reverse=tre,B.prototype.toJSON=B.prototype.valueOf=B.prototype.value=nre,B.prototype.first=B.prototype.head,Dc&&(B.prototype[Dc]=Qie),B},Po=Xee();At?((At.exports=Po)._=Po,it._=Po):qe._=Po}).call(dn)}(Ou,Ou.exports);var Un=Ou.exports;const ho=t=>/^(19|20)\d\d-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$/.test(t),n0={components:{VDatePicker:w5,CdsChevron:Ts,CdsIcon:Ce},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:ge.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:sr,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:ge.fromJSDate(t.start).toFormat("yyyy-MM-dd"),end:ge.fromJSDate(t.end).toFormat("yyyy-MM-dd")}:"");return}this.$emit("update:modelValue",t?ge.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:ge.fromFormat(this.modelValue.start,"yyyy-MM-dd"),end:ge.fromFormat(this.modelValue.end,"yyyy-MM-dd")}:{start:ge.now(),end:ge.now()};return}this.internalDate=ho(this.modelValue)?ge.fromFormat(this.modelValue,"yyyy-MM-dd"):ge.now()},resolveInputValue(t){return typeof t!="object"?t:!t.start&&!t.end||Un.isEmpty(t)?null:`${t.start} a ${t.end}`}}},k5=()=>{r.useCssVars(t=>({f4f202ae:t.resolveMobile,"303646c0":t.calendarTrailColor,"528f77da":t.calendarTextColor,"1cc9da1d":t.calendarDotColor}))},C5=n0.setup;n0.setup=C5?(t,e)=>(k5(),C5(t,e)):k5;const XY={class:"date-input__container"},JY={key:0},QY={key:1,class:"date-input__label"},ej={class:"label__content",for:"cds-text-input"},tj={key:0,class:"label__required-indicator"},nj=["value","disabled","placeholder","onClick"],ij={class:"date-input__icon"},rj={key:0,class:"date-input__error-message"};function sj(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",XY,[r.createElementVNode("span",null,[a.hasSlots?(r.openBlock(),r.createElementBlock("span",JY,[r.renderSlot(t.$slots,"label",{},void 0,!0)])):(r.openBlock(),r.createElementBlock("label",QY,[r.createElementVNode("div",ej,[r.createElementVNode("span",null,r.toDisplayString(n.label),1),n.required?(r.openBlock(),r.createElementBlock("span",tj," * ")):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,nj),r.createElementVNode("div",ij,[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",rj,r.toDisplayString(n.errorMessage),1)):r.createCommentVNode("",!0)])}const aj=ee(n0,[["render",sj],["__scopeId","data-v-4ae75e00"]]),oj=["teal","green","blue","indigo","violet","pink","red","orange","amber"],lj=["warning","error","info"],cj={directives:{"on-click-outside":tr.directive},components:{CdsIcon:Ce,CdsButton:ni},props:{variant:{type:String,default:"warning",validator:t=>lj.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=>oj.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)}}},dj={key:0,class:"cds-modal__backdrop"},uj={key:0,class:"cds-modal"},hj={class:"cds-modal__header-content"},fj={key:0,class:"cds-modal__header-title"},pj={key:1,class:"cds-modal__header-title"},mj={key:2,class:"cds-modal__header-title"},gj={class:"cds-modal__body"},yj={class:"cds-modal__body-title"},bj={class:"cds-modal__body-description"},_j={class:"cds-modal__footer"};function vj(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",dj,[s.innerValue?(r.openBlock(),r.createElementBlock("div",uj,[r.createElementVNode("header",{class:r.normalizeClass(`cds-modal__header--${n.variant}`)},[r.createElementVNode("div",hj,[n.variant==="warning"?(r.openBlock(),r.createElementBlock("div",fj,[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",pj,[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",mj,[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",gj,[r.createElementVNode("span",yj,r.toDisplayString(n.title),1),r.createElementVNode("span",bj,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 wj=ee(cj,[["render",vj],["__scopeId","data-v-cb60983c"]]),kj={components:{CdsChevron:Ts},directives:{"on-click-outside":tr.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}}},Cj=["id"],xj={class:"filter-pill__label"},Sj={class:"filter-pill__content"};function Mj(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",xj,r.toDisplayString(n.label)+": ",1),r.createElementVNode("span",Sj,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,Cj),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 Bj=ee(kj,[["render",Mj],["__scopeId","data-v-f6d65f66"]]),Ej={components:{CdsIcon:Ce,CdsChevron:Ts},directives:{"on-click-outside":tr.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])}}},Dj=["id"],Oj={class:"dropdown-button__text"},Vj=["onClick"],Tj={class:"dropdown__text"};function $j(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",Oj,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,Dj),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",Tj,r.toDisplayString(h.name),1)],8,Vj)]))),128))],4)),[[d,a.hide]]):r.createCommentVNode("",!0)])}const Ij=ee(Ej,[["render",$j],["__scopeId","data-v-14a071ad"]]),Aj={components:{Doughnut:i3},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:sr,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)}}},Nj={class:"responsive-container"};function zj(t,e,n,i,s,a){const o=r.resolveComponent("Doughnut");return r.openBlock(),r.createElementBlock("span",null,[r.createElementVNode("div",Nj,[r.createVNode(o,{ref:"doughnut-chart",data:s.localChartData,options:s.chartOptions,onClick:a.clickHandler},null,8,["data","options","onClick"])])])}const Pj=ee(Aj,[["render",zj],["__scopeId","data-v-d71f8f8f"]]),Lj=["teal","green","blue","indigo","violet","pink","red","orange","amber"],Fj={components:{CdsButton:ni},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=>Lj.includes(t)}}},Rj={class:"empty-state"},Hj=["src","alt"],Wj={class:"empty-state__title"},Yj={class:"empty-state__text"};function jj(t,e,n,i,s,a){const o=r.resolveComponent("cds-button");return r.openBlock(),r.createElementBlock("div",Rj,[r.renderSlot(t.$slots,"graphic-element",{},()=>[r.createElementVNode("img",{class:"empty-state__image",src:n.image,alt:n.imageDescription},null,8,Hj)],!0),r.createElementVNode("div",Wj,r.toDisplayString(n.title),1),r.createElementVNode("div",Yj,[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 Uj=ee(Fj,[["render",jj],["__scopeId","data-v-4769541f"]]),i0={components:{CdsIcon:Ce},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)}}},x5=()=>{r.useCssVars(t=>({"3c7a40a8":t.textAlignmentResolver}))},S5=i0.setup;i0.setup=S5?(t,e)=>(x5(),S5(t,e)):x5;const qj=["accept"],Gj={key:0,class:"file-input__container"},Kj={key:0},Zj={key:1},Xj={key:1,class:"file-input__container"},Jj={key:1},Qj={key:0,class:"file-input__alert-container"};function eU(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,qj),[[r.vShow,!1]]),s.file?(r.openBlock(),r.createElementBlock("div",Xj,[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",Jj," 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",Gj,[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",Zj," Solte aqui o seu arquivo ")):(r.openBlock(),r.createElementBlock("div",Kj,r.toDisplayString(n.textMessage),1))],2)]))],34)]),s.internalState==="invalid"?(r.openBlock(),r.createElementBlock("div",Qj,r.toDisplayString(a.computedAllowedMessage),1)):r.createCommentVNode("",!0)],64)}const M5=ee(i0,[["render",eU],["__scopeId","data-v-33f6f0ff"]]),qt=ee({__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"]]),tU={class:"file-viewer__image"},nU={key:0,class:"file-viewer__extension"},iU={class:"file-viewer__info"},rU={class:"file-viewer__label"},sU={class:"file-viewer__file-name"},aU={key:0,class:"file-viewer__backdrop"},oU={class:"file-viewer__visualizer-header"},lU={class:"file-viewer__visualizer-label"},cU={class:"file-viewer__visualizer-actions"},dU={key:0},uU={key:1,class:"file-viewer__visualizer-empty-state"},hU=ee({__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=>ru.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})/),C=Un.get(k,"1",null);if(C)return C.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",tU,[s.value?(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass(["file-viewer__icon",`file-viewer__icon--${t.variant}`])},[r.createVNode(Ce,{height:"32",width:"32",name:"image-outline"})],2)):(r.openBlock(),r.createElementBlock("div",nU,r.toDisplayString(l.value),1))]),r.createElementVNode("div",iU,[r.createElementVNode("div",rU,r.toDisplayString(d.value),1),r.createElementVNode("div",sU,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(C=>n("download-click",!0),["stop"]))}," Baixar arquivo ",2)])])],34),a.value?(r.openBlock(),r.createElementBlock("div",aU,[r.createElementVNode("div",oU,[r.createElementVNode("div",lU,r.toDisplayString(d.value),1),r.createElementVNode("div",cU,[r.createElementVNode("div",{class:"file-viewer__visualizer-download",onClick:k[1]||(k[1]=C=>n("download-click",!0))},[r.createVNode(Ce,{height:"24",width:"24",name:"download-cloud-outline"}),w.value?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("span",dU," Baixar arquivo "))]),r.createVNode(Ce,{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(nu,{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",uU,[r.createVNode(nu,{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 rc(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 fU={directives:{"on-click-outside":tr.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:Gr()}},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}--${Hh.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=rc(this.localValue[this.optionsField]),e=new RegExp(t,"i");this.localOptions=this.options.filter(n=>rc(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=ol(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=ol(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")}}},pU={ref:"cds-filter-select",class:"filter-select"},mU={class:"filter-select__label"},gU={for:"cds-filter-select"},yU=["id","onkeypress","placeholder","disabled","readonly"],bU={key:0,class:"option__container"},_U=["onMouseover"],vU={key:1,class:"option__container"};function wU(t,e,n,i,s,a){const o=r.resolveDirective("on-click-outside");return r.openBlock(),r.createElementBlock("div",pU,[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",mU,[r.createElementVNode("div",gU,[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,yU),[[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",bU,[(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,_U))),128))])):(r.openBlock(),r.createElementBlock("ul",vU,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 kU=ee(fU,[["render",wU],["__scopeId","data-v-fba155a5"]]),CU={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)}}},xU={id:"cds-link-button"};function SU(t,e,n,i,s,a){return r.openBlock(),r.createElementBlock("span",xU,[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 MU=ee(CU,[["render",SU],["__scopeId","data-v-17beab84"]]),BU={props:{variant:{type:String,default:"green"},targetId:{type:String,default:""},position:{type:String,default:"top-end"}}},EU={id:"cds-pulsar"};function DU(t,e,n,i,s,a){const o=r.resolveDirective("cds-floatify");return r.withDirectives((r.openBlock(),r.createElementBlock("div",EU,[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 B5=ee(BU,[["render",DU],["__scopeId","data-v-6f878a26"]]),OU={components:{CdsPulsar:B5,CdsIcon:Ce},directives:{"on-click-outside":tr.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}}},VU=["id"],TU=["id"],$U={key:0},IU={key:1},AU={key:0,class:"floating-assistant__content"},NU={key:0,class:"floating-assistant__footer"},zU=["href"],PU={key:1,class:"floating-assistant__subtitle"},LU={key:2};function FU(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",$U,[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",IU,[r.createElementVNode("span",{class:r.normalizeClass(`floating-assistant__title--${n.variant}`)},r.toDisplayString(n.title),3),s.isExpanded?(r.openBlock(),r.createElementBlock("div",AU,[r.renderSlot(t.$slots,"default",{},void 0,!0),n.url?(r.openBlock(),r.createElementBlock("span",NU,[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,zU),e[7]||(e[7]=r.createTextVNode(". "))])):r.createCommentVNode("",!0)])):(r.openBlock(),r.createElementBlock("span",PU," Clique para mais informações "))])),s.isExpanded?(r.openBlock(),r.createElementBlock("div",LU,[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,TU)),[[h,s.pulsarId,s.position]])],10,VU)}const RU=ee(OU,[["render",FU],["__scopeId","data-v-12f84ef7"]]),HU={class:"floating-action-button__container"},WU=["onClick"],YU={class:"floating-action-button__subitem-label"},jU={class:"floating-action-button__subitem"},UU=ee({__name:"FloatingActionButton",props:{variant:{type:String,default:"green"},icon:{type:String,default:"plus-outline"},actions:{type:Array,default:()=>[],validator:t=>t.length<=5},size:{type:String,default:"md"}},emits:["main-button-click","action-click"],setup(t,{emit:e}){r.useCssVars(y=>({"0a3aecd8":h.value,"005b6afb":l.value,"21ef27b0":f.value,"87db115e":d.value}));const n=t,i=e,s=r.ref(!1),a=r.ref(!1),o=r.ref(-1),l=r.computed(()=>{switch(n.size){case"sm":return"44px";case"md":return"56px";case"lg":return"68px";default:return"56px"}}),d=r.computed(()=>{switch(n.size){case"sm":return"4px";case"md":return"10px";case"lg":return"16px";default:return"10px"}}),h=r.computed(()=>{switch(n.size){case"sm":return"12px";case"md":return"16px";case"lg":return"20px";default:return"16px"}}),f=r.computed(()=>n.variant==="white"||n.variant==="gray"?"#3B4754":"#fff");r.watch(s,y=>{y||(a.value=!0,setTimeout(()=>{a.value=!1},500))});function m(){if(n.actions.length>0){o.value=s.value?-1:1,s.value=!s.value;return}i("main-button-click")}function g(y){s.value=!1,i("action-click",y)}return(y,w)=>(r.openBlock(),r.createElementBlock("div",HU,[s.value||a.value?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:0},r.renderList(t.actions,v=>(r.openBlock(),r.createElementBlock("div",{key:v,class:r.normalizeClass(["floating-action-button__subitem-container",{exiting:a.value}]),onClick:k=>g(v)},[r.createElementVNode("div",YU,r.toDisplayString(v==null?void 0:v.label),1),r.createElementVNode("div",jU,[r.createVNode(Ce,{name:v==null?void 0:v.icon,height:"32",width:"32"},null,8,["name"])])],10,WU))),128)):r.createCommentVNode("",!0),r.createElementVNode("div",{class:r.normalizeClass(["floating-action-button__main-button",`floating-action-button__main-button--${t.variant}`]),onClick:m},[r.createVNode(r.Transition,{name:"icon-transition",mode:"out-in"},{default:r.withCtx(()=>[s.value?(r.openBlock(),r.createBlock(Ce,{key:"close-icon",name:"x-outline",height:"20",width:"20",style:r.normalizeStyle({"--rotation-direction":o.value})},null,8,["style"])):(r.openBlock(),r.createBlock(Ce,{key:"main-icon",name:t.icon,height:"20",width:"20",style:r.normalizeStyle({"--rotation-direction":o.value})},null,8,["name","style"]))]),_:1})],2)]))}},[["__scopeId","data-v-3f44d904"]]),r0={directives:{"on-click-outside":tr.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:Gr()}},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=nl(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)})}}},E5=()=>{r.useCssVars(t=>({d472e712:t.popoverWidth}))},D5=r0.setup;r0.setup=D5?(t,e)=>(E5(),D5(t,e)):E5;const qU=["id"];function GU(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,qU)),[[o,a.hide]])}const s0=ee(r0,[["render",GU],["__scopeId","data-v-3debc962"]]),a0={components:{CdsRichTooltip:s0},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:Gr()}},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:Ks}},O5=()=>{r.useCssVars(t=>({eaad879e:t.chartProgressValue,cfd9d6d6:t.targetValue}))},V5=a0.setup;a0.setup=V5?(t,e)=>(O5(),V5(t,e)):O5;const KU={class:"responsive-container"},ZU=["id"],XU={transform:"scale(1.20) translate(-9.5 -12)"},JU={x:"50%",y:"50%","dominant-baseline":"middle","text-anchor":"middle",class:"value"},QU={x:"50%",y:"62%","dominant-baseline":"middle","text-anchor":"middle",class:"subtitle"};function eq(t,e,n,i,s,a){const o=r.resolveComponent("cds-rich-tooltip");return r.openBlock(),r.createElementBlock("span",null,[r.createElementVNode("div",KU,[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",XU,[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",JU,r.toDisplayString(a.formatedValue),1),r.createElementVNode("text",QU,r.toDisplayString(n.subtitle),1)],42,ZU))],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 tq=ee(a0,[["render",eq],["__scopeId","data-v-0c7cac1e"]]),nq=ee({__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"]]),iq={class:"grid-item"},rq=ee({__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",iq,[r.renderSlot(o.$slots,"default",{},void 0,!0)]))}},[["__scopeId","data-v-47eebbde"]]),o0={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}))}}},T5=()=>{r.useCssVars(t=>({"6b796b56":t.paddingResolver}))},$5=o0.setup;o0.setup=$5?(t,e)=>(T5(),$5(t,e)):T5;function sq(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 I5=ee(o0,[["render",sq],["__scopeId","data-v-3c7c0a20"]]),A5=["sm","md","lg"],aq={components:{CdsIcon:Ce,CdsTooltip:Qc},props:{size:{type:String,default:"md",validator:t=>A5.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:A5,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))}}},oq={id:"cds-icon-button"};function lq(t,e,n,i,s,a){const o=r.resolveComponent("cds-icon");return r.openBlock(),r.createElementBlock("span",oq,[(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 Vu=ee(aq,[["render",lq],["__scopeId","data-v-ad879e60"]]);var Tu={exports:{}};Tu.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]",C="[object Null]",M="[object Object]",V="[object Promise]",S="[object Proxy]",T="[object RegExp]",I="[object Set]",L="[object String]",A="[object Symbol]",H="[object Undefined]",Y="[object WeakMap]",ne="[object ArrayBuffer]",q="[object DataView]",ie="[object Float32Array]",ye="[object Float64Array]",Q="[object Int8Array]",ue="[object Int16Array]",he="[object Int32Array]",te="[object Uint8Array]",be="[object Uint8ClampedArray]",P="[object Uint16Array]",ce="[object Uint32Array]",le=/[\\^$.*+?()[\]{}|]/g,Te=/^\[object .+?Constructor\]$/,Ee=/^(?:0|[1-9]\d*)$/,_e={};_e[ie]=_e[ye]=_e[Q]=_e[ue]=_e[he]=_e[te]=_e[be]=_e[P]=_e[ce]=!0,_e[l]=_e[d]=_e[ne]=_e[f]=_e[q]=_e[m]=_e[g]=_e[y]=_e[v]=_e[k]=_e[M]=_e[T]=_e[I]=_e[L]=_e[Y]=!1;var Ne=typeof dn=="object"&&dn&&dn.Object===Object&&dn,at=typeof self=="object"&&self&&self.Object===Object&&self,Re=Ne||at||Function("return this")(),oe=e&&!e.nodeType&&e,we=oe&&!0&&t&&!t.nodeType&&t,$e=we&&we.exports===oe,Ue=$e&&Ne.process,Ye=function(){try{return Ue&&Ue.binding&&Ue.binding("util")}catch{}}(),nt=Ye&&Ye.isTypedArray;function Wt(_,E){for(var N=-1,K=_==null?0:_.length,Ie=0,Me=[];++N<K;){var Qe=_[N];E(Qe,N,_)&&(Me[Ie++]=Qe)}return Me}function pt(_,E){for(var N=-1,K=E.length,Ie=_.length;++N<K;)_[Ie+N]=E[N];return _}function kt(_,E){for(var N=-1,K=_==null?0:_.length;++N<K;)if(E(_[N],N,_))return!0;return!1}function nn(_,E){for(var N=-1,K=Array(_);++N<_;)K[N]=E(N);return K}function rn(_){return function(E){return _(E)}}function vt(_,E){return _.has(E)}function ot(_,E){return _==null?void 0:_[E]}function It(_){var E=-1,N=Array(_.size);return _.forEach(function(K,Ie){N[++E]=[Ie,K]}),N}function Mt(_,E){return function(N){return _(E(N))}}function Vt(_){var E=-1,N=Array(_.size);return _.forEach(function(K){N[++E]=K}),N}var Bt=Array.prototype,hn=Function.prototype,Tt=Object.prototype,se=Re["__core-js_shared__"],Pe=hn.toString,Ge=Tt.hasOwnProperty,gn=function(){var _=/[^.]+$/.exec(se&&se.keys&&se.keys.IE_PROTO||"");return _?"Symbol(src)_1."+_:""}(),In=Tt.toString,Gn=RegExp("^"+Pe.call(Ge).replace(le,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),G=$e?Re.Buffer:void 0,fe=Re.Symbol,ke=Re.Uint8Array,j=Tt.propertyIsEnumerable,O=Bt.splice,U=fe?fe.toStringTag:void 0,ae=Object.getOwnPropertySymbols,Se=G?G.isBuffer:void 0,Ke=Mt(Object.keys,Object),ct=En(Re,"DataView"),Ct=En(Re,"Map"),sn=En(Re,"Promise"),Kt=En(Re,"Set"),Kn=En(Re,"WeakMap"),mt=En(Object,"create"),An=yn(ct),Mn=yn(Ct),ai=yn(sn),Yi=yn(Kt),Vr=yn(Kn),_o=fe?fe.prototype:void 0,aa=_o?_o.valueOf:void 0;function an(_){var E=-1,N=_==null?0:_.length;for(this.clear();++E<N;){var K=_[E];this.set(K[0],K[1])}}function lc(){this.__data__=mt?mt(null):{},this.size=0}function cc(_){var E=this.has(_)&&delete this.__data__[_];return this.size-=E?1:0,E}function dc(_){var E=this.__data__;if(mt){var N=E[_];return N===i?void 0:N}return Ge.call(E,_)?E[_]:void 0}function uc(_){var E=this.__data__;return mt?E[_]!==void 0:Ge.call(E,_)}function hc(_,E){var N=this.__data__;return this.size+=this.has(_)?0:1,N[_]=mt&&E===void 0?i:E,this}an.prototype.clear=lc,an.prototype.delete=cc,an.prototype.get=dc,an.prototype.has=uc,an.prototype.set=hc;function on(_){var E=-1,N=_==null?0:_.length;for(this.clear();++E<N;){var K=_[E];this.set(K[0],K[1])}}function fc(){this.__data__=[],this.size=0}function pc(_){var E=this.__data__,N=$r(E,_);if(N<0)return!1;var K=E.length-1;return N==K?E.pop():O.call(E,N,1),--this.size,!0}function mc(_){var E=this.__data__,N=$r(E,_);return N<0?void 0:E[N][1]}function gc(_){return $r(this.__data__,_)>-1}function yc(_,E){var N=this.__data__,K=$r(N,_);return K<0?(++this.size,N.push([_,E])):N[K][1]=E,this}on.prototype.clear=fc,on.prototype.delete=pc,on.prototype.get=mc,on.prototype.has=gc,on.prototype.set=yc;function Bn(_){var E=-1,N=_==null?0:_.length;for(this.clear();++E<N;){var K=_[E];this.set(K[0],K[1])}}function ps(){this.size=0,this.__data__={hash:new an,map:new(Ct||on),string:new an}}function bc(_){var E=Nn(this,_).delete(_);return this.size-=E?1:0,E}function ms(_){return Nn(this,_).get(_)}function _c(_){return Nn(this,_).has(_)}function vc(_,E){var N=Nn(this,_),K=N.size;return N.set(_,E),this.size+=N.size==K?0:1,this}Bn.prototype.clear=ps,Bn.prototype.delete=bc,Bn.prototype.get=ms,Bn.prototype.has=_c,Bn.prototype.set=vc;function gs(_){var E=-1,N=_==null?0:_.length;for(this.__data__=new Bn;++E<N;)this.add(_[E])}function oa(_){return this.__data__.set(_,i),this}function Tr(_){return this.__data__.has(_)}gs.prototype.add=gs.prototype.push=oa,gs.prototype.has=Tr;function oi(_){var E=this.__data__=new on(_);this.size=E.size}function la(){this.__data__=new on,this.size=0}function wc(_){var E=this.__data__,N=E.delete(_);return this.size=E.size,N}function kc(_){return this.__data__.get(_)}function Cc(_){return this.__data__.has(_)}function vo(_,E){var N=this.__data__;if(N instanceof on){var K=N.__data__;if(!Ct||K.length<n-1)return K.push([_,E]),this.size=++N.size,this;N=this.__data__=new Bn(K)}return N.set(_,E),this.size=N.size,this}oi.prototype.clear=la,oi.prototype.delete=wc,oi.prototype.get=kc,oi.prototype.has=Cc,oi.prototype.set=vo;function wo(_,E){var N=ys(_),K=!N&&da(_),Ie=!N&&!K&&bs(_),Me=!N&&!K&&!Ie&&Io(_),Qe=N||K||Ie||Me,et=Qe?nn(_.length,String):[],qe=et.length;for(var it in _)Ge.call(_,it)&&!(Qe&&(it=="length"||Ie&&(it=="offset"||it=="parent")||Me&&(it=="buffer"||it=="byteLength"||it=="byteOffset")||Bo(it,qe)))&&et.push(it);return et}function $r(_,E){for(var N=_.length;N--;)if(To(_[N][0],E))return N;return-1}function Ir(_,E,N){var K=E(_);return ys(_)?K:pt(K,N(_))}function Ar(_){return _==null?_===void 0?H:C:U&&U in Object(_)?Ci(_):Vo(_)}function ca(_){return Si(_)&&Ar(_)==l}function Nr(_,E,N,K,Ie){return _===E?!0:_==null||E==null||!Si(_)&&!Si(E)?_!==_&&E!==E:ko(_,E,N,K,Nr,Ie)}function ko(_,E,N,K,Ie,Me){var Qe=ys(_),et=ys(E),qe=Qe?d:xi(_),it=et?d:xi(E);qe=qe==l?M:qe,it=it==l?M:it;var At=qe==M,bn=it==M,Lt=qe==it;if(Lt&&bs(_)){if(!bs(E))return!1;Qe=!0,At=!1}if(Lt&&!At)return Me||(Me=new oi),Qe||Io(_)?zr(_,E,N,K,Ie,Me):Sc(_,E,qe,N,K,Ie,Me);if(!(N&s)){var yt=At&&Ge.call(_,"__wrapped__"),Qt=bn&&Ge.call(E,"__wrapped__");if(yt||Qt){var Ui=yt?_.value():_,Mi=Qt?E.value():E;return Me||(Me=new oi),Ie(Ui,Mi,N,K,Me)}}return Lt?(Me||(Me=new oi),So(_,E,N,K,Ie,Me)):!1}function xc(_){if(!$o(_)||Do(_))return!1;var E=_s(_)?Gn:Te;return E.test(yn(_))}function Co(_){return Si(_)&&ha(_.length)&&!!_e[Ar(_)]}function xo(_){if(!Oo(_))return Ke(_);var E=[];for(var N in Object(_))Ge.call(_,N)&&N!="constructor"&&E.push(N);return E}function zr(_,E,N,K,Ie,Me){var Qe=N&s,et=_.length,qe=E.length;if(et!=qe&&!(Qe&&qe>et))return!1;var it=Me.get(_);if(it&&Me.get(E))return it==E;var At=-1,bn=!0,Lt=N&a?new gs:void 0;for(Me.set(_,E),Me.set(E,_);++At<et;){var yt=_[At],Qt=E[At];if(K)var Ui=Qe?K(Qt,yt,At,E,_,Me):K(yt,Qt,At,_,E,Me);if(Ui!==void 0){if(Ui)continue;bn=!1;break}if(Lt){if(!kt(E,function(Mi,dr){if(!vt(Lt,dr)&&(yt===Mi||Ie(yt,Mi,N,K,Me)))return Lt.push(dr)})){bn=!1;break}}else if(!(yt===Qt||Ie(yt,Qt,N,K,Me))){bn=!1;break}}return Me.delete(_),Me.delete(E),bn}function Sc(_,E,N,K,Ie,Me,Qe){switch(N){case q:if(_.byteLength!=E.byteLength||_.byteOffset!=E.byteOffset)return!1;_=_.buffer,E=E.buffer;case ne:return!(_.byteLength!=E.byteLength||!Me(new ke(_),new ke(E)));case f:case m:case k:return To(+_,+E);case g:return _.name==E.name&&_.message==E.message;case T:case L:return _==E+"";case v:var et=It;case I:var qe=K&s;if(et||(et=Vt),_.size!=E.size&&!qe)return!1;var it=Qe.get(_);if(it)return it==E;K|=a,Qe.set(_,E);var At=zr(et(_),et(E),K,Ie,Me,Qe);return Qe.delete(_),At;case A:if(aa)return aa.call(_)==aa.call(E)}return!1}function So(_,E,N,K,Ie,Me){var Qe=N&s,et=ji(_),qe=et.length,it=ji(E),At=it.length;if(qe!=At&&!Qe)return!1;for(var bn=qe;bn--;){var Lt=et[bn];if(!(Qe?Lt in E:Ge.call(E,Lt)))return!1}var yt=Me.get(_);if(yt&&Me.get(E))return yt==E;var Qt=!0;Me.set(_,E),Me.set(E,_);for(var Ui=Qe;++bn<qe;){Lt=et[bn];var Mi=_[Lt],dr=E[Lt];if(K)var Bc=Qe?K(dr,Mi,Lt,E,_,Me):K(Mi,dr,Lt,_,E,Me);if(!(Bc===void 0?Mi===dr||Ie(Mi,dr,N,K,Me):Bc)){Qt=!1;break}Ui||(Ui=Lt=="constructor")}if(Qt&&!Ui){var pa=_.constructor,fn=E.constructor;pa!=fn&&"constructor"in _&&"constructor"in E&&!(typeof pa=="function"&&pa instanceof pa&&typeof fn=="function"&&fn instanceof fn)&&(Qt=!1)}return Me.delete(_),Me.delete(E),Qt}function ji(_){return Ir(_,fa,Mo)}function Nn(_,E){var N=_.__data__;return Eo(E)?N[typeof E=="string"?"string":"hash"]:N.map}function En(_,E){var N=ot(_,E);return xc(N)?N:void 0}function Ci(_){var E=Ge.call(_,U),N=_[U];try{_[U]=void 0;var K=!0}catch{}var Ie=In.call(_);return K&&(E?_[U]=N:delete _[U]),Ie}var Mo=ae?function(_){return _==null?[]:(_=Object(_),Wt(ae(_),function(E){return j.call(_,E)}))}:gt,xi=Ar;(ct&&xi(new ct(new ArrayBuffer(1)))!=q||Ct&&xi(new Ct)!=v||sn&&xi(sn.resolve())!=V||Kt&&xi(new Kt)!=I||Kn&&xi(new Kn)!=Y)&&(xi=function(_){var E=Ar(_),N=E==M?_.constructor:void 0,K=N?yn(N):"";if(K)switch(K){case An:return q;case Mn:return v;case ai:return V;case Yi:return I;case Vr:return Y}return E});function Bo(_,E){return E=E??o,!!E&&(typeof _=="number"||Ee.test(_))&&_>-1&&_%1==0&&_<E}function Eo(_){var E=typeof _;return E=="string"||E=="number"||E=="symbol"||E=="boolean"?_!=="__proto__":_===null}function Do(_){return!!gn&&gn in _}function Oo(_){var E=_&&_.constructor,N=typeof E=="function"&&E.prototype||Tt;return _===N}function Vo(_){return In.call(_)}function yn(_){if(_!=null){try{return Pe.call(_)}catch{}try{return _+""}catch{}}return""}function To(_,E){return _===E||_!==_&&E!==E}var da=ca(function(){return arguments}())?ca:function(_){return Si(_)&&Ge.call(_,"callee")&&!j.call(_,"callee")},ys=Array.isArray;function ua(_){return _!=null&&ha(_.length)&&!_s(_)}var bs=Se||ut;function Mc(_,E){return Nr(_,E)}function _s(_){if(!$o(_))return!1;var E=Ar(_);return E==y||E==w||E==h||E==S}function ha(_){return typeof _=="number"&&_>-1&&_%1==0&&_<=o}function $o(_){var E=typeof _;return _!=null&&(E=="object"||E=="function")}function Si(_){return _!=null&&typeof _=="object"}var Io=nt?rn(nt):Co;function fa(_){return ua(_)?wo(_):xo(_)}function gt(){return[]}function ut(){return!1}t.exports=Mc}(Tu,Tu.exports);var cq=Tu.exports;const fo=Zc(cq),dq={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=>Fi.includes(t)}},data(){return{internalActiveTab:this.activeTab,colorOptions:Fi}},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}`:""}}},uq={id:"inner-tabs"},hq={class:"inner-tabs__header-container"},fq={class:"inner-tabs__header"},pq=["onClick"],mq={class:"inner-tabs__content"};function gq(t,e,n,i,s,a){return r.openBlock(),r.createElementBlock("div",uq,[r.createElementVNode("div",hq,[r.createElementVNode("ul",fq,[(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,pq),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 yq=ee(dq,[["render",gq]]),bq={key:0,class:"landscape-overlay"},_q={class:"landscape-overlay__container"},vq=["src"],wq={class:"landscape-overlay__title"},kq={class:"landscape-overlay__subtitle"},Cq={key:0,class:"landscape-overlay__button"},xq=ee({__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=>Fi.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(()=>Zs("smartphone")||Zs("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",bq,[r.createElementVNode("div",_q,[r.createElementVNode("img",{class:"landscape-overlay__image",src:l.value},null,8,vq),r.createElementVNode("span",wq,r.toDisplayString(a.value),1),r.createElementVNode("span",kq,r.toDisplayString(o.value),1),f.block-f.interaction==="mobile"?(r.openBlock(),r.createElementBlock("div",Cq,[r.createVNode(ni,{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),l0={components:{VDatePicker:w5,CdsChevron:Ts,CdsIcon:Ce},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:ge.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:sr,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:ge.fromJSDate(t.start).toFormat("yyyy-MM-dd"),end:ge.fromJSDate(t.end).toFormat("yyyy-MM-dd")}:"");return}this.$emit("update:modelValue",t?ge.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:ge.fromFormat(this.modelValue.start,"yyyy-MM-dd"),end:ge.fromFormat(this.modelValue.end,"yyyy-MM-dd")}:{start:ge.now(),end:ge.now()};return}this.internalDate=po(this.modelValue)?ge.fromFormat(this.modelValue,"yyyy-MM-dd"):ge.now()},resolveInputValue(t){return typeof t!="object"?t:!t.start&&!t.end||Un.isEmpty(t)?null:`${t.start} a ${t.end}`}}},N5=()=>{r.useCssVars(t=>({"2a014cba":t.inlineCalendarTrailColor,"60dfc8d0":t.inlineCalendarTextColor,"311f6c80":t.inlineCalendarDotColor}))},z5=l0.setup;l0.setup=z5?(t,e)=>(N5(),z5(t,e)):N5;const Sq={key:0},Mq={key:1,class:"inline-date-input__label"},Bq={class:"label__content",for:"cds-text-input"},Eq=["value","disabled","placeholder","onClick"],Dq={class:"inline-date-input__icon"};function Oq(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",Sq,[r.renderSlot(t.$slots,"label",{},void 0,!0)])):(r.openBlock(),r.createElementBlock("label",Mq,[r.createElementVNode("div",Bq,[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,Eq),r.createElementVNode("div",Dq,[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 Vq=ee(l0,[["render",Oq],["__scopeId","data-v-fd91d96d"]]),Tq={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}}},$q=["href","target"];function Iq(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,$q)],2)}const sc=ee(Tq,[["render",Iq]]);function $u(t){const e=r.useSlots();return Object.keys(e).some(n=>n===t)}const Aq=["onClick"],Nq={key:1,class:"list__body"},zq={class:"list__content"},Pq={class:"list__actions"},Lq={key:1},Fq=ee({__name:"List",props:{items:{type:Array,required:!0,default:()=>[]},variant:{type:String,default:"blue",validator:t=>Fi.includes(t)}},emits:["on-item-click"],setup(t,{emit:e}){const{isMobile:n}=hf(),i=e;function s(a){n.value&&i("on-item-click",a)}return(a,o)=>(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.items,(l,d)=>(r.openBlock(),r.createElementBlock("div",{key:d,class:"list",onClick:h=>s(l)},[r.unref($u)("item")?r.renderSlot(a.$slots,"item",{key:0,item:l},void 0,!0):(r.openBlock(),r.createElementBlock("div",Nq,[r.createElementVNode("div",{class:r.normalizeClass(["list__title",`list__title--${t.variant}`])},r.toDisplayString(l.title),3),r.createElementVNode("div",zq,r.toDisplayString(l.content),1)])),r.createElementVNode("div",Pq,[r.unref(n)?(r.openBlock(),r.createBlock(Ce,{key:0,height:"24",width:"24",name:"caret-right-outline"})):(r.openBlock(),r.createElementBlock("div",Lq,[r.renderSlot(a.$slots,"actions",{},void 0,!0)]))])],8,Aq))),128))}},[["__scopeId","data-v-50b07005"]]),Rq={};function Hq(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 Wq=ee(Rq,[["render",Hq],["__scopeId","data-v-59f3ef96"]]),Yq=ee({__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(()=>Zs("smartphone")||Zs("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"]]),jq={class:"mobile-navbar"},Uq={class:"mobile-navbar__items"},qq={key:0,class:"mobile-navbar__item-text"},Gq=ee({__name:"MobileNavbar",props:{items:{type:Array,required:!0,validator:t=>t.length>0&&t.lenght<=5&&t.every(e=>e.route.path&&e.route.name)},variant:{type:String,default:"green"},showLabel:{type:Boolean,default:!1}},emits:["item-click"],setup(t,{emit:e}){const n=t,i=e,s=r.ref(n.items[0]),a=r.ref(0),o=r.computed(()=>({width:`${100/n.items.length}%`,transform:`translateX(${a.value*100}%)`})),l=r.computed(()=>{let f="";switch(a.value){case 0:f+="mobile-navbar__indicator--first ";break;case n.items.length-1:f+="mobile-navbar__indicator--last ";break;default:f+="mobile-navbar__indicator ";break}return f.concat(`mobile-navbar__indicator--${n.variant}`)});function d(f){return f.route.name?{name:f.route.name}:{path:f.route.path}}function h(f,m){s.value=f,a.value=m,i("item-click",f)}return(f,m)=>{const g=r.resolveComponent("router-link");return r.openBlock(),r.createElementBlock("div",jq,[r.createElementVNode("div",Uq,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.items,(y,w)=>(r.openBlock(),r.createBlock(g,{key:y,class:"mobile-navbar__item-link",to:d(y),onClick:v=>h(y,w)},{default:r.withCtx(()=>{var v,k;return[r.createElementVNode("div",{class:r.normalizeClass(["mobile-navbar__item",{"mobile-navbar__item--active":((v=s.value)==null?void 0:v.label)===y.label,[`mobile-navbar__item--active--${t.variant}`]:((k=s.value)==null?void 0:k.label)===y.label}])},[r.createVNode(Ce,{height:"20",width:"20",name:y.icon},null,8,["name"]),t.showLabel?(r.openBlock(),r.createElementBlock("div",qq,r.toDisplayString(y.label),1)):r.createCommentVNode("",!0)],2)]}),_:2},1032,["to","onClick"]))),128)),r.createElementVNode("div",{class:r.normalizeClass(l.value),style:r.normalizeStyle(o.value)},null,6)])])}}},[["__scopeId","data-v-c88587bc"]]),Kq={class:"mobile-navigation__header"},Zq={class:"mobile-navigation__title"},Xq={class:"mobile-navigation__sidebar-header"},Jq={class:"mobile-navigation__sidebar-logo"},Qq=["src"],eG={class:"mobile-navigation__sidebar-content"},tG={class:"mobile-navigation__sidebar-items"},nG={class:"mobile-navigation__sidebar-footer"},iG={class:"mobile-navigation__sidebar-user-text"},rG=ee({__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 C=Un.isEmpty(v)?k:v;return C instanceof String?{path:C}:C},y=v=>g(v)?g(v).path:null,w=v=>{document.body.style.overflow=v?"hidden":"auto"};return(v,k)=>{const C=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",Kq,[r.createElementVNode("div",Zq,r.toDisplayString(s.value.label??""),1),r.createElementVNode("div",{class:"mobile-navigation__menu-btn",onClick:d},[r.createVNode(Ce,{name:"menu-outline"})])]),r.createElementVNode("div",{class:r.normalizeClass(["mobile-navigation__sidebar",{"mobile-navigation__sidebar--expanded":a.value}])},[r.createElementVNode("div",Xq,[r.createElementVNode("div",Jq,[r.renderSlot(v.$slots,"sidebar-logo",{},()=>[r.createElementVNode("img",{src:t.sidebarLogo},null,8,Qq)],!0)]),r.createElementVNode("div",{class:"mobile-navigation__sidebar-btn",onClick:h},[r.createVNode(Ce,{name:"x-outline"})])]),r.createElementVNode("div",eG,[r.createElementVNode("div",tG,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.items,M=>(r.openBlock(),r.createBlock(C,{key:M.label,to:y(M),class:r.normalizeClass(["mobile-navigation__sidebar-item",{"mobile-navigation__sidebar-item--active":f(M)}]),onClick:V=>m(M)},{default:r.withCtx(()=>[r.createVNode(Ce,{name:M.icon,width:"24",height:"24"},null,8,["name"]),r.createElementVNode("span",null,r.toDisplayString(M.label),1)]),_:2},1032,["to","class","onClick"]))),128))]),r.createElementVNode("div",nG,[r.createElementVNode("div",{class:"mobile-navigation__sidebar-user-info",onClick:k[0]||(k[0]=M=>i("profile-click"))},[r.createVNode(dl,{src:t.user.picture??"",name:t.user.name??"",variant:t.variant,size:"lg"},null,8,["src","name","variant"]),r.createElementVNode("div",iG,[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]=M=>i("logout"))},[r.createVNode(Ce,{name:"logout-outline",width:"24",height:"24"})])])])],2)],2)],2)}}},[["__scopeId","data-v-0bc86eef"]]),sG=["teal","green","blue","indigo","violet","pink","red","orange","amber"],aG={directives:{"on-click-outside":tr.directive},components:{CdsIcon:Ce,CdsButton:ni,CdsScrollable:Jc},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=>sG.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")}}},oG={key:0,class:"cds-modal__backdrop"},lG={key:0},cG={class:"cds-modal__header"},dG={key:1,class:"cds-modal__body"},uG={key:1,class:"cds-modal__footer"};function hG(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",oG,[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",lG,[r.renderSlot(t.$slots,"header",{},()=>[r.createElementVNode("div",cG,[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",dG,[r.renderSlot(t.$slots,"default",{},void 0,!0)]))]),n.noFooter?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("footer",uG,[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 P5=ee(aG,[["render",hG],["__scopeId","data-v-f547a4b0"]]);function c0(t){return t===0?!1:Array.isArray(t)&&t.length===0?!0:!t}function fG(t){return(...e)=>!t(...e)}function pG(t,e){return t===void 0&&(t="undefined"),t===null&&(t="null"),t===!1&&(t="false"),t.toString().toLowerCase().indexOf(e.trim())!==-1}function L5(t,e,n,i){return e?t.filter(s=>pG(i(s,n),e)).sort((s,a)=>i(s,n).length-i(a,n).length):t}function mG(t){return t.filter(e=>!e.$isLabel)}function d0(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 gG(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=L5(o[n],t,e,s);return l.length?{[i]:o[i],[n]:l}:[]})}const F5=(...t)=>e=>t.reduce((n,i)=>i(n),e);var yG={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 c0(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):L5(n,e,this.label,this.customLabel):n=this.groupValues?d0(this.groupValues,this.groupLabel)(n):n,n=this.hideSelected?n.filter(fG(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 F5(gG(e,n,this.groupValues,this.groupLabel,this.customLabel),d0(this.groupValues,this.groupLabel))(t)},flatAndStrip(t){return F5(d0(this.groupValues,this.groupLabel),mG)(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(c0(t))return"";if(t.isTag)return t.label;if(t.$isLabel)return t.$groupLabel;const e=this.customLabel(t,this.label);return c0(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))}}},bG={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}}},R5={name:"vue-multiselect",mixins:[yG,bG],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 _G={ref:"tags",class:"multiselect__tags"},vG={class:"multiselect__tags-wrap"},wG={class:"multiselect__spinner"},kG={key:0},CG={class:"multiselect__option"},xG={class:"multiselect__option"},SG=r.createTextVNode("No elements found. Consider changing the search query."),MG={class:"multiselect__option"},BG=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",_G,[r.renderSlot(t.$slots,"selection",{search:t.search,remove:t.removeElement,values:a.visibleValues,isOpen:t.isOpen},()=>[r.withDirectives(r.createVNode("div",vG,[(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",wG,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",kG,[r.createVNode("span",CG,[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",xG,[r.renderSlot(t.$slots,"noResult",{search:t.search},()=>[SG])])],512),[[r.vShow,n.showNoResults&&t.filteredOptions.length===0&&t.search&&!n.loading]]),r.withDirectives(r.createVNode("li",null,[r.createVNode("span",MG,[r.renderSlot(t.$slots,"noOptions",{},()=>[BG])])],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"])}R5.render=EG;const mo=0,go=1,Iu=t=>t===void 0?{}:JSON.parse(JSON.stringify(t)),u0={components:{Multiselect:R5,CdsDivider:ll,CdsCheckbox:iu,CdsSpacer:Qd},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:Iu(this.options),groupValues:null,groupLabel:null,selectAllValue:!1,queryString:"",indeterminate:!1,sassColorVariables:Yn,uniqueKey:Gr()}},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=Iu(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=Iu(this.options.map(e=>({...e,isSelected:!1}))),this.groupValues=null,this.groupLabel=null;return}this.selectedValue.forEach(e=>{e.isSelected=!0});let t=Iu(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)}}},H5=()=>{r.useCssVars(t=>({c756d324:t.inputBackgroundColor,"1ad913b3":t.resolveMultiselectHeight,"4bf72a49":t.resolveMultiselectTop}))},W5=u0.setup;u0.setup=W5?(t,e)=>(H5(),W5(t,e)):H5;const DG=["data-cds-multiselect-identifier"],OG={key:0},VG=["for"],TG={key:0,class:"label__required-indicator"},$G={key:1,class:"cds-multiselect__grouped-divider"},IG={key:0,class:"cds-multiselect__group-label"},AG={key:1,class:"cds-multiselect__option"},NG={class:"option__checkbox"},zG=["id","onUpdate:modelValue","name"],PG=["id","for","onClick"],LG={key:0,class:"multiselect__single"},FG={key:1},RG={key:0,class:"clustered-multiselect__error-message"};function HG(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",OG,[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",TG," * ")):r.createCommentVNode("",!0)],8,VG)],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",IG,[r.createVNode(d,{text:f.$groupLabel,inline:"",dimmed:""},null,8,["text"])])):(r.openBlock(),r.createElementBlock("div",AG,[r.createElementVNode("div",NG,[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,zG),[[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,PG)]),r.createTextVNode(" "+r.toDisplayString(f[n.optionsField]),1)]))]),selection:r.withCtx(({values:f,isOpen:m})=>[f.length&&!m?(r.openBlock(),r.createElementBlock("span",LG,r.toDisplayString(a.selectedFancyMessage(f.length)),1)):(r.openBlock(),r.createElementBlock("span",FG))]),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",RG,r.toDisplayString(n.errorMessage),1)):r.createCommentVNode("",!0)],8,DG)}const WG=ee(u0,[["render",HG]]);function ia(t=null){return{emitBlur:()=>t("blur"),emitChange:()=>t("change"),emitClick:()=>t("click"),emitFocus:()=>t("focus"),emitKeydown:d=>t("keydown",d),emitMouseenter:()=>t("mouseenter"),emitMouseleave:()=>t("mouseleave")}}const ra={blur:null,change:null,click:null,focus:null,keydown:null,mouseenter:null,mouseleave:null};function h0(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){const e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}const YG=["text","textarea","email","password","tel","number","search","url"],Y5=t=>YG.includes(t),jG={},UG={class:"required-indicator"};function qG(t,e){return r.openBlock(),r.createElementBlock("strong",UG," * ")}const f0=ee(jG,[["render",qG],["__scopeId","data-v-42340e39"]]),GG={key:0,class:"base-mobile-input__leading-icon-container"},KG={class:"label__content"},ZG=["required","placeholder","disabled","type"],XG=["required","disabled","type"],JG={key:3,class:"base-mobile-input__spinner-container"},QG={key:4,class:"base-mobile-input__trailing-icon-container"},eK={key:0,class:"base-mobile-input__error-message"},tK={key:0,class:"base-mobile-input__supporting-text-container"},nK={key:0,class:"base-mobile-input__supporting-text-list"},iK={key:1,class:"base-mobile-input__supporting-text-list"},rK={key:1,class:"base-mobile-input__supporting-text"},sK={__name:"BaseMobileInput",props:r.mergeModels({label:{type:String,default:"Nome"},disabled:{type:Boolean,default:!1},state:{type:String,default:"default"},type:{type:String,default:"text",validator:Y5},required:{type:Boolean,default:!1},errorMessage:{type:String,default:"Valor inválido"},supportingText:{type:[String,Array],default:""},fluid:{type:Boolean,default:!1,required:!1},tooltip:{type:String,default:null},tooltipIcon:{type:String,default:"info-outline"},supportLink:{type:String,default:null},supportLinkUrl:{type:String,default:"https://cuida.framer.wiki/"},trailingIcon:{type:[String,null],default:null},leadingIcon:{type:[String,null],default:null},hasLeadingIcon:{type:Boolean,default:!1},hasTrailingIcon:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},{modelValue:{type:[String,Number]},modelModifiers:{}}),emits:r.mergeModels({...ra},["update:modelValue"]),setup(t,{expose:e,emit:n}){r.useCssVars(P=>({"856d6646":Q.value,"41ee7ea4":q.value,"74cff10a":ie.value,"0e5284bb":ne.value,"2e1d2d42":Y.value,"2f13cf8c":H.value,ca636092:L.value,"46f49589":A.value,"89c1bc2e":ye.value}));const i=r.useModel(t,"modelValue"),s=t,a=n,o=r.ref(""),l=r.ref(""),d=r.ref(!1),h=r.useAttrs(),{emitClick:f,emitFocus:m,emitBlur:g,emitKeydown:y,emitChange:w}=ia(a),v=r.useTemplateRef("htmlInput"),k=`cds-base-mobile-input-${s.type}-${h.id||h0()}`;o.value=i.value;const C=r.computed(()=>{let P=s.fluid?"base-mobile-input--fluid":"base-mobile-input";return d.value?s.disabled||(P+=s.state==="default"?" base-mobile-input--focused":` base-mobile-input--focused-${s.state}`):P+=s.disabled?" base-mobile-input--disabled":` base-mobile-input--${s.state}`,P}),M=r.computed(()=>{if(s.supportingText)return typeof s.supportingText=="string"?I.value?[s.supportingText]:s.supportingText:[...s.supportingText];const P=s.supportLink;return Array.isArray(P)&&!I.value&&P.length===1?P[0]:P}),V=r.computed(()=>s.state==="invalid"),S=r.computed(()=>s.state==="loading"),T=r.computed(()=>{const P=s.mobile?"mobile-field":"field";return s.fluid?`base-mobile-input__${P}--fluid`:`base-mobile-input__${P}`}),I=r.computed(()=>!!s.supportLink),L=r.computed(()=>s.type==="textarea"?"auto":"40px"),A=r.computed(()=>s.type==="textarea"?"120px":"auto"),H=r.computed(()=>s.type==="textarea"?"16px":"12px"),Y=r.computed(()=>s.hasTrailingIcon?"36px":"9px"),ne=r.computed(()=>d.value||o.value||o.value===0?"12px":"14.5px"),q=r.computed(()=>s.type==="textarea"?"auto":d.value||o.value||o.value===0?"25px":"14px"),ie=r.computed(()=>s.hasLeadingIcon?"36px":"12px"),ye=r.computed(()=>d.value||o.value||o.value===0?"#647382":"#3B4754"),Q=r.computed(()=>s.disabled?"not-allowed":S.value?"progress":s.readonly?"pointer":"text");r.watch(i,(P,ce)=>{P!==ce&&(o.value=P),(P===0||P==="0"||P===""||P===null||P===void 0)&&(o.value=s.money||h.money?"R$ 0,00":"")},{immediate:!0}),r.watch(o,P=>{s.lazy||(i.value=P)});function ue(){f(),v.value.focus()}function he(){d.value=!0,l.value=o.value,m()}function te(){d.value=!1,g(),l.value!==o.value&&(i.value=o.value,w()),l.value=o.value}function be(P){d.value=!0,y(P)}return e({componentRef:v,isFocused:d,focus:()=>{var P;return(P=v.value)==null?void 0:P.focus()},blur:()=>{var P;return(P=v.value)==null?void 0:P.blur()},clear:()=>{var P;return(P=v.value)==null?void 0:P.clear()},select:()=>{var P;return(P=v.value)==null?void 0:P.select()}}),(P,ce)=>(r.openBlock(),r.createBlock(qt,{direction:"column",gap:"1"},{default:r.withCtx(()=>[r.createElementVNode("div",{class:r.normalizeClass(C.value),onClick:r.withModifiers(ue,["stop"])},[t.hasLeadingIcon?(r.openBlock(),r.createElementBlock("div",GG,[r.renderSlot(P.$slots,"leading-icon",{},()=>[t.leadingIcon?(r.openBlock(),r.createBlock(Ce,{key:0,height:"22",width:"22",name:t.leadingIcon,class:"base-mobile-input__icon"},null,8,["name"])):r.createCommentVNode("",!0)],!0)])):r.createCommentVNode("",!0),r.createElementVNode("label",{class:r.normalizeClass({"base-mobile-input__label":!t.fluid,"base-mobile-input__label--fluid":t.fluid}),for:k,onClick:r.withModifiers(ue,["stop"])},[r.createElementVNode("span",KG,[r.createTextVNode(r.toDisplayString(t.label)+" ",1),t.required?(r.openBlock(),r.createBlock(f0,{key:0})):r.createCommentVNode("",!0)])],2),t.type==="textarea"?r.withDirectives((r.openBlock(),r.createElementBlock("textarea",{key:1,id:k,ref:"htmlInput","onUpdate:modelValue":ce[0]||(ce[0]=le=>o.value=le),required:t.required,placeholder:P.placeholder,disabled:t.disabled,class:r.normalizeClass(T.value),type:t.type,onFocus:he,onBlur:te,onKeydown:be},null,42,ZG)),[[r.vModelText,o.value]]):r.withDirectives((r.openBlock(),r.createElementBlock("input",r.mergeProps({key:2,id:k,ref:"htmlInput"},{...P.$attrs,...s},{"onUpdate:modelValue":ce[1]||(ce[1]=le=>o.value=le),placeholder:"",required:t.required,disabled:t.disabled,class:T.value,type:t.type,onFocus:he,onBlur:te,onKeydown:be}),null,16,XG)),[[r.vModelDynamic,o.value]]),S.value&&!t.disabled?(r.openBlock(),r.createElementBlock("div",JG,[r.createVNode(Ca,{size:"sm",variant:"blue",class:"base-mobile-input__icon--spinner-icon"})])):r.createCommentVNode("",!0),t.hasTrailingIcon?(r.openBlock(),r.createElementBlock("div",QG,[r.renderSlot(P.$slots,"trailing-icon",{},()=>[t.trailingIcon?(r.openBlock(),r.createBlock(Ce,{key:0,height:"22",width:"22",name:t.trailingIcon,class:"base-mobile-input__icon"},null,8,["name"])):r.createCommentVNode("",!0)],!0)])):r.createCommentVNode("",!0)],2),V.value&&!t.disabled?(r.openBlock(),r.createElementBlock("div",eK,r.toDisplayString(t.errorMessage),1)):r.createCommentVNode("",!0),M.value?(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[Array.isArray(M.value)?(r.openBlock(),r.createElementBlock("ul",tK,[I.value?(r.openBlock(),r.createElementBlock("li",nK,[r.createVNode(qt,{align:"baseline",gap:"1"},{default:r.withCtx(()=>[ce[2]||(ce[2]=r.createElementVNode("span",{class:"base-mobile-input__supporting-text"},"Link: ",-1)),r.createVNode(qt,{gap:"1",align:"baseline",tag:"span"},{default:r.withCtx(()=>[r.createVNode(sc,{text:t.supportLink,href:t.supportLinkUrl,class:"label__link","new-tab":""},null,8,["text","href"]),r.createVNode(Ce,{height:"13",width:"13",name:"open-in-new-tab-outline",class:"label__link-icon"})]),_:1})]),_:1})])):r.createCommentVNode("",!0),t.tooltip?(r.openBlock(),r.createElementBlock("li",iK,[r.createVNode(qt,{gap:"1",align:"center"},{default:r.withCtx(()=>[r.createVNode(Ce,{name:t.tooltipIcon,height:"16",width:"16"},null,8,["name"]),r.createTextVNode(" "+r.toDisplayString(t.tooltip),1)]),_:1})])):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(M.value,le=>(r.openBlock(),r.createElementBlock("li",{key:le,class:"base-mobile-input__supporting-text-list"},r.toDisplayString(le),1))),128))])):(r.openBlock(),r.createElementBlock("div",rK,[t.tooltip?(r.openBlock(),r.createBlock(qt,{key:0,gap:"1",align:"center"},{default:r.withCtx(()=>[r.createVNode(Ce,{name:t.tooltipIcon,height:"16",width:"16"},null,8,["name"]),r.createTextVNode(" "+r.toDisplayString(t.tooltip),1)]),_:1})):r.createCommentVNode("",!0),I.value?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(r.toDisplayString(M.value),1)],64)),t.supportLink?(r.openBlock(),r.createBlock(qt,{key:2,align:"baseline",gap:"1"},{default:r.withCtx(()=>[ce[3]||(ce[3]=r.createElementVNode("span",{class:"base-mobile-input__supporting-text"},"Link: ",-1)),r.createVNode(qt,{gap:"1",align:"baseline",tag:"span"},{default:r.withCtx(()=>[r.createVNode(sc,{class:"label__link",href:t.supportLinkUrl,text:t.supportLink,"new-tab":""},null,8,["href","text"]),r.createVNode(Ce,{height:"13",width:"13",name:"open-in-new-tab-outline",class:"label__link-icon"})]),_:1})]),_:1})):r.createCommentVNode("",!0)]))],64)):r.createCommentVNode("",!0)]),_:3}))}},aK=ee(sK,[["__scopeId","data-v-1af0304a"]]),oK={class:"label__content"},lK={key:0,class:"base-input__leading-icon-container"},cK=["required","placeholder","disabled","type"],dK=["required","placeholder","disabled","type"],uK={key:3,class:"base-input__spinner-container"},hK={key:4,class:"base-input__trailing-icon-container"},fK={key:2,class:"base-input__error-text"},pK={key:0,class:"base-input__supporting-text-container"},mK={key:1,class:"base-input__supporting-text"},gK={__name:"BaseInput",props:r.mergeModels({label:{type:String,default:"Label"},disabled:{type:Boolean,default:!1},state:{type:String,default:"default"},type:{type:String,default:"text",validator:Y5},required:{type:Boolean,default:!1},placeholder:{type:String,default:"Digite aqui..."},errorMessage:{type:String,default:"Valor inválido"},supportingText:{type:[String,Array],default:""},fluid:{type:Boolean,default:!1,required:!1},tooltip:{type:String,default:null},tooltipIcon:{type:String,default:"info-outline"},supportLink:{type:String,default:null},supportLinkUrl:{type:String,default:"https://cuida.framer.wiki/"},floatingLabel:{type:Boolean,default:!1},leadingIcon:{type:[String,null],default:null},trailingIcon:{type:[String,null],default:null},lazy:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},{modelValue:{type:[String,Number]},modelModifiers:{}}),emits:r.mergeModels({...ra},["update:modelValue"]),setup(t,{expose:e,emit:n}){r.useCssVars(te=>({"49a76bbc":Y.value,"1b6f1061":ie.value,"2e798c8d":I.value,"76d4b538":S.value,"595a9730":T.value}));const i=r.useModel(t,"modelValue"),s=t,a=n,o=r.useAttrs(),l=r.ref(),d=r.ref(""),h=r.ref(""),f=r.ref(!1),{emitClick:m,emitFocus:g,emitBlur:y,emitKeydown:w,emitChange:v}=ia(a),k=r.useTemplateRef("htmlInput"),C=r.useTemplateRef("mobileInput"),M=`cds-base-input-${s.type}-${o.id||h0()}`,V=r.computed(()=>{let te=s.fluid?"base-input--fluid":"base-input";return f.value?s.disabled||(te+=s.state==="default"?" base-input--focused":` base-input--focused-${s.state}`):te+=s.disabled?" base-input--disabled":` base-input--${s.state}`,te}),S=r.computed(()=>s.type==="textarea"?"auto":"40px"),T=r.computed(()=>s.type==="textarea"?"120px":"auto"),I=r.computed(()=>s.type==="textarea"?"8px":"14px"),L=r.computed(()=>s.state==="invalid"),A=r.computed(()=>s.state==="loading"),H=r.computed(()=>{const te="field";return s.fluid?`base-input__${te}--fluid`:`base-input__${te}`}),Y=r.computed(()=>s.disabled?"not-allowed":A.value?"progress":s.readonly?"pointer":"text"),ne=r.computed(()=>s.leadingIcon||$u("leading-icon")),q=r.computed(()=>s.trailingIcon||$u("trailing-icon")),ie=r.computed(()=>q.value?"36px":"9px");r.watch(i,(te,be)=>{te!==be&&(d.value=te)},{immediate:!0}),r.watch(d,te=>{s.lazy||(i.value=te)}),r.watch(()=>s.floatingLabel,()=>{var te;l.value=s.floatingLabel?(te=C==null?void 0:C.value)==null?void 0:te.componentRef:k.value}),r.onMounted(()=>{var te;l.value=s.floatingLabel?(te=C==null?void 0:C.value)==null?void 0:te.componentRef:k.value});function ye(){m()}function Q(){f.value=!0,h.value=d.value,g()}function ue(){f.value=!1,y(),h.value!==d.value&&(i.value=d.value,v()),h.value=d.value}function he(te){f.value=!0,w(te)}return e({componentRef:l,isFocused:f,focus:()=>{var te;return(te=l.value)==null?void 0:te.focus()},blur:()=>{var te;return(te=l.value)==null?void 0:te.blur()},clear:()=>{var te;return(te=l.value)==null?void 0:te.clear()},select:()=>{var te;return(te=l.value)==null?void 0:te.select()}}),(te,be)=>(r.openBlock(),r.createElementBlock("div",null,[t.floatingLabel?(r.openBlock(),r.createBlock(aK,r.mergeProps({key:0,ref:"mobileInput"},{...te.$attrs,...s},{modelValue:d.value,"onUpdate:modelValue":be[0]||(be[0]=P=>d.value=P),"has-leading-icon":ne.value,"has-trailing-icon":q.value,onClick:ye,onFocus:Q,onBlur:ue,onKeydown:he}),{"trailing-icon":r.withCtx(()=>[r.renderSlot(te.$slots,"trailing-icon",{},void 0,!0)]),"leading-icon":r.withCtx(()=>[r.renderSlot(te.$slots,"leading-icon",{},void 0,!0)]),_:3},16,["modelValue","has-leading-icon","has-trailing-icon"])):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.unref($u)("label")?r.renderSlot(te.$slots,"label",{key:0},void 0,!0):(r.openBlock(),r.createElementBlock("label",{key:1,class:r.normalizeClass({"base-input__label":!t.fluid,"base-input__label--fluid":t.fluid}),for:M},[r.createElementVNode("span",oK,[r.createTextVNode(r.toDisplayString(t.label)+" ",1),t.required?(r.openBlock(),r.createBlock(f0,{key:0})):r.createCommentVNode("",!0),t.tooltip?r.withDirectives((r.openBlock(),r.createBlock(Ce,{key:1,name:t.tooltipIcon,height:"18",width:"18",class:"label__icon"},null,8,["name"])),[[r.unref(al),t.tooltip]]):r.createCommentVNode("",!0)]),t.supportLink?(r.openBlock(),r.createBlock(sc,{key:0,href:t.supportLinkUrl,text:t.supportLink,class:"label__link","new-tab":""},null,8,["href","text"])):r.createCommentVNode("",!0)],2)),r.createElementVNode("div",{class:r.normalizeClass(V.value),onClick:ye},[ne.value?(r.openBlock(),r.createElementBlock("div",lK,[r.renderSlot(te.$slots,"leading-icon",{},()=>[t.leadingIcon?(r.openBlock(),r.createBlock(Ce,{key:0,height:"20",width:"20",name:t.leadingIcon,class:"base-input__icon"},null,8,["name"])):r.createCommentVNode("",!0)],!0)])):r.createCommentVNode("",!0),t.type==="textarea"?r.withDirectives((r.openBlock(),r.createElementBlock("textarea",{key:1,id:M,ref:"htmlInput","onUpdate:modelValue":be[1]||(be[1]=P=>d.value=P),required:t.required,placeholder:t.placeholder,disabled:t.disabled,class:r.normalizeClass(H.value),type:t.type,onFocus:Q,onBlur:ue,onKeydown:he},null,42,cK)),[[r.vModelText,d.value]]):r.withDirectives((r.openBlock(),r.createElementBlock("input",r.mergeProps({key:2,id:M,ref:"htmlInput"},{...te.$attrs,...s},{"onUpdate:modelValue":be[2]||(be[2]=P=>d.value=P),required:t.required,placeholder:t.placeholder,disabled:t.disabled,class:H.value,type:t.type,onFocus:Q,onBlur:ue,onKeydown:he}),null,16,dK)),[[r.vModelDynamic,d.value]]),A.value&&!t.disabled?(r.openBlock(),r.createElementBlock("div",uK,[r.createVNode(Ca,{size:"sm",variant:"blue",class:"base-input__icon--spinner-icon"})])):r.createCommentVNode("",!0),q.value?(r.openBlock(),r.createElementBlock("div",hK,[r.renderSlot(te.$slots,"trailing-icon",{},()=>[r.createVNode(Ce,{height:"20",width:"20",name:t.trailingIcon,class:"base-input__icon"},null,8,["name"])],!0)])):r.createCommentVNode("",!0)],2),L.value&&!t.disabled?(r.openBlock(),r.createElementBlock("div",fK,r.toDisplayString(t.errorMessage),1)):r.createCommentVNode("",!0),t.supportingText?(r.openBlock(),r.createElementBlock(r.Fragment,{key:3},[Array.isArray(t.supportingText)?(r.openBlock(),r.createElementBlock("ul",pK,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.supportingText,P=>(r.openBlock(),r.createElementBlock("li",{key:P,class:"base-input__supporting-text-list"},r.toDisplayString(P),1))),128))])):(r.openBlock(),r.createElementBlock("span",mK,r.toDisplayString(t.supportingText),1))],64)):r.createCommentVNode("",!0)],64))]))}},yo=ee(gK,[["__scopeId","data-v-faef2438"]]),yK={ref:"cds-select",class:"select"},bK={key:0,class:"option__container"},_K=["onMouseover"],vK={key:1,class:"option__container"},wK={__name:"Select",props:r.mergeModels({label:{type:String,default:"Label"},placeholder:{type:String,default:"Selecione...",required:!1},options:{type:Array,default:()=>[],required:!0},state:{type:String,default:"default"},required:{type:Boolean,default:!1,required:!1},errorMessage:{type:String,default:"Valor inválido"},searchable:{type:Boolean,default:!1,required:!1},width:{type:String,default:"",required:!1},fluid:{type:Boolean,default:!1,required:!1},disabled:{type:Boolean,default:!1,required:!1},tooltip:{type:String,default:null},tooltipIcon:{type:String,default:"info-outline"},optionsField:{type:String,default:"value",required:!1},returnValue:{type:Boolean,default:!1,required:!1},linkText:{type:String,default:null},linkUrl:{type:String,default:"https://cuida.framer.wiki/"},supportLink:{type:String,default:null},supportingText:{type:[String,Array],default:""},supportLinkUrl:{type:String,default:"https://cuida.framer.wiki/"},mobile:{type:Boolean,default:!1},floatingLabel:{type:Boolean,default:!1}},{modelValue:{type:[Array,Object]},modelModifiers:{}}),emits:r.mergeModels({...ra},["update:modelValue"]),setup(t,{expose:e,emit:n}){var at,Re;r.useCssVars(oe=>({"74e6602b":q.value,"8ab58bc8":H.value}));const i=r.useModel(t,"modelValue"),s=t,a=n,o=r.ref(0),l=r.ref(!1),d=r.ref(null),h=r.ref(!1),f=r.ref([]),m=r.ref([]),g=r.ref({value:"",id:""}),y=r.ref(""),w=r.ref("down"),v=r.ref(Gr()),k=r.useTemplateRef("baseInput"),C=r.useTemplateRef("cds-select"),M=r.useTemplateRef("select-options"),V=r.ref({}),{emitClick:S,emitChange:T,emitFocus:I,emitBlur:L,emitKeydown:A}=ia(a),H=r.computed(()=>s.mobile?"9px":"6px"),Y=r.computed(()=>{let oe="";const we=s.mobile?"select__mobile-input":"select__input";return oe+=` ${we}--${Hh.find($e=>$e===s.width)}`,oe+=s.fluid?` ${we}--fluid`:` ${we}--fit`,oe+=s.searchable?` ${we}--searchable`:"",oe}),ne=r.computed(()=>({"select__options--thin":s.width==="thin","select__options--default":s.width==="default","select__options--wide":s.width==="wide","select__options--fluid":s.fluid,"select__options--down":w.value==="down","select__options--up":w.value==="up"})),q=r.computed(()=>s.fluid?"100%":"fit-content"),ie=r.computed(()=>Hh.some(oe=>oe===s.width)||s.fluid);r.watch(()=>s.searchable,(oe,we)=>{oe!==we&&(h.value=oe)},{immediate:!0}),r.watch(()=>s.options,(oe,we)=>{oe!==we&&(f.value=oe,m.value=oe)},{immediate:!0}),r.watch(i,(oe,we)=>{oe!==we&&(oe instanceof Object?g.value=oe:g.value={id:oe,value:oe})},{immediate:!0}),r.watch(g,oe=>{f.value.filter($e=>JSON.stringify($e)===JSON.stringify(oe)).length!==0&&(s.returnValue?(i.value=oe[s.optionsField],T()):(i.value=oe,T()))},{deep:!0}),r.onMounted(()=>{d.value=`cds-select-${v.value}`,y.value=C.value});function ye(){const oe=rc(g.value[s.optionsField]),we=new RegExp(oe,"i");f.value=s.options.filter($e=>rc($e[s.optionsField]).search(we)>=0)}function Q(){s.disabled||(Ne(),r.nextTick().then(()=>{const oe=f.value[o.value];V.value[`${oe[s.optionsField]}-${o.value}`].classList.add("highlight")}),I())}function ue(){s.disabled||(l.value=!l.value,Ne(),typeof f.value[o.value]>"u"?f.value=m.value:g.value=ol(f.value[o.value]),k.value.blur())}function he(){let oe=y.value.getBoundingClientRect();oe.top+oe.height+286<window.innerHeight?w.value="down":w.value="up",!s.disabled&&(l.value=!l.value,S(),k.value.focus())}function te(){g.value=s.options.some(oe=>{var we,$e;return((we=oe[s.optionsField])==null?void 0:we.toLowerCase())===(($e=g.value[s.optionsField])==null?void 0:$e.toLowerCase())})?g.value:{},f.value=m.value,l.value=!1,L()}function be(){g.value=ol(f.value[o.value])}function P(oe){const we=f.value[oe];return V.value[`${we[s.optionsField]}-${oe}`]}function ce(oe,we,$e){const Ue=oe.getBoundingClientRect(),Ye=M.value,nt=Ye.getBoundingClientRect();$e==="up"&&Ue.top<=nt.top&&(Ye.scrollTop+=we),$e==="down"&&Ue.top>=nt.bottom&&(Ye.scrollTop+=we)}function le(){if(!l.value||o.value===f.value.length-1)return;o.value+=1;const oe=P(o.value),we=P(o.value-1);oe.classList.add("highlight"),we.classList.remove("highlight"),ce(oe,37,"down")}function Te(){if(!l.value||o.value===0)return;const oe=P(o.value),we=P(o.value-1);oe.classList.remove("highlight"),we.classList.add("highlight"),ce(oe,-37,"up"),o.value-=1}function Ee(oe){o.value=oe,P(o.value).classList.add("highlight")}function _e(){P(o.value).classList.remove("highlight")}function Ne(){f.value.forEach((oe,we)=>{const $e=f.value[we];V.value[`${$e[s.optionsField]}-${we}`].classList.remove("highlight")})}return e({componentRef:(at=k.value)==null?void 0:at.componentRef,isFocused:(Re=k.value)==null?void 0:Re.isFocused,focus:()=>{var oe;return(oe=k.value)==null?void 0:oe.focus()},blur:()=>{var oe;return(oe=k.value)==null?void 0:oe.blur()},clear:()=>{var oe;return(oe=k.value)==null?void 0:oe.clear()},select:()=>{var oe;return(oe=k.value)==null?void 0:oe.select()}}),(oe,we)=>(r.openBlock(),r.createElementBlock("div",yK,[r.createElementVNode("div",{class:r.normalizeClass(["select__container",t.fluid?"select__container--fluid":"select__container--fit"])},[r.createVNode(yo,r.mergeProps({id:oe.$attrs.id||d.value,ref:"baseInput"},{...oe.$attrs,...s},{modelValue:g.value[t.optionsField],"onUpdate:modelValue":we[0]||(we[0]=$e=>g.value[t.optionsField]=$e),type:"text",autocomplete:"off",onkeypress:`return ${h.value};`,placeholder:t.placeholder,disabled:t.disabled,readonly:!t.searchable,"support-link-url":t.supportLinkUrl||t.linkUrl,"support-link":t.supportLink||t.linkText,"floating-label":t.floatingLabel||t.mobile,class:Y.value,fluid:ie.value,onKeydown:[r.withKeys(r.withModifiers(ue,["prevent"]),["enter"]),r.withKeys(r.withModifiers(le,["prevent"]),["arrow-down"]),r.withKeys(r.withModifiers(Te,["prevent"]),["arrow-up"]),r.unref(A)],onClick:he,onInput:ye,onFocus:Q,onBlur:te}),{"trailing-icon":r.withCtx(()=>[r.createElementVNode("span",{class:r.normalizeClass(l.value?"select__chevron--opened":"select__chevron--closed")},null,2)]),_:1},16,["id","modelValue","onkeypress","placeholder","disabled","readonly","support-link-url","support-link","floating-label","class","fluid","onKeydown"]),r.withDirectives(r.createElementVNode("div",{ref:"select-options",class:r.normalizeClass(["select__options",ne.value])},[f.value.length>0?(r.openBlock(),r.createElementBlock("ul",bK,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(f.value,($e,Ue)=>(r.openBlock(),r.createElementBlock("li",{key:$e.id||$e,ref_for:!0,ref:Ye=>{V.value[`${$e[t.optionsField]}-${Ue}`]=Ye},class:"option__text",onMousedown:be,onMouseover:Ye=>Ee(Ue),onMouseout:we[1]||(we[1]=Ye=>_e())},r.toDisplayString($e[t.optionsField]),41,_K))),128))])):(r.openBlock(),r.createElementBlock("ul",vK,we[2]||(we[2]=[r.createElementVNode("li",{class:"option__text--muted"}," Nenhuma opção encontrada ",-1)])))],2),[[r.vShow,l.value]])],2)],512))}},j5=ee(wK,[["__scopeId","data-v-8cb28551"]]),kK={class:"multi-file-input"},CK={class:"multi-file-input__file-container"},xK={class:"multi-file-input__box"},SK={class:"multi-file-input__badges_section"},MK={class:"multi-file-input__badge-content"},BK={key:0,class:"multi-file-input__empty-state"},EK={key:1,class:"multi-file-input__list-container"},DK={class:"multi-file-input__list"},OK={class:"multi-file-input__actions"},VK={key:0,class:"multi-file-input__alert"},TK={class:"multi-file-input__footer"},$K=ee({__name:"MultiFileInput",props:{documents:{type:Array,required:!0},variant:{type:String,default:"green"},submitButtonText:{type:String,default:"Enviar"},buttonSecondary:{type:Boolean,default:!1}},emits:["submit"],setup(t,{emit:e}){const n=t,i=e,s=r.ref(0),a=r.ref({}),o=r.ref([]),l=r.ref(n.documents.map(C=>({id:h0(),value:C.name,required:C.required,active:!1,file:null}))),d=r.computed(()=>o.value.filter(C=>{var M;return(M=C.selectedLabel)==null?void 0:M.id}).map(C=>C.selectedLabel.id)),h=r.computed(()=>{const C={},M=[];return d.value.forEach(V=>{C[V]?C[V]+=1:C[V]=1}),Object.keys(C).forEach(V=>{C[V]>1&&M.push(V)}),M}),f=r.computed(()=>v()&&h.value.length==0&&k());r.watch(()=>o.value,()=>{l.value.forEach(C=>{C.active=d.value.includes(C.id)})},{deep:!0});function m(C){C.name&&(o.value.push({file:C,selectedLabel:null}),s.value+=1,a.value=null)}function g(C){const M=o.value.indexOf(C);M>-1&&o.value.splice(M,1)}function y(C){var M;return h.value.includes((M=C.selectedLabel)==null?void 0:M.id)}function w(){i("submit",o.value)}function v(){return o.value.every(C=>{var M;return(M=C.selectedLabel)==null?void 0:M.id})}function k(){return l.value.filter(C=>C.required).every(C=>C.active)}return(C,M)=>(r.openBlock(),r.createElementBlock("div",kK,[r.createElementVNode("div",CK,[(r.openBlock(),r.createBlock(M5,r.mergeProps({key:s.value,modelValue:a.value,"onUpdate:modelValue":M[0]||(M[0]=V=>a.value=V)},C.$attrs,{"onUpdate:modelValue":m}),null,16,["modelValue"]))]),r.createElementVNode("div",xK,[M[2]||(M[2]=r.createElementVNode("div",{class:"multi-file-input__description"}," Os arquivos marcados com o asterisco (*) são obrigatórios: ",-1)),r.createElementVNode("div",SK,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.value,V=>(r.openBlock(),r.createBlock(Tm,{key:V,variant:V.active?t.variant:"gray"},{default:r.withCtx(()=>[r.createElementVNode("div",MK,[V.active?(r.openBlock(),r.createBlock(Ce,{key:0,name:"check-outline",height:"16",width:"16"})):r.createCommentVNode("",!0),r.createElementVNode("div",null,r.toDisplayString(V.value)+" "+r.toDisplayString(V.required?"*":""),1)])]),_:2},1032,["variant"]))),128))]),o.value.length==0?(r.openBlock(),r.createElementBlock("div",BK," Os arquivos adicionados serão exibidos aqui ")):(r.openBlock(),r.createElementBlock("div",EK,[M[1]||(M[1]=r.createElementVNode("div",{class:"multi-file-input__list-title"}," Arquivos anexados ",-1)),r.createElementVNode("div",DK,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(o.value,V=>(r.openBlock(),r.createElementBlock("div",{key:V,class:"multi-file-input__list-item"},[r.createElementVNode("div",{class:r.normalizeClass(["multi-file-input__item",`multi-file-input__item--${t.variant}`])},[r.createTextVNode(r.toDisplayString(V.file.name)+" ",1),r.createElementVNode("div",null,[r.createElementVNode("div",OK,[r.createVNode(j5,{modelValue:V.selectedLabel,"onUpdate:modelValue":S=>V.selectedLabel=S,options:l.value,label:"",style:{display:"flex"}},null,8,["modelValue","onUpdate:modelValue","options"]),r.createVNode(Vu,{icon:"trash-outline",size:"lg",onClick:S=>g(V)},null,8,["onClick"])]),y(V)?(r.openBlock(),r.createElementBlock("div",VK," Arquivo duplicado. ")):r.createCommentVNode("",!0)])],2)]))),128))])])),r.createElementVNode("div",TK,[r.createVNode(ni,{secondary:t.buttonSecondary,variant:t.variant,disabled:!f.value,onButtonClick:w},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(t.submitButtonText),1)]),_:1},8,["secondary","variant","disabled"])])])]))}},[["__scopeId","data-v-c736096e"]]),IK={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=>Fi.includes(t)}},data(){return{internalActiveItem:this.activeItem,colorOptions:Fi}},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}`:""}}},AK={id:"nav-bar"};function NK(t,e,n,i,s,a){const o=r.resolveComponent("router-link");return r.openBlock(),r.createElementBlock("div",AK,[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 zK=ee(IK,[["render",NK]]),PK={mounted(t,e){const n=a=>{if(a==0)return"R$ 0,00";if(!a)return"";let o=String(a).replace(/\D/g,"");return o?(parseFloat(o)/100).toLocaleString("pt-BR",{style:"currency",currency:"BRL"}):"R$ 0,00"};let i=!1;const s=a=>{if(i)return;i=!0;let o=String(a.target.value||""),l=o.replace(/\D/g,""),d=parseFloat(l)/100;const h=n(o);a.target.value=h;const f=new Event("input",{bubbles:!0});Object.defineProperty(f,"target",{value:{value:d},writable:!1}),t.dispatchEvent(f),i=!1};t.addEventListener("input",s),t.value=n(e.value||""),t._inputHandler=s},updated(t,e){const n=i=>{if(!i)return"";let s=String(i).replace(/\D/g,"");return(parseFloat(s)/100).toLocaleString("pt-BR",{style:"currency",currency:"BRL"})};t.value=n(e.value||"")},unmounted(t){t._inputHandler&&t.removeEventListener("input",t._inputHandler)}},LK=t=>{let e=t.replace("R$","");return e=e.replaceAll(".",""),e=e.replace(/(.*),(\d{2})/g,"$1.$2"),+e},FK={"#":{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 p0(t){this.masked=this.unmasked=t||""}function U5(){return new CustomEvent("input",{bubbles:!0,cancelable:!0,detail:{facade:!0}})}function m0(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 q5(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(U5())}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=Z5(f,l);if(s&&typeof l.formatter=="function"){const g=l.formatter(m,s);if(typeof g=="string")m=Z5(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(U5())}}let g0=FK,G5=!1;try{"a".localeCompare("b","i")}catch(t){G5=t.name==="RangeError"}function HK(t){t&&(g0=t)}function WK(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=y0(t,i({mask:d})),f=l.unmasked.length;return h.unmasked.length>f?h:l};if(!n.length)return new p0;const a=n.shift();let o=y0(t,i({mask:a}));for(;n.length;){const l=n.shift();o=s(o,l)}return o}function y0(t,e){var n,i;let{mask:s="",tokens:a,prefill:o=!1,short:l=!1}=e;a=a?Object.assign({},g0,a):g0;let d=new p0,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 C=y(v);if(v&&!h&&!C.pipe){if(C.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="",C.repeat||(m+=C.optional?2:1);else if(C.optional||C.repeat){m+=2;continue}f++}else if(C.pipe){if(!k)break;const M=C.pipe.find(K5.bind(null,k));M&&(d.unmasked+=M,d.masked+=g+M,m+=C.pipe.length*2-1,g=""),f++}else K5(k,w)?(d.masked+=g+w,f++,g="",C.optional&&(d.unmasked+=w)):C.optional||(g+=w),h=!1,m+=C.optional?2:1}return(o&&!d.unmasked||!l&&d.unmasked)&&(d.masked+=g),d}function K5(t,e){return G5?(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 Z5(t,e){return t=(t||"").toString(),e=m0(e),e.mask?Array.isArray(e.mask)?WK(t,Object.assign({},e,{masks:e.mask})):y0(t,e):new p0(t)}const bo=sa,ac={beforeMount:(t,{value:e,modifiers:n},i)=>{t=Au(t);const s=m0(e,n);t[bo]={config:s},Nu(t,i,{force:s.prefill})},mounted:t=>{t=Au(t);const e=t[bo],n=t.parentElement||t,i=a=>{a.target===t&&q5(a,t)},s=a=>{a.target===t&&(a.type==="compositionend"?(t[bo].isComposing=!1,q5(a,t)):t[bo].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[bo].config=m0(e,i),Nu(t,s,{force:!0})):Nu(t,s)},unmounted:t=>{Au(t)[bo].cleanup()}},YK=(t,e)=>{const n=t.__vccOpts||t;for(const[i,s]of e)n[i]=s;return n},jK={name:"InputFacade",directives:{facade:ac},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)}}},UK=["value"];function qK(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,UK)),[[o,a.config]])}const X5=YK(jK,[["render",qK]]),GK={install(t,e={}){e.tokens&&HK(e.tokens),t.component(X5.name,X5),t.directive(e.name||"facade",ac)}};typeof window<"u"&&window.Vue&&window.Vue.use(GK);const KK={__name:"NumberInput",props:r.mergeModels({label:{type:String,default:"Valor"},disabled:{type:Boolean,default:!1},state:{type:String,default:"default"},required:{type:Boolean,default:!1},placeholder:{type:String,default:"Digite aqui a informação"},supportingText:{type:[String,Array],default:""},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/"},supportLink:{type:String,default:null},supportLinkUrl:{type:String,default:"https://cuida.framer.wiki/"},lazy:{type:Boolean,default:!1},mask:{type:[String,Array],default:null},mobile:{type:Boolean,default:!1},floatingLabel:{type:Boolean,default:!1}},{modelValue:{type:[Number,String]},modelModifiers:{},unmaskedValue:{type:[Number,String,null]},unmaskedValueModifiers:{}}),emits:r.mergeModels({...ra},["update:modelValue","update:unmaskedValue"]),setup(t,{expose:e,emit:n}){var M,V;const i=ac,s=r.useTemplateRef("baseInput"),a=r.useModel(t,"modelValue"),o=r.useModel(t,"unmaskedValue"),l=t,d=n,h=r.ref(""),{emitClick:f,emitChange:m,emitFocus:g,emitBlur:y,emitKeydown:w}=ia(d);let v={};r.watch(h,(S,T)=>{if(S!==T){let I=String(S);l.money?(o.value=LK(I),a.value=I):l.mask?(h.value=I,a.value=I,o.value=+I.replace(/\D/g,"")):I.length>15?h.value=+I.slice(0,15):(a.value=+I,o.value=+I)}}),r.onMounted(()=>{l.money&&s.value&&s.value.componentRef&&(v={value:a.value,oldValue:"",instance:s.value.componentRef,modifiers:{},arg:null},PK.mounted(s.value.componentRef,v))});function k(){l.money&&(h.value=h.value==0||h.value==""?"R$ 0,00":h.value),g()}function C(){a.value=h.value,m()}return e({componentRef:(M=s.value)==null?void 0:M.componentRef,isFocused:(V=s.value)==null?void 0:V.isFocused,focus:()=>{var S;return(S=s.value)==null?void 0:S.focus()},blur:()=>{var S;return(S=s.value)==null?void 0:S.blur()},clear:()=>{var S;return(S=s.value)==null?void 0:S.clear()},select:()=>{var S;return(S=s.value)==null?void 0:S.select()}}),(S,T)=>(r.openBlock(),r.createElementBlock("div",null,[t.money?(r.openBlock(),r.createBlock(yo,r.mergeProps({key:0,ref:"baseInput"},{...S.$attrs,...l},{modelValue:h.value,"onUpdate:modelValue":T[0]||(T[0]=I=>h.value=I),"floating-label":t.floatingLabel||t.mobile,"support-link":t.supportLink||t.linkText,"support-link-url":t.supportLinkUrl||t.linkUrl,onClick:r.unref(f),onChange:C,onFocus:k,onBlur:r.unref(y),onKeydown:r.unref(w)}),null,16,["modelValue","floating-label","support-link","support-link-url","onClick","onBlur","onKeydown"])):t.mask?r.withDirectives((r.openBlock(),r.createBlock(yo,r.mergeProps({key:1,ref:"baseInput"},{...S.$attrs,...l},{modelValue:h.value,"onUpdate:modelValue":T[1]||(T[1]=I=>h.value=I),type:"tel","floating-label":t.floatingLabel||t.mobile,"support-link":t.supportLink||t.linkText,"support-link-url":t.supportLinkUrl||t.linkUrl,onClick:r.unref(f),onChange:C,onFocus:k,onBlur:r.unref(y),onKeydown:r.unref(w)}),null,16,["modelValue","floating-label","support-link","support-link-url","onClick","onBlur","onKeydown"])),[[r.unref(i),t.mask]]):(r.openBlock(),r.createBlock(yo,r.mergeProps({key:2,ref:"baseInput"},{...S.$attrs,...l},{modelValue:h.value,"onUpdate:modelValue":T[2]||(T[2]=I=>h.value=I),"floating-label":t.floatingLabel||t.mobile,"support-link":t.supportLink||t.linkText,"support-link-url":t.supportLinkUrl||t.linkUrl,type:"number",onClick:r.unref(f),onChange:C,onFocus:k,onBlur:r.unref(y),onKeydown:r.unref(w)}),null,16,["modelValue","floating-label","support-link","support-link-url","onClick","onBlur","onKeydown"]))]))}},ZK={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 JK(t,e,n,i,s,a){return r.openBlock(),r.createElementBlock("div",XK,[r.createElementVNode("div",{class:r.normalizeClass(a.computedSpinnerClass)},null,2)])}const QK=ee(ZK,[["render",JK],["__scopeId","data-v-2022bd33"]]),eZ={},tZ={class:"page-container__container"};function nZ(t,e,n,i,s,a){return r.openBlock(),r.createElementBlock("div",tZ,[r.renderSlot(t.$slots,"default",{},void 0,!0)])}const J5=ee(eZ,[["render",nZ],["__scopeId","data-v-2f5908a0"]]),b0={directives:{cdstip:al,"on-click-outside":tr.directive},components:{CdsIcon:Ce,CdsAvatar:dl,CdsRichTooltip:s0,CdsPopover:cl},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:Fi,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")}}},Q5=()=>{r.useCssVars(t=>({"9ad66d74":t.avatarCursorResolver,"13f872b8":t.computedSearchButtonJustify}))},e_=b0.setup;b0.setup=e_?(t,e)=>(Q5(),e_(t,e)):Q5;const iZ={class:"side-bar__header"},rZ=["src"],sZ={class:"search-button__text-container"},aZ={key:0},oZ=["onMouseleave"],lZ=["onClick"],cZ=["id","onMouseover"],dZ={class:"side-bar__subitem-container"},uZ={class:"side-bar__subitems"},hZ=["href","target","onClick"],fZ={key:0,class:"side-bar__subitem-link"},pZ={key:1},mZ={class:"side-bar__subitems--collapsed"},gZ={class:"side-bar__tooltip-title"},yZ=["href","onClick"],bZ={key:0,class:"side-bar__subitem-link"},_Z={key:0},vZ={key:0},wZ={class:"dropdown-button__dropdown"},kZ=["onClick"],CZ={class:"dropdown__text"};function xZ(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",iZ,[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,rZ)])]),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",sZ,[r.createVNode(o,{height:"20",width:"20",name:"search-outline"}),s.showSearchButtonShortCut?(r.openBlock(),r.createElementBlock("span",aZ,"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,cZ)),[[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,lZ),s.collapsed?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(r.Transition,{key:0,name:"collapse"},{default:r.withCtx(()=>[r.withDirectives(r.createElementVNode("div",dZ,[r.createElementVNode("div",uZ,[(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:C=>a.handleClick(C,v)},[(v==null?void 0:v.type)==="external"?(r.openBlock(),r.createElementBlock("div",fZ,[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,hZ))),128))])],512),[[r.vShow,a.resolveItemCollapse(y)]])]),_:2},1024)),y.items&&s.collapsed?(r.openBlock(),r.createElementBlock("div",pZ,[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",mZ,[r.createElementVNode("p",gZ,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:C=>a.handleClick(C,v)},[(v==null?void 0:v.type)==="external"?(r.openBlock(),r.createElementBlock("div",bZ,[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,yZ))),128))])]),_:2},1032,["modelValue","onUpdate:modelValue","target-id"])])):r.createCommentVNode("",!0)],40,oZ))),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",_Z,[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",vZ,[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",wZ,[(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",CZ,r.toDisplayString(y.name),1)],8,kZ)]))),128))])),[[g,t.hide]])]),_:1},8,["modelValue"])])):r.createCommentVNode("",!0)],2)],2)}const t_=ee(b0,[["render",xZ]]),SZ={class:"secondary-navigation__container"},MZ={class:"secondary-navigation__content"},BZ={key:1},EZ=["onClick","onMouseover"],DZ={class:"secondary-navigation__content"},OZ={key:1},n_=ee({__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:C}=v.route;return k instanceof String?{path:k}:{name:C}},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 C;return k.key===v&&((C=k==null?void 0:k.subitems)==null?void 0:C.length)>0}),y=(v,k)=>{a.value=v,s.value=k,i("item-click",v)},w=v=>a.value===v;return(v,k)=>{const C=r.resolveComponent("router-link");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["secondary-navigation",`secondary-navigation--${l.value}`])},[r.createElementVNode("div",SZ,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.items,M=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:M.key},[g(M.key)?(r.openBlock(),r.createElementBlock("div",BZ,[r.createElementVNode("div",{class:r.normalizeClass(["secondary-navigation__item",m(M.key)?`secondary-navigation__item--active-${l.value}`:""]),onClick:V=>f(M),onMouseover:V=>d(M.key),onMouseleave:k[0]||(k[0]=V=>d(-1))},[r.createElementVNode("div",DZ,[r.createTextVNode(r.toDisplayString(M.label)+" ",1),M.key!==o.value?(r.openBlock(),r.createBlock(Ce,{key:0,class:"secondary-navigation__icon",name:"caret-down-outline",height:"16",width:"16"})):M.key===o.value?(r.openBlock(),r.createElementBlock("div",OZ,[r.createVNode(Ce,{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(M.subitems,V=>(r.openBlock(),r.createBlock(C,{key:V.key,to:h(V),class:r.normalizeClass(["secondary-navigation__subitem",{"secondary-navigation__subitem--active":w(V.key)}]),onClick:S=>y(V.key,M.key)},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(V.label),1)]),_:2},1032,["to","class","onClick"]))),128))],2)])):r.createCommentVNode("",!0)])],42,EZ)])):(r.openBlock(),r.createBlock(C,{key:0,class:r.normalizeClass(["secondary-navigation__item",m(M.key)?`secondary-navigation__item--active-${l.value}`:""]),to:h(M),onClick:V=>f(M)},{default:r.withCtx(()=>[r.createElementVNode("div",MZ,r.toDisplayString(M.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"]]),VZ={class:"page-layout"},TZ={class:"page-layout__content"},$Z=ee({__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",VZ,[r.createVNode(t_,{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",TZ,[((d=t.navigationItems)==null?void 0:d.length)>0?(r.openBlock(),r.createBlock(n_,{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(J5,{class:"page-layout__container"},{default:r.withCtx(()=>[r.renderSlot(o.$slots,"default",{},void 0,!0)]),_:3})])])}}},[["__scopeId","data-v-428d73ca"]]),IZ={components:{CdsLink:sc},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])}}},AZ={class:"page-header__title"},NZ={key:0,class:"d-flex"},zZ={class:"page-header__subtitle"},PZ={key:1,class:"page-header__subtitle"},LZ={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",AZ,r.toDisplayString(n.title),1),s.splitedSubtitle.length>0?(r.openBlock(),r.createElementBlock("div",NZ,[r.createElementVNode("span",zZ,[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",PZ,r.toDisplayString(n.subtitle),1))]),r.createElementVNode("div",LZ,[r.renderSlot(t.$slots,"aside")])],2)}const RZ=ee(IZ,[["render",FZ]]);class qn{constructor(e,n,i,s=null){this.index=e,this.value=n,this.selected=i,this.text=s||n}}const HZ={components:{CdsChevron:Ts},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?ff("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}}}},WZ=["onClick"],YZ={key:3};function jZ(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,WZ))),128))],2)}const UZ=ee(HZ,[["render",jZ],["__scopeId","data-v-c81c79f6"]]),qZ={components:{CdsBox:eu,CdsDivider:ll},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"}}},GZ={class:"panel-card__header"},KZ={class:"panel-card__title"},ZZ={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",GZ,[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",ZZ,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 JZ=ee(qZ,[["render",XZ],["__scopeId","data-v-e1c5a182"]]),QZ={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(""))}}},eX={class:"pin-input__container"},tX=["id","onUpdate:modelValue","type","onKeydown","onKeypress","onInput","onFocus"];function nX(t,e,n,i,s,a){return r.openBlock(),r.createElementBlock("div",eX,[(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,tX)),[[r.vModelDynamic,s.innerValue[o-1]]])),128))])}const iX=ee(QZ,[["render",nX],["__scopeId","data-v-4e202c49"]]),_0={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"}}},i_=()=>{r.useCssVars(t=>({bf5feb56:t.textDirection}))},r_=_0.setup;_0.setup=r_?(t,e)=>(i_(),r_(t,e)):i_;const rX={class:"progress-bar"},sX={class:"progress-bar__content"};function aX(t,e,n,i,s,a){return r.openBlock(),r.createElementBlock("div",rX,[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",sX,[r.createElementVNode("div",{class:r.normalizeClass(`progress-bar__indicator--${n.variant}`),style:r.normalizeStyle(a.progressIndicatorStyle)},null,6)])])}const oX=ee(_0,[["render",aX],["__scopeId","data-v-d3a3d8d6"]]),lX={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}},cX=["stroke-width"],dX=["stroke-dasharray","stroke-width"];function uX(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-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,cX),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
73
73
  a 15.9155 15.9155 0 0 1 0 -31.831`},null,14,dX),n.noLabel?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("text",{key:0,x:"18",y:"21.7",class:r.normalizeClass(a.labelClass)},r.toDisplayString(a.label),3))],2)}const hX=ee(lX,[["render",uX]]),v0={props:{width:{type:String,default:"20"},height:{type:String,default:"16"},fluid:{type:Boolean,default:!1},shape:{type:String,default:"square",validate:t=>["circle","square"].includes(t)}},computed:{computedStyle(){return this.shape==="circle"?{"--width":`${this.width}px`,"--height":`${this.width}px`}:this.fluid?{"--width":"100%","--height":this.height!=="16"?`${this.height}px`:"100%"}:{"--width":`${this.width}px`,"--height":`${this.height}px`}},resolveShape(){return this.shape==="circle"?"50%":"6px"}}},s_=()=>{r.useCssVars(t=>({"02fe74e9":t.resolveShape}))},a_=v0.setup;v0.setup=a_?(t,e)=>(s_(),a_(t,e)):s_;function fX(t,e,n,i,s,a){return r.openBlock(),r.createElementBlock("div",{class:"skeleton__container",style:r.normalizeStyle(a.computedStyle)},null,4)}const w0=ee(v0,[["render",fX],["__scopeId","data-v-5298dc58"]]),pX={key:0,class:"quick_action_bar"},mX=["placeholder"],gX={key:1,class:"quick_action_bar__empty-state"},yX={key:2,class:"quick_action_bar__empty-state"},bX=["onClick"],_X={key:1,class:"quick_action_bar__result-item"},vX=ee({__name:"QuickActionBar",props:{modelValue:{type:Boolean,required:!0,default:!1},loading:{type:Boolean,required:!0,default:!1},groups:{type:Array,required:!0,default:()=>[]},recents:{type:Array,required:!1,default:()=>[]},numRecents:{type:Number,required:!1,default:5,validator:t=>t>0&&t<=10},numResults:{type:Number,required:!1,default:5,validator:t=>t>0},placeholder:{type:String,required:!1,default:"Buscar por nome, CPF ou CNS..."},initialStateText:{type:String,required:!1,default:"Ainda não há nada aqui. Experimente fazer uma busca!"},emptyStateText:{type:String,required:!1,default:"Nenhum resultado encontrado"}},emits:["update:modelValue","search","onItemClick","onSeeMoreClick","close","onRemoveRecent","onEnterPress"],setup(t,{emit:e}){const n=t,i=e,s=r.ref(n.modelValue),a=r.ref([]),o=r.ref(null),l=r.ref(!1),d=r.ref(null),h=r.ref(""),f=r.ref(0),m=r.computed(()=>{let A=a.value.some(Y=>Y.results&&Y.results.length>0),H=n.recents.length>0;return A&&!l.value&&!n.loading?"renderResults":l.value||n.loading?"renderLoading":!l.value&&!A&&h.value.length>0?"renderEmptyState":h.value.length===0&&H?"renderRecents":!l.value&&!H&&h.value.length===0?"renderInitialState":"renderEmptyState"}),g=r.computed(()=>n.recents.slice(0,n.numRecents)),y=r.computed(()=>f.value>400);r.watch(h,()=>{k()}),r.watch(()=>n.modelValue,A=>{s.value=A,A&&setTimeout(()=>{var H;(H=d.value)==null||H.focus()},100)}),r.watch(s,A=>{A||(v(),i("close")),i("update:modelValue",A),w(A)}),r.watch(()=>n.groups,A=>{a.value=A.filter(H=>H.results.length>0),setTimeout(()=>L(),100)});function w(A){document.body.style.overflow=A?"hidden":"auto"}function v(){var A;h.value="",(A=d.value)==null||A.focus(),k()}function k(){if(clearTimeout(o.value),l.value=!0,a.value=[],h.value.trim().length===0){l.value=!1;return}o.value=setTimeout(()=>{l.value=!1,i("search",h.value)},1e3)}function C(A){i("onItemClick",A)}function M(A){i("onSeeMoreClick",A)}function V(A){A.target===A.currentTarget&&(s.value=!1)}function S(A){var H;i("onRemoveRecent",A),(H=d.value)==null||H.focus()}function T(){h.value.trim().length>0&&i("onEnterPress",h.value)}function I(A){return A.slice(0,n.numResults)}function L(){var A;f.value=(A=document.querySelector("#contentResults"))==null?void 0:A.offsetHeight}return(A,H)=>s.value?(r.openBlock(),r.createElementBlock("div",pX,[r.createElementVNode("div",{class:"quick_action_bar__backdrop",onClick:V,onKeyup:[H[1]||(H[1]=r.withKeys(Y=>s.value=!1,["esc"])),r.withKeys(T,["enter"])]},[r.createVNode(qt,{gap:"3",class:"quick_action_bar__input",align:"center"},{default:r.withCtx(()=>[r.createVNode(Ce,{height:"24",width:"24",name:"search-outline",class:"quick_action_bar__search-icon"}),r.withDirectives(r.createElementVNode("input",{ref_key:"searchInput",ref:d,"onUpdate:modelValue":H[0]||(H[0]=Y=>h.value=Y),type:"text",placeholder:t.placeholder},null,8,mX),[[r.vModelText,h.value]]),h.value?(r.openBlock(),r.createElementBlock("span",{key:0,class:"quick_action_bar__clear",onClick:v}," Limpar ")):r.createCommentVNode("",!0)]),_:1}),r.createVNode(qt,{id:"contentResults",direction:"column",class:r.normalizeClass(["quick_action_bar__results",{"quick_action_bar__results--with-overflow-y":y.value}]),wrap:"nowrap"},{default:r.withCtx(()=>[m.value==="renderLoading"?(r.openBlock(),r.createBlock(qt,{key:0,direction:"column",gap:"4"},{default:r.withCtx(()=>[(r.openBlock(),r.createElementBlock(r.Fragment,null,r.renderList(5,Y=>r.createVNode(qt,{key:Y,direction:"column",gap:"1",class:"quick_action_bar__skeleton-card"},{default:r.withCtx(()=>[r.createVNode(w0,{width:250,height:20}),r.createVNode(w0,{width:180,height:20})]),_:2},1024)),64))]),_:1})):m.value==="renderInitialState"?(r.openBlock(),r.createElementBlock("div",gX,r.toDisplayString(t.initialStateText),1)):m.value==="renderEmptyState"?(r.openBlock(),r.createElementBlock("div",yX,r.toDisplayString(t.emptyStateText),1)):m.value==="renderRecents"?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:3},r.renderList(g.value,Y=>(r.openBlock(),r.createBlock(qt,{key:Y,direction:"column",gap:"4",class:"quick_action_bar__result-item",onClick:ne=>C(Y)},{default:r.withCtx(()=>[r.unref(Ks)(A.$slots,"recent-item")?r.renderSlot(A.$slots,"recent-item",{key:0,data:Y},void 0,!0):(r.openBlock(),r.createBlock(qt,{key:1,justify:"space-between",align:"center"},{default:r.withCtx(()=>[r.createVNode(qt,{align:"center",gap:"2"},{default:r.withCtx(()=>[r.createVNode(Ce,{height:"20",width:"20",name:"history-outline",color:"#52616F"}),r.createElementVNode("span",null,r.toDisplayString(Y.title),1)]),_:2},1024),r.createVNode(Ce,{height:"20",width:"20",name:"trash-outline",color:"#52616F",class:"quick_action_bar__remove-recent-icon",onClick:r.withModifiers(ne=>S(Y),["stop"])},null,8,["onClick"])]),_:2},1024))]),_:2},1032,["onClick"]))),128)):m.value==="renderResults"?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:4},r.renderList(a.value,(Y,ne)=>(r.openBlock(),r.createElementBlock("div",{key:ne,class:"quick_action_bar__results-block"},[Y.results.length>0?(r.openBlock(),r.createBlock(ll,{key:0,text:Y.category,inline:"",class:"quick_action_bar__divider"},null,8,["text"])):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(I(Y.results),q=>(r.openBlock(),r.createElementBlock("div",{key:q,class:"quick_action_bar__result-item-wrapper",onClick:ie=>C(q)},[r.unref(Ks)(A.$slots,"result-item")?r.renderSlot(A.$slots,"result-item",{key:0,data:q},void 0,!0):(r.openBlock(),r.createElementBlock("div",_X,[r.createVNode(I5,{"highlighted-text":h.value},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(q.title),1)]),_:2},1032,["highlighted-text"])]))],8,bX))),128)),Y.results.length>n.numResults?(r.openBlock(),r.createBlock(qt,{key:1,class:"quick_action_bar__show-more",align:"center",justify:"start",gap:"1",onClick:q=>M(Y)},{default:r.withCtx(()=>[r.createElementVNode("span",null,[r.createTextVNode(" Ver todos os "+r.toDisplayString(Y.results.length)+" resultados em ",1),r.createElementVNode("b",null,r.toDisplayString(Y.category),1)])]),_:2},1032,["onClick"])):r.createCommentVNode("",!0)]))),128)):r.createCommentVNode("",!0),m.value==="renderResults"||m.value==="renderEmptyState"?r.renderSlot(A.$slots,"footer",{key:5,class:"quick_action_bar__footer"},void 0,!0):r.createCommentVNode("",!0)]),_:3},8,["class"])],32)])):r.createCommentVNode("",!0)}},[["__scopeId","data-v-ed84eaae"]]),k0={props:{modelValue:{default:null,required:!0},value:{default:null,required:!0},variant:{type:String,default:"green"},label:{type:String,default:"radio content"},disabled:{type:Boolean,default:!1}},data(){return{uniqueId:Math.random()}},computed:{isChecked(){return this.modelValue===this.value},cursorType(){return this.disabled?"default":"pointer"}}},o_=()=>{r.useCssVars(t=>({"43811d2c":t.cursorType}))},l_=k0.setup;k0.setup=l_?(t,e)=>(o_(),l_(t,e)):o_;const wX={class:"cds-radio__container"},kX=["id","value","disabled","name","checked"],CX=["for"],xX=["disabled"];function SX(t,e,n,i,s,a){return r.openBlock(),r.createElementBlock("span",wX,[r.createElementVNode("input",{id:`${s.uniqueId}-${n.value}`,type:"radio",class:r.normalizeClass(["cds-radio",`cds-radio--${n.variant}`]),value:n.value,disabled:n.disabled,name:t.$attrs.name,checked:a.isChecked,onChange:e[0]||(e[0]=o=>t.$emit("update:modelValue",o.target.value))},null,42,kX),r.createElementVNode("label",{class:"cds-radio__label",for:`${s.uniqueId}-${n.value}`},[r.renderSlot(t.$slots,"default",{},()=>[r.createElementVNode("span",{class:"cds-radio__label-text",disabled:n.disabled},r.toDisplayString(n.label),9,xX)])],8,CX)])}const MX=ee(k0,[["render",SX]]),BX={components:{Doughnut:i3},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:{datasets:[{hidden:!1}],labels:[]},localLabels:[],palletColors:[],themeColors:[],deleteFirstTwoColors:!1,chartOptions:{responsive:!0,maintainAspectRatio:!1,pieceLabel:{mode:"percentage",precision:1},plugins:{legend:{display:!1,labels:{usePointStyle:!0,pointStyle:"rectRounded"}}}},key:0,largestValue:100,largestValueDegree:360-15/100*360}},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.data.forEach(t=>{t.datasets[0].data[0]>this.largestValue&&(this.largestValue=t.datasets[0].data[0])}),this.mergeChartDataNoSelect(this.data)},methods:{paleteBuilder:sr,palete(){this.palletColors=this.paleteBuilder(this.sassColorVariables.palete),this.removeFirstTwoElements()},computedCutout(){let t;switch(this.localChartData.datasets.reduce((n,i)=>n+(i.hidden!==!0?1:0),0)){case 1:t=82;break;case 2:t=55;break;case 3:t=40;break;case 4:t=30;break;default:t=20;break}this.localChartData.datasets.forEach(n=>{n.cutout=`${t}%`})},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,circumference:this.largestValueDegree*i.data/this.largestValue,borderRadius:16,hidden:!1};e.datasets.push(s),this.computedCutout(),this.key++})}),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=16})},clickHandler(t){const n=this.$refs["radial-bar-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)},handleLegendClick(t){this.localChartData.datasets.forEach(e=>{e.label===t.label&&(e.hidden=!e.hidden)}),this.computedCutout(),this.key++}}},EX={class:"responsive-container"},DX={class:"legend__container"},OX=["onClick"];function VX(t,e,n,i,s,a){const o=r.resolveComponent("Doughnut");return r.openBlock(),r.createElementBlock("span",null,[r.createElementVNode("div",EX,[r.createElementVNode("div",DX,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.localChartData.datasets,l=>(r.openBlock(),r.createElementBlock("div",{key:l.label,class:"legend__item",onClick:d=>a.handleLegendClick(l)},[r.createElementVNode("div",{class:"legend__square",style:r.normalizeStyle(`background-color: ${l.backgroundColor}`)},null,4),r.createElementVNode("span",{class:r.normalizeClass({"legend__text--strikethrough":l.hidden})},r.toDisplayString(l.label),3)],8,OX))),128))]),(r.openBlock(),r.createBlock(o,{ref:"radial-bar-chart",key:s.key,data:s.localChartData,options:s.chartOptions,onClick:a.clickHandler},null,8,["data","options","onClick"]))])])}const TX=ee(BX,[["render",VX],["__scopeId","data-v-71746dc3"]]),$X={props:{modelValue:{type:[String,null],default:null,required:!0},label:{type:String,default:"Label"},required:{type:Boolean,default:!1},options:{type:Array,default:()=>[],required:!0},disabled:{type:Boolean,default:!1,required:!1},inline:{type:Boolean,default:!1,description:"When true, the radio buttons will be displayed in a row.",required:!1},allowsExpand:{type:Boolean,default:!1,required:!1},variant:{type:String,default:"blue"}},data(){return{selected:this.modelValue,id:`radio-group$-${Gr()}`}},computed:{cssVars(){return{"--border-color-selected":Za(this.variant),"--background-color":JE(this.variant),"--display-vertical":this.allowsExpand?"flex":"inline-flex","--width-vertical":this.allowsExpand?"100%":null}}},watch:{selected(t){this.$emit("update:modelValue",t)},modelValue:{handler(t){this.selected=t},immediate:!0}}},IX={class:"radio-button__label"},AX={key:0,class:"radio-button__required"},NX=["disabled","for"],zX=["id","value","disabled"],PX=["for"],LX={class:"content-title"},FX={key:0,class:"content-body"};function RX(t,e,n,i,s,a){return r.openBlock(),r.createElementBlock("span",{class:"radio__button",style:r.normalizeStyle(a.cssVars)},[r.createElementVNode("div",IX,[r.createElementVNode("span",null,r.toDisplayString(n.label),1),n.required&&n.label?(r.openBlock(),r.createElementBlock("span",AX," * ")):r.createCommentVNode("",!0)]),r.createElementVNode("div",{class:r.normalizeClass({"button-group":n.inline})},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.options,(o,l)=>(r.openBlock(),r.createElementBlock("div",{key:o.value,class:r.normalizeClass({"radio-button__container--vertical":n.inline&&l>=0}),style:r.normalizeStyle(n.allowsExpand?"width: 100%":"")},[r.createElementVNode("label",{class:"radio-button",disabled:o.disabled||n.disabled,for:`${t.$attrs.id||s.id}-${o.value}`},[r.withDirectives(r.createElementVNode("input",{id:`${t.$attrs.id||s.id}-${o.value}`,"onUpdate:modelValue":e[0]||(e[0]=d=>s.selected=d),type:"radio",value:o.value,disabled:o.disabled||n.disabled},null,8,zX),[[r.vModelRadio,s.selected]]),r.createElementVNode("label",{class:"radio-button__content",for:`${t.$attrs.id||s.id}-${o.value}`},[r.createElementVNode("div",LX,r.toDisplayString(o.text),1),n.allowsExpand?(r.openBlock(),r.createElementBlock("div",FX,r.toDisplayString(o.body),1)):r.createCommentVNode("",!0)],8,PX)],8,NX)],6))),128))],2)],4)}const HX=ee($X,[["render",RX],["__scopeId","data-v-fbc88576"]]),WX=["value","placeholder","disabled"],YX=ee({__name:"SearchInput",props:r.mergeModels({disabled:{type:Boolean,default:!1},placeholder:{type:String,default:"Busque..."},fluid:{type:Boolean,default:!1}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=r.ref(""),n=r.ref(!1),i=r.useModel(t,"modelValue"),s=t,a=r.computed(()=>(s.fluid?"search-input--fluid":"search-input").concat(" ",s.disabled?"search-input--disabled":"")),o=r.computed(()=>s.fluid?"search-input__field--fluid":"search-input__field");function l(h){e.value=h.target.value,i.value=h.target.value}function d(){e.value="",i.value=""}return r.onMounted(()=>{e.value=i.value}),(h,f)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(a.value)},[r.createVNode(Ce,{name:"search-outline",class:"search-input__search-icon"}),r.createElementVNode("input",{id:"cds-search-input",value:e.value,placeholder:t.placeholder,disabled:t.disabled,class:r.normalizeClass(o.value),onFocus:f[0]||(f[0]=m=>n.value=!0),onBlur:f[1]||(f[1]=m=>n.value=!1),onInput:l},null,42,WX),e.value?(r.openBlock(),r.createBlock(Ce,{key:0,name:"x-outline",width:"18",height:"18",class:"search-input__close-icon",onClick:d})):r.createCommentVNode("",!0)],2))}},[["__scopeId","data-v-fad0c1c1"]]),jX={components:{CdsIcon:Ce,CdsTooltip:Qc},props:{segments:{type:Array,default:()=>[]},withIcon:{type:Boolean,default:!1},segmentsTooltipText:{type:Array,default:()=>[]}},data(){return{activeSegment:""}},mounted(){this.activeSegment=this.segments[0]},methods:{handleClick(t,e){this.activeSegment=t,this.$emit("click",this.activeSegment,e)}}},UX={class:"segment-control"},qX=["onClick"],GX={key:1};function KX(t,e,n,i,s,a){const o=r.resolveComponent("cds-icon"),l=r.resolveComponent("cds-tooltip");return r.openBlock(),r.createElementBlock("div",UX,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.segments,(d,h)=>(r.openBlock(),r.createElementBlock("button",{key:h,class:r.normalizeClass(["segment-control__button",{"segment-control__button--active":d===s.activeSegment,"segment-control__button--inactive":d!==s.activeSegment}]),onClick:f=>a.handleClick(d,h)},[n.withIcon?(r.openBlock(),r.createBlock(l,{key:0,text:n.segmentsTooltipText[h]},{default:r.withCtx(()=>[r.createVNode(o,{height:"20",width:"20",name:d},null,8,["name"])]),_:2},1032,["text"])):(r.openBlock(),r.createElementBlock("span",GX,r.toDisplayString(d),1))],10,qX))),128))])}const ZX=ee(jX,[["render",KX]]),C0={components:{CdsIcon:Ce,CdsClickable:er,CdsButton:ni,CdsScrollable:Jc},props:{title:{type:String,default:null},modelValue:{type:Boolean,default:!1,required:!0},withOverlay:{type:Boolean,default:!1},size:{type:String,default:"md"},noCloseOnBackdrop:{type:Boolean,default:!1},noCloseOnEsc:{type:Boolean,default:!1},actionButtonVariant:{type:String,default:"green"},noFooter:{type:Boolean,default:!1},noCancelButton:{type:Boolean,default:!1},disableOkButton:{type:Boolean,default:!1},disableCancelButton:{type:Boolean,default:!1},okButtonText:{type:Boolean,default:!1},cancelButtonText:{type:Boolean,default:!1},blockOkButton:{type:Boolean,default:!1},noCloseOkButton:{type:Boolean,default:!1},noCloseCancelButton:{type:Boolean,default:!1}},data(){return{sassColorVariables:Yn}},computed:{overlayColor(){const t=this.withOverlay?this.sassColorVariables.n900:"transparent";return`rgba(${this.hexToRgb(t)}, 0.4)`},sideSheetWidth(){let t="328px";switch(this.size){case"xl":t="840px";break;case"lg":t="700px";break;case"md":t="500px";break;default:t="340px";break}return t}},watch:{modelValue(t){if(!t){this.dettachKeyupEvent();return}this.attachKeyupEvent()}},created(){this.attachKeyupEvent()},beforeUnmount(){this.dettachKeyupEvent()},methods:{hexToRgb:su,shouldCloseOnBackdrop(){this.noCloseOnBackdrop||this.$emit("update:modelValue",!this.modelValue)},shouldCloseOnEsc(){this.noCloseOnEsc||this.$emit("update:modelValue",!this.modelValue)},keyupListener(t){t.keyCode===F8.ESC&&this.shouldCloseOnEsc()},attachKeyupEvent(){window.addEventListener("keyup",this.keyupListener)},dettachKeyupEvent(){window.removeEventListener("keyup",this.keyupListener)},closeHandle(){this.$emit("close",!0),this.$emit("update:modelValue",!1)},cancelHandle(){this.$emit("cancel",!0),this.noCloseCancelButton||(this.$emit("update:modelValue",!1),this.$emit("close",!0))},okHandle(){this.noCloseOkButton||(this.$emit("update:modelValue",!1),this.$emit("close",!0)),this.$emit("ok",!0)}}},c_=()=>{r.useCssVars(t=>({a52e092a:t.overlayColor,"24b4a654":t.sideSheetWidth}))},d_=C0.setup;C0.setup=d_?(t,e)=>(c_(),d_(t,e)):c_;const XX={class:"side-sheet__header"},JX={key:0,class:"side-sheet__footer"};function QX(t,e,n,i,s,a){const o=r.resolveComponent("cds-icon"),l=r.resolveComponent("cds-clickable"),d=r.resolveComponent("cds-scrollable"),h=r.resolveComponent("cds-button");return n.modelValue?(r.openBlock(),r.createElementBlock("div",{key:0,class:"side-sheet__overlay",tabindex:"0",onClick:e[4]||(e[4]=(...f)=>a.shouldCloseOnBackdrop&&a.shouldCloseOnBackdrop(...f))},[r.createElementVNode("div",{class:"side-sheet__container",onClick:e[3]||(e[3]=r.withModifiers(()=>{},["stop"]))},[r.createElementVNode("header",null,[r.renderSlot(t.$slots,"header",{},()=>[r.createElementVNode("div",XX,[r.createElementVNode("h3",null,r.toDisplayString(n.title),1),r.createElementVNode("div",{class:"side-sheet__close-icon",onClick:e[0]||(e[0]=(...f)=>a.closeHandle&&a.closeHandle(...f))},[r.createVNode(l,{clickable:""},{default:r.withCtx(()=>[r.createVNode(o,{height:"20",width:"20",name:"x-outline"})]),_:1})])])],!0)]),r.createVNode(d,{"max-height":"100%"},{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3}),n.noFooter?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("footer",JX,[r.renderSlot(t.$slots,"footer",{},()=>[n.noCancelButton?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(h,{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(h,{class:"footer__ok-button",text:n.okButtonText,variant:n.actionButtonVariant,disabled:n.disableOkButton,block:n.blockOkButton,onClick:e[2]||(e[2]=f=>n.disableOkButton?!1:a.okHandle())},null,8,["text","variant","disabled","block"])],!0)]))])])):r.createCommentVNode("",!0)}const eJ=ee(C0,[["render",QX],["__scopeId","data-v-f4113d03"]]),tJ={props:{width:{type:String,required:!1},height:{type:String,required:!1,default:"16"}},computed:{computedStyle(){return{"--width":`${this.width}px`,"--height":`${this.height}px`}}}};function nJ(t,e,n,i,s,a){return r.openBlock(),r.createElementBlock("div",{class:"skeleton__container",style:r.normalizeStyle(a.computedStyle)},null,4)}const iJ=ee(tJ,[["render",nJ],["__scopeId","data-v-d39e7029"]]);(function(){try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('.vue-slider-dot{position:absolute;transition:all 0s;z-index:5}.vue-slider-dot:focus{outline:none}.vue-slider-dot-tooltip{position:absolute;visibility:hidden}.vue-slider-dot-hover:hover .vue-slider-dot-tooltip,.vue-slider-dot-tooltip-show{visibility:visible}.vue-slider-dot-tooltip-top{top:-10px;left:50%;transform:translate(-50%,-100%)}.vue-slider-dot-tooltip-bottom{bottom:-10px;left:50%;transform:translate(-50%,100%)}.vue-slider-dot-tooltip-left{left:-10px;top:50%;transform:translate(-100%,-50%)}.vue-slider-dot-tooltip-right{right:-10px;top:50%;transform:translate(100%,-50%)}.vue-slider-marks{position:relative;width:100%;height:100%}.vue-slider-mark{position:absolute;z-index:1}.vue-slider-ltr .vue-slider-mark,.vue-slider-rtl .vue-slider-mark{width:0;height:100%;top:50%}.vue-slider-ltr .vue-slider-mark-step,.vue-slider-rtl .vue-slider-mark-step{top:0}.vue-slider-ltr .vue-slider-mark-label,.vue-slider-rtl .vue-slider-mark-label{top:100%;margin-top:10px}.vue-slider-ltr .vue-slider-mark{transform:translate(-50%,-50%)}.vue-slider-ltr .vue-slider-mark-step{left:0}.vue-slider-ltr .vue-slider-mark-label{left:50%;transform:translate(-50%)}.vue-slider-rtl .vue-slider-mark{transform:translate(50%,-50%)}.vue-slider-rtl .vue-slider-mark-step{right:0}.vue-slider-rtl .vue-slider-mark-label{right:50%;transform:translate(50%)}.vue-slider-ttb .vue-slider-mark,.vue-slider-btt .vue-slider-mark{width:100%;height:0;left:50%}.vue-slider-ttb .vue-slider-mark-step,.vue-slider-btt .vue-slider-mark-step{left:0}.vue-slider-ttb .vue-slider-mark-label,.vue-slider-btt .vue-slider-mark-label{left:100%;margin-left:10px}.vue-slider-btt .vue-slider-mark{transform:translate(-50%,50%)}.vue-slider-btt .vue-slider-mark-step{top:0}.vue-slider-btt .vue-slider-mark-label{top:50%;transform:translateY(-50%)}.vue-slider-ttb .vue-slider-mark{transform:translate(-50%,-50%)}.vue-slider-ttb .vue-slider-mark-step{bottom:0}.vue-slider-ttb .vue-slider-mark-label{bottom:50%;transform:translateY(50%)}.vue-slider-mark-step,.vue-slider-mark-label{position:absolute}.vue-slider-disabled{opacity:.5;cursor:not-allowed}.vue-slider-rail{background-color:#ccc;border-radius:15px}.vue-slider-process{background-color:#3498db;border-radius:15px}.vue-slider-mark{z-index:4}.vue-slider-mark:first-child .vue-slider-mark-step,.vue-slider-mark:last-child .vue-slider-mark-step{display:none}.vue-slider-mark-step{width:100%;height:100%;border-radius:50%;background-color:#00000029}.vue-slider-mark-label{font-size:14px;white-space:nowrap}.vue-slider-dot-handle{cursor:pointer;width:100%;height:100%;border-radius:50%;background-color:#fff;box-sizing:border-box;box-shadow:.5px .5px 2px 1px #00000052}.vue-slider-dot-handle-focus{box-shadow:0 0 1px 2px #3498db5c}.vue-slider-dot-handle-disabled{cursor:not-allowed;background-color:#ccc}.vue-slider-dot-tooltip-inner{font-size:14px;white-space:nowrap;padding:2px 5px;min-width:20px;text-align:center;color:#fff;border-radius:5px;border-color:#3498db;background-color:#3498db;box-sizing:content-box}.vue-slider-dot-tooltip-inner:after{content:"";position:absolute}.vue-slider-dot-tooltip-inner-top:after{top:100%;left:50%;transform:translate(-50%);height:0;width:0;border-color:transparent;border-style:solid;border-width:5px;border-top-color:inherit}.vue-slider-dot-tooltip-inner-bottom:after{bottom:100%;left:50%;transform:translate(-50%);height:0;width:0;border-color:transparent;border-style:solid;border-width:5px;border-bottom-color:inherit}.vue-slider-dot-tooltip-inner-left:after{left:100%;top:50%;transform:translateY(-50%);height:0;width:0;border-color:transparent;border-style:solid;border-width:5px;border-left-color:inherit}.vue-slider-dot-tooltip-inner-right:after{right:100%;top:50%;transform:translateY(-50%);height:0;width:0;border-color:transparent;border-style:solid;border-width:5px;border-right-color:inherit}.vue-slider-dot-tooltip-wrapper{opacity:0;transition:all .3s}.vue-slider-dot-tooltip-wrapper-show{opacity:1}.vue-slider{position:relative;box-sizing:content-box;-webkit-user-select:none;user-select:none;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.vue-slider-rail{position:relative;width:100%;height:100%;transition-property:width,height,left,right,top,bottom}.vue-slider-process{position:absolute;z-index:1}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();var rJ=Object.defineProperty,sJ=(t,e,n)=>e in t?rJ(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Gt=(t,e,n)=>(sJ(t,typeof e!="symbol"?e+"":e,n),n);const x0=(t,e)=>{const n=t.__vccOpts||t;for(const[i,s]of e)n[i]=s;return n},aJ={emits:["drag-start"],props:{value:{type:[Number,String],default:0},tooltip:{type:String,required:!0},dotStyle:{type:Array,default:()=>({})},tooltipStyle:{type:Array,default:()=>({})},tooltipPlacement:{type:String,required:!0},tooltipFormatter:{type:[String,Array,Object,Function],default:void 0},focus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},computed:{dotClasses(){return["vue-slider-dot",{"vue-slider-dot-hover":this.tooltip==="hover"||this.tooltip==="active","vue-slider-dot-disabled":this.disabled,"vue-slider-dot-focus":this.focus}]},handleClasses(){return["vue-slider-dot-handle",{"vue-slider-dot-handle-disabled":this.disabled,"vue-slider-dot-handle-focus":this.focus}]},tooltipClasses(){return["vue-slider-dot-tooltip",[`vue-slider-dot-tooltip-${this.tooltipPlacement}`],{"vue-slider-dot-tooltip-show":this.showTooltip}]},tooltipInnerClasses(){return["vue-slider-dot-tooltip-inner",[`vue-slider-dot-tooltip-inner-${this.tooltipPlacement}`],{"vue-slider-dot-tooltip-inner-disabled":this.disabled,"vue-slider-dot-tooltip-inner-focus":this.focus}]},showTooltip(){switch(this.tooltip){case"always":return!0;case"none":return!1;case"focus":case"active":return!!this.focus;default:return!1}},tooltipValue(){return this.tooltipFormatter?typeof this.tooltipFormatter=="string"?this.tooltipFormatter.replace(/\{value\}/,String(this.value)):this.tooltipFormatter(this.value):this.value}},methods:{dragStart(t){if(this.disabled)return!1;this.$emit("drag-start")}}},oJ=["aria-valuetext"],lJ={class:"vue-slider-dot-tooltip-text"};function cJ(t,e,n,i,s,a){return r.openBlock(),r.createElementBlock("div",{ref:"dot",class:r.normalizeClass(a.dotClasses),"aria-valuetext":a.tooltipValue,onMousedown:e[0]||(e[0]=(...o)=>a.dragStart&&a.dragStart(...o)),onTouchstartPassive:e[1]||(e[1]=(...o)=>a.dragStart&&a.dragStart(...o))},[r.renderSlot(t.$slots,"dot",{},()=>[r.createElementVNode("div",{class:r.normalizeClass(a.handleClasses),style:r.normalizeStyle(n.dotStyle)},null,6)]),n.tooltip!=="none"?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(a.tooltipClasses)},[r.renderSlot(t.$slots,"tooltip",{},()=>[r.createElementVNode("div",{class:r.normalizeClass(a.tooltipInnerClasses),style:r.normalizeStyle(n.tooltipStyle)},[r.createElementVNode("span",lJ,r.toDisplayString(a.tooltipValue),1)],6)])],2)):r.createCommentVNode("",!0)],42,oJ)}const u_=x0(aJ,[["render",cJ]]),dJ={props:{mark:{type:Object,required:!0},hideLabel:{type:Boolean,default:!1},stepStyle:{type:Object,default:void 0},stepActiveStyle:{type:Object,default:void 0},labelStyle:{type:Object,default:void 0},labelActiveStyle:{type:Object,default:void 0}},computed:{marksClasses(){return["vue-slider-mark",{"vue-slider-mark-active":this.mark.active}]},stepClasses(){return["vue-slider-mark-step",{"vue-slider-mark-step-active":this.mark.active}]},labelClasses(){return["vue-slider-mark-label",{"vue-slider-mark-label-active":this.mark.active}]}},methods:{labelClickHandle(t){t.stopPropagation(),this.$emit("pressLabel",this.mark.pos)}}};function uJ(t,e,n,i,s,a){return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(a.marksClasses)},[r.renderSlot(t.$slots,"step",{},()=>[r.createElementVNode("div",{class:r.normalizeClass(a.stepClasses),style:r.normalizeStyle([n.stepStyle,n.mark.style,n.mark.active?n.stepActiveStyle:null,n.mark.active?n.mark.activeStyle:null])},null,6)]),n.hideLabel?r.createCommentVNode("",!0):r.renderSlot(t.$slots,"label",{key:0},()=>[r.createElementVNode("div",{class:r.normalizeClass(a.labelClasses),style:r.normalizeStyle([n.labelStyle,n.mark.labelStyle,n.mark.active?n.labelActiveStyle:null,n.mark.active?n.mark.labelActiveStyle:null]),onClick:e[0]||(e[0]=(...o)=>a.labelClickHandle&&a.labelClickHandle(...o))},r.toDisplayString(n.mark.label),7)])],2)}const h_=x0(dJ,[["render",uJ]]),oc=t=>typeof t=="number"?`${t}px`:t,hJ=t=>{const e=document.documentElement,n=document.body,i=t.getBoundingClientRect();return{y:i.top+(window.pageYOffset||e.scrollTop)-(e.clientTop||n.clientTop||0),x:i.left+(window.pageXOffset||e.scrollLeft)-(e.clientLeft||n.clientLeft||0)}},fJ=(t,e,n)=>{const i="targetTouches"in t?t.targetTouches[0]:t,s=hJ(e),a={x:i.pageX-s.x,y:i.pageY-s.y};return{x:n?e.offsetWidth-a.x:a.x,y:n?e.offsetHeight-a.y:a.y}},pJ=(t,e)=>{if(e.hook){const n=e.hook(t);if(typeof n=="function")return n;if(!n)return null}switch(t.keyCode){case 38:return n=>e.direction==="ttb"?n-1:n+1;case 39:return n=>e.direction==="rtl"?n-1:n+1;case 40:return n=>e.direction==="ttb"?n+1:n-1;case 37:return n=>e.direction==="rtl"?n+1:n-1;case 35:return()=>e.max;case 36:return()=>e.min;case 33:return n=>n+10;case 34:return n=>n-10;default:return null}};class Or{constructor(e){Gt(this,"num"),this.num=e}decimal(e,n){const i=this.num,s=this.getDecimalLen(i),a=this.getDecimalLen(e);let o=0;switch(n){case"+":o=this.getExponent(s,a),this.num=(this.safeRoundUp(i,o)+this.safeRoundUp(e,o))/o;break;case"-":o=this.getExponent(s,a),this.num=(this.safeRoundUp(i,o)-this.safeRoundUp(e,o))/o;break;case"*":this.num=this.safeRoundUp(this.safeRoundUp(i,this.getExponent(s)),this.safeRoundUp(e,this.getExponent(a)))/this.getExponent(s+a);break;case"/":o=this.getExponent(s,a),this.num=this.safeRoundUp(i,o)/this.safeRoundUp(e,o);break;case"%":o=this.getExponent(s,a),this.num=this.safeRoundUp(i,o)%this.safeRoundUp(e,o)/o;break}return this}plus(e){return this.decimal(e,"+")}minus(e){return this.decimal(e,"-")}multiply(e){return this.decimal(e,"*")}divide(e){return this.decimal(e,"/")}remainder(e){return this.decimal(e,"%")}toNumber(){return this.num}getDecimalLen(e){const n=`${e}`.split("e");return(`${n[0]}`.split(".")[1]||"").length-(n[1]?+n[1]:0)}getExponent(e,n){return Math.pow(10,n!==void 0?Math.max(e,n):e)}safeRoundUp(e,n){return Math.round(e*n)}}const mJ={1:'The type of the "value" is illegal',2:'The prop "interval" is invalid, "(max - min)" must be divisible by "interval"',3:'The "value" must be greater than or equal to the "min".',4:'The "value" must be less than or equal to the "max".',5:'When "order" is false, the parameters "minRange", "maxRange", "fixed", "enabled" are invalid.'};class gJ{constructor(e){Gt(this,"dotsPos",[]),Gt(this,"dotsValue",[]),Gt(this,"data"),Gt(this,"enableCross"),Gt(this,"fixed"),Gt(this,"max"),Gt(this,"min"),Gt(this,"interval"),Gt(this,"minRange"),Gt(this,"maxRange"),Gt(this,"order"),Gt(this,"marks"),Gt(this,"included"),Gt(this,"process"),Gt(this,"adsorb"),Gt(this,"dotOptions"),Gt(this,"onError"),Gt(this,"cacheRangeDir",{}),this.data=e.data,this.max=e.max,this.min=e.min,this.interval=e.interval,this.order=e.order,this.marks=e.marks,this.included=e.included,this.process=e.process,this.adsorb=e.adsorb,this.dotOptions=e.dotOptions,this.onError=e.onError,this.order?(this.minRange=e.minRange||0,this.maxRange=e.maxRange||0,this.enableCross=e.enableCross,this.fixed=e.fixed):((e.minRange||e.maxRange||!e.enableCross||e.fixed)&&this.emitError(5),this.minRange=0,this.maxRange=0,this.enableCross=!0,this.fixed=!1),this.setValue(e.value)}setValue(e){this.setDotsValue(Array.isArray(e)?this.order?[...e].sort((n,i)=>this.getIndexByValue(n)-this.getIndexByValue(i)):[...e]:[e],!0)}setDotsValue(e,n){this.dotsValue=e,n&&this.syncDotsPos()}setDotsPos(e){const n=this.order?[...e].sort((i,s)=>i-s):e;this.dotsPos=n,this.setDotsValue(n.map(i=>this.getValueByPos(i)),this.adsorb)}getValueByPos(e){let n=this.parsePos(e);if(this.included){let i=100;this.markList.forEach(s=>{const a=Math.abs(s.pos-e);a<i&&(i=a,n=s.value)})}return n}syncDotsPos(){this.dotsPos=this.dotsValue.map(e=>this.parseValue(e))}get markList(){if(!this.marks)return[];const e=(n,i)=>{const s=this.parseValue(n);return{pos:s,value:n,label:n,active:this.isActiveByPos(s),...i}};return this.marks===!0?this.getValues().map(n=>e(n)):Object.prototype.toString.call(this.marks)==="[object Object]"?Object.keys(this.marks).sort((n,i)=>+n-+i).map(n=>{const i=this.marks[n];return e(n,typeof i!="string"?i:{label:i})}):Array.isArray(this.marks)?this.marks.map(n=>e(n)):typeof this.marks=="function"?this.getValues().map(n=>({value:n,result:this.marks(n)})).filter(({result:n})=>!!n).map(({value:n,result:i})=>e(n,i)):[]}getRecentDot(e){const n=this.dotsPos.filter((i,s)=>!(this.getDotOption(s)&&this.getDotOption(s).disabled)).map(i=>Math.abs(i-e));return n.indexOf(Math.min(...n))}getIndexByValue(e){return this.data?this.data.indexOf(e):new Or(+e).minus(this.min).divide(this.interval).toNumber()}getValueByIndex(e){return e<0?e=0:e>this.total&&(e=this.total),this.data?this.data[e]:new Or(e).multiply(this.interval).plus(this.min).toNumber()}setDotPos(e,n){e=this.getValidPos(e,n).pos;const i=e-this.dotsPos[n];if(!i)return;let s=new Array(this.dotsPos.length);this.fixed?s=this.getFixedChangePosArr(i,n):this.minRange||this.maxRange?s=this.getLimitRangeChangePosArr(e,i,n):s[n]=i,this.setDotsPos(this.dotsPos.map((a,o)=>a+(s[o]||0)))}getFixedChangePosArr(e,n){return this.dotsPos.forEach((i,s)=>{if(s!==n){const{pos:a,inRange:o}=this.getValidPos(i+e,s);o||(e=Math.min(Math.abs(a-i),Math.abs(e))*(e<0?-1:1))}}),this.dotsPos.map(i=>e)}getLimitRangeChangePosArr(e,n,i){const s=[{index:i,changePos:n}],a=n;return[this.minRange,this.maxRange].forEach((o,l)=>{if(!o)return!1;const d=l===0,h=n>0;let f=0;d?f=h?1:-1:f=h?-1:1;const m=(v,k)=>{const C=Math.abs(v-k);return d?C<this.minRangeDir:C>this.maxRangeDir};let g=i+f,y=this.dotsPos[g],w=e;for(;this.isPos(y)&&m(y,w);){const{pos:v}=this.getValidPos(y+a,g);s.push({index:g,changePos:v-y}),g=g+f,w=v,y=this.dotsPos[g]}}),this.dotsPos.map((o,l)=>{const d=s.filter(h=>h.index===l);return d.length?d[0].changePos:0})}isPos(e){return typeof e=="number"}getValidPos(e,n){const i=this.valuePosRange[n];let s=!0;return e<i[0]?(e=i[0],s=!1):e>i[1]&&(e=i[1],s=!1),{pos:e,inRange:s}}parseValue(e){if(this.data)e=this.data.indexOf(e);else if(typeof e=="number"||typeof e=="string"){if(e=+e,e<this.min)return this.emitError(3),0;if(e>this.max)return this.emitError(4),0;if(typeof e!="number"||e!==e)return this.emitError(1),0;e=new Or(e).minus(this.min).divide(this.interval).toNumber()}const n=new Or(e).multiply(this.gap).toNumber();return n<0?0:n>100?100:n}parsePos(e){const n=Math.round(e/this.gap);return this.getValueByIndex(n)}isActiveByPos(e){return this.processArray.some(([n,i])=>e>=n&&e<=i)}getValues(){if(this.data)return this.data;{const e=[];for(let n=0;n<=this.total;n++)e.push(new Or(n).multiply(this.interval).plus(this.min).toNumber());return e}}getRangeDir(e){return e?new Or(e).divide(new Or(this.data?this.data.length-1:this.max).minus(this.data?0:this.min).toNumber()).multiply(100).toNumber():100}emitError(e){this.onError&&this.onError(e,mJ[e])}get processArray(){if(this.process){if(typeof this.process=="function")return this.process(this.dotsPos);if(this.dotsPos.length===1)return[[0,this.dotsPos[0]]];if(this.dotsPos.length>1)return[[Math.min(...this.dotsPos),Math.max(...this.dotsPos)]]}return[]}get total(){let e=0;return this.data?e=this.data.length-1:e=new Or(this.max).minus(this.min).divide(this.interval).toNumber(),e-Math.floor(e)!==0?(this.emitError(2),0):e}get gap(){return 100/this.total}get minRangeDir(){return this.cacheRangeDir[this.minRange]?this.cacheRangeDir[this.minRange]:this.cacheRangeDir[this.minRange]=this.getRangeDir(this.minRange)}get maxRangeDir(){return this.cacheRangeDir[this.maxRange]?this.cacheRangeDir[this.maxRange]:this.cacheRangeDir[this.maxRange]=this.getRangeDir(this.maxRange)}getDotOption(e){return Array.isArray(this.dotOptions)?this.dotOptions[e]:this.dotOptions}getDotRange(e,n,i){if(!this.dotOptions)return i;const s=this.getDotOption(e);return s&&s[n]!==void 0?this.parseValue(s[n]):i}get valuePosRange(){const e=this.dotsPos,n=[];return e.forEach((i,s)=>{n.push([Math.max(this.minRange?this.minRangeDir*s:0,this.enableCross?0:e[s-1]||0,this.getDotRange(s,"min",0)),Math.min(this.minRange?100-this.minRangeDir*(e.length-1-s):100,this.enableCross?100:e[s+1]||100,this.getDotRange(s,"max",100))])}),n}get dotsIndex(){return this.dotsValue.map(e=>this.getIndexByValue(e))}}class yJ{constructor(e){Gt(this,"map"),Gt(this,"states",0),this.map=e}add(e){this.states|=e}delete(e){this.states&=~e}toggle(e){this.has(e)?this.delete(e):this.add(e)}has(e){return!!(this.states&e)}}const S0=4,mn={None:0,Drag:2,Focus:4},bJ={emits:["update:modelValue","change","drag-start","drag-end","dragging","error"],components:{VueSliderDot:u_,VueSliderMark:h_},props:{modelValue:{type:[Number,String,Array],default:0},silent:{type:Boolean,default:!1},direction:{type:String,default:"ltr",validator:t=>["ltr","rtl","ttb","btt"].indexOf(t)>-1},width:{type:[Number,String],default:void 0},height:{type:[Number,String],default:void 0},dotSize:{type:[Array,Number],default:14},contained:{type:Boolean,default:!1},min:{type:Number,default:0},max:{type:Number,default:100},interval:{type:Number,default:1},disabled:{type:Boolean,default:!1},clickable:{type:Boolean,default:!0},dragOnClick:{type:Boolean,default:!0},duration:{type:Number,default:.5},data:{type:[Object,Array],default:void 0},dataValue:{type:String,default:"value"},dataLabel:{type:String,default:"label"},lazy:{type:Boolean,default:!1},tooltip:{type:String,default:"active",validator:t=>["none","always","focus","hover","active"].indexOf(t)>-1},tooltipPlacement:{type:[String,Array],default:void 0,validator:t=>(Array.isArray(t)?t:[t]).every(e=>["top","right","bottom","left"].indexOf(e)>-1)},tooltipFormatter:{type:[String,Array,Function],default:""},useKeyboard:{type:Boolean,default:!0},keydownHook:{type:[Boolean,Function],default:void 0},enableCross:{type:Boolean,default:!0},fixed:{type:Boolean,default:!1},order:{type:Boolean,default:!0},minRange:{type:Number,default:void 0},maxRange:{type:Number,default:void 0},marks:{type:[Boolean,Object,Array,Function],default:!1},process:{type:[Boolean,Function],default:!0},zoom:{type:[Number],default:void 0},included:{type:[Boolean],default:!1},adsorb:{type:[Boolean],default:!1},hideLabel:{type:[Boolean],default:!1},dotOptions:{type:Object,default:void 0},dotAttrs:{type:Object,default:void 0},railStyle:{type:Object,default:null},processStyle:{type:Object,default:null},dotStyle:{type:Object,default:null},tooltipStyle:{type:Object,default:null},stepStyle:{type:Object,default:null},stepActiveStyle:{type:Object,default:null},labelStyle:{type:Object,default:null},labelActiveStyle:{type:Object,default:null}},data(){return{control:null,states:new yJ(mn),scale:1,focusDotIndex:0}},computed:{tailSize(){return oc((this.isHorizontal?this.height:this.width)||S0)},containerClasses(){return["vue-slider",[`vue-slider-${this.direction}`],{"vue-slider-disabled":this.disabled}]},containerStyles(){const[t,e]=Array.isArray(this.dotSize)?this.dotSize:[this.dotSize,this.dotSize],n=this.width?oc(this.width):this.isHorizontal?"auto":oc(S0),i=this.height?oc(this.height):this.isHorizontal?oc(S0):"auto";return{padding:this.contained?`${e/2}px ${t/2}px`:this.isHorizontal?`${e/2}px 0`:`0 ${t/2}px`,width:n,height:i}},processArray(){return this.control.processArray.map(([t,e,n],i)=>{t>e&&([t,e]=[e,t]);const s=this.isHorizontal?"width":"height";return{start:t,end:e,index:i,style:{[this.isHorizontal?"height":"width"]:"100%",[this.isHorizontal?"top":"left"]:0,[this.mainDirection]:`${t}%`,[s]:`${e-t}%`,transitionProperty:`${s},${this.mainDirection}`,transitionDuration:`${this.animateTime}s`,...this.processStyle,...n}}})},dotBaseStyle(){const[t,e]=Array.isArray(this.dotSize)?this.dotSize:[this.dotSize,this.dotSize];let n;return this.isHorizontal?n={transform:`translate(${this.isReverse?"50%":"-50%"}, -50%)`,"-WebkitTransform":`translate(${this.isReverse?"50%":"-50%"}, -50%)`,top:"50%",[this.direction==="ltr"?"left":"right"]:"0"}:n={transform:`translate(-50%, ${this.isReverse?"50%":"-50%"})`,"-WebkitTransform":`translate(-50%, ${this.isReverse?"50%":"-50%"})`,left:"50%",[this.direction==="btt"?"bottom":"top"]:"0"},{width:`${t}px`,height:`${e}px`,...n}},mainDirection(){switch(this.direction){case"ltr":return"left";case"rtl":return"right";case"btt":return"bottom";case"ttb":return"top"}},isHorizontal(){return this.direction==="ltr"||this.direction==="rtl"},isReverse(){return this.direction==="rtl"||this.direction==="btt"},tooltipDirections(){const t=this.tooltipPlacement||(this.isHorizontal?"top":"left");return Array.isArray(t)?t:this.dots.map(()=>t)},dots(){return this.control.dotsPos.map((t,e)=>({pos:t,index:e,value:this.control.dotsValue[e],focus:this.states.has(mn.Focus)&&this.focusDotIndex===e,disabled:this.disabled,style:this.dotStyle,...(Array.isArray(this.dotOptions)?this.dotOptions[e]:this.dotOptions)||{}}))},animateTime(){return this.states.has(mn.Drag)?0:this.duration},canSort(){return this.order&&!this.minRange&&!this.maxRange&&!this.fixed&&this.enableCross},sliderData(){return this.isObjectArrayData(this.data)?this.data.map(t=>t[this.dataValue]):this.isObjectData(this.data)?Object.keys(this.data):this.data},sliderMarks(){if(this.marks)return this.marks;if(this.isObjectArrayData(this.data))return t=>{const e={label:t};return this.data.some(n=>n[this.dataValue]===t?(e.label=n[this.dataLabel],!0):!1),e};if(this.isObjectData(this.data))return this.data},sliderTooltipFormatter(){if(this.tooltipFormatter)return this.tooltipFormatter;if(this.isObjectArrayData(this.data))return t=>{let e=""+t;return this.data.some(n=>n[this.dataValue]===t?(e=n[this.dataLabel],!0):!1),e};if(this.isObjectData(this.data)){const t=this.data;return e=>t[e]}},isNotSync(){const t=this.control.dotsValue;return Array.isArray(this.modelValue)?this.modelValue.length!==t.length||this.modelValue.some((e,n)=>e!==t[n]):this.modelValue!==t[0]},dragRange(){const t=this.dots[this.focusDotIndex-1],e=this.dots[this.focusDotIndex+1];return[t?t.pos:-1/0,e?e.pos:1/0]}},created(){this.initControl()},mounted(){this.bindEvent()},beforeUnmount(){this.unbindEvent()},methods:{isObjectData(t){return!!t&&Object.prototype.toString.call(t)==="[object Object]"},isObjectArrayData(t){return!!t&&Array.isArray(t)&&t.length>0&&typeof t[0]=="object"},bindEvent(){document.addEventListener("touchmove",this.dragMove,{passive:!1}),document.addEventListener("touchend",this.dragEnd,{passive:!1}),document.addEventListener("mousedown",this.blurHandle),document.addEventListener("mousemove",this.dragMove,{passive:!1}),document.addEventListener("mouseup",this.dragEnd),document.addEventListener("mouseleave",this.dragEnd),document.addEventListener("keydown",this.keydownHandle)},unbindEvent(){document.removeEventListener("touchmove",this.dragMove),document.removeEventListener("touchend",this.dragEnd),document.removeEventListener("mousedown",this.blurHandle),document.removeEventListener("mousemove",this.dragMove),document.removeEventListener("mouseup",this.dragEnd),document.removeEventListener("mouseleave",this.dragEnd),document.removeEventListener("keydown",this.keydownHandle)},setScale(){const t=new Or(Math.floor(this.isHorizontal?this.$refs.rail.offsetWidth:this.$refs.rail.offsetHeight));this.zoom!==void 0&&t.multiply(this.zoom),t.divide(100),this.scale=t.toNumber()},initControl(){this.control=new gJ({value:this.modelValue,data:this.sliderData,enableCross:this.enableCross,fixed:this.fixed,max:this.max,min:this.min,interval:this.interval,minRange:this.minRange,maxRange:this.maxRange,order:this.order,marks:this.sliderMarks,included:this.included,process:this.process,adsorb:this.adsorb,dotOptions:this.dotOptions,onError:this.emitError}),this.syncValueByPos(),["data","enableCross","fixed","max","min","interval","minRange","maxRange","order","marks","process","adsorb","included","dotOptions"].forEach(t=>{this.$watch(t,e=>{if(t==="data"&&Array.isArray(this.control.data)&&Array.isArray(e)&&this.control.data.length===e.length&&e.every((n,i)=>n===this.control.data[i]))return!1;switch(t){case"data":case"dataLabel":case"dataValue":this.control.data=this.sliderData;break;case"mark":this.control.marks=this.sliderMarks;break;default:this.control[t]=e}["data","max","min","interval"].indexOf(t)>-1&&this.control.syncDotsPos()})})},syncValueByPos(){const t=this.control.dotsValue;if(this.isDiff(t,Array.isArray(this.modelValue)?this.modelValue:[this.modelValue])){const e=t.length===1?t[0]:[...t];this.$emit("change",e,this.focusDotIndex),this.$emit("update:modelValue",e,this.focusDotIndex)}},isDiff(t,e){return t.length!==e.length||t.some((n,i)=>n!==e[i])},emitError(t,e){this.silent||console.error(`[VueSlider error]: ${e}`),this.$emit("error",t,e)},dragStartOnProcess(t){if(this.dragOnClick){this.setScale();const e=this.getPosByEvent(t),n=this.control.getRecentDot(e);if(this.dots[n].disabled)return;this.dragStart(n),this.control.setDotPos(e,this.focusDotIndex),this.lazy||this.syncValueByPos()}},dragStart(t){this.focusDotIndex=t,this.setScale(),this.states.add(mn.Drag),this.states.add(mn.Focus),this.$emit("drag-start",this.focusDotIndex)},dragMove(t){if(!this.states.has(mn.Drag))return!1;t.preventDefault();const e=this.getPosByEvent(t);this.isCrossDot(e),this.control.setDotPos(e,this.focusDotIndex),this.lazy||this.syncValueByPos();const n=this.control.dotsValue;this.$emit("dragging",n.length===1?n[0]:[...n],this.focusDotIndex)},isCrossDot(t){if(this.canSort){const e=this.focusDotIndex;let n=t;if(n>this.dragRange[1]?(n=this.dragRange[1],this.focusDotIndex++):n<this.dragRange[0]&&(n=this.dragRange[0],this.focusDotIndex--),e!==this.focusDotIndex){const i=this.$refs[`dot-${this.focusDotIndex}`];i&&i.$el&&i.$el.focus(),this.control.setDotPos(n,e)}}},dragEnd(t){if(!this.states.has(mn.Drag))return!1;setTimeout(()=>{this.lazy&&this.syncValueByPos(),this.included&&this.isNotSync?this.control.setValue(this.modelValue):this.control.syncDotsPos(),this.states.delete(mn.Drag),(!this.useKeyboard||"targetTouches"in t)&&this.states.delete(mn.Focus),this.$emit("drag-end",this.focusDotIndex)})},blurHandle(t){if(!this.states.has(mn.Focus)||!this.$refs.container||this.$refs.container.contains(t.target))return!1;this.states.delete(mn.Focus)},clickHandle(t){if(!this.clickable||this.disabled)return!1;if(this.states.has(mn.Drag))return;this.setScale();const e=this.getPosByEvent(t);this.setValueByPos(e)},focus(t=0){this.states.add(mn.Focus),this.focusDotIndex=t},blur(){this.states.delete(mn.Focus)},getValue(){const t=this.control.dotsValue;return t.length===1?t[0]:t},getIndex(){const t=this.control.dotsIndex;return t.length===1?t[0]:t},setValue(t){this.control.setValue(Array.isArray(t)?[...t]:[t]),this.syncValueByPos()},setIndex(t){const e=Array.isArray(t)?t.map(n=>this.control.getValueByIndex(n)):this.control.getValueByIndex(t);this.setValue(e)},setValueByPos(t){const e=this.control.getRecentDot(t);if(this.disabled||this.dots[e].disabled)return!1;this.focusDotIndex=e,this.control.setDotPos(t,e),this.syncValueByPos(),this.useKeyboard&&this.states.add(mn.Focus),setTimeout(()=>{this.included&&this.isNotSync?this.control.setValue(this.modelValue):this.control.syncDotsPos()})},keydownHandle(t){if(!this.useKeyboard||!this.states.has(mn.Focus))return!1;const e=this.included&&this.marks,n=pJ(t,{direction:this.direction,max:e?this.control.markList.length-1:this.control.total,min:0,hook:this.keydownHook});if(n){t.preventDefault();let i=-1,s=0;e?(this.control.markList.some((a,o)=>a.value===this.control.dotsValue[this.focusDotIndex]?(i=n(o),!0):!1),i<0?i=0:i>this.control.markList.length-1&&(i=this.control.markList.length-1),s=this.control.markList[i].pos):(i=n(this.control.getIndexByValue(this.control.dotsValue[this.focusDotIndex])),s=this.control.parseValue(this.control.getValueByIndex(i))),this.isCrossDot(s),this.control.setDotPos(s,this.focusDotIndex),this.syncValueByPos()}},getPosByEvent(t){return fJ(t,this.$refs.rail,this.isReverse)[this.isHorizontal?"x":"y"]/this.scale}},watch:{modelValue:{handler(){this.control&&!this.states.has(mn.Drag)&&this.isNotSync&&(this.control.setValue(this.modelValue),this.syncValueByPos())},deep:!0}}},_J={key:0,class:"vue-slider-marks"};function vJ(t,e,n,i,s,a){const o=r.resolveComponent("VueSliderMark"),l=r.resolveComponent("VueSliderDot");return r.openBlock(),r.createElementBlock("div",r.mergeProps({ref:"container",class:a.containerClasses,style:a.containerStyles,onClick:e[0]||(e[0]=(...d)=>a.clickHandle&&a.clickHandle(...d)),onTouchstartPassive:e[1]||(e[1]=(...d)=>a.dragStartOnProcess&&a.dragStartOnProcess(...d)),onMousedown:e[2]||(e[2]=(...d)=>a.dragStartOnProcess&&a.dragStartOnProcess(...d))},t.$attrs),[r.createElementVNode("div",{ref:"rail",class:"vue-slider-rail",style:r.normalizeStyle(n.railStyle)},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(a.processArray,(d,h)=>r.renderSlot(t.$slots,"process",r.mergeProps({ref_for:!0},{...d}),()=>[(r.openBlock(),r.createElementBlock("div",{class:"vue-slider-process",key:`process-${h}`,style:r.normalizeStyle(d.style)},null,4))])),256)),a.sliderMarks?(r.openBlock(),r.createElementBlock("div",_J,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.control.markList,(d,h)=>r.renderSlot(t.$slots,"mark",r.mergeProps({ref_for:!0},{...d}),()=>[(r.openBlock(),r.createBlock(o,{key:`mark-${h}`,mark:d,hideLabel:n.hideLabel,style:r.normalizeStyle({[a.isHorizontal?"height":"width"]:"100%",[a.isHorizontal?"width":"height"]:a.tailSize,[a.mainDirection]:`${d.pos}%`}),stepStyle:n.stepStyle,stepActiveStyle:n.stepActiveStyle,labelStyle:n.labelStyle,labelActiveStyle:n.labelActiveStyle,onPressLabel:f=>n.clickable&&a.setValueByPos(f)},{step:r.withCtx(()=>[r.renderSlot(t.$slots,"step",r.mergeProps({ref_for:!0},{...d}))]),label:r.withCtx(()=>[r.renderSlot(t.$slots,"label",r.mergeProps({ref_for:!0},{...d}))]),_:2},1032,["mark","hideLabel","style","stepStyle","stepActiveStyle","labelStyle","labelActiveStyle","onPressLabel"]))])),256))])):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(a.dots,(d,h)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(l,r.mergeProps({ref_for:!0,ref:`dot-${h}`,value:d.value,disabled:d.disabled,focus:d.focus,"dot-style":[d.style,d.disabled?d.disabledStyle:null,d.focus?d.focusStyle:null],tooltip:d.tooltip||n.tooltip,"tooltip-style":[n.tooltipStyle,d.tooltipStyle,d.disabled?d.tooltipDisabledStyle:null,d.focus?d.tooltipFocusStyle:null],"tooltip-formatter":Array.isArray(a.sliderTooltipFormatter)?a.sliderTooltipFormatter[h]:a.sliderTooltipFormatter,"tooltip-placement":a.tooltipDirections[h],style:[a.dotBaseStyle,{[a.mainDirection]:`${d.pos}%`,transition:`${a.mainDirection} ${a.animateTime}s`}],"onDrag-start":()=>a.dragStart(h),role:"slider","aria-valuenow":d.value,"aria-valuemin":this.min,"aria-valuemax":this.max,"aria-orientation":this.isHorizontal?"horizontal":"vertical",tabindex:"0",nativeOnFocus:()=>!d.disabled&&a.focus(h),nativeOnBlur:()=>a.blur()},{...n.dotAttrs}),{dot:r.withCtx(()=>[r.renderSlot(t.$slots,"dot",r.mergeProps({ref_for:!0},{...d}))]),tooltip:r.withCtx(()=>[r.renderSlot(t.$slots,"tooltip",r.mergeProps({ref_for:!0},{...d}))]),_:2},1040,["value","disabled","focus","dot-style","tooltip","tooltip-style","tooltip-formatter","tooltip-placement","style","onDrag-start","aria-valuenow","aria-valuemin","aria-valuemax","aria-orientation","nativeOnFocus","nativeOnBlur"]),r.renderSlot(t.$slots,"default",r.mergeProps({ref_for:!0},{value:a.getValue()}))],64))),256))],4)],16)}const M0=x0(bJ,[["render",vJ]]);M0.VueSliderMark=h_,M0.VueSliderDot=u_;const wJ={components:{vueSlider:M0},props:{min:{type:Number,default:0,required:!0},max:{type:Number,default:100,required:!0},modelValue:{type:Array,default:()=>[0,100],required:!0},variant:{type:String,default:"green"}},data(){return{innerValue:[0,100]}},computed:{attrs(){const{min:t,max:e,...n}=this.$attrs;return n},showMergeTooltip(){return this.innerValue[1]-this.innerValue[0]<10}},watch:{modelValue(t){this.innerValue=t},innerValue(t){this.$emit("update:modelValue",t)}},mounted(){this.innerValue=this.modelValue}},kJ={key:0,class:r.normalizeClass(["merge-tooltip","vue-slider-dot-tooltip-inner","vue-slider-dot-tooltip-inner-top"])},CJ={key:0},xJ={key:1};function SJ(t,e,n,i,s,a){const o=r.resolveComponent("vue-slider");return r.openBlock(),r.createBlock(o,r.mergeProps(a.attrs,{modelValue:s.innerValue,"onUpdate:modelValue":e[0]||(e[0]=l=>s.innerValue=l),"enable-cross":!1,min:n.min,max:n.max,tooltip:a.showMergeTooltip?"none":"always",class:`slider--${n.variant}`}),{process:r.withCtx(({style:l})=>[r.createElementVNode("div",{class:"vue-slider-process",style:r.normalizeStyle(l)},[a.showMergeTooltip?(r.openBlock(),r.createElementBlock("div",kJ,[s.innerValue[0]!==s.innerValue[1]?(r.openBlock(),r.createElementBlock("span",CJ,r.toDisplayString(s.innerValue[0])+" - "+r.toDisplayString(s.innerValue[1]),1)):(r.openBlock(),r.createElementBlock("span",xJ,r.toDisplayString(s.innerValue[0]),1))])):r.createCommentVNode("",!0)],4)]),tooltip:r.withCtx(l=>[r.renderSlot(t.$slots,"tooltip",{tooltip:l})]),_:3},16,["modelValue","min","max","tooltip","class"])}const MJ=ee(wJ,[["render",SJ]]),BJ={components:{CdsIcon:Ce},props:{steps:{type:Array,default:()=>[],required:!0,description:`Um array com objetos com as propriedades 'label', 'inProcessing',
74
74
  'error' e 'completed'. A 'label' é o texto que descreve o passo,
75
- e as demais props são booleanas e representam o status do passo.`},vertical:{type:Boolean,default:!1,required:!1},value:{type:Number,default:1,required:!0},disableOnClick:{type:Boolean,default:!1}},data(){return{internalValue:this.value-1}},watch:{internalValue(t){this.$emit("input",t+1)},value:{handler(t){this.internalValue=t-1},immediate:!0}},methods:{circleStyle(t,e){const n=this.disableOnClick?"":"stepper__step--clickable";return t.inProcessing?`stepper__step--in-processing ${n}`:t.error?`stepper__step--error ${n}`:t.completed?`stepper__step--completed ${n}`:e===this.internalValue?`stepper__step--active ${n}`:` stepper__step--muted ${n}`},changeStep(t){this.disableOnClick||(this.internalValue=t)},dividerStyle(t){const e=this.vertical?"vertical-":"";if(t<0)return`stepper__${e}divider--default`;const n=t===this.steps.length-1,i=t===0,s=t-1,a=t+1;return!n&&this.steps[t].completed&&this.steps[a].completed?`stepper__${e}divider--completed`:!n&&t>0&&this.steps[t].completed&&this.steps[s].completed||!n&&i&&this.steps[t].completed?`stepper__${e}divider--in-progress`:`stepper__${e}divider--default`},stepSectionStyle(t){let e="";return e+=t!==this.steps.length-1?"stepper__step-section ":"",e+=this.vertical?"stepper__step-section--vertical":"",e},labelStyle(t){let e="";return e+=t===this.internalValue?"stepper__step-label--active":"stepper__step-label--muted",e+=this.vertical?"":" stepper__step-label--horizontal",e+=this.disableOnClick?"":" stepper__step--clickable",e}}},EJ={class:"stepper__edge"},DJ=["onClick"],OJ=["id","onClick"],VJ={key:2,class:"stepper__processing-icon"},TJ={key:3,class:"stepper__icon-text"},$J={key:0,class:"stepper__edge-container"},IJ={class:"stepper__edge"};function AJ(t,e,n,i,s,a){const o=r.resolveComponent("cds-icon");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(n.vertical?"stepper--vertical":"stepper")},[r.createElementVNode("div",{class:r.normalizeClass(n.vertical?"stepper__edge-container--vertical":"stepper__edge-container")},[r.createElementVNode("div",EJ,[r.createElementVNode("div",{class:r.normalizeClass(a.dividerStyle(-1))},null,2)])],2),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.steps,(l,d)=>(r.openBlock(),r.createElementBlock("div",{key:d,class:r.normalizeClass(a.stepSectionStyle(d))},[n.vertical?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["stepper__step-label--vertical",a.labelStyle(d)]),onClick:h=>a.changeStep(d)},[r.createElementVNode("small",null,r.toDisplayString(l.label),1)],10,DJ)):r.createCommentVNode("",!0),r.createElementVNode("div",{id:`step-${d+1}`,class:r.normalizeClass(n.vertical?"stepper__icon-container--vertical":"stepper__icon-container"),onClick:h=>a.changeStep(d)},[r.createElementVNode("div",{class:r.normalizeClass(["stepper__icon-circle",a.circleStyle(l,d)])},[l.completed?(r.openBlock(),r.createBlock(o,{key:0,height:"32",width:"32",name:"check-outline"})):l.error?(r.openBlock(),r.createBlock(o,{key:1,height:"32",width:"32",name:"x-outline"})):l.inProcessing?(r.openBlock(),r.createElementBlock("div",VJ,e[0]||(e[0]=[r.createElementVNode("svg",{width:"19",height:"22",viewBox:"0 0 19 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[r.createElementVNode("path",{d:"M18.78 16.6325C17.738 18.0472 16.3457 19.1664 14.7402 19.8799C13.1346 20.5935 11.3709 20.8769 9.62259 20.7023C7.87428 20.5276 6.20151 19.901 4.76877 18.884C3.33604 17.867 2.19266 16.4945 1.45107 14.9017C0.709475 13.3089 0.395207 11.5504 0.539162 9.79934C0.683116 8.04824 1.28034 6.36474 2.2721 4.9144C3.26387 3.46406 4.61603 2.2968 6.19562 1.52741C7.77522 0.758019 9.52787 0.412981 11.2812 0.526225L10.6287 10.6288L18.78 16.6325Z",fill:"#3A7EDF"})],-1)]))):(r.openBlock(),r.createElementBlock("span",TJ,r.toDisplayString(d+1),1))],2),r.createElementVNode("div",{class:r.normalizeClass(a.dividerStyle(d))},null,2)],10,OJ),n.vertical?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass(["stepper__step-label",a.labelStyle(d)])},[r.createElementVNode("small",null,r.toDisplayString(l.label),1)],2))],2))),128)),n.vertical?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",$J,[r.createElementVNode("div",IJ,[r.createElementVNode("div",{class:r.normalizeClass(a.dividerStyle(-1))},null,2)])]))],2)}const NJ=ee(BJ,[["render",AJ],["__scopeId","data-v-6046312d"]]);function zJ(){const t=r.useSlots();return!!Object.keys(t).length}function f_(t,e,n,i){return r.computed(()=>{let s="";return i.value?n||(e==="default"?s+=` ${t}--focused`:e==="valid"?s+=` ${t}--focused-valid`:e==="invalid"&&(s+=` ${t}--focused-invalid`)):(s=`${t}`,n?s+=` ${t}--disabled`:e==="valid"?s+=` ${t}--valid`:e==="invalid"&&(s+=` ${t}--invalid`)),s})}const PJ={class:"mobile-stepper-input__container"},LJ=["disabled"],FJ={key:0,class:"mobile-stepper-input__suffix"},RJ=ee({__name:"MobileStepperInput",props:{modelValue:{type:Number},modelModifiers:{}},emits:r.mergeModels({add:null,subtract:null},["update:modelValue"]),setup(t,{emit:e}){r.useCssVars(y=>({"02ea66ee":h.value,"54bcdda5":m.value,"46c93ccc":g.value}));const n=e,i=r.useModel(t,"modelValue"),s=r.useAttrs(),a=r.ref(0),o=r.ref(!1),l=uf.longClickDirective({delay:400,interval:50}),d=f_("mobile-stepper-input",s.state,s.disabled,o),h=r.computed(()=>s.width==="fluid"||s.fluid?"100%":"fit-content"),f=r.computed(()=>s.fluid?"mobile-stepper-input__field--fluid":`mobile-stepper-input__field--${s.width}`),m=r.computed(()=>s.suffix?"8px 2px 8px 8px":"8px"),g=r.computed(()=>s.suffix?"0":"8px");return r.watch(a,y=>{y!==i.value&&(i.value=y)}),r.watch(i,y=>{a.value=y}),(y,w)=>(r.openBlock(),r.createElementBlock("div",PJ,[r.createElementVNode("div",{class:r.normalizeClass(r.unref(d))},[r.withDirectives(r.createElementVNode("input",{ref:"mobile-stepper-input__field","onUpdate:modelValue":w[0]||(w[0]=v=>a.value=v),class:r.normalizeClass(["mobile-stepper-input__field",f.value]),type:"number",disabled:y.$attrs.disabled,onFocus:w[1]||(w[1]=v=>o.value=!0),onBlur:w[2]||(w[2]=v=>o.value=!1)},null,42,LJ),[[r.vModelText,a.value]]),y.$attrs.suffix?(r.openBlock(),r.createElementBlock("span",FJ,[r.renderSlot(y.$slots,"suffix",{},()=>[r.createTextVNode(r.toDisplayString(y.$attrs.suffix),1)],!0)])):r.createCommentVNode("",!0)],2),r.withDirectives(r.createVNode(Vu,{icon:"minus-outline",size:"lg",disabled:y.$attrs.disabled,onCdsClick:w[3]||(w[3]=v=>n("subtract"))},null,8,["disabled"]),[[r.unref(l),()=>n("subtract")]]),r.withDirectives(r.createVNode(Vu,{icon:"plus-outline",size:"lg",disabled:y.$attrs.disabled,onCdsClick:w[4]||(w[4]=v=>n("add"))},null,8,["disabled"]),[[r.unref(l),()=>n("add")]])]))}},[["__scopeId","data-v-89506cfe"]]),HJ=["valid","invalid","default"],WJ=t=>HJ.includes(t),YJ={key:1,class:"stepper-input__label",for:"stepper-input"},jJ={class:"label__content"},UJ=["disabled"],qJ={key:0,class:"stepper-input__suffix"},GJ={class:"stepper-input__icon-container"},KJ=["disabled"],ZJ=["disabled"],XJ={key:4,class:"stepper-input__error-message"},JJ={__name:"StepperInput",props:r.mergeModels({min:{type:[Number,String],default:Number.MIN_SAFE_INTEGER},max:{type:[Number,String],default:Number.MAX_SAFE_INTEGER},step:{type:Number,default:1},label:{type:String,default:"Label"},required:{type:Boolean,default:!1},width:{type:String,default:"default",validator:t=>["thin","default","wide","fluid"].includes(t)},fluid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},state:{type:String,default:"default",validator:WJ},errorMessage:{type:String,default:"Valor inválido"},mobile:{type:Boolean,default:!1},suffix:{type:String,default:""}},{modelValue:{type:Number},modelModifiers:{}}),emits:r.mergeModels({"invalid-number":null,"step-out-of-bounds":null,...ra},["update:modelValue"]),setup(t,{expose:e,emit:n}){r.useCssVars(A=>({"83fd7b6a":k.value,"8442bab0":V.value,"61091f92":S.value}));const i=zJ(),s=uf.longClickDirective({delay:400,interval:50}),a=r.useModel(t,"modelValue"),o=r.useTemplateRef("stepper-input");e({componentRef:o});const l=n,{emitFocus:d,emitBlur:h,emitChange:f,emitClick:m}=ia(l),g=t,y=r.ref(a.value),w=r.ref(!1),v=f_("stepper-input",g.state,g.disabled,w),k=r.computed(()=>g.width==="fluid"||g.fluid?"100%":"fit-content"),C=r.computed(()=>g.state==="invalid"),M=r.computed(()=>g.fluid?"stepper-input__field--fluid":`stepper-input__field--${g.width}`),V=r.computed(()=>g.suffix?"8px 2px 8px 8px":"8px"),S=r.computed(()=>g.suffix?"0":"8px");r.watch(a,A=>{y.value=A}),r.watch(y,A=>{A||(y.value=0),typeof A=="string"&&(y.value=+y.value),A<g.min?(y.value=g.min,l("invalid-number",`'O campo não pode ser menor que ${parseInt(g.min,10)}.'`)):A>g.max?(y.value=g.max,l("invalid-number",`'O campo não pode ser maior que ${parseInt(g.max,10)}.'`)):a.value=parseInt(A,10)}),r.watch(()=>g.step,A=>{(A>g.max||A<g.min)&&(console.warn("A propriedade step está fora dos limites definidos por min e max."),l("step-out-of-bounds"))},{immediate:!0});function T(A){y.value=parseInt(y.value)+A,f()}function I(){w.value=!0,d()}function L(){w.value=!1,h()}return(A,H)=>(r.openBlock(),r.createElementBlock("div",null,[r.unref(i)?r.renderSlot(A.$slots,"label",{key:0},void 0,!0):(r.openBlock(),r.createElementBlock("label",YJ,[r.createElementVNode("span",jJ,[r.createTextVNode(r.toDisplayString(t.label)+" ",1),t.required?(r.openBlock(),r.createBlock(f0,{key:0})):r.createCommentVNode("",!0)])])),t.mobile?(r.openBlock(),r.createBlock(RJ,r.mergeProps({key:2,modelValue:y.value,"onUpdate:modelValue":H[0]||(H[0]=Y=>y.value=Y)},g,{onAdd:H[1]||(H[1]=Y=>T(t.step)),onSubtract:H[2]||(H[2]=Y=>T(-t.step))}),null,16,["modelValue"])):(r.openBlock(),r.createElementBlock("div",{key:3,class:r.normalizeClass(r.unref(v)),onClick:H[6]||(H[6]=(...Y)=>r.unref(m)&&r.unref(m)(...Y))},[r.withDirectives(r.createElementVNode("input",{ref:"stepper-input","onUpdate:modelValue":H[3]||(H[3]=Y=>y.value=Y),disabled:t.disabled,class:r.normalizeClass(["stepper-input__field",M.value]),type:"number",onFocus:I,onBlur:L},null,42,UJ),[[r.vModelText,y.value]]),t.suffix?(r.openBlock(),r.createElementBlock("span",qJ,[r.renderSlot(A.$slots,"suffix",{},()=>[r.createTextVNode(r.toDisplayString(t.suffix),1)],!0)])):r.createCommentVNode("",!0),r.createElementVNode("div",GJ,[r.withDirectives((r.openBlock(),r.createElementBlock("button",{disabled:t.disabled,class:"stepper-input__icon--plus",tabindex:"-1",onFocus:I,onBlur:L,onClick:H[4]||(H[4]=Y=>T(t.step))},[r.createVNode(Ce,{height:"16",width:"16",name:"plus-outline"})],40,KJ)),[[r.unref(s),()=>T(t.step)]]),r.withDirectives((r.openBlock(),r.createElementBlock("button",{disabled:t.disabled,class:"stepper-input__icon--minus",tabindex:"-1",onFocus:I,onBlur:L,onClick:H[5]||(H[5]=Y=>T(-t.step))},[r.createVNode(Ce,{height:"16",width:"16",name:"minus-outline"})],40,ZJ)),[[r.unref(s),()=>T(-t.step)]])])],2)),C.value&&!t.disabled?(r.openBlock(),r.createElementBlock("div",XJ,r.toDisplayString(t.errorMessage),1)):r.createCommentVNode("",!0)]))}},QJ=ee(JJ,[["__scopeId","data-v-2c85b39e"]]),eQ={props:{modelValue:{type:Boolean,default:!1,required:!0},small:{type:Boolean,default:!1},variant:{type:String,default:"green"},large:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},focused:{type:Boolean,default:!1}},data(){return{isActive:this.modelValue,internalFocus:this.focused}},computed:{toggleSwitchSize(){return this.small===this.large?"switch--medium":this.small?"switch--small":"switch--large"}},watch:{modelValue(t,e){t!==e&&(this.isActive=t)}},methods:{handleClick(){this.$emit("update:modelValue",!this.isActive)}}},tQ=["disabled"];function nQ(t,e,n,i,s,a){return r.openBlock(),r.createElementBlock("div",null,[r.createElementVNode("label",{class:r.normalizeClass(["switch",a.toggleSwitchSize])},[r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":e[0]||(e[0]=o=>s.isActive=o),type:"checkbox",disabled:n.disabled,onClick:e[1]||(e[1]=(...o)=>a.handleClick&&a.handleClick(...o))},null,8,tQ),[[r.vModelCheckbox,s.isActive]]),r.createElementVNode("span",{tabindex:"0",class:r.normalizeClass(["switch__slider",[`switch__slider--${n.variant}`,{[`switch__slider--active-focused--${n.variant}`]:s.internalFocus&&s.isActive&&!n.disabled,"switch__slider--inactive-focused":s.internalFocus&&!s.isActive&&!n.disabled,"switch__slider--small":n.small&&n.small!==n.large,"switch__slider--large":n.large&&n.small!==n.large,"switch__slider--medium":n.small===n.large}]]),onFocusout:e[2]||(e[2]=o=>s.internalFocus=!1),onFocusin:e[3]||(e[3]=o=>s.internalFocus=!0)},null,34)],2)])}const iQ=ee(eQ,[["render",nQ],["__scopeId","data-v-69ace31c"]]),B0={components:{CdsCheckbox:iu,CdsIcon:Ce,CdsClickable:er},props:{modelValue:{type:Array,default:()=>[]},items:{type:Array,required:!0,default:()=>[]},fields:{type:Array,default:()=>[]},hover:{type:Boolean,default:!1},allowSelection:{type:Boolean,default:!1},selectionVariant:{type:String,default:"green"},sortable:{type:Boolean,default:!1},sortBy:{type:String,default:null},sortDesc:{type:Boolean,default:!1},noWrap:{type:Boolean,default:!1}},data(){return{selectAll:!1,select:[],localSortDesc:this.sortDesc,localSortBy:this.sortBy,localItems:this.items}},computed:{computedFields(){return this.fields.length>0?this.fields.map(t=>typeof t=="object"?t:{key:t,label:Un.startCase(t)}):this.items.length>0?Object.keys(this.items[0]).map(t=>({key:t,label:Un.startCase(t)})):[]},resolveNoWarp(){return this.noWrap?"nowrap":"pre-line"}},watch:{modelValue:{handler(t,e){if(t!==e){if(!t.length){this.resetSelect();return}t.forEach(n=>{const i=Un.findIndex(this.localItems,n);i>-1&&(this.select[i]=!0)})}},immediate:!0},items(t,e){Un.isEqual(t,e)||(this.localItems=t,this.resetSelect())},sortBy:{handler(t,e){t!==e&&this.handleSortBy(t)},immediate:!0},select:{handler(t){const e=this.localItems.filter((n,i)=>t[i]);this.$emit("update:modelValue",e)},deep:!0}},methods:{hasSlot:Ks,resetSelect(){this.selectAll=!1;for(let t=0;t<this.localItems.length;t++)this.select[t]=!1},handleSelectAll(){for(let t=0;t<this.localItems.length;t++)this.select[t]=this.selectAll},handleSelectRow(t){if(this.selectAll&&!t){this.selectAll=!1;return}this.selectAll=this.select.reduce((e,n)=>e&&n)},handleSortBy(t){if(!this.sortable)return;if(this.resetSelect(),this.localSortBy===t&&this.localSortDesc){this.localSortBy=null,this.localItems=this.items;return}const e=this.localSortDesc?"asc":"desc";this.localSortDesc=this.localSortBy===t?!this.localSortDesc:!1,this.localSortBy=t,this.localItems=Un.orderBy(this.items,[this.localSortBy],[e])},resolveHeaderItemClass(t){return t!==0&&t!==this.fields.length-1?"table__header-item":t===0?"table__header-item--first":"table__header-item--last"},resolveContentItemClass(t,e){return t!==this.items.length-1?"table__item":e!==0&&e!==this.fields.length-1?"table__item--common":e===0?"table__item--first":"table__item--last"},resolveItemClass(){return this.hover?"table__content--hoverable":""},resolveValue(t,e){return e.formatter&&typeof e.formatter=="function"?e.formatter(t[e.key]):t[e.key]}}},p_=()=>{r.useCssVars(t=>({"513cc216":t.resolveNoWarp}))},m_=B0.setup;B0.setup=m_?(t,e)=>(p_(),m_(t,e)):p_;const rQ={class:"table__container"},sQ={class:"table__header"},aQ={class:"table__header-item-content"},oQ=["width"];function lQ(t,e,n,i,s,a){const o=r.resolveComponent("cds-checkbox"),l=r.resolveComponent("cds-icon"),d=r.resolveComponent("cds-clickable");return r.openBlock(),r.createElementBlock("table",rQ,[r.createElementVNode("tr",sQ,[n.allowSelection?(r.openBlock(),r.createElementBlock("th",{key:0,class:r.normalizeClass(["table__select-item",a.resolveHeaderItemClass(0)])},[r.createVNode(o,{id:"select-all-rows",modelValue:s.selectAll,"onUpdate:modelValue":[e[0]||(e[0]=h=>s.selectAll=h),a.handleSelectAll],class:"table__select-checkbox","no-text":"",variant:n.selectionVariant},null,8,["modelValue","variant","onUpdate:modelValue"])],2)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(a.computedFields,(h,f)=>(r.openBlock(),r.createElementBlock("th",{key:f,class:r.normalizeClass(a.resolveHeaderItemClass(f))},[r.createElementVNode("div",aQ,[a.hasSlot(t.$slots,"header-item")?r.renderSlot(t.$slots,"header-item",{key:0,data:h},void 0,!0):(r.openBlock(),r.createBlock(d,{key:1,id:`sort-icon-${h.key}`,clickable:n.sortable,onClick:r.withModifiers(m=>a.handleSortBy(h.key),["stop"])},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(h.label)+" ",1),n.sortable&&h.label&&h.key!==s.localSortBy?(r.openBlock(),r.createBlock(l,{key:0,class:"table__sort-icon",height:"13",width:"13",name:"swap-vertical-arrows-outline"})):n.sortable&&h.label&&s.localSortDesc?(r.openBlock(),r.createBlock(l,{key:1,class:"table__sort-icon",height:"13",width:"13",name:"sort-descending-duotone"})):n.sortable&&h.label?(r.openBlock(),r.createBlock(l,{key:2,class:"table__sort-icon",height:"13",width:"13",name:"sort-ascending-duotone"})):r.createCommentVNode("",!0)]),_:2},1032,["id","clickable","onClick"]))])],2))),128))]),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.localItems,(h,f)=>(r.openBlock(),r.createElementBlock("tr",{key:f,class:r.normalizeClass(a.resolveItemClass())},[n.allowSelection?(r.openBlock(),r.createElementBlock("td",{key:0,class:r.normalizeClass(["table__select-item",a.resolveContentItemClass(f,0)])},[r.createVNode(o,{id:`select-row-${f}`,modelValue:s.select[f],"onUpdate:modelValue":[m=>s.select[f]=m,a.handleSelectRow],class:"table__select-checkbox","no-text":"",variant:n.selectionVariant},null,8,["id","modelValue","onUpdate:modelValue","variant"])],2)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(a.computedFields,(m,g)=>(r.openBlock(),r.createElementBlock("td",{key:g,class:r.normalizeClass(a.resolveContentItemClass(f,g)),width:m.width?m.width:"auto"},[r.renderSlot(t.$slots,"table-item",{data:h,field:m.key,rowIndex:f,colIndex:g},()=>[r.createTextVNode(r.toDisplayString(a.resolveValue(h,m)),1)],!0)],10,oQ))),128))],2))),128))])}const cQ=ee(B0,[["render",lQ],["__scopeId","data-v-3dcad3d0"]]),dQ={components:{CdsIcon:Ce},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=>Fi.includes(t)},showAddAction:{type:Boolean,default:!1}},data(){return{internalActiveTab:this.activeTab,colorOptions:Fi}},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},handleRightClick(t,e){this.$emit("right-click",{event:t,item:e})},handleClick(t,e){this.$emit("tabs-change",{event:t,item:e}),this.internalActiveTab=e},handleAddAction(t){this.$emit("add-action",t)},isActive(t){return fo(this.internalActiveTab,t)}}},uQ={id:"tabs"},hQ={class:"inner-tabs__header"},fQ=["id"],pQ=["onClick","onContextmenu"],mQ={class:"inner-tabs__text"},gQ={key:0,role:"presentation",class:"nav-item cds-tab__action"},yQ={class:"inner-tabs__content"};function bQ(t,e,n,i,s,a){const o=r.resolveComponent("cds-icon");return r.openBlock(),r.createElementBlock("div",uQ,[r.createElementVNode("ul",hQ,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.tabs,(l,d)=>(r.openBlock(),r.createElementBlock("li",{id:`${d}-${l.name}-tab`,key:`${d}-${l.name}-tab`,role:"presentation",class:"inner-tabs__header-item"},[r.createElementVNode("a",{role:"tab",href:"javascript:void(0)",target:"_self",class:r.normalizeClass(["inner-tabs__tab",a.isActive(l)?"inner-tabs__tab--active":"inner-tabs__tab--inactive"]),style:r.normalizeStyle(a.activeBorderStyle),onClick:h=>a.handleClick(h,l),onContextmenu:r.withModifiers(h=>a.handleRightClick(h,l),["prevent","stop"])},[r.createElementVNode("span",mQ,r.toDisplayString(l.title),1)],46,pQ)],8,fQ))),128)),n.showAddAction?(r.openBlock(),r.createElementBlock("li",gQ,[r.createElementVNode("a",{role:"tab",href:"javascript:void(0)",target:"_self",class:"nav-link",onClick:e[0]||(e[0]=r.withModifiers((...l)=>a.handleAddAction&&a.handleAddAction(...l),["prevent"]))},[r.createVNode(o,{height:"32",width:"32",name:"plus-outline"})])])):r.createCommentVNode("",!0)]),r.createElementVNode("div",yQ,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.tabs,(l,d)=>(r.openBlock(),r.createElementBlock("div",{key:`${d}-${l.name}-tab`,role:"tabpanel",class:r.normalizeClass(["content__pane",a.isActive(l)?"content__pane--active":"content__pane--inactive"])},[r.renderSlot(t.$slots,a.getSlotName(l))],2))),128))])])}const _Q=ee(dQ,[["render",bQ]]),vQ={__name:"TextArea",props:r.mergeModels({label:{type:String,default:"Label"},required:{type:Boolean,default:!1},placeholder:{type:String,default:"Digite aqui a descrição"},disabled:{type:Boolean,default:!1},state:{type:String,default:"default"},errorMessage:{type:String,default:"Valor inválido"},supportingText:{type:[String,Array],default:""},supportLink:{type:String,default:""},supportLinkUrl:{type:String,default:"https://cuida.framer.wiki/"},fluid:{type:Boolean,default:!1,required:!1},lazy:{type:Boolean,default:!1},tooltip:{type:String,default:null},tooltipIcon:{type:String,default:"info-outline"},floatingLabel:{type:Boolean,default:!1}},{modelValue:{type:String},modelModifiers:{}}),emits:r.mergeModels({...ra},["update:modelValue"]),setup(t,{expose:e,emit:n}){var y,w;const i=r.useTemplateRef("baseInput"),s=r.useModel(t,"modelValue"),a=t,o=n,l=r.ref(s.value),{emitClick:d,emitChange:h,emitFocus:f,emitBlur:m,emitKeydown:g}=ia(o);return r.watch(s,(v,k)=>{v!==k&&(l.value=v)},{immediate:!0}),r.watch(l,v=>{s.value=v}),e({componentRef:(y=i.value)==null?void 0:y.componentRef,isFocused:(w=i.value)==null?void 0:w.isFocused,focus:()=>{var v;return(v=i.value)==null?void 0:v.focus()},blur:()=>{var v;return(v=i.value)==null?void 0:v.blur()},clear:()=>{var v;return(v=i.value)==null?void 0:v.clear()},select:()=>{var v;return(v=i.value)==null?void 0:v.select()}}),(v,k)=>(r.openBlock(),r.createElementBlock("div",null,[r.createVNode(yo,r.mergeProps({ref:"baseInput",modelValue:l.value,"onUpdate:modelValue":k[0]||(k[0]=C=>l.value=C)},{...v.$attrs,...a},{type:"textarea","support-link-url":t.supportLinkUrl,"support-link":t.supportLink,"floating-label":t.floatingLabel,onClick:r.unref(d),onChange:r.unref(h),onFocus:r.unref(f),onBlur:r.unref(m),onKeydown:r.unref(g)}),null,16,["modelValue","support-link-url","support-link","floating-label","onClick","onChange","onFocus","onBlur","onKeydown"])]))}},wQ={__name:"TextInput",props:r.mergeModels({label:{type:String,default:"Label"},disabled:{type:Boolean,default:!1},state:{type:String,default:"default"},inputType:{type:String,default:"text",validator:t=>["text","email"].includes(t)},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},mask:{type:[String,Array],default:null},tooltip:{type:String,default:null},tooltipIcon:{type:String,default:"info-outline"},linkText:{type:String,default:null},linkUrl:{type:String,default:"https://cuida.framer.wiki/"},supportLink:{type:String,default:null},supportingText:{type:[String,Array],default:""},supportLinkUrl:{type:String,default:"https://cuida.framer.wiki/"},lazy:{type:Boolean,default:!1},mobile:{type:Boolean,default:!1},floatingLabel:{type:Boolean,default:!1}},{modelValue:{type:String},modelModifiers:{}}),emits:r.mergeModels({...ra},["update:modelValue"]),setup(t,{expose:e,emit:n}){var v,k;const i=ac,s=r.useTemplateRef("baseInput"),a=r.useModel(t,"modelValue"),o=t,l=n,d=r.ref(""),h=r.ref(o.mask),{emitClick:f,emitChange:m,emitFocus:g,emitBlur:y,emitKeydown:w}=ia(l);return r.watch(o.mask,C=>h.value=C),r.watch(a,(C,M)=>{C!==M&&(d.value=C)},{immediate:!0}),r.watch(d,C=>{a.value=C}),e({componentRef:(v=s.value)==null?void 0:v.componentRef,isFocused:(k=s.value)==null?void 0:k.isFocused,focus:()=>{var C;return(C=s.value)==null?void 0:C.focus()},blur:()=>{var C;return(C=s.value)==null?void 0:C.blur()},clear:()=>{var C;return(C=s.value)==null?void 0:C.clear()},select:()=>{var C;return(C=s.value)==null?void 0:C.select()}}),(C,M)=>r.withDirectives((r.openBlock(),r.createBlock(yo,r.mergeProps({ref:"baseInput",modelValue:d.value,"onUpdate:modelValue":M[0]||(M[0]=V=>d.value=V)},{...C.$attrs,...o},{"support-link-url":t.supportLinkUrl||t.linkUrl,"support-link":t.supportLink||t.linkText,"floating-label":t.floatingLabel||t.mobile,onClick:r.unref(f),onChange:r.unref(m),onFocus:r.unref(g),onBlur:r.unref(y),onKeydown:r.unref(w)}),null,16,["modelValue","support-link-url","support-link","floating-label","onClick","onChange","onFocus","onBlur","onKeydown"])),[[r.unref(i),h.value]])}},E0=t=>/[0-2][0-9]:[0-5][0-9]/.test(t),kQ=(t,e)=>E0(t)&&E0(e)?ge.fromFormat(t,"HH:mm").diff(ge.fromFormat(e,"HH:mm"))>0:!1,CQ={directives:{facade:ac},props:{modelValue:{type:[String,Array],default:"",validator:t=>t===""||t===[]?!0:typeof t=="string"?E0(t):t.length===2&&kQ(t[1],t[0])},id:{type:String,default:"time-input"},label:{type:String,required:!0},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},mode:{type:String,default:"single",validator:t=>["single","range"].includes(t)},state:{type:String,default:"default",validator:t=>["default","valid","invalid"].includes(t)},errorMessage:{type:String,default:"Horário inválido"}},data(){return{startHour:"",startMinute:"",endHour:"",endMinute:""}},computed:{computedInputClass(){if(this.disabled)return"input__time--disabled";switch(this.state){case"valid":return"input__time--valid";case"invalid":return"input__time--invalid";default:return"input__time"}}},watch:{modelValue(t,e){t===e||t==null||this.buildTimeElements(t)}},mounted(){this.buildTimeElements(this.modelValue)},methods:{handleTimeInput(){if(this.startHour=this.startHour?this.resolveTimeElement(this.startHour,23):"",this.startMinute=this.startMinute?this.resolveTimeElement(this.startMinute,59):"",this.endHour=this.endHour?this.resolveTimeElement(this.endHour,23):"",this.endMinute=this.endMinute?this.resolveTimeElement(this.endMinute,59):"",!(this.startHour&&this.startMinute)||this.range&&!(this.endHour&&this.endMinute)){this.$emit("update:modelValue",null);return}if(this.mode==="range"){this.resolveRangeInterval();return}this.$emit("update:modelValue",`${this.startHour}:${this.startMinute}`)},resolveRangeInterval(){const t=Pt.fromDateTimes(ge.fromFormat(`${this.startHour}:${this.startMinute}`,"HH:mm"),ge.fromFormat(`${this.endHour}:${this.endMinute}`,"HH:mm"));if(t.invalid){this.$emit("update:modelValue",null);return}this.$emit("update:modelValue",[t.start.toFormat("HH:mm"),t.end.toFormat("HH:mm")])},formatTimeElement(t){return parseInt(t,10).toLocaleString(void 0,{minimumIntegerDigits:2,maximumFractionDigits:0})},resolveTimeElement(t,e){const n=this.formatTimeElement(t);return n>e?e:n<0?"00":n},buildTimeElements(t){if(this.mode==="single"){if(typeof t!="string")return;[this.startHour,this.startMinute]=t.split(":");return}if(typeof t=="string"){this.startHour="",this.startMinute="",this.endHour="",this.endMinute="";return}[this.startHour,this.startMinute]=t[0].split(":"),[this.endHour,this.endMinute]=t[1].split(":")}}},xQ={class:"input__label"},SQ=["for"],MQ={key:0,class:"label__required-indicator"},BQ=["id"],EQ=["id","disabled"],DQ=["id","disabled"],OQ={key:0,class:"input__separator"},VQ={key:1},TQ=["id","disabled"],$Q=["id","disabled"],IQ={key:0,class:"input__message"};function AQ(t,e,n,i,s,a){const o=r.resolveDirective("facade");return r.openBlock(),r.createElementBlock("div",null,[r.createElementVNode("label",xQ,[r.createElementVNode("div",{class:"label__content",for:n.id},[r.createElementVNode("span",null,r.toDisplayString(n.label),1),n.required?(r.openBlock(),r.createElementBlock("span",MQ," * ")):r.createCommentVNode("",!0)],8,SQ)]),r.createElementVNode("div",{id:n.id,class:"input__container"},[r.createElementVNode("div",null,[r.withDirectives(r.createElementVNode("input",{id:`${n.id}-start-hour`,"onUpdate:modelValue":e[0]||(e[0]=l=>s.startHour=l),class:r.normalizeClass(a.computedInputClass),disabled:n.disabled,type:"text",min:"0",max:"23",step:"1",placeholder:"00",onKeyup:[e[1]||(e[1]=r.withKeys(l=>s.startHour++,["up"])),e[2]||(e[2]=r.withKeys(l=>s.startHour>0?s.startHour--:null,["down"]))],onInput:e[3]||(e[3]=(...l)=>a.handleTimeInput&&a.handleTimeInput(...l))},null,42,EQ),[[r.vModelText,s.startHour],[o,"##"]]),e[16]||(e[16]=r.createTextVNode(" : ")),r.withDirectives(r.createElementVNode("input",{id:`${n.id}-start-minute`,"onUpdate:modelValue":e[4]||(e[4]=l=>s.startMinute=l),class:r.normalizeClass(a.computedInputClass),disabled:n.disabled,type:"text",min:"0",max:"59",step:"1",placeholder:"00",onKeyup:[e[5]||(e[5]=r.withKeys(l=>s.startMinute++,["up"])),e[6]||(e[6]=r.withKeys(l=>s.startMinute>0?s.startMinute--:null,["down"]))],onInput:e[7]||(e[7]=(...l)=>a.handleTimeInput&&a.handleTimeInput(...l))},null,42,DQ),[[r.vModelText,s.startMinute],[o,"##"]])]),n.mode==="range"?(r.openBlock(),r.createElementBlock("div",OQ," Até ")):r.createCommentVNode("",!0),n.mode==="range"?(r.openBlock(),r.createElementBlock("div",VQ,[r.withDirectives(r.createElementVNode("input",{id:`${n.id}-end-hour`,"onUpdate:modelValue":e[8]||(e[8]=l=>s.endHour=l),class:r.normalizeClass(a.computedInputClass),disabled:n.disabled,type:"text",min:"0",max:"23",step:"1",placeholder:"00",onKeyup:[e[9]||(e[9]=r.withKeys(l=>s.endHour++,["up"])),e[10]||(e[10]=r.withKeys(l=>s.endHour>0?s.endHour--:null,["down"]))],onInput:e[11]||(e[11]=(...l)=>a.handleTimeInput&&a.handleTimeInput(...l))},null,42,TQ),[[r.vModelText,s.endHour],[o,"##"]]),e[17]||(e[17]=r.createTextVNode(" : ")),r.withDirectives(r.createElementVNode("input",{id:`${n.id}-end-minute`,"onUpdate:modelValue":e[12]||(e[12]=l=>s.endMinute=l),class:r.normalizeClass(a.computedInputClass),disabled:n.disabled,type:"text",min:"0",max:"59",step:"1",placeholder:"00",onKeyup:[e[13]||(e[13]=r.withKeys(l=>s.endMinute++,["up"])),e[14]||(e[14]=r.withKeys(l=>s.endMinute>0?s.endMinute--:null,["down"]))],onInput:e[15]||(e[15]=(...l)=>a.handleTimeInput&&a.handleTimeInput(...l))},null,42,$Q),[[r.vModelText,s.endMinute],[o,"##"]])])):r.createCommentVNode("",!0)],8,BQ),n.state==="invalid"&&!n.disabled?(r.openBlock(),r.createElementBlock("div",IQ,r.toDisplayString(n.errorMessage),1)):r.createCommentVNode("",!0)])}const NQ=ee(CQ,[["render",AQ],["__scopeId","data-v-8cf870de"]]),D0={props:{reverse:{type:Boolean,default:!1}},data(){return{oppositeSlotMaxWidth:"0"}},computed:{directionResolver(){return this.reverse?"column-reverse":"column"},oppositeSlotWidthResolver(){return`${this.oppositeSlotMaxWidth}px`}},mounted(){document.querySelectorAll(".cds-timeline-item__opposite").forEach(e=>{let n=e.getClientRects()[0].width;this.oppositeSlotMaxWidth<n&&(this.oppositeSlotMaxWidth=n)})}},g_=()=>{r.useCssVars(t=>({"7ea49ddc":t.directionResolver,"1372a9d4":t.oppositeSlotWidthResolver}))},y_=D0.setup;D0.setup=y_?(t,e)=>(g_(),y_(t,e)):g_;const zQ={class:"cds-timeline"};function PQ(t,e,n,i,s,a){return r.openBlock(),r.createElementBlock("div",zQ,[r.renderSlot(t.$slots,"default")])}const LQ=ee(D0,[["render",PQ]]),FQ={components:{CdsSpinner:Ca},props:{variant:{type:String,default:"green"},loading:{type:Boolean,default:!1},hollowed:{type:Boolean,default:!1}},methods:{hasSlot:Ks}},RQ={class:"cds-timeline-item"},HQ={class:"cds-timeline-item__opposite"},WQ={class:"cds-timeline-item__timeline-container"},YQ={class:"cds-timeline-item__content-container"},jQ={key:0,class:"cds-timeline-item__title"},UQ={class:"cds-timeline-item__text"};function qQ(t,e,n,i,s,a){const o=r.resolveComponent("cds-spinner");return r.openBlock(),r.createElementBlock("div",RQ,[r.createElementVNode("div",HQ,[r.renderSlot(t.$slots,"opposite",{},void 0,!0)]),r.createElementVNode("div",WQ,[n.loading?(r.openBlock(),r.createBlock(o,{key:1,size:"sm",class:"spinner",variant:n.variant},null,8,["variant"])):(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass(`cds-timeline-item__pin--${n.variant}${n.hollowed?"--hollowed":""}`)},null,2)),r.createElementVNode("div",{class:r.normalizeClass(n.loading||n.hollowed?"tail--dashed":"tail")},null,2)]),r.createElementVNode("div",YQ,[a.hasSlot(t.$slots,"title")?(r.openBlock(),r.createElementBlock("div",jQ,[r.renderSlot(t.$slots,"title",{},void 0,!0)])):r.createCommentVNode("",!0),r.createElementVNode("span",UQ,[r.renderSlot(t.$slots,"content",{},void 0,!0)])])])}const GQ=ee(FQ,[["render",qQ],["__scopeId","data-v-e1fab2ab"]]),KQ={class:"top-app-bar"},ZQ={class:"top-app-bar__menu-container"},XQ=["src","alt"],JQ={key:3,class:"top-app-bar__title"},QQ={class:"top-app-bar__actions"},eee=ee({__name:"TopAppBar",props:{title:{type:String,default:"",required:!0},logoUrl:{type:String,default:""},showMenuIcon:{type:Boolean,default:!1},showBackNavigation:{type:Boolean,default:!1},defaultRoute:{type:Object,default:()=>({})}},emits:["on-menu-click"],setup(t,{emit:e}){const{isMobile:n}=hf(),i=e,s=t,a=r.computed(()=>n.value?"24":"34");function o(){var d,h;return(d=s.defaultRoute)!=null&&d.path?s.defaultRoute.path:(h=s.defaultRoute)!=null&&h.name?{name:s.defaultRoute.path}:null}function l(){const d=o();return d||window.history.back()}return(d,h)=>{const f=r.resolveComponent("router-link");return r.openBlock(),r.createElementBlock("div",KQ,[r.createElementVNode("div",ZQ,[t.showMenuIcon?(r.openBlock(),r.createBlock(Ce,{key:0,class:"top-app-bar__menu",name:"menu-outline",width:a.value,height:a.value,onClick:h[0]||(h[0]=m=>i("on-menu-click"))},null,8,["width","height"])):t.showBackNavigation?(r.openBlock(),r.createBlock(f,{key:1,to:l},{default:r.withCtx(()=>[r.createVNode(Ce,{class:"top-app-bar__back-arrow",name:"arrow-left-outline",width:a.value,height:a.value},null,8,["width","height"])]),_:1})):r.createCommentVNode("",!0),t.logoUrl?(r.openBlock(),r.createElementBlock("img",{key:2,class:"top-app-bar__logo-image",src:t.logoUrl,alt:t.title},null,8,XQ)):(r.openBlock(),r.createElementBlock("h2",JQ,r.toDisplayString(t.title),1))]),r.createElementVNode("div",QQ,[r.renderSlot(d.$slots,"actions",{},void 0,!0)])])}}},[["__scopeId","data-v-9d1ac631"]]),O0={directives:{cdstip:al},components:{CdsIcon:Ce,CdsClickable:er},props:{modelValue:{type:String,default:""},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"},mobile:{type:Boolean,default:!1}},data(){return{internalValue:"",isBeingFocused:!1,showPassword:!1}},computed:{customInputType(){return this.showPassword?"text":"password"},customTextPasswordInput(){return this.showPassword?"Ocultar":"Mostrar"},disableTextPasswordInput(){return this.internalValue.length<1||this.disabled},hasSlots(){return!!Object.keys(this.$slots).length},stepperInputDynamicClass(){let t=this.fluid?"password-input--fluid":"password-input";return this.isBeingFocused?this.disabled||(this.state==="default"?t+=" password-input--focused":this.state==="valid"?t+=" password-input--focused-valid":this.state==="invalid"&&(t+=" password-input--focused-invalid")):this.disabled?t+=" password-input--disabled":this.state==="valid"?t+=" password-input--valid":this.state==="invalid"&&(t+=" password-input--invalid"),t},labelDynamicClass(){const t=this.mobile?"mobile-label":"label";return this.fluid?`password-input__${t}--fluid`:`password-input__${t}`},inputClass(){const t=this.mobile?"mobile-field":"field";return this.fluid?`password-input__${t}--fluid`:`password-input__${t}`},errorState(){return this.state==="invalid"},resolveInputWidth(){return this.mobile?"300px":"266px"}},watch:{modelValue:{handler(t,e){t!==e&&(this.internalValue=t)},immediate:!0},internalValue(t){this.$emit("update:modelValue",t)}},methods:{generateKey:Gr,handleShowPassword(){this.showPassword=!this.showPassword}}},b_=()=>{r.useCssVars(t=>({"5fad3268":t.resolveInputWidth}))},__=O0.setup;O0.setup=__?(t,e)=>(b_(),__(t,e)):b_;const tee={key:0},nee={class:"password-input__label__content",for:"cds-password-input"},iee={key:0,class:"password-input__label__required-indicator"},ree=["id","type","placeholder","disabled"],see={key:0,class:"password-input__password-toogle"},aee={key:0,class:"password-input__error-message"};function oee(t,e,n,i,s,a){const o=r.resolveComponent("cds-icon"),l=r.resolveComponent("cds-clickable"),d=r.resolveDirective("cdstip");return r.openBlock(),r.createElementBlock("div",null,[r.createElementVNode("span",null,[a.hasSlots?(r.openBlock(),r.createElementBlock("span",tee,[r.renderSlot(t.$slots,"label",{},void 0,!0)])):(r.openBlock(),r.createElementBlock("label",{key:1,class:r.normalizeClass(a.labelDynamicClass)},[r.createElementVNode("div",nee,[r.createElementVNode("span",null,r.toDisplayString(n.label),1),n.required?(r.openBlock(),r.createElementBlock("span",iee," * ")):r.createCommentVNode("",!0),n.tooltip?r.withDirectives((r.openBlock(),r.createBlock(o,{key:1,name:n.tooltipIcon,height:"20",width:"20",class:"password-input__label__icon"},null,8,["name"])),[[d,n.tooltip]]):r.createCommentVNode("",!0)])],2))]),r.createElementVNode("div",{class:r.normalizeClass(a.stepperInputDynamicClass)},[r.withDirectives(r.createElementVNode("input",{id:`cds-password-input-${t.$attrs.id||a.generateKey()}`,"onUpdate:modelValue":e[0]||(e[0]=h=>s.internalValue=h),type:a.customInputType,placeholder:n.placeholder,disabled:n.disabled,class:r.normalizeClass(a.inputClass),onFocus:e[1]||(e[1]=h=>s.isBeingFocused=!0),onBlur:e[2]||(e[2]=h=>s.isBeingFocused=!1)},null,42,ree),[[r.vModelDynamic,s.internalValue]]),a.disableTextPasswordInput?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",see,[r.createVNode(l,{id:"cds-clickable",clickable:"",onClick:a.handleShowPassword},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(a.customTextPasswordInput),1)]),_:1},8,["onClick"])]))],2),a.errorState&&!n.disabled?(r.openBlock(),r.createElementBlock("div",aee,r.toDisplayString(n.errorMessage),1)):r.createCommentVNode("",!0)])}const lee=ee(O0,[["render",oee],["__scopeId","data-v-e719017b"]]),cee={class:"camera-container"},dee={key:1,class:"camera-container__failed"},uee=["src"],hee=ee({__name:"WebcamModal",props:{modelValue:{type:Boolean,required:!0},title:{type:String,default:"Camera"},feedbackText:{type:String,default:"Foto capturada"},takePhotoButtonText:{type:String,default:"Tirar foto"},takeAnotherPhotoButtonText:{type:String,default:"Tirar outra"},savePhotoButtonText:{type:String,default:"Salvar foto"},errorMessageText:{type:String,default:"Erro ao carregar a câmera"},variant:{type:String,default:"green"}},emits:["update:model-value","on-take-photo"],setup(t,{emit:e}){const n=e,i=t,s=r.ref(!0),a=r.ref(null),o=r.ref(null),l=r.ref(null),d=r.ref(!1),h=r.ref(null),f=r.ref(!1),m=r.ref(!1),g=r.computed(()=>s.value||m.value);r.watch(()=>i.modelValue,M=>{M&&setTimeout(()=>y(),100),f.value=M},{immediate:!0}),r.watch(f,M=>n("update:model-value",M));async function y(){let M=null;try{M=await navigator.mediaDevices.getUserMedia({video:!0}),a.value.srcObject=M,d.value=!0}catch(V){m.value=!0,console.error("Erro ao acessar a câmera: "+V.message)}s.value=!1}function w(){a.value&&a.value.srcObject&&(a.value.srcObject.getTracks().forEach(S=>S.stop()),a.value.srcObject=null),d.value=!1,s.value=!0,k()}function v(){if(!a.value||!o.value)return;const M=o.value,V=M.getContext("2d");M.width=a.value.videoWidth,M.height=a.value.videoHeight,V.drawImage(a.value,0,0,M.width,M.height),M.toBlob(S=>{const T=new File([S],"captured-photo.png",{type:"image/png"});l.value=URL.createObjectURL(S),h.value=T})}function k(){l.value=null,h.value=null}function C(){h.value&&(n("on-take-photo",h.value),f.value=!1,w())}return(M,V)=>(r.openBlock(),r.createBlock(P5,{modelValue:f.value,"onUpdate:modelValue":V[0]||(V[0]=S=>f.value=S),size:"lg",title:t.title,"no-footer":"",onClose:w,onOk:V[1]||(V[1]=S=>f.value=!1)},{default:r.withCtx(()=>[r.createVNode(qt,{justify:"center",direction:"column",gap:"3"},{default:r.withCtx(()=>[r.createElementVNode("div",cee,[s.value?(r.openBlock(),r.createBlock(qt,{key:0,class:"camera-container__loading",align:"center",justify:"center"},{default:r.withCtx(()=>[r.createVNode(Ca,{variant:t.variant,size:"md"},null,8,["variant"])]),_:1})):r.createCommentVNode("",!0),m.value?(r.openBlock(),r.createElementBlock("div",dee,[r.createVNode(qt,{align:"center",gap:"2"},{default:r.withCtx(()=>[r.createVNode(Ce,{height:"26",width:"26",name:"warning-outline"}),r.createElementVNode("div",null,r.toDisplayString(t.errorMessageText),1)]),_:1})])):r.createCommentVNode("",!0),r.withDirectives(r.createElementVNode("img",{class:"camera-container__photo",alt:"Sua Foto",src:l.value},null,8,uee),[[r.vShow,!g.value&&l.value]]),r.withDirectives(r.createElementVNode("video",{ref_key:"videoRef",ref:a,class:"camera-container__video",playsinline:"",autoplay:""},null,512),[[r.vShow,!g.value&&!l.value]])]),r.createVNode(qt,{class:r.normalizeClass(["camera-container__feedback-text",{"camera-container__feedback-text--hidden":!h.value}]),align:"center"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(t.feedbackText),1)]),_:1},8,["class"]),r.createVNode(qt,{gap:"2",class:"camera-container__buttons"},{default:r.withCtx(()=>[l.value?(r.openBlock(),r.createBlock(ni,{key:1,class:"camera-container__button",size:"lg",variant:t.variant,disabled:!d.value,secondary:"",onClick:r.withModifiers(k,["prevent"])},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(t.takeAnotherPhotoButtonText),1)]),_:1},8,["variant","disabled"])):(r.openBlock(),r.createBlock(ni,{key:0,class:"camera-container__button",size:"lg",variant:t.variant,disabled:!d.value,secondary:"",onClick:r.withModifiers(v,["prevent"])},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(t.takePhotoButtonText),1)]),_:1},8,["variant","disabled"])),r.createVNode(ni,{class:"camera-container__button",size:"lg",variant:t.variant,disabled:!l.value,onClick:r.withModifiers(C,["prevent"])},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(t.savePhotoButtonText),1)]),_:1},8,["variant","disabled"])]),_:1})]),_:1}),r.createElementVNode("canvas",{ref_key:"canvasRef",ref:o},null,512)]),_:1},8,["modelValue","title"]))}},[["__scopeId","data-v-ec0720ec"]]),fee={components:{CdsBox:eu,CdsButton:ni},props:{steps:{type:Array,default:()=>[],required:!0,validator:t=>t.length>=2&&t.length<=3},activeStep:{type:Number,default:0,validator:t=>t>=0&&t<=2},clickable:{type:Boolean,default:!1},nextButtonText:{type:String,default:"Próximo"},cancelButtonText:{type:String,default:"Anterior"},nextButtonVariant:{type:String,default:"green"},disableNextButton:{type:Boolean,default:!1}},data(){return{currentStep:this.activeStep}},computed:{disabledBack(){return this.currentStep<=0},disabledNext(){return this.currentStep>=this.steps.length-1}},watch:{activeStep:{handler(t,e){t!==e&&(this.currentStep=t)},immediate:!0},currentStep(t,e){t!==e&&this.$emit("step-change",t)}},methods:{emptyStateText(t){return`Preencha todos os campos obrigatórios da etapa anterior para
75
+ e as demais props são booleanas e representam o status do passo.`},vertical:{type:Boolean,default:!1,required:!1},value:{type:Number,default:1,required:!0},disableOnClick:{type:Boolean,default:!1}},data(){return{internalValue:this.value-1}},watch:{internalValue(t){this.$emit("input",t+1)},value:{handler(t){this.internalValue=t-1},immediate:!0}},methods:{circleStyle(t,e){const n=this.disableOnClick?"":"stepper__step--clickable";return t.inProcessing?`stepper__step--in-processing ${n}`:t.error?`stepper__step--error ${n}`:t.completed?`stepper__step--completed ${n}`:e===this.internalValue?`stepper__step--active ${n}`:` stepper__step--muted ${n}`},changeStep(t){this.disableOnClick||(this.internalValue=t)},dividerStyle(t){const e=this.vertical?"vertical-":"";if(t<0)return`stepper__${e}divider--default`;const n=t===this.steps.length-1,i=t===0,s=t-1,a=t+1;return!n&&this.steps[t].completed&&this.steps[a].completed?`stepper__${e}divider--completed`:!n&&t>0&&this.steps[t].completed&&this.steps[s].completed||!n&&i&&this.steps[t].completed?`stepper__${e}divider--in-progress`:`stepper__${e}divider--default`},stepSectionStyle(t){let e="";return e+=t!==this.steps.length-1?"stepper__step-section ":"",e+=this.vertical?"stepper__step-section--vertical":"",e},labelStyle(t){let e="";return e+=t===this.internalValue?"stepper__step-label--active":"stepper__step-label--muted",e+=this.vertical?"":" stepper__step-label--horizontal",e+=this.disableOnClick?"":" stepper__step--clickable",e}}},EJ={class:"stepper__edge"},DJ=["onClick"],OJ=["id","onClick"],VJ={key:2,class:"stepper__processing-icon"},TJ={key:3,class:"stepper__icon-text"},$J={key:0,class:"stepper__edge-container"},IJ={class:"stepper__edge"};function AJ(t,e,n,i,s,a){const o=r.resolveComponent("cds-icon");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(n.vertical?"stepper--vertical":"stepper")},[r.createElementVNode("div",{class:r.normalizeClass(n.vertical?"stepper__edge-container--vertical":"stepper__edge-container")},[r.createElementVNode("div",EJ,[r.createElementVNode("div",{class:r.normalizeClass(a.dividerStyle(-1))},null,2)])],2),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.steps,(l,d)=>(r.openBlock(),r.createElementBlock("div",{key:d,class:r.normalizeClass(a.stepSectionStyle(d))},[n.vertical?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["stepper__step-label--vertical",a.labelStyle(d)]),onClick:h=>a.changeStep(d)},[r.createElementVNode("small",null,r.toDisplayString(l.label),1)],10,DJ)):r.createCommentVNode("",!0),r.createElementVNode("div",{id:`step-${d+1}`,class:r.normalizeClass(n.vertical?"stepper__icon-container--vertical":"stepper__icon-container"),onClick:h=>a.changeStep(d)},[r.createElementVNode("div",{class:r.normalizeClass(["stepper__icon-circle",a.circleStyle(l,d)])},[l.completed?(r.openBlock(),r.createBlock(o,{key:0,height:"32",width:"32",name:"check-outline"})):l.error?(r.openBlock(),r.createBlock(o,{key:1,height:"32",width:"32",name:"x-outline"})):l.inProcessing?(r.openBlock(),r.createElementBlock("div",VJ,e[0]||(e[0]=[r.createElementVNode("svg",{width:"19",height:"22",viewBox:"0 0 19 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[r.createElementVNode("path",{d:"M18.78 16.6325C17.738 18.0472 16.3457 19.1664 14.7402 19.8799C13.1346 20.5935 11.3709 20.8769 9.62259 20.7023C7.87428 20.5276 6.20151 19.901 4.76877 18.884C3.33604 17.867 2.19266 16.4945 1.45107 14.9017C0.709475 13.3089 0.395207 11.5504 0.539162 9.79934C0.683116 8.04824 1.28034 6.36474 2.2721 4.9144C3.26387 3.46406 4.61603 2.2968 6.19562 1.52741C7.77522 0.758019 9.52787 0.412981 11.2812 0.526225L10.6287 10.6288L18.78 16.6325Z",fill:"#3A7EDF"})],-1)]))):(r.openBlock(),r.createElementBlock("span",TJ,r.toDisplayString(d+1),1))],2),r.createElementVNode("div",{class:r.normalizeClass(a.dividerStyle(d))},null,2)],10,OJ),n.vertical?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass(["stepper__step-label",a.labelStyle(d)])},[r.createElementVNode("small",null,r.toDisplayString(l.label),1)],2))],2))),128)),n.vertical?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",$J,[r.createElementVNode("div",IJ,[r.createElementVNode("div",{class:r.normalizeClass(a.dividerStyle(-1))},null,2)])]))],2)}const NJ=ee(BJ,[["render",AJ],["__scopeId","data-v-6046312d"]]);function zJ(){const t=r.useSlots();return!!Object.keys(t).length}function f_(t,e,n,i){return r.computed(()=>{let s="";return i.value?n||(e==="default"?s+=` ${t}--focused`:e==="valid"?s+=` ${t}--focused-valid`:e==="invalid"&&(s+=` ${t}--focused-invalid`)):(s=`${t}`,n?s+=` ${t}--disabled`:e==="valid"?s+=` ${t}--valid`:e==="invalid"&&(s+=` ${t}--invalid`)),s})}const PJ={class:"mobile-stepper-input__container"},LJ=["disabled"],FJ={key:0,class:"mobile-stepper-input__suffix"},RJ=ee({__name:"MobileStepperInput",props:{modelValue:{type:Number},modelModifiers:{}},emits:r.mergeModels({add:null,subtract:null},["update:modelValue"]),setup(t,{emit:e}){r.useCssVars(y=>({"02ea66ee":h.value,"54bcdda5":m.value,"46c93ccc":g.value}));const n=e,i=r.useModel(t,"modelValue"),s=r.useAttrs(),a=r.ref(0),o=r.ref(!1),l=uf.longClickDirective({delay:400,interval:50}),d=f_("mobile-stepper-input",s.state,s.disabled,o),h=r.computed(()=>s.width==="fluid"||s.fluid?"100%":"fit-content"),f=r.computed(()=>s.fluid?"mobile-stepper-input__field--fluid":`mobile-stepper-input__field--${s.width}`),m=r.computed(()=>s.suffix?"8px 2px 8px 8px":"8px"),g=r.computed(()=>s.suffix?"0":"8px");return r.watch(a,y=>{y!==i.value&&(i.value=y)}),r.watch(i,y=>{a.value=y}),(y,w)=>(r.openBlock(),r.createElementBlock("div",PJ,[r.createElementVNode("div",{class:r.normalizeClass(r.unref(d))},[r.withDirectives(r.createElementVNode("input",{ref:"mobile-stepper-input__field","onUpdate:modelValue":w[0]||(w[0]=v=>a.value=v),class:r.normalizeClass(["mobile-stepper-input__field",f.value]),type:"number",disabled:y.$attrs.disabled,onFocus:w[1]||(w[1]=v=>o.value=!0),onBlur:w[2]||(w[2]=v=>o.value=!1)},null,42,LJ),[[r.vModelText,a.value]]),y.$attrs.suffix?(r.openBlock(),r.createElementBlock("span",FJ,[r.renderSlot(y.$slots,"suffix",{},()=>[r.createTextVNode(r.toDisplayString(y.$attrs.suffix),1)],!0)])):r.createCommentVNode("",!0)],2),r.withDirectives(r.createVNode(Vu,{icon:"minus-outline",size:"lg",disabled:y.$attrs.disabled,onCdsClick:w[3]||(w[3]=v=>n("subtract"))},null,8,["disabled"]),[[r.unref(l),()=>n("subtract")]]),r.withDirectives(r.createVNode(Vu,{icon:"plus-outline",size:"lg",disabled:y.$attrs.disabled,onCdsClick:w[4]||(w[4]=v=>n("add"))},null,8,["disabled"]),[[r.unref(l),()=>n("add")]])]))}},[["__scopeId","data-v-89506cfe"]]),HJ=["valid","invalid","default"],WJ=t=>HJ.includes(t),YJ={key:1,class:"stepper-input__label",for:"stepper-input"},jJ={class:"label__content"},UJ=["disabled"],qJ={key:0,class:"stepper-input__suffix"},GJ={class:"stepper-input__icon-container"},KJ=["disabled"],ZJ=["disabled"],XJ={key:4,class:"stepper-input__error-message"},JJ={__name:"StepperInput",props:r.mergeModels({min:{type:[Number,String],default:Number.MIN_SAFE_INTEGER},max:{type:[Number,String],default:Number.MAX_SAFE_INTEGER},step:{type:Number,default:1},label:{type:String,default:"Label"},required:{type:Boolean,default:!1},width:{type:String,default:"default",validator:t=>["thin","default","wide","fluid"].includes(t)},fluid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},state:{type:String,default:"default",validator:WJ},errorMessage:{type:String,default:"Valor inválido"},mobile:{type:Boolean,default:!1},suffix:{type:String,default:""}},{modelValue:{type:Number},modelModifiers:{}}),emits:r.mergeModels({"invalid-number":null,"step-out-of-bounds":null,...ra},["update:modelValue"]),setup(t,{expose:e,emit:n}){r.useCssVars(A=>({"83fd7b6a":k.value,"8442bab0":V.value,"61091f92":S.value}));const i=zJ(),s=uf.longClickDirective({delay:400,interval:50}),a=r.useModel(t,"modelValue"),o=r.useTemplateRef("stepper-input");e({componentRef:o});const l=n,{emitFocus:d,emitBlur:h,emitChange:f,emitClick:m}=ia(l),g=t,y=r.ref(a.value),w=r.ref(!1),v=f_("stepper-input",g.state,g.disabled,w),k=r.computed(()=>g.width==="fluid"||g.fluid?"100%":"fit-content"),C=r.computed(()=>g.state==="invalid"),M=r.computed(()=>g.fluid?"stepper-input__field--fluid":`stepper-input__field--${g.width}`),V=r.computed(()=>g.suffix?"8px 2px 8px 8px":"8px"),S=r.computed(()=>g.suffix?"0":"8px");r.watch(a,A=>{y.value=A}),r.watch(y,A=>{A||(y.value=0),typeof A=="string"&&(y.value=+y.value),A<g.min?(y.value=g.min,l("invalid-number",`'O campo não pode ser menor que ${parseInt(g.min,10)}.'`)):A>g.max?(y.value=g.max,l("invalid-number",`'O campo não pode ser maior que ${parseInt(g.max,10)}.'`)):a.value=parseInt(A,10)}),r.watch(()=>g.step,A=>{(A>g.max||A<g.min)&&(console.warn("A propriedade step está fora dos limites definidos por min e max."),l("step-out-of-bounds"))},{immediate:!0});function T(A){y.value=parseInt(y.value)+A,f()}function I(){w.value=!0,d()}function L(){w.value=!1,h()}return(A,H)=>(r.openBlock(),r.createElementBlock("div",null,[r.unref(i)?r.renderSlot(A.$slots,"label",{key:0},void 0,!0):(r.openBlock(),r.createElementBlock("label",YJ,[r.createElementVNode("span",jJ,[r.createTextVNode(r.toDisplayString(t.label)+" ",1),t.required?(r.openBlock(),r.createBlock(f0,{key:0})):r.createCommentVNode("",!0)])])),t.mobile?(r.openBlock(),r.createBlock(RJ,r.mergeProps({key:2,modelValue:y.value,"onUpdate:modelValue":H[0]||(H[0]=Y=>y.value=Y)},g,{onAdd:H[1]||(H[1]=Y=>T(t.step)),onSubtract:H[2]||(H[2]=Y=>T(-t.step))}),null,16,["modelValue"])):(r.openBlock(),r.createElementBlock("div",{key:3,class:r.normalizeClass(r.unref(v)),onClick:H[6]||(H[6]=(...Y)=>r.unref(m)&&r.unref(m)(...Y))},[r.withDirectives(r.createElementVNode("input",{ref:"stepper-input","onUpdate:modelValue":H[3]||(H[3]=Y=>y.value=Y),disabled:t.disabled,class:r.normalizeClass(["stepper-input__field",M.value]),type:"number",onFocus:I,onBlur:L},null,42,UJ),[[r.vModelText,y.value]]),t.suffix?(r.openBlock(),r.createElementBlock("span",qJ,[r.renderSlot(A.$slots,"suffix",{},()=>[r.createTextVNode(r.toDisplayString(t.suffix),1)],!0)])):r.createCommentVNode("",!0),r.createElementVNode("div",GJ,[r.withDirectives((r.openBlock(),r.createElementBlock("button",{disabled:t.disabled,class:"stepper-input__icon--plus",tabindex:"-1",onFocus:I,onBlur:L,onClick:H[4]||(H[4]=Y=>T(t.step))},[r.createVNode(Ce,{height:"16",width:"16",name:"plus-outline"})],40,KJ)),[[r.unref(s),()=>T(t.step)]]),r.withDirectives((r.openBlock(),r.createElementBlock("button",{disabled:t.disabled,class:"stepper-input__icon--minus",tabindex:"-1",onFocus:I,onBlur:L,onClick:H[5]||(H[5]=Y=>T(-t.step))},[r.createVNode(Ce,{height:"16",width:"16",name:"minus-outline"})],40,ZJ)),[[r.unref(s),()=>T(-t.step)]])])],2)),C.value&&!t.disabled?(r.openBlock(),r.createElementBlock("div",XJ,r.toDisplayString(t.errorMessage),1)):r.createCommentVNode("",!0)]))}},QJ=ee(JJ,[["__scopeId","data-v-2c85b39e"]]),eQ={props:{modelValue:{type:Boolean,default:!1,required:!0},small:{type:Boolean,default:!1},variant:{type:String,default:"green"},large:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},focused:{type:Boolean,default:!1}},data(){return{isActive:this.modelValue,internalFocus:this.focused}},computed:{toggleSwitchSize(){return this.small===this.large?"switch--medium":this.small?"switch--small":"switch--large"}},watch:{modelValue(t,e){t!==e&&(this.isActive=t)}},methods:{handleClick(){this.$emit("update:modelValue",!this.isActive)}}},tQ=["disabled"];function nQ(t,e,n,i,s,a){return r.openBlock(),r.createElementBlock("div",null,[r.createElementVNode("label",{class:r.normalizeClass(["switch",a.toggleSwitchSize])},[r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":e[0]||(e[0]=o=>s.isActive=o),type:"checkbox",disabled:n.disabled,onClick:e[1]||(e[1]=(...o)=>a.handleClick&&a.handleClick(...o))},null,8,tQ),[[r.vModelCheckbox,s.isActive]]),r.createElementVNode("span",{tabindex:"0",class:r.normalizeClass(["switch__slider",[`switch__slider--${n.variant}`,{[`switch__slider--active-focused--${n.variant}`]:s.internalFocus&&s.isActive&&!n.disabled,"switch__slider--inactive-focused":s.internalFocus&&!s.isActive&&!n.disabled,"switch__slider--small":n.small&&n.small!==n.large,"switch__slider--large":n.large&&n.small!==n.large,"switch__slider--medium":n.small===n.large}]]),onFocusout:e[2]||(e[2]=o=>s.internalFocus=!1),onFocusin:e[3]||(e[3]=o=>s.internalFocus=!0)},null,34)],2)])}const iQ=ee(eQ,[["render",nQ],["__scopeId","data-v-69ace31c"]]),B0={components:{CdsCheckbox:iu,CdsIcon:Ce,CdsClickable:er},props:{modelValue:{type:Array,default:()=>[]},items:{type:Array,required:!0,default:()=>[]},fields:{type:Array,default:()=>[]},hover:{type:Boolean,default:!1},allowSelection:{type:Boolean,default:!1},selectionVariant:{type:String,default:"green"},sortable:{type:Boolean,default:!1},sortBy:{type:String,default:null},sortDesc:{type:Boolean,default:!1},noWrap:{type:Boolean,default:!1}},data(){return{selectAll:!1,select:[],localSortDesc:this.sortDesc,localSortBy:this.sortBy,localItems:this.items}},computed:{computedFields(){return this.fields.length>0?this.fields.map(t=>typeof t=="object"?t:{key:t,label:Un.startCase(t)}):this.items.length>0?Object.keys(this.items[0]).map(t=>({key:t,label:Un.startCase(t)})):[]},resolveNoWarp(){return this.noWrap?"nowrap":"pre-line"}},watch:{modelValue:{handler(t,e){if(t!==e){if(!t.length){this.resetSelect();return}t.forEach(n=>{const i=Un.findIndex(this.localItems,n);i>-1&&(this.select[i]=!0)})}},immediate:!0},items(t,e){Un.isEqual(t,e)||(this.localItems=t,this.resetSelect())},sortBy:{handler(t,e){t!==e&&this.handleSortBy(t)},immediate:!0},select:{handler(t){const e=this.localItems.filter((n,i)=>t[i]);this.$emit("update:modelValue",e)},deep:!0}},methods:{hasSlot:Ks,resetSelect(){this.selectAll=!1;for(let t=0;t<this.localItems.length;t++)this.select[t]=!1},handleSelectAll(){for(let t=0;t<this.localItems.length;t++)this.select[t]=this.selectAll},handleSelectRow(t){if(this.selectAll&&!t){this.selectAll=!1;return}this.selectAll=this.select.reduce((e,n)=>e&&n)},handleSortBy(t){if(!this.sortable)return;if(this.resetSelect(),this.localSortBy===t&&this.localSortDesc){this.localSortBy=null,this.localItems=this.items;return}const e=this.localSortDesc?"asc":"desc";this.localSortDesc=this.localSortBy===t?!this.localSortDesc:!1,this.localSortBy=t,this.localItems=Un.orderBy(this.items,[this.localSortBy],[e])},resolveHeaderItemClass(t){return t!==0&&t!==this.fields.length-1?"table__header-item":t===0?"table__header-item--first":"table__header-item--last"},resolveContentItemClass(t,e){return t!==this.items.length-1?"table__item":e!==0&&e!==this.fields.length-1?"table__item--common":e===0?"table__item--first":"table__item--last"},resolveItemClass(){return this.hover?"table__content--hoverable":""},resolveValue(t,e){return e.formatter&&typeof e.formatter=="function"?e.formatter(t[e.key]):t[e.key]}}},p_=()=>{r.useCssVars(t=>({ab0c10ae:t.resolveNoWarp}))},m_=B0.setup;B0.setup=m_?(t,e)=>(p_(),m_(t,e)):p_;const rQ={class:"table__container"},sQ={class:"table__header"},aQ={class:"table__header-item-content"},oQ=["width"];function lQ(t,e,n,i,s,a){const o=r.resolveComponent("cds-checkbox"),l=r.resolveComponent("cds-icon"),d=r.resolveComponent("cds-clickable");return r.openBlock(),r.createElementBlock("table",rQ,[r.createElementVNode("tr",sQ,[n.allowSelection?(r.openBlock(),r.createElementBlock("th",{key:0,class:r.normalizeClass(["table__select-item",a.resolveHeaderItemClass(0)])},[r.createVNode(o,{id:"select-all-rows",modelValue:s.selectAll,"onUpdate:modelValue":[e[0]||(e[0]=h=>s.selectAll=h),a.handleSelectAll],class:"table__select-checkbox",label:"",variant:n.selectionVariant},null,8,["modelValue","variant","onUpdate:modelValue"])],2)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(a.computedFields,(h,f)=>(r.openBlock(),r.createElementBlock("th",{key:f,class:r.normalizeClass(a.resolveHeaderItemClass(f))},[r.createElementVNode("div",aQ,[a.hasSlot(t.$slots,"header-item")?r.renderSlot(t.$slots,"header-item",{key:0,data:h},void 0,!0):(r.openBlock(),r.createBlock(d,{key:1,id:`sort-icon-${h.key}`,clickable:n.sortable,onClick:r.withModifiers(m=>a.handleSortBy(h.key),["stop"])},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(h.label)+" ",1),n.sortable&&h.label&&h.key!==s.localSortBy?(r.openBlock(),r.createBlock(l,{key:0,class:"table__sort-icon",height:"13",width:"13",name:"swap-vertical-arrows-outline"})):n.sortable&&h.label&&s.localSortDesc?(r.openBlock(),r.createBlock(l,{key:1,class:"table__sort-icon",height:"13",width:"13",name:"sort-descending-duotone"})):n.sortable&&h.label?(r.openBlock(),r.createBlock(l,{key:2,class:"table__sort-icon",height:"13",width:"13",name:"sort-ascending-duotone"})):r.createCommentVNode("",!0)]),_:2},1032,["id","clickable","onClick"]))])],2))),128))]),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.localItems,(h,f)=>(r.openBlock(),r.createElementBlock("tr",{key:f,class:r.normalizeClass(a.resolveItemClass())},[n.allowSelection?(r.openBlock(),r.createElementBlock("td",{key:0,class:r.normalizeClass(["table__select-item",a.resolveContentItemClass(f,0)])},[r.createVNode(o,{id:`select-row-${f}`,modelValue:s.select[f],"onUpdate:modelValue":[m=>s.select[f]=m,a.handleSelectRow],class:"table__select-checkbox",label:"",variant:n.selectionVariant},null,8,["id","modelValue","onUpdate:modelValue","variant"])],2)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(a.computedFields,(m,g)=>(r.openBlock(),r.createElementBlock("td",{key:g,class:r.normalizeClass(a.resolveContentItemClass(f,g)),width:m.width?m.width:"auto"},[r.renderSlot(t.$slots,"table-item",{data:h,field:m.key,rowIndex:f,colIndex:g},()=>[r.createTextVNode(r.toDisplayString(a.resolveValue(h,m)),1)],!0)],10,oQ))),128))],2))),128))])}const cQ=ee(B0,[["render",lQ],["__scopeId","data-v-41a83049"]]),dQ={components:{CdsIcon:Ce},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=>Fi.includes(t)},showAddAction:{type:Boolean,default:!1}},data(){return{internalActiveTab:this.activeTab,colorOptions:Fi}},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},handleRightClick(t,e){this.$emit("right-click",{event:t,item:e})},handleClick(t,e){this.$emit("tabs-change",{event:t,item:e}),this.internalActiveTab=e},handleAddAction(t){this.$emit("add-action",t)},isActive(t){return fo(this.internalActiveTab,t)}}},uQ={id:"tabs"},hQ={class:"inner-tabs__header"},fQ=["id"],pQ=["onClick","onContextmenu"],mQ={class:"inner-tabs__text"},gQ={key:0,role:"presentation",class:"nav-item cds-tab__action"},yQ={class:"inner-tabs__content"};function bQ(t,e,n,i,s,a){const o=r.resolveComponent("cds-icon");return r.openBlock(),r.createElementBlock("div",uQ,[r.createElementVNode("ul",hQ,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.tabs,(l,d)=>(r.openBlock(),r.createElementBlock("li",{id:`${d}-${l.name}-tab`,key:`${d}-${l.name}-tab`,role:"presentation",class:"inner-tabs__header-item"},[r.createElementVNode("a",{role:"tab",href:"javascript:void(0)",target:"_self",class:r.normalizeClass(["inner-tabs__tab",a.isActive(l)?"inner-tabs__tab--active":"inner-tabs__tab--inactive"]),style:r.normalizeStyle(a.activeBorderStyle),onClick:h=>a.handleClick(h,l),onContextmenu:r.withModifiers(h=>a.handleRightClick(h,l),["prevent","stop"])},[r.createElementVNode("span",mQ,r.toDisplayString(l.title),1)],46,pQ)],8,fQ))),128)),n.showAddAction?(r.openBlock(),r.createElementBlock("li",gQ,[r.createElementVNode("a",{role:"tab",href:"javascript:void(0)",target:"_self",class:"nav-link",onClick:e[0]||(e[0]=r.withModifiers((...l)=>a.handleAddAction&&a.handleAddAction(...l),["prevent"]))},[r.createVNode(o,{height:"32",width:"32",name:"plus-outline"})])])):r.createCommentVNode("",!0)]),r.createElementVNode("div",yQ,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.tabs,(l,d)=>(r.openBlock(),r.createElementBlock("div",{key:`${d}-${l.name}-tab`,role:"tabpanel",class:r.normalizeClass(["content__pane",a.isActive(l)?"content__pane--active":"content__pane--inactive"])},[r.renderSlot(t.$slots,a.getSlotName(l))],2))),128))])])}const _Q=ee(dQ,[["render",bQ]]),vQ={__name:"TextArea",props:r.mergeModels({label:{type:String,default:"Label"},required:{type:Boolean,default:!1},placeholder:{type:String,default:"Digite aqui a descrição"},disabled:{type:Boolean,default:!1},state:{type:String,default:"default"},errorMessage:{type:String,default:"Valor inválido"},supportingText:{type:[String,Array],default:""},supportLink:{type:String,default:""},supportLinkUrl:{type:String,default:"https://cuida.framer.wiki/"},fluid:{type:Boolean,default:!1,required:!1},lazy:{type:Boolean,default:!1},tooltip:{type:String,default:null},tooltipIcon:{type:String,default:"info-outline"},floatingLabel:{type:Boolean,default:!1}},{modelValue:{type:String},modelModifiers:{}}),emits:r.mergeModels({...ra},["update:modelValue"]),setup(t,{expose:e,emit:n}){var y,w;const i=r.useTemplateRef("baseInput"),s=r.useModel(t,"modelValue"),a=t,o=n,l=r.ref(s.value),{emitClick:d,emitChange:h,emitFocus:f,emitBlur:m,emitKeydown:g}=ia(o);return r.watch(s,(v,k)=>{v!==k&&(l.value=v)},{immediate:!0}),r.watch(l,v=>{s.value=v}),e({componentRef:(y=i.value)==null?void 0:y.componentRef,isFocused:(w=i.value)==null?void 0:w.isFocused,focus:()=>{var v;return(v=i.value)==null?void 0:v.focus()},blur:()=>{var v;return(v=i.value)==null?void 0:v.blur()},clear:()=>{var v;return(v=i.value)==null?void 0:v.clear()},select:()=>{var v;return(v=i.value)==null?void 0:v.select()}}),(v,k)=>(r.openBlock(),r.createElementBlock("div",null,[r.createVNode(yo,r.mergeProps({ref:"baseInput",modelValue:l.value,"onUpdate:modelValue":k[0]||(k[0]=C=>l.value=C)},{...v.$attrs,...a},{type:"textarea","support-link-url":t.supportLinkUrl,"support-link":t.supportLink,"floating-label":t.floatingLabel,onClick:r.unref(d),onChange:r.unref(h),onFocus:r.unref(f),onBlur:r.unref(m),onKeydown:r.unref(g)}),null,16,["modelValue","support-link-url","support-link","floating-label","onClick","onChange","onFocus","onBlur","onKeydown"])]))}},wQ={__name:"TextInput",props:r.mergeModels({label:{type:String,default:"Label"},disabled:{type:Boolean,default:!1},state:{type:String,default:"default"},inputType:{type:String,default:"text",validator:t=>["text","email"].includes(t)},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},mask:{type:[String,Array],default:null},tooltip:{type:String,default:null},tooltipIcon:{type:String,default:"info-outline"},linkText:{type:String,default:null},linkUrl:{type:String,default:"https://cuida.framer.wiki/"},supportLink:{type:String,default:null},supportingText:{type:[String,Array],default:""},supportLinkUrl:{type:String,default:"https://cuida.framer.wiki/"},lazy:{type:Boolean,default:!1},mobile:{type:Boolean,default:!1},floatingLabel:{type:Boolean,default:!1}},{modelValue:{type:String},modelModifiers:{}}),emits:r.mergeModels({...ra},["update:modelValue"]),setup(t,{expose:e,emit:n}){var v,k;const i=ac,s=r.useTemplateRef("baseInput"),a=r.useModel(t,"modelValue"),o=t,l=n,d=r.ref(""),h=r.ref(o.mask),{emitClick:f,emitChange:m,emitFocus:g,emitBlur:y,emitKeydown:w}=ia(l);return r.watch(o.mask,C=>h.value=C),r.watch(a,(C,M)=>{C!==M&&(d.value=C)},{immediate:!0}),r.watch(d,C=>{a.value=C}),e({componentRef:(v=s.value)==null?void 0:v.componentRef,isFocused:(k=s.value)==null?void 0:k.isFocused,focus:()=>{var C;return(C=s.value)==null?void 0:C.focus()},blur:()=>{var C;return(C=s.value)==null?void 0:C.blur()},clear:()=>{var C;return(C=s.value)==null?void 0:C.clear()},select:()=>{var C;return(C=s.value)==null?void 0:C.select()}}),(C,M)=>r.withDirectives((r.openBlock(),r.createBlock(yo,r.mergeProps({ref:"baseInput",modelValue:d.value,"onUpdate:modelValue":M[0]||(M[0]=V=>d.value=V)},{...C.$attrs,...o},{"support-link-url":t.supportLinkUrl||t.linkUrl,"support-link":t.supportLink||t.linkText,"floating-label":t.floatingLabel||t.mobile,onClick:r.unref(f),onChange:r.unref(m),onFocus:r.unref(g),onBlur:r.unref(y),onKeydown:r.unref(w)}),null,16,["modelValue","support-link-url","support-link","floating-label","onClick","onChange","onFocus","onBlur","onKeydown"])),[[r.unref(i),h.value]])}},E0=t=>/[0-2][0-9]:[0-5][0-9]/.test(t),kQ=(t,e)=>E0(t)&&E0(e)?ge.fromFormat(t,"HH:mm").diff(ge.fromFormat(e,"HH:mm"))>0:!1,CQ={directives:{facade:ac},props:{modelValue:{type:[String,Array],default:"",validator:t=>t===""||t===[]?!0:typeof t=="string"?E0(t):t.length===2&&kQ(t[1],t[0])},id:{type:String,default:"time-input"},label:{type:String,required:!0},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},mode:{type:String,default:"single",validator:t=>["single","range"].includes(t)},state:{type:String,default:"default",validator:t=>["default","valid","invalid"].includes(t)},errorMessage:{type:String,default:"Horário inválido"}},data(){return{startHour:"",startMinute:"",endHour:"",endMinute:""}},computed:{computedInputClass(){if(this.disabled)return"input__time--disabled";switch(this.state){case"valid":return"input__time--valid";case"invalid":return"input__time--invalid";default:return"input__time"}}},watch:{modelValue(t,e){t===e||t==null||this.buildTimeElements(t)}},mounted(){this.buildTimeElements(this.modelValue)},methods:{handleTimeInput(){if(this.startHour=this.startHour?this.resolveTimeElement(this.startHour,23):"",this.startMinute=this.startMinute?this.resolveTimeElement(this.startMinute,59):"",this.endHour=this.endHour?this.resolveTimeElement(this.endHour,23):"",this.endMinute=this.endMinute?this.resolveTimeElement(this.endMinute,59):"",!(this.startHour&&this.startMinute)||this.range&&!(this.endHour&&this.endMinute)){this.$emit("update:modelValue",null);return}if(this.mode==="range"){this.resolveRangeInterval();return}this.$emit("update:modelValue",`${this.startHour}:${this.startMinute}`)},resolveRangeInterval(){const t=Pt.fromDateTimes(ge.fromFormat(`${this.startHour}:${this.startMinute}`,"HH:mm"),ge.fromFormat(`${this.endHour}:${this.endMinute}`,"HH:mm"));if(t.invalid){this.$emit("update:modelValue",null);return}this.$emit("update:modelValue",[t.start.toFormat("HH:mm"),t.end.toFormat("HH:mm")])},formatTimeElement(t){return parseInt(t,10).toLocaleString(void 0,{minimumIntegerDigits:2,maximumFractionDigits:0})},resolveTimeElement(t,e){const n=this.formatTimeElement(t);return n>e?e:n<0?"00":n},buildTimeElements(t){if(this.mode==="single"){if(typeof t!="string")return;[this.startHour,this.startMinute]=t.split(":");return}if(typeof t=="string"){this.startHour="",this.startMinute="",this.endHour="",this.endMinute="";return}[this.startHour,this.startMinute]=t[0].split(":"),[this.endHour,this.endMinute]=t[1].split(":")}}},xQ={class:"input__label"},SQ=["for"],MQ={key:0,class:"label__required-indicator"},BQ=["id"],EQ=["id","disabled"],DQ=["id","disabled"],OQ={key:0,class:"input__separator"},VQ={key:1},TQ=["id","disabled"],$Q=["id","disabled"],IQ={key:0,class:"input__message"};function AQ(t,e,n,i,s,a){const o=r.resolveDirective("facade");return r.openBlock(),r.createElementBlock("div",null,[r.createElementVNode("label",xQ,[r.createElementVNode("div",{class:"label__content",for:n.id},[r.createElementVNode("span",null,r.toDisplayString(n.label),1),n.required?(r.openBlock(),r.createElementBlock("span",MQ," * ")):r.createCommentVNode("",!0)],8,SQ)]),r.createElementVNode("div",{id:n.id,class:"input__container"},[r.createElementVNode("div",null,[r.withDirectives(r.createElementVNode("input",{id:`${n.id}-start-hour`,"onUpdate:modelValue":e[0]||(e[0]=l=>s.startHour=l),class:r.normalizeClass(a.computedInputClass),disabled:n.disabled,type:"text",min:"0",max:"23",step:"1",placeholder:"00",onKeyup:[e[1]||(e[1]=r.withKeys(l=>s.startHour++,["up"])),e[2]||(e[2]=r.withKeys(l=>s.startHour>0?s.startHour--:null,["down"]))],onInput:e[3]||(e[3]=(...l)=>a.handleTimeInput&&a.handleTimeInput(...l))},null,42,EQ),[[r.vModelText,s.startHour],[o,"##"]]),e[16]||(e[16]=r.createTextVNode(" : ")),r.withDirectives(r.createElementVNode("input",{id:`${n.id}-start-minute`,"onUpdate:modelValue":e[4]||(e[4]=l=>s.startMinute=l),class:r.normalizeClass(a.computedInputClass),disabled:n.disabled,type:"text",min:"0",max:"59",step:"1",placeholder:"00",onKeyup:[e[5]||(e[5]=r.withKeys(l=>s.startMinute++,["up"])),e[6]||(e[6]=r.withKeys(l=>s.startMinute>0?s.startMinute--:null,["down"]))],onInput:e[7]||(e[7]=(...l)=>a.handleTimeInput&&a.handleTimeInput(...l))},null,42,DQ),[[r.vModelText,s.startMinute],[o,"##"]])]),n.mode==="range"?(r.openBlock(),r.createElementBlock("div",OQ," Até ")):r.createCommentVNode("",!0),n.mode==="range"?(r.openBlock(),r.createElementBlock("div",VQ,[r.withDirectives(r.createElementVNode("input",{id:`${n.id}-end-hour`,"onUpdate:modelValue":e[8]||(e[8]=l=>s.endHour=l),class:r.normalizeClass(a.computedInputClass),disabled:n.disabled,type:"text",min:"0",max:"23",step:"1",placeholder:"00",onKeyup:[e[9]||(e[9]=r.withKeys(l=>s.endHour++,["up"])),e[10]||(e[10]=r.withKeys(l=>s.endHour>0?s.endHour--:null,["down"]))],onInput:e[11]||(e[11]=(...l)=>a.handleTimeInput&&a.handleTimeInput(...l))},null,42,TQ),[[r.vModelText,s.endHour],[o,"##"]]),e[17]||(e[17]=r.createTextVNode(" : ")),r.withDirectives(r.createElementVNode("input",{id:`${n.id}-end-minute`,"onUpdate:modelValue":e[12]||(e[12]=l=>s.endMinute=l),class:r.normalizeClass(a.computedInputClass),disabled:n.disabled,type:"text",min:"0",max:"59",step:"1",placeholder:"00",onKeyup:[e[13]||(e[13]=r.withKeys(l=>s.endMinute++,["up"])),e[14]||(e[14]=r.withKeys(l=>s.endMinute>0?s.endMinute--:null,["down"]))],onInput:e[15]||(e[15]=(...l)=>a.handleTimeInput&&a.handleTimeInput(...l))},null,42,$Q),[[r.vModelText,s.endMinute],[o,"##"]])])):r.createCommentVNode("",!0)],8,BQ),n.state==="invalid"&&!n.disabled?(r.openBlock(),r.createElementBlock("div",IQ,r.toDisplayString(n.errorMessage),1)):r.createCommentVNode("",!0)])}const NQ=ee(CQ,[["render",AQ],["__scopeId","data-v-8cf870de"]]),D0={props:{reverse:{type:Boolean,default:!1}},data(){return{oppositeSlotMaxWidth:"0"}},computed:{directionResolver(){return this.reverse?"column-reverse":"column"},oppositeSlotWidthResolver(){return`${this.oppositeSlotMaxWidth}px`}},mounted(){document.querySelectorAll(".cds-timeline-item__opposite").forEach(e=>{let n=e.getClientRects()[0].width;this.oppositeSlotMaxWidth<n&&(this.oppositeSlotMaxWidth=n)})}},g_=()=>{r.useCssVars(t=>({"7ea49ddc":t.directionResolver,"1372a9d4":t.oppositeSlotWidthResolver}))},y_=D0.setup;D0.setup=y_?(t,e)=>(g_(),y_(t,e)):g_;const zQ={class:"cds-timeline"};function PQ(t,e,n,i,s,a){return r.openBlock(),r.createElementBlock("div",zQ,[r.renderSlot(t.$slots,"default")])}const LQ=ee(D0,[["render",PQ]]),FQ={components:{CdsSpinner:Ca},props:{variant:{type:String,default:"green"},loading:{type:Boolean,default:!1},hollowed:{type:Boolean,default:!1}},methods:{hasSlot:Ks}},RQ={class:"cds-timeline-item"},HQ={class:"cds-timeline-item__opposite"},WQ={class:"cds-timeline-item__timeline-container"},YQ={class:"cds-timeline-item__content-container"},jQ={key:0,class:"cds-timeline-item__title"},UQ={class:"cds-timeline-item__text"};function qQ(t,e,n,i,s,a){const o=r.resolveComponent("cds-spinner");return r.openBlock(),r.createElementBlock("div",RQ,[r.createElementVNode("div",HQ,[r.renderSlot(t.$slots,"opposite",{},void 0,!0)]),r.createElementVNode("div",WQ,[n.loading?(r.openBlock(),r.createBlock(o,{key:1,size:"sm",class:"spinner",variant:n.variant},null,8,["variant"])):(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass(`cds-timeline-item__pin--${n.variant}${n.hollowed?"--hollowed":""}`)},null,2)),r.createElementVNode("div",{class:r.normalizeClass(n.loading||n.hollowed?"tail--dashed":"tail")},null,2)]),r.createElementVNode("div",YQ,[a.hasSlot(t.$slots,"title")?(r.openBlock(),r.createElementBlock("div",jQ,[r.renderSlot(t.$slots,"title",{},void 0,!0)])):r.createCommentVNode("",!0),r.createElementVNode("span",UQ,[r.renderSlot(t.$slots,"content",{},void 0,!0)])])])}const GQ=ee(FQ,[["render",qQ],["__scopeId","data-v-e1fab2ab"]]),KQ={class:"top-app-bar"},ZQ={class:"top-app-bar__menu-container"},XQ=["src","alt"],JQ={key:3,class:"top-app-bar__title"},QQ={class:"top-app-bar__actions"},eee=ee({__name:"TopAppBar",props:{title:{type:String,default:"",required:!0},logoUrl:{type:String,default:""},showMenuIcon:{type:Boolean,default:!1},showBackNavigation:{type:Boolean,default:!1},defaultRoute:{type:Object,default:()=>({})}},emits:["on-menu-click"],setup(t,{emit:e}){const{isMobile:n}=hf(),i=e,s=t,a=r.computed(()=>n.value?"24":"34");function o(){var d,h;return(d=s.defaultRoute)!=null&&d.path?s.defaultRoute.path:(h=s.defaultRoute)!=null&&h.name?{name:s.defaultRoute.path}:null}function l(){const d=o();return d||window.history.back()}return(d,h)=>{const f=r.resolveComponent("router-link");return r.openBlock(),r.createElementBlock("div",KQ,[r.createElementVNode("div",ZQ,[t.showMenuIcon?(r.openBlock(),r.createBlock(Ce,{key:0,class:"top-app-bar__menu",name:"menu-outline",width:a.value,height:a.value,onClick:h[0]||(h[0]=m=>i("on-menu-click"))},null,8,["width","height"])):t.showBackNavigation?(r.openBlock(),r.createBlock(f,{key:1,to:l},{default:r.withCtx(()=>[r.createVNode(Ce,{class:"top-app-bar__back-arrow",name:"arrow-left-outline",width:a.value,height:a.value},null,8,["width","height"])]),_:1})):r.createCommentVNode("",!0),t.logoUrl?(r.openBlock(),r.createElementBlock("img",{key:2,class:"top-app-bar__logo-image",src:t.logoUrl,alt:t.title},null,8,XQ)):(r.openBlock(),r.createElementBlock("h2",JQ,r.toDisplayString(t.title),1))]),r.createElementVNode("div",QQ,[r.renderSlot(d.$slots,"actions",{},void 0,!0)])])}}},[["__scopeId","data-v-9d1ac631"]]),O0={directives:{cdstip:al},components:{CdsIcon:Ce,CdsClickable:er},props:{modelValue:{type:String,default:""},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"},mobile:{type:Boolean,default:!1}},data(){return{internalValue:"",isBeingFocused:!1,showPassword:!1}},computed:{customInputType(){return this.showPassword?"text":"password"},customTextPasswordInput(){return this.showPassword?"Ocultar":"Mostrar"},disableTextPasswordInput(){return this.internalValue.length<1||this.disabled},hasSlots(){return!!Object.keys(this.$slots).length},stepperInputDynamicClass(){let t=this.fluid?"password-input--fluid":"password-input";return this.isBeingFocused?this.disabled||(this.state==="default"?t+=" password-input--focused":this.state==="valid"?t+=" password-input--focused-valid":this.state==="invalid"&&(t+=" password-input--focused-invalid")):this.disabled?t+=" password-input--disabled":this.state==="valid"?t+=" password-input--valid":this.state==="invalid"&&(t+=" password-input--invalid"),t},labelDynamicClass(){const t=this.mobile?"mobile-label":"label";return this.fluid?`password-input__${t}--fluid`:`password-input__${t}`},inputClass(){const t=this.mobile?"mobile-field":"field";return this.fluid?`password-input__${t}--fluid`:`password-input__${t}`},errorState(){return this.state==="invalid"},resolveInputWidth(){return this.mobile?"300px":"266px"}},watch:{modelValue:{handler(t,e){t!==e&&(this.internalValue=t)},immediate:!0},internalValue(t){this.$emit("update:modelValue",t)}},methods:{generateKey:Gr,handleShowPassword(){this.showPassword=!this.showPassword}}},b_=()=>{r.useCssVars(t=>({"5fad3268":t.resolveInputWidth}))},__=O0.setup;O0.setup=__?(t,e)=>(b_(),__(t,e)):b_;const tee={key:0},nee={class:"password-input__label__content",for:"cds-password-input"},iee={key:0,class:"password-input__label__required-indicator"},ree=["id","type","placeholder","disabled"],see={key:0,class:"password-input__password-toogle"},aee={key:0,class:"password-input__error-message"};function oee(t,e,n,i,s,a){const o=r.resolveComponent("cds-icon"),l=r.resolveComponent("cds-clickable"),d=r.resolveDirective("cdstip");return r.openBlock(),r.createElementBlock("div",null,[r.createElementVNode("span",null,[a.hasSlots?(r.openBlock(),r.createElementBlock("span",tee,[r.renderSlot(t.$slots,"label",{},void 0,!0)])):(r.openBlock(),r.createElementBlock("label",{key:1,class:r.normalizeClass(a.labelDynamicClass)},[r.createElementVNode("div",nee,[r.createElementVNode("span",null,r.toDisplayString(n.label),1),n.required?(r.openBlock(),r.createElementBlock("span",iee," * ")):r.createCommentVNode("",!0),n.tooltip?r.withDirectives((r.openBlock(),r.createBlock(o,{key:1,name:n.tooltipIcon,height:"20",width:"20",class:"password-input__label__icon"},null,8,["name"])),[[d,n.tooltip]]):r.createCommentVNode("",!0)])],2))]),r.createElementVNode("div",{class:r.normalizeClass(a.stepperInputDynamicClass)},[r.withDirectives(r.createElementVNode("input",{id:`cds-password-input-${t.$attrs.id||a.generateKey()}`,"onUpdate:modelValue":e[0]||(e[0]=h=>s.internalValue=h),type:a.customInputType,placeholder:n.placeholder,disabled:n.disabled,class:r.normalizeClass(a.inputClass),onFocus:e[1]||(e[1]=h=>s.isBeingFocused=!0),onBlur:e[2]||(e[2]=h=>s.isBeingFocused=!1)},null,42,ree),[[r.vModelDynamic,s.internalValue]]),a.disableTextPasswordInput?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",see,[r.createVNode(l,{id:"cds-clickable",clickable:"",onClick:a.handleShowPassword},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(a.customTextPasswordInput),1)]),_:1},8,["onClick"])]))],2),a.errorState&&!n.disabled?(r.openBlock(),r.createElementBlock("div",aee,r.toDisplayString(n.errorMessage),1)):r.createCommentVNode("",!0)])}const lee=ee(O0,[["render",oee],["__scopeId","data-v-e719017b"]]),cee={class:"camera-container"},dee={key:1,class:"camera-container__failed"},uee=["src"],hee=ee({__name:"WebcamModal",props:{modelValue:{type:Boolean,required:!0},title:{type:String,default:"Camera"},feedbackText:{type:String,default:"Foto capturada"},takePhotoButtonText:{type:String,default:"Tirar foto"},takeAnotherPhotoButtonText:{type:String,default:"Tirar outra"},savePhotoButtonText:{type:String,default:"Salvar foto"},errorMessageText:{type:String,default:"Erro ao carregar a câmera"},variant:{type:String,default:"green"}},emits:["update:model-value","on-take-photo"],setup(t,{emit:e}){const n=e,i=t,s=r.ref(!0),a=r.ref(null),o=r.ref(null),l=r.ref(null),d=r.ref(!1),h=r.ref(null),f=r.ref(!1),m=r.ref(!1),g=r.computed(()=>s.value||m.value);r.watch(()=>i.modelValue,M=>{M&&setTimeout(()=>y(),100),f.value=M},{immediate:!0}),r.watch(f,M=>n("update:model-value",M));async function y(){let M=null;try{M=await navigator.mediaDevices.getUserMedia({video:!0}),a.value.srcObject=M,d.value=!0}catch(V){m.value=!0,console.error("Erro ao acessar a câmera: "+V.message)}s.value=!1}function w(){a.value&&a.value.srcObject&&(a.value.srcObject.getTracks().forEach(S=>S.stop()),a.value.srcObject=null),d.value=!1,s.value=!0,k()}function v(){if(!a.value||!o.value)return;const M=o.value,V=M.getContext("2d");M.width=a.value.videoWidth,M.height=a.value.videoHeight,V.drawImage(a.value,0,0,M.width,M.height),M.toBlob(S=>{const T=new File([S],"captured-photo.png",{type:"image/png"});l.value=URL.createObjectURL(S),h.value=T})}function k(){l.value=null,h.value=null}function C(){h.value&&(n("on-take-photo",h.value),f.value=!1,w())}return(M,V)=>(r.openBlock(),r.createBlock(P5,{modelValue:f.value,"onUpdate:modelValue":V[0]||(V[0]=S=>f.value=S),size:"lg",title:t.title,"no-footer":"",onClose:w,onOk:V[1]||(V[1]=S=>f.value=!1)},{default:r.withCtx(()=>[r.createVNode(qt,{justify:"center",direction:"column",gap:"3"},{default:r.withCtx(()=>[r.createElementVNode("div",cee,[s.value?(r.openBlock(),r.createBlock(qt,{key:0,class:"camera-container__loading",align:"center",justify:"center"},{default:r.withCtx(()=>[r.createVNode(Ca,{variant:t.variant,size:"md"},null,8,["variant"])]),_:1})):r.createCommentVNode("",!0),m.value?(r.openBlock(),r.createElementBlock("div",dee,[r.createVNode(qt,{align:"center",gap:"2"},{default:r.withCtx(()=>[r.createVNode(Ce,{height:"26",width:"26",name:"warning-outline"}),r.createElementVNode("div",null,r.toDisplayString(t.errorMessageText),1)]),_:1})])):r.createCommentVNode("",!0),r.withDirectives(r.createElementVNode("img",{class:"camera-container__photo",alt:"Sua Foto",src:l.value},null,8,uee),[[r.vShow,!g.value&&l.value]]),r.withDirectives(r.createElementVNode("video",{ref_key:"videoRef",ref:a,class:"camera-container__video",playsinline:"",autoplay:""},null,512),[[r.vShow,!g.value&&!l.value]])]),r.createVNode(qt,{class:r.normalizeClass(["camera-container__feedback-text",{"camera-container__feedback-text--hidden":!h.value}]),align:"center"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(t.feedbackText),1)]),_:1},8,["class"]),r.createVNode(qt,{gap:"2",class:"camera-container__buttons"},{default:r.withCtx(()=>[l.value?(r.openBlock(),r.createBlock(ni,{key:1,class:"camera-container__button",size:"lg",variant:t.variant,disabled:!d.value,secondary:"",onClick:r.withModifiers(k,["prevent"])},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(t.takeAnotherPhotoButtonText),1)]),_:1},8,["variant","disabled"])):(r.openBlock(),r.createBlock(ni,{key:0,class:"camera-container__button",size:"lg",variant:t.variant,disabled:!d.value,secondary:"",onClick:r.withModifiers(v,["prevent"])},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(t.takePhotoButtonText),1)]),_:1},8,["variant","disabled"])),r.createVNode(ni,{class:"camera-container__button",size:"lg",variant:t.variant,disabled:!l.value,onClick:r.withModifiers(C,["prevent"])},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(t.savePhotoButtonText),1)]),_:1},8,["variant","disabled"])]),_:1})]),_:1}),r.createElementVNode("canvas",{ref_key:"canvasRef",ref:o},null,512)]),_:1},8,["modelValue","title"]))}},[["__scopeId","data-v-ec0720ec"]]),fee={components:{CdsBox:eu,CdsButton:ni},props:{steps:{type:Array,default:()=>[],required:!0,validator:t=>t.length>=2&&t.length<=3},activeStep:{type:Number,default:0,validator:t=>t>=0&&t<=2},clickable:{type:Boolean,default:!1},nextButtonText:{type:String,default:"Próximo"},cancelButtonText:{type:String,default:"Anterior"},nextButtonVariant:{type:String,default:"green"},disableNextButton:{type:Boolean,default:!1}},data(){return{currentStep:this.activeStep}},computed:{disabledBack(){return this.currentStep<=0},disabledNext(){return this.currentStep>=this.steps.length-1}},watch:{activeStep:{handler(t,e){t!==e&&(this.currentStep=t)},immediate:!0},currentStep(t,e){t!==e&&this.$emit("step-change",t)}},methods:{emptyStateText(t){return`Preencha todos os campos obrigatórios da etapa anterior para
76
76
  liberar a seção de ${t.toLowerCase()}`},handleStepBoxClick(t){this.currentStep=t},backActionClick(){this.currentStep>0?this.currentStep--:this.$emit("cancel-action",!0)},nextActionClick(){let t=this.currentStep;this.currentStep<this.steps.length-1&&t++,this.$emit("next-action",{nextStep:t})}}},pee={class:"cds-wizard"},mee={class:"cds-wizard__container"},gee={key:0},yee={class:"cds-wizard__title"},bee={class:"cds-wizard__subtitle"},_ee={class:"cds-wizard__content"},vee={key:1,class:"cds-wizard__empty-state"},wee=["src","alt"],kee={class:"cds-wizard__empty-state-title"},Cee={class:"cds-wizard__empty-state-subtitle"},xee={class:"cds-wizard__buttons"};function See(t,e,n,i,s,a){const o=r.resolveComponent("cds-box"),l=r.resolveComponent("cds-button");return r.openBlock(),r.createElementBlock("div",pee,[r.createElementVNode("div",mee,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.steps,(d,h)=>(r.openBlock(),r.createBlock(o,{key:`wizard-step-${h}`,class:r.normalizeClass({"cds-wizard__empty-state-box":s.currentStep<h}),padding:5,elevated:s.currentStep===h,fluid:"",clickable:n.clickable,onBoxClick:f=>a.handleStepBoxClick(h),onClick:e[0]||(e[0]=r.withModifiers(()=>{},["prevent"]))},{default:r.withCtx(()=>[s.currentStep>=h?(r.openBlock(),r.createElementBlock("span",gee,[r.renderSlot(t.$slots,`step-${h+1}-header`,{},()=>[r.createElementVNode("h3",yee,r.toDisplayString(d.title),1),r.createElementVNode("h4",bee,r.toDisplayString(d.subtitle),1)],!0),r.createElementVNode("div",_ee,[r.renderSlot(t.$slots,`step-${h+1}`,{},void 0,!0)])])):(r.openBlock(),r.createElementBlock("div",vee,[d.image?(r.openBlock(),r.createElementBlock("img",{key:0,class:"cds-wizard__empty-state-image",src:d.image,alt:`Imagem de ${d.title}`},null,8,wee)):r.createCommentVNode("",!0),r.createElementVNode("div",kee,r.toDisplayString(d.title),1),r.createElementVNode("div",Cee,r.toDisplayString(a.emptyStateText(d.title)),1)]))]),_:2},1032,["class","elevated","clickable","onBoxClick"]))),128))]),r.createElementVNode("div",xee,[r.createVNode(l,{text:n.cancelButtonText,secondary:"",onButtonClick:a.backActionClick,onClick:e[1]||(e[1]=r.withModifiers(()=>{},["prevent"]))},null,8,["text","onButtonClick"]),r.createVNode(l,{text:n.nextButtonText,variant:n.nextButtonVariant,disabled:n.disableNextButton,onButtonClick:a.nextActionClick,onClick:e[2]||(e[2]=r.withModifiers(()=>{},["prevent"]))},null,8,["text","variant","disabled","onButtonClick"])])])}const Mee=ee(fee,[["render",See],["__scopeId","data-v-4436f0de"]]),Bee=(t,e)=>{let n="",i="",s=e.modifiers,a=e.arg;n=document.querySelector(`[id='${e.value}']`),i=document.querySelector(`[id='${t.id}']`),nl(n,i,{placement:a,modifiers:[{name:"offset",options:{offset:[0,-4]}},{name:"flip",enabled:!!s.flip}]})};return{install:(t,e)=>{t.directive("cdstip",al),t.directive("cds-floatify",Bee),t.component("CdsActionBar",d8),t.component("CdsActionsList",y8),t.component("CdsAlert",x8),t.component("CdsAlertCard",D8),t.component("CdsAppBar",s7),t.component("CdsAvatar",dl),t.component("CdsAvatarGroup",m7),t.component("CdsBadge",Tm),t.component("CdsBarChart",$S),t.component("CdsBox",eu),t.component("CdsBottomSheet",sE),t.component("CdsBreadcrumb",dE),t.component("CdsButton",ni),t.component("CdsCard",BE),t.component("CdsCalloutCard",AE),t.component("CdsCarousel",PE),t.component("CdsCarouselController",YE),t.component("CdsCheckbox",iu),t.component("CdsCheckboxGroup",sD),t.component("CdsChevron",Ts),t.component("CdsChip",cD),t.component("CdsClickable",er),t.component("CdsCollapsibleContainer",mD),t.component("CdsColorPicker",BD),t.component("CdsDashboardCard",zD),t.component("CdsDateInput",aj),t.component("CdsDialogModal",wj),t.component("CdsDivider",ll),t.component("CdsDropdown",Bj),t.component("CdsDropdownButton",Ij),t.component("CdsDonutChart",Pj),t.component("CdsEmptyState",Uj),t.component("CdsFileInput",M5),t.component("CdsFileViewer",hU),t.component("CdsFilterSelect",kU),t.component("CdsFlatButton",MU),t.component("CdsFlexbox",qt),t.component("CdsFloatingAssistant",RU),t.component("CdsFloatingActionButton",UU),t.component("CdsGaugeChart",tq),t.component("CdsGrid",nq),t.component("CdsGridItem",rq),t.component("CdsHighlight",I5),t.component("CdsIcon",Ce),t.component("CdsIconButton",Vu),t.component("CdsImage",nu),t.component("CdsInnerTabs",yq),t.component("CdsInteractionBlockingOverlay",xq),t.component("CdsLineChart",zB),t.component("CdsLink",sc),t.component("CdsList",Fq),t.component("CdsInlineDateInput",Vq),t.component("CdsLoadingBar",Wq),t.component("CdsLoadingIndicator",Yq),t.component("CdsMobileNavbar",Gq),t.component("CdsMobileNavigation",rG),t.component("CdsModal",P5),t.component("CdsMultiFileInput",$K),t.component("CdsMultiselect",WG),t.component("CdsNavBar",zK),t.component("CdsNumberInput",KK),t.component("CdsOverlayLoader",QK),t.component("CdsPageContainer",J5),t.component("CdsPageLayout",$Z),t.component("CdsPageHeader",RZ),t.component("CdsPagination",UZ),t.component("CdsPanelCard",JZ),t.component("CdsPinInput",iX),t.component("CdsPopover",cl),t.component("CdsProgressBar",oX),t.component("CdsProgressCircular",hX),t.component("CdsPulsar",B5),t.component("CdsQuickActionBar",vX),t.component("CdsRadio",MX),t.component("CdsRadioButtonGroup",HX),t.component("CdsRadialBarChart",TX),t.component("CdsRichTooltip",s0),t.component("CdsSpacer",Qd),t.component("CdsScrollable",Jc),t.component("CdsSearchInput",YX),t.component("CdsSecondaryNavigation",n_),t.component("CdsSegmentedControl",ZX),t.component("CdsSelect",j5),t.component("CdsSideBar",t_),t.component("CdsSideSheet",eJ),t.component("CdsSkeleton",w0),t.component("CdsSkeletonText",iJ),t.component("CdsSlider",MJ),t.component("CdsSpinner",Ca),t.component("CdsStackedBarChart",KB),t.component("CdsStepper",NJ),t.component("CdsStepperInput",QJ),t.component("CdsSwitch",iQ),t.component("CdsTable",cQ),t.component("CdsTabs",_Q),t.component("CdsTextArea",vQ),t.component("CdsTextInput",wQ),t.component("CdsTimeInput",NQ),t.component("CdsTooltip",Qc),t.component("CdsTopAppBar",eee),t.component("CdsTimeline",LQ),t.component("CdsTimelineItem",GQ),t.component("CdsTruncate",Vm),t.component("CdsPasswordInput",lee),t.component("CdsPieChart",RB),t.component("CdsPolarAreaChart",jB),t.component("CdsWebcamModal",hee),t.component("CdsWizard",Mee)},utils:{contrastChecker:R4,hasSlot:Ks,removeAccents:rc,hexToRgb:su,isDeviceType:Zs}}});