@sysvale/cuida 3.155.2 → 3.155.3

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 @@ function print() { __p += __j.call(arguments, '') }
66
66
  `,"Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.",`
67
67
 
68
68
  `,`1) content: element.innerHTML
69
- `,"2) content: () => element.cloneNode(true)"].join(" "))}var l=r.reduce(function(d,h){var f=h&&MD(h,a);return f&&d.push(f),d},[]);return nc(e)?l[0]:l}io.defaultProps=si,io.setDefaultProps=CD,io.currentInput=la,Object.assign({},nm,{effect:function(t){var n=t.state,a={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,a.popper),n.styles=a,n.elements.arrow&&Object.assign(n.elements.arrow.style,a.arrow)}}),io.setDefaultProps({render:dy});const uu={mounted(e,t){if(!t.value||typeof t.value!="string"&&!t.value.content)return;const n=typeof t.value=="string"?t.value:t.value.content||"";e._tippyInstance=io(e,{content:n,arrow:!1,animation:"shift-away-subtle",delay:100,allowHTML:!0,...t.value.options||{}})},updated(e,t){if(!t.value||typeof t.value!="string"&&!t.value.content){e._tippyInstance&&(e._tippyInstance.destroy(),e._tippyInstance=null);return}const n=typeof t.value=="string"?t.value:t.value.content||"";e._tippyInstance?e._tippyInstance.setProps({content:n,...t.value.options||{}}):e._tippyInstance=io(e,{content:n,arrow:!1,animation:"shift-away-subtle",delay:100,allowHTML:!0,...t.value.options||{}})},beforeUnmount(e){e._tippyInstance&&(e._tippyInstance.destroy(),e._tippyInstance=null)}},hu=ie(Object.assign({name:"CdsLabel"},{__name:"Label",props:{for:{type:String,default:""},text:{type:String,default:"Label"},tooltip:{type:String,default:null},tooltipIcon:{type:String,default:"info-outline"},supportLink:{type:String,default:null},supportLinkUrl:{type:[String,null],default:null},required:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1,required:!1}},emits:["supportLinkClick"],setup(e,{emit:t}){const n=e,a=t,r=i.computed(()=>n.supportLink&&n.supportLinkUrl!==null&&n.supportLinkUrl.length);return(s,o)=>e.text?(i.openBlock(),i.createElementBlock("label",{key:0,class:i.normalizeClass({label:!e.fluid,"label--fluid":e.fluid})},[i.createVNode(Ue,{class:"label__content"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.text)+" ",1),e.required?(i.openBlock(),i.createBlock(su,{key:0})):i.createCommentVNode("",!0),e.tooltip?i.withDirectives((i.openBlock(),i.createBlock(ve,{key:1,name:e.tooltipIcon,height:"18",width:"18",class:"label__icon"},null,8,["name"])),[[i.unref(uu),e.tooltip]]):i.createCommentVNode("",!0)]),_:1}),r.value?(i.openBlock(),i.createBlock(ec,{key:0,href:e.supportLinkUrl,text:e.supportLink,class:"label__link","new-tab":""},null,8,["href","text"])):(i.openBlock(),i.createElementBlock("span",{key:1,class:"label__link",onClick:o[0]||(o[0]=l=>a("supportLinkClick"))},i.toDisplayString(e.supportLink),1))],2)):i.createCommentVNode("",!0)}}),[["__scopeId","data-v-86d093ee"]]),ED={class:"base-input__container"},OD={key:0,class:"base-input__leading-icon-container"},DD=["required","placeholder","disabled","type"],VD=["placeholder","disabled","type","autocomplete"],$D={class:"base-input__date-text"},TD={key:3,style:{width:"100%"}},ID={key:0,class:"base-input__top-content"},AD=["required","readonly","placeholder","disabled","autocomplete","type"],ND={key:4,class:"base-input__spinner-container"},zD={key:5,class:"base-input__trailing-icon-container"},LD={key:0,class:"base-input__error-text"},PD={key:0,class:"base-input__supporting-text-container"},FD={key:1,class:"base-input__supporting-text"},RD=Object.assign({name:"CdsBaseInput"},{__name:"BaseInput",props:i.mergeModels({id:{type:String,default:""},label:{type:String,default:"Label"},hideLabel:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},state:{type:String,default:"default"},type:{type:String,default:"text",validator:W4},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,null],default:null},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},maxlength:{type:Number,default:null},minlength:{type:Number,default:null},name:{type:String,default:""},enableAutocomplete:{type:Boolean,default:!1},enableTopContent:{type:Boolean,default:!1},ghost:{type:Boolean,default:!1}},{modelValue:{type:[String,Number]},modelModifiers:{}}),emits:i.mergeModels({...mr,supportLinkClick:null},["update:modelValue"]),setup(e,{expose:t,emit:n}){i.useCssVars(G=>({"591ccac4":F.value,"5b690ec3":P.value,"44158c2a":V.value,"5a89c196":B.value,"5d1ce34a":C.value}));const a=i.useModel(e,"modelValue"),r=e,s=n,o=i.ref(),l=i.ref(""),d=i.ref(""),h=i.ref(!1),{emitClick:f,emitFocus:m,emitBlur:y,emitKeydown:g}=pr(s),v=i.useTemplateRef("htmlInput"),_=i.useTemplateRef("mobileInput"),k=`cds-base-input-${r.type}-${r.id||oa()}`,x=i.computed(()=>r.enableAutocomplete?"on":"off"),M=i.computed(()=>{let G=r.fluid?"base-input--fluid":"base-input";return r.ghost&&(G+=" ghost"),h.value?r.disabled||(G+=r.state==="default"?" base-input--focused":` base-input--focused-${r.state}`):G+=r.disabled?" base-input--disabled":` base-input--${r.state}`,G}),B=i.computed(()=>r.type==="textarea"?"auto":"40px"),C=i.computed(()=>r.type==="textarea"?"120px":"auto"),V=i.computed(()=>r.type==="textarea"?"8px":"14px"),$=i.computed(()=>r.state==="invalid"),N=i.computed(()=>r.state==="loading"),I=i.computed(()=>{const G="field";return r.fluid?`base-input__${G}--fluid`:`base-input__${G}`}),F=i.computed(()=>r.disabled?"not-allowed":N.value?"progress":r.readonly?"pointer":"text"),q=i.computed(()=>r.leadingIcon||is("leading-icon")),Q=i.computed(()=>r.trailingIcon||is("trailing-icon")),P=i.computed(()=>Q.value?"36px":"9px"),Z=i.computed(()=>r.type==="search"&&r.hideLabel&&!r.floatingLabel);i.watch(a,(G,ye)=>{G!==ye&&(l.value=G)},{immediate:!0}),i.watch(l,G=>{r.lazy||(a.value=G)}),i.watch(()=>r.floatingLabel,()=>{var G;o.value=r.floatingLabel?(G=_==null?void 0:_.value)==null?void 0:G.componentRef:v.value}),i.onMounted(()=>{var G;o.value=r.floatingLabel?(G=_==null?void 0:_.value)==null?void 0:G.componentRef:v.value});function se(G){f(G)}function U(G){h.value=!0,d.value=l.value,m(G)}function me(G){h.value=!1,v.value&&v.value.value!==void 0&&(l.value=v.value.value),y(G),d.value!==l.value&&(a.value=l.value),d.value=l.value}function be(G){h.value=!0,g(G)}return t({componentRef:o,isFocused:h,focus:()=>{var G;return(G=o.value)==null?void 0:G.focus()},blur:()=>{var G;return(G=o.value)==null?void 0:G.blur()},clear:()=>{var G;return(G=o.value)==null?void 0:G.clear()},select:()=>{var G;return(G=o.value)==null?void 0:G.select()}}),(G,ye)=>(i.openBlock(),i.createElementBlock("div",ED,[e.floatingLabel?(i.openBlock(),i.createBlock(QO,i.mergeProps({key:0,ref:"mobileInput"},{...G.$attrs,...r},{modelValue:l.value,"onUpdate:modelValue":ye[0]||(ye[0]=Y=>l.value=Y),"has-leading-icon":q.value,"has-trailing-icon":Q.value,onClick:se,onFocus:U,onBlur:me,onKeydown:be}),{"trailing-icon":i.withCtx(()=>[i.renderSlot(G.$slots,"trailing-icon",{},void 0,!0)]),"leading-icon":i.withCtx(()=>[i.renderSlot(G.$slots,"leading-icon",{},void 0,!0)]),_:3},16,["modelValue","has-leading-icon","has-trailing-icon"])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.renderSlot(G.$slots,"label",{},()=>[Z.value?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(hu,{key:0,text:e.label,fluid:e.fluid,for:k,required:e.required,tooltip:e.tooltip,"tooltip-icon":e.tooltipIcon,"support-link":e.supportLink,"support-link-url":e.supportLinkUrl,onSupportLinkClick:ye[1]||(ye[1]=Y=>s("supportLinkClick"))},null,8,["text","fluid","required","tooltip","tooltip-icon","support-link","support-link-url"]))],!0),i.createElementVNode("div",{class:i.normalizeClass(M.value),onClick:se},[q.value?(i.openBlock(),i.createElementBlock("div",OD,[i.renderSlot(G.$slots,"leading-icon",{},()=>[e.leadingIcon?(i.openBlock(),i.createBlock(ve,{key:0,height:"20",width:"20",name:e.leadingIcon,class:"base-input__icon"},null,8,["name"])):i.createCommentVNode("",!0)],!0)])):i.createCommentVNode("",!0),e.type==="textarea"?i.withDirectives((i.openBlock(),i.createElementBlock("textarea",{key:1,id:k,ref:"htmlInput","onUpdate:modelValue":ye[2]||(ye[2]=Y=>l.value=Y),required:e.required,placeholder:e.placeholder,disabled:e.disabled,class:i.normalizeClass(I.value),type:e.type,onFocus:U,onBlur:me,onKeydown:be},null,42,DD)),[[i.vModelText,l.value]]):e.type==="date"?(i.openBlock(),i.createElementBlock("div",i.mergeProps({key:2,id:k,ref:"htmlInput",tabindex:"0"},r,{placeholder:e.placeholder,disabled:e.disabled,class:I.value,type:e.type,autocomplete:x.value,onFocus:U,onBlur:me,onKeydown:be}),[i.createElementVNode("small",$D,i.toDisplayString(l.value||e.placeholder),1)],16,VD)):(i.openBlock(),i.createElementBlock("div",TD,[e.enableTopContent?(i.openBlock(),i.createElementBlock("div",ID,[i.renderSlot(G.$slots,"top-content",{},void 0,!0)])):i.createCommentVNode("",!0),i.withDirectives(i.createElementVNode("input",i.mergeProps({id:k,ref:"htmlInput"},r,{"onUpdate:modelValue":ye[3]||(ye[3]=Y=>l.value=Y),required:e.required,readonly:e.readonly,placeholder:e.placeholder,disabled:e.disabled,class:I.value,autocomplete:x.value,type:e.type,onFocus:U,onBlur:me,onKeydown:be}),null,16,AD),[[i.vModelDynamic,l.value]])])),N.value&&!e.disabled?(i.openBlock(),i.createElementBlock("div",ND,[i.createVNode(Ql,{size:"sm",variant:"blue",class:"base-input__icon--spinner-icon"})])):i.createCommentVNode("",!0),Q.value?(i.openBlock(),i.createElementBlock("div",zD,[i.renderSlot(G.$slots,"trailing-icon",{},()=>[i.createVNode(ve,{height:"20",width:"20",name:e.trailingIcon,class:"base-input__icon"},null,8,["name"])],!0)])):i.createCommentVNode("",!0)],2),$.value&&!e.disabled?(i.openBlock(),i.createElementBlock("div",LD,i.toDisplayString(e.errorMessage),1)):i.createCommentVNode("",!0),e.supportingText?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[Array.isArray(e.supportingText)?(i.openBlock(),i.createElementBlock("ul",PD,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.supportingText,Y=>(i.openBlock(),i.createElementBlock("li",{key:Y,class:"base-input__supporting-text-list"},i.toDisplayString(Y),1))),128))])):(i.openBlock(),i.createElementBlock("span",FD,i.toDisplayString(e.supportingText),1))],64)):i.createCommentVNode("",!0)],64))]))}}),Wi=ie(RD,[["__scopeId","data-v-877e0e36"]]),HD={ref:"cds-select",class:"select"},WD={key:0,class:"option__container"},YD=["onMouseover"],jD={key:1,class:"option__container"},UD={class:"add-button-searchstring"},qD=Object.assign({name:"CdsSelect"},{__name:"Select",props:i.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},deepSearch:{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,null],default:null},supportLink:{type:String,default:null},supportingText:{type:[String,Array],default:""},supportLinkUrl:{type:[String,null],default:null},mobile:{type:Boolean,default:!1},floatingLabel:{type:Boolean,default:!1},addable:{type:Boolean,default:!1},ghost:{type:Boolean,default:!1}},{modelValue:{type:[Array,Object,String]},modelModifiers:{}}),emits:i.mergeModels({...mr},["update:modelValue"]),setup(e,{expose:t,emit:n}){var Dt,lt;i.useCssVars(ae=>({"70b2831f":U.value,"98fdc8b0":P.value}));const a=i.useModel(e,"modelValue"),r=e,s=n,o=i.ref(0),l=i.ref(!1),d=i.ref(null),h=i.ref(!1),f=i.ref([]),m=i.ref([]),y=i.ref({value:"",id:""}),g=i.ref(""),v=i.ref("down"),_=i.ref(Qa()),k=i.useTemplateRef("baseInput"),x=i.useTemplateRef("cds-select"),M=i.useTemplateRef("select-options"),B=i.ref({}),{emitClick:C,emitFocus:V,emitBlur:$,emitKeydown:N}=pr(s),I=i.ref(""),F=i.ref(!1),q=i.ref("");let Q=!1;const P=i.computed(()=>r.mobile?"9px":"6px"),Z=i.computed(()=>{let ae="";const xe=r.mobile?"select__mobile-input":"select__input";return ae+=` ${xe}--${W1.find(Ve=>Ve===r.width)}`,ae+=r.fluid?` ${xe}--fluid`:` ${xe}--fit`,ae+=r.searchable?` ${xe}--searchable`:"",ae}),se=i.computed(()=>({"select__options--thin":r.width==="thin","select__options--default":r.width==="default","select__options--wide":r.width==="wide","select__options--fluid":r.fluid,"select__options--down":v.value==="down","select__options--up":v.value==="up"})),U=i.computed(()=>r.fluid?"100%":"fit-content"),me=i.computed(()=>{var ae;return r.searchable&&r.addable&&((ae=I.value)==null?void 0:ae.trim().length)>0&&!f.value.some(xe=>{var Ve;return((Ve=xe[r.optionsField])==null?void 0:Ve.toLowerCase())===(I==null?void 0:I.value.toLowerCase())})}),be=i.computed({get(){var ae;return F.value?q.value:(ae=y.value)==null?void 0:ae[r.optionsField]},set(ae){Q||(F.value=!0,q.value=ae)}}),G=i.computed(()=>W1.some(ae=>ae===r.width)||r.fluid);i.watch(()=>r.searchable,(ae,xe)=>{ae!==xe&&(h.value=ae)},{immediate:!0}),i.watch(()=>r.options,(ae,xe)=>{ae!==xe&&(f.value=ae,m.value=ae)},{immediate:!0}),i.watch(a,(ae,xe)=>{ae!==xe&&ae!==y.value&&(Q=!0,ae instanceof Object?y.value=ae:y.value={id:ae,value:ae}),i.nextTick(()=>{Q=!1})},{immediate:!0}),i.watch(y,ae=>{if(JSON.stringify(ae)===JSON.stringify(a.value))return;if(!ae||typeof ae=="object"&&Object.keys(ae).length===0){a.value=r.returnValue?"":{};return}const Ve=f.value.filter(ze=>JSON.stringify(ze)===JSON.stringify(ae));Ve.length!==0&&(a.value=r.returnValue?Ve[0][r.optionsField]:Ve[0])}),i.onMounted(()=>{d.value=`cds-select-${_.value}`,g.value=x.value});function ye(ae){if(!F.value)return;r.searchable&&r.addable&&(I.value=ae);const xe=eo(String(ae)||"");r.deepSearch?ee(xe):Y(xe)}function Y(ae){const xe=new RegExp(ae,"i");f.value=m.value.filter(Ve=>eo(Ve[r.optionsField]).search(xe)>=0)}function ee(ae){const xe=ae.toLowerCase().split(" ");f.value=m.value.filter(Ve=>xe.reduce((ze,Fe)=>ze=ze&&eo(Ve[r.optionsField]).toLowerCase().includes(Fe),!0))}function ue(){r.disabled||(Ze(),i.nextTick().then(()=>{var xe;const ae=f.value[o.value];(xe=B.value[`${Et.get(ae,r.optionsField)}-${o.value}`])==null||xe.classList.add("highlight")}),V())}function de(){if(!r.disabled){if(f.value.length===0&&!(r.searchable&&r.addable)){l.value=!1,F.value=!1,k.value.blur();return}l.value=!l.value,Q=!0,Ze(),typeof f.value[o.value]>"u"?(Qe(),y.value=r.searchable&&r.addable?y.value:f.value.length?Et.cloneDeep(f.value[0]):{}):y.value=Et.cloneDeep(f.value[o.value]),I.value="",F.value=!1,k.value.blur(),i.nextTick(()=>{Q=!1})}}function _e(){let ae=g.value.getBoundingClientRect();ae.top+ae.height+286<window.innerHeight?v.value="down":v.value="up",!r.disabled&&(l.value=!l.value,C(),k.value.focus())}function ge(){Q=!0;const ae=r.searchable&&!r.addable&&f.value.length===0;ae&&(a.value=null,y.value=null),!I.value&&!ae&&(y.value=f.value.some(xe=>{var Ve,ze;return((Ve=xe[r.optionsField])==null?void 0:Ve.toLowerCase())===((ze=Et.get(y.value,r.optionsField))==null?void 0:ze.toLowerCase())})?y.value:{}),i.nextTick(()=>{f.value=m.value,I.value="",l.value=!1,F.value=!1,Q=!1}),$()}function De(){Q=!1,I.value="",y.value=Et.cloneDeep(f.value[o.value]),l.value=!1,F.value=!1,k.value.blur(),i.nextTick(()=>{Q=!1})}function Ye(ae){const xe=f.value[ae];return B.value[`${xe[r.optionsField]}-${ae}`]}function Ne(ae,xe,Ve){const ze=ae.getBoundingClientRect(),Fe=M.value,pt=Fe.getBoundingClientRect();Ve==="up"&&ze.top<=pt.top&&(Fe.scrollTop+=xe),Ve==="down"&&ze.top>=pt.bottom&&(Fe.scrollTop+=xe)}function ut(){if(!l.value||o.value===f.value.length-1)return;o.value+=1;const ae=Ye(o.value),xe=Ye(o.value-1);ae.classList.add("highlight"),xe.classList.remove("highlight"),Ne(ae,37,"down")}function _t(){if(!l.value||o.value===0)return;const ae=Ye(o.value),xe=Ye(o.value-1);ae.classList.remove("highlight"),xe.classList.add("highlight"),Ne(ae,-37,"up"),o.value-=1}function ft(ae){o.value=ae,Ye(o.value).classList.add("highlight")}function it(){Ye(o.value).classList.remove("highlight")}function Ze(){f.value.forEach((ae,xe)=>{const Ve=f.value[xe];B.value[`${Ve[r.optionsField]}-${xe}`].classList.remove("highlight")})}function Qe(){if(!r.addable||!I.value)return;const ae={id:I.value.toLowerCase().trim().replace(/ /g,"-"),[r.optionsField]:I.value.trim()};f.value=[...r.options,ae],m.value=f.value,y.value=ae}return t({componentRef:(Dt=k.value)==null?void 0:Dt.componentRef,isFocused:(lt=k.value)==null?void 0:lt.isFocused,focus:()=>{var ae;return(ae=k.value)==null?void 0:ae.focus()},blur:()=>{var ae;return(ae=k.value)==null?void 0:ae.blur()},clear:()=>{var ae;return(ae=k.value)==null?void 0:ae.clear()},select:()=>{var ae;return(ae=k.value)==null?void 0:ae.select()}}),(ae,xe)=>(i.openBlock(),i.createElementBlock("div",HD,[i.createElementVNode("div",{class:i.normalizeClass(["select__container",e.fluid?"select__container--fluid":"select__container--fit"])},[i.createVNode(Wi,i.mergeProps({id:ae.$attrs.id||d.value,ref:"baseInput"},{...ae.$attrs,...r},{modelValue:be.value,"onUpdate:modelValue":[xe[0]||(xe[0]=Ve=>be.value=Ve),ye],type:"text",onkeypress:`return ${h.value};`,placeholder:e.placeholder,disabled:e.disabled,readonly:!e.searchable||!l.value,"support-link-url":e.supportLinkUrl||e.linkUrl,"support-link":e.supportLink||e.linkText,"floating-label":e.floatingLabel||e.mobile,class:Z.value,fluid:G.value,ghost:e.ghost,onKeydown:[i.withKeys(i.withModifiers(de,["prevent"]),["enter"]),i.withKeys(i.withModifiers(ut,["prevent"]),["arrow-down"]),i.withKeys(i.withModifiers(_t,["prevent"]),["arrow-up"]),i.unref(N)],onClick:_e,onFocus:ue,onBlur:ge}),{"trailing-icon":i.withCtx(()=>[i.createElementVNode("span",{class:i.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","ghost","onKeydown"]),i.withDirectives(i.createElementVNode("div",{ref:"select-options",class:i.normalizeClass(["select__options",se.value])},[f.value.length>0?(i.openBlock(),i.createElementBlock("ul",WD,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(f.value,(Ve,ze)=>(i.openBlock(),i.createElementBlock("li",{key:Ve.id||Ve,ref_for:!0,ref:Fe=>{B.value[`${Ve[e.optionsField]}-${ze}`]=Fe},class:"option__text",onMousedown:De,onMouseover:Fe=>ft(ze),onMouseout:xe[1]||(xe[1]=Fe=>it())},[i.renderSlot(ae.$slots,"option",{index:ze,option:Ve,value:Ve[e.optionsField]},()=>[i.createTextVNode(i.toDisplayString(Ve[e.optionsField]),1)],!0)],40,YD))),128))])):(i.openBlock(),i.createElementBlock("ul",jD,xe[2]||(xe[2]=[i.createElementVNode("li",{class:"option__text--muted"}," Nenhuma opção encontrada ",-1)]))),me.value?(i.openBlock(),i.createElementBlock("div",{key:2,class:"option__add",onMousedown:Qe},[i.createElementVNode("span",UD,i.toDisplayString(I.value),1),xe[3]||(xe[3]=i.createElementVNode("small",{class:"add-button-text"},"Clique para adicionar",-1))],32)):i.createCommentVNode("",!0)],2),[[i.vShow,l.value]])],2)],512))}}),Vh=ie(qD,[["__scopeId","data-v-1d318593"]]),$h=Object.assign({name:"CdsSearchInput"},{__name:"SearchInput",props:i.mergeModels({disabled:{type:Boolean,default:!1},placeholder:{type:String,default:"Busque..."},hideLabel:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1},enableAutocomplete:{type:Boolean,default:!1}},{modelValue:{type:String},modelModifiers:{}}),emits:["update:modelValue"],setup(e,{expose:t}){var s,o;const n=i.useTemplateRef("baseInput"),a=i.useModel(e,"modelValue"),r=e;return t({componentRef:(s=n.value)==null?void 0:s.componentRef,isFocused:(o=n.value)==null?void 0:o.isFocused,focus:()=>{var l;return(l=n.value)==null?void 0:l.focus()},blur:()=>{var l;return(l=n.value)==null?void 0:l.blur()},clear:()=>{var l;return(l=n.value)==null?void 0:l.clear()},select:()=>{var l;return(l=n.value)==null?void 0:l.select()}}),(l,d)=>(i.openBlock(),i.createBlock(Wi,i.mergeProps({ref:"baseInput"},r,{modelValue:a.value,"onUpdate:modelValue":d[0]||(d[0]=h=>a.value=h),type:"search","leading-icon":"search-outline"}),null,16,["modelValue"]))}}),GD={class:"side-sheet__description"},KD={key:0},ZD={class:"side-sheet__divider"},XD={key:3,class:"side-sheet__empty-list"},JD={key:4},QD={class:"side-sheet__count"},eV=["onClick"],tV={class:"side-sheet__footer"},nV=ie(Object.assign({name:"CustomFieldsSideSheet"},{__name:"CustomFieldsSideSheet",props:i.mergeModels({customFieldsList:{type:Array,default:()=>[]},customFieldsSearchable:{type:Boolean,default:!1},selectionVariant:{type:String,default:"primary"},presetsOptions:{type:Array,default:()=>[]},trackBy:{type:String,required:!0},loadingCustomFields:{type:Boolean,default:!1},shouldDisableOkButton:{type:Boolean,default:!1},minFields:{type:Number,required:!0},maxFields:{type:Number,required:!0}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:i.mergeModels(["update-fields-list","cancel","update-preset"],["update:modelValue"]),setup(e,{emit:t}){const n=i.useModel(e,"modelValue"),a=e,r=t,s=i.ref([]),o=i.ref([]),l=i.ref({id:"custom",value:"Personalizado"}),d=i.ref(""),h=i.computed(()=>[...a.presetsOptions.map(B=>({id:Et.kebabCase(B.label),value:B.label})),{id:"custom",value:"Personalizado"}]),f=i.computed(()=>{const B=s.value.filter(C=>C.visible).length;return B<a.minFields||B>a.maxFields}),m=i.computed(()=>{const{minFields:B,maxFields:C}=a;return(($,N)=>N===1/0?$===1?"Selecione as colunas para exibir na tabela.":`Selecione ao menos ${$} colunas para exibir na tabela.`:$===N?$===1?"Selecione 1 coluna para exibir na tabela.":`Selecione ${$} colunas para exibir na tabela.`:$===1?`Selecione até ${N} colunas para exibir na tabela.`:`Selecione entre ${$} e ${N} colunas para exibir na tabela.`)(B,C)}),y=i.computed(()=>{const B=s.value.filter(C=>C.visible).length;return B===0?"Nenhuma coluna selecionada":B===1?"1 coluna selecionada":`${B} colunas selecionadas`});i.watch(()=>n,B=>{g(B.value)},{deep:!0}),i.watch(()=>a.customFieldsList,B=>{s.value=[...B.map(C=>({...C}))]},{immediate:!0}),i.watch(()=>d.value,B=>{if(!B){o.value=[...s.value.map(C=>({...C}))];return}o.value=s.value.filter(({label:C})=>Et.trim(C).toLowerCase().includes(Et.trim(B).toLowerCase()))}),i.watch(()=>l.value,B=>{var V,$;if(!B||B.id==="custom")return;const C=($=(V=a.presetsOptions)==null?void 0:V.find(({label:N})=>N===B.value))==null?void 0:$.columns;C&&o.value.forEach(N=>{N.visible=C.includes(N[a.trackBy])})}),i.watch(()=>o.value,()=>{M()},{deep:!0}),i.watch(()=>a.customFieldsList,B=>{Et.isEmpty(B)||(s.value=[...B.map(C=>({...C}))],o.value=[...B.map(C=>({...C}))],M())},{deep:!0}),i.onBeforeUnmount(()=>{document.body.style.overflow="auto"}),i.onMounted(()=>{s.value=[...a.customFieldsList.map(B=>({...B}))],o.value=[...a.customFieldsList.map(B=>({...B}))]});function g(B){document.body.style.overflow=B?"hidden":"auto"}function v(){d.value="",o.value=[...s.value.map(B=>({...B}))]}function _(){s.value=[...a.customFieldsList.map(B=>({...B}))],v(),n.value=!1,r("cancel")}function k(){v(),r("update-preset",l.value.value),r("update-fields-list",s.value),n.value=!1}function x(){s.value.forEach(B=>{const C=o.value.find(V=>V[a.trackBy]===B[a.trackBy]);C&&(B.visible=C.visible)})}function M(){x();const B=s.value.filter(({visible:V})=>V===!0).map(V=>V[a.trackBy]),C=a.presetsOptions.find(({columns:V})=>A4(V,B));if(!C){l.value={id:"custom",value:"Personalizado"};return}l.value={id:Et.kebabCase(C.label),value:C.label}}return(B,C)=>{const V=i.resolveDirective("cdstip");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(H4,{modelValue:n.value,"onUpdate:modelValue":C[2]||(C[2]=$=>n.value=$),title:"Personalizar tabela","no-close-on-esc":"","with-overlay":"","no-close-on-backdrop":"",onClose:_},{footer:i.withCtx(()=>[i.createElementVNode("div",tV,[i.createVNode(fn,{secondary:"",onButtonClick:_},{default:i.withCtx(()=>C[3]||(C[3]=[i.createTextVNode(" Cancelar ")])),_:1,__:[3]}),i.withDirectives((i.openBlock(),i.createBlock(fn,{variant:e.selectionVariant,disabled:f.value,block:"",onButtonClick:k},{default:i.withCtx(()=>C[4]||(C[4]=[i.createTextVNode(" Salvar ")])),_:1,__:[4]},8,["variant","disabled"])),[[V,f.value?m.value:""]])])]),default:i.withCtx(()=>[i.createVNode(Ue,{direction:"column",gap:"1",fluid:""},{default:i.withCtx(()=>[i.createElementVNode("div",GD,i.toDisplayString(m.value),1),e.presetsOptions.length>0?(i.openBlock(),i.createElementBlock("div",KD,[i.createVNode(Vh,{modelValue:l.value,"onUpdate:modelValue":C[0]||(C[0]=$=>l.value=$),label:"Conjunto de colunas",placeholder:"Selecione um preset",options:h.value,fluid:""},null,8,["modelValue","options"]),i.createElementVNode("div",ZD,[i.createVNode(zr,{dimmed:""})])])):i.createCommentVNode("",!0),e.customFieldsSearchable?(i.openBlock(),i.createBlock($h,{key:1,modelValue:d.value,"onUpdate:modelValue":C[1]||(C[1]=$=>d.value=$),class:"side-sheet__search",label:"Buscar",placeholder:"Buscar por coluna...",fluid:""},null,8,["modelValue"])):i.createCommentVNode("",!0),e.loadingCustomFields?(i.openBlock(),i.createBlock(Ue,{key:2,direction:"column",gap:"3"},{default:i.withCtx(()=>[(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(8,$=>i.createVNode(Ea,{key:$,height:60,fluid:""})),64))]),_:1})):d.value&&!o.value.length?(i.openBlock(),i.createElementBlock("div",XD," Nenhuma coluna encontrada ")):(i.openBlock(),i.createElementBlock("div",JD,[i.createElementVNode("div",QD,i.toDisplayString(y.value),1),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,$=>(i.openBlock(),i.createElementBlock("div",{key:$,class:i.normalizeClass(["side-sheet__column-item",[{[`side-sheet__column-item--active--${e.selectionVariant}`]:$.visible},`side-sheet__column-item--${e.selectionVariant}`]]),onClick:N=>$.visible=!$.visible},[i.createElementVNode("span",{class:i.normalizeClass(["side-sheet__item-label",$.visible?`side-sheet__item-label--${e.selectionVariant}`:""])},i.toDisplayString($.label),3),$.visible?(i.openBlock(),i.createBlock(ve,{key:0,class:i.normalizeClass(`side-sheet__icon--${e.selectionVariant}`),name:"pin-fill",width:"20",height:"20"},null,8,["class"])):(i.openBlock(),i.createBlock(ve,{key:1,class:"side-sheet__icon",name:"pin-outline",width:"20",height:"20"}))],10,eV))),128))]))]),_:1})]),_:1},8,["modelValue"])])}}}),[["__scopeId","data-v-df5087de"]]),iV=["teal","green","blue","indigo","violet","pink","red","orange","amber"],aV={name:"CdsEmptyState",components:{CdsButton:fn},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:e=>iV.includes(e)}}},rV={class:"empty-state"},sV=["src","alt"],oV={class:"empty-state__title"},lV={class:"empty-state__text"};function cV(e,t,n,a,r,s){const o=i.resolveComponent("CdsButton");return i.openBlock(),i.createElementBlock("div",rV,[i.renderSlot(e.$slots,"graphic-element",{},()=>[i.createElementVNode("img",{class:"empty-state__image",src:n.image,alt:n.imageDescription},null,8,sV)],!0),i.createElementVNode("div",oV,i.toDisplayString(n.title),1),i.createElementVNode("div",lV,[i.renderSlot(e.$slots,"text",{},()=>[i.createTextVNode(i.toDisplayString(n.text),1)],!0)]),n.hideActionButton?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(o,{key:0,class:"empty-state__button",text:n.actionButtonText,variant:n.actionButtonVariant,onClick:t[0]||(t[0]=l=>e.$emit("action-button-click",!0))},null,8,["text","variant"]))])}const uy=ie(aV,[["render",cV],["__scopeId","data-v-e094b28a"]]),dV=["id"],uV={class:"data-table"},hV=["id"],fV={key:1,class:"data-table__items-counter"},pV={key:0},mV={key:1},gV={key:2,class:"data-table__items-counter--below"},yV={key:1},bV=["id"],vV={key:0},_V={key:1},wV={key:0,class:"empty"},kV={key:1},CV=ie(Object.assign({name:"CdsDataTable"},{__name:"DataTable",props:{selectionVariant:{type:String,default:"green"},totalItems:{type:Number,required:!0},customFieldsList:{type:Array,default:()=>[]},customFieldsSearchable:{type:Boolean,default:!1},hideCustomizeButton:{type:Boolean,default:!1},presetsOptions:{type:Array,default:()=>[]},customFieldsTrackBy:{type:String,default:"id"},loadingCustomFields:{type:Boolean,default:!1},minVisibleFields:{type:Number,default:1,validator:e=>e>=1},maxVisibleFields:{type:Number,default:0,validator:e=>e>=0},withSearch:{type:Boolean,default:!1},searchPlaceholder:{type:String,default:"Buscar..."},withSearchButton:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},emptySrcImg:{type:String,default:null},emptyTitle:{type:String,default:"Nenhum registro"},emptyDescription:{type:String,default:"Certifique-se de ajustar os filtros para encontrar resultados."},searchInputDelay:{type:Number,default:500,validator:e=>e>=0}},emits:["update-fields-list","customize-click","search","search-button-click"],setup(e,{expose:t,emit:n}){i.useCssVars(de=>({"586cb0cc":Z.value}));const a=is("header-item"),r=is("empty"),s=i.useAttrs(),o=i.useTemplateRef("search-input"),l=e,d=n,h=i.ref(!1),f=i.ref(0),m=i.ref(Array(s.fields.length).fill(0)),y=i.ref(0),g=i.ref(!1),v=i.ref(""),_=i.ref(null),k=i.ref(Et.cloneDeep(l.customFieldsList)),x=i.ref("Personalizado"),M=oa(),B=oa(),C=oa();let V=!1,$=0,N=!1,I,F;const q=new IntersectionObserver(de=>{de.forEach(_e=>{!_e.isIntersecting&&N?h.value=!0:h.value=!1})},{threshold:.1}),Q=i.computed(()=>l.maxVisibleFields===0?1/0:l.maxVisibleFields>l.minVisibleFields?l.maxVisibleFields:l.minVisibleFields),P=i.computed(()=>l.emptySrcImg??"https://cdn-icons-png.flaticon.com/512/7486/7486747.png"),Z=i.computed(()=>y.value>0?"0px":"8px");i.watch(()=>l.customFieldsList,()=>{k.value=Et.cloneDeep(l.customFieldsList)},{immediate:!0}),i.watch(()=>l.loading,de=>{!de&&o.value&&i.nextTick(()=>{o.value.focus()}),de||ue()},{immediate:!0}),i.onMounted(()=>{ue(),s.fixedHeader&&($=window.scrollY,I=document.getElementById(M),F=document.getElementById(C),I&&I.addEventListener("scroll",()=>se(I,F)),F&&F.addEventListener("scroll",()=>se(F,I)),window.addEventListener("scroll",U),m.value=s.fields.map(de=>document.getElementById((de==null?void 0:de.key)??de).getBoundingClientRect().width),q.observe(document.getElementById(B)),f.value=document.getElementById(C).getBoundingClientRect().width)}),i.onUnmounted(()=>{q&&q.disconnect(),I&&I.removeEventListener("scroll",se),F&&F.removeEventListener("scroll",se),window.removeEventListener("scroll",U)});function se(de,_e){V||(V=!0,_e.scrollLeft=de.scrollLeft,y.value=_e.scrollLeft,V=!1)}function U(){const de=window.scrollY;N=de>$,$=de}function me(de){return de!==0&&de!==s.fields.length-1?"virtual-header__th":de===0?"virtual-header__th--first":"virtual-header__th--last"}function be(){d("customize-click"),g.value=!0}function G(){k.value=Et.cloneDeep(l.customFieldsList),d("cancel")}function ye(de){d("update-fields-list",de)}function Y(de,_e){if(_e==="button"){clearTimeout(_.value),d("search-button-click",de);return}!l.withSearchButton&&_e==="input"&&(clearTimeout(_.value),_.value=setTimeout(()=>{d("search",de)},l.searchInputDelay))}function ee(de){x.value=de}function ue(){i.nextTick(()=>{const de=s.fields.map(ge=>ge.key),_e=l.presetsOptions.find(ge=>A4(ge.columns,de));if(_e){x.value=_e.label;return}x.value="Personalizado"})}return t({resetSearch:()=>v.value="",setSearch:de=>v.value=de}),(de,_e)=>(i.openBlock(),i.createElementBlock("div",null,[i.withDirectives(i.createElementVNode("div",{id:i.unref(M),class:"virtual-header",style:i.normalizeStyle({width:`${f.value}px`})},[de.$attrs.allowSelection?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["virtual-header__selection-offset",me(0)])},null,2)):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(de.$attrs.fields,(ge,De)=>(i.openBlock(),i.createElementBlock("div",{key:De,class:i.normalizeClass(me(De)),style:i.normalizeStyle({minWidth:`${m.value[De]}px`})},i.toDisplayString(ge.label??ge),7))),128))],12,dV),[[i.vShow,de.$attrs.fixedHeader&&h.value]]),i.createElementVNode("div",uV,[i.createElementVNode("div",{id:i.unref(B),class:"data-table__header"},[e.withSearch?(i.openBlock(),i.createBlock(Ue,{key:0,gap:"2",fluid:"",wrap:"no-wrap"},{default:i.withCtx(()=>[i.createVNode($h,{ref:"search-input",modelValue:v.value,"onUpdate:modelValue":[_e[0]||(_e[0]=ge=>v.value=ge),_e[1]||(_e[1]=ge=>Y(ge,"input"))],"hide-label":"",fluid:"",placeholder:e.searchPlaceholder,disabled:e.loading,onKeydown:_e[2]||(_e[2]=i.withKeys(i.withModifiers(ge=>Y(v.value,"button"),["prevent"]),["enter"]))},null,8,["modelValue","placeholder","disabled"]),e.withSearchButton?(i.openBlock(),i.createBlock(fn,{key:0,secondary:"",text:"Buscar",disabled:e.loading,onButtonClick:_e[3]||(_e[3]=ge=>Y(v.value,"button"))},null,8,["disabled"])):i.createCommentVNode("",!0)]),_:1})):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[e.loading?(i.openBlock(),i.createBlock(Ea,{key:0,width:150,height:15})):(i.openBlock(),i.createElementBlock("div",fV,i.toDisplayString(e.totalItems)+" "+i.toDisplayString(e.totalItems===1?"registro encontrado":"registros encontrados"),1))],64)),i.createVNode(Ue,{class:"data-table__actions",gap:"3",align:"center",justify:"flex-end"},{default:i.withCtx(()=>[i.renderSlot(de.$slots,"right",{},void 0,!0),e.hideCustomizeButton?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(fn,{key:0,size:e.withSearch?"md":"sm",secondary:"",disabled:e.loading,onButtonClick:be},{default:i.withCtx(()=>[e.presetsOptions.length?(i.openBlock(),i.createElementBlock("span",pV," Colunas: "+i.toDisplayString(x.value),1)):(i.openBlock(),i.createElementBlock("span",mV," Personalizar colunas "))]),_:1},8,["size","disabled"]))]),_:3}),e.withSearch?(i.openBlock(),i.createElementBlock("div",gV,[e.loading?(i.openBlock(),i.createBlock(Ea,{key:0,width:150,height:15})):(i.openBlock(),i.createElementBlock("span",yV,i.toDisplayString(e.totalItems)+" "+i.toDisplayString(e.totalItems===1?"registro encontrado":"registros encontrados"),1))])):i.createCommentVNode("",!0)],8,hV),i.createElementVNode("div",{id:i.unref(C),class:"data-table__table-container"},[e.loading?(i.openBlock(),i.createElementBlock("div",vV,[i.createVNode(_h,{fields:de.$attrs.fields,items:[{},{},{},{}]},{"table-item":i.withCtx(()=>[i.createVNode(Ea,{width:"100",height:"20"})]),_:1},8,["fields"])])):i.unref(Et.isEmpty)(de.$attrs.items)?(i.openBlock(),i.createElementBlock("div",_V,[i.unref(r)?(i.openBlock(),i.createElementBlock("div",wV,[i.renderSlot(de.$slots,"empty",{},void 0,!0)])):(i.openBlock(),i.createElementBlock("div",kV,[i.createVNode(uy,{image:P.value,title:e.emptyTitle,"hide-action-button":""},{text:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.emptyDescription),1)]),_:1},8,["image","title"])]))])):(i.openBlock(),i.createBlock(_h,i.mergeProps({key:2},de.$attrs,{"selection-variant":e.selectionVariant}),i.createSlots({"table-item":i.withCtx(({data:ge,field:De,rowIndex:Ye,colIndex:Ne})=>[i.renderSlot(de.$slots,"table-item",{data:ge,field:De,rowIndex:Ye,colIndex:Ne},void 0,!0)]),_:2},[i.unref(a)?{name:"header-item",fn:i.withCtx(({data:ge,field:De})=>[i.renderSlot(de.$slots,"header-item",{data:ge,field:De},void 0,!0)]),key:"0"}:void 0]),1040,["selection-variant"]))],8,bV)]),i.createVNode(nV,{modelValue:g.value,"onUpdate:modelValue":_e[4]||(_e[4]=ge=>g.value=ge),"custom-fields-list":k.value,"custom-fields-searchable":e.customFieldsSearchable,"selection-variant":e.selectionVariant,"presets-options":e.presetsOptions,"loading-custom-fields":e.loadingCustomFields,"track-by":e.customFieldsTrackBy,"min-fields":e.minVisibleFields,"max-fields":Q.value,onUpdateFieldsList:_e[5]||(_e[5]=ge=>d("update-fields-list",ge)),onCustomizeClick:be,onCancel:G,onOk:ye,onUpdatePreset:ee},null,8,["modelValue","custom-fields-list","custom-fields-searchable","selection-variant","presets-options","loading-custom-fields","track-by","min-fields","max-fields"])]))}}),[["__scopeId","data-v-e9578d09"]]),fu=ie(Object.assign({name:"CdsGrid"},{__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:e=>["div","span","main","footer","form","header","aside","ul","li"].includes(e)}},setup(e){i.useCssVars(h=>({f0785fd2:e.align,a133c6e4:a.value,"09df137c":l.value,"0720bf3c":d.value,"1ff01ed6":s.value,ddf4e6a6:o.value,dbd2b1bc:e.justify}));const t=e,n=h=>{const f=h.match(/^(\d+(\.\d+)?)(.*)$/);return f?f[3]?h:f?`${parseFloat(f[1])*4}px`:null:null},a=i.computed(()=>{let h="";return t.gap&&t.gap!==0&&t.gap!=="0"?Number.isFinite(t.gap)?`${t.gap*4}px`:n(t.gap):(t.rowGap?Number.isFinite(t.rowGap)?h=`${t.rowGap*4}px`:h=n(t.rowGap):h="0px",t.colGap?Number.isFinite(t.colGap)?h+=` ${t.colGap*4}px`:h+=` ${n(t.colGap)}`:h+=" 0px",h)}),r=h=>Array.isArray(h)?h.reduce((f,m)=>`${f} ${m}`):Number.isFinite(h)?`${"1fr ".repeat(h)}`:`${h}`,s=i.computed(()=>r(t.cols)),o=i.computed(()=>r(t.rows)),l=i.computed(()=>r(t.autoCols)),d=i.computed(()=>r(t.autoRows));return(h,f)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.tag),{class:"grid"},{default:i.withCtx(()=>[i.renderSlot(h.$slots,"default",{},void 0,!0)]),_:3}))}}),[["__scopeId","data-v-ff0b2888"]]),Th=i.ref(!1);function hy(e,t,n){Th.value=n;const a=i.ref("down");let r=e.value.getBoundingClientRect();return r.top+r.height+t<window.innerHeight?a.value="down":a.value="up",a.value}const fy=i.computed(()=>Th.value?"56px":"72px"),py=i.computed(()=>Th.value?"76px":"68px"),xV=["onClick"],SV=Object.assign({name:"CdsMonthSelectorGrid"},{__name:"MonthSelectorGrid",props:{variant:{type:String,default:"green"},minDate:{type:String,default:""},maxDate:{type:String,default:""},selectedDate:{type:String,default:"",required:!1},year:{type:Number,default:fe.now().year}},emits:["click"],setup(e,{emit:t}){const n=["jan","fev","mar","abr","maio","jun","jul","ago","set","out","nov","dez"],a=e,r=t,s=i.ref(a.selectedDate),o=i.ref(a.minDate),l=i.ref(a.maxDate),d=i.computed(()=>{if(!s.value)return null;const g=s.value.split("-")[1];return g?parseInt(g):null});i.watch(()=>a.selectedDate,g=>{s.value=g}),i.watch(()=>a.minDate,g=>{o.value=g},{immediate:!0}),i.watch(()=>a.maxDate,g=>{l.value=g},{immediate:!0}),i.onMounted(()=>{s.value=s.value?s.value:""});function h(g){const v=g+1,_=a.year;if(a.minDate){const[k,x]=a.minDate.split("-").map(Number);if(_<k||_===k&&v<x)return!0}if(a.maxDate){const[k,x]=a.maxDate.split("-").map(Number);if(_>k||_===k&&v>x)return!0}return!1}function f(g){return{[`month-selector__month--${a.variant}`]:!0,"month-selector__month--disabled":h(g),[`month-selector__month--selected--${a.variant}`]:g+1==d.value}}function m(g,v){return{month:g,index:v<9?`0${v+1}`:v+1}}function y(g,v){h(v)||r("click",m(g,v))}return(g,v)=>typeof s.value=="string"?(i.openBlock(),i.createBlock(fu,{key:0,cols:3,gap:"5px",class:"month-selector__grid"},{default:i.withCtx(()=>[(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(n,(_,k)=>i.createElementVNode("div",{key:_,class:i.normalizeClass(["month-selector__month",f(k)]),onClick:x=>y(_,k)},i.toDisplayString(_),11,xV)),64))]),_:1})):i.createCommentVNode("",!0)}}),my=ie(SV,[["__scopeId","data-v-44c1341c"]]),BV={class:"scroll-indicator__container"},MV=["onClick"],EV=ie(Object.assign({name:"CdsYearSelectorGrid"},{__name:"YearSelectorGrid",props:{variant:{type:String,default:"green"},selectedDate:{type:String,default:"",required:!1},minDate:{type:String,default:""},maxDate:{type:String,default:""}},emits:["click"],setup(e,{emit:t}){const n=e,a=t,r=fe.now().year,s=i.computed(()=>n.selectedDate?parseInt(n.selectedDate.split("-")[0]):null),o=i.computed(()=>n.minDate?parseInt(n.minDate.split("-")[0]):r-120),l=i.computed(()=>n.maxDate?parseInt(n.maxDate.split("-")[0]):r+50),d=i.ref((s.value||r)-7),h=i.ref(33),f=i.ref(!1),m=i.ref(0),y=i.ref(0),g=i.computed(()=>new Array(12).fill(0).map((I,F)=>d.value+F)),v=i.computed(()=>{const N=l.value-o.value;return(d.value-o.value)/N*(100-h.value)});i.onUnmounted(()=>{window.removeEventListener("mousemove",C),window.removeEventListener("mouseup",V)});function _(N){N.deltaY>0?x():M()}function k(N){return{[`year-selector__year--${n.variant}`]:!0,"year-selector__year--disabled":N<o.value||N>l.value,[`year-selector__year--selected--${n.variant}`]:N==s.value}}function x(){d.value+11<l.value&&(d.value+=3)}function M(){d.value>o.value&&(d.value-=3)}function B(N){f.value=!0,m.value=N.clientY,y.value=d.value,window.addEventListener("mousemove",C),window.addEventListener("mouseup",V)}function C(N){if(!f.value)return;const I=N.clientY-m.value,q=Math.round(I*.5);if(q!==0){const Q=y.value+(q>0?3:-3);Q>=o.value&&Q+11<=l.value&&(d.value=Q,m.value=N.clientY,y.value=d.value)}}function V(){f.value=!1,window.removeEventListener("mousemove",C),window.removeEventListener("mouseup",V)}function $(N){N>l.value||N<o.value||a("click",N)}return(N,I)=>(i.openBlock(),i.createElementBlock("div",BV,[i.createVNode(fu,{cols:3,gap:"5px",class:"year-selector__grid",tabindex:"0",onWheel:i.withModifiers(_,["prevent"])},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(g.value,F=>(i.openBlock(),i.createElementBlock("div",{key:`next-${F}`,class:i.normalizeClass([k(F),"year-selector__year"]),onClick:q=>$(F)},i.toDisplayString(F),11,MV))),128))]),_:1}),i.createElementVNode("div",{class:"scroll-indicator",onMousedown:i.withModifiers(B,["prevent"])},[i.createElementVNode("div",{class:"scroll-indicator__thumb",style:i.normalizeStyle({height:`${h.value}%`,top:`${v.value}%`})},null,4)],32)]))}}),[["__scopeId","data-v-987db81a"]]);function gy(e={}){const t=i.ref(e.initialState||!1);let n=null;const a=s=>{n&&(t.value=!n.contains(s.target))},r=s=>{n=s};return i.onMounted(()=>{document.addEventListener("click",a),document.addEventListener("touchend",a)}),i.onUnmounted(()=>{document.removeEventListener("click",a),document.removeEventListener("touchend",a)}),{clickedOutside:t,setTargetElement:r}}const OV={"#":{pattern:/\d/},X:{pattern:/[0-9a-z]/i},S:{pattern:/[a-z]/i},A:{pattern:/[a-z]/i,transform:e=>e.toLocaleUpperCase()},a:{pattern:/[a-z]/i,transform:e=>e.toLocaleLowerCase()},"\\":{escape:!0},"?":{optional:!0},"*":{repeat:!0},"|":{pipe:!0}},rs="__input-facade__";function Ih(e){this.masked=this.unmasked=e||""}function yy(){return new CustomEvent("input",{bubbles:!0,cancelable:!0,detail:{facade:!0}})}function Ah(e,t){return(Array.isArray(e)||typeof e=="string")&&(e={mask:e}),Object.assign(e||{},t)}function pu(e){const t=e instanceof HTMLInputElement?e:e.querySelector("input");if(!t)throw new Error("facade directive requires an input element");return t}function by(e,t){const{target:n,detail:a,inputType:r}=e;if(a!=null&&a.facade||(e.stopPropagation(),["insertCompositionText","insertFromComposition"].includes(r)&&t[rs].config.mask))return!1;const s=n.value,o=n.selectionEnd,{oldValue:l}=n[rs];mu(n,null,{emit:!1},e),DV(e,s,o),l!==n.value&&n.dispatchEvent(yy())}function DV(e,t,n){const{target:a}=e,r=["text","tel","search",null].includes(a.getAttribute("type")),s=a[rs]&&a[rs].config;if(a!==document.activeElement||!r||!s.mask&&!s.masked)return;const o=e.inputType||"insertText",l=["insertText","insertFromPaste"].includes(o),d=l&&n==t.length;let h=l&&t[n-1];const f=a.value.toLocaleLowerCase();let m=n;if(d)m=f.length;else if(h){h=h.toLocaleLowerCase();let y=m;for(;y<=f.length&&f.charAt(y-1)!==h;)y++;m=y<=f.length?y:m-1}a.setSelectionRange(m,m),setTimeout(function(){a.setSelectionRange(m,m)},0)}function mu(e,t,{emit:n=!0,force:a=!1}={},r){var s,o;let{config:l,oldValue:d,isComposing:h}=e[rs],f=((o=(s=t==null?void 0:t.data)==null?void 0:s.model)==null?void 0:o.value)||e.value;if(!(l.mask&&h)&&(d=d||"",f=f||"",a||d!==f)){["deleteByCut","deleteContent","deleteContentBackward","deleteContentForward"].includes(r==null?void 0:r.inputType)&&(l={...l,short:!0});let m=wy(f,l);if(r&&typeof l.formatter=="function"){const y=l.formatter(m,r);if(typeof y=="string")m=wy(y,l);else if(y===!1){e.value=d;return}}e[rs].oldValue=m.masked,e.unmaskedValue=m.unmasked,e.value!==m.masked&&(e.value=m.masked),n&&e.dispatchEvent(yy())}}let Nh=OV,vy=!1;try{"a".localeCompare("b","i")}catch(e){vy=e.name==="RangeError"}function VV(e){e&&(Nh=e)}function $V(e,t){const n=t.masks.slice().sort((l,d)=>l.length-d.length),a=l=>Object.assign({},t,l),r=(l,d)=>{const h=zh(e,a({mask:d})),f=l.unmasked.length;return h.unmasked.length>f?h:l};if(!n.length)return new Ih;const s=n.shift();let o=zh(e,a({mask:s}));for(;n.length;){const l=n.shift();o=r(o,l)}return o}function zh(e,t){var n,a;let{mask:r="",tokens:s,prefill:o=!1,short:l=!1}=t;s=s?Object.assign({},Nh,s):Nh;let d=new Ih,h=!1,f=0,m=0,y="";function g(v){const _=r[m+1],k=s[_];return{escape:!!(v!=null&&v.escape),optional:!!(k!=null&&k.optional),repeat:!!(k!=null&&k.repeat),...(k==null?void 0:k.pipe)&&{pipe:r.substring(m).match(/^(.\|)+./g)[0].split("|")}}}for(;m<r.length;){const v=r[m],_=s[v];let k=e[f];const x=g(_);if(_&&!h&&!x.pipe){if(x.escape){h=!0,m++;continue}if(!k)break;if((n=_.pattern)!=null&&n.test(k))k=((a=_.transform)==null?void 0:a.call(_,k))||k,d.unmasked+=k,d.masked+=y+k,y="",x.repeat||(m+=x.optional?2:1);else if(x.optional||x.repeat){m+=2;continue}f++}else if(x.pipe){if(!k)break;const M=x.pipe.find(_y.bind(null,k));M&&(d.unmasked+=M,d.masked+=y+M,m+=x.pipe.length*2-1,y=""),f++}else _y(k,v)?(d.masked+=y+v,f++,y="",x.optional&&(d.unmasked+=v)):x.optional||(y+=v),h=!1,m+=x.optional?2:1}return(o&&!d.unmasked||!l&&d.unmasked)&&(d.masked+=y),d}function _y(e,t){return vy?(e==null?void 0:e.localeCompare(t,void 0,{sensitivity:"base"}))===0:(e==null?void 0:e.toLocaleLowerCase())===(t==null?void 0:t.toLocaleLowerCase())}function wy(e,t){return e=(e||"").toString(),t=Ah(t),t.mask?Array.isArray(t.mask)?$V(e,Object.assign({},t,{masks:t.mask})):zh(e,t):new Ih(e)}const ao=rs,ro={beforeMount:(e,{value:t,modifiers:n},a)=>{e=pu(e);const r=Ah(t,n);e[ao]={config:r},mu(e,a,{force:r.prefill})},mounted:e=>{e=pu(e);const t=e[ao],n=e.parentElement||e,a=s=>{s.target===e&&by(s,e)},r=s=>{s.target===e&&(s.type==="compositionend"?(e[ao].isComposing=!1,by(s,e)):e[ao].isComposing=!0)};n.addEventListener("input",a,!0),n.addEventListener("compositionstart",r,!0),n.addEventListener("compositionupdate",r,!0),n.addEventListener("compositionend",r,!0),t.cleanup=()=>{n.removeEventListener("input",a,!0),n.removeEventListener("compositionstart",r,!0),n.removeEventListener("compositionend",r,!0),n.removeEventListener("compositionupdate",r,!0)}},updated:(e,{value:t,oldValue:n,modifiers:a},r)=>{e=pu(e),t!==n?(e[ao].config=Ah(t,a),mu(e,r,{force:!0})):mu(e,r)},unmounted:e=>{pu(e)[ao].cleanup()}},TV=(e,t)=>{const n=e.__vccOpts||e;for(const[a,r]of t)n[a]=r;return n},IV={name:"InputFacade",directives:{facade:ro},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(e){e!==this.emittedValue&&(this.maskedValue=e)},mask:{deep:!0,handler(e){!e&&!this.masked&&(this.maskedValue=this.unmaskedValue)}},masked(){this.emitInput()}},methods:{onInput({target:e}){this.maskedValue=e.value,this.unmaskedValue=e.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)}}},AV=["value"];function NV(e,t,n,a,r,s){const o=i.resolveDirective("facade");return i.withDirectives((i.openBlock(),i.createElementBlock("input",{type:"text",value:r.maskedValue,onInput:t[0]||(t[0]=(...l)=>s.onInput&&s.onInput(...l)),onChange:t[1]||(t[1]=(...l)=>s.onChange&&s.onChange(...l)),onKeyup:t[2]||(t[2]=l=>e.$emit("keyup",l)),onKeydown:t[3]||(t[3]=l=>e.$emit("keydown",l)),onPaste:t[4]||(t[4]=l=>e.$emit("paste",l))},null,40,AV)),[[o,s.config]])}const ky=TV(IV,[["render",NV]]),zV={install(e,t={}){t.tokens&&VV(t.tokens),e.component(ky.name,ky),e.directive(t.name||"facade",ro)}};typeof window<"u"&&window.Vue&&window.Vue.use(zV);const LV={ref:"datePicker",class:"date-input"},PV={class:"date-input__icon"},FV={class:"calendar__header"},RV=["disabled","onClick","onMouseenter"],HV=Object.assign({name:"CdsDateInput"},{__name:"DateInput",props:i.mergeModels({label:{type:String,default:"Label"},variant:{type:String,default:"green"},state:{type:String,default:"default"},mode:{type:String,default:"picking",validator:e=>["typing","picking"].includes(e)},range:{type:Boolean,default:!1},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1},mobile:{type:Boolean,default:!1},floatingLabel:{type:Boolean,default:!1},showTodayDot:{type:Boolean,default:!1},highlightToday:{type:Boolean,default:!1},placeholder:{type:String,default:"Selecione uma data"},errorMessage:{type:String,default:"Valor inválido"},minDate:{type:String,default:""},maxDate:{type:String,default:""},tooltip:{type:String,default:null},tooltipIcon:{type:String,default:"info-outline"},supportingText:{type:[String,Array],default:""},supportLink:{type:String,default:null},supportLinkUrl:{type:[String,null],default:null}},{modelValue:{type:[String,Object]},modelModifiers:{}}),emits:i.mergeModels({...mr},["update:modelValue"]),setup(e,{expose:t,emit:n}){var _n,J;i.useCssVars(j=>({d43b80c0:de.value,64416106:i.unref(py),ce41e368:i.unref(fy)}));const a=ro,r=["S","T","Q","Q","S","S","D"],s=["dd/MM/yyyy","MM/dd/yyyy","yyyy-MM-dd","dd-MM-yyyy","dd.MM.yyyy","dd MMM yyyy","MMM dd yyyy"],o=i.useModel(e,"modelValue"),l=e,d=n,h=i.useTemplateRef("baseInput"),f=i.useTemplateRef("datePicker"),{emitClick:m,emitFocus:y,emitBlur:g,emitKeydown:v}=pr(d),{clickedOutside:_,setTargetElement:k}=gy(),x=i.ref(!1),M=i.ref(fe.now().setLocale("pt-BR")),B=i.ref(null),C=i.ref(null),V=i.ref(null),$=i.ref(!1),N=i.ref(r),I=i.ref(""),F=i.ref(!1),q=i.ref(!1),Q=i.ref(!1),P=i.ref("down"),Z=i.ref(null),se=i.computed(()=>M.value.setLocale("pt-BR").toFormat("MMMM")),U=i.computed(()=>M.value.setLocale("pt-BR").toFormat("yyyy")),me=i.computed(()=>M.value.toFormat("yyyy-MM-dd")),be=i.computed(()=>M.value.startOf("month").weekday-1),G=i.computed(()=>{const j=[],pe=M.value.daysInMonth;for(let R=1;R<=pe;R++)j.push(R);return j}),ye=i.computed(()=>l.minDate?fe.fromFormat(l.minDate,"yyyy-MM-dd"):null),Y=i.computed(()=>l.maxDate?fe.fromFormat(l.maxDate,"yyyy-MM-dd"):null),ee=i.computed(()=>q.value||Q.value?!1:ye.value?M.value.minus({months:1}).startOf("month")>=ye.value.startOf("month"):!0),ue=i.computed(()=>q.value||Q.value?!1:Y.value?M.value.plus({months:1}).startOf("month")<=Y.value.startOf("month"):!0),de=i.computed(()=>l.fluid?"100%":"fit-content");i.watch(o,j=>{if(!j){pt(),M.value=fe.now().setLocale("pt-BR");return}if(!fe.fromISO(j).isValid&&typeof j=="string")throw pt(),o.value=null,console.warn("Data informada é inválida"),new Error("Invalid DateTime");typeof j=="string"?(B.value=fe.fromISO(j),I.value=B.value.toFormat("dd/MM/yyyy"),M.value=B.value.startOf("month")):l.range&&typeof j=="object"&&(j.start&&(B.value=fe.fromISO(j.start)),j.end&&(C.value=fe.fromISO(j.end)),B.value&&C.value?(I.value=`De ${B.value.toFormat("dd/MM/yyyy")} a ${C.value.toFormat("dd/MM/yyyy")}`,M.value=C.value.startOf("month")):B.value&&(M.value=B.value.startOf("month")))},{immediate:!0}),i.watch(_,j=>{j&&x.value&&(x.value=!1)}),i.watch(f,j=>{j&&k(j)}),i.watch(()=>l.range,()=>{Z.value=l.range?null:"##/##/####"},{immediate:!0});function _e(j){const pe=M.value.set({day:j});return!!(ye.value&&pe.startOf("day")<ye.value||Y.value&&pe.startOf("day")>Y.value)}function ge(j){const pe=fe.now();return M.value.set({day:j}).hasSame(pe,"day")}function De(){l.disabled||(x.value=!x.value,P.value=hy(f,340,l.mobile||l.floatingLabel),x.value&&(l.range&&C.value?M.value=C.value.startOf("month"):B.value&&(M.value=B.value.startOf("month"))),m())}function Ye(){ee.value&&(M.value=M.value.minus({months:1}))}function Ne(){ue.value&&(M.value=M.value.plus({months:1}))}function ut(j){l.range&&B.value&&!C.value&&!_e(j)&&(V.value=M.value.set({day:j}),$.value=!0)}function _t(){$.value=!1,V.value=null}function ft(j){const pe=[`calendar__day--${l.variant}`],R=M.value.set({day:j});if(ge(j)&&(l.showTodayDot||l.highlightToday)&&pe.push(`today--${l.variant}`),_e(j))return pe.push("disabled-day"),pe;if(l.range){const T=B.value&&R.hasSame(B.value,"day"),K=C.value&&R.hasSame(C.value,"day");T||K?pe.push(`selected-day--${l.variant}`):B.value&&C.value&&R>B.value&&R<C.value?pe.push(`between-day--${l.variant}`):B.value&&!C.value&&V.value&&$.value&&(V.value<B.value&&R<B.value&&R>=V.value||V.value>B.value&&R>B.value&&R<=V.value)&&pe.push(`between-day--${l.variant}`)}else B.value&&R.hasSame(B.value,"day")&&pe.push(`selected-day--${l.variant}`);return pe}function it(j){if(_e(j))return;const pe=M.value.set({day:j});l.range?!B.value||B.value&&C.value?(B.value=pe,C.value=null):(pe<B.value?(C.value=B.value,B.value=pe):C.value=pe,B.value&&C.value&&(Ze(),x.value=!1)):(B.value=pe,o.value=B.value.toFormat("yyyy-MM-dd"),I.value=B.value.toFormat("dd/MM/yyyy"),x.value=!1),V.value=null}function Ze(){!B.value||!C.value||(o.value={start:B.value.toFormat("yyyy-MM-dd"),end:C.value.toFormat("yyyy-MM-dd")},I.value=`De ${B.value.toFormat("dd/MM/yyyy")} a ${C.value.toFormat("dd/MM/yyyy")}`)}function Qe(){if(!I.value)return null;if(l.range&&I.value.includes("a")){const j=/De\s+(\d{2}\/\d{2}\/\d{4})\s+a\s+(\d{2}\/\d{2}\/\d{4})/,pe=I.value.match(j);if(pe&&pe.length===3){const R=pe[1],T=pe[2],K=fe.fromFormat(R,"dd/MM/yyyy"),le=fe.fromFormat(T,"dd/MM/yyyy");if(K.isValid&&le.isValid)return ae(K)&&ae(le)?{start:K,end:le<K?K:le}:null}return Dt()}else return lt()}function Dt(){const[j,pe]=I.value.split("-").map(K=>K.trim());let R=null,T=null;for(const K of s){const le=fe.fromFormat(j,K);if(le.isValid){R=le;break}}for(const K of s){const le=fe.fromFormat(pe,K);if(le.isValid){T=le;break}}return R&&T&&ae(R)&&ae(T)?{start:R>T?T:R,end:R>T?R:T}:null}function lt(){for(const pe of s){const R=fe.fromFormat(I.value,pe);if(R.isValid&&ae(R))return R}const j=fe.fromISO(I.value);return j.isValid&&ae(j)?j:null}function ae(j){return!(ye.value&&j<ye.value||Y.value&&j>Y.value)}function xe(){if(F.value){F.value=!1;return}const j=Qe();j?l.range&&typeof j=="object"?(B.value=j.start,C.value=j.end,Ze(),M.value=C.value):(B.value=j,C.value=null,o.value=B.value.toFormat("yyyy-MM-dd"),I.value=B.value.toFormat("dd/MM/yyyy"),M.value=B.value):I.value&&console.warn("Formato de data não reconhecido"),g()}function Ve(j){j.preventDefault(),F.value=!0}function ze(){const j=Qe();j&&(l.range&&typeof j=="object"?(B.value=j.start,C.value=j.end,Ze(),M.value=C.value):(B.value=j,C.value=null,o.value=B.value.toFormat("yyyy-MM-dd"),I.value=B.value.toFormat("dd/MM/yyyy"),M.value=B.value)),x.value=!1}function Fe(){B.value=null,C.value=null,I.value="",o.value=l.range?{start:null,end:null}:null}function pt(){B.value=null,C.value=null,I.value=""}function Bt(){var j;return l.range&&B.value&&C.value?{start:B.value.toFormat("dd/MM/yyyy"),end:C.value.toFormat("dd/MM/yyyy")}:(j=B.value)==null?void 0:j.toFormat("dd/MM/yyyy")}function Vt(){var j;return l.range&&B.value&&C.value?{start:B.value.toISO(),end:C.value.toISO()}:(j=B.value)==null?void 0:j.toISO()}function Mt(){var j;return l.range&&B.value&&C.value?{start:B.value.toString(),end:C.value.toString()}:(j=B.value)==null?void 0:j.toString()}function nn(){var j;return l.range&&B.value&&C.value?{start:B.value.toJSDate(),end:C.value.toJSDate()}:(j=B.value)==null?void 0:j.toJSDate()}function $t(){return l.range&&B.value&&C.value?{start:B.value,end:C.value}:B.value}function he(j){q.value=!q.value,M.value=M.value.set({month:parseInt(j.index)})}function Le(j){Q.value=!Q.value,M.value=M.value.set({year:j})}function Ge(){l.range||(Q.value=!1,q.value=!q.value)}function on(){l.range||(q.value=!1,Q.value=!Q.value)}function mn(){if(!I.value){o.value=null;return}const j=fe.fromFormat(I.value,"dd/MM/yyyy");if(!j.isValid)throw pt(),o.value=null,console.warn("Data informada é inválida"),new Error("Invalid DateTime");o.value=j.setLocale("pt-BR").toFormat("yyyy-MM-dd")}return t({componentRef:(_n=h.value)==null?void 0:_n.componentRef,isFocused:(J=h.value)==null?void 0:J.isFocused,focus:()=>{var j;return(j=h.value)==null?void 0:j.focus()},blur:()=>{var j;return(j=h.value)==null?void 0:j.blur()},clear:()=>{var j;return(j=h.value)==null?void 0:j.clear()},select:()=>{var j;return(j=h.value)==null?void 0:j.select()},getDMYFormat:Bt,toISO:Vt,toString:Mt,toJSDate:nn,toDateTime:$t,clearSelection:Fe}),(j,pe)=>(i.openBlock(),i.createElementBlock("div",LV,[e.mode==="typing"?i.withDirectives((i.openBlock(),i.createBlock(Wi,i.mergeProps({key:0,ref:"baseInput"},l,{modelValue:I.value,"onUpdate:modelValue":pe[0]||(pe[0]=R=>I.value=R),type:"text","floating-label":e.floatingLabel||e.mobile,onBlur:mn,onKeydown:i.withKeys(i.withModifiers(mn,["prevent"]),["enter"])}),null,16,["modelValue","floating-label","onKeydown"])),[[i.unref(a),"##/##/####"]]):i.createCommentVNode("",!0),e.mode!=="typing"?(i.openBlock(),i.createBlock(Wi,i.mergeProps({key:1,ref:"baseInput"},l,{modelValue:I.value,"onUpdate:modelValue":pe[1]||(pe[1]=R=>I.value=R),type:"date","floating-label":e.floatingLabel||e.mobile,readonly:l.range,onClick:De,onFocus:i.unref(y),onBlur:xe,onKeydown:[i.unref(v),i.withKeys(i.withModifiers(ze,["prevent"]),["enter"])]}),{"trailing-icon":i.withCtx(()=>[i.createElementVNode("div",PV,[i.createVNode(ve,{height:"20",width:"20",name:"calendar-outline"})])]),_:1},16,["modelValue","floating-label","readonly","onFocus","onKeydown"])):i.createCommentVNode("",!0),e.mode!=="typing"?(i.openBlock(),i.createBlock(i.Transition,{key:2,name:"calendar-animation"},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",{ref:"calendar",class:i.normalizeClass(`date-input__calendar--${P.value}`),onMousedown:i.withModifiers(Ve,["prevent"])},[i.createElementVNode("div",FV,[i.createVNode(Ue,{gap:"0"},{default:i.withCtx(()=>[i.createElementVNode("span",{class:i.normalizeClass({"calendar__month-and-title--no-hover":e.range,"calendar__month-and-title":!e.range}),onClick:Ge},i.toDisplayString(se.value),3),i.createElementVNode("span",{class:i.normalizeClass({"calendar__month-and-title--no-hover":e.range,"calendar__month-and-title":!e.range}),onClick:on},i.toDisplayString(U.value),3)]),_:1}),i.createVNode(Ue,null,{default:i.withCtx(()=>[i.createVNode(ve,{height:"20",width:"20",name:"caret-up-outline",class:i.normalizeClass(["calendar__right-caret",{"calendar__caret--disabled":!ee.value}]),onClick:Ye},null,8,["class"]),i.createVNode(ve,{height:"20",width:"20",name:"caret-down-outline",class:i.normalizeClass(["calendar__left-caret",{"calendar__caret--disabled":!ue.value}]),onClick:Ne},null,8,["class"])]),_:1})]),!q.value&&!Q.value?(i.openBlock(),i.createBlock(fu,{key:0,cols:7,gap:"5px",onMouseleave:_t},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(N.value,R=>(i.openBlock(),i.createElementBlock("div",{key:R,class:"calendar__week-day"},i.toDisplayString(R),1))),128)),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(be.value,R=>(i.openBlock(),i.createElementBlock("div",{key:"empty-"+R,class:"calendar__empty-day"}))),128)),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(G.value,R=>(i.openBlock(),i.createElementBlock("div",{key:R,class:i.normalizeClass(ft(R)),disabled:_e(R),onClick:T=>it(R),onMouseenter:T=>ut(R)},i.toDisplayString(R),43,RV))),128))]),_:1})):i.createCommentVNode("",!0),i.withDirectives(i.createVNode(my,{ref:"monthPicker","selected-date":me.value,"min-date":e.minDate,"max-date":e.maxDate,variant:e.variant,year:M.value.year,onClick:he},null,8,["selected-date","min-date","max-date","variant","year"]),[[i.vShow,!e.range&&q.value]]),i.withDirectives(i.createVNode(EV,{ref:"monthPicker","selected-date":me.value,"min-date":e.minDate,"max-date":e.maxDate,variant:e.variant,onClick:Le},null,8,["selected-date","min-date","max-date","variant"]),[[i.vShow,!e.range&&Q.value]])],34),[[i.vShow,x.value]])]),_:1})):i.createCommentVNode("",!0)],512))}}),WV=ie(HV,[["__scopeId","data-v-1e2773a7"]]),YV=["teal","green","blue","indigo","violet","pink","red","orange","amber"],jV=["warning","error","info"],UV={name:"CdsDialogModal",components:{CdsIcon:ve,CdsButton:fn},props:{variant:{type:String,default:"warning",validator:e=>jV.includes(e)},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:e=>YV.includes(e)}},data(){return{innerValue:!1,tmp:""}},watch:{modelValue(e){this.innerValue=e}},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)},closeDialogModal(e){this.$refs.dialogModalRef&&!this.$refs.dialogModalRef.contains(e.target)&&this.closeHandle()}}},qV={key:0,ref:"dialogModalRef",class:"cds-modal"},GV={class:"cds-modal__header-content"},KV={key:0,class:"cds-modal__header-title"},ZV={key:1,class:"cds-modal__header-title"},XV={key:2,class:"cds-modal__header-title"},JV={class:"cds-modal__body"},QV={class:"cds-modal__body-title"},e$={class:"cds-modal__body-description"},t$={class:"cds-modal__footer"};function n$(e,t,n,a,r,s){const o=i.resolveComponent("CdsIcon"),l=i.resolveComponent("CdsButton");return r.innerValue?(i.openBlock(),i.createElementBlock("div",{key:0,class:"cds-modal__backdrop",onClick:t[2]||(t[2]=(...d)=>s.closeDialogModal&&s.closeDialogModal(...d))},[r.innerValue?(i.openBlock(),i.createElementBlock("div",qV,[i.createElementVNode("header",{class:i.normalizeClass(`cds-modal__header--${n.variant}`)},[i.createElementVNode("div",GV,[n.variant==="warning"?(i.openBlock(),i.createElementBlock("div",KV,[i.createVNode(o,{class:i.normalizeClass(`cds-modal__header-icon--${n.variant}`),height:"40",width:"40",name:"warning-outline"},null,8,["class"]),t[3]||(t[3]=i.createTextVNode(" Atenção "))])):n.variant==="error"?(i.openBlock(),i.createElementBlock("div",ZV,[i.createVNode(o,{class:i.normalizeClass(`cds-modal__header-icon--${n.variant}`),height:"40",width:"40",name:"alert-outline"},null,8,["class"]),t[4]||(t[4]=i.createTextVNode(" Erro "))])):n.variant==="info"?(i.openBlock(),i.createElementBlock("div",XV,[i.createVNode(o,{class:i.normalizeClass(`cds-modal__header-icon--${n.variant}`),height:"40",width:"40",name:"info-outline"},null,8,["class"]),t[5]||(t[5]=i.createTextVNode(" Informativo "))])):i.createCommentVNode("",!0)]),n.variant==="warning"?(i.openBlock(),i.createBlock(o,{key:0,class:i.normalizeClass(`cds-modal__header-detail--${n.variant}`),height:"60",width:"60",name:"warning-outline"},null,8,["class"])):n.variant==="error"?(i.openBlock(),i.createBlock(o,{key:1,class:i.normalizeClass(`cds-modal__header-detail--${n.variant}`),height:"60",width:"60",name:"alert-outline"},null,8,["class"])):n.variant==="info"?(i.openBlock(),i.createBlock(o,{key:2,class:i.normalizeClass(`cds-modal__header-detail--${n.variant}`),height:"60",width:"60",name:"info-outline"},null,8,["class"])):i.createCommentVNode("",!0)],2),i.createElementVNode("div",JV,[i.createElementVNode("span",QV,i.toDisplayString(n.title),1),i.createElementVNode("span",e$,i.toDisplayString(n.description),1)]),i.createElementVNode("footer",t$,[n.variant==="warning"?(i.openBlock(),i.createBlock(l,{key:0,text:n.cancelButtonText,secondary:"",onClick:t[0]||(t[0]=d=>s.closeHandle())},null,8,["text"])):i.createCommentVNode("",!0),i.createVNode(l,{class:"footer__ok-button",text:n.okButtonText,variant:n.actionButtonVariant,onClick:t[1]||(t[1]=d=>s.okHandle())},null,8,["text","variant"])])],512)):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)}const i$=ie(UV,[["render",n$],["__scopeId","data-v-0afb0a0f"]]),Cy=Object.assign({name:"CdsTextInput"},{__name:"TextInput",props:i.mergeModels({label:{type:String,default:"Label"},disabled:{type:Boolean,default:!1},state:{type:String,default:"default"},inputType:{type:String,default:"text",validator:e=>["text","email"].includes(e)},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:null},supportLink:{type:String,default:null},supportingText:{type:[String,Array],default:""},supportLinkUrl:{type:[String,null],default:null},lazy:{type:Boolean,default:!1},mobile:{type:Boolean,default:!1},floatingLabel:{type:Boolean,default:!1},disableAutocomplete:{type:Boolean,default:!1}},{modelValue:{type:String},modelModifiers:{}}),emits:i.mergeModels({...mr},["update:modelValue"]),setup(e,{expose:t,emit:n}){const a=ro,r=i.useTemplateRef("baseInput"),s=i.useModel(e,"modelValue"),o=e,l=n,d=i.ref(""),h=i.ref(o.mask),{emitClick:f,emitFocus:m,emitBlur:y,emitKeydown:g}=pr(l);i.watch(()=>o.mask,_=>h.value=_),i.watch(s,(_,k)=>{_!==k&&(d.value=_)},{immediate:!0}),i.watch(d,_=>{s.value=_});const v=i.computed(()=>{var _;return(_=r.value)==null?void 0:_.componentRef});return t({componentRef:v,isFocused:i.computed(()=>{var _;return(_=r.value)==null?void 0:_.isFocused}),focus:()=>{var _;return(_=r.value)==null?void 0:_.focus()},blur:()=>{var _;return(_=r.value)==null?void 0:_.blur()},clear:()=>{var _;return(_=r.value)==null?void 0:_.clear()},select:()=>{var _;return(_=r.value)==null?void 0:_.select()}}),(_,k)=>i.withDirectives((i.openBlock(),i.createBlock(Wi,i.mergeProps({ref:"baseInput"},o,{modelValue:d.value,"onUpdate:modelValue":k[0]||(k[0]=x=>d.value=x),"enable-autocomplete":!e.disableAutocomplete,"support-link-url":e.supportLinkUrl||e.linkUrl,"support-link":e.supportLink||e.linkText,"floating-label":e.floatingLabel||e.mobile,onClick:i.unref(f),onFocus:i.unref(m),onBlur:i.unref(y),onKeydown:i.unref(g)}),{label:i.withCtx(()=>[i.renderSlot(_.$slots,"label")]),_:3},16,["modelValue","enable-autocomplete","support-link-url","support-link","floating-label","onClick","onFocus","onBlur","onKeydown"])),[[i.unref(a),h.value]])}}),Lh=ie(Object.assign({name:"CdsFlatButton"},{__name:"FlatButton",props:{variant:{type:String,default:"green"},text:{type:String,default:"Flat Button"},disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{expose:t,emit:n}){const a=e,r=["green","teal","turquoise","blue","indigo","violet","pink","red","orange","amber","dark"],s=i.useTemplateRef("componentRef"),o=i.computed(()=>r.includes(a.variant)?`flat-button--${a.variant}`:"flat-button--green"),l=i.computed(()=>{const f=a.disabled?"--disabled":"--active";return`${o.value}${f}`}),d=n,h=f=>{a.disabled||d("click",f)};return t({componentRef:s}),(f,m)=>(i.openBlock(),i.createElementBlock("button",{ref_key:"componentRef",ref:s,class:i.normalizeClass(["flat-button__container",l.value]),onClick:h},[i.renderSlot(f.$slots,"default",{},()=>[i.createTextVNode(i.toDisplayString(e.text),1)],!0)],2))}}),[["__scopeId","data-v-06d8a716"]]),a$=ie(Object.assign({name:"CdsDynamicInputList"},{__name:"DynamicInputList",props:i.mergeModels({label:{type:String,default:"Adicione opções"},inputLabel:{type:String,default:"Nova opção"},buttonText:{type:String,default:"Adicionar"},buttonVariant:{type:String,default:"dark"},tooltip:{type:String,default:null},tooltipIcon:{type:String,default:"info-outline"},supportLink:{type:String,default:null},supportLinkUrl:{type:[String,null],default:null},disabled:{type:Boolean,default:!1},incrementResolver:{type:Function,default:()=>({label:"",value:oa()})},disableEdit:{type:Boolean,default:!1}},{modelValue:{type:Array,default:()=>[{label:"",value:oa()}]},modelModifiers:{}}),emits:["update:modelValue"],setup(e,{expose:t}){const n=i.useModel(e,"modelValue"),a=e,r=i.ref([]),s=i.ref([]),o=i.ref(!1);i.watch(n,y=>{JSON.stringify(y)!==JSON.stringify(r.value)&&(r.value=JSON.parse(JSON.stringify(n.value)))},{immediate:!0}),i.watch(r,y=>{JSON.stringify(y)!==JSON.stringify(n.value)&&(n.value=JSON.parse(JSON.stringify(r.value)))},{deep:!0});function l(){a.disabled||(o.value=!0,r.value[r.value.length-1].label!==""&&(r.value.push(a.incrementResolver()),o.value=!1,d()))}function d(){i.nextTick(()=>{if(s.value.length>0){const y=s.value[s.value.length-1];y==null||y.focus()}})}function h(y){return y===r.value.length-1&&r.value[r.value.length-1].label===""&&o.value?"invalid":"default"}function f(y){a.disabled||r.value.splice(y,1)}function m(){return r.value.map(y=>y.label)}return t({arrayOfValues:m}),(y,g)=>(i.openBlock(),i.createElementBlock("div",null,[i.createVNode(hu,{text:e.label,tooltip:e.tooltip,"tooltip-icon":e.tooltipIcon,"support-link":e.supportLink,"support-link-url":e.supportLinkUrl},null,8,["text","tooltip","tooltip-icon","support-link","support-link-url"]),i.createVNode(Ue,{direction:"column",gap:"3"},{default:i.withCtx(()=>[i.createVNode(i.TransitionGroup,null,{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.value,(v,_)=>(i.openBlock(),i.createBlock(Ue,{key:v,align:"center",gap:"3"},{default:i.withCtx(()=>[i.createVNode(Cy,{ref_for:!0,ref_key:"inputRefs",ref:s,modelValue:v.label,"onUpdate:modelValue":k=>v.label=k,"floating-label":"",label:e.inputLabel,state:h(_),disabled:e.disabled||e.disableEdit,"error-message":"",onKeyup:i.withKeys(l,["enter"])},null,8,["modelValue","onUpdate:modelValue","label","state","disabled"]),r.value.length>1?(i.openBlock(),i.createBlock(Ni,{key:0,clickable:!e.disabled},{default:i.withCtx(()=>[i.createVNode(ve,{height:"20",width:"20",name:"x-outline",class:i.normalizeClass(e.disabled?"multiinput__x-icon--disabled":"multiinput__x-icon"),onClick:k=>f(_)},null,8,["class","onClick"])]),_:2},1032,["clickable"])):i.createCommentVNode("",!0)]),_:2},1024))),128))]),_:1}),i.createVNode(Lh,{variant:e.buttonVariant,disabled:e.disabled,class:"multiinput__add-button",onClick:l},{default:i.withCtx(()=>[i.createVNode(Ue,{align:"center",gap:"2"},{default:i.withCtx(()=>[i.createVNode(ve,{height:"16",width:"16",name:"plus-outline"}),i.createTextVNode(" "+i.toDisplayString(e.buttonText),1)]),_:1})]),_:1},8,["variant","disabled"])]),_:1})]))}}),[["__scopeId","data-v-4a978aa8"]]),r$={name:"CdsDropdown",components:{CdsChevron:Ai},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 e=document.getElementById(this.id);if(!e)return null;const t=parseFloat(window.getComputedStyle(e).width);return t>this.dropdownWidth?{"--width":`${t}px`}:{"--width":`${this.dropdownWidth}px`}}},mounted(){this.id=`filter-pill$-${this._uid}`,document.querySelector("body").addEventListener("click",this.closeDropdown)},methods:{activeSelection(){this.disabled||(this.isActive=!this.isActive,this.$emit("click",!0))},hide(){this.isActive=!this.isActive},closeDropdown(e){this.$refs.dropdownRef&&!this.$refs.dropdownRef.contains(e.target)&&this.$refs.dropdownButtonRef&&!this.$refs.dropdownButtonRef.contains(e.target)&&this.hide()}}},s$=["id"],o$={class:"filter-pill__label"},l$={class:"filter-pill__content"};function c$(e,t,n,a,r,s){const o=i.resolveComponent("CdsChevron");return i.openBlock(),i.createElementBlock("div",null,[i.createElementVNode("span",{id:r.id,ref:"dropdownButtonRef",class:i.normalizeClass([{"filter-pill__container--disabled":n.disabled,"filter-pill__container--active":r.isActive&&!n.disabled},"filter-pill__container"]),onClick:t[0]||(t[0]=(...l)=>s.activeSelection&&s.activeSelection(...l))},[i.createElementVNode("span",o$,i.toDisplayString(n.label)+": ",1),i.createElementVNode("span",l$,i.toDisplayString(n.content),1),(i.openBlock(),i.createBlock(o,{key:r.isActive,animate:"",size:"sm",direction:r.isActive?"top":"bottom"},null,8,["direction"]))],10,s$),r.isActive?(i.openBlock(),i.createElementBlock("div",{key:0,ref:"dropdownRef",style:i.normalizeStyle(s.dynamicStyle),class:"filter-pill__dropdown"},[i.renderSlot(e.$slots,"default",{},void 0,!0)],4)):i.createCommentVNode("",!0)])}const d$=ie(r$,[["render",c$],["__scopeId","data-v-e0c16bb4"]]),u$=["onClick"],h$={class:"dropdown__text"},f$=ie(Object.assign({name:"CdsDropdownButton"},{__name:"DropdownButton",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},size:{type:String,default:"md",validator(e){return["sm","md","lg"].includes(e)}},disabled:{type:Boolean,default:!1},tooltipText:{type:String,default:null}},emits:["button-click","action-click"],setup(e,{emit:t}){const n=t,a=e,r=i.useTemplateRef("dropdownButtonRef"),s=i.useTemplateRef("dropdownRef"),o=i.useId(),l=i.ref(!1),d=i.computed(()=>{const g=document.getElementById(o.value);if(!g)return null;const v=parseFloat(window.getComputedStyle(g).width);return v>a.dropdownWidth?{"--width":`${v}px`}:{"--width":`${a.dropdownWidth}px`}});i.onMounted(()=>{document.querySelector("body").addEventListener("click",y)}),i.onBeforeUnmount(()=>{document.querySelector("body").removeEventListener("click",y)});function h(){a.disabled||(l.value=!l.value,n("button-click",!0))}function f(){l.value=!1}function m(g,v){l.value=!l.value,n("action-click",[g,v])}function y(g){s.value&&!s.value.contains(g.target)&&r.value&&!r.value.$el.contains(g.target)&&f()}return(g,v)=>{const _=i.resolveDirective("cdstip");return i.openBlock(),i.createElementBlock("div",null,[i.withDirectives((i.openBlock(),i.createBlock(fn,{id:i.unref(o),ref_key:"dropdownButtonRef",ref:r,variant:e.variant,size:e.size,text:e.text,secondary:e.secondary,ghost:e.ghost,disabled:e.disabled,onClick:h},{append:i.withCtx(()=>[i.createVNode(Ai,{animate:"",size:"sm",light:!e.secondary&&!e.ghost,direction:l.value?"bottom":"top"},null,8,["light","direction"])]),_:1},8,["id","variant","size","text","secondary","ghost","disabled"])),[[_,e.tooltipText]]),l.value?(i.openBlock(),i.createElementBlock("div",{key:0,ref_key:"dropdownRef",ref:s,style:i.normalizeStyle(d.value),class:"dropdown-button__dropdown"},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.items,(k,x)=>(i.openBlock(),i.createElementBlock("div",{key:x},[i.createElementVNode("div",{class:"dropdown__container",onClick:M=>m(k.name,x)},[i.createVNode(ve,{class:"dropdown__icon",height:"22",width:"22",name:k.icon},null,8,["name"]),i.createElementVNode("span",h$,i.toDisplayString(k.name),1)],8,u$)]))),128))],4)):i.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-579a5533"]]);aa.register(...Xr);const p$={name:"CdsDonutChart",components:{Doughnut:qg},props:{data:{type:Object,required:!0},variant:{type:String,required:!0,default:"green",validator:e=>["green","teal","turquoise","blue","indigo","violet","pink","red","orange","amber","gray","dark"].includes(e)},theme:{type:String,required:!1,default:"",validator:e=>["green","teal","turquoise","blue","indigo","violet","pink","red","orange","amber","gray","dark"].includes(e)},labels:{type:Array,required:!0,default:()=>[]},colors:{type:Array,default:()=>[],validator:e=>{const t=["green","teal","turquoise","blue","indigo","violet","pink","red","orange","amber","gray","dark"];return e.every(n=>t.includes(n))}}},data(){return{sassColorVariables:ai,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(e=>{const t=this.palletColors.find(n=>n.variantName.toLowerCase().includes(e));if(t)return t.color400})}},watch:{labels:{handler(e){this.localLabels=e},immediate:!0},variant:{handler(e){e==="gray"||e==="dark"?this.deleteFirstTwoColors=!0:this.deleteFirstTwoColors=!1},immediate:!0},data:{handler(e){this.mergeChartDataNoSelect(e)},immediate:!0}},mounted(){this.mergeChartDataNoSelect(this.data)},methods:{paleteBuilder:sa,palete(){this.palletColors=this.paleteBuilder(this.sassColorVariables.palete),this.removeFirstTwoElements()},themeResolver(){this.themeColors=this.paleteBuilder(this.sassColorVariables.chartThemes)},removeFirstTwoElements(){for(let e=0;e<this.palletColors.length;e++){const t=this.palletColors[e];this.deleteFirstTwoColors===!1&&(t.colorShades.splice(0,2),t.colorTokens.splice(0,2),t.colorData.splice(0,2))}},mergeChartDataNoSelect(e){const t={labels:this.localLabels,datasets:[]};if(e.forEach(n=>{n.datasets.forEach(a=>{const r={label:a.label,data:a.data,name:a.name,borderRadius:5};t.datasets.push(r)})}),this.theme.length&&this.colors.length===0){this.themeResolver();const n=this.isColorsSet?this.computedBackgroundColors:this.generateBackgroundColorWithTheme();this.setColors(t.datasets,n)}else{this.palete();const n=this.isColorsSet?this.computedBackgroundColors:this.generateBackgroundColor();this.setColors(t.datasets,n)}this.localChartData=t},generateBackgroundColor(){const e=this.variant.toLowerCase(),t=this.palletColors.find(n=>n.variantName.toLowerCase().includes(e));return t?t.colorShades:[]},generateBackgroundColorWithTheme(){const e=this.theme.toLowerCase(),t=this.themeColors.find(n=>n.variantName.toLowerCase().includes(e));return t?t.colorShades:[]},setColors(e,t){const n={};e.forEach(a=>{const r=a.name;n[r]||(n[r]=t.slice()),a.backgroundColor=n[r].splice(0,a.data.length),a.borderRadius=5})},clickHandler(e){const n=this.$refs["doughnut-chart"].chart.getElementsAtEventForMode(e,"nearest",{intersect:!0},!1),a={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",a)}}},m$={class:"responsive-container"};function g$(e,t,n,a,r,s){const o=i.resolveComponent("Doughnut");return i.openBlock(),i.createElementBlock("span",null,[i.createElementVNode("div",m$,[i.createVNode(o,{ref:"doughnut-chart",data:r.localChartData,options:r.chartOptions,onClick:s.clickHandler},null,8,["data","options","onClick"])])])}const y$=ie(p$,[["render",g$],["__scopeId","data-v-4002a6ce"]]),Ph={name:"CdsFileInput",components:{CdsIcon:ve},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&&!Et.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 e="";return this.allowedExtensions.split(",").forEach((n,a,r)=>{n&&n.trim().length>0&&(e+=`.${n.trim()}${a!==r.length-1?", ":""}`)}),e},computedAllowedMessage(){if(this.allowedExtensions){if(this.invalidExtensionError){const t=this.allowedExtensions.split(",").length===1?"":"s";return`${`São aceitos apenas arquivo${t} do${t} seguinte${t} tipo${t}:`} ${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 e=this.file.name.split(".");return e.length>2?`arquivo.${Et.last(e)}`:`${e[0].substring(0,16)}....${e[1]}`}return this.file.name}},watch:{file(e){this.$emit("update:modelValue",e)},state:{handler(e){this.internalState=e},immediate:!0},isValid:{handler(e){e?this.internalState="valid":this.internalState="invalid"},immediate:!0}},methods:{dropHandler(e){if(this.isValid=null,this.isOnDragEnterState=!1,e.preventDefault(),!e.dataTransfer.items||e.dataTransfer.items[0].kind!=="file"||this.disabled)return;const t=e.dataTransfer.items[0].getAsFile();if(this.isAValidExtension(t.name)){this.file=t,this.isValid=!0;return}this.isValid=!1,this.file=null},linkClick(){this.disabled||this.$refs.fileInput.click()},isAValidExtension(e){if(this.allowedExtensions===null)return!0;const t=this.allowedExtensions.split(",");let n=e.split(".");n=n[n.length-1].trim();const a=t.filter(r=>r===n).length>0;return this.invalidExtensionError=!a,a},handleFormFileChange(e){this.isValid="invalid";const[t]=e.target.files||{};if(this.isAValidExtension(t.name)){this.file=t,this.isValid=!0;return}this.isValid=!1,this.$nextTick().then(()=>{this.file=null})},handleRemove(){this.disabled||(this.isValid="default",this.file=null)}}},xy=()=>{i.useCssVars(e=>({"12397b85":e.textAlignmentResolver}))},Sy=Ph.setup;Ph.setup=Sy?(e,t)=>(xy(),Sy(e,t)):xy;const b$=["accept"],v$={key:0,class:"file-input__container"},_$={key:0},w$={key:1},k$={key:1,class:"file-input__container"},C$={key:1},x$={key:0,class:"file-input__alert-container"};function S$(e,t,n,a,r,s){const o=i.resolveComponent("CdsIcon");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",null,[i.createElementVNode("div",{class:i.normalizeClass(["file-input text-center",{"file-input--drag-state":r.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"||!r.isValid,"file-input--disabled":n.disabled===!0,[s.sizeClass.holderPadding]:n.size}]),onDragover:t[2]||(t[2]=i.withModifiers(l=>r.isOnDragEnterState=!0,["prevent","stop"])),onDragenter:t[3]||(t[3]=i.withModifiers(l=>r.isOnDragEnterState=!0,["prevent","stop"])),onDragleave:t[4]||(t[4]=i.withModifiers(l=>r.isOnDragEnterState=!1,["prevent","stop"])),onDragend:t[5]||(t[5]=i.withModifiers(l=>r.isOnDragEnterState=!1,["prevent","stop"])),onDrop:t[6]||(t[6]=(...l)=>s.dropHandler&&s.dropHandler(...l)),onClick:t[7]||(t[7]=(...l)=>s.linkClick&&s.linkClick(...l))},[i.withDirectives(i.createElementVNode("input",{ref:"fileInput",type:"file",accept:s.acceptString,onChange:t[0]||(t[0]=(...l)=>s.handleFormFileChange&&s.handleFormFileChange(...l))},null,40,b$),[[i.vShow,!1]]),r.file?(i.openBlock(),i.createElementBlock("div",k$,[i.createVNode(o,{height:"24",width:"24",name:"document-text-outline",class:i.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"]),i.createElementVNode("div",{class:i.normalizeClass({[s.sizeClass.inputTitle]:n.size,[s.sizeClass.contentPadding]:n.size})},[r.isOnDragEnterState?(i.openBlock(),i.createElementBlock("div",C$," Solte aqui o seu arquivo ")):(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["on-drag-content__container",{"on-drag-content__container--disabled":n.disabled===!0}])},[i.createElementVNode("div",null,i.toDisplayString(s.formatFilename),1),i.createElementVNode("div",{class:"x-icon__container",onClick:t[1]||(t[1]=i.withModifiers((...l)=>s.handleRemove&&s.handleRemove(...l),["stop"]))},[i.createVNode(o,{height:"18",width:"18",name:"x-outline",class:i.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)])):(i.openBlock(),i.createElementBlock("div",v$,[i.createVNode(o,{name:"upload-cloud-outline",class:i.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,[s.sizeClass.holderPadding]:n.size})},null,8,["class"]),i.createElementVNode("div",{class:i.normalizeClass({[s.sizeClass.inputTitle]:n.size,[s.sizeClass.contentPadding]:n.size})},[r.isOnDragEnterState?(i.openBlock(),i.createElementBlock("div",w$," Solte aqui o seu arquivo ")):(i.openBlock(),i.createElementBlock("div",_$,i.toDisplayString(n.textMessage),1))],2)]))],34)]),r.internalState==="invalid"?(i.openBlock(),i.createElementBlock("div",x$,i.toDisplayString(s.computedAllowedMessage),1)):i.createCommentVNode("",!0)],64)}const By=ie(Ph,[["render",S$],["__scopeId","data-v-b1c88500"]]),B$={class:"file-viewer__image"},M$={key:0,class:"file-viewer__extension"},E$={class:"file-viewer__info"},O$={class:"file-viewer__label"},D$={class:"file-viewer__file-name"},V$={key:0,class:"file-viewer__backdrop"},$$={class:"file-viewer__visualizer-header"},T$={class:"file-viewer__visualizer-label"},I$={class:"file-viewer__visualizer-actions"},A$={key:0},N$={key:1,class:"file-viewer__visualizer-empty-state"},z$=ie(Object.assign({name:"CdsFileViewer"},{__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:e=>ru.find(t=>t.name===e)}},emits:["close","download-click"],setup(e,{emit:t}){const n=t,a=e,r=i.ref(!1),s=i.ref(!1),o=["jpg","jpeg","png","webp"],l=i.computed(()=>{if(a.fileUrl){const k=Et.last(a.fileUrl.split("/")).match(/\.([A-Za-z]{3,4})/),x=Et.get(k,"1",null);if(x)return x.toLowerCase()}return"file"}),d=i.computed(()=>a.label.length>50?a.label.substring(0,50):a.label),h=()=>{r.value=!0},f=()=>{r.value=!1},m=()=>{s.value=!s.value,g(s.value)},y=()=>{s.value=!1,g(s.value),n("close",!0)},g=_=>{document.body.style.overflow=_?"hidden":"auto"},v=i.computed(()=>window.matchMedia("(max-width: 450px)").matches);return(_,k)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",{ref:"fileViewer",class:i.normalizeClass(["file-viewer",`file-viewer--${e.variant}`]),tabindex:"0",onMouseenter:h,onMouseleave:f,onClick:m,onKeyup:i.withKeys(y,["esc"])},[i.createElementVNode("div",B$,[r.value?(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(["file-viewer__icon",`file-viewer__icon--${e.variant}`])},[i.createVNode(ve,{height:"32",width:"32",name:"image-outline"})],2)):(i.openBlock(),i.createElementBlock("div",M$,i.toDisplayString(l.value),1))]),i.createElementVNode("div",E$,[i.createElementVNode("div",O$,i.toDisplayString(d.value),1),i.createElementVNode("div",D$,i.toDisplayString(e.fileUrl),1),i.createElementVNode("div",null,[i.createElementVNode("a",{class:i.normalizeClass(["file-viewer__download",`file-viewer__download--${e.variant}`]),onClick:k[0]||(k[0]=i.withModifiers(x=>n("download-click",!0),["stop"]))}," Baixar arquivo ",2)])])],34),s.value?(i.openBlock(),i.createElementBlock("div",V$,[i.createElementVNode("div",$$,[i.createElementVNode("div",T$,i.toDisplayString(d.value),1),i.createElementVNode("div",I$,[i.createElementVNode("div",{class:"file-viewer__visualizer-download",onClick:k[1]||(k[1]=x=>n("download-click",!0))},[i.createVNode(ve,{height:"24",width:"24",name:"download-cloud-outline"}),v.value?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("span",A$," Baixar arquivo "))]),i.createVNode(ve,{class:"file-viewer__visualizer-close",height:"24",width:"24",name:"x-outline",onClick:y})])]),i.createElementVNode("div",{class:"file-viewer__visualizer-image-container",onClick:y},[o.includes(l.value)?(i.openBlock(),i.createBlock(Xl,{key:0,class:"file-viewer__visualizer-image",src:e.fileUrl,onClick:k[2]||(k[2]=i.withModifiers(()=>{},["stop"]))},null,8,["src"])):(i.openBlock(),i.createElementBlock("div",N$,[i.createVNode(Xl,{src:"https://i.imgur.com/d842Bek.png",width:300,height:300}),k[3]||(k[3]=i.createTextVNode(" Não foi possível gerar uma pré-visualização do arquivo. "))]))])])):i.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-7071e9c2"]]),L$={name:"CdsFilterSelect",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:Qa()}},computed:{inputClass(){let e="";const t="filter-select__input";return this.active&&this.direction==="down"?e=`${t}--opened-down`:this.active&&this.direction==="up"?e=`${t}--opened-up`:e=`${t}--closed`,this.disabled&&(e+=` ${t}--disabled`),e+=` ${t}--${W1.find(n=>n===this.width)}`,e+=this.fluid?` ${t}--fluid`:` ${t}--fit`,e+=this.searchable?` ${t}--searchable`:"",e},capitalizedLabel(){return this.label.charAt(0).toUpperCase()+this.label.slice(1)}},watch:{modelValue:{handler(e,t){e!==t&&(e instanceof Object?this.localValue=e:this.localValue={id:e,value:e})},immediate:!0},options:{handler(e,t){e!==t&&(this.localOptions=e,this.pristineOptions=e)},immediate:!0},searchable:{handler(e,t){e!==t&&(this.allowSearch=e)},immediate:!0},localValue:{handler(e){this.localOptions.filter(n=>JSON.stringify(n)===JSON.stringify(e)).length!==0&&(this.returnValue?this.$emit("update:modelValue",e[this.optionsField]):this.$emit("update:modelValue",e))},deep:!0}},mounted(){this.id=`cds-filter-select-${this.uniqueKey}`,this.selectElement=this.$refs["cds-filter-select"],document.querySelector("body").addEventListener("click",this.closeFilterSelect)},methods:{filterOptions(){const e=eo(this.localValue[this.optionsField]),t=new RegExp(e,"i");this.localOptions=this.options.filter(n=>eo(n[this.optionsField]).search(t)>=0)},activeSelection(){this.disabled||this.$nextTick().then(()=>{const e=this.localOptions[this.currentPos];this.$refs[`${e[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=V1(this.localOptions[this.currentPos]),this.$refs["filter-select-input"].blur())},activateSelectionOnClick(){let e=this.selectElement.getBoundingClientRect();e.top+e.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=V1(this.localOptions[this.currentPos])},getLiInDOM(e){const t=this.localOptions[e];return this.$refs[`${t[this.optionsField]}-${e}`][0]},handleOptionVisibility(e,t,n){const a=e.getBoundingClientRect(),r=this.$refs["filter-select-options"],s=r.getBoundingClientRect();n==="up"&&a.top<=s.top&&(r.scrollTop+=t),n==="down"&&a.top>=s.bottom&&(r.scrollTop+=t)},highlightOnArrowDown(){if(this.currentPos===this.localOptions.length-1)return;this.currentPos+=1;const e=this.getLiInDOM(this.currentPos),t=this.getLiInDOM(this.currentPos-1);e.classList.add("highlight"),t.classList.remove("highlight"),this.handleOptionVisibility(e,37,"down")},highlightOnArrowUp(){if(this.currentPos===0)return;const e=this.getLiInDOM(this.currentPos),t=this.getLiInDOM(this.currentPos-1);e.classList.remove("highlight"),t.classList.add("highlight"),this.handleOptionVisibility(e,-37,"up"),this.currentPos-=1},highlightOnMouseOver(e){this.currentPos=e,this.getLiInDOM(this.currentPos).classList.add("highlight")},unhighlightOnMouseOut(){this.getLiInDOM(this.currentPos).classList.remove("highlight")},closeFilterSelect(e){this.$refs.filterSelectRef&&!this.$refs.filterSelectRef.contains(e.target)&&this.hide()}}},P$={ref:"cds-filter-select",class:"filter-select"},F$={class:"filter-select__label"},R$={for:"cds-filter-select"},H$=["id","onkeypress","placeholder","disabled","readonly"],W$={key:0,class:"option__container"},Y$=["onMouseover"],j$={key:1,class:"option__container"};function U$(e,t,n,a,r,s){return i.openBlock(),i.createElementBlock("div",P$,[i.createElementVNode("div",{ref:"filterSelectRef",class:i.normalizeClass(["filter-select__container",s.inputClass]),onKeydown:[t[6]||(t[6]=i.withKeys(i.withModifiers((...o)=>s.activateSelectionOnEnter&&s.activateSelectionOnEnter(...o),["prevent"]),["enter"])),t[7]||(t[7]=i.withKeys(i.withModifiers((...o)=>s.highlightOnArrowDown&&s.highlightOnArrowDown(...o),["prevent"]),["arrow-down"])),t[8]||(t[8]=i.withKeys(i.withModifiers((...o)=>s.highlightOnArrowUp&&s.highlightOnArrowUp(...o),["prevent"]),["arrow-up"]))],onClick:t[9]||(t[9]=(...o)=>s.activateSelectionOnClick&&s.activateSelectionOnClick(...o))},[i.createElementVNode("label",F$,[i.createElementVNode("div",R$,[i.createElementVNode("span",null,i.toDisplayString(s.capitalizedLabel),1)])]),i.withDirectives(i.createElementVNode("input",{id:e.$attrs.id||r.id,ref:"filter-select-input","onUpdate:modelValue":t[0]||(t[0]=o=>r.localValue[n.optionsField]=o),type:"text",autocomplete:"off",onkeypress:`return ${r.allowSearch};`,class:i.normalizeClass(s.inputClass),placeholder:n.placeholder,disabled:n.disabled,readonly:!n.searchable,onInput:t[1]||(t[1]=(...o)=>s.filterOptions&&s.filterOptions(...o)),onFocus:t[2]||(t[2]=(...o)=>s.activeSelection&&s.activeSelection(...o)),onBlur:t[3]||(t[3]=(...o)=>s.hide&&s.hide(...o))},null,42,H$),[[i.vModelText,r.localValue[n.optionsField]]]),i.withDirectives(i.createElementVNode("div",{ref:"filter-select-options",class:i.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":r.direction==="down","filter-select__options--up":r.direction==="up"}])},[r.localOptions.length>0?(i.openBlock(),i.createElementBlock("ul",W$,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.localOptions,(o,l)=>(i.openBlock(),i.createElementBlock("li",{key:l,ref_for:!0,ref:`${o[n.optionsField]}-${l}`,class:"option__text",onMousedown:t[4]||(t[4]=(...d)=>s.selectItem&&s.selectItem(...d)),onMouseover:d=>s.highlightOnMouseOver(l),onMouseout:t[5]||(t[5]=d=>s.unhighlightOnMouseOut())},i.toDisplayString(o[n.optionsField]),41,Y$))),128))])):(i.openBlock(),i.createElementBlock("ul",j$,t[10]||(t[10]=[i.createElementVNode("li",{class:"option__text--muted"}," Nenhuma opção encontrada ",-1)])))],2),[[i.vShow,r.active]]),i.createElementVNode("span",{class:i.normalizeClass(r.active?"filter-select__chevron--opened":"filter-select__chevron--closed")},null,2)],34)],512)}const q$=ie(L$,[["render",U$],["__scopeId","data-v-0d8cd099"]]),G$={name:"CdsPulsar",props:{variant:{type:String,default:"green"},targetId:{type:String,default:""},position:{type:String,default:"top-end"}}},K$={id:"cds-pulsar"};function Z$(e,t,n,a,r,s){const o=i.resolveDirective("cds-floatify");return i.withDirectives((i.openBlock(),i.createElementBlock("div",K$,[i.createElementVNode("div",{class:i.normalizeClass(`pulsar__outer-circle--${n.variant}`)},[i.createElementVNode("div",{class:i.normalizeClass(`pulsar__inner-circle--${n.variant}`)},null,2)],2)])),[[o,n.targetId,n.position]])}const My=ie(G$,[["render",Z$],["__scopeId","data-v-0c7161d2"]]),X$={name:"CdsFloatingAssistant",components:{CdsPulsar:My,CdsIcon:ve},props:{modelValue:{type:Boolean,default:!0,required:!0},title:{type:String,default:"Nova funcionalidade!",validator:e=>e.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(e){this.$emit("update:modelValue",e)},modelValue(e){this.isActive=e,this.handleEventAnimation()}},mounted(){this.handleEventAnimation(),document.querySelector("body").addEventListener("click",this.closeFloatingAssistant)},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:e,bottom:t}=document.getElementById(this.id).getBoundingClientRect();return e>=0&&t<=window.innerHeight},expand(){this.waitingConfirmation||(this.isExpanded=!0)},collapse(){this.isExpanded=!1},close(){this.collapse(),this.waitingConfirmation=!0},confirmationHandle(e){if(!e){this.isActive=!1;return}this.$emit("disable-tip",!0),this.isActive=!1},closeFloatingAssistant(e){this.$refs.floatingAssistantRef&&!this.$refs.floatingAssistantRef.contains(e.target)&&this.collapse()}}},J$=["id"],Q$=["id"],eT={key:0},tT={key:1},nT={key:0,class:"floating-assistant__content"},iT={key:0,class:"floating-assistant__footer"},aT=["href"],rT={key:1,class:"floating-assistant__subtitle"},sT={key:2};function oT(e,t,n,a,r,s){const o=i.resolveComponent("CdsPulsar"),l=i.resolveComponent("CdsIcon"),d=i.resolveDirective("cds-floatify");return i.openBlock(),i.createElementBlock("div",{id:r.id,class:i.normalizeClass(["floating-assistant",{"floating-assistant--hidden":!r.isActive}])},[i.createVNode(o,{id:r.pulsarId,"target-id":n.targetId,variant:n.variant},null,8,["id","target-id","variant"]),i.withDirectives((i.openBlock(),i.createElementBlock("div",{id:r.containerId,class:"floating-assistant__container"},[i.createElementVNode("div",{ref:"floatingAssistantRef",class:i.normalizeClass(["floating-assistant__dropdown",{"floating-assistant__dropdown--expanded":r.isExpanded,"floating-assistant__dropdown--confirmation":r.waitingConfirmation}]),onClick:t[3]||(t[3]=(...h)=>s.expand&&s.expand(...h))},[r.waitingConfirmation?(i.openBlock(),i.createElementBlock("div",eT,[t[4]||(t[4]=i.createTextVNode(" Ocultar dica para sempre? ")),i.createElementVNode("span",{class:i.normalizeClass(`floating-assistant__link--${n.variant}`),onClick:t[0]||(t[0]=h=>s.confirmationHandle(!0))}," Sim ",2),t[5]||(t[5]=i.createTextVNode(" / ")),i.createElementVNode("span",{class:i.normalizeClass(`floating-assistant__link--${n.variant}`),onClick:t[1]||(t[1]=h=>s.confirmationHandle(!1))}," Não ",2)])):(i.openBlock(),i.createElementBlock("div",tT,[i.createElementVNode("span",{class:i.normalizeClass(`floating-assistant__title--${n.variant}`)},i.toDisplayString(n.title),3),r.isExpanded?(i.openBlock(),i.createElementBlock("div",nT,[i.renderSlot(e.$slots,"default",{},void 0,!0),n.url?(i.openBlock(),i.createElementBlock("span",iT,[t[6]||(t[6]=i.createTextVNode(" Você pode saber mais ")),i.createElementVNode("a",{class:i.normalizeClass(`floating-assistant__link--${n.variant}`),href:n.url,target:"_blank"}," clicando aqui ",10,aT),t[7]||(t[7]=i.createTextVNode(". "))])):i.createCommentVNode("",!0)])):(i.openBlock(),i.createElementBlock("span",rT," Clique para mais informações "))])),r.isExpanded?(i.openBlock(),i.createElementBlock("div",sT,[i.createElementVNode("div",{onClick:t[2]||(t[2]=i.withModifiers((...h)=>s.close&&s.close(...h),["stop"]))},[i.createVNode(l,{class:"floating-assistant__close-button",name:"x-outline",height:"20",width:"20"})])])):i.createCommentVNode("",!0)],2)],8,Q$)),[[d,r.pulsarId,r.position]])],10,J$)}const lT=ie(X$,[["render",oT],["__scopeId","data-v-727ea1a4"]]),cT={class:"floating-action-button__container"},dT=["onClick"],uT={class:"floating-action-button__subitem-label"},hT={class:"floating-action-button__subitem"},fT=ie(Object.assign({name:"CdsFloatingActionButton"},{__name:"FloatingActionButton",props:{variant:{type:String,default:"green"},icon:{type:String,default:"plus-outline"},actions:{type:Array,default:()=>[],validator:e=>e.length<=5},size:{type:String,default:"md"}},emits:["main-button-click","action-click"],setup(e,{emit:t}){i.useCssVars(g=>({"4572ca28":h.value,"5a306d0f":l.value,"310c521c":f.value,"4a7c8bbd":d.value}));const n=e,a=t,r=i.ref(!1),s=i.ref(!1),o=i.ref(-1),l=i.computed(()=>{switch(n.size){case"sm":return"44px";case"md":return"56px";case"lg":return"68px";default:return"56px"}}),d=i.computed(()=>{switch(n.size){case"sm":return"4px";case"md":return"10px";case"lg":return"16px";default:return"10px"}}),h=i.computed(()=>{switch(n.size){case"sm":return"12px";case"md":return"16px";case"lg":return"20px";default:return"16px"}}),f=i.computed(()=>n.variant==="white"||n.variant==="gray"?"#3B4754":"#fff");i.watch(r,g=>{g||(s.value=!0,setTimeout(()=>{s.value=!1},500))});function m(){if(n.actions.length>0){o.value=r.value?-1:1,r.value=!r.value;return}a("main-button-click")}function y(g){r.value=!1,a("action-click",g)}return(g,v)=>(i.openBlock(),i.createElementBlock("div",cT,[r.value||s.value?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(e.actions,_=>(i.openBlock(),i.createElementBlock("div",{key:_,class:i.normalizeClass(["floating-action-button__subitem-container",{exiting:s.value}]),onClick:k=>y(_)},[i.createElementVNode("div",uT,i.toDisplayString(_==null?void 0:_.label),1),i.createElementVNode("div",hT,[i.createVNode(ve,{name:_==null?void 0:_.icon,height:"32",width:"32"},null,8,["name"])])],10,dT))),128)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(["floating-action-button__main-button",`floating-action-button__main-button--${e.variant}`]),onClick:m},[i.createVNode(i.Transition,{name:"icon-transition",mode:"out-in"},{default:i.withCtx(()=>[r.value?(i.openBlock(),i.createBlock(ve,{key:"close-icon",name:"x-outline",height:"20",width:"20",style:i.normalizeStyle({"--rotation-direction":o.value})},null,8,["style"])):(i.openBlock(),i.createBlock(ve,{key:"main-icon",name:e.icon,height:"20",width:"20",style:i.normalizeStyle({"--rotation-direction":o.value})},null,8,["name","style"]))]),_:1})],2)]))}}),[["__scopeId","data-v-f27835c4"]]),Fh={name:"CdsRichTooltip",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:Qa()}},computed:{variationPlacement(){return this.rightAligned?"end":"start"},popoverWidth(){return this.fitContentWidth?"fit-content":`${this.width}px`}},watch:{modelValue(e){e?this.show():this.hide()},defaultPlacement(){this.setPopper(this.targetId)},targetId(e){this.setPopper(e)}},mounted(){this.id=`CdsPopover-${this.uniqueKey}`,this.setPopper(this.targetId),document.querySelector("body").addEventListener("click",this.closeRichTooltip)},methods:{setPopper(e){this.$nextTick(()=>{this.target=document.querySelector(`[id='${e}']`),this.popover=document.querySelector(`#${this.id}`),this.popperInstance=cl(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(e=>({...e,modifiers:[...e.modifiers,{name:"eventListeners",enabled:!1}]})),this.$emit("update:modelValue",!1)})},closeRichTooltip(e){this.$refs.richTooltipRef&&!this.$refs.richTooltipRef.contains(e.target)&&this.hide()}}},Ey=()=>{i.useCssVars(e=>({e6f128a6:e.popoverWidth}))},Oy=Fh.setup;Fh.setup=Oy?(e,t)=>(Ey(),Oy(e,t)):Ey;const pT=["id"];function mT(e,t,n,a,r,s){return i.openBlock(),i.createElementBlock("div",{id:e.$attrs.id||r.id,ref:"richTooltipRef",class:"richTooltip"},[i.renderSlot(e.$slots,"default",{},void 0,!0)],8,pT)}const Rh=ie(Fh,[["render",mT],["__scopeId","data-v-dfd096e0"]]),Hh={name:"CdsGaugeChart",components:{CdsRichTooltip:Rh},props:{value:{type:Number,default:0,validator:e=>e>=0&&e<=100},variant:{type:String,default:"green"},size:{type:Number,default:300},subtitle:{type:String,default:""},target:{type:Number,default:0,validator:e=>e>=0&&e<=100},showTarget:{type:Boolean,default:!1}},data(){return{showPopover:!1,uniqueKey:Qa()}},computed:{progressStyle(){return{"--value":this.value,"--size":this.size}},chartProgressValue(){return 198*(1-this.value/100)},targetValue(){let e=this.target-1;return e>=98&&(e=98),198*(1-e/100)},formatedValue(){return`${this.value.toLocaleString("pt-br",{minimumFractionDigits:1})}%`}},methods:{hasSlot:ei}},Dy=()=>{i.useCssVars(e=>({eebbba4e:e.chartProgressValue,"32524a26":e.targetValue}))},Vy=Hh.setup;Hh.setup=Vy?(e,t)=>(Dy(),Vy(e,t)):Dy;const gT={class:"responsive-container"},yT=["id"],bT=["id"],vT={transform:"scale(1.20) translate(-9.5 -12)"},_T={x:"50%",y:"50%","dominant-baseline":"middle","text-anchor":"middle",class:"value"},wT={x:"50%",y:"62%","dominant-baseline":"middle","text-anchor":"middle",class:"subtitle"};function kT(e,t,n,a,r,s){const o=i.resolveComponent("CdsRichTooltip");return i.openBlock(),i.createElementBlock("span",null,[i.createElementVNode("div",gT,[i.createElementVNode("div",{class:"gauge-chart",style:i.normalizeStyle(s.progressStyle)},[(i.openBlock(),i.createElementBlock("svg",{id:r.uniqueKey,class:i.normalizeClass(`svg--${n.variant}`),viewBox:"0 0 110 100",onMouseover:t[0]||(t[0]=l=>r.showPopover=!0),onMouseleave:t[1]||(t[1]=l=>r.showPopover=!1)},[i.createElementVNode("linearGradient",{id:`gradient-${r.uniqueKey}`,x1:"0",y1:"0",x2:"0",y2:"100%",gradientTransform:"rotate(-340)"},t[3]||(t[3]=[i.createElementVNode("stop",{class:"stop",offset:"1%"},null,-1),i.createElementVNode("stop",{class:"stop-2",offset:"99%"},null,-1)]),8,bT),i.createElementVNode("g",vT,[t[4]||(t[4]=i.createElementVNode("path",{class:"indicator-bar",d:"M30,90 A40,40 0 1,1 80,90",fill:"none"},null,-1)),i.createElementVNode("path",{fill:"none",class:"indicator-progress",d:"M30,90 A40,40 0 1,1 80,90",style:i.normalizeStyle({stroke:`url(#gradient-${r.uniqueKey})`})},null,4),n.showTarget?(i.openBlock(),i.createElementBlock("path",{key:0,fill:"none",class:i.normalizeClass(["indicator-target",`indicator-target--${n.variant}`]),d:"M30,90 A40,40 0 1,1 80,90"},null,2)):i.createCommentVNode("",!0)]),i.createElementVNode("text",_T,i.toDisplayString(s.formatedValue),1),i.createElementVNode("text",wT,i.toDisplayString(n.subtitle),1)],42,yT))],4),s.hasSlot(e.$slots,"popover")?(i.openBlock(),i.createBlock(o,{key:0,modelValue:r.showPopover,"onUpdate:modelValue":t[2]||(t[2]=l=>r.showPopover=l),"default-placement":"top","target-id":r.uniqueKey},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"popover",{},void 0,!0)]),_:3},8,["modelValue","target-id"])):i.createCommentVNode("",!0)])])}const CT=ie(Hh,[["render",kT],["__scopeId","data-v-86ff0ae3"]]),xT={class:"grid-item"},ST=ie(Object.assign({name:"CdsGridItem"},{__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(e){i.useCssVars(o=>({d188974c:e.align,d066e406:r.value,"22b6fade":s.value,"5bfc4fc7":n.value,"83492cd6":a.value,b9b2f2b6:e.justify,"66ad1b58":e.direction}));const t=e,n=i.computed(()=>{if(!t.colSpan&&!t.colStart)return"auto";const o=t.colStart?t.colStart:1,l=t.colSpan?`span ${t.colSpan}`:1;return`${o} / ${l}`}),a=i.computed(()=>{if(!t.rowSpan&&!t.rowStart)return"auto";const o=t.rowStart?t.rowStart:1,l=t.rowSpan?`span ${t.rowSpan}`:1;return`${o} / ${l}`}),r=i.computed(()=>t.subGrid?"grid":"block"),s=i.computed(()=>{let o="";return t.gap&&t.gap!==0&&t.gap!=="0"?Number.isFinite(t.gap)?`${t.gap}px`:t.gap:(t.rowGap?Number.isFinite(t.rowGap)?o=`${t.rowGap}px`:o=t.rowGap:o="0px",t.colGap?Number.isFinite(t.colGap)?o+=` ${t.colGap}px`:o+=` ${t.colGap}`:o+=" 0px",o)});return(o,l)=>(i.openBlock(),i.createElementBlock("div",xT,[i.renderSlot(o.$slots,"default",{},void 0,!0)]))}}),[["__scopeId","data-v-051eccea"]]),Wh={name:"CdsHighlight",props:{variant:{type:String,default:"info"},animated:{type:Boolean,default:!1},duration:{type:Number,default:1},delay:{type:Number,default:0},highlightedText:{type:String,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 e="";switch(this.animated&&(e="highlight__container--highlighted"),this.variant){case"info":return`${e} highlight__container--info`;case"success":return`${e} highlight__container--success`;case"danger":return`${e} highlight__container--danger`;default:return`${e} highlight__container--info`}},dynamicStyle(){return{"--duration":`${this.duration}s`,"--delay":`${this.delay}s`}}},watch:{highlightedText(){this.splitContent()}},mounted(){this.splitContent()},methods:{normalize(e){const t={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?e==null?void 0:e.replace(/[aáàâãeéêiíoóôõuúüAÁÀÂÃEÉÊIÍOÓÔÕUÚÜ]/g,a=>n[a]||a):e==null?void 0:e.toLowerCase().replace(/[aáàâãeéêiíoóôõuúü]/g,a=>t[a]||a)},splitContent(){let e=this.caseSensitive?"g":"gi",t=new RegExp(`(${this.normalizedHighlightText})`,e),n=this.slotString.split(t);this.substrings=n.map((a,r)=>({string:a,highlighted:new RegExp(`^${this.normalizedHighlightText}$`,e).test(this.caseSensitive?a:a==null?void 0:a.toLowerCase()),id:r}))}}},$y=()=>{i.useCssVars(e=>({"4518ce43":e.paddingResolver}))},Ty=Wh.setup;Wh.setup=Ty?(e,t)=>($y(),Ty(e,t)):$y;function BT(e,t,n,a,r,s){return n.highlightedText&&s.isAValidSubstring?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(r.substrings,o=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:o.id},[o.highlighted?(i.openBlock(),i.createElementBlock("mark",{key:0,class:i.normalizeClass(["highlight__container",s.dynamicHighlightClass]),style:i.normalizeStyle(s.dynamicStyle)},i.toDisplayString(o.string),7)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(o.string),1)],64))],64))),128)):(i.openBlock(),i.createElementBlock("mark",{key:1,class:i.normalizeClass(["highlight__container",s.dynamicHighlightClass]),style:i.normalizeStyle(s.dynamicStyle)},[i.renderSlot(e.$slots,"default",{},void 0,!0)],6))}const Iy=ie(Wh,[["render",BT],["__scopeId","data-v-c73077f3"]]),Ay=["sm","md","lg"],MT={name:"CdsIconButton",components:{CdsIcon:ve,CdsTooltip:ad},props:{size:{type:String,default:"md",validator:e=>Ay.includes(e)},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:Ay,innerTooltipText:this.tooltipText,internalIcon:this.icon,inputControlPanel:0}},computed:{predefinedSize(){return`CdsIcon-button--${this.size}`},computedModifiers(){const e=this.disabled?"CdsIcon-button--disabled":"",t=`CdsIcon-button__container--${this.variant}`;return`${e} ${this.predefinedSize} ${t}`}},watch:{tooltipText(){this.innerTooltipText=this.tooltipText}},methods:{clickHandler(e){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",e))}}},ET={id:"CdsIcon-button"};function OT(e,t,n,a,r,s){const o=i.resolveComponent("CdsIcon");return i.openBlock(),i.createElementBlock("span",ET,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(n.tooltipText?"cds-tooltip":"span"),{text:r.innerTooltipText},{default:i.withCtx(()=>[i.createElementVNode("button",{class:i.normalizeClass(["CdsIcon-button__container",s.computedModifiers]),onClick:t[0]||(t[0]=(...l)=>s.clickHandler&&s.clickHandler(...l))},[(i.openBlock(),i.createBlock(o,{key:r.inputControlPanel,name:r.internalIcon,class:"CdsIcon-button__icon"},null,8,["name"]))],2)]),_:1},8,["text"]))])}const gu=ie(MT,[["render",OT],["__scopeId","data-v-9990b971"]]);var yu={exports:{}};yu.exports,function(e,t){var n=200,a="__lodash_hash_undefined__",r=1,s=2,o=9007199254740991,l="[object Arguments]",d="[object Array]",h="[object AsyncFunction]",f="[object Boolean]",m="[object Date]",y="[object Error]",g="[object Function]",v="[object GeneratorFunction]",_="[object Map]",k="[object Number]",x="[object Null]",M="[object Object]",B="[object Promise]",C="[object Proxy]",V="[object RegExp]",$="[object Set]",N="[object String]",I="[object Symbol]",F="[object Undefined]",q="[object WeakMap]",Q="[object ArrayBuffer]",P="[object DataView]",Z="[object Float32Array]",se="[object Float64Array]",U="[object Int8Array]",me="[object Int16Array]",be="[object Int32Array]",G="[object Uint8Array]",ye="[object Uint8ClampedArray]",Y="[object Uint16Array]",ee="[object Uint32Array]",ue=/[\\^$.*+?()[\]{}|]/g,de=/^\[object .+?Constructor\]$/,_e=/^(?:0|[1-9]\d*)$/,ge={};ge[Z]=ge[se]=ge[U]=ge[me]=ge[be]=ge[G]=ge[ye]=ge[Y]=ge[ee]=!0,ge[l]=ge[d]=ge[Q]=ge[f]=ge[P]=ge[m]=ge[y]=ge[g]=ge[_]=ge[k]=ge[M]=ge[V]=ge[$]=ge[N]=ge[q]=!1;var De=typeof bn=="object"&&bn&&bn.Object===Object&&bn,Ye=typeof self=="object"&&self&&self.Object===Object&&self,Ne=De||Ye||Function("return this")(),ut=t&&!t.nodeType&&t,_t=ut&&!0&&e&&!e.nodeType&&e,ft=_t&&_t.exports===ut,it=ft&&De.process,Ze=function(){try{return it&&it.binding&&it.binding("util")}catch{}}(),Qe=Ze&&Ze.isTypedArray;function Dt(w,O){for(var z=-1,te=w==null?0:w.length,Pe=0,Ee=[];++z<te;){var rt=w[z];O(rt,z,w)&&(Ee[Pe++]=rt)}return Ee}function lt(w,O){for(var z=-1,te=O.length,Pe=w.length;++z<te;)w[Pe+z]=O[z];return w}function ae(w,O){for(var z=-1,te=w==null?0:w.length;++z<te;)if(O(w[z],z,w))return!0;return!1}function xe(w,O){for(var z=-1,te=Array(w);++z<w;)te[z]=O(z);return te}function Ve(w){return function(O){return w(O)}}function ze(w,O){return w.has(O)}function Fe(w,O){return w==null?void 0:w[O]}function pt(w){var O=-1,z=Array(w.size);return w.forEach(function(te,Pe){z[++O]=[Pe,te]}),z}function Bt(w,O){return function(z){return w(O(z))}}function Vt(w){var O=-1,z=Array(w.size);return w.forEach(function(te){z[++O]=te}),z}var Mt=Array.prototype,nn=Function.prototype,$t=Object.prototype,he=Ne["__core-js_shared__"],Le=nn.toString,Ge=$t.hasOwnProperty,on=function(){var w=/[^.]+$/.exec(he&&he.keys&&he.keys.IE_PROTO||"");return w?"Symbol(src)_1."+w:""}(),mn=$t.toString,_n=RegExp("^"+Le.call(Ge).replace(ue,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),J=ft?Ne.Buffer:void 0,j=Ne.Symbol,pe=Ne.Uint8Array,R=$t.propertyIsEnumerable,T=Mt.splice,K=j?j.toStringTag:void 0,le=Object.getOwnPropertySymbols,Me=J?J.isBuffer:void 0,et=Bt(Object.keys,Object),mt=Tn(Ne,"DataView"),Tt=Tn(Ne,"Map"),ln=Tn(Ne,"Promise"),Jt=Tn(Ne,"Set"),Kn=Tn(Ne,"WeakMap"),wt=Tn(Object,"create"),Pn=wn(mt),Vn=wn(Tt),oi=wn(ln),qi=wn(Jt),Na=wn(Kn),Bo=j?j.prototype:void 0,fs=Bo?Bo.valueOf:void 0;function cn(w){var O=-1,z=w==null?0:w.length;for(this.clear();++O<z;){var te=w[O];this.set(te[0],te[1])}}function gc(){this.__data__=wt?wt(null):{},this.size=0}function yc(w){var O=this.has(w)&&delete this.__data__[w];return this.size-=O?1:0,O}function bc(w){var O=this.__data__;if(wt){var z=O[w];return z===a?void 0:z}return Ge.call(O,w)?O[w]:void 0}function vc(w){var O=this.__data__;return wt?O[w]!==void 0:Ge.call(O,w)}function _c(w,O){var z=this.__data__;return this.size+=this.has(w)?0:1,z[w]=wt&&O===void 0?a:O,this}cn.prototype.clear=gc,cn.prototype.delete=yc,cn.prototype.get=bc,cn.prototype.has=vc,cn.prototype.set=_c;function dn(w){var O=-1,z=w==null?0:w.length;for(this.clear();++O<z;){var te=w[O];this.set(te[0],te[1])}}function wc(){this.__data__=[],this.size=0}function kc(w){var O=this.__data__,z=La(O,w);if(z<0)return!1;var te=O.length-1;return z==te?O.pop():T.call(O,z,1),--this.size,!0}function Cc(w){var O=this.__data__,z=La(O,w);return z<0?void 0:O[z][1]}function xc(w){return La(this.__data__,w)>-1}function Sc(w,O){var z=this.__data__,te=La(z,w);return te<0?(++this.size,z.push([w,O])):z[te][1]=O,this}dn.prototype.clear=wc,dn.prototype.delete=kc,dn.prototype.get=Cc,dn.prototype.has=xc,dn.prototype.set=Sc;function $n(w){var O=-1,z=w==null?0:w.length;for(this.clear();++O<z;){var te=w[O];this.set(te[0],te[1])}}function kr(){this.size=0,this.__data__={hash:new cn,map:new(Tt||dn),string:new cn}}function Bc(w){var O=Fn(this,w).delete(w);return this.size-=O?1:0,O}function Cr(w){return Fn(this,w).get(w)}function Mc(w){return Fn(this,w).has(w)}function Ec(w,O){var z=Fn(this,w),te=z.size;return z.set(w,O),this.size+=z.size==te?0:1,this}$n.prototype.clear=kr,$n.prototype.delete=Bc,$n.prototype.get=Cr,$n.prototype.has=Mc,$n.prototype.set=Ec;function xr(w){var O=-1,z=w==null?0:w.length;for(this.__data__=new $n;++O<z;)this.add(w[O])}function ps(w){return this.__data__.set(w,a),this}function za(w){return this.__data__.has(w)}xr.prototype.add=xr.prototype.push=ps,xr.prototype.has=za;function li(w){var O=this.__data__=new dn(w);this.size=O.size}function ms(){this.__data__=new dn,this.size=0}function Oc(w){var O=this.__data__,z=O.delete(w);return this.size=O.size,z}function Dc(w){return this.__data__.get(w)}function Vc(w){return this.__data__.has(w)}function Mo(w,O){var z=this.__data__;if(z instanceof dn){var te=z.__data__;if(!Tt||te.length<n-1)return te.push([w,O]),this.size=++z.size,this;z=this.__data__=new $n(te)}return z.set(w,O),this.size=z.size,this}li.prototype.clear=ms,li.prototype.delete=Oc,li.prototype.get=Dc,li.prototype.has=Vc,li.prototype.set=Mo;function Eo(w,O){var z=Sr(w),te=!z&&ys(w),Pe=!z&&!te&&Br(w),Ee=!z&&!te&&!Pe&&Ro(w),rt=z||te||Pe||Ee,st=rt?xe(w.length,String):[],Xe=st.length;for(var ct in w)Ge.call(w,ct)&&!(rt&&(ct=="length"||Pe&&(ct=="offset"||ct=="parent")||Ee&&(ct=="buffer"||ct=="byteLength"||ct=="byteOffset")||Io(ct,Xe)))&&st.push(ct);return st}function La(w,O){for(var z=w.length;z--;)if(Po(w[z][0],O))return z;return-1}function Pa(w,O,z){var te=O(w);return Sr(w)?te:lt(te,z(w))}function Fa(w){return w==null?w===void 0?F:x:K&&K in Object(w)?xi(w):Lo(w)}function gs(w){return Bi(w)&&Fa(w)==l}function Ra(w,O,z,te,Pe){return w===O?!0:w==null||O==null||!Bi(w)&&!Bi(O)?w!==w&&O!==O:Oo(w,O,z,te,Ra,Pe)}function Oo(w,O,z,te,Pe,Ee){var rt=Sr(w),st=Sr(O),Xe=rt?d:Si(w),ct=st?d:Si(O);Xe=Xe==l?M:Xe,ct=ct==l?M:ct;var Ht=Xe==M,kn=ct==M,jt=Xe==ct;if(jt&&Br(w)){if(!Br(O))return!1;rt=!0,Ht=!1}if(jt&&!Ht)return Ee||(Ee=new li),rt||Ro(w)?Ha(w,O,z,te,Pe,Ee):Tc(w,O,Xe,z,te,Pe,Ee);if(!(z&r)){var Ct=Ht&&Ge.call(w,"__wrapped__"),an=kn&&Ge.call(O,"__wrapped__");if(Ct||an){var Ki=Ct?w.value():w,Mi=an?O.value():O;return Ee||(Ee=new li),Pe(Ki,Mi,z,te,Ee)}}return jt?(Ee||(Ee=new li),$o(w,O,z,te,Pe,Ee)):!1}function $c(w){if(!Fo(w)||No(w))return!1;var O=Mr(w)?_n:de;return O.test(wn(w))}function Do(w){return Bi(w)&&vs(w.length)&&!!ge[Fa(w)]}function Vo(w){if(!zo(w))return et(w);var O=[];for(var z in Object(w))Ge.call(w,z)&&z!="constructor"&&O.push(z);return O}function Ha(w,O,z,te,Pe,Ee){var rt=z&r,st=w.length,Xe=O.length;if(st!=Xe&&!(rt&&Xe>st))return!1;var ct=Ee.get(w);if(ct&&Ee.get(O))return ct==O;var Ht=-1,kn=!0,jt=z&s?new xr:void 0;for(Ee.set(w,O),Ee.set(O,w);++Ht<st;){var Ct=w[Ht],an=O[Ht];if(te)var Ki=rt?te(an,Ct,Ht,O,w,Ee):te(Ct,an,Ht,w,O,Ee);if(Ki!==void 0){if(Ki)continue;kn=!1;break}if(jt){if(!ae(O,function(Mi,fa){if(!ze(jt,fa)&&(Ct===Mi||Pe(Ct,Mi,z,te,Ee)))return jt.push(fa)})){kn=!1;break}}else if(!(Ct===an||Pe(Ct,an,z,te,Ee))){kn=!1;break}}return Ee.delete(w),Ee.delete(O),kn}function Tc(w,O,z,te,Pe,Ee,rt){switch(z){case P:if(w.byteLength!=O.byteLength||w.byteOffset!=O.byteOffset)return!1;w=w.buffer,O=O.buffer;case Q:return!(w.byteLength!=O.byteLength||!Ee(new pe(w),new pe(O)));case f:case m:case k:return Po(+w,+O);case y:return w.name==O.name&&w.message==O.message;case V:case N:return w==O+"";case _:var st=pt;case $:var Xe=te&r;if(st||(st=Vt),w.size!=O.size&&!Xe)return!1;var ct=rt.get(w);if(ct)return ct==O;te|=s,rt.set(w,O);var Ht=Ha(st(w),st(O),te,Pe,Ee,rt);return rt.delete(w),Ht;case I:if(fs)return fs.call(w)==fs.call(O)}return!1}function $o(w,O,z,te,Pe,Ee){var rt=z&r,st=Gi(w),Xe=st.length,ct=Gi(O),Ht=ct.length;if(Xe!=Ht&&!rt)return!1;for(var kn=Xe;kn--;){var jt=st[kn];if(!(rt?jt in O:Ge.call(O,jt)))return!1}var Ct=Ee.get(w);if(Ct&&Ee.get(O))return Ct==O;var an=!0;Ee.set(w,O),Ee.set(O,w);for(var Ki=rt;++kn<Xe;){jt=st[kn];var Mi=w[jt],fa=O[jt];if(te)var Ac=rt?te(fa,Mi,jt,O,w,Ee):te(Mi,fa,jt,w,O,Ee);if(!(Ac===void 0?Mi===fa||Pe(Mi,fa,z,te,Ee):Ac)){an=!1;break}Ki||(Ki=jt=="constructor")}if(an&&!Ki){var ws=w.constructor,gn=O.constructor;ws!=gn&&"constructor"in w&&"constructor"in O&&!(typeof ws=="function"&&ws instanceof ws&&typeof gn=="function"&&gn instanceof gn)&&(an=!1)}return Ee.delete(w),Ee.delete(O),an}function Gi(w){return Pa(w,_s,To)}function Fn(w,O){var z=w.__data__;return Ao(O)?z[typeof O=="string"?"string":"hash"]:z.map}function Tn(w,O){var z=Fe(w,O);return $c(z)?z:void 0}function xi(w){var O=Ge.call(w,K),z=w[K];try{w[K]=void 0;var te=!0}catch{}var Pe=mn.call(w);return te&&(O?w[K]=z:delete w[K]),Pe}var To=le?function(w){return w==null?[]:(w=Object(w),Dt(le(w),function(O){return R.call(w,O)}))}:kt,Si=Fa;(mt&&Si(new mt(new ArrayBuffer(1)))!=P||Tt&&Si(new Tt)!=_||ln&&Si(ln.resolve())!=B||Jt&&Si(new Jt)!=$||Kn&&Si(new Kn)!=q)&&(Si=function(w){var O=Fa(w),z=O==M?w.constructor:void 0,te=z?wn(z):"";if(te)switch(te){case Pn:return P;case Vn:return _;case oi:return B;case qi:return $;case Na:return q}return O});function Io(w,O){return O=O??o,!!O&&(typeof w=="number"||_e.test(w))&&w>-1&&w%1==0&&w<O}function Ao(w){var O=typeof w;return O=="string"||O=="number"||O=="symbol"||O=="boolean"?w!=="__proto__":w===null}function No(w){return!!on&&on in w}function zo(w){var O=w&&w.constructor,z=typeof O=="function"&&O.prototype||$t;return w===z}function Lo(w){return mn.call(w)}function wn(w){if(w!=null){try{return Le.call(w)}catch{}try{return w+""}catch{}}return""}function Po(w,O){return w===O||w!==w&&O!==O}var ys=gs(function(){return arguments}())?gs:function(w){return Bi(w)&&Ge.call(w,"callee")&&!R.call(w,"callee")},Sr=Array.isArray;function bs(w){return w!=null&&vs(w.length)&&!Mr(w)}var Br=Me||yt;function Ic(w,O){return Ra(w,O)}function Mr(w){if(!Fo(w))return!1;var O=Fa(w);return O==g||O==v||O==h||O==C}function vs(w){return typeof w=="number"&&w>-1&&w%1==0&&w<=o}function Fo(w){var O=typeof w;return w!=null&&(O=="object"||O=="function")}function Bi(w){return w!=null&&typeof w=="object"}var Ro=Qe?Ve(Qe):Do;function _s(w){return bs(w)?Eo(w):Vo(w)}function kt(){return[]}function yt(){return!1}e.exports=Ic}(yu,yu.exports);var DT=yu.exports;const so=D1(DT),VT={id:"inner-tabs"},$T={class:"inner-tabs__header-container"},TT={class:"inner-tabs__header"},IT=["onClick"],AT={class:"inner-tabs__content"},NT=Object.assign({name:"CdsInnerTabs"},{__name:"InnerTabs",props:{tabs:{type:Array,default:()=>[],required:!0,validator:e=>!e.filter(n=>sn(n.title)||sn(n.name)).length},activeTab:{type:Object,default:()=>({}),required:!0},variant:{type:String,default:"green",validator:e=>Ma.includes(e)},headerLeft:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1}},emits:["tab-click","change"],setup(e,{emit:t}){i.useCssVars(g=>({"99f36bf6":l.value}));const n=e,a=t,r=i.ref(n.activeTab),s=i.ref(new Set([n.activeTab.name])),o=i.computed(()=>({"--indicatorColor":Jl(n.variant)})),l=i.computed(()=>n.headerLeft?"fit-content":"100%");function d(g){return s.value.has(g.name)}i.watch(()=>n.tabs,g=>{const v=g.filter(_=>_.name===n.activeTab.name);r.value=v.length?v[0]:g[0]},{immediate:!0});const h=g=>g.name,f=(g,v)=>{a("tab-click",{event:g,item:v}),!r.value.disableTabChange&&(s.value.add(v.name),a("change",{event:g,item:v}),r.value=v)},m=g=>so(r.value,g),y=g=>m(g)?`tab__indicator--active--${n.variant}`:"";return(g,v)=>(i.openBlock(),i.createElementBlock("div",VT,[i.createElementVNode("div",$T,[i.createElementVNode("ul",TT,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.tabs,(_,k)=>(i.openBlock(),i.createElementBlock("li",{key:`${k}-${_.name}-tab`,role:"presentation"},[i.createElementVNode("a",{role:"tab",href:"javascript:void(0)",target:"_self",class:i.normalizeClass(["inner-tabs__tab",m(_)?"inner-tabs__tab--active":"inner-tabs__tab--inactive"]),onClick:x=>f(x,_)},i.toDisplayString(_.title),11,IT),i.createElementVNode("div",{class:i.normalizeClass(y(_)),style:i.normalizeStyle(o.value)},null,6)]))),128))])]),i.createElementVNode("div",AT,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.tabs,(_,k)=>(i.openBlock(),i.createElementBlock("div",{key:`${k}-${_.name}-tab`,role:"tabpanel",class:i.normalizeClass(["content__pane",m(_)?"content__pane--active":"content__pane--inactive"])},[!e.lazy||d(_)?i.renderSlot(g.$slots,h(_),{key:0}):i.createCommentVNode("",!0)],2))),128))])]))}}),zT={key:0,class:"landscape-overlay"},LT={class:"landscape-overlay__container"},PT=["src"],FT={class:"landscape-overlay__title"},RT={class:"landscape-overlay__subtitle"},HT={key:0,class:"landscape-overlay__button"},WT=ie(Object.assign({name:"CdsInteractionBlockingOverlay"},{__name:"InteractionBlockingOverlay",props:{blockInteraction:{type:String,required:!0,default:"mobile",validator:e=>["mobile","landscape"].includes(e.toLowerCase())},title:{type:String,default:""},description:{type:String,default:""},buttonVariant:{type:String,default:"green",validator:e=>Ma.includes(e.toLowerCase())},buttonText:{type:String,default:"Ir para o início"}},emits:["button-click"],setup(e,{emit:t}){const n=e,a=t,r=i.ref(!1),s=i.ref(""),o=i.ref(""),l=i.ref(""),d=i.computed(()=>ns("smartphone")||ns("tablet")),h=i.computed(()=>window.outerWidth>window.outerHeight&&d.value);return i.watch(r,f=>{f?document.body.style.overflow="hidden":document.body.style.overflow="auto"}),i.watchEffect(()=>{!d.value&&!h.value&&(r.value=!1)}),i.onMounted(()=>{if(n.blockInteraction==="mobile"){d.value&&(r.value=!0,n.title===""?s.value="Acesse o conteúdo por um computador":s.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&&(r.value=!0,n.title===""?s.value="Rotacione seu dispositivo":s.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)=>r.value?(i.openBlock(),i.createElementBlock("div",zT,[i.createElementVNode("div",LT,[i.createElementVNode("img",{class:"landscape-overlay__image",src:l.value},null,8,PT),i.createElementVNode("span",FT,i.toDisplayString(s.value),1),i.createElementVNode("span",RT,i.toDisplayString(o.value),1),f.block-f.interaction==="mobile"?(i.openBlock(),i.createElementBlock("div",HT,[i.createVNode(fn,{variant:e.buttonVariant,block:"",onButtonClick:m[0]||(m[0]=y=>a("button-click"))},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.buttonText),1)]),_:1},8,["variant"])])):i.createCommentVNode("",!0)])])):i.createCommentVNode("",!0)}}),[["__scopeId","data-v-d6391e04"]]);var YT=Object.defineProperty,jT=(e,t,n)=>t in e?YT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Oe=(e,t,n)=>(jT(e,typeof t!="symbol"?t+"":t,n),n),bu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ny(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var UT=Object.prototype,qT=UT.hasOwnProperty;function GT(e,t){return e!=null&&qT.call(e,t)}var KT=GT,ZT=Array.isArray,Yi=ZT,XT=typeof bu=="object"&&bu&&bu.Object===Object&&bu,zy=XT,JT=zy,QT=typeof self=="object"&&self&&self.Object===Object&&self,eI=JT||QT||Function("return this")(),ca=eI,tI=ca,nI=tI.Symbol,vu=nI,Ly=vu,Py=Object.prototype,iI=Py.hasOwnProperty,aI=Py.toString,ac=Ly?Ly.toStringTag:void 0;function rI(e){var t=iI.call(e,ac),n=e[ac];try{e[ac]=void 0;var a=!0}catch{}var r=aI.call(e);return a&&(t?e[ac]=n:delete e[ac]),r}var sI=rI,oI=Object.prototype,lI=oI.toString;function cI(e){return lI.call(e)}var dI=cI,Fy=vu,uI=sI,hI=dI,fI="[object Null]",pI="[object Undefined]",Ry=Fy?Fy.toStringTag:void 0;function mI(e){return e==null?e===void 0?pI:fI:Ry&&Ry in Object(e)?uI(e):hI(e)}var da=mI;function gI(e){return e!=null&&typeof e=="object"}var ji=gI,yI=da,bI=ji,vI="[object Symbol]";function _I(e){return typeof e=="symbol"||bI(e)&&yI(e)==vI}var Yh=_I,wI=Yi,kI=Yh,CI=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xI=/^\w*$/;function SI(e,t){if(wI(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||kI(e)?!0:xI.test(e)||!CI.test(e)||t!=null&&e in Object(t)}var jh=SI;function BI(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Da=BI,MI=da,EI=Da,OI="[object AsyncFunction]",DI="[object Function]",VI="[object GeneratorFunction]",$I="[object Proxy]";function TI(e){if(!EI(e))return!1;var t=MI(e);return t==DI||t==VI||t==OI||t==$I}var ss=TI,II=ca,AI=II["__core-js_shared__"],NI=AI,Uh=NI,Hy=function(){var e=/[^.]+$/.exec(Uh&&Uh.keys&&Uh.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function zI(e){return!!Hy&&Hy in e}var LI=zI,PI=Function.prototype,FI=PI.toString;function RI(e){if(e!=null){try{return FI.call(e)}catch{}try{return e+""}catch{}}return""}var Wy=RI,HI=ss,WI=LI,YI=Da,jI=Wy,UI=/[\\^$.*+?()[\]{}|]/g,qI=/^\[object .+?Constructor\]$/,GI=Function.prototype,KI=Object.prototype,ZI=GI.toString,XI=KI.hasOwnProperty,JI=RegExp("^"+ZI.call(XI).replace(UI,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function QI(e){if(!YI(e)||WI(e))return!1;var t=HI(e)?JI:qI;return t.test(jI(e))}var eA=QI;function tA(e,t){return e==null?void 0:e[t]}var nA=tA,iA=eA,aA=nA;function rA(e,t){var n=aA(e,t);return iA(n)?n:void 0}var os=rA,sA=os,oA=sA(Object,"create"),_u=oA,Yy=_u;function lA(){this.__data__=Yy?Yy(null):{},this.size=0}var cA=lA;function dA(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var uA=dA,hA=_u,fA="__lodash_hash_undefined__",pA=Object.prototype,mA=pA.hasOwnProperty;function gA(e){var t=this.__data__;if(hA){var n=t[e];return n===fA?void 0:n}return mA.call(t,e)?t[e]:void 0}var yA=gA,bA=_u,vA=Object.prototype,_A=vA.hasOwnProperty;function wA(e){var t=this.__data__;return bA?t[e]!==void 0:_A.call(t,e)}var kA=wA,CA=_u,xA="__lodash_hash_undefined__";function SA(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=CA&&t===void 0?xA:t,this}var BA=SA,MA=cA,EA=uA,OA=yA,DA=kA,VA=BA;function oo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}oo.prototype.clear=MA,oo.prototype.delete=EA,oo.prototype.get=OA,oo.prototype.has=DA,oo.prototype.set=VA;var $A=oo;function TA(){this.__data__=[],this.size=0}var IA=TA;function AA(e,t){return e===t||e!==e&&t!==t}var lo=AA,NA=lo;function zA(e,t){for(var n=e.length;n--;)if(NA(e[n][0],t))return n;return-1}var wu=zA,LA=wu,PA=Array.prototype,FA=PA.splice;function RA(e){var t=this.__data__,n=LA(t,e);if(n<0)return!1;var a=t.length-1;return n==a?t.pop():FA.call(t,n,1),--this.size,!0}var HA=RA,WA=wu;function YA(e){var t=this.__data__,n=WA(t,e);return n<0?void 0:t[n][1]}var jA=YA,UA=wu;function qA(e){return UA(this.__data__,e)>-1}var GA=qA,KA=wu;function ZA(e,t){var n=this.__data__,a=KA(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}var XA=ZA,JA=IA,QA=HA,eN=jA,tN=GA,nN=XA;function co(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}co.prototype.clear=JA,co.prototype.delete=QA,co.prototype.get=eN,co.prototype.has=tN,co.prototype.set=nN;var ku=co,iN=os,aN=ca,rN=iN(aN,"Map"),qh=rN,jy=$A,sN=ku,oN=qh;function lN(){this.size=0,this.__data__={hash:new jy,map:new(oN||sN),string:new jy}}var cN=lN;function dN(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var uN=dN,hN=uN;function fN(e,t){var n=e.__data__;return hN(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Cu=fN,pN=Cu;function mN(e){var t=pN(this,e).delete(e);return this.size-=t?1:0,t}var gN=mN,yN=Cu;function bN(e){return yN(this,e).get(e)}var vN=bN,_N=Cu;function wN(e){return _N(this,e).has(e)}var kN=wN,CN=Cu;function xN(e,t){var n=CN(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this}var SN=xN,BN=cN,MN=gN,EN=vN,ON=kN,DN=SN;function uo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}uo.prototype.clear=BN,uo.prototype.delete=MN,uo.prototype.get=EN,uo.prototype.has=ON,uo.prototype.set=DN;var Gh=uo,Uy=Gh,VN="Expected a function";function Kh(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(VN);var n=function(){var a=arguments,r=t?t.apply(this,a):a[0],s=n.cache;if(s.has(r))return s.get(r);var o=e.apply(this,a);return n.cache=s.set(r,o)||s,o};return n.cache=new(Kh.Cache||Uy),n}Kh.Cache=Uy;var $N=Kh,TN=$N,IN=500;function AN(e){var t=TN(e,function(a){return n.size===IN&&n.clear(),a}),n=t.cache;return t}var NN=AN,zN=NN,LN=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,PN=/\\(\\)?/g,FN=zN(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(LN,function(n,a,r,s){t.push(r?s.replace(PN,"$1"):a||n)}),t}),RN=FN;function HN(e,t){for(var n=-1,a=e==null?0:e.length,r=Array(a);++n<a;)r[n]=t(e[n],n,e);return r}var WN=HN,qy=vu,YN=WN,jN=Yi,UN=Yh,Gy=qy?qy.prototype:void 0,Ky=Gy?Gy.toString:void 0;function Zy(e){if(typeof e=="string")return e;if(jN(e))return YN(e,Zy)+"";if(UN(e))return Ky?Ky.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var qN=Zy,GN=qN;function KN(e){return e==null?"":GN(e)}var ZN=KN,XN=Yi,JN=jh,QN=RN,ez=ZN;function tz(e,t){return XN(e)?e:JN(e,t)?[e]:QN(ez(e))}var Xy=tz,nz=da,iz=ji,az="[object Arguments]";function rz(e){return iz(e)&&nz(e)==az}var sz=rz,Jy=sz,oz=ji,Qy=Object.prototype,lz=Qy.hasOwnProperty,cz=Qy.propertyIsEnumerable,dz=Jy(function(){return arguments}())?Jy:function(e){return oz(e)&&lz.call(e,"callee")&&!cz.call(e,"callee")},Zh=dz,uz=9007199254740991,hz=/^(?:0|[1-9]\d*)$/;function fz(e,t){var n=typeof e;return t=t??uz,!!t&&(n=="number"||n!="symbol"&&hz.test(e))&&e>-1&&e%1==0&&e<t}var Xh=fz,pz=9007199254740991;function mz(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=pz}var Jh=mz,gz=Yh;function yz(e){if(typeof e=="string"||gz(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var xu=yz,bz=Xy,vz=Zh,_z=Yi,wz=Xh,kz=Jh,Cz=xu;function xz(e,t,n){t=bz(t,e);for(var a=-1,r=t.length,s=!1;++a<r;){var o=Cz(t[a]);if(!(s=e!=null&&n(e,o)))break;e=e[o]}return s||++a!=r?s:(r=e==null?0:e.length,!!r&&kz(r)&&wz(o,r)&&(_z(e)||vz(e)))}var e5=xz,Sz=KT,Bz=e5;function Mz(e,t){return e!=null&&Bz(e,t,Sz)}var t5=Mz,Ez=da,Oz=ji,Dz="[object Date]";function Vz(e){return Oz(e)&&Ez(e)==Dz}var $z=Vz;function Tz(e){return function(t){return e(t)}}var n5=Tz,rc={},Iz={get exports(){return rc},set exports(e){rc=e}};(function(e,t){var n=zy,a=t&&!t.nodeType&&t,r=a&&!0&&e&&!e.nodeType&&e,s=r&&r.exports===a,o=s&&n.process,l=function(){try{var d=r&&r.require&&r.require("util").types;return d||o&&o.binding&&o.binding("util")}catch{}}();e.exports=l})(Iz,rc);var Az=$z,Nz=n5,i5=rc,a5=i5&&i5.isDate,zz=a5?Nz(a5):Az,Lz=zz,Pz=da,Fz=Yi,Rz=ji,Hz="[object String]";function Wz(e){return typeof e=="string"||!Fz(e)&&Rz(e)&&Pz(e)==Hz}var ua=Wz;function Yz(e,t){for(var n=-1,a=e==null?0:e.length;++n<a;)if(t(e[n],n,e))return!0;return!1}var r5=Yz,jz=ku;function Uz(){this.__data__=new jz,this.size=0}var qz=Uz;function Gz(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var Kz=Gz;function Zz(e){return this.__data__.get(e)}var Xz=Zz;function Jz(e){return this.__data__.has(e)}var Qz=Jz,eL=ku,tL=qh,nL=Gh,iL=200;function aL(e,t){var n=this.__data__;if(n instanceof eL){var a=n.__data__;if(!tL||a.length<iL-1)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new nL(a)}return n.set(e,t),this.size=n.size,this}var rL=aL,sL=ku,oL=qz,lL=Kz,cL=Xz,dL=Qz,uL=rL;function ho(e){var t=this.__data__=new sL(e);this.size=t.size}ho.prototype.clear=oL,ho.prototype.delete=lL,ho.prototype.get=cL,ho.prototype.has=dL,ho.prototype.set=uL;var Qh=ho,hL="__lodash_hash_undefined__";function fL(e){return this.__data__.set(e,hL),this}var pL=fL;function mL(e){return this.__data__.has(e)}var gL=mL,yL=Gh,bL=pL,vL=gL;function Su(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new yL;++t<n;)this.add(e[t])}Su.prototype.add=Su.prototype.push=bL,Su.prototype.has=vL;var _L=Su;function wL(e,t){return e.has(t)}var kL=wL,CL=_L,xL=r5,SL=kL,BL=1,ML=2;function EL(e,t,n,a,r,s){var o=n&BL,l=e.length,d=t.length;if(l!=d&&!(o&&d>l))return!1;var h=s.get(e),f=s.get(t);if(h&&f)return h==t&&f==e;var m=-1,y=!0,g=n&ML?new CL:void 0;for(s.set(e,t),s.set(t,e);++m<l;){var v=e[m],_=t[m];if(a)var k=o?a(_,v,m,t,e,s):a(v,_,m,e,t,s);if(k!==void 0){if(k)continue;y=!1;break}if(g){if(!xL(t,function(x,M){if(!SL(g,M)&&(v===x||r(v,x,n,a,s)))return g.push(M)})){y=!1;break}}else if(!(v===_||r(v,_,n,a,s))){y=!1;break}}return s.delete(e),s.delete(t),y}var s5=EL,OL=ca,DL=OL.Uint8Array,o5=DL;function VL(e){var t=-1,n=Array(e.size);return e.forEach(function(a,r){n[++t]=[r,a]}),n}var $L=VL;function TL(e){var t=-1,n=Array(e.size);return e.forEach(function(a){n[++t]=a}),n}var IL=TL,l5=vu,c5=o5,AL=lo,NL=s5,zL=$L,LL=IL,PL=1,FL=2,RL="[object Boolean]",HL="[object Date]",WL="[object Error]",YL="[object Map]",jL="[object Number]",UL="[object RegExp]",qL="[object Set]",GL="[object String]",KL="[object Symbol]",ZL="[object ArrayBuffer]",XL="[object DataView]",d5=l5?l5.prototype:void 0,ef=d5?d5.valueOf:void 0;function JL(e,t,n,a,r,s,o){switch(n){case XL:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ZL:return!(e.byteLength!=t.byteLength||!s(new c5(e),new c5(t)));case RL:case HL:case jL:return AL(+e,+t);case WL:return e.name==t.name&&e.message==t.message;case UL:case GL:return e==t+"";case YL:var l=zL;case qL:var d=a&PL;if(l||(l=LL),e.size!=t.size&&!d)return!1;var h=o.get(e);if(h)return h==t;a|=FL,o.set(e,t);var f=NL(l(e),l(t),a,r,s,o);return o.delete(e),f;case KL:if(ef)return ef.call(e)==ef.call(t)}return!1}var QL=JL;function eP(e,t){for(var n=-1,a=t.length,r=e.length;++n<a;)e[r+n]=t[n];return e}var tP=eP,nP=tP,iP=Yi;function aP(e,t,n){var a=t(e);return iP(e)?a:nP(a,n(e))}var rP=aP;function sP(e,t){for(var n=-1,a=e==null?0:e.length,r=0,s=[];++n<a;){var o=e[n];t(o,n,e)&&(s[r++]=o)}return s}var oP=sP;function lP(){return[]}var cP=lP,dP=oP,uP=cP,hP=Object.prototype,fP=hP.propertyIsEnumerable,u5=Object.getOwnPropertySymbols,pP=u5?function(e){return e==null?[]:(e=Object(e),dP(u5(e),function(t){return fP.call(e,t)}))}:uP,mP=pP;function gP(e,t){for(var n=-1,a=Array(e);++n<e;)a[n]=t(n);return a}var yP=gP,fo={},bP={get exports(){return fo},set exports(e){fo=e}};function vP(){return!1}var _P=vP;(function(e,t){var n=ca,a=_P,r=t&&!t.nodeType&&t,s=r&&!0&&e&&!e.nodeType&&e,o=s&&s.exports===r,l=o?n.Buffer:void 0,d=l?l.isBuffer:void 0,h=d||a;e.exports=h})(bP,fo);var wP=da,kP=Jh,CP=ji,xP="[object Arguments]",SP="[object Array]",BP="[object Boolean]",MP="[object Date]",EP="[object Error]",OP="[object Function]",DP="[object Map]",VP="[object Number]",$P="[object Object]",TP="[object RegExp]",IP="[object Set]",AP="[object String]",NP="[object WeakMap]",zP="[object ArrayBuffer]",LP="[object DataView]",PP="[object Float32Array]",FP="[object Float64Array]",RP="[object Int8Array]",HP="[object Int16Array]",WP="[object Int32Array]",YP="[object Uint8Array]",jP="[object Uint8ClampedArray]",UP="[object Uint16Array]",qP="[object Uint32Array]",Pt={};Pt[PP]=Pt[FP]=Pt[RP]=Pt[HP]=Pt[WP]=Pt[YP]=Pt[jP]=Pt[UP]=Pt[qP]=!0,Pt[xP]=Pt[SP]=Pt[zP]=Pt[BP]=Pt[LP]=Pt[MP]=Pt[EP]=Pt[OP]=Pt[DP]=Pt[VP]=Pt[$P]=Pt[TP]=Pt[IP]=Pt[AP]=Pt[NP]=!1;function GP(e){return CP(e)&&kP(e.length)&&!!Pt[wP(e)]}var KP=GP,ZP=KP,XP=n5,h5=rc,f5=h5&&h5.isTypedArray,JP=f5?XP(f5):ZP,tf=JP,QP=yP,eF=Zh,tF=Yi,nF=fo,iF=Xh,aF=tf,rF=Object.prototype,sF=rF.hasOwnProperty;function oF(e,t){var n=tF(e),a=!n&&eF(e),r=!n&&!a&&nF(e),s=!n&&!a&&!r&&aF(e),o=n||a||r||s,l=o?QP(e.length,String):[],d=l.length;for(var h in e)(t||sF.call(e,h))&&!(o&&(h=="length"||r&&(h=="offset"||h=="parent")||s&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||iF(h,d)))&&l.push(h);return l}var p5=oF,lF=Object.prototype;function cF(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||lF;return e===n}var nf=cF;function dF(e,t){return function(n){return e(t(n))}}var m5=dF,uF=m5,hF=uF(Object.keys,Object),fF=hF,pF=nf,mF=fF,gF=Object.prototype,yF=gF.hasOwnProperty;function bF(e){if(!pF(e))return mF(e);var t=[];for(var n in Object(e))yF.call(e,n)&&n!="constructor"&&t.push(n);return t}var vF=bF,_F=ss,wF=Jh;function kF(e){return e!=null&&wF(e.length)&&!_F(e)}var sc=kF,CF=p5,xF=vF,SF=sc;function BF(e){return SF(e)?CF(e):xF(e)}var af=BF,MF=rP,EF=mP,OF=af;function DF(e){return MF(e,OF,EF)}var VF=DF,g5=VF,$F=1,TF=Object.prototype,IF=TF.hasOwnProperty;function AF(e,t,n,a,r,s){var o=n&$F,l=g5(e),d=l.length,h=g5(t),f=h.length;if(d!=f&&!o)return!1;for(var m=d;m--;){var y=l[m];if(!(o?y in t:IF.call(t,y)))return!1}var g=s.get(e),v=s.get(t);if(g&&v)return g==t&&v==e;var _=!0;s.set(e,t),s.set(t,e);for(var k=o;++m<d;){y=l[m];var x=e[y],M=t[y];if(a)var B=o?a(M,x,y,t,e,s):a(x,M,y,e,t,s);if(!(B===void 0?x===M||r(x,M,n,a,s):B)){_=!1;break}k||(k=y=="constructor")}if(_&&!k){var C=e.constructor,V=t.constructor;C!=V&&"constructor"in e&&"constructor"in t&&!(typeof C=="function"&&C instanceof C&&typeof V=="function"&&V instanceof V)&&(_=!1)}return s.delete(e),s.delete(t),_}var NF=AF,zF=os,LF=ca,PF=zF(LF,"DataView"),FF=PF,RF=os,HF=ca,WF=RF(HF,"Promise"),YF=WF,jF=os,UF=ca,qF=jF(UF,"Set"),GF=qF,KF=os,ZF=ca,XF=KF(ZF,"WeakMap"),JF=XF,rf=FF,sf=qh,of=YF,lf=GF,cf=JF,y5=da,po=Wy,b5="[object Map]",QF="[object Object]",v5="[object Promise]",_5="[object Set]",w5="[object WeakMap]",k5="[object DataView]",eR=po(rf),tR=po(sf),nR=po(of),iR=po(lf),aR=po(cf),ls=y5;(rf&&ls(new rf(new ArrayBuffer(1)))!=k5||sf&&ls(new sf)!=b5||of&&ls(of.resolve())!=v5||lf&&ls(new lf)!=_5||cf&&ls(new cf)!=w5)&&(ls=function(e){var t=y5(e),n=t==QF?e.constructor:void 0,a=n?po(n):"";if(a)switch(a){case eR:return k5;case tR:return b5;case nR:return v5;case iR:return _5;case aR:return w5}return t});var rR=ls,df=Qh,sR=s5,oR=QL,lR=NF,C5=rR,x5=Yi,S5=fo,cR=tf,dR=1,B5="[object Arguments]",M5="[object Array]",Bu="[object Object]",uR=Object.prototype,E5=uR.hasOwnProperty;function hR(e,t,n,a,r,s){var o=x5(e),l=x5(t),d=o?M5:C5(e),h=l?M5:C5(t);d=d==B5?Bu:d,h=h==B5?Bu:h;var f=d==Bu,m=h==Bu,y=d==h;if(y&&S5(e)){if(!S5(t))return!1;o=!0,f=!1}if(y&&!f)return s||(s=new df),o||cR(e)?sR(e,t,n,a,r,s):oR(e,t,d,n,a,r,s);if(!(n&dR)){var g=f&&E5.call(e,"__wrapped__"),v=m&&E5.call(t,"__wrapped__");if(g||v){var _=g?e.value():e,k=v?t.value():t;return s||(s=new df),r(_,k,n,a,s)}}return y?(s||(s=new df),lR(e,t,n,a,r,s)):!1}var fR=hR,pR=fR,O5=ji;function D5(e,t,n,a,r){return e===t?!0:e==null||t==null||!O5(e)&&!O5(t)?e!==e&&t!==t:pR(e,t,n,a,D5,r)}var V5=D5,mR=Qh,gR=V5,yR=1,bR=2;function vR(e,t,n,a){var r=n.length,s=r,o=!a;if(e==null)return!s;for(e=Object(e);r--;){var l=n[r];if(o&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++r<s;){l=n[r];var d=l[0],h=e[d],f=l[1];if(o&&l[2]){if(h===void 0&&!(d in e))return!1}else{var m=new mR;if(a)var y=a(h,f,d,e,t,m);if(!(y===void 0?gR(f,h,yR|bR,a,m):y))return!1}}return!0}var _R=vR,wR=Da;function kR(e){return e===e&&!wR(e)}var $5=kR,CR=$5,xR=af;function SR(e){for(var t=xR(e),n=t.length;n--;){var a=t[n],r=e[a];t[n]=[a,r,CR(r)]}return t}var BR=SR;function MR(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var T5=MR,ER=_R,OR=BR,DR=T5;function VR(e){var t=OR(e);return t.length==1&&t[0][2]?DR(t[0][0],t[0][1]):function(n){return n===e||ER(n,e,t)}}var $R=VR,TR=Xy,IR=xu;function AR(e,t){t=TR(t,e);for(var n=0,a=t.length;e!=null&&n<a;)e=e[IR(t[n++])];return n&&n==a?e:void 0}var I5=AR,NR=I5;function zR(e,t,n){var a=e==null?void 0:NR(e,t);return a===void 0?n:a}var cs=zR;function LR(e,t){return e!=null&&t in Object(e)}var PR=LR,FR=PR,RR=e5;function HR(e,t){return e!=null&&RR(e,t,FR)}var WR=HR,YR=V5,jR=cs,UR=WR,qR=jh,GR=$5,KR=T5,ZR=xu,XR=1,JR=2;function QR(e,t){return qR(e)&&GR(t)?KR(ZR(e),t):function(n){var a=jR(n,e);return a===void 0&&a===t?UR(n,e):YR(t,a,XR|JR)}}var eH=QR;function tH(e){return e}var uf=tH;function nH(e){return function(t){return t==null?void 0:t[e]}}var iH=nH,aH=I5;function rH(e){return function(t){return aH(t,e)}}var sH=rH,oH=iH,lH=sH,cH=jh,dH=xu;function uH(e){return cH(e)?oH(dH(e)):lH(e)}var hH=uH,fH=$R,pH=eH,mH=uf,gH=Yi,yH=hH;function bH(e){return typeof e=="function"?e:e==null?mH:typeof e=="object"?gH(e)?pH(e[0],e[1]):fH(e):yH(e)}var A5=bH;function vH(e){return function(t,n,a){for(var r=-1,s=Object(t),o=a(t),l=o.length;l--;){var d=o[e?l:++r];if(n(s[d],d,s)===!1)break}return t}}var _H=vH,wH=_H,kH=wH(),N5=kH,CH=N5,xH=af;function SH(e,t){return e&&CH(e,t,xH)}var z5=SH,BH=sc;function MH(e,t){return function(n,a){if(n==null)return n;if(!BH(n))return e(n,a);for(var r=n.length,s=t?r:-1,o=Object(n);(t?s--:++s<r)&&a(o[s],s,o)!==!1;);return n}}var EH=MH,OH=z5,DH=EH,VH=DH(OH),$H=VH,TH=$H;function IH(e,t){var n;return TH(e,function(a,r,s){return n=t(a,r,s),!n}),!!n}var AH=IH,NH=lo,zH=sc,LH=Xh,PH=Da;function FH(e,t,n){if(!PH(n))return!1;var a=typeof t;return(a=="number"?zH(n)&&LH(t,n.length):a=="string"&&t in n)?NH(n[t],e):!1}var hf=FH,RH=r5,HH=A5,WH=AH,YH=Yi,jH=hf;function UH(e,t,n){var a=YH(e)?RH:WH;return n&&jH(e,t,n)&&(t=void 0),a(e,HH(t))}var qH=UH,GH=da,KH=ji,ZH="[object Boolean]";function XH(e){return e===!0||e===!1||KH(e)&&GH(e)==ZH}var JH=XH,QH=da,eW=ji,tW="[object Number]";function nW(e){return typeof e=="number"||eW(e)&&QH(e)==tW}var Ui=nW,iW=os,aW=function(){try{var e=iW(Object,"defineProperty");return e({},"",{}),e}catch{}}(),L5=aW,P5=L5;function rW(e,t,n){t=="__proto__"&&P5?P5(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Mu=rW,sW=Mu,oW=lo,lW=Object.prototype,cW=lW.hasOwnProperty;function dW(e,t,n){var a=e[t];(!(cW.call(e,t)&&oW(a,n))||n===void 0&&!(t in e))&&sW(e,t,n)}var uW=dW,hW=Mu,fW=z5,pW=A5;function mW(e,t){var n={};return t=pW(t),fW(e,function(a,r,s){hW(n,r,t(a,r,s))}),n}var gW=mW;function yW(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var F5=yW,bW=F5,R5=Math.max;function vW(e,t,n){return t=R5(t===void 0?e.length-1:t,0),function(){for(var a=arguments,r=-1,s=R5(a.length-t,0),o=Array(s);++r<s;)o[r]=a[t+r];r=-1;for(var l=Array(t+1);++r<t;)l[r]=a[r];return l[t]=n(o),bW(e,this,l)}}var _W=vW;function wW(e){return function(){return e}}var kW=wW,CW=kW,H5=L5,xW=uf,SW=H5?function(e,t){return H5(e,"toString",{configurable:!0,enumerable:!1,value:CW(t),writable:!0})}:xW,BW=SW,MW=800,EW=16,OW=Date.now;function DW(e){var t=0,n=0;return function(){var a=OW(),r=EW-(a-n);if(n=a,r>0){if(++t>=MW)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var VW=DW,$W=BW,TW=VW,IW=TW($W),AW=IW,NW=uf,zW=_W,LW=AW;function PW(e,t){return LW(zW(e,t,NW),e+"")}var ff=PW;function FW(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var RW=FW,HW=Da,WW=nf,YW=RW,jW=Object.prototype,UW=jW.hasOwnProperty;function qW(e){if(!HW(e))return YW(e);var t=WW(e),n=[];for(var a in e)a=="constructor"&&(t||!UW.call(e,a))||n.push(a);return n}var GW=qW,KW=p5,ZW=GW,XW=sc;function JW(e){return XW(e)?KW(e,!0):ZW(e)}var pf=JW,QW=ff,eY=lo,tY=hf,nY=pf,W5=Object.prototype,iY=W5.hasOwnProperty,aY=QW(function(e,t){e=Object(e);var n=-1,a=t.length,r=a>2?t[2]:void 0;for(r&&tY(t[0],t[1],r)&&(a=1);++n<a;)for(var s=t[n],o=nY(s),l=-1,d=o.length;++l<d;){var h=o[l],f=e[h];(f===void 0||eY(f,W5[h])&&!iY.call(e,h))&&(e[h]=s[h])}return e}),Y5=aY,rY=Mu,sY=lo;function oY(e,t,n){(n!==void 0&&!sY(e[t],n)||n===void 0&&!(t in e))&&rY(e,t,n)}var j5=oY,Eu={},lY={get exports(){return Eu},set exports(e){Eu=e}};(function(e,t){var n=ca,a=t&&!t.nodeType&&t,r=a&&!0&&e&&!e.nodeType&&e,s=r&&r.exports===a,o=s?n.Buffer:void 0,l=o?o.allocUnsafe:void 0;function d(h,f){if(f)return h.slice();var m=h.length,y=l?l(m):new h.constructor(m);return h.copy(y),y}e.exports=d})(lY,Eu);var U5=o5;function cY(e){var t=new e.constructor(e.byteLength);return new U5(t).set(new U5(e)),t}var dY=cY,uY=dY;function hY(e,t){var n=t?uY(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var fY=hY;function pY(e,t){var n=-1,a=e.length;for(t||(t=Array(a));++n<a;)t[n]=e[n];return t}var mY=pY,gY=Da,q5=Object.create,yY=function(){function e(){}return function(t){if(!gY(t))return{};if(q5)return q5(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),bY=yY,vY=m5,_Y=vY(Object.getPrototypeOf,Object),G5=_Y,wY=bY,kY=G5,CY=nf;function xY(e){return typeof e.constructor=="function"&&!CY(e)?wY(kY(e)):{}}var SY=xY,BY=sc,MY=ji;function EY(e){return MY(e)&&BY(e)}var OY=EY,DY=da,VY=G5,$Y=ji,TY="[object Object]",IY=Function.prototype,AY=Object.prototype,K5=IY.toString,NY=AY.hasOwnProperty,zY=K5.call(Object);function LY(e){if(!$Y(e)||DY(e)!=TY)return!1;var t=VY(e);if(t===null)return!0;var n=NY.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&K5.call(n)==zY}var PY=LY;function FY(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Z5=FY,RY=uW,HY=Mu;function WY(e,t,n,a){var r=!n;n||(n={});for(var s=-1,o=t.length;++s<o;){var l=t[s],d=a?a(n[l],e[l],l,n,e):void 0;d===void 0&&(d=e[l]),r?HY(n,l,d):RY(n,l,d)}return n}var YY=WY,jY=YY,UY=pf;function qY(e){return jY(e,UY(e))}var GY=qY,X5=j5,KY=Eu,ZY=fY,XY=mY,JY=SY,J5=Zh,Q5=Yi,QY=OY,ej=fo,tj=ss,nj=Da,ij=PY,aj=tf,eb=Z5,rj=GY;function sj(e,t,n,a,r,s,o){var l=eb(e,n),d=eb(t,n),h=o.get(d);if(h){X5(e,n,h);return}var f=s?s(l,d,n+"",e,t,o):void 0,m=f===void 0;if(m){var y=Q5(d),g=!y&&ej(d),v=!y&&!g&&aj(d);f=d,y||g||v?Q5(l)?f=l:QY(l)?f=XY(l):g?(m=!1,f=KY(d,!0)):v?(m=!1,f=ZY(d,!0)):f=[]:ij(d)||J5(d)?(f=l,J5(l)?f=rj(l):(!nj(l)||tj(l))&&(f=JY(d))):m=!1}m&&(o.set(d,f),r(f,d,a,s,o),o.delete(d)),X5(e,n,f)}var oj=sj,lj=Qh,cj=j5,dj=N5,uj=oj,hj=Da,fj=pf,pj=Z5;function tb(e,t,n,a,r){e!==t&&dj(t,function(s,o){if(r||(r=new lj),hj(s))uj(e,t,o,n,tb,a,r);else{var l=a?a(pj(e,o),s,o+"",e,t,r):void 0;l===void 0&&(l=s),cj(e,o,l)}},fj)}var nb=tb,mj=nb,ib=Da;function ab(e,t,n,a,r,s){return ib(e)&&ib(t)&&(s.set(t,e),mj(e,t,void 0,ab,s),s.delete(t)),e}var gj=ab,yj=ff,bj=hf;function vj(e){return yj(function(t,n){var a=-1,r=n.length,s=r>1?n[r-1]:void 0,o=r>2?n[2]:void 0;for(s=e.length>3&&typeof s=="function"?(r--,s):void 0,o&&bj(n[0],n[1],o)&&(s=r<3?void 0:s,r=1),t=Object(t);++a<r;){var l=n[a];l&&e(t,l,a,s)}return t})}var _j=vj,wj=nb,kj=_j,Cj=kj(function(e,t,n,a){wj(e,t,n,a)}),xj=Cj,Sj=F5,Bj=ff,Mj=gj,Ej=xj,Oj=Bj(function(e){return e.push(void 0,Mj),Sj(Ej,void 0,e)}),oc=Oj;function Dj(e){return e&&e.length?e[0]:void 0}var rb=Dj;function Vj(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var mo=Vj;const $j=e=>Object.prototype.toString.call(e).slice(8,-1),go=e=>Lz(e)&&!isNaN(e.getTime()),Va=e=>$j(e)==="Object",sb=t5,ob=(e,t)=>qH(t,n=>t5(e,n)),St=(e,t,n="0")=>{for(e=e!=null?String(e):"",t=t||2;e.length<t;)e=`${n}${e}`;return e},ki=e=>Array.isArray(e),$a=e=>ki(e)&&e.length>0,Ou=e=>e==null?null:document&&ua(e)?document.querySelector(e):e.$el??e,gr=(e,t,n,a=void 0)=>{e.removeEventListener(t,n,a)},yr=(e,t,n,a=void 0)=>(e.addEventListener(t,n,a),()=>gr(e,t,n,a)),Du=(e,t)=>!!e&&!!t&&(e===t||e.contains(t)),Vu=(e,t)=>{(e.key===" "||e.key==="Enter")&&(t(e),e.preventDefault())},lb=(e,...t)=>{const n={};let a;for(a in e)t.includes(a)||(n[a]=e[a]);return n},cb=(e,t)=>{const n={};return t.forEach(a=>{a in e&&(n[a]=e[a])}),n};function Tj(e,t,n){return Math.min(Math.max(e,t),n)}var $u={},Ij={get exports(){return $u},set exports(e){$u=e}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(a){if(a===null||a===!0||a===!1)return NaN;var r=Number(a);return isNaN(r)?r:r<0?Math.ceil(r):Math.floor(r)}e.exports=t.default})(Ij,$u);const Aj=Ny($u);var Tu={},Nj={get exports(){return Tu},set exports(e){Tu=e}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(a){var r=new Date(Date.UTC(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds()));return r.setUTCFullYear(a.getFullYear()),a.getTime()-r.getTime()}e.exports=t.default})(Nj,Tu);const db=Ny(Tu);function zj(e,t){var n=Rj(t);return n.formatToParts?Pj(n,e):Fj(n,e)}var Lj={year:0,month:1,day:2,hour:3,minute:4,second:5};function Pj(e,t){try{for(var n=e.formatToParts(t),a=[],r=0;r<n.length;r++){var s=Lj[n[r].type];s>=0&&(a[s]=parseInt(n[r].value,10))}return a}catch(o){if(o instanceof RangeError)return[NaN];throw o}}function Fj(e,t){var n=e.format(t).replace(/\u200E/g,""),a=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[a[3],a[1],a[2],a[4],a[5],a[6]]}var mf={};function Rj(e){if(!mf[e]){var t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),n=t==="06/25/2014, 00:00:00"||t==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";mf[e]=n?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return mf[e]}function ub(e,t,n,a,r,s,o){var l=new Date(0);return l.setUTCFullYear(e,t,n),l.setUTCHours(a,r,s,o),l}var hb=36e5,Hj=6e4,gf={timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function Wj(e,t,n){var a,r;if(!e||(a=gf.timezoneZ.exec(e),a))return 0;var s;if(a=gf.timezoneHH.exec(e),a)return s=parseInt(a[1],10),fb(s)?-(s*hb):NaN;if(a=gf.timezoneHHMM.exec(e),a){s=parseInt(a[1],10);var o=parseInt(a[2],10);return fb(s,o)?(r=Math.abs(s)*hb+o*Hj,s>0?-r:r):NaN}if(Uj(e)){t=new Date(t||Date.now());var l=Yj(t),d=yf(l,e),h=jj(t,d,e);return-h}return NaN}function Yj(e){return ub(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function yf(e,t){var n=zj(e,t),a=ub(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),r=e.getTime(),s=r%1e3;return r-=s>=0?s:1e3+s,a-r}function jj(e,t,n){var a=e.getTime(),r=a-t,s=yf(new Date(r),n);if(t===s)return t;r-=s-t;var o=yf(new Date(r),n);return s===o?s:Math.max(s,o)}function fb(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}var pb={};function Uj(e){if(pb[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),pb[e]=!0,!0}catch{return!1}}var qj=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/;const Gj=qj;var bf=36e5,mb=6e4,Kj=2,zn={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:Gj};function Zj(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);var n=t||{},a=n.additionalDigits==null?Kj:Aj(n.additionalDigits);if(a!==2&&a!==1&&a!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var r=Xj(e),s=Jj(r.date,a),o=s.year,l=s.restDateString,d=Qj(l,o);if(isNaN(d))return new Date(NaN);if(d){var h=d.getTime(),f=0,m;if(r.time&&(f=eU(r.time),isNaN(f)))return new Date(NaN);if(r.timeZone||n.timeZone){if(m=Wj(r.timeZone||n.timeZone,new Date(h+f)),isNaN(m))return new Date(NaN)}else m=db(new Date(h+f)),m=db(new Date(h+f+m));return new Date(h+f+m)}else return new Date(NaN)}function Xj(e){var t={},n=zn.dateTimePattern.exec(e),a;if(n?(t.date=n[1],a=n[3]):(n=zn.datePattern.exec(e),n?(t.date=n[1],a=n[2]):(t.date=null,a=e)),a){var r=zn.timeZone.exec(a);r?(t.time=a.replace(r[1],""),t.timeZone=r[1].trim()):t.time=a}return t}function Jj(e,t){var n=zn.YYY[t],a=zn.YYYYY[t],r;if(r=zn.YYYY.exec(e)||a.exec(e),r){var s=r[1];return{year:parseInt(s,10),restDateString:e.slice(s.length)}}if(r=zn.YY.exec(e)||n.exec(e),r){var o=r[1];return{year:parseInt(o,10)*100,restDateString:e.slice(o.length)}}return{year:null}}function Qj(e,t){if(t===null)return null;var n,a,r,s;if(e.length===0)return a=new Date(0),a.setUTCFullYear(t),a;if(n=zn.MM.exec(e),n)return a=new Date(0),r=parseInt(n[1],10)-1,bb(t,r)?(a.setUTCFullYear(t,r),a):new Date(NaN);if(n=zn.DDD.exec(e),n){a=new Date(0);var o=parseInt(n[1],10);return iU(t,o)?(a.setUTCFullYear(t,0,o),a):new Date(NaN)}if(n=zn.MMDD.exec(e),n){a=new Date(0),r=parseInt(n[1],10)-1;var l=parseInt(n[2],10);return bb(t,r,l)?(a.setUTCFullYear(t,r,l),a):new Date(NaN)}if(n=zn.Www.exec(e),n)return s=parseInt(n[1],10)-1,vb(t,s)?gb(t,s):new Date(NaN);if(n=zn.WwwD.exec(e),n){s=parseInt(n[1],10)-1;var d=parseInt(n[2],10)-1;return vb(t,s,d)?gb(t,s,d):new Date(NaN)}return null}function eU(e){var t,n,a;if(t=zn.HH.exec(e),t)return n=parseFloat(t[1].replace(",",".")),vf(n)?n%24*bf:NaN;if(t=zn.HHMM.exec(e),t)return n=parseInt(t[1],10),a=parseFloat(t[2].replace(",",".")),vf(n,a)?n%24*bf+a*mb:NaN;if(t=zn.HHMMSS.exec(e),t){n=parseInt(t[1],10),a=parseInt(t[2],10);var r=parseFloat(t[3].replace(",","."));return vf(n,a,r)?n%24*bf+a*mb+r*1e3:NaN}return null}function gb(e,t,n){t=t||0,n=n||0;var a=new Date(0);a.setUTCFullYear(e,0,4);var r=a.getUTCDay()||7,s=t*7+n+1-r;return a.setUTCDate(a.getUTCDate()+s),a}var tU=[31,28,31,30,31,30,31,31,30,31,30,31],nU=[31,29,31,30,31,30,31,31,30,31,30,31];function yb(e){return e%400===0||e%4===0&&e%100!==0}function bb(e,t,n){if(t<0||t>11)return!1;if(n!=null){if(n<1)return!1;var a=yb(e);if(a&&n>nU[t]||!a&&n>tU[t])return!1}return!0}function iU(e,t){if(t<1)return!1;var n=yb(e);return!(n&&t>366||!n&&t>365)}function vb(e,t,n){return!(t<0||t>52||n!=null&&(n<0||n>6))}function vf(e,t,n){return!(e!=null&&(e<0||e>=25)||t!=null&&(t<0||t>=60)||n!=null&&(n<0||n>=60))}function On(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Iu(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Iu=function(n){return typeof n}:Iu=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Iu(e)}function Ta(e){On(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Iu(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function yo(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}var aU={};function _f(){return aU}function ds(e,t){var n,a,r,s,o,l,d,h;On(1,arguments);var f=_f(),m=yo((n=(a=(r=(s=t==null?void 0:t.weekStartsOn)!==null&&s!==void 0?s:t==null||(o=t.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:f.weekStartsOn)!==null&&a!==void 0?a:(d=f.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&n!==void 0?n:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var y=Ta(e),g=y.getDay(),v=(g<m?7:0)+g-m;return y.setDate(y.getDate()-v),y.setHours(0,0,0,0),y}function _b(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var rU=6048e5;function sU(e,t,n){On(2,arguments);var a=ds(e,n),r=ds(t,n),s=a.getTime()-_b(a),o=r.getTime()-_b(r);return Math.round((s-o)/rU)}function oU(e){On(1,arguments);var t=Ta(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}function lU(e){On(1,arguments);var t=Ta(e);return t.setDate(1),t.setHours(0,0,0,0),t}function cU(e,t){return On(1,arguments),sU(oU(e),lU(e),t)+1}function dU(e,t){var n,a,r,s,o,l,d,h;On(1,arguments);var f=Ta(e),m=f.getFullYear(),y=_f(),g=yo((n=(a=(r=(s=t==null?void 0:t.firstWeekContainsDate)!==null&&s!==void 0?s:t==null||(o=t.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:y.firstWeekContainsDate)!==null&&a!==void 0?a:(d=y.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(g>=1&&g<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var v=new Date(0);v.setFullYear(m+1,0,g),v.setHours(0,0,0,0);var _=ds(v,t),k=new Date(0);k.setFullYear(m,0,g),k.setHours(0,0,0,0);var x=ds(k,t);return f.getTime()>=_.getTime()?m+1:f.getTime()>=x.getTime()?m:m-1}function uU(e,t){var n,a,r,s,o,l,d,h;On(1,arguments);var f=_f(),m=yo((n=(a=(r=(s=t==null?void 0:t.firstWeekContainsDate)!==null&&s!==void 0?s:t==null||(o=t.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:f.firstWeekContainsDate)!==null&&a!==void 0?a:(d=f.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&n!==void 0?n:1),y=dU(e,t),g=new Date(0);g.setFullYear(y,0,m),g.setHours(0,0,0,0);var v=ds(g,t);return v}var hU=6048e5;function fU(e,t){On(1,arguments);var n=Ta(e),a=ds(n,t).getTime()-uU(n,t).getTime();return Math.round(a/hU)+1}function Au(e){return On(1,arguments),ds(e,{weekStartsOn:1})}function pU(e){On(1,arguments);var t=Ta(e),n=t.getFullYear(),a=new Date(0);a.setFullYear(n+1,0,4),a.setHours(0,0,0,0);var r=Au(a),s=new Date(0);s.setFullYear(n,0,4),s.setHours(0,0,0,0);var o=Au(s);return t.getTime()>=r.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function mU(e){On(1,arguments);var t=pU(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var a=Au(n);return a}var gU=6048e5;function yU(e){On(1,arguments);var t=Ta(e),n=Au(t).getTime()-mU(t).getTime();return Math.round(n/gU)+1}function Ln(e,t){On(2,arguments);var n=Ta(e),a=yo(t);return isNaN(a)?new Date(NaN):(a&&n.setDate(n.getDate()+a),n)}function Nu(e,t){On(2,arguments);var n=Ta(e),a=yo(t);if(isNaN(a))return new Date(NaN);if(!a)return n;var r=n.getDate(),s=new Date(n.getTime());s.setMonth(n.getMonth()+a+1,0);var o=s.getDate();return r>=o?s:(n.setFullYear(s.getFullYear(),s.getMonth(),r),n)}function wb(e,t){On(2,arguments);var n=yo(t);return Nu(e,n*12)}const bU={daily:["year","month","day"],weekly:["year","month","week"],monthly:["year","month"]};function vU({monthComps:e,prevMonthComps:t,nextMonthComps:n},a){const r=[],{firstDayOfWeek:s,firstWeekday:o,isoWeeknumbers:l,weeknumbers:d,numDays:h,numWeeks:f}=e,m=o+(o<s?Dn:0)-s;let y=!0,g=!1,v=!1,_=0;const k=new Intl.DateTimeFormat(a.id,{weekday:"long",year:"numeric",month:"short",day:"numeric"});let x=t.numDays-m+1,M=t.numDays-x+1,B=Math.floor((x-1)/Dn+1),C=1,V=t.numWeeks,$=1,N=t.month,I=t.year;const F=new Date,q=F.getDate(),Q=F.getMonth()+1,P=F.getFullYear();for(let Z=1;Z<=qU;Z++){for(let se=1,U=s;se<=Dn;se++,U+=U===Dn?1-Dn:1){y&&U===o&&(x=1,M=e.numDays,B=Math.floor((x-1)/Dn+1),C=Math.floor((h-x)/Dn+1),V=1,$=f,N=e.month,I=e.year,y=!1,g=!0);const me=a.getDateFromParams(I,N,x,0,0,0,0),be=a.getDateFromParams(I,N,x,12,0,0,0),G=a.getDateFromParams(I,N,x,23,59,59,999),ye=me,Y=`${St(I,4)}-${St(N,2)}-${St(x,2)}`,ee=se,ue=Dn-se,de=d[Z-1],_e=l[Z-1],ge=x===q&&N===Q&&I===P,De=g&&x===1,Ye=g&&x===h,Ne=Z===1,ut=Z===f,_t=se===1,ft=se===Dn,it=Pb(I,N,x);r.push({locale:a,id:Y,position:++_,label:x.toString(),ariaLabel:k.format(new Date(I,N-1,x)),day:x,dayFromEnd:M,weekday:U,weekdayPosition:ee,weekdayPositionFromEnd:ue,weekdayOrdinal:B,weekdayOrdinalFromEnd:C,week:V,weekFromEnd:$,weekPosition:Z,weeknumber:de,isoWeeknumber:_e,month:N,year:I,date:ye,startDate:me,endDate:G,noonDate:be,dayIndex:it,isToday:ge,isFirstDay:De,isLastDay:Ye,isDisabled:!g,isFocusable:!g,isFocused:!1,inMonth:g,inPrevMonth:y,inNextMonth:v,onTop:Ne,onBottom:ut,onLeft:_t,onRight:ft,classes:[`id-${Y}`,`day-${x}`,`day-from-end-${M}`,`weekday-${U}`,`weekday-position-${ee}`,`weekday-ordinal-${B}`,`weekday-ordinal-from-end-${C}`,`week-${V}`,`week-from-end-${$}`,{"is-today":ge,"is-first-day":De,"is-last-day":Ye,"in-month":g,"in-prev-month":y,"in-next-month":v,"on-top":Ne,"on-bottom":ut,"on-left":_t,"on-right":ft}]}),g&&Ye?(g=!1,v=!0,x=1,M=h,B=1,C=Math.floor((h-x)/Dn+1),V=1,$=n.numWeeks,N=n.month,I=n.year):(x++,M--,B=Math.floor((x-1)/Dn+1),C=Math.floor((h-x)/Dn+1))}V++,$--}return r}function _U(e,t,n,a){const r=e.reduce((s,o,l)=>{const d=Math.floor(l/7);let h=s[d];return h||(h={id:`week-${d+1}`,title:"",week:o.week,weekPosition:o.weekPosition,weeknumber:o.weeknumber,isoWeeknumber:o.isoWeeknumber,weeknumberDisplay:t?o.weeknumber:n?o.isoWeeknumber:void 0,days:[]},s[d]=h),h.days.push(o),s},Array(e.length/Dn));return r.forEach(s=>{const o=s.days[0],l=s.days[s.days.length-1];o.month===l.month?s.title=`${a.formatDate(o.date,"MMMM YYYY")}`:o.year===l.year?s.title=`${a.formatDate(o.date,"MMM")} - ${a.formatDate(l.date,"MMM YYYY")}`:s.title=`${a.formatDate(o.date,"MMM YYYY")} - ${a.formatDate(l.date,"MMM YYYY")}`}),r}function wU(e,t){return e.days.map(n=>({label:t.formatDate(n.date,t.masks.weekdays),weekday:n.weekday}))}function kU(e,t){return`${t}.${St(e,2)}`}function kb(e,t,n){return cb(n.getDateParts(n.toDate(e)),bU[t])}function Cb({day:e,week:t,month:n,year:a},r,s,o){if(s==="daily"&&e){const l=new Date(a,n-1,e),d=Ln(l,r);return{day:d.getDate(),month:d.getMonth()+1,year:d.getFullYear()}}else if(s==="weekly"&&t){const d=o.getMonthParts(n,a).firstDayOfMonth,h=Ln(d,(t-1+r)*7),f=o.getDateParts(h);return{week:f.week,month:f.month,year:f.year}}else{const l=new Date(a,n-1,1),d=Nu(l,r);return{month:d.getMonth()+1,year:d.getFullYear()}}}function ha(e){return e!=null&&e.month!=null&&e.year!=null}function wf(e,t){return!ha(e)||!ha(t)?!1:(e=e,t=t,e.year!==t.year?e.year<t.year:e.month&&t.month&&e.month!==t.month?e.month<t.month:e.week&&t.week&&e.week!==t.week?e.week<t.week:e.day&&t.day&&e.day!==t.day?e.day<t.day:!1)}function zu(e,t){return!ha(e)||!ha(t)?!1:(e=e,t=t,e.year!==t.year?e.year>t.year:e.month&&t.month&&e.month!==t.month?e.month>t.month:e.week&&t.week&&e.week!==t.week?e.week>t.week:e.day&&t.day&&e.day!==t.day?e.day>t.day:!1)}function CU(e,t,n){return(e||!1)&&!wf(e,t)&&!zu(e,n)}function xU(e,t){return!e&&t||e&&!t?!1:!e&&!t?!0:(e=e,t=t,e.year===t.year&&e.month===t.month&&e.week===t.week&&e.day===t.day)}function SU(e,t,n,a){if(!ha(e)||!ha(t))return[];const r=[];for(;!zu(e,t);)r.push(e),e=Cb(e,1,n,a);return r}function xb(e){const{day:t,week:n,month:a,year:r}=e;let s=`${r}-${St(a,2)}`;return n&&(s=`${s}-w${n}`),t&&(s=`${s}-${St(t,2)}`),s}function BU(e,t){const{month:n,year:a,showWeeknumbers:r,showIsoWeeknumbers:s}=e,o=new Date(a,n-1,15),l=t.getMonthParts(n,a),d=t.getPrevMonthParts(n,a),h=t.getNextMonthParts(n,a),f=vU({monthComps:l,prevMonthComps:d,nextMonthComps:h},t),m=_U(f,r,s,t),y=wU(m[0],t);return{id:xb(e),month:n,year:a,monthTitle:t.formatDate(o,t.masks.title),shortMonthLabel:t.formatDate(o,"MMM"),monthLabel:t.formatDate(o,"MMMM"),shortYearLabel:a.toString().substring(2),yearLabel:a.toString(),monthComps:l,prevMonthComps:d,nextMonthComps:h,days:f,weeks:m,weekdays:y}}function MU(e,t){const{day:n,week:a,view:r,trimWeeks:s}=e,o={...t,...e,title:"",viewDays:[],viewWeeks:[]};switch(r){case"daily":{let l=o.days.find(h=>h.inMonth);n?l=o.days.find(h=>h.day===n&&h.inMonth)||l:a&&(l=o.days.find(h=>h.week===a&&h.inMonth));const d=o.weeks[l.week-1];o.viewWeeks=[d],o.viewDays=[l],o.week=l.week,o.weekTitle=d.title,o.day=l.day,o.dayTitle=l.ariaLabel,o.title=o.dayTitle;break}case"weekly":{o.week=a||1;const l=o.weeks[o.week-1];o.viewWeeks=[l],o.viewDays=l.days,o.weekTitle=l.title,o.title=o.weekTitle;break}default:{o.title=o.monthTitle,o.viewWeeks=o.weeks.slice(0,s?o.monthComps.numWeeks:void 0),o.viewDays=o.days;break}}return o}class Sb{constructor(t,n,a){Oe(this,"keys",[]),Oe(this,"store",{}),this.size=t,this.createKey=n,this.createItem=a}get(...t){const n=this.createKey(...t);return this.store[n]}getOrSet(...t){const n=this.createKey(...t);if(this.store[n])return this.store[n];const a=this.createItem(...t);if(this.keys.length>=this.size){const r=this.keys.shift();r!=null&&delete this.store[r]}return this.keys.push(n),this.store[n]=a,a}}class bo{constructor(t,n=new Lu){Oe(this,"order"),Oe(this,"locale"),Oe(this,"start",null),Oe(this,"end",null),Oe(this,"repeat",null);var a;this.locale=n;const{start:r,end:s,span:o,order:l,repeat:d}=t;go(r)&&(this.start=n.getDateParts(r)),go(s)?this.end=n.getDateParts(s):this.start!=null&&o&&(this.end=n.getDateParts(Ln(this.start.date,o-1))),this.order=l??0,d&&(this.repeat=new Pu({from:(a=this.start)==null?void 0:a.date,...d},{locale:this.locale}))}static fromMany(t,n){return(ki(t)?t:[t]).filter(a=>a).map(a=>bo.from(a,n))}static from(t,n){if(t instanceof bo)return t;const a={start:null,end:null};return t!=null&&(ki(t)?(a.start=t[0]??null,a.end=t[1]??null):Va(t)?Object.assign(a,t):(a.start=t,a.end=t)),a.start!=null&&(a.start=new Date(a.start)),a.end!=null&&(a.end=new Date(a.end)),new bo(a,n)}get opts(){const{order:t,locale:n}=this;return{order:t,locale:n}}get hasRepeat(){return!!this.repeat}get isSingleDay(){const{start:t,end:n}=this;return t&&n&&t.year===n.year&&t.month===n.month&&t.day===n.day}get isMultiDay(){return!this.isSingleDay}get daySpan(){return this.start==null||this.end==null?this.hasRepeat?1:1/0:this.end.dayIndex-this.start.dayIndex}startsOnDay(t){var n,a;return((n=this.start)==null?void 0:n.dayIndex)===t.dayIndex||!!((a=this.repeat)!=null&&a.passes(t))}intersectsDay(t){return this.intersectsDayRange(t,t)}intersectsRange(t){var n,a;return this.intersectsDayRange(((n=t.start)==null?void 0:n.dayIndex)??-1/0,((a=t.end)==null?void 0:a.dayIndex)??1/0)}intersectsDayRange(t,n){return!(this.start&&this.start.dayIndex>n||this.end&&this.end.dayIndex<t)}}class EU{constructor(){Oe(this,"records",{})}render(t,n,a){var r,s,o,l;let d=null;const h=a[0].dayIndex,f=a[a.length-1].dayIndex;return n.hasRepeat?a.forEach(m=>{var y,g;if(n.startsOnDay(m)){const v=n.daySpan<1/0?n.daySpan:1;d={startDay:m.dayIndex,startTime:((y=n.start)==null?void 0:y.time)??0,endDay:m.dayIndex+v-1,endTime:((g=n.end)==null?void 0:g.time)??Fu},this.getRangeRecords(t).push(d)}}):n.intersectsDayRange(h,f)&&(d={startDay:((r=n.start)==null?void 0:r.dayIndex)??-1/0,startTime:((s=n.start)==null?void 0:s.time)??-1/0,endDay:((o=n.end)==null?void 0:o.dayIndex)??1/0,endTime:((l=n.end)==null?void 0:l.time)??1/0},this.getRangeRecords(t).push(d)),d}getRangeRecords(t){let n=this.records[t.key];return n||(n={ranges:[],data:t},this.records[t.key]=n),n.ranges}getCell(t,n){return this.getCells(n).find(s=>s.data.key===t)}cellExists(t,n){const a=this.records[t];return a==null?!1:a.ranges.some(r=>r.startDay<=n&&r.endDay>=n)}getCells(t){const n=Object.values(this.records),a=[],{dayIndex:r}=t;return n.forEach(({data:s,ranges:o})=>{o.filter(l=>l.startDay<=r&&l.endDay>=r).forEach(l=>{const d=r===l.startDay,h=r===l.endDay,f=d?l.startTime:0,m=new Date(t.startDate.getTime()+f),y=h?l.endTime:Fu,g=new Date(t.endDate.getTime()+y),v=f===0&&y===Fu,_=s.order||0;a.push({...l,data:s,onStart:d,onEnd:h,startTime:f,startDate:m,endTime:y,endDate:g,allDay:v,order:_})})}),a.sort((s,o)=>s.order-o.order),a}}const Ia={ar:{dow:7,L:"D/‏M/‏YYYY"},bg:{dow:2,L:"D.MM.YYYY"},ca:{dow:2,L:"DD/MM/YYYY"},"zh-CN":{dow:2,L:"YYYY/MM/DD"},"zh-TW":{dow:1,L:"YYYY/MM/DD"},hr:{dow:2,L:"DD.MM.YYYY"},cs:{dow:2,L:"DD.MM.YYYY"},da:{dow:2,L:"DD.MM.YYYY"},nl:{dow:2,L:"DD-MM-YYYY"},"en-US":{dow:1,L:"MM/DD/YYYY"},"en-AU":{dow:2,L:"DD/MM/YYYY"},"en-CA":{dow:1,L:"YYYY-MM-DD"},"en-GB":{dow:2,L:"DD/MM/YYYY"},"en-IE":{dow:2,L:"DD-MM-YYYY"},"en-NZ":{dow:2,L:"DD/MM/YYYY"},"en-ZA":{dow:1,L:"YYYY/MM/DD"},eo:{dow:2,L:"YYYY-MM-DD"},et:{dow:2,L:"DD.MM.YYYY"},fi:{dow:2,L:"DD.MM.YYYY"},fr:{dow:2,L:"DD/MM/YYYY"},"fr-CA":{dow:1,L:"YYYY-MM-DD"},"fr-CH":{dow:2,L:"DD.MM.YYYY"},de:{dow:2,L:"DD.MM.YYYY"},he:{dow:1,L:"DD.MM.YYYY"},id:{dow:2,L:"DD/MM/YYYY"},it:{dow:2,L:"DD/MM/YYYY"},ja:{dow:1,L:"YYYY年M月D日"},ko:{dow:1,L:"YYYY.MM.DD"},lv:{dow:2,L:"DD.MM.YYYY"},lt:{dow:2,L:"DD.MM.YYYY"},mk:{dow:2,L:"D.MM.YYYY"},nb:{dow:2,L:"D. MMMM YYYY"},nn:{dow:2,L:"D. MMMM YYYY"},pl:{dow:2,L:"DD.MM.YYYY"},pt:{dow:2,L:"DD/MM/YYYY"},ro:{dow:2,L:"DD.MM.YYYY"},ru:{dow:2,L:"DD.MM.YYYY"},sk:{dow:2,L:"DD.MM.YYYY"},"es-ES":{dow:2,L:"DD/MM/YYYY"},"es-MX":{dow:2,L:"DD/MM/YYYY"},sv:{dow:2,L:"YYYY-MM-DD"},th:{dow:1,L:"DD/MM/YYYY"},tr:{dow:2,L:"DD.MM.YYYY"},uk:{dow:2,L:"DD.MM.YYYY"},vi:{dow:2,L:"DD/MM/YYYY"}};Ia.en=Ia["en-US"],Ia.es=Ia["es-ES"],Ia.no=Ia.nb,Ia.zh=Ia["zh-CN"];const OU=Object.entries(Ia).reduce((e,[t,{dow:n,L:a}])=>(e[t]={id:t,firstDayOfWeek:n,masks:{L:a}},e),{}),DU={componentPrefix:"V",color:"blue",isDark:!1,navVisibility:"click",titlePosition:"center",transition:"slide-h",touch:{maxSwipeTime:300,minHorizontalSwipeDistance:60,maxVerticalSwipeDistance:80},masks:{title:"MMMM YYYY",weekdays:"W",navMonths:"MMM",hours:"h A",input:["L","YYYY-MM-DD","YYYY/MM/DD"],inputDateTime:["L h:mm A","YYYY-MM-DD h:mm A","YYYY/MM/DD h:mm A"],inputDateTime24hr:["L HH:mm","YYYY-MM-DD HH:mm","YYYY/MM/DD HH:mm"],inputTime:["h:mm A"],inputTime24hr:["HH:mm"],dayPopover:"WWW, MMM D, YYYY",data:["L","YYYY-MM-DD","YYYY/MM/DD"],model:"iso",iso:"YYYY-MM-DDTHH:mm:ss.SSSZ"},locales:OU,datePicker:{updateOnInput:!0,inputDebounce:1e3,popover:{visibility:"hover-focus",placement:"bottom-start",isInteractive:!0}}},kf=i.reactive(DU),VU=i.computed(()=>gW(kf.locales,e=>(e.masks=oc(e.masks,kf.masks),e))),br=e=>typeof window<"u"&&sb(window.__vcalendar__,e)?cs(window.__vcalendar__,e):cs(kf,e),$U=12,TU=5;function IU(e,t){const n=new Intl.DateTimeFormat().resolvedOptions().locale;let a;ua(e)?a=e:sb(e,"id")&&(a=e.id),a=(a||n).toLowerCase();const r=Object.keys(t),s=d=>r.find(h=>h.toLowerCase()===d);a=s(a)||s(a.substring(0,2))||n;const o={...t["en-IE"],...t[a],id:a,monthCacheSize:$U,pageCacheSize:TU};return Va(e)?oc(e,o):o}class Lu{constructor(t=void 0,n){Oe(this,"id"),Oe(this,"daysInWeek"),Oe(this,"firstDayOfWeek"),Oe(this,"masks"),Oe(this,"timezone"),Oe(this,"hourLabels"),Oe(this,"dayNames"),Oe(this,"dayNamesShort"),Oe(this,"dayNamesShorter"),Oe(this,"dayNamesNarrow"),Oe(this,"monthNames"),Oe(this,"monthNamesShort"),Oe(this,"relativeTimeNames"),Oe(this,"amPm",["am","pm"]),Oe(this,"monthCache"),Oe(this,"pageCache");const{id:a,firstDayOfWeek:r,masks:s,monthCacheSize:o,pageCacheSize:l}=IU(t,VU.value);this.monthCache=new Sb(o,nq,iq),this.pageCache=new Sb(l,xb,BU),this.id=a,this.daysInWeek=Dn,this.firstDayOfWeek=Tj(r,1,Dn),this.masks=s,this.timezone=n||void 0,this.hourLabels=this.getHourLabels(),this.dayNames=Bf("long",this.id),this.dayNamesShort=Bf("short",this.id),this.dayNamesShorter=this.dayNamesShort.map(d=>d.substring(0,2)),this.dayNamesNarrow=Bf("narrow",this.id),this.monthNames=Wb("long",this.id),this.monthNamesShort=Wb("short",this.id),this.relativeTimeNames=sq(this.id)}formatDate(t,n){return uq(t,n,this)}parseDate(t,n){return Yb(t,n,this)}toDate(t,n={}){const a=new Date(NaN);let r=a;const{fillDate:s,mask:o,patch:l,rules:d}=n;if(Ui(t)?(n.type="number",r=new Date(+t)):ua(t)?(n.type="string",r=t?Yb(t,o||"iso",this):a):go(t)?(n.type="date",r=new Date(t.getTime())):xf(t)&&(n.type="object",r=this.getDateFromParts(t)),r&&(l||d)){let h=this.getDateParts(r);if(l&&s!=null){const f=this.getDateParts(this.toDate(s));h=this.getDateParts(this.toDate({...f,...cb(h,UU[l])}))}d&&(h=dq(h,d)),r=this.getDateFromParts(h)}return r||a}toDateOrNull(t,n={}){const a=this.toDate(t,n);return isNaN(a.getTime())?null:a}fromDate(t,{type:n,mask:a}={}){switch(n){case"number":return t?t.getTime():NaN;case"string":return t?this.formatDate(t,a||"iso"):"";case"object":return t?this.getDateParts(t):null;default:return t?new Date(t):null}}range(t){return bo.from(t,this)}ranges(t){return bo.fromMany(t,this)}getDateParts(t){return tq(t,this)}getDateFromParts(t){return Rb(t,this.timezone)}getDateFromParams(t,n,a,r,s,o,l){return this.getDateFromParts({year:t,month:n,day:a,hours:r,minutes:s,seconds:o,milliseconds:l})}getPage(t){const n=this.pageCache.getOrSet(t,this);return MU(t,n)}getMonthParts(t,n){const{firstDayOfWeek:a}=this;return this.monthCache.getOrSet(t,n,a)}getThisMonthParts(){const t=new Date;return this.getMonthParts(t.getMonth()+1,t.getFullYear())}getPrevMonthParts(t,n){return t===1?this.getMonthParts(12,n-1):this.getMonthParts(t-1,n)}getNextMonthParts(t,n){return t===12?this.getMonthParts(1,n+1):this.getMonthParts(t+1,n)}getHourLabels(){return rq().map(t=>this.formatDate(t,this.masks.hours))}getDayId(t){return this.formatDate(t,"YYYY-MM-DD")}}var vo=(e=>(e.Any="any",e.All="all",e))(vo||{}),Bb=(e=>(e.Days="days",e.Weeks="weeks",e.Months="months",e.Years="years",e))(Bb||{}),Mb=(e=>(e.Days="days",e.Weekdays="weekdays",e.Weeks="weeks",e.Months="months",e.Years="years",e))(Mb||{}),Eb=(e=>(e.OrdinalWeekdays="ordinalWeekdays",e))(Eb||{});class AU{constructor(t,n,a){Oe(this,"validated",!0),this.type=t,this.interval=n,this.from=a,this.from||(console.error('A valid "from" date is required for date interval rule. This rule will be skipped.'),this.validated=!1)}passes(t){if(!this.validated)return!0;const{date:n}=t;switch(this.type){case"days":return Sf(this.from.date,n)%this.interval===0;case"weeks":return QU(this.from.date,n)%this.interval===0;case"months":return eq(this.from.date,n)%this.interval===0;case"years":return Fb(this.from.date,n)%this.interval===0;default:return!1}}}class _o{constructor(t,n,a,r){Oe(this,"components",[]),this.type=t,this.validator=a,this.getter=r,this.components=this.normalizeComponents(n)}static create(t,n){switch(t){case"days":return new NU(n);case"weekdays":return new zU(n);case"weeks":return new LU(n);case"months":return new PU(n);case"years":return new FU(n)}}normalizeComponents(t){if(this.validator(t))return[t];if(!ki(t))return[];const n=[];return t.forEach(a=>{if(!this.validator(a)){console.error(`Component value ${a} in invalid for "${this.type}" rule. This rule will be skipped.`);return}n.push(a)}),n}passes(t){return this.getter(t).some(r=>this.components.includes(r))}}class NU extends _o{constructor(t){super("days",t,WU,({day:n,dayFromEnd:a})=>[n,-a])}}class zU extends _o{constructor(t){super("weekdays",t,Cf,({weekday:n})=>[n])}}class LU extends _o{constructor(t){super("weeks",t,YU,({week:n,weekFromEnd:a})=>[n,-a])}}class PU extends _o{constructor(t){super("months",t,jU,({month:n})=>[n])}}class FU extends _o{constructor(t){super("years",t,Ui,({year:n})=>[n])}}class RU{constructor(t,n){Oe(this,"components"),this.type=t,this.components=this.normalizeComponents(n)}normalizeArrayConfig(t){const n=[];return t.forEach((a,r)=>{if(Ui(a)){if(r===0)return;if(!Ob(t[0])){console.error(`Ordinal range for "${this.type}" rule is from -5 to -1 or 1 to 5. This rule will be skipped.`);return}if(!Cf(a)){console.error(`Acceptable range for "${this.type}" rule is from 1 to 5. This rule will be skipped`);return}n.push([t[0],a])}else ki(a)&&n.push(...this.normalizeArrayConfig(a))}),n}normalizeComponents(t){const n=[];return t.forEach((a,r)=>{if(Ui(a)){if(r===0)return;if(!Ob(t[0])){console.error(`Ordinal range for "${this.type}" rule is from -5 to -1 or 1 to 5. This rule will be skipped.`);return}if(!Cf(a)){console.error(`Acceptable range for "${this.type}" rule is from 1 to 5. This rule will be skipped`);return}n.push([t[0],a])}else ki(a)&&n.push(...this.normalizeArrayConfig(a))}),n}passes(t){const{weekday:n,weekdayOrdinal:a,weekdayOrdinalFromEnd:r}=t;return this.components.some(([s,o])=>(s===a||s===-r)&&n===o)}}class HU{constructor(t){Oe(this,"type","function"),Oe(this,"validated",!0),this.fn=t,ss(t)||(console.error("The function rule requires a valid function. This rule will be skipped."),this.validated=!1)}passes(t){return this.validated?this.fn(t):!0}}class Pu{constructor(t,n={},a){Oe(this,"validated",!0),Oe(this,"config"),Oe(this,"type",vo.Any),Oe(this,"from"),Oe(this,"until"),Oe(this,"rules",[]),Oe(this,"locale",new Lu),this.parent=a,n.locale&&(this.locale=n.locale),this.config=t,ss(t)?(this.type=vo.All,this.rules=[new HU(t)]):ki(t)?(this.type=vo.Any,this.rules=t.map(r=>new Pu(r,n,this))):Va(t)?(this.type=vo.All,this.from=t.from?this.locale.getDateParts(t.from):a==null?void 0:a.from,this.until=t.until?this.locale.getDateParts(t.until):a==null?void 0:a.until,this.rules=this.getObjectRules(t)):(console.error("Rule group configuration must be an object or an array."),this.validated=!1)}getObjectRules(t){const n=[];if(t.every&&(ua(t.every)&&(t.every=[1,`${t.every}s`]),ki(t.every))){const[a=1,r=Bb.Days]=t.every;n.push(new AU(r,a,this.from))}return Object.values(Mb).forEach(a=>{a in t&&n.push(_o.create(a,t[a]))}),Object.values(Eb).forEach(a=>{a in t&&n.push(new RU(a,t[a]))}),t.on!=null&&(ki(t.on)||(t.on=[t.on]),n.push(new Pu(t.on,{locale:this.locale},this.parent))),n}passes(t){return this.validated?this.from&&t.dayIndex<=this.from.dayIndex||this.until&&t.dayIndex>=this.until.dayIndex?!1:this.type===vo.Any?this.rules.some(n=>n.passes(t)):this.rules.every(n=>n.passes(t)):!0}}function WU(e){return Ui(e)?e>=1&&e<=31:!1}function Cf(e){return Ui(e)?e>=1&&e<=7:!1}function YU(e){return Ui(e)?e>=-6&&e<=-1||e>=1&&e<=6:!1}function jU(e){return Ui(e)?e>=1&&e<=12:!1}function Ob(e){return!(!Ui(e)||e<-5||e>5||e===0)}const UU={dateTime:["year","month","day","hours","minutes","seconds","milliseconds"],date:["year","month","day"],time:["hours","minutes","seconds","milliseconds"]},Dn=7,qU=6,Db=1e3,Vb=Db*60,$b=Vb*60,Fu=$b*24,GU=[31,28,31,30,31,30,31,31,30,31,30,31],KU=["L","iso"],lc={milliseconds:[0,999,3],seconds:[0,59,2],minutes:[0,59,2],hours:[0,23,2]},Tb=/d{1,2}|W{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|Z{1,4}|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,ZU=/\[([^]*?)\]/gm,Ib={D(e){return e.day},DD(e){return St(e.day,2)},d(e){return e.weekday-1},dd(e){return St(e.weekday-1,2)},W(e,t){return t.dayNamesNarrow[e.weekday-1]},WW(e,t){return t.dayNamesShorter[e.weekday-1]},WWW(e,t){return t.dayNamesShort[e.weekday-1]},WWWW(e,t){return t.dayNames[e.weekday-1]},M(e){return e.month},MM(e){return St(e.month,2)},MMM(e,t){return t.monthNamesShort[e.month-1]},MMMM(e,t){return t.monthNames[e.month-1]},YY(e){return String(e.year).substr(2)},YYYY(e){return St(e.year,4)},h(e){return e.hours%12||12},hh(e){return St(e.hours%12||12,2)},H(e){return e.hours},HH(e){return St(e.hours,2)},m(e){return e.minutes},mm(e){return St(e.minutes,2)},s(e){return e.seconds},ss(e){return St(e.seconds,2)},S(e){return Math.round(e.milliseconds/100)},SS(e){return St(Math.round(e.milliseconds/10),2)},SSS(e){return St(e.milliseconds,3)},a(e,t){return e.hours<12?t.amPm[0]:t.amPm[1]},A(e,t){return e.hours<12?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase()},Z(){return"Z"},ZZ(e){const t=e.timezoneOffset;return`${t>0?"-":"+"}${St(Math.floor(Math.abs(t)/60),2)}`},ZZZ(e){const t=e.timezoneOffset;return`${t>0?"-":"+"}${St(Math.floor(Math.abs(t)/60)*100+Math.abs(t)%60,4)}`},ZZZZ(e){const t=e.timezoneOffset;return`${t>0?"-":"+"}${St(Math.floor(Math.abs(t)/60),2)}:${St(Math.abs(t)%60,2)}`}},vr=/\d\d?/,XU=/\d{3}/,JU=/\d{4}/,cc=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Ab=()=>{},Nb=e=>(t,n,a)=>{const r=a[e].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~r&&(t.month=r)},Ot={D:[vr,(e,t)=>{e.day=t}],Do:[new RegExp(vr.source+cc.source),(e,t)=>{e.day=parseInt(t,10)}],d:[vr,Ab],W:[cc,Ab],M:[vr,(e,t)=>{e.month=t-1}],MMM:[cc,Nb("monthNamesShort")],MMMM:[cc,Nb("monthNames")],YY:[vr,(e,t)=>{const a=+new Date().getFullYear().toString().substr(0,2);e.year=+`${t>68?a-1:a}${t}`}],YYYY:[JU,(e,t)=>{e.year=t}],S:[/\d/,(e,t)=>{e.milliseconds=t*100}],SS:[/\d{2}/,(e,t)=>{e.milliseconds=t*10}],SSS:[XU,(e,t)=>{e.milliseconds=t}],h:[vr,(e,t)=>{e.hours=t}],m:[vr,(e,t)=>{e.minutes=t}],s:[vr,(e,t)=>{e.seconds=t}],a:[cc,(e,t,n)=>{const a=t.toLowerCase();a===n.amPm[0]?e.isPm=!1:a===n.amPm[1]&&(e.isPm=!0)}],Z:[/[^\s]*?[+-]\d\d:?\d\d|[^\s]*?Z?/,(e,t)=>{t==="Z"&&(t="+00:00");const n=`${t}`.match(/([+-]|\d\d)/gi);if(n){const a=+n[1]*60+parseInt(n[2],10);e.timezoneOffset=n[0]==="+"?a:-a}}]};Ot.DD=Ot.D,Ot.dd=Ot.d,Ot.WWWW=Ot.WWW=Ot.WW=Ot.W,Ot.MM=Ot.M,Ot.mm=Ot.m,Ot.hh=Ot.H=Ot.HH=Ot.h,Ot.ss=Ot.s,Ot.A=Ot.a,Ot.ZZZZ=Ot.ZZZ=Ot.ZZ=Ot.Z;function zb(e,t){return($a(e)&&e||[ua(e)&&e||"YYYY-MM-DD"]).map(n=>KU.reduce((a,r)=>a.replace(r,t.masks[r]||""),n))}function xf(e){return Va(e)&&"year"in e&&"month"in e&&"day"in e}function Lb(e,t=1){const n=e.getDay()+1,a=n>=t?t-n:-(7-(t-n));return Ln(e,a)}function Pb(e,t,n){const a=Date.UTC(e,t-1,n);return Sf(new Date(0),new Date(a))}function Sf(e,t){return Math.round((t.getTime()-e.getTime())/Fu)}function QU(e,t){return Math.ceil(Sf(Lb(e),Lb(t))/7)}function Fb(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}function eq(e,t){return Fb(e,t)*12+(t.getMonth()-e.getMonth())}function Rb(e,t=""){const n=new Date,{year:a=n.getFullYear(),month:r=n.getMonth()+1,day:s=n.getDate(),hours:o=0,minutes:l=0,seconds:d=0,milliseconds:h=0}=e;if(t){const f=`${St(a,4)}-${St(r,2)}-${St(s,2)}T${St(o,2)}:${St(l,2)}:${St(d,2)}.${St(h,3)}`;return Zj(f,{timeZone:t})}return new Date(a,r-1,s,o,l,d,h)}function tq(e,t){let n=new Date(e.getTime());t.timezone&&(n=new Date(e.toLocaleString("en-US",{timeZone:t.timezone})),n.setMilliseconds(e.getMilliseconds()));const a=n.getMilliseconds(),r=n.getSeconds(),s=n.getMinutes(),o=n.getHours(),l=a+r*Db+s*Vb+o*$b,d=n.getMonth()+1,h=n.getFullYear(),f=t.getMonthParts(d,h),m=n.getDate(),y=f.numDays-m+1,g=n.getDay()+1,v=Math.floor((m-1)/7+1),_=Math.floor((f.numDays-m)/7+1),k=Math.ceil((m+Math.abs(f.firstWeekday-f.firstDayOfWeek))/7),x=f.numWeeks-k+1,M=f.weeknumbers[k],B=Pb(h,d,m);return{milliseconds:a,seconds:r,minutes:s,hours:o,time:l,day:m,dayFromEnd:y,weekday:g,weekdayOrdinal:v,weekdayOrdinalFromEnd:_,week:k,weekFromEnd:x,weeknumber:M,month:d,year:h,date:n,dateTime:n.getTime(),dayIndex:B,timezoneOffset:0,isValid:!0}}function nq(e,t,n){return`${t}-${e}-${n}`}function iq(e,t,n){const a=t%4===0&&t%100!==0||t%400===0,r=new Date(t,e-1,1),s=r.getDay()+1,o=e===2&&a?29:GU[e-1],l=n-1,d=cU(r,{weekStartsOn:l}),h=[],f=[];for(let m=0;m<d;m++){const y=Ln(r,m*7);h.push(fU(y,{weekStartsOn:l})),f.push(yU(y))}return{firstDayOfWeek:n,firstDayOfMonth:r,inLeapYear:a,firstWeekday:s,numDays:o,numWeeks:d,month:e,year:t,weeknumbers:h,isoWeeknumbers:f}}function aq(){const e=[];for(let r=0;r<Dn;r++)e.push(Rb({year:2020,month:1,day:5+r,hours:12}));return e}function Bf(e,t=void 0){const n=new Intl.DateTimeFormat(t,{weekday:e});return aq().map(a=>n.format(a))}function rq(){const e=[];for(let t=0;t<=24;t++)e.push(new Date(2e3,0,1,t));return e}function sq(e=void 0){const t=["second","minute","hour","day","week","month","quarter","year"],n=new Intl.RelativeTimeFormat(e);return t.reduce((a,r)=>{const s=n.formatToParts(100,r);return a[r]=s[1].unit,a},{})}function Hb(){const e=[];for(let t=0;t<12;t++)e.push(new Date(2e3,t,15));return e}function Wb(e,t=void 0){const n=new Intl.DateTimeFormat(t,{month:e,timeZone:"UTC"});return Hb().map(a=>n.format(a))}function oq(e,t,n){return Ui(t)?t===e:ki(t)?t.includes(e):ss(t)?t(e,n):!(t.min!=null&&t.min>e||t.max!=null&&t.max<e||t.interval!=null&&e%t.interval!==0)}function dc(e,t,n){const a=[],[r,s,o]=t;for(let l=r;l<=s;l++)(n==null||oq(l,n,e))&&a.push({value:l,label:St(l,o)});return a}function lq(e,t){return{milliseconds:dc(e,lc.milliseconds,t.milliseconds),seconds:dc(e,lc.seconds,t.seconds),minutes:dc(e,lc.minutes,t.minutes),hours:dc(e,lc.hours,t.hours)}}function cq(e,t,n,a){const s=dc(e,t,a).reduce((o,l)=>{if(l.disabled)return o;if(isNaN(o))return l.value;const d=Math.abs(o-n);return Math.abs(l.value-n)<d?l.value:o},NaN);return isNaN(s)?n:s}function dq(e,t){const n={...e};return Object.entries(t).forEach(([a,r])=>{const s=lc[a],o=e[a];n[a]=cq(e,s,o,r)}),n}function Yb(e,t,n){return zb(t,n).map(r=>{if(typeof r!="string")throw new Error("Invalid mask");let s=e;if(s.length>1e3)return!1;let o=!0;const l={};if(r.replace(Tb,f=>{if(Ot[f]){const m=Ot[f],y=s.search(m[0]);~y?s.replace(m[0],g=>(m[1](l,g,n),s=s.substr(y+g.length),g)):o=!1}return Ot[f]?"":f.slice(1,f.length-1)}),!o)return!1;const d=new Date;l.hours!=null&&(l.isPm===!0&&+l.hours!=12?l.hours=+l.hours+12:l.isPm===!1&&+l.hours==12&&(l.hours=0));let h;return l.timezoneOffset!=null?(l.minutes=+(l.minutes||0)-+l.timezoneOffset,h=new Date(Date.UTC(l.year||d.getFullYear(),l.month||0,l.day||1,l.hours||0,l.minutes||0,l.seconds||0,l.milliseconds||0))):h=n.getDateFromParts({year:l.year||d.getFullYear(),month:(l.month||0)+1,day:l.day||1,hours:l.hours||0,minutes:l.minutes||0,seconds:l.seconds||0,milliseconds:l.milliseconds||0}),h}).find(r=>r)||new Date(e)}function uq(e,t,n){if(e==null)return"";let a=zb(t,n)[0];/Z$/.test(a)&&(n.timezone="utc");const r=[];a=a.replace(ZU,(o,l)=>(r.push(l),"??"));const s=n.getDateParts(e);return a=a.replace(Tb,o=>o in Ib?Ib[o](s,n):o.slice(1,o.length-1)),a.replace(/\?\?/g,()=>r.shift())}let hq=0;class jb{constructor(t,n,a){Oe(this,"key",""),Oe(this,"hashcode",""),Oe(this,"highlight",null),Oe(this,"content",null),Oe(this,"dot",null),Oe(this,"bar",null),Oe(this,"event",null),Oe(this,"popover",null),Oe(this,"customData",null),Oe(this,"ranges"),Oe(this,"hasRanges",!1),Oe(this,"order",0),Oe(this,"pinPage",!1),Oe(this,"maxRepeatSpan",0),Oe(this,"locale");const{dates:r}=Object.assign(this,{hashcode:"",order:0,pinPage:!1},t);this.key||(this.key=++hq),this.locale=a,n.normalizeGlyphs(this),this.ranges=a.ranges(r??[]),this.hasRanges=!!$a(this.ranges),this.maxRepeatSpan=this.ranges.filter(s=>s.hasRepeat).map(s=>s.daySpan).reduce((s,o)=>Math.max(s,o),0)}intersectsRange({start:t,end:n}){if(t==null||n==null)return!1;const a=this.ranges.filter(o=>!o.hasRepeat);for(const o of a)if(o.intersectsDayRange(t.dayIndex,n.dayIndex))return!0;const r=this.ranges.filter(o=>o.hasRepeat);if(!r.length)return!1;let s=t;for(this.maxRepeatSpan>1&&(s=this.locale.getDateParts(Ln(s.date,-this.maxRepeatSpan)));s.dayIndex<=n.dayIndex;){for(const o of r)if(o.startsOnDay(s))return!0;s=this.locale.getDateParts(Ln(s.date,1))}return!1}}function Mf(e){document&&document.dispatchEvent(new CustomEvent("show-popover",{detail:e}))}function uc(e){document&&document.dispatchEvent(new CustomEvent("hide-popover",{detail:e}))}function Ub(e){document&&document.dispatchEvent(new CustomEvent("toggle-popover",{detail:e}))}function qb(e){const{visibility:t}=e,n=t==="click",a=t==="hover",r=t==="hover-focus",s=t==="focus";e.autoHide=!n;let o=!1,l=!1;const d=v=>{n&&(Ub({...e,target:e.target||v.currentTarget}),v.stopPropagation())},h=v=>{o||(o=!0,(a||r)&&Mf({...e,target:e.target||v.currentTarget}))},f=()=>{o&&(o=!1,(a||r&&!l)&&uc(e))},m=v=>{l||(l=!0,(s||r)&&Mf({...e,target:e.target||v.currentTarget}))},y=v=>{l&&!Du(v.currentTarget,v.relatedTarget)&&(l=!1,(s||r&&!o)&&uc(e))},g={};switch(e.visibility){case"click":g.click=d;break;case"hover":g.mousemove=h,g.mouseleave=f;break;case"focus":g.focusin=m,g.focusout=y;break;case"hover-focus":g.mousemove=h,g.mouseleave=f,g.focusin=m,g.focusout=y;break}return g}const Gb=e=>{const t=Ou(e);if(t==null)return;const n=t.popoverHandlers;!n||!n.length||(n.forEach(a=>a()),delete t.popoverHandlers)},Kb=(e,t)=>{const n=Ou(e);if(n==null)return;const a=[],r=qb(t);Object.entries(r).forEach(([s,o])=>{a.push(yr(n,s,o))}),n.popoverHandlers=a},Zb={mounted(e,t){const{value:n}=t;n&&Kb(e,n)},updated(e,t){const{oldValue:n,value:a}=t,r=n==null?void 0:n.visibility,s=a==null?void 0:a.visibility;r!==s&&(r&&(Gb(e),s||uc(n)),s&&Kb(e,a))},unmounted(e){Gb(e)}},fq=(e,t,{maxSwipeTime:n,minHorizontalSwipeDistance:a,maxVerticalSwipeDistance:r})=>{if(!e||!e.addEventListener||!ss(t))return null;let s=0,o=0,l=null,d=!1;function h(m){const y=m.changedTouches[0];s=y.screenX,o=y.screenY,l=new Date().getTime(),d=!0}function f(m){if(!d||!l)return;d=!1;const y=m.changedTouches[0],g=y.screenX-s,v=y.screenY-o;if(new Date().getTime()-l<n&&Math.abs(g)>=a&&Math.abs(v)<=r){const k={toLeft:!1,toRight:!1};g<0?k.toLeft=!0:k.toRight=!0,t(k)}}return yr(e,"touchstart",h,{passive:!0}),yr(e,"touchend",f,{passive:!0}),()=>{gr(e,"touchstart",h),gr(e,"touchend",f)}},Ru={},pq=(e,t=10)=>{Ru[e]=Date.now()+t},mq=(e,t)=>{if(e in Ru){const n=Ru[e];if(Date.now()<n)return;delete Ru[e]}t()};function Xb(){return typeof window<"u"}function gq(e){return Xb()&&e in window}function yq(e){const t=i.ref(!1),n=i.computed(()=>t.value?"dark":"light");let a,r;function s(g){t.value=g.matches}function o(){gq("matchMedia")&&(a=window.matchMedia("(prefers-color-scheme: dark)"),a.addEventListener("change",s),t.value=a.matches)}function l(){const{selector:g=":root",darkClass:v="dark"}=e.value,_=document.querySelector(g);t.value=_.classList.contains(v)}function d(g){const{selector:v=":root",darkClass:_="dark"}=g;if(Xb()&&v&&_){const k=document.querySelector(v);k&&(r=new MutationObserver(l),r.observe(k,{attributes:!0,attributeFilter:["class"]}),t.value=k.classList.contains(_))}}function h(){m();const g=typeof e.value;g==="string"&&e.value.toLowerCase()==="system"?o():g==="object"?d(e.value):t.value=!!e.value}const f=i.watch(()=>e.value,()=>h(),{immediate:!0});function m(){a&&(a.removeEventListener("change",s),a=void 0),r&&(r.disconnect(),r=void 0)}function y(){m(),f()}return i.onUnmounted(()=>y()),{isDark:t,displayMode:n,cleanup:y}}const bq=["base","start","end","startEnd"],vq=["class","wrapperClass","contentClass","style","contentStyle","color","fillMode"],_q={base:{},start:{},end:{}};function Ef(e,t,n=_q){let a=e,r={};t===!0||ua(t)?(a=ua(t)?t:a,r={...n}):Va(t)&&(ob(t,bq)?r={...t}:r={base:{...t},start:{...t},end:{...t}});const s=oc(r,{start:r.startEnd,end:r.startEnd},n);return Object.entries(s).forEach(([o,l])=>{let d=a;l===!0||ua(l)?(d=ua(l)?l:d,s[o]={color:d}):Va(l)&&(ob(l,vq)?s[o]={...l}:s[o]={}),oc(s[o],{color:d})}),s}class wq{constructor(){Oe(this,"type","highlight")}normalizeConfig(t,n){return Ef(t,n,{base:{fillMode:"light"},start:{fillMode:"solid"},end:{fillMode:"solid"}})}prepareRender(t){t.highlights=[],t.content||(t.content=[])}render({data:t,onStart:n,onEnd:a},r){const{key:s,highlight:o}=t;if(!o)return;const{highlights:l}=r,{base:d,start:h,end:f}=o;n&&a?l.push({...h,key:s,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${h.color}`,class:[`vc-highlight vc-highlight-bg-${h.fillMode}`,h.class],contentClass:[`vc-attr vc-highlight-content-${h.fillMode} vc-${h.color}`,h.contentClass]}):n?(l.push({...d,key:`${s}-base`,wrapperClass:`vc-day-layer vc-day-box-right-center vc-attr vc-${d.color}`,class:[`vc-highlight vc-highlight-base-start vc-highlight-bg-${d.fillMode}`,d.class]}),l.push({...h,key:s,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${h.color}`,class:[`vc-highlight vc-highlight-bg-${h.fillMode}`,h.class],contentClass:[`vc-attr vc-highlight-content-${h.fillMode} vc-${h.color}`,h.contentClass]})):a?(l.push({...d,key:`${s}-base`,wrapperClass:`vc-day-layer vc-day-box-left-center vc-attr vc-${d.color}`,class:[`vc-highlight vc-highlight-base-end vc-highlight-bg-${d.fillMode}`,d.class]}),l.push({...f,key:s,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${f.color}`,class:[`vc-highlight vc-highlight-bg-${f.fillMode}`,f.class],contentClass:[`vc-attr vc-highlight-content-${f.fillMode} vc-${f.color}`,f.contentClass]})):l.push({...d,key:`${s}-middle`,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${d.color}`,class:[`vc-highlight vc-highlight-base-middle vc-highlight-bg-${d.fillMode}`,d.class],contentClass:[`vc-attr vc-highlight-content-${d.fillMode} vc-${d.color}`,d.contentClass]})}}class Of{constructor(t,n){Oe(this,"type",""),Oe(this,"collectionType",""),this.type=t,this.collectionType=n}normalizeConfig(t,n){return Ef(t,n)}prepareRender(t){t[this.collectionType]=[]}render({data:t,onStart:n,onEnd:a},r){const{key:s}=t,o=t[this.type];if(!s||!o)return;const l=r[this.collectionType],{base:d,start:h,end:f}=o;n?l.push({...h,key:s,class:[`vc-${this.type} vc-${this.type}-start vc-${h.color} vc-attr`,h.class]}):a?l.push({...f,key:s,class:[`vc-${this.type} vc-${this.type}-end vc-${f.color} vc-attr`,f.class]}):l.push({...d,key:s,class:[`vc-${this.type} vc-${this.type}-base vc-${d.color} vc-attr`,d.class]})}}class kq extends Of{constructor(){super("content","content")}normalizeConfig(t,n){return Ef("base",n)}}class Cq extends Of{constructor(){super("dot","dots")}}class xq extends Of{constructor(){super("bar","bars")}}class Sq{constructor(t){Oe(this,"color"),Oe(this,"renderers",[new kq,new wq,new Cq,new xq]),this.color=t}normalizeGlyphs(t){this.renderers.forEach(n=>{const a=n.type;t[a]!=null&&(t[a]=n.normalizeConfig(this.color,t[a]))})}prepareRender(t={}){return this.renderers.forEach(n=>{n.prepareRender(t)}),t}render(t,n){this.renderers.forEach(a=>{a.render(t,n)})}}const Jb=Symbol("__vc_base_context__"),Qb={color:{type:String,default:()=>br("color")},isDark:{type:[Boolean,String,Object],default:()=>br("isDark")},firstDayOfWeek:Number,masks:Object,locale:[String,Object],timezone:String,minDate:null,maxDate:null,disabledDates:null};function e6(e){const t=i.computed(()=>e.color??""),n=i.computed(()=>e.isDark??!1),{displayMode:a}=yq(n),r=i.computed(()=>new Sq(t.value)),s=i.computed(()=>{if(e.locale instanceof Lu)return e.locale;const y=Va(e.locale)?e.locale:{id:e.locale,firstDayOfWeek:e.firstDayOfWeek,masks:e.masks};return new Lu(y,e.timezone)}),o=i.computed(()=>s.value.masks),l=i.computed(()=>e.minDate),d=i.computed(()=>e.maxDate),h=i.computed(()=>{const y=e.disabledDates?[...e.disabledDates]:[];return l.value!=null&&y.push({start:null,end:Ln(s.value.toDate(l.value),-1)}),d.value!=null&&y.push({start:Ln(s.value.toDate(d.value),1),end:null}),s.value.ranges(y)}),f=i.computed(()=>new jb({key:"disabled",dates:h.value,order:100},r.value,s.value)),m={color:t,isDark:n,displayMode:a,theme:r,locale:s,masks:o,minDate:l,maxDate:d,disabledDates:h,disabledAttribute:f};return i.provide(Jb,m),m}function Bq(e){return i.inject(Jb,()=>e6(e),!0)}function t6(e){return`__vc_slot_${e}__`}function n6(e,t={}){Object.keys(e).forEach(n=>{i.provide(t6(t[n]??n),e[n])})}function i6(e){return i.inject(t6(e),null)}const Mq={...Qb,view:{type:String,default:"monthly",validator(e){return["daily","weekly","monthly"].includes(e)}},rows:{type:Number,default:1},columns:{type:Number,default:1},step:Number,titlePosition:{type:String,default:()=>br("titlePosition")},navVisibility:{type:String,default:()=>br("navVisibility")},showWeeknumbers:[Boolean,String],showIsoWeeknumbers:[Boolean,String],expanded:Boolean,borderless:Boolean,transparent:Boolean,initialPage:Object,initialPagePosition:{type:Number,default:1},minPage:Object,maxPage:Object,transition:String,attributes:Array,trimWeeks:Boolean,disablePageSwipe:Boolean},Eq=["dayclick","daymouseenter","daymouseleave","dayfocusin","dayfocusout","daykeydown","weeknumberclick","transition-start","transition-end","did-move","update:view","update:pages"],a6=Symbol("__vc_calendar_context__");function Oq(e,{slots:t,emit:n}){const a=i.ref(null),r=i.ref(null),s=i.ref(new Date().getDate()),o=i.ref(!1),l=i.ref(Symbol()),d=i.ref(Symbol()),h=i.ref(e.view),f=i.ref([]),m=i.ref("");let y=null,g=null;n6(t);const{theme:v,color:_,displayMode:k,locale:x,masks:M,minDate:B,maxDate:C,disabledAttribute:V,disabledDates:$}=Bq(e),N=i.computed(()=>e.rows*e.columns),I=i.computed(()=>e.step||N.value),F=i.computed(()=>rb(f.value)??null),q=i.computed(()=>mo(f.value)??null),Q=i.computed(()=>e.minPage||(B.value?ue(B.value):null)),P=i.computed(()=>e.maxPage||(C.value?ue(C.value):null)),Z=i.computed(()=>e.navVisibility),se=i.computed(()=>!!e.showWeeknumbers),U=i.computed(()=>!!e.showIsoWeeknumbers),me=i.computed(()=>h.value==="monthly"),be=i.computed(()=>h.value==="weekly"),G=i.computed(()=>h.value==="daily"),ye=()=>{o.value=!0,n("transition-start")},Y=()=>{o.value=!1,n("transition-end"),y&&(y.resolve(!0),y=null)},ee=(R,T,K=h.value)=>Cb(R,T,K,x.value),ue=R=>kb(R,h.value,x.value),de=R=>{!V.value||!ut.value||(R.isDisabled=ut.value.cellExists(V.value.key,R.dayIndex))},_e=R=>{R.isFocusable=R.inMonth&&R.day===s.value},ge=(R,T)=>{for(const K of R)for(const le of K.days)if(T(le)===!1)return},De=i.computed(()=>f.value.reduce((R,T)=>(R.push(...T.viewDays),R),[])),Ye=i.computed(()=>{const R=[];return(e.attributes||[]).forEach((T,K)=>{!T||!T.dates||R.push(new jb({...T,order:T.order||0},v.value,x.value))}),V.value&&R.push(V.value),R}),Ne=i.computed(()=>$a(Ye.value)),ut=i.computed(()=>{const R=new EU;return Ye.value.forEach(T=>{T.ranges.forEach(K=>{R.render(T,K,De.value)})}),R}),_t=i.computed(()=>De.value.reduce((R,T)=>(R[T.dayIndex]={day:T,cells:[]},R[T.dayIndex].cells.push(...ut.value.getCells(T)),R),{})),ft=(R,T)=>{const K=e.showWeeknumbers||e.showIsoWeeknumbers;return K==null?"":JH(K)?K?"left":"":K.startsWith("right")?T>1?"right":K:R>1?"left":K},it=()=>{var R,T;if(!Ne.value)return null;const K=Ye.value.find(et=>et.pinPage)||Ye.value[0];if(!K||!K.hasRanges)return null;const[le]=K.ranges,Me=((R=le.start)==null?void 0:R.date)||((T=le.end)==null?void 0:T.date);return Me?ue(Me):null},Ze=()=>{if(ha(F.value))return F.value;const R=it();return ha(R)?R:ue(new Date)},Qe=(R,T={})=>{const{view:K=h.value,position:le=1,force:Me}=T,et=le>0?1-le:-(N.value+le);let mt=ee(R,et,K),Tt=ee(mt,N.value-1,K);return Me||(wf(mt,Q.value)?mt=Q.value:zu(Tt,P.value)&&(mt=ee(P.value,1-N.value)),Tt=ee(mt,N.value-1)),{fromPage:mt,toPage:Tt}},Dt=(R,T,K="")=>{if(K==="none"||K==="fade")return K;if((R==null?void 0:R.view)!==(T==null?void 0:T.view))return"fade";const le=zu(T,R),Me=wf(T,R);return!le&&!Me?"fade":K==="slide-v"?Me?"slide-down":"slide-up":Me?"slide-right":"slide-left"},lt=(R={})=>new Promise((T,K)=>{const{position:le=1,force:Me=!1,transition:et}=R,mt=ha(R.page)?R.page:Ze(),{fromPage:Tt}=Qe(mt,{position:le,force:Me}),ln=[];for(let Jt=0;Jt<N.value;Jt++){const Kn=ee(Tt,Jt),wt=Jt+1,Pn=Math.ceil(wt/e.columns),Vn=e.rows-Pn+1,oi=wt%e.columns||e.columns,qi=e.columns-oi+1,Na=ft(oi,qi);ln.push(x.value.getPage({...Kn,view:h.value,titlePosition:e.titlePosition,trimWeeks:e.trimWeeks,position:wt,row:Pn,rowFromEnd:Vn,column:oi,columnFromEnd:qi,showWeeknumbers:se.value,showIsoWeeknumbers:U.value,weeknumberPosition:Na}))}m.value=Dt(f.value[0],ln[0],et),f.value=ln,m.value&&m.value!=="none"?y={resolve:T,reject:K}:T(!0)}),ae=R=>{const T=F.value??ue(new Date);return ee(T,R)},xe=(R,T={})=>{const K=ha(R)?R:ue(R);return Object.assign(T,Qe(K,{...T,force:!0})),SU(T.fromPage,T.toPage,h.value,x.value).map(Me=>CU(Me,Q.value,P.value)).some(Me=>Me)},Ve=(R,T={})=>xe(ae(R),T),ze=i.computed(()=>Ve(-I.value)),Fe=i.computed(()=>Ve(I.value)),pt=async(R,T={})=>!T.force&&!xe(R,T)?!1:(T.fromPage&&!xU(T.fromPage,F.value)&&(uc({id:l.value,hideDelay:0}),T.view&&(pq("view",10),h.value=T.view),await lt({...T,page:T.fromPage,position:1,force:!0}),n("did-move",f.value)),!0),Bt=(R,T={})=>pt(ae(R),T),Vt=()=>Bt(-I.value),Mt=()=>Bt(I.value),nn=R=>{const T=me.value?".in-month":"",K=`.id-${x.value.getDayId(R)}${T}`,le=`${K}.vc-focusable, ${K} .vc-focusable`,Me=a.value;if(Me){const et=Me.querySelector(le);if(et)return et.focus(),!0}return!1},$t=async(R,T={})=>nn(R)?!0:(await pt(R,T),nn(R)),he=(R,T)=>{s.value=R.day,n("dayclick",R,T)},Le=(R,T)=>{n("daymouseenter",R,T)},Ge=(R,T)=>{n("daymouseleave",R,T)},on=(R,T)=>{s.value=R.day,r.value=R,R.isFocused=!0,n("dayfocusin",R,T)},mn=(R,T)=>{r.value=null,R.isFocused=!1,n("dayfocusout",R,T)},_n=(R,T)=>{n("daykeydown",R,T);const K=R.noonDate;let le=null;switch(T.key){case"ArrowLeft":{le=Ln(K,-1);break}case"ArrowRight":{le=Ln(K,1);break}case"ArrowUp":{le=Ln(K,-7);break}case"ArrowDown":{le=Ln(K,7);break}case"Home":{le=Ln(K,-R.weekdayPosition+1);break}case"End":{le=Ln(K,R.weekdayPositionFromEnd);break}case"PageUp":{T.altKey?le=wb(K,-1):le=Nu(K,-1);break}case"PageDown":{T.altKey?le=wb(K,1):le=Nu(K,1);break}}le&&(T.preventDefault(),$t(le).catch())},J=R=>{const T=r.value;T!=null&&_n(T,R)},j=(R,T)=>{n("weeknumberclick",R,T)};lt({page:e.initialPage,position:e.initialPagePosition}),i.onMounted(()=>{!e.disablePageSwipe&&a.value&&(g=fq(a.value,({toLeft:R=!1,toRight:T=!1})=>{R?Mt():T&&Vt()},br("touch")))}),i.onUnmounted(()=>{f.value=[],g&&g()}),i.watch(()=>x.value,()=>{lt()}),i.watch(()=>N.value,()=>lt()),i.watch(()=>e.view,()=>h.value=e.view),i.watch(()=>h.value,()=>{mq("view",()=>{lt()}),n("update:view",h.value)}),i.watch(()=>s.value,()=>{ge(f.value,R=>_e(R))}),i.watchEffect(()=>{n("update:pages",f.value),ge(f.value,R=>{de(R),_e(R)})});const pe={emit:n,containerRef:a,focusedDay:r,inTransition:o,navPopoverId:l,dayPopoverId:d,view:h,pages:f,transitionName:m,theme:v,color:_,displayMode:k,locale:x,masks:M,attributes:Ye,disabledAttribute:V,disabledDates:$,attributeContext:ut,days:De,dayCells:_t,count:N,step:I,firstPage:F,lastPage:q,canMovePrev:ze,canMoveNext:Fe,minPage:Q,maxPage:P,isMonthly:me,isWeekly:be,isDaily:G,navVisibility:Z,showWeeknumbers:se,showIsoWeeknumbers:U,getDateAddress:ue,canMove:xe,canMoveBy:Ve,move:pt,moveBy:Bt,movePrev:Vt,moveNext:Mt,onTransitionBeforeEnter:ye,onTransitionAfterEnter:Y,tryFocusDate:nn,focusDate:$t,onKeydown:J,onDayKeydown:_n,onDayClick:he,onDayMouseenter:Le,onDayMouseleave:Ge,onDayFocusin:on,onDayFocusout:mn,onWeeknumberClick:j};return i.provide(a6,pe),pe}function us(){const e=i.inject(a6);if(e)return e;throw new Error("Calendar context missing. Please verify this component is nested within a valid context provider.")}const Dq=i.defineComponent({inheritAttrs:!1,emits:["before-show","after-show","before-hide","after-hide"],props:{id:{type:[Number,String,Symbol],required:!0},showDelay:{type:Number,default:0},hideDelay:{type:Number,default:110},boundarySelector:{type:String}},setup(e,{emit:t}){let n;const a=i.ref();let r=null,s=null;const o=i.reactive({isVisible:!1,target:null,data:null,transition:"slide-fade",placement:"bottom",direction:"",positionFixed:!1,modifiers:[],isInteractive:!0,visibility:"click",isHovered:!1,isFocused:!1,autoHide:!1,force:!1});function l(Y){Y&&(o.direction=Y.split("-")[0])}function d({placement:Y,options:ee}){l(Y||(ee==null?void 0:ee.placement))}const h=i.computed(()=>({placement:o.placement,strategy:o.positionFixed?"fixed":"absolute",boundary:"",modifiers:[{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:d},...o.modifiers||[]],onFirstUpdate:d})),f=i.computed(()=>{const Y=o.direction==="left"||o.direction==="right";let ee="";if(o.placement){const ue=o.placement.split("-");ue.length>1&&(ee=ue[1])}return["start","top","left"].includes(ee)?Y?"top":"left":["end","bottom","right"].includes(ee)?Y?"bottom":"right":Y?"middle":"center"});function m(){s&&(s.destroy(),s=null)}function y(){i.nextTick(()=>{const Y=Ou(o.target);!Y||!a.value||(s&&s.state.elements.reference!==Y&&m(),s?s.update():s=cl(Y,a.value,h.value))})}function g(Y){Object.assign(o,lb(Y,"force"))}function v(Y,ee){clearTimeout(n),Y>0?n=setTimeout(ee,Y):ee()}function _(Y){return!Y||!s?!1:Ou(Y)===s.state.elements.reference}async function k(Y={}){o.force||(Y.force&&(o.force=!0),v(Y.showDelay??e.showDelay,()=>{o.isVisible&&(o.force=!1),g({...Y,isVisible:!0}),y()}))}function x(Y={}){s&&(Y.target&&!_(Y.target)||o.force||(Y.force&&(o.force=!0),v(Y.hideDelay??e.hideDelay,()=>{o.isVisible||(o.force=!1),o.isVisible=!1})))}function M(Y={}){Y.target!=null&&(o.isVisible&&_(Y.target)?x(Y):k(Y))}function B(Y){if(!s)return;const ee=s.state.elements.reference;if(!a.value||!ee)return;const ue=Y.target;Du(a.value,ue)||Du(ee,ue)||x({force:!0})}function C(Y){(Y.key==="Esc"||Y.key==="Escape")&&x()}function V({detail:Y}){!Y.id||Y.id!==e.id||k(Y)}function $({detail:Y}){!Y.id||Y.id!==e.id||x(Y)}function N({detail:Y}){!Y.id||Y.id!==e.id||M(Y)}function I(){yr(document,"keydown",C),yr(document,"click",B),yr(document,"show-popover",V),yr(document,"hide-popover",$),yr(document,"toggle-popover",N)}function F(){gr(document,"keydown",C),gr(document,"click",B),gr(document,"show-popover",V),gr(document,"hide-popover",$),gr(document,"toggle-popover",N)}function q(Y){t("before-show",Y)}function Q(Y){o.force=!1,t("after-show",Y)}function P(Y){t("before-hide",Y)}function Z(Y){o.force=!1,m(),t("after-hide",Y)}function se(Y){Y.stopPropagation()}function U(){o.isHovered=!0,o.isInteractive&&["hover","hover-focus"].includes(o.visibility)&&k()}function me(){if(o.isHovered=!1,!s)return;const Y=s.state.elements.reference;o.autoHide&&!o.isFocused&&(!Y||Y!==document.activeElement)&&["hover","hover-focus"].includes(o.visibility)&&x()}function be(){o.isFocused=!0,o.isInteractive&&["focus","hover-focus"].includes(o.visibility)&&k()}function G(Y){["focus","hover-focus"].includes(o.visibility)&&(!Y.relatedTarget||!Du(a.value,Y.relatedTarget))&&(o.isFocused=!1,!o.isHovered&&o.autoHide&&x())}function ye(){r!=null&&(r.disconnect(),r=null)}return i.watch(()=>a.value,Y=>{ye(),Y&&(r=new ResizeObserver(()=>{s&&s.update()}),r.observe(Y))}),i.watch(()=>o.placement,l,{immediate:!0}),i.onMounted(()=>{I()}),i.onUnmounted(()=>{m(),ye(),F()}),{...i.toRefs(o),popoverRef:a,alignment:f,hide:x,setupPopper:y,beforeEnter:q,afterEnter:Q,beforeLeave:P,afterLeave:Z,onClick:se,onMouseOver:U,onMouseLeave:me,onFocusIn:be,onFocusOut:G}}}),_r=(e,t)=>{const n=e.__vccOpts||e;for(const[a,r]of t)n[a]=r;return n};function Vq(e,t,n,a,r,s){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["vc-popover-content-wrapper",{"is-interactive":e.isInteractive}]),ref:"popoverRef",onClick:t[0]||(t[0]=(...o)=>e.onClick&&e.onClick(...o)),onMouseover:t[1]||(t[1]=(...o)=>e.onMouseOver&&e.onMouseOver(...o)),onMouseleave:t[2]||(t[2]=(...o)=>e.onMouseLeave&&e.onMouseLeave(...o)),onFocusin:t[3]||(t[3]=(...o)=>e.onFocusIn&&e.onFocusIn(...o)),onFocusout:t[4]||(t[4]=(...o)=>e.onFocusOut&&e.onFocusOut(...o))},[i.createVNode(i.Transition,{name:`vc-${e.transition}`,appear:"",onBeforeEnter:e.beforeEnter,onAfterEnter:e.afterEnter,onBeforeLeave:e.beforeLeave,onAfterLeave:e.afterLeave},{default:i.withCtx(()=>[e.isVisible?(i.openBlock(),i.createElementBlock("div",i.mergeProps({key:0,tabindex:"-1",class:`vc-popover-content direction-${e.direction}`},e.$attrs),[i.renderSlot(e.$slots,"default",{direction:e.direction,alignment:e.alignment,data:e.data,hide:e.hide},()=>[i.createTextVNode(i.toDisplayString(e.data),1)]),i.createElementVNode("span",{class:i.normalizeClass(["vc-popover-caret",`direction-${e.direction}`,`align-${e.alignment}`])},null,2)],16)):i.createCommentVNode("",!0)]),_:3},8,["name","onBeforeEnter","onAfterEnter","onBeforeLeave","onAfterLeave"])],34)}const Df=_r(Dq,[["render",Vq]]),$q={class:"vc-day-popover-row"},Tq={key:0,class:"vc-day-popover-row-indicator"},Iq={class:"vc-day-popover-row-label"},Aq=i.defineComponent({__name:"PopoverRow",props:{attribute:null},setup(e){const t=e,n=i.computed(()=>{const{content:a,highlight:r,dot:s,bar:o,popover:l}=t.attribute;return l&&l.hideIndicator?null:a?{class:`vc-bar vc-day-popover-row-bar vc-attr vc-${a.base.color}`}:r?{class:`vc-highlight-bg-solid vc-day-popover-row-highlight vc-attr vc-${r.base.color}`}:s?{class:`vc-dot vc-attr vc-${s.base.color}`}:o?{class:`vc-bar vc-day-popover-row-bar vc-attr vc-${o.base.color}`}:null});return(a,r)=>(i.openBlock(),i.createElementBlock("div",$q,[i.unref(n)?(i.openBlock(),i.createElementBlock("div",Tq,[i.createElementVNode("span",{class:i.normalizeClass(i.unref(n).class)},null,2)])):i.createCommentVNode("",!0),i.createElementVNode("div",Iq,[i.renderSlot(a.$slots,"default",{},()=>[i.createTextVNode(i.toDisplayString(e.attribute.popover?e.attribute.popover.label:"No content provided"),1)])])]))}}),Nq={inheritAttrs:!1},Ci=i.defineComponent({...Nq,__name:"CalendarSlot",props:{name:null},setup(e){const n=i6(e.name);return(a,r)=>i.unref(n)?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(i.unref(n)),i.normalizeProps(i.mergeProps({key:0},a.$attrs)),null,16)):i.renderSlot(a.$slots,"default",{key:1})}}),zq={class:"vc-day-popover-container"},Lq={key:0,class:"vc-day-popover-header"},Pq=i.defineComponent({__name:"CalendarDayPopover",setup(e){const{dayPopoverId:t,displayMode:n,color:a,masks:r,locale:s}=us();function o(d,h){return s.value.formatDate(d,h)}function l(d){return s.value.formatDate(d.date,r.value.dayPopover)}return(d,h)=>(i.openBlock(),i.createBlock(Df,{id:i.unref(t),class:i.normalizeClass([`vc-${i.unref(a)}`,`vc-${i.unref(n)}`])},{default:i.withCtx(({data:{day:f,attributes:m},hide:y})=>[i.createVNode(Ci,{name:"day-popover",day:f,"day-title":l(f),attributes:m,format:o,masks:i.unref(r),hide:y},{default:i.withCtx(()=>[i.createElementVNode("div",zq,[i.unref(r).dayPopover?(i.openBlock(),i.createElementBlock("div",Lq,i.toDisplayString(l(f)),1)):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(m,g=>(i.openBlock(),i.createBlock(Aq,{key:g.key,attribute:g},null,8,["attribute"]))),128))])]),_:2},1032,["day","day-title","attributes","masks","hide"])]),_:1},8,["id","class"]))}}),Fq={},Rq={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},Hq=[i.createElementVNode("polyline",{points:"9 18 15 12 9 6"},null,-1)];function Wq(e,t){return i.openBlock(),i.createElementBlock("svg",Rq,Hq)}const Yq=_r(Fq,[["render",Wq]]),jq={},Uq={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},qq=[i.createElementVNode("polyline",{points:"15 18 9 12 15 6"},null,-1)];function Gq(e,t){return i.openBlock(),i.createElementBlock("svg",Uq,qq)}const Kq=_r(jq,[["render",Gq]]),Zq={},Xq={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},Jq=[i.createElementVNode("polyline",{points:"6 9 12 15 18 9"},null,-1)];function Qq(e,t){return i.openBlock(),i.createElementBlock("svg",Xq,Jq)}const eG=_r(Zq,[["render",Qq]]),tG={},nG={fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},iG=[i.createElementVNode("path",{d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1)];function aG(e,t){return i.openBlock(),i.createElementBlock("svg",nG,iG)}const rG=Object.freeze(Object.defineProperty({__proto__:null,IconChevronDown:eG,IconChevronLeft:Kq,IconChevronRight:Yq,IconClock:_r(tG,[["render",aG]])},Symbol.toStringTag,{value:"Module"})),wo=i.defineComponent({__name:"BaseIcon",props:{name:{type:String,required:!0},width:{type:String},height:{type:String},size:{type:String,default:"26"},viewBox:{type:String}},setup(e){const t=e,n=i.computed(()=>t.width||t.size),a=i.computed(()=>t.height||t.size),r=i.computed(()=>rG[`Icon${t.name}`]);return(s,o)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(i.unref(r)),{width:i.unref(n),height:i.unref(a),class:"vc-base-icon"},null,8,["width","height"]))}}),sG=["disabled"],oG={key:1,class:"vc-title-wrapper"},lG={type:"button",class:"vc-title"},cG=["disabled"],r6=i.defineComponent({__name:"CalendarHeader",props:{page:null,layout:null,isLg:{type:Boolean},isXl:{type:Boolean},is2xl:{type:Boolean},hideTitle:{type:Boolean},hideArrows:{type:Boolean}},setup(e){const t=e,{navPopoverId:n,navVisibility:a,canMovePrev:r,movePrev:s,canMoveNext:o,moveNext:l}=us(),d=i.computed(()=>{switch(t.page.titlePosition){case"left":return"bottom-start";case"right":return"bottom-end";default:return"bottom"}}),h=i.computed(()=>{const{page:_}=t;return{id:n.value,visibility:a.value,placement:d.value,modifiers:[{name:"flip",options:{fallbackPlacements:["bottom"]}}],data:{page:_},isInteractive:!0}}),f=i.computed(()=>t.page.titlePosition.includes("left")),m=i.computed(()=>t.page.titlePosition.includes("right")),y=i.computed(()=>t.layout?t.layout:f.value?"tu-pn":m.value?"pn-tu":"p-tu-n;"),g=i.computed(()=>({prev:y.value.includes("p")&&!t.hideArrows,title:y.value.includes("t")&&!t.hideTitle,next:y.value.includes("n")&&!t.hideArrows})),v=i.computed(()=>({gridTemplateColumns:y.value.split("").map(k=>{switch(k){case"p":return"[prev] auto";case"n":return"[next] auto";case"t":return"[title] auto";case"-":return"1fr";default:return""}}).join(" ")}));return(_,k)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["vc-header",{"is-lg":e.isLg,"is-xl":e.isXl,"is-2xl":e.is2xl}]),style:i.normalizeStyle(i.unref(v))},[i.unref(g).prev?(i.openBlock(),i.createElementBlock("button",{key:0,type:"button",class:"vc-arrow vc-prev vc-focus",disabled:!i.unref(r),onClick:k[0]||(k[0]=(...x)=>i.unref(s)&&i.unref(s)(...x)),onKeydown:k[1]||(k[1]=i.withKeys((...x)=>i.unref(s)&&i.unref(s)(...x),["space","enter"]))},[i.createVNode(Ci,{name:"header-prev-button",disabled:!i.unref(r)},{default:i.withCtx(()=>[i.createVNode(wo,{name:"ChevronLeft",size:"24"})]),_:1},8,["disabled"])],40,sG)):i.createCommentVNode("",!0),i.unref(g).title?(i.openBlock(),i.createElementBlock("div",oG,[i.createVNode(Ci,{name:"header-title-wrapper"},{default:i.withCtx(()=>[i.withDirectives((i.openBlock(),i.createElementBlock("button",lG,[i.createVNode(Ci,{name:"header-title",title:e.page.title},{default:i.withCtx(()=>[i.createElementVNode("span",null,i.toDisplayString(e.page.title),1)]),_:1},8,["title"])])),[[i.unref(Zb),i.unref(h)]])]),_:1})])):i.createCommentVNode("",!0),i.unref(g).next?(i.openBlock(),i.createElementBlock("button",{key:2,type:"button",class:"vc-arrow vc-next vc-focus",disabled:!i.unref(o),onClick:k[2]||(k[2]=(...x)=>i.unref(l)&&i.unref(l)(...x)),onKeydown:k[3]||(k[3]=i.withKeys((...x)=>i.unref(l)&&i.unref(l)(...x),["space","enter"]))},[i.createVNode(Ci,{name:"header-next-button",disabled:!i.unref(o)},{default:i.withCtx(()=>[i.createVNode(wo,{name:"ChevronRight",size:"24"})]),_:1},8,["disabled"])],40,cG)):i.createCommentVNode("",!0)],6))}}),s6=Symbol("__vc_page_context__");function dG(e){const{locale:t,getDateAddress:n,canMove:a}=us();function r(l,d){const{month:h,year:f}=n(new Date);return Hb().map((m,y)=>{const g=y+1;return{month:g,year:l,id:kU(g,l),label:t.value.formatDate(m,d),ariaLabel:t.value.formatDate(m,"MMMM"),isActive:g===e.value.month&&l===e.value.year,isCurrent:g===h&&l===f,isDisabled:!a({month:g,year:l},{position:e.value.position})}})}function s(l,d){const{year:h}=n(new Date),{position:f}=e.value,m=[];for(let y=l;y<=d;y+=1){const g=[...Array(12).keys()].some(v=>a({month:v+1,year:y},{position:f}));m.push({year:y,id:y.toString(),label:y.toString(),ariaLabel:y.toString(),isActive:y===e.value.year,isCurrent:y===h,isDisabled:!g})}return m}const o={page:e,getMonthItems:r,getYearItems:s};return i.provide(s6,o),o}function o6(){const e=i.inject(s6);if(e)return e;throw new Error("Page context missing. Please verify this component is nested within a valid context provider.")}const uG={class:"vc-nav-header"},hG=["disabled"],fG=["disabled"],pG={class:"vc-nav-items"},mG=["data-id","aria-label","disabled","onClick","onKeydown"],gG=i.defineComponent({__name:"CalendarNav",setup(e){const{masks:t,move:n}=us(),{page:a,getMonthItems:r,getYearItems:s}=o6(),o=i.ref(!0),l=12,d=i.ref(a.value.year),h=i.ref(y(a.value.year)),f=i.ref(null);function m(){setTimeout(()=>{if(f.value==null)return;const ue=f.value.querySelector(".vc-nav-item:not(:disabled)");ue&&ue.focus()},10)}function y(ue){return Math.floor(ue/l)}function g(){o.value=!o.value}function v(ue){return ue*l}function _(ue){return l*(ue+1)-1}function k(){be.value&&(o.value&&M(),C())}function x(){G.value&&(o.value&&B(),V())}function M(){d.value--}function B(){d.value++}function C(){h.value--}function V(){h.value++}const $=i.computed(()=>r(d.value,t.value.navMonths).map(ue=>({...ue,click:()=>n({month:ue.month,year:ue.year},{position:a.value.position})}))),N=i.computed(()=>r(d.value-1,t.value.navMonths)),I=i.computed(()=>N.value.some(ue=>!ue.isDisabled)),F=i.computed(()=>r(d.value+1,t.value.navMonths)),q=i.computed(()=>F.value.some(ue=>!ue.isDisabled)),Q=i.computed(()=>s(v(h.value),_(h.value)).map(ue=>({...ue,click:()=>{d.value=ue.year,o.value=!0,m()}}))),P=i.computed(()=>s(v(h.value-1),_(h.value-1))),Z=i.computed(()=>P.value.some(ue=>!ue.isDisabled)),se=i.computed(()=>s(v(h.value+1),_(h.value+1))),U=i.computed(()=>se.value.some(ue=>!ue.isDisabled)),me=i.computed(()=>o.value?$.value:Q.value),be=i.computed(()=>o.value?I.value:Z.value),G=i.computed(()=>o.value?q.value:U.value),ye=i.computed(()=>rb(Q.value.map(ue=>ue.year))),Y=i.computed(()=>mo(Q.value.map(ue=>ue.year))),ee=i.computed(()=>o.value?d.value:`${ye.value} - ${Y.value}`);return i.watchEffect(()=>{d.value=a.value.year,m()}),i.watch(()=>d.value,ue=>h.value=y(ue)),i.onMounted(()=>m()),(ue,de)=>(i.openBlock(),i.createElementBlock("div",{class:"vc-nav-container",ref_key:"navContainer",ref:f},[i.createElementVNode("div",uG,[i.createElementVNode("button",{type:"button",class:"vc-nav-arrow is-left vc-focus",disabled:!i.unref(be),onClick:k,onKeydown:de[0]||(de[0]=_e=>i.unref(Vu)(_e,k))},[i.createVNode(Ci,{name:"nav-prev-button",move:k,disabled:!i.unref(be)},{default:i.withCtx(()=>[i.createVNode(wo,{name:"ChevronLeft",width:"22px",height:"24px"})]),_:1},8,["disabled"])],40,hG),i.createElementVNode("button",{type:"button",class:"vc-nav-title vc-focus",onClick:g,onKeydown:de[1]||(de[1]=_e=>i.unref(Vu)(_e,g))},i.toDisplayString(i.unref(ee)),33),i.createElementVNode("button",{type:"button",class:"vc-nav-arrow is-right vc-focus",disabled:!i.unref(G),onClick:x,onKeydown:de[2]||(de[2]=_e=>i.unref(Vu)(_e,x))},[i.createVNode(Ci,{name:"nav-next-button",move:x,disabled:!i.unref(G)},{default:i.withCtx(()=>[i.createVNode(wo,{name:"ChevronRight",width:"22px",height:"24px"})]),_:1},8,["disabled"])],40,fG)]),i.createElementVNode("div",pG,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(me),_e=>(i.openBlock(),i.createElementBlock("button",{key:_e.label,type:"button","data-id":_e.id,"aria-label":_e.ariaLabel,class:i.normalizeClass(["vc-nav-item vc-focus",[_e.isActive?"is-active":_e.isCurrent?"is-current":""]]),disabled:_e.isDisabled,onClick:_e.click,onKeydown:ge=>i.unref(Vu)(ge,_e.click)},i.toDisplayString(_e.label),43,mG))),128))])],512))}}),l6=i.defineComponent({__name:"CalendarPageProvider",props:{page:null},setup(e){const t=e;return dG(i.toRef(t,"page")),(n,a)=>i.renderSlot(n.$slots,"default")}}),yG=i.defineComponent({__name:"CalendarNavPopover",setup(e){const{navPopoverId:t,color:n,displayMode:a}=us();return(r,s)=>(i.openBlock(),i.createBlock(Df,{id:i.unref(t),class:i.normalizeClass(["vc-nav-popover-container",`vc-${i.unref(n)}`,`vc-${i.unref(a)}`])},{default:i.withCtx(({data:o})=>[i.createVNode(l6,{page:o.page},{default:i.withCtx(()=>[i.createVNode(Ci,{name:"nav"},{default:i.withCtx(()=>[i.createVNode(gG)]),_:1})]),_:2},1032,["page"])]),_:1},8,["id","class"]))}}),bG=i.defineComponent({directives:{popover:Zb},components:{CalendarSlot:Ci},props:{day:{type:Object,required:!0}},setup(e){const{locale:t,theme:n,attributeContext:a,dayPopoverId:r,onDayClick:s,onDayMouseenter:o,onDayMouseleave:l,onDayFocusin:d,onDayFocusout:h,onDayKeydown:f}=us(),m=i.computed(()=>e.day),y=i.computed(()=>a.value.getCells(m.value)),g=i.computed(()=>y.value.map(U=>U.data)),v=i.computed(()=>({...m.value,attributes:g.value,attributeCells:y.value}));function _({data:U},{popovers:me}){const{key:be,customData:G,popover:ye}=U;if(!ye)return;const Y=Y5({key:be,customData:G,attribute:U},{...ye},{visibility:ye.label?"hover":"click",placement:"bottom",isInteractive:!ye.label});me.splice(0,0,Y)}const k=i.computed(()=>{const U={...n.value.prepareRender({}),popovers:[]};return y.value.forEach(me=>{n.value.render(me,U),_(me,U)}),U}),x=i.computed(()=>k.value.highlights),M=i.computed(()=>!!$a(x.value)),B=i.computed(()=>k.value.content),C=i.computed(()=>k.value.dots),V=i.computed(()=>!!$a(C.value)),$=i.computed(()=>k.value.bars),N=i.computed(()=>!!$a($.value)),I=i.computed(()=>k.value.popovers),F=i.computed(()=>I.value.map(U=>U.attribute)),q=i6("day-content"),Q=i.computed(()=>["vc-day",...m.value.classes,{"vc-day-box-center-center":!q},{"is-not-in-month":!e.day.inMonth}]),P=i.computed(()=>{let U;m.value.isFocusable?U="0":U="-1";const me=["vc-day-content vc-focusable vc-focus vc-attr",{"vc-disabled":m.value.isDisabled},cs(mo(x.value),"contentClass"),cs(mo(B.value),"class")||""],be={...cs(mo(x.value),"contentStyle"),...cs(mo(B.value),"style")};return{class:me,style:be,tabindex:U,"aria-label":m.value.ariaLabel,"aria-disabled":!!m.value.isDisabled,role:"button"}}),Z=i.computed(()=>({click(U){s(v.value,U)},mouseenter(U){o(v.value,U)},mouseleave(U){l(v.value,U)},focusin(U){d(v.value,U)},focusout(U){h(v.value,U)},keydown(U){f(v.value,U)}})),se=i.computed(()=>$a(I.value)?Y5({id:r.value,data:{day:m,attributes:F.value}},...I.value):null);return{attributes:g,attributeCells:y,bars:$,dayClasses:Q,dayContentProps:P,dayContentEvents:Z,dayPopover:se,glyphs:k,dots:C,hasDots:V,hasBars:N,highlights:x,hasHighlights:M,locale:t,popovers:I}}}),vG={key:0,class:"vc-highlights vc-day-layer"},_G={key:1,class:"vc-day-layer vc-day-box-center-bottom"},wG={class:"vc-dots"},kG={key:2,class:"vc-day-layer vc-day-box-center-bottom"},CG={class:"vc-bars"};function xG(e,t,n,a,r,s){const o=i.resolveComponent("CalendarSlot"),l=i.resolveDirective("popover");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(e.dayClasses)},[e.hasHighlights?(i.openBlock(),i.createElementBlock("div",vG,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.highlights,({key:d,wrapperClass:h,class:f,style:m})=>(i.openBlock(),i.createElementBlock("div",{key:d,class:i.normalizeClass(h)},[i.createElementVNode("div",{class:i.normalizeClass(f),style:i.normalizeStyle(m)},null,6)],2))),128))])):i.createCommentVNode("",!0),i.createVNode(o,{name:"day-content",day:e.day,attributes:e.attributes,"attribute-cells":e.attributeCells,dayProps:e.dayContentProps,dayEvents:e.dayContentEvents,locale:e.locale},{default:i.withCtx(()=>[i.withDirectives((i.openBlock(),i.createElementBlock("div",i.mergeProps(e.dayContentProps,i.toHandlers(e.dayContentEvents,!0)),[i.createTextVNode(i.toDisplayString(e.day.label),1)],16)),[[l,e.dayPopover]])]),_:1},8,["day","attributes","attribute-cells","dayProps","dayEvents","locale"]),e.hasDots?(i.openBlock(),i.createElementBlock("div",_G,[i.createElementVNode("div",wG,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.dots,({key:d,class:h,style:f})=>(i.openBlock(),i.createElementBlock("span",{key:d,class:i.normalizeClass(h),style:i.normalizeStyle(f)},null,6))),128))])])):i.createCommentVNode("",!0),e.hasBars?(i.openBlock(),i.createElementBlock("div",kG,[i.createElementVNode("div",CG,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.bars,({key:d,class:h,style:f})=>(i.openBlock(),i.createElementBlock("span",{key:d,class:i.normalizeClass(h),style:i.normalizeStyle(f)},null,6))),128))])])):i.createCommentVNode("",!0)],2)}const SG=_r(bG,[["render",xG]]),BG={class:"vc-weekdays"},MG=["onClick"],EG={inheritAttrs:!1},OG=i.defineComponent({...EG,__name:"CalendarPage",setup(e){const{page:t}=o6(),{onWeeknumberClick:n}=us();return(a,r)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["vc-pane",`row-${i.unref(t).row}`,`row-from-end-${i.unref(t).rowFromEnd}`,`column-${i.unref(t).column}`,`column-from-end-${i.unref(t).columnFromEnd}`]),ref:"pane"},[i.createVNode(r6,{page:i.unref(t),"is-lg":"","hide-arrows":""},null,8,["page"]),i.createElementVNode("div",{class:i.normalizeClass(["vc-weeks",{[`vc-show-weeknumbers-${i.unref(t).weeknumberPosition}`]:i.unref(t).weeknumberPosition}])},[i.createElementVNode("div",BG,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(t).weekdays,({weekday:s,label:o},l)=>(i.openBlock(),i.createElementBlock("div",{key:l,class:i.normalizeClass(`vc-weekday vc-weekday-${s}`)},i.toDisplayString(o),3))),128))]),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(t).viewWeeks,s=>(i.openBlock(),i.createElementBlock("div",{key:`weeknumber-${s.weeknumber}`,class:"vc-week"},[i.unref(t).weeknumberPosition?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["vc-weeknumber",`is-${i.unref(t).weeknumberPosition}`])},[i.createElementVNode("span",{class:i.normalizeClass(["vc-weeknumber-content"]),onClick:o=>i.unref(n)(s,o)},i.toDisplayString(s.weeknumberDisplay),9,MG)],2)):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.days,o=>(i.openBlock(),i.createBlock(SG,{key:o.id,day:o},null,8,["day"]))),128))]))),128))],2)],2))}}),DG=i.defineComponent({components:{CalendarHeader:r6,CalendarPage:OG,CalendarNavPopover:yG,CalendarDayPopover:Pq,CalendarPageProvider:l6,CalendarSlot:Ci},props:Mq,emit:Eq,setup(e,{emit:t,slots:n}){return Oq(e,{emit:t,slots:n})}}),VG={class:"vc-pane-header-wrapper"};function $G(e,t,n,a,r,s){const o=i.resolveComponent("CalendarHeader"),l=i.resolveComponent("CalendarPage"),d=i.resolveComponent("CalendarSlot"),h=i.resolveComponent("CalendarPageProvider"),f=i.resolveComponent("CalendarDayPopover"),m=i.resolveComponent("CalendarNavPopover");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",i.mergeProps({"data-helptext":"Press the arrow keys to navigate by day, Home and End to navigate to week ends, PageUp and PageDown to navigate by month, Alt+PageUp and Alt+PageDown to navigate by year"},e.$attrs,{class:["vc-container",`vc-${e.view}`,`vc-${e.color}`,`vc-${e.displayMode}`,{"vc-expanded":e.expanded,"vc-bordered":!e.borderless,"vc-transparent":e.transparent}],onMouseup:t[0]||(t[0]=i.withModifiers(()=>{},["prevent"])),ref:"containerRef"}),[i.createElementVNode("div",{class:i.normalizeClass(["vc-pane-container",{"in-transition":e.inTransition}])},[i.createElementVNode("div",VG,[e.firstPage?(i.openBlock(),i.createBlock(o,{key:0,page:e.firstPage,"is-lg":"","hide-title":""},null,8,["page"])):i.createCommentVNode("",!0)]),i.createVNode(i.Transition,{name:`vc-${e.transitionName}`,onBeforeEnter:e.onTransitionBeforeEnter,onAfterEnter:e.onTransitionAfterEnter},{default:i.withCtx(()=>[(i.openBlock(),i.createElementBlock("div",{key:e.pages[0].id,class:"vc-pane-layout",style:i.normalizeStyle({gridTemplateColumns:`repeat(${e.columns}, 1fr)`})},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.pages,y=>(i.openBlock(),i.createBlock(h,{key:y.id,page:y},{default:i.withCtx(()=>[i.createVNode(d,{name:"page",page:y},{default:i.withCtx(()=>[i.createVNode(l)]),_:2},1032,["page"])]),_:2},1032,["page"]))),128))],4))]),_:1},8,["name","onBeforeEnter","onAfterEnter"]),i.createVNode(d,{name:"footer"})],2)],16),i.createVNode(f),i.createVNode(m)],64)}const TG=_r(DG,[["render",$G]]),c6=Symbol("__vc_date_picker_context__"),IG={...Qb,mode:{type:String,default:"date"},modelValue:{type:[Number,String,Date,Object]},modelModifiers:{type:Object,default:()=>({})},rules:[String,Object],is24hr:Boolean,hideTimeHeader:Boolean,timeAccuracy:{type:Number,default:2},isRequired:Boolean,isRange:Boolean,updateOnInput:{type:Boolean,default:()=>br("datePicker.updateOnInput")},inputDebounce:{type:Number,default:()=>br("datePicker.inputDebounce")},popover:{type:[Boolean,Object],default:!0},dragAttribute:Object,selectAttribute:Object,attributes:[Object,Array]},AG=["update:modelValue","drag","dayclick","daykeydown","popover-will-show","popover-did-show","popover-will-hide","popover-did-hide"];function NG(e,{emit:t,slots:n}){n6(n,{footer:"dp-footer"});const a=e6(e),{locale:r,masks:s,disabledAttribute:o}=a,l=i.ref(!1),d=i.ref(Symbol()),h=i.ref(null),f=i.ref(null),m=i.ref(["",""]),y=i.ref(null),g=i.ref(null);let v,_,k=!0;const x=i.computed(()=>e.isRange||e.modelModifiers.range===!0),M=i.computed(()=>x.value&&h.value!=null?h.value.start:null),B=i.computed(()=>x.value&&h.value!=null?h.value.end:null),C=i.computed(()=>e.mode.toLowerCase()==="date"),V=i.computed(()=>e.mode.toLowerCase()==="datetime"),$=i.computed(()=>e.mode.toLowerCase()==="time"),N=i.computed(()=>!!f.value),I=i.computed(()=>{let T="date";e.modelModifiers.number&&(T="number"),e.modelModifiers.string&&(T="string");const K=s.value.modelValue||"iso";return de({type:T,mask:K})}),F=i.computed(()=>Ve(f.value??h.value)),q=i.computed(()=>$.value?e.is24hr?s.value.inputTime24hr:s.value.inputTime:V.value?e.is24hr?s.value.inputDateTime24hr:s.value.inputDateTime:s.value.input),Q=i.computed(()=>/[Hh]/g.test(q.value)),P=i.computed(()=>/[dD]{1,2}|Do|W{1,4}|M{1,4}|YY(?:YY)?/g.test(q.value)),Z=i.computed(()=>{if(Q.value&&P.value)return"dateTime";if(P.value)return"date";if(Q.value)return"time"}),se=i.computed(()=>{var T;const K=((T=y.value)==null?void 0:T.$el.previousElementSibling)??void 0;return oc({},e.popover,br("datePicker.popover"),{target:K})}),U=i.computed(()=>qb({...se.value,id:d.value})),me=i.computed(()=>x.value?{start:m.value[0],end:m.value[1]}:m.value[0]),be=i.computed(()=>{const T=["start","end"].map(K=>({input:lt(K),change:ae(K),keyup:xe,...e.popover&&U.value}));return x.value?{start:T[0],end:T[1]}:T[0]}),G=i.computed(()=>{if(!Ye(h.value))return null;const T={key:"select-drag",...e.selectAttribute,dates:h.value,pinPage:!0},{dot:K,bar:le,highlight:Me,content:et}=T;return!K&&!le&&!Me&&!et&&(T.highlight=!0),T}),ye=i.computed(()=>{if(!x.value||!Ye(f.value))return null;const T={key:"select-drag",...e.dragAttribute,dates:f.value},{dot:K,bar:le,highlight:Me,content:et}=T;return!K&&!le&&!Me&&!et&&(T.highlight={startEnd:{fillMode:"outline"}}),T}),Y=i.computed(()=>{const T=ki(e.attributes)?[...e.attributes]:[];return ye.value?T.unshift(ye.value):G.value&&T.unshift(G.value),T}),ee=i.computed(()=>de(e.rules==="auto"?ue():e.rules??{}));function ue(){const T={ms:[0,999],sec:[0,59],min:[0,59],hr:[0,23]},K=C.value?0:e.timeAccuracy;return[0,1].map(le=>{switch(K){case 0:return{hours:T.hr[le],minutes:T.min[le],seconds:T.sec[le],milliseconds:T.ms[le]};case 1:return{minutes:T.min[le],seconds:T.sec[le],milliseconds:T.ms[le]};case 3:return{milliseconds:T.ms[le]};case 4:return{};default:return{seconds:T.sec[le],milliseconds:T.ms[le]}}})}function de(T){return ki(T)?T.length===1?[T[0],T[0]]:T:[T,T]}function _e(T){return de(T).map((K,le)=>({...K,rules:ee.value[le]}))}function ge(T){return T==null?!1:Ui(T)?!isNaN(T):go(T)?!isNaN(T.getTime()):ua(T)?T!=="":xf(T)}function De(T){return Va(T)&&"start"in T&&"end"in T&&ge(T.start??null)&&ge(T.end??null)}function Ye(T){return De(T)||ge(T)}function Ne(T,K){if(T==null&&K==null)return!0;if(T==null||K==null)return!1;const le=go(T),Me=go(K);return le&&Me?T.getTime()===K.getTime():le||Me?!1:Ne(T.start,K.start)&&Ne(T.end,K.end)}function ut(T){return!Ye(T)||!o.value?!1:o.value.intersectsRange(r.value.range(T))}function _t(T,K,le,Me){if(!Ye(T))return null;if(De(T)){const et=r.value.toDate(T.start,{...K[0],fillDate:M.value??void 0,patch:le}),mt=r.value.toDate(T.end,{...K[1],fillDate:B.value??void 0,patch:le});return mn({start:et,end:mt},Me)}return r.value.toDateOrNull(T,{...K[0],fillDate:h.value,patch:le})}function ft(T,K){return De(T)?{start:r.value.fromDate(T.start,K[0]),end:r.value.fromDate(T.end,K[1])}:x.value?null:r.value.fromDate(T,K[0])}function it(T,K={}){return clearTimeout(v),new Promise(le=>{const{debounce:Me=0,...et}=K;Me>0?v=window.setTimeout(()=>{le(Ze(T,et))},Me):le(Ze(T,et))})}function Ze(T,{config:K=I.value,patch:le="dateTime",clearIfEqual:Me=!1,formatInput:et=!0,hidePopover:mt=!1,dragging:Tt=N.value,targetPriority:ln,moveToValue:Jt=!1}={}){const Kn=_e(K);let wt=_t(T,Kn,le,ln);if(ut(wt)){if(Tt)return null;wt=h.value,mt=!1}else wt==null&&e.isRequired?wt=h.value:wt!=null&&Ne(h.value,wt)&&Me&&(wt=null);const Vn=Tt?f:h,oi=!Ne(Vn.value,wt);Vn.value=wt,Tt||(f.value=null);const qi=ft(wt,I.value);return oi&&(k=!1,t(Tt?"drag":"update:modelValue",qi),i.nextTick(()=>k=!0)),mt&&!Tt&&Ge(),et&&Qe(),Jt&&i.nextTick(()=>j(ln??"start")),qi}function Qe(){i.nextTick(()=>{const T=_e({type:"string",mask:q.value}),K=ft(f.value??h.value,T);x.value?m.value=[K&&K.start,K&&K.end]:m.value=[K,""]})}function Dt(T,K,le){m.value.splice(K==="start"?0:1,1,T);const Me=x.value?{start:m.value[0],end:m.value[1]||m.value[0]}:T,et={type:"string",mask:q.value};it(Me,{...le,config:et,patch:Z.value,targetPriority:K,moveToValue:!0})}function lt(T){return K=>{e.updateOnInput&&Dt(K.currentTarget.value,T,{formatInput:!1,hidePopover:!1,debounce:e.inputDebounce})}}function ae(T){return K=>{Dt(K.currentTarget.value,T,{formatInput:!0,hidePopover:!1})}}function xe(T){T.key==="Escape"&&it(h.value,{formatInput:!0,hidePopover:!0})}function Ve(T){return x.value?[T&&T.start?r.value.getDateParts(T.start):null,T&&T.end?r.value.getDateParts(T.end):null]:[T?r.value.getDateParts(T):null]}function ze(){f.value=null,Qe()}function Fe(T){t("popover-will-show",T)}function pt(T){t("popover-did-show",T)}function Bt(T){ze(),t("popover-will-hide",T)}function Vt(T){t("popover-did-hide",T)}function Mt(T){const K={patch:"date",formatInput:!0,hidePopover:!0};if(x.value){const le=!N.value;le?_={start:T.startDate,end:T.endDate}:_!=null&&(_.end=T.date),it(_,{...K,dragging:le})}else it(T.date,{...K,clearIfEqual:!e.isRequired})}function nn(T,K){Mt(T),t("dayclick",T,K)}function $t(T,K){switch(K.key){case" ":case"Enter":{Mt(T),K.preventDefault();break}case"Escape":Ge()}t("daykeydown",T,K)}function he(T,K){!N.value||_==null||(_.end=T.date,it(mn(_),{patch:"date",formatInput:!0}))}function Le(T={}){Mf({...se.value,...T,isInteractive:!0,id:d.value})}function Ge(T={}){uc({hideDelay:10,force:!0,...se.value,...T,id:d.value})}function on(T){Ub({...se.value,...T,isInteractive:!0,id:d.value})}function mn(T,K){const{start:le,end:Me}=T;if(le>Me)switch(K){case"start":return{start:le,end:le};case"end":return{start:Me,end:Me};default:return{start:Me,end:le}}return{start:le,end:Me}}async function _n(T,K={}){return g.value==null?!1:g.value.move(T,K)}async function J(T,K={}){return g.value==null?!1:g.value.moveBy(T,K)}async function j(T,K={}){const le=h.value;if(g.value==null||!Ye(le))return!1;const Me=T!=="end",et=Me?1:-1,mt=De(le)?Me?le.start:le.end:le,Tt=kb(mt,"monthly",r.value);return g.value.move(Tt,{position:et,...K})}i.watch(()=>e.isRange,T=>{T&&console.warn("The `is-range` prop will be deprecated in future releases. Please use the `range` modifier.")},{immediate:!0}),i.watch(()=>x.value,()=>{Ze(null,{formatInput:!0})}),i.watch(()=>q.value,()=>Qe()),i.watch(()=>e.modelValue,T=>{k&&Ze(T,{formatInput:!0,hidePopover:!1})}),i.watch(()=>ee.value,()=>{Va(e.rules)&&Ze(e.modelValue,{formatInput:!0,hidePopover:!1})}),i.watch(()=>e.timezone,()=>{Ze(h.value,{formatInput:!0})});const pe=de(I.value);h.value=_t(e.modelValue??null,pe,"dateTime"),i.onMounted(()=>{Ze(e.modelValue,{formatInput:!0,hidePopover:!1})}),i.nextTick(()=>l.value=!0);const R={...a,showCalendar:l,datePickerPopoverId:d,popoverRef:y,popoverEvents:U,calendarRef:g,isRange:x,isTimeMode:$,isDateTimeMode:V,is24hr:i.toRef(e,"is24hr"),hideTimeHeader:i.toRef(e,"hideTimeHeader"),timeAccuracy:i.toRef(e,"timeAccuracy"),isDragging:N,inputValue:me,inputEvents:be,dateParts:F,attributes:Y,rules:ee,move:_n,moveBy:J,moveToValue:j,updateValue:it,showPopover:Le,hidePopover:Ge,togglePopover:on,onDayClick:nn,onDayKeydown:$t,onDayMouseEnter:he,onPopoverBeforeShow:Fe,onPopoverAfterShow:pt,onPopoverBeforeHide:Bt,onPopoverAfterHide:Vt};return i.provide(c6,R),R}function Vf(){const e=i.inject(c6);if(e)return e;throw new Error("DatePicker context missing. Please verify this component is nested within a valid context provider.")}const zG=[{value:0,label:"12"},{value:1,label:"1"},{value:2,label:"2"},{value:3,label:"3"},{value:4,label:"4"},{value:5,label:"5"},{value:6,label:"6"},{value:7,label:"7"},{value:8,label:"8"},{value:9,label:"9"},{value:10,label:"10"},{value:11,label:"11"}],LG=[{value:12,label:"12"},{value:13,label:"1"},{value:14,label:"2"},{value:15,label:"3"},{value:16,label:"4"},{value:17,label:"5"},{value:18,label:"6"},{value:19,label:"7"},{value:20,label:"8"},{value:21,label:"9"},{value:22,label:"10"},{value:23,label:"11"}];function PG(e){const t=Vf(),{locale:n,isRange:a,isTimeMode:r,dateParts:s,rules:o,is24hr:l,hideTimeHeader:d,timeAccuracy:h,updateValue:f}=t;function m(P){P=Object.assign(g.value,P);let Z=null;if(a.value){const se=y.value?P:s.value[0],U=y.value?s.value[1]:P;Z={start:se,end:U}}else Z=P;f(Z,{patch:"time",targetPriority:y.value?"start":"end",moveToValue:!0})}const y=i.computed(()=>e.position===0),g=i.computed(()=>s.value[e.position]||{isValid:!1}),v=i.computed(()=>xf(g.value)),_=i.computed(()=>!!g.value.isValid),k=i.computed(()=>!d.value&&_.value),x=i.computed(()=>{if(!v.value)return null;let P=n.value.toDate(g.value);return g.value.hours===24&&(P=new Date(P.getTime()-1)),P}),M=i.computed({get(){return g.value.hours},set(P){m({hours:P})}}),B=i.computed({get(){return g.value.minutes},set(P){m({minutes:P})}}),C=i.computed({get(){return g.value.seconds},set(P){m({seconds:P})}}),V=i.computed({get(){return g.value.milliseconds},set(P){m({milliseconds:P})}}),$=i.computed({get(){return g.value.hours<12},set(P){P=String(P).toLowerCase()=="true";let Z=M.value;P&&Z>=12?Z-=12:!P&&Z<12&&(Z+=12),m({hours:Z})}}),N=i.computed(()=>lq(g.value,o.value[e.position])),I=i.computed(()=>zG.filter(P=>N.value.hours.some(Z=>Z.value===P.value))),F=i.computed(()=>LG.filter(P=>N.value.hours.some(Z=>Z.value===P.value))),q=i.computed(()=>l.value?N.value.hours:$.value?I.value:F.value),Q=i.computed(()=>{const P=[];return $a(I.value)&&P.push({value:!0,label:"AM"}),$a(F.value)&&P.push({value:!1,label:"PM"}),P});return{...t,showHeader:k,timeAccuracy:h,parts:g,isValid:_,date:x,hours:M,minutes:B,seconds:C,milliseconds:V,options:N,hourOptions:q,isAM:$,isAMOptions:Q,is24hr:l}}const FG=["value"],RG=["value","disabled"],HG={key:1,class:"vc-base-sizer","aria-hidden":"true"},WG={inheritAttrs:!1},hc=i.defineComponent({...WG,__name:"BaseSelect",props:{options:null,modelValue:null,alignRight:{type:Boolean},alignLeft:{type:Boolean},showIcon:{type:Boolean},fitContent:{type:Boolean}},emits:["update:modelValue"],setup(e){const t=e,n=i.computed(()=>{const a=t.options.find(r=>r.value===t.modelValue);return a==null?void 0:a.label});return(a,r)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["vc-base-select",{"vc-fit-content":e.fitContent,"vc-has-icon":e.showIcon}])},[i.createElementVNode("select",i.mergeProps(a.$attrs,{value:e.modelValue,class:["vc-focus",{"vc-align-right":e.alignRight,"vc-align-left":e.alignLeft}],onChange:r[0]||(r[0]=s=>a.$emit("update:modelValue",s.target.value))}),[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.options,s=>(i.openBlock(),i.createElementBlock("option",{key:s.value,value:s.value,disabled:s.disabled},i.toDisplayString(s.label),9,RG))),128))],16,FG),e.showIcon?(i.openBlock(),i.createBlock(wo,{key:0,name:"ChevronDown",size:"18"})):i.createCommentVNode("",!0),e.fitContent?(i.openBlock(),i.createElementBlock("div",HG,i.toDisplayString(i.unref(n)),1)):i.createCommentVNode("",!0)],2))}}),YG={key:0,class:"vc-time-header"},jG={class:"vc-time-weekday"},UG={class:"vc-time-month"},qG={class:"vc-time-day"},GG={class:"vc-time-year"},KG={class:"vc-time-select-group"},ZG=i.createElementVNode("span",{class:"vc-time-colon"},":",-1),XG=i.createElementVNode("span",{class:"vc-time-colon"},":",-1),JG=i.createElementVNode("span",{class:"vc-time-decimal"},".",-1),d6=i.defineComponent({__name:"TimePicker",props:{position:null},setup(e,{expose:t}){const a=PG(e);t(a);const{locale:r,isValid:s,date:o,hours:l,minutes:d,seconds:h,milliseconds:f,options:m,hourOptions:y,isTimeMode:g,isAM:v,isAMOptions:_,is24hr:k,showHeader:x,timeAccuracy:M}=a;return(B,C)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["vc-time-picker",[{"vc-invalid":!i.unref(s),"vc-attached":!i.unref(g)}]])},[i.createVNode(Ci,{name:"time-header"},{default:i.withCtx(()=>[i.unref(x)&&i.unref(o)?(i.openBlock(),i.createElementBlock("div",YG,[i.createElementVNode("span",jG,i.toDisplayString(i.unref(r).formatDate(i.unref(o),"WWW")),1),i.createElementVNode("span",UG,i.toDisplayString(i.unref(r).formatDate(i.unref(o),"MMM")),1),i.createElementVNode("span",qG,i.toDisplayString(i.unref(r).formatDate(i.unref(o),"D")),1),i.createElementVNode("span",GG,i.toDisplayString(i.unref(r).formatDate(i.unref(o),"YYYY")),1)])):i.createCommentVNode("",!0)]),_:1}),i.createElementVNode("div",KG,[i.createVNode(wo,{name:"Clock",size:"17"}),i.createVNode(hc,{modelValue:i.unref(l),"onUpdate:modelValue":C[0]||(C[0]=V=>i.isRef(l)?l.value=V:null),modelModifiers:{number:!0},options:i.unref(y),class:"vc-time-select-hours","align-right":""},null,8,["modelValue","options"]),i.unref(M)>1?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[ZG,i.createVNode(hc,{modelValue:i.unref(d),"onUpdate:modelValue":C[1]||(C[1]=V=>i.isRef(d)?d.value=V:null),modelModifiers:{number:!0},options:i.unref(m).minutes,class:"vc-time-select-minutes","align-left":i.unref(M)===2},null,8,["modelValue","options","align-left"])],64)):i.createCommentVNode("",!0),i.unref(M)>2?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[XG,i.createVNode(hc,{modelValue:i.unref(h),"onUpdate:modelValue":C[2]||(C[2]=V=>i.isRef(h)?h.value=V:null),modelModifiers:{number:!0},options:i.unref(m).seconds,class:"vc-time-select-seconds","align-left":i.unref(M)===3},null,8,["modelValue","options","align-left"])],64)):i.createCommentVNode("",!0),i.unref(M)>3?(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[JG,i.createVNode(hc,{modelValue:i.unref(f),"onUpdate:modelValue":C[3]||(C[3]=V=>i.isRef(f)?f.value=V:null),modelModifiers:{number:!0},options:i.unref(m).milliseconds,class:"vc-time-select-milliseconds","align-left":""},null,8,["modelValue","options"])],64)):i.createCommentVNode("",!0),i.unref(k)?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(hc,{key:3,modelValue:i.unref(v),"onUpdate:modelValue":C[4]||(C[4]=V=>i.isRef(v)?v.value=V:null),options:i.unref(_)},null,8,["modelValue","options"]))])],2))}}),u6=i.defineComponent({__name:"DatePickerBase",setup(e){const{attributes:t,calendarRef:n,color:a,displayMode:r,isDateTimeMode:s,isTimeMode:o,isRange:l,onDayClick:d,onDayMouseEnter:h,onDayKeydown:f}=Vf(),m=l.value?[0,1]:[0];return(y,g)=>i.unref(o)?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(`vc-container vc-bordered vc-${i.unref(a)} vc-${i.unref(r)}`)},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(m),v=>(i.openBlock(),i.createBlock(d6,{key:v,position:v},null,8,["position"]))),128))],2)):(i.openBlock(),i.createBlock(TG,{key:1,attributes:i.unref(t),ref_key:"calendarRef",ref:n,onDayclick:i.unref(d),onDaymouseenter:i.unref(h),onDaykeydown:i.unref(f)},{footer:i.withCtx(()=>[i.unref(s)?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(i.unref(m),v=>(i.openBlock(),i.createBlock(d6,{key:v,position:v},null,8,["position"]))),128)):i.createCommentVNode("",!0),i.createVNode(Ci,{name:"dp-footer"})]),_:1},8,["attributes","onDayclick","onDaymouseenter","onDaykeydown"]))}}),QG={inheritAttrs:!1},eK=i.defineComponent({...QG,__name:"DatePickerPopover",setup(e){const{datePickerPopoverId:t,color:n,displayMode:a,popoverRef:r,onPopoverBeforeShow:s,onPopoverAfterShow:o,onPopoverBeforeHide:l,onPopoverAfterHide:d}=Vf();return(h,f)=>(i.openBlock(),i.createBlock(Df,{id:i.unref(t),placement:"bottom-start",class:i.normalizeClass(`vc-date-picker-content vc-${i.unref(n)} vc-${i.unref(a)}`),ref_key:"popoverRef",ref:r,onBeforeShow:i.unref(s),onAfterShow:i.unref(o),onBeforeHide:i.unref(l),onAfterHide:i.unref(d)},{default:i.withCtx(()=>[i.createVNode(u6,i.normalizeProps(i.guardReactiveProps(h.$attrs)),null,16)]),_:1},8,["id","class","onBeforeShow","onAfterShow","onBeforeHide","onAfterHide"]))}}),tK=i.defineComponent({inheritAttrs:!1,emits:AG,props:IG,components:{DatePickerBase:u6,DatePickerPopover:eK},setup(e,t){const n=NG(e,t),a=i.reactive(lb(n,"calendarRef","popoverRef"));return{...n,slotCtx:a}}});function nK(e,t,n,a,r,s){const o=i.resolveComponent("DatePickerPopover"),l=i.resolveComponent("DatePickerBase");return e.$slots.default?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.renderSlot(e.$slots,"default",i.normalizeProps(i.guardReactiveProps(e.slotCtx))),i.createVNode(o,i.normalizeProps(i.guardReactiveProps(e.$attrs)),null,16)],64)):(i.openBlock(),i.createBlock(l,i.normalizeProps(i.mergeProps({key:1},e.$attrs)),null,16))}const iK=_r(tK,[["render",nK]]),ko=e=>/^(19|20)\d\d-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$/.test(e),$f={name:"CdsInlineDateInput",components:{VDatePicker:iK,CdsChevron:Ai,CdsIcon:ve},props:{modelValue:{type:[String,Object],default:"",validator:e=>e===""||typeof e=="object"||ko(e)},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:e=>e===""||ko(e)},maxDate:{type:String,default:"",validator:e=>e===""||ko(e)},placeholder:{type:String,default:"Selecione uma data"},showTodayDot:{type:Boolean,default:!1},variant:{type:String,default:"green"}},data(){return{sassColorVariables:ai,internalDate:fe.now(),isBeingFocused:!1,inputControl:0,attributes:[{dates:fe.now().toJSDate(),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 e="";return this.disabled?this.fluid?"inline-date-input--disabled inline-date-input--fluid":"inline-date-input--disabled":(e+=this.fluid?" date-input--fluid":" date-input",e)},inputClass(){let e="";return this.disabled?this.fluid?"date-input--disabled date-input--fluid":"date-input--disabled":(e+=this.fluid?" date-input--fluid":" date-input",e)},inlineCalendarDotColor(){return this.variantColorData.colorData[4].shade},inlineCalendarTextColor(){return this.variantColorData.colorData[7].shade},inlineCalendarTrailColor(){return this.variantColorData.colorData[1].shade}},watch:{modelValue(e,t){e!==t&&this.resolveInternalDate()},variant(e,t){e!==t&&this.updateColorData()}},created(){this.updateColorData()},mounted(){this.resolveInternalDate()},methods:{paleteBuilder:sa,updateColorData(){this.variantColorData=this.paleteBuilder(ai.palete).find(e=>e.variantName.toLowerCase()===this.variant)},handleUpdateInput(e){if(this.range){this.$emit("update:modelValue",e.start&&e.end?{start:fe.fromJSDate(e.start).toFormat("yyyy-MM-dd"),end:fe.fromJSDate(e.end).toFormat("yyyy-MM-dd")}:"");return}this.$emit("update:modelValue",e?fe.fromJSDate(e).toFormat("yyyy-MM-dd"):"")},resolveInternalDate(){if(!this.modelValue){this.internalDate=this.range?null:"";return}if(this.range){this.internalDate=ko(this.modelValue.start)&&ko(this.modelValue.end)?{start:fe.fromFormat(this.modelValue.start,"yyyy-MM-dd"),end:fe.fromFormat(this.modelValue.end,"yyyy-MM-dd")}:{start:fe.now(),end:fe.now()};return}this.internalDate=ko(this.modelValue)?fe.fromFormat(this.modelValue,"yyyy-MM-dd"):fe.now()},resolveInputValue(e){return typeof e!="object"?e:!e.start&&!e.end||Et.isEmpty(e)?null:`${e.start} a ${e.end}`}}},h6=()=>{i.useCssVars(e=>({"758c10d6":e.inlineCalendarTrailColor,"5d15df3d":e.inlineCalendarTextColor,"001731b3":e.inlineCalendarDotColor}))},f6=$f.setup;$f.setup=f6?(e,t)=>(h6(),f6(e,t)):h6;const aK={key:0},rK={key:1,class:"inline-date-input__label"},sK={class:"label__content",for:"cds-text-input"},oK=["value","disabled","placeholder","onClick"],lK={class:"inline-date-input__icon"};function cK(e,t,n,a,r,s){const o=i.resolveComponent("CdsChevron"),l=i.resolveComponent("CdsIcon"),d=i.resolveComponent("v-date-picker");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["inline-date-input__container",s.dateInputClassContainer])},[i.createElementVNode("span",null,[s.hasSlots?(i.openBlock(),i.createElementBlock("span",aK,[i.renderSlot(e.$slots,"label",{},void 0,!0)])):(i.openBlock(),i.createElementBlock("label",rK,[i.createElementVNode("div",sK,[i.createElementVNode("span",null,i.toDisplayString(s.capitalizedLabel)+": ",1)])]))]),i.createVNode(d,{id:"cds--inline-date-input",modelValue:r.internalDate,"onUpdate:modelValue":[t[2]||(t[2]=h=>r.internalDate=h),s.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?r.attributes:{},color:n.variant,"is-range":n.range},{"header-left-button":i.withCtx(({page:h})=>[i.createVNode(o,{direction:"left",onClick:f=>h.movePrevMonth()},null,8,["onClick"])]),"header-right-button":i.withCtx(({page:h})=>[i.createVNode(o,{direction:"right",onClick:f=>h.moveNextMonth()},null,8,["onClick"])]),default:i.withCtx(({inputValue:h,togglePopover:f,inputEvents:m})=>[i.createElementVNode("div",{class:i.normalizeClass(s.inputClass)},[i.createElementVNode("input",i.mergeProps({value:s.resolveInputValue(h),disabled:n.disabled,placeholder:n.placeholder,type:"text"},i.toHandlers(m,!0),{onClick:f,onFocus:t[0]||(t[0]=y=>r.isBeingFocused=!0),onBlur:t[1]||(t[1]=y=>r.isBeingFocused=!1)}),null,16,oK),i.createElementVNode("div",lK,[i.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 dK=ie($f,[["render",cK],["__scopeId","data-v-75465d52"]]),uK=["onClick"],hK={key:1,class:"list__body"},fK={class:"list__content"},pK={class:"list__actions"},mK={key:1},gK=ie(Object.assign({name:"CdsList"},{__name:"List",props:{items:{type:Array,required:!0,default:()=>[]},variant:{type:String,default:"blue",validator:e=>Ma.includes(e)},clickable:{type:Boolean,default:!1},padding:{type:String,default:"7, 3"}},emits:["click"],setup(e,{emit:t}){i.useCssVars(d=>({"62bad1be":o.value,d06833ae:s.value}));const{isMobile:n}=au(),a=t,r=e,s=i.computed(()=>r.clickable?"pointer":""),o=i.computed(()=>{const[d,h]=r.padding.replace(" ","").split(",");return`${d*4}px ${h*4}px`});function l(d){!r.clickable&&!n.value||a("click",d)}return(d,h)=>(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.items,(f,m)=>(i.openBlock(),i.createElementBlock("div",{key:m,class:"list",onClick:y=>l(f)},[i.unref(is)("item")?i.renderSlot(d.$slots,"item",{key:0,item:f},void 0,!0):(i.openBlock(),i.createElementBlock("div",hK,[i.createElementVNode("div",{class:i.normalizeClass(["list__title",`list__title--${e.variant}`])},i.toDisplayString(f.title),3),i.createElementVNode("div",fK,i.toDisplayString(f.content),1)])),i.createElementVNode("div",pK,[i.unref(n)?(i.openBlock(),i.createBlock(ve,{key:0,height:"24",width:"24",name:"caret-right-outline"})):(i.openBlock(),i.createElementBlock("div",mK,[i.renderSlot(d.$slots,"actions",{item:f},void 0,!0)]))])],8,uK))),128))}}),[["__scopeId","data-v-0dd256aa"]]),yK={name:"CdsLoadingBar"};function bK(e,t,n,a,r,s){return i.openBlock(),i.createElementBlock("div",null,t[0]||(t[0]=[i.createElementVNode("div",{class:"loading-bar__container"},[i.createElementVNode("div",{class:"loading-bar"})],-1)]))}const vK=ie(yK,[["render",bK],["__scopeId","data-v-af317d48"]]),_K=ie(Object.assign({name:"CdsLoadingIndicator"},{__name:"LoadingIndicator",props:{modelValue:{type:Boolean,default:!1,required:!0},variant:{type:String,default:"green"},intervalTime:{type:Number,default:500}},setup(e){i.useCssVars(h=>({"56212edc":a.value,"4b6f832e":s.value,"0a6e8282":r.value}));const t=e,n=i.ref(0),a=i.computed(()=>`${n.value}%`),r=i.computed(()=>n.value===0?"none":"width 0.5s"),s=i.computed(()=>ns("smartphone")||ns("tablet")?"4px":"3px");i.watch(()=>t.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()*(t.intervalTime*1.4-t.intervalTime*.5)+t.intervalTime*.5);setTimeout(l,h)}}function d(){n.value=100,setTimeout(()=>{n.value=0},600)}return(h,f)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(`loading-indicator--${e.variant}`)},null,2))}}),[["__scopeId","data-v-16e128bf"]]),wK={class:"mobile-navbar"},kK={class:"mobile-navbar__items"},CK={key:0,class:"mobile-navbar__item-text"},xK=ie(Object.assign({name:"CdsMobileNavbar"},{__name:"MobileNavbar",props:{items:{type:Array,required:!0,validator:e=>e.length>0&&e.lenght<=5&&e.every(t=>t.route.path&&t.route.name)},variant:{type:String,default:"green"},showLabel:{type:Boolean,default:!1},activeItem:{type:Object,default:()=>({}),required:!0}},emits:["item-click"],setup(e,{emit:t}){const n=e,a=t,r=i.ref(n.items[0]),s=i.ref(0),o=i.computed(()=>({width:`${100/n.items.length}%`,transform:`translateX(${s.value*100}%)`})),l=i.computed(()=>{let f="";switch(s.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}`)});i.watchEffect(()=>{s.value=n.items.findIndex(f=>f.label===r.value.label)}),i.watch(n.activeItem,f=>{r.value=f}),i.onMounted(()=>r.value=n.activeItem||n.items[0]);function d(f){return f.route.name?{name:f.route.name}:{path:f.route.path}}function h(f){r.value=f,a("item-click",f)}return(f,m)=>{const y=i.resolveComponent("router-link");return i.openBlock(),i.createElementBlock("div",wK,[i.createElementVNode("div",kK,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.items,g=>(i.openBlock(),i.createBlock(y,{key:g,class:"mobile-navbar__item-link",to:d(g),onClick:v=>h(g)},{default:i.withCtx(()=>{var v,_;return[i.createElementVNode("div",{class:i.normalizeClass(["mobile-navbar__item",{"mobile-navbar__item--active":((v=r.value)==null?void 0:v.label)===g.label,[`mobile-navbar__item--active--${e.variant}`]:((_=r.value)==null?void 0:_.label)===g.label}])},[i.createVNode(ve,{height:"20",width:"20",name:g.icon},null,8,["name"]),e.showLabel?(i.openBlock(),i.createElementBlock("div",CK,i.toDisplayString(g.label),1)):i.createCommentVNode("",!0)],2)]}),_:2},1032,["to","onClick"]))),128)),i.createElementVNode("div",{class:i.normalizeClass(l.value),style:i.normalizeStyle(o.value)},null,6)])])}}}),[["__scopeId","data-v-c811e782"]]),SK={class:"mobile-navigation__header"},BK={class:"mobile-navigation__title"},MK={class:"mobile-navigation__sidebar-header"},EK={class:"mobile-navigation__sidebar-logo"},OK=["src"],DK={class:"mobile-navigation__sidebar-content"},VK={class:"mobile-navigation__sidebar-items"},$K={class:"mobile-navigation__sidebar-footer"},TK={class:"mobile-navigation__sidebar-user-text"},IK=ie(Object.assign({name:"CdsMobileNavigation"},{__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(e,{emit:t}){const n=e,a=t,r=i.ref(n.activeItem),s=i.ref(!1),o=i.computed(()=>n.light?"light":"dark"),l=i.computed(()=>{let _=`mobile-navigation mobile-navigation--${o.value}`;return n.sticky&&(_+=" mobile-navigation--sticky"),_});i.watch(s,async(_,k)=>{_!==k&&v(_)}),i.watch(()=>n.activeItem,_=>{r.value=_});const d=()=>{s.value=!0},h=()=>{s.value=!1},f=_=>Et.isEqual(_,r.value),m=_=>{Et.isEmpty(n.activeItem)&&(r.value=_),s.value=!1,a("item-click",_)},y=({route:_,path:k})=>{const x=Et.isEmpty(_)?k:_;return x instanceof String?{path:x}:x},g=_=>y(_)?y(_).path:null,v=_=>{document.body.style.overflow=_?"hidden":"auto"};return(_,k)=>{const x=i.resolveComponent("router-link");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(l.value)},[i.createElementVNode("div",{class:i.normalizeClass(`variant-resolver--${e.variant}`)},[i.createElementVNode("div",SK,[i.createElementVNode("div",BK,i.toDisplayString(r.value.label??""),1),i.createElementVNode("div",{class:"mobile-navigation__menu-btn",onClick:d},[i.createVNode(ve,{name:"menu-outline"})])]),i.createElementVNode("div",{class:i.normalizeClass(["mobile-navigation__sidebar",{"mobile-navigation__sidebar--expanded":s.value}])},[i.createElementVNode("div",MK,[i.createElementVNode("div",EK,[i.renderSlot(_.$slots,"sidebar-logo",{},()=>[i.createElementVNode("img",{src:e.sidebarLogo},null,8,OK)],!0)]),i.createElementVNode("div",{class:"mobile-navigation__sidebar-btn",onClick:h},[i.createVNode(ve,{name:"x-outline"})])]),i.createElementVNode("div",DK,[i.createElementVNode("div",VK,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.items,M=>(i.openBlock(),i.createBlock(x,{key:M.label,to:g(M),class:i.normalizeClass(["mobile-navigation__sidebar-item",{"mobile-navigation__sidebar-item--active":f(M)}]),onClick:B=>m(M)},{default:i.withCtx(()=>[i.createVNode(ve,{name:M.icon,width:"24",height:"24"},null,8,["name"]),i.createElementVNode("span",null,i.toDisplayString(M.label),1)]),_:2},1032,["to","class","onClick"]))),128))]),i.createElementVNode("div",$K,[i.createElementVNode("div",{class:"mobile-navigation__sidebar-user-info",onClick:k[0]||(k[0]=M=>a("profile-click"))},[i.createVNode(ul,{src:e.user.picture??"",name:e.user.name??"",variant:e.variant,size:"lg"},null,8,["src","name","variant"]),i.createElementVNode("div",TK,[i.createElementVNode("p",null,i.toDisplayString(e.user.name??""),1),i.createElementVNode("p",null,i.toDisplayString(e.user.role??""),1)])]),i.createElementVNode("button",{class:"mobile-navigation__sidebar-logout",onClick:k[1]||(k[1]=M=>a("logout"))},[i.createVNode(ve,{name:"logout-outline",width:"24",height:"24"})])])])],2)],2)],2)}}}),[["__scopeId","data-v-bd36da76"]]),AK=["teal","green","blue","indigo","violet","pink","red","orange","amber"],NK={name:"CdsModal",components:{CdsIcon:ve,CdsButton:fn,CdsScrollable:Qc},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:e=>AK.includes(e)},scrollable:{type:Boolean,default:!1}},data(){return{innerValue:!1,tmp:""}},computed:{maxBodyHeight(){return`${window.innerHeight*.9-32*2-68-64}px`}},watch:{modelValue(e){this.innerValue=e}},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")}}},zK={key:0,class:"cds-modal__backdrop"},LK={key:0},PK={class:"cds-modal__header"},FK={key:1,class:"cds-modal__body"},RK={key:1,class:"cds-modal__footer"};function HK(e,t,n,a,r,s){const o=i.resolveComponent("CdsIcon"),l=i.resolveComponent("CdsScrollable"),d=i.resolveComponent("CdsButton"),h=i.resolveDirective("cds-click-outside");return r.innerValue?(i.openBlock(),i.createElementBlock("div",zK,[r.innerValue?i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["cds-modal",`cds-modal--${n.size}`])},[n.noHeader?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("header",LK,[i.renderSlot(e.$slots,"header",{},()=>[i.createElementVNode("div",PK,[i.createElementVNode("h3",null,i.toDisplayString(n.title),1),n.noCloseButton?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:"cds-modal__close-icon",onClick:t[0]||(t[0]=(...f)=>s.closeHandle&&s.closeHandle(...f))},[i.createVNode(o,{name:"x-outline",height:"20",width:"20",color:"#29333D"})]))])],!0)])),i.createElementVNode("section",null,[n.scrollable?(i.openBlock(),i.createBlock(l,{key:0,class:"cds-modal__body"},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3})):(i.openBlock(),i.createElementBlock("div",FK,[i.renderSlot(e.$slots,"default",{},void 0,!0)]))]),n.noFooter?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("footer",RK,[i.renderSlot(e.$slots,"footer",{},()=>[n.noCancelButton?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(d,{key:0,text:n.cancelButtonText,secondary:"",disabled:n.disableCancelButton,onClick:t[1]||(t[1]=f=>n.disableCancelButton?!1:s.cancelHandle())},null,8,["text","disabled"])),i.createVNode(d,{class:"footer__ok-button",text:n.okButtonText,variant:n.actionButtonVariant,disabled:n.disableOkButton,onClick:t[2]||(t[2]=f=>n.disableOkButton?!1:s.okHandle())},null,8,["text","variant","disabled"])],!0)]))],2)),[[h,n.noCloseOnBackdrop?()=>{}:s.closeHandle]]):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)}const p6=ie(NK,[["render",HK],["__scopeId","data-v-4c0e0680"]]),WK={ref:"monthAndYearPicker",class:"month-and-year-picker"},YK={class:"month-and-year-picker__icon"},jK={class:"dropdown__header"},UK=ie(Object.assign({name:"CdsMonthAndYearPicker"},{__name:"MonthAndYearPicker",props:i.mergeModels({label:{type:String,default:"Label"},variant:{type:String,default:"green"},state:{type:String,default:"default"},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1},mobile:{type:Boolean,default:!1},floatingLabel:{type:Boolean,default:!1},placeholder:{type:String,default:"Selecione uma data"},errorMessage:{type:String,default:"Valor inválido"},minDate:{type:String,default:""},maxDate:{type:String,default:""},tooltip:{type:String,default:null},tooltipIcon:{type:String,default:"info-outline"},supportingText:{type:[String,Array],default:""},supportLink:{type:String,default:null},supportLinkUrl:{type:[String,null],default:null}},{modelValue:{type:String},modelModifiers:{}}),emits:["update:modelValue"],setup(e){i.useCssVars(V=>({"3797a7bc":V.dateInputContainerWidth,"7cc24778":i.unref(py),"568f8bce":i.unref(fy)}));const t=i.useModel(e,"modelValue"),n=e,a=i.ref(!1),r=i.ref("down"),s=i.ref(fe.now().setLocale("pt-BR")),{clickedOutside:o,setTargetElement:l}=gy(),d=i.useTemplateRef("monthAndYearPicker"),h=i.computed(()=>s.value.toFormat("yyyy")),f=i.computed(()=>s.value.toFormat("MMMM/yyyy")),m=i.computed(()=>fe.fromFormat(n.minDate,"yyyy-MM-dd").toFormat("yyyy")===h.value?n.minDate:fe.fromFormat(`${h.value}-01-01`,"yyyy-MM-dd").setLocale("pt-BR").toFormat("yyyy-MM-dd")),y=i.computed(()=>fe.fromFormat(n.maxDate,"yyyy-MM-dd").toFormat("yyyy")===h.value?n.maxDate:fe.fromFormat(`${h.value}-12-31`,"yyyy-MM-dd").setLocale("pt-BR").toFormat("yyyy-MM-dd"));i.watch(o,V=>{V&&a.value&&(a.value=!1)}),i.watch(d,V=>{V&&l(V)});function g(V){s.value=s.value?s.value:fe.now().setLocale("pt-BR").toFormat("dd/MM/yyyy"),a.value=!a.value;let[,$,N]=s.value.toFormat("dd/MM/yyyy").split("/");$=V.index,s.value=fe.fromObject({year:N,month:$}).setLocale("pt-BR"),t.value=s.value.toFormat("yyyy-MM")}const v=i.computed(()=>n.minDate?fe.fromFormat(n.minDate,"yyyy-MM-dd"):null),_=i.computed(()=>n.maxDate?fe.fromFormat(n.maxDate,"yyyy-MM-dd"):null);function k(){return v.value?s.value.minus({year:1}).startOf("year")>=v.value.startOf("year"):!0}function x(){return _.value?s.value.plus({year:1}).startOf("year")<=_.value.startOf("year"):!0}function M(){if(k()){if(fe.min(s.value.minus({year:1}),v.value)!==v.value){s.value=v.value,t.value=s.value.toFormat("yyyy-MM");return}s.value=s.value.minus({year:1})}}function B(){if(x()){if(fe.max(s.value.plus({year:1}),_.value)!==_.value){s.value=_.value,t.value=s.value.toFormat("yyyy-MM");return}s.value=s.value.plus({year:1})}}function C(){n.disabled||(r.value=hy(d,340,n.mobile||n.floatingLabel),a.value=!a.value)}return(V,$)=>(i.openBlock(),i.createElementBlock("div",WK,[i.createVNode(Wi,i.mergeProps({ref:"baseInput"},n,{modelValue:f.value,"onUpdate:modelValue":$[0]||($[0]=N=>f.value=N),type:"text","floating-label":e.floatingLabel||e.mobile,readonly:!0,onClick:C}),{"trailing-icon":i.withCtx(()=>[i.createElementVNode("div",YK,[i.createVNode(ve,{height:"20",width:"20",name:"calendar-outline"})])]),_:1},16,["modelValue","floating-label"]),i.createVNode(i.Transition,{name:"month-and-year-picker-animation"},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",{ref:"calendar",class:i.normalizeClass(`month-and-year-picker__dropdown--${r.value}`),onMousedown:$[2]||($[2]=i.withModifiers((...N)=>V.handleCalendarMouseDown&&V.handleCalendarMouseDown(...N),["prevent"]))},[i.createElementVNode("div",jK,[i.createElementVNode("span",{class:"dropdown__month-and-title--no-hover",onClick:$[1]||($[1]=(...N)=>V.toggleYearPickerDisplay&&V.toggleYearPickerDisplay(...N))},i.toDisplayString(h.value),1),i.createVNode(Ue,null,{default:i.withCtx(()=>[i.createVNode(ve,{height:"20",width:"20",name:"caret-up-outline",class:i.normalizeClass(["dropdown__right-caret",{"dropdown__caret--disabled":!k()}]),onClick:M},null,8,["class"]),i.createVNode(ve,{height:"20",width:"20",name:"caret-down-outline",class:i.normalizeClass(["dropdown__left-caret",{"dropdown__caret--disabled":!x()}]),onClick:B},null,8,["class"])]),_:1})]),i.createVNode(my,{ref:"monthPicker","selected-date":t.value,"min-date":m.value,"max-date":y.value,variant:e.variant,onClick:g},null,8,["selected-date","min-date","max-date","variant"])],34),[[i.vShow,a.value]])]),_:1})],512))}}),[["__scopeId","data-v-60b46498"]]),qK={class:"multi-file-input"},GK={class:"multi-file-input__file-container"},KK={class:"multi-file-input__box"},ZK={class:"multi-file-input__badges_section"},XK={class:"multi-file-input__badge-content"},JK={key:0,class:"multi-file-input__empty-state"},QK={key:1,class:"multi-file-input__list-container"},eZ={class:"multi-file-input__list"},tZ={class:"multi-file-input__actions"},nZ={key:0,class:"multi-file-input__alert"},iZ={class:"multi-file-input__footer"},aZ=ie(Object.assign({name:"CdsMultiFileInput"},{__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(e,{emit:t}){const n=e,a=t,r=i.ref(0),s=i.ref({}),o=i.ref([]),l=i.ref(n.documents.map(x=>({id:oa(),value:x.name,required:x.required,active:!1,file:null}))),d=i.computed(()=>o.value.filter(x=>{var M;return(M=x.selectedLabel)==null?void 0:M.id}).map(x=>x.selectedLabel.id)),h=i.computed(()=>{const x={},M=[];return d.value.forEach(B=>{x[B]?x[B]+=1:x[B]=1}),Object.keys(x).forEach(B=>{x[B]>1&&M.push(B)}),M}),f=i.computed(()=>_()&&h.value.length==0&&k());i.watch(()=>o.value,()=>{l.value.forEach(x=>{x.active=d.value.includes(x.id)})},{deep:!0});function m(x){x.name&&(o.value.push({file:x,selectedLabel:null}),r.value+=1,s.value=null)}function y(x){const M=o.value.indexOf(x);M>-1&&o.value.splice(M,1)}function g(x){var M;return h.value.includes((M=x.selectedLabel)==null?void 0:M.id)}function v(){a("submit",o.value)}function _(){return o.value.every(x=>{var M;return(M=x.selectedLabel)==null?void 0:M.id})}function k(){return l.value.filter(x=>x.required).every(x=>x.active)}return(x,M)=>(i.openBlock(),i.createElementBlock("div",qK,[i.createElementVNode("div",GK,[(i.openBlock(),i.createBlock(By,i.mergeProps({key:r.value,modelValue:s.value,"onUpdate:modelValue":M[0]||(M[0]=B=>s.value=B)},x.$attrs,{"onUpdate:modelValue":m}),null,16,["modelValue"]))]),i.createElementVNode("div",KK,[M[2]||(M[2]=i.createElementVNode("div",{class:"multi-file-input__description"}," Os arquivos marcados com o asterisco (*) são obrigatórios: ",-1)),i.createElementVNode("div",ZK,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(l.value,B=>(i.openBlock(),i.createBlock(G1,{key:B,variant:B.active?e.variant:"gray"},{default:i.withCtx(()=>[i.createElementVNode("div",XK,[B.active?(i.openBlock(),i.createBlock(ve,{key:0,name:"check-outline",height:"16",width:"16"})):i.createCommentVNode("",!0),i.createElementVNode("div",null,i.toDisplayString(B.value)+" "+i.toDisplayString(B.required?"*":""),1)])]),_:2},1032,["variant"]))),128))]),o.value.length==0?(i.openBlock(),i.createElementBlock("div",JK," Os arquivos adicionados serão exibidos aqui ")):(i.openBlock(),i.createElementBlock("div",QK,[M[1]||(M[1]=i.createElementVNode("div",{class:"multi-file-input__list-title"}," Arquivos anexados ",-1)),i.createElementVNode("div",eZ,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,B=>(i.openBlock(),i.createElementBlock("div",{key:B,class:"multi-file-input__list-item"},[i.createElementVNode("div",{class:i.normalizeClass(["multi-file-input__item",`multi-file-input__item--${e.variant}`])},[i.createTextVNode(i.toDisplayString(B.file.name)+" ",1),i.createElementVNode("div",null,[i.createElementVNode("div",tZ,[i.createVNode(Vh,{modelValue:B.selectedLabel,"onUpdate:modelValue":C=>B.selectedLabel=C,options:l.value,label:"",style:{display:"flex"}},null,8,["modelValue","onUpdate:modelValue","options"]),i.createVNode(gu,{icon:"trash-outline",size:"lg",onClick:C=>y(B)},null,8,["onClick"])]),g(B)?(i.openBlock(),i.createElementBlock("div",nZ," Arquivo duplicado. ")):i.createCommentVNode("",!0)])],2)]))),128))])])),i.createElementVNode("div",iZ,[i.createVNode(fn,{secondary:e.buttonSecondary,variant:e.variant,disabled:!f.value,onButtonClick:v},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.submitButtonText),1)]),_:1},8,["secondary","variant","disabled"])])])]))}}),[["__scopeId","data-v-80563c22"]]);function Tf(e){return e===0?!1:Array.isArray(e)&&e.length===0?!0:!e}function rZ(e){return(...t)=>!e(...t)}function sZ(e,t){return e===void 0&&(e="undefined"),e===null&&(e="null"),e===!1&&(e="false"),e.toString().toLowerCase().indexOf(t.trim())!==-1}function oZ(e){return e.filter(t=>!t.$isLabel)}function If(e,t){return n=>n.reduce((a,r)=>r[e]&&r[e].length?(a.push({$groupLabel:r[t],$isLabel:!0}),a.concat(r[e])):a,[])}const m6=(...e)=>t=>e.reduce((n,a)=>a(n),t);var lZ={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(e,t){return Tf(e)?"":t?e[t]:e}},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},filteringSortFunc:{type:Function,default:null}},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 e=this.search||"",t=e.toLowerCase().trim();let n=this.options.concat();return this.internalSearch?n=this.groupValues?this.filterAndFlat(n,t,this.label):this.filterOptions(n,t,this.label,this.customLabel):n=this.groupValues?If(this.groupValues,this.groupLabel)(n):n,n=this.hideSelected?n.filter(rZ(this.isSelected)):n,this.taggable&&t.length&&!this.isExistingOption(t)&&(this.tagPosition==="bottom"?n.push({isTag:!0,label:e}):n.unshift({isTag:!0,label:e})),n.slice(0,this.optionsLimit)},valueKeys(){return this.trackBy?this.internalValue.map(e=>e[this.trackBy]):this.internalValue},optionKeys(){return(this.groupValues?this.flatAndStrip(this.options):this.options).map(t=>this.customLabel(t,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(e,t,n){return m6(this.filterGroups(t,n,this.groupValues,this.groupLabel,this.customLabel),If(this.groupValues,this.groupLabel))(e)},flatAndStrip(e){return m6(If(this.groupValues,this.groupLabel),oZ)(e)},updateSearch(e){this.search=e},isExistingOption(e){return this.options?this.optionKeys.indexOf(e)>-1:!1},isSelected(e){const t=this.trackBy?e[this.trackBy]:e;return this.valueKeys.indexOf(t)>-1},isOptionDisabled(e){return!!e.$isDisabled},getOptionLabel(e){if(Tf(e))return"";if(e.isTag)return e.label;if(e.$isLabel)return e.$groupLabel;const t=this.customLabel(e,this.label);return Tf(t)?"":t},select(e,t){if(e.$isLabel&&this.groupSelect){this.selectGroup(e);return}if(!(this.blockKeys.indexOf(t)!==-1||this.disabled||e.$isDisabled||e.$isLabel)&&!(this.max&&this.multiple&&this.internalValue.length===this.max)&&!(t==="Tab"&&!this.pointerDirty)){if(e.isTag)this.$emit("tag",e.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(e)){t!=="Tab"&&this.removeElement(e);return}this.multiple?this.$emit("update:modelValue",this.internalValue.concat([e])):this.$emit("update:modelValue",e),this.$emit("select",e,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup(e){const t=this.options.find(n=>n[this.groupLabel]===e.$groupLabel);if(t){if(this.wholeGroupSelected(t)){this.$emit("remove",t[this.groupValues],this.id);const n=this.trackBy?t[this.groupValues].map(r=>r[this.trackBy]):t[this.groupValues],a=this.internalValue.filter(r=>n.indexOf(this.trackBy?r[this.trackBy]:r)===-1);this.$emit("update:modelValue",a)}else{const n=t[this.groupValues].filter(a=>!(this.isOptionDisabled(a)||this.isSelected(a)));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(e){return e[this.groupValues].every(t=>this.isSelected(t)||this.isOptionDisabled(t))},wholeGroupDisabled(e){return e[this.groupValues].every(this.isOptionDisabled)},removeElement(e,t=!0){if(this.disabled||e.$isDisabled)return;if(!this.allowEmpty&&this.internalValue.length<=1){this.deactivate();return}const n=typeof e=="object"?this.valueKeys.indexOf(e[this.trackBy]):this.valueKeys.indexOf(e);if(this.multiple){const a=this.internalValue.slice(0,n).concat(this.internalValue.slice(n+1));this.$emit("update:modelValue",a)}else this.$emit("update:modelValue",null);this.$emit("remove",e,this.id),this.closeOnSelect&&t&&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 e=this.$el.getBoundingClientRect().top,t=window.innerHeight-this.$el.getBoundingClientRect().bottom;t>this.maxHeight||t>e||this.openDirection==="below"||this.openDirection==="bottom"?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(t-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(e-40,this.maxHeight))},filterOptions(e,t,n,a){return t?e.filter(r=>sZ(a(r,n),t)).sort((r,s)=>typeof this.filteringSortFunc=="function"?this.filteringSortFunc(r,s):a(r,n).length-a(s,n).length):e},filterGroups(e,t,n,a,r){return s=>s.map(o=>{if(!o[n])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const l=this.filterOptions(o[n],e,t,r);return l.length?{[a]:o[a],[n]:l}:[]})}}},cZ={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(e,t){return{"multiselect__option--highlight":e===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(t)}},groupHighlight(e,t){if(!this.groupSelect)return["multiselect__option--disabled",{"multiselect__option--group":t.$isLabel}];const n=this.options.find(a=>a[this.groupLabel]===t.$groupLabel);return n&&!this.wholeGroupDisabled(n)?["multiselect__option--group",{"multiselect__option--highlight":e===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(n)}]:"multiselect__option--disabled"},addPointerElement({key:e}="Enter"){this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],e),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(e){this.pointer=e,this.pointerDirty=!0}}},g6={name:"vue-multiselect",mixins:[lZ,cZ],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:e=>`and ${e} more`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},spellcheck:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0},required:{type:Boolean,default:!1}},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)},isRequired(){return this.required===!1?!1:this.internalValue.length<=0}}};const dZ=["tabindex","aria-expanded","aria-owns","aria-activedescendant"],uZ={ref:"tags",class:"multiselect__tags"},hZ={class:"multiselect__tags-wrap"},fZ=["textContent"],pZ=["onKeypress","onMousedown"],mZ=["textContent"],gZ={class:"multiselect__spinner"},yZ=["name","id","spellcheck","placeholder","required","value","disabled","tabindex","aria-label","aria-controls"],bZ=["id","aria-multiselectable"],vZ={key:0},_Z={class:"multiselect__option"},wZ=["aria-selected","id","role"],kZ=["onClick","onMouseenter","data-select","data-selected","data-deselect"],CZ=["data-select","data-deselect","onMouseenter","onMousedown"],xZ={class:"multiselect__option"},SZ={class:"multiselect__option"};function BZ(e,t,n,a,r,s){return i.openBlock(),i.createElementBlock("div",{tabindex:e.searchable?-1:n.tabindex,class:i.normalizeClass([{"multiselect--active":e.isOpen,"multiselect--disabled":n.disabled,"multiselect--above":s.isAbove,"multiselect--has-options-group":s.hasOptionGroup},"multiselect"]),onFocus:t[14]||(t[14]=o=>e.activate()),onBlur:t[15]||(t[15]=o=>e.searchable?!1:e.deactivate()),onKeydown:[t[16]||(t[16]=i.withKeys(i.withModifiers(o=>e.pointerForward(),["self","prevent"]),["down"])),t[17]||(t[17]=i.withKeys(i.withModifiers(o=>e.pointerBackward(),["self","prevent"]),["up"]))],onKeypress:t[18]||(t[18]=i.withKeys(i.withModifiers(o=>e.addPointerElement(o),["stop","self"]),["enter","tab"])),onKeyup:t[19]||(t[19]=i.withKeys(o=>e.deactivate(),["esc"])),role:"combobox","aria-expanded":e.isOpen,"aria-owns":"listbox-"+e.id,"aria-activedescendant":e.isOpen&&e.pointer!==null?e.id+"-"+e.pointer:null},[i.renderSlot(e.$slots,"caret",{toggle:e.toggle},()=>[i.createElementVNode("div",{onMousedown:t[0]||(t[0]=i.withModifiers(o=>e.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),i.renderSlot(e.$slots,"clear",{search:e.search}),i.createElementVNode("div",uZ,[i.renderSlot(e.$slots,"selection",{search:e.search,remove:e.removeElement,values:s.visibleValues,isOpen:e.isOpen},()=>[i.withDirectives(i.createElementVNode("div",hZ,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.visibleValues,(o,l)=>i.renderSlot(e.$slots,"tag",{option:o,search:e.search,remove:e.removeElement},()=>[(i.openBlock(),i.createElementBlock("span",{class:"multiselect__tag",key:l,onMousedown:t[1]||(t[1]=i.withModifiers(()=>{},["prevent"]))},[i.createElementVNode("span",{textContent:i.toDisplayString(e.getOptionLabel(o))},null,8,fZ),i.createElementVNode("i",{tabindex:"1",onKeypress:i.withKeys(i.withModifiers(d=>e.removeElement(o),["prevent"]),["enter"]),onMousedown:i.withModifiers(d=>e.removeElement(o),["prevent"]),class:"multiselect__tag-icon"},null,40,pZ)],32))])),256))],512),[[i.vShow,s.visibleValues.length>0]]),e.internalValue&&e.internalValue.length>n.limit?i.renderSlot(e.$slots,"limit",{key:0},()=>[i.createElementVNode("strong",{class:"multiselect__strong",textContent:i.toDisplayString(n.limitText(e.internalValue.length-n.limit))},null,8,mZ)]):i.createCommentVNode("v-if",!0)]),i.createVNode(i.Transition,{name:"multiselect__loading"},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"loading",{},()=>[i.withDirectives(i.createElementVNode("div",gZ,null,512),[[i.vShow,n.loading]])])]),_:3}),e.searchable?(i.openBlock(),i.createElementBlock("input",{key:0,ref:"search",name:n.name,id:e.id,type:"text",autocomplete:"off",spellcheck:n.spellcheck,placeholder:e.placeholder,required:s.isRequired,style:i.normalizeStyle(s.inputStyle),value:e.search,disabled:n.disabled,tabindex:n.tabindex,"aria-label":n.name+"-searchbox",onInput:t[2]||(t[2]=o=>e.updateSearch(o.target.value)),onFocus:t[3]||(t[3]=i.withModifiers(o=>e.activate(),["prevent"])),onBlur:t[4]||(t[4]=i.withModifiers(o=>e.deactivate(),["prevent"])),onKeyup:t[5]||(t[5]=i.withKeys(o=>e.deactivate(),["esc"])),onKeydown:[t[6]||(t[6]=i.withKeys(i.withModifiers(o=>e.pointerForward(),["prevent"]),["down"])),t[7]||(t[7]=i.withKeys(i.withModifiers(o=>e.pointerBackward(),["prevent"]),["up"])),t[9]||(t[9]=i.withKeys(i.withModifiers(o=>e.removeLastElement(),["stop"]),["delete"]))],onKeypress:t[8]||(t[8]=i.withKeys(i.withModifiers(o=>e.addPointerElement(o),["prevent","stop","self"]),["enter"])),class:"multiselect__input","aria-controls":"listbox-"+e.id},null,44,yZ)):i.createCommentVNode("v-if",!0),s.isSingleLabelVisible?(i.openBlock(),i.createElementBlock("span",{key:1,class:"multiselect__single",onMousedown:t[10]||(t[10]=i.withModifiers((...o)=>e.toggle&&e.toggle(...o),["prevent"]))},[i.renderSlot(e.$slots,"singleLabel",{option:s.singleValue},()=>[i.createTextVNode(i.toDisplayString(e.currentOptionLabel),1)])],32)):i.createCommentVNode("v-if",!0),s.isPlaceholderVisible?(i.openBlock(),i.createElementBlock("span",{key:2,class:"multiselect__placeholder",onMousedown:t[11]||(t[11]=i.withModifiers((...o)=>e.toggle&&e.toggle(...o),["prevent"]))},[i.renderSlot(e.$slots,"placeholder",{},()=>[i.createTextVNode(i.toDisplayString(e.placeholder),1)])],32)):i.createCommentVNode("v-if",!0)],512),i.createVNode(i.Transition,{name:"multiselect",persisted:""},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",{class:"multiselect__content-wrapper",onFocus:t[12]||(t[12]=(...o)=>e.activate&&e.activate(...o)),tabindex:"-1",onMousedown:t[13]||(t[13]=i.withModifiers(()=>{},["prevent"])),style:i.normalizeStyle({maxHeight:e.optimizedHeight+"px"}),ref:"list"},[i.createElementVNode("ul",{class:"multiselect__content",style:i.normalizeStyle(s.contentStyle),role:"listbox",id:"listbox-"+e.id,"aria-multiselectable":e.multiple},[i.renderSlot(e.$slots,"beforeList"),e.multiple&&e.max===e.internalValue.length?(i.openBlock(),i.createElementBlock("li",vZ,[i.createElementVNode("span",_Z,[i.renderSlot(e.$slots,"maxElements",{},()=>[i.createTextVNode("Maximum of "+i.toDisplayString(e.max)+" options selected. First remove a selected option to select another.",1)])])])):i.createCommentVNode("v-if",!0),!e.max||e.internalValue.length<e.max?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:1},i.renderList(e.filteredOptions,(o,l)=>(i.openBlock(),i.createElementBlock("li",{class:"multiselect__element",key:l,"aria-selected":e.isSelected(o),id:e.id+"-"+l,role:o&&(o.$isLabel||o.$isDisabled)?null:"option"},[o&&(o.$isLabel||o.$isDisabled)?i.createCommentVNode("v-if",!0):(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass([e.optionHighlight(l,o),"multiselect__option"]),onClick:i.withModifiers(d=>e.select(o),["stop"]),onMouseenter:i.withModifiers(d=>e.pointerSet(l),["self"]),"data-select":o&&o.isTag?e.tagPlaceholder:s.selectLabelText,"data-selected":s.selectedLabelText,"data-deselect":s.deselectLabelText},[i.renderSlot(e.$slots,"option",{option:o,search:e.search,index:l},()=>[i.createElementVNode("span",null,i.toDisplayString(e.getOptionLabel(o)),1)])],42,kZ)),o&&(o.$isLabel||o.$isDisabled)?(i.openBlock(),i.createElementBlock("span",{key:1,"data-select":e.groupSelect&&s.selectGroupLabelText,"data-deselect":e.groupSelect&&s.deselectGroupLabelText,class:i.normalizeClass([e.groupHighlight(l,o),"multiselect__option"]),onMouseenter:i.withModifiers(d=>e.groupSelect&&e.pointerSet(l),["self"]),onMousedown:i.withModifiers(d=>e.selectGroup(o),["prevent"])},[i.renderSlot(e.$slots,"option",{option:o,search:e.search,index:l},()=>[i.createElementVNode("span",null,i.toDisplayString(e.getOptionLabel(o)),1)])],42,CZ)):i.createCommentVNode("v-if",!0)],8,wZ))),128)):i.createCommentVNode("v-if",!0),i.withDirectives(i.createElementVNode("li",null,[i.createElementVNode("span",xZ,[i.renderSlot(e.$slots,"noResult",{search:e.search},()=>[t[20]||(t[20]=i.createTextVNode("No elements found. Consider changing the search query."))])])],512),[[i.vShow,n.showNoResults&&e.filteredOptions.length===0&&e.search&&!n.loading]]),i.withDirectives(i.createElementVNode("li",null,[i.createElementVNode("span",SZ,[i.renderSlot(e.$slots,"noOptions",{},()=>[t[21]||(t[21]=i.createTextVNode("List is empty."))])])],512),[[i.vShow,n.showNoOptions&&(e.options.length===0||s.hasOptionGroup===!0&&e.filteredOptions.length===0)&&!e.search&&!n.loading]]),i.renderSlot(e.$slots,"afterList")],12,bZ)],36),[[i.vShow,e.isOpen]])]),_:3})],42,dZ)}g6.render=BZ;const Co=0,xo=1,Hu=e=>e===void 0?{}:JSON.parse(JSON.stringify(e)),Af={name:"CdsMultiselect",components:{Multiselect:g6,CdsDivider:zr,CdsCheckbox:Qs,CdsSpacer:nu},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:Hu(this.options),groupValues:null,groupLabel:null,selectAllValue:!1,queryString:"",indeterminate:!1,sassColorVariables:ai,uniqueKey:Qa()}},computed:{hasSlots(){return!!Object.keys(this.$slots).length},errorState(){return this.state==="invalid"},selectedFancyMessage(){return e=>e===1?this.selectedValue[0][this.optionsField]:`${e} 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[Co]&&this.internalOptions[Co].$status||this.internalOptions[xo]&&this.internalOptions[xo].$status},attrs(){const{label:e,trackBy:t,options:n,...a}=this.$attrs;return a},inputBackgroundColor(){return this.disabled?this.sassColorVariables.n20:this.sassColorVariables.n0},resolveMultiselectHeight(){return this.mobile?"48px":"40px"},resolveMultiselectTop(){return this.mobile?"6px":"5px"}},watch:{selectedValue(e){const t=Hu(e);t.forEach(n=>delete n.isSelected),this.indeterminate=e.length>0&&e.length<this.options.length,this.$emit("input",t),this.$emit("update:modelValue",t)},isAllItemsSelected(e){if(!e&&this.selectAllValue){this.selectAllValue=!1;return}e&&!this.selectAllValue&&(this.selectAllValue=!0)},indeterminate(e){if(this.hideSelectAll)return;const t=document.getElementById(`select-all-input-id-${this.uniqueKey}`);t.indeterminate=e}},mounted(){!this.modelValue||this.modelValue.length===0||(this.selectedValue=this.modelValue,this.updateRenderOptions(),this.indeterminate=this.hasSelectedValues&&this.selectedValue.length<this.options.length)},methods:{unselectItem(e){this.handleSelectItem(e),this.$emit("remove",e)},selectItem(e){this.handleSelectItem(e),this.$emit("select",e)},handleSelectItem(e){this.isGroupMode?(this.internalOptions[Co].options.forEach(t=>{t[this.optionsField]===e[this.optionsField]&&(t.isSelected=!t.isSelected)}),this.internalOptions[xo].options.forEach(t=>{t[this.optionsField]===e[this.optionsField]&&(t.isSelected=!t.isSelected)})):this.internalOptions.forEach(t=>{t[this.optionsField]===e[this.optionsField]&&(t.isSelected=!t.isSelected)})},toggleSelectAll(){this.selectAllValue=!this.hasSelectedValues,this.selectAllValue?this.selectedValue=this.options:this.selectedValue=[],this.$nextTick().then(()=>{this.isGroupMode?(this.internalOptions[Co].options=this.internalOptions[Co].options.map(e=>({...e,isSelected:this.selectAllValue})),this.internalOptions[xo].options=this.internalOptions[xo].options.map(e=>({...e,isSelected:this.selectAllValue}))):this.internalOptions=this.internalOptions.map(e=>({...e,isSelected:this.selectAllValue}))})},addItemViaCustomCheckbox(e){e.isSelected=!e.isSelected,this.selectedValue=[...this.selectedValue,e]},handleClose(){this.updateRenderOptions(),this.setContentWrapperScrollToTop(),this.$emit("close")},updateRenderOptions(){if(!this.hasSelectedValues){this.internalOptions=Hu(this.options.map(t=>({...t,isSelected:!1}))),this.groupValues=null,this.groupLabel=null;return}this.selectedValue.forEach(t=>{t.isSelected=!0});let e=Hu(this.options);e=e.map(t=>(this.selectedValue.some(a=>a[this.optionsField]===t[this.optionsField])?t.isSelected=!0:t.isSelected=!1,t)),this.internalOptions=[{$status:"Selecionados",options:[]},{$status:"Não selecionados",options:[]}],this.internalOptions[Co].options=this.selectedValue,this.internalOptions[xo].options=e.filter(t=>!t.isSelected),this.groupValues="options",this.groupLabel="$status"},handleSearchChange(e){this.queryString=e},setContentWrapperScrollToTop(){document.querySelector(`span[data-cds-multiselect-identifier='${this.uniqueKey}']`).getElementsByClassName("multiselect__content-wrapper")[0].scrollTo(0,0)}}},y6=()=>{i.useCssVars(e=>({f087ae7e:e.inputBackgroundColor,"08b94486":e.resolveMultiselectHeight,"64fc3b54":e.resolveMultiselectTop}))},b6=Af.setup;Af.setup=b6?(e,t)=>(y6(),b6(e,t)):y6;const MZ=["data-cds-multiselect-identifier"],EZ={key:0},OZ=["for"],DZ={key:0,class:"label__required-indicator"},VZ={key:1,class:"cds-multiselect__grouped-divider"},$Z={key:0,class:"cds-multiselect__group-label"},TZ={key:1,class:"cds-multiselect__option"},IZ={class:"option__checkbox"},AZ=["id","onUpdate:modelValue","name"],NZ=["id","for","onClick"],zZ={key:0,class:"multiselect__single"},LZ={key:1},PZ={key:0,class:"clustered-multiselect__error-message"};function FZ(e,t,n,a,r,s){const o=i.resolveComponent("CdsCheckbox"),l=i.resolveComponent("CdsSpacer"),d=i.resolveComponent("CdsDivider"),h=i.resolveComponent("multiselect",!0);return i.openBlock(),i.createElementBlock("span",{class:"cds-multiselect","data-cds-multiselect-identifier":r.uniqueKey},[i.createElementVNode("span",null,[s.hasSlots?(i.openBlock(),i.createElementBlock("span",EZ,[i.renderSlot(e.$slots,"label")])):(i.openBlock(),i.createElementBlock("label",{key:1,class:i.normalizeClass(n.mobile?"clustered-multiselect__mobile-label":"clustered-multiselect__label")},[i.createElementVNode("div",{class:"label__content",for:`clustered-multiselect-${r.uniqueKey}`},[i.createElementVNode("span",null,i.toDisplayString(n.label),1),n.required?(i.openBlock(),i.createElementBlock("span",DZ," * ")):i.createCommentVNode("",!0)],8,OZ)],2))]),i.createVNode(h,i.mergeProps({id:`clustered-multiselect-${r.uniqueKey}`,ref:"cds-multiselect"},s.attrs,{modelValue:r.selectedValue,"onUpdate:modelValue":t[2]||(t[2]=f=>r.selectedValue=f),options:r.internalOptions,label:n.optionsField,"track-by":n.trackBy,multiple:"","group-values":r.groupValues,"group-label":r.groupLabel,"close-on-select":!1,"clear-on-select":!1,"select-label":"","deselect-label":"","selected-label":"",disabled:n.disabled,placeholder:s.computedPlaceholder,"block-keys":["Delete","Enter"],onClose:s.handleClose,onSelect:s.selectItem,onRemove:s.unselectItem,onSearchChange:s.handleSearchChange}),{beforeList:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",null,[n.hideSelectAll?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:"cds-multiselect__option multiselect__option",onClick:t[1]||(t[1]=(...f)=>s.toggleSelectAll&&s.toggleSelectAll(...f))},[i.createVNode(l,{"margin-left":"2"},{default:i.withCtx(()=>[i.createVNode(o,{id:`select-all-input-id-${r.uniqueKey}`,modelValue:r.selectAllValue,"onUpdate:modelValue":t[0]||(t[0]=f=>r.selectAllValue=f),label:s.selectAllFancyMessage,indeterminate:r.indeterminate,variant:n.variant},null,8,["id","modelValue","label","indeterminate","variant"])]),_:1})])),s.isGroupMode?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",VZ,[i.createVNode(d,{dimmed:""})]))],512),[[i.vShow,!r.queryString&&n.options.length]])]),option:i.withCtx(({option:f})=>[f.$isLabel?(i.openBlock(),i.createElementBlock("div",$Z,[i.createVNode(d,{text:f.$groupLabel,inline:"",dimmed:""},null,8,["text"])])):(i.openBlock(),i.createElementBlock("div",TZ,[i.createElementVNode("div",IZ,[i.withDirectives(i.createElementVNode("input",{id:`input-${f[n.optionsField]}-${r.uniqueKey}`,"onUpdate:modelValue":m=>f.isSelected=m,type:"checkbox",name:`input-${f[n.optionsField]}-${r.uniqueKey}`,value:!0},null,8,AZ),[[i.vModelCheckbox,f.isSelected]]),i.createElementVNode("label",{id:`checkbox-${f[n.optionsField]}`,for:`input-${f[n.optionsField]}-${r.uniqueKey}`,class:i.normalizeClass(f.isSelected?`option__checkbox--${n.variant}`:""),onClick:m=>s.addItemViaCustomCheckbox(f)},null,10,NZ)]),i.renderSlot(e.$slots,"option",{option:f,optionField:n.optionsField},()=>[i.createTextVNode(i.toDisplayString(f[n.optionsField]),1)])]))]),selection:i.withCtx(({values:f,isOpen:m})=>[i.renderSlot(e.$slots,"selection",{values:f,isOpen:m,unselectItem:s.unselectItem},()=>[f.length&&!m?(i.openBlock(),i.createElementBlock("span",zZ,i.toDisplayString(s.selectedFancyMessage(f.length)),1)):(i.openBlock(),i.createElementBlock("span",LZ))])]),noResult:i.withCtx(()=>[t[3]||(t[3]=i.createTextVNode(' Nenhum resultado encontrado para: "')),i.createElementVNode("strong",null,i.toDisplayString(r.queryString),1),t[4]||(t[4]=i.createTextVNode('" '))]),noOptions:i.withCtx(()=>t[5]||(t[5]=[i.createTextVNode(" Não há nenhuma opção para ser exibida. ")])),_:3},16,["id","modelValue","options","label","track-by","group-values","group-label","disabled","placeholder","onClose","onSelect","onRemove","onSearchChange"]),s.errorState&&!n.disabled?(i.openBlock(),i.createElementBlock("div",PZ,i.toDisplayString(n.errorMessage),1)):i.createCommentVNode("",!0)],8,MZ)}const RZ=ie(Af,[["render",FZ]]);function HZ(e){return i.getCurrentScope()?(i.onScopeDispose(e),!0):!1}const v6=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const WZ=Object.prototype.toString,YZ=e=>WZ.call(e)==="[object Object]",So=()=>{},jZ=UZ();function UZ(){var e,t;return v6&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Nf(e){return Array.isArray(e)?e:[e]}function qZ(e,t,n){return i.watch(e,t,{...n,immediate:!0})}const _6=v6?window:void 0;function fc(e){var t;const n=i.toValue(e);return(t=n==null?void 0:n.$el)!=null?t:n}function pc(...e){const t=[],n=()=>{t.forEach(l=>l()),t.length=0},a=(l,d,h,f)=>(l.addEventListener(d,h,f),()=>l.removeEventListener(d,h,f)),r=i.computed(()=>{const l=Nf(i.toValue(e[0])).filter(d=>d!=null);return l.every(d=>typeof d!="string")?l:void 0}),s=qZ(()=>{var l,d;return[(d=(l=r.value)==null?void 0:l.map(h=>fc(h)))!=null?d:[_6].filter(h=>h!=null),Nf(i.toValue(r.value?e[1]:e[0])),Nf(i.unref(r.value?e[2]:e[1])),i.toValue(r.value?e[3]:e[2])]},([l,d,h,f])=>{if(n(),!(l!=null&&l.length)||!(d!=null&&d.length)||!(h!=null&&h.length))return;const m=YZ(f)?{...f}:f;t.push(...l.flatMap(y=>d.flatMap(g=>h.map(v=>a(y,g,v,m)))))},{flush:"post"}),o=()=>{s(),n()};return HZ(n),o}let w6=!1;function GZ(e,t,n={}){const{window:a=_6,ignore:r=[],capture:s=!0,detectIframe:o=!1,controls:l=!1}=n;if(!a)return l?{stop:So,cancel:So,trigger:So}:So;if(jZ&&!w6){w6=!0;const k={passive:!0};Array.from(a.document.body.children).forEach(x=>pc(x,"click",So,k)),pc(a.document.documentElement,"click",So,k)}let d=!0;const h=k=>i.toValue(r).some(x=>{if(typeof x=="string")return Array.from(a.document.querySelectorAll(x)).some(M=>M===k.target||k.composedPath().includes(M));{const M=fc(x);return M&&(k.target===M||k.composedPath().includes(M))}});function f(k){const x=i.toValue(k);return x&&x.$.subTree.shapeFlag===16}function m(k,x){const M=i.toValue(k),B=M.$.subTree&&M.$.subTree.children;return B==null||!Array.isArray(B)?!1:B.some(C=>C.el===x.target||x.composedPath().includes(C.el))}const y=k=>{const x=fc(e);if(k.target!=null&&!(!(x instanceof Element)&&f(e)&&m(e,k))&&!(!x||x===k.target||k.composedPath().includes(x))){if("detail"in k&&k.detail===0&&(d=!h(k)),!d){d=!0;return}t(k)}};let g=!1;const v=[pc(a,"click",k=>{g||(g=!0,setTimeout(()=>{g=!1},0),y(k))},{passive:!0,capture:s}),pc(a,"pointerdown",k=>{const x=fc(e);d=!h(k)&&!!(x&&!k.composedPath().includes(x))},{passive:!0}),o&&pc(a,"blur",k=>{setTimeout(()=>{var x;const M=fc(e);((x=a.document.activeElement)==null?void 0:x.tagName)==="IFRAME"&&!(M!=null&&M.contains(a.document.activeElement))&&t(k)},0)},{passive:!0})].filter(Boolean),_=()=>v.forEach(k=>k());return l?{stop:_,cancel:()=>{d=!1},trigger:k=>{d=!0,y(k),d=!1}}:_}const KZ={ref:"cds-combobox",class:"combobox"},ZZ={class:"badge"},XZ={key:0,class:"option__container"},JZ=["onClick"],QZ={key:1,class:"combobox__empty"},eX=ie(Object.assign({name:"CdsComboBox"},{__name:"ComboBox",props:i.mergeModels({label:{type:String,default:"Label"},options:{type:Array,default:()=>[],required:!0},required:{type:Boolean,default:!1,required:!1},fluid:{type:Boolean,default:!1,required:!1},disabled:{type:Boolean,default:!1,required:!1},optionsKeyField:{type:String,default:"name",required:!0},optionsValueField:{type:String,default:"value",required:!0},state:{type:String,default:"default"},errorMessage:{type:String,default:"Valor inválido"},tooltip:{type:String,default:null},tooltipIcon:{type:String,default:"info-outline"},variant:{type:String,default:"green"}},{modelValue:{type:Array,default:()=>[]},modelModifiers:{}}),emits:i.mergeModels(["update:modelValue"],["update:modelValue"]),setup(e,{emit:t}){i.useCssVars(P=>({"6a29fe79":f.value,fe456b9c:m.value}));const n=e,a=t,r=i.ref([]),s=i.ref(new Set),o=i.ref(!1),l=i.ref(""),d=i.useModel(e,"modelValue"),h=i.useTemplateRef("cds-combobox"),f=i.computed(()=>n.fluid?"100%":"fit-content"),m=i.computed(()=>n.fluid?"100%":"266px"),y=i.computed(()=>s.value.size>=1?"Desfazer seleção":"Selecionar todos"),g=i.computed(()=>s.value.size>0),v=i.computed(()=>s.value.size===r.value.length),_=i.computed(()=>g.value&&!v.value),k=i.computed(()=>l.value?r.value.filter(P=>P[n.optionsValueField].toLowerCase().includes(l.value.toLowerCase())):r.value),x=i.computed(()=>!!l.value.trim()),M=i.computed(()=>r.value.some(P=>P[n.optionsValueField].toLowerCase()===l.value.trim().toLowerCase()));i.watch(()=>n.options,(P,Z)=>{P!==Z&&(r.value=P)},{immediate:!0}),i.watchEffect(()=>{const P=new Set(r.value.filter(se=>d.value.some(U=>U[n.optionsKeyField]===se[n.optionsKeyField])));[...P].some(se=>![...s.value].some(U=>U[n.optionsKeyField]===se[n.optionsKeyField]))&&(s.value=P)}),i.watch(n.modelValue,P=>{if(P&&P.length>0){const Z=new Set(P.map(se=>se[n.optionsKeyField]));s.value=Z}},{immediate:!0}),i.watch(s,()=>{a("update:modelValue",Array.from(s.value))},{deep:!0,immediate:!0}),GZ(h,()=>{o.value=!1,l.value=""});const B=P=>s.value.has(P),C=P=>{if(B(P)){s.value.delete(P);return}s.value.add(P)},V=()=>{s.value=new Set(r.value)},$=()=>{s.value.clear()},N=()=>{if(!x.value||M.value)return;const P={[n.optionsValueField]:l.value.trim(),[n.optionsKeyField]:l.value.toLowerCase().trim().replace(/ /g,"-")};s.value.add(P),r.value.push(P),l.value=""},I=()=>{N()},F=()=>{o.value=!o.value},q=()=>{o.value||l.value&&l.value.trim()===""||(o.value=!0)},Q=()=>{F(),q()};return(P,Z)=>(i.openBlock(),i.createElementBlock("div",KZ,[i.createElementVNode("div",{class:i.normalizeClass(["combobox__container",e.fluid?"combobox__container--fluid":"combobox__container--fit"])},[i.createVNode(Wi,{"model-value":l.value,"enable-top-content":s.value.size>0,label:e.label,placeholder:`Buscar ${e.label.toLowerCase()}`,state:e.state,"error-message":e.errorMessage,required:e.required,disabled:e.disabled,fluid:e.fluid,tooltip:e.tooltip,"tooltip-icon":e.tooltipIcon,onKeydown:i.withKeys(I,["enter"]),onClick:Q,onFocus:q,"onUpdate:modelValue":Z[0]||(Z[0]=se=>l.value=se)},{"top-content":i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,(se,U)=>(i.openBlock(),i.createElementBlock("div",{key:U},[i.createVNode(G1,{style:{cursor:"pointer"},variant:e.variant,size:"md",onClick:me=>C(se)},{default:i.withCtx(()=>[i.createElementVNode("div",ZZ,[i.createVNode(q1,{width:"220"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(se[e.optionsValueField]),1)]),_:2},1024),i.createVNode(ve,{class:"badge__icon",name:"x-outline",height:"12",width:"12"})])]),_:2},1032,["variant","onClick"])]))),128))]),_:1},8,["model-value","enable-top-content","label","placeholder","state","error-message","required","disabled","fluid","tooltip","tooltip-icon"]),o.value?(i.openBlock(),i.createElementBlock("div",{key:0,ref:"combobox-options",class:i.normalizeClass(["combobox__options",P.selectOptionsClass])},[r.value.length>0?(i.openBlock(),i.createElementBlock("div",XZ,[i.createVNode(Qs,{class:"option__text",variant:e.variant,label:y.value,"model-value":v.value&&g.value,indeterminate:_.value,"onUpdate:modelValue":Z[1]||(Z[1]=se=>g.value?$():V())},null,8,["variant","label","model-value","indeterminate"]),i.createVNode(zr,{light:""}),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(k.value,(se,U)=>(i.openBlock(),i.createElementBlock("div",{key:se[e.optionsKeyField]||U,class:i.normalizeClass(["option__text",{"option__text--selected":B(se[e.optionsKeyField])}]),onClick:me=>C(se,B(se[e.optionsKeyField]))},[i.createVNode(Qs,{variant:e.variant,label:se[e.optionsValueField],prominent:B(se),"model-value":B(se)},null,8,["variant","label","prominent","model-value"])],10,JZ))),128))])):i.createCommentVNode("",!0),o.value&&r.value.length===0&&l.value.length===0?(i.openBlock(),i.createElementBlock("div",QZ," Nenhuma opção encontrada ")):i.createCommentVNode("",!0),!M.value&&x.value?(i.openBlock(),i.createElementBlock("div",{key:2,class:"option__button",onClick:N}," Adicionar "+i.toDisplayString(l.value),1)):i.createCommentVNode("",!0)],2)):i.createCommentVNode("",!0)],2)],512))}}),[["__scopeId","data-v-3829b734"]]),tX={name:"CdsNavBar",props:{items:{type:Array,default:()=>[],required:!0,validator:e=>!e.filter(n=>{const a=sn(n.path)&&sn(n.route),r=sn(n.items)||n.items.filter(s=>sn(s.path)&&sn(s.route)).length;return sn(n.label)||r&&a}).length},activeItem:{type:Object,default:()=>({}),required:!0},variant:{type:String,default:"green",validator:e=>Ma.includes(e)}},data(){return{internalActiveItem:this.activeItem,colorOptions:Ma}},computed:{activeBorderStyle(){return{"--indicatorColor":this.colorHexCode(this.variant)}}},watch:{items:{handler(e){const t=e.filter(n=>n.name===this.activeItem.name);[this.internalActiveItem]=t.length?t:e},immediate:!0}},mounted(){this.internalActiveItem=this.activeItem},methods:{colorHexCode:Jl,handleClick(e,t){this.internalActiveItem=t,this.$emit("navbar-click",this.internalActiveItem)},isActive(e){return so(this.internalActiveItem,e)},resolveRoute({route:e,path:t}){const n=sn(e)?t:e;return n instanceof String?{path:n}:n},routerPushTo(e){return this.resolveRoute(e)?this.resolveRoute(e).path:null},indicatorClass(e){return this.isActive(e)?`item__indicator--active--${this.variant}`:""}}},nX={id:"nav-bar"};function iX(e,t,n,a,r,s){const o=i.resolveComponent("router-link");return i.openBlock(),i.createElementBlock("div",nX,[i.createElementVNode("ul",{class:i.normalizeClass({"nav-bar__container":n.items.length>=1})},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.items,(l,d)=>(i.openBlock(),i.createElementBlock("li",{key:`${d}-${l.name}-item`,role:"presentation",class:i.normalizeClass(["nav-bar__item-container",s.isActive(l)?"nav-bar__item-container--active":"nav-bar__item-container--inactive"])},[i.createVNode(o,{to:s.routerPushTo(l),class:i.normalizeClass(["nav-bar__item",s.isActive(l)?"nav-bar__item--active":"nav-bar__item--inactive"]),onClick:h=>s.handleClick(h,l)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(l.label),1)]),_:2},1032,["to","class","onClick"]),i.createElementVNode("div",{class:i.normalizeClass(s.indicatorClass(l)),style:i.normalizeStyle(s.activeBorderStyle)},null,6)],2))),128))],2)])}const aX=ie(tX,[["render",iX]]),rX={mounted(e,t){const n=s=>{if(s==0)return"R$ 0,00";if(!s)return"";let o=String(s).replace(/\D/g,"");return o?(parseFloat(o)/100).toLocaleString("pt-BR",{style:"currency",currency:"BRL"}):"R$ 0,00"};let a=!1;const r=s=>{if(a)return;a=!0;let o=String(s.target.value||""),l=o.replace(/\D/g,"");l.length>1&&l.startsWith("0")&&(l=l.replace(/^0+/,""));let d=parseFloat(l||"0")/100;const h=n(o);s.target.value=h;const f=new Event("input",{bubbles:!0});Object.defineProperty(f,"target",{value:{value:d},writable:!1}),e.dispatchEvent(f),a=!1};e.addEventListener("input",r),e.value=n(t.value||""),e._inputHandler=r},updated(e,t){const n=a=>{if(!a)return"";let r=String(a).replace(/\D/g,"");return(parseFloat(r)/100).toLocaleString("pt-BR",{style:"currency",currency:"BRL"})};e.value=n(t.value||"")},unmounted(e){e._inputHandler&&e.removeEventListener("input",e._inputHandler)}},k6=e=>{let t=e.replace("R$","");return t=t.replaceAll(".",""),t=t.replace(/(.*),(\d{2})/g,"$1.$2"),+t},sX=Object.assign({name:"CdsNumberInput"},{__name:"NumberInput",props:i.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:null},supportLink:{type:String,default:null},supportLinkUrl:{type:[String,null],default:null},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:i.mergeModels({...mr},["update:modelValue","update:unmaskedValue"]),setup(e,{expose:t,emit:n}){var M,B;const a=ro,r=i.useTemplateRef("baseInput"),s=i.useModel(e,"modelValue"),o=i.useModel(e,"unmaskedValue"),l=e,d=n,h=i.ref(""),{emitClick:f,emitChange:m,emitFocus:y,emitBlur:g,emitKeydown:v}=pr(d);let _={};i.watch(s,(C,V)=>{if(C===V)return;if(!l.money){h.value=C;return}if(!C){h.value="R$ 0,00";return}if(typeof C=="number"){h.value=`R$ ${C.toFixed(2).replace(".",",")}`;return}if(typeof C=="string"&&C.startsWith("R$")){h.value=C;return}const $=parseFloat(C);h.value=isNaN($)?`R$ ${C.replace(".",",")}`:$.toLocaleString("pt-BR",{style:"currency",currency:"BRL"})},{immediate:!0}),i.watch(h,(C,V)=>{if(C!==V){let $=String(C);l.money?(o.value=k6($),s.value=$):l.mask?(h.value=$,s.value=$,o.value=+$.replace(/\D/g,"")):$.length>15?h.value=+$.slice(0,15):(s.value=+$,o.value=+$)}}),i.onMounted(()=>{l.money&&r.value&&r.value.componentRef&&(_={value:s.value,oldValue:"",instance:r.value.componentRef,modifiers:{},arg:null},rX.mounted(r.value.componentRef,_))});function k(){l.money&&(h.value=h.value==0||h.value==""?"R$ 0,00":h.value),y()}function x(){s.value=h.value,m()}return t({componentRef:(M=r.value)==null?void 0:M.componentRef,isFocused:(B=r.value)==null?void 0:B.isFocused,focus:()=>{var C;return(C=r.value)==null?void 0:C.focus()},blur:()=>{var C;return(C=r.value)==null?void 0:C.blur()},clear:()=>{var C;return(C=r.value)==null?void 0:C.clear()},select:()=>{var C;return(C=r.value)==null?void 0:C.select()}}),(C,V)=>(i.openBlock(),i.createElementBlock("div",null,[e.money?(i.openBlock(),i.createBlock(Wi,i.mergeProps({key:0,ref:"baseInput"},{...C.$attrs,...l},{modelValue:h.value,"onUpdate:modelValue":V[0]||(V[0]=$=>h.value=$),"floating-label":e.floatingLabel||e.mobile,"support-link":e.supportLink||e.linkText,"support-link-url":e.supportLinkUrl||e.linkUrl,onClick:i.unref(f),onChange:x,onFocus:k,onBlur:i.unref(g),onKeydown:i.unref(v)}),null,16,["modelValue","floating-label","support-link","support-link-url","onClick","onBlur","onKeydown"])):e.mask?i.withDirectives((i.openBlock(),i.createBlock(Wi,i.mergeProps({key:1,ref:"baseInput"},{...C.$attrs,...l},{modelValue:h.value,"onUpdate:modelValue":V[1]||(V[1]=$=>h.value=$),type:"tel","floating-label":e.floatingLabel||e.mobile,"support-link":e.supportLink||e.linkText,"support-link-url":e.supportLinkUrl||e.linkUrl,onClick:i.unref(f),onChange:x,onFocus:k,onBlur:i.unref(g),onKeydown:i.unref(v)}),null,16,["modelValue","floating-label","support-link","support-link-url","onClick","onBlur","onKeydown"])),[[i.unref(a),e.mask]]):(i.openBlock(),i.createBlock(Wi,i.mergeProps({key:2,ref:"baseInput"},{...C.$attrs,...l},{modelValue:h.value,"onUpdate:modelValue":V[2]||(V[2]=$=>h.value=$),"floating-label":e.floatingLabel||e.mobile,"support-link":e.supportLink||e.linkText,"support-link-url":e.supportLinkUrl||e.linkUrl,type:"number",onClick:i.unref(f),onChange:x,onFocus:k,onBlur:i.unref(g),onKeydown:i.unref(v)}),null,16,["modelValue","floating-label","support-link","support-link-url","onClick","onBlur","onKeydown"]))]))}}),oX={name:"CdsOverlayLoader",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}`}}},lX={class:"overlay"};function cX(e,t,n,a,r,s){return i.openBlock(),i.createElementBlock("div",lX,[i.createElementVNode("div",{class:i.normalizeClass(s.computedSpinnerClass)},null,2)])}const dX=ie(oX,[["render",cX],["__scopeId","data-v-2c6e3f3c"]]),uX={name:"CdsPageContainer"},hX={class:"page-container__container"};function fX(e,t,n,a,r,s){return i.openBlock(),i.createElementBlock("div",hX,[i.renderSlot(e.$slots,"default",{},void 0,!0)])}const C6=ie(uX,[["render",fX],["__scopeId","data-v-ad3badda"]]),pX={class:"side-bar__header"},mX=["src"],gX={class:"search-button__text-container"},yX={key:0},bX=["onMouseleave"],vX=["onClick"],_X=["id","onMouseover"],wX={class:"side-bar__subitem-container"},kX={class:"side-bar__subitems"},CX=["href","target","onClick"],xX={key:0,class:"side-bar__subitem-link"},SX={key:1},BX={class:"side-bar__subitems--collapsed"},MX={class:"side-bar__tooltip-title"},EX=["href","onClick"],OX={key:0,class:"side-bar__subitem-link"},DX={key:0},VX={key:0},$X={class:"dropdown-button__dropdown"},TX=["onClick"],IX={class:"dropdown__text"},x6=Object.assign({name:"CdsSideBar"},{__name:"SideBar",props:{variant:{type:String,default:"green"},items:{type:Array,default:()=>[],required:!0,validator:e=>!e.filter(n=>{const a=sn(n.path)&&sn(n.route),r=sn(n.items)||n.items.filter(s=>sn(s.path)&&sn(s.route)).length;return sn(n.label)||r&&a}).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:null},logoImage:{type:String,default:null},light:{type:Boolean,default:!1},searchButton:{type:Boolean,default:!1}},emits:["sidebar-click","collapse-click","profile-menu-option-click","logo-click","logout","search-button-click"],setup(e,{expose:t,emit:n}){i.useCssVars(P=>({"8f2a5b90":x.value,"2da5d586":M.value}));const a=uu,r=e,s=n,o=i.ref({}),l=i.ref(null),d=i.ref(!0),h=i.ref(0),f=i.ref([]),m=i.ref("Sair"),y=i.ref(!1),g=i.ref(!0),v=i.computed(()=>r.light?l.value===!0?"side-bar--light--collapsed":"side-bar--light":l.value===!0?"side-bar--dark--collapsed":"side-bar--dark"),_=i.computed(()=>l.value?"Maximizar":"Minimizar"),k=i.computed(()=>{var P;return r.showProfileMenu&&((P=r.profileMenuItems)==null?void 0:P.length)>0}),x=i.computed(()=>k.value?"pointer":"default"),M=i.computed(()=>l.value?"center":"space-between");i.watch(()=>r.items,P=>{const Z=P.filter(se=>se.name===r.activeItem.name);o.value=Z.length?Z[0]:P[0]},{immediate:!0}),i.watch(()=>r.collapsibleState,P=>{P!==null&&(l.value=P)},{immediate:!0}),i.watch(()=>r.activeItem,P=>{o.value=P},{immediate:!0}),i.watch(l,P=>{if(P){d.value=!1,g.value=!1;return}setTimeout(()=>{d.value=!0},500),setTimeout(()=>{g.value=!0},250)}),i.onBeforeMount(()=>{if(r.collapsible){if(r.collapsibleState!==null){l.value=r.collapsibleState;return}l.value=JSON.parse(window.localStorage.getItem("cdsSidebarCollapsed"))}}),i.onMounted(()=>{o.value=r.activeItem,r.items.forEach((P,Z)=>{f.value.push({name:P.label,index:Z,show:!1})})});function B(P,Z){if(!so(o.value,Z)){o.value=Z,d.value=!0,h.value+=1;return}if(Z.items&&Z.items.length>0){d.value=!d.value,h.value+=1;return}Z.icon&&(d.value=!1,h.value+=1),s("sidebar-click",o.value)}function C(P){let Z=!1,se=!1;return P.items&&P.items.length>0&&(Z=P.items.some(U=>so(U,o.value))),se=so(o.value,P),Z||se}function V({route:P,path:Z}){const se=sn(P)?Z:P;return se instanceof String?{path:se}:se}function $(P){return V(P)?V(P).path:null}function N(){l.value=!l.value,s("collapse-click",l.value),window.localStorage.setItem("cdsSidebarCollapsed",l.value)}function I(P){return!!P.items&&P.items.length>0&&C(P)&&d.value}function F(P){return I(P)?"caret-up-outline":"caret-down-outline"}function q(P){s("profile-menu-option-click",P),y.value=!1}function Q(){s("logo-click")}return t({isCollapsed:l}),(P,Z)=>{const se=i.resolveComponent("router-link");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(v.value)},[i.createElementVNode("div",{class:i.normalizeClass(`variant-resolver--${e.variant}`)},[i.createElementVNode("div",pX,[i.createElementVNode("div",{class:"side-bar__logo",onClick:Q},[l.value?i.createCommentVNode("",!0):i.renderSlot(P.$slots,"logo",{key:0},()=>[i.createElementVNode("img",{src:e.logoImage},null,8,mX)])]),e.collapsible?i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:0,class:"side-bar__collapsible",onClick:N},[l.value?(i.openBlock(),i.createBlock(ve,{key:1,name:"sidebar-expand-outline"})):(i.openBlock(),i.createBlock(ve,{key:0,name:"sidebar-collapse-outline"}))])),[[i.unref(a),_.value]]):i.createCommentVNode("",!0)]),e.searchButton?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["side-bar__search-button",{"side-bar__search-button--light":e.light}]),onClick:Z[0]||(Z[0]=U=>P.$emit("search-button-click"))},[i.createElementVNode("div",gX,[i.createVNode(ve,{height:"20",width:"20",name:"search-outline"}),g.value?(i.openBlock(),i.createElementBlock("span",yX,"Busca")):i.createCommentVNode("",!0)]),g.value?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(["side-bar__search-shortcut",{"side-bar__search-shortcut--light":e.light}])}," Ctrl + K ",2)):i.createCommentVNode("",!0)],2)):i.createCommentVNode("",!0),i.createElementVNode("ul",{class:i.normalizeClass({"side-bar__container":e.items.length>=1})},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.items,(U,me)=>{var be;return i.openBlock(),i.createElementBlock("li",{key:`${me}-${U.name}-item`,role:"presentation",onMouseleave:G=>f.value[me].show=!1},[i.createElementVNode("div",{class:i.normalizeClass(["side-bar__item-container",C(U)?"side-bar__item-container--active":"side-bar__item-container--inactive"]),onClick:G=>B(G,U)},[U.items||U.type==="link"?i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:0,id:U.label,class:i.normalizeClass(["side-bar__item",C(U)?"side-bar__item--active":"side-bar__item--inactive"]),onMouseover:G=>f.value[me].show=!0},[i.createElementVNode("div",null,[i.createVNode(ve,{name:U.icon,width:"20",height:"20"},null,8,["name"]),i.createElementVNode("span",null,i.toDisplayString(U.label),1)]),U.items&&U.items.length>0?(i.openBlock(),i.createBlock(ve,{key:h.value,name:F(U),class:i.normalizeClass({item__caret:C(U)}),width:"16",height:"16"},null,8,["name","class"])):i.createCommentVNode("",!0)],42,_X)),[[i.unref(a),l.value&&U.type==="link"?U.label:null]]):i.withDirectives((i.openBlock(),i.createBlock(se,{key:1,to:$(U),class:i.normalizeClass(["side-bar__item",C(U)?"side-bar__item--active":"side-bar__item--inactive"]),onClick:G=>B(G,U)},{default:i.withCtx(()=>[i.createElementVNode("div",null,[i.createVNode(ve,{name:U.icon,width:"20",height:"20"},null,8,["name"]),i.createElementVNode("span",null,i.toDisplayString(U.label),1)])]),_:2},1032,["to","class","onClick"])),[[i.unref(a),l.value?U.label:null]])],10,vX),l.value?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(i.Transition,{key:0,name:"collapse"},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",wX,[i.createElementVNode("div",kX,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(U.items,(G,ye)=>(i.openBlock(),i.createElementBlock("a",{key:`${ye}-${G.name}-item`,class:i.normalizeClass(["side-bar__subitem",C(G)&&(G==null?void 0:G.type)!=="external"?"side-bar__subitem--active":"side-bar__subitem--inactive"]),href:(G==null?void 0:G.type)==="external"?G.route.path:"javascript:void(0)",target:(G==null?void 0:G.type)==="external"?"_blank":"_self",rel:"noopener noreferrer",onClick:Y=>B(Y,G)},[(G==null?void 0:G.type)==="external"?(i.openBlock(),i.createElementBlock("div",xX,[i.createTextVNode(i.toDisplayString(G.label)+" ",1),i.createVNode(ve,{height:"16",width:"16",name:"open-in-new-tab-outline"})])):(i.openBlock(),i.createBlock(se,{key:1,class:"side-bar__subitem-link",to:$(G)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(G.label),1)]),_:2},1032,["to"]))],10,CX))),128))])],512),[[i.vShow,I(U)]])]),_:2},1024)),U.items&&l.value?(i.openBlock(),i.createElementBlock("div",SX,[i.createVNode(Rh,{"model-value":(be=f.value[me])==null?void 0:be.show,"target-id":U.label,"default-placement":"bottom-start",width:"160"},{default:i.withCtx(()=>[i.createElementVNode("div",BX,[i.createElementVNode("p",MX,i.toDisplayString(U.label),1),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(U.items,(G,ye)=>(i.openBlock(),i.createElementBlock("a",{key:`${ye}-${G.name}-item`,class:"side-bar__subitem",href:(G==null?void 0:G.type)==="external"?G.route.path:"javascript:void(0)",target:"_blank",rel:"noopener noreferrer",onClick:Y=>B(Y,G)},[(G==null?void 0:G.type)==="external"?(i.openBlock(),i.createElementBlock("div",OX,[i.createTextVNode(i.toDisplayString(G.label)+" ",1),i.createVNode(ve,{height:"16",width:"16",name:"open-in-new-tab-outline"})])):(i.openBlock(),i.createBlock(se,{key:1,class:"side-bar__subitem-link",to:$(G)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(G.label),1)]),_:2},1032,["to"]))],8,EX))),128))])]),_:2},1032,["model-value","target-id"])])):i.createCommentVNode("",!0)],40,bX)}),128))],2)],2),i.createElementVNode("div",{class:i.normalizeClass(`side-bar__footer variant-resolver--${e.variant}`)},[i.createElementVNode("div",{id:"menu-profile",class:"side-bar__avatar",onClick:Z[1]||(Z[1]=i.withModifiers(U=>y.value=!y.value,["stop"]))},[i.createVNode(ul,{src:e.userPicture,name:e.userName,variant:"white",size:"lg"},null,8,["src","name"]),i.createVNode(i.Transition,{name:"fade"},{default:i.withCtx(()=>[l.value?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",DX,[i.createElementVNode("p",null,i.toDisplayString(e.userName),1),i.createElementVNode("p",null,i.toDisplayString(e.userRole),1)]))]),_:1})]),i.createElementVNode("ul",null,[e.showLogout?i.withDirectives((i.openBlock(),i.createElementBlock("li",{key:0,class:"side-bar__logout-button",onClick:Z[2]||(Z[2]=U=>P.$emit("logout",!0))},[i.createVNode(ve,{name:"logout-outline",width:"20",height:"20"})])),[[i.unref(a),m.value]]):i.createCommentVNode("",!0)]),k.value?(i.openBlock(),i.createElementBlock("div",VX,[i.createVNode(dl,{modelValue:y.value,"onUpdate:modelValue":Z[3]||(Z[3]=U=>y.value=U),"right-aligned":"","target-id":"menu-profile",width:"160",height:"160"},{default:i.withCtx(()=>[i.createElementVNode("div",$X,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.profileMenuItems,(U,me)=>(i.openBlock(),i.createElementBlock("div",{key:me},[i.createElementVNode("div",{class:"dropdown__container",onClick:be=>q(U)},[i.createVNode(ve,{class:"dropdown__icon",height:"22",width:"22",name:U.icon},null,8,["name"]),i.createElementVNode("span",IX,i.toDisplayString(U.name),1)],8,TX)]))),128))])]),_:1},8,["modelValue"])])):i.createCommentVNode("",!0)],2)],2)}}}),AX={class:"secondary-navigation__container"},NX={class:"secondary-navigation__content"},zX={key:1},LX=["onClick","onMouseover"],PX={class:"secondary-navigation__content"},FX={key:1},S6=ie(Object.assign({name:"CdsSecondaryNavigation"},{__name:"SecondaryNavigation",props:{light:{type:Boolean,default:!1},activeItem:{type:Object,default:()=>{}},items:{type:Array,default:()=>[]}},emits:["item-click"],setup(e,{emit:t}){const n=e,a=t,r=i.ref(n.activeItem.key),s=i.ref(null),o=i.ref(0),l=i.computed(()=>n.light?"light":"dark");i.watch(n.activeItem,_=>{r.value=_.key});const d=_=>{o.value=_},h=_=>{if(!_.route)return null;const{path:k,name:x}=_.route;return k instanceof String?{path:k}:{name:x}},f=_=>{y(_.key)||(s.value=null,r.value=_.key,a("item-click",_.key))},m=_=>r.value===_,y=_=>n.items.find(k=>{var x;return k.key===_&&((x=k==null?void 0:k.subitems)==null?void 0:x.length)>0}),g=(_,k)=>{s.value=_,r.value=k,a("item-click",_)},v=_=>s.value===_;return(_,k)=>{const x=i.resolveComponent("router-link");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["secondary-navigation",`secondary-navigation--${l.value}`])},[i.createElementVNode("div",AX,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.items,M=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:M.key},[y(M.key)?(i.openBlock(),i.createElementBlock("div",zX,[i.createElementVNode("div",{class:i.normalizeClass(["secondary-navigation__item",m(M.key)?`secondary-navigation__item--active-${l.value}`:""]),onClick:B=>f(M),onMouseover:B=>d(M.key),onMouseleave:k[0]||(k[0]=B=>d(-1))},[i.createElementVNode("div",PX,[i.createTextVNode(i.toDisplayString(M.label)+" ",1),M.key!==o.value?(i.openBlock(),i.createBlock(ve,{key:0,class:"secondary-navigation__icon",name:"caret-down-outline",height:"16",width:"16"})):M.key===o.value?(i.openBlock(),i.createElementBlock("div",FX,[i.createVNode(ve,{class:"secondary-navigation__icon",height:"16",width:"16",name:"caret-up-outline"}),i.createElementVNode("div",{class:i.normalizeClass(["secondary-navigation__dropdown",`secondary-navigation__dropdown--${l.value}`])},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(M.subitems,B=>(i.openBlock(),i.createBlock(x,{key:B.key,to:h(B),class:i.normalizeClass(["secondary-navigation__subitem",{"secondary-navigation__subitem--active":v(B.key)}]),onClick:C=>g(B.key,M.key)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(B.label),1)]),_:2},1032,["to","class","onClick"]))),128))],2)])):i.createCommentVNode("",!0)])],42,LX)])):(i.openBlock(),i.createBlock(x,{key:0,class:i.normalizeClass(["secondary-navigation__item",m(M.key)?`secondary-navigation__item--active-${l.value}`:""]),to:h(M),onClick:B=>f(M)},{default:i.withCtx(()=>[i.createElementVNode("div",NX,i.toDisplayString(M.label),1)]),_:2},1032,["class","to","onClick"]))],64))),128))]),k[1]||(k[1]=i.createElementVNode("div",{class:"secondary-navigation__overflow-left"},null,-1)),k[2]||(k[2]=i.createElementVNode("div",{class:"secondary-navigation__overflow-right"},null,-1))],2)}}}),[["__scopeId","data-v-f6371676"]]),RX={class:"page-layout"},HX={class:"page-layout__content"},WX=ie(Object.assign({name:"CdsPageLayout"},{__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(e,{emit:t}){i.useCssVars(o=>({a4ba528a:s.value}));const n=e,a=t,r=i.computed(()=>{var o;return((o=n.navigationItems)==null?void 0:o.length)>0}),s=i.computed(()=>r.value?"54px":"0px");return(o,l)=>{var d;return i.openBlock(),i.createElementBlock("div",RX,[i.createVNode(x6,{variant:e.variant,"active-item":e.sideBarActiveItem,light:e.light,"user-name":e.user.name??"","user-role":e.user.role??"","user-picture":e.user.picture??null,collapsible:e.collapsibleSideBar,items:e.sideBarItems,"logo-image":e.logos.default,"collapsed-logo-image":e.logos.collapsed,"show-profile-menu":e.showProfileMenu,"profile-menu-items":e.profileMenuItems,onProfileMenuOptionClick:l[0]||(l[0]=h=>a("profile-menu-option-click",h)),onSidebarClick:l[1]||(l[1]=h=>a("sidebar-item-click",h)),onLogout:l[2]||(l[2]=h=>a("sidebar-logout",h)),onSettings:l[3]||(l[3]=h=>a("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"]),i.createElementVNode("div",HX,[((d=e.navigationItems)==null?void 0:d.length)>0?(i.openBlock(),i.createBlock(S6,{key:0,light:e.light,"active-item":e.navigationActiveItem,items:e.navigationItems,onItemClick:l[4]||(l[4]=h=>a("navigation-item-click",h))},null,8,["light","active-item","items"])):i.createCommentVNode("",!0),i.createVNode(C6,{class:"page-layout__container"},{default:i.withCtx(()=>[i.renderSlot(o.$slots,"default",{},void 0,!0)]),_:3})])])}}}),[["__scopeId","data-v-63478260"]]),YX={components:{CdsLink:ec,CdsSkeleton:Ea,CdsFlexbox:Ue},props:{title:{type:String,required:!0},subtitle:{type:String,default:null},compact:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},data(){return{hasURL:!1,url:"",splitedSubtitle:[]}},computed:{fancyUrl(){return this.url.split(/http:\/\/|https:\/\//)[1]},hasSlots(){return!!Object.keys(this.$slots).length}},mounted(){this.computedSubtitle()},methods:{computedSubtitle(){var n;const e=/\b(?:http:\/\/|https:\/\/)?[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,}(?:\/\S*)?/g,t=(n=this.subtitle)==null?void 0:n.match(e);t&&t.length>0&&(this.splitedSubtitle=this.subtitle.split(t[0]),this.url=t[0])}}},jX={class:"page-header__title"},UX={key:0,class:"d-flex"},qX={class:"page-header__subtitle"},GX={key:1,class:"page-header__subtitle"},KX={class:"page-header__aside-slot"};function ZX(e,t,n,a,r,s){const o=i.resolveComponent("CdsSkeleton"),l=i.resolveComponent("CdsFlexbox"),d=i.resolveComponent("cds-link");return i.openBlock(),i.createElementBlock("div",null,[n.loading?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[s.hasSlots?(i.openBlock(),i.createBlock(l,{key:0,class:"page-header__skeleton",align:"center",justify:"space-between"},{default:i.withCtx(()=>[i.createVNode(l,{direction:"column",gap:"3"},{default:i.withCtx(()=>[i.createVNode(o,{width:300,height:36}),i.createVNode(o,{width:550,height:20})]),_:1}),i.createVNode(l,{align:"center",gap:"3"},{default:i.withCtx(()=>[i.createVNode(o,{width:120,height:36}),i.createVNode(o,{width:120,height:36})]),_:1})]),_:1})):(i.openBlock(),i.createBlock(l,{key:1,class:"page-header__skeleton",direction:"column",gap:"3"},{default:i.withCtx(()=>[i.createVNode(o,{width:300,height:36}),i.createVNode(o,{width:550,height:20})]),_:1}))],64)):(i.openBlock(),i.createElementBlock("header",{key:1,class:i.normalizeClass(n.compact?"page-header__container--compact":"page-header__container")},[i.createElementVNode("div",null,[i.createElementVNode("p",jX,i.toDisplayString(n.title),1),r.splitedSubtitle.length>0?(i.openBlock(),i.createElementBlock("div",UX,[i.createElementVNode("span",qX,[i.createTextVNode(i.toDisplayString(r.splitedSubtitle[0])+" ",1),i.createVNode(d,{href:r.url,bold:""},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(s.fancyUrl),1)]),_:1},8,["href"]),i.createTextVNode(" "+i.toDisplayString(r.splitedSubtitle[1]),1)])])):(i.openBlock(),i.createElementBlock("div",GX,i.toDisplayString(n.subtitle),1))]),i.createElementVNode("div",KX,[i.renderSlot(e.$slots,"aside")])],2))])}const XX=ie(YX,[["render",ZX]]);class Gn{constructor(t,n,a,r=null){this.index=t,this.value=n,this.selected=a,this.text=r||n}}const JX=["onClick"],QX={key:3},eJ=ie(Object.assign({name:"CdsPagination"},{__name:"Pagination",props:i.mergeModels({total:{type:Number,default:1,validator:e=>e>=1},perPage:{type:Number,default:1,validator:e=>e>=1},fluid:{type:Boolean,default:!1},variant:{type:String,default:"green"}},{modelValue:{type:[Number,String],default:1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=i.useModel(e,"modelValue"),n=e,a=i.ref(new Gn(null,parseInt(t.value,10),!0)),r=i.ref([]),s=i.computed(()=>n.total/n.perPage<1?1:Math.ceil(n.total/n.perPage)),o=i.computed(()=>n.fluid?"pagination__container--fluid":"pagination__container");function l(m){switch(m.index){case 0:return a.value.value===1?"pagination__button--first pagination__button--disabled":"pagination__button--first";case 1:return a.value.value===1?"pagination__button pagination__button--disabled":"pagination__button";case 7:return a.value.value===s.value?"pagination__button pagination__button--disabled":"pagination__button";case 8:return a.value.value===s.value?"pagination__button--last pagination__button--disabled":"pagination__button--last";default:return m.selected?yh("pagination__button--active",n.variant):"pagination__button"}}function d(){r.value=[new Gn(0,"first",!1,"<<"),new Gn(1,"back",!1,"<"),...h(),new Gn(7,"forward",!1,">"),new Gn(8,"last",!1,">>")]}function h(){const m=s.value<5?s.value+2:7,y=[];if(a.value.value<=3||s.value<=5){a.value.index=a.value.value;for(let g=2;g<m;g++)y[g-2]=new Gn(g,g-1,a.value.value===g-1);return y}if(a.value.value<=s.value-2){for(let g=2;g<m;g++){const v=a.value.value-4+g;y[g-2]=new Gn(g+1,v,a.value.value===v)}return y}for(let g=2;g<m;g++){const v=s.value-6+g;y[g-2]=new Gn(g,v,a.value.value===v)}return y}function f(m){switch(m.value){case a.value.value:return;case"first":if(a.value.index===1)return;a.value=new Gn(null,1,!0),t.value=1,d();return;case"last":if(a.value.index===s.value)return;a.value=new Gn(null,s,!0),t.value=s.value,d();return;case"back":if(a.value.index===1)return;t.value=a.value.value-1,a.value=new Gn(null,a.value.value-1,!0),d();return;case"forward":if(a.value.value===s.value)return;t.value=a.value.value+1,a.value=new Gn(null,a.value.value+1,!0),d();return;default:a.value=new Gn(null,m.value,!0),t.value=m.value,d();break}}return i.watch([t,()=>n.total,()=>n.perPage],()=>{a.value=new Gn(null,parseInt(t.value,10),!0),d()}),i.onBeforeMount(()=>{d()}),(m,y)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(o.value)},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.value,(g,v)=>(i.openBlock(),i.createElementBlock("div",{key:v,class:i.normalizeClass(l(g)),onClick:_=>f(g)},[v===0?(i.openBlock(),i.createBlock(Ai,{key:0,direction:"left",class:"pagination__double-chevron--left"})):i.createCommentVNode("",!0),v===0?(i.openBlock(),i.createBlock(Ai,{key:1,direction:"left",class:"pagination__double-chevron--left"})):i.createCommentVNode("",!0),v===1?(i.openBlock(),i.createBlock(Ai,{key:2,direction:"left"})):i.createCommentVNode("",!0),v>=2&&v<=r.value.length-3?(i.openBlock(),i.createElementBlock("span",QX,i.toDisplayString(g.text),1)):i.createCommentVNode("",!0),v===r.value.length-2?(i.openBlock(),i.createBlock(Ai,{key:4,direction:"right"})):i.createCommentVNode("",!0),v===r.value.length-1?(i.openBlock(),i.createBlock(Ai,{key:5,direction:"right",class:"pagination__double-chevron--right"})):i.createCommentVNode("",!0),v===r.value.length-1?(i.openBlock(),i.createBlock(Ai,{key:6,direction:"right",class:"pagination__double-chevron--right"})):i.createCommentVNode("",!0)],10,JX))),128))],2))}}),[["__scopeId","data-v-408b6d54"]]),tJ={name:"CdsPanelCard",components:{CdsBox:Zl,CdsDivider:zr},props:{title:{type:String,required:!0},subtitle:{type:String,required:!0},noContentPadding:{type:Boolean,default:!1}},computed:{contentClass(){return this.noContentPadding?"panel-card__content--no-pading":"panel-card__content"}}},nJ={class:"panel-card__header"},iJ={class:"panel-card__title"},aJ={class:"panel-card__subtitle"};function rJ(e,t,n,a,r,s){const o=i.resolveComponent("CdsDivider"),l=i.resolveComponent("CdsBox");return i.openBlock(),i.createBlock(l,{class:"panel-card",padding:"0",fluid:""},{default:i.withCtx(()=>[i.createElementVNode("div",nJ,[i.createElementVNode("div",null,[i.createElementVNode("span",iJ,i.toDisplayString(n.title),1),t[0]||(t[0]=i.createElementVNode("br",null,null,-1)),i.createElementVNode("span",aJ,i.toDisplayString(n.subtitle),1)]),i.createElementVNode("div",null,[i.renderSlot(e.$slots,"panel-actions",{},void 0,!0)])]),i.createVNode(o,{dimmed:""}),i.createElementVNode("div",{class:i.normalizeClass(s.contentClass)},[i.renderSlot(e.$slots,"default",{},void 0,!0)],2)]),_:3})}const sJ=ie(tJ,[["render",rJ],["__scopeId","data-v-ed8b0770"]]),oJ={class:"pin-input__container"},lJ=["id","onUpdate:modelValue","type","onKeydown","onKeypress","onInput","onFocus"],cJ=ie(Object.assign({name:"CdsPinInput"},{__name:"PinInput",props:{modelValue:{type:String,default:"",required:!0},length:{type:Number,default:4},state:{type:String,default:"default"},visible:{type:Boolean,default:!1},mobile:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=t,r=i.ref(new Array(n.length)),s=i.useTemplateRef("inputs"),o=i.computed(()=>{let m="";switch(n.state){case"valid":m="pin-input--valid";break;case"invalid":m="pin-input--invalid";break;default:m="pin-input"}return n.mobile?`${m} pin-input--mobile`:m});i.watch(()=>n.modelValue,m=>{r.value=m.split("")});function l(m,y){let g=r.value.join("");const v=n.length;y<v&&m.inputType!=="deleteContentBackward"&&s.value[y-1].focus(),g.length===v&&a("update:modelValue",g)}function d(m){if(m>1){r.value[m-1]="";let y=s.value[m-2];setTimeout(()=>{y.focus()},150)}}function h(m){let y=s.value[m-1];setTimeout(()=>{y.setSelectionRange(1,1)},3)}function f(m,y){if(m.key==="Enter"||m.charCode===32){m.preventDefault();return}const g=n.length;r.value.splice(y-1,1,m.key),y<g&&s.value[y].focus(),y===g&&r.value.join("").length===g&&a("update:modelValue",r.value.join(""))}return(m,y)=>(i.openBlock(),i.createElementBlock("div",oJ,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.length,(g,v)=>i.withDirectives((i.openBlock(),i.createElementBlock("input",{id:`pin-input${g}`,key:v,ref_for:!0,ref:"inputs","onUpdate:modelValue":_=>r.value[g-1]=_,type:e.visible?"text":"password",maxlength:"1",class:i.normalizeClass(["pin-input",o.value]),autocomplete:"off",onKeydown:i.withKeys(i.withModifiers(_=>d(g),["stop"]),["delete"]),onKeypress:_=>f(_,g),onInput:_=>l(_,g),onFocus:_=>h(g)},null,42,lJ)),[[i.vModelDynamic,r.value[g-1]]])),128))]))}}),[["__scopeId","data-v-dde95f82"]]),dJ={class:"progress-bar__content"},uJ=ie(Object.assign({name:"CdsProgressBar"},{__name:"ProgressBar",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},textLeft:{type:Boolean,default:!1},shadeSteps:{type:Number,default:1,validator:e=>e<=5&&e>=1}},setup(e){i.useCssVars(l=>({d3de0410:o.value,"764f03a4":n.value}));const t=e,n=i.ref("#2db981"),a=i.computed(()=>`${parseInt(t.value*100,10)}%`),r=i.computed(()=>sa(ai.palete)),s=i.computed(()=>({"--width":a.value,"--leftMargin":t.textAside?"3":"10","--bottomMargin":t.textAside?"10":"2"})),o=i.computed(()=>t.textAside&&t.textLeft?"row":t.textAside?"row-reverse":"column");return i.watch(()=>t.value,()=>{const l=r.value.filter(g=>g.variantName.toLowerCase()===t.variant),d=l[0].colorShades.slice(2,l[0].colorShades.length),h=t.shadeSteps<=5&&t.shadeSteps>=1?t.shadeSteps:5;if(t.shadeSteps===1)return n.value=d[2];const f=100/h,m=t.value*100,y=Math.floor(m/f)===h?h-1:Math.floor(m/f);n.value=d[y]},{immediate:!0}),(l,d)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["progress-bar",[e.textLeft&&!e.textAside?"progress-bar__left":"",e.textAside?"progress-bar--aside":""]])},[e.showText?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(["progress-bar__text",e.textAside?"progress-bar__text--aside":""])},[i.renderSlot(l.$slots,"default",{},()=>[i.createTextVNode(i.toDisplayString(a.value),1)],!0)],2)):i.createCommentVNode("",!0),i.createElementVNode("div",dJ,[i.createElementVNode("div",{class:i.normalizeClass(`progress-bar__indicator--${e.variant}`),style:i.normalizeStyle(s.value)},null,6)])],2))}}),[["__scopeId","data-v-12bf76cc"]]),hJ={name:"CdsProgressCircular",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:Jl}},fJ=["stroke-width"],pJ=["stroke-dasharray","stroke-width"];function mJ(e,t,n,a,r,s){return i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["progress-circular",`progress-circular--${n.size}`]),viewBox:"0 0 36 36"},[i.createElementVNode("path",{class:"progress-circular__ring-background","stroke-width":s.stroke,d:`M18 2.0845
69
+ `,"2) content: () => element.cloneNode(true)"].join(" "))}var l=r.reduce(function(d,h){var f=h&&MD(h,a);return f&&d.push(f),d},[]);return nc(e)?l[0]:l}io.defaultProps=si,io.setDefaultProps=CD,io.currentInput=la,Object.assign({},nm,{effect:function(t){var n=t.state,a={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,a.popper),n.styles=a,n.elements.arrow&&Object.assign(n.elements.arrow.style,a.arrow)}}),io.setDefaultProps({render:dy});const uu={mounted(e,t){if(!t.value||typeof t.value!="string"&&!t.value.content)return;const n=typeof t.value=="string"?t.value:t.value.content||"";e._tippyInstance=io(e,{content:n,arrow:!1,animation:"shift-away-subtle",delay:100,allowHTML:!0,...t.value.options||{}})},updated(e,t){if(!t.value||typeof t.value!="string"&&!t.value.content){e._tippyInstance&&(e._tippyInstance.destroy(),e._tippyInstance=null);return}const n=typeof t.value=="string"?t.value:t.value.content||"";e._tippyInstance?e._tippyInstance.setProps({content:n,...t.value.options||{}}):e._tippyInstance=io(e,{content:n,arrow:!1,animation:"shift-away-subtle",delay:100,allowHTML:!0,...t.value.options||{}})},beforeUnmount(e){e._tippyInstance&&(e._tippyInstance.destroy(),e._tippyInstance=null)}},hu=ie(Object.assign({name:"CdsLabel"},{__name:"Label",props:{for:{type:String,default:""},text:{type:String,default:"Label"},tooltip:{type:String,default:null},tooltipIcon:{type:String,default:"info-outline"},supportLink:{type:String,default:null},supportLinkUrl:{type:[String,null],default:null},required:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1,required:!1}},emits:["supportLinkClick"],setup(e,{emit:t}){const n=e,a=t,r=i.computed(()=>n.supportLink&&n.supportLinkUrl!==null&&n.supportLinkUrl.length);return(s,o)=>e.text?(i.openBlock(),i.createElementBlock("label",{key:0,class:i.normalizeClass({label:!e.fluid,"label--fluid":e.fluid})},[i.createVNode(Ue,{class:"label__content"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.text)+" ",1),e.required?(i.openBlock(),i.createBlock(su,{key:0})):i.createCommentVNode("",!0),e.tooltip?i.withDirectives((i.openBlock(),i.createBlock(ve,{key:1,name:e.tooltipIcon,height:"18",width:"18",class:"label__icon"},null,8,["name"])),[[i.unref(uu),e.tooltip]]):i.createCommentVNode("",!0)]),_:1}),r.value?(i.openBlock(),i.createBlock(ec,{key:0,href:e.supportLinkUrl,text:e.supportLink,class:"label__link","new-tab":""},null,8,["href","text"])):(i.openBlock(),i.createElementBlock("span",{key:1,class:"label__link",onClick:o[0]||(o[0]=l=>a("supportLinkClick"))},i.toDisplayString(e.supportLink),1))],2)):i.createCommentVNode("",!0)}}),[["__scopeId","data-v-86d093ee"]]),ED={class:"base-input__container"},OD={key:0,class:"base-input__leading-icon-container"},DD=["required","placeholder","disabled","type"],VD=["placeholder","disabled","type","autocomplete"],$D={class:"base-input__date-text"},TD={key:3,style:{width:"100%"}},ID={key:0,class:"base-input__top-content"},AD=["required","readonly","placeholder","disabled","autocomplete","type"],ND={key:4,class:"base-input__spinner-container"},zD={key:5,class:"base-input__trailing-icon-container"},LD={key:0,class:"base-input__error-text"},PD={key:0,class:"base-input__supporting-text-container"},FD={key:1,class:"base-input__supporting-text"},RD=Object.assign({name:"CdsBaseInput"},{__name:"BaseInput",props:i.mergeModels({id:{type:String,default:""},label:{type:String,default:"Label"},hideLabel:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},state:{type:String,default:"default"},type:{type:String,default:"text",validator:W4},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,null],default:null},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},maxlength:{type:Number,default:null},minlength:{type:Number,default:null},name:{type:String,default:""},enableAutocomplete:{type:Boolean,default:!1},enableTopContent:{type:Boolean,default:!1},ghost:{type:Boolean,default:!1},height:{type:[Number,String],default:null}},{modelValue:{type:[String,Number]},modelModifiers:{}}),emits:i.mergeModels({...mr,supportLinkClick:null},["update:modelValue"]),setup(e,{expose:t,emit:n}){i.useCssVars(G=>({78204566:F.value,e1cfb0ea:P.value,"61c82fba":V.value,"52f04bce":B.value,"01cb8e12":C.value}));const a=i.useModel(e,"modelValue"),r=e,s=n,o=i.ref(),l=i.ref(""),d=i.ref(""),h=i.ref(!1),{emitClick:f,emitFocus:m,emitBlur:y,emitKeydown:g}=pr(s),v=i.useTemplateRef("htmlInput"),_=i.useTemplateRef("mobileInput"),k=`cds-base-input-${r.type}-${r.id||oa()}`,x=i.computed(()=>r.enableAutocomplete?"on":"off"),M=i.computed(()=>{let G=r.fluid?"base-input--fluid":"base-input";return r.ghost&&(G+=" ghost"),h.value?r.disabled||(G+=r.state==="default"?" base-input--focused":` base-input--focused-${r.state}`):G+=r.disabled?" base-input--disabled":` base-input--${r.state}`,G}),B=i.computed(()=>r.type==="textarea"?"auto":"40px"),C=i.computed(()=>r.type!=="textarea"?"auto":r.height?typeof r.height=="number"?`${r.height}px`:r.height:"120px"),V=i.computed(()=>r.type==="textarea"?"8px":"14px"),$=i.computed(()=>r.state==="invalid"),N=i.computed(()=>r.state==="loading"),I=i.computed(()=>{const G="field";return r.fluid?`base-input__${G}--fluid`:`base-input__${G}`}),F=i.computed(()=>r.disabled?"not-allowed":N.value?"progress":r.readonly?"pointer":"text"),q=i.computed(()=>r.leadingIcon||is("leading-icon")),Q=i.computed(()=>r.trailingIcon||is("trailing-icon")),P=i.computed(()=>Q.value?"36px":"9px"),Z=i.computed(()=>r.type==="search"&&r.hideLabel&&!r.floatingLabel);i.watch(a,(G,ye)=>{G!==ye&&(l.value=G)},{immediate:!0}),i.watch(l,G=>{r.lazy||(a.value=G)}),i.watch(()=>r.floatingLabel,()=>{var G;o.value=r.floatingLabel?(G=_==null?void 0:_.value)==null?void 0:G.componentRef:v.value}),i.onMounted(()=>{var G;o.value=r.floatingLabel?(G=_==null?void 0:_.value)==null?void 0:G.componentRef:v.value});function se(G){f(G)}function U(G){h.value=!0,d.value=l.value,m(G)}function me(G){h.value=!1,v.value&&v.value.value!==void 0&&(l.value=v.value.value),y(G),d.value!==l.value&&(a.value=l.value),d.value=l.value}function be(G){h.value=!0,g(G)}return t({componentRef:o,isFocused:h,focus:()=>{var G;return(G=o.value)==null?void 0:G.focus()},blur:()=>{var G;return(G=o.value)==null?void 0:G.blur()},clear:()=>{var G;return(G=o.value)==null?void 0:G.clear()},select:()=>{var G;return(G=o.value)==null?void 0:G.select()}}),(G,ye)=>(i.openBlock(),i.createElementBlock("div",ED,[e.floatingLabel?(i.openBlock(),i.createBlock(QO,i.mergeProps({key:0,ref:"mobileInput"},{...G.$attrs,...r},{modelValue:l.value,"onUpdate:modelValue":ye[0]||(ye[0]=Y=>l.value=Y),"has-leading-icon":q.value,"has-trailing-icon":Q.value,onClick:se,onFocus:U,onBlur:me,onKeydown:be}),{"trailing-icon":i.withCtx(()=>[i.renderSlot(G.$slots,"trailing-icon",{},void 0,!0)]),"leading-icon":i.withCtx(()=>[i.renderSlot(G.$slots,"leading-icon",{},void 0,!0)]),_:3},16,["modelValue","has-leading-icon","has-trailing-icon"])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.renderSlot(G.$slots,"label",{},()=>[Z.value?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(hu,{key:0,text:e.label,fluid:e.fluid,for:k,required:e.required,tooltip:e.tooltip,"tooltip-icon":e.tooltipIcon,"support-link":e.supportLink,"support-link-url":e.supportLinkUrl,onSupportLinkClick:ye[1]||(ye[1]=Y=>s("supportLinkClick"))},null,8,["text","fluid","required","tooltip","tooltip-icon","support-link","support-link-url"]))],!0),i.createElementVNode("div",{class:i.normalizeClass(M.value),onClick:se},[q.value?(i.openBlock(),i.createElementBlock("div",OD,[i.renderSlot(G.$slots,"leading-icon",{},()=>[e.leadingIcon?(i.openBlock(),i.createBlock(ve,{key:0,height:"20",width:"20",name:e.leadingIcon,class:"base-input__icon"},null,8,["name"])):i.createCommentVNode("",!0)],!0)])):i.createCommentVNode("",!0),e.type==="textarea"?i.withDirectives((i.openBlock(),i.createElementBlock("textarea",{key:1,id:k,ref:"htmlInput","onUpdate:modelValue":ye[2]||(ye[2]=Y=>l.value=Y),required:e.required,placeholder:e.placeholder,disabled:e.disabled,class:i.normalizeClass(I.value),type:e.type,onFocus:U,onBlur:me,onKeydown:be},null,42,DD)),[[i.vModelText,l.value]]):e.type==="date"?(i.openBlock(),i.createElementBlock("div",i.mergeProps({key:2,id:k,ref:"htmlInput",tabindex:"0"},r,{placeholder:e.placeholder,disabled:e.disabled,class:I.value,type:e.type,autocomplete:x.value,onFocus:U,onBlur:me,onKeydown:be}),[i.createElementVNode("small",$D,i.toDisplayString(l.value||e.placeholder),1)],16,VD)):(i.openBlock(),i.createElementBlock("div",TD,[e.enableTopContent?(i.openBlock(),i.createElementBlock("div",ID,[i.renderSlot(G.$slots,"top-content",{},void 0,!0)])):i.createCommentVNode("",!0),i.withDirectives(i.createElementVNode("input",i.mergeProps({id:k,ref:"htmlInput"},r,{"onUpdate:modelValue":ye[3]||(ye[3]=Y=>l.value=Y),required:e.required,readonly:e.readonly,placeholder:e.placeholder,disabled:e.disabled,class:I.value,autocomplete:x.value,type:e.type,onFocus:U,onBlur:me,onKeydown:be}),null,16,AD),[[i.vModelDynamic,l.value]])])),N.value&&!e.disabled?(i.openBlock(),i.createElementBlock("div",ND,[i.createVNode(Ql,{size:"sm",variant:"blue",class:"base-input__icon--spinner-icon"})])):i.createCommentVNode("",!0),Q.value?(i.openBlock(),i.createElementBlock("div",zD,[i.renderSlot(G.$slots,"trailing-icon",{},()=>[i.createVNode(ve,{height:"20",width:"20",name:e.trailingIcon,class:"base-input__icon"},null,8,["name"])],!0)])):i.createCommentVNode("",!0)],2),$.value&&!e.disabled?(i.openBlock(),i.createElementBlock("div",LD,i.toDisplayString(e.errorMessage),1)):i.createCommentVNode("",!0),e.supportingText?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[Array.isArray(e.supportingText)?(i.openBlock(),i.createElementBlock("ul",PD,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.supportingText,Y=>(i.openBlock(),i.createElementBlock("li",{key:Y,class:"base-input__supporting-text-list"},i.toDisplayString(Y),1))),128))])):(i.openBlock(),i.createElementBlock("span",FD,i.toDisplayString(e.supportingText),1))],64)):i.createCommentVNode("",!0)],64))]))}}),Wi=ie(RD,[["__scopeId","data-v-a63d48ad"]]),HD={ref:"cds-select",class:"select"},WD={key:0,class:"option__container"},YD=["onMouseover"],jD={key:1,class:"option__container"},UD={class:"add-button-searchstring"},qD=Object.assign({name:"CdsSelect"},{__name:"Select",props:i.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},deepSearch:{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,null],default:null},supportLink:{type:String,default:null},supportingText:{type:[String,Array],default:""},supportLinkUrl:{type:[String,null],default:null},mobile:{type:Boolean,default:!1},floatingLabel:{type:Boolean,default:!1},addable:{type:Boolean,default:!1},ghost:{type:Boolean,default:!1}},{modelValue:{type:[Array,Object,String]},modelModifiers:{}}),emits:i.mergeModels({...mr},["update:modelValue"]),setup(e,{expose:t,emit:n}){var Dt,lt;i.useCssVars(ae=>({"70b2831f":U.value,"98fdc8b0":P.value}));const a=i.useModel(e,"modelValue"),r=e,s=n,o=i.ref(0),l=i.ref(!1),d=i.ref(null),h=i.ref(!1),f=i.ref([]),m=i.ref([]),y=i.ref({value:"",id:""}),g=i.ref(""),v=i.ref("down"),_=i.ref(Qa()),k=i.useTemplateRef("baseInput"),x=i.useTemplateRef("cds-select"),M=i.useTemplateRef("select-options"),B=i.ref({}),{emitClick:C,emitFocus:V,emitBlur:$,emitKeydown:N}=pr(s),I=i.ref(""),F=i.ref(!1),q=i.ref("");let Q=!1;const P=i.computed(()=>r.mobile?"9px":"6px"),Z=i.computed(()=>{let ae="";const xe=r.mobile?"select__mobile-input":"select__input";return ae+=` ${xe}--${W1.find(Ve=>Ve===r.width)}`,ae+=r.fluid?` ${xe}--fluid`:` ${xe}--fit`,ae+=r.searchable?` ${xe}--searchable`:"",ae}),se=i.computed(()=>({"select__options--thin":r.width==="thin","select__options--default":r.width==="default","select__options--wide":r.width==="wide","select__options--fluid":r.fluid,"select__options--down":v.value==="down","select__options--up":v.value==="up"})),U=i.computed(()=>r.fluid?"100%":"fit-content"),me=i.computed(()=>{var ae;return r.searchable&&r.addable&&((ae=I.value)==null?void 0:ae.trim().length)>0&&!f.value.some(xe=>{var Ve;return((Ve=xe[r.optionsField])==null?void 0:Ve.toLowerCase())===(I==null?void 0:I.value.toLowerCase())})}),be=i.computed({get(){var ae;return F.value?q.value:(ae=y.value)==null?void 0:ae[r.optionsField]},set(ae){Q||(F.value=!0,q.value=ae)}}),G=i.computed(()=>W1.some(ae=>ae===r.width)||r.fluid);i.watch(()=>r.searchable,(ae,xe)=>{ae!==xe&&(h.value=ae)},{immediate:!0}),i.watch(()=>r.options,(ae,xe)=>{ae!==xe&&(f.value=ae,m.value=ae)},{immediate:!0}),i.watch(a,(ae,xe)=>{ae!==xe&&ae!==y.value&&(Q=!0,ae instanceof Object?y.value=ae:y.value={id:ae,value:ae}),i.nextTick(()=>{Q=!1})},{immediate:!0}),i.watch(y,ae=>{if(JSON.stringify(ae)===JSON.stringify(a.value))return;if(!ae||typeof ae=="object"&&Object.keys(ae).length===0){a.value=r.returnValue?"":{};return}const Ve=f.value.filter(ze=>JSON.stringify(ze)===JSON.stringify(ae));Ve.length!==0&&(a.value=r.returnValue?Ve[0][r.optionsField]:Ve[0])}),i.onMounted(()=>{d.value=`cds-select-${_.value}`,g.value=x.value});function ye(ae){if(!F.value)return;r.searchable&&r.addable&&(I.value=ae);const xe=eo(String(ae)||"");r.deepSearch?ee(xe):Y(xe)}function Y(ae){const xe=new RegExp(ae,"i");f.value=m.value.filter(Ve=>eo(Ve[r.optionsField]).search(xe)>=0)}function ee(ae){const xe=ae.toLowerCase().split(" ");f.value=m.value.filter(Ve=>xe.reduce((ze,Fe)=>ze=ze&&eo(Ve[r.optionsField]).toLowerCase().includes(Fe),!0))}function ue(){r.disabled||(Ze(),i.nextTick().then(()=>{var xe;const ae=f.value[o.value];(xe=B.value[`${Et.get(ae,r.optionsField)}-${o.value}`])==null||xe.classList.add("highlight")}),V())}function de(){if(!r.disabled){if(f.value.length===0&&!(r.searchable&&r.addable)){l.value=!1,F.value=!1,k.value.blur();return}l.value=!l.value,Q=!0,Ze(),typeof f.value[o.value]>"u"?(Qe(),y.value=r.searchable&&r.addable?y.value:f.value.length?Et.cloneDeep(f.value[0]):{}):y.value=Et.cloneDeep(f.value[o.value]),I.value="",F.value=!1,k.value.blur(),i.nextTick(()=>{Q=!1})}}function _e(){let ae=g.value.getBoundingClientRect();ae.top+ae.height+286<window.innerHeight?v.value="down":v.value="up",!r.disabled&&(l.value=!l.value,C(),k.value.focus())}function ge(){Q=!0;const ae=r.searchable&&!r.addable&&f.value.length===0;ae&&(a.value=null,y.value=null),!I.value&&!ae&&(y.value=f.value.some(xe=>{var Ve,ze;return((Ve=xe[r.optionsField])==null?void 0:Ve.toLowerCase())===((ze=Et.get(y.value,r.optionsField))==null?void 0:ze.toLowerCase())})?y.value:{}),i.nextTick(()=>{f.value=m.value,I.value="",l.value=!1,F.value=!1,Q=!1}),$()}function De(){Q=!1,I.value="",y.value=Et.cloneDeep(f.value[o.value]),l.value=!1,F.value=!1,k.value.blur(),i.nextTick(()=>{Q=!1})}function Ye(ae){const xe=f.value[ae];return B.value[`${xe[r.optionsField]}-${ae}`]}function Ne(ae,xe,Ve){const ze=ae.getBoundingClientRect(),Fe=M.value,pt=Fe.getBoundingClientRect();Ve==="up"&&ze.top<=pt.top&&(Fe.scrollTop+=xe),Ve==="down"&&ze.top>=pt.bottom&&(Fe.scrollTop+=xe)}function ut(){if(!l.value||o.value===f.value.length-1)return;o.value+=1;const ae=Ye(o.value),xe=Ye(o.value-1);ae.classList.add("highlight"),xe.classList.remove("highlight"),Ne(ae,37,"down")}function _t(){if(!l.value||o.value===0)return;const ae=Ye(o.value),xe=Ye(o.value-1);ae.classList.remove("highlight"),xe.classList.add("highlight"),Ne(ae,-37,"up"),o.value-=1}function ft(ae){o.value=ae,Ye(o.value).classList.add("highlight")}function it(){Ye(o.value).classList.remove("highlight")}function Ze(){f.value.forEach((ae,xe)=>{const Ve=f.value[xe];B.value[`${Ve[r.optionsField]}-${xe}`].classList.remove("highlight")})}function Qe(){if(!r.addable||!I.value)return;const ae={id:I.value.toLowerCase().trim().replace(/ /g,"-"),[r.optionsField]:I.value.trim()};f.value=[...r.options,ae],m.value=f.value,y.value=ae}return t({componentRef:(Dt=k.value)==null?void 0:Dt.componentRef,isFocused:(lt=k.value)==null?void 0:lt.isFocused,focus:()=>{var ae;return(ae=k.value)==null?void 0:ae.focus()},blur:()=>{var ae;return(ae=k.value)==null?void 0:ae.blur()},clear:()=>{var ae;return(ae=k.value)==null?void 0:ae.clear()},select:()=>{var ae;return(ae=k.value)==null?void 0:ae.select()}}),(ae,xe)=>(i.openBlock(),i.createElementBlock("div",HD,[i.createElementVNode("div",{class:i.normalizeClass(["select__container",e.fluid?"select__container--fluid":"select__container--fit"])},[i.createVNode(Wi,i.mergeProps({id:ae.$attrs.id||d.value,ref:"baseInput"},{...ae.$attrs,...r},{modelValue:be.value,"onUpdate:modelValue":[xe[0]||(xe[0]=Ve=>be.value=Ve),ye],type:"text",onkeypress:`return ${h.value};`,placeholder:e.placeholder,disabled:e.disabled,readonly:!e.searchable||!l.value,"support-link-url":e.supportLinkUrl||e.linkUrl,"support-link":e.supportLink||e.linkText,"floating-label":e.floatingLabel||e.mobile,class:Z.value,fluid:G.value,ghost:e.ghost,onKeydown:[i.withKeys(i.withModifiers(de,["prevent"]),["enter"]),i.withKeys(i.withModifiers(ut,["prevent"]),["arrow-down"]),i.withKeys(i.withModifiers(_t,["prevent"]),["arrow-up"]),i.unref(N)],onClick:_e,onFocus:ue,onBlur:ge}),{"trailing-icon":i.withCtx(()=>[i.createElementVNode("span",{class:i.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","ghost","onKeydown"]),i.withDirectives(i.createElementVNode("div",{ref:"select-options",class:i.normalizeClass(["select__options",se.value])},[f.value.length>0?(i.openBlock(),i.createElementBlock("ul",WD,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(f.value,(Ve,ze)=>(i.openBlock(),i.createElementBlock("li",{key:Ve.id||Ve,ref_for:!0,ref:Fe=>{B.value[`${Ve[e.optionsField]}-${ze}`]=Fe},class:"option__text",onMousedown:De,onMouseover:Fe=>ft(ze),onMouseout:xe[1]||(xe[1]=Fe=>it())},[i.renderSlot(ae.$slots,"option",{index:ze,option:Ve,value:Ve[e.optionsField]},()=>[i.createTextVNode(i.toDisplayString(Ve[e.optionsField]),1)],!0)],40,YD))),128))])):(i.openBlock(),i.createElementBlock("ul",jD,xe[2]||(xe[2]=[i.createElementVNode("li",{class:"option__text--muted"}," Nenhuma opção encontrada ",-1)]))),me.value?(i.openBlock(),i.createElementBlock("div",{key:2,class:"option__add",onMousedown:Qe},[i.createElementVNode("span",UD,i.toDisplayString(I.value),1),xe[3]||(xe[3]=i.createElementVNode("small",{class:"add-button-text"},"Clique para adicionar",-1))],32)):i.createCommentVNode("",!0)],2),[[i.vShow,l.value]])],2)],512))}}),Vh=ie(qD,[["__scopeId","data-v-1d318593"]]),$h=Object.assign({name:"CdsSearchInput"},{__name:"SearchInput",props:i.mergeModels({disabled:{type:Boolean,default:!1},placeholder:{type:String,default:"Busque..."},hideLabel:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1},enableAutocomplete:{type:Boolean,default:!1}},{modelValue:{type:String},modelModifiers:{}}),emits:["update:modelValue"],setup(e,{expose:t}){var s,o;const n=i.useTemplateRef("baseInput"),a=i.useModel(e,"modelValue"),r=e;return t({componentRef:(s=n.value)==null?void 0:s.componentRef,isFocused:(o=n.value)==null?void 0:o.isFocused,focus:()=>{var l;return(l=n.value)==null?void 0:l.focus()},blur:()=>{var l;return(l=n.value)==null?void 0:l.blur()},clear:()=>{var l;return(l=n.value)==null?void 0:l.clear()},select:()=>{var l;return(l=n.value)==null?void 0:l.select()}}),(l,d)=>(i.openBlock(),i.createBlock(Wi,i.mergeProps({ref:"baseInput"},r,{modelValue:a.value,"onUpdate:modelValue":d[0]||(d[0]=h=>a.value=h),type:"search","leading-icon":"search-outline"}),null,16,["modelValue"]))}}),GD={class:"side-sheet__description"},KD={key:0},ZD={class:"side-sheet__divider"},XD={key:3,class:"side-sheet__empty-list"},JD={key:4},QD={class:"side-sheet__count"},eV=["onClick"],tV={class:"side-sheet__footer"},nV=ie(Object.assign({name:"CustomFieldsSideSheet"},{__name:"CustomFieldsSideSheet",props:i.mergeModels({customFieldsList:{type:Array,default:()=>[]},customFieldsSearchable:{type:Boolean,default:!1},selectionVariant:{type:String,default:"primary"},presetsOptions:{type:Array,default:()=>[]},trackBy:{type:String,required:!0},loadingCustomFields:{type:Boolean,default:!1},shouldDisableOkButton:{type:Boolean,default:!1},minFields:{type:Number,required:!0},maxFields:{type:Number,required:!0}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:i.mergeModels(["update-fields-list","cancel","update-preset"],["update:modelValue"]),setup(e,{emit:t}){const n=i.useModel(e,"modelValue"),a=e,r=t,s=i.ref([]),o=i.ref([]),l=i.ref({id:"custom",value:"Personalizado"}),d=i.ref(""),h=i.computed(()=>[...a.presetsOptions.map(B=>({id:Et.kebabCase(B.label),value:B.label})),{id:"custom",value:"Personalizado"}]),f=i.computed(()=>{const B=s.value.filter(C=>C.visible).length;return B<a.minFields||B>a.maxFields}),m=i.computed(()=>{const{minFields:B,maxFields:C}=a;return(($,N)=>N===1/0?$===1?"Selecione as colunas para exibir na tabela.":`Selecione ao menos ${$} colunas para exibir na tabela.`:$===N?$===1?"Selecione 1 coluna para exibir na tabela.":`Selecione ${$} colunas para exibir na tabela.`:$===1?`Selecione até ${N} colunas para exibir na tabela.`:`Selecione entre ${$} e ${N} colunas para exibir na tabela.`)(B,C)}),y=i.computed(()=>{const B=s.value.filter(C=>C.visible).length;return B===0?"Nenhuma coluna selecionada":B===1?"1 coluna selecionada":`${B} colunas selecionadas`});i.watch(()=>n,B=>{g(B.value)},{deep:!0}),i.watch(()=>a.customFieldsList,B=>{s.value=[...B.map(C=>({...C}))]},{immediate:!0}),i.watch(()=>d.value,B=>{if(!B){o.value=[...s.value.map(C=>({...C}))];return}o.value=s.value.filter(({label:C})=>Et.trim(C).toLowerCase().includes(Et.trim(B).toLowerCase()))}),i.watch(()=>l.value,B=>{var V,$;if(!B||B.id==="custom")return;const C=($=(V=a.presetsOptions)==null?void 0:V.find(({label:N})=>N===B.value))==null?void 0:$.columns;C&&o.value.forEach(N=>{N.visible=C.includes(N[a.trackBy])})}),i.watch(()=>o.value,()=>{M()},{deep:!0}),i.watch(()=>a.customFieldsList,B=>{Et.isEmpty(B)||(s.value=[...B.map(C=>({...C}))],o.value=[...B.map(C=>({...C}))],M())},{deep:!0}),i.onBeforeUnmount(()=>{document.body.style.overflow="auto"}),i.onMounted(()=>{s.value=[...a.customFieldsList.map(B=>({...B}))],o.value=[...a.customFieldsList.map(B=>({...B}))]});function g(B){document.body.style.overflow=B?"hidden":"auto"}function v(){d.value="",o.value=[...s.value.map(B=>({...B}))]}function _(){s.value=[...a.customFieldsList.map(B=>({...B}))],v(),n.value=!1,r("cancel")}function k(){v(),r("update-preset",l.value.value),r("update-fields-list",s.value),n.value=!1}function x(){s.value.forEach(B=>{const C=o.value.find(V=>V[a.trackBy]===B[a.trackBy]);C&&(B.visible=C.visible)})}function M(){x();const B=s.value.filter(({visible:V})=>V===!0).map(V=>V[a.trackBy]),C=a.presetsOptions.find(({columns:V})=>A4(V,B));if(!C){l.value={id:"custom",value:"Personalizado"};return}l.value={id:Et.kebabCase(C.label),value:C.label}}return(B,C)=>{const V=i.resolveDirective("cdstip");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(H4,{modelValue:n.value,"onUpdate:modelValue":C[2]||(C[2]=$=>n.value=$),title:"Personalizar tabela","no-close-on-esc":"","with-overlay":"","no-close-on-backdrop":"",onClose:_},{footer:i.withCtx(()=>[i.createElementVNode("div",tV,[i.createVNode(fn,{secondary:"",onButtonClick:_},{default:i.withCtx(()=>C[3]||(C[3]=[i.createTextVNode(" Cancelar ")])),_:1,__:[3]}),i.withDirectives((i.openBlock(),i.createBlock(fn,{variant:e.selectionVariant,disabled:f.value,block:"",onButtonClick:k},{default:i.withCtx(()=>C[4]||(C[4]=[i.createTextVNode(" Salvar ")])),_:1,__:[4]},8,["variant","disabled"])),[[V,f.value?m.value:""]])])]),default:i.withCtx(()=>[i.createVNode(Ue,{direction:"column",gap:"1",fluid:""},{default:i.withCtx(()=>[i.createElementVNode("div",GD,i.toDisplayString(m.value),1),e.presetsOptions.length>0?(i.openBlock(),i.createElementBlock("div",KD,[i.createVNode(Vh,{modelValue:l.value,"onUpdate:modelValue":C[0]||(C[0]=$=>l.value=$),label:"Conjunto de colunas",placeholder:"Selecione um preset",options:h.value,fluid:""},null,8,["modelValue","options"]),i.createElementVNode("div",ZD,[i.createVNode(zr,{dimmed:""})])])):i.createCommentVNode("",!0),e.customFieldsSearchable?(i.openBlock(),i.createBlock($h,{key:1,modelValue:d.value,"onUpdate:modelValue":C[1]||(C[1]=$=>d.value=$),class:"side-sheet__search",label:"Buscar",placeholder:"Buscar por coluna...",fluid:""},null,8,["modelValue"])):i.createCommentVNode("",!0),e.loadingCustomFields?(i.openBlock(),i.createBlock(Ue,{key:2,direction:"column",gap:"3"},{default:i.withCtx(()=>[(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(8,$=>i.createVNode(Ea,{key:$,height:60,fluid:""})),64))]),_:1})):d.value&&!o.value.length?(i.openBlock(),i.createElementBlock("div",XD," Nenhuma coluna encontrada ")):(i.openBlock(),i.createElementBlock("div",JD,[i.createElementVNode("div",QD,i.toDisplayString(y.value),1),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,$=>(i.openBlock(),i.createElementBlock("div",{key:$,class:i.normalizeClass(["side-sheet__column-item",[{[`side-sheet__column-item--active--${e.selectionVariant}`]:$.visible},`side-sheet__column-item--${e.selectionVariant}`]]),onClick:N=>$.visible=!$.visible},[i.createElementVNode("span",{class:i.normalizeClass(["side-sheet__item-label",$.visible?`side-sheet__item-label--${e.selectionVariant}`:""])},i.toDisplayString($.label),3),$.visible?(i.openBlock(),i.createBlock(ve,{key:0,class:i.normalizeClass(`side-sheet__icon--${e.selectionVariant}`),name:"pin-fill",width:"20",height:"20"},null,8,["class"])):(i.openBlock(),i.createBlock(ve,{key:1,class:"side-sheet__icon",name:"pin-outline",width:"20",height:"20"}))],10,eV))),128))]))]),_:1})]),_:1},8,["modelValue"])])}}}),[["__scopeId","data-v-df5087de"]]),iV=["teal","green","blue","indigo","violet","pink","red","orange","amber"],aV={name:"CdsEmptyState",components:{CdsButton:fn},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:e=>iV.includes(e)}}},rV={class:"empty-state"},sV=["src","alt"],oV={class:"empty-state__title"},lV={class:"empty-state__text"};function cV(e,t,n,a,r,s){const o=i.resolveComponent("CdsButton");return i.openBlock(),i.createElementBlock("div",rV,[i.renderSlot(e.$slots,"graphic-element",{},()=>[i.createElementVNode("img",{class:"empty-state__image",src:n.image,alt:n.imageDescription},null,8,sV)],!0),i.createElementVNode("div",oV,i.toDisplayString(n.title),1),i.createElementVNode("div",lV,[i.renderSlot(e.$slots,"text",{},()=>[i.createTextVNode(i.toDisplayString(n.text),1)],!0)]),n.hideActionButton?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(o,{key:0,class:"empty-state__button",text:n.actionButtonText,variant:n.actionButtonVariant,onClick:t[0]||(t[0]=l=>e.$emit("action-button-click",!0))},null,8,["text","variant"]))])}const uy=ie(aV,[["render",cV],["__scopeId","data-v-e094b28a"]]),dV=["id"],uV={class:"data-table"},hV=["id"],fV={key:1,class:"data-table__items-counter"},pV={key:0},mV={key:1},gV={key:2,class:"data-table__items-counter--below"},yV={key:1},bV=["id"],vV={key:0},_V={key:1},wV={key:0,class:"empty"},kV={key:1},CV=ie(Object.assign({name:"CdsDataTable"},{__name:"DataTable",props:{selectionVariant:{type:String,default:"green"},totalItems:{type:Number,required:!0},customFieldsList:{type:Array,default:()=>[]},customFieldsSearchable:{type:Boolean,default:!1},hideCustomizeButton:{type:Boolean,default:!1},presetsOptions:{type:Array,default:()=>[]},customFieldsTrackBy:{type:String,default:"id"},loadingCustomFields:{type:Boolean,default:!1},minVisibleFields:{type:Number,default:1,validator:e=>e>=1},maxVisibleFields:{type:Number,default:0,validator:e=>e>=0},withSearch:{type:Boolean,default:!1},searchPlaceholder:{type:String,default:"Buscar..."},withSearchButton:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},emptySrcImg:{type:String,default:null},emptyTitle:{type:String,default:"Nenhum registro"},emptyDescription:{type:String,default:"Certifique-se de ajustar os filtros para encontrar resultados."},searchInputDelay:{type:Number,default:500,validator:e=>e>=0}},emits:["update-fields-list","customize-click","search","search-button-click"],setup(e,{expose:t,emit:n}){i.useCssVars(de=>({"586cb0cc":Z.value}));const a=is("header-item"),r=is("empty"),s=i.useAttrs(),o=i.useTemplateRef("search-input"),l=e,d=n,h=i.ref(!1),f=i.ref(0),m=i.ref(Array(s.fields.length).fill(0)),y=i.ref(0),g=i.ref(!1),v=i.ref(""),_=i.ref(null),k=i.ref(Et.cloneDeep(l.customFieldsList)),x=i.ref("Personalizado"),M=oa(),B=oa(),C=oa();let V=!1,$=0,N=!1,I,F;const q=new IntersectionObserver(de=>{de.forEach(_e=>{!_e.isIntersecting&&N?h.value=!0:h.value=!1})},{threshold:.1}),Q=i.computed(()=>l.maxVisibleFields===0?1/0:l.maxVisibleFields>l.minVisibleFields?l.maxVisibleFields:l.minVisibleFields),P=i.computed(()=>l.emptySrcImg??"https://cdn-icons-png.flaticon.com/512/7486/7486747.png"),Z=i.computed(()=>y.value>0?"0px":"8px");i.watch(()=>l.customFieldsList,()=>{k.value=Et.cloneDeep(l.customFieldsList)},{immediate:!0}),i.watch(()=>l.loading,de=>{!de&&o.value&&i.nextTick(()=>{o.value.focus()}),de||ue()},{immediate:!0}),i.onMounted(()=>{ue(),s.fixedHeader&&($=window.scrollY,I=document.getElementById(M),F=document.getElementById(C),I&&I.addEventListener("scroll",()=>se(I,F)),F&&F.addEventListener("scroll",()=>se(F,I)),window.addEventListener("scroll",U),m.value=s.fields.map(de=>document.getElementById((de==null?void 0:de.key)??de).getBoundingClientRect().width),q.observe(document.getElementById(B)),f.value=document.getElementById(C).getBoundingClientRect().width)}),i.onUnmounted(()=>{q&&q.disconnect(),I&&I.removeEventListener("scroll",se),F&&F.removeEventListener("scroll",se),window.removeEventListener("scroll",U)});function se(de,_e){V||(V=!0,_e.scrollLeft=de.scrollLeft,y.value=_e.scrollLeft,V=!1)}function U(){const de=window.scrollY;N=de>$,$=de}function me(de){return de!==0&&de!==s.fields.length-1?"virtual-header__th":de===0?"virtual-header__th--first":"virtual-header__th--last"}function be(){d("customize-click"),g.value=!0}function G(){k.value=Et.cloneDeep(l.customFieldsList),d("cancel")}function ye(de){d("update-fields-list",de)}function Y(de,_e){if(_e==="button"){clearTimeout(_.value),d("search-button-click",de);return}!l.withSearchButton&&_e==="input"&&(clearTimeout(_.value),_.value=setTimeout(()=>{d("search",de)},l.searchInputDelay))}function ee(de){x.value=de}function ue(){i.nextTick(()=>{const de=s.fields.map(ge=>ge.key),_e=l.presetsOptions.find(ge=>A4(ge.columns,de));if(_e){x.value=_e.label;return}x.value="Personalizado"})}return t({resetSearch:()=>v.value="",setSearch:de=>v.value=de}),(de,_e)=>(i.openBlock(),i.createElementBlock("div",null,[i.withDirectives(i.createElementVNode("div",{id:i.unref(M),class:"virtual-header",style:i.normalizeStyle({width:`${f.value}px`})},[de.$attrs.allowSelection?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["virtual-header__selection-offset",me(0)])},null,2)):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(de.$attrs.fields,(ge,De)=>(i.openBlock(),i.createElementBlock("div",{key:De,class:i.normalizeClass(me(De)),style:i.normalizeStyle({minWidth:`${m.value[De]}px`})},i.toDisplayString(ge.label??ge),7))),128))],12,dV),[[i.vShow,de.$attrs.fixedHeader&&h.value]]),i.createElementVNode("div",uV,[i.createElementVNode("div",{id:i.unref(B),class:"data-table__header"},[e.withSearch?(i.openBlock(),i.createBlock(Ue,{key:0,gap:"2",fluid:"",wrap:"no-wrap"},{default:i.withCtx(()=>[i.createVNode($h,{ref:"search-input",modelValue:v.value,"onUpdate:modelValue":[_e[0]||(_e[0]=ge=>v.value=ge),_e[1]||(_e[1]=ge=>Y(ge,"input"))],"hide-label":"",fluid:"",placeholder:e.searchPlaceholder,disabled:e.loading,onKeydown:_e[2]||(_e[2]=i.withKeys(i.withModifiers(ge=>Y(v.value,"button"),["prevent"]),["enter"]))},null,8,["modelValue","placeholder","disabled"]),e.withSearchButton?(i.openBlock(),i.createBlock(fn,{key:0,secondary:"",text:"Buscar",disabled:e.loading,onButtonClick:_e[3]||(_e[3]=ge=>Y(v.value,"button"))},null,8,["disabled"])):i.createCommentVNode("",!0)]),_:1})):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[e.loading?(i.openBlock(),i.createBlock(Ea,{key:0,width:150,height:15})):(i.openBlock(),i.createElementBlock("div",fV,i.toDisplayString(e.totalItems)+" "+i.toDisplayString(e.totalItems===1?"registro encontrado":"registros encontrados"),1))],64)),i.createVNode(Ue,{class:"data-table__actions",gap:"3",align:"center",justify:"flex-end"},{default:i.withCtx(()=>[i.renderSlot(de.$slots,"right",{},void 0,!0),e.hideCustomizeButton?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(fn,{key:0,size:e.withSearch?"md":"sm",secondary:"",disabled:e.loading,onButtonClick:be},{default:i.withCtx(()=>[e.presetsOptions.length?(i.openBlock(),i.createElementBlock("span",pV," Colunas: "+i.toDisplayString(x.value),1)):(i.openBlock(),i.createElementBlock("span",mV," Personalizar colunas "))]),_:1},8,["size","disabled"]))]),_:3}),e.withSearch?(i.openBlock(),i.createElementBlock("div",gV,[e.loading?(i.openBlock(),i.createBlock(Ea,{key:0,width:150,height:15})):(i.openBlock(),i.createElementBlock("span",yV,i.toDisplayString(e.totalItems)+" "+i.toDisplayString(e.totalItems===1?"registro encontrado":"registros encontrados"),1))])):i.createCommentVNode("",!0)],8,hV),i.createElementVNode("div",{id:i.unref(C),class:"data-table__table-container"},[e.loading?(i.openBlock(),i.createElementBlock("div",vV,[i.createVNode(_h,{fields:de.$attrs.fields,items:[{},{},{},{}]},{"table-item":i.withCtx(()=>[i.createVNode(Ea,{width:"100",height:"20"})]),_:1},8,["fields"])])):i.unref(Et.isEmpty)(de.$attrs.items)?(i.openBlock(),i.createElementBlock("div",_V,[i.unref(r)?(i.openBlock(),i.createElementBlock("div",wV,[i.renderSlot(de.$slots,"empty",{},void 0,!0)])):(i.openBlock(),i.createElementBlock("div",kV,[i.createVNode(uy,{image:P.value,title:e.emptyTitle,"hide-action-button":""},{text:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.emptyDescription),1)]),_:1},8,["image","title"])]))])):(i.openBlock(),i.createBlock(_h,i.mergeProps({key:2},de.$attrs,{"selection-variant":e.selectionVariant}),i.createSlots({"table-item":i.withCtx(({data:ge,field:De,rowIndex:Ye,colIndex:Ne})=>[i.renderSlot(de.$slots,"table-item",{data:ge,field:De,rowIndex:Ye,colIndex:Ne},void 0,!0)]),_:2},[i.unref(a)?{name:"header-item",fn:i.withCtx(({data:ge,field:De})=>[i.renderSlot(de.$slots,"header-item",{data:ge,field:De},void 0,!0)]),key:"0"}:void 0]),1040,["selection-variant"]))],8,bV)]),i.createVNode(nV,{modelValue:g.value,"onUpdate:modelValue":_e[4]||(_e[4]=ge=>g.value=ge),"custom-fields-list":k.value,"custom-fields-searchable":e.customFieldsSearchable,"selection-variant":e.selectionVariant,"presets-options":e.presetsOptions,"loading-custom-fields":e.loadingCustomFields,"track-by":e.customFieldsTrackBy,"min-fields":e.minVisibleFields,"max-fields":Q.value,onUpdateFieldsList:_e[5]||(_e[5]=ge=>d("update-fields-list",ge)),onCustomizeClick:be,onCancel:G,onOk:ye,onUpdatePreset:ee},null,8,["modelValue","custom-fields-list","custom-fields-searchable","selection-variant","presets-options","loading-custom-fields","track-by","min-fields","max-fields"])]))}}),[["__scopeId","data-v-e9578d09"]]),fu=ie(Object.assign({name:"CdsGrid"},{__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:e=>["div","span","main","footer","form","header","aside","ul","li"].includes(e)}},setup(e){i.useCssVars(h=>({f0785fd2:e.align,a133c6e4:a.value,"09df137c":l.value,"0720bf3c":d.value,"1ff01ed6":s.value,ddf4e6a6:o.value,dbd2b1bc:e.justify}));const t=e,n=h=>{const f=h.match(/^(\d+(\.\d+)?)(.*)$/);return f?f[3]?h:f?`${parseFloat(f[1])*4}px`:null:null},a=i.computed(()=>{let h="";return t.gap&&t.gap!==0&&t.gap!=="0"?Number.isFinite(t.gap)?`${t.gap*4}px`:n(t.gap):(t.rowGap?Number.isFinite(t.rowGap)?h=`${t.rowGap*4}px`:h=n(t.rowGap):h="0px",t.colGap?Number.isFinite(t.colGap)?h+=` ${t.colGap*4}px`:h+=` ${n(t.colGap)}`:h+=" 0px",h)}),r=h=>Array.isArray(h)?h.reduce((f,m)=>`${f} ${m}`):Number.isFinite(h)?`${"1fr ".repeat(h)}`:`${h}`,s=i.computed(()=>r(t.cols)),o=i.computed(()=>r(t.rows)),l=i.computed(()=>r(t.autoCols)),d=i.computed(()=>r(t.autoRows));return(h,f)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.tag),{class:"grid"},{default:i.withCtx(()=>[i.renderSlot(h.$slots,"default",{},void 0,!0)]),_:3}))}}),[["__scopeId","data-v-ff0b2888"]]),Th=i.ref(!1);function hy(e,t,n){Th.value=n;const a=i.ref("down");let r=e.value.getBoundingClientRect();return r.top+r.height+t<window.innerHeight?a.value="down":a.value="up",a.value}const fy=i.computed(()=>Th.value?"56px":"72px"),py=i.computed(()=>Th.value?"76px":"68px"),xV=["onClick"],SV=Object.assign({name:"CdsMonthSelectorGrid"},{__name:"MonthSelectorGrid",props:{variant:{type:String,default:"green"},minDate:{type:String,default:""},maxDate:{type:String,default:""},selectedDate:{type:String,default:"",required:!1},year:{type:Number,default:fe.now().year}},emits:["click"],setup(e,{emit:t}){const n=["jan","fev","mar","abr","maio","jun","jul","ago","set","out","nov","dez"],a=e,r=t,s=i.ref(a.selectedDate),o=i.ref(a.minDate),l=i.ref(a.maxDate),d=i.computed(()=>{if(!s.value)return null;const g=s.value.split("-")[1];return g?parseInt(g):null});i.watch(()=>a.selectedDate,g=>{s.value=g}),i.watch(()=>a.minDate,g=>{o.value=g},{immediate:!0}),i.watch(()=>a.maxDate,g=>{l.value=g},{immediate:!0}),i.onMounted(()=>{s.value=s.value?s.value:""});function h(g){const v=g+1,_=a.year;if(a.minDate){const[k,x]=a.minDate.split("-").map(Number);if(_<k||_===k&&v<x)return!0}if(a.maxDate){const[k,x]=a.maxDate.split("-").map(Number);if(_>k||_===k&&v>x)return!0}return!1}function f(g){return{[`month-selector__month--${a.variant}`]:!0,"month-selector__month--disabled":h(g),[`month-selector__month--selected--${a.variant}`]:g+1==d.value}}function m(g,v){return{month:g,index:v<9?`0${v+1}`:v+1}}function y(g,v){h(v)||r("click",m(g,v))}return(g,v)=>typeof s.value=="string"?(i.openBlock(),i.createBlock(fu,{key:0,cols:3,gap:"5px",class:"month-selector__grid"},{default:i.withCtx(()=>[(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(n,(_,k)=>i.createElementVNode("div",{key:_,class:i.normalizeClass(["month-selector__month",f(k)]),onClick:x=>y(_,k)},i.toDisplayString(_),11,xV)),64))]),_:1})):i.createCommentVNode("",!0)}}),my=ie(SV,[["__scopeId","data-v-44c1341c"]]),BV={class:"scroll-indicator__container"},MV=["onClick"],EV=ie(Object.assign({name:"CdsYearSelectorGrid"},{__name:"YearSelectorGrid",props:{variant:{type:String,default:"green"},selectedDate:{type:String,default:"",required:!1},minDate:{type:String,default:""},maxDate:{type:String,default:""}},emits:["click"],setup(e,{emit:t}){const n=e,a=t,r=fe.now().year,s=i.computed(()=>n.selectedDate?parseInt(n.selectedDate.split("-")[0]):null),o=i.computed(()=>n.minDate?parseInt(n.minDate.split("-")[0]):r-120),l=i.computed(()=>n.maxDate?parseInt(n.maxDate.split("-")[0]):r+50),d=i.ref((s.value||r)-7),h=i.ref(33),f=i.ref(!1),m=i.ref(0),y=i.ref(0),g=i.computed(()=>new Array(12).fill(0).map((I,F)=>d.value+F)),v=i.computed(()=>{const N=l.value-o.value;return(d.value-o.value)/N*(100-h.value)});i.onUnmounted(()=>{window.removeEventListener("mousemove",C),window.removeEventListener("mouseup",V)});function _(N){N.deltaY>0?x():M()}function k(N){return{[`year-selector__year--${n.variant}`]:!0,"year-selector__year--disabled":N<o.value||N>l.value,[`year-selector__year--selected--${n.variant}`]:N==s.value}}function x(){d.value+11<l.value&&(d.value+=3)}function M(){d.value>o.value&&(d.value-=3)}function B(N){f.value=!0,m.value=N.clientY,y.value=d.value,window.addEventListener("mousemove",C),window.addEventListener("mouseup",V)}function C(N){if(!f.value)return;const I=N.clientY-m.value,q=Math.round(I*.5);if(q!==0){const Q=y.value+(q>0?3:-3);Q>=o.value&&Q+11<=l.value&&(d.value=Q,m.value=N.clientY,y.value=d.value)}}function V(){f.value=!1,window.removeEventListener("mousemove",C),window.removeEventListener("mouseup",V)}function $(N){N>l.value||N<o.value||a("click",N)}return(N,I)=>(i.openBlock(),i.createElementBlock("div",BV,[i.createVNode(fu,{cols:3,gap:"5px",class:"year-selector__grid",tabindex:"0",onWheel:i.withModifiers(_,["prevent"])},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(g.value,F=>(i.openBlock(),i.createElementBlock("div",{key:`next-${F}`,class:i.normalizeClass([k(F),"year-selector__year"]),onClick:q=>$(F)},i.toDisplayString(F),11,MV))),128))]),_:1}),i.createElementVNode("div",{class:"scroll-indicator",onMousedown:i.withModifiers(B,["prevent"])},[i.createElementVNode("div",{class:"scroll-indicator__thumb",style:i.normalizeStyle({height:`${h.value}%`,top:`${v.value}%`})},null,4)],32)]))}}),[["__scopeId","data-v-987db81a"]]);function gy(e={}){const t=i.ref(e.initialState||!1);let n=null;const a=s=>{n&&(t.value=!n.contains(s.target))},r=s=>{n=s};return i.onMounted(()=>{document.addEventListener("click",a),document.addEventListener("touchend",a)}),i.onUnmounted(()=>{document.removeEventListener("click",a),document.removeEventListener("touchend",a)}),{clickedOutside:t,setTargetElement:r}}const OV={"#":{pattern:/\d/},X:{pattern:/[0-9a-z]/i},S:{pattern:/[a-z]/i},A:{pattern:/[a-z]/i,transform:e=>e.toLocaleUpperCase()},a:{pattern:/[a-z]/i,transform:e=>e.toLocaleLowerCase()},"\\":{escape:!0},"?":{optional:!0},"*":{repeat:!0},"|":{pipe:!0}},rs="__input-facade__";function Ih(e){this.masked=this.unmasked=e||""}function yy(){return new CustomEvent("input",{bubbles:!0,cancelable:!0,detail:{facade:!0}})}function Ah(e,t){return(Array.isArray(e)||typeof e=="string")&&(e={mask:e}),Object.assign(e||{},t)}function pu(e){const t=e instanceof HTMLInputElement?e:e.querySelector("input");if(!t)throw new Error("facade directive requires an input element");return t}function by(e,t){const{target:n,detail:a,inputType:r}=e;if(a!=null&&a.facade||(e.stopPropagation(),["insertCompositionText","insertFromComposition"].includes(r)&&t[rs].config.mask))return!1;const s=n.value,o=n.selectionEnd,{oldValue:l}=n[rs];mu(n,null,{emit:!1},e),DV(e,s,o),l!==n.value&&n.dispatchEvent(yy())}function DV(e,t,n){const{target:a}=e,r=["text","tel","search",null].includes(a.getAttribute("type")),s=a[rs]&&a[rs].config;if(a!==document.activeElement||!r||!s.mask&&!s.masked)return;const o=e.inputType||"insertText",l=["insertText","insertFromPaste"].includes(o),d=l&&n==t.length;let h=l&&t[n-1];const f=a.value.toLocaleLowerCase();let m=n;if(d)m=f.length;else if(h){h=h.toLocaleLowerCase();let y=m;for(;y<=f.length&&f.charAt(y-1)!==h;)y++;m=y<=f.length?y:m-1}a.setSelectionRange(m,m),setTimeout(function(){a.setSelectionRange(m,m)},0)}function mu(e,t,{emit:n=!0,force:a=!1}={},r){var s,o;let{config:l,oldValue:d,isComposing:h}=e[rs],f=((o=(s=t==null?void 0:t.data)==null?void 0:s.model)==null?void 0:o.value)||e.value;if(!(l.mask&&h)&&(d=d||"",f=f||"",a||d!==f)){["deleteByCut","deleteContent","deleteContentBackward","deleteContentForward"].includes(r==null?void 0:r.inputType)&&(l={...l,short:!0});let m=wy(f,l);if(r&&typeof l.formatter=="function"){const y=l.formatter(m,r);if(typeof y=="string")m=wy(y,l);else if(y===!1){e.value=d;return}}e[rs].oldValue=m.masked,e.unmaskedValue=m.unmasked,e.value!==m.masked&&(e.value=m.masked),n&&e.dispatchEvent(yy())}}let Nh=OV,vy=!1;try{"a".localeCompare("b","i")}catch(e){vy=e.name==="RangeError"}function VV(e){e&&(Nh=e)}function $V(e,t){const n=t.masks.slice().sort((l,d)=>l.length-d.length),a=l=>Object.assign({},t,l),r=(l,d)=>{const h=zh(e,a({mask:d})),f=l.unmasked.length;return h.unmasked.length>f?h:l};if(!n.length)return new Ih;const s=n.shift();let o=zh(e,a({mask:s}));for(;n.length;){const l=n.shift();o=r(o,l)}return o}function zh(e,t){var n,a;let{mask:r="",tokens:s,prefill:o=!1,short:l=!1}=t;s=s?Object.assign({},Nh,s):Nh;let d=new Ih,h=!1,f=0,m=0,y="";function g(v){const _=r[m+1],k=s[_];return{escape:!!(v!=null&&v.escape),optional:!!(k!=null&&k.optional),repeat:!!(k!=null&&k.repeat),...(k==null?void 0:k.pipe)&&{pipe:r.substring(m).match(/^(.\|)+./g)[0].split("|")}}}for(;m<r.length;){const v=r[m],_=s[v];let k=e[f];const x=g(_);if(_&&!h&&!x.pipe){if(x.escape){h=!0,m++;continue}if(!k)break;if((n=_.pattern)!=null&&n.test(k))k=((a=_.transform)==null?void 0:a.call(_,k))||k,d.unmasked+=k,d.masked+=y+k,y="",x.repeat||(m+=x.optional?2:1);else if(x.optional||x.repeat){m+=2;continue}f++}else if(x.pipe){if(!k)break;const M=x.pipe.find(_y.bind(null,k));M&&(d.unmasked+=M,d.masked+=y+M,m+=x.pipe.length*2-1,y=""),f++}else _y(k,v)?(d.masked+=y+v,f++,y="",x.optional&&(d.unmasked+=v)):x.optional||(y+=v),h=!1,m+=x.optional?2:1}return(o&&!d.unmasked||!l&&d.unmasked)&&(d.masked+=y),d}function _y(e,t){return vy?(e==null?void 0:e.localeCompare(t,void 0,{sensitivity:"base"}))===0:(e==null?void 0:e.toLocaleLowerCase())===(t==null?void 0:t.toLocaleLowerCase())}function wy(e,t){return e=(e||"").toString(),t=Ah(t),t.mask?Array.isArray(t.mask)?$V(e,Object.assign({},t,{masks:t.mask})):zh(e,t):new Ih(e)}const ao=rs,ro={beforeMount:(e,{value:t,modifiers:n},a)=>{e=pu(e);const r=Ah(t,n);e[ao]={config:r},mu(e,a,{force:r.prefill})},mounted:e=>{e=pu(e);const t=e[ao],n=e.parentElement||e,a=s=>{s.target===e&&by(s,e)},r=s=>{s.target===e&&(s.type==="compositionend"?(e[ao].isComposing=!1,by(s,e)):e[ao].isComposing=!0)};n.addEventListener("input",a,!0),n.addEventListener("compositionstart",r,!0),n.addEventListener("compositionupdate",r,!0),n.addEventListener("compositionend",r,!0),t.cleanup=()=>{n.removeEventListener("input",a,!0),n.removeEventListener("compositionstart",r,!0),n.removeEventListener("compositionend",r,!0),n.removeEventListener("compositionupdate",r,!0)}},updated:(e,{value:t,oldValue:n,modifiers:a},r)=>{e=pu(e),t!==n?(e[ao].config=Ah(t,a),mu(e,r,{force:!0})):mu(e,r)},unmounted:e=>{pu(e)[ao].cleanup()}},TV=(e,t)=>{const n=e.__vccOpts||e;for(const[a,r]of t)n[a]=r;return n},IV={name:"InputFacade",directives:{facade:ro},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(e){e!==this.emittedValue&&(this.maskedValue=e)},mask:{deep:!0,handler(e){!e&&!this.masked&&(this.maskedValue=this.unmaskedValue)}},masked(){this.emitInput()}},methods:{onInput({target:e}){this.maskedValue=e.value,this.unmaskedValue=e.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)}}},AV=["value"];function NV(e,t,n,a,r,s){const o=i.resolveDirective("facade");return i.withDirectives((i.openBlock(),i.createElementBlock("input",{type:"text",value:r.maskedValue,onInput:t[0]||(t[0]=(...l)=>s.onInput&&s.onInput(...l)),onChange:t[1]||(t[1]=(...l)=>s.onChange&&s.onChange(...l)),onKeyup:t[2]||(t[2]=l=>e.$emit("keyup",l)),onKeydown:t[3]||(t[3]=l=>e.$emit("keydown",l)),onPaste:t[4]||(t[4]=l=>e.$emit("paste",l))},null,40,AV)),[[o,s.config]])}const ky=TV(IV,[["render",NV]]),zV={install(e,t={}){t.tokens&&VV(t.tokens),e.component(ky.name,ky),e.directive(t.name||"facade",ro)}};typeof window<"u"&&window.Vue&&window.Vue.use(zV);const LV={ref:"datePicker",class:"date-input"},PV={class:"date-input__icon"},FV={class:"calendar__header"},RV=["disabled","onClick","onMouseenter"],HV=Object.assign({name:"CdsDateInput"},{__name:"DateInput",props:i.mergeModels({label:{type:String,default:"Label"},variant:{type:String,default:"green"},state:{type:String,default:"default"},mode:{type:String,default:"picking",validator:e=>["typing","picking"].includes(e)},range:{type:Boolean,default:!1},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1},mobile:{type:Boolean,default:!1},floatingLabel:{type:Boolean,default:!1},showTodayDot:{type:Boolean,default:!1},highlightToday:{type:Boolean,default:!1},placeholder:{type:String,default:"Selecione uma data"},errorMessage:{type:String,default:"Valor inválido"},minDate:{type:String,default:""},maxDate:{type:String,default:""},tooltip:{type:String,default:null},tooltipIcon:{type:String,default:"info-outline"},supportingText:{type:[String,Array],default:""},supportLink:{type:String,default:null},supportLinkUrl:{type:[String,null],default:null}},{modelValue:{type:[String,Object]},modelModifiers:{}}),emits:i.mergeModels({...mr},["update:modelValue"]),setup(e,{expose:t,emit:n}){var _n,J;i.useCssVars(j=>({d43b80c0:de.value,64416106:i.unref(py),ce41e368:i.unref(fy)}));const a=ro,r=["S","T","Q","Q","S","S","D"],s=["dd/MM/yyyy","MM/dd/yyyy","yyyy-MM-dd","dd-MM-yyyy","dd.MM.yyyy","dd MMM yyyy","MMM dd yyyy"],o=i.useModel(e,"modelValue"),l=e,d=n,h=i.useTemplateRef("baseInput"),f=i.useTemplateRef("datePicker"),{emitClick:m,emitFocus:y,emitBlur:g,emitKeydown:v}=pr(d),{clickedOutside:_,setTargetElement:k}=gy(),x=i.ref(!1),M=i.ref(fe.now().setLocale("pt-BR")),B=i.ref(null),C=i.ref(null),V=i.ref(null),$=i.ref(!1),N=i.ref(r),I=i.ref(""),F=i.ref(!1),q=i.ref(!1),Q=i.ref(!1),P=i.ref("down"),Z=i.ref(null),se=i.computed(()=>M.value.setLocale("pt-BR").toFormat("MMMM")),U=i.computed(()=>M.value.setLocale("pt-BR").toFormat("yyyy")),me=i.computed(()=>M.value.toFormat("yyyy-MM-dd")),be=i.computed(()=>M.value.startOf("month").weekday-1),G=i.computed(()=>{const j=[],pe=M.value.daysInMonth;for(let R=1;R<=pe;R++)j.push(R);return j}),ye=i.computed(()=>l.minDate?fe.fromFormat(l.minDate,"yyyy-MM-dd"):null),Y=i.computed(()=>l.maxDate?fe.fromFormat(l.maxDate,"yyyy-MM-dd"):null),ee=i.computed(()=>q.value||Q.value?!1:ye.value?M.value.minus({months:1}).startOf("month")>=ye.value.startOf("month"):!0),ue=i.computed(()=>q.value||Q.value?!1:Y.value?M.value.plus({months:1}).startOf("month")<=Y.value.startOf("month"):!0),de=i.computed(()=>l.fluid?"100%":"fit-content");i.watch(o,j=>{if(!j){pt(),M.value=fe.now().setLocale("pt-BR");return}if(!fe.fromISO(j).isValid&&typeof j=="string")throw pt(),o.value=null,console.warn("Data informada é inválida"),new Error("Invalid DateTime");typeof j=="string"?(B.value=fe.fromISO(j),I.value=B.value.toFormat("dd/MM/yyyy"),M.value=B.value.startOf("month")):l.range&&typeof j=="object"&&(j.start&&(B.value=fe.fromISO(j.start)),j.end&&(C.value=fe.fromISO(j.end)),B.value&&C.value?(I.value=`De ${B.value.toFormat("dd/MM/yyyy")} a ${C.value.toFormat("dd/MM/yyyy")}`,M.value=C.value.startOf("month")):B.value&&(M.value=B.value.startOf("month")))},{immediate:!0}),i.watch(_,j=>{j&&x.value&&(x.value=!1)}),i.watch(f,j=>{j&&k(j)}),i.watch(()=>l.range,()=>{Z.value=l.range?null:"##/##/####"},{immediate:!0});function _e(j){const pe=M.value.set({day:j});return!!(ye.value&&pe.startOf("day")<ye.value||Y.value&&pe.startOf("day")>Y.value)}function ge(j){const pe=fe.now();return M.value.set({day:j}).hasSame(pe,"day")}function De(){l.disabled||(x.value=!x.value,P.value=hy(f,340,l.mobile||l.floatingLabel),x.value&&(l.range&&C.value?M.value=C.value.startOf("month"):B.value&&(M.value=B.value.startOf("month"))),m())}function Ye(){ee.value&&(M.value=M.value.minus({months:1}))}function Ne(){ue.value&&(M.value=M.value.plus({months:1}))}function ut(j){l.range&&B.value&&!C.value&&!_e(j)&&(V.value=M.value.set({day:j}),$.value=!0)}function _t(){$.value=!1,V.value=null}function ft(j){const pe=[`calendar__day--${l.variant}`],R=M.value.set({day:j});if(ge(j)&&(l.showTodayDot||l.highlightToday)&&pe.push(`today--${l.variant}`),_e(j))return pe.push("disabled-day"),pe;if(l.range){const T=B.value&&R.hasSame(B.value,"day"),K=C.value&&R.hasSame(C.value,"day");T||K?pe.push(`selected-day--${l.variant}`):B.value&&C.value&&R>B.value&&R<C.value?pe.push(`between-day--${l.variant}`):B.value&&!C.value&&V.value&&$.value&&(V.value<B.value&&R<B.value&&R>=V.value||V.value>B.value&&R>B.value&&R<=V.value)&&pe.push(`between-day--${l.variant}`)}else B.value&&R.hasSame(B.value,"day")&&pe.push(`selected-day--${l.variant}`);return pe}function it(j){if(_e(j))return;const pe=M.value.set({day:j});l.range?!B.value||B.value&&C.value?(B.value=pe,C.value=null):(pe<B.value?(C.value=B.value,B.value=pe):C.value=pe,B.value&&C.value&&(Ze(),x.value=!1)):(B.value=pe,o.value=B.value.toFormat("yyyy-MM-dd"),I.value=B.value.toFormat("dd/MM/yyyy"),x.value=!1),V.value=null}function Ze(){!B.value||!C.value||(o.value={start:B.value.toFormat("yyyy-MM-dd"),end:C.value.toFormat("yyyy-MM-dd")},I.value=`De ${B.value.toFormat("dd/MM/yyyy")} a ${C.value.toFormat("dd/MM/yyyy")}`)}function Qe(){if(!I.value)return null;if(l.range&&I.value.includes("a")){const j=/De\s+(\d{2}\/\d{2}\/\d{4})\s+a\s+(\d{2}\/\d{2}\/\d{4})/,pe=I.value.match(j);if(pe&&pe.length===3){const R=pe[1],T=pe[2],K=fe.fromFormat(R,"dd/MM/yyyy"),le=fe.fromFormat(T,"dd/MM/yyyy");if(K.isValid&&le.isValid)return ae(K)&&ae(le)?{start:K,end:le<K?K:le}:null}return Dt()}else return lt()}function Dt(){const[j,pe]=I.value.split("-").map(K=>K.trim());let R=null,T=null;for(const K of s){const le=fe.fromFormat(j,K);if(le.isValid){R=le;break}}for(const K of s){const le=fe.fromFormat(pe,K);if(le.isValid){T=le;break}}return R&&T&&ae(R)&&ae(T)?{start:R>T?T:R,end:R>T?R:T}:null}function lt(){for(const pe of s){const R=fe.fromFormat(I.value,pe);if(R.isValid&&ae(R))return R}const j=fe.fromISO(I.value);return j.isValid&&ae(j)?j:null}function ae(j){return!(ye.value&&j<ye.value||Y.value&&j>Y.value)}function xe(){if(F.value){F.value=!1;return}const j=Qe();j?l.range&&typeof j=="object"?(B.value=j.start,C.value=j.end,Ze(),M.value=C.value):(B.value=j,C.value=null,o.value=B.value.toFormat("yyyy-MM-dd"),I.value=B.value.toFormat("dd/MM/yyyy"),M.value=B.value):I.value&&console.warn("Formato de data não reconhecido"),g()}function Ve(j){j.preventDefault(),F.value=!0}function ze(){const j=Qe();j&&(l.range&&typeof j=="object"?(B.value=j.start,C.value=j.end,Ze(),M.value=C.value):(B.value=j,C.value=null,o.value=B.value.toFormat("yyyy-MM-dd"),I.value=B.value.toFormat("dd/MM/yyyy"),M.value=B.value)),x.value=!1}function Fe(){B.value=null,C.value=null,I.value="",o.value=l.range?{start:null,end:null}:null}function pt(){B.value=null,C.value=null,I.value=""}function Bt(){var j;return l.range&&B.value&&C.value?{start:B.value.toFormat("dd/MM/yyyy"),end:C.value.toFormat("dd/MM/yyyy")}:(j=B.value)==null?void 0:j.toFormat("dd/MM/yyyy")}function Vt(){var j;return l.range&&B.value&&C.value?{start:B.value.toISO(),end:C.value.toISO()}:(j=B.value)==null?void 0:j.toISO()}function Mt(){var j;return l.range&&B.value&&C.value?{start:B.value.toString(),end:C.value.toString()}:(j=B.value)==null?void 0:j.toString()}function nn(){var j;return l.range&&B.value&&C.value?{start:B.value.toJSDate(),end:C.value.toJSDate()}:(j=B.value)==null?void 0:j.toJSDate()}function $t(){return l.range&&B.value&&C.value?{start:B.value,end:C.value}:B.value}function he(j){q.value=!q.value,M.value=M.value.set({month:parseInt(j.index)})}function Le(j){Q.value=!Q.value,M.value=M.value.set({year:j})}function Ge(){l.range||(Q.value=!1,q.value=!q.value)}function on(){l.range||(q.value=!1,Q.value=!Q.value)}function mn(){if(!I.value){o.value=null;return}const j=fe.fromFormat(I.value,"dd/MM/yyyy");if(!j.isValid)throw pt(),o.value=null,console.warn("Data informada é inválida"),new Error("Invalid DateTime");o.value=j.setLocale("pt-BR").toFormat("yyyy-MM-dd")}return t({componentRef:(_n=h.value)==null?void 0:_n.componentRef,isFocused:(J=h.value)==null?void 0:J.isFocused,focus:()=>{var j;return(j=h.value)==null?void 0:j.focus()},blur:()=>{var j;return(j=h.value)==null?void 0:j.blur()},clear:()=>{var j;return(j=h.value)==null?void 0:j.clear()},select:()=>{var j;return(j=h.value)==null?void 0:j.select()},getDMYFormat:Bt,toISO:Vt,toString:Mt,toJSDate:nn,toDateTime:$t,clearSelection:Fe}),(j,pe)=>(i.openBlock(),i.createElementBlock("div",LV,[e.mode==="typing"?i.withDirectives((i.openBlock(),i.createBlock(Wi,i.mergeProps({key:0,ref:"baseInput"},l,{modelValue:I.value,"onUpdate:modelValue":pe[0]||(pe[0]=R=>I.value=R),type:"text","floating-label":e.floatingLabel||e.mobile,onBlur:mn,onKeydown:i.withKeys(i.withModifiers(mn,["prevent"]),["enter"])}),null,16,["modelValue","floating-label","onKeydown"])),[[i.unref(a),"##/##/####"]]):i.createCommentVNode("",!0),e.mode!=="typing"?(i.openBlock(),i.createBlock(Wi,i.mergeProps({key:1,ref:"baseInput"},l,{modelValue:I.value,"onUpdate:modelValue":pe[1]||(pe[1]=R=>I.value=R),type:"date","floating-label":e.floatingLabel||e.mobile,readonly:l.range,onClick:De,onFocus:i.unref(y),onBlur:xe,onKeydown:[i.unref(v),i.withKeys(i.withModifiers(ze,["prevent"]),["enter"])]}),{"trailing-icon":i.withCtx(()=>[i.createElementVNode("div",PV,[i.createVNode(ve,{height:"20",width:"20",name:"calendar-outline"})])]),_:1},16,["modelValue","floating-label","readonly","onFocus","onKeydown"])):i.createCommentVNode("",!0),e.mode!=="typing"?(i.openBlock(),i.createBlock(i.Transition,{key:2,name:"calendar-animation"},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",{ref:"calendar",class:i.normalizeClass(`date-input__calendar--${P.value}`),onMousedown:i.withModifiers(Ve,["prevent"])},[i.createElementVNode("div",FV,[i.createVNode(Ue,{gap:"0"},{default:i.withCtx(()=>[i.createElementVNode("span",{class:i.normalizeClass({"calendar__month-and-title--no-hover":e.range,"calendar__month-and-title":!e.range}),onClick:Ge},i.toDisplayString(se.value),3),i.createElementVNode("span",{class:i.normalizeClass({"calendar__month-and-title--no-hover":e.range,"calendar__month-and-title":!e.range}),onClick:on},i.toDisplayString(U.value),3)]),_:1}),i.createVNode(Ue,null,{default:i.withCtx(()=>[i.createVNode(ve,{height:"20",width:"20",name:"caret-up-outline",class:i.normalizeClass(["calendar__right-caret",{"calendar__caret--disabled":!ee.value}]),onClick:Ye},null,8,["class"]),i.createVNode(ve,{height:"20",width:"20",name:"caret-down-outline",class:i.normalizeClass(["calendar__left-caret",{"calendar__caret--disabled":!ue.value}]),onClick:Ne},null,8,["class"])]),_:1})]),!q.value&&!Q.value?(i.openBlock(),i.createBlock(fu,{key:0,cols:7,gap:"5px",onMouseleave:_t},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(N.value,R=>(i.openBlock(),i.createElementBlock("div",{key:R,class:"calendar__week-day"},i.toDisplayString(R),1))),128)),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(be.value,R=>(i.openBlock(),i.createElementBlock("div",{key:"empty-"+R,class:"calendar__empty-day"}))),128)),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(G.value,R=>(i.openBlock(),i.createElementBlock("div",{key:R,class:i.normalizeClass(ft(R)),disabled:_e(R),onClick:T=>it(R),onMouseenter:T=>ut(R)},i.toDisplayString(R),43,RV))),128))]),_:1})):i.createCommentVNode("",!0),i.withDirectives(i.createVNode(my,{ref:"monthPicker","selected-date":me.value,"min-date":e.minDate,"max-date":e.maxDate,variant:e.variant,year:M.value.year,onClick:he},null,8,["selected-date","min-date","max-date","variant","year"]),[[i.vShow,!e.range&&q.value]]),i.withDirectives(i.createVNode(EV,{ref:"monthPicker","selected-date":me.value,"min-date":e.minDate,"max-date":e.maxDate,variant:e.variant,onClick:Le},null,8,["selected-date","min-date","max-date","variant"]),[[i.vShow,!e.range&&Q.value]])],34),[[i.vShow,x.value]])]),_:1})):i.createCommentVNode("",!0)],512))}}),WV=ie(HV,[["__scopeId","data-v-1e2773a7"]]),YV=["teal","green","blue","indigo","violet","pink","red","orange","amber"],jV=["warning","error","info"],UV={name:"CdsDialogModal",components:{CdsIcon:ve,CdsButton:fn},props:{variant:{type:String,default:"warning",validator:e=>jV.includes(e)},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:e=>YV.includes(e)}},data(){return{innerValue:!1,tmp:""}},watch:{modelValue(e){this.innerValue=e}},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)},closeDialogModal(e){this.$refs.dialogModalRef&&!this.$refs.dialogModalRef.contains(e.target)&&this.closeHandle()}}},qV={key:0,ref:"dialogModalRef",class:"cds-modal"},GV={class:"cds-modal__header-content"},KV={key:0,class:"cds-modal__header-title"},ZV={key:1,class:"cds-modal__header-title"},XV={key:2,class:"cds-modal__header-title"},JV={class:"cds-modal__body"},QV={class:"cds-modal__body-title"},e$={class:"cds-modal__body-description"},t$={class:"cds-modal__footer"};function n$(e,t,n,a,r,s){const o=i.resolveComponent("CdsIcon"),l=i.resolveComponent("CdsButton");return r.innerValue?(i.openBlock(),i.createElementBlock("div",{key:0,class:"cds-modal__backdrop",onClick:t[2]||(t[2]=(...d)=>s.closeDialogModal&&s.closeDialogModal(...d))},[r.innerValue?(i.openBlock(),i.createElementBlock("div",qV,[i.createElementVNode("header",{class:i.normalizeClass(`cds-modal__header--${n.variant}`)},[i.createElementVNode("div",GV,[n.variant==="warning"?(i.openBlock(),i.createElementBlock("div",KV,[i.createVNode(o,{class:i.normalizeClass(`cds-modal__header-icon--${n.variant}`),height:"40",width:"40",name:"warning-outline"},null,8,["class"]),t[3]||(t[3]=i.createTextVNode(" Atenção "))])):n.variant==="error"?(i.openBlock(),i.createElementBlock("div",ZV,[i.createVNode(o,{class:i.normalizeClass(`cds-modal__header-icon--${n.variant}`),height:"40",width:"40",name:"alert-outline"},null,8,["class"]),t[4]||(t[4]=i.createTextVNode(" Erro "))])):n.variant==="info"?(i.openBlock(),i.createElementBlock("div",XV,[i.createVNode(o,{class:i.normalizeClass(`cds-modal__header-icon--${n.variant}`),height:"40",width:"40",name:"info-outline"},null,8,["class"]),t[5]||(t[5]=i.createTextVNode(" Informativo "))])):i.createCommentVNode("",!0)]),n.variant==="warning"?(i.openBlock(),i.createBlock(o,{key:0,class:i.normalizeClass(`cds-modal__header-detail--${n.variant}`),height:"60",width:"60",name:"warning-outline"},null,8,["class"])):n.variant==="error"?(i.openBlock(),i.createBlock(o,{key:1,class:i.normalizeClass(`cds-modal__header-detail--${n.variant}`),height:"60",width:"60",name:"alert-outline"},null,8,["class"])):n.variant==="info"?(i.openBlock(),i.createBlock(o,{key:2,class:i.normalizeClass(`cds-modal__header-detail--${n.variant}`),height:"60",width:"60",name:"info-outline"},null,8,["class"])):i.createCommentVNode("",!0)],2),i.createElementVNode("div",JV,[i.createElementVNode("span",QV,i.toDisplayString(n.title),1),i.createElementVNode("span",e$,i.toDisplayString(n.description),1)]),i.createElementVNode("footer",t$,[n.variant==="warning"?(i.openBlock(),i.createBlock(l,{key:0,text:n.cancelButtonText,secondary:"",onClick:t[0]||(t[0]=d=>s.closeHandle())},null,8,["text"])):i.createCommentVNode("",!0),i.createVNode(l,{class:"footer__ok-button",text:n.okButtonText,variant:n.actionButtonVariant,onClick:t[1]||(t[1]=d=>s.okHandle())},null,8,["text","variant"])])],512)):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)}const i$=ie(UV,[["render",n$],["__scopeId","data-v-0afb0a0f"]]),Cy=Object.assign({name:"CdsTextInput"},{__name:"TextInput",props:i.mergeModels({label:{type:String,default:"Label"},disabled:{type:Boolean,default:!1},state:{type:String,default:"default"},inputType:{type:String,default:"text",validator:e=>["text","email"].includes(e)},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:null},supportLink:{type:String,default:null},supportingText:{type:[String,Array],default:""},supportLinkUrl:{type:[String,null],default:null},lazy:{type:Boolean,default:!1},mobile:{type:Boolean,default:!1},floatingLabel:{type:Boolean,default:!1},disableAutocomplete:{type:Boolean,default:!1}},{modelValue:{type:String},modelModifiers:{}}),emits:i.mergeModels({...mr},["update:modelValue"]),setup(e,{expose:t,emit:n}){const a=ro,r=i.useTemplateRef("baseInput"),s=i.useModel(e,"modelValue"),o=e,l=n,d=i.ref(""),h=i.ref(o.mask),{emitClick:f,emitFocus:m,emitBlur:y,emitKeydown:g}=pr(l);i.watch(()=>o.mask,_=>h.value=_),i.watch(s,(_,k)=>{_!==k&&(d.value=_)},{immediate:!0}),i.watch(d,_=>{s.value=_});const v=i.computed(()=>{var _;return(_=r.value)==null?void 0:_.componentRef});return t({componentRef:v,isFocused:i.computed(()=>{var _;return(_=r.value)==null?void 0:_.isFocused}),focus:()=>{var _;return(_=r.value)==null?void 0:_.focus()},blur:()=>{var _;return(_=r.value)==null?void 0:_.blur()},clear:()=>{var _;return(_=r.value)==null?void 0:_.clear()},select:()=>{var _;return(_=r.value)==null?void 0:_.select()}}),(_,k)=>i.withDirectives((i.openBlock(),i.createBlock(Wi,i.mergeProps({ref:"baseInput"},o,{modelValue:d.value,"onUpdate:modelValue":k[0]||(k[0]=x=>d.value=x),"enable-autocomplete":!e.disableAutocomplete,"support-link-url":e.supportLinkUrl||e.linkUrl,"support-link":e.supportLink||e.linkText,"floating-label":e.floatingLabel||e.mobile,onClick:i.unref(f),onFocus:i.unref(m),onBlur:i.unref(y),onKeydown:i.unref(g)}),{label:i.withCtx(()=>[i.renderSlot(_.$slots,"label")]),_:3},16,["modelValue","enable-autocomplete","support-link-url","support-link","floating-label","onClick","onFocus","onBlur","onKeydown"])),[[i.unref(a),h.value]])}}),Lh=ie(Object.assign({name:"CdsFlatButton"},{__name:"FlatButton",props:{variant:{type:String,default:"green"},text:{type:String,default:"Flat Button"},disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{expose:t,emit:n}){const a=e,r=["green","teal","turquoise","blue","indigo","violet","pink","red","orange","amber","dark"],s=i.useTemplateRef("componentRef"),o=i.computed(()=>r.includes(a.variant)?`flat-button--${a.variant}`:"flat-button--green"),l=i.computed(()=>{const f=a.disabled?"--disabled":"--active";return`${o.value}${f}`}),d=n,h=f=>{a.disabled||d("click",f)};return t({componentRef:s}),(f,m)=>(i.openBlock(),i.createElementBlock("button",{ref_key:"componentRef",ref:s,class:i.normalizeClass(["flat-button__container",l.value]),onClick:h},[i.renderSlot(f.$slots,"default",{},()=>[i.createTextVNode(i.toDisplayString(e.text),1)],!0)],2))}}),[["__scopeId","data-v-06d8a716"]]),a$=ie(Object.assign({name:"CdsDynamicInputList"},{__name:"DynamicInputList",props:i.mergeModels({label:{type:String,default:"Adicione opções"},inputLabel:{type:String,default:"Nova opção"},buttonText:{type:String,default:"Adicionar"},buttonVariant:{type:String,default:"dark"},tooltip:{type:String,default:null},tooltipIcon:{type:String,default:"info-outline"},supportLink:{type:String,default:null},supportLinkUrl:{type:[String,null],default:null},disabled:{type:Boolean,default:!1},incrementResolver:{type:Function,default:()=>({label:"",value:oa()})},disableEdit:{type:Boolean,default:!1}},{modelValue:{type:Array,default:()=>[{label:"",value:oa()}]},modelModifiers:{}}),emits:["update:modelValue"],setup(e,{expose:t}){const n=i.useModel(e,"modelValue"),a=e,r=i.ref([]),s=i.ref([]),o=i.ref(!1);i.watch(n,y=>{JSON.stringify(y)!==JSON.stringify(r.value)&&(r.value=JSON.parse(JSON.stringify(n.value)))},{immediate:!0}),i.watch(r,y=>{JSON.stringify(y)!==JSON.stringify(n.value)&&(n.value=JSON.parse(JSON.stringify(r.value)))},{deep:!0});function l(){a.disabled||(o.value=!0,r.value[r.value.length-1].label!==""&&(r.value.push(a.incrementResolver()),o.value=!1,d()))}function d(){i.nextTick(()=>{if(s.value.length>0){const y=s.value[s.value.length-1];y==null||y.focus()}})}function h(y){return y===r.value.length-1&&r.value[r.value.length-1].label===""&&o.value?"invalid":"default"}function f(y){a.disabled||r.value.splice(y,1)}function m(){return r.value.map(y=>y.label)}return t({arrayOfValues:m}),(y,g)=>(i.openBlock(),i.createElementBlock("div",null,[i.createVNode(hu,{text:e.label,tooltip:e.tooltip,"tooltip-icon":e.tooltipIcon,"support-link":e.supportLink,"support-link-url":e.supportLinkUrl},null,8,["text","tooltip","tooltip-icon","support-link","support-link-url"]),i.createVNode(Ue,{direction:"column",gap:"3"},{default:i.withCtx(()=>[i.createVNode(i.TransitionGroup,null,{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.value,(v,_)=>(i.openBlock(),i.createBlock(Ue,{key:v,align:"center",gap:"3"},{default:i.withCtx(()=>[i.createVNode(Cy,{ref_for:!0,ref_key:"inputRefs",ref:s,modelValue:v.label,"onUpdate:modelValue":k=>v.label=k,"floating-label":"",label:e.inputLabel,state:h(_),disabled:e.disabled||e.disableEdit,"error-message":"",onKeyup:i.withKeys(l,["enter"])},null,8,["modelValue","onUpdate:modelValue","label","state","disabled"]),r.value.length>1?(i.openBlock(),i.createBlock(Ni,{key:0,clickable:!e.disabled},{default:i.withCtx(()=>[i.createVNode(ve,{height:"20",width:"20",name:"x-outline",class:i.normalizeClass(e.disabled?"multiinput__x-icon--disabled":"multiinput__x-icon"),onClick:k=>f(_)},null,8,["class","onClick"])]),_:2},1032,["clickable"])):i.createCommentVNode("",!0)]),_:2},1024))),128))]),_:1}),i.createVNode(Lh,{variant:e.buttonVariant,disabled:e.disabled,class:"multiinput__add-button",onClick:l},{default:i.withCtx(()=>[i.createVNode(Ue,{align:"center",gap:"2"},{default:i.withCtx(()=>[i.createVNode(ve,{height:"16",width:"16",name:"plus-outline"}),i.createTextVNode(" "+i.toDisplayString(e.buttonText),1)]),_:1})]),_:1},8,["variant","disabled"])]),_:1})]))}}),[["__scopeId","data-v-4a978aa8"]]),r$={name:"CdsDropdown",components:{CdsChevron:Ai},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 e=document.getElementById(this.id);if(!e)return null;const t=parseFloat(window.getComputedStyle(e).width);return t>this.dropdownWidth?{"--width":`${t}px`}:{"--width":`${this.dropdownWidth}px`}}},mounted(){this.id=`filter-pill$-${this._uid}`,document.querySelector("body").addEventListener("click",this.closeDropdown)},methods:{activeSelection(){this.disabled||(this.isActive=!this.isActive,this.$emit("click",!0))},hide(){this.isActive=!this.isActive},closeDropdown(e){this.$refs.dropdownRef&&!this.$refs.dropdownRef.contains(e.target)&&this.$refs.dropdownButtonRef&&!this.$refs.dropdownButtonRef.contains(e.target)&&this.hide()}}},s$=["id"],o$={class:"filter-pill__label"},l$={class:"filter-pill__content"};function c$(e,t,n,a,r,s){const o=i.resolveComponent("CdsChevron");return i.openBlock(),i.createElementBlock("div",null,[i.createElementVNode("span",{id:r.id,ref:"dropdownButtonRef",class:i.normalizeClass([{"filter-pill__container--disabled":n.disabled,"filter-pill__container--active":r.isActive&&!n.disabled},"filter-pill__container"]),onClick:t[0]||(t[0]=(...l)=>s.activeSelection&&s.activeSelection(...l))},[i.createElementVNode("span",o$,i.toDisplayString(n.label)+": ",1),i.createElementVNode("span",l$,i.toDisplayString(n.content),1),(i.openBlock(),i.createBlock(o,{key:r.isActive,animate:"",size:"sm",direction:r.isActive?"top":"bottom"},null,8,["direction"]))],10,s$),r.isActive?(i.openBlock(),i.createElementBlock("div",{key:0,ref:"dropdownRef",style:i.normalizeStyle(s.dynamicStyle),class:"filter-pill__dropdown"},[i.renderSlot(e.$slots,"default",{},void 0,!0)],4)):i.createCommentVNode("",!0)])}const d$=ie(r$,[["render",c$],["__scopeId","data-v-e0c16bb4"]]),u$=["onClick"],h$={class:"dropdown__text"},f$=ie(Object.assign({name:"CdsDropdownButton"},{__name:"DropdownButton",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},size:{type:String,default:"md",validator(e){return["sm","md","lg"].includes(e)}},disabled:{type:Boolean,default:!1},tooltipText:{type:String,default:null}},emits:["button-click","action-click"],setup(e,{emit:t}){const n=t,a=e,r=i.useTemplateRef("dropdownButtonRef"),s=i.useTemplateRef("dropdownRef"),o=i.useId(),l=i.ref(!1),d=i.computed(()=>{const g=document.getElementById(o.value);if(!g)return null;const v=parseFloat(window.getComputedStyle(g).width);return v>a.dropdownWidth?{"--width":`${v}px`}:{"--width":`${a.dropdownWidth}px`}});i.onMounted(()=>{document.querySelector("body").addEventListener("click",y)}),i.onBeforeUnmount(()=>{document.querySelector("body").removeEventListener("click",y)});function h(){a.disabled||(l.value=!l.value,n("button-click",!0))}function f(){l.value=!1}function m(g,v){l.value=!l.value,n("action-click",[g,v])}function y(g){s.value&&!s.value.contains(g.target)&&r.value&&!r.value.$el.contains(g.target)&&f()}return(g,v)=>{const _=i.resolveDirective("cdstip");return i.openBlock(),i.createElementBlock("div",null,[i.withDirectives((i.openBlock(),i.createBlock(fn,{id:i.unref(o),ref_key:"dropdownButtonRef",ref:r,variant:e.variant,size:e.size,text:e.text,secondary:e.secondary,ghost:e.ghost,disabled:e.disabled,onClick:h},{append:i.withCtx(()=>[i.createVNode(Ai,{animate:"",size:"sm",light:!e.secondary&&!e.ghost,direction:l.value?"bottom":"top"},null,8,["light","direction"])]),_:1},8,["id","variant","size","text","secondary","ghost","disabled"])),[[_,e.tooltipText]]),l.value?(i.openBlock(),i.createElementBlock("div",{key:0,ref_key:"dropdownRef",ref:s,style:i.normalizeStyle(d.value),class:"dropdown-button__dropdown"},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.items,(k,x)=>(i.openBlock(),i.createElementBlock("div",{key:x},[i.createElementVNode("div",{class:"dropdown__container",onClick:M=>m(k.name,x)},[i.createVNode(ve,{class:"dropdown__icon",height:"22",width:"22",name:k.icon},null,8,["name"]),i.createElementVNode("span",h$,i.toDisplayString(k.name),1)],8,u$)]))),128))],4)):i.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-579a5533"]]);aa.register(...Xr);const p$={name:"CdsDonutChart",components:{Doughnut:qg},props:{data:{type:Object,required:!0},variant:{type:String,required:!0,default:"green",validator:e=>["green","teal","turquoise","blue","indigo","violet","pink","red","orange","amber","gray","dark"].includes(e)},theme:{type:String,required:!1,default:"",validator:e=>["green","teal","turquoise","blue","indigo","violet","pink","red","orange","amber","gray","dark"].includes(e)},labels:{type:Array,required:!0,default:()=>[]},colors:{type:Array,default:()=>[],validator:e=>{const t=["green","teal","turquoise","blue","indigo","violet","pink","red","orange","amber","gray","dark"];return e.every(n=>t.includes(n))}}},data(){return{sassColorVariables:ai,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(e=>{const t=this.palletColors.find(n=>n.variantName.toLowerCase().includes(e));if(t)return t.color400})}},watch:{labels:{handler(e){this.localLabels=e},immediate:!0},variant:{handler(e){e==="gray"||e==="dark"?this.deleteFirstTwoColors=!0:this.deleteFirstTwoColors=!1},immediate:!0},data:{handler(e){this.mergeChartDataNoSelect(e)},immediate:!0}},mounted(){this.mergeChartDataNoSelect(this.data)},methods:{paleteBuilder:sa,palete(){this.palletColors=this.paleteBuilder(this.sassColorVariables.palete),this.removeFirstTwoElements()},themeResolver(){this.themeColors=this.paleteBuilder(this.sassColorVariables.chartThemes)},removeFirstTwoElements(){for(let e=0;e<this.palletColors.length;e++){const t=this.palletColors[e];this.deleteFirstTwoColors===!1&&(t.colorShades.splice(0,2),t.colorTokens.splice(0,2),t.colorData.splice(0,2))}},mergeChartDataNoSelect(e){const t={labels:this.localLabels,datasets:[]};if(e.forEach(n=>{n.datasets.forEach(a=>{const r={label:a.label,data:a.data,name:a.name,borderRadius:5};t.datasets.push(r)})}),this.theme.length&&this.colors.length===0){this.themeResolver();const n=this.isColorsSet?this.computedBackgroundColors:this.generateBackgroundColorWithTheme();this.setColors(t.datasets,n)}else{this.palete();const n=this.isColorsSet?this.computedBackgroundColors:this.generateBackgroundColor();this.setColors(t.datasets,n)}this.localChartData=t},generateBackgroundColor(){const e=this.variant.toLowerCase(),t=this.palletColors.find(n=>n.variantName.toLowerCase().includes(e));return t?t.colorShades:[]},generateBackgroundColorWithTheme(){const e=this.theme.toLowerCase(),t=this.themeColors.find(n=>n.variantName.toLowerCase().includes(e));return t?t.colorShades:[]},setColors(e,t){const n={};e.forEach(a=>{const r=a.name;n[r]||(n[r]=t.slice()),a.backgroundColor=n[r].splice(0,a.data.length),a.borderRadius=5})},clickHandler(e){const n=this.$refs["doughnut-chart"].chart.getElementsAtEventForMode(e,"nearest",{intersect:!0},!1),a={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",a)}}},m$={class:"responsive-container"};function g$(e,t,n,a,r,s){const o=i.resolveComponent("Doughnut");return i.openBlock(),i.createElementBlock("span",null,[i.createElementVNode("div",m$,[i.createVNode(o,{ref:"doughnut-chart",data:r.localChartData,options:r.chartOptions,onClick:s.clickHandler},null,8,["data","options","onClick"])])])}const y$=ie(p$,[["render",g$],["__scopeId","data-v-4002a6ce"]]),Ph={name:"CdsFileInput",components:{CdsIcon:ve},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&&!Et.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 e="";return this.allowedExtensions.split(",").forEach((n,a,r)=>{n&&n.trim().length>0&&(e+=`.${n.trim()}${a!==r.length-1?", ":""}`)}),e},computedAllowedMessage(){if(this.allowedExtensions){if(this.invalidExtensionError){const t=this.allowedExtensions.split(",").length===1?"":"s";return`${`São aceitos apenas arquivo${t} do${t} seguinte${t} tipo${t}:`} ${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 e=this.file.name.split(".");return e.length>2?`arquivo.${Et.last(e)}`:`${e[0].substring(0,16)}....${e[1]}`}return this.file.name}},watch:{file(e){this.$emit("update:modelValue",e)},state:{handler(e){this.internalState=e},immediate:!0},isValid:{handler(e){e?this.internalState="valid":this.internalState="invalid"},immediate:!0}},methods:{dropHandler(e){if(this.isValid=null,this.isOnDragEnterState=!1,e.preventDefault(),!e.dataTransfer.items||e.dataTransfer.items[0].kind!=="file"||this.disabled)return;const t=e.dataTransfer.items[0].getAsFile();if(this.isAValidExtension(t.name)){this.file=t,this.isValid=!0;return}this.isValid=!1,this.file=null},linkClick(){this.disabled||this.$refs.fileInput.click()},isAValidExtension(e){if(this.allowedExtensions===null)return!0;const t=this.allowedExtensions.split(",");let n=e.split(".");n=n[n.length-1].trim();const a=t.filter(r=>r===n).length>0;return this.invalidExtensionError=!a,a},handleFormFileChange(e){this.isValid="invalid";const[t]=e.target.files||{};if(this.isAValidExtension(t.name)){this.file=t,this.isValid=!0;return}this.isValid=!1,this.$nextTick().then(()=>{this.file=null})},handleRemove(){this.disabled||(this.isValid="default",this.file=null)}}},xy=()=>{i.useCssVars(e=>({"12397b85":e.textAlignmentResolver}))},Sy=Ph.setup;Ph.setup=Sy?(e,t)=>(xy(),Sy(e,t)):xy;const b$=["accept"],v$={key:0,class:"file-input__container"},_$={key:0},w$={key:1},k$={key:1,class:"file-input__container"},C$={key:1},x$={key:0,class:"file-input__alert-container"};function S$(e,t,n,a,r,s){const o=i.resolveComponent("CdsIcon");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",null,[i.createElementVNode("div",{class:i.normalizeClass(["file-input text-center",{"file-input--drag-state":r.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"||!r.isValid,"file-input--disabled":n.disabled===!0,[s.sizeClass.holderPadding]:n.size}]),onDragover:t[2]||(t[2]=i.withModifiers(l=>r.isOnDragEnterState=!0,["prevent","stop"])),onDragenter:t[3]||(t[3]=i.withModifiers(l=>r.isOnDragEnterState=!0,["prevent","stop"])),onDragleave:t[4]||(t[4]=i.withModifiers(l=>r.isOnDragEnterState=!1,["prevent","stop"])),onDragend:t[5]||(t[5]=i.withModifiers(l=>r.isOnDragEnterState=!1,["prevent","stop"])),onDrop:t[6]||(t[6]=(...l)=>s.dropHandler&&s.dropHandler(...l)),onClick:t[7]||(t[7]=(...l)=>s.linkClick&&s.linkClick(...l))},[i.withDirectives(i.createElementVNode("input",{ref:"fileInput",type:"file",accept:s.acceptString,onChange:t[0]||(t[0]=(...l)=>s.handleFormFileChange&&s.handleFormFileChange(...l))},null,40,b$),[[i.vShow,!1]]),r.file?(i.openBlock(),i.createElementBlock("div",k$,[i.createVNode(o,{height:"24",width:"24",name:"document-text-outline",class:i.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"]),i.createElementVNode("div",{class:i.normalizeClass({[s.sizeClass.inputTitle]:n.size,[s.sizeClass.contentPadding]:n.size})},[r.isOnDragEnterState?(i.openBlock(),i.createElementBlock("div",C$," Solte aqui o seu arquivo ")):(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["on-drag-content__container",{"on-drag-content__container--disabled":n.disabled===!0}])},[i.createElementVNode("div",null,i.toDisplayString(s.formatFilename),1),i.createElementVNode("div",{class:"x-icon__container",onClick:t[1]||(t[1]=i.withModifiers((...l)=>s.handleRemove&&s.handleRemove(...l),["stop"]))},[i.createVNode(o,{height:"18",width:"18",name:"x-outline",class:i.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)])):(i.openBlock(),i.createElementBlock("div",v$,[i.createVNode(o,{name:"upload-cloud-outline",class:i.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,[s.sizeClass.holderPadding]:n.size})},null,8,["class"]),i.createElementVNode("div",{class:i.normalizeClass({[s.sizeClass.inputTitle]:n.size,[s.sizeClass.contentPadding]:n.size})},[r.isOnDragEnterState?(i.openBlock(),i.createElementBlock("div",w$," Solte aqui o seu arquivo ")):(i.openBlock(),i.createElementBlock("div",_$,i.toDisplayString(n.textMessage),1))],2)]))],34)]),r.internalState==="invalid"?(i.openBlock(),i.createElementBlock("div",x$,i.toDisplayString(s.computedAllowedMessage),1)):i.createCommentVNode("",!0)],64)}const By=ie(Ph,[["render",S$],["__scopeId","data-v-b1c88500"]]),B$={class:"file-viewer__image"},M$={key:0,class:"file-viewer__extension"},E$={class:"file-viewer__info"},O$={class:"file-viewer__label"},D$={class:"file-viewer__file-name"},V$={key:0,class:"file-viewer__backdrop"},$$={class:"file-viewer__visualizer-header"},T$={class:"file-viewer__visualizer-label"},I$={class:"file-viewer__visualizer-actions"},A$={key:0},N$={key:1,class:"file-viewer__visualizer-empty-state"},z$=ie(Object.assign({name:"CdsFileViewer"},{__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:e=>ru.find(t=>t.name===e)}},emits:["close","download-click"],setup(e,{emit:t}){const n=t,a=e,r=i.ref(!1),s=i.ref(!1),o=["jpg","jpeg","png","webp"],l=i.computed(()=>{if(a.fileUrl){const k=Et.last(a.fileUrl.split("/")).match(/\.([A-Za-z]{3,4})/),x=Et.get(k,"1",null);if(x)return x.toLowerCase()}return"file"}),d=i.computed(()=>a.label.length>50?a.label.substring(0,50):a.label),h=()=>{r.value=!0},f=()=>{r.value=!1},m=()=>{s.value=!s.value,g(s.value)},y=()=>{s.value=!1,g(s.value),n("close",!0)},g=_=>{document.body.style.overflow=_?"hidden":"auto"},v=i.computed(()=>window.matchMedia("(max-width: 450px)").matches);return(_,k)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",{ref:"fileViewer",class:i.normalizeClass(["file-viewer",`file-viewer--${e.variant}`]),tabindex:"0",onMouseenter:h,onMouseleave:f,onClick:m,onKeyup:i.withKeys(y,["esc"])},[i.createElementVNode("div",B$,[r.value?(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(["file-viewer__icon",`file-viewer__icon--${e.variant}`])},[i.createVNode(ve,{height:"32",width:"32",name:"image-outline"})],2)):(i.openBlock(),i.createElementBlock("div",M$,i.toDisplayString(l.value),1))]),i.createElementVNode("div",E$,[i.createElementVNode("div",O$,i.toDisplayString(d.value),1),i.createElementVNode("div",D$,i.toDisplayString(e.fileUrl),1),i.createElementVNode("div",null,[i.createElementVNode("a",{class:i.normalizeClass(["file-viewer__download",`file-viewer__download--${e.variant}`]),onClick:k[0]||(k[0]=i.withModifiers(x=>n("download-click",!0),["stop"]))}," Baixar arquivo ",2)])])],34),s.value?(i.openBlock(),i.createElementBlock("div",V$,[i.createElementVNode("div",$$,[i.createElementVNode("div",T$,i.toDisplayString(d.value),1),i.createElementVNode("div",I$,[i.createElementVNode("div",{class:"file-viewer__visualizer-download",onClick:k[1]||(k[1]=x=>n("download-click",!0))},[i.createVNode(ve,{height:"24",width:"24",name:"download-cloud-outline"}),v.value?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("span",A$," Baixar arquivo "))]),i.createVNode(ve,{class:"file-viewer__visualizer-close",height:"24",width:"24",name:"x-outline",onClick:y})])]),i.createElementVNode("div",{class:"file-viewer__visualizer-image-container",onClick:y},[o.includes(l.value)?(i.openBlock(),i.createBlock(Xl,{key:0,class:"file-viewer__visualizer-image",src:e.fileUrl,onClick:k[2]||(k[2]=i.withModifiers(()=>{},["stop"]))},null,8,["src"])):(i.openBlock(),i.createElementBlock("div",N$,[i.createVNode(Xl,{src:"https://i.imgur.com/d842Bek.png",width:300,height:300}),k[3]||(k[3]=i.createTextVNode(" Não foi possível gerar uma pré-visualização do arquivo. "))]))])])):i.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-7071e9c2"]]),L$={name:"CdsFilterSelect",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:Qa()}},computed:{inputClass(){let e="";const t="filter-select__input";return this.active&&this.direction==="down"?e=`${t}--opened-down`:this.active&&this.direction==="up"?e=`${t}--opened-up`:e=`${t}--closed`,this.disabled&&(e+=` ${t}--disabled`),e+=` ${t}--${W1.find(n=>n===this.width)}`,e+=this.fluid?` ${t}--fluid`:` ${t}--fit`,e+=this.searchable?` ${t}--searchable`:"",e},capitalizedLabel(){return this.label.charAt(0).toUpperCase()+this.label.slice(1)}},watch:{modelValue:{handler(e,t){e!==t&&(e instanceof Object?this.localValue=e:this.localValue={id:e,value:e})},immediate:!0},options:{handler(e,t){e!==t&&(this.localOptions=e,this.pristineOptions=e)},immediate:!0},searchable:{handler(e,t){e!==t&&(this.allowSearch=e)},immediate:!0},localValue:{handler(e){this.localOptions.filter(n=>JSON.stringify(n)===JSON.stringify(e)).length!==0&&(this.returnValue?this.$emit("update:modelValue",e[this.optionsField]):this.$emit("update:modelValue",e))},deep:!0}},mounted(){this.id=`cds-filter-select-${this.uniqueKey}`,this.selectElement=this.$refs["cds-filter-select"],document.querySelector("body").addEventListener("click",this.closeFilterSelect)},methods:{filterOptions(){const e=eo(this.localValue[this.optionsField]),t=new RegExp(e,"i");this.localOptions=this.options.filter(n=>eo(n[this.optionsField]).search(t)>=0)},activeSelection(){this.disabled||this.$nextTick().then(()=>{const e=this.localOptions[this.currentPos];this.$refs[`${e[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=V1(this.localOptions[this.currentPos]),this.$refs["filter-select-input"].blur())},activateSelectionOnClick(){let e=this.selectElement.getBoundingClientRect();e.top+e.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=V1(this.localOptions[this.currentPos])},getLiInDOM(e){const t=this.localOptions[e];return this.$refs[`${t[this.optionsField]}-${e}`][0]},handleOptionVisibility(e,t,n){const a=e.getBoundingClientRect(),r=this.$refs["filter-select-options"],s=r.getBoundingClientRect();n==="up"&&a.top<=s.top&&(r.scrollTop+=t),n==="down"&&a.top>=s.bottom&&(r.scrollTop+=t)},highlightOnArrowDown(){if(this.currentPos===this.localOptions.length-1)return;this.currentPos+=1;const e=this.getLiInDOM(this.currentPos),t=this.getLiInDOM(this.currentPos-1);e.classList.add("highlight"),t.classList.remove("highlight"),this.handleOptionVisibility(e,37,"down")},highlightOnArrowUp(){if(this.currentPos===0)return;const e=this.getLiInDOM(this.currentPos),t=this.getLiInDOM(this.currentPos-1);e.classList.remove("highlight"),t.classList.add("highlight"),this.handleOptionVisibility(e,-37,"up"),this.currentPos-=1},highlightOnMouseOver(e){this.currentPos=e,this.getLiInDOM(this.currentPos).classList.add("highlight")},unhighlightOnMouseOut(){this.getLiInDOM(this.currentPos).classList.remove("highlight")},closeFilterSelect(e){this.$refs.filterSelectRef&&!this.$refs.filterSelectRef.contains(e.target)&&this.hide()}}},P$={ref:"cds-filter-select",class:"filter-select"},F$={class:"filter-select__label"},R$={for:"cds-filter-select"},H$=["id","onkeypress","placeholder","disabled","readonly"],W$={key:0,class:"option__container"},Y$=["onMouseover"],j$={key:1,class:"option__container"};function U$(e,t,n,a,r,s){return i.openBlock(),i.createElementBlock("div",P$,[i.createElementVNode("div",{ref:"filterSelectRef",class:i.normalizeClass(["filter-select__container",s.inputClass]),onKeydown:[t[6]||(t[6]=i.withKeys(i.withModifiers((...o)=>s.activateSelectionOnEnter&&s.activateSelectionOnEnter(...o),["prevent"]),["enter"])),t[7]||(t[7]=i.withKeys(i.withModifiers((...o)=>s.highlightOnArrowDown&&s.highlightOnArrowDown(...o),["prevent"]),["arrow-down"])),t[8]||(t[8]=i.withKeys(i.withModifiers((...o)=>s.highlightOnArrowUp&&s.highlightOnArrowUp(...o),["prevent"]),["arrow-up"]))],onClick:t[9]||(t[9]=(...o)=>s.activateSelectionOnClick&&s.activateSelectionOnClick(...o))},[i.createElementVNode("label",F$,[i.createElementVNode("div",R$,[i.createElementVNode("span",null,i.toDisplayString(s.capitalizedLabel),1)])]),i.withDirectives(i.createElementVNode("input",{id:e.$attrs.id||r.id,ref:"filter-select-input","onUpdate:modelValue":t[0]||(t[0]=o=>r.localValue[n.optionsField]=o),type:"text",autocomplete:"off",onkeypress:`return ${r.allowSearch};`,class:i.normalizeClass(s.inputClass),placeholder:n.placeholder,disabled:n.disabled,readonly:!n.searchable,onInput:t[1]||(t[1]=(...o)=>s.filterOptions&&s.filterOptions(...o)),onFocus:t[2]||(t[2]=(...o)=>s.activeSelection&&s.activeSelection(...o)),onBlur:t[3]||(t[3]=(...o)=>s.hide&&s.hide(...o))},null,42,H$),[[i.vModelText,r.localValue[n.optionsField]]]),i.withDirectives(i.createElementVNode("div",{ref:"filter-select-options",class:i.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":r.direction==="down","filter-select__options--up":r.direction==="up"}])},[r.localOptions.length>0?(i.openBlock(),i.createElementBlock("ul",W$,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.localOptions,(o,l)=>(i.openBlock(),i.createElementBlock("li",{key:l,ref_for:!0,ref:`${o[n.optionsField]}-${l}`,class:"option__text",onMousedown:t[4]||(t[4]=(...d)=>s.selectItem&&s.selectItem(...d)),onMouseover:d=>s.highlightOnMouseOver(l),onMouseout:t[5]||(t[5]=d=>s.unhighlightOnMouseOut())},i.toDisplayString(o[n.optionsField]),41,Y$))),128))])):(i.openBlock(),i.createElementBlock("ul",j$,t[10]||(t[10]=[i.createElementVNode("li",{class:"option__text--muted"}," Nenhuma opção encontrada ",-1)])))],2),[[i.vShow,r.active]]),i.createElementVNode("span",{class:i.normalizeClass(r.active?"filter-select__chevron--opened":"filter-select__chevron--closed")},null,2)],34)],512)}const q$=ie(L$,[["render",U$],["__scopeId","data-v-0d8cd099"]]),G$={name:"CdsPulsar",props:{variant:{type:String,default:"green"},targetId:{type:String,default:""},position:{type:String,default:"top-end"}}},K$={id:"cds-pulsar"};function Z$(e,t,n,a,r,s){const o=i.resolveDirective("cds-floatify");return i.withDirectives((i.openBlock(),i.createElementBlock("div",K$,[i.createElementVNode("div",{class:i.normalizeClass(`pulsar__outer-circle--${n.variant}`)},[i.createElementVNode("div",{class:i.normalizeClass(`pulsar__inner-circle--${n.variant}`)},null,2)],2)])),[[o,n.targetId,n.position]])}const My=ie(G$,[["render",Z$],["__scopeId","data-v-0c7161d2"]]),X$={name:"CdsFloatingAssistant",components:{CdsPulsar:My,CdsIcon:ve},props:{modelValue:{type:Boolean,default:!0,required:!0},title:{type:String,default:"Nova funcionalidade!",validator:e=>e.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(e){this.$emit("update:modelValue",e)},modelValue(e){this.isActive=e,this.handleEventAnimation()}},mounted(){this.handleEventAnimation(),document.querySelector("body").addEventListener("click",this.closeFloatingAssistant)},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:e,bottom:t}=document.getElementById(this.id).getBoundingClientRect();return e>=0&&t<=window.innerHeight},expand(){this.waitingConfirmation||(this.isExpanded=!0)},collapse(){this.isExpanded=!1},close(){this.collapse(),this.waitingConfirmation=!0},confirmationHandle(e){if(!e){this.isActive=!1;return}this.$emit("disable-tip",!0),this.isActive=!1},closeFloatingAssistant(e){this.$refs.floatingAssistantRef&&!this.$refs.floatingAssistantRef.contains(e.target)&&this.collapse()}}},J$=["id"],Q$=["id"],eT={key:0},tT={key:1},nT={key:0,class:"floating-assistant__content"},iT={key:0,class:"floating-assistant__footer"},aT=["href"],rT={key:1,class:"floating-assistant__subtitle"},sT={key:2};function oT(e,t,n,a,r,s){const o=i.resolveComponent("CdsPulsar"),l=i.resolveComponent("CdsIcon"),d=i.resolveDirective("cds-floatify");return i.openBlock(),i.createElementBlock("div",{id:r.id,class:i.normalizeClass(["floating-assistant",{"floating-assistant--hidden":!r.isActive}])},[i.createVNode(o,{id:r.pulsarId,"target-id":n.targetId,variant:n.variant},null,8,["id","target-id","variant"]),i.withDirectives((i.openBlock(),i.createElementBlock("div",{id:r.containerId,class:"floating-assistant__container"},[i.createElementVNode("div",{ref:"floatingAssistantRef",class:i.normalizeClass(["floating-assistant__dropdown",{"floating-assistant__dropdown--expanded":r.isExpanded,"floating-assistant__dropdown--confirmation":r.waitingConfirmation}]),onClick:t[3]||(t[3]=(...h)=>s.expand&&s.expand(...h))},[r.waitingConfirmation?(i.openBlock(),i.createElementBlock("div",eT,[t[4]||(t[4]=i.createTextVNode(" Ocultar dica para sempre? ")),i.createElementVNode("span",{class:i.normalizeClass(`floating-assistant__link--${n.variant}`),onClick:t[0]||(t[0]=h=>s.confirmationHandle(!0))}," Sim ",2),t[5]||(t[5]=i.createTextVNode(" / ")),i.createElementVNode("span",{class:i.normalizeClass(`floating-assistant__link--${n.variant}`),onClick:t[1]||(t[1]=h=>s.confirmationHandle(!1))}," Não ",2)])):(i.openBlock(),i.createElementBlock("div",tT,[i.createElementVNode("span",{class:i.normalizeClass(`floating-assistant__title--${n.variant}`)},i.toDisplayString(n.title),3),r.isExpanded?(i.openBlock(),i.createElementBlock("div",nT,[i.renderSlot(e.$slots,"default",{},void 0,!0),n.url?(i.openBlock(),i.createElementBlock("span",iT,[t[6]||(t[6]=i.createTextVNode(" Você pode saber mais ")),i.createElementVNode("a",{class:i.normalizeClass(`floating-assistant__link--${n.variant}`),href:n.url,target:"_blank"}," clicando aqui ",10,aT),t[7]||(t[7]=i.createTextVNode(". "))])):i.createCommentVNode("",!0)])):(i.openBlock(),i.createElementBlock("span",rT," Clique para mais informações "))])),r.isExpanded?(i.openBlock(),i.createElementBlock("div",sT,[i.createElementVNode("div",{onClick:t[2]||(t[2]=i.withModifiers((...h)=>s.close&&s.close(...h),["stop"]))},[i.createVNode(l,{class:"floating-assistant__close-button",name:"x-outline",height:"20",width:"20"})])])):i.createCommentVNode("",!0)],2)],8,Q$)),[[d,r.pulsarId,r.position]])],10,J$)}const lT=ie(X$,[["render",oT],["__scopeId","data-v-727ea1a4"]]),cT={class:"floating-action-button__container"},dT=["onClick"],uT={class:"floating-action-button__subitem-label"},hT={class:"floating-action-button__subitem"},fT=ie(Object.assign({name:"CdsFloatingActionButton"},{__name:"FloatingActionButton",props:{variant:{type:String,default:"green"},icon:{type:String,default:"plus-outline"},actions:{type:Array,default:()=>[],validator:e=>e.length<=5},size:{type:String,default:"md"}},emits:["main-button-click","action-click"],setup(e,{emit:t}){i.useCssVars(g=>({"4572ca28":h.value,"5a306d0f":l.value,"310c521c":f.value,"4a7c8bbd":d.value}));const n=e,a=t,r=i.ref(!1),s=i.ref(!1),o=i.ref(-1),l=i.computed(()=>{switch(n.size){case"sm":return"44px";case"md":return"56px";case"lg":return"68px";default:return"56px"}}),d=i.computed(()=>{switch(n.size){case"sm":return"4px";case"md":return"10px";case"lg":return"16px";default:return"10px"}}),h=i.computed(()=>{switch(n.size){case"sm":return"12px";case"md":return"16px";case"lg":return"20px";default:return"16px"}}),f=i.computed(()=>n.variant==="white"||n.variant==="gray"?"#3B4754":"#fff");i.watch(r,g=>{g||(s.value=!0,setTimeout(()=>{s.value=!1},500))});function m(){if(n.actions.length>0){o.value=r.value?-1:1,r.value=!r.value;return}a("main-button-click")}function y(g){r.value=!1,a("action-click",g)}return(g,v)=>(i.openBlock(),i.createElementBlock("div",cT,[r.value||s.value?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(e.actions,_=>(i.openBlock(),i.createElementBlock("div",{key:_,class:i.normalizeClass(["floating-action-button__subitem-container",{exiting:s.value}]),onClick:k=>y(_)},[i.createElementVNode("div",uT,i.toDisplayString(_==null?void 0:_.label),1),i.createElementVNode("div",hT,[i.createVNode(ve,{name:_==null?void 0:_.icon,height:"32",width:"32"},null,8,["name"])])],10,dT))),128)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(["floating-action-button__main-button",`floating-action-button__main-button--${e.variant}`]),onClick:m},[i.createVNode(i.Transition,{name:"icon-transition",mode:"out-in"},{default:i.withCtx(()=>[r.value?(i.openBlock(),i.createBlock(ve,{key:"close-icon",name:"x-outline",height:"20",width:"20",style:i.normalizeStyle({"--rotation-direction":o.value})},null,8,["style"])):(i.openBlock(),i.createBlock(ve,{key:"main-icon",name:e.icon,height:"20",width:"20",style:i.normalizeStyle({"--rotation-direction":o.value})},null,8,["name","style"]))]),_:1})],2)]))}}),[["__scopeId","data-v-f27835c4"]]),Fh={name:"CdsRichTooltip",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:Qa()}},computed:{variationPlacement(){return this.rightAligned?"end":"start"},popoverWidth(){return this.fitContentWidth?"fit-content":`${this.width}px`}},watch:{modelValue(e){e?this.show():this.hide()},defaultPlacement(){this.setPopper(this.targetId)},targetId(e){this.setPopper(e)}},mounted(){this.id=`CdsPopover-${this.uniqueKey}`,this.setPopper(this.targetId),document.querySelector("body").addEventListener("click",this.closeRichTooltip)},methods:{setPopper(e){this.$nextTick(()=>{this.target=document.querySelector(`[id='${e}']`),this.popover=document.querySelector(`#${this.id}`),this.popperInstance=cl(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(e=>({...e,modifiers:[...e.modifiers,{name:"eventListeners",enabled:!1}]})),this.$emit("update:modelValue",!1)})},closeRichTooltip(e){this.$refs.richTooltipRef&&!this.$refs.richTooltipRef.contains(e.target)&&this.hide()}}},Ey=()=>{i.useCssVars(e=>({e6f128a6:e.popoverWidth}))},Oy=Fh.setup;Fh.setup=Oy?(e,t)=>(Ey(),Oy(e,t)):Ey;const pT=["id"];function mT(e,t,n,a,r,s){return i.openBlock(),i.createElementBlock("div",{id:e.$attrs.id||r.id,ref:"richTooltipRef",class:"richTooltip"},[i.renderSlot(e.$slots,"default",{},void 0,!0)],8,pT)}const Rh=ie(Fh,[["render",mT],["__scopeId","data-v-dfd096e0"]]),Hh={name:"CdsGaugeChart",components:{CdsRichTooltip:Rh},props:{value:{type:Number,default:0,validator:e=>e>=0&&e<=100},variant:{type:String,default:"green"},size:{type:Number,default:300},subtitle:{type:String,default:""},target:{type:Number,default:0,validator:e=>e>=0&&e<=100},showTarget:{type:Boolean,default:!1}},data(){return{showPopover:!1,uniqueKey:Qa()}},computed:{progressStyle(){return{"--value":this.value,"--size":this.size}},chartProgressValue(){return 198*(1-this.value/100)},targetValue(){let e=this.target-1;return e>=98&&(e=98),198*(1-e/100)},formatedValue(){return`${this.value.toLocaleString("pt-br",{minimumFractionDigits:1})}%`}},methods:{hasSlot:ei}},Dy=()=>{i.useCssVars(e=>({eebbba4e:e.chartProgressValue,"32524a26":e.targetValue}))},Vy=Hh.setup;Hh.setup=Vy?(e,t)=>(Dy(),Vy(e,t)):Dy;const gT={class:"responsive-container"},yT=["id"],bT=["id"],vT={transform:"scale(1.20) translate(-9.5 -12)"},_T={x:"50%",y:"50%","dominant-baseline":"middle","text-anchor":"middle",class:"value"},wT={x:"50%",y:"62%","dominant-baseline":"middle","text-anchor":"middle",class:"subtitle"};function kT(e,t,n,a,r,s){const o=i.resolveComponent("CdsRichTooltip");return i.openBlock(),i.createElementBlock("span",null,[i.createElementVNode("div",gT,[i.createElementVNode("div",{class:"gauge-chart",style:i.normalizeStyle(s.progressStyle)},[(i.openBlock(),i.createElementBlock("svg",{id:r.uniqueKey,class:i.normalizeClass(`svg--${n.variant}`),viewBox:"0 0 110 100",onMouseover:t[0]||(t[0]=l=>r.showPopover=!0),onMouseleave:t[1]||(t[1]=l=>r.showPopover=!1)},[i.createElementVNode("linearGradient",{id:`gradient-${r.uniqueKey}`,x1:"0",y1:"0",x2:"0",y2:"100%",gradientTransform:"rotate(-340)"},t[3]||(t[3]=[i.createElementVNode("stop",{class:"stop",offset:"1%"},null,-1),i.createElementVNode("stop",{class:"stop-2",offset:"99%"},null,-1)]),8,bT),i.createElementVNode("g",vT,[t[4]||(t[4]=i.createElementVNode("path",{class:"indicator-bar",d:"M30,90 A40,40 0 1,1 80,90",fill:"none"},null,-1)),i.createElementVNode("path",{fill:"none",class:"indicator-progress",d:"M30,90 A40,40 0 1,1 80,90",style:i.normalizeStyle({stroke:`url(#gradient-${r.uniqueKey})`})},null,4),n.showTarget?(i.openBlock(),i.createElementBlock("path",{key:0,fill:"none",class:i.normalizeClass(["indicator-target",`indicator-target--${n.variant}`]),d:"M30,90 A40,40 0 1,1 80,90"},null,2)):i.createCommentVNode("",!0)]),i.createElementVNode("text",_T,i.toDisplayString(s.formatedValue),1),i.createElementVNode("text",wT,i.toDisplayString(n.subtitle),1)],42,yT))],4),s.hasSlot(e.$slots,"popover")?(i.openBlock(),i.createBlock(o,{key:0,modelValue:r.showPopover,"onUpdate:modelValue":t[2]||(t[2]=l=>r.showPopover=l),"default-placement":"top","target-id":r.uniqueKey},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"popover",{},void 0,!0)]),_:3},8,["modelValue","target-id"])):i.createCommentVNode("",!0)])])}const CT=ie(Hh,[["render",kT],["__scopeId","data-v-86ff0ae3"]]),xT={class:"grid-item"},ST=ie(Object.assign({name:"CdsGridItem"},{__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(e){i.useCssVars(o=>({d188974c:e.align,d066e406:r.value,"22b6fade":s.value,"5bfc4fc7":n.value,"83492cd6":a.value,b9b2f2b6:e.justify,"66ad1b58":e.direction}));const t=e,n=i.computed(()=>{if(!t.colSpan&&!t.colStart)return"auto";const o=t.colStart?t.colStart:1,l=t.colSpan?`span ${t.colSpan}`:1;return`${o} / ${l}`}),a=i.computed(()=>{if(!t.rowSpan&&!t.rowStart)return"auto";const o=t.rowStart?t.rowStart:1,l=t.rowSpan?`span ${t.rowSpan}`:1;return`${o} / ${l}`}),r=i.computed(()=>t.subGrid?"grid":"block"),s=i.computed(()=>{let o="";return t.gap&&t.gap!==0&&t.gap!=="0"?Number.isFinite(t.gap)?`${t.gap}px`:t.gap:(t.rowGap?Number.isFinite(t.rowGap)?o=`${t.rowGap}px`:o=t.rowGap:o="0px",t.colGap?Number.isFinite(t.colGap)?o+=` ${t.colGap}px`:o+=` ${t.colGap}`:o+=" 0px",o)});return(o,l)=>(i.openBlock(),i.createElementBlock("div",xT,[i.renderSlot(o.$slots,"default",{},void 0,!0)]))}}),[["__scopeId","data-v-051eccea"]]),Wh={name:"CdsHighlight",props:{variant:{type:String,default:"info"},animated:{type:Boolean,default:!1},duration:{type:Number,default:1},delay:{type:Number,default:0},highlightedText:{type:String,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 e="";switch(this.animated&&(e="highlight__container--highlighted"),this.variant){case"info":return`${e} highlight__container--info`;case"success":return`${e} highlight__container--success`;case"danger":return`${e} highlight__container--danger`;default:return`${e} highlight__container--info`}},dynamicStyle(){return{"--duration":`${this.duration}s`,"--delay":`${this.delay}s`}}},watch:{highlightedText(){this.splitContent()}},mounted(){this.splitContent()},methods:{normalize(e){const t={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?e==null?void 0:e.replace(/[aáàâãeéêiíoóôõuúüAÁÀÂÃEÉÊIÍOÓÔÕUÚÜ]/g,a=>n[a]||a):e==null?void 0:e.toLowerCase().replace(/[aáàâãeéêiíoóôõuúü]/g,a=>t[a]||a)},splitContent(){let e=this.caseSensitive?"g":"gi",t=new RegExp(`(${this.normalizedHighlightText})`,e),n=this.slotString.split(t);this.substrings=n.map((a,r)=>({string:a,highlighted:new RegExp(`^${this.normalizedHighlightText}$`,e).test(this.caseSensitive?a:a==null?void 0:a.toLowerCase()),id:r}))}}},$y=()=>{i.useCssVars(e=>({"4518ce43":e.paddingResolver}))},Ty=Wh.setup;Wh.setup=Ty?(e,t)=>($y(),Ty(e,t)):$y;function BT(e,t,n,a,r,s){return n.highlightedText&&s.isAValidSubstring?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(r.substrings,o=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:o.id},[o.highlighted?(i.openBlock(),i.createElementBlock("mark",{key:0,class:i.normalizeClass(["highlight__container",s.dynamicHighlightClass]),style:i.normalizeStyle(s.dynamicStyle)},i.toDisplayString(o.string),7)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(o.string),1)],64))],64))),128)):(i.openBlock(),i.createElementBlock("mark",{key:1,class:i.normalizeClass(["highlight__container",s.dynamicHighlightClass]),style:i.normalizeStyle(s.dynamicStyle)},[i.renderSlot(e.$slots,"default",{},void 0,!0)],6))}const Iy=ie(Wh,[["render",BT],["__scopeId","data-v-c73077f3"]]),Ay=["sm","md","lg"],MT={name:"CdsIconButton",components:{CdsIcon:ve,CdsTooltip:ad},props:{size:{type:String,default:"md",validator:e=>Ay.includes(e)},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:Ay,innerTooltipText:this.tooltipText,internalIcon:this.icon,inputControlPanel:0}},computed:{predefinedSize(){return`CdsIcon-button--${this.size}`},computedModifiers(){const e=this.disabled?"CdsIcon-button--disabled":"",t=`CdsIcon-button__container--${this.variant}`;return`${e} ${this.predefinedSize} ${t}`}},watch:{tooltipText(){this.innerTooltipText=this.tooltipText}},methods:{clickHandler(e){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",e))}}},ET={id:"CdsIcon-button"};function OT(e,t,n,a,r,s){const o=i.resolveComponent("CdsIcon");return i.openBlock(),i.createElementBlock("span",ET,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(n.tooltipText?"cds-tooltip":"span"),{text:r.innerTooltipText},{default:i.withCtx(()=>[i.createElementVNode("button",{class:i.normalizeClass(["CdsIcon-button__container",s.computedModifiers]),onClick:t[0]||(t[0]=(...l)=>s.clickHandler&&s.clickHandler(...l))},[(i.openBlock(),i.createBlock(o,{key:r.inputControlPanel,name:r.internalIcon,class:"CdsIcon-button__icon"},null,8,["name"]))],2)]),_:1},8,["text"]))])}const gu=ie(MT,[["render",OT],["__scopeId","data-v-9990b971"]]);var yu={exports:{}};yu.exports,function(e,t){var n=200,a="__lodash_hash_undefined__",r=1,s=2,o=9007199254740991,l="[object Arguments]",d="[object Array]",h="[object AsyncFunction]",f="[object Boolean]",m="[object Date]",y="[object Error]",g="[object Function]",v="[object GeneratorFunction]",_="[object Map]",k="[object Number]",x="[object Null]",M="[object Object]",B="[object Promise]",C="[object Proxy]",V="[object RegExp]",$="[object Set]",N="[object String]",I="[object Symbol]",F="[object Undefined]",q="[object WeakMap]",Q="[object ArrayBuffer]",P="[object DataView]",Z="[object Float32Array]",se="[object Float64Array]",U="[object Int8Array]",me="[object Int16Array]",be="[object Int32Array]",G="[object Uint8Array]",ye="[object Uint8ClampedArray]",Y="[object Uint16Array]",ee="[object Uint32Array]",ue=/[\\^$.*+?()[\]{}|]/g,de=/^\[object .+?Constructor\]$/,_e=/^(?:0|[1-9]\d*)$/,ge={};ge[Z]=ge[se]=ge[U]=ge[me]=ge[be]=ge[G]=ge[ye]=ge[Y]=ge[ee]=!0,ge[l]=ge[d]=ge[Q]=ge[f]=ge[P]=ge[m]=ge[y]=ge[g]=ge[_]=ge[k]=ge[M]=ge[V]=ge[$]=ge[N]=ge[q]=!1;var De=typeof bn=="object"&&bn&&bn.Object===Object&&bn,Ye=typeof self=="object"&&self&&self.Object===Object&&self,Ne=De||Ye||Function("return this")(),ut=t&&!t.nodeType&&t,_t=ut&&!0&&e&&!e.nodeType&&e,ft=_t&&_t.exports===ut,it=ft&&De.process,Ze=function(){try{return it&&it.binding&&it.binding("util")}catch{}}(),Qe=Ze&&Ze.isTypedArray;function Dt(w,O){for(var z=-1,te=w==null?0:w.length,Pe=0,Ee=[];++z<te;){var rt=w[z];O(rt,z,w)&&(Ee[Pe++]=rt)}return Ee}function lt(w,O){for(var z=-1,te=O.length,Pe=w.length;++z<te;)w[Pe+z]=O[z];return w}function ae(w,O){for(var z=-1,te=w==null?0:w.length;++z<te;)if(O(w[z],z,w))return!0;return!1}function xe(w,O){for(var z=-1,te=Array(w);++z<w;)te[z]=O(z);return te}function Ve(w){return function(O){return w(O)}}function ze(w,O){return w.has(O)}function Fe(w,O){return w==null?void 0:w[O]}function pt(w){var O=-1,z=Array(w.size);return w.forEach(function(te,Pe){z[++O]=[Pe,te]}),z}function Bt(w,O){return function(z){return w(O(z))}}function Vt(w){var O=-1,z=Array(w.size);return w.forEach(function(te){z[++O]=te}),z}var Mt=Array.prototype,nn=Function.prototype,$t=Object.prototype,he=Ne["__core-js_shared__"],Le=nn.toString,Ge=$t.hasOwnProperty,on=function(){var w=/[^.]+$/.exec(he&&he.keys&&he.keys.IE_PROTO||"");return w?"Symbol(src)_1."+w:""}(),mn=$t.toString,_n=RegExp("^"+Le.call(Ge).replace(ue,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),J=ft?Ne.Buffer:void 0,j=Ne.Symbol,pe=Ne.Uint8Array,R=$t.propertyIsEnumerable,T=Mt.splice,K=j?j.toStringTag:void 0,le=Object.getOwnPropertySymbols,Me=J?J.isBuffer:void 0,et=Bt(Object.keys,Object),mt=Tn(Ne,"DataView"),Tt=Tn(Ne,"Map"),ln=Tn(Ne,"Promise"),Jt=Tn(Ne,"Set"),Kn=Tn(Ne,"WeakMap"),wt=Tn(Object,"create"),Pn=wn(mt),Vn=wn(Tt),oi=wn(ln),qi=wn(Jt),Na=wn(Kn),Bo=j?j.prototype:void 0,fs=Bo?Bo.valueOf:void 0;function cn(w){var O=-1,z=w==null?0:w.length;for(this.clear();++O<z;){var te=w[O];this.set(te[0],te[1])}}function gc(){this.__data__=wt?wt(null):{},this.size=0}function yc(w){var O=this.has(w)&&delete this.__data__[w];return this.size-=O?1:0,O}function bc(w){var O=this.__data__;if(wt){var z=O[w];return z===a?void 0:z}return Ge.call(O,w)?O[w]:void 0}function vc(w){var O=this.__data__;return wt?O[w]!==void 0:Ge.call(O,w)}function _c(w,O){var z=this.__data__;return this.size+=this.has(w)?0:1,z[w]=wt&&O===void 0?a:O,this}cn.prototype.clear=gc,cn.prototype.delete=yc,cn.prototype.get=bc,cn.prototype.has=vc,cn.prototype.set=_c;function dn(w){var O=-1,z=w==null?0:w.length;for(this.clear();++O<z;){var te=w[O];this.set(te[0],te[1])}}function wc(){this.__data__=[],this.size=0}function kc(w){var O=this.__data__,z=La(O,w);if(z<0)return!1;var te=O.length-1;return z==te?O.pop():T.call(O,z,1),--this.size,!0}function Cc(w){var O=this.__data__,z=La(O,w);return z<0?void 0:O[z][1]}function xc(w){return La(this.__data__,w)>-1}function Sc(w,O){var z=this.__data__,te=La(z,w);return te<0?(++this.size,z.push([w,O])):z[te][1]=O,this}dn.prototype.clear=wc,dn.prototype.delete=kc,dn.prototype.get=Cc,dn.prototype.has=xc,dn.prototype.set=Sc;function $n(w){var O=-1,z=w==null?0:w.length;for(this.clear();++O<z;){var te=w[O];this.set(te[0],te[1])}}function kr(){this.size=0,this.__data__={hash:new cn,map:new(Tt||dn),string:new cn}}function Bc(w){var O=Fn(this,w).delete(w);return this.size-=O?1:0,O}function Cr(w){return Fn(this,w).get(w)}function Mc(w){return Fn(this,w).has(w)}function Ec(w,O){var z=Fn(this,w),te=z.size;return z.set(w,O),this.size+=z.size==te?0:1,this}$n.prototype.clear=kr,$n.prototype.delete=Bc,$n.prototype.get=Cr,$n.prototype.has=Mc,$n.prototype.set=Ec;function xr(w){var O=-1,z=w==null?0:w.length;for(this.__data__=new $n;++O<z;)this.add(w[O])}function ps(w){return this.__data__.set(w,a),this}function za(w){return this.__data__.has(w)}xr.prototype.add=xr.prototype.push=ps,xr.prototype.has=za;function li(w){var O=this.__data__=new dn(w);this.size=O.size}function ms(){this.__data__=new dn,this.size=0}function Oc(w){var O=this.__data__,z=O.delete(w);return this.size=O.size,z}function Dc(w){return this.__data__.get(w)}function Vc(w){return this.__data__.has(w)}function Mo(w,O){var z=this.__data__;if(z instanceof dn){var te=z.__data__;if(!Tt||te.length<n-1)return te.push([w,O]),this.size=++z.size,this;z=this.__data__=new $n(te)}return z.set(w,O),this.size=z.size,this}li.prototype.clear=ms,li.prototype.delete=Oc,li.prototype.get=Dc,li.prototype.has=Vc,li.prototype.set=Mo;function Eo(w,O){var z=Sr(w),te=!z&&ys(w),Pe=!z&&!te&&Br(w),Ee=!z&&!te&&!Pe&&Ro(w),rt=z||te||Pe||Ee,st=rt?xe(w.length,String):[],Xe=st.length;for(var ct in w)Ge.call(w,ct)&&!(rt&&(ct=="length"||Pe&&(ct=="offset"||ct=="parent")||Ee&&(ct=="buffer"||ct=="byteLength"||ct=="byteOffset")||Io(ct,Xe)))&&st.push(ct);return st}function La(w,O){for(var z=w.length;z--;)if(Po(w[z][0],O))return z;return-1}function Pa(w,O,z){var te=O(w);return Sr(w)?te:lt(te,z(w))}function Fa(w){return w==null?w===void 0?F:x:K&&K in Object(w)?xi(w):Lo(w)}function gs(w){return Bi(w)&&Fa(w)==l}function Ra(w,O,z,te,Pe){return w===O?!0:w==null||O==null||!Bi(w)&&!Bi(O)?w!==w&&O!==O:Oo(w,O,z,te,Ra,Pe)}function Oo(w,O,z,te,Pe,Ee){var rt=Sr(w),st=Sr(O),Xe=rt?d:Si(w),ct=st?d:Si(O);Xe=Xe==l?M:Xe,ct=ct==l?M:ct;var Ht=Xe==M,kn=ct==M,jt=Xe==ct;if(jt&&Br(w)){if(!Br(O))return!1;rt=!0,Ht=!1}if(jt&&!Ht)return Ee||(Ee=new li),rt||Ro(w)?Ha(w,O,z,te,Pe,Ee):Tc(w,O,Xe,z,te,Pe,Ee);if(!(z&r)){var Ct=Ht&&Ge.call(w,"__wrapped__"),an=kn&&Ge.call(O,"__wrapped__");if(Ct||an){var Ki=Ct?w.value():w,Mi=an?O.value():O;return Ee||(Ee=new li),Pe(Ki,Mi,z,te,Ee)}}return jt?(Ee||(Ee=new li),$o(w,O,z,te,Pe,Ee)):!1}function $c(w){if(!Fo(w)||No(w))return!1;var O=Mr(w)?_n:de;return O.test(wn(w))}function Do(w){return Bi(w)&&vs(w.length)&&!!ge[Fa(w)]}function Vo(w){if(!zo(w))return et(w);var O=[];for(var z in Object(w))Ge.call(w,z)&&z!="constructor"&&O.push(z);return O}function Ha(w,O,z,te,Pe,Ee){var rt=z&r,st=w.length,Xe=O.length;if(st!=Xe&&!(rt&&Xe>st))return!1;var ct=Ee.get(w);if(ct&&Ee.get(O))return ct==O;var Ht=-1,kn=!0,jt=z&s?new xr:void 0;for(Ee.set(w,O),Ee.set(O,w);++Ht<st;){var Ct=w[Ht],an=O[Ht];if(te)var Ki=rt?te(an,Ct,Ht,O,w,Ee):te(Ct,an,Ht,w,O,Ee);if(Ki!==void 0){if(Ki)continue;kn=!1;break}if(jt){if(!ae(O,function(Mi,fa){if(!ze(jt,fa)&&(Ct===Mi||Pe(Ct,Mi,z,te,Ee)))return jt.push(fa)})){kn=!1;break}}else if(!(Ct===an||Pe(Ct,an,z,te,Ee))){kn=!1;break}}return Ee.delete(w),Ee.delete(O),kn}function Tc(w,O,z,te,Pe,Ee,rt){switch(z){case P:if(w.byteLength!=O.byteLength||w.byteOffset!=O.byteOffset)return!1;w=w.buffer,O=O.buffer;case Q:return!(w.byteLength!=O.byteLength||!Ee(new pe(w),new pe(O)));case f:case m:case k:return Po(+w,+O);case y:return w.name==O.name&&w.message==O.message;case V:case N:return w==O+"";case _:var st=pt;case $:var Xe=te&r;if(st||(st=Vt),w.size!=O.size&&!Xe)return!1;var ct=rt.get(w);if(ct)return ct==O;te|=s,rt.set(w,O);var Ht=Ha(st(w),st(O),te,Pe,Ee,rt);return rt.delete(w),Ht;case I:if(fs)return fs.call(w)==fs.call(O)}return!1}function $o(w,O,z,te,Pe,Ee){var rt=z&r,st=Gi(w),Xe=st.length,ct=Gi(O),Ht=ct.length;if(Xe!=Ht&&!rt)return!1;for(var kn=Xe;kn--;){var jt=st[kn];if(!(rt?jt in O:Ge.call(O,jt)))return!1}var Ct=Ee.get(w);if(Ct&&Ee.get(O))return Ct==O;var an=!0;Ee.set(w,O),Ee.set(O,w);for(var Ki=rt;++kn<Xe;){jt=st[kn];var Mi=w[jt],fa=O[jt];if(te)var Ac=rt?te(fa,Mi,jt,O,w,Ee):te(Mi,fa,jt,w,O,Ee);if(!(Ac===void 0?Mi===fa||Pe(Mi,fa,z,te,Ee):Ac)){an=!1;break}Ki||(Ki=jt=="constructor")}if(an&&!Ki){var ws=w.constructor,gn=O.constructor;ws!=gn&&"constructor"in w&&"constructor"in O&&!(typeof ws=="function"&&ws instanceof ws&&typeof gn=="function"&&gn instanceof gn)&&(an=!1)}return Ee.delete(w),Ee.delete(O),an}function Gi(w){return Pa(w,_s,To)}function Fn(w,O){var z=w.__data__;return Ao(O)?z[typeof O=="string"?"string":"hash"]:z.map}function Tn(w,O){var z=Fe(w,O);return $c(z)?z:void 0}function xi(w){var O=Ge.call(w,K),z=w[K];try{w[K]=void 0;var te=!0}catch{}var Pe=mn.call(w);return te&&(O?w[K]=z:delete w[K]),Pe}var To=le?function(w){return w==null?[]:(w=Object(w),Dt(le(w),function(O){return R.call(w,O)}))}:kt,Si=Fa;(mt&&Si(new mt(new ArrayBuffer(1)))!=P||Tt&&Si(new Tt)!=_||ln&&Si(ln.resolve())!=B||Jt&&Si(new Jt)!=$||Kn&&Si(new Kn)!=q)&&(Si=function(w){var O=Fa(w),z=O==M?w.constructor:void 0,te=z?wn(z):"";if(te)switch(te){case Pn:return P;case Vn:return _;case oi:return B;case qi:return $;case Na:return q}return O});function Io(w,O){return O=O??o,!!O&&(typeof w=="number"||_e.test(w))&&w>-1&&w%1==0&&w<O}function Ao(w){var O=typeof w;return O=="string"||O=="number"||O=="symbol"||O=="boolean"?w!=="__proto__":w===null}function No(w){return!!on&&on in w}function zo(w){var O=w&&w.constructor,z=typeof O=="function"&&O.prototype||$t;return w===z}function Lo(w){return mn.call(w)}function wn(w){if(w!=null){try{return Le.call(w)}catch{}try{return w+""}catch{}}return""}function Po(w,O){return w===O||w!==w&&O!==O}var ys=gs(function(){return arguments}())?gs:function(w){return Bi(w)&&Ge.call(w,"callee")&&!R.call(w,"callee")},Sr=Array.isArray;function bs(w){return w!=null&&vs(w.length)&&!Mr(w)}var Br=Me||yt;function Ic(w,O){return Ra(w,O)}function Mr(w){if(!Fo(w))return!1;var O=Fa(w);return O==g||O==v||O==h||O==C}function vs(w){return typeof w=="number"&&w>-1&&w%1==0&&w<=o}function Fo(w){var O=typeof w;return w!=null&&(O=="object"||O=="function")}function Bi(w){return w!=null&&typeof w=="object"}var Ro=Qe?Ve(Qe):Do;function _s(w){return bs(w)?Eo(w):Vo(w)}function kt(){return[]}function yt(){return!1}e.exports=Ic}(yu,yu.exports);var DT=yu.exports;const so=D1(DT),VT={id:"inner-tabs"},$T={class:"inner-tabs__header-container"},TT={class:"inner-tabs__header"},IT=["onClick"],AT={class:"inner-tabs__content"},NT=Object.assign({name:"CdsInnerTabs"},{__name:"InnerTabs",props:{tabs:{type:Array,default:()=>[],required:!0,validator:e=>!e.filter(n=>sn(n.title)||sn(n.name)).length},activeTab:{type:Object,default:()=>({}),required:!0},variant:{type:String,default:"green",validator:e=>Ma.includes(e)},headerLeft:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1}},emits:["tab-click","change"],setup(e,{emit:t}){i.useCssVars(g=>({"99f36bf6":l.value}));const n=e,a=t,r=i.ref(n.activeTab),s=i.ref(new Set([n.activeTab.name])),o=i.computed(()=>({"--indicatorColor":Jl(n.variant)})),l=i.computed(()=>n.headerLeft?"fit-content":"100%");function d(g){return s.value.has(g.name)}i.watch(()=>n.tabs,g=>{const v=g.filter(_=>_.name===n.activeTab.name);r.value=v.length?v[0]:g[0]},{immediate:!0});const h=g=>g.name,f=(g,v)=>{a("tab-click",{event:g,item:v}),!r.value.disableTabChange&&(s.value.add(v.name),a("change",{event:g,item:v}),r.value=v)},m=g=>so(r.value,g),y=g=>m(g)?`tab__indicator--active--${n.variant}`:"";return(g,v)=>(i.openBlock(),i.createElementBlock("div",VT,[i.createElementVNode("div",$T,[i.createElementVNode("ul",TT,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.tabs,(_,k)=>(i.openBlock(),i.createElementBlock("li",{key:`${k}-${_.name}-tab`,role:"presentation"},[i.createElementVNode("a",{role:"tab",href:"javascript:void(0)",target:"_self",class:i.normalizeClass(["inner-tabs__tab",m(_)?"inner-tabs__tab--active":"inner-tabs__tab--inactive"]),onClick:x=>f(x,_)},i.toDisplayString(_.title),11,IT),i.createElementVNode("div",{class:i.normalizeClass(y(_)),style:i.normalizeStyle(o.value)},null,6)]))),128))])]),i.createElementVNode("div",AT,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.tabs,(_,k)=>(i.openBlock(),i.createElementBlock("div",{key:`${k}-${_.name}-tab`,role:"tabpanel",class:i.normalizeClass(["content__pane",m(_)?"content__pane--active":"content__pane--inactive"])},[!e.lazy||d(_)?i.renderSlot(g.$slots,h(_),{key:0}):i.createCommentVNode("",!0)],2))),128))])]))}}),zT={key:0,class:"landscape-overlay"},LT={class:"landscape-overlay__container"},PT=["src"],FT={class:"landscape-overlay__title"},RT={class:"landscape-overlay__subtitle"},HT={key:0,class:"landscape-overlay__button"},WT=ie(Object.assign({name:"CdsInteractionBlockingOverlay"},{__name:"InteractionBlockingOverlay",props:{blockInteraction:{type:String,required:!0,default:"mobile",validator:e=>["mobile","landscape"].includes(e.toLowerCase())},title:{type:String,default:""},description:{type:String,default:""},buttonVariant:{type:String,default:"green",validator:e=>Ma.includes(e.toLowerCase())},buttonText:{type:String,default:"Ir para o início"}},emits:["button-click"],setup(e,{emit:t}){const n=e,a=t,r=i.ref(!1),s=i.ref(""),o=i.ref(""),l=i.ref(""),d=i.computed(()=>ns("smartphone")||ns("tablet")),h=i.computed(()=>window.outerWidth>window.outerHeight&&d.value);return i.watch(r,f=>{f?document.body.style.overflow="hidden":document.body.style.overflow="auto"}),i.watchEffect(()=>{!d.value&&!h.value&&(r.value=!1)}),i.onMounted(()=>{if(n.blockInteraction==="mobile"){d.value&&(r.value=!0,n.title===""?s.value="Acesse o conteúdo por um computador":s.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&&(r.value=!0,n.title===""?s.value="Rotacione seu dispositivo":s.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)=>r.value?(i.openBlock(),i.createElementBlock("div",zT,[i.createElementVNode("div",LT,[i.createElementVNode("img",{class:"landscape-overlay__image",src:l.value},null,8,PT),i.createElementVNode("span",FT,i.toDisplayString(s.value),1),i.createElementVNode("span",RT,i.toDisplayString(o.value),1),f.block-f.interaction==="mobile"?(i.openBlock(),i.createElementBlock("div",HT,[i.createVNode(fn,{variant:e.buttonVariant,block:"",onButtonClick:m[0]||(m[0]=y=>a("button-click"))},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.buttonText),1)]),_:1},8,["variant"])])):i.createCommentVNode("",!0)])])):i.createCommentVNode("",!0)}}),[["__scopeId","data-v-d6391e04"]]);var YT=Object.defineProperty,jT=(e,t,n)=>t in e?YT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Oe=(e,t,n)=>(jT(e,typeof t!="symbol"?t+"":t,n),n),bu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ny(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var UT=Object.prototype,qT=UT.hasOwnProperty;function GT(e,t){return e!=null&&qT.call(e,t)}var KT=GT,ZT=Array.isArray,Yi=ZT,XT=typeof bu=="object"&&bu&&bu.Object===Object&&bu,zy=XT,JT=zy,QT=typeof self=="object"&&self&&self.Object===Object&&self,eI=JT||QT||Function("return this")(),ca=eI,tI=ca,nI=tI.Symbol,vu=nI,Ly=vu,Py=Object.prototype,iI=Py.hasOwnProperty,aI=Py.toString,ac=Ly?Ly.toStringTag:void 0;function rI(e){var t=iI.call(e,ac),n=e[ac];try{e[ac]=void 0;var a=!0}catch{}var r=aI.call(e);return a&&(t?e[ac]=n:delete e[ac]),r}var sI=rI,oI=Object.prototype,lI=oI.toString;function cI(e){return lI.call(e)}var dI=cI,Fy=vu,uI=sI,hI=dI,fI="[object Null]",pI="[object Undefined]",Ry=Fy?Fy.toStringTag:void 0;function mI(e){return e==null?e===void 0?pI:fI:Ry&&Ry in Object(e)?uI(e):hI(e)}var da=mI;function gI(e){return e!=null&&typeof e=="object"}var ji=gI,yI=da,bI=ji,vI="[object Symbol]";function _I(e){return typeof e=="symbol"||bI(e)&&yI(e)==vI}var Yh=_I,wI=Yi,kI=Yh,CI=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xI=/^\w*$/;function SI(e,t){if(wI(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||kI(e)?!0:xI.test(e)||!CI.test(e)||t!=null&&e in Object(t)}var jh=SI;function BI(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Da=BI,MI=da,EI=Da,OI="[object AsyncFunction]",DI="[object Function]",VI="[object GeneratorFunction]",$I="[object Proxy]";function TI(e){if(!EI(e))return!1;var t=MI(e);return t==DI||t==VI||t==OI||t==$I}var ss=TI,II=ca,AI=II["__core-js_shared__"],NI=AI,Uh=NI,Hy=function(){var e=/[^.]+$/.exec(Uh&&Uh.keys&&Uh.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function zI(e){return!!Hy&&Hy in e}var LI=zI,PI=Function.prototype,FI=PI.toString;function RI(e){if(e!=null){try{return FI.call(e)}catch{}try{return e+""}catch{}}return""}var Wy=RI,HI=ss,WI=LI,YI=Da,jI=Wy,UI=/[\\^$.*+?()[\]{}|]/g,qI=/^\[object .+?Constructor\]$/,GI=Function.prototype,KI=Object.prototype,ZI=GI.toString,XI=KI.hasOwnProperty,JI=RegExp("^"+ZI.call(XI).replace(UI,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function QI(e){if(!YI(e)||WI(e))return!1;var t=HI(e)?JI:qI;return t.test(jI(e))}var eA=QI;function tA(e,t){return e==null?void 0:e[t]}var nA=tA,iA=eA,aA=nA;function rA(e,t){var n=aA(e,t);return iA(n)?n:void 0}var os=rA,sA=os,oA=sA(Object,"create"),_u=oA,Yy=_u;function lA(){this.__data__=Yy?Yy(null):{},this.size=0}var cA=lA;function dA(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var uA=dA,hA=_u,fA="__lodash_hash_undefined__",pA=Object.prototype,mA=pA.hasOwnProperty;function gA(e){var t=this.__data__;if(hA){var n=t[e];return n===fA?void 0:n}return mA.call(t,e)?t[e]:void 0}var yA=gA,bA=_u,vA=Object.prototype,_A=vA.hasOwnProperty;function wA(e){var t=this.__data__;return bA?t[e]!==void 0:_A.call(t,e)}var kA=wA,CA=_u,xA="__lodash_hash_undefined__";function SA(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=CA&&t===void 0?xA:t,this}var BA=SA,MA=cA,EA=uA,OA=yA,DA=kA,VA=BA;function oo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}oo.prototype.clear=MA,oo.prototype.delete=EA,oo.prototype.get=OA,oo.prototype.has=DA,oo.prototype.set=VA;var $A=oo;function TA(){this.__data__=[],this.size=0}var IA=TA;function AA(e,t){return e===t||e!==e&&t!==t}var lo=AA,NA=lo;function zA(e,t){for(var n=e.length;n--;)if(NA(e[n][0],t))return n;return-1}var wu=zA,LA=wu,PA=Array.prototype,FA=PA.splice;function RA(e){var t=this.__data__,n=LA(t,e);if(n<0)return!1;var a=t.length-1;return n==a?t.pop():FA.call(t,n,1),--this.size,!0}var HA=RA,WA=wu;function YA(e){var t=this.__data__,n=WA(t,e);return n<0?void 0:t[n][1]}var jA=YA,UA=wu;function qA(e){return UA(this.__data__,e)>-1}var GA=qA,KA=wu;function ZA(e,t){var n=this.__data__,a=KA(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}var XA=ZA,JA=IA,QA=HA,eN=jA,tN=GA,nN=XA;function co(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}co.prototype.clear=JA,co.prototype.delete=QA,co.prototype.get=eN,co.prototype.has=tN,co.prototype.set=nN;var ku=co,iN=os,aN=ca,rN=iN(aN,"Map"),qh=rN,jy=$A,sN=ku,oN=qh;function lN(){this.size=0,this.__data__={hash:new jy,map:new(oN||sN),string:new jy}}var cN=lN;function dN(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var uN=dN,hN=uN;function fN(e,t){var n=e.__data__;return hN(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Cu=fN,pN=Cu;function mN(e){var t=pN(this,e).delete(e);return this.size-=t?1:0,t}var gN=mN,yN=Cu;function bN(e){return yN(this,e).get(e)}var vN=bN,_N=Cu;function wN(e){return _N(this,e).has(e)}var kN=wN,CN=Cu;function xN(e,t){var n=CN(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this}var SN=xN,BN=cN,MN=gN,EN=vN,ON=kN,DN=SN;function uo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}uo.prototype.clear=BN,uo.prototype.delete=MN,uo.prototype.get=EN,uo.prototype.has=ON,uo.prototype.set=DN;var Gh=uo,Uy=Gh,VN="Expected a function";function Kh(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(VN);var n=function(){var a=arguments,r=t?t.apply(this,a):a[0],s=n.cache;if(s.has(r))return s.get(r);var o=e.apply(this,a);return n.cache=s.set(r,o)||s,o};return n.cache=new(Kh.Cache||Uy),n}Kh.Cache=Uy;var $N=Kh,TN=$N,IN=500;function AN(e){var t=TN(e,function(a){return n.size===IN&&n.clear(),a}),n=t.cache;return t}var NN=AN,zN=NN,LN=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,PN=/\\(\\)?/g,FN=zN(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(LN,function(n,a,r,s){t.push(r?s.replace(PN,"$1"):a||n)}),t}),RN=FN;function HN(e,t){for(var n=-1,a=e==null?0:e.length,r=Array(a);++n<a;)r[n]=t(e[n],n,e);return r}var WN=HN,qy=vu,YN=WN,jN=Yi,UN=Yh,Gy=qy?qy.prototype:void 0,Ky=Gy?Gy.toString:void 0;function Zy(e){if(typeof e=="string")return e;if(jN(e))return YN(e,Zy)+"";if(UN(e))return Ky?Ky.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var qN=Zy,GN=qN;function KN(e){return e==null?"":GN(e)}var ZN=KN,XN=Yi,JN=jh,QN=RN,ez=ZN;function tz(e,t){return XN(e)?e:JN(e,t)?[e]:QN(ez(e))}var Xy=tz,nz=da,iz=ji,az="[object Arguments]";function rz(e){return iz(e)&&nz(e)==az}var sz=rz,Jy=sz,oz=ji,Qy=Object.prototype,lz=Qy.hasOwnProperty,cz=Qy.propertyIsEnumerable,dz=Jy(function(){return arguments}())?Jy:function(e){return oz(e)&&lz.call(e,"callee")&&!cz.call(e,"callee")},Zh=dz,uz=9007199254740991,hz=/^(?:0|[1-9]\d*)$/;function fz(e,t){var n=typeof e;return t=t??uz,!!t&&(n=="number"||n!="symbol"&&hz.test(e))&&e>-1&&e%1==0&&e<t}var Xh=fz,pz=9007199254740991;function mz(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=pz}var Jh=mz,gz=Yh;function yz(e){if(typeof e=="string"||gz(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var xu=yz,bz=Xy,vz=Zh,_z=Yi,wz=Xh,kz=Jh,Cz=xu;function xz(e,t,n){t=bz(t,e);for(var a=-1,r=t.length,s=!1;++a<r;){var o=Cz(t[a]);if(!(s=e!=null&&n(e,o)))break;e=e[o]}return s||++a!=r?s:(r=e==null?0:e.length,!!r&&kz(r)&&wz(o,r)&&(_z(e)||vz(e)))}var e5=xz,Sz=KT,Bz=e5;function Mz(e,t){return e!=null&&Bz(e,t,Sz)}var t5=Mz,Ez=da,Oz=ji,Dz="[object Date]";function Vz(e){return Oz(e)&&Ez(e)==Dz}var $z=Vz;function Tz(e){return function(t){return e(t)}}var n5=Tz,rc={},Iz={get exports(){return rc},set exports(e){rc=e}};(function(e,t){var n=zy,a=t&&!t.nodeType&&t,r=a&&!0&&e&&!e.nodeType&&e,s=r&&r.exports===a,o=s&&n.process,l=function(){try{var d=r&&r.require&&r.require("util").types;return d||o&&o.binding&&o.binding("util")}catch{}}();e.exports=l})(Iz,rc);var Az=$z,Nz=n5,i5=rc,a5=i5&&i5.isDate,zz=a5?Nz(a5):Az,Lz=zz,Pz=da,Fz=Yi,Rz=ji,Hz="[object String]";function Wz(e){return typeof e=="string"||!Fz(e)&&Rz(e)&&Pz(e)==Hz}var ua=Wz;function Yz(e,t){for(var n=-1,a=e==null?0:e.length;++n<a;)if(t(e[n],n,e))return!0;return!1}var r5=Yz,jz=ku;function Uz(){this.__data__=new jz,this.size=0}var qz=Uz;function Gz(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var Kz=Gz;function Zz(e){return this.__data__.get(e)}var Xz=Zz;function Jz(e){return this.__data__.has(e)}var Qz=Jz,eL=ku,tL=qh,nL=Gh,iL=200;function aL(e,t){var n=this.__data__;if(n instanceof eL){var a=n.__data__;if(!tL||a.length<iL-1)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new nL(a)}return n.set(e,t),this.size=n.size,this}var rL=aL,sL=ku,oL=qz,lL=Kz,cL=Xz,dL=Qz,uL=rL;function ho(e){var t=this.__data__=new sL(e);this.size=t.size}ho.prototype.clear=oL,ho.prototype.delete=lL,ho.prototype.get=cL,ho.prototype.has=dL,ho.prototype.set=uL;var Qh=ho,hL="__lodash_hash_undefined__";function fL(e){return this.__data__.set(e,hL),this}var pL=fL;function mL(e){return this.__data__.has(e)}var gL=mL,yL=Gh,bL=pL,vL=gL;function Su(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new yL;++t<n;)this.add(e[t])}Su.prototype.add=Su.prototype.push=bL,Su.prototype.has=vL;var _L=Su;function wL(e,t){return e.has(t)}var kL=wL,CL=_L,xL=r5,SL=kL,BL=1,ML=2;function EL(e,t,n,a,r,s){var o=n&BL,l=e.length,d=t.length;if(l!=d&&!(o&&d>l))return!1;var h=s.get(e),f=s.get(t);if(h&&f)return h==t&&f==e;var m=-1,y=!0,g=n&ML?new CL:void 0;for(s.set(e,t),s.set(t,e);++m<l;){var v=e[m],_=t[m];if(a)var k=o?a(_,v,m,t,e,s):a(v,_,m,e,t,s);if(k!==void 0){if(k)continue;y=!1;break}if(g){if(!xL(t,function(x,M){if(!SL(g,M)&&(v===x||r(v,x,n,a,s)))return g.push(M)})){y=!1;break}}else if(!(v===_||r(v,_,n,a,s))){y=!1;break}}return s.delete(e),s.delete(t),y}var s5=EL,OL=ca,DL=OL.Uint8Array,o5=DL;function VL(e){var t=-1,n=Array(e.size);return e.forEach(function(a,r){n[++t]=[r,a]}),n}var $L=VL;function TL(e){var t=-1,n=Array(e.size);return e.forEach(function(a){n[++t]=a}),n}var IL=TL,l5=vu,c5=o5,AL=lo,NL=s5,zL=$L,LL=IL,PL=1,FL=2,RL="[object Boolean]",HL="[object Date]",WL="[object Error]",YL="[object Map]",jL="[object Number]",UL="[object RegExp]",qL="[object Set]",GL="[object String]",KL="[object Symbol]",ZL="[object ArrayBuffer]",XL="[object DataView]",d5=l5?l5.prototype:void 0,ef=d5?d5.valueOf:void 0;function JL(e,t,n,a,r,s,o){switch(n){case XL:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ZL:return!(e.byteLength!=t.byteLength||!s(new c5(e),new c5(t)));case RL:case HL:case jL:return AL(+e,+t);case WL:return e.name==t.name&&e.message==t.message;case UL:case GL:return e==t+"";case YL:var l=zL;case qL:var d=a&PL;if(l||(l=LL),e.size!=t.size&&!d)return!1;var h=o.get(e);if(h)return h==t;a|=FL,o.set(e,t);var f=NL(l(e),l(t),a,r,s,o);return o.delete(e),f;case KL:if(ef)return ef.call(e)==ef.call(t)}return!1}var QL=JL;function eP(e,t){for(var n=-1,a=t.length,r=e.length;++n<a;)e[r+n]=t[n];return e}var tP=eP,nP=tP,iP=Yi;function aP(e,t,n){var a=t(e);return iP(e)?a:nP(a,n(e))}var rP=aP;function sP(e,t){for(var n=-1,a=e==null?0:e.length,r=0,s=[];++n<a;){var o=e[n];t(o,n,e)&&(s[r++]=o)}return s}var oP=sP;function lP(){return[]}var cP=lP,dP=oP,uP=cP,hP=Object.prototype,fP=hP.propertyIsEnumerable,u5=Object.getOwnPropertySymbols,pP=u5?function(e){return e==null?[]:(e=Object(e),dP(u5(e),function(t){return fP.call(e,t)}))}:uP,mP=pP;function gP(e,t){for(var n=-1,a=Array(e);++n<e;)a[n]=t(n);return a}var yP=gP,fo={},bP={get exports(){return fo},set exports(e){fo=e}};function vP(){return!1}var _P=vP;(function(e,t){var n=ca,a=_P,r=t&&!t.nodeType&&t,s=r&&!0&&e&&!e.nodeType&&e,o=s&&s.exports===r,l=o?n.Buffer:void 0,d=l?l.isBuffer:void 0,h=d||a;e.exports=h})(bP,fo);var wP=da,kP=Jh,CP=ji,xP="[object Arguments]",SP="[object Array]",BP="[object Boolean]",MP="[object Date]",EP="[object Error]",OP="[object Function]",DP="[object Map]",VP="[object Number]",$P="[object Object]",TP="[object RegExp]",IP="[object Set]",AP="[object String]",NP="[object WeakMap]",zP="[object ArrayBuffer]",LP="[object DataView]",PP="[object Float32Array]",FP="[object Float64Array]",RP="[object Int8Array]",HP="[object Int16Array]",WP="[object Int32Array]",YP="[object Uint8Array]",jP="[object Uint8ClampedArray]",UP="[object Uint16Array]",qP="[object Uint32Array]",Pt={};Pt[PP]=Pt[FP]=Pt[RP]=Pt[HP]=Pt[WP]=Pt[YP]=Pt[jP]=Pt[UP]=Pt[qP]=!0,Pt[xP]=Pt[SP]=Pt[zP]=Pt[BP]=Pt[LP]=Pt[MP]=Pt[EP]=Pt[OP]=Pt[DP]=Pt[VP]=Pt[$P]=Pt[TP]=Pt[IP]=Pt[AP]=Pt[NP]=!1;function GP(e){return CP(e)&&kP(e.length)&&!!Pt[wP(e)]}var KP=GP,ZP=KP,XP=n5,h5=rc,f5=h5&&h5.isTypedArray,JP=f5?XP(f5):ZP,tf=JP,QP=yP,eF=Zh,tF=Yi,nF=fo,iF=Xh,aF=tf,rF=Object.prototype,sF=rF.hasOwnProperty;function oF(e,t){var n=tF(e),a=!n&&eF(e),r=!n&&!a&&nF(e),s=!n&&!a&&!r&&aF(e),o=n||a||r||s,l=o?QP(e.length,String):[],d=l.length;for(var h in e)(t||sF.call(e,h))&&!(o&&(h=="length"||r&&(h=="offset"||h=="parent")||s&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||iF(h,d)))&&l.push(h);return l}var p5=oF,lF=Object.prototype;function cF(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||lF;return e===n}var nf=cF;function dF(e,t){return function(n){return e(t(n))}}var m5=dF,uF=m5,hF=uF(Object.keys,Object),fF=hF,pF=nf,mF=fF,gF=Object.prototype,yF=gF.hasOwnProperty;function bF(e){if(!pF(e))return mF(e);var t=[];for(var n in Object(e))yF.call(e,n)&&n!="constructor"&&t.push(n);return t}var vF=bF,_F=ss,wF=Jh;function kF(e){return e!=null&&wF(e.length)&&!_F(e)}var sc=kF,CF=p5,xF=vF,SF=sc;function BF(e){return SF(e)?CF(e):xF(e)}var af=BF,MF=rP,EF=mP,OF=af;function DF(e){return MF(e,OF,EF)}var VF=DF,g5=VF,$F=1,TF=Object.prototype,IF=TF.hasOwnProperty;function AF(e,t,n,a,r,s){var o=n&$F,l=g5(e),d=l.length,h=g5(t),f=h.length;if(d!=f&&!o)return!1;for(var m=d;m--;){var y=l[m];if(!(o?y in t:IF.call(t,y)))return!1}var g=s.get(e),v=s.get(t);if(g&&v)return g==t&&v==e;var _=!0;s.set(e,t),s.set(t,e);for(var k=o;++m<d;){y=l[m];var x=e[y],M=t[y];if(a)var B=o?a(M,x,y,t,e,s):a(x,M,y,e,t,s);if(!(B===void 0?x===M||r(x,M,n,a,s):B)){_=!1;break}k||(k=y=="constructor")}if(_&&!k){var C=e.constructor,V=t.constructor;C!=V&&"constructor"in e&&"constructor"in t&&!(typeof C=="function"&&C instanceof C&&typeof V=="function"&&V instanceof V)&&(_=!1)}return s.delete(e),s.delete(t),_}var NF=AF,zF=os,LF=ca,PF=zF(LF,"DataView"),FF=PF,RF=os,HF=ca,WF=RF(HF,"Promise"),YF=WF,jF=os,UF=ca,qF=jF(UF,"Set"),GF=qF,KF=os,ZF=ca,XF=KF(ZF,"WeakMap"),JF=XF,rf=FF,sf=qh,of=YF,lf=GF,cf=JF,y5=da,po=Wy,b5="[object Map]",QF="[object Object]",v5="[object Promise]",_5="[object Set]",w5="[object WeakMap]",k5="[object DataView]",eR=po(rf),tR=po(sf),nR=po(of),iR=po(lf),aR=po(cf),ls=y5;(rf&&ls(new rf(new ArrayBuffer(1)))!=k5||sf&&ls(new sf)!=b5||of&&ls(of.resolve())!=v5||lf&&ls(new lf)!=_5||cf&&ls(new cf)!=w5)&&(ls=function(e){var t=y5(e),n=t==QF?e.constructor:void 0,a=n?po(n):"";if(a)switch(a){case eR:return k5;case tR:return b5;case nR:return v5;case iR:return _5;case aR:return w5}return t});var rR=ls,df=Qh,sR=s5,oR=QL,lR=NF,C5=rR,x5=Yi,S5=fo,cR=tf,dR=1,B5="[object Arguments]",M5="[object Array]",Bu="[object Object]",uR=Object.prototype,E5=uR.hasOwnProperty;function hR(e,t,n,a,r,s){var o=x5(e),l=x5(t),d=o?M5:C5(e),h=l?M5:C5(t);d=d==B5?Bu:d,h=h==B5?Bu:h;var f=d==Bu,m=h==Bu,y=d==h;if(y&&S5(e)){if(!S5(t))return!1;o=!0,f=!1}if(y&&!f)return s||(s=new df),o||cR(e)?sR(e,t,n,a,r,s):oR(e,t,d,n,a,r,s);if(!(n&dR)){var g=f&&E5.call(e,"__wrapped__"),v=m&&E5.call(t,"__wrapped__");if(g||v){var _=g?e.value():e,k=v?t.value():t;return s||(s=new df),r(_,k,n,a,s)}}return y?(s||(s=new df),lR(e,t,n,a,r,s)):!1}var fR=hR,pR=fR,O5=ji;function D5(e,t,n,a,r){return e===t?!0:e==null||t==null||!O5(e)&&!O5(t)?e!==e&&t!==t:pR(e,t,n,a,D5,r)}var V5=D5,mR=Qh,gR=V5,yR=1,bR=2;function vR(e,t,n,a){var r=n.length,s=r,o=!a;if(e==null)return!s;for(e=Object(e);r--;){var l=n[r];if(o&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++r<s;){l=n[r];var d=l[0],h=e[d],f=l[1];if(o&&l[2]){if(h===void 0&&!(d in e))return!1}else{var m=new mR;if(a)var y=a(h,f,d,e,t,m);if(!(y===void 0?gR(f,h,yR|bR,a,m):y))return!1}}return!0}var _R=vR,wR=Da;function kR(e){return e===e&&!wR(e)}var $5=kR,CR=$5,xR=af;function SR(e){for(var t=xR(e),n=t.length;n--;){var a=t[n],r=e[a];t[n]=[a,r,CR(r)]}return t}var BR=SR;function MR(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var T5=MR,ER=_R,OR=BR,DR=T5;function VR(e){var t=OR(e);return t.length==1&&t[0][2]?DR(t[0][0],t[0][1]):function(n){return n===e||ER(n,e,t)}}var $R=VR,TR=Xy,IR=xu;function AR(e,t){t=TR(t,e);for(var n=0,a=t.length;e!=null&&n<a;)e=e[IR(t[n++])];return n&&n==a?e:void 0}var I5=AR,NR=I5;function zR(e,t,n){var a=e==null?void 0:NR(e,t);return a===void 0?n:a}var cs=zR;function LR(e,t){return e!=null&&t in Object(e)}var PR=LR,FR=PR,RR=e5;function HR(e,t){return e!=null&&RR(e,t,FR)}var WR=HR,YR=V5,jR=cs,UR=WR,qR=jh,GR=$5,KR=T5,ZR=xu,XR=1,JR=2;function QR(e,t){return qR(e)&&GR(t)?KR(ZR(e),t):function(n){var a=jR(n,e);return a===void 0&&a===t?UR(n,e):YR(t,a,XR|JR)}}var eH=QR;function tH(e){return e}var uf=tH;function nH(e){return function(t){return t==null?void 0:t[e]}}var iH=nH,aH=I5;function rH(e){return function(t){return aH(t,e)}}var sH=rH,oH=iH,lH=sH,cH=jh,dH=xu;function uH(e){return cH(e)?oH(dH(e)):lH(e)}var hH=uH,fH=$R,pH=eH,mH=uf,gH=Yi,yH=hH;function bH(e){return typeof e=="function"?e:e==null?mH:typeof e=="object"?gH(e)?pH(e[0],e[1]):fH(e):yH(e)}var A5=bH;function vH(e){return function(t,n,a){for(var r=-1,s=Object(t),o=a(t),l=o.length;l--;){var d=o[e?l:++r];if(n(s[d],d,s)===!1)break}return t}}var _H=vH,wH=_H,kH=wH(),N5=kH,CH=N5,xH=af;function SH(e,t){return e&&CH(e,t,xH)}var z5=SH,BH=sc;function MH(e,t){return function(n,a){if(n==null)return n;if(!BH(n))return e(n,a);for(var r=n.length,s=t?r:-1,o=Object(n);(t?s--:++s<r)&&a(o[s],s,o)!==!1;);return n}}var EH=MH,OH=z5,DH=EH,VH=DH(OH),$H=VH,TH=$H;function IH(e,t){var n;return TH(e,function(a,r,s){return n=t(a,r,s),!n}),!!n}var AH=IH,NH=lo,zH=sc,LH=Xh,PH=Da;function FH(e,t,n){if(!PH(n))return!1;var a=typeof t;return(a=="number"?zH(n)&&LH(t,n.length):a=="string"&&t in n)?NH(n[t],e):!1}var hf=FH,RH=r5,HH=A5,WH=AH,YH=Yi,jH=hf;function UH(e,t,n){var a=YH(e)?RH:WH;return n&&jH(e,t,n)&&(t=void 0),a(e,HH(t))}var qH=UH,GH=da,KH=ji,ZH="[object Boolean]";function XH(e){return e===!0||e===!1||KH(e)&&GH(e)==ZH}var JH=XH,QH=da,eW=ji,tW="[object Number]";function nW(e){return typeof e=="number"||eW(e)&&QH(e)==tW}var Ui=nW,iW=os,aW=function(){try{var e=iW(Object,"defineProperty");return e({},"",{}),e}catch{}}(),L5=aW,P5=L5;function rW(e,t,n){t=="__proto__"&&P5?P5(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Mu=rW,sW=Mu,oW=lo,lW=Object.prototype,cW=lW.hasOwnProperty;function dW(e,t,n){var a=e[t];(!(cW.call(e,t)&&oW(a,n))||n===void 0&&!(t in e))&&sW(e,t,n)}var uW=dW,hW=Mu,fW=z5,pW=A5;function mW(e,t){var n={};return t=pW(t),fW(e,function(a,r,s){hW(n,r,t(a,r,s))}),n}var gW=mW;function yW(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var F5=yW,bW=F5,R5=Math.max;function vW(e,t,n){return t=R5(t===void 0?e.length-1:t,0),function(){for(var a=arguments,r=-1,s=R5(a.length-t,0),o=Array(s);++r<s;)o[r]=a[t+r];r=-1;for(var l=Array(t+1);++r<t;)l[r]=a[r];return l[t]=n(o),bW(e,this,l)}}var _W=vW;function wW(e){return function(){return e}}var kW=wW,CW=kW,H5=L5,xW=uf,SW=H5?function(e,t){return H5(e,"toString",{configurable:!0,enumerable:!1,value:CW(t),writable:!0})}:xW,BW=SW,MW=800,EW=16,OW=Date.now;function DW(e){var t=0,n=0;return function(){var a=OW(),r=EW-(a-n);if(n=a,r>0){if(++t>=MW)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var VW=DW,$W=BW,TW=VW,IW=TW($W),AW=IW,NW=uf,zW=_W,LW=AW;function PW(e,t){return LW(zW(e,t,NW),e+"")}var ff=PW;function FW(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var RW=FW,HW=Da,WW=nf,YW=RW,jW=Object.prototype,UW=jW.hasOwnProperty;function qW(e){if(!HW(e))return YW(e);var t=WW(e),n=[];for(var a in e)a=="constructor"&&(t||!UW.call(e,a))||n.push(a);return n}var GW=qW,KW=p5,ZW=GW,XW=sc;function JW(e){return XW(e)?KW(e,!0):ZW(e)}var pf=JW,QW=ff,eY=lo,tY=hf,nY=pf,W5=Object.prototype,iY=W5.hasOwnProperty,aY=QW(function(e,t){e=Object(e);var n=-1,a=t.length,r=a>2?t[2]:void 0;for(r&&tY(t[0],t[1],r)&&(a=1);++n<a;)for(var s=t[n],o=nY(s),l=-1,d=o.length;++l<d;){var h=o[l],f=e[h];(f===void 0||eY(f,W5[h])&&!iY.call(e,h))&&(e[h]=s[h])}return e}),Y5=aY,rY=Mu,sY=lo;function oY(e,t,n){(n!==void 0&&!sY(e[t],n)||n===void 0&&!(t in e))&&rY(e,t,n)}var j5=oY,Eu={},lY={get exports(){return Eu},set exports(e){Eu=e}};(function(e,t){var n=ca,a=t&&!t.nodeType&&t,r=a&&!0&&e&&!e.nodeType&&e,s=r&&r.exports===a,o=s?n.Buffer:void 0,l=o?o.allocUnsafe:void 0;function d(h,f){if(f)return h.slice();var m=h.length,y=l?l(m):new h.constructor(m);return h.copy(y),y}e.exports=d})(lY,Eu);var U5=o5;function cY(e){var t=new e.constructor(e.byteLength);return new U5(t).set(new U5(e)),t}var dY=cY,uY=dY;function hY(e,t){var n=t?uY(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var fY=hY;function pY(e,t){var n=-1,a=e.length;for(t||(t=Array(a));++n<a;)t[n]=e[n];return t}var mY=pY,gY=Da,q5=Object.create,yY=function(){function e(){}return function(t){if(!gY(t))return{};if(q5)return q5(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),bY=yY,vY=m5,_Y=vY(Object.getPrototypeOf,Object),G5=_Y,wY=bY,kY=G5,CY=nf;function xY(e){return typeof e.constructor=="function"&&!CY(e)?wY(kY(e)):{}}var SY=xY,BY=sc,MY=ji;function EY(e){return MY(e)&&BY(e)}var OY=EY,DY=da,VY=G5,$Y=ji,TY="[object Object]",IY=Function.prototype,AY=Object.prototype,K5=IY.toString,NY=AY.hasOwnProperty,zY=K5.call(Object);function LY(e){if(!$Y(e)||DY(e)!=TY)return!1;var t=VY(e);if(t===null)return!0;var n=NY.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&K5.call(n)==zY}var PY=LY;function FY(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Z5=FY,RY=uW,HY=Mu;function WY(e,t,n,a){var r=!n;n||(n={});for(var s=-1,o=t.length;++s<o;){var l=t[s],d=a?a(n[l],e[l],l,n,e):void 0;d===void 0&&(d=e[l]),r?HY(n,l,d):RY(n,l,d)}return n}var YY=WY,jY=YY,UY=pf;function qY(e){return jY(e,UY(e))}var GY=qY,X5=j5,KY=Eu,ZY=fY,XY=mY,JY=SY,J5=Zh,Q5=Yi,QY=OY,ej=fo,tj=ss,nj=Da,ij=PY,aj=tf,eb=Z5,rj=GY;function sj(e,t,n,a,r,s,o){var l=eb(e,n),d=eb(t,n),h=o.get(d);if(h){X5(e,n,h);return}var f=s?s(l,d,n+"",e,t,o):void 0,m=f===void 0;if(m){var y=Q5(d),g=!y&&ej(d),v=!y&&!g&&aj(d);f=d,y||g||v?Q5(l)?f=l:QY(l)?f=XY(l):g?(m=!1,f=KY(d,!0)):v?(m=!1,f=ZY(d,!0)):f=[]:ij(d)||J5(d)?(f=l,J5(l)?f=rj(l):(!nj(l)||tj(l))&&(f=JY(d))):m=!1}m&&(o.set(d,f),r(f,d,a,s,o),o.delete(d)),X5(e,n,f)}var oj=sj,lj=Qh,cj=j5,dj=N5,uj=oj,hj=Da,fj=pf,pj=Z5;function tb(e,t,n,a,r){e!==t&&dj(t,function(s,o){if(r||(r=new lj),hj(s))uj(e,t,o,n,tb,a,r);else{var l=a?a(pj(e,o),s,o+"",e,t,r):void 0;l===void 0&&(l=s),cj(e,o,l)}},fj)}var nb=tb,mj=nb,ib=Da;function ab(e,t,n,a,r,s){return ib(e)&&ib(t)&&(s.set(t,e),mj(e,t,void 0,ab,s),s.delete(t)),e}var gj=ab,yj=ff,bj=hf;function vj(e){return yj(function(t,n){var a=-1,r=n.length,s=r>1?n[r-1]:void 0,o=r>2?n[2]:void 0;for(s=e.length>3&&typeof s=="function"?(r--,s):void 0,o&&bj(n[0],n[1],o)&&(s=r<3?void 0:s,r=1),t=Object(t);++a<r;){var l=n[a];l&&e(t,l,a,s)}return t})}var _j=vj,wj=nb,kj=_j,Cj=kj(function(e,t,n,a){wj(e,t,n,a)}),xj=Cj,Sj=F5,Bj=ff,Mj=gj,Ej=xj,Oj=Bj(function(e){return e.push(void 0,Mj),Sj(Ej,void 0,e)}),oc=Oj;function Dj(e){return e&&e.length?e[0]:void 0}var rb=Dj;function Vj(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var mo=Vj;const $j=e=>Object.prototype.toString.call(e).slice(8,-1),go=e=>Lz(e)&&!isNaN(e.getTime()),Va=e=>$j(e)==="Object",sb=t5,ob=(e,t)=>qH(t,n=>t5(e,n)),St=(e,t,n="0")=>{for(e=e!=null?String(e):"",t=t||2;e.length<t;)e=`${n}${e}`;return e},ki=e=>Array.isArray(e),$a=e=>ki(e)&&e.length>0,Ou=e=>e==null?null:document&&ua(e)?document.querySelector(e):e.$el??e,gr=(e,t,n,a=void 0)=>{e.removeEventListener(t,n,a)},yr=(e,t,n,a=void 0)=>(e.addEventListener(t,n,a),()=>gr(e,t,n,a)),Du=(e,t)=>!!e&&!!t&&(e===t||e.contains(t)),Vu=(e,t)=>{(e.key===" "||e.key==="Enter")&&(t(e),e.preventDefault())},lb=(e,...t)=>{const n={};let a;for(a in e)t.includes(a)||(n[a]=e[a]);return n},cb=(e,t)=>{const n={};return t.forEach(a=>{a in e&&(n[a]=e[a])}),n};function Tj(e,t,n){return Math.min(Math.max(e,t),n)}var $u={},Ij={get exports(){return $u},set exports(e){$u=e}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(a){if(a===null||a===!0||a===!1)return NaN;var r=Number(a);return isNaN(r)?r:r<0?Math.ceil(r):Math.floor(r)}e.exports=t.default})(Ij,$u);const Aj=Ny($u);var Tu={},Nj={get exports(){return Tu},set exports(e){Tu=e}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(a){var r=new Date(Date.UTC(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds()));return r.setUTCFullYear(a.getFullYear()),a.getTime()-r.getTime()}e.exports=t.default})(Nj,Tu);const db=Ny(Tu);function zj(e,t){var n=Rj(t);return n.formatToParts?Pj(n,e):Fj(n,e)}var Lj={year:0,month:1,day:2,hour:3,minute:4,second:5};function Pj(e,t){try{for(var n=e.formatToParts(t),a=[],r=0;r<n.length;r++){var s=Lj[n[r].type];s>=0&&(a[s]=parseInt(n[r].value,10))}return a}catch(o){if(o instanceof RangeError)return[NaN];throw o}}function Fj(e,t){var n=e.format(t).replace(/\u200E/g,""),a=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[a[3],a[1],a[2],a[4],a[5],a[6]]}var mf={};function Rj(e){if(!mf[e]){var t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),n=t==="06/25/2014, 00:00:00"||t==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";mf[e]=n?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return mf[e]}function ub(e,t,n,a,r,s,o){var l=new Date(0);return l.setUTCFullYear(e,t,n),l.setUTCHours(a,r,s,o),l}var hb=36e5,Hj=6e4,gf={timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function Wj(e,t,n){var a,r;if(!e||(a=gf.timezoneZ.exec(e),a))return 0;var s;if(a=gf.timezoneHH.exec(e),a)return s=parseInt(a[1],10),fb(s)?-(s*hb):NaN;if(a=gf.timezoneHHMM.exec(e),a){s=parseInt(a[1],10);var o=parseInt(a[2],10);return fb(s,o)?(r=Math.abs(s)*hb+o*Hj,s>0?-r:r):NaN}if(Uj(e)){t=new Date(t||Date.now());var l=Yj(t),d=yf(l,e),h=jj(t,d,e);return-h}return NaN}function Yj(e){return ub(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function yf(e,t){var n=zj(e,t),a=ub(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),r=e.getTime(),s=r%1e3;return r-=s>=0?s:1e3+s,a-r}function jj(e,t,n){var a=e.getTime(),r=a-t,s=yf(new Date(r),n);if(t===s)return t;r-=s-t;var o=yf(new Date(r),n);return s===o?s:Math.max(s,o)}function fb(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}var pb={};function Uj(e){if(pb[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),pb[e]=!0,!0}catch{return!1}}var qj=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/;const Gj=qj;var bf=36e5,mb=6e4,Kj=2,zn={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:Gj};function Zj(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);var n=t||{},a=n.additionalDigits==null?Kj:Aj(n.additionalDigits);if(a!==2&&a!==1&&a!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var r=Xj(e),s=Jj(r.date,a),o=s.year,l=s.restDateString,d=Qj(l,o);if(isNaN(d))return new Date(NaN);if(d){var h=d.getTime(),f=0,m;if(r.time&&(f=eU(r.time),isNaN(f)))return new Date(NaN);if(r.timeZone||n.timeZone){if(m=Wj(r.timeZone||n.timeZone,new Date(h+f)),isNaN(m))return new Date(NaN)}else m=db(new Date(h+f)),m=db(new Date(h+f+m));return new Date(h+f+m)}else return new Date(NaN)}function Xj(e){var t={},n=zn.dateTimePattern.exec(e),a;if(n?(t.date=n[1],a=n[3]):(n=zn.datePattern.exec(e),n?(t.date=n[1],a=n[2]):(t.date=null,a=e)),a){var r=zn.timeZone.exec(a);r?(t.time=a.replace(r[1],""),t.timeZone=r[1].trim()):t.time=a}return t}function Jj(e,t){var n=zn.YYY[t],a=zn.YYYYY[t],r;if(r=zn.YYYY.exec(e)||a.exec(e),r){var s=r[1];return{year:parseInt(s,10),restDateString:e.slice(s.length)}}if(r=zn.YY.exec(e)||n.exec(e),r){var o=r[1];return{year:parseInt(o,10)*100,restDateString:e.slice(o.length)}}return{year:null}}function Qj(e,t){if(t===null)return null;var n,a,r,s;if(e.length===0)return a=new Date(0),a.setUTCFullYear(t),a;if(n=zn.MM.exec(e),n)return a=new Date(0),r=parseInt(n[1],10)-1,bb(t,r)?(a.setUTCFullYear(t,r),a):new Date(NaN);if(n=zn.DDD.exec(e),n){a=new Date(0);var o=parseInt(n[1],10);return iU(t,o)?(a.setUTCFullYear(t,0,o),a):new Date(NaN)}if(n=zn.MMDD.exec(e),n){a=new Date(0),r=parseInt(n[1],10)-1;var l=parseInt(n[2],10);return bb(t,r,l)?(a.setUTCFullYear(t,r,l),a):new Date(NaN)}if(n=zn.Www.exec(e),n)return s=parseInt(n[1],10)-1,vb(t,s)?gb(t,s):new Date(NaN);if(n=zn.WwwD.exec(e),n){s=parseInt(n[1],10)-1;var d=parseInt(n[2],10)-1;return vb(t,s,d)?gb(t,s,d):new Date(NaN)}return null}function eU(e){var t,n,a;if(t=zn.HH.exec(e),t)return n=parseFloat(t[1].replace(",",".")),vf(n)?n%24*bf:NaN;if(t=zn.HHMM.exec(e),t)return n=parseInt(t[1],10),a=parseFloat(t[2].replace(",",".")),vf(n,a)?n%24*bf+a*mb:NaN;if(t=zn.HHMMSS.exec(e),t){n=parseInt(t[1],10),a=parseInt(t[2],10);var r=parseFloat(t[3].replace(",","."));return vf(n,a,r)?n%24*bf+a*mb+r*1e3:NaN}return null}function gb(e,t,n){t=t||0,n=n||0;var a=new Date(0);a.setUTCFullYear(e,0,4);var r=a.getUTCDay()||7,s=t*7+n+1-r;return a.setUTCDate(a.getUTCDate()+s),a}var tU=[31,28,31,30,31,30,31,31,30,31,30,31],nU=[31,29,31,30,31,30,31,31,30,31,30,31];function yb(e){return e%400===0||e%4===0&&e%100!==0}function bb(e,t,n){if(t<0||t>11)return!1;if(n!=null){if(n<1)return!1;var a=yb(e);if(a&&n>nU[t]||!a&&n>tU[t])return!1}return!0}function iU(e,t){if(t<1)return!1;var n=yb(e);return!(n&&t>366||!n&&t>365)}function vb(e,t,n){return!(t<0||t>52||n!=null&&(n<0||n>6))}function vf(e,t,n){return!(e!=null&&(e<0||e>=25)||t!=null&&(t<0||t>=60)||n!=null&&(n<0||n>=60))}function On(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Iu(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Iu=function(n){return typeof n}:Iu=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Iu(e)}function Ta(e){On(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Iu(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function yo(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}var aU={};function _f(){return aU}function ds(e,t){var n,a,r,s,o,l,d,h;On(1,arguments);var f=_f(),m=yo((n=(a=(r=(s=t==null?void 0:t.weekStartsOn)!==null&&s!==void 0?s:t==null||(o=t.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:f.weekStartsOn)!==null&&a!==void 0?a:(d=f.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&n!==void 0?n:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var y=Ta(e),g=y.getDay(),v=(g<m?7:0)+g-m;return y.setDate(y.getDate()-v),y.setHours(0,0,0,0),y}function _b(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var rU=6048e5;function sU(e,t,n){On(2,arguments);var a=ds(e,n),r=ds(t,n),s=a.getTime()-_b(a),o=r.getTime()-_b(r);return Math.round((s-o)/rU)}function oU(e){On(1,arguments);var t=Ta(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}function lU(e){On(1,arguments);var t=Ta(e);return t.setDate(1),t.setHours(0,0,0,0),t}function cU(e,t){return On(1,arguments),sU(oU(e),lU(e),t)+1}function dU(e,t){var n,a,r,s,o,l,d,h;On(1,arguments);var f=Ta(e),m=f.getFullYear(),y=_f(),g=yo((n=(a=(r=(s=t==null?void 0:t.firstWeekContainsDate)!==null&&s!==void 0?s:t==null||(o=t.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:y.firstWeekContainsDate)!==null&&a!==void 0?a:(d=y.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(g>=1&&g<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var v=new Date(0);v.setFullYear(m+1,0,g),v.setHours(0,0,0,0);var _=ds(v,t),k=new Date(0);k.setFullYear(m,0,g),k.setHours(0,0,0,0);var x=ds(k,t);return f.getTime()>=_.getTime()?m+1:f.getTime()>=x.getTime()?m:m-1}function uU(e,t){var n,a,r,s,o,l,d,h;On(1,arguments);var f=_f(),m=yo((n=(a=(r=(s=t==null?void 0:t.firstWeekContainsDate)!==null&&s!==void 0?s:t==null||(o=t.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:f.firstWeekContainsDate)!==null&&a!==void 0?a:(d=f.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&n!==void 0?n:1),y=dU(e,t),g=new Date(0);g.setFullYear(y,0,m),g.setHours(0,0,0,0);var v=ds(g,t);return v}var hU=6048e5;function fU(e,t){On(1,arguments);var n=Ta(e),a=ds(n,t).getTime()-uU(n,t).getTime();return Math.round(a/hU)+1}function Au(e){return On(1,arguments),ds(e,{weekStartsOn:1})}function pU(e){On(1,arguments);var t=Ta(e),n=t.getFullYear(),a=new Date(0);a.setFullYear(n+1,0,4),a.setHours(0,0,0,0);var r=Au(a),s=new Date(0);s.setFullYear(n,0,4),s.setHours(0,0,0,0);var o=Au(s);return t.getTime()>=r.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function mU(e){On(1,arguments);var t=pU(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var a=Au(n);return a}var gU=6048e5;function yU(e){On(1,arguments);var t=Ta(e),n=Au(t).getTime()-mU(t).getTime();return Math.round(n/gU)+1}function Ln(e,t){On(2,arguments);var n=Ta(e),a=yo(t);return isNaN(a)?new Date(NaN):(a&&n.setDate(n.getDate()+a),n)}function Nu(e,t){On(2,arguments);var n=Ta(e),a=yo(t);if(isNaN(a))return new Date(NaN);if(!a)return n;var r=n.getDate(),s=new Date(n.getTime());s.setMonth(n.getMonth()+a+1,0);var o=s.getDate();return r>=o?s:(n.setFullYear(s.getFullYear(),s.getMonth(),r),n)}function wb(e,t){On(2,arguments);var n=yo(t);return Nu(e,n*12)}const bU={daily:["year","month","day"],weekly:["year","month","week"],monthly:["year","month"]};function vU({monthComps:e,prevMonthComps:t,nextMonthComps:n},a){const r=[],{firstDayOfWeek:s,firstWeekday:o,isoWeeknumbers:l,weeknumbers:d,numDays:h,numWeeks:f}=e,m=o+(o<s?Dn:0)-s;let y=!0,g=!1,v=!1,_=0;const k=new Intl.DateTimeFormat(a.id,{weekday:"long",year:"numeric",month:"short",day:"numeric"});let x=t.numDays-m+1,M=t.numDays-x+1,B=Math.floor((x-1)/Dn+1),C=1,V=t.numWeeks,$=1,N=t.month,I=t.year;const F=new Date,q=F.getDate(),Q=F.getMonth()+1,P=F.getFullYear();for(let Z=1;Z<=qU;Z++){for(let se=1,U=s;se<=Dn;se++,U+=U===Dn?1-Dn:1){y&&U===o&&(x=1,M=e.numDays,B=Math.floor((x-1)/Dn+1),C=Math.floor((h-x)/Dn+1),V=1,$=f,N=e.month,I=e.year,y=!1,g=!0);const me=a.getDateFromParams(I,N,x,0,0,0,0),be=a.getDateFromParams(I,N,x,12,0,0,0),G=a.getDateFromParams(I,N,x,23,59,59,999),ye=me,Y=`${St(I,4)}-${St(N,2)}-${St(x,2)}`,ee=se,ue=Dn-se,de=d[Z-1],_e=l[Z-1],ge=x===q&&N===Q&&I===P,De=g&&x===1,Ye=g&&x===h,Ne=Z===1,ut=Z===f,_t=se===1,ft=se===Dn,it=Pb(I,N,x);r.push({locale:a,id:Y,position:++_,label:x.toString(),ariaLabel:k.format(new Date(I,N-1,x)),day:x,dayFromEnd:M,weekday:U,weekdayPosition:ee,weekdayPositionFromEnd:ue,weekdayOrdinal:B,weekdayOrdinalFromEnd:C,week:V,weekFromEnd:$,weekPosition:Z,weeknumber:de,isoWeeknumber:_e,month:N,year:I,date:ye,startDate:me,endDate:G,noonDate:be,dayIndex:it,isToday:ge,isFirstDay:De,isLastDay:Ye,isDisabled:!g,isFocusable:!g,isFocused:!1,inMonth:g,inPrevMonth:y,inNextMonth:v,onTop:Ne,onBottom:ut,onLeft:_t,onRight:ft,classes:[`id-${Y}`,`day-${x}`,`day-from-end-${M}`,`weekday-${U}`,`weekday-position-${ee}`,`weekday-ordinal-${B}`,`weekday-ordinal-from-end-${C}`,`week-${V}`,`week-from-end-${$}`,{"is-today":ge,"is-first-day":De,"is-last-day":Ye,"in-month":g,"in-prev-month":y,"in-next-month":v,"on-top":Ne,"on-bottom":ut,"on-left":_t,"on-right":ft}]}),g&&Ye?(g=!1,v=!0,x=1,M=h,B=1,C=Math.floor((h-x)/Dn+1),V=1,$=n.numWeeks,N=n.month,I=n.year):(x++,M--,B=Math.floor((x-1)/Dn+1),C=Math.floor((h-x)/Dn+1))}V++,$--}return r}function _U(e,t,n,a){const r=e.reduce((s,o,l)=>{const d=Math.floor(l/7);let h=s[d];return h||(h={id:`week-${d+1}`,title:"",week:o.week,weekPosition:o.weekPosition,weeknumber:o.weeknumber,isoWeeknumber:o.isoWeeknumber,weeknumberDisplay:t?o.weeknumber:n?o.isoWeeknumber:void 0,days:[]},s[d]=h),h.days.push(o),s},Array(e.length/Dn));return r.forEach(s=>{const o=s.days[0],l=s.days[s.days.length-1];o.month===l.month?s.title=`${a.formatDate(o.date,"MMMM YYYY")}`:o.year===l.year?s.title=`${a.formatDate(o.date,"MMM")} - ${a.formatDate(l.date,"MMM YYYY")}`:s.title=`${a.formatDate(o.date,"MMM YYYY")} - ${a.formatDate(l.date,"MMM YYYY")}`}),r}function wU(e,t){return e.days.map(n=>({label:t.formatDate(n.date,t.masks.weekdays),weekday:n.weekday}))}function kU(e,t){return`${t}.${St(e,2)}`}function kb(e,t,n){return cb(n.getDateParts(n.toDate(e)),bU[t])}function Cb({day:e,week:t,month:n,year:a},r,s,o){if(s==="daily"&&e){const l=new Date(a,n-1,e),d=Ln(l,r);return{day:d.getDate(),month:d.getMonth()+1,year:d.getFullYear()}}else if(s==="weekly"&&t){const d=o.getMonthParts(n,a).firstDayOfMonth,h=Ln(d,(t-1+r)*7),f=o.getDateParts(h);return{week:f.week,month:f.month,year:f.year}}else{const l=new Date(a,n-1,1),d=Nu(l,r);return{month:d.getMonth()+1,year:d.getFullYear()}}}function ha(e){return e!=null&&e.month!=null&&e.year!=null}function wf(e,t){return!ha(e)||!ha(t)?!1:(e=e,t=t,e.year!==t.year?e.year<t.year:e.month&&t.month&&e.month!==t.month?e.month<t.month:e.week&&t.week&&e.week!==t.week?e.week<t.week:e.day&&t.day&&e.day!==t.day?e.day<t.day:!1)}function zu(e,t){return!ha(e)||!ha(t)?!1:(e=e,t=t,e.year!==t.year?e.year>t.year:e.month&&t.month&&e.month!==t.month?e.month>t.month:e.week&&t.week&&e.week!==t.week?e.week>t.week:e.day&&t.day&&e.day!==t.day?e.day>t.day:!1)}function CU(e,t,n){return(e||!1)&&!wf(e,t)&&!zu(e,n)}function xU(e,t){return!e&&t||e&&!t?!1:!e&&!t?!0:(e=e,t=t,e.year===t.year&&e.month===t.month&&e.week===t.week&&e.day===t.day)}function SU(e,t,n,a){if(!ha(e)||!ha(t))return[];const r=[];for(;!zu(e,t);)r.push(e),e=Cb(e,1,n,a);return r}function xb(e){const{day:t,week:n,month:a,year:r}=e;let s=`${r}-${St(a,2)}`;return n&&(s=`${s}-w${n}`),t&&(s=`${s}-${St(t,2)}`),s}function BU(e,t){const{month:n,year:a,showWeeknumbers:r,showIsoWeeknumbers:s}=e,o=new Date(a,n-1,15),l=t.getMonthParts(n,a),d=t.getPrevMonthParts(n,a),h=t.getNextMonthParts(n,a),f=vU({monthComps:l,prevMonthComps:d,nextMonthComps:h},t),m=_U(f,r,s,t),y=wU(m[0],t);return{id:xb(e),month:n,year:a,monthTitle:t.formatDate(o,t.masks.title),shortMonthLabel:t.formatDate(o,"MMM"),monthLabel:t.formatDate(o,"MMMM"),shortYearLabel:a.toString().substring(2),yearLabel:a.toString(),monthComps:l,prevMonthComps:d,nextMonthComps:h,days:f,weeks:m,weekdays:y}}function MU(e,t){const{day:n,week:a,view:r,trimWeeks:s}=e,o={...t,...e,title:"",viewDays:[],viewWeeks:[]};switch(r){case"daily":{let l=o.days.find(h=>h.inMonth);n?l=o.days.find(h=>h.day===n&&h.inMonth)||l:a&&(l=o.days.find(h=>h.week===a&&h.inMonth));const d=o.weeks[l.week-1];o.viewWeeks=[d],o.viewDays=[l],o.week=l.week,o.weekTitle=d.title,o.day=l.day,o.dayTitle=l.ariaLabel,o.title=o.dayTitle;break}case"weekly":{o.week=a||1;const l=o.weeks[o.week-1];o.viewWeeks=[l],o.viewDays=l.days,o.weekTitle=l.title,o.title=o.weekTitle;break}default:{o.title=o.monthTitle,o.viewWeeks=o.weeks.slice(0,s?o.monthComps.numWeeks:void 0),o.viewDays=o.days;break}}return o}class Sb{constructor(t,n,a){Oe(this,"keys",[]),Oe(this,"store",{}),this.size=t,this.createKey=n,this.createItem=a}get(...t){const n=this.createKey(...t);return this.store[n]}getOrSet(...t){const n=this.createKey(...t);if(this.store[n])return this.store[n];const a=this.createItem(...t);if(this.keys.length>=this.size){const r=this.keys.shift();r!=null&&delete this.store[r]}return this.keys.push(n),this.store[n]=a,a}}class bo{constructor(t,n=new Lu){Oe(this,"order"),Oe(this,"locale"),Oe(this,"start",null),Oe(this,"end",null),Oe(this,"repeat",null);var a;this.locale=n;const{start:r,end:s,span:o,order:l,repeat:d}=t;go(r)&&(this.start=n.getDateParts(r)),go(s)?this.end=n.getDateParts(s):this.start!=null&&o&&(this.end=n.getDateParts(Ln(this.start.date,o-1))),this.order=l??0,d&&(this.repeat=new Pu({from:(a=this.start)==null?void 0:a.date,...d},{locale:this.locale}))}static fromMany(t,n){return(ki(t)?t:[t]).filter(a=>a).map(a=>bo.from(a,n))}static from(t,n){if(t instanceof bo)return t;const a={start:null,end:null};return t!=null&&(ki(t)?(a.start=t[0]??null,a.end=t[1]??null):Va(t)?Object.assign(a,t):(a.start=t,a.end=t)),a.start!=null&&(a.start=new Date(a.start)),a.end!=null&&(a.end=new Date(a.end)),new bo(a,n)}get opts(){const{order:t,locale:n}=this;return{order:t,locale:n}}get hasRepeat(){return!!this.repeat}get isSingleDay(){const{start:t,end:n}=this;return t&&n&&t.year===n.year&&t.month===n.month&&t.day===n.day}get isMultiDay(){return!this.isSingleDay}get daySpan(){return this.start==null||this.end==null?this.hasRepeat?1:1/0:this.end.dayIndex-this.start.dayIndex}startsOnDay(t){var n,a;return((n=this.start)==null?void 0:n.dayIndex)===t.dayIndex||!!((a=this.repeat)!=null&&a.passes(t))}intersectsDay(t){return this.intersectsDayRange(t,t)}intersectsRange(t){var n,a;return this.intersectsDayRange(((n=t.start)==null?void 0:n.dayIndex)??-1/0,((a=t.end)==null?void 0:a.dayIndex)??1/0)}intersectsDayRange(t,n){return!(this.start&&this.start.dayIndex>n||this.end&&this.end.dayIndex<t)}}class EU{constructor(){Oe(this,"records",{})}render(t,n,a){var r,s,o,l;let d=null;const h=a[0].dayIndex,f=a[a.length-1].dayIndex;return n.hasRepeat?a.forEach(m=>{var y,g;if(n.startsOnDay(m)){const v=n.daySpan<1/0?n.daySpan:1;d={startDay:m.dayIndex,startTime:((y=n.start)==null?void 0:y.time)??0,endDay:m.dayIndex+v-1,endTime:((g=n.end)==null?void 0:g.time)??Fu},this.getRangeRecords(t).push(d)}}):n.intersectsDayRange(h,f)&&(d={startDay:((r=n.start)==null?void 0:r.dayIndex)??-1/0,startTime:((s=n.start)==null?void 0:s.time)??-1/0,endDay:((o=n.end)==null?void 0:o.dayIndex)??1/0,endTime:((l=n.end)==null?void 0:l.time)??1/0},this.getRangeRecords(t).push(d)),d}getRangeRecords(t){let n=this.records[t.key];return n||(n={ranges:[],data:t},this.records[t.key]=n),n.ranges}getCell(t,n){return this.getCells(n).find(s=>s.data.key===t)}cellExists(t,n){const a=this.records[t];return a==null?!1:a.ranges.some(r=>r.startDay<=n&&r.endDay>=n)}getCells(t){const n=Object.values(this.records),a=[],{dayIndex:r}=t;return n.forEach(({data:s,ranges:o})=>{o.filter(l=>l.startDay<=r&&l.endDay>=r).forEach(l=>{const d=r===l.startDay,h=r===l.endDay,f=d?l.startTime:0,m=new Date(t.startDate.getTime()+f),y=h?l.endTime:Fu,g=new Date(t.endDate.getTime()+y),v=f===0&&y===Fu,_=s.order||0;a.push({...l,data:s,onStart:d,onEnd:h,startTime:f,startDate:m,endTime:y,endDate:g,allDay:v,order:_})})}),a.sort((s,o)=>s.order-o.order),a}}const Ia={ar:{dow:7,L:"D/‏M/‏YYYY"},bg:{dow:2,L:"D.MM.YYYY"},ca:{dow:2,L:"DD/MM/YYYY"},"zh-CN":{dow:2,L:"YYYY/MM/DD"},"zh-TW":{dow:1,L:"YYYY/MM/DD"},hr:{dow:2,L:"DD.MM.YYYY"},cs:{dow:2,L:"DD.MM.YYYY"},da:{dow:2,L:"DD.MM.YYYY"},nl:{dow:2,L:"DD-MM-YYYY"},"en-US":{dow:1,L:"MM/DD/YYYY"},"en-AU":{dow:2,L:"DD/MM/YYYY"},"en-CA":{dow:1,L:"YYYY-MM-DD"},"en-GB":{dow:2,L:"DD/MM/YYYY"},"en-IE":{dow:2,L:"DD-MM-YYYY"},"en-NZ":{dow:2,L:"DD/MM/YYYY"},"en-ZA":{dow:1,L:"YYYY/MM/DD"},eo:{dow:2,L:"YYYY-MM-DD"},et:{dow:2,L:"DD.MM.YYYY"},fi:{dow:2,L:"DD.MM.YYYY"},fr:{dow:2,L:"DD/MM/YYYY"},"fr-CA":{dow:1,L:"YYYY-MM-DD"},"fr-CH":{dow:2,L:"DD.MM.YYYY"},de:{dow:2,L:"DD.MM.YYYY"},he:{dow:1,L:"DD.MM.YYYY"},id:{dow:2,L:"DD/MM/YYYY"},it:{dow:2,L:"DD/MM/YYYY"},ja:{dow:1,L:"YYYY年M月D日"},ko:{dow:1,L:"YYYY.MM.DD"},lv:{dow:2,L:"DD.MM.YYYY"},lt:{dow:2,L:"DD.MM.YYYY"},mk:{dow:2,L:"D.MM.YYYY"},nb:{dow:2,L:"D. MMMM YYYY"},nn:{dow:2,L:"D. MMMM YYYY"},pl:{dow:2,L:"DD.MM.YYYY"},pt:{dow:2,L:"DD/MM/YYYY"},ro:{dow:2,L:"DD.MM.YYYY"},ru:{dow:2,L:"DD.MM.YYYY"},sk:{dow:2,L:"DD.MM.YYYY"},"es-ES":{dow:2,L:"DD/MM/YYYY"},"es-MX":{dow:2,L:"DD/MM/YYYY"},sv:{dow:2,L:"YYYY-MM-DD"},th:{dow:1,L:"DD/MM/YYYY"},tr:{dow:2,L:"DD.MM.YYYY"},uk:{dow:2,L:"DD.MM.YYYY"},vi:{dow:2,L:"DD/MM/YYYY"}};Ia.en=Ia["en-US"],Ia.es=Ia["es-ES"],Ia.no=Ia.nb,Ia.zh=Ia["zh-CN"];const OU=Object.entries(Ia).reduce((e,[t,{dow:n,L:a}])=>(e[t]={id:t,firstDayOfWeek:n,masks:{L:a}},e),{}),DU={componentPrefix:"V",color:"blue",isDark:!1,navVisibility:"click",titlePosition:"center",transition:"slide-h",touch:{maxSwipeTime:300,minHorizontalSwipeDistance:60,maxVerticalSwipeDistance:80},masks:{title:"MMMM YYYY",weekdays:"W",navMonths:"MMM",hours:"h A",input:["L","YYYY-MM-DD","YYYY/MM/DD"],inputDateTime:["L h:mm A","YYYY-MM-DD h:mm A","YYYY/MM/DD h:mm A"],inputDateTime24hr:["L HH:mm","YYYY-MM-DD HH:mm","YYYY/MM/DD HH:mm"],inputTime:["h:mm A"],inputTime24hr:["HH:mm"],dayPopover:"WWW, MMM D, YYYY",data:["L","YYYY-MM-DD","YYYY/MM/DD"],model:"iso",iso:"YYYY-MM-DDTHH:mm:ss.SSSZ"},locales:OU,datePicker:{updateOnInput:!0,inputDebounce:1e3,popover:{visibility:"hover-focus",placement:"bottom-start",isInteractive:!0}}},kf=i.reactive(DU),VU=i.computed(()=>gW(kf.locales,e=>(e.masks=oc(e.masks,kf.masks),e))),br=e=>typeof window<"u"&&sb(window.__vcalendar__,e)?cs(window.__vcalendar__,e):cs(kf,e),$U=12,TU=5;function IU(e,t){const n=new Intl.DateTimeFormat().resolvedOptions().locale;let a;ua(e)?a=e:sb(e,"id")&&(a=e.id),a=(a||n).toLowerCase();const r=Object.keys(t),s=d=>r.find(h=>h.toLowerCase()===d);a=s(a)||s(a.substring(0,2))||n;const o={...t["en-IE"],...t[a],id:a,monthCacheSize:$U,pageCacheSize:TU};return Va(e)?oc(e,o):o}class Lu{constructor(t=void 0,n){Oe(this,"id"),Oe(this,"daysInWeek"),Oe(this,"firstDayOfWeek"),Oe(this,"masks"),Oe(this,"timezone"),Oe(this,"hourLabels"),Oe(this,"dayNames"),Oe(this,"dayNamesShort"),Oe(this,"dayNamesShorter"),Oe(this,"dayNamesNarrow"),Oe(this,"monthNames"),Oe(this,"monthNamesShort"),Oe(this,"relativeTimeNames"),Oe(this,"amPm",["am","pm"]),Oe(this,"monthCache"),Oe(this,"pageCache");const{id:a,firstDayOfWeek:r,masks:s,monthCacheSize:o,pageCacheSize:l}=IU(t,VU.value);this.monthCache=new Sb(o,nq,iq),this.pageCache=new Sb(l,xb,BU),this.id=a,this.daysInWeek=Dn,this.firstDayOfWeek=Tj(r,1,Dn),this.masks=s,this.timezone=n||void 0,this.hourLabels=this.getHourLabels(),this.dayNames=Bf("long",this.id),this.dayNamesShort=Bf("short",this.id),this.dayNamesShorter=this.dayNamesShort.map(d=>d.substring(0,2)),this.dayNamesNarrow=Bf("narrow",this.id),this.monthNames=Wb("long",this.id),this.monthNamesShort=Wb("short",this.id),this.relativeTimeNames=sq(this.id)}formatDate(t,n){return uq(t,n,this)}parseDate(t,n){return Yb(t,n,this)}toDate(t,n={}){const a=new Date(NaN);let r=a;const{fillDate:s,mask:o,patch:l,rules:d}=n;if(Ui(t)?(n.type="number",r=new Date(+t)):ua(t)?(n.type="string",r=t?Yb(t,o||"iso",this):a):go(t)?(n.type="date",r=new Date(t.getTime())):xf(t)&&(n.type="object",r=this.getDateFromParts(t)),r&&(l||d)){let h=this.getDateParts(r);if(l&&s!=null){const f=this.getDateParts(this.toDate(s));h=this.getDateParts(this.toDate({...f,...cb(h,UU[l])}))}d&&(h=dq(h,d)),r=this.getDateFromParts(h)}return r||a}toDateOrNull(t,n={}){const a=this.toDate(t,n);return isNaN(a.getTime())?null:a}fromDate(t,{type:n,mask:a}={}){switch(n){case"number":return t?t.getTime():NaN;case"string":return t?this.formatDate(t,a||"iso"):"";case"object":return t?this.getDateParts(t):null;default:return t?new Date(t):null}}range(t){return bo.from(t,this)}ranges(t){return bo.fromMany(t,this)}getDateParts(t){return tq(t,this)}getDateFromParts(t){return Rb(t,this.timezone)}getDateFromParams(t,n,a,r,s,o,l){return this.getDateFromParts({year:t,month:n,day:a,hours:r,minutes:s,seconds:o,milliseconds:l})}getPage(t){const n=this.pageCache.getOrSet(t,this);return MU(t,n)}getMonthParts(t,n){const{firstDayOfWeek:a}=this;return this.monthCache.getOrSet(t,n,a)}getThisMonthParts(){const t=new Date;return this.getMonthParts(t.getMonth()+1,t.getFullYear())}getPrevMonthParts(t,n){return t===1?this.getMonthParts(12,n-1):this.getMonthParts(t-1,n)}getNextMonthParts(t,n){return t===12?this.getMonthParts(1,n+1):this.getMonthParts(t+1,n)}getHourLabels(){return rq().map(t=>this.formatDate(t,this.masks.hours))}getDayId(t){return this.formatDate(t,"YYYY-MM-DD")}}var vo=(e=>(e.Any="any",e.All="all",e))(vo||{}),Bb=(e=>(e.Days="days",e.Weeks="weeks",e.Months="months",e.Years="years",e))(Bb||{}),Mb=(e=>(e.Days="days",e.Weekdays="weekdays",e.Weeks="weeks",e.Months="months",e.Years="years",e))(Mb||{}),Eb=(e=>(e.OrdinalWeekdays="ordinalWeekdays",e))(Eb||{});class AU{constructor(t,n,a){Oe(this,"validated",!0),this.type=t,this.interval=n,this.from=a,this.from||(console.error('A valid "from" date is required for date interval rule. This rule will be skipped.'),this.validated=!1)}passes(t){if(!this.validated)return!0;const{date:n}=t;switch(this.type){case"days":return Sf(this.from.date,n)%this.interval===0;case"weeks":return QU(this.from.date,n)%this.interval===0;case"months":return eq(this.from.date,n)%this.interval===0;case"years":return Fb(this.from.date,n)%this.interval===0;default:return!1}}}class _o{constructor(t,n,a,r){Oe(this,"components",[]),this.type=t,this.validator=a,this.getter=r,this.components=this.normalizeComponents(n)}static create(t,n){switch(t){case"days":return new NU(n);case"weekdays":return new zU(n);case"weeks":return new LU(n);case"months":return new PU(n);case"years":return new FU(n)}}normalizeComponents(t){if(this.validator(t))return[t];if(!ki(t))return[];const n=[];return t.forEach(a=>{if(!this.validator(a)){console.error(`Component value ${a} in invalid for "${this.type}" rule. This rule will be skipped.`);return}n.push(a)}),n}passes(t){return this.getter(t).some(r=>this.components.includes(r))}}class NU extends _o{constructor(t){super("days",t,WU,({day:n,dayFromEnd:a})=>[n,-a])}}class zU extends _o{constructor(t){super("weekdays",t,Cf,({weekday:n})=>[n])}}class LU extends _o{constructor(t){super("weeks",t,YU,({week:n,weekFromEnd:a})=>[n,-a])}}class PU extends _o{constructor(t){super("months",t,jU,({month:n})=>[n])}}class FU extends _o{constructor(t){super("years",t,Ui,({year:n})=>[n])}}class RU{constructor(t,n){Oe(this,"components"),this.type=t,this.components=this.normalizeComponents(n)}normalizeArrayConfig(t){const n=[];return t.forEach((a,r)=>{if(Ui(a)){if(r===0)return;if(!Ob(t[0])){console.error(`Ordinal range for "${this.type}" rule is from -5 to -1 or 1 to 5. This rule will be skipped.`);return}if(!Cf(a)){console.error(`Acceptable range for "${this.type}" rule is from 1 to 5. This rule will be skipped`);return}n.push([t[0],a])}else ki(a)&&n.push(...this.normalizeArrayConfig(a))}),n}normalizeComponents(t){const n=[];return t.forEach((a,r)=>{if(Ui(a)){if(r===0)return;if(!Ob(t[0])){console.error(`Ordinal range for "${this.type}" rule is from -5 to -1 or 1 to 5. This rule will be skipped.`);return}if(!Cf(a)){console.error(`Acceptable range for "${this.type}" rule is from 1 to 5. This rule will be skipped`);return}n.push([t[0],a])}else ki(a)&&n.push(...this.normalizeArrayConfig(a))}),n}passes(t){const{weekday:n,weekdayOrdinal:a,weekdayOrdinalFromEnd:r}=t;return this.components.some(([s,o])=>(s===a||s===-r)&&n===o)}}class HU{constructor(t){Oe(this,"type","function"),Oe(this,"validated",!0),this.fn=t,ss(t)||(console.error("The function rule requires a valid function. This rule will be skipped."),this.validated=!1)}passes(t){return this.validated?this.fn(t):!0}}class Pu{constructor(t,n={},a){Oe(this,"validated",!0),Oe(this,"config"),Oe(this,"type",vo.Any),Oe(this,"from"),Oe(this,"until"),Oe(this,"rules",[]),Oe(this,"locale",new Lu),this.parent=a,n.locale&&(this.locale=n.locale),this.config=t,ss(t)?(this.type=vo.All,this.rules=[new HU(t)]):ki(t)?(this.type=vo.Any,this.rules=t.map(r=>new Pu(r,n,this))):Va(t)?(this.type=vo.All,this.from=t.from?this.locale.getDateParts(t.from):a==null?void 0:a.from,this.until=t.until?this.locale.getDateParts(t.until):a==null?void 0:a.until,this.rules=this.getObjectRules(t)):(console.error("Rule group configuration must be an object or an array."),this.validated=!1)}getObjectRules(t){const n=[];if(t.every&&(ua(t.every)&&(t.every=[1,`${t.every}s`]),ki(t.every))){const[a=1,r=Bb.Days]=t.every;n.push(new AU(r,a,this.from))}return Object.values(Mb).forEach(a=>{a in t&&n.push(_o.create(a,t[a]))}),Object.values(Eb).forEach(a=>{a in t&&n.push(new RU(a,t[a]))}),t.on!=null&&(ki(t.on)||(t.on=[t.on]),n.push(new Pu(t.on,{locale:this.locale},this.parent))),n}passes(t){return this.validated?this.from&&t.dayIndex<=this.from.dayIndex||this.until&&t.dayIndex>=this.until.dayIndex?!1:this.type===vo.Any?this.rules.some(n=>n.passes(t)):this.rules.every(n=>n.passes(t)):!0}}function WU(e){return Ui(e)?e>=1&&e<=31:!1}function Cf(e){return Ui(e)?e>=1&&e<=7:!1}function YU(e){return Ui(e)?e>=-6&&e<=-1||e>=1&&e<=6:!1}function jU(e){return Ui(e)?e>=1&&e<=12:!1}function Ob(e){return!(!Ui(e)||e<-5||e>5||e===0)}const UU={dateTime:["year","month","day","hours","minutes","seconds","milliseconds"],date:["year","month","day"],time:["hours","minutes","seconds","milliseconds"]},Dn=7,qU=6,Db=1e3,Vb=Db*60,$b=Vb*60,Fu=$b*24,GU=[31,28,31,30,31,30,31,31,30,31,30,31],KU=["L","iso"],lc={milliseconds:[0,999,3],seconds:[0,59,2],minutes:[0,59,2],hours:[0,23,2]},Tb=/d{1,2}|W{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|Z{1,4}|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,ZU=/\[([^]*?)\]/gm,Ib={D(e){return e.day},DD(e){return St(e.day,2)},d(e){return e.weekday-1},dd(e){return St(e.weekday-1,2)},W(e,t){return t.dayNamesNarrow[e.weekday-1]},WW(e,t){return t.dayNamesShorter[e.weekday-1]},WWW(e,t){return t.dayNamesShort[e.weekday-1]},WWWW(e,t){return t.dayNames[e.weekday-1]},M(e){return e.month},MM(e){return St(e.month,2)},MMM(e,t){return t.monthNamesShort[e.month-1]},MMMM(e,t){return t.monthNames[e.month-1]},YY(e){return String(e.year).substr(2)},YYYY(e){return St(e.year,4)},h(e){return e.hours%12||12},hh(e){return St(e.hours%12||12,2)},H(e){return e.hours},HH(e){return St(e.hours,2)},m(e){return e.minutes},mm(e){return St(e.minutes,2)},s(e){return e.seconds},ss(e){return St(e.seconds,2)},S(e){return Math.round(e.milliseconds/100)},SS(e){return St(Math.round(e.milliseconds/10),2)},SSS(e){return St(e.milliseconds,3)},a(e,t){return e.hours<12?t.amPm[0]:t.amPm[1]},A(e,t){return e.hours<12?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase()},Z(){return"Z"},ZZ(e){const t=e.timezoneOffset;return`${t>0?"-":"+"}${St(Math.floor(Math.abs(t)/60),2)}`},ZZZ(e){const t=e.timezoneOffset;return`${t>0?"-":"+"}${St(Math.floor(Math.abs(t)/60)*100+Math.abs(t)%60,4)}`},ZZZZ(e){const t=e.timezoneOffset;return`${t>0?"-":"+"}${St(Math.floor(Math.abs(t)/60),2)}:${St(Math.abs(t)%60,2)}`}},vr=/\d\d?/,XU=/\d{3}/,JU=/\d{4}/,cc=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Ab=()=>{},Nb=e=>(t,n,a)=>{const r=a[e].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~r&&(t.month=r)},Ot={D:[vr,(e,t)=>{e.day=t}],Do:[new RegExp(vr.source+cc.source),(e,t)=>{e.day=parseInt(t,10)}],d:[vr,Ab],W:[cc,Ab],M:[vr,(e,t)=>{e.month=t-1}],MMM:[cc,Nb("monthNamesShort")],MMMM:[cc,Nb("monthNames")],YY:[vr,(e,t)=>{const a=+new Date().getFullYear().toString().substr(0,2);e.year=+`${t>68?a-1:a}${t}`}],YYYY:[JU,(e,t)=>{e.year=t}],S:[/\d/,(e,t)=>{e.milliseconds=t*100}],SS:[/\d{2}/,(e,t)=>{e.milliseconds=t*10}],SSS:[XU,(e,t)=>{e.milliseconds=t}],h:[vr,(e,t)=>{e.hours=t}],m:[vr,(e,t)=>{e.minutes=t}],s:[vr,(e,t)=>{e.seconds=t}],a:[cc,(e,t,n)=>{const a=t.toLowerCase();a===n.amPm[0]?e.isPm=!1:a===n.amPm[1]&&(e.isPm=!0)}],Z:[/[^\s]*?[+-]\d\d:?\d\d|[^\s]*?Z?/,(e,t)=>{t==="Z"&&(t="+00:00");const n=`${t}`.match(/([+-]|\d\d)/gi);if(n){const a=+n[1]*60+parseInt(n[2],10);e.timezoneOffset=n[0]==="+"?a:-a}}]};Ot.DD=Ot.D,Ot.dd=Ot.d,Ot.WWWW=Ot.WWW=Ot.WW=Ot.W,Ot.MM=Ot.M,Ot.mm=Ot.m,Ot.hh=Ot.H=Ot.HH=Ot.h,Ot.ss=Ot.s,Ot.A=Ot.a,Ot.ZZZZ=Ot.ZZZ=Ot.ZZ=Ot.Z;function zb(e,t){return($a(e)&&e||[ua(e)&&e||"YYYY-MM-DD"]).map(n=>KU.reduce((a,r)=>a.replace(r,t.masks[r]||""),n))}function xf(e){return Va(e)&&"year"in e&&"month"in e&&"day"in e}function Lb(e,t=1){const n=e.getDay()+1,a=n>=t?t-n:-(7-(t-n));return Ln(e,a)}function Pb(e,t,n){const a=Date.UTC(e,t-1,n);return Sf(new Date(0),new Date(a))}function Sf(e,t){return Math.round((t.getTime()-e.getTime())/Fu)}function QU(e,t){return Math.ceil(Sf(Lb(e),Lb(t))/7)}function Fb(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}function eq(e,t){return Fb(e,t)*12+(t.getMonth()-e.getMonth())}function Rb(e,t=""){const n=new Date,{year:a=n.getFullYear(),month:r=n.getMonth()+1,day:s=n.getDate(),hours:o=0,minutes:l=0,seconds:d=0,milliseconds:h=0}=e;if(t){const f=`${St(a,4)}-${St(r,2)}-${St(s,2)}T${St(o,2)}:${St(l,2)}:${St(d,2)}.${St(h,3)}`;return Zj(f,{timeZone:t})}return new Date(a,r-1,s,o,l,d,h)}function tq(e,t){let n=new Date(e.getTime());t.timezone&&(n=new Date(e.toLocaleString("en-US",{timeZone:t.timezone})),n.setMilliseconds(e.getMilliseconds()));const a=n.getMilliseconds(),r=n.getSeconds(),s=n.getMinutes(),o=n.getHours(),l=a+r*Db+s*Vb+o*$b,d=n.getMonth()+1,h=n.getFullYear(),f=t.getMonthParts(d,h),m=n.getDate(),y=f.numDays-m+1,g=n.getDay()+1,v=Math.floor((m-1)/7+1),_=Math.floor((f.numDays-m)/7+1),k=Math.ceil((m+Math.abs(f.firstWeekday-f.firstDayOfWeek))/7),x=f.numWeeks-k+1,M=f.weeknumbers[k],B=Pb(h,d,m);return{milliseconds:a,seconds:r,minutes:s,hours:o,time:l,day:m,dayFromEnd:y,weekday:g,weekdayOrdinal:v,weekdayOrdinalFromEnd:_,week:k,weekFromEnd:x,weeknumber:M,month:d,year:h,date:n,dateTime:n.getTime(),dayIndex:B,timezoneOffset:0,isValid:!0}}function nq(e,t,n){return`${t}-${e}-${n}`}function iq(e,t,n){const a=t%4===0&&t%100!==0||t%400===0,r=new Date(t,e-1,1),s=r.getDay()+1,o=e===2&&a?29:GU[e-1],l=n-1,d=cU(r,{weekStartsOn:l}),h=[],f=[];for(let m=0;m<d;m++){const y=Ln(r,m*7);h.push(fU(y,{weekStartsOn:l})),f.push(yU(y))}return{firstDayOfWeek:n,firstDayOfMonth:r,inLeapYear:a,firstWeekday:s,numDays:o,numWeeks:d,month:e,year:t,weeknumbers:h,isoWeeknumbers:f}}function aq(){const e=[];for(let r=0;r<Dn;r++)e.push(Rb({year:2020,month:1,day:5+r,hours:12}));return e}function Bf(e,t=void 0){const n=new Intl.DateTimeFormat(t,{weekday:e});return aq().map(a=>n.format(a))}function rq(){const e=[];for(let t=0;t<=24;t++)e.push(new Date(2e3,0,1,t));return e}function sq(e=void 0){const t=["second","minute","hour","day","week","month","quarter","year"],n=new Intl.RelativeTimeFormat(e);return t.reduce((a,r)=>{const s=n.formatToParts(100,r);return a[r]=s[1].unit,a},{})}function Hb(){const e=[];for(let t=0;t<12;t++)e.push(new Date(2e3,t,15));return e}function Wb(e,t=void 0){const n=new Intl.DateTimeFormat(t,{month:e,timeZone:"UTC"});return Hb().map(a=>n.format(a))}function oq(e,t,n){return Ui(t)?t===e:ki(t)?t.includes(e):ss(t)?t(e,n):!(t.min!=null&&t.min>e||t.max!=null&&t.max<e||t.interval!=null&&e%t.interval!==0)}function dc(e,t,n){const a=[],[r,s,o]=t;for(let l=r;l<=s;l++)(n==null||oq(l,n,e))&&a.push({value:l,label:St(l,o)});return a}function lq(e,t){return{milliseconds:dc(e,lc.milliseconds,t.milliseconds),seconds:dc(e,lc.seconds,t.seconds),minutes:dc(e,lc.minutes,t.minutes),hours:dc(e,lc.hours,t.hours)}}function cq(e,t,n,a){const s=dc(e,t,a).reduce((o,l)=>{if(l.disabled)return o;if(isNaN(o))return l.value;const d=Math.abs(o-n);return Math.abs(l.value-n)<d?l.value:o},NaN);return isNaN(s)?n:s}function dq(e,t){const n={...e};return Object.entries(t).forEach(([a,r])=>{const s=lc[a],o=e[a];n[a]=cq(e,s,o,r)}),n}function Yb(e,t,n){return zb(t,n).map(r=>{if(typeof r!="string")throw new Error("Invalid mask");let s=e;if(s.length>1e3)return!1;let o=!0;const l={};if(r.replace(Tb,f=>{if(Ot[f]){const m=Ot[f],y=s.search(m[0]);~y?s.replace(m[0],g=>(m[1](l,g,n),s=s.substr(y+g.length),g)):o=!1}return Ot[f]?"":f.slice(1,f.length-1)}),!o)return!1;const d=new Date;l.hours!=null&&(l.isPm===!0&&+l.hours!=12?l.hours=+l.hours+12:l.isPm===!1&&+l.hours==12&&(l.hours=0));let h;return l.timezoneOffset!=null?(l.minutes=+(l.minutes||0)-+l.timezoneOffset,h=new Date(Date.UTC(l.year||d.getFullYear(),l.month||0,l.day||1,l.hours||0,l.minutes||0,l.seconds||0,l.milliseconds||0))):h=n.getDateFromParts({year:l.year||d.getFullYear(),month:(l.month||0)+1,day:l.day||1,hours:l.hours||0,minutes:l.minutes||0,seconds:l.seconds||0,milliseconds:l.milliseconds||0}),h}).find(r=>r)||new Date(e)}function uq(e,t,n){if(e==null)return"";let a=zb(t,n)[0];/Z$/.test(a)&&(n.timezone="utc");const r=[];a=a.replace(ZU,(o,l)=>(r.push(l),"??"));const s=n.getDateParts(e);return a=a.replace(Tb,o=>o in Ib?Ib[o](s,n):o.slice(1,o.length-1)),a.replace(/\?\?/g,()=>r.shift())}let hq=0;class jb{constructor(t,n,a){Oe(this,"key",""),Oe(this,"hashcode",""),Oe(this,"highlight",null),Oe(this,"content",null),Oe(this,"dot",null),Oe(this,"bar",null),Oe(this,"event",null),Oe(this,"popover",null),Oe(this,"customData",null),Oe(this,"ranges"),Oe(this,"hasRanges",!1),Oe(this,"order",0),Oe(this,"pinPage",!1),Oe(this,"maxRepeatSpan",0),Oe(this,"locale");const{dates:r}=Object.assign(this,{hashcode:"",order:0,pinPage:!1},t);this.key||(this.key=++hq),this.locale=a,n.normalizeGlyphs(this),this.ranges=a.ranges(r??[]),this.hasRanges=!!$a(this.ranges),this.maxRepeatSpan=this.ranges.filter(s=>s.hasRepeat).map(s=>s.daySpan).reduce((s,o)=>Math.max(s,o),0)}intersectsRange({start:t,end:n}){if(t==null||n==null)return!1;const a=this.ranges.filter(o=>!o.hasRepeat);for(const o of a)if(o.intersectsDayRange(t.dayIndex,n.dayIndex))return!0;const r=this.ranges.filter(o=>o.hasRepeat);if(!r.length)return!1;let s=t;for(this.maxRepeatSpan>1&&(s=this.locale.getDateParts(Ln(s.date,-this.maxRepeatSpan)));s.dayIndex<=n.dayIndex;){for(const o of r)if(o.startsOnDay(s))return!0;s=this.locale.getDateParts(Ln(s.date,1))}return!1}}function Mf(e){document&&document.dispatchEvent(new CustomEvent("show-popover",{detail:e}))}function uc(e){document&&document.dispatchEvent(new CustomEvent("hide-popover",{detail:e}))}function Ub(e){document&&document.dispatchEvent(new CustomEvent("toggle-popover",{detail:e}))}function qb(e){const{visibility:t}=e,n=t==="click",a=t==="hover",r=t==="hover-focus",s=t==="focus";e.autoHide=!n;let o=!1,l=!1;const d=v=>{n&&(Ub({...e,target:e.target||v.currentTarget}),v.stopPropagation())},h=v=>{o||(o=!0,(a||r)&&Mf({...e,target:e.target||v.currentTarget}))},f=()=>{o&&(o=!1,(a||r&&!l)&&uc(e))},m=v=>{l||(l=!0,(s||r)&&Mf({...e,target:e.target||v.currentTarget}))},y=v=>{l&&!Du(v.currentTarget,v.relatedTarget)&&(l=!1,(s||r&&!o)&&uc(e))},g={};switch(e.visibility){case"click":g.click=d;break;case"hover":g.mousemove=h,g.mouseleave=f;break;case"focus":g.focusin=m,g.focusout=y;break;case"hover-focus":g.mousemove=h,g.mouseleave=f,g.focusin=m,g.focusout=y;break}return g}const Gb=e=>{const t=Ou(e);if(t==null)return;const n=t.popoverHandlers;!n||!n.length||(n.forEach(a=>a()),delete t.popoverHandlers)},Kb=(e,t)=>{const n=Ou(e);if(n==null)return;const a=[],r=qb(t);Object.entries(r).forEach(([s,o])=>{a.push(yr(n,s,o))}),n.popoverHandlers=a},Zb={mounted(e,t){const{value:n}=t;n&&Kb(e,n)},updated(e,t){const{oldValue:n,value:a}=t,r=n==null?void 0:n.visibility,s=a==null?void 0:a.visibility;r!==s&&(r&&(Gb(e),s||uc(n)),s&&Kb(e,a))},unmounted(e){Gb(e)}},fq=(e,t,{maxSwipeTime:n,minHorizontalSwipeDistance:a,maxVerticalSwipeDistance:r})=>{if(!e||!e.addEventListener||!ss(t))return null;let s=0,o=0,l=null,d=!1;function h(m){const y=m.changedTouches[0];s=y.screenX,o=y.screenY,l=new Date().getTime(),d=!0}function f(m){if(!d||!l)return;d=!1;const y=m.changedTouches[0],g=y.screenX-s,v=y.screenY-o;if(new Date().getTime()-l<n&&Math.abs(g)>=a&&Math.abs(v)<=r){const k={toLeft:!1,toRight:!1};g<0?k.toLeft=!0:k.toRight=!0,t(k)}}return yr(e,"touchstart",h,{passive:!0}),yr(e,"touchend",f,{passive:!0}),()=>{gr(e,"touchstart",h),gr(e,"touchend",f)}},Ru={},pq=(e,t=10)=>{Ru[e]=Date.now()+t},mq=(e,t)=>{if(e in Ru){const n=Ru[e];if(Date.now()<n)return;delete Ru[e]}t()};function Xb(){return typeof window<"u"}function gq(e){return Xb()&&e in window}function yq(e){const t=i.ref(!1),n=i.computed(()=>t.value?"dark":"light");let a,r;function s(g){t.value=g.matches}function o(){gq("matchMedia")&&(a=window.matchMedia("(prefers-color-scheme: dark)"),a.addEventListener("change",s),t.value=a.matches)}function l(){const{selector:g=":root",darkClass:v="dark"}=e.value,_=document.querySelector(g);t.value=_.classList.contains(v)}function d(g){const{selector:v=":root",darkClass:_="dark"}=g;if(Xb()&&v&&_){const k=document.querySelector(v);k&&(r=new MutationObserver(l),r.observe(k,{attributes:!0,attributeFilter:["class"]}),t.value=k.classList.contains(_))}}function h(){m();const g=typeof e.value;g==="string"&&e.value.toLowerCase()==="system"?o():g==="object"?d(e.value):t.value=!!e.value}const f=i.watch(()=>e.value,()=>h(),{immediate:!0});function m(){a&&(a.removeEventListener("change",s),a=void 0),r&&(r.disconnect(),r=void 0)}function y(){m(),f()}return i.onUnmounted(()=>y()),{isDark:t,displayMode:n,cleanup:y}}const bq=["base","start","end","startEnd"],vq=["class","wrapperClass","contentClass","style","contentStyle","color","fillMode"],_q={base:{},start:{},end:{}};function Ef(e,t,n=_q){let a=e,r={};t===!0||ua(t)?(a=ua(t)?t:a,r={...n}):Va(t)&&(ob(t,bq)?r={...t}:r={base:{...t},start:{...t},end:{...t}});const s=oc(r,{start:r.startEnd,end:r.startEnd},n);return Object.entries(s).forEach(([o,l])=>{let d=a;l===!0||ua(l)?(d=ua(l)?l:d,s[o]={color:d}):Va(l)&&(ob(l,vq)?s[o]={...l}:s[o]={}),oc(s[o],{color:d})}),s}class wq{constructor(){Oe(this,"type","highlight")}normalizeConfig(t,n){return Ef(t,n,{base:{fillMode:"light"},start:{fillMode:"solid"},end:{fillMode:"solid"}})}prepareRender(t){t.highlights=[],t.content||(t.content=[])}render({data:t,onStart:n,onEnd:a},r){const{key:s,highlight:o}=t;if(!o)return;const{highlights:l}=r,{base:d,start:h,end:f}=o;n&&a?l.push({...h,key:s,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${h.color}`,class:[`vc-highlight vc-highlight-bg-${h.fillMode}`,h.class],contentClass:[`vc-attr vc-highlight-content-${h.fillMode} vc-${h.color}`,h.contentClass]}):n?(l.push({...d,key:`${s}-base`,wrapperClass:`vc-day-layer vc-day-box-right-center vc-attr vc-${d.color}`,class:[`vc-highlight vc-highlight-base-start vc-highlight-bg-${d.fillMode}`,d.class]}),l.push({...h,key:s,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${h.color}`,class:[`vc-highlight vc-highlight-bg-${h.fillMode}`,h.class],contentClass:[`vc-attr vc-highlight-content-${h.fillMode} vc-${h.color}`,h.contentClass]})):a?(l.push({...d,key:`${s}-base`,wrapperClass:`vc-day-layer vc-day-box-left-center vc-attr vc-${d.color}`,class:[`vc-highlight vc-highlight-base-end vc-highlight-bg-${d.fillMode}`,d.class]}),l.push({...f,key:s,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${f.color}`,class:[`vc-highlight vc-highlight-bg-${f.fillMode}`,f.class],contentClass:[`vc-attr vc-highlight-content-${f.fillMode} vc-${f.color}`,f.contentClass]})):l.push({...d,key:`${s}-middle`,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${d.color}`,class:[`vc-highlight vc-highlight-base-middle vc-highlight-bg-${d.fillMode}`,d.class],contentClass:[`vc-attr vc-highlight-content-${d.fillMode} vc-${d.color}`,d.contentClass]})}}class Of{constructor(t,n){Oe(this,"type",""),Oe(this,"collectionType",""),this.type=t,this.collectionType=n}normalizeConfig(t,n){return Ef(t,n)}prepareRender(t){t[this.collectionType]=[]}render({data:t,onStart:n,onEnd:a},r){const{key:s}=t,o=t[this.type];if(!s||!o)return;const l=r[this.collectionType],{base:d,start:h,end:f}=o;n?l.push({...h,key:s,class:[`vc-${this.type} vc-${this.type}-start vc-${h.color} vc-attr`,h.class]}):a?l.push({...f,key:s,class:[`vc-${this.type} vc-${this.type}-end vc-${f.color} vc-attr`,f.class]}):l.push({...d,key:s,class:[`vc-${this.type} vc-${this.type}-base vc-${d.color} vc-attr`,d.class]})}}class kq extends Of{constructor(){super("content","content")}normalizeConfig(t,n){return Ef("base",n)}}class Cq extends Of{constructor(){super("dot","dots")}}class xq extends Of{constructor(){super("bar","bars")}}class Sq{constructor(t){Oe(this,"color"),Oe(this,"renderers",[new kq,new wq,new Cq,new xq]),this.color=t}normalizeGlyphs(t){this.renderers.forEach(n=>{const a=n.type;t[a]!=null&&(t[a]=n.normalizeConfig(this.color,t[a]))})}prepareRender(t={}){return this.renderers.forEach(n=>{n.prepareRender(t)}),t}render(t,n){this.renderers.forEach(a=>{a.render(t,n)})}}const Jb=Symbol("__vc_base_context__"),Qb={color:{type:String,default:()=>br("color")},isDark:{type:[Boolean,String,Object],default:()=>br("isDark")},firstDayOfWeek:Number,masks:Object,locale:[String,Object],timezone:String,minDate:null,maxDate:null,disabledDates:null};function e6(e){const t=i.computed(()=>e.color??""),n=i.computed(()=>e.isDark??!1),{displayMode:a}=yq(n),r=i.computed(()=>new Sq(t.value)),s=i.computed(()=>{if(e.locale instanceof Lu)return e.locale;const y=Va(e.locale)?e.locale:{id:e.locale,firstDayOfWeek:e.firstDayOfWeek,masks:e.masks};return new Lu(y,e.timezone)}),o=i.computed(()=>s.value.masks),l=i.computed(()=>e.minDate),d=i.computed(()=>e.maxDate),h=i.computed(()=>{const y=e.disabledDates?[...e.disabledDates]:[];return l.value!=null&&y.push({start:null,end:Ln(s.value.toDate(l.value),-1)}),d.value!=null&&y.push({start:Ln(s.value.toDate(d.value),1),end:null}),s.value.ranges(y)}),f=i.computed(()=>new jb({key:"disabled",dates:h.value,order:100},r.value,s.value)),m={color:t,isDark:n,displayMode:a,theme:r,locale:s,masks:o,minDate:l,maxDate:d,disabledDates:h,disabledAttribute:f};return i.provide(Jb,m),m}function Bq(e){return i.inject(Jb,()=>e6(e),!0)}function t6(e){return`__vc_slot_${e}__`}function n6(e,t={}){Object.keys(e).forEach(n=>{i.provide(t6(t[n]??n),e[n])})}function i6(e){return i.inject(t6(e),null)}const Mq={...Qb,view:{type:String,default:"monthly",validator(e){return["daily","weekly","monthly"].includes(e)}},rows:{type:Number,default:1},columns:{type:Number,default:1},step:Number,titlePosition:{type:String,default:()=>br("titlePosition")},navVisibility:{type:String,default:()=>br("navVisibility")},showWeeknumbers:[Boolean,String],showIsoWeeknumbers:[Boolean,String],expanded:Boolean,borderless:Boolean,transparent:Boolean,initialPage:Object,initialPagePosition:{type:Number,default:1},minPage:Object,maxPage:Object,transition:String,attributes:Array,trimWeeks:Boolean,disablePageSwipe:Boolean},Eq=["dayclick","daymouseenter","daymouseleave","dayfocusin","dayfocusout","daykeydown","weeknumberclick","transition-start","transition-end","did-move","update:view","update:pages"],a6=Symbol("__vc_calendar_context__");function Oq(e,{slots:t,emit:n}){const a=i.ref(null),r=i.ref(null),s=i.ref(new Date().getDate()),o=i.ref(!1),l=i.ref(Symbol()),d=i.ref(Symbol()),h=i.ref(e.view),f=i.ref([]),m=i.ref("");let y=null,g=null;n6(t);const{theme:v,color:_,displayMode:k,locale:x,masks:M,minDate:B,maxDate:C,disabledAttribute:V,disabledDates:$}=Bq(e),N=i.computed(()=>e.rows*e.columns),I=i.computed(()=>e.step||N.value),F=i.computed(()=>rb(f.value)??null),q=i.computed(()=>mo(f.value)??null),Q=i.computed(()=>e.minPage||(B.value?ue(B.value):null)),P=i.computed(()=>e.maxPage||(C.value?ue(C.value):null)),Z=i.computed(()=>e.navVisibility),se=i.computed(()=>!!e.showWeeknumbers),U=i.computed(()=>!!e.showIsoWeeknumbers),me=i.computed(()=>h.value==="monthly"),be=i.computed(()=>h.value==="weekly"),G=i.computed(()=>h.value==="daily"),ye=()=>{o.value=!0,n("transition-start")},Y=()=>{o.value=!1,n("transition-end"),y&&(y.resolve(!0),y=null)},ee=(R,T,K=h.value)=>Cb(R,T,K,x.value),ue=R=>kb(R,h.value,x.value),de=R=>{!V.value||!ut.value||(R.isDisabled=ut.value.cellExists(V.value.key,R.dayIndex))},_e=R=>{R.isFocusable=R.inMonth&&R.day===s.value},ge=(R,T)=>{for(const K of R)for(const le of K.days)if(T(le)===!1)return},De=i.computed(()=>f.value.reduce((R,T)=>(R.push(...T.viewDays),R),[])),Ye=i.computed(()=>{const R=[];return(e.attributes||[]).forEach((T,K)=>{!T||!T.dates||R.push(new jb({...T,order:T.order||0},v.value,x.value))}),V.value&&R.push(V.value),R}),Ne=i.computed(()=>$a(Ye.value)),ut=i.computed(()=>{const R=new EU;return Ye.value.forEach(T=>{T.ranges.forEach(K=>{R.render(T,K,De.value)})}),R}),_t=i.computed(()=>De.value.reduce((R,T)=>(R[T.dayIndex]={day:T,cells:[]},R[T.dayIndex].cells.push(...ut.value.getCells(T)),R),{})),ft=(R,T)=>{const K=e.showWeeknumbers||e.showIsoWeeknumbers;return K==null?"":JH(K)?K?"left":"":K.startsWith("right")?T>1?"right":K:R>1?"left":K},it=()=>{var R,T;if(!Ne.value)return null;const K=Ye.value.find(et=>et.pinPage)||Ye.value[0];if(!K||!K.hasRanges)return null;const[le]=K.ranges,Me=((R=le.start)==null?void 0:R.date)||((T=le.end)==null?void 0:T.date);return Me?ue(Me):null},Ze=()=>{if(ha(F.value))return F.value;const R=it();return ha(R)?R:ue(new Date)},Qe=(R,T={})=>{const{view:K=h.value,position:le=1,force:Me}=T,et=le>0?1-le:-(N.value+le);let mt=ee(R,et,K),Tt=ee(mt,N.value-1,K);return Me||(wf(mt,Q.value)?mt=Q.value:zu(Tt,P.value)&&(mt=ee(P.value,1-N.value)),Tt=ee(mt,N.value-1)),{fromPage:mt,toPage:Tt}},Dt=(R,T,K="")=>{if(K==="none"||K==="fade")return K;if((R==null?void 0:R.view)!==(T==null?void 0:T.view))return"fade";const le=zu(T,R),Me=wf(T,R);return!le&&!Me?"fade":K==="slide-v"?Me?"slide-down":"slide-up":Me?"slide-right":"slide-left"},lt=(R={})=>new Promise((T,K)=>{const{position:le=1,force:Me=!1,transition:et}=R,mt=ha(R.page)?R.page:Ze(),{fromPage:Tt}=Qe(mt,{position:le,force:Me}),ln=[];for(let Jt=0;Jt<N.value;Jt++){const Kn=ee(Tt,Jt),wt=Jt+1,Pn=Math.ceil(wt/e.columns),Vn=e.rows-Pn+1,oi=wt%e.columns||e.columns,qi=e.columns-oi+1,Na=ft(oi,qi);ln.push(x.value.getPage({...Kn,view:h.value,titlePosition:e.titlePosition,trimWeeks:e.trimWeeks,position:wt,row:Pn,rowFromEnd:Vn,column:oi,columnFromEnd:qi,showWeeknumbers:se.value,showIsoWeeknumbers:U.value,weeknumberPosition:Na}))}m.value=Dt(f.value[0],ln[0],et),f.value=ln,m.value&&m.value!=="none"?y={resolve:T,reject:K}:T(!0)}),ae=R=>{const T=F.value??ue(new Date);return ee(T,R)},xe=(R,T={})=>{const K=ha(R)?R:ue(R);return Object.assign(T,Qe(K,{...T,force:!0})),SU(T.fromPage,T.toPage,h.value,x.value).map(Me=>CU(Me,Q.value,P.value)).some(Me=>Me)},Ve=(R,T={})=>xe(ae(R),T),ze=i.computed(()=>Ve(-I.value)),Fe=i.computed(()=>Ve(I.value)),pt=async(R,T={})=>!T.force&&!xe(R,T)?!1:(T.fromPage&&!xU(T.fromPage,F.value)&&(uc({id:l.value,hideDelay:0}),T.view&&(pq("view",10),h.value=T.view),await lt({...T,page:T.fromPage,position:1,force:!0}),n("did-move",f.value)),!0),Bt=(R,T={})=>pt(ae(R),T),Vt=()=>Bt(-I.value),Mt=()=>Bt(I.value),nn=R=>{const T=me.value?".in-month":"",K=`.id-${x.value.getDayId(R)}${T}`,le=`${K}.vc-focusable, ${K} .vc-focusable`,Me=a.value;if(Me){const et=Me.querySelector(le);if(et)return et.focus(),!0}return!1},$t=async(R,T={})=>nn(R)?!0:(await pt(R,T),nn(R)),he=(R,T)=>{s.value=R.day,n("dayclick",R,T)},Le=(R,T)=>{n("daymouseenter",R,T)},Ge=(R,T)=>{n("daymouseleave",R,T)},on=(R,T)=>{s.value=R.day,r.value=R,R.isFocused=!0,n("dayfocusin",R,T)},mn=(R,T)=>{r.value=null,R.isFocused=!1,n("dayfocusout",R,T)},_n=(R,T)=>{n("daykeydown",R,T);const K=R.noonDate;let le=null;switch(T.key){case"ArrowLeft":{le=Ln(K,-1);break}case"ArrowRight":{le=Ln(K,1);break}case"ArrowUp":{le=Ln(K,-7);break}case"ArrowDown":{le=Ln(K,7);break}case"Home":{le=Ln(K,-R.weekdayPosition+1);break}case"End":{le=Ln(K,R.weekdayPositionFromEnd);break}case"PageUp":{T.altKey?le=wb(K,-1):le=Nu(K,-1);break}case"PageDown":{T.altKey?le=wb(K,1):le=Nu(K,1);break}}le&&(T.preventDefault(),$t(le).catch())},J=R=>{const T=r.value;T!=null&&_n(T,R)},j=(R,T)=>{n("weeknumberclick",R,T)};lt({page:e.initialPage,position:e.initialPagePosition}),i.onMounted(()=>{!e.disablePageSwipe&&a.value&&(g=fq(a.value,({toLeft:R=!1,toRight:T=!1})=>{R?Mt():T&&Vt()},br("touch")))}),i.onUnmounted(()=>{f.value=[],g&&g()}),i.watch(()=>x.value,()=>{lt()}),i.watch(()=>N.value,()=>lt()),i.watch(()=>e.view,()=>h.value=e.view),i.watch(()=>h.value,()=>{mq("view",()=>{lt()}),n("update:view",h.value)}),i.watch(()=>s.value,()=>{ge(f.value,R=>_e(R))}),i.watchEffect(()=>{n("update:pages",f.value),ge(f.value,R=>{de(R),_e(R)})});const pe={emit:n,containerRef:a,focusedDay:r,inTransition:o,navPopoverId:l,dayPopoverId:d,view:h,pages:f,transitionName:m,theme:v,color:_,displayMode:k,locale:x,masks:M,attributes:Ye,disabledAttribute:V,disabledDates:$,attributeContext:ut,days:De,dayCells:_t,count:N,step:I,firstPage:F,lastPage:q,canMovePrev:ze,canMoveNext:Fe,minPage:Q,maxPage:P,isMonthly:me,isWeekly:be,isDaily:G,navVisibility:Z,showWeeknumbers:se,showIsoWeeknumbers:U,getDateAddress:ue,canMove:xe,canMoveBy:Ve,move:pt,moveBy:Bt,movePrev:Vt,moveNext:Mt,onTransitionBeforeEnter:ye,onTransitionAfterEnter:Y,tryFocusDate:nn,focusDate:$t,onKeydown:J,onDayKeydown:_n,onDayClick:he,onDayMouseenter:Le,onDayMouseleave:Ge,onDayFocusin:on,onDayFocusout:mn,onWeeknumberClick:j};return i.provide(a6,pe),pe}function us(){const e=i.inject(a6);if(e)return e;throw new Error("Calendar context missing. Please verify this component is nested within a valid context provider.")}const Dq=i.defineComponent({inheritAttrs:!1,emits:["before-show","after-show","before-hide","after-hide"],props:{id:{type:[Number,String,Symbol],required:!0},showDelay:{type:Number,default:0},hideDelay:{type:Number,default:110},boundarySelector:{type:String}},setup(e,{emit:t}){let n;const a=i.ref();let r=null,s=null;const o=i.reactive({isVisible:!1,target:null,data:null,transition:"slide-fade",placement:"bottom",direction:"",positionFixed:!1,modifiers:[],isInteractive:!0,visibility:"click",isHovered:!1,isFocused:!1,autoHide:!1,force:!1});function l(Y){Y&&(o.direction=Y.split("-")[0])}function d({placement:Y,options:ee}){l(Y||(ee==null?void 0:ee.placement))}const h=i.computed(()=>({placement:o.placement,strategy:o.positionFixed?"fixed":"absolute",boundary:"",modifiers:[{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:d},...o.modifiers||[]],onFirstUpdate:d})),f=i.computed(()=>{const Y=o.direction==="left"||o.direction==="right";let ee="";if(o.placement){const ue=o.placement.split("-");ue.length>1&&(ee=ue[1])}return["start","top","left"].includes(ee)?Y?"top":"left":["end","bottom","right"].includes(ee)?Y?"bottom":"right":Y?"middle":"center"});function m(){s&&(s.destroy(),s=null)}function y(){i.nextTick(()=>{const Y=Ou(o.target);!Y||!a.value||(s&&s.state.elements.reference!==Y&&m(),s?s.update():s=cl(Y,a.value,h.value))})}function g(Y){Object.assign(o,lb(Y,"force"))}function v(Y,ee){clearTimeout(n),Y>0?n=setTimeout(ee,Y):ee()}function _(Y){return!Y||!s?!1:Ou(Y)===s.state.elements.reference}async function k(Y={}){o.force||(Y.force&&(o.force=!0),v(Y.showDelay??e.showDelay,()=>{o.isVisible&&(o.force=!1),g({...Y,isVisible:!0}),y()}))}function x(Y={}){s&&(Y.target&&!_(Y.target)||o.force||(Y.force&&(o.force=!0),v(Y.hideDelay??e.hideDelay,()=>{o.isVisible||(o.force=!1),o.isVisible=!1})))}function M(Y={}){Y.target!=null&&(o.isVisible&&_(Y.target)?x(Y):k(Y))}function B(Y){if(!s)return;const ee=s.state.elements.reference;if(!a.value||!ee)return;const ue=Y.target;Du(a.value,ue)||Du(ee,ue)||x({force:!0})}function C(Y){(Y.key==="Esc"||Y.key==="Escape")&&x()}function V({detail:Y}){!Y.id||Y.id!==e.id||k(Y)}function $({detail:Y}){!Y.id||Y.id!==e.id||x(Y)}function N({detail:Y}){!Y.id||Y.id!==e.id||M(Y)}function I(){yr(document,"keydown",C),yr(document,"click",B),yr(document,"show-popover",V),yr(document,"hide-popover",$),yr(document,"toggle-popover",N)}function F(){gr(document,"keydown",C),gr(document,"click",B),gr(document,"show-popover",V),gr(document,"hide-popover",$),gr(document,"toggle-popover",N)}function q(Y){t("before-show",Y)}function Q(Y){o.force=!1,t("after-show",Y)}function P(Y){t("before-hide",Y)}function Z(Y){o.force=!1,m(),t("after-hide",Y)}function se(Y){Y.stopPropagation()}function U(){o.isHovered=!0,o.isInteractive&&["hover","hover-focus"].includes(o.visibility)&&k()}function me(){if(o.isHovered=!1,!s)return;const Y=s.state.elements.reference;o.autoHide&&!o.isFocused&&(!Y||Y!==document.activeElement)&&["hover","hover-focus"].includes(o.visibility)&&x()}function be(){o.isFocused=!0,o.isInteractive&&["focus","hover-focus"].includes(o.visibility)&&k()}function G(Y){["focus","hover-focus"].includes(o.visibility)&&(!Y.relatedTarget||!Du(a.value,Y.relatedTarget))&&(o.isFocused=!1,!o.isHovered&&o.autoHide&&x())}function ye(){r!=null&&(r.disconnect(),r=null)}return i.watch(()=>a.value,Y=>{ye(),Y&&(r=new ResizeObserver(()=>{s&&s.update()}),r.observe(Y))}),i.watch(()=>o.placement,l,{immediate:!0}),i.onMounted(()=>{I()}),i.onUnmounted(()=>{m(),ye(),F()}),{...i.toRefs(o),popoverRef:a,alignment:f,hide:x,setupPopper:y,beforeEnter:q,afterEnter:Q,beforeLeave:P,afterLeave:Z,onClick:se,onMouseOver:U,onMouseLeave:me,onFocusIn:be,onFocusOut:G}}}),_r=(e,t)=>{const n=e.__vccOpts||e;for(const[a,r]of t)n[a]=r;return n};function Vq(e,t,n,a,r,s){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["vc-popover-content-wrapper",{"is-interactive":e.isInteractive}]),ref:"popoverRef",onClick:t[0]||(t[0]=(...o)=>e.onClick&&e.onClick(...o)),onMouseover:t[1]||(t[1]=(...o)=>e.onMouseOver&&e.onMouseOver(...o)),onMouseleave:t[2]||(t[2]=(...o)=>e.onMouseLeave&&e.onMouseLeave(...o)),onFocusin:t[3]||(t[3]=(...o)=>e.onFocusIn&&e.onFocusIn(...o)),onFocusout:t[4]||(t[4]=(...o)=>e.onFocusOut&&e.onFocusOut(...o))},[i.createVNode(i.Transition,{name:`vc-${e.transition}`,appear:"",onBeforeEnter:e.beforeEnter,onAfterEnter:e.afterEnter,onBeforeLeave:e.beforeLeave,onAfterLeave:e.afterLeave},{default:i.withCtx(()=>[e.isVisible?(i.openBlock(),i.createElementBlock("div",i.mergeProps({key:0,tabindex:"-1",class:`vc-popover-content direction-${e.direction}`},e.$attrs),[i.renderSlot(e.$slots,"default",{direction:e.direction,alignment:e.alignment,data:e.data,hide:e.hide},()=>[i.createTextVNode(i.toDisplayString(e.data),1)]),i.createElementVNode("span",{class:i.normalizeClass(["vc-popover-caret",`direction-${e.direction}`,`align-${e.alignment}`])},null,2)],16)):i.createCommentVNode("",!0)]),_:3},8,["name","onBeforeEnter","onAfterEnter","onBeforeLeave","onAfterLeave"])],34)}const Df=_r(Dq,[["render",Vq]]),$q={class:"vc-day-popover-row"},Tq={key:0,class:"vc-day-popover-row-indicator"},Iq={class:"vc-day-popover-row-label"},Aq=i.defineComponent({__name:"PopoverRow",props:{attribute:null},setup(e){const t=e,n=i.computed(()=>{const{content:a,highlight:r,dot:s,bar:o,popover:l}=t.attribute;return l&&l.hideIndicator?null:a?{class:`vc-bar vc-day-popover-row-bar vc-attr vc-${a.base.color}`}:r?{class:`vc-highlight-bg-solid vc-day-popover-row-highlight vc-attr vc-${r.base.color}`}:s?{class:`vc-dot vc-attr vc-${s.base.color}`}:o?{class:`vc-bar vc-day-popover-row-bar vc-attr vc-${o.base.color}`}:null});return(a,r)=>(i.openBlock(),i.createElementBlock("div",$q,[i.unref(n)?(i.openBlock(),i.createElementBlock("div",Tq,[i.createElementVNode("span",{class:i.normalizeClass(i.unref(n).class)},null,2)])):i.createCommentVNode("",!0),i.createElementVNode("div",Iq,[i.renderSlot(a.$slots,"default",{},()=>[i.createTextVNode(i.toDisplayString(e.attribute.popover?e.attribute.popover.label:"No content provided"),1)])])]))}}),Nq={inheritAttrs:!1},Ci=i.defineComponent({...Nq,__name:"CalendarSlot",props:{name:null},setup(e){const n=i6(e.name);return(a,r)=>i.unref(n)?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(i.unref(n)),i.normalizeProps(i.mergeProps({key:0},a.$attrs)),null,16)):i.renderSlot(a.$slots,"default",{key:1})}}),zq={class:"vc-day-popover-container"},Lq={key:0,class:"vc-day-popover-header"},Pq=i.defineComponent({__name:"CalendarDayPopover",setup(e){const{dayPopoverId:t,displayMode:n,color:a,masks:r,locale:s}=us();function o(d,h){return s.value.formatDate(d,h)}function l(d){return s.value.formatDate(d.date,r.value.dayPopover)}return(d,h)=>(i.openBlock(),i.createBlock(Df,{id:i.unref(t),class:i.normalizeClass([`vc-${i.unref(a)}`,`vc-${i.unref(n)}`])},{default:i.withCtx(({data:{day:f,attributes:m},hide:y})=>[i.createVNode(Ci,{name:"day-popover",day:f,"day-title":l(f),attributes:m,format:o,masks:i.unref(r),hide:y},{default:i.withCtx(()=>[i.createElementVNode("div",zq,[i.unref(r).dayPopover?(i.openBlock(),i.createElementBlock("div",Lq,i.toDisplayString(l(f)),1)):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(m,g=>(i.openBlock(),i.createBlock(Aq,{key:g.key,attribute:g},null,8,["attribute"]))),128))])]),_:2},1032,["day","day-title","attributes","masks","hide"])]),_:1},8,["id","class"]))}}),Fq={},Rq={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},Hq=[i.createElementVNode("polyline",{points:"9 18 15 12 9 6"},null,-1)];function Wq(e,t){return i.openBlock(),i.createElementBlock("svg",Rq,Hq)}const Yq=_r(Fq,[["render",Wq]]),jq={},Uq={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},qq=[i.createElementVNode("polyline",{points:"15 18 9 12 15 6"},null,-1)];function Gq(e,t){return i.openBlock(),i.createElementBlock("svg",Uq,qq)}const Kq=_r(jq,[["render",Gq]]),Zq={},Xq={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},Jq=[i.createElementVNode("polyline",{points:"6 9 12 15 18 9"},null,-1)];function Qq(e,t){return i.openBlock(),i.createElementBlock("svg",Xq,Jq)}const eG=_r(Zq,[["render",Qq]]),tG={},nG={fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},iG=[i.createElementVNode("path",{d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1)];function aG(e,t){return i.openBlock(),i.createElementBlock("svg",nG,iG)}const rG=Object.freeze(Object.defineProperty({__proto__:null,IconChevronDown:eG,IconChevronLeft:Kq,IconChevronRight:Yq,IconClock:_r(tG,[["render",aG]])},Symbol.toStringTag,{value:"Module"})),wo=i.defineComponent({__name:"BaseIcon",props:{name:{type:String,required:!0},width:{type:String},height:{type:String},size:{type:String,default:"26"},viewBox:{type:String}},setup(e){const t=e,n=i.computed(()=>t.width||t.size),a=i.computed(()=>t.height||t.size),r=i.computed(()=>rG[`Icon${t.name}`]);return(s,o)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(i.unref(r)),{width:i.unref(n),height:i.unref(a),class:"vc-base-icon"},null,8,["width","height"]))}}),sG=["disabled"],oG={key:1,class:"vc-title-wrapper"},lG={type:"button",class:"vc-title"},cG=["disabled"],r6=i.defineComponent({__name:"CalendarHeader",props:{page:null,layout:null,isLg:{type:Boolean},isXl:{type:Boolean},is2xl:{type:Boolean},hideTitle:{type:Boolean},hideArrows:{type:Boolean}},setup(e){const t=e,{navPopoverId:n,navVisibility:a,canMovePrev:r,movePrev:s,canMoveNext:o,moveNext:l}=us(),d=i.computed(()=>{switch(t.page.titlePosition){case"left":return"bottom-start";case"right":return"bottom-end";default:return"bottom"}}),h=i.computed(()=>{const{page:_}=t;return{id:n.value,visibility:a.value,placement:d.value,modifiers:[{name:"flip",options:{fallbackPlacements:["bottom"]}}],data:{page:_},isInteractive:!0}}),f=i.computed(()=>t.page.titlePosition.includes("left")),m=i.computed(()=>t.page.titlePosition.includes("right")),y=i.computed(()=>t.layout?t.layout:f.value?"tu-pn":m.value?"pn-tu":"p-tu-n;"),g=i.computed(()=>({prev:y.value.includes("p")&&!t.hideArrows,title:y.value.includes("t")&&!t.hideTitle,next:y.value.includes("n")&&!t.hideArrows})),v=i.computed(()=>({gridTemplateColumns:y.value.split("").map(k=>{switch(k){case"p":return"[prev] auto";case"n":return"[next] auto";case"t":return"[title] auto";case"-":return"1fr";default:return""}}).join(" ")}));return(_,k)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["vc-header",{"is-lg":e.isLg,"is-xl":e.isXl,"is-2xl":e.is2xl}]),style:i.normalizeStyle(i.unref(v))},[i.unref(g).prev?(i.openBlock(),i.createElementBlock("button",{key:0,type:"button",class:"vc-arrow vc-prev vc-focus",disabled:!i.unref(r),onClick:k[0]||(k[0]=(...x)=>i.unref(s)&&i.unref(s)(...x)),onKeydown:k[1]||(k[1]=i.withKeys((...x)=>i.unref(s)&&i.unref(s)(...x),["space","enter"]))},[i.createVNode(Ci,{name:"header-prev-button",disabled:!i.unref(r)},{default:i.withCtx(()=>[i.createVNode(wo,{name:"ChevronLeft",size:"24"})]),_:1},8,["disabled"])],40,sG)):i.createCommentVNode("",!0),i.unref(g).title?(i.openBlock(),i.createElementBlock("div",oG,[i.createVNode(Ci,{name:"header-title-wrapper"},{default:i.withCtx(()=>[i.withDirectives((i.openBlock(),i.createElementBlock("button",lG,[i.createVNode(Ci,{name:"header-title",title:e.page.title},{default:i.withCtx(()=>[i.createElementVNode("span",null,i.toDisplayString(e.page.title),1)]),_:1},8,["title"])])),[[i.unref(Zb),i.unref(h)]])]),_:1})])):i.createCommentVNode("",!0),i.unref(g).next?(i.openBlock(),i.createElementBlock("button",{key:2,type:"button",class:"vc-arrow vc-next vc-focus",disabled:!i.unref(o),onClick:k[2]||(k[2]=(...x)=>i.unref(l)&&i.unref(l)(...x)),onKeydown:k[3]||(k[3]=i.withKeys((...x)=>i.unref(l)&&i.unref(l)(...x),["space","enter"]))},[i.createVNode(Ci,{name:"header-next-button",disabled:!i.unref(o)},{default:i.withCtx(()=>[i.createVNode(wo,{name:"ChevronRight",size:"24"})]),_:1},8,["disabled"])],40,cG)):i.createCommentVNode("",!0)],6))}}),s6=Symbol("__vc_page_context__");function dG(e){const{locale:t,getDateAddress:n,canMove:a}=us();function r(l,d){const{month:h,year:f}=n(new Date);return Hb().map((m,y)=>{const g=y+1;return{month:g,year:l,id:kU(g,l),label:t.value.formatDate(m,d),ariaLabel:t.value.formatDate(m,"MMMM"),isActive:g===e.value.month&&l===e.value.year,isCurrent:g===h&&l===f,isDisabled:!a({month:g,year:l},{position:e.value.position})}})}function s(l,d){const{year:h}=n(new Date),{position:f}=e.value,m=[];for(let y=l;y<=d;y+=1){const g=[...Array(12).keys()].some(v=>a({month:v+1,year:y},{position:f}));m.push({year:y,id:y.toString(),label:y.toString(),ariaLabel:y.toString(),isActive:y===e.value.year,isCurrent:y===h,isDisabled:!g})}return m}const o={page:e,getMonthItems:r,getYearItems:s};return i.provide(s6,o),o}function o6(){const e=i.inject(s6);if(e)return e;throw new Error("Page context missing. Please verify this component is nested within a valid context provider.")}const uG={class:"vc-nav-header"},hG=["disabled"],fG=["disabled"],pG={class:"vc-nav-items"},mG=["data-id","aria-label","disabled","onClick","onKeydown"],gG=i.defineComponent({__name:"CalendarNav",setup(e){const{masks:t,move:n}=us(),{page:a,getMonthItems:r,getYearItems:s}=o6(),o=i.ref(!0),l=12,d=i.ref(a.value.year),h=i.ref(y(a.value.year)),f=i.ref(null);function m(){setTimeout(()=>{if(f.value==null)return;const ue=f.value.querySelector(".vc-nav-item:not(:disabled)");ue&&ue.focus()},10)}function y(ue){return Math.floor(ue/l)}function g(){o.value=!o.value}function v(ue){return ue*l}function _(ue){return l*(ue+1)-1}function k(){be.value&&(o.value&&M(),C())}function x(){G.value&&(o.value&&B(),V())}function M(){d.value--}function B(){d.value++}function C(){h.value--}function V(){h.value++}const $=i.computed(()=>r(d.value,t.value.navMonths).map(ue=>({...ue,click:()=>n({month:ue.month,year:ue.year},{position:a.value.position})}))),N=i.computed(()=>r(d.value-1,t.value.navMonths)),I=i.computed(()=>N.value.some(ue=>!ue.isDisabled)),F=i.computed(()=>r(d.value+1,t.value.navMonths)),q=i.computed(()=>F.value.some(ue=>!ue.isDisabled)),Q=i.computed(()=>s(v(h.value),_(h.value)).map(ue=>({...ue,click:()=>{d.value=ue.year,o.value=!0,m()}}))),P=i.computed(()=>s(v(h.value-1),_(h.value-1))),Z=i.computed(()=>P.value.some(ue=>!ue.isDisabled)),se=i.computed(()=>s(v(h.value+1),_(h.value+1))),U=i.computed(()=>se.value.some(ue=>!ue.isDisabled)),me=i.computed(()=>o.value?$.value:Q.value),be=i.computed(()=>o.value?I.value:Z.value),G=i.computed(()=>o.value?q.value:U.value),ye=i.computed(()=>rb(Q.value.map(ue=>ue.year))),Y=i.computed(()=>mo(Q.value.map(ue=>ue.year))),ee=i.computed(()=>o.value?d.value:`${ye.value} - ${Y.value}`);return i.watchEffect(()=>{d.value=a.value.year,m()}),i.watch(()=>d.value,ue=>h.value=y(ue)),i.onMounted(()=>m()),(ue,de)=>(i.openBlock(),i.createElementBlock("div",{class:"vc-nav-container",ref_key:"navContainer",ref:f},[i.createElementVNode("div",uG,[i.createElementVNode("button",{type:"button",class:"vc-nav-arrow is-left vc-focus",disabled:!i.unref(be),onClick:k,onKeydown:de[0]||(de[0]=_e=>i.unref(Vu)(_e,k))},[i.createVNode(Ci,{name:"nav-prev-button",move:k,disabled:!i.unref(be)},{default:i.withCtx(()=>[i.createVNode(wo,{name:"ChevronLeft",width:"22px",height:"24px"})]),_:1},8,["disabled"])],40,hG),i.createElementVNode("button",{type:"button",class:"vc-nav-title vc-focus",onClick:g,onKeydown:de[1]||(de[1]=_e=>i.unref(Vu)(_e,g))},i.toDisplayString(i.unref(ee)),33),i.createElementVNode("button",{type:"button",class:"vc-nav-arrow is-right vc-focus",disabled:!i.unref(G),onClick:x,onKeydown:de[2]||(de[2]=_e=>i.unref(Vu)(_e,x))},[i.createVNode(Ci,{name:"nav-next-button",move:x,disabled:!i.unref(G)},{default:i.withCtx(()=>[i.createVNode(wo,{name:"ChevronRight",width:"22px",height:"24px"})]),_:1},8,["disabled"])],40,fG)]),i.createElementVNode("div",pG,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(me),_e=>(i.openBlock(),i.createElementBlock("button",{key:_e.label,type:"button","data-id":_e.id,"aria-label":_e.ariaLabel,class:i.normalizeClass(["vc-nav-item vc-focus",[_e.isActive?"is-active":_e.isCurrent?"is-current":""]]),disabled:_e.isDisabled,onClick:_e.click,onKeydown:ge=>i.unref(Vu)(ge,_e.click)},i.toDisplayString(_e.label),43,mG))),128))])],512))}}),l6=i.defineComponent({__name:"CalendarPageProvider",props:{page:null},setup(e){const t=e;return dG(i.toRef(t,"page")),(n,a)=>i.renderSlot(n.$slots,"default")}}),yG=i.defineComponent({__name:"CalendarNavPopover",setup(e){const{navPopoverId:t,color:n,displayMode:a}=us();return(r,s)=>(i.openBlock(),i.createBlock(Df,{id:i.unref(t),class:i.normalizeClass(["vc-nav-popover-container",`vc-${i.unref(n)}`,`vc-${i.unref(a)}`])},{default:i.withCtx(({data:o})=>[i.createVNode(l6,{page:o.page},{default:i.withCtx(()=>[i.createVNode(Ci,{name:"nav"},{default:i.withCtx(()=>[i.createVNode(gG)]),_:1})]),_:2},1032,["page"])]),_:1},8,["id","class"]))}}),bG=i.defineComponent({directives:{popover:Zb},components:{CalendarSlot:Ci},props:{day:{type:Object,required:!0}},setup(e){const{locale:t,theme:n,attributeContext:a,dayPopoverId:r,onDayClick:s,onDayMouseenter:o,onDayMouseleave:l,onDayFocusin:d,onDayFocusout:h,onDayKeydown:f}=us(),m=i.computed(()=>e.day),y=i.computed(()=>a.value.getCells(m.value)),g=i.computed(()=>y.value.map(U=>U.data)),v=i.computed(()=>({...m.value,attributes:g.value,attributeCells:y.value}));function _({data:U},{popovers:me}){const{key:be,customData:G,popover:ye}=U;if(!ye)return;const Y=Y5({key:be,customData:G,attribute:U},{...ye},{visibility:ye.label?"hover":"click",placement:"bottom",isInteractive:!ye.label});me.splice(0,0,Y)}const k=i.computed(()=>{const U={...n.value.prepareRender({}),popovers:[]};return y.value.forEach(me=>{n.value.render(me,U),_(me,U)}),U}),x=i.computed(()=>k.value.highlights),M=i.computed(()=>!!$a(x.value)),B=i.computed(()=>k.value.content),C=i.computed(()=>k.value.dots),V=i.computed(()=>!!$a(C.value)),$=i.computed(()=>k.value.bars),N=i.computed(()=>!!$a($.value)),I=i.computed(()=>k.value.popovers),F=i.computed(()=>I.value.map(U=>U.attribute)),q=i6("day-content"),Q=i.computed(()=>["vc-day",...m.value.classes,{"vc-day-box-center-center":!q},{"is-not-in-month":!e.day.inMonth}]),P=i.computed(()=>{let U;m.value.isFocusable?U="0":U="-1";const me=["vc-day-content vc-focusable vc-focus vc-attr",{"vc-disabled":m.value.isDisabled},cs(mo(x.value),"contentClass"),cs(mo(B.value),"class")||""],be={...cs(mo(x.value),"contentStyle"),...cs(mo(B.value),"style")};return{class:me,style:be,tabindex:U,"aria-label":m.value.ariaLabel,"aria-disabled":!!m.value.isDisabled,role:"button"}}),Z=i.computed(()=>({click(U){s(v.value,U)},mouseenter(U){o(v.value,U)},mouseleave(U){l(v.value,U)},focusin(U){d(v.value,U)},focusout(U){h(v.value,U)},keydown(U){f(v.value,U)}})),se=i.computed(()=>$a(I.value)?Y5({id:r.value,data:{day:m,attributes:F.value}},...I.value):null);return{attributes:g,attributeCells:y,bars:$,dayClasses:Q,dayContentProps:P,dayContentEvents:Z,dayPopover:se,glyphs:k,dots:C,hasDots:V,hasBars:N,highlights:x,hasHighlights:M,locale:t,popovers:I}}}),vG={key:0,class:"vc-highlights vc-day-layer"},_G={key:1,class:"vc-day-layer vc-day-box-center-bottom"},wG={class:"vc-dots"},kG={key:2,class:"vc-day-layer vc-day-box-center-bottom"},CG={class:"vc-bars"};function xG(e,t,n,a,r,s){const o=i.resolveComponent("CalendarSlot"),l=i.resolveDirective("popover");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(e.dayClasses)},[e.hasHighlights?(i.openBlock(),i.createElementBlock("div",vG,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.highlights,({key:d,wrapperClass:h,class:f,style:m})=>(i.openBlock(),i.createElementBlock("div",{key:d,class:i.normalizeClass(h)},[i.createElementVNode("div",{class:i.normalizeClass(f),style:i.normalizeStyle(m)},null,6)],2))),128))])):i.createCommentVNode("",!0),i.createVNode(o,{name:"day-content",day:e.day,attributes:e.attributes,"attribute-cells":e.attributeCells,dayProps:e.dayContentProps,dayEvents:e.dayContentEvents,locale:e.locale},{default:i.withCtx(()=>[i.withDirectives((i.openBlock(),i.createElementBlock("div",i.mergeProps(e.dayContentProps,i.toHandlers(e.dayContentEvents,!0)),[i.createTextVNode(i.toDisplayString(e.day.label),1)],16)),[[l,e.dayPopover]])]),_:1},8,["day","attributes","attribute-cells","dayProps","dayEvents","locale"]),e.hasDots?(i.openBlock(),i.createElementBlock("div",_G,[i.createElementVNode("div",wG,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.dots,({key:d,class:h,style:f})=>(i.openBlock(),i.createElementBlock("span",{key:d,class:i.normalizeClass(h),style:i.normalizeStyle(f)},null,6))),128))])])):i.createCommentVNode("",!0),e.hasBars?(i.openBlock(),i.createElementBlock("div",kG,[i.createElementVNode("div",CG,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.bars,({key:d,class:h,style:f})=>(i.openBlock(),i.createElementBlock("span",{key:d,class:i.normalizeClass(h),style:i.normalizeStyle(f)},null,6))),128))])])):i.createCommentVNode("",!0)],2)}const SG=_r(bG,[["render",xG]]),BG={class:"vc-weekdays"},MG=["onClick"],EG={inheritAttrs:!1},OG=i.defineComponent({...EG,__name:"CalendarPage",setup(e){const{page:t}=o6(),{onWeeknumberClick:n}=us();return(a,r)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["vc-pane",`row-${i.unref(t).row}`,`row-from-end-${i.unref(t).rowFromEnd}`,`column-${i.unref(t).column}`,`column-from-end-${i.unref(t).columnFromEnd}`]),ref:"pane"},[i.createVNode(r6,{page:i.unref(t),"is-lg":"","hide-arrows":""},null,8,["page"]),i.createElementVNode("div",{class:i.normalizeClass(["vc-weeks",{[`vc-show-weeknumbers-${i.unref(t).weeknumberPosition}`]:i.unref(t).weeknumberPosition}])},[i.createElementVNode("div",BG,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(t).weekdays,({weekday:s,label:o},l)=>(i.openBlock(),i.createElementBlock("div",{key:l,class:i.normalizeClass(`vc-weekday vc-weekday-${s}`)},i.toDisplayString(o),3))),128))]),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(t).viewWeeks,s=>(i.openBlock(),i.createElementBlock("div",{key:`weeknumber-${s.weeknumber}`,class:"vc-week"},[i.unref(t).weeknumberPosition?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["vc-weeknumber",`is-${i.unref(t).weeknumberPosition}`])},[i.createElementVNode("span",{class:i.normalizeClass(["vc-weeknumber-content"]),onClick:o=>i.unref(n)(s,o)},i.toDisplayString(s.weeknumberDisplay),9,MG)],2)):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.days,o=>(i.openBlock(),i.createBlock(SG,{key:o.id,day:o},null,8,["day"]))),128))]))),128))],2)],2))}}),DG=i.defineComponent({components:{CalendarHeader:r6,CalendarPage:OG,CalendarNavPopover:yG,CalendarDayPopover:Pq,CalendarPageProvider:l6,CalendarSlot:Ci},props:Mq,emit:Eq,setup(e,{emit:t,slots:n}){return Oq(e,{emit:t,slots:n})}}),VG={class:"vc-pane-header-wrapper"};function $G(e,t,n,a,r,s){const o=i.resolveComponent("CalendarHeader"),l=i.resolveComponent("CalendarPage"),d=i.resolveComponent("CalendarSlot"),h=i.resolveComponent("CalendarPageProvider"),f=i.resolveComponent("CalendarDayPopover"),m=i.resolveComponent("CalendarNavPopover");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",i.mergeProps({"data-helptext":"Press the arrow keys to navigate by day, Home and End to navigate to week ends, PageUp and PageDown to navigate by month, Alt+PageUp and Alt+PageDown to navigate by year"},e.$attrs,{class:["vc-container",`vc-${e.view}`,`vc-${e.color}`,`vc-${e.displayMode}`,{"vc-expanded":e.expanded,"vc-bordered":!e.borderless,"vc-transparent":e.transparent}],onMouseup:t[0]||(t[0]=i.withModifiers(()=>{},["prevent"])),ref:"containerRef"}),[i.createElementVNode("div",{class:i.normalizeClass(["vc-pane-container",{"in-transition":e.inTransition}])},[i.createElementVNode("div",VG,[e.firstPage?(i.openBlock(),i.createBlock(o,{key:0,page:e.firstPage,"is-lg":"","hide-title":""},null,8,["page"])):i.createCommentVNode("",!0)]),i.createVNode(i.Transition,{name:`vc-${e.transitionName}`,onBeforeEnter:e.onTransitionBeforeEnter,onAfterEnter:e.onTransitionAfterEnter},{default:i.withCtx(()=>[(i.openBlock(),i.createElementBlock("div",{key:e.pages[0].id,class:"vc-pane-layout",style:i.normalizeStyle({gridTemplateColumns:`repeat(${e.columns}, 1fr)`})},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.pages,y=>(i.openBlock(),i.createBlock(h,{key:y.id,page:y},{default:i.withCtx(()=>[i.createVNode(d,{name:"page",page:y},{default:i.withCtx(()=>[i.createVNode(l)]),_:2},1032,["page"])]),_:2},1032,["page"]))),128))],4))]),_:1},8,["name","onBeforeEnter","onAfterEnter"]),i.createVNode(d,{name:"footer"})],2)],16),i.createVNode(f),i.createVNode(m)],64)}const TG=_r(DG,[["render",$G]]),c6=Symbol("__vc_date_picker_context__"),IG={...Qb,mode:{type:String,default:"date"},modelValue:{type:[Number,String,Date,Object]},modelModifiers:{type:Object,default:()=>({})},rules:[String,Object],is24hr:Boolean,hideTimeHeader:Boolean,timeAccuracy:{type:Number,default:2},isRequired:Boolean,isRange:Boolean,updateOnInput:{type:Boolean,default:()=>br("datePicker.updateOnInput")},inputDebounce:{type:Number,default:()=>br("datePicker.inputDebounce")},popover:{type:[Boolean,Object],default:!0},dragAttribute:Object,selectAttribute:Object,attributes:[Object,Array]},AG=["update:modelValue","drag","dayclick","daykeydown","popover-will-show","popover-did-show","popover-will-hide","popover-did-hide"];function NG(e,{emit:t,slots:n}){n6(n,{footer:"dp-footer"});const a=e6(e),{locale:r,masks:s,disabledAttribute:o}=a,l=i.ref(!1),d=i.ref(Symbol()),h=i.ref(null),f=i.ref(null),m=i.ref(["",""]),y=i.ref(null),g=i.ref(null);let v,_,k=!0;const x=i.computed(()=>e.isRange||e.modelModifiers.range===!0),M=i.computed(()=>x.value&&h.value!=null?h.value.start:null),B=i.computed(()=>x.value&&h.value!=null?h.value.end:null),C=i.computed(()=>e.mode.toLowerCase()==="date"),V=i.computed(()=>e.mode.toLowerCase()==="datetime"),$=i.computed(()=>e.mode.toLowerCase()==="time"),N=i.computed(()=>!!f.value),I=i.computed(()=>{let T="date";e.modelModifiers.number&&(T="number"),e.modelModifiers.string&&(T="string");const K=s.value.modelValue||"iso";return de({type:T,mask:K})}),F=i.computed(()=>Ve(f.value??h.value)),q=i.computed(()=>$.value?e.is24hr?s.value.inputTime24hr:s.value.inputTime:V.value?e.is24hr?s.value.inputDateTime24hr:s.value.inputDateTime:s.value.input),Q=i.computed(()=>/[Hh]/g.test(q.value)),P=i.computed(()=>/[dD]{1,2}|Do|W{1,4}|M{1,4}|YY(?:YY)?/g.test(q.value)),Z=i.computed(()=>{if(Q.value&&P.value)return"dateTime";if(P.value)return"date";if(Q.value)return"time"}),se=i.computed(()=>{var T;const K=((T=y.value)==null?void 0:T.$el.previousElementSibling)??void 0;return oc({},e.popover,br("datePicker.popover"),{target:K})}),U=i.computed(()=>qb({...se.value,id:d.value})),me=i.computed(()=>x.value?{start:m.value[0],end:m.value[1]}:m.value[0]),be=i.computed(()=>{const T=["start","end"].map(K=>({input:lt(K),change:ae(K),keyup:xe,...e.popover&&U.value}));return x.value?{start:T[0],end:T[1]}:T[0]}),G=i.computed(()=>{if(!Ye(h.value))return null;const T={key:"select-drag",...e.selectAttribute,dates:h.value,pinPage:!0},{dot:K,bar:le,highlight:Me,content:et}=T;return!K&&!le&&!Me&&!et&&(T.highlight=!0),T}),ye=i.computed(()=>{if(!x.value||!Ye(f.value))return null;const T={key:"select-drag",...e.dragAttribute,dates:f.value},{dot:K,bar:le,highlight:Me,content:et}=T;return!K&&!le&&!Me&&!et&&(T.highlight={startEnd:{fillMode:"outline"}}),T}),Y=i.computed(()=>{const T=ki(e.attributes)?[...e.attributes]:[];return ye.value?T.unshift(ye.value):G.value&&T.unshift(G.value),T}),ee=i.computed(()=>de(e.rules==="auto"?ue():e.rules??{}));function ue(){const T={ms:[0,999],sec:[0,59],min:[0,59],hr:[0,23]},K=C.value?0:e.timeAccuracy;return[0,1].map(le=>{switch(K){case 0:return{hours:T.hr[le],minutes:T.min[le],seconds:T.sec[le],milliseconds:T.ms[le]};case 1:return{minutes:T.min[le],seconds:T.sec[le],milliseconds:T.ms[le]};case 3:return{milliseconds:T.ms[le]};case 4:return{};default:return{seconds:T.sec[le],milliseconds:T.ms[le]}}})}function de(T){return ki(T)?T.length===1?[T[0],T[0]]:T:[T,T]}function _e(T){return de(T).map((K,le)=>({...K,rules:ee.value[le]}))}function ge(T){return T==null?!1:Ui(T)?!isNaN(T):go(T)?!isNaN(T.getTime()):ua(T)?T!=="":xf(T)}function De(T){return Va(T)&&"start"in T&&"end"in T&&ge(T.start??null)&&ge(T.end??null)}function Ye(T){return De(T)||ge(T)}function Ne(T,K){if(T==null&&K==null)return!0;if(T==null||K==null)return!1;const le=go(T),Me=go(K);return le&&Me?T.getTime()===K.getTime():le||Me?!1:Ne(T.start,K.start)&&Ne(T.end,K.end)}function ut(T){return!Ye(T)||!o.value?!1:o.value.intersectsRange(r.value.range(T))}function _t(T,K,le,Me){if(!Ye(T))return null;if(De(T)){const et=r.value.toDate(T.start,{...K[0],fillDate:M.value??void 0,patch:le}),mt=r.value.toDate(T.end,{...K[1],fillDate:B.value??void 0,patch:le});return mn({start:et,end:mt},Me)}return r.value.toDateOrNull(T,{...K[0],fillDate:h.value,patch:le})}function ft(T,K){return De(T)?{start:r.value.fromDate(T.start,K[0]),end:r.value.fromDate(T.end,K[1])}:x.value?null:r.value.fromDate(T,K[0])}function it(T,K={}){return clearTimeout(v),new Promise(le=>{const{debounce:Me=0,...et}=K;Me>0?v=window.setTimeout(()=>{le(Ze(T,et))},Me):le(Ze(T,et))})}function Ze(T,{config:K=I.value,patch:le="dateTime",clearIfEqual:Me=!1,formatInput:et=!0,hidePopover:mt=!1,dragging:Tt=N.value,targetPriority:ln,moveToValue:Jt=!1}={}){const Kn=_e(K);let wt=_t(T,Kn,le,ln);if(ut(wt)){if(Tt)return null;wt=h.value,mt=!1}else wt==null&&e.isRequired?wt=h.value:wt!=null&&Ne(h.value,wt)&&Me&&(wt=null);const Vn=Tt?f:h,oi=!Ne(Vn.value,wt);Vn.value=wt,Tt||(f.value=null);const qi=ft(wt,I.value);return oi&&(k=!1,t(Tt?"drag":"update:modelValue",qi),i.nextTick(()=>k=!0)),mt&&!Tt&&Ge(),et&&Qe(),Jt&&i.nextTick(()=>j(ln??"start")),qi}function Qe(){i.nextTick(()=>{const T=_e({type:"string",mask:q.value}),K=ft(f.value??h.value,T);x.value?m.value=[K&&K.start,K&&K.end]:m.value=[K,""]})}function Dt(T,K,le){m.value.splice(K==="start"?0:1,1,T);const Me=x.value?{start:m.value[0],end:m.value[1]||m.value[0]}:T,et={type:"string",mask:q.value};it(Me,{...le,config:et,patch:Z.value,targetPriority:K,moveToValue:!0})}function lt(T){return K=>{e.updateOnInput&&Dt(K.currentTarget.value,T,{formatInput:!1,hidePopover:!1,debounce:e.inputDebounce})}}function ae(T){return K=>{Dt(K.currentTarget.value,T,{formatInput:!0,hidePopover:!1})}}function xe(T){T.key==="Escape"&&it(h.value,{formatInput:!0,hidePopover:!0})}function Ve(T){return x.value?[T&&T.start?r.value.getDateParts(T.start):null,T&&T.end?r.value.getDateParts(T.end):null]:[T?r.value.getDateParts(T):null]}function ze(){f.value=null,Qe()}function Fe(T){t("popover-will-show",T)}function pt(T){t("popover-did-show",T)}function Bt(T){ze(),t("popover-will-hide",T)}function Vt(T){t("popover-did-hide",T)}function Mt(T){const K={patch:"date",formatInput:!0,hidePopover:!0};if(x.value){const le=!N.value;le?_={start:T.startDate,end:T.endDate}:_!=null&&(_.end=T.date),it(_,{...K,dragging:le})}else it(T.date,{...K,clearIfEqual:!e.isRequired})}function nn(T,K){Mt(T),t("dayclick",T,K)}function $t(T,K){switch(K.key){case" ":case"Enter":{Mt(T),K.preventDefault();break}case"Escape":Ge()}t("daykeydown",T,K)}function he(T,K){!N.value||_==null||(_.end=T.date,it(mn(_),{patch:"date",formatInput:!0}))}function Le(T={}){Mf({...se.value,...T,isInteractive:!0,id:d.value})}function Ge(T={}){uc({hideDelay:10,force:!0,...se.value,...T,id:d.value})}function on(T){Ub({...se.value,...T,isInteractive:!0,id:d.value})}function mn(T,K){const{start:le,end:Me}=T;if(le>Me)switch(K){case"start":return{start:le,end:le};case"end":return{start:Me,end:Me};default:return{start:Me,end:le}}return{start:le,end:Me}}async function _n(T,K={}){return g.value==null?!1:g.value.move(T,K)}async function J(T,K={}){return g.value==null?!1:g.value.moveBy(T,K)}async function j(T,K={}){const le=h.value;if(g.value==null||!Ye(le))return!1;const Me=T!=="end",et=Me?1:-1,mt=De(le)?Me?le.start:le.end:le,Tt=kb(mt,"monthly",r.value);return g.value.move(Tt,{position:et,...K})}i.watch(()=>e.isRange,T=>{T&&console.warn("The `is-range` prop will be deprecated in future releases. Please use the `range` modifier.")},{immediate:!0}),i.watch(()=>x.value,()=>{Ze(null,{formatInput:!0})}),i.watch(()=>q.value,()=>Qe()),i.watch(()=>e.modelValue,T=>{k&&Ze(T,{formatInput:!0,hidePopover:!1})}),i.watch(()=>ee.value,()=>{Va(e.rules)&&Ze(e.modelValue,{formatInput:!0,hidePopover:!1})}),i.watch(()=>e.timezone,()=>{Ze(h.value,{formatInput:!0})});const pe=de(I.value);h.value=_t(e.modelValue??null,pe,"dateTime"),i.onMounted(()=>{Ze(e.modelValue,{formatInput:!0,hidePopover:!1})}),i.nextTick(()=>l.value=!0);const R={...a,showCalendar:l,datePickerPopoverId:d,popoverRef:y,popoverEvents:U,calendarRef:g,isRange:x,isTimeMode:$,isDateTimeMode:V,is24hr:i.toRef(e,"is24hr"),hideTimeHeader:i.toRef(e,"hideTimeHeader"),timeAccuracy:i.toRef(e,"timeAccuracy"),isDragging:N,inputValue:me,inputEvents:be,dateParts:F,attributes:Y,rules:ee,move:_n,moveBy:J,moveToValue:j,updateValue:it,showPopover:Le,hidePopover:Ge,togglePopover:on,onDayClick:nn,onDayKeydown:$t,onDayMouseEnter:he,onPopoverBeforeShow:Fe,onPopoverAfterShow:pt,onPopoverBeforeHide:Bt,onPopoverAfterHide:Vt};return i.provide(c6,R),R}function Vf(){const e=i.inject(c6);if(e)return e;throw new Error("DatePicker context missing. Please verify this component is nested within a valid context provider.")}const zG=[{value:0,label:"12"},{value:1,label:"1"},{value:2,label:"2"},{value:3,label:"3"},{value:4,label:"4"},{value:5,label:"5"},{value:6,label:"6"},{value:7,label:"7"},{value:8,label:"8"},{value:9,label:"9"},{value:10,label:"10"},{value:11,label:"11"}],LG=[{value:12,label:"12"},{value:13,label:"1"},{value:14,label:"2"},{value:15,label:"3"},{value:16,label:"4"},{value:17,label:"5"},{value:18,label:"6"},{value:19,label:"7"},{value:20,label:"8"},{value:21,label:"9"},{value:22,label:"10"},{value:23,label:"11"}];function PG(e){const t=Vf(),{locale:n,isRange:a,isTimeMode:r,dateParts:s,rules:o,is24hr:l,hideTimeHeader:d,timeAccuracy:h,updateValue:f}=t;function m(P){P=Object.assign(g.value,P);let Z=null;if(a.value){const se=y.value?P:s.value[0],U=y.value?s.value[1]:P;Z={start:se,end:U}}else Z=P;f(Z,{patch:"time",targetPriority:y.value?"start":"end",moveToValue:!0})}const y=i.computed(()=>e.position===0),g=i.computed(()=>s.value[e.position]||{isValid:!1}),v=i.computed(()=>xf(g.value)),_=i.computed(()=>!!g.value.isValid),k=i.computed(()=>!d.value&&_.value),x=i.computed(()=>{if(!v.value)return null;let P=n.value.toDate(g.value);return g.value.hours===24&&(P=new Date(P.getTime()-1)),P}),M=i.computed({get(){return g.value.hours},set(P){m({hours:P})}}),B=i.computed({get(){return g.value.minutes},set(P){m({minutes:P})}}),C=i.computed({get(){return g.value.seconds},set(P){m({seconds:P})}}),V=i.computed({get(){return g.value.milliseconds},set(P){m({milliseconds:P})}}),$=i.computed({get(){return g.value.hours<12},set(P){P=String(P).toLowerCase()=="true";let Z=M.value;P&&Z>=12?Z-=12:!P&&Z<12&&(Z+=12),m({hours:Z})}}),N=i.computed(()=>lq(g.value,o.value[e.position])),I=i.computed(()=>zG.filter(P=>N.value.hours.some(Z=>Z.value===P.value))),F=i.computed(()=>LG.filter(P=>N.value.hours.some(Z=>Z.value===P.value))),q=i.computed(()=>l.value?N.value.hours:$.value?I.value:F.value),Q=i.computed(()=>{const P=[];return $a(I.value)&&P.push({value:!0,label:"AM"}),$a(F.value)&&P.push({value:!1,label:"PM"}),P});return{...t,showHeader:k,timeAccuracy:h,parts:g,isValid:_,date:x,hours:M,minutes:B,seconds:C,milliseconds:V,options:N,hourOptions:q,isAM:$,isAMOptions:Q,is24hr:l}}const FG=["value"],RG=["value","disabled"],HG={key:1,class:"vc-base-sizer","aria-hidden":"true"},WG={inheritAttrs:!1},hc=i.defineComponent({...WG,__name:"BaseSelect",props:{options:null,modelValue:null,alignRight:{type:Boolean},alignLeft:{type:Boolean},showIcon:{type:Boolean},fitContent:{type:Boolean}},emits:["update:modelValue"],setup(e){const t=e,n=i.computed(()=>{const a=t.options.find(r=>r.value===t.modelValue);return a==null?void 0:a.label});return(a,r)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["vc-base-select",{"vc-fit-content":e.fitContent,"vc-has-icon":e.showIcon}])},[i.createElementVNode("select",i.mergeProps(a.$attrs,{value:e.modelValue,class:["vc-focus",{"vc-align-right":e.alignRight,"vc-align-left":e.alignLeft}],onChange:r[0]||(r[0]=s=>a.$emit("update:modelValue",s.target.value))}),[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.options,s=>(i.openBlock(),i.createElementBlock("option",{key:s.value,value:s.value,disabled:s.disabled},i.toDisplayString(s.label),9,RG))),128))],16,FG),e.showIcon?(i.openBlock(),i.createBlock(wo,{key:0,name:"ChevronDown",size:"18"})):i.createCommentVNode("",!0),e.fitContent?(i.openBlock(),i.createElementBlock("div",HG,i.toDisplayString(i.unref(n)),1)):i.createCommentVNode("",!0)],2))}}),YG={key:0,class:"vc-time-header"},jG={class:"vc-time-weekday"},UG={class:"vc-time-month"},qG={class:"vc-time-day"},GG={class:"vc-time-year"},KG={class:"vc-time-select-group"},ZG=i.createElementVNode("span",{class:"vc-time-colon"},":",-1),XG=i.createElementVNode("span",{class:"vc-time-colon"},":",-1),JG=i.createElementVNode("span",{class:"vc-time-decimal"},".",-1),d6=i.defineComponent({__name:"TimePicker",props:{position:null},setup(e,{expose:t}){const a=PG(e);t(a);const{locale:r,isValid:s,date:o,hours:l,minutes:d,seconds:h,milliseconds:f,options:m,hourOptions:y,isTimeMode:g,isAM:v,isAMOptions:_,is24hr:k,showHeader:x,timeAccuracy:M}=a;return(B,C)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["vc-time-picker",[{"vc-invalid":!i.unref(s),"vc-attached":!i.unref(g)}]])},[i.createVNode(Ci,{name:"time-header"},{default:i.withCtx(()=>[i.unref(x)&&i.unref(o)?(i.openBlock(),i.createElementBlock("div",YG,[i.createElementVNode("span",jG,i.toDisplayString(i.unref(r).formatDate(i.unref(o),"WWW")),1),i.createElementVNode("span",UG,i.toDisplayString(i.unref(r).formatDate(i.unref(o),"MMM")),1),i.createElementVNode("span",qG,i.toDisplayString(i.unref(r).formatDate(i.unref(o),"D")),1),i.createElementVNode("span",GG,i.toDisplayString(i.unref(r).formatDate(i.unref(o),"YYYY")),1)])):i.createCommentVNode("",!0)]),_:1}),i.createElementVNode("div",KG,[i.createVNode(wo,{name:"Clock",size:"17"}),i.createVNode(hc,{modelValue:i.unref(l),"onUpdate:modelValue":C[0]||(C[0]=V=>i.isRef(l)?l.value=V:null),modelModifiers:{number:!0},options:i.unref(y),class:"vc-time-select-hours","align-right":""},null,8,["modelValue","options"]),i.unref(M)>1?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[ZG,i.createVNode(hc,{modelValue:i.unref(d),"onUpdate:modelValue":C[1]||(C[1]=V=>i.isRef(d)?d.value=V:null),modelModifiers:{number:!0},options:i.unref(m).minutes,class:"vc-time-select-minutes","align-left":i.unref(M)===2},null,8,["modelValue","options","align-left"])],64)):i.createCommentVNode("",!0),i.unref(M)>2?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[XG,i.createVNode(hc,{modelValue:i.unref(h),"onUpdate:modelValue":C[2]||(C[2]=V=>i.isRef(h)?h.value=V:null),modelModifiers:{number:!0},options:i.unref(m).seconds,class:"vc-time-select-seconds","align-left":i.unref(M)===3},null,8,["modelValue","options","align-left"])],64)):i.createCommentVNode("",!0),i.unref(M)>3?(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[JG,i.createVNode(hc,{modelValue:i.unref(f),"onUpdate:modelValue":C[3]||(C[3]=V=>i.isRef(f)?f.value=V:null),modelModifiers:{number:!0},options:i.unref(m).milliseconds,class:"vc-time-select-milliseconds","align-left":""},null,8,["modelValue","options"])],64)):i.createCommentVNode("",!0),i.unref(k)?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(hc,{key:3,modelValue:i.unref(v),"onUpdate:modelValue":C[4]||(C[4]=V=>i.isRef(v)?v.value=V:null),options:i.unref(_)},null,8,["modelValue","options"]))])],2))}}),u6=i.defineComponent({__name:"DatePickerBase",setup(e){const{attributes:t,calendarRef:n,color:a,displayMode:r,isDateTimeMode:s,isTimeMode:o,isRange:l,onDayClick:d,onDayMouseEnter:h,onDayKeydown:f}=Vf(),m=l.value?[0,1]:[0];return(y,g)=>i.unref(o)?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(`vc-container vc-bordered vc-${i.unref(a)} vc-${i.unref(r)}`)},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(m),v=>(i.openBlock(),i.createBlock(d6,{key:v,position:v},null,8,["position"]))),128))],2)):(i.openBlock(),i.createBlock(TG,{key:1,attributes:i.unref(t),ref_key:"calendarRef",ref:n,onDayclick:i.unref(d),onDaymouseenter:i.unref(h),onDaykeydown:i.unref(f)},{footer:i.withCtx(()=>[i.unref(s)?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(i.unref(m),v=>(i.openBlock(),i.createBlock(d6,{key:v,position:v},null,8,["position"]))),128)):i.createCommentVNode("",!0),i.createVNode(Ci,{name:"dp-footer"})]),_:1},8,["attributes","onDayclick","onDaymouseenter","onDaykeydown"]))}}),QG={inheritAttrs:!1},eK=i.defineComponent({...QG,__name:"DatePickerPopover",setup(e){const{datePickerPopoverId:t,color:n,displayMode:a,popoverRef:r,onPopoverBeforeShow:s,onPopoverAfterShow:o,onPopoverBeforeHide:l,onPopoverAfterHide:d}=Vf();return(h,f)=>(i.openBlock(),i.createBlock(Df,{id:i.unref(t),placement:"bottom-start",class:i.normalizeClass(`vc-date-picker-content vc-${i.unref(n)} vc-${i.unref(a)}`),ref_key:"popoverRef",ref:r,onBeforeShow:i.unref(s),onAfterShow:i.unref(o),onBeforeHide:i.unref(l),onAfterHide:i.unref(d)},{default:i.withCtx(()=>[i.createVNode(u6,i.normalizeProps(i.guardReactiveProps(h.$attrs)),null,16)]),_:1},8,["id","class","onBeforeShow","onAfterShow","onBeforeHide","onAfterHide"]))}}),tK=i.defineComponent({inheritAttrs:!1,emits:AG,props:IG,components:{DatePickerBase:u6,DatePickerPopover:eK},setup(e,t){const n=NG(e,t),a=i.reactive(lb(n,"calendarRef","popoverRef"));return{...n,slotCtx:a}}});function nK(e,t,n,a,r,s){const o=i.resolveComponent("DatePickerPopover"),l=i.resolveComponent("DatePickerBase");return e.$slots.default?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.renderSlot(e.$slots,"default",i.normalizeProps(i.guardReactiveProps(e.slotCtx))),i.createVNode(o,i.normalizeProps(i.guardReactiveProps(e.$attrs)),null,16)],64)):(i.openBlock(),i.createBlock(l,i.normalizeProps(i.mergeProps({key:1},e.$attrs)),null,16))}const iK=_r(tK,[["render",nK]]),ko=e=>/^(19|20)\d\d-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$/.test(e),$f={name:"CdsInlineDateInput",components:{VDatePicker:iK,CdsChevron:Ai,CdsIcon:ve},props:{modelValue:{type:[String,Object],default:"",validator:e=>e===""||typeof e=="object"||ko(e)},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:e=>e===""||ko(e)},maxDate:{type:String,default:"",validator:e=>e===""||ko(e)},placeholder:{type:String,default:"Selecione uma data"},showTodayDot:{type:Boolean,default:!1},variant:{type:String,default:"green"}},data(){return{sassColorVariables:ai,internalDate:fe.now(),isBeingFocused:!1,inputControl:0,attributes:[{dates:fe.now().toJSDate(),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 e="";return this.disabled?this.fluid?"inline-date-input--disabled inline-date-input--fluid":"inline-date-input--disabled":(e+=this.fluid?" date-input--fluid":" date-input",e)},inputClass(){let e="";return this.disabled?this.fluid?"date-input--disabled date-input--fluid":"date-input--disabled":(e+=this.fluid?" date-input--fluid":" date-input",e)},inlineCalendarDotColor(){return this.variantColorData.colorData[4].shade},inlineCalendarTextColor(){return this.variantColorData.colorData[7].shade},inlineCalendarTrailColor(){return this.variantColorData.colorData[1].shade}},watch:{modelValue(e,t){e!==t&&this.resolveInternalDate()},variant(e,t){e!==t&&this.updateColorData()}},created(){this.updateColorData()},mounted(){this.resolveInternalDate()},methods:{paleteBuilder:sa,updateColorData(){this.variantColorData=this.paleteBuilder(ai.palete).find(e=>e.variantName.toLowerCase()===this.variant)},handleUpdateInput(e){if(this.range){this.$emit("update:modelValue",e.start&&e.end?{start:fe.fromJSDate(e.start).toFormat("yyyy-MM-dd"),end:fe.fromJSDate(e.end).toFormat("yyyy-MM-dd")}:"");return}this.$emit("update:modelValue",e?fe.fromJSDate(e).toFormat("yyyy-MM-dd"):"")},resolveInternalDate(){if(!this.modelValue){this.internalDate=this.range?null:"";return}if(this.range){this.internalDate=ko(this.modelValue.start)&&ko(this.modelValue.end)?{start:fe.fromFormat(this.modelValue.start,"yyyy-MM-dd"),end:fe.fromFormat(this.modelValue.end,"yyyy-MM-dd")}:{start:fe.now(),end:fe.now()};return}this.internalDate=ko(this.modelValue)?fe.fromFormat(this.modelValue,"yyyy-MM-dd"):fe.now()},resolveInputValue(e){return typeof e!="object"?e:!e.start&&!e.end||Et.isEmpty(e)?null:`${e.start} a ${e.end}`}}},h6=()=>{i.useCssVars(e=>({"758c10d6":e.inlineCalendarTrailColor,"5d15df3d":e.inlineCalendarTextColor,"001731b3":e.inlineCalendarDotColor}))},f6=$f.setup;$f.setup=f6?(e,t)=>(h6(),f6(e,t)):h6;const aK={key:0},rK={key:1,class:"inline-date-input__label"},sK={class:"label__content",for:"cds-text-input"},oK=["value","disabled","placeholder","onClick"],lK={class:"inline-date-input__icon"};function cK(e,t,n,a,r,s){const o=i.resolveComponent("CdsChevron"),l=i.resolveComponent("CdsIcon"),d=i.resolveComponent("v-date-picker");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["inline-date-input__container",s.dateInputClassContainer])},[i.createElementVNode("span",null,[s.hasSlots?(i.openBlock(),i.createElementBlock("span",aK,[i.renderSlot(e.$slots,"label",{},void 0,!0)])):(i.openBlock(),i.createElementBlock("label",rK,[i.createElementVNode("div",sK,[i.createElementVNode("span",null,i.toDisplayString(s.capitalizedLabel)+": ",1)])]))]),i.createVNode(d,{id:"cds--inline-date-input",modelValue:r.internalDate,"onUpdate:modelValue":[t[2]||(t[2]=h=>r.internalDate=h),s.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?r.attributes:{},color:n.variant,"is-range":n.range},{"header-left-button":i.withCtx(({page:h})=>[i.createVNode(o,{direction:"left",onClick:f=>h.movePrevMonth()},null,8,["onClick"])]),"header-right-button":i.withCtx(({page:h})=>[i.createVNode(o,{direction:"right",onClick:f=>h.moveNextMonth()},null,8,["onClick"])]),default:i.withCtx(({inputValue:h,togglePopover:f,inputEvents:m})=>[i.createElementVNode("div",{class:i.normalizeClass(s.inputClass)},[i.createElementVNode("input",i.mergeProps({value:s.resolveInputValue(h),disabled:n.disabled,placeholder:n.placeholder,type:"text"},i.toHandlers(m,!0),{onClick:f,onFocus:t[0]||(t[0]=y=>r.isBeingFocused=!0),onBlur:t[1]||(t[1]=y=>r.isBeingFocused=!1)}),null,16,oK),i.createElementVNode("div",lK,[i.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 dK=ie($f,[["render",cK],["__scopeId","data-v-75465d52"]]),uK=["onClick"],hK={key:1,class:"list__body"},fK={class:"list__content"},pK={class:"list__actions"},mK={key:1},gK=ie(Object.assign({name:"CdsList"},{__name:"List",props:{items:{type:Array,required:!0,default:()=>[]},variant:{type:String,default:"blue",validator:e=>Ma.includes(e)},clickable:{type:Boolean,default:!1},padding:{type:String,default:"7, 3"}},emits:["click"],setup(e,{emit:t}){i.useCssVars(d=>({"62bad1be":o.value,d06833ae:s.value}));const{isMobile:n}=au(),a=t,r=e,s=i.computed(()=>r.clickable?"pointer":""),o=i.computed(()=>{const[d,h]=r.padding.replace(" ","").split(",");return`${d*4}px ${h*4}px`});function l(d){!r.clickable&&!n.value||a("click",d)}return(d,h)=>(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.items,(f,m)=>(i.openBlock(),i.createElementBlock("div",{key:m,class:"list",onClick:y=>l(f)},[i.unref(is)("item")?i.renderSlot(d.$slots,"item",{key:0,item:f},void 0,!0):(i.openBlock(),i.createElementBlock("div",hK,[i.createElementVNode("div",{class:i.normalizeClass(["list__title",`list__title--${e.variant}`])},i.toDisplayString(f.title),3),i.createElementVNode("div",fK,i.toDisplayString(f.content),1)])),i.createElementVNode("div",pK,[i.unref(n)?(i.openBlock(),i.createBlock(ve,{key:0,height:"24",width:"24",name:"caret-right-outline"})):(i.openBlock(),i.createElementBlock("div",mK,[i.renderSlot(d.$slots,"actions",{item:f},void 0,!0)]))])],8,uK))),128))}}),[["__scopeId","data-v-0dd256aa"]]),yK={name:"CdsLoadingBar"};function bK(e,t,n,a,r,s){return i.openBlock(),i.createElementBlock("div",null,t[0]||(t[0]=[i.createElementVNode("div",{class:"loading-bar__container"},[i.createElementVNode("div",{class:"loading-bar"})],-1)]))}const vK=ie(yK,[["render",bK],["__scopeId","data-v-af317d48"]]),_K=ie(Object.assign({name:"CdsLoadingIndicator"},{__name:"LoadingIndicator",props:{modelValue:{type:Boolean,default:!1,required:!0},variant:{type:String,default:"green"},intervalTime:{type:Number,default:500}},setup(e){i.useCssVars(h=>({"56212edc":a.value,"4b6f832e":s.value,"0a6e8282":r.value}));const t=e,n=i.ref(0),a=i.computed(()=>`${n.value}%`),r=i.computed(()=>n.value===0?"none":"width 0.5s"),s=i.computed(()=>ns("smartphone")||ns("tablet")?"4px":"3px");i.watch(()=>t.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()*(t.intervalTime*1.4-t.intervalTime*.5)+t.intervalTime*.5);setTimeout(l,h)}}function d(){n.value=100,setTimeout(()=>{n.value=0},600)}return(h,f)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(`loading-indicator--${e.variant}`)},null,2))}}),[["__scopeId","data-v-16e128bf"]]),wK={class:"mobile-navbar"},kK={class:"mobile-navbar__items"},CK={key:0,class:"mobile-navbar__item-text"},xK=ie(Object.assign({name:"CdsMobileNavbar"},{__name:"MobileNavbar",props:{items:{type:Array,required:!0,validator:e=>e.length>0&&e.lenght<=5&&e.every(t=>t.route.path&&t.route.name)},variant:{type:String,default:"green"},showLabel:{type:Boolean,default:!1},activeItem:{type:Object,default:()=>({}),required:!0}},emits:["item-click"],setup(e,{emit:t}){const n=e,a=t,r=i.ref(n.items[0]),s=i.ref(0),o=i.computed(()=>({width:`${100/n.items.length}%`,transform:`translateX(${s.value*100}%)`})),l=i.computed(()=>{let f="";switch(s.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}`)});i.watchEffect(()=>{s.value=n.items.findIndex(f=>f.label===r.value.label)}),i.watch(n.activeItem,f=>{r.value=f}),i.onMounted(()=>r.value=n.activeItem||n.items[0]);function d(f){return f.route.name?{name:f.route.name}:{path:f.route.path}}function h(f){r.value=f,a("item-click",f)}return(f,m)=>{const y=i.resolveComponent("router-link");return i.openBlock(),i.createElementBlock("div",wK,[i.createElementVNode("div",kK,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.items,g=>(i.openBlock(),i.createBlock(y,{key:g,class:"mobile-navbar__item-link",to:d(g),onClick:v=>h(g)},{default:i.withCtx(()=>{var v,_;return[i.createElementVNode("div",{class:i.normalizeClass(["mobile-navbar__item",{"mobile-navbar__item--active":((v=r.value)==null?void 0:v.label)===g.label,[`mobile-navbar__item--active--${e.variant}`]:((_=r.value)==null?void 0:_.label)===g.label}])},[i.createVNode(ve,{height:"20",width:"20",name:g.icon},null,8,["name"]),e.showLabel?(i.openBlock(),i.createElementBlock("div",CK,i.toDisplayString(g.label),1)):i.createCommentVNode("",!0)],2)]}),_:2},1032,["to","onClick"]))),128)),i.createElementVNode("div",{class:i.normalizeClass(l.value),style:i.normalizeStyle(o.value)},null,6)])])}}}),[["__scopeId","data-v-c811e782"]]),SK={class:"mobile-navigation__header"},BK={class:"mobile-navigation__title"},MK={class:"mobile-navigation__sidebar-header"},EK={class:"mobile-navigation__sidebar-logo"},OK=["src"],DK={class:"mobile-navigation__sidebar-content"},VK={class:"mobile-navigation__sidebar-items"},$K={class:"mobile-navigation__sidebar-footer"},TK={class:"mobile-navigation__sidebar-user-text"},IK=ie(Object.assign({name:"CdsMobileNavigation"},{__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(e,{emit:t}){const n=e,a=t,r=i.ref(n.activeItem),s=i.ref(!1),o=i.computed(()=>n.light?"light":"dark"),l=i.computed(()=>{let _=`mobile-navigation mobile-navigation--${o.value}`;return n.sticky&&(_+=" mobile-navigation--sticky"),_});i.watch(s,async(_,k)=>{_!==k&&v(_)}),i.watch(()=>n.activeItem,_=>{r.value=_});const d=()=>{s.value=!0},h=()=>{s.value=!1},f=_=>Et.isEqual(_,r.value),m=_=>{Et.isEmpty(n.activeItem)&&(r.value=_),s.value=!1,a("item-click",_)},y=({route:_,path:k})=>{const x=Et.isEmpty(_)?k:_;return x instanceof String?{path:x}:x},g=_=>y(_)?y(_).path:null,v=_=>{document.body.style.overflow=_?"hidden":"auto"};return(_,k)=>{const x=i.resolveComponent("router-link");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(l.value)},[i.createElementVNode("div",{class:i.normalizeClass(`variant-resolver--${e.variant}`)},[i.createElementVNode("div",SK,[i.createElementVNode("div",BK,i.toDisplayString(r.value.label??""),1),i.createElementVNode("div",{class:"mobile-navigation__menu-btn",onClick:d},[i.createVNode(ve,{name:"menu-outline"})])]),i.createElementVNode("div",{class:i.normalizeClass(["mobile-navigation__sidebar",{"mobile-navigation__sidebar--expanded":s.value}])},[i.createElementVNode("div",MK,[i.createElementVNode("div",EK,[i.renderSlot(_.$slots,"sidebar-logo",{},()=>[i.createElementVNode("img",{src:e.sidebarLogo},null,8,OK)],!0)]),i.createElementVNode("div",{class:"mobile-navigation__sidebar-btn",onClick:h},[i.createVNode(ve,{name:"x-outline"})])]),i.createElementVNode("div",DK,[i.createElementVNode("div",VK,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.items,M=>(i.openBlock(),i.createBlock(x,{key:M.label,to:g(M),class:i.normalizeClass(["mobile-navigation__sidebar-item",{"mobile-navigation__sidebar-item--active":f(M)}]),onClick:B=>m(M)},{default:i.withCtx(()=>[i.createVNode(ve,{name:M.icon,width:"24",height:"24"},null,8,["name"]),i.createElementVNode("span",null,i.toDisplayString(M.label),1)]),_:2},1032,["to","class","onClick"]))),128))]),i.createElementVNode("div",$K,[i.createElementVNode("div",{class:"mobile-navigation__sidebar-user-info",onClick:k[0]||(k[0]=M=>a("profile-click"))},[i.createVNode(ul,{src:e.user.picture??"",name:e.user.name??"",variant:e.variant,size:"lg"},null,8,["src","name","variant"]),i.createElementVNode("div",TK,[i.createElementVNode("p",null,i.toDisplayString(e.user.name??""),1),i.createElementVNode("p",null,i.toDisplayString(e.user.role??""),1)])]),i.createElementVNode("button",{class:"mobile-navigation__sidebar-logout",onClick:k[1]||(k[1]=M=>a("logout"))},[i.createVNode(ve,{name:"logout-outline",width:"24",height:"24"})])])])],2)],2)],2)}}}),[["__scopeId","data-v-bd36da76"]]),AK=["teal","green","blue","indigo","violet","pink","red","orange","amber"],NK={name:"CdsModal",components:{CdsIcon:ve,CdsButton:fn,CdsScrollable:Qc},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:e=>AK.includes(e)},scrollable:{type:Boolean,default:!1}},data(){return{innerValue:!1,tmp:""}},computed:{maxBodyHeight(){return`${window.innerHeight*.9-32*2-68-64}px`}},watch:{modelValue(e){this.innerValue=e}},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")}}},zK={key:0,class:"cds-modal__backdrop"},LK={key:0},PK={class:"cds-modal__header"},FK={key:1,class:"cds-modal__body"},RK={key:1,class:"cds-modal__footer"};function HK(e,t,n,a,r,s){const o=i.resolveComponent("CdsIcon"),l=i.resolveComponent("CdsScrollable"),d=i.resolveComponent("CdsButton"),h=i.resolveDirective("cds-click-outside");return r.innerValue?(i.openBlock(),i.createElementBlock("div",zK,[r.innerValue?i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["cds-modal",`cds-modal--${n.size}`])},[n.noHeader?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("header",LK,[i.renderSlot(e.$slots,"header",{},()=>[i.createElementVNode("div",PK,[i.createElementVNode("h3",null,i.toDisplayString(n.title),1),n.noCloseButton?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:"cds-modal__close-icon",onClick:t[0]||(t[0]=(...f)=>s.closeHandle&&s.closeHandle(...f))},[i.createVNode(o,{name:"x-outline",height:"20",width:"20",color:"#29333D"})]))])],!0)])),i.createElementVNode("section",null,[n.scrollable?(i.openBlock(),i.createBlock(l,{key:0,class:"cds-modal__body"},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3})):(i.openBlock(),i.createElementBlock("div",FK,[i.renderSlot(e.$slots,"default",{},void 0,!0)]))]),n.noFooter?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("footer",RK,[i.renderSlot(e.$slots,"footer",{},()=>[n.noCancelButton?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(d,{key:0,text:n.cancelButtonText,secondary:"",disabled:n.disableCancelButton,onClick:t[1]||(t[1]=f=>n.disableCancelButton?!1:s.cancelHandle())},null,8,["text","disabled"])),i.createVNode(d,{class:"footer__ok-button",text:n.okButtonText,variant:n.actionButtonVariant,disabled:n.disableOkButton,onClick:t[2]||(t[2]=f=>n.disableOkButton?!1:s.okHandle())},null,8,["text","variant","disabled"])],!0)]))],2)),[[h,n.noCloseOnBackdrop?()=>{}:s.closeHandle]]):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)}const p6=ie(NK,[["render",HK],["__scopeId","data-v-4c0e0680"]]),WK={ref:"monthAndYearPicker",class:"month-and-year-picker"},YK={class:"month-and-year-picker__icon"},jK={class:"dropdown__header"},UK=ie(Object.assign({name:"CdsMonthAndYearPicker"},{__name:"MonthAndYearPicker",props:i.mergeModels({label:{type:String,default:"Label"},variant:{type:String,default:"green"},state:{type:String,default:"default"},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1},mobile:{type:Boolean,default:!1},floatingLabel:{type:Boolean,default:!1},placeholder:{type:String,default:"Selecione uma data"},errorMessage:{type:String,default:"Valor inválido"},minDate:{type:String,default:""},maxDate:{type:String,default:""},tooltip:{type:String,default:null},tooltipIcon:{type:String,default:"info-outline"},supportingText:{type:[String,Array],default:""},supportLink:{type:String,default:null},supportLinkUrl:{type:[String,null],default:null}},{modelValue:{type:String},modelModifiers:{}}),emits:["update:modelValue"],setup(e){i.useCssVars(V=>({"3797a7bc":V.dateInputContainerWidth,"7cc24778":i.unref(py),"568f8bce":i.unref(fy)}));const t=i.useModel(e,"modelValue"),n=e,a=i.ref(!1),r=i.ref("down"),s=i.ref(fe.now().setLocale("pt-BR")),{clickedOutside:o,setTargetElement:l}=gy(),d=i.useTemplateRef("monthAndYearPicker"),h=i.computed(()=>s.value.toFormat("yyyy")),f=i.computed(()=>s.value.toFormat("MMMM/yyyy")),m=i.computed(()=>fe.fromFormat(n.minDate,"yyyy-MM-dd").toFormat("yyyy")===h.value?n.minDate:fe.fromFormat(`${h.value}-01-01`,"yyyy-MM-dd").setLocale("pt-BR").toFormat("yyyy-MM-dd")),y=i.computed(()=>fe.fromFormat(n.maxDate,"yyyy-MM-dd").toFormat("yyyy")===h.value?n.maxDate:fe.fromFormat(`${h.value}-12-31`,"yyyy-MM-dd").setLocale("pt-BR").toFormat("yyyy-MM-dd"));i.watch(o,V=>{V&&a.value&&(a.value=!1)}),i.watch(d,V=>{V&&l(V)});function g(V){s.value=s.value?s.value:fe.now().setLocale("pt-BR").toFormat("dd/MM/yyyy"),a.value=!a.value;let[,$,N]=s.value.toFormat("dd/MM/yyyy").split("/");$=V.index,s.value=fe.fromObject({year:N,month:$}).setLocale("pt-BR"),t.value=s.value.toFormat("yyyy-MM")}const v=i.computed(()=>n.minDate?fe.fromFormat(n.minDate,"yyyy-MM-dd"):null),_=i.computed(()=>n.maxDate?fe.fromFormat(n.maxDate,"yyyy-MM-dd"):null);function k(){return v.value?s.value.minus({year:1}).startOf("year")>=v.value.startOf("year"):!0}function x(){return _.value?s.value.plus({year:1}).startOf("year")<=_.value.startOf("year"):!0}function M(){if(k()){if(fe.min(s.value.minus({year:1}),v.value)!==v.value){s.value=v.value,t.value=s.value.toFormat("yyyy-MM");return}s.value=s.value.minus({year:1})}}function B(){if(x()){if(fe.max(s.value.plus({year:1}),_.value)!==_.value){s.value=_.value,t.value=s.value.toFormat("yyyy-MM");return}s.value=s.value.plus({year:1})}}function C(){n.disabled||(r.value=hy(d,340,n.mobile||n.floatingLabel),a.value=!a.value)}return(V,$)=>(i.openBlock(),i.createElementBlock("div",WK,[i.createVNode(Wi,i.mergeProps({ref:"baseInput"},n,{modelValue:f.value,"onUpdate:modelValue":$[0]||($[0]=N=>f.value=N),type:"text","floating-label":e.floatingLabel||e.mobile,readonly:!0,onClick:C}),{"trailing-icon":i.withCtx(()=>[i.createElementVNode("div",YK,[i.createVNode(ve,{height:"20",width:"20",name:"calendar-outline"})])]),_:1},16,["modelValue","floating-label"]),i.createVNode(i.Transition,{name:"month-and-year-picker-animation"},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",{ref:"calendar",class:i.normalizeClass(`month-and-year-picker__dropdown--${r.value}`),onMousedown:$[2]||($[2]=i.withModifiers((...N)=>V.handleCalendarMouseDown&&V.handleCalendarMouseDown(...N),["prevent"]))},[i.createElementVNode("div",jK,[i.createElementVNode("span",{class:"dropdown__month-and-title--no-hover",onClick:$[1]||($[1]=(...N)=>V.toggleYearPickerDisplay&&V.toggleYearPickerDisplay(...N))},i.toDisplayString(h.value),1),i.createVNode(Ue,null,{default:i.withCtx(()=>[i.createVNode(ve,{height:"20",width:"20",name:"caret-up-outline",class:i.normalizeClass(["dropdown__right-caret",{"dropdown__caret--disabled":!k()}]),onClick:M},null,8,["class"]),i.createVNode(ve,{height:"20",width:"20",name:"caret-down-outline",class:i.normalizeClass(["dropdown__left-caret",{"dropdown__caret--disabled":!x()}]),onClick:B},null,8,["class"])]),_:1})]),i.createVNode(my,{ref:"monthPicker","selected-date":t.value,"min-date":m.value,"max-date":y.value,variant:e.variant,onClick:g},null,8,["selected-date","min-date","max-date","variant"])],34),[[i.vShow,a.value]])]),_:1})],512))}}),[["__scopeId","data-v-60b46498"]]),qK={class:"multi-file-input"},GK={class:"multi-file-input__file-container"},KK={class:"multi-file-input__box"},ZK={class:"multi-file-input__badges_section"},XK={class:"multi-file-input__badge-content"},JK={key:0,class:"multi-file-input__empty-state"},QK={key:1,class:"multi-file-input__list-container"},eZ={class:"multi-file-input__list"},tZ={class:"multi-file-input__actions"},nZ={key:0,class:"multi-file-input__alert"},iZ={class:"multi-file-input__footer"},aZ=ie(Object.assign({name:"CdsMultiFileInput"},{__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(e,{emit:t}){const n=e,a=t,r=i.ref(0),s=i.ref({}),o=i.ref([]),l=i.ref(n.documents.map(x=>({id:oa(),value:x.name,required:x.required,active:!1,file:null}))),d=i.computed(()=>o.value.filter(x=>{var M;return(M=x.selectedLabel)==null?void 0:M.id}).map(x=>x.selectedLabel.id)),h=i.computed(()=>{const x={},M=[];return d.value.forEach(B=>{x[B]?x[B]+=1:x[B]=1}),Object.keys(x).forEach(B=>{x[B]>1&&M.push(B)}),M}),f=i.computed(()=>_()&&h.value.length==0&&k());i.watch(()=>o.value,()=>{l.value.forEach(x=>{x.active=d.value.includes(x.id)})},{deep:!0});function m(x){x.name&&(o.value.push({file:x,selectedLabel:null}),r.value+=1,s.value=null)}function y(x){const M=o.value.indexOf(x);M>-1&&o.value.splice(M,1)}function g(x){var M;return h.value.includes((M=x.selectedLabel)==null?void 0:M.id)}function v(){a("submit",o.value)}function _(){return o.value.every(x=>{var M;return(M=x.selectedLabel)==null?void 0:M.id})}function k(){return l.value.filter(x=>x.required).every(x=>x.active)}return(x,M)=>(i.openBlock(),i.createElementBlock("div",qK,[i.createElementVNode("div",GK,[(i.openBlock(),i.createBlock(By,i.mergeProps({key:r.value,modelValue:s.value,"onUpdate:modelValue":M[0]||(M[0]=B=>s.value=B)},x.$attrs,{"onUpdate:modelValue":m}),null,16,["modelValue"]))]),i.createElementVNode("div",KK,[M[2]||(M[2]=i.createElementVNode("div",{class:"multi-file-input__description"}," Os arquivos marcados com o asterisco (*) são obrigatórios: ",-1)),i.createElementVNode("div",ZK,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(l.value,B=>(i.openBlock(),i.createBlock(G1,{key:B,variant:B.active?e.variant:"gray"},{default:i.withCtx(()=>[i.createElementVNode("div",XK,[B.active?(i.openBlock(),i.createBlock(ve,{key:0,name:"check-outline",height:"16",width:"16"})):i.createCommentVNode("",!0),i.createElementVNode("div",null,i.toDisplayString(B.value)+" "+i.toDisplayString(B.required?"*":""),1)])]),_:2},1032,["variant"]))),128))]),o.value.length==0?(i.openBlock(),i.createElementBlock("div",JK," Os arquivos adicionados serão exibidos aqui ")):(i.openBlock(),i.createElementBlock("div",QK,[M[1]||(M[1]=i.createElementVNode("div",{class:"multi-file-input__list-title"}," Arquivos anexados ",-1)),i.createElementVNode("div",eZ,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,B=>(i.openBlock(),i.createElementBlock("div",{key:B,class:"multi-file-input__list-item"},[i.createElementVNode("div",{class:i.normalizeClass(["multi-file-input__item",`multi-file-input__item--${e.variant}`])},[i.createTextVNode(i.toDisplayString(B.file.name)+" ",1),i.createElementVNode("div",null,[i.createElementVNode("div",tZ,[i.createVNode(Vh,{modelValue:B.selectedLabel,"onUpdate:modelValue":C=>B.selectedLabel=C,options:l.value,label:"",style:{display:"flex"}},null,8,["modelValue","onUpdate:modelValue","options"]),i.createVNode(gu,{icon:"trash-outline",size:"lg",onClick:C=>y(B)},null,8,["onClick"])]),g(B)?(i.openBlock(),i.createElementBlock("div",nZ," Arquivo duplicado. ")):i.createCommentVNode("",!0)])],2)]))),128))])])),i.createElementVNode("div",iZ,[i.createVNode(fn,{secondary:e.buttonSecondary,variant:e.variant,disabled:!f.value,onButtonClick:v},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.submitButtonText),1)]),_:1},8,["secondary","variant","disabled"])])])]))}}),[["__scopeId","data-v-80563c22"]]);function Tf(e){return e===0?!1:Array.isArray(e)&&e.length===0?!0:!e}function rZ(e){return(...t)=>!e(...t)}function sZ(e,t){return e===void 0&&(e="undefined"),e===null&&(e="null"),e===!1&&(e="false"),e.toString().toLowerCase().indexOf(t.trim())!==-1}function oZ(e){return e.filter(t=>!t.$isLabel)}function If(e,t){return n=>n.reduce((a,r)=>r[e]&&r[e].length?(a.push({$groupLabel:r[t],$isLabel:!0}),a.concat(r[e])):a,[])}const m6=(...e)=>t=>e.reduce((n,a)=>a(n),t);var lZ={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(e,t){return Tf(e)?"":t?e[t]:e}},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},filteringSortFunc:{type:Function,default:null}},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 e=this.search||"",t=e.toLowerCase().trim();let n=this.options.concat();return this.internalSearch?n=this.groupValues?this.filterAndFlat(n,t,this.label):this.filterOptions(n,t,this.label,this.customLabel):n=this.groupValues?If(this.groupValues,this.groupLabel)(n):n,n=this.hideSelected?n.filter(rZ(this.isSelected)):n,this.taggable&&t.length&&!this.isExistingOption(t)&&(this.tagPosition==="bottom"?n.push({isTag:!0,label:e}):n.unshift({isTag:!0,label:e})),n.slice(0,this.optionsLimit)},valueKeys(){return this.trackBy?this.internalValue.map(e=>e[this.trackBy]):this.internalValue},optionKeys(){return(this.groupValues?this.flatAndStrip(this.options):this.options).map(t=>this.customLabel(t,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(e,t,n){return m6(this.filterGroups(t,n,this.groupValues,this.groupLabel,this.customLabel),If(this.groupValues,this.groupLabel))(e)},flatAndStrip(e){return m6(If(this.groupValues,this.groupLabel),oZ)(e)},updateSearch(e){this.search=e},isExistingOption(e){return this.options?this.optionKeys.indexOf(e)>-1:!1},isSelected(e){const t=this.trackBy?e[this.trackBy]:e;return this.valueKeys.indexOf(t)>-1},isOptionDisabled(e){return!!e.$isDisabled},getOptionLabel(e){if(Tf(e))return"";if(e.isTag)return e.label;if(e.$isLabel)return e.$groupLabel;const t=this.customLabel(e,this.label);return Tf(t)?"":t},select(e,t){if(e.$isLabel&&this.groupSelect){this.selectGroup(e);return}if(!(this.blockKeys.indexOf(t)!==-1||this.disabled||e.$isDisabled||e.$isLabel)&&!(this.max&&this.multiple&&this.internalValue.length===this.max)&&!(t==="Tab"&&!this.pointerDirty)){if(e.isTag)this.$emit("tag",e.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(e)){t!=="Tab"&&this.removeElement(e);return}this.multiple?this.$emit("update:modelValue",this.internalValue.concat([e])):this.$emit("update:modelValue",e),this.$emit("select",e,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup(e){const t=this.options.find(n=>n[this.groupLabel]===e.$groupLabel);if(t){if(this.wholeGroupSelected(t)){this.$emit("remove",t[this.groupValues],this.id);const n=this.trackBy?t[this.groupValues].map(r=>r[this.trackBy]):t[this.groupValues],a=this.internalValue.filter(r=>n.indexOf(this.trackBy?r[this.trackBy]:r)===-1);this.$emit("update:modelValue",a)}else{const n=t[this.groupValues].filter(a=>!(this.isOptionDisabled(a)||this.isSelected(a)));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(e){return e[this.groupValues].every(t=>this.isSelected(t)||this.isOptionDisabled(t))},wholeGroupDisabled(e){return e[this.groupValues].every(this.isOptionDisabled)},removeElement(e,t=!0){if(this.disabled||e.$isDisabled)return;if(!this.allowEmpty&&this.internalValue.length<=1){this.deactivate();return}const n=typeof e=="object"?this.valueKeys.indexOf(e[this.trackBy]):this.valueKeys.indexOf(e);if(this.multiple){const a=this.internalValue.slice(0,n).concat(this.internalValue.slice(n+1));this.$emit("update:modelValue",a)}else this.$emit("update:modelValue",null);this.$emit("remove",e,this.id),this.closeOnSelect&&t&&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 e=this.$el.getBoundingClientRect().top,t=window.innerHeight-this.$el.getBoundingClientRect().bottom;t>this.maxHeight||t>e||this.openDirection==="below"||this.openDirection==="bottom"?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(t-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(e-40,this.maxHeight))},filterOptions(e,t,n,a){return t?e.filter(r=>sZ(a(r,n),t)).sort((r,s)=>typeof this.filteringSortFunc=="function"?this.filteringSortFunc(r,s):a(r,n).length-a(s,n).length):e},filterGroups(e,t,n,a,r){return s=>s.map(o=>{if(!o[n])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const l=this.filterOptions(o[n],e,t,r);return l.length?{[a]:o[a],[n]:l}:[]})}}},cZ={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(e,t){return{"multiselect__option--highlight":e===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(t)}},groupHighlight(e,t){if(!this.groupSelect)return["multiselect__option--disabled",{"multiselect__option--group":t.$isLabel}];const n=this.options.find(a=>a[this.groupLabel]===t.$groupLabel);return n&&!this.wholeGroupDisabled(n)?["multiselect__option--group",{"multiselect__option--highlight":e===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(n)}]:"multiselect__option--disabled"},addPointerElement({key:e}="Enter"){this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],e),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(e){this.pointer=e,this.pointerDirty=!0}}},g6={name:"vue-multiselect",mixins:[lZ,cZ],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:e=>`and ${e} more`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},spellcheck:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0},required:{type:Boolean,default:!1}},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)},isRequired(){return this.required===!1?!1:this.internalValue.length<=0}}};const dZ=["tabindex","aria-expanded","aria-owns","aria-activedescendant"],uZ={ref:"tags",class:"multiselect__tags"},hZ={class:"multiselect__tags-wrap"},fZ=["textContent"],pZ=["onKeypress","onMousedown"],mZ=["textContent"],gZ={class:"multiselect__spinner"},yZ=["name","id","spellcheck","placeholder","required","value","disabled","tabindex","aria-label","aria-controls"],bZ=["id","aria-multiselectable"],vZ={key:0},_Z={class:"multiselect__option"},wZ=["aria-selected","id","role"],kZ=["onClick","onMouseenter","data-select","data-selected","data-deselect"],CZ=["data-select","data-deselect","onMouseenter","onMousedown"],xZ={class:"multiselect__option"},SZ={class:"multiselect__option"};function BZ(e,t,n,a,r,s){return i.openBlock(),i.createElementBlock("div",{tabindex:e.searchable?-1:n.tabindex,class:i.normalizeClass([{"multiselect--active":e.isOpen,"multiselect--disabled":n.disabled,"multiselect--above":s.isAbove,"multiselect--has-options-group":s.hasOptionGroup},"multiselect"]),onFocus:t[14]||(t[14]=o=>e.activate()),onBlur:t[15]||(t[15]=o=>e.searchable?!1:e.deactivate()),onKeydown:[t[16]||(t[16]=i.withKeys(i.withModifiers(o=>e.pointerForward(),["self","prevent"]),["down"])),t[17]||(t[17]=i.withKeys(i.withModifiers(o=>e.pointerBackward(),["self","prevent"]),["up"]))],onKeypress:t[18]||(t[18]=i.withKeys(i.withModifiers(o=>e.addPointerElement(o),["stop","self"]),["enter","tab"])),onKeyup:t[19]||(t[19]=i.withKeys(o=>e.deactivate(),["esc"])),role:"combobox","aria-expanded":e.isOpen,"aria-owns":"listbox-"+e.id,"aria-activedescendant":e.isOpen&&e.pointer!==null?e.id+"-"+e.pointer:null},[i.renderSlot(e.$slots,"caret",{toggle:e.toggle},()=>[i.createElementVNode("div",{onMousedown:t[0]||(t[0]=i.withModifiers(o=>e.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),i.renderSlot(e.$slots,"clear",{search:e.search}),i.createElementVNode("div",uZ,[i.renderSlot(e.$slots,"selection",{search:e.search,remove:e.removeElement,values:s.visibleValues,isOpen:e.isOpen},()=>[i.withDirectives(i.createElementVNode("div",hZ,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.visibleValues,(o,l)=>i.renderSlot(e.$slots,"tag",{option:o,search:e.search,remove:e.removeElement},()=>[(i.openBlock(),i.createElementBlock("span",{class:"multiselect__tag",key:l,onMousedown:t[1]||(t[1]=i.withModifiers(()=>{},["prevent"]))},[i.createElementVNode("span",{textContent:i.toDisplayString(e.getOptionLabel(o))},null,8,fZ),i.createElementVNode("i",{tabindex:"1",onKeypress:i.withKeys(i.withModifiers(d=>e.removeElement(o),["prevent"]),["enter"]),onMousedown:i.withModifiers(d=>e.removeElement(o),["prevent"]),class:"multiselect__tag-icon"},null,40,pZ)],32))])),256))],512),[[i.vShow,s.visibleValues.length>0]]),e.internalValue&&e.internalValue.length>n.limit?i.renderSlot(e.$slots,"limit",{key:0},()=>[i.createElementVNode("strong",{class:"multiselect__strong",textContent:i.toDisplayString(n.limitText(e.internalValue.length-n.limit))},null,8,mZ)]):i.createCommentVNode("v-if",!0)]),i.createVNode(i.Transition,{name:"multiselect__loading"},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"loading",{},()=>[i.withDirectives(i.createElementVNode("div",gZ,null,512),[[i.vShow,n.loading]])])]),_:3}),e.searchable?(i.openBlock(),i.createElementBlock("input",{key:0,ref:"search",name:n.name,id:e.id,type:"text",autocomplete:"off",spellcheck:n.spellcheck,placeholder:e.placeholder,required:s.isRequired,style:i.normalizeStyle(s.inputStyle),value:e.search,disabled:n.disabled,tabindex:n.tabindex,"aria-label":n.name+"-searchbox",onInput:t[2]||(t[2]=o=>e.updateSearch(o.target.value)),onFocus:t[3]||(t[3]=i.withModifiers(o=>e.activate(),["prevent"])),onBlur:t[4]||(t[4]=i.withModifiers(o=>e.deactivate(),["prevent"])),onKeyup:t[5]||(t[5]=i.withKeys(o=>e.deactivate(),["esc"])),onKeydown:[t[6]||(t[6]=i.withKeys(i.withModifiers(o=>e.pointerForward(),["prevent"]),["down"])),t[7]||(t[7]=i.withKeys(i.withModifiers(o=>e.pointerBackward(),["prevent"]),["up"])),t[9]||(t[9]=i.withKeys(i.withModifiers(o=>e.removeLastElement(),["stop"]),["delete"]))],onKeypress:t[8]||(t[8]=i.withKeys(i.withModifiers(o=>e.addPointerElement(o),["prevent","stop","self"]),["enter"])),class:"multiselect__input","aria-controls":"listbox-"+e.id},null,44,yZ)):i.createCommentVNode("v-if",!0),s.isSingleLabelVisible?(i.openBlock(),i.createElementBlock("span",{key:1,class:"multiselect__single",onMousedown:t[10]||(t[10]=i.withModifiers((...o)=>e.toggle&&e.toggle(...o),["prevent"]))},[i.renderSlot(e.$slots,"singleLabel",{option:s.singleValue},()=>[i.createTextVNode(i.toDisplayString(e.currentOptionLabel),1)])],32)):i.createCommentVNode("v-if",!0),s.isPlaceholderVisible?(i.openBlock(),i.createElementBlock("span",{key:2,class:"multiselect__placeholder",onMousedown:t[11]||(t[11]=i.withModifiers((...o)=>e.toggle&&e.toggle(...o),["prevent"]))},[i.renderSlot(e.$slots,"placeholder",{},()=>[i.createTextVNode(i.toDisplayString(e.placeholder),1)])],32)):i.createCommentVNode("v-if",!0)],512),i.createVNode(i.Transition,{name:"multiselect",persisted:""},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",{class:"multiselect__content-wrapper",onFocus:t[12]||(t[12]=(...o)=>e.activate&&e.activate(...o)),tabindex:"-1",onMousedown:t[13]||(t[13]=i.withModifiers(()=>{},["prevent"])),style:i.normalizeStyle({maxHeight:e.optimizedHeight+"px"}),ref:"list"},[i.createElementVNode("ul",{class:"multiselect__content",style:i.normalizeStyle(s.contentStyle),role:"listbox",id:"listbox-"+e.id,"aria-multiselectable":e.multiple},[i.renderSlot(e.$slots,"beforeList"),e.multiple&&e.max===e.internalValue.length?(i.openBlock(),i.createElementBlock("li",vZ,[i.createElementVNode("span",_Z,[i.renderSlot(e.$slots,"maxElements",{},()=>[i.createTextVNode("Maximum of "+i.toDisplayString(e.max)+" options selected. First remove a selected option to select another.",1)])])])):i.createCommentVNode("v-if",!0),!e.max||e.internalValue.length<e.max?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:1},i.renderList(e.filteredOptions,(o,l)=>(i.openBlock(),i.createElementBlock("li",{class:"multiselect__element",key:l,"aria-selected":e.isSelected(o),id:e.id+"-"+l,role:o&&(o.$isLabel||o.$isDisabled)?null:"option"},[o&&(o.$isLabel||o.$isDisabled)?i.createCommentVNode("v-if",!0):(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass([e.optionHighlight(l,o),"multiselect__option"]),onClick:i.withModifiers(d=>e.select(o),["stop"]),onMouseenter:i.withModifiers(d=>e.pointerSet(l),["self"]),"data-select":o&&o.isTag?e.tagPlaceholder:s.selectLabelText,"data-selected":s.selectedLabelText,"data-deselect":s.deselectLabelText},[i.renderSlot(e.$slots,"option",{option:o,search:e.search,index:l},()=>[i.createElementVNode("span",null,i.toDisplayString(e.getOptionLabel(o)),1)])],42,kZ)),o&&(o.$isLabel||o.$isDisabled)?(i.openBlock(),i.createElementBlock("span",{key:1,"data-select":e.groupSelect&&s.selectGroupLabelText,"data-deselect":e.groupSelect&&s.deselectGroupLabelText,class:i.normalizeClass([e.groupHighlight(l,o),"multiselect__option"]),onMouseenter:i.withModifiers(d=>e.groupSelect&&e.pointerSet(l),["self"]),onMousedown:i.withModifiers(d=>e.selectGroup(o),["prevent"])},[i.renderSlot(e.$slots,"option",{option:o,search:e.search,index:l},()=>[i.createElementVNode("span",null,i.toDisplayString(e.getOptionLabel(o)),1)])],42,CZ)):i.createCommentVNode("v-if",!0)],8,wZ))),128)):i.createCommentVNode("v-if",!0),i.withDirectives(i.createElementVNode("li",null,[i.createElementVNode("span",xZ,[i.renderSlot(e.$slots,"noResult",{search:e.search},()=>[t[20]||(t[20]=i.createTextVNode("No elements found. Consider changing the search query."))])])],512),[[i.vShow,n.showNoResults&&e.filteredOptions.length===0&&e.search&&!n.loading]]),i.withDirectives(i.createElementVNode("li",null,[i.createElementVNode("span",SZ,[i.renderSlot(e.$slots,"noOptions",{},()=>[t[21]||(t[21]=i.createTextVNode("List is empty."))])])],512),[[i.vShow,n.showNoOptions&&(e.options.length===0||s.hasOptionGroup===!0&&e.filteredOptions.length===0)&&!e.search&&!n.loading]]),i.renderSlot(e.$slots,"afterList")],12,bZ)],36),[[i.vShow,e.isOpen]])]),_:3})],42,dZ)}g6.render=BZ;const Co=0,xo=1,Hu=e=>e===void 0?{}:JSON.parse(JSON.stringify(e)),Af={name:"CdsMultiselect",components:{Multiselect:g6,CdsDivider:zr,CdsCheckbox:Qs,CdsSpacer:nu},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:Hu(this.options),groupValues:null,groupLabel:null,selectAllValue:!1,queryString:"",indeterminate:!1,sassColorVariables:ai,uniqueKey:Qa()}},computed:{hasSlots(){return!!Object.keys(this.$slots).length},errorState(){return this.state==="invalid"},selectedFancyMessage(){return e=>e===1?this.selectedValue[0][this.optionsField]:`${e} 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[Co]&&this.internalOptions[Co].$status||this.internalOptions[xo]&&this.internalOptions[xo].$status},attrs(){const{label:e,trackBy:t,options:n,...a}=this.$attrs;return a},inputBackgroundColor(){return this.disabled?this.sassColorVariables.n20:this.sassColorVariables.n0},resolveMultiselectHeight(){return this.mobile?"48px":"40px"},resolveMultiselectTop(){return this.mobile?"6px":"5px"}},watch:{selectedValue(e){const t=Hu(e);t.forEach(n=>delete n.isSelected),this.indeterminate=e.length>0&&e.length<this.options.length,this.$emit("input",t),this.$emit("update:modelValue",t)},isAllItemsSelected(e){if(!e&&this.selectAllValue){this.selectAllValue=!1;return}e&&!this.selectAllValue&&(this.selectAllValue=!0)},indeterminate(e){if(this.hideSelectAll)return;const t=document.getElementById(`select-all-input-id-${this.uniqueKey}`);t.indeterminate=e}},mounted(){!this.modelValue||this.modelValue.length===0||(this.selectedValue=this.modelValue,this.updateRenderOptions(),this.indeterminate=this.hasSelectedValues&&this.selectedValue.length<this.options.length)},methods:{unselectItem(e){this.handleSelectItem(e),this.$emit("remove",e)},selectItem(e){this.handleSelectItem(e),this.$emit("select",e)},handleSelectItem(e){this.isGroupMode?(this.internalOptions[Co].options.forEach(t=>{t[this.optionsField]===e[this.optionsField]&&(t.isSelected=!t.isSelected)}),this.internalOptions[xo].options.forEach(t=>{t[this.optionsField]===e[this.optionsField]&&(t.isSelected=!t.isSelected)})):this.internalOptions.forEach(t=>{t[this.optionsField]===e[this.optionsField]&&(t.isSelected=!t.isSelected)})},toggleSelectAll(){this.selectAllValue=!this.hasSelectedValues,this.selectAllValue?this.selectedValue=this.options:this.selectedValue=[],this.$nextTick().then(()=>{this.isGroupMode?(this.internalOptions[Co].options=this.internalOptions[Co].options.map(e=>({...e,isSelected:this.selectAllValue})),this.internalOptions[xo].options=this.internalOptions[xo].options.map(e=>({...e,isSelected:this.selectAllValue}))):this.internalOptions=this.internalOptions.map(e=>({...e,isSelected:this.selectAllValue}))})},addItemViaCustomCheckbox(e){e.isSelected=!e.isSelected,this.selectedValue=[...this.selectedValue,e]},handleClose(){this.updateRenderOptions(),this.setContentWrapperScrollToTop(),this.$emit("close")},updateRenderOptions(){if(!this.hasSelectedValues){this.internalOptions=Hu(this.options.map(t=>({...t,isSelected:!1}))),this.groupValues=null,this.groupLabel=null;return}this.selectedValue.forEach(t=>{t.isSelected=!0});let e=Hu(this.options);e=e.map(t=>(this.selectedValue.some(a=>a[this.optionsField]===t[this.optionsField])?t.isSelected=!0:t.isSelected=!1,t)),this.internalOptions=[{$status:"Selecionados",options:[]},{$status:"Não selecionados",options:[]}],this.internalOptions[Co].options=this.selectedValue,this.internalOptions[xo].options=e.filter(t=>!t.isSelected),this.groupValues="options",this.groupLabel="$status"},handleSearchChange(e){this.queryString=e},setContentWrapperScrollToTop(){document.querySelector(`span[data-cds-multiselect-identifier='${this.uniqueKey}']`).getElementsByClassName("multiselect__content-wrapper")[0].scrollTo(0,0)}}},y6=()=>{i.useCssVars(e=>({f087ae7e:e.inputBackgroundColor,"08b94486":e.resolveMultiselectHeight,"64fc3b54":e.resolveMultiselectTop}))},b6=Af.setup;Af.setup=b6?(e,t)=>(y6(),b6(e,t)):y6;const MZ=["data-cds-multiselect-identifier"],EZ={key:0},OZ=["for"],DZ={key:0,class:"label__required-indicator"},VZ={key:1,class:"cds-multiselect__grouped-divider"},$Z={key:0,class:"cds-multiselect__group-label"},TZ={key:1,class:"cds-multiselect__option"},IZ={class:"option__checkbox"},AZ=["id","onUpdate:modelValue","name"],NZ=["id","for","onClick"],zZ={key:0,class:"multiselect__single"},LZ={key:1},PZ={key:0,class:"clustered-multiselect__error-message"};function FZ(e,t,n,a,r,s){const o=i.resolveComponent("CdsCheckbox"),l=i.resolveComponent("CdsSpacer"),d=i.resolveComponent("CdsDivider"),h=i.resolveComponent("multiselect",!0);return i.openBlock(),i.createElementBlock("span",{class:"cds-multiselect","data-cds-multiselect-identifier":r.uniqueKey},[i.createElementVNode("span",null,[s.hasSlots?(i.openBlock(),i.createElementBlock("span",EZ,[i.renderSlot(e.$slots,"label")])):(i.openBlock(),i.createElementBlock("label",{key:1,class:i.normalizeClass(n.mobile?"clustered-multiselect__mobile-label":"clustered-multiselect__label")},[i.createElementVNode("div",{class:"label__content",for:`clustered-multiselect-${r.uniqueKey}`},[i.createElementVNode("span",null,i.toDisplayString(n.label),1),n.required?(i.openBlock(),i.createElementBlock("span",DZ," * ")):i.createCommentVNode("",!0)],8,OZ)],2))]),i.createVNode(h,i.mergeProps({id:`clustered-multiselect-${r.uniqueKey}`,ref:"cds-multiselect"},s.attrs,{modelValue:r.selectedValue,"onUpdate:modelValue":t[2]||(t[2]=f=>r.selectedValue=f),options:r.internalOptions,label:n.optionsField,"track-by":n.trackBy,multiple:"","group-values":r.groupValues,"group-label":r.groupLabel,"close-on-select":!1,"clear-on-select":!1,"select-label":"","deselect-label":"","selected-label":"",disabled:n.disabled,placeholder:s.computedPlaceholder,"block-keys":["Delete","Enter"],onClose:s.handleClose,onSelect:s.selectItem,onRemove:s.unselectItem,onSearchChange:s.handleSearchChange}),{beforeList:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",null,[n.hideSelectAll?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:"cds-multiselect__option multiselect__option",onClick:t[1]||(t[1]=(...f)=>s.toggleSelectAll&&s.toggleSelectAll(...f))},[i.createVNode(l,{"margin-left":"2"},{default:i.withCtx(()=>[i.createVNode(o,{id:`select-all-input-id-${r.uniqueKey}`,modelValue:r.selectAllValue,"onUpdate:modelValue":t[0]||(t[0]=f=>r.selectAllValue=f),label:s.selectAllFancyMessage,indeterminate:r.indeterminate,variant:n.variant},null,8,["id","modelValue","label","indeterminate","variant"])]),_:1})])),s.isGroupMode?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",VZ,[i.createVNode(d,{dimmed:""})]))],512),[[i.vShow,!r.queryString&&n.options.length]])]),option:i.withCtx(({option:f})=>[f.$isLabel?(i.openBlock(),i.createElementBlock("div",$Z,[i.createVNode(d,{text:f.$groupLabel,inline:"",dimmed:""},null,8,["text"])])):(i.openBlock(),i.createElementBlock("div",TZ,[i.createElementVNode("div",IZ,[i.withDirectives(i.createElementVNode("input",{id:`input-${f[n.optionsField]}-${r.uniqueKey}`,"onUpdate:modelValue":m=>f.isSelected=m,type:"checkbox",name:`input-${f[n.optionsField]}-${r.uniqueKey}`,value:!0},null,8,AZ),[[i.vModelCheckbox,f.isSelected]]),i.createElementVNode("label",{id:`checkbox-${f[n.optionsField]}`,for:`input-${f[n.optionsField]}-${r.uniqueKey}`,class:i.normalizeClass(f.isSelected?`option__checkbox--${n.variant}`:""),onClick:m=>s.addItemViaCustomCheckbox(f)},null,10,NZ)]),i.renderSlot(e.$slots,"option",{option:f,optionField:n.optionsField},()=>[i.createTextVNode(i.toDisplayString(f[n.optionsField]),1)])]))]),selection:i.withCtx(({values:f,isOpen:m})=>[i.renderSlot(e.$slots,"selection",{values:f,isOpen:m,unselectItem:s.unselectItem},()=>[f.length&&!m?(i.openBlock(),i.createElementBlock("span",zZ,i.toDisplayString(s.selectedFancyMessage(f.length)),1)):(i.openBlock(),i.createElementBlock("span",LZ))])]),noResult:i.withCtx(()=>[t[3]||(t[3]=i.createTextVNode(' Nenhum resultado encontrado para: "')),i.createElementVNode("strong",null,i.toDisplayString(r.queryString),1),t[4]||(t[4]=i.createTextVNode('" '))]),noOptions:i.withCtx(()=>t[5]||(t[5]=[i.createTextVNode(" Não há nenhuma opção para ser exibida. ")])),_:3},16,["id","modelValue","options","label","track-by","group-values","group-label","disabled","placeholder","onClose","onSelect","onRemove","onSearchChange"]),s.errorState&&!n.disabled?(i.openBlock(),i.createElementBlock("div",PZ,i.toDisplayString(n.errorMessage),1)):i.createCommentVNode("",!0)],8,MZ)}const RZ=ie(Af,[["render",FZ]]);function HZ(e){return i.getCurrentScope()?(i.onScopeDispose(e),!0):!1}const v6=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const WZ=Object.prototype.toString,YZ=e=>WZ.call(e)==="[object Object]",So=()=>{},jZ=UZ();function UZ(){var e,t;return v6&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Nf(e){return Array.isArray(e)?e:[e]}function qZ(e,t,n){return i.watch(e,t,{...n,immediate:!0})}const _6=v6?window:void 0;function fc(e){var t;const n=i.toValue(e);return(t=n==null?void 0:n.$el)!=null?t:n}function pc(...e){const t=[],n=()=>{t.forEach(l=>l()),t.length=0},a=(l,d,h,f)=>(l.addEventListener(d,h,f),()=>l.removeEventListener(d,h,f)),r=i.computed(()=>{const l=Nf(i.toValue(e[0])).filter(d=>d!=null);return l.every(d=>typeof d!="string")?l:void 0}),s=qZ(()=>{var l,d;return[(d=(l=r.value)==null?void 0:l.map(h=>fc(h)))!=null?d:[_6].filter(h=>h!=null),Nf(i.toValue(r.value?e[1]:e[0])),Nf(i.unref(r.value?e[2]:e[1])),i.toValue(r.value?e[3]:e[2])]},([l,d,h,f])=>{if(n(),!(l!=null&&l.length)||!(d!=null&&d.length)||!(h!=null&&h.length))return;const m=YZ(f)?{...f}:f;t.push(...l.flatMap(y=>d.flatMap(g=>h.map(v=>a(y,g,v,m)))))},{flush:"post"}),o=()=>{s(),n()};return HZ(n),o}let w6=!1;function GZ(e,t,n={}){const{window:a=_6,ignore:r=[],capture:s=!0,detectIframe:o=!1,controls:l=!1}=n;if(!a)return l?{stop:So,cancel:So,trigger:So}:So;if(jZ&&!w6){w6=!0;const k={passive:!0};Array.from(a.document.body.children).forEach(x=>pc(x,"click",So,k)),pc(a.document.documentElement,"click",So,k)}let d=!0;const h=k=>i.toValue(r).some(x=>{if(typeof x=="string")return Array.from(a.document.querySelectorAll(x)).some(M=>M===k.target||k.composedPath().includes(M));{const M=fc(x);return M&&(k.target===M||k.composedPath().includes(M))}});function f(k){const x=i.toValue(k);return x&&x.$.subTree.shapeFlag===16}function m(k,x){const M=i.toValue(k),B=M.$.subTree&&M.$.subTree.children;return B==null||!Array.isArray(B)?!1:B.some(C=>C.el===x.target||x.composedPath().includes(C.el))}const y=k=>{const x=fc(e);if(k.target!=null&&!(!(x instanceof Element)&&f(e)&&m(e,k))&&!(!x||x===k.target||k.composedPath().includes(x))){if("detail"in k&&k.detail===0&&(d=!h(k)),!d){d=!0;return}t(k)}};let g=!1;const v=[pc(a,"click",k=>{g||(g=!0,setTimeout(()=>{g=!1},0),y(k))},{passive:!0,capture:s}),pc(a,"pointerdown",k=>{const x=fc(e);d=!h(k)&&!!(x&&!k.composedPath().includes(x))},{passive:!0}),o&&pc(a,"blur",k=>{setTimeout(()=>{var x;const M=fc(e);((x=a.document.activeElement)==null?void 0:x.tagName)==="IFRAME"&&!(M!=null&&M.contains(a.document.activeElement))&&t(k)},0)},{passive:!0})].filter(Boolean),_=()=>v.forEach(k=>k());return l?{stop:_,cancel:()=>{d=!1},trigger:k=>{d=!0,y(k),d=!1}}:_}const KZ={ref:"cds-combobox",class:"combobox"},ZZ={class:"badge"},XZ={key:0,class:"option__container"},JZ=["onClick"],QZ={key:1,class:"combobox__empty"},eX=ie(Object.assign({name:"CdsComboBox"},{__name:"ComboBox",props:i.mergeModels({label:{type:String,default:"Label"},options:{type:Array,default:()=>[],required:!0},required:{type:Boolean,default:!1,required:!1},fluid:{type:Boolean,default:!1,required:!1},disabled:{type:Boolean,default:!1,required:!1},optionsKeyField:{type:String,default:"name",required:!0},optionsValueField:{type:String,default:"value",required:!0},state:{type:String,default:"default"},errorMessage:{type:String,default:"Valor inválido"},tooltip:{type:String,default:null},tooltipIcon:{type:String,default:"info-outline"},variant:{type:String,default:"green"}},{modelValue:{type:Array,default:()=>[]},modelModifiers:{}}),emits:i.mergeModels(["update:modelValue"],["update:modelValue"]),setup(e,{emit:t}){i.useCssVars(P=>({"6a29fe79":f.value,fe456b9c:m.value}));const n=e,a=t,r=i.ref([]),s=i.ref(new Set),o=i.ref(!1),l=i.ref(""),d=i.useModel(e,"modelValue"),h=i.useTemplateRef("cds-combobox"),f=i.computed(()=>n.fluid?"100%":"fit-content"),m=i.computed(()=>n.fluid?"100%":"266px"),y=i.computed(()=>s.value.size>=1?"Desfazer seleção":"Selecionar todos"),g=i.computed(()=>s.value.size>0),v=i.computed(()=>s.value.size===r.value.length),_=i.computed(()=>g.value&&!v.value),k=i.computed(()=>l.value?r.value.filter(P=>P[n.optionsValueField].toLowerCase().includes(l.value.toLowerCase())):r.value),x=i.computed(()=>!!l.value.trim()),M=i.computed(()=>r.value.some(P=>P[n.optionsValueField].toLowerCase()===l.value.trim().toLowerCase()));i.watch(()=>n.options,(P,Z)=>{P!==Z&&(r.value=P)},{immediate:!0}),i.watchEffect(()=>{const P=new Set(r.value.filter(se=>d.value.some(U=>U[n.optionsKeyField]===se[n.optionsKeyField])));[...P].some(se=>![...s.value].some(U=>U[n.optionsKeyField]===se[n.optionsKeyField]))&&(s.value=P)}),i.watch(n.modelValue,P=>{if(P&&P.length>0){const Z=new Set(P.map(se=>se[n.optionsKeyField]));s.value=Z}},{immediate:!0}),i.watch(s,()=>{a("update:modelValue",Array.from(s.value))},{deep:!0,immediate:!0}),GZ(h,()=>{o.value=!1,l.value=""});const B=P=>s.value.has(P),C=P=>{if(B(P)){s.value.delete(P);return}s.value.add(P)},V=()=>{s.value=new Set(r.value)},$=()=>{s.value.clear()},N=()=>{if(!x.value||M.value)return;const P={[n.optionsValueField]:l.value.trim(),[n.optionsKeyField]:l.value.toLowerCase().trim().replace(/ /g,"-")};s.value.add(P),r.value.push(P),l.value=""},I=()=>{N()},F=()=>{o.value=!o.value},q=()=>{o.value||l.value&&l.value.trim()===""||(o.value=!0)},Q=()=>{F(),q()};return(P,Z)=>(i.openBlock(),i.createElementBlock("div",KZ,[i.createElementVNode("div",{class:i.normalizeClass(["combobox__container",e.fluid?"combobox__container--fluid":"combobox__container--fit"])},[i.createVNode(Wi,{"model-value":l.value,"enable-top-content":s.value.size>0,label:e.label,placeholder:`Buscar ${e.label.toLowerCase()}`,state:e.state,"error-message":e.errorMessage,required:e.required,disabled:e.disabled,fluid:e.fluid,tooltip:e.tooltip,"tooltip-icon":e.tooltipIcon,onKeydown:i.withKeys(I,["enter"]),onClick:Q,onFocus:q,"onUpdate:modelValue":Z[0]||(Z[0]=se=>l.value=se)},{"top-content":i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,(se,U)=>(i.openBlock(),i.createElementBlock("div",{key:U},[i.createVNode(G1,{style:{cursor:"pointer"},variant:e.variant,size:"md",onClick:me=>C(se)},{default:i.withCtx(()=>[i.createElementVNode("div",ZZ,[i.createVNode(q1,{width:"220"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(se[e.optionsValueField]),1)]),_:2},1024),i.createVNode(ve,{class:"badge__icon",name:"x-outline",height:"12",width:"12"})])]),_:2},1032,["variant","onClick"])]))),128))]),_:1},8,["model-value","enable-top-content","label","placeholder","state","error-message","required","disabled","fluid","tooltip","tooltip-icon"]),o.value?(i.openBlock(),i.createElementBlock("div",{key:0,ref:"combobox-options",class:i.normalizeClass(["combobox__options",P.selectOptionsClass])},[r.value.length>0?(i.openBlock(),i.createElementBlock("div",XZ,[i.createVNode(Qs,{class:"option__text",variant:e.variant,label:y.value,"model-value":v.value&&g.value,indeterminate:_.value,"onUpdate:modelValue":Z[1]||(Z[1]=se=>g.value?$():V())},null,8,["variant","label","model-value","indeterminate"]),i.createVNode(zr,{light:""}),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(k.value,(se,U)=>(i.openBlock(),i.createElementBlock("div",{key:se[e.optionsKeyField]||U,class:i.normalizeClass(["option__text",{"option__text--selected":B(se[e.optionsKeyField])}]),onClick:me=>C(se,B(se[e.optionsKeyField]))},[i.createVNode(Qs,{variant:e.variant,label:se[e.optionsValueField],prominent:B(se),"model-value":B(se)},null,8,["variant","label","prominent","model-value"])],10,JZ))),128))])):i.createCommentVNode("",!0),o.value&&r.value.length===0&&l.value.length===0?(i.openBlock(),i.createElementBlock("div",QZ," Nenhuma opção encontrada ")):i.createCommentVNode("",!0),!M.value&&x.value?(i.openBlock(),i.createElementBlock("div",{key:2,class:"option__button",onClick:N}," Adicionar "+i.toDisplayString(l.value),1)):i.createCommentVNode("",!0)],2)):i.createCommentVNode("",!0)],2)],512))}}),[["__scopeId","data-v-3829b734"]]),tX={name:"CdsNavBar",props:{items:{type:Array,default:()=>[],required:!0,validator:e=>!e.filter(n=>{const a=sn(n.path)&&sn(n.route),r=sn(n.items)||n.items.filter(s=>sn(s.path)&&sn(s.route)).length;return sn(n.label)||r&&a}).length},activeItem:{type:Object,default:()=>({}),required:!0},variant:{type:String,default:"green",validator:e=>Ma.includes(e)}},data(){return{internalActiveItem:this.activeItem,colorOptions:Ma}},computed:{activeBorderStyle(){return{"--indicatorColor":this.colorHexCode(this.variant)}}},watch:{items:{handler(e){const t=e.filter(n=>n.name===this.activeItem.name);[this.internalActiveItem]=t.length?t:e},immediate:!0}},mounted(){this.internalActiveItem=this.activeItem},methods:{colorHexCode:Jl,handleClick(e,t){this.internalActiveItem=t,this.$emit("navbar-click",this.internalActiveItem)},isActive(e){return so(this.internalActiveItem,e)},resolveRoute({route:e,path:t}){const n=sn(e)?t:e;return n instanceof String?{path:n}:n},routerPushTo(e){return this.resolveRoute(e)?this.resolveRoute(e).path:null},indicatorClass(e){return this.isActive(e)?`item__indicator--active--${this.variant}`:""}}},nX={id:"nav-bar"};function iX(e,t,n,a,r,s){const o=i.resolveComponent("router-link");return i.openBlock(),i.createElementBlock("div",nX,[i.createElementVNode("ul",{class:i.normalizeClass({"nav-bar__container":n.items.length>=1})},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.items,(l,d)=>(i.openBlock(),i.createElementBlock("li",{key:`${d}-${l.name}-item`,role:"presentation",class:i.normalizeClass(["nav-bar__item-container",s.isActive(l)?"nav-bar__item-container--active":"nav-bar__item-container--inactive"])},[i.createVNode(o,{to:s.routerPushTo(l),class:i.normalizeClass(["nav-bar__item",s.isActive(l)?"nav-bar__item--active":"nav-bar__item--inactive"]),onClick:h=>s.handleClick(h,l)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(l.label),1)]),_:2},1032,["to","class","onClick"]),i.createElementVNode("div",{class:i.normalizeClass(s.indicatorClass(l)),style:i.normalizeStyle(s.activeBorderStyle)},null,6)],2))),128))],2)])}const aX=ie(tX,[["render",iX]]),rX={mounted(e,t){const n=s=>{if(s==0)return"R$ 0,00";if(!s)return"";let o=String(s).replace(/\D/g,"");return o?(parseFloat(o)/100).toLocaleString("pt-BR",{style:"currency",currency:"BRL"}):"R$ 0,00"};let a=!1;const r=s=>{if(a)return;a=!0;let o=String(s.target.value||""),l=o.replace(/\D/g,"");l.length>1&&l.startsWith("0")&&(l=l.replace(/^0+/,""));let d=parseFloat(l||"0")/100;const h=n(o);s.target.value=h;const f=new Event("input",{bubbles:!0});Object.defineProperty(f,"target",{value:{value:d},writable:!1}),e.dispatchEvent(f),a=!1};e.addEventListener("input",r),e.value=n(t.value||""),e._inputHandler=r},updated(e,t){const n=a=>{if(!a)return"";let r=String(a).replace(/\D/g,"");return(parseFloat(r)/100).toLocaleString("pt-BR",{style:"currency",currency:"BRL"})};e.value=n(t.value||"")},unmounted(e){e._inputHandler&&e.removeEventListener("input",e._inputHandler)}},k6=e=>{let t=e.replace("R$","");return t=t.replaceAll(".",""),t=t.replace(/(.*),(\d{2})/g,"$1.$2"),+t},sX=Object.assign({name:"CdsNumberInput"},{__name:"NumberInput",props:i.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:null},supportLink:{type:String,default:null},supportLinkUrl:{type:[String,null],default:null},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:i.mergeModels({...mr},["update:modelValue","update:unmaskedValue"]),setup(e,{expose:t,emit:n}){var M,B;const a=ro,r=i.useTemplateRef("baseInput"),s=i.useModel(e,"modelValue"),o=i.useModel(e,"unmaskedValue"),l=e,d=n,h=i.ref(""),{emitClick:f,emitChange:m,emitFocus:y,emitBlur:g,emitKeydown:v}=pr(d);let _={};i.watch(s,(C,V)=>{if(C===V)return;if(!l.money){h.value=C;return}if(!C){h.value="R$ 0,00";return}if(typeof C=="number"){h.value=`R$ ${C.toFixed(2).replace(".",",")}`;return}if(typeof C=="string"&&C.startsWith("R$")){h.value=C;return}const $=parseFloat(C);h.value=isNaN($)?`R$ ${C.replace(".",",")}`:$.toLocaleString("pt-BR",{style:"currency",currency:"BRL"})},{immediate:!0}),i.watch(h,(C,V)=>{if(C!==V){let $=String(C);l.money?(o.value=k6($),s.value=$):l.mask?(h.value=$,s.value=$,o.value=+$.replace(/\D/g,"")):$.length>15?h.value=+$.slice(0,15):(s.value=+$,o.value=+$)}}),i.onMounted(()=>{l.money&&r.value&&r.value.componentRef&&(_={value:s.value,oldValue:"",instance:r.value.componentRef,modifiers:{},arg:null},rX.mounted(r.value.componentRef,_))});function k(){l.money&&(h.value=h.value==0||h.value==""?"R$ 0,00":h.value),y()}function x(){s.value=h.value,m()}return t({componentRef:(M=r.value)==null?void 0:M.componentRef,isFocused:(B=r.value)==null?void 0:B.isFocused,focus:()=>{var C;return(C=r.value)==null?void 0:C.focus()},blur:()=>{var C;return(C=r.value)==null?void 0:C.blur()},clear:()=>{var C;return(C=r.value)==null?void 0:C.clear()},select:()=>{var C;return(C=r.value)==null?void 0:C.select()}}),(C,V)=>(i.openBlock(),i.createElementBlock("div",null,[e.money?(i.openBlock(),i.createBlock(Wi,i.mergeProps({key:0,ref:"baseInput"},{...C.$attrs,...l},{modelValue:h.value,"onUpdate:modelValue":V[0]||(V[0]=$=>h.value=$),"floating-label":e.floatingLabel||e.mobile,"support-link":e.supportLink||e.linkText,"support-link-url":e.supportLinkUrl||e.linkUrl,onClick:i.unref(f),onChange:x,onFocus:k,onBlur:i.unref(g),onKeydown:i.unref(v)}),null,16,["modelValue","floating-label","support-link","support-link-url","onClick","onBlur","onKeydown"])):e.mask?i.withDirectives((i.openBlock(),i.createBlock(Wi,i.mergeProps({key:1,ref:"baseInput"},{...C.$attrs,...l},{modelValue:h.value,"onUpdate:modelValue":V[1]||(V[1]=$=>h.value=$),type:"tel","floating-label":e.floatingLabel||e.mobile,"support-link":e.supportLink||e.linkText,"support-link-url":e.supportLinkUrl||e.linkUrl,onClick:i.unref(f),onChange:x,onFocus:k,onBlur:i.unref(g),onKeydown:i.unref(v)}),null,16,["modelValue","floating-label","support-link","support-link-url","onClick","onBlur","onKeydown"])),[[i.unref(a),e.mask]]):(i.openBlock(),i.createBlock(Wi,i.mergeProps({key:2,ref:"baseInput"},{...C.$attrs,...l},{modelValue:h.value,"onUpdate:modelValue":V[2]||(V[2]=$=>h.value=$),"floating-label":e.floatingLabel||e.mobile,"support-link":e.supportLink||e.linkText,"support-link-url":e.supportLinkUrl||e.linkUrl,type:"number",onClick:i.unref(f),onChange:x,onFocus:k,onBlur:i.unref(g),onKeydown:i.unref(v)}),null,16,["modelValue","floating-label","support-link","support-link-url","onClick","onBlur","onKeydown"]))]))}}),oX={name:"CdsOverlayLoader",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}`}}},lX={class:"overlay"};function cX(e,t,n,a,r,s){return i.openBlock(),i.createElementBlock("div",lX,[i.createElementVNode("div",{class:i.normalizeClass(s.computedSpinnerClass)},null,2)])}const dX=ie(oX,[["render",cX],["__scopeId","data-v-2c6e3f3c"]]),uX={name:"CdsPageContainer"},hX={class:"page-container__container"};function fX(e,t,n,a,r,s){return i.openBlock(),i.createElementBlock("div",hX,[i.renderSlot(e.$slots,"default",{},void 0,!0)])}const C6=ie(uX,[["render",fX],["__scopeId","data-v-ad3badda"]]),pX={class:"side-bar__header"},mX=["src"],gX={class:"search-button__text-container"},yX={key:0},bX=["onMouseleave"],vX=["onClick"],_X=["id","onMouseover"],wX={class:"side-bar__subitem-container"},kX={class:"side-bar__subitems"},CX=["href","target","onClick"],xX={key:0,class:"side-bar__subitem-link"},SX={key:1},BX={class:"side-bar__subitems--collapsed"},MX={class:"side-bar__tooltip-title"},EX=["href","onClick"],OX={key:0,class:"side-bar__subitem-link"},DX={key:0},VX={key:0},$X={class:"dropdown-button__dropdown"},TX=["onClick"],IX={class:"dropdown__text"},x6=Object.assign({name:"CdsSideBar"},{__name:"SideBar",props:{variant:{type:String,default:"green"},items:{type:Array,default:()=>[],required:!0,validator:e=>!e.filter(n=>{const a=sn(n.path)&&sn(n.route),r=sn(n.items)||n.items.filter(s=>sn(s.path)&&sn(s.route)).length;return sn(n.label)||r&&a}).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:null},logoImage:{type:String,default:null},light:{type:Boolean,default:!1},searchButton:{type:Boolean,default:!1}},emits:["sidebar-click","collapse-click","profile-menu-option-click","logo-click","logout","search-button-click"],setup(e,{expose:t,emit:n}){i.useCssVars(P=>({"8f2a5b90":x.value,"2da5d586":M.value}));const a=uu,r=e,s=n,o=i.ref({}),l=i.ref(null),d=i.ref(!0),h=i.ref(0),f=i.ref([]),m=i.ref("Sair"),y=i.ref(!1),g=i.ref(!0),v=i.computed(()=>r.light?l.value===!0?"side-bar--light--collapsed":"side-bar--light":l.value===!0?"side-bar--dark--collapsed":"side-bar--dark"),_=i.computed(()=>l.value?"Maximizar":"Minimizar"),k=i.computed(()=>{var P;return r.showProfileMenu&&((P=r.profileMenuItems)==null?void 0:P.length)>0}),x=i.computed(()=>k.value?"pointer":"default"),M=i.computed(()=>l.value?"center":"space-between");i.watch(()=>r.items,P=>{const Z=P.filter(se=>se.name===r.activeItem.name);o.value=Z.length?Z[0]:P[0]},{immediate:!0}),i.watch(()=>r.collapsibleState,P=>{P!==null&&(l.value=P)},{immediate:!0}),i.watch(()=>r.activeItem,P=>{o.value=P},{immediate:!0}),i.watch(l,P=>{if(P){d.value=!1,g.value=!1;return}setTimeout(()=>{d.value=!0},500),setTimeout(()=>{g.value=!0},250)}),i.onBeforeMount(()=>{if(r.collapsible){if(r.collapsibleState!==null){l.value=r.collapsibleState;return}l.value=JSON.parse(window.localStorage.getItem("cdsSidebarCollapsed"))}}),i.onMounted(()=>{o.value=r.activeItem,r.items.forEach((P,Z)=>{f.value.push({name:P.label,index:Z,show:!1})})});function B(P,Z){if(!so(o.value,Z)){o.value=Z,d.value=!0,h.value+=1;return}if(Z.items&&Z.items.length>0){d.value=!d.value,h.value+=1;return}Z.icon&&(d.value=!1,h.value+=1),s("sidebar-click",o.value)}function C(P){let Z=!1,se=!1;return P.items&&P.items.length>0&&(Z=P.items.some(U=>so(U,o.value))),se=so(o.value,P),Z||se}function V({route:P,path:Z}){const se=sn(P)?Z:P;return se instanceof String?{path:se}:se}function $(P){return V(P)?V(P).path:null}function N(){l.value=!l.value,s("collapse-click",l.value),window.localStorage.setItem("cdsSidebarCollapsed",l.value)}function I(P){return!!P.items&&P.items.length>0&&C(P)&&d.value}function F(P){return I(P)?"caret-up-outline":"caret-down-outline"}function q(P){s("profile-menu-option-click",P),y.value=!1}function Q(){s("logo-click")}return t({isCollapsed:l}),(P,Z)=>{const se=i.resolveComponent("router-link");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(v.value)},[i.createElementVNode("div",{class:i.normalizeClass(`variant-resolver--${e.variant}`)},[i.createElementVNode("div",pX,[i.createElementVNode("div",{class:"side-bar__logo",onClick:Q},[l.value?i.createCommentVNode("",!0):i.renderSlot(P.$slots,"logo",{key:0},()=>[i.createElementVNode("img",{src:e.logoImage},null,8,mX)])]),e.collapsible?i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:0,class:"side-bar__collapsible",onClick:N},[l.value?(i.openBlock(),i.createBlock(ve,{key:1,name:"sidebar-expand-outline"})):(i.openBlock(),i.createBlock(ve,{key:0,name:"sidebar-collapse-outline"}))])),[[i.unref(a),_.value]]):i.createCommentVNode("",!0)]),e.searchButton?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["side-bar__search-button",{"side-bar__search-button--light":e.light}]),onClick:Z[0]||(Z[0]=U=>P.$emit("search-button-click"))},[i.createElementVNode("div",gX,[i.createVNode(ve,{height:"20",width:"20",name:"search-outline"}),g.value?(i.openBlock(),i.createElementBlock("span",yX,"Busca")):i.createCommentVNode("",!0)]),g.value?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(["side-bar__search-shortcut",{"side-bar__search-shortcut--light":e.light}])}," Ctrl + K ",2)):i.createCommentVNode("",!0)],2)):i.createCommentVNode("",!0),i.createElementVNode("ul",{class:i.normalizeClass({"side-bar__container":e.items.length>=1})},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.items,(U,me)=>{var be;return i.openBlock(),i.createElementBlock("li",{key:`${me}-${U.name}-item`,role:"presentation",onMouseleave:G=>f.value[me].show=!1},[i.createElementVNode("div",{class:i.normalizeClass(["side-bar__item-container",C(U)?"side-bar__item-container--active":"side-bar__item-container--inactive"]),onClick:G=>B(G,U)},[U.items||U.type==="link"?i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:0,id:U.label,class:i.normalizeClass(["side-bar__item",C(U)?"side-bar__item--active":"side-bar__item--inactive"]),onMouseover:G=>f.value[me].show=!0},[i.createElementVNode("div",null,[i.createVNode(ve,{name:U.icon,width:"20",height:"20"},null,8,["name"]),i.createElementVNode("span",null,i.toDisplayString(U.label),1)]),U.items&&U.items.length>0?(i.openBlock(),i.createBlock(ve,{key:h.value,name:F(U),class:i.normalizeClass({item__caret:C(U)}),width:"16",height:"16"},null,8,["name","class"])):i.createCommentVNode("",!0)],42,_X)),[[i.unref(a),l.value&&U.type==="link"?U.label:null]]):i.withDirectives((i.openBlock(),i.createBlock(se,{key:1,to:$(U),class:i.normalizeClass(["side-bar__item",C(U)?"side-bar__item--active":"side-bar__item--inactive"]),onClick:G=>B(G,U)},{default:i.withCtx(()=>[i.createElementVNode("div",null,[i.createVNode(ve,{name:U.icon,width:"20",height:"20"},null,8,["name"]),i.createElementVNode("span",null,i.toDisplayString(U.label),1)])]),_:2},1032,["to","class","onClick"])),[[i.unref(a),l.value?U.label:null]])],10,vX),l.value?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(i.Transition,{key:0,name:"collapse"},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",wX,[i.createElementVNode("div",kX,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(U.items,(G,ye)=>(i.openBlock(),i.createElementBlock("a",{key:`${ye}-${G.name}-item`,class:i.normalizeClass(["side-bar__subitem",C(G)&&(G==null?void 0:G.type)!=="external"?"side-bar__subitem--active":"side-bar__subitem--inactive"]),href:(G==null?void 0:G.type)==="external"?G.route.path:"javascript:void(0)",target:(G==null?void 0:G.type)==="external"?"_blank":"_self",rel:"noopener noreferrer",onClick:Y=>B(Y,G)},[(G==null?void 0:G.type)==="external"?(i.openBlock(),i.createElementBlock("div",xX,[i.createTextVNode(i.toDisplayString(G.label)+" ",1),i.createVNode(ve,{height:"16",width:"16",name:"open-in-new-tab-outline"})])):(i.openBlock(),i.createBlock(se,{key:1,class:"side-bar__subitem-link",to:$(G)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(G.label),1)]),_:2},1032,["to"]))],10,CX))),128))])],512),[[i.vShow,I(U)]])]),_:2},1024)),U.items&&l.value?(i.openBlock(),i.createElementBlock("div",SX,[i.createVNode(Rh,{"model-value":(be=f.value[me])==null?void 0:be.show,"target-id":U.label,"default-placement":"bottom-start",width:"160"},{default:i.withCtx(()=>[i.createElementVNode("div",BX,[i.createElementVNode("p",MX,i.toDisplayString(U.label),1),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(U.items,(G,ye)=>(i.openBlock(),i.createElementBlock("a",{key:`${ye}-${G.name}-item`,class:"side-bar__subitem",href:(G==null?void 0:G.type)==="external"?G.route.path:"javascript:void(0)",target:"_blank",rel:"noopener noreferrer",onClick:Y=>B(Y,G)},[(G==null?void 0:G.type)==="external"?(i.openBlock(),i.createElementBlock("div",OX,[i.createTextVNode(i.toDisplayString(G.label)+" ",1),i.createVNode(ve,{height:"16",width:"16",name:"open-in-new-tab-outline"})])):(i.openBlock(),i.createBlock(se,{key:1,class:"side-bar__subitem-link",to:$(G)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(G.label),1)]),_:2},1032,["to"]))],8,EX))),128))])]),_:2},1032,["model-value","target-id"])])):i.createCommentVNode("",!0)],40,bX)}),128))],2)],2),i.createElementVNode("div",{class:i.normalizeClass(`side-bar__footer variant-resolver--${e.variant}`)},[i.createElementVNode("div",{id:"menu-profile",class:"side-bar__avatar",onClick:Z[1]||(Z[1]=i.withModifiers(U=>y.value=!y.value,["stop"]))},[i.createVNode(ul,{src:e.userPicture,name:e.userName,variant:"white",size:"lg"},null,8,["src","name"]),i.createVNode(i.Transition,{name:"fade"},{default:i.withCtx(()=>[l.value?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",DX,[i.createElementVNode("p",null,i.toDisplayString(e.userName),1),i.createElementVNode("p",null,i.toDisplayString(e.userRole),1)]))]),_:1})]),i.createElementVNode("ul",null,[e.showLogout?i.withDirectives((i.openBlock(),i.createElementBlock("li",{key:0,class:"side-bar__logout-button",onClick:Z[2]||(Z[2]=U=>P.$emit("logout",!0))},[i.createVNode(ve,{name:"logout-outline",width:"20",height:"20"})])),[[i.unref(a),m.value]]):i.createCommentVNode("",!0)]),k.value?(i.openBlock(),i.createElementBlock("div",VX,[i.createVNode(dl,{modelValue:y.value,"onUpdate:modelValue":Z[3]||(Z[3]=U=>y.value=U),"right-aligned":"","target-id":"menu-profile",width:"160",height:"160"},{default:i.withCtx(()=>[i.createElementVNode("div",$X,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.profileMenuItems,(U,me)=>(i.openBlock(),i.createElementBlock("div",{key:me},[i.createElementVNode("div",{class:"dropdown__container",onClick:be=>q(U)},[i.createVNode(ve,{class:"dropdown__icon",height:"22",width:"22",name:U.icon},null,8,["name"]),i.createElementVNode("span",IX,i.toDisplayString(U.name),1)],8,TX)]))),128))])]),_:1},8,["modelValue"])])):i.createCommentVNode("",!0)],2)],2)}}}),AX={class:"secondary-navigation__container"},NX={class:"secondary-navigation__content"},zX={key:1},LX=["onClick","onMouseover"],PX={class:"secondary-navigation__content"},FX={key:1},S6=ie(Object.assign({name:"CdsSecondaryNavigation"},{__name:"SecondaryNavigation",props:{light:{type:Boolean,default:!1},activeItem:{type:Object,default:()=>{}},items:{type:Array,default:()=>[]}},emits:["item-click"],setup(e,{emit:t}){const n=e,a=t,r=i.ref(n.activeItem.key),s=i.ref(null),o=i.ref(0),l=i.computed(()=>n.light?"light":"dark");i.watch(n.activeItem,_=>{r.value=_.key});const d=_=>{o.value=_},h=_=>{if(!_.route)return null;const{path:k,name:x}=_.route;return k instanceof String?{path:k}:{name:x}},f=_=>{y(_.key)||(s.value=null,r.value=_.key,a("item-click",_.key))},m=_=>r.value===_,y=_=>n.items.find(k=>{var x;return k.key===_&&((x=k==null?void 0:k.subitems)==null?void 0:x.length)>0}),g=(_,k)=>{s.value=_,r.value=k,a("item-click",_)},v=_=>s.value===_;return(_,k)=>{const x=i.resolveComponent("router-link");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["secondary-navigation",`secondary-navigation--${l.value}`])},[i.createElementVNode("div",AX,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.items,M=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:M.key},[y(M.key)?(i.openBlock(),i.createElementBlock("div",zX,[i.createElementVNode("div",{class:i.normalizeClass(["secondary-navigation__item",m(M.key)?`secondary-navigation__item--active-${l.value}`:""]),onClick:B=>f(M),onMouseover:B=>d(M.key),onMouseleave:k[0]||(k[0]=B=>d(-1))},[i.createElementVNode("div",PX,[i.createTextVNode(i.toDisplayString(M.label)+" ",1),M.key!==o.value?(i.openBlock(),i.createBlock(ve,{key:0,class:"secondary-navigation__icon",name:"caret-down-outline",height:"16",width:"16"})):M.key===o.value?(i.openBlock(),i.createElementBlock("div",FX,[i.createVNode(ve,{class:"secondary-navigation__icon",height:"16",width:"16",name:"caret-up-outline"}),i.createElementVNode("div",{class:i.normalizeClass(["secondary-navigation__dropdown",`secondary-navigation__dropdown--${l.value}`])},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(M.subitems,B=>(i.openBlock(),i.createBlock(x,{key:B.key,to:h(B),class:i.normalizeClass(["secondary-navigation__subitem",{"secondary-navigation__subitem--active":v(B.key)}]),onClick:C=>g(B.key,M.key)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(B.label),1)]),_:2},1032,["to","class","onClick"]))),128))],2)])):i.createCommentVNode("",!0)])],42,LX)])):(i.openBlock(),i.createBlock(x,{key:0,class:i.normalizeClass(["secondary-navigation__item",m(M.key)?`secondary-navigation__item--active-${l.value}`:""]),to:h(M),onClick:B=>f(M)},{default:i.withCtx(()=>[i.createElementVNode("div",NX,i.toDisplayString(M.label),1)]),_:2},1032,["class","to","onClick"]))],64))),128))]),k[1]||(k[1]=i.createElementVNode("div",{class:"secondary-navigation__overflow-left"},null,-1)),k[2]||(k[2]=i.createElementVNode("div",{class:"secondary-navigation__overflow-right"},null,-1))],2)}}}),[["__scopeId","data-v-f6371676"]]),RX={class:"page-layout"},HX={class:"page-layout__content"},WX=ie(Object.assign({name:"CdsPageLayout"},{__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(e,{emit:t}){i.useCssVars(o=>({a4ba528a:s.value}));const n=e,a=t,r=i.computed(()=>{var o;return((o=n.navigationItems)==null?void 0:o.length)>0}),s=i.computed(()=>r.value?"54px":"0px");return(o,l)=>{var d;return i.openBlock(),i.createElementBlock("div",RX,[i.createVNode(x6,{variant:e.variant,"active-item":e.sideBarActiveItem,light:e.light,"user-name":e.user.name??"","user-role":e.user.role??"","user-picture":e.user.picture??null,collapsible:e.collapsibleSideBar,items:e.sideBarItems,"logo-image":e.logos.default,"collapsed-logo-image":e.logos.collapsed,"show-profile-menu":e.showProfileMenu,"profile-menu-items":e.profileMenuItems,onProfileMenuOptionClick:l[0]||(l[0]=h=>a("profile-menu-option-click",h)),onSidebarClick:l[1]||(l[1]=h=>a("sidebar-item-click",h)),onLogout:l[2]||(l[2]=h=>a("sidebar-logout",h)),onSettings:l[3]||(l[3]=h=>a("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"]),i.createElementVNode("div",HX,[((d=e.navigationItems)==null?void 0:d.length)>0?(i.openBlock(),i.createBlock(S6,{key:0,light:e.light,"active-item":e.navigationActiveItem,items:e.navigationItems,onItemClick:l[4]||(l[4]=h=>a("navigation-item-click",h))},null,8,["light","active-item","items"])):i.createCommentVNode("",!0),i.createVNode(C6,{class:"page-layout__container"},{default:i.withCtx(()=>[i.renderSlot(o.$slots,"default",{},void 0,!0)]),_:3})])])}}}),[["__scopeId","data-v-63478260"]]),YX={components:{CdsLink:ec,CdsSkeleton:Ea,CdsFlexbox:Ue},props:{title:{type:String,required:!0},subtitle:{type:String,default:null},compact:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},data(){return{hasURL:!1,url:"",splitedSubtitle:[]}},computed:{fancyUrl(){return this.url.split(/http:\/\/|https:\/\//)[1]},hasSlots(){return!!Object.keys(this.$slots).length}},mounted(){this.computedSubtitle()},methods:{computedSubtitle(){var n;const e=/\b(?:http:\/\/|https:\/\/)?[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,}(?:\/\S*)?/g,t=(n=this.subtitle)==null?void 0:n.match(e);t&&t.length>0&&(this.splitedSubtitle=this.subtitle.split(t[0]),this.url=t[0])}}},jX={class:"page-header__title"},UX={key:0,class:"d-flex"},qX={class:"page-header__subtitle"},GX={key:1,class:"page-header__subtitle"},KX={class:"page-header__aside-slot"};function ZX(e,t,n,a,r,s){const o=i.resolveComponent("CdsSkeleton"),l=i.resolveComponent("CdsFlexbox"),d=i.resolveComponent("cds-link");return i.openBlock(),i.createElementBlock("div",null,[n.loading?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[s.hasSlots?(i.openBlock(),i.createBlock(l,{key:0,class:"page-header__skeleton",align:"center",justify:"space-between"},{default:i.withCtx(()=>[i.createVNode(l,{direction:"column",gap:"3"},{default:i.withCtx(()=>[i.createVNode(o,{width:300,height:36}),i.createVNode(o,{width:550,height:20})]),_:1}),i.createVNode(l,{align:"center",gap:"3"},{default:i.withCtx(()=>[i.createVNode(o,{width:120,height:36}),i.createVNode(o,{width:120,height:36})]),_:1})]),_:1})):(i.openBlock(),i.createBlock(l,{key:1,class:"page-header__skeleton",direction:"column",gap:"3"},{default:i.withCtx(()=>[i.createVNode(o,{width:300,height:36}),i.createVNode(o,{width:550,height:20})]),_:1}))],64)):(i.openBlock(),i.createElementBlock("header",{key:1,class:i.normalizeClass(n.compact?"page-header__container--compact":"page-header__container")},[i.createElementVNode("div",null,[i.createElementVNode("p",jX,i.toDisplayString(n.title),1),r.splitedSubtitle.length>0?(i.openBlock(),i.createElementBlock("div",UX,[i.createElementVNode("span",qX,[i.createTextVNode(i.toDisplayString(r.splitedSubtitle[0])+" ",1),i.createVNode(d,{href:r.url,bold:""},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(s.fancyUrl),1)]),_:1},8,["href"]),i.createTextVNode(" "+i.toDisplayString(r.splitedSubtitle[1]),1)])])):(i.openBlock(),i.createElementBlock("div",GX,i.toDisplayString(n.subtitle),1))]),i.createElementVNode("div",KX,[i.renderSlot(e.$slots,"aside")])],2))])}const XX=ie(YX,[["render",ZX]]);class Gn{constructor(t,n,a,r=null){this.index=t,this.value=n,this.selected=a,this.text=r||n}}const JX=["onClick"],QX={key:3},eJ=ie(Object.assign({name:"CdsPagination"},{__name:"Pagination",props:i.mergeModels({total:{type:Number,default:1,validator:e=>e>=1},perPage:{type:Number,default:1,validator:e=>e>=1},fluid:{type:Boolean,default:!1},variant:{type:String,default:"green"}},{modelValue:{type:[Number,String],default:1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=i.useModel(e,"modelValue"),n=e,a=i.ref(new Gn(null,parseInt(t.value,10),!0)),r=i.ref([]),s=i.computed(()=>n.total/n.perPage<1?1:Math.ceil(n.total/n.perPage)),o=i.computed(()=>n.fluid?"pagination__container--fluid":"pagination__container");function l(m){switch(m.index){case 0:return a.value.value===1?"pagination__button--first pagination__button--disabled":"pagination__button--first";case 1:return a.value.value===1?"pagination__button pagination__button--disabled":"pagination__button";case 7:return a.value.value===s.value?"pagination__button pagination__button--disabled":"pagination__button";case 8:return a.value.value===s.value?"pagination__button--last pagination__button--disabled":"pagination__button--last";default:return m.selected?yh("pagination__button--active",n.variant):"pagination__button"}}function d(){r.value=[new Gn(0,"first",!1,"<<"),new Gn(1,"back",!1,"<"),...h(),new Gn(7,"forward",!1,">"),new Gn(8,"last",!1,">>")]}function h(){const m=s.value<5?s.value+2:7,y=[];if(a.value.value<=3||s.value<=5){a.value.index=a.value.value;for(let g=2;g<m;g++)y[g-2]=new Gn(g,g-1,a.value.value===g-1);return y}if(a.value.value<=s.value-2){for(let g=2;g<m;g++){const v=a.value.value-4+g;y[g-2]=new Gn(g+1,v,a.value.value===v)}return y}for(let g=2;g<m;g++){const v=s.value-6+g;y[g-2]=new Gn(g,v,a.value.value===v)}return y}function f(m){switch(m.value){case a.value.value:return;case"first":if(a.value.index===1)return;a.value=new Gn(null,1,!0),t.value=1,d();return;case"last":if(a.value.index===s.value)return;a.value=new Gn(null,s,!0),t.value=s.value,d();return;case"back":if(a.value.index===1)return;t.value=a.value.value-1,a.value=new Gn(null,a.value.value-1,!0),d();return;case"forward":if(a.value.value===s.value)return;t.value=a.value.value+1,a.value=new Gn(null,a.value.value+1,!0),d();return;default:a.value=new Gn(null,m.value,!0),t.value=m.value,d();break}}return i.watch([t,()=>n.total,()=>n.perPage],()=>{a.value=new Gn(null,parseInt(t.value,10),!0),d()}),i.onBeforeMount(()=>{d()}),(m,y)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(o.value)},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.value,(g,v)=>(i.openBlock(),i.createElementBlock("div",{key:v,class:i.normalizeClass(l(g)),onClick:_=>f(g)},[v===0?(i.openBlock(),i.createBlock(Ai,{key:0,direction:"left",class:"pagination__double-chevron--left"})):i.createCommentVNode("",!0),v===0?(i.openBlock(),i.createBlock(Ai,{key:1,direction:"left",class:"pagination__double-chevron--left"})):i.createCommentVNode("",!0),v===1?(i.openBlock(),i.createBlock(Ai,{key:2,direction:"left"})):i.createCommentVNode("",!0),v>=2&&v<=r.value.length-3?(i.openBlock(),i.createElementBlock("span",QX,i.toDisplayString(g.text),1)):i.createCommentVNode("",!0),v===r.value.length-2?(i.openBlock(),i.createBlock(Ai,{key:4,direction:"right"})):i.createCommentVNode("",!0),v===r.value.length-1?(i.openBlock(),i.createBlock(Ai,{key:5,direction:"right",class:"pagination__double-chevron--right"})):i.createCommentVNode("",!0),v===r.value.length-1?(i.openBlock(),i.createBlock(Ai,{key:6,direction:"right",class:"pagination__double-chevron--right"})):i.createCommentVNode("",!0)],10,JX))),128))],2))}}),[["__scopeId","data-v-408b6d54"]]),tJ={name:"CdsPanelCard",components:{CdsBox:Zl,CdsDivider:zr},props:{title:{type:String,required:!0},subtitle:{type:String,required:!0},noContentPadding:{type:Boolean,default:!1}},computed:{contentClass(){return this.noContentPadding?"panel-card__content--no-pading":"panel-card__content"}}},nJ={class:"panel-card__header"},iJ={class:"panel-card__title"},aJ={class:"panel-card__subtitle"};function rJ(e,t,n,a,r,s){const o=i.resolveComponent("CdsDivider"),l=i.resolveComponent("CdsBox");return i.openBlock(),i.createBlock(l,{class:"panel-card",padding:"0",fluid:""},{default:i.withCtx(()=>[i.createElementVNode("div",nJ,[i.createElementVNode("div",null,[i.createElementVNode("span",iJ,i.toDisplayString(n.title),1),t[0]||(t[0]=i.createElementVNode("br",null,null,-1)),i.createElementVNode("span",aJ,i.toDisplayString(n.subtitle),1)]),i.createElementVNode("div",null,[i.renderSlot(e.$slots,"panel-actions",{},void 0,!0)])]),i.createVNode(o,{dimmed:""}),i.createElementVNode("div",{class:i.normalizeClass(s.contentClass)},[i.renderSlot(e.$slots,"default",{},void 0,!0)],2)]),_:3})}const sJ=ie(tJ,[["render",rJ],["__scopeId","data-v-ed8b0770"]]),oJ={class:"pin-input__container"},lJ=["id","onUpdate:modelValue","type","onKeydown","onKeypress","onInput","onFocus"],cJ=ie(Object.assign({name:"CdsPinInput"},{__name:"PinInput",props:{modelValue:{type:String,default:"",required:!0},length:{type:Number,default:4},state:{type:String,default:"default"},visible:{type:Boolean,default:!1},mobile:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=t,r=i.ref(new Array(n.length)),s=i.useTemplateRef("inputs"),o=i.computed(()=>{let m="";switch(n.state){case"valid":m="pin-input--valid";break;case"invalid":m="pin-input--invalid";break;default:m="pin-input"}return n.mobile?`${m} pin-input--mobile`:m});i.watch(()=>n.modelValue,m=>{r.value=m.split("")});function l(m,y){let g=r.value.join("");const v=n.length;y<v&&m.inputType!=="deleteContentBackward"&&s.value[y-1].focus(),g.length===v&&a("update:modelValue",g)}function d(m){if(m>1){r.value[m-1]="";let y=s.value[m-2];setTimeout(()=>{y.focus()},150)}}function h(m){let y=s.value[m-1];setTimeout(()=>{y.setSelectionRange(1,1)},3)}function f(m,y){if(m.key==="Enter"||m.charCode===32){m.preventDefault();return}const g=n.length;r.value.splice(y-1,1,m.key),y<g&&s.value[y].focus(),y===g&&r.value.join("").length===g&&a("update:modelValue",r.value.join(""))}return(m,y)=>(i.openBlock(),i.createElementBlock("div",oJ,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.length,(g,v)=>i.withDirectives((i.openBlock(),i.createElementBlock("input",{id:`pin-input${g}`,key:v,ref_for:!0,ref:"inputs","onUpdate:modelValue":_=>r.value[g-1]=_,type:e.visible?"text":"password",maxlength:"1",class:i.normalizeClass(["pin-input",o.value]),autocomplete:"off",onKeydown:i.withKeys(i.withModifiers(_=>d(g),["stop"]),["delete"]),onKeypress:_=>f(_,g),onInput:_=>l(_,g),onFocus:_=>h(g)},null,42,lJ)),[[i.vModelDynamic,r.value[g-1]]])),128))]))}}),[["__scopeId","data-v-dde95f82"]]),dJ={class:"progress-bar__content"},uJ=ie(Object.assign({name:"CdsProgressBar"},{__name:"ProgressBar",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},textLeft:{type:Boolean,default:!1},shadeSteps:{type:Number,default:1,validator:e=>e<=5&&e>=1}},setup(e){i.useCssVars(l=>({d3de0410:o.value,"764f03a4":n.value}));const t=e,n=i.ref("#2db981"),a=i.computed(()=>`${parseInt(t.value*100,10)}%`),r=i.computed(()=>sa(ai.palete)),s=i.computed(()=>({"--width":a.value,"--leftMargin":t.textAside?"3":"10","--bottomMargin":t.textAside?"10":"2"})),o=i.computed(()=>t.textAside&&t.textLeft?"row":t.textAside?"row-reverse":"column");return i.watch(()=>t.value,()=>{const l=r.value.filter(g=>g.variantName.toLowerCase()===t.variant),d=l[0].colorShades.slice(2,l[0].colorShades.length),h=t.shadeSteps<=5&&t.shadeSteps>=1?t.shadeSteps:5;if(t.shadeSteps===1)return n.value=d[2];const f=100/h,m=t.value*100,y=Math.floor(m/f)===h?h-1:Math.floor(m/f);n.value=d[y]},{immediate:!0}),(l,d)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["progress-bar",[e.textLeft&&!e.textAside?"progress-bar__left":"",e.textAside?"progress-bar--aside":""]])},[e.showText?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(["progress-bar__text",e.textAside?"progress-bar__text--aside":""])},[i.renderSlot(l.$slots,"default",{},()=>[i.createTextVNode(i.toDisplayString(a.value),1)],!0)],2)):i.createCommentVNode("",!0),i.createElementVNode("div",dJ,[i.createElementVNode("div",{class:i.normalizeClass(`progress-bar__indicator--${e.variant}`),style:i.normalizeStyle(s.value)},null,6)])],2))}}),[["__scopeId","data-v-12bf76cc"]]),hJ={name:"CdsProgressCircular",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:Jl}},fJ=["stroke-width"],pJ=["stroke-dasharray","stroke-width"];function mJ(e,t,n,a,r,s){return i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["progress-circular",`progress-circular--${n.size}`]),viewBox:"0 0 36 36"},[i.createElementVNode("path",{class:"progress-circular__ring-background","stroke-width":s.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,fJ),i.createElementVNode("path",{class:i.normalizeClass(`progress-circular__ring-progress--${n.variant}`),"stroke-dasharray":s.normalizedDashArray,"stroke-width":s.stroke-1,style:i.normalizeStyle(s.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,pJ),n.noLabel?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("text",{key:0,x:"18",y:"21.7",class:i.normalizeClass(s.labelClass)},i.toDisplayString(s.label),3))],2)}const gJ=ie(hJ,[["render",mJ]]),yJ={key:0,class:"quick_action_bar"},bJ=["placeholder"],vJ={key:1,class:"quick_action_bar__empty-state"},_J={key:2,class:"quick_action_bar__empty-state"},wJ=["onClick"],kJ={key:1,class:"quick_action_bar__result-item"},CJ=ie(Object.assign({name:"CdsQuickActionBar"},{__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:e=>e>0&&e<=10},numResults:{type:Number,required:!1,default:5,validator:e=>e>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(e,{emit:t}){const n=e,a=t,r=i.ref(n.modelValue),s=i.ref([]),o=i.ref(null),l=i.ref(!1),d=i.ref(null),h=i.ref(""),f=i.ref(0),m=i.computed(()=>{let I=s.value.some(q=>q.results&&q.results.length>0),F=n.recents.length>0;return I&&!l.value&&!n.loading?"renderResults":l.value||n.loading?"renderLoading":!l.value&&!I&&h.value.length>0?"renderEmptyState":h.value.length===0&&F?"renderRecents":!l.value&&!F&&h.value.length===0?"renderInitialState":"renderEmptyState"}),y=i.computed(()=>n.recents.slice(0,n.numRecents)),g=i.computed(()=>f.value>400);i.watch(h,()=>{k()}),i.watch(()=>n.modelValue,I=>{r.value=I,I&&setTimeout(()=>{var F;(F=d.value)==null||F.focus()},100)}),i.watch(r,I=>{I||(_(),a("close")),a("update:modelValue",I),v(I)}),i.watch(()=>n.groups,I=>{s.value=I.filter(F=>F.results.length>0),setTimeout(()=>N(),100)});function v(I){document.body.style.overflow=I?"hidden":"auto"}function _(){var I;h.value="",(I=d.value)==null||I.focus(),k()}function k(){if(clearTimeout(o.value),l.value=!0,s.value=[],h.value.trim().length===0){l.value=!1;return}o.value=setTimeout(()=>{l.value=!1,a("search",h.value)},1e3)}function x(I){a("onItemClick",I)}function M(I){a("onSeeMoreClick",I)}function B(I){I.target===I.currentTarget&&(r.value=!1)}function C(I){var F;a("onRemoveRecent",I),(F=d.value)==null||F.focus()}function V(){h.value.trim().length>0&&a("onEnterPress",h.value)}function $(I){return I.slice(0,n.numResults)}function N(){var I;f.value=(I=document.querySelector("#contentResults"))==null?void 0:I.offsetHeight}return(I,F)=>r.value?(i.openBlock(),i.createElementBlock("div",yJ,[i.createElementVNode("div",{class:"quick_action_bar__backdrop",onClick:B,onKeyup:[F[1]||(F[1]=i.withKeys(q=>r.value=!1,["esc"])),i.withKeys(V,["enter"])]},[i.createVNode(Ue,{gap:"3",class:"quick_action_bar__input",align:"center"},{default:i.withCtx(()=>[i.createVNode(ve,{height:"24",width:"24",name:"search-outline",class:"quick_action_bar__search-icon"}),i.withDirectives(i.createElementVNode("input",{ref_key:"searchInput",ref:d,"onUpdate:modelValue":F[0]||(F[0]=q=>h.value=q),type:"text",placeholder:e.placeholder},null,8,bJ),[[i.vModelText,h.value]]),h.value?(i.openBlock(),i.createElementBlock("span",{key:0,class:"quick_action_bar__clear",onClick:_}," Limpar ")):i.createCommentVNode("",!0)]),_:1}),i.createVNode(Ue,{id:"contentResults",direction:"column",class:i.normalizeClass(["quick_action_bar__results",{"quick_action_bar__results--with-overflow-y":g.value}]),wrap:"nowrap"},{default:i.withCtx(()=>[m.value==="renderLoading"?(i.openBlock(),i.createBlock(Ue,{key:0,direction:"column",gap:"4"},{default:i.withCtx(()=>[(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(5,q=>i.createVNode(Ue,{key:q,direction:"column",gap:"1",class:"quick_action_bar__skeleton-card"},{default:i.withCtx(()=>[i.createVNode(Ea,{width:250,height:20}),i.createVNode(Ea,{width:180,height:20})]),_:2},1024)),64))]),_:1})):m.value==="renderInitialState"?(i.openBlock(),i.createElementBlock("div",vJ,i.toDisplayString(e.initialStateText),1)):m.value==="renderEmptyState"?(i.openBlock(),i.createElementBlock("div",_J,i.toDisplayString(e.emptyStateText),1)):m.value==="renderRecents"?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:3},i.renderList(y.value,q=>(i.openBlock(),i.createBlock(Ue,{key:q,direction:"column",gap:"4",class:"quick_action_bar__result-item",onClick:Q=>x(q)},{default:i.withCtx(()=>[i.unref(ei)(I.$slots,"recent-item")?i.renderSlot(I.$slots,"recent-item",{key:0,data:q},void 0,!0):(i.openBlock(),i.createBlock(Ue,{key:1,justify:"space-between",align:"center"},{default:i.withCtx(()=>[i.createVNode(Ue,{align:"center",gap:"2"},{default:i.withCtx(()=>[i.createVNode(ve,{height:"20",width:"20",name:"history-outline",color:"#52616F"}),i.createElementVNode("span",null,i.toDisplayString(q.title),1)]),_:2},1024),i.createVNode(ve,{height:"20",width:"20",name:"trash-outline",color:"#52616F",class:"quick_action_bar__remove-recent-icon",onClick:i.withModifiers(Q=>C(q),["stop"])},null,8,["onClick"])]),_:2},1024))]),_:2},1032,["onClick"]))),128)):m.value==="renderResults"?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:4},i.renderList(s.value,(q,Q)=>(i.openBlock(),i.createElementBlock("div",{key:Q,class:"quick_action_bar__results-block"},[q.results.length>0?(i.openBlock(),i.createBlock(zr,{key:0,text:q.category,inline:"",class:"quick_action_bar__divider"},null,8,["text"])):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList($(q.results),P=>(i.openBlock(),i.createElementBlock("div",{key:P,class:"quick_action_bar__result-item-wrapper",onClick:Z=>x(P)},[i.unref(ei)(I.$slots,"result-item")?i.renderSlot(I.$slots,"result-item",{key:0,data:P},void 0,!0):(i.openBlock(),i.createElementBlock("div",kJ,[i.createVNode(Iy,{"highlighted-text":h.value},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(P.title),1)]),_:2},1032,["highlighted-text"])]))],8,wJ))),128)),q.results.length>n.numResults?(i.openBlock(),i.createBlock(Ue,{key:1,class:"quick_action_bar__show-more",align:"center",justify:"start",gap:"1",onClick:P=>M(q)},{default:i.withCtx(()=>[i.createElementVNode("span",null,[i.createTextVNode(" Ver todos os "+i.toDisplayString(q.results.length)+" resultados em ",1),i.createElementVNode("b",null,i.toDisplayString(q.category),1)])]),_:2},1032,["onClick"])):i.createCommentVNode("",!0)]))),128)):i.createCommentVNode("",!0),m.value==="renderResults"||m.value==="renderEmptyState"?i.renderSlot(I.$slots,"footer",{key:5,class:"quick_action_bar__footer"},void 0,!0):i.createCommentVNode("",!0)]),_:3},8,["class"])],32)])):i.createCommentVNode("",!0)}}),[["__scopeId","data-v-033f2985"]]),zf={name:"CdsRadio",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"}}},B6=()=>{i.useCssVars(e=>({d8d09070:e.cursorType}))},M6=zf.setup;zf.setup=M6?(e,t)=>(B6(),M6(e,t)):B6;const xJ={class:"cds-radio__container"},SJ=["id","value","disabled","name","checked"],BJ=["for"],MJ=["disabled"];function EJ(e,t,n,a,r,s){return i.openBlock(),i.createElementBlock("span",xJ,[i.createElementVNode("input",{id:`${r.uniqueId}-${n.value}`,type:"radio",class:i.normalizeClass(["cds-radio",`cds-radio--${n.variant}`]),value:n.value,disabled:n.disabled,name:e.$attrs.name,checked:s.isChecked,onChange:t[0]||(t[0]=o=>e.$emit("update:modelValue",o.target.value))},null,42,SJ),i.createElementVNode("label",{class:"cds-radio__label",for:`${r.uniqueId}-${n.value}`},[i.renderSlot(e.$slots,"default",{},()=>[i.createElementVNode("span",{class:"cds-radio__label-text",disabled:n.disabled},i.toDisplayString(n.label),9,MJ)])],8,BJ)])}const OJ=ie(zf,[["render",EJ]]);aa.register(...Xr);const DJ={name:"CdsRadialBarChart",components:{Doughnut:qg},props:{data:{type:Object,required:!0,default:()=>({datasets:[{label:"",data:[]}]})},variant:{type:String,required:!0,default:"green",validator:e=>["green","teal","turquoise","blue","indigo","violet","pink","red","orange","amber","gray","dark"].includes(e)},theme:{type:String,required:!1,default:"",validator:e=>["green","teal","turquoise","blue","indigo","violet","pink","red","orange","amber","gray","dark"].includes(e)},labels:{type:Array,required:!0,default:()=>[]},colors:{type:Array,default:()=>[],validator:e=>{const t=["green","teal","turquoise","blue","indigo","violet","pink","red","orange","amber","gray","dark"];return e.every(n=>t.includes(n))}}},data(){return{sassColorVariables:ai,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(e=>{const t=this.palletColors.find(n=>n.variantName.toLowerCase().includes(e));if(t)return t.color400})}},watch:{labels:{handler(e){this.localLabels=e},immediate:!0},variant:{handler(e){e==="gray"||e==="dark"?this.deleteFirstTwoColors=!0:this.deleteFirstTwoColors=!1},immediate:!0},data:{handler(e){this.mergeChartDataNoSelect(e)},immediate:!0}},mounted(){this.data.forEach(e=>{e.datasets[0].data[0]>this.largestValue&&(this.largestValue=e.datasets[0].data[0])}),this.mergeChartDataNoSelect(this.data)},methods:{paleteBuilder:sa,palete(){this.palletColors=this.paleteBuilder(this.sassColorVariables.palete),this.removeFirstTwoElements()},computedCutout(){let e;switch(this.localChartData.datasets.reduce((n,a)=>n+(a.hidden!==!0?1:0),0)){case 1:e=82;break;case 2:e=55;break;case 3:e=40;break;case 4:e=30;break;default:e=20;break}this.localChartData.datasets.forEach(n=>{n.cutout=`${e}%`})},themeResolver(){this.themeColors=this.paleteBuilder(this.sassColorVariables.chartThemes)},removeFirstTwoElements(){for(let e=0;e<this.palletColors.length;e++){const t=this.palletColors[e];this.deleteFirstTwoColors===!1&&(t.colorShades.splice(0,2),t.colorTokens.splice(0,2),t.colorData.splice(0,2))}},mergeChartDataNoSelect(e){const t={labels:this.localLabels,datasets:[]};if(e.forEach(n=>{n.datasets.forEach(a=>{const r={label:a.label,data:a.data,circumference:this.largestValueDegree*a.data/this.largestValue,borderRadius:16,hidden:!1};t.datasets.push(r),this.computedCutout(),this.key++})}),this.theme.length&&this.colors.length===0){this.themeResolver();const n=this.isColorsSet?this.computedBackgroundColors:this.generateBackgroundColorWithTheme();this.setColors(t.datasets,n)}else{this.palete();const n=this.isColorsSet?this.computedBackgroundColors:this.generateBackgroundColor();this.setColors(t.datasets,n)}this.localChartData=t},generateBackgroundColor(){const e=this.variant.toLowerCase(),t=this.palletColors.find(n=>n.variantName.toLowerCase().includes(e));return t?t.colorShades:[]},generateBackgroundColorWithTheme(){const e=this.theme.toLowerCase(),t=this.themeColors.find(n=>n.variantName.toLowerCase().includes(e));return t?t.colorShades:[]},setColors(e,t){const n={};e.forEach(a=>{const r=a.name;n[r]||(n[r]=t.slice()),a.backgroundColor=n[r].splice(0,a.data.length),a.borderRadius=16})},clickHandler(e){const n=this.$refs["radial-bar-chart"].chart.getElementsAtEventForMode(e,"nearest",{intersect:!0},!1),a={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",a)},handleLegendClick(e){this.localChartData.datasets.forEach(t=>{t.label===e.label&&(t.hidden=!t.hidden)}),this.computedCutout(),this.key++}}},VJ={class:"responsive-container"},$J={class:"legend__container"},TJ=["onClick"];function IJ(e,t,n,a,r,s){const o=i.resolveComponent("Doughnut");return i.openBlock(),i.createElementBlock("span",null,[i.createElementVNode("div",VJ,[i.createElementVNode("div",$J,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.localChartData.datasets,l=>(i.openBlock(),i.createElementBlock("div",{key:l.label,class:"legend__item",onClick:d=>s.handleLegendClick(l)},[i.createElementVNode("div",{class:"legend__square",style:i.normalizeStyle(`background-color: ${l.backgroundColor}`)},null,4),i.createElementVNode("span",{class:i.normalizeClass({"legend__text--strikethrough":l.hidden})},i.toDisplayString(l.label),3)],8,TJ))),128))]),(i.openBlock(),i.createBlock(o,{ref:"radial-bar-chart",key:r.key,data:r.localChartData,options:r.chartOptions,onClick:s.clickHandler},null,8,["data","options","onClick"]))])])}const AJ=ie(DJ,[["render",IJ],["__scopeId","data-v-0f5a7e7d"]]),NJ=["disabled","for"],zJ=["id","value","disabled"],LJ=["for"],PJ={class:"content-title"},FJ={key:0,class:"content-body"},RJ={key:0,class:"radio-button__error-text"},HJ=ie(Object.assign({name:"CdsRadioButtonGroup"},{__name:"RadioButtonGroup",props:i.mergeModels({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,required:!1},allowsExpand:{type:Boolean,default:!1,required:!1},fluid:{type:Boolean,default:!1,required:!1},state:{type:String,default:"default"},errorMessage:{type:String,default:"Valor inválido"},variant:{type:String,default:"blue"},tooltip:{type:String,default:null},tooltipIcon:{type:String,default:"info-outline"},supportLink:{type:String,default:null},supportLinkUrl:{type:[String,null],default:null}},{modelValue:{type:[String,null]},modelModifiers:{}}),emits:["update:modelValue"],setup(e){i.useCssVars(d=>({"94b7ecb4":o.value}));const t=i.useModel(e,"modelValue"),n=e,a=i.ref(""),r=i.ref(`radio-group$-${Qa()}`),s=i.computed(()=>({"--border-color-selected":Jl(n.variant),"--background-color":PE(n.variant),"--display-vertical":n.allowsExpand||n.fluid?"flex":"inline-flex","--width-vertical":n.allowsExpand||n.fluid?"100%":null})),o=i.computed(()=>n.allowsExpand||n.fluid?"100%":"266px"),l=i.computed(()=>n.state==="invalid");return i.watch(a,d=>{t.value=d}),i.watch(t,d=>{a.value=d},{immediate:!0}),(d,h)=>(i.openBlock(),i.createElementBlock("div",{class:"radio__button",style:i.normalizeStyle(s.value)},[i.createVNode(hu,{text:e.label,tooltip:e.tooltip,"tooltip-icon":e.tooltipIcon,required:e.required,"support-link":e.supportLink,"support-link-url":e.supportLinkUrl,fluid:e.allowsExpand||e.fluid},null,8,["text","tooltip","tooltip-icon","required","support-link","support-link-url","fluid"]),i.createElementVNode("div",{class:i.normalizeClass({"button-group":e.inline})},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.options,(f,m)=>(i.openBlock(),i.createElementBlock("div",{key:f.value,class:i.normalizeClass({"radio-button__container--vertical":e.inline&&m>=0}),style:i.normalizeStyle(e.allowsExpand||e.fluid?"width: 100%":"")},[i.createElementVNode("label",{class:"radio-button",disabled:f.disabled||e.disabled,for:`${d.$attrs.id||r.value}-${f.value}`},[i.withDirectives(i.createElementVNode("input",{id:`${d.$attrs.id||r.value}-${f.value}`,"onUpdate:modelValue":h[0]||(h[0]=y=>a.value=y),type:"radio",value:f.value,disabled:f.disabled||e.disabled},null,8,zJ),[[i.vModelRadio,a.value]]),i.createElementVNode("label",{class:"radio-button__content",for:`${d.$attrs.id||r.value}-${f.value}`},[i.createElementVNode("div",PJ,i.toDisplayString(f.label||f.text),1),e.allowsExpand||e.fluid?(i.openBlock(),i.createElementBlock("div",FJ,i.toDisplayString(f.body),1)):i.createCommentVNode("",!0)],8,LJ)],8,NJ)],6))),128))],2),l.value&&!e.disabled?(i.openBlock(),i.createElementBlock("div",RJ,i.toDisplayString(e.errorMessage),1)):i.createCommentVNode("",!0)],4))}}),[["__scopeId","data-v-7fe8bff8"]]),WJ={name:"CdsSegmentedControl",components:{CdsIcon:ve,CdsTooltip:ad},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(e,t){this.activeSegment=e,this.$emit("click",this.activeSegment,t)}}},YJ={class:"segment-control"},jJ=["onClick"],UJ={key:1};function qJ(e,t,n,a,r,s){const o=i.resolveComponent("CdsIcon"),l=i.resolveComponent("CdsTooltip");return i.openBlock(),i.createElementBlock("div",YJ,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.segments,(d,h)=>(i.openBlock(),i.createElementBlock("button",{key:h,class:i.normalizeClass(["segment-control__button",{"segment-control__button--active":d===r.activeSegment,"segment-control__button--inactive":d!==r.activeSegment}]),onClick:f=>s.handleClick(d,h)},[n.withIcon?(i.openBlock(),i.createBlock(l,{key:0,text:n.segmentsTooltipText[h]},{default:i.withCtx(()=>[i.createVNode(o,{height:"20",width:"20",name:d},null,8,["name"])]),_:2},1032,["text"])):(i.openBlock(),i.createElementBlock("span",UJ,i.toDisplayString(d),1))],10,jJ))),128))])}const GJ=ie(WJ,[["render",qJ]]),KJ={name:"CdsSkeletonText",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 ZJ(e,t,n,a,r,s){return i.openBlock(),i.createElementBlock("div",{class:"skeleton__container",style:i.normalizeStyle(s.computedStyle)},null,4)}const XJ=ie(KJ,[["render",ZJ],["__scopeId","data-v-1db1360e"]]);(function(){try{if(typeof document<"u"){var e=document.createElement("style");e.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(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();var JJ=Object.defineProperty,QJ=(e,t,n)=>t in e?JJ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Xt=(e,t,n)=>(QJ(e,typeof t!="symbol"?t+"":t,n),n);const Lf=(e,t)=>{const n=e.__vccOpts||e;for(const[a,r]of t)n[a]=r;return n},eQ={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(e){if(this.disabled)return!1;this.$emit("drag-start")}}},tQ=["aria-valuetext"],nQ={class:"vue-slider-dot-tooltip-text"};function iQ(e,t,n,a,r,s){return i.openBlock(),i.createElementBlock("div",{ref:"dot",class:i.normalizeClass(s.dotClasses),"aria-valuetext":s.tooltipValue,onMousedown:t[0]||(t[0]=(...o)=>s.dragStart&&s.dragStart(...o)),onTouchstartPassive:t[1]||(t[1]=(...o)=>s.dragStart&&s.dragStart(...o))},[i.renderSlot(e.$slots,"dot",{},()=>[i.createElementVNode("div",{class:i.normalizeClass(s.handleClasses),style:i.normalizeStyle(n.dotStyle)},null,6)]),n.tooltip!=="none"?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(s.tooltipClasses)},[i.renderSlot(e.$slots,"tooltip",{},()=>[i.createElementVNode("div",{class:i.normalizeClass(s.tooltipInnerClasses),style:i.normalizeStyle(n.tooltipStyle)},[i.createElementVNode("span",nQ,i.toDisplayString(s.tooltipValue),1)],6)])],2)):i.createCommentVNode("",!0)],42,tQ)}const E6=Lf(eQ,[["render",iQ]]),aQ={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(e){e.stopPropagation(),this.$emit("pressLabel",this.mark.pos)}}};function rQ(e,t,n,a,r,s){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(s.marksClasses)},[i.renderSlot(e.$slots,"step",{},()=>[i.createElementVNode("div",{class:i.normalizeClass(s.stepClasses),style:i.normalizeStyle([n.stepStyle,n.mark.style,n.mark.active?n.stepActiveStyle:null,n.mark.active?n.mark.activeStyle:null])},null,6)]),n.hideLabel?i.createCommentVNode("",!0):i.renderSlot(e.$slots,"label",{key:0},()=>[i.createElementVNode("div",{class:i.normalizeClass(s.labelClasses),style:i.normalizeStyle([n.labelStyle,n.mark.labelStyle,n.mark.active?n.labelActiveStyle:null,n.mark.active?n.mark.labelActiveStyle:null]),onClick:t[0]||(t[0]=(...o)=>s.labelClickHandle&&s.labelClickHandle(...o))},i.toDisplayString(n.mark.label),7)])],2)}const O6=Lf(aQ,[["render",rQ]]),mc=e=>typeof e=="number"?`${e}px`:e,sQ=e=>{const t=document.documentElement,n=document.body,a=e.getBoundingClientRect();return{y:a.top+(window.pageYOffset||t.scrollTop)-(t.clientTop||n.clientTop||0),x:a.left+(window.pageXOffset||t.scrollLeft)-(t.clientLeft||n.clientLeft||0)}},oQ=(e,t,n)=>{const a="targetTouches"in e?e.targetTouches[0]:e,r=sQ(t),s={x:a.pageX-r.x,y:a.pageY-r.y};return{x:n?t.offsetWidth-s.x:s.x,y:n?t.offsetHeight-s.y:s.y}},lQ=(e,t)=>{if(t.hook){const n=t.hook(e);if(typeof n=="function")return n;if(!n)return null}switch(e.keyCode){case 38:return n=>t.direction==="ttb"?n-1:n+1;case 39:return n=>t.direction==="rtl"?n-1:n+1;case 40:return n=>t.direction==="ttb"?n+1:n-1;case 37:return n=>t.direction==="rtl"?n+1:n-1;case 35:return()=>t.max;case 36:return()=>t.min;case 33:return n=>n+10;case 34:return n=>n-10;default:return null}};class Aa{constructor(t){Xt(this,"num"),this.num=t}decimal(t,n){const a=this.num,r=this.getDecimalLen(a),s=this.getDecimalLen(t);let o=0;switch(n){case"+":o=this.getExponent(r,s),this.num=(this.safeRoundUp(a,o)+this.safeRoundUp(t,o))/o;break;case"-":o=this.getExponent(r,s),this.num=(this.safeRoundUp(a,o)-this.safeRoundUp(t,o))/o;break;case"*":this.num=this.safeRoundUp(this.safeRoundUp(a,this.getExponent(r)),this.safeRoundUp(t,this.getExponent(s)))/this.getExponent(r+s);break;case"/":o=this.getExponent(r,s),this.num=this.safeRoundUp(a,o)/this.safeRoundUp(t,o);break;case"%":o=this.getExponent(r,s),this.num=this.safeRoundUp(a,o)%this.safeRoundUp(t,o)/o;break}return this}plus(t){return this.decimal(t,"+")}minus(t){return this.decimal(t,"-")}multiply(t){return this.decimal(t,"*")}divide(t){return this.decimal(t,"/")}remainder(t){return this.decimal(t,"%")}toNumber(){return this.num}getDecimalLen(t){const n=`${t}`.split("e");return(`${n[0]}`.split(".")[1]||"").length-(n[1]?+n[1]:0)}getExponent(t,n){return Math.pow(10,n!==void 0?Math.max(t,n):t)}safeRoundUp(t,n){return Math.round(t*n)}}const cQ={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 dQ{constructor(t){Xt(this,"dotsPos",[]),Xt(this,"dotsValue",[]),Xt(this,"data"),Xt(this,"enableCross"),Xt(this,"fixed"),Xt(this,"max"),Xt(this,"min"),Xt(this,"interval"),Xt(this,"minRange"),Xt(this,"maxRange"),Xt(this,"order"),Xt(this,"marks"),Xt(this,"included"),Xt(this,"process"),Xt(this,"adsorb"),Xt(this,"dotOptions"),Xt(this,"onError"),Xt(this,"cacheRangeDir",{}),this.data=t.data,this.max=t.max,this.min=t.min,this.interval=t.interval,this.order=t.order,this.marks=t.marks,this.included=t.included,this.process=t.process,this.adsorb=t.adsorb,this.dotOptions=t.dotOptions,this.onError=t.onError,this.order?(this.minRange=t.minRange||0,this.maxRange=t.maxRange||0,this.enableCross=t.enableCross,this.fixed=t.fixed):((t.minRange||t.maxRange||!t.enableCross||t.fixed)&&this.emitError(5),this.minRange=0,this.maxRange=0,this.enableCross=!0,this.fixed=!1),this.setValue(t.value)}setValue(t){this.setDotsValue(Array.isArray(t)?this.order?[...t].sort((n,a)=>this.getIndexByValue(n)-this.getIndexByValue(a)):[...t]:[t],!0)}setDotsValue(t,n){this.dotsValue=t,n&&this.syncDotsPos()}setDotsPos(t){const n=this.order?[...t].sort((a,r)=>a-r):t;this.dotsPos=n,this.setDotsValue(n.map(a=>this.getValueByPos(a)),this.adsorb)}getValueByPos(t){let n=this.parsePos(t);if(this.included){let a=100;this.markList.forEach(r=>{const s=Math.abs(r.pos-t);s<a&&(a=s,n=r.value)})}return n}syncDotsPos(){this.dotsPos=this.dotsValue.map(t=>this.parseValue(t))}get markList(){if(!this.marks)return[];const t=(n,a)=>{const r=this.parseValue(n);return{pos:r,value:n,label:n,active:this.isActiveByPos(r),...a}};return this.marks===!0?this.getValues().map(n=>t(n)):Object.prototype.toString.call(this.marks)==="[object Object]"?Object.keys(this.marks).sort((n,a)=>+n-+a).map(n=>{const a=this.marks[n];return t(n,typeof a!="string"?a:{label:a})}):Array.isArray(this.marks)?this.marks.map(n=>t(n)):typeof this.marks=="function"?this.getValues().map(n=>({value:n,result:this.marks(n)})).filter(({result:n})=>!!n).map(({value:n,result:a})=>t(n,a)):[]}getRecentDot(t){const n=this.dotsPos.filter((a,r)=>!(this.getDotOption(r)&&this.getDotOption(r).disabled)).map(a=>Math.abs(a-t));return n.indexOf(Math.min(...n))}getIndexByValue(t){return this.data?this.data.indexOf(t):new Aa(+t).minus(this.min).divide(this.interval).toNumber()}getValueByIndex(t){return t<0?t=0:t>this.total&&(t=this.total),this.data?this.data[t]:new Aa(t).multiply(this.interval).plus(this.min).toNumber()}setDotPos(t,n){t=this.getValidPos(t,n).pos;const a=t-this.dotsPos[n];if(!a)return;let r=new Array(this.dotsPos.length);this.fixed?r=this.getFixedChangePosArr(a,n):this.minRange||this.maxRange?r=this.getLimitRangeChangePosArr(t,a,n):r[n]=a,this.setDotsPos(this.dotsPos.map((s,o)=>s+(r[o]||0)))}getFixedChangePosArr(t,n){return this.dotsPos.forEach((a,r)=>{if(r!==n){const{pos:s,inRange:o}=this.getValidPos(a+t,r);o||(t=Math.min(Math.abs(s-a),Math.abs(t))*(t<0?-1:1))}}),this.dotsPos.map(a=>t)}getLimitRangeChangePosArr(t,n,a){const r=[{index:a,changePos:n}],s=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=(_,k)=>{const x=Math.abs(_-k);return d?x<this.minRangeDir:x>this.maxRangeDir};let y=a+f,g=this.dotsPos[y],v=t;for(;this.isPos(g)&&m(g,v);){const{pos:_}=this.getValidPos(g+s,y);r.push({index:y,changePos:_-g}),y=y+f,v=_,g=this.dotsPos[y]}}),this.dotsPos.map((o,l)=>{const d=r.filter(h=>h.index===l);return d.length?d[0].changePos:0})}isPos(t){return typeof t=="number"}getValidPos(t,n){const a=this.valuePosRange[n];let r=!0;return t<a[0]?(t=a[0],r=!1):t>a[1]&&(t=a[1],r=!1),{pos:t,inRange:r}}parseValue(t){if(this.data)t=this.data.indexOf(t);else if(typeof t=="number"||typeof t=="string"){if(t=+t,t<this.min)return this.emitError(3),0;if(t>this.max)return this.emitError(4),0;if(typeof t!="number"||t!==t)return this.emitError(1),0;t=new Aa(t).minus(this.min).divide(this.interval).toNumber()}const n=new Aa(t).multiply(this.gap).toNumber();return n<0?0:n>100?100:n}parsePos(t){const n=Math.round(t/this.gap);return this.getValueByIndex(n)}isActiveByPos(t){return this.processArray.some(([n,a])=>t>=n&&t<=a)}getValues(){if(this.data)return this.data;{const t=[];for(let n=0;n<=this.total;n++)t.push(new Aa(n).multiply(this.interval).plus(this.min).toNumber());return t}}getRangeDir(t){return t?new Aa(t).divide(new Aa(this.data?this.data.length-1:this.max).minus(this.data?0:this.min).toNumber()).multiply(100).toNumber():100}emitError(t){this.onError&&this.onError(t,cQ[t])}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 t=0;return this.data?t=this.data.length-1:t=new Aa(this.max).minus(this.min).divide(this.interval).toNumber(),t-Math.floor(t)!==0?(this.emitError(2),0):t}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(t){return Array.isArray(this.dotOptions)?this.dotOptions[t]:this.dotOptions}getDotRange(t,n,a){if(!this.dotOptions)return a;const r=this.getDotOption(t);return r&&r[n]!==void 0?this.parseValue(r[n]):a}get valuePosRange(){const t=this.dotsPos,n=[];return t.forEach((a,r)=>{n.push([Math.max(this.minRange?this.minRangeDir*r:0,this.enableCross?0:t[r-1]||0,this.getDotRange(r,"min",0)),Math.min(this.minRange?100-this.minRangeDir*(t.length-1-r):100,this.enableCross?100:t[r+1]||100,this.getDotRange(r,"max",100))])}),n}get dotsIndex(){return this.dotsValue.map(t=>this.getIndexByValue(t))}}class uQ{constructor(t){Xt(this,"map"),Xt(this,"states",0),this.map=t}add(t){this.states|=t}delete(t){this.states&=~t}toggle(t){this.has(t)?this.delete(t):this.add(t)}has(t){return!!(this.states&t)}}const Pf=4,vn={None:0,Drag:2,Focus:4},hQ={emits:["update:modelValue","change","drag-start","drag-end","dragging","error"],components:{VueSliderDot:E6,VueSliderMark:O6},props:{modelValue:{type:[Number,String,Array],default:0},silent:{type:Boolean,default:!1},direction:{type:String,default:"ltr",validator:e=>["ltr","rtl","ttb","btt"].indexOf(e)>-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:e=>["none","always","focus","hover","active"].indexOf(e)>-1},tooltipPlacement:{type:[String,Array],default:void 0,validator:e=>(Array.isArray(e)?e:[e]).every(t=>["top","right","bottom","left"].indexOf(t)>-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 uQ(vn),scale:1,focusDotIndex:0}},computed:{tailSize(){return mc((this.isHorizontal?this.height:this.width)||Pf)},containerClasses(){return["vue-slider",[`vue-slider-${this.direction}`],{"vue-slider-disabled":this.disabled}]},containerStyles(){const[e,t]=Array.isArray(this.dotSize)?this.dotSize:[this.dotSize,this.dotSize],n=this.width?mc(this.width):this.isHorizontal?"auto":mc(Pf),a=this.height?mc(this.height):this.isHorizontal?mc(Pf):"auto";return{padding:this.contained?`${t/2}px ${e/2}px`:this.isHorizontal?`${t/2}px 0`:`0 ${e/2}px`,width:n,height:a}},processArray(){return this.control.processArray.map(([e,t,n],a)=>{e>t&&([e,t]=[t,e]);const r=this.isHorizontal?"width":"height";return{start:e,end:t,index:a,style:{[this.isHorizontal?"height":"width"]:"100%",[this.isHorizontal?"top":"left"]:0,[this.mainDirection]:`${e}%`,[r]:`${t-e}%`,transitionProperty:`${r},${this.mainDirection}`,transitionDuration:`${this.animateTime}s`,...this.processStyle,...n}}})},dotBaseStyle(){const[e,t]=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:`${e}px`,height:`${t}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 e=this.tooltipPlacement||(this.isHorizontal?"top":"left");return Array.isArray(e)?e:this.dots.map(()=>e)},dots(){return this.control.dotsPos.map((e,t)=>({pos:e,index:t,value:this.control.dotsValue[t],focus:this.states.has(vn.Focus)&&this.focusDotIndex===t,disabled:this.disabled,style:this.dotStyle,...(Array.isArray(this.dotOptions)?this.dotOptions[t]:this.dotOptions)||{}}))},animateTime(){return this.states.has(vn.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(e=>e[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 e=>{const t={label:e};return this.data.some(n=>n[this.dataValue]===e?(t.label=n[this.dataLabel],!0):!1),t};if(this.isObjectData(this.data))return this.data},sliderTooltipFormatter(){if(this.tooltipFormatter)return this.tooltipFormatter;if(this.isObjectArrayData(this.data))return e=>{let t=""+e;return this.data.some(n=>n[this.dataValue]===e?(t=n[this.dataLabel],!0):!1),t};if(this.isObjectData(this.data)){const e=this.data;return t=>e[t]}},isNotSync(){const e=this.control.dotsValue;return Array.isArray(this.modelValue)?this.modelValue.length!==e.length||this.modelValue.some((t,n)=>t!==e[n]):this.modelValue!==e[0]},dragRange(){const e=this.dots[this.focusDotIndex-1],t=this.dots[this.focusDotIndex+1];return[e?e.pos:-1/0,t?t.pos:1/0]}},created(){this.initControl()},mounted(){this.bindEvent()},beforeUnmount(){this.unbindEvent()},methods:{isObjectData(e){return!!e&&Object.prototype.toString.call(e)==="[object Object]"},isObjectArrayData(e){return!!e&&Array.isArray(e)&&e.length>0&&typeof e[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 e=new Aa(Math.floor(this.isHorizontal?this.$refs.rail.offsetWidth:this.$refs.rail.offsetHeight));this.zoom!==void 0&&e.multiply(this.zoom),e.divide(100),this.scale=e.toNumber()},initControl(){this.control=new dQ({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(e=>{this.$watch(e,t=>{if(e==="data"&&Array.isArray(this.control.data)&&Array.isArray(t)&&this.control.data.length===t.length&&t.every((n,a)=>n===this.control.data[a]))return!1;switch(e){case"data":case"dataLabel":case"dataValue":this.control.data=this.sliderData;break;case"mark":this.control.marks=this.sliderMarks;break;default:this.control[e]=t}["data","max","min","interval"].indexOf(e)>-1&&this.control.syncDotsPos()})})},syncValueByPos(){const e=this.control.dotsValue;if(this.isDiff(e,Array.isArray(this.modelValue)?this.modelValue:[this.modelValue])){const t=e.length===1?e[0]:[...e];this.$emit("change",t,this.focusDotIndex),this.$emit("update:modelValue",t,this.focusDotIndex)}},isDiff(e,t){return e.length!==t.length||e.some((n,a)=>n!==t[a])},emitError(e,t){this.silent||console.error(`[VueSlider error]: ${t}`),this.$emit("error",e,t)},dragStartOnProcess(e){if(this.dragOnClick){this.setScale();const t=this.getPosByEvent(e),n=this.control.getRecentDot(t);if(this.dots[n].disabled)return;this.dragStart(n),this.control.setDotPos(t,this.focusDotIndex),this.lazy||this.syncValueByPos()}},dragStart(e){this.focusDotIndex=e,this.setScale(),this.states.add(vn.Drag),this.states.add(vn.Focus),this.$emit("drag-start",this.focusDotIndex)},dragMove(e){if(!this.states.has(vn.Drag))return!1;e.preventDefault();const t=this.getPosByEvent(e);this.isCrossDot(t),this.control.setDotPos(t,this.focusDotIndex),this.lazy||this.syncValueByPos();const n=this.control.dotsValue;this.$emit("dragging",n.length===1?n[0]:[...n],this.focusDotIndex)},isCrossDot(e){if(this.canSort){const t=this.focusDotIndex;let n=e;if(n>this.dragRange[1]?(n=this.dragRange[1],this.focusDotIndex++):n<this.dragRange[0]&&(n=this.dragRange[0],this.focusDotIndex--),t!==this.focusDotIndex){const a=this.$refs[`dot-${this.focusDotIndex}`];a&&a.$el&&a.$el.focus(),this.control.setDotPos(n,t)}}},dragEnd(e){if(!this.states.has(vn.Drag))return!1;setTimeout(()=>{this.lazy&&this.syncValueByPos(),this.included&&this.isNotSync?this.control.setValue(this.modelValue):this.control.syncDotsPos(),this.states.delete(vn.Drag),(!this.useKeyboard||"targetTouches"in e)&&this.states.delete(vn.Focus),this.$emit("drag-end",this.focusDotIndex)})},blurHandle(e){if(!this.states.has(vn.Focus)||!this.$refs.container||this.$refs.container.contains(e.target))return!1;this.states.delete(vn.Focus)},clickHandle(e){if(!this.clickable||this.disabled)return!1;if(this.states.has(vn.Drag))return;this.setScale();const t=this.getPosByEvent(e);this.setValueByPos(t)},focus(e=0){this.states.add(vn.Focus),this.focusDotIndex=e},blur(){this.states.delete(vn.Focus)},getValue(){const e=this.control.dotsValue;return e.length===1?e[0]:e},getIndex(){const e=this.control.dotsIndex;return e.length===1?e[0]:e},setValue(e){this.control.setValue(Array.isArray(e)?[...e]:[e]),this.syncValueByPos()},setIndex(e){const t=Array.isArray(e)?e.map(n=>this.control.getValueByIndex(n)):this.control.getValueByIndex(e);this.setValue(t)},setValueByPos(e){const t=this.control.getRecentDot(e);if(this.disabled||this.dots[t].disabled)return!1;this.focusDotIndex=t,this.control.setDotPos(e,t),this.syncValueByPos(),this.useKeyboard&&this.states.add(vn.Focus),setTimeout(()=>{this.included&&this.isNotSync?this.control.setValue(this.modelValue):this.control.syncDotsPos()})},keydownHandle(e){if(!this.useKeyboard||!this.states.has(vn.Focus))return!1;const t=this.included&&this.marks,n=lQ(e,{direction:this.direction,max:t?this.control.markList.length-1:this.control.total,min:0,hook:this.keydownHook});if(n){e.preventDefault();let a=-1,r=0;t?(this.control.markList.some((s,o)=>s.value===this.control.dotsValue[this.focusDotIndex]?(a=n(o),!0):!1),a<0?a=0:a>this.control.markList.length-1&&(a=this.control.markList.length-1),r=this.control.markList[a].pos):(a=n(this.control.getIndexByValue(this.control.dotsValue[this.focusDotIndex])),r=this.control.parseValue(this.control.getValueByIndex(a))),this.isCrossDot(r),this.control.setDotPos(r,this.focusDotIndex),this.syncValueByPos()}},getPosByEvent(e){return oQ(e,this.$refs.rail,this.isReverse)[this.isHorizontal?"x":"y"]/this.scale}},watch:{modelValue:{handler(){this.control&&!this.states.has(vn.Drag)&&this.isNotSync&&(this.control.setValue(this.modelValue),this.syncValueByPos())},deep:!0}}},fQ={key:0,class:"vue-slider-marks"};function pQ(e,t,n,a,r,s){const o=i.resolveComponent("VueSliderMark"),l=i.resolveComponent("VueSliderDot");return i.openBlock(),i.createElementBlock("div",i.mergeProps({ref:"container",class:s.containerClasses,style:s.containerStyles,onClick:t[1]||(t[1]=(...d)=>s.clickHandle&&s.clickHandle(...d)),onTouchstartPassive:t[2]||(t[2]=(...d)=>s.dragStartOnProcess&&s.dragStartOnProcess(...d)),onMousedown:t[3]||(t[3]=(...d)=>s.dragStartOnProcess&&s.dragStartOnProcess(...d))},e.$attrs),[i.createElementVNode("div",{ref:"rail",class:"vue-slider-rail",style:i.normalizeStyle(n.railStyle)},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.processArray,(d,h)=>i.renderSlot(e.$slots,"process",i.mergeProps({ref_for:!0},{...d}),()=>[(i.openBlock(),i.createElementBlock("div",{class:"vue-slider-process",key:`process-${h}`,style:i.normalizeStyle(d.style)},null,4))])),256)),s.sliderMarks?(i.openBlock(),i.createElementBlock("div",fQ,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.control.markList,(d,h)=>i.renderSlot(e.$slots,"mark",i.mergeProps({ref_for:!0},{...d}),()=>[(i.openBlock(),i.createBlock(o,{key:`mark-${h}`,mark:d,hideLabel:n.hideLabel,style:i.normalizeStyle({[s.isHorizontal?"height":"width"]:"100%",[s.isHorizontal?"width":"height"]:s.tailSize,[s.mainDirection]:`${d.pos}%`}),stepStyle:n.stepStyle,stepActiveStyle:n.stepActiveStyle,labelStyle:n.labelStyle,labelActiveStyle:n.labelActiveStyle,onPressLabel:f=>n.clickable&&s.setValueByPos(f)},{step:i.withCtx(()=>[i.renderSlot(e.$slots,"step",i.mergeProps({ref_for:!0},{...d}))]),label:i.withCtx(()=>[i.renderSlot(e.$slots,"label",i.mergeProps({ref_for:!0},{...d}))]),_:2},1032,["mark","hideLabel","style","stepStyle","stepActiveStyle","labelStyle","labelActiveStyle","onPressLabel"]))])),256))])):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.dots,(d,h)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(l,i.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(s.sliderTooltipFormatter)?s.sliderTooltipFormatter[h]:s.sliderTooltipFormatter,"tooltip-placement":s.tooltipDirections[h],style:[s.dotBaseStyle,{[s.mainDirection]:`${d.pos}%`,transition:`${s.mainDirection} ${s.animateTime}s`}],"onDrag-start":()=>s.dragStart(h),role:"slider","aria-valuenow":d.value,"aria-valuemin":this.min,"aria-valuemax":this.max,"aria-orientation":this.isHorizontal?"horizontal":"vertical",tabindex:"0",onFocus:()=>!d.disabled&&s.focus(h),onBlur:t[0]||(t[0]=()=>s.blur())},{...n.dotAttrs}),{dot:i.withCtx(()=>[i.renderSlot(e.$slots,"dot",i.mergeProps({ref_for:!0},{...d}))]),tooltip:i.withCtx(()=>[i.renderSlot(e.$slots,"tooltip",i.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","onFocus"]),i.renderSlot(e.$slots,"default",i.mergeProps({ref_for:!0},{value:s.getValue()}))],64))),256))],4)],16)}const Ff=Lf(hQ,[["render",pQ]]);Ff.VueSliderMark=O6,Ff.VueSliderDot=E6;const mQ={name:"CdsSlider",components:{vueSlider:Ff},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:e,max:t,...n}=this.$attrs;return n},showMergeTooltip(){return this.innerValue[1]-this.innerValue[0]<10}},watch:{modelValue(e){this.innerValue=e},innerValue(e){this.$emit("update:modelValue",e)}},mounted(){this.innerValue=this.modelValue}},gQ={key:0,class:i.normalizeClass(["merge-tooltip","vue-slider-dot-tooltip-inner","vue-slider-dot-tooltip-inner-top"])},yQ={key:0},bQ={key:1};function vQ(e,t,n,a,r,s){const o=i.resolveComponent("vue-slider");return i.openBlock(),i.createBlock(o,i.mergeProps(s.attrs,{modelValue:r.innerValue,"onUpdate:modelValue":t[0]||(t[0]=l=>r.innerValue=l),"enable-cross":!1,min:n.min,max:n.max,tooltip:s.showMergeTooltip?"none":"always",class:`slider--${n.variant}`}),{process:i.withCtx(({style:l})=>[i.createElementVNode("div",{class:"vue-slider-process",style:i.normalizeStyle(l)},[s.showMergeTooltip?(i.openBlock(),i.createElementBlock("div",gQ,[r.innerValue[0]!==r.innerValue[1]?(i.openBlock(),i.createElementBlock("span",yQ,i.toDisplayString(r.innerValue[0])+" - "+i.toDisplayString(r.innerValue[1]),1)):(i.openBlock(),i.createElementBlock("span",bQ,i.toDisplayString(r.innerValue[0]),1))])):i.createCommentVNode("",!0)],4)]),tooltip:i.withCtx(l=>[i.renderSlot(e.$slots,"tooltip",{tooltip:l})]),_:3},16,["modelValue","min","max","tooltip","class"])}const _Q=ie(mQ,[["render",vQ]]),wQ={name:"CdsStepper",components:{CdsIcon:ve},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(e){this.$emit("input",e+1)},value:{handler(e){this.internalValue=e-1},immediate:!0}},methods:{circleStyle(e,t){const n=this.disableOnClick?"":"stepper__step--clickable";return e.inProcessing?`stepper__step--in-processing ${n}`:e.error?`stepper__step--error ${n}`:e.completed?`stepper__step--completed ${n}`:t===this.internalValue?`stepper__step--active ${n}`:` stepper__step--muted ${n}`},changeStep(e){this.disableOnClick||(this.internalValue=e)},dividerStyle(e){const t=this.vertical?"vertical-":"";if(e<0)return`stepper__${t}divider--default`;const n=e===this.steps.length-1,a=e===0,r=e-1,s=e+1;return!n&&this.steps[e].completed&&this.steps[s].completed?`stepper__${t}divider--completed`:!n&&e>0&&this.steps[e].completed&&this.steps[r].completed||!n&&a&&this.steps[e].completed?`stepper__${t}divider--in-progress`:`stepper__${t}divider--default`},stepSectionStyle(e){let t="";return t+=e!==this.steps.length-1?"stepper__step-section ":"",t+=this.vertical?"stepper__step-section--vertical":"",t},labelStyle(e){let t="";return t+=e===this.internalValue?"stepper__step-label--active":"stepper__step-label--muted",t+=this.vertical?"":" stepper__step-label--horizontal",t+=this.disableOnClick?"":" stepper__step--clickable",t}}},kQ={class:"stepper__edge"},CQ=["onClick"],xQ=["id","onClick"],SQ={key:2,class:"stepper__processing-icon"},BQ={key:3,class:"stepper__icon-text"},MQ={key:0,class:"stepper__edge-container"},EQ={class:"stepper__edge"};function OQ(e,t,n,a,r,s){const o=i.resolveComponent("CdsIcon");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(n.vertical?"stepper--vertical":"stepper")},[i.createElementVNode("div",{class:i.normalizeClass(n.vertical?"stepper__edge-container--vertical":"stepper__edge-container")},[i.createElementVNode("div",kQ,[i.createElementVNode("div",{class:i.normalizeClass(s.dividerStyle(-1))},null,2)])],2),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.steps,(l,d)=>(i.openBlock(),i.createElementBlock("div",{key:d,class:i.normalizeClass(s.stepSectionStyle(d))},[n.vertical?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["stepper__step-label--vertical",s.labelStyle(d)]),onClick:h=>s.changeStep(d)},[i.createElementVNode("small",null,i.toDisplayString(l.label),1)],10,CQ)):i.createCommentVNode("",!0),i.createElementVNode("div",{id:`step-${d+1}`,class:i.normalizeClass(n.vertical?"stepper__icon-container--vertical":"stepper__icon-container"),onClick:h=>s.changeStep(d)},[i.createElementVNode("div",{class:i.normalizeClass(["stepper__icon-circle",s.circleStyle(l,d)])},[l.completed?(i.openBlock(),i.createBlock(o,{key:0,height:"32",width:"32",name:"check-outline"})):l.error?(i.openBlock(),i.createBlock(o,{key:1,height:"32",width:"32",name:"x-outline"})):l.inProcessing?(i.openBlock(),i.createElementBlock("div",SQ,t[0]||(t[0]=[i.createElementVNode("svg",{width:"19",height:"22",viewBox:"0 0 19 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[i.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)]))):(i.openBlock(),i.createElementBlock("span",BQ,i.toDisplayString(d+1),1))],2),i.createElementVNode("div",{class:i.normalizeClass(s.dividerStyle(d))},null,2)],10,xQ),n.vertical?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(["stepper__step-label",s.labelStyle(d)])},[i.createElementVNode("small",null,i.toDisplayString(l.label),1)],2))],2))),128)),n.vertical?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",MQ,[i.createElementVNode("div",EQ,[i.createElementVNode("div",{class:i.normalizeClass(s.dividerStyle(-1))},null,2)])]))],2)}const DQ=ie(wQ,[["render",OQ],["__scopeId","data-v-4e81dfe2"]]);function D6(){const e=i.useSlots();return!!Object.keys(e).length}function V6(e,t,n,a){return i.computed(()=>{let r="";return a.value?n||(t==="default"?r+=` ${e}--focused`:t==="valid"?r+=` ${e}--focused-valid`:t==="invalid"&&(r+=` ${e}--focused-invalid`)):(r=`${e}`,n?r+=` ${e}--disabled`:t==="valid"?r+=` ${e}--valid`:t==="invalid"&&(r+=` ${e}--invalid`)),r})}const VQ={class:"mobile-stepper-input__container"},$Q=["disabled"],TQ={key:0,class:"mobile-stepper-input__suffix"},IQ=ie(Object.assign({name:"CdsMobileStepperInput"},{__name:"MobileStepperInput",props:{modelValue:{type:Number},modelModifiers:{}},emits:i.mergeModels({add:null,subtract:null},["update:modelValue"]),setup(e,{emit:t}){i.useCssVars(g=>({"4360eafc":h.value,f5ca10de:m.value,b7474ba4:y.value}));const n=t,a=i.useModel(e,"modelValue"),r=i.useAttrs(),s=i.ref(0),o=i.ref(!1),l=gh.longClickDirective({delay:400,interval:50}),d=V6("mobile-stepper-input",r.state,r.disabled,o),h=i.computed(()=>r.width==="fluid"||r.fluid?"100%":"fit-content"),f=i.computed(()=>r.fluid?"mobile-stepper-input__field--fluid":`mobile-stepper-input__field--${r.width}`),m=i.computed(()=>r.suffix?"8px 2px 8px 8px":"8px"),y=i.computed(()=>r.suffix?"0":"8px");return i.watch(s,g=>{g!==a.value&&(a.value=g)}),i.watch(a,g=>{s.value=g}),(g,v)=>(i.openBlock(),i.createElementBlock("div",VQ,[i.createElementVNode("div",{class:i.normalizeClass(i.unref(d))},[i.withDirectives(i.createElementVNode("input",{ref:"mobile-stepper-input__field","onUpdate:modelValue":v[0]||(v[0]=_=>s.value=_),class:i.normalizeClass(["mobile-stepper-input__field",f.value]),type:"number",disabled:g.$attrs.disabled,onFocus:v[1]||(v[1]=_=>o.value=!0),onBlur:v[2]||(v[2]=_=>o.value=!1)},null,42,$Q),[[i.vModelText,s.value]]),g.$attrs.suffix?(i.openBlock(),i.createElementBlock("span",TQ,[i.renderSlot(g.$slots,"suffix",{},()=>[i.createTextVNode(i.toDisplayString(g.$attrs.suffix),1)],!0)])):i.createCommentVNode("",!0)],2),i.withDirectives(i.createVNode(gu,{icon:"minus-outline",size:"lg",disabled:g.$attrs.disabled,onCdsClick:v[3]||(v[3]=_=>n("subtract"))},null,8,["disabled"]),[[i.unref(l),()=>n("subtract")]]),i.withDirectives(i.createVNode(gu,{icon:"plus-outline",size:"lg",disabled:g.$attrs.disabled,onCdsClick:v[4]||(v[4]=_=>n("add"))},null,8,["disabled"]),[[i.unref(l),()=>n("add")]])]))}}),[["__scopeId","data-v-2a1ab458"]]),AQ=["valid","invalid","default"],NQ=e=>AQ.includes(e),zQ={key:1,class:"stepper-input__label",for:"stepper-input"},LQ={class:"label__content"},PQ=["disabled"],FQ={key:0,class:"stepper-input__suffix"},RQ={class:"stepper-input__icon-container"},HQ=["disabled"],WQ=["disabled"],YQ={key:4,class:"stepper-input__error-message"},jQ=Object.assign({name:"CdsStepperInput"},{__name:"StepperInput",props:i.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:e=>["thin","default","wide","fluid"].includes(e)},fluid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},state:{type:String,default:"default",validator:NQ},errorMessage:{type:String,default:"Valor inválido"},mobile:{type:Boolean,default:!1},suffix:{type:String,default:""}},{modelValue:{type:Number},modelModifiers:{}}),emits:i.mergeModels({"invalid-number":null,"step-out-of-bounds":null,...mr},["update:modelValue"]),setup(e,{expose:t,emit:n}){i.useCssVars(I=>({"0ebf6c64":k.value,"3416516f":B.value,bc8166e0:C.value}));const a=D6(),r=gh.longClickDirective({delay:400,interval:50}),s=i.useModel(e,"modelValue"),o=i.useTemplateRef("stepper-input");t({componentRef:o});const l=n,{emitFocus:d,emitBlur:h,emitChange:f,emitClick:m}=pr(l),y=e,g=i.ref(s.value),v=i.ref(!1),_=V6("stepper-input",y.state,y.disabled,v),k=i.computed(()=>y.width==="fluid"||y.fluid?"100%":"fit-content"),x=i.computed(()=>y.state==="invalid"),M=i.computed(()=>y.fluid?"stepper-input__field--fluid":`stepper-input__field--${y.width}`),B=i.computed(()=>y.suffix?"8px 2px 8px 8px":"8px"),C=i.computed(()=>y.suffix?"0":"8px");i.watch(s,I=>{g.value=I}),i.watch(g,I=>{I||(g.value=0),typeof I=="string"&&(g.value=+g.value),I<y.min?(g.value=y.min,l("invalid-number",`'O campo não pode ser menor que ${parseInt(y.min,10)}.'`)):I>y.max?(g.value=y.max,l("invalid-number",`'O campo não pode ser maior que ${parseInt(y.max,10)}.'`)):s.value=parseInt(I,10)}),i.watch(()=>y.step,I=>{(I>y.max||I<y.min)&&(console.warn("A propriedade step está fora dos limites definidos por min e max."),l("step-out-of-bounds"))},{immediate:!0});function V(I){g.value=parseInt(g.value)+I,f()}function $(){v.value=!0,d()}function N(){v.value=!1,h()}return(I,F)=>(i.openBlock(),i.createElementBlock("div",null,[i.unref(a)?i.renderSlot(I.$slots,"label",{key:0},void 0,!0):(i.openBlock(),i.createElementBlock("label",zQ,[i.createElementVNode("span",LQ,[i.createTextVNode(i.toDisplayString(e.label)+" ",1),e.required?(i.openBlock(),i.createBlock(su,{key:0})):i.createCommentVNode("",!0)])])),e.mobile?(i.openBlock(),i.createBlock(IQ,i.mergeProps({key:2,modelValue:g.value,"onUpdate:modelValue":F[0]||(F[0]=q=>g.value=q)},y,{onAdd:F[1]||(F[1]=q=>V(e.step)),onSubtract:F[2]||(F[2]=q=>V(-e.step))}),null,16,["modelValue"])):(i.openBlock(),i.createElementBlock("div",{key:3,class:i.normalizeClass(i.unref(_)),onClick:F[6]||(F[6]=(...q)=>i.unref(m)&&i.unref(m)(...q))},[i.withDirectives(i.createElementVNode("input",{ref:"stepper-input","onUpdate:modelValue":F[3]||(F[3]=q=>g.value=q),disabled:e.disabled,class:i.normalizeClass(["stepper-input__field",M.value]),type:"number",onFocus:$,onBlur:N},null,42,PQ),[[i.vModelText,g.value]]),e.suffix?(i.openBlock(),i.createElementBlock("span",FQ,[i.renderSlot(I.$slots,"suffix",{},()=>[i.createTextVNode(i.toDisplayString(e.suffix),1)],!0)])):i.createCommentVNode("",!0),i.createElementVNode("div",RQ,[i.withDirectives((i.openBlock(),i.createElementBlock("button",{disabled:e.disabled,class:"stepper-input__icon--plus",tabindex:"-1",onFocus:$,onBlur:N,onClick:F[4]||(F[4]=q=>V(e.step))},[i.createVNode(ve,{height:"16",width:"16",name:"plus-outline"})],40,HQ)),[[i.unref(r),()=>V(e.step)]]),i.withDirectives((i.openBlock(),i.createElementBlock("button",{disabled:e.disabled,class:"stepper-input__icon--minus",tabindex:"-1",onFocus:$,onBlur:N,onClick:F[5]||(F[5]=q=>V(-e.step))},[i.createVNode(ve,{height:"16",width:"16",name:"minus-outline"})],40,WQ)),[[i.unref(r),()=>V(-e.step)]])])],2)),x.value&&!e.disabled?(i.openBlock(),i.createElementBlock("div",YQ,i.toDisplayString(e.errorMessage),1)):i.createCommentVNode("",!0)]))}}),UQ=ie(jQ,[["__scopeId","data-v-91325b7e"]]),qQ={class:"switch__label"},GQ=["disabled"],KQ={key:0,class:"switch__supporting-text-container"},ZQ={key:1,class:"switch__supporting-text"},XQ=ie(Object.assign({name:"CdsSwitch"},{__name:"Switch",props:i.mergeModels({label:{type:String,default:""},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},tooltip:{type:String,default:null},tooltipIcon:{type:String,default:"info-outline"},supportingText:{type:[String,Array],default:""}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(e,{expose:t}){const n=i.useModel(e,"modelValue"),a=e,r=i.ref(a.modelValue),s=i.ref(a.focused),o=i.useTemplateRef("componentRef"),l=i.computed(()=>a.small===a.large?"switch--medium":a.small?"switch--small":"switch--large");i.watch(n,(h,f)=>{h!==f&&(r.value=h)});function d(){n.value=!r.value}return t({componentRef:o}),(h,f)=>{const m=i.resolveDirective("cdstip");return i.openBlock(),i.createElementBlock("div",null,[i.createElementVNode("div",qQ,[i.createVNode(Ue,null,{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.label)+" ",1),e.tooltip?i.withDirectives((i.openBlock(),i.createBlock(ve,{key:0,name:e.tooltipIcon,height:"18",width:"18",class:"label__icon"},null,8,["name"])),[[m,e.tooltip]]):i.createCommentVNode("",!0)]),_:1})]),i.createElementVNode("label",{class:i.normalizeClass(["switch",l.value])},[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":f[0]||(f[0]=y=>r.value=y),type:"checkbox",disabled:e.disabled,onClick:d},null,8,GQ),[[i.vModelCheckbox,r.value]]),i.createElementVNode("span",{ref_key:"componentRef",ref:o,tabindex:"0",class:i.normalizeClass(["switch__slider",[`switch__slider--${e.variant}`,{[`switch__slider--active-focused--${e.variant}`]:s.value&&r.value&&!e.disabled,"switch__slider--inactive-focused":s.value&&!r.value&&!e.disabled,"switch__slider--small":e.small&&e.small!==e.large,"switch__slider--large":e.large&&e.small!==e.large,"switch__slider--medium":e.small===e.large}]]),onFocusout:f[1]||(f[1]=y=>s.value=!1),onFocusin:f[2]||(f[2]=y=>s.value=!0),onKeydown:i.withKeys(d,["enter"])},null,34)],2),e.supportingText?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[Array.isArray(e.supportingText)?(i.openBlock(),i.createElementBlock("ul",KQ,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.supportingText,y=>(i.openBlock(),i.createElementBlock("li",{key:y,class:"switch__supporting-text-list"},i.toDisplayString(y),1))),128))])):(i.openBlock(),i.createElementBlock("div",ZQ,i.toDisplayString(e.supportingText),1))],64)):i.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-a0277903"]]),JQ={name:"CdsTabs",components:{CdsIcon:ve},props:{tabs:{type:Array,default:()=>[],required:!0,validator:e=>!e.filter(n=>sn(n.title)||sn(n.name)).length},activeTab:{type:Object,default:()=>({}),required:!0},variant:{type:String,default:"green",validator:e=>Ma.includes(e)},showAddAction:{type:Boolean,default:!1}},data(){return{internalActiveTab:this.activeTab,colorOptions:Ma}},computed:{activeBorderStyle(){return{"--indicatorColor":this.colorHexCode(this.variant)}}},watch:{tabs:{handler(e){const t=e.filter(n=>n.name===this.activeTab.name);[this.internalActiveTab]=t.length?t:e},immediate:!0}},methods:{colorHexCode:Jl,getSlotName(e){return e.name},handleRightClick(e,t){this.$emit("right-click",{event:e,item:t})},handleClick(e,t){this.$emit("tabs-change",{event:e,item:t}),this.internalActiveTab=t},handleAddAction(e){this.$emit("add-action",e)},isActive(e){return so(this.internalActiveTab,e)}}},QQ={id:"tabs"},eee={class:"inner-tabs__header"},tee=["id"],nee=["onClick","onContextmenu"],iee={class:"inner-tabs__text"},aee={key:0,role:"presentation",class:"nav-item cds-tab__action"},ree={class:"inner-tabs__content"};function see(e,t,n,a,r,s){const o=i.resolveComponent("CdsIcon");return i.openBlock(),i.createElementBlock("div",QQ,[i.createElementVNode("ul",eee,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.tabs,(l,d)=>(i.openBlock(),i.createElementBlock("li",{id:`${d}-${l.name}-tab`,key:`${d}-${l.name}-tab`,role:"presentation",class:"inner-tabs__header-item"},[i.createElementVNode("a",{role:"tab",href:"javascript:void(0)",target:"_self",class:i.normalizeClass(["inner-tabs__tab",s.isActive(l)?"inner-tabs__tab--active":"inner-tabs__tab--inactive"]),style:i.normalizeStyle(s.activeBorderStyle),onClick:h=>s.handleClick(h,l),onContextmenu:i.withModifiers(h=>s.handleRightClick(h,l),["prevent","stop"])},[i.createElementVNode("span",iee,i.toDisplayString(l.title),1)],46,nee)],8,tee))),128)),n.showAddAction?(i.openBlock(),i.createElementBlock("li",aee,[i.createElementVNode("a",{role:"tab",href:"javascript:void(0)",target:"_self",class:"nav-link",onClick:t[0]||(t[0]=i.withModifiers((...l)=>s.handleAddAction&&s.handleAddAction(...l),["prevent"]))},[i.createVNode(o,{height:"32",width:"32",name:"plus-outline"})])])):i.createCommentVNode("",!0)]),i.createElementVNode("div",ree,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.tabs,(l,d)=>(i.openBlock(),i.createElementBlock("div",{key:`${d}-${l.name}-tab`,role:"tabpanel",class:i.normalizeClass(["content__pane",s.isActive(l)?"content__pane--active":"content__pane--inactive"])},[i.renderSlot(e.$slots,s.getSlotName(l))],2))),128))])])}const oee=ie(JQ,[["render",see]]),Rf=ie(Object.assign({name:"CdsText"},{__name:"Text",props:{as:{type:String,default:"span"},color:{type:String,default:"n-800"},fontWeight:{type:String,default:"regular"},textAlign:{type:String,default:"start"},noMargin:{type:Boolean,default:!1}},setup(e,{expose:t}){i.useCssVars(s=>({"0daff910":e.textAlign}));const n=e,a=i.useTemplateRef("componentRef"),r=i.computed(()=>{switch(n.as){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":case"p":case"q":case"span":case"strong":case"em":case"del":case"small":case"legend":return n.as;case"heading-1":return"h1";case"heading-2":return"h2";case"heading-3":return"h3";case"subheading-1":return"h4";case"subheading-2":return"h5";case"subheading-3":return"h6";case"body-1":return"p";case"body-2":return"span";case"caption":return"small";case"overline":return"legend";default:return"span"}});return t({componentRef:a}),(s,o)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(r.value),{ref_key:"componentRef",ref:a,class:i.normalizeClass(["text-alignment",{"no-margin":e.noMargin,[`${e.color}`]:e.color,[`${e.fontWeight}`]:e.fontWeight}])},{default:i.withCtx(()=>[i.renderSlot(s.$slots,"default",{},void 0,!0)]),_:3},8,["class"]))}}),[["__scopeId","data-v-3eda92df"]]),lee=Object.assign({name:"CdsTextArea"},{__name:"TextArea",props:i.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,null],default:null},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:i.mergeModels({...mr},["update:modelValue"]),setup(e,{expose:t,emit:n}){const a=i.useTemplateRef("baseInput"),r=i.useModel(e,"modelValue"),s=e,o=n,l=i.ref(r.value),{emitClick:d,emitChange:h,emitFocus:f,emitBlur:m,emitKeydown:y}=pr(o);return i.watch(r,(g,v)=>{g!==v&&(l.value=g)},{immediate:!0}),i.watch(l,g=>{r.value=g}),t({componentRef:i.computed(()=>{var g;return(g=a.value)==null?void 0:g.componentRef}),isFocused:i.computed(()=>{var g;return(g=a.value)==null?void 0:g.isFocused}),focus:()=>{var g;return(g=a.value)==null?void 0:g.focus()},blur:()=>{var g;return(g=a.value)==null?void 0:g.blur()},clear:()=>{var g;return(g=a.value)==null?void 0:g.clear()},select:()=>{var g;return(g=a.value)==null?void 0:g.select()}}),(g,v)=>(i.openBlock(),i.createElementBlock("div",null,[i.createVNode(Wi,i.mergeProps({ref:"baseInput",modelValue:l.value,"onUpdate:modelValue":v[0]||(v[0]=_=>l.value=_)},{...g.$attrs,...s},{type:"textarea","support-link-url":e.supportLinkUrl,"support-link":e.supportLink,"floating-label":e.floatingLabel,onClick:i.unref(d),onChange:i.unref(h),onFocus:i.unref(f),onBlur:i.unref(m),onKeydown:i.unref(y)}),null,16,["modelValue","support-link-url","support-link","floating-label","onClick","onChange","onFocus","onBlur","onKeydown"])]))}}),cee={key:0,class:"cds-tile__extra-container"},dee={class:"cds-tile__extra"},uee={key:2},hee=ie(Object.assign({name:"CdsTile"},{__name:"Tile",props:{icon:{type:String,default:"settings-outline"},title:{type:String,default:""},size:{type:String,default:"md",validator:e=>["sm","md","lg"].includes(e)},variant:{type:String,default:"green",validator:D4},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:["cdsClick"],setup(e,{emit:t}){const n=e,a=t,r=i.computed(()=>n.disabled?"disabled":n.variant),s=i.computed(()=>n.loading?"gray":r.value),o=i.computed(()=>`cds-tile__loader--${n.size}`),l=i.computed(()=>`cds-tile__image--${r.value} cds-tile__image--${n.size}`),d=i.computed(()=>`cds-tile__text--${r.value} cds-tile__text--${n.size}`),h=i.computed(()=>n.icon.includes("http")?"img":"icon"),f=i.computed(()=>{switch(n.size){case"sm":return"40";case"md":return"50";default:return"60"}}),m=i.computed(()=>{const g=n.size==="sm"?30:20;return n.title.length>g?n.title.substring(0,g)+"...":n.title});function y(){n.disabled||n.loading||a("cdsClick")}return(g,v)=>(i.openBlock(),i.createBlock(Zl,{variant:s.value,clickable:!e.disabled,padding:"0",light:"",onBoxClick:y},{default:i.withCtx(()=>[e.loading?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",cee,[i.createElementVNode("div",dee,[i.renderSlot(g.$slots,"extra",{},void 0,!0)])])),e.loading?(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(o.value)},[i.createVNode(Ea,{fluid:""})],2)):(i.openBlock(),i.createElementBlock("div",uee,[i.createElementVNode("div",{class:i.normalizeClass(l.value)},[h.value==="icon"?(i.openBlock(),i.createBlock(ve,{key:0,class:"cds-tile__icon",name:e.icon},null,8,["name"])):(i.openBlock(),i.createBlock(Xl,{key:1,src:e.icon,width:f.value,"rounded-corners":"",opacity:"0.5"},null,8,["src","width"]))],2),i.createElementVNode("div",{class:i.normalizeClass(d.value)},i.toDisplayString(m.value),3)]))]),_:3},8,["variant","clickable"]))}}),[["__scopeId","data-v-d3384325"]]),Hf=e=>/[0-2][0-9]:[0-5][0-9]/.test(e),fee=(e,t)=>Hf(e)&&Hf(t)?fe.fromFormat(e,"HH:mm").diff(fe.fromFormat(t,"HH:mm"))>0:!1,pee={name:"CdsTimeInput",directives:{facade:ro},props:{modelValue:{type:[String,Array],default:"",validator:e=>e===""||Array.isArray(e)&&e.length===0?!0:typeof e=="string"?Hf(e):e.length===2&&fee(e[1],e[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:e=>["single","range"].includes(e)},state:{type:String,default:"default",validator:e=>["default","valid","invalid"].includes(e)},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(e,t){e===t||e==null||this.buildTimeElements(e)}},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.mode==="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 e=Yt.fromDateTimes(fe.fromFormat(`${this.startHour}:${this.startMinute}`,"HH:mm"),fe.fromFormat(`${this.endHour}:${this.endMinute}`,"HH:mm"));if(e.invalid){this.$emit("update:modelValue",null);return}this.$emit("update:modelValue",[e.start.toFormat("HH:mm"),e.end.toFormat("HH:mm")])},formatTimeElement(e){return parseInt(e,10).toLocaleString(void 0,{minimumIntegerDigits:2,maximumFractionDigits:0})},resolveTimeElement(e,t){const n=this.formatTimeElement(e);return n>t?t:n<0?"00":n},buildTimeElements(e){if(this.mode==="single"){if(typeof e!="string")return;[this.startHour,this.startMinute]=e.split(":");return}if(typeof e=="string"){this.startHour="",this.startMinute="",this.endHour="",this.endMinute="";return}[this.startHour,this.startMinute]=e[0].split(":"),[this.endHour,this.endMinute]=e[1].split(":")}}},mee={class:"input__label"},gee=["for"],yee={key:0,class:"label__required-indicator"},bee=["id"],vee=["id","disabled"],_ee=["id","disabled"],wee={key:0,class:"input__separator"},kee={key:1},Cee=["id","disabled"],xee=["id","disabled"],See={key:0,class:"input__message"};function Bee(e,t,n,a,r,s){const o=i.resolveDirective("facade");return i.openBlock(),i.createElementBlock("div",null,[i.createElementVNode("label",mee,[i.createElementVNode("div",{class:"label__content",for:n.id},[i.createElementVNode("span",null,i.toDisplayString(n.label),1),n.required?(i.openBlock(),i.createElementBlock("span",yee," * ")):i.createCommentVNode("",!0)],8,gee)]),i.createElementVNode("div",{id:n.id,class:"input__container"},[i.createElementVNode("div",null,[i.withDirectives(i.createElementVNode("input",{id:`${n.id}-start-hour`,"onUpdate:modelValue":t[0]||(t[0]=l=>r.startHour=l),class:i.normalizeClass(s.computedInputClass),disabled:n.disabled,type:"text",min:"0",max:"23",step:"1",placeholder:"00",onKeyup:[t[1]||(t[1]=i.withKeys(l=>r.startHour++,["up"])),t[2]||(t[2]=i.withKeys(l=>r.startHour>0?r.startHour--:null,["down"]))],onInput:t[3]||(t[3]=(...l)=>s.handleTimeInput&&s.handleTimeInput(...l))},null,42,vee),[[i.vModelText,r.startHour],[o,"##"]]),t[16]||(t[16]=i.createTextVNode(" : ")),i.withDirectives(i.createElementVNode("input",{id:`${n.id}-start-minute`,"onUpdate:modelValue":t[4]||(t[4]=l=>r.startMinute=l),class:i.normalizeClass(s.computedInputClass),disabled:n.disabled,type:"text",min:"0",max:"59",step:"1",placeholder:"00",onKeyup:[t[5]||(t[5]=i.withKeys(l=>r.startMinute++,["up"])),t[6]||(t[6]=i.withKeys(l=>r.startMinute>0?r.startMinute--:null,["down"]))],onInput:t[7]||(t[7]=(...l)=>s.handleTimeInput&&s.handleTimeInput(...l))},null,42,_ee),[[i.vModelText,r.startMinute],[o,"##"]])]),n.mode==="range"?(i.openBlock(),i.createElementBlock("div",wee," Até ")):i.createCommentVNode("",!0),n.mode==="range"?(i.openBlock(),i.createElementBlock("div",kee,[i.withDirectives(i.createElementVNode("input",{id:`${n.id}-end-hour`,"onUpdate:modelValue":t[8]||(t[8]=l=>r.endHour=l),class:i.normalizeClass(s.computedInputClass),disabled:n.disabled,type:"text",min:"0",max:"23",step:"1",placeholder:"00",onKeyup:[t[9]||(t[9]=i.withKeys(l=>r.endHour++,["up"])),t[10]||(t[10]=i.withKeys(l=>r.endHour>0?r.endHour--:null,["down"]))],onInput:t[11]||(t[11]=(...l)=>s.handleTimeInput&&s.handleTimeInput(...l))},null,42,Cee),[[i.vModelText,r.endHour],[o,"##"]]),t[17]||(t[17]=i.createTextVNode(" : ")),i.withDirectives(i.createElementVNode("input",{id:`${n.id}-end-minute`,"onUpdate:modelValue":t[12]||(t[12]=l=>r.endMinute=l),class:i.normalizeClass(s.computedInputClass),disabled:n.disabled,type:"text",min:"0",max:"59",step:"1",placeholder:"00",onKeyup:[t[13]||(t[13]=i.withKeys(l=>r.endMinute++,["up"])),t[14]||(t[14]=i.withKeys(l=>r.endMinute>0?r.endMinute--:null,["down"]))],onInput:t[15]||(t[15]=(...l)=>s.handleTimeInput&&s.handleTimeInput(...l))},null,42,xee),[[i.vModelText,r.endMinute],[o,"##"]])])):i.createCommentVNode("",!0)],8,bee),n.state==="invalid"&&!n.disabled?(i.openBlock(),i.createElementBlock("div",See,i.toDisplayString(n.errorMessage),1)):i.createCommentVNode("",!0)])}const Mee=ie(pee,[["render",Bee],["__scopeId","data-v-0f87d82a"]]),Wf={name:"CdsTimeline",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(t=>{let n=t.getClientRects()[0].width;this.oppositeSlotMaxWidth<n&&(this.oppositeSlotMaxWidth=n)})}},$6=()=>{i.useCssVars(e=>({"0270f01f":e.directionResolver,"41008be1":e.oppositeSlotWidthResolver}))},T6=Wf.setup;Wf.setup=T6?(e,t)=>($6(),T6(e,t)):$6;const Eee={class:"cds-timeline"};function Oee(e,t,n,a,r,s){return i.openBlock(),i.createElementBlock("div",Eee,[i.renderSlot(e.$slots,"default")])}const Dee=ie(Wf,[["render",Oee]]),Vee={name:"CdsTimelineItem",components:{CdsIcon:ve,CdsSpinner:Ql},props:{variant:{type:String,default:"green"},loading:{type:Boolean,default:!1},hollowed:{type:Boolean,default:!1},icon:{type:String,default:null}},methods:{hasSlot:ei}},$ee={class:"cds-timeline-item"},Tee={class:"cds-timeline-item__opposite"},Iee={class:"cds-timeline-item__timeline-container"},Aee={key:1,class:"cds-timeline-item__icon"},Nee={class:"cds-timeline-item__content-container"},zee={key:0,class:"cds-timeline-item__title"},Lee={class:"cds-timeline-item__text"};function Pee(e,t,n,a,r,s){const o=i.resolveComponent("CdsSpinner"),l=i.resolveComponent("CdsIcon");return i.openBlock(),i.createElementBlock("div",$ee,[i.createElementVNode("div",Tee,[i.renderSlot(e.$slots,"opposite",{},void 0,!0)]),i.createElementVNode("div",Iee,[n.loading?(i.openBlock(),i.createBlock(o,{key:0,size:"sm",class:"spinner",variant:n.variant},null,8,["variant"])):n.icon?(i.openBlock(),i.createElementBlock("div",Aee,[i.createVNode(l,{name:n.icon,height:"20",width:"20"},null,8,["name"])])):(i.openBlock(),i.createElementBlock("span",{key:2,class:i.normalizeClass(`cds-timeline-item__pin--${n.variant}${n.hollowed?"--hollowed":""}`)},null,2)),i.createElementVNode("div",{class:i.normalizeClass(n.loading||n.hollowed?"tail--dashed":"tail")},null,2)]),i.createElementVNode("div",Nee,[s.hasSlot(e.$slots,"title")?(i.openBlock(),i.createElementBlock("div",zee,[i.renderSlot(e.$slots,"title",{},void 0,!0)])):i.createCommentVNode("",!0),i.createElementVNode("span",Lee,[i.renderSlot(e.$slots,"content",{},void 0,!0)])])])}const Fee=ie(Vee,[["render",Pee],["__scopeId","data-v-9a1b21b0"]]),Wu=i.reactive({toasts:[]});function Yf(){function e({title:n,description:a=null,variant:r="info",dismissible:s=!0,dismissAfter:o=4e3,autoDismissible:l=!0,light:d=!1}){const h=oa();Wu.toasts.push({id:h,title:n,description:a,variant:r,dismissible:s,dismissAfter:o,autoDismissible:l,light:d}),l&&setTimeout(()=>{t(h)},o)}function t(n){const a=Wu.toasts.findIndex(r=>r.id===n);a!==-1&&Wu.toasts.splice(a,1)}return{toastState:Wu,fire:e,dismissToast:t}}const Ree={class:"toast__text-container"},I6=ie(Object.assign({name:"CdsToast"},{__name:"Toast",props:i.mergeModels({title:{type:String,default:"Título do toast"},description:{type:String,default:"Descrição do toast, exibida abaixo do título"},dismissible:{type:Boolean,default:!1},autoDismissible:{type:Boolean,default:!1},dismissAfter:{type:Number,default:4e3,validator:e=>e>=4e3&&e<=12e3},variant:{type:String,default:"info",validator:e=>["success","info","warning","danger"].includes(e)},light:{type:Boolean,default:!1}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:i.mergeModels(["dismiss"],["update:modelValue"]),setup(e,{emit:t}){const n=i.useAttrs(),a=i.useModel(e,"modelValue"),r=e,s=t,o=i.ref({});let l=null;const d=i.computed(()=>{switch(r.variant){case"success":return"check-circle-outline";case"info":return"info-outline";case"warning":return"alert-outline";case"danger":return"warning-outline";default:return"info-outline"}}),h=i.computed(()=>r.light?"n-800":"n-0"),f=i.computed(()=>r.light?"n-700":"n-30");i.watch(a,()=>{a.value&&r.autoDismissible&&(clearTimeout(l),m())},{immediate:!0});function m(){o.value={width:"100%",transition:"none"},requestAnimationFrame(()=>{o.value={width:"0%",transition:`width ${r.dismissAfter}ms linear`}}),l=setTimeout(()=>{y()},r.dismissAfter)}function y(){o.value={width:"100%",transition:"none"},clearTimeout(l),a.value=!1,s("dismiss"),Yf().dismissToast(n.id)}return(g,v)=>a.value?(i.openBlock(),i.createBlock(Ue,{key:0,id:g.$attrs.id,gap:"2",class:i.normalizeClass(["toast__container",{[`toast__container--${e.variant}`]:!0,"toast__container--light":e.light}]),role:"alert","aria-live":"assertive"},{default:i.withCtx(()=>[i.createVNode(Ue,{gap:"2",wrap:"no-wrap",fluid:""},{default:i.withCtx(()=>[i.createVNode(Ue,{gap:"2",fluid:""},{default:i.withCtx(()=>[i.createVNode(ve,{class:i.normalizeClass({[`toast__icon--${e.variant}`]:!0,"toast__icon--light":e.light}),name:d.value,height:"20",width:"20"},null,8,["class","name"]),i.createElementVNode("div",Ree,[i.createVNode(Ue,{direction:"column",gap:"1"},{default:i.withCtx(()=>[i.createVNode(Rf,{color:h.value,class:"toast__title"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.title),1)]),_:1},8,["color"]),e.description?(i.openBlock(),i.createBlock(Rf,{key:0,color:f.value,class:"toast__description"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.description),1)]),_:1},8,["color"])):i.createCommentVNode("",!0)]),_:1})])]),_:1}),e.dismissible?(i.openBlock(),i.createBlock(ve,{key:0,class:i.normalizeClass(e.light?"dismiss__icon--light":"dismiss__icon"),name:"x-outline",height:"17",width:"17",onClick:y},null,8,["class"])):i.createCommentVNode("",!0)]),_:1}),e.autoDismissible?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass({[`toast__countdown-indicator--${e.variant}`]:!0,"toast__countdown-indicator--light":e.light}),style:i.normalizeStyle(o.value)},null,6)):i.createCommentVNode("",!0)]),_:1},8,["id","class"])):i.createCommentVNode("",!0)}}),[["__scopeId","data-v-2a79d828"]]),Hee=ie(Object.assign({name:"CdsToastContainer"},{__name:"ToastContainer",setup(e){const t=Yf().toastState.toasts;return(n,a)=>(i.openBlock(),i.createBlock(i.TransitionGroup,{tag:"div",class:"toast-container"},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(t),r=>(i.openBlock(),i.createBlock(I6,{key:r.id,id:r.id,"model-value":!0,title:r.title,description:r.description,dismissible:r.dismissible,"auto-dismissible":r.autoDismissible,"dismiss-after":r.dismissAfter,variant:r.variant,light:r.light},null,8,["id","title","description","dismissible","auto-dismissible","dismiss-after","variant","light"]))),128))]),_:1}))}}),[["__scopeId","data-v-a08e3810"]]),Wee={class:"top-app-bar"},Yee={class:"top-app-bar__menu-container"},jee=["src","alt"],Uee={key:3,class:"top-app-bar__title"},qee={class:"top-app-bar__actions"},Gee=ie(Object.assign({name:"CdsTopAppBar"},{__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(e,{emit:t}){const{isMobile:n}=au(),a=t,r=e,s=i.computed(()=>n.value?"24":"34"),o=i.computed(()=>{const d=l();return d||-1});function l(){var d,h;return(d=r.defaultRoute)!=null&&d.path?r.defaultRoute.path:(h=r.defaultRoute)!=null&&h.name?{name:r.defaultRoute.path}:null}return(d,h)=>{const f=i.resolveComponent("router-link");return i.openBlock(),i.createElementBlock("div",Wee,[i.createElementVNode("div",Yee,[e.showMenuIcon?(i.openBlock(),i.createBlock(ve,{key:0,class:"top-app-bar__menu",name:"menu-outline",width:s.value,height:s.value,onClick:h[0]||(h[0]=m=>a("on-menu-click"))},null,8,["width","height"])):e.showBackNavigation?(i.openBlock(),i.createBlock(f,{key:1,to:o.value},{default:i.withCtx(()=>[i.createVNode(ve,{class:"top-app-bar__back-arrow",name:"arrow-left-outline",width:s.value,height:s.value},null,8,["width","height"])]),_:1},8,["to"])):i.createCommentVNode("",!0),e.logoUrl?(i.openBlock(),i.createElementBlock("img",{key:2,class:"top-app-bar__logo-image",src:e.logoUrl,alt:e.title},null,8,jee)):(i.openBlock(),i.createElementBlock("h2",Uee,i.toDisplayString(e.title),1))]),i.createElementVNode("div",qee,[i.renderSlot(d.$slots,"actions",{},void 0,!0)])])}}}),[["__scopeId","data-v-dd8fca17"]]),Kee={class:"truncate-container__content"},Zee={key:0,class:"fade-overlay"},Xee=ie(Object.assign({name:"CdsTruncateContainer"},{__name:"TruncateContainer",props:{height:{type:String,default:"250px"},textAlign:{type:String,default:"center"},variant:{type:String,default:"dark"}},emits:["button-click","expand","collapse"],setup(e,{emit:t}){i.useCssVars(g=>({"4e331476":l.value,"23149b23":f.value}));const n=e,a=t,r=i.ref(!1),s=i.ref(!1),o=i.ref(null),l=i.computed(()=>s.value?`${o.value.scrollHeight}px`:`${n.height.replace("px","")}px`),d=i.computed(()=>s.value?"Mostrar menos":"Mostrar mais"),h=i.computed(()=>n.textAlign),f=i.computed(()=>s.value?"-4px":"8px");i.watch([()=>n.height,()=>{var g;return(g=o.value)==null?void 0:g.scrollHeight}],()=>{i.nextTick(()=>{m()})},{immediate:!0}),i.watch(s,()=>s.value?a("expand"):a("collapse"));function m(){const g=o.value;g&&(r.value=g.scrollHeight>g.clientHeight)}function y(){s.value=!s.value,a("button-click")}return(g,v)=>(i.openBlock(),i.createElementBlock("div",{ref_key:"truncateContainerEl",ref:o,class:"truncate-container"},[i.createElementVNode("div",Kee,[i.renderSlot(g.$slots,"default",{},void 0,!0)]),r.value&&!s.value?(i.openBlock(),i.createElementBlock("div",Zee)):i.createCommentVNode("",!0),r.value?(i.openBlock(),i.createBlock(Ue,{key:1,justify:h.value},{default:i.withCtx(()=>[i.createVNode(Lh,{class:"truncate-container__button",text:d.value,variant:e.variant,onClick:y},null,8,["text","variant"])]),_:1},8,["justify"])):i.createCommentVNode("",!0)],512))}}),[["__scopeId","data-v-3c2ee7a8"]]),jf={name:"CdsPasswordInput",directives:{cdstip:uu},components:{CdsIcon:ve,CdsClickable:Ni,CdsFlexbox:Ue},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 e=this.fluid?"password-input--fluid":"password-input";return this.isBeingFocused?this.disabled||(this.state==="default"?e+=" password-input--focused":this.state==="valid"?e+=" password-input--focused-valid":this.state==="invalid"&&(e+=" password-input--focused-invalid")):this.disabled?e+=" password-input--disabled":this.state==="valid"?e+=" password-input--valid":this.state==="invalid"&&(e+=" password-input--invalid"),e},labelDynamicClass(){const e=this.mobile?"mobile-label":"label";return this.fluid?`password-input__${e}--fluid`:`password-input__${e}`},inputClass(){const e=this.mobile?"mobile-field":"field";return this.fluid?`password-input__${e}--fluid`:`password-input__${e}`},errorState(){return this.state==="invalid"},resolveInputWidth(){return this.mobile?"300px":"266px"}},watch:{modelValue:{handler(e,t){e!==t&&(this.internalValue=e)},immediate:!0},internalValue(e){this.$emit("update:modelValue",e)}},methods:{generateKey:Qa,handleShowPassword(){this.showPassword=!this.showPassword}}},A6=()=>{i.useCssVars(e=>({cac594da:e.resolveInputWidth}))},N6=jf.setup;jf.setup=N6?(e,t)=>(A6(),N6(e,t)):A6;const Jee={key:0},Qee={key:0,class:"password-input__label__required-indicator"},ete=["id","type","placeholder","disabled"],tte={key:0,class:"password-input__password-toogle"},nte={key:0,class:"password-input__error-message"};function ite(e,t,n,a,r,s){const o=i.resolveComponent("CdsIcon"),l=i.resolveComponent("CdsFlexbox"),d=i.resolveComponent("CdsClickable"),h=i.resolveDirective("cdstip");return i.openBlock(),i.createElementBlock("div",null,[i.createElementVNode("span",null,[s.hasSlots?(i.openBlock(),i.createElementBlock("span",Jee,[i.renderSlot(e.$slots,"label",{},void 0,!0)])):(i.openBlock(),i.createElementBlock("label",{key:1,class:i.normalizeClass(s.labelDynamicClass)},[i.createVNode(l,{class:"password-input__label__content",for:"cds-password-input"},{default:i.withCtx(()=>[i.createElementVNode("span",null,i.toDisplayString(n.label),1),n.required?(i.openBlock(),i.createElementBlock("span",Qee," * ")):i.createCommentVNode("",!0),n.tooltip?i.withDirectives((i.openBlock(),i.createBlock(o,{key:1,name:n.tooltipIcon,height:"20",width:"20",class:"password-input__label__icon"},null,8,["name"])),[[h,n.tooltip]]):i.createCommentVNode("",!0)]),_:1})],2))]),i.createElementVNode("div",{class:i.normalizeClass(s.stepperInputDynamicClass)},[i.withDirectives(i.createElementVNode("input",{id:`cds-password-input-${e.$attrs.id||s.generateKey()}`,"onUpdate:modelValue":t[0]||(t[0]=f=>r.internalValue=f),type:s.customInputType,placeholder:n.placeholder,disabled:n.disabled,class:i.normalizeClass(s.inputClass),onFocus:t[1]||(t[1]=f=>r.isBeingFocused=!0),onBlur:t[2]||(t[2]=f=>r.isBeingFocused=!1)},null,42,ete),[[i.vModelDynamic,r.internalValue]]),s.disableTextPasswordInput?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",tte,[i.createVNode(d,{id:"CdsClickable",clickable:"",onClick:s.handleShowPassword},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(s.customTextPasswordInput),1)]),_:1},8,["onClick"])]))],2),s.errorState&&!n.disabled?(i.openBlock(),i.createElementBlock("div",nte,i.toDisplayString(n.errorMessage),1)):i.createCommentVNode("",!0)])}const ate=ie(jf,[["render",ite],["__scopeId","data-v-18e6b070"]]),rte={class:"camera-container"},ste={key:1,class:"camera-container__failed"},ote=["src"],lte=ie(Object.assign({name:"CdsWebcamModal"},{__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(e,{emit:t}){const n=t,a=e,r=i.ref(!0),s=i.ref(null),o=i.ref(null),l=i.ref(null),d=i.ref(!1),h=i.ref(null),f=i.ref(!1),m=i.ref(!1),y=i.computed(()=>r.value||m.value);i.watch(()=>a.modelValue,M=>{M&&setTimeout(()=>g(),100),f.value=M},{immediate:!0}),i.watch(f,M=>n("update:model-value",M));async function g(){let M=null;try{M=await navigator.mediaDevices.getUserMedia({video:!0}),s.value.srcObject=M,d.value=!0}catch(B){m.value=!0,console.error("Erro ao acessar a câmera: "+B.message)}r.value=!1}function v(){s.value&&s.value.srcObject&&(s.value.srcObject.getTracks().forEach(C=>C.stop()),s.value.srcObject=null),d.value=!1,r.value=!0,k()}function _(){if(!s.value||!o.value)return;const M=o.value,B=M.getContext("2d");M.width=s.value.videoWidth,M.height=s.value.videoHeight,B.drawImage(s.value,0,0,M.width,M.height),M.toBlob(C=>{const V=new File([C],"captured-photo.png",{type:"image/png"});l.value=URL.createObjectURL(C),h.value=V})}function k(){l.value=null,h.value=null}function x(){h.value&&(n("on-take-photo",h.value),f.value=!1,v())}return(M,B)=>(i.openBlock(),i.createBlock(p6,{modelValue:f.value,"onUpdate:modelValue":B[0]||(B[0]=C=>f.value=C),size:"lg",title:e.title,"no-footer":"",onClose:v,onOk:B[1]||(B[1]=C=>f.value=!1)},{default:i.withCtx(()=>[i.createVNode(Ue,{justify:"center",direction:"column",gap:"3"},{default:i.withCtx(()=>[i.createElementVNode("div",rte,[r.value?(i.openBlock(),i.createBlock(Ue,{key:0,class:"camera-container__loading",align:"center",justify:"center"},{default:i.withCtx(()=>[i.createVNode(Ql,{variant:e.variant,size:"md"},null,8,["variant"])]),_:1})):i.createCommentVNode("",!0),m.value?(i.openBlock(),i.createElementBlock("div",ste,[i.createVNode(Ue,{align:"center",gap:"2"},{default:i.withCtx(()=>[i.createVNode(ve,{height:"26",width:"26",name:"warning-outline"}),i.createElementVNode("div",null,i.toDisplayString(e.errorMessageText),1)]),_:1})])):i.createCommentVNode("",!0),i.withDirectives(i.createElementVNode("img",{class:"camera-container__photo",alt:"Sua Foto",src:l.value},null,8,ote),[[i.vShow,!y.value&&l.value]]),i.withDirectives(i.createElementVNode("video",{ref_key:"videoRef",ref:s,class:"camera-container__video",playsinline:"",autoplay:""},null,512),[[i.vShow,!y.value&&!l.value]])]),i.createVNode(Ue,{class:i.normalizeClass(["camera-container__feedback-text",{"camera-container__feedback-text--hidden":!h.value}]),align:"center"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.feedbackText),1)]),_:1},8,["class"]),i.createVNode(Ue,{gap:"2",class:"camera-container__buttons"},{default:i.withCtx(()=>[l.value?(i.openBlock(),i.createBlock(fn,{key:1,class:"camera-container__button",size:"lg",variant:e.variant,disabled:!d.value,secondary:"",onClick:i.withModifiers(k,["prevent"])},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.takeAnotherPhotoButtonText),1)]),_:1},8,["variant","disabled"])):(i.openBlock(),i.createBlock(fn,{key:0,class:"camera-container__button",size:"lg",variant:e.variant,disabled:!d.value,secondary:"",onClick:i.withModifiers(_,["prevent"])},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.takePhotoButtonText),1)]),_:1},8,["variant","disabled"])),i.createVNode(fn,{class:"camera-container__button",size:"lg",variant:e.variant,disabled:!l.value,onClick:i.withModifiers(x,["prevent"])},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.savePhotoButtonText),1)]),_:1},8,["variant","disabled"])]),_:1})]),_:1}),i.createElementVNode("canvas",{ref_key:"canvasRef",ref:o},null,512)]),_:1},8,["modelValue","title"]))}}),[["__scopeId","data-v-77b97d0b"]]),cte={name:"CdsWizard",components:{CdsBox:Zl,CdsButton:fn},props:{steps:{type:Array,default:()=>[],required:!0,validator:e=>e.length>=2&&e.length<=3},activeStep:{type:Number,default:0,validator:e=>e>=0&&e<=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(e,t){e!==t&&(this.currentStep=e)},immediate:!0},currentStep(e,t){e!==t&&this.$emit("step-change",e)}},methods:{emptyStateText(e){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(e){this.$emit("input",e+1)},value:{handler(e){this.internalValue=e-1},immediate:!0}},methods:{circleStyle(e,t){const n=this.disableOnClick?"":"stepper__step--clickable";return e.inProcessing?`stepper__step--in-processing ${n}`:e.error?`stepper__step--error ${n}`:e.completed?`stepper__step--completed ${n}`:t===this.internalValue?`stepper__step--active ${n}`:` stepper__step--muted ${n}`},changeStep(e){this.disableOnClick||(this.internalValue=e)},dividerStyle(e){const t=this.vertical?"vertical-":"";if(e<0)return`stepper__${t}divider--default`;const n=e===this.steps.length-1,a=e===0,r=e-1,s=e+1;return!n&&this.steps[e].completed&&this.steps[s].completed?`stepper__${t}divider--completed`:!n&&e>0&&this.steps[e].completed&&this.steps[r].completed||!n&&a&&this.steps[e].completed?`stepper__${t}divider--in-progress`:`stepper__${t}divider--default`},stepSectionStyle(e){let t="";return t+=e!==this.steps.length-1?"stepper__step-section ":"",t+=this.vertical?"stepper__step-section--vertical":"",t},labelStyle(e){let t="";return t+=e===this.internalValue?"stepper__step-label--active":"stepper__step-label--muted",t+=this.vertical?"":" stepper__step-label--horizontal",t+=this.disableOnClick?"":" stepper__step--clickable",t}}},kQ={class:"stepper__edge"},CQ=["onClick"],xQ=["id","onClick"],SQ={key:2,class:"stepper__processing-icon"},BQ={key:3,class:"stepper__icon-text"},MQ={key:0,class:"stepper__edge-container"},EQ={class:"stepper__edge"};function OQ(e,t,n,a,r,s){const o=i.resolveComponent("CdsIcon");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(n.vertical?"stepper--vertical":"stepper")},[i.createElementVNode("div",{class:i.normalizeClass(n.vertical?"stepper__edge-container--vertical":"stepper__edge-container")},[i.createElementVNode("div",kQ,[i.createElementVNode("div",{class:i.normalizeClass(s.dividerStyle(-1))},null,2)])],2),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.steps,(l,d)=>(i.openBlock(),i.createElementBlock("div",{key:d,class:i.normalizeClass(s.stepSectionStyle(d))},[n.vertical?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["stepper__step-label--vertical",s.labelStyle(d)]),onClick:h=>s.changeStep(d)},[i.createElementVNode("small",null,i.toDisplayString(l.label),1)],10,CQ)):i.createCommentVNode("",!0),i.createElementVNode("div",{id:`step-${d+1}`,class:i.normalizeClass(n.vertical?"stepper__icon-container--vertical":"stepper__icon-container"),onClick:h=>s.changeStep(d)},[i.createElementVNode("div",{class:i.normalizeClass(["stepper__icon-circle",s.circleStyle(l,d)])},[l.completed?(i.openBlock(),i.createBlock(o,{key:0,height:"32",width:"32",name:"check-outline"})):l.error?(i.openBlock(),i.createBlock(o,{key:1,height:"32",width:"32",name:"x-outline"})):l.inProcessing?(i.openBlock(),i.createElementBlock("div",SQ,t[0]||(t[0]=[i.createElementVNode("svg",{width:"19",height:"22",viewBox:"0 0 19 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[i.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)]))):(i.openBlock(),i.createElementBlock("span",BQ,i.toDisplayString(d+1),1))],2),i.createElementVNode("div",{class:i.normalizeClass(s.dividerStyle(d))},null,2)],10,xQ),n.vertical?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(["stepper__step-label",s.labelStyle(d)])},[i.createElementVNode("small",null,i.toDisplayString(l.label),1)],2))],2))),128)),n.vertical?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",MQ,[i.createElementVNode("div",EQ,[i.createElementVNode("div",{class:i.normalizeClass(s.dividerStyle(-1))},null,2)])]))],2)}const DQ=ie(wQ,[["render",OQ],["__scopeId","data-v-4e81dfe2"]]);function D6(){const e=i.useSlots();return!!Object.keys(e).length}function V6(e,t,n,a){return i.computed(()=>{let r="";return a.value?n||(t==="default"?r+=` ${e}--focused`:t==="valid"?r+=` ${e}--focused-valid`:t==="invalid"&&(r+=` ${e}--focused-invalid`)):(r=`${e}`,n?r+=` ${e}--disabled`:t==="valid"?r+=` ${e}--valid`:t==="invalid"&&(r+=` ${e}--invalid`)),r})}const VQ={class:"mobile-stepper-input__container"},$Q=["disabled"],TQ={key:0,class:"mobile-stepper-input__suffix"},IQ=ie(Object.assign({name:"CdsMobileStepperInput"},{__name:"MobileStepperInput",props:{modelValue:{type:Number},modelModifiers:{}},emits:i.mergeModels({add:null,subtract:null},["update:modelValue"]),setup(e,{emit:t}){i.useCssVars(g=>({"4360eafc":h.value,f5ca10de:m.value,b7474ba4:y.value}));const n=t,a=i.useModel(e,"modelValue"),r=i.useAttrs(),s=i.ref(0),o=i.ref(!1),l=gh.longClickDirective({delay:400,interval:50}),d=V6("mobile-stepper-input",r.state,r.disabled,o),h=i.computed(()=>r.width==="fluid"||r.fluid?"100%":"fit-content"),f=i.computed(()=>r.fluid?"mobile-stepper-input__field--fluid":`mobile-stepper-input__field--${r.width}`),m=i.computed(()=>r.suffix?"8px 2px 8px 8px":"8px"),y=i.computed(()=>r.suffix?"0":"8px");return i.watch(s,g=>{g!==a.value&&(a.value=g)}),i.watch(a,g=>{s.value=g}),(g,v)=>(i.openBlock(),i.createElementBlock("div",VQ,[i.createElementVNode("div",{class:i.normalizeClass(i.unref(d))},[i.withDirectives(i.createElementVNode("input",{ref:"mobile-stepper-input__field","onUpdate:modelValue":v[0]||(v[0]=_=>s.value=_),class:i.normalizeClass(["mobile-stepper-input__field",f.value]),type:"number",disabled:g.$attrs.disabled,onFocus:v[1]||(v[1]=_=>o.value=!0),onBlur:v[2]||(v[2]=_=>o.value=!1)},null,42,$Q),[[i.vModelText,s.value]]),g.$attrs.suffix?(i.openBlock(),i.createElementBlock("span",TQ,[i.renderSlot(g.$slots,"suffix",{},()=>[i.createTextVNode(i.toDisplayString(g.$attrs.suffix),1)],!0)])):i.createCommentVNode("",!0)],2),i.withDirectives(i.createVNode(gu,{icon:"minus-outline",size:"lg",disabled:g.$attrs.disabled,onCdsClick:v[3]||(v[3]=_=>n("subtract"))},null,8,["disabled"]),[[i.unref(l),()=>n("subtract")]]),i.withDirectives(i.createVNode(gu,{icon:"plus-outline",size:"lg",disabled:g.$attrs.disabled,onCdsClick:v[4]||(v[4]=_=>n("add"))},null,8,["disabled"]),[[i.unref(l),()=>n("add")]])]))}}),[["__scopeId","data-v-2a1ab458"]]),AQ=["valid","invalid","default"],NQ=e=>AQ.includes(e),zQ={key:1,class:"stepper-input__label",for:"stepper-input"},LQ={class:"label__content"},PQ=["disabled"],FQ={key:0,class:"stepper-input__suffix"},RQ={class:"stepper-input__icon-container"},HQ=["disabled"],WQ=["disabled"],YQ={key:4,class:"stepper-input__error-message"},jQ=Object.assign({name:"CdsStepperInput"},{__name:"StepperInput",props:i.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:e=>["thin","default","wide","fluid"].includes(e)},fluid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},state:{type:String,default:"default",validator:NQ},errorMessage:{type:String,default:"Valor inválido"},mobile:{type:Boolean,default:!1},suffix:{type:String,default:""}},{modelValue:{type:Number},modelModifiers:{}}),emits:i.mergeModels({"invalid-number":null,"step-out-of-bounds":null,...mr},["update:modelValue"]),setup(e,{expose:t,emit:n}){i.useCssVars(I=>({"0ebf6c64":k.value,"3416516f":B.value,bc8166e0:C.value}));const a=D6(),r=gh.longClickDirective({delay:400,interval:50}),s=i.useModel(e,"modelValue"),o=i.useTemplateRef("stepper-input");t({componentRef:o});const l=n,{emitFocus:d,emitBlur:h,emitChange:f,emitClick:m}=pr(l),y=e,g=i.ref(s.value),v=i.ref(!1),_=V6("stepper-input",y.state,y.disabled,v),k=i.computed(()=>y.width==="fluid"||y.fluid?"100%":"fit-content"),x=i.computed(()=>y.state==="invalid"),M=i.computed(()=>y.fluid?"stepper-input__field--fluid":`stepper-input__field--${y.width}`),B=i.computed(()=>y.suffix?"8px 2px 8px 8px":"8px"),C=i.computed(()=>y.suffix?"0":"8px");i.watch(s,I=>{g.value=I}),i.watch(g,I=>{I||(g.value=0),typeof I=="string"&&(g.value=+g.value),I<y.min?(g.value=y.min,l("invalid-number",`'O campo não pode ser menor que ${parseInt(y.min,10)}.'`)):I>y.max?(g.value=y.max,l("invalid-number",`'O campo não pode ser maior que ${parseInt(y.max,10)}.'`)):s.value=parseInt(I,10)}),i.watch(()=>y.step,I=>{(I>y.max||I<y.min)&&(console.warn("A propriedade step está fora dos limites definidos por min e max."),l("step-out-of-bounds"))},{immediate:!0});function V(I){g.value=parseInt(g.value)+I,f()}function $(){v.value=!0,d()}function N(){v.value=!1,h()}return(I,F)=>(i.openBlock(),i.createElementBlock("div",null,[i.unref(a)?i.renderSlot(I.$slots,"label",{key:0},void 0,!0):(i.openBlock(),i.createElementBlock("label",zQ,[i.createElementVNode("span",LQ,[i.createTextVNode(i.toDisplayString(e.label)+" ",1),e.required?(i.openBlock(),i.createBlock(su,{key:0})):i.createCommentVNode("",!0)])])),e.mobile?(i.openBlock(),i.createBlock(IQ,i.mergeProps({key:2,modelValue:g.value,"onUpdate:modelValue":F[0]||(F[0]=q=>g.value=q)},y,{onAdd:F[1]||(F[1]=q=>V(e.step)),onSubtract:F[2]||(F[2]=q=>V(-e.step))}),null,16,["modelValue"])):(i.openBlock(),i.createElementBlock("div",{key:3,class:i.normalizeClass(i.unref(_)),onClick:F[6]||(F[6]=(...q)=>i.unref(m)&&i.unref(m)(...q))},[i.withDirectives(i.createElementVNode("input",{ref:"stepper-input","onUpdate:modelValue":F[3]||(F[3]=q=>g.value=q),disabled:e.disabled,class:i.normalizeClass(["stepper-input__field",M.value]),type:"number",onFocus:$,onBlur:N},null,42,PQ),[[i.vModelText,g.value]]),e.suffix?(i.openBlock(),i.createElementBlock("span",FQ,[i.renderSlot(I.$slots,"suffix",{},()=>[i.createTextVNode(i.toDisplayString(e.suffix),1)],!0)])):i.createCommentVNode("",!0),i.createElementVNode("div",RQ,[i.withDirectives((i.openBlock(),i.createElementBlock("button",{disabled:e.disabled,class:"stepper-input__icon--plus",tabindex:"-1",onFocus:$,onBlur:N,onClick:F[4]||(F[4]=q=>V(e.step))},[i.createVNode(ve,{height:"16",width:"16",name:"plus-outline"})],40,HQ)),[[i.unref(r),()=>V(e.step)]]),i.withDirectives((i.openBlock(),i.createElementBlock("button",{disabled:e.disabled,class:"stepper-input__icon--minus",tabindex:"-1",onFocus:$,onBlur:N,onClick:F[5]||(F[5]=q=>V(-e.step))},[i.createVNode(ve,{height:"16",width:"16",name:"minus-outline"})],40,WQ)),[[i.unref(r),()=>V(-e.step)]])])],2)),x.value&&!e.disabled?(i.openBlock(),i.createElementBlock("div",YQ,i.toDisplayString(e.errorMessage),1)):i.createCommentVNode("",!0)]))}}),UQ=ie(jQ,[["__scopeId","data-v-91325b7e"]]),qQ={class:"switch__label"},GQ=["disabled"],KQ={key:0,class:"switch__supporting-text-container"},ZQ={key:1,class:"switch__supporting-text"},XQ=ie(Object.assign({name:"CdsSwitch"},{__name:"Switch",props:i.mergeModels({label:{type:String,default:""},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},tooltip:{type:String,default:null},tooltipIcon:{type:String,default:"info-outline"},supportingText:{type:[String,Array],default:""}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(e,{expose:t}){const n=i.useModel(e,"modelValue"),a=e,r=i.ref(a.modelValue),s=i.ref(a.focused),o=i.useTemplateRef("componentRef"),l=i.computed(()=>a.small===a.large?"switch--medium":a.small?"switch--small":"switch--large");i.watch(n,(h,f)=>{h!==f&&(r.value=h)});function d(){n.value=!r.value}return t({componentRef:o}),(h,f)=>{const m=i.resolveDirective("cdstip");return i.openBlock(),i.createElementBlock("div",null,[i.createElementVNode("div",qQ,[i.createVNode(Ue,null,{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.label)+" ",1),e.tooltip?i.withDirectives((i.openBlock(),i.createBlock(ve,{key:0,name:e.tooltipIcon,height:"18",width:"18",class:"label__icon"},null,8,["name"])),[[m,e.tooltip]]):i.createCommentVNode("",!0)]),_:1})]),i.createElementVNode("label",{class:i.normalizeClass(["switch",l.value])},[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":f[0]||(f[0]=y=>r.value=y),type:"checkbox",disabled:e.disabled,onClick:d},null,8,GQ),[[i.vModelCheckbox,r.value]]),i.createElementVNode("span",{ref_key:"componentRef",ref:o,tabindex:"0",class:i.normalizeClass(["switch__slider",[`switch__slider--${e.variant}`,{[`switch__slider--active-focused--${e.variant}`]:s.value&&r.value&&!e.disabled,"switch__slider--inactive-focused":s.value&&!r.value&&!e.disabled,"switch__slider--small":e.small&&e.small!==e.large,"switch__slider--large":e.large&&e.small!==e.large,"switch__slider--medium":e.small===e.large}]]),onFocusout:f[1]||(f[1]=y=>s.value=!1),onFocusin:f[2]||(f[2]=y=>s.value=!0),onKeydown:i.withKeys(d,["enter"])},null,34)],2),e.supportingText?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[Array.isArray(e.supportingText)?(i.openBlock(),i.createElementBlock("ul",KQ,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.supportingText,y=>(i.openBlock(),i.createElementBlock("li",{key:y,class:"switch__supporting-text-list"},i.toDisplayString(y),1))),128))])):(i.openBlock(),i.createElementBlock("div",ZQ,i.toDisplayString(e.supportingText),1))],64)):i.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-a0277903"]]),JQ={name:"CdsTabs",components:{CdsIcon:ve},props:{tabs:{type:Array,default:()=>[],required:!0,validator:e=>!e.filter(n=>sn(n.title)||sn(n.name)).length},activeTab:{type:Object,default:()=>({}),required:!0},variant:{type:String,default:"green",validator:e=>Ma.includes(e)},showAddAction:{type:Boolean,default:!1}},data(){return{internalActiveTab:this.activeTab,colorOptions:Ma}},computed:{activeBorderStyle(){return{"--indicatorColor":this.colorHexCode(this.variant)}}},watch:{tabs:{handler(e){const t=e.filter(n=>n.name===this.activeTab.name);[this.internalActiveTab]=t.length?t:e},immediate:!0}},methods:{colorHexCode:Jl,getSlotName(e){return e.name},handleRightClick(e,t){this.$emit("right-click",{event:e,item:t})},handleClick(e,t){this.$emit("tabs-change",{event:e,item:t}),this.internalActiveTab=t},handleAddAction(e){this.$emit("add-action",e)},isActive(e){return so(this.internalActiveTab,e)}}},QQ={id:"tabs"},eee={class:"inner-tabs__header"},tee=["id"],nee=["onClick","onContextmenu"],iee={class:"inner-tabs__text"},aee={key:0,role:"presentation",class:"nav-item cds-tab__action"},ree={class:"inner-tabs__content"};function see(e,t,n,a,r,s){const o=i.resolveComponent("CdsIcon");return i.openBlock(),i.createElementBlock("div",QQ,[i.createElementVNode("ul",eee,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.tabs,(l,d)=>(i.openBlock(),i.createElementBlock("li",{id:`${d}-${l.name}-tab`,key:`${d}-${l.name}-tab`,role:"presentation",class:"inner-tabs__header-item"},[i.createElementVNode("a",{role:"tab",href:"javascript:void(0)",target:"_self",class:i.normalizeClass(["inner-tabs__tab",s.isActive(l)?"inner-tabs__tab--active":"inner-tabs__tab--inactive"]),style:i.normalizeStyle(s.activeBorderStyle),onClick:h=>s.handleClick(h,l),onContextmenu:i.withModifiers(h=>s.handleRightClick(h,l),["prevent","stop"])},[i.createElementVNode("span",iee,i.toDisplayString(l.title),1)],46,nee)],8,tee))),128)),n.showAddAction?(i.openBlock(),i.createElementBlock("li",aee,[i.createElementVNode("a",{role:"tab",href:"javascript:void(0)",target:"_self",class:"nav-link",onClick:t[0]||(t[0]=i.withModifiers((...l)=>s.handleAddAction&&s.handleAddAction(...l),["prevent"]))},[i.createVNode(o,{height:"32",width:"32",name:"plus-outline"})])])):i.createCommentVNode("",!0)]),i.createElementVNode("div",ree,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.tabs,(l,d)=>(i.openBlock(),i.createElementBlock("div",{key:`${d}-${l.name}-tab`,role:"tabpanel",class:i.normalizeClass(["content__pane",s.isActive(l)?"content__pane--active":"content__pane--inactive"])},[i.renderSlot(e.$slots,s.getSlotName(l))],2))),128))])])}const oee=ie(JQ,[["render",see]]),Rf=ie(Object.assign({name:"CdsText"},{__name:"Text",props:{as:{type:String,default:"span"},color:{type:String,default:"n-800"},fontWeight:{type:String,default:"regular"},textAlign:{type:String,default:"start"},noMargin:{type:Boolean,default:!1}},setup(e,{expose:t}){i.useCssVars(s=>({"0daff910":e.textAlign}));const n=e,a=i.useTemplateRef("componentRef"),r=i.computed(()=>{switch(n.as){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":case"p":case"q":case"span":case"strong":case"em":case"del":case"small":case"legend":return n.as;case"heading-1":return"h1";case"heading-2":return"h2";case"heading-3":return"h3";case"subheading-1":return"h4";case"subheading-2":return"h5";case"subheading-3":return"h6";case"body-1":return"p";case"body-2":return"span";case"caption":return"small";case"overline":return"legend";default:return"span"}});return t({componentRef:a}),(s,o)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(r.value),{ref_key:"componentRef",ref:a,class:i.normalizeClass(["text-alignment",{"no-margin":e.noMargin,[`${e.color}`]:e.color,[`${e.fontWeight}`]:e.fontWeight}])},{default:i.withCtx(()=>[i.renderSlot(s.$slots,"default",{},void 0,!0)]),_:3},8,["class"]))}}),[["__scopeId","data-v-3eda92df"]]),lee=Object.assign({name:"CdsTextArea"},{__name:"TextArea",props:i.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,null],default:null},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},height:{type:[Number,String],default:null}},{modelValue:{type:String},modelModifiers:{}}),emits:i.mergeModels({...mr},["update:modelValue"]),setup(e,{expose:t,emit:n}){const a=i.useTemplateRef("baseInput"),r=i.useModel(e,"modelValue"),s=e,o=n,l=i.ref(r.value),{emitClick:d,emitChange:h,emitFocus:f,emitBlur:m,emitKeydown:y}=pr(o);return i.watch(r,(g,v)=>{g!==v&&(l.value=g)},{immediate:!0}),i.watch(l,g=>{r.value=g}),t({componentRef:i.computed(()=>{var g;return(g=a.value)==null?void 0:g.componentRef}),isFocused:i.computed(()=>{var g;return(g=a.value)==null?void 0:g.isFocused}),focus:()=>{var g;return(g=a.value)==null?void 0:g.focus()},blur:()=>{var g;return(g=a.value)==null?void 0:g.blur()},clear:()=>{var g;return(g=a.value)==null?void 0:g.clear()},select:()=>{var g;return(g=a.value)==null?void 0:g.select()}}),(g,v)=>(i.openBlock(),i.createElementBlock("div",null,[i.createVNode(Wi,i.mergeProps({ref:"baseInput",modelValue:l.value,"onUpdate:modelValue":v[0]||(v[0]=_=>l.value=_)},{...g.$attrs,...s},{type:"textarea","support-link-url":e.supportLinkUrl,"support-link":e.supportLink,"floating-label":e.floatingLabel,onClick:i.unref(d),onChange:i.unref(h),onFocus:i.unref(f),onBlur:i.unref(m),onKeydown:i.unref(y)}),null,16,["modelValue","support-link-url","support-link","floating-label","onClick","onChange","onFocus","onBlur","onKeydown"])]))}}),cee={key:0,class:"cds-tile__extra-container"},dee={class:"cds-tile__extra"},uee={key:2},hee=ie(Object.assign({name:"CdsTile"},{__name:"Tile",props:{icon:{type:String,default:"settings-outline"},title:{type:String,default:""},size:{type:String,default:"md",validator:e=>["sm","md","lg"].includes(e)},variant:{type:String,default:"green",validator:D4},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:["cdsClick"],setup(e,{emit:t}){const n=e,a=t,r=i.computed(()=>n.disabled?"disabled":n.variant),s=i.computed(()=>n.loading?"gray":r.value),o=i.computed(()=>`cds-tile__loader--${n.size}`),l=i.computed(()=>`cds-tile__image--${r.value} cds-tile__image--${n.size}`),d=i.computed(()=>`cds-tile__text--${r.value} cds-tile__text--${n.size}`),h=i.computed(()=>n.icon.includes("http")?"img":"icon"),f=i.computed(()=>{switch(n.size){case"sm":return"40";case"md":return"50";default:return"60"}}),m=i.computed(()=>{const g=n.size==="sm"?30:20;return n.title.length>g?n.title.substring(0,g)+"...":n.title});function y(){n.disabled||n.loading||a("cdsClick")}return(g,v)=>(i.openBlock(),i.createBlock(Zl,{variant:s.value,clickable:!e.disabled,padding:"0",light:"",onBoxClick:y},{default:i.withCtx(()=>[e.loading?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",cee,[i.createElementVNode("div",dee,[i.renderSlot(g.$slots,"extra",{},void 0,!0)])])),e.loading?(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(o.value)},[i.createVNode(Ea,{fluid:""})],2)):(i.openBlock(),i.createElementBlock("div",uee,[i.createElementVNode("div",{class:i.normalizeClass(l.value)},[h.value==="icon"?(i.openBlock(),i.createBlock(ve,{key:0,class:"cds-tile__icon",name:e.icon},null,8,["name"])):(i.openBlock(),i.createBlock(Xl,{key:1,src:e.icon,width:f.value,"rounded-corners":"",opacity:"0.5"},null,8,["src","width"]))],2),i.createElementVNode("div",{class:i.normalizeClass(d.value)},i.toDisplayString(m.value),3)]))]),_:3},8,["variant","clickable"]))}}),[["__scopeId","data-v-d3384325"]]),Hf=e=>/[0-2][0-9]:[0-5][0-9]/.test(e),fee=(e,t)=>Hf(e)&&Hf(t)?fe.fromFormat(e,"HH:mm").diff(fe.fromFormat(t,"HH:mm"))>0:!1,pee={name:"CdsTimeInput",directives:{facade:ro},props:{modelValue:{type:[String,Array],default:"",validator:e=>e===""||Array.isArray(e)&&e.length===0?!0:typeof e=="string"?Hf(e):e.length===2&&fee(e[1],e[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:e=>["single","range"].includes(e)},state:{type:String,default:"default",validator:e=>["default","valid","invalid"].includes(e)},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(e,t){e===t||e==null||this.buildTimeElements(e)}},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.mode==="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 e=Yt.fromDateTimes(fe.fromFormat(`${this.startHour}:${this.startMinute}`,"HH:mm"),fe.fromFormat(`${this.endHour}:${this.endMinute}`,"HH:mm"));if(e.invalid){this.$emit("update:modelValue",null);return}this.$emit("update:modelValue",[e.start.toFormat("HH:mm"),e.end.toFormat("HH:mm")])},formatTimeElement(e){return parseInt(e,10).toLocaleString(void 0,{minimumIntegerDigits:2,maximumFractionDigits:0})},resolveTimeElement(e,t){const n=this.formatTimeElement(e);return n>t?t:n<0?"00":n},buildTimeElements(e){if(this.mode==="single"){if(typeof e!="string")return;[this.startHour,this.startMinute]=e.split(":");return}if(typeof e=="string"){this.startHour="",this.startMinute="",this.endHour="",this.endMinute="";return}[this.startHour,this.startMinute]=e[0].split(":"),[this.endHour,this.endMinute]=e[1].split(":")}}},mee={class:"input__label"},gee=["for"],yee={key:0,class:"label__required-indicator"},bee=["id"],vee=["id","disabled"],_ee=["id","disabled"],wee={key:0,class:"input__separator"},kee={key:1},Cee=["id","disabled"],xee=["id","disabled"],See={key:0,class:"input__message"};function Bee(e,t,n,a,r,s){const o=i.resolveDirective("facade");return i.openBlock(),i.createElementBlock("div",null,[i.createElementVNode("label",mee,[i.createElementVNode("div",{class:"label__content",for:n.id},[i.createElementVNode("span",null,i.toDisplayString(n.label),1),n.required?(i.openBlock(),i.createElementBlock("span",yee," * ")):i.createCommentVNode("",!0)],8,gee)]),i.createElementVNode("div",{id:n.id,class:"input__container"},[i.createElementVNode("div",null,[i.withDirectives(i.createElementVNode("input",{id:`${n.id}-start-hour`,"onUpdate:modelValue":t[0]||(t[0]=l=>r.startHour=l),class:i.normalizeClass(s.computedInputClass),disabled:n.disabled,type:"text",min:"0",max:"23",step:"1",placeholder:"00",onKeyup:[t[1]||(t[1]=i.withKeys(l=>r.startHour++,["up"])),t[2]||(t[2]=i.withKeys(l=>r.startHour>0?r.startHour--:null,["down"]))],onInput:t[3]||(t[3]=(...l)=>s.handleTimeInput&&s.handleTimeInput(...l))},null,42,vee),[[i.vModelText,r.startHour],[o,"##"]]),t[16]||(t[16]=i.createTextVNode(" : ")),i.withDirectives(i.createElementVNode("input",{id:`${n.id}-start-minute`,"onUpdate:modelValue":t[4]||(t[4]=l=>r.startMinute=l),class:i.normalizeClass(s.computedInputClass),disabled:n.disabled,type:"text",min:"0",max:"59",step:"1",placeholder:"00",onKeyup:[t[5]||(t[5]=i.withKeys(l=>r.startMinute++,["up"])),t[6]||(t[6]=i.withKeys(l=>r.startMinute>0?r.startMinute--:null,["down"]))],onInput:t[7]||(t[7]=(...l)=>s.handleTimeInput&&s.handleTimeInput(...l))},null,42,_ee),[[i.vModelText,r.startMinute],[o,"##"]])]),n.mode==="range"?(i.openBlock(),i.createElementBlock("div",wee," Até ")):i.createCommentVNode("",!0),n.mode==="range"?(i.openBlock(),i.createElementBlock("div",kee,[i.withDirectives(i.createElementVNode("input",{id:`${n.id}-end-hour`,"onUpdate:modelValue":t[8]||(t[8]=l=>r.endHour=l),class:i.normalizeClass(s.computedInputClass),disabled:n.disabled,type:"text",min:"0",max:"23",step:"1",placeholder:"00",onKeyup:[t[9]||(t[9]=i.withKeys(l=>r.endHour++,["up"])),t[10]||(t[10]=i.withKeys(l=>r.endHour>0?r.endHour--:null,["down"]))],onInput:t[11]||(t[11]=(...l)=>s.handleTimeInput&&s.handleTimeInput(...l))},null,42,Cee),[[i.vModelText,r.endHour],[o,"##"]]),t[17]||(t[17]=i.createTextVNode(" : ")),i.withDirectives(i.createElementVNode("input",{id:`${n.id}-end-minute`,"onUpdate:modelValue":t[12]||(t[12]=l=>r.endMinute=l),class:i.normalizeClass(s.computedInputClass),disabled:n.disabled,type:"text",min:"0",max:"59",step:"1",placeholder:"00",onKeyup:[t[13]||(t[13]=i.withKeys(l=>r.endMinute++,["up"])),t[14]||(t[14]=i.withKeys(l=>r.endMinute>0?r.endMinute--:null,["down"]))],onInput:t[15]||(t[15]=(...l)=>s.handleTimeInput&&s.handleTimeInput(...l))},null,42,xee),[[i.vModelText,r.endMinute],[o,"##"]])])):i.createCommentVNode("",!0)],8,bee),n.state==="invalid"&&!n.disabled?(i.openBlock(),i.createElementBlock("div",See,i.toDisplayString(n.errorMessage),1)):i.createCommentVNode("",!0)])}const Mee=ie(pee,[["render",Bee],["__scopeId","data-v-0f87d82a"]]),Wf={name:"CdsTimeline",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(t=>{let n=t.getClientRects()[0].width;this.oppositeSlotMaxWidth<n&&(this.oppositeSlotMaxWidth=n)})}},$6=()=>{i.useCssVars(e=>({"0270f01f":e.directionResolver,"41008be1":e.oppositeSlotWidthResolver}))},T6=Wf.setup;Wf.setup=T6?(e,t)=>($6(),T6(e,t)):$6;const Eee={class:"cds-timeline"};function Oee(e,t,n,a,r,s){return i.openBlock(),i.createElementBlock("div",Eee,[i.renderSlot(e.$slots,"default")])}const Dee=ie(Wf,[["render",Oee]]),Vee={name:"CdsTimelineItem",components:{CdsIcon:ve,CdsSpinner:Ql},props:{variant:{type:String,default:"green"},loading:{type:Boolean,default:!1},hollowed:{type:Boolean,default:!1},icon:{type:String,default:null}},methods:{hasSlot:ei}},$ee={class:"cds-timeline-item"},Tee={class:"cds-timeline-item__opposite"},Iee={class:"cds-timeline-item__timeline-container"},Aee={key:1,class:"cds-timeline-item__icon"},Nee={class:"cds-timeline-item__content-container"},zee={key:0,class:"cds-timeline-item__title"},Lee={class:"cds-timeline-item__text"};function Pee(e,t,n,a,r,s){const o=i.resolveComponent("CdsSpinner"),l=i.resolveComponent("CdsIcon");return i.openBlock(),i.createElementBlock("div",$ee,[i.createElementVNode("div",Tee,[i.renderSlot(e.$slots,"opposite",{},void 0,!0)]),i.createElementVNode("div",Iee,[n.loading?(i.openBlock(),i.createBlock(o,{key:0,size:"sm",class:"spinner",variant:n.variant},null,8,["variant"])):n.icon?(i.openBlock(),i.createElementBlock("div",Aee,[i.createVNode(l,{name:n.icon,height:"20",width:"20"},null,8,["name"])])):(i.openBlock(),i.createElementBlock("span",{key:2,class:i.normalizeClass(`cds-timeline-item__pin--${n.variant}${n.hollowed?"--hollowed":""}`)},null,2)),i.createElementVNode("div",{class:i.normalizeClass(n.loading||n.hollowed?"tail--dashed":"tail")},null,2)]),i.createElementVNode("div",Nee,[s.hasSlot(e.$slots,"title")?(i.openBlock(),i.createElementBlock("div",zee,[i.renderSlot(e.$slots,"title",{},void 0,!0)])):i.createCommentVNode("",!0),i.createElementVNode("span",Lee,[i.renderSlot(e.$slots,"content",{},void 0,!0)])])])}const Fee=ie(Vee,[["render",Pee],["__scopeId","data-v-9a1b21b0"]]),Wu=i.reactive({toasts:[]});function Yf(){function e({title:n,description:a=null,variant:r="info",dismissible:s=!0,dismissAfter:o=4e3,autoDismissible:l=!0,light:d=!1}){const h=oa();Wu.toasts.push({id:h,title:n,description:a,variant:r,dismissible:s,dismissAfter:o,autoDismissible:l,light:d}),l&&setTimeout(()=>{t(h)},o)}function t(n){const a=Wu.toasts.findIndex(r=>r.id===n);a!==-1&&Wu.toasts.splice(a,1)}return{toastState:Wu,fire:e,dismissToast:t}}const Ree={class:"toast__text-container"},I6=ie(Object.assign({name:"CdsToast"},{__name:"Toast",props:i.mergeModels({title:{type:String,default:"Título do toast"},description:{type:String,default:"Descrição do toast, exibida abaixo do título"},dismissible:{type:Boolean,default:!1},autoDismissible:{type:Boolean,default:!1},dismissAfter:{type:Number,default:4e3,validator:e=>e>=4e3&&e<=12e3},variant:{type:String,default:"info",validator:e=>["success","info","warning","danger"].includes(e)},light:{type:Boolean,default:!1}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:i.mergeModels(["dismiss"],["update:modelValue"]),setup(e,{emit:t}){const n=i.useAttrs(),a=i.useModel(e,"modelValue"),r=e,s=t,o=i.ref({});let l=null;const d=i.computed(()=>{switch(r.variant){case"success":return"check-circle-outline";case"info":return"info-outline";case"warning":return"alert-outline";case"danger":return"warning-outline";default:return"info-outline"}}),h=i.computed(()=>r.light?"n-800":"n-0"),f=i.computed(()=>r.light?"n-700":"n-30");i.watch(a,()=>{a.value&&r.autoDismissible&&(clearTimeout(l),m())},{immediate:!0});function m(){o.value={width:"100%",transition:"none"},requestAnimationFrame(()=>{o.value={width:"0%",transition:`width ${r.dismissAfter}ms linear`}}),l=setTimeout(()=>{y()},r.dismissAfter)}function y(){o.value={width:"100%",transition:"none"},clearTimeout(l),a.value=!1,s("dismiss"),Yf().dismissToast(n.id)}return(g,v)=>a.value?(i.openBlock(),i.createBlock(Ue,{key:0,id:g.$attrs.id,gap:"2",class:i.normalizeClass(["toast__container",{[`toast__container--${e.variant}`]:!0,"toast__container--light":e.light}]),role:"alert","aria-live":"assertive"},{default:i.withCtx(()=>[i.createVNode(Ue,{gap:"2",wrap:"no-wrap",fluid:""},{default:i.withCtx(()=>[i.createVNode(Ue,{gap:"2",fluid:""},{default:i.withCtx(()=>[i.createVNode(ve,{class:i.normalizeClass({[`toast__icon--${e.variant}`]:!0,"toast__icon--light":e.light}),name:d.value,height:"20",width:"20"},null,8,["class","name"]),i.createElementVNode("div",Ree,[i.createVNode(Ue,{direction:"column",gap:"1"},{default:i.withCtx(()=>[i.createVNode(Rf,{color:h.value,class:"toast__title"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.title),1)]),_:1},8,["color"]),e.description?(i.openBlock(),i.createBlock(Rf,{key:0,color:f.value,class:"toast__description"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.description),1)]),_:1},8,["color"])):i.createCommentVNode("",!0)]),_:1})])]),_:1}),e.dismissible?(i.openBlock(),i.createBlock(ve,{key:0,class:i.normalizeClass(e.light?"dismiss__icon--light":"dismiss__icon"),name:"x-outline",height:"17",width:"17",onClick:y},null,8,["class"])):i.createCommentVNode("",!0)]),_:1}),e.autoDismissible?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass({[`toast__countdown-indicator--${e.variant}`]:!0,"toast__countdown-indicator--light":e.light}),style:i.normalizeStyle(o.value)},null,6)):i.createCommentVNode("",!0)]),_:1},8,["id","class"])):i.createCommentVNode("",!0)}}),[["__scopeId","data-v-2a79d828"]]),Hee=ie(Object.assign({name:"CdsToastContainer"},{__name:"ToastContainer",setup(e){const t=Yf().toastState.toasts;return(n,a)=>(i.openBlock(),i.createBlock(i.TransitionGroup,{tag:"div",class:"toast-container"},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(t),r=>(i.openBlock(),i.createBlock(I6,{key:r.id,id:r.id,"model-value":!0,title:r.title,description:r.description,dismissible:r.dismissible,"auto-dismissible":r.autoDismissible,"dismiss-after":r.dismissAfter,variant:r.variant,light:r.light},null,8,["id","title","description","dismissible","auto-dismissible","dismiss-after","variant","light"]))),128))]),_:1}))}}),[["__scopeId","data-v-a08e3810"]]),Wee={class:"top-app-bar"},Yee={class:"top-app-bar__menu-container"},jee=["src","alt"],Uee={key:3,class:"top-app-bar__title"},qee={class:"top-app-bar__actions"},Gee=ie(Object.assign({name:"CdsTopAppBar"},{__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(e,{emit:t}){const{isMobile:n}=au(),a=t,r=e,s=i.computed(()=>n.value?"24":"34"),o=i.computed(()=>{const d=l();return d||-1});function l(){var d,h;return(d=r.defaultRoute)!=null&&d.path?r.defaultRoute.path:(h=r.defaultRoute)!=null&&h.name?{name:r.defaultRoute.path}:null}return(d,h)=>{const f=i.resolveComponent("router-link");return i.openBlock(),i.createElementBlock("div",Wee,[i.createElementVNode("div",Yee,[e.showMenuIcon?(i.openBlock(),i.createBlock(ve,{key:0,class:"top-app-bar__menu",name:"menu-outline",width:s.value,height:s.value,onClick:h[0]||(h[0]=m=>a("on-menu-click"))},null,8,["width","height"])):e.showBackNavigation?(i.openBlock(),i.createBlock(f,{key:1,to:o.value},{default:i.withCtx(()=>[i.createVNode(ve,{class:"top-app-bar__back-arrow",name:"arrow-left-outline",width:s.value,height:s.value},null,8,["width","height"])]),_:1},8,["to"])):i.createCommentVNode("",!0),e.logoUrl?(i.openBlock(),i.createElementBlock("img",{key:2,class:"top-app-bar__logo-image",src:e.logoUrl,alt:e.title},null,8,jee)):(i.openBlock(),i.createElementBlock("h2",Uee,i.toDisplayString(e.title),1))]),i.createElementVNode("div",qee,[i.renderSlot(d.$slots,"actions",{},void 0,!0)])])}}}),[["__scopeId","data-v-dd8fca17"]]),Kee={class:"truncate-container__content"},Zee={key:0,class:"fade-overlay"},Xee=ie(Object.assign({name:"CdsTruncateContainer"},{__name:"TruncateContainer",props:{height:{type:String,default:"250px"},textAlign:{type:String,default:"center"},variant:{type:String,default:"dark"}},emits:["button-click","expand","collapse"],setup(e,{emit:t}){i.useCssVars(g=>({"4e331476":l.value,"23149b23":f.value}));const n=e,a=t,r=i.ref(!1),s=i.ref(!1),o=i.ref(null),l=i.computed(()=>s.value?`${o.value.scrollHeight}px`:`${n.height.replace("px","")}px`),d=i.computed(()=>s.value?"Mostrar menos":"Mostrar mais"),h=i.computed(()=>n.textAlign),f=i.computed(()=>s.value?"-4px":"8px");i.watch([()=>n.height,()=>{var g;return(g=o.value)==null?void 0:g.scrollHeight}],()=>{i.nextTick(()=>{m()})},{immediate:!0}),i.watch(s,()=>s.value?a("expand"):a("collapse"));function m(){const g=o.value;g&&(r.value=g.scrollHeight>g.clientHeight)}function y(){s.value=!s.value,a("button-click")}return(g,v)=>(i.openBlock(),i.createElementBlock("div",{ref_key:"truncateContainerEl",ref:o,class:"truncate-container"},[i.createElementVNode("div",Kee,[i.renderSlot(g.$slots,"default",{},void 0,!0)]),r.value&&!s.value?(i.openBlock(),i.createElementBlock("div",Zee)):i.createCommentVNode("",!0),r.value?(i.openBlock(),i.createBlock(Ue,{key:1,justify:h.value},{default:i.withCtx(()=>[i.createVNode(Lh,{class:"truncate-container__button",text:d.value,variant:e.variant,onClick:y},null,8,["text","variant"])]),_:1},8,["justify"])):i.createCommentVNode("",!0)],512))}}),[["__scopeId","data-v-3c2ee7a8"]]),jf={name:"CdsPasswordInput",directives:{cdstip:uu},components:{CdsIcon:ve,CdsClickable:Ni,CdsFlexbox:Ue},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 e=this.fluid?"password-input--fluid":"password-input";return this.isBeingFocused?this.disabled||(this.state==="default"?e+=" password-input--focused":this.state==="valid"?e+=" password-input--focused-valid":this.state==="invalid"&&(e+=" password-input--focused-invalid")):this.disabled?e+=" password-input--disabled":this.state==="valid"?e+=" password-input--valid":this.state==="invalid"&&(e+=" password-input--invalid"),e},labelDynamicClass(){const e=this.mobile?"mobile-label":"label";return this.fluid?`password-input__${e}--fluid`:`password-input__${e}`},inputClass(){const e=this.mobile?"mobile-field":"field";return this.fluid?`password-input__${e}--fluid`:`password-input__${e}`},errorState(){return this.state==="invalid"},resolveInputWidth(){return this.mobile?"300px":"266px"}},watch:{modelValue:{handler(e,t){e!==t&&(this.internalValue=e)},immediate:!0},internalValue(e){this.$emit("update:modelValue",e)}},methods:{generateKey:Qa,handleShowPassword(){this.showPassword=!this.showPassword}}},A6=()=>{i.useCssVars(e=>({cac594da:e.resolveInputWidth}))},N6=jf.setup;jf.setup=N6?(e,t)=>(A6(),N6(e,t)):A6;const Jee={key:0},Qee={key:0,class:"password-input__label__required-indicator"},ete=["id","type","placeholder","disabled"],tte={key:0,class:"password-input__password-toogle"},nte={key:0,class:"password-input__error-message"};function ite(e,t,n,a,r,s){const o=i.resolveComponent("CdsIcon"),l=i.resolveComponent("CdsFlexbox"),d=i.resolveComponent("CdsClickable"),h=i.resolveDirective("cdstip");return i.openBlock(),i.createElementBlock("div",null,[i.createElementVNode("span",null,[s.hasSlots?(i.openBlock(),i.createElementBlock("span",Jee,[i.renderSlot(e.$slots,"label",{},void 0,!0)])):(i.openBlock(),i.createElementBlock("label",{key:1,class:i.normalizeClass(s.labelDynamicClass)},[i.createVNode(l,{class:"password-input__label__content",for:"cds-password-input"},{default:i.withCtx(()=>[i.createElementVNode("span",null,i.toDisplayString(n.label),1),n.required?(i.openBlock(),i.createElementBlock("span",Qee," * ")):i.createCommentVNode("",!0),n.tooltip?i.withDirectives((i.openBlock(),i.createBlock(o,{key:1,name:n.tooltipIcon,height:"20",width:"20",class:"password-input__label__icon"},null,8,["name"])),[[h,n.tooltip]]):i.createCommentVNode("",!0)]),_:1})],2))]),i.createElementVNode("div",{class:i.normalizeClass(s.stepperInputDynamicClass)},[i.withDirectives(i.createElementVNode("input",{id:`cds-password-input-${e.$attrs.id||s.generateKey()}`,"onUpdate:modelValue":t[0]||(t[0]=f=>r.internalValue=f),type:s.customInputType,placeholder:n.placeholder,disabled:n.disabled,class:i.normalizeClass(s.inputClass),onFocus:t[1]||(t[1]=f=>r.isBeingFocused=!0),onBlur:t[2]||(t[2]=f=>r.isBeingFocused=!1)},null,42,ete),[[i.vModelDynamic,r.internalValue]]),s.disableTextPasswordInput?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",tte,[i.createVNode(d,{id:"CdsClickable",clickable:"",onClick:s.handleShowPassword},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(s.customTextPasswordInput),1)]),_:1},8,["onClick"])]))],2),s.errorState&&!n.disabled?(i.openBlock(),i.createElementBlock("div",nte,i.toDisplayString(n.errorMessage),1)):i.createCommentVNode("",!0)])}const ate=ie(jf,[["render",ite],["__scopeId","data-v-18e6b070"]]),rte={class:"camera-container"},ste={key:1,class:"camera-container__failed"},ote=["src"],lte=ie(Object.assign({name:"CdsWebcamModal"},{__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(e,{emit:t}){const n=t,a=e,r=i.ref(!0),s=i.ref(null),o=i.ref(null),l=i.ref(null),d=i.ref(!1),h=i.ref(null),f=i.ref(!1),m=i.ref(!1),y=i.computed(()=>r.value||m.value);i.watch(()=>a.modelValue,M=>{M&&setTimeout(()=>g(),100),f.value=M},{immediate:!0}),i.watch(f,M=>n("update:model-value",M));async function g(){let M=null;try{M=await navigator.mediaDevices.getUserMedia({video:!0}),s.value.srcObject=M,d.value=!0}catch(B){m.value=!0,console.error("Erro ao acessar a câmera: "+B.message)}r.value=!1}function v(){s.value&&s.value.srcObject&&(s.value.srcObject.getTracks().forEach(C=>C.stop()),s.value.srcObject=null),d.value=!1,r.value=!0,k()}function _(){if(!s.value||!o.value)return;const M=o.value,B=M.getContext("2d");M.width=s.value.videoWidth,M.height=s.value.videoHeight,B.drawImage(s.value,0,0,M.width,M.height),M.toBlob(C=>{const V=new File([C],"captured-photo.png",{type:"image/png"});l.value=URL.createObjectURL(C),h.value=V})}function k(){l.value=null,h.value=null}function x(){h.value&&(n("on-take-photo",h.value),f.value=!1,v())}return(M,B)=>(i.openBlock(),i.createBlock(p6,{modelValue:f.value,"onUpdate:modelValue":B[0]||(B[0]=C=>f.value=C),size:"lg",title:e.title,"no-footer":"",onClose:v,onOk:B[1]||(B[1]=C=>f.value=!1)},{default:i.withCtx(()=>[i.createVNode(Ue,{justify:"center",direction:"column",gap:"3"},{default:i.withCtx(()=>[i.createElementVNode("div",rte,[r.value?(i.openBlock(),i.createBlock(Ue,{key:0,class:"camera-container__loading",align:"center",justify:"center"},{default:i.withCtx(()=>[i.createVNode(Ql,{variant:e.variant,size:"md"},null,8,["variant"])]),_:1})):i.createCommentVNode("",!0),m.value?(i.openBlock(),i.createElementBlock("div",ste,[i.createVNode(Ue,{align:"center",gap:"2"},{default:i.withCtx(()=>[i.createVNode(ve,{height:"26",width:"26",name:"warning-outline"}),i.createElementVNode("div",null,i.toDisplayString(e.errorMessageText),1)]),_:1})])):i.createCommentVNode("",!0),i.withDirectives(i.createElementVNode("img",{class:"camera-container__photo",alt:"Sua Foto",src:l.value},null,8,ote),[[i.vShow,!y.value&&l.value]]),i.withDirectives(i.createElementVNode("video",{ref_key:"videoRef",ref:s,class:"camera-container__video",playsinline:"",autoplay:""},null,512),[[i.vShow,!y.value&&!l.value]])]),i.createVNode(Ue,{class:i.normalizeClass(["camera-container__feedback-text",{"camera-container__feedback-text--hidden":!h.value}]),align:"center"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.feedbackText),1)]),_:1},8,["class"]),i.createVNode(Ue,{gap:"2",class:"camera-container__buttons"},{default:i.withCtx(()=>[l.value?(i.openBlock(),i.createBlock(fn,{key:1,class:"camera-container__button",size:"lg",variant:e.variant,disabled:!d.value,secondary:"",onClick:i.withModifiers(k,["prevent"])},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.takeAnotherPhotoButtonText),1)]),_:1},8,["variant","disabled"])):(i.openBlock(),i.createBlock(fn,{key:0,class:"camera-container__button",size:"lg",variant:e.variant,disabled:!d.value,secondary:"",onClick:i.withModifiers(_,["prevent"])},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.takePhotoButtonText),1)]),_:1},8,["variant","disabled"])),i.createVNode(fn,{class:"camera-container__button",size:"lg",variant:e.variant,disabled:!l.value,onClick:i.withModifiers(x,["prevent"])},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.savePhotoButtonText),1)]),_:1},8,["variant","disabled"])]),_:1})]),_:1}),i.createElementVNode("canvas",{ref_key:"canvasRef",ref:o},null,512)]),_:1},8,["modelValue","title"]))}}),[["__scopeId","data-v-77b97d0b"]]),cte={name:"CdsWizard",components:{CdsBox:Zl,CdsButton:fn},props:{steps:{type:Array,default:()=>[],required:!0,validator:e=>e.length>=2&&e.length<=3},activeStep:{type:Number,default:0,validator:e=>e>=0&&e<=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(e,t){e!==t&&(this.currentStep=e)},immediate:!0},currentStep(e,t){e!==t&&this.$emit("step-change",e)}},methods:{emptyStateText(e){return`Preencha todos os campos obrigatórios da etapa anterior para
76
76
  liberar a seção de ${e.toLowerCase()}`},handleStepBoxClick(e){this.currentStep=e},backActionClick(){this.currentStep>0?this.currentStep--:this.$emit("cancel-action",!0)},nextActionClick(){let e=this.currentStep;this.currentStep<this.steps.length-1&&e++,this.$emit("next-action",{nextStep:e})}}},dte={class:"cds-wizard"},ute={class:"cds-wizard__container"},hte=["clickable","onBoxClick"],fte={key:0},pte={class:"cds-wizard__title"},mte={class:"cds-wizard__subtitle"},gte={class:"cds-wizard__content"},yte={key:1,class:"cds-wizard__empty-state"},bte=["src","alt"],vte={class:"cds-wizard__empty-state-title"},_te={class:"cds-wizard__empty-state-subtitle"},wte={class:"cds-wizard__buttons"};function kte(e,t,n,a,r,s){const o=i.resolveComponent("CdsButton");return i.openBlock(),i.createElementBlock("div",dte,[i.createElementVNode("div",ute,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.steps,(l,d)=>(i.openBlock(),i.createElementBlock("div",{key:`wizard-step-${d}`,class:i.normalizeClass(["cds-wizard__box",{"cds-wizard__empty-state-box":r.currentStep<d,"cds-wizard__elevated":r.currentStep===d}]),fluid:"",clickable:n.clickable,onBoxClick:h=>s.handleStepBoxClick(d),onClick:t[0]||(t[0]=i.withModifiers(()=>{},["prevent"]))},[r.currentStep>=d?(i.openBlock(),i.createElementBlock("span",fte,[i.renderSlot(e.$slots,`step-${d+1}-header`,{},()=>[i.createElementVNode("h3",pte,i.toDisplayString(l.title),1),i.createElementVNode("h4",mte,i.toDisplayString(l.subtitle),1)],!0),i.createElementVNode("div",gte,[i.renderSlot(e.$slots,`step-${d+1}`,{},void 0,!0)])])):(i.openBlock(),i.createElementBlock("div",yte,[l.image?(i.openBlock(),i.createElementBlock("img",{key:0,class:"cds-wizard__empty-state-image",src:l.image,alt:`Imagem de ${l.title}`},null,8,bte)):i.createCommentVNode("",!0),i.createElementVNode("div",vte,i.toDisplayString(l.title),1),i.createElementVNode("div",_te,i.toDisplayString(s.emptyStateText(l.title)),1)]))],42,hte))),128))]),i.createElementVNode("div",wte,[i.createVNode(o,{text:n.cancelButtonText,secondary:"",onButtonClick:s.backActionClick,onClick:t[1]||(t[1]=i.withModifiers(()=>{},["prevent"]))},null,8,["text","onButtonClick"]),i.createVNode(o,{text:n.nextButtonText,variant:n.nextButtonVariant,disabled:n.disableNextButton,onButtonClick:s.nextActionClick,onClick:t[2]||(t[2]=i.withModifiers(()=>{},["prevent"]))},null,8,["text","variant","disabled","onButtonClick"])])])}const Cte=ie(cte,[["render",kte],["__scopeId","data-v-4c1199e4"]]),xte=(e,t)=>{let n="",a="",r=t.modifiers,s=t.arg;n=document.querySelector(`[id='${t.value}']`),a=document.querySelector(`[id='${e.id}']`),cl(n,a,{placement:s,modifiers:[{name:"offset",options:{offset:[0,-4]}},{name:"flip",enabled:!!r.flip}]})},hs="__v-click-outside",z6=typeof window<"u",Ste=typeof navigator<"u",Bte=z6&&("ontouchstart"in window||Ste&&navigator.msMaxTouchPoints>0)?["touchstart"]:["click"],Mte=e=>{const t=typeof e=="function";if(!t&&typeof e!="object")throw new Error("v-click-outside: Binding value must be a function or an object");return{handler:t?e:e.handler,middleware:e.middleware||(n=>n),events:e.events||Bte,isActive:e.isActive!==!1,detectIframe:e.detectIframe!==!1,capture:!!e.capture}},L6=({event:e,handler:t,middleware:n})=>{n(e)&&t(e)},Ete=({el:e,event:t,handler:n,middleware:a})=>{setTimeout(()=>{const{activeElement:r}=document;r&&r.tagName==="IFRAME"&&!e.contains(r)&&L6({event:t,handler:n,middleware:a})},0)},Ote=({el:e,event:t,handler:n,middleware:a})=>{const r=t.path||t.composedPath&&t.composedPath();(r?r.indexOf(e)<0:!e.contains(t.target))&&L6({event:t,handler:n,middleware:a})},P6=(e,{value:t})=>{const{events:n,handler:a,middleware:r,isActive:s,detectIframe:o,capture:l}=Mte(t);if(s){if(e[hs]=n.map(d=>({event:d,srcTarget:document.documentElement,handler:h=>Ote({el:e,event:h,handler:a,middleware:r}),capture:l})),o){const d={event:"blur",srcTarget:window,handler:h=>Ete({el:e,event:h,handler:a,middleware:r}),capture:l};e[hs]=[...e[hs],d]}e[hs].forEach(({event:d,srcTarget:h,handler:f})=>setTimeout(()=>{e[hs]&&h.addEventListener(d,f,l)},0))}},F6=e=>{(e[hs]||[]).forEach(({event:n,srcTarget:a,handler:r,capture:s})=>a.removeEventListener(n,r,s)),delete e[hs]},Dte=z6?{beforeMount:P6,updated:(e,{value:t,oldValue:n})=>{JSON.stringify(t)!==JSON.stringify(n)&&(F6(e),P6(e,{value:t}))},unmounted:F6}:{};return{install:(e,t)=>{e.directive("cdstip",uu),e.directive("cds-floatify",xte),e.directive("cds-click-outside",Dte),e.component("CdsActionBar",J7),e.component("CdsActionsList",r8),e.component("CdsAlert",h8),e.component("CdsAlertCard",y8),e.component("CdsAppBar",K_),e.component("CdsAvatar",ul),e.component("CdsAvatarGroup",iw),e.component("CdsBadge",G1),e.component("CdsBarChart",CS),e.component("CdsBox",Zl),e.component("CdsBottomSheet",GM),e.component("CdsBreadcrumb",QM),e.component("CdsButton",fn),e.component("CdsCard",pE),e.component("CdsCalloutCard",kE),e.component("CdsCarousel",SE),e.component("CdsCarouselController",VE),e.component("CdsCheckbox",Qs),e.component("CdsCheckboxGroup",jE),e.component("CdsChevron",Ai),e.component("CdsChip",qE),e.component("CdsClickable",Ni),e.component("CdsCollapsibleContainer",QE),e.component("CdsColorPicker",fO),e.component("CdsDashboardCard",kO),e.component("CdsDataTable",CV),e.component("CdsDateInput",WV),e.component("CdsDialogModal",i$),e.component("CdsDivider",zr),e.component("CdsDropdown",d$),e.component("CdsDropdownButton",f$),e.component("CdsDonutChart",y$),e.component("CdsEmptyState",uy),e.component("CdsFileInput",By),e.component("CdsFileViewer",z$),e.component("CdsFilterSelect",q$),e.component("CdsFlatButton",Lh),e.component("CdsFlexbox",Ue),e.component("CdsFloatingAssistant",lT),e.component("CdsFloatingActionButton",fT),e.component("CdsGaugeChart",CT),e.component("CdsGrid",fu),e.component("CdsGridItem",ST),e.component("CdsHighlight",Iy),e.component("CdsIcon",ve),e.component("CdsIconButton",gu),e.component("CdsImage",Xl),e.component("CdsInnerTabs",NT),e.component("CdsInteractionBlockingOverlay",WT),e.component("CdsLineChart",EM),e.component("CdsLabel",hu),e.component("CdsLink",ec),e.component("CdsList",gK),e.component("CdsInlineDateInput",dK),e.component("CdsLoadingBar",vK),e.component("CdsLoadingIndicator",_K),e.component("CdsMobileNavbar",xK),e.component("CdsMobileNavigation",IK),e.component("CdsModal",p6),e.component("CdsMonthAndYearPicker",UK),e.component("CdsMultiselect",RZ),e.component("CdsComboBox",eX),e.component("CdsDynamicInputList",a$),e.component("CdsMultiFileInput",aZ),e.component("CdsNavBar",aX),e.component("CdsNumberInput",sX),e.component("CdsOverlayLoader",dX),e.component("CdsPageContainer",C6),e.component("CdsPageLayout",WX),e.component("CdsPageHeader",XX),e.component("CdsPagination",eJ),e.component("CdsPanelCard",sJ),e.component("CdsPinInput",cJ),e.component("CdsPopover",dl),e.component("CdsProgressBar",uJ),e.component("CdsProgressCircular",gJ),e.component("CdsPulsar",My),e.component("CdsQuickActionBar",CJ),e.component("CdsRadio",OJ),e.component("CdsRadioButtonGroup",HJ),e.component("CdsRadialBarChart",AJ),e.component("CdsRichTooltip",Rh),e.component("CdsSpacer",nu),e.component("CdsScrollable",Qc),e.component("CdsSearchInput",$h),e.component("CdsSecondaryNavigation",S6),e.component("CdsSegmentedControl",GJ),e.component("CdsSelect",Vh),e.component("CdsSideBar",x6),e.component("CdsSideSheet",H4),e.component("CdsSkeleton",Ea),e.component("CdsSkeletonText",XJ),e.component("CdsSlider",_Q),e.component("CdsSpinner",Ql),e.component("CdsStackedBarChart",FM),e.component("CdsStepper",DQ),e.component("CdsStepperInput",UQ),e.component("CdsSwitch",XQ),e.component("CdsTable",_h),e.component("CdsTabs",oee),e.component("CdsText",Rf),e.component("CdsTextArea",lee),e.component("CdsTextInput",Cy),e.component("CdsTile",hee),e.component("CdsTimeInput",Mee),e.component("CdsToast",I6),e.component("CdsToastContainer",Hee),e.component("CdsTooltip",ad),e.component("CdsTopAppBar",Gee),e.component("CdsTimeline",Dee),e.component("CdsTimelineItem",Fee),e.component("CdsTruncate",q1),e.component("CdsTruncateContainer",Xee),e.component("CdsPasswordInput",ate),e.component("CdsPieChart",$M),e.component("CdsPolarAreaChart",NM),e.component("CdsWebcamModal",lte),e.component("CdsWizard",Cte)},utils:{contrastChecker:V4,hasSlot:ei,removeAccents:eo,hexToRgb:ou,isDeviceType:ns,useIsMobile:au,useHasSlot:is,useHasSlots:D6,useToast:Yf,unmaskBRL:k6,uuidv4:oa}}});