@sysvale/cuida 3.114.0 → 3.114.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -45031,7 +45031,7 @@ const p1e = /* @__PURE__ */ fe(u1e, [["render", f1e], ["__scopeId", "data-v-7174
45031
45031
  emits: ["update:modelValue"],
45032
45032
  setup(e) {
45033
45033
  ot((u) => ({
45034
- "6d6dfad8": r.value
45034
+ "6eebab18": r.value
45035
45035
  }));
45036
45036
  const t = ri(e, "modelValue"), n = e, i = se(""), s = se(`radio-group$-${ar()}`), a = z(() => ({
45037
45037
  "--border-color-selected": Sl(n.variant),
@@ -45091,7 +45091,7 @@ const p1e = /* @__PURE__ */ fe(u1e, [["render", f1e], ["__scopeId", "data-v-7174
45091
45091
  o.value && !e.disabled ? (v(), k("div", _1e, j(e.errorMessage), 1)) : U("", !0)
45092
45092
  ], 4));
45093
45093
  }
45094
- }, x1e = /* @__PURE__ */ fe(w1e, [["__scopeId", "data-v-02decf00"]]), k1e = ["value", "placeholder", "disabled"], S1e = {
45094
+ }, x1e = /* @__PURE__ */ fe(w1e, [["__scopeId", "data-v-cb7475c3"]]), k1e = ["value", "placeholder", "disabled"], S1e = {
45095
45095
  __name: "SearchInput",
45096
45096
  props: /* @__PURE__ */ hn({
45097
45097
  /**
@@ -70,7 +70,7 @@ function print() { __p += __j.call(arguments, '') }
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,sJ),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
- a 15.9155 15.9155 0 0 1 0 -31.831`},null,14,oJ),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 cJ=te(rJ,[["render",lJ]]),Nf={props:{width:{type:String,default:"20"},height:{type:String,default:"16"},fluid:{type:Boolean,default:!1},shape:{type:String,default:"square",validate:e=>["circle","square"].includes(e)}},computed:{computedStyle(){return this.shape==="circle"?{"--width":`${this.width}px`,"--height":`${this.width}px`}:this.fluid?{"--width":"100%","--height":this.height!=="16"?`${this.height}px`:"100%"}:{"--width":`${this.width}px`,"--height":`${this.height}px`}},resolveShape(){return this.shape==="circle"?"50%":"6px"}}},D6=()=>{i.useCssVars(e=>({"02fe74e9":e.resolveShape}))},V6=Nf.setup;Nf.setup=V6?(e,t)=>(D6(),V6(e,t)):D6;function dJ(e,t,n,a,r,s){return i.openBlock(),i.createElementBlock("div",{class:"skeleton__container",style:i.normalizeStyle(s.computedStyle)},null,4)}const Pu=te(Nf,[["render",dJ],["__scopeId","data-v-5298dc58"]]),uJ={key:0,class:"quick_action_bar"},hJ=["placeholder"],fJ={key:1,class:"quick_action_bar__empty-state"},pJ={key:2,class:"quick_action_bar__empty-state"},mJ=["onClick"],gJ={key:1,class:"quick_action_bar__result-item"},yJ=te({__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 T=s.value.some(U=>U.results&&U.results.length>0),F=n.recents.length>0;return T&&!l.value&&!n.loading?"renderResults":l.value||n.loading?"renderLoading":!l.value&&!T&&h.value.length>0?"renderEmptyState":h.value.length===0&&F?"renderRecents":!l.value&&!F&&h.value.length===0?"renderInitialState":"renderEmptyState"}),g=i.computed(()=>n.recents.slice(0,n.numRecents)),y=i.computed(()=>f.value>400);i.watch(h,()=>{k()}),i.watch(()=>n.modelValue,T=>{r.value=T,T&&setTimeout(()=>{var F;(F=d.value)==null||F.focus()},100)}),i.watch(r,T=>{T||(w(),a("close")),a("update:modelValue",T),_(T)}),i.watch(()=>n.groups,T=>{s.value=T.filter(F=>F.results.length>0),setTimeout(()=>L(),100)});function _(T){document.body.style.overflow=T?"hidden":"auto"}function w(){var T;h.value="",(T=d.value)==null||T.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(T){a("onItemClick",T)}function M(T){a("onSeeMoreClick",T)}function E(T){T.target===T.currentTarget&&(r.value=!1)}function C(T){var F;a("onRemoveRecent",T),(F=d.value)==null||F.focus()}function $(){h.value.trim().length>0&&a("onEnterPress",h.value)}function I(T){return T.slice(0,n.numResults)}function L(){var T;f.value=(T=document.querySelector("#contentResults"))==null?void 0:T.offsetHeight}return(T,F)=>r.value?(i.openBlock(),i.createElementBlock("div",uJ,[i.createElementVNode("div",{class:"quick_action_bar__backdrop",onClick:E,onKeyup:[F[1]||(F[1]=i.withKeys(U=>r.value=!1,["esc"])),i.withKeys($,["enter"])]},[i.createVNode(Mt,{gap:"3",class:"quick_action_bar__input",align:"center"},{default:i.withCtx(()=>[i.createVNode(xe,{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]=U=>h.value=U),type:"text",placeholder:e.placeholder},null,8,hJ),[[i.vModelText,h.value]]),h.value?(i.openBlock(),i.createElementBlock("span",{key:0,class:"quick_action_bar__clear",onClick:w}," Limpar ")):i.createCommentVNode("",!0)]),_:1}),i.createVNode(Mt,{id:"contentResults",direction:"column",class:i.normalizeClass(["quick_action_bar__results",{"quick_action_bar__results--with-overflow-y":y.value}]),wrap:"nowrap"},{default:i.withCtx(()=>[m.value==="renderLoading"?(i.openBlock(),i.createBlock(Mt,{key:0,direction:"column",gap:"4"},{default:i.withCtx(()=>[(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(5,U=>i.createVNode(Mt,{key:U,direction:"column",gap:"1",class:"quick_action_bar__skeleton-card"},{default:i.withCtx(()=>[i.createVNode(Pu,{width:250,height:20}),i.createVNode(Pu,{width:180,height:20})]),_:2},1024)),64))]),_:1})):m.value==="renderInitialState"?(i.openBlock(),i.createElementBlock("div",fJ,i.toDisplayString(e.initialStateText),1)):m.value==="renderEmptyState"?(i.openBlock(),i.createElementBlock("div",pJ,i.toDisplayString(e.emptyStateText),1)):m.value==="renderRecents"?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:3},i.renderList(g.value,U=>(i.openBlock(),i.createBlock(Mt,{key:U,direction:"column",gap:"4",class:"quick_action_bar__result-item",onClick:ee=>x(U)},{default:i.withCtx(()=>[i.unref(Zr)(T.$slots,"recent-item")?i.renderSlot(T.$slots,"recent-item",{key:0,data:U},void 0,!0):(i.openBlock(),i.createBlock(Mt,{key:1,justify:"space-between",align:"center"},{default:i.withCtx(()=>[i.createVNode(Mt,{align:"center",gap:"2"},{default:i.withCtx(()=>[i.createVNode(xe,{height:"20",width:"20",name:"history-outline",color:"#52616F"}),i.createElementVNode("span",null,i.toDisplayString(U.title),1)]),_:2},1024),i.createVNode(xe,{height:"20",width:"20",name:"trash-outline",color:"#52616F",class:"quick_action_bar__remove-recent-icon",onClick:i.withModifiers(ee=>C(U),["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,(U,ee)=>(i.openBlock(),i.createElementBlock("div",{key:ee,class:"quick_action_bar__results-block"},[U.results.length>0?(i.openBlock(),i.createBlock(Vs,{key:0,text:U.category,inline:"",class:"quick_action_bar__divider"},null,8,["text"])):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(I(U.results),Y=>(i.openBlock(),i.createElementBlock("div",{key:Y,class:"quick_action_bar__result-item-wrapper",onClick:ne=>x(Y)},[i.unref(Zr)(T.$slots,"result-item")?i.renderSlot(T.$slots,"result-item",{key:0,data:Y},void 0,!0):(i.openBlock(),i.createElementBlock("div",gJ,[i.createVNode(V5,{"highlighted-text":h.value},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(Y.title),1)]),_:2},1032,["highlighted-text"])]))],8,mJ))),128)),U.results.length>n.numResults?(i.openBlock(),i.createBlock(Mt,{key:1,class:"quick_action_bar__show-more",align:"center",justify:"start",gap:"1",onClick:Y=>M(U)},{default:i.withCtx(()=>[i.createElementVNode("span",null,[i.createTextVNode(" Ver todos os "+i.toDisplayString(U.results.length)+" resultados em ",1),i.createElementVNode("b",null,i.toDisplayString(U.category),1)])]),_:2},1032,["onClick"])):i.createCommentVNode("",!0)]))),128)):i.createCommentVNode("",!0),m.value==="renderResults"||m.value==="renderEmptyState"?i.renderSlot(T.$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-ed84eaae"]]),zf={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"}}},$6=()=>{i.useCssVars(e=>({"43811d2c":e.cursorType}))},T6=zf.setup;zf.setup=T6?(e,t)=>($6(),T6(e,t)):$6;const bJ={class:"cds-radio__container"},vJ=["id","value","disabled","name","checked"],_J=["for"],wJ=["disabled"];function kJ(e,t,n,a,r,s){return i.openBlock(),i.createElementBlock("span",bJ,[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,vJ),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,wJ)])],8,_J)])}const xJ=te(zf,[["render",kJ]]),CJ={components:{Doughnut:g3},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:yi,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:xa,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++}}},SJ={class:"responsive-container"},MJ={class:"legend__container"},BJ=["onClick"];function EJ(e,t,n,a,r,s){const o=i.resolveComponent("Doughnut");return i.openBlock(),i.createElementBlock("span",null,[i.createElementVNode("div",SJ,[i.createElementVNode("div",MJ,[(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,BJ))),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 OJ=te(CJ,[["render",EJ],["__scopeId","data-v-71746dc3"]]),DJ=["disabled","for"],VJ=["id","value","disabled"],$J=["for"],TJ={class:"content-title"},IJ={key:0,class:"content-body"},AJ={key:0,class:"radio-button__error-text"},NJ=te({__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,default:"https://cuida.framer.wiki/"}},{modelValue:{type:[String,null]},modelModifiers:{}}),emits:["update:modelValue"],setup(e){i.useCssVars(d=>({"6d6dfad8":o.value}));const t=i.useModel(e,"modelValue"),n=e,a=i.ref(""),r=i.ref(`radio-group$-${Ga()}`),s=i.computed(()=>({"--border-color-selected":eo(n.variant),"--background-color":BO(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(Oh,{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]=g=>a.value=g),type:"radio",value:f.value,disabled:f.disabled||e.disabled},null,8,VJ),[[i.vModelRadio,a.value]]),i.createElementVNode("label",{class:"radio-button__content",for:`${d.$attrs.id||r.value}-${f.value}`},[i.createElementVNode("div",TJ,i.toDisplayString(f.label||f.text),1),e.allowsExpand||e.fluid?(i.openBlock(),i.createElementBlock("div",IJ,i.toDisplayString(f.body),1)):i.createCommentVNode("",!0)],8,$J)],8,DJ)],6))),128))],2),l.value&&!e.disabled?(i.openBlock(),i.createElementBlock("div",AJ,i.toDisplayString(e.errorMessage),1)):i.createCommentVNode("",!0)],4))}},[["__scopeId","data-v-02decf00"]]),zJ=["value","placeholder","disabled"],LJ=te({__name:"SearchInput",props:i.mergeModels({disabled:{type:Boolean,default:!1},placeholder:{type:String,default:"Busque..."},fluid:{type:Boolean,default:!1}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=i.ref(""),n=i.ref(!1),a=i.useModel(e,"modelValue"),r=e,s=i.computed(()=>(r.fluid?"search-input--fluid":"search-input").concat(" ",r.disabled?"search-input--disabled":"")),o=i.computed(()=>r.fluid?"search-input__field--fluid":"search-input__field");function l(h){t.value=h.target.value,a.value=h.target.value}function d(){t.value="",a.value=""}return i.onMounted(()=>{t.value=a.value}),(h,f)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(s.value)},[i.createVNode(xe,{name:"search-outline",class:"search-input__search-icon"}),i.createElementVNode("input",{id:"cds-search-input",value:t.value,placeholder:e.placeholder,disabled:e.disabled,class:i.normalizeClass(o.value),onFocus:f[0]||(f[0]=m=>n.value=!0),onBlur:f[1]||(f[1]=m=>n.value=!1),onInput:l},null,42,zJ),t.value?(i.openBlock(),i.createBlock(xe,{key:0,name:"x-outline",width:"18",height:"18",class:"search-input__close-icon",onClick:d})):i.createCommentVNode("",!0)],2))}},[["__scopeId","data-v-fad0c1c1"]]),PJ={components:{CdsIcon:xe,CdsTooltip:rd},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)}}},FJ={class:"segment-control"},RJ=["onClick"],HJ={key:1};function WJ(e,t,n,a,r,s){const o=i.resolveComponent("cds-icon"),l=i.resolveComponent("cds-tooltip");return i.openBlock(),i.createElementBlock("div",FJ,[(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",HJ,i.toDisplayString(d),1))],10,RJ))),128))])}const YJ=te(PJ,[["render",WJ]]),Lf={components:{CdsIcon:xe,CdsClickable:Ii,CdsButton:ti,CdsScrollable:ad},props:{title:{type:String,default:null},modelValue:{type:Boolean,default:!1,required:!0},withOverlay:{type:Boolean,default:!1},size:{type:String,default:"md"},noCloseOnBackdrop:{type:Boolean,default:!1},noCloseOnEsc:{type:Boolean,default:!1},actionButtonVariant:{type:String,default:"green"},noFooter:{type:Boolean,default:!1},noCancelButton:{type:Boolean,default:!1},disableOkButton:{type:Boolean,default:!1},disableCancelButton:{type:Boolean,default:!1},okButtonText:{type:Boolean,default:!1},cancelButtonText:{type:Boolean,default:!1},blockOkButton:{type:Boolean,default:!1},noCloseOkButton:{type:Boolean,default:!1},noCloseCancelButton:{type:Boolean,default:!1}},data(){return{sassColorVariables:yi}},computed:{overlayColor(){const e=this.withOverlay?this.sassColorVariables.n900:"transparent";return`rgba(${this.hexToRgb(e)}, 0.4)`},sideSheetWidth(){let e="328px";switch(this.size){case"xl":e="840px";break;case"lg":e="700px";break;case"md":e="500px";break;default:e="340px";break}return e}},watch:{modelValue(e){if(!e){this.dettachKeyupEvent();return}this.attachKeyupEvent()}},created(){this.attachKeyupEvent()},beforeUnmount(){this.dettachKeyupEvent()},methods:{hexToRgb:ou,shouldCloseOnBackdrop(){this.noCloseOnBackdrop||this.$emit("update:modelValue",!this.modelValue)},shouldCloseOnEsc(){this.noCloseOnEsc||this.$emit("update:modelValue",!this.modelValue)},keyupListener(e){e.keyCode===pw.ESC&&this.shouldCloseOnEsc()},attachKeyupEvent(){window.addEventListener("keyup",this.keyupListener)},dettachKeyupEvent(){window.removeEventListener("keyup",this.keyupListener)},closeHandle(){this.$emit("close",!0),this.$emit("update:modelValue",!1)},cancelHandle(){this.$emit("cancel",!0),this.noCloseCancelButton||(this.$emit("update:modelValue",!1),this.$emit("close",!0))},okHandle(){this.noCloseOkButton||(this.$emit("update:modelValue",!1),this.$emit("close",!0)),this.$emit("ok",!0)}}},I6=()=>{i.useCssVars(e=>({a52e092a:e.overlayColor,"24b4a654":e.sideSheetWidth}))},A6=Lf.setup;Lf.setup=A6?(e,t)=>(I6(),A6(e,t)):I6;const UJ={class:"side-sheet__header"},jJ={key:0,class:"side-sheet__footer"};function qJ(e,t,n,a,r,s){const o=i.resolveComponent("cds-icon"),l=i.resolveComponent("cds-clickable"),d=i.resolveComponent("cds-scrollable"),h=i.resolveComponent("cds-button");return n.modelValue?(i.openBlock(),i.createElementBlock("div",{key:0,class:"side-sheet__overlay",tabindex:"0",onClick:t[4]||(t[4]=(...f)=>s.shouldCloseOnBackdrop&&s.shouldCloseOnBackdrop(...f))},[i.createElementVNode("div",{class:"side-sheet__container",onClick:t[3]||(t[3]=i.withModifiers(()=>{},["stop"]))},[i.createElementVNode("header",null,[i.renderSlot(e.$slots,"header",{},()=>[i.createElementVNode("div",UJ,[i.createElementVNode("h3",null,i.toDisplayString(n.title),1),i.createElementVNode("div",{class:"side-sheet__close-icon",onClick:t[0]||(t[0]=(...f)=>s.closeHandle&&s.closeHandle(...f))},[i.createVNode(l,{clickable:""},{default:i.withCtx(()=>[i.createVNode(o,{height:"20",width:"20",name:"x-outline"})]),_:1})])])],!0)]),i.createVNode(d,{"max-height":"100%"},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3}),n.noFooter?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("footer",jJ,[i.renderSlot(e.$slots,"footer",{},()=>[n.noCancelButton?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(h,{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(h,{class:"footer__ok-button",text:n.okButtonText,variant:n.actionButtonVariant,disabled:n.disableOkButton,block:n.blockOkButton,onClick:t[2]||(t[2]=f=>n.disableOkButton?!1:s.okHandle())},null,8,["text","variant","disabled","block"])],!0)]))])])):i.createCommentVNode("",!0)}const GJ=te(Lf,[["render",qJ],["__scopeId","data-v-f4113d03"]]),KJ={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=te(KJ,[["render",ZJ],["__scopeId","data-v-d39e7029"]]);(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,Kt=(e,t,n)=>(QJ(e,typeof t!="symbol"?t+"":t,n),n);const Pf=(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 N6=Pf(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 z6=Pf(aQ,[["render",rQ]]),pc=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 Da{constructor(t){Kt(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){Kt(this,"dotsPos",[]),Kt(this,"dotsValue",[]),Kt(this,"data"),Kt(this,"enableCross"),Kt(this,"fixed"),Kt(this,"max"),Kt(this,"min"),Kt(this,"interval"),Kt(this,"minRange"),Kt(this,"maxRange"),Kt(this,"order"),Kt(this,"marks"),Kt(this,"included"),Kt(this,"process"),Kt(this,"adsorb"),Kt(this,"dotOptions"),Kt(this,"onError"),Kt(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 Da(+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 Da(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=(w,k)=>{const x=Math.abs(w-k);return d?x<this.minRangeDir:x>this.maxRangeDir};let g=a+f,y=this.dotsPos[g],_=t;for(;this.isPos(y)&&m(y,_);){const{pos:w}=this.getValidPos(y+s,g);r.push({index:g,changePos:w-y}),g=g+f,_=w,y=this.dotsPos[g]}}),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 Da(t).minus(this.min).divide(this.interval).toNumber()}const n=new Da(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 Da(n).multiply(this.interval).plus(this.min).toNumber());return t}}getRangeDir(t){return t?new Da(t).divide(new Da(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 Da(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){Kt(this,"map"),Kt(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 Ff=4,vn={None:0,Drag:2,Focus:4},hQ={emits:["update:modelValue","change","drag-start","drag-end","dragging","error"],components:{VueSliderDot:N6,VueSliderMark:z6},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 pc((this.isHorizontal?this.height:this.width)||Ff)},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?pc(this.width):this.isHorizontal?"auto":pc(Ff),a=this.height?pc(this.height):this.isHorizontal?pc(Ff):"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 Da(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 Rf=Pf(hQ,[["render",pQ]]);Rf.VueSliderMark=z6,Rf.VueSliderDot=N6;const mQ={components:{vueSlider:Rf},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=te(mQ,[["render",vQ]]),wQ={components:{CdsIcon:xe},props:{steps:{type:Array,default:()=>[],required:!0,description:`Um array com objetos com as propriedades 'label', 'inProcessing',
73
+ a 15.9155 15.9155 0 0 1 0 -31.831`},null,14,oJ),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 cJ=te(rJ,[["render",lJ]]),Nf={props:{width:{type:String,default:"20"},height:{type:String,default:"16"},fluid:{type:Boolean,default:!1},shape:{type:String,default:"square",validate:e=>["circle","square"].includes(e)}},computed:{computedStyle(){return this.shape==="circle"?{"--width":`${this.width}px`,"--height":`${this.width}px`}:this.fluid?{"--width":"100%","--height":this.height!=="16"?`${this.height}px`:"100%"}:{"--width":`${this.width}px`,"--height":`${this.height}px`}},resolveShape(){return this.shape==="circle"?"50%":"6px"}}},D6=()=>{i.useCssVars(e=>({"02fe74e9":e.resolveShape}))},V6=Nf.setup;Nf.setup=V6?(e,t)=>(D6(),V6(e,t)):D6;function dJ(e,t,n,a,r,s){return i.openBlock(),i.createElementBlock("div",{class:"skeleton__container",style:i.normalizeStyle(s.computedStyle)},null,4)}const Pu=te(Nf,[["render",dJ],["__scopeId","data-v-5298dc58"]]),uJ={key:0,class:"quick_action_bar"},hJ=["placeholder"],fJ={key:1,class:"quick_action_bar__empty-state"},pJ={key:2,class:"quick_action_bar__empty-state"},mJ=["onClick"],gJ={key:1,class:"quick_action_bar__result-item"},yJ=te({__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 T=s.value.some(U=>U.results&&U.results.length>0),F=n.recents.length>0;return T&&!l.value&&!n.loading?"renderResults":l.value||n.loading?"renderLoading":!l.value&&!T&&h.value.length>0?"renderEmptyState":h.value.length===0&&F?"renderRecents":!l.value&&!F&&h.value.length===0?"renderInitialState":"renderEmptyState"}),g=i.computed(()=>n.recents.slice(0,n.numRecents)),y=i.computed(()=>f.value>400);i.watch(h,()=>{k()}),i.watch(()=>n.modelValue,T=>{r.value=T,T&&setTimeout(()=>{var F;(F=d.value)==null||F.focus()},100)}),i.watch(r,T=>{T||(w(),a("close")),a("update:modelValue",T),_(T)}),i.watch(()=>n.groups,T=>{s.value=T.filter(F=>F.results.length>0),setTimeout(()=>L(),100)});function _(T){document.body.style.overflow=T?"hidden":"auto"}function w(){var T;h.value="",(T=d.value)==null||T.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(T){a("onItemClick",T)}function M(T){a("onSeeMoreClick",T)}function E(T){T.target===T.currentTarget&&(r.value=!1)}function C(T){var F;a("onRemoveRecent",T),(F=d.value)==null||F.focus()}function $(){h.value.trim().length>0&&a("onEnterPress",h.value)}function I(T){return T.slice(0,n.numResults)}function L(){var T;f.value=(T=document.querySelector("#contentResults"))==null?void 0:T.offsetHeight}return(T,F)=>r.value?(i.openBlock(),i.createElementBlock("div",uJ,[i.createElementVNode("div",{class:"quick_action_bar__backdrop",onClick:E,onKeyup:[F[1]||(F[1]=i.withKeys(U=>r.value=!1,["esc"])),i.withKeys($,["enter"])]},[i.createVNode(Mt,{gap:"3",class:"quick_action_bar__input",align:"center"},{default:i.withCtx(()=>[i.createVNode(xe,{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]=U=>h.value=U),type:"text",placeholder:e.placeholder},null,8,hJ),[[i.vModelText,h.value]]),h.value?(i.openBlock(),i.createElementBlock("span",{key:0,class:"quick_action_bar__clear",onClick:w}," Limpar ")):i.createCommentVNode("",!0)]),_:1}),i.createVNode(Mt,{id:"contentResults",direction:"column",class:i.normalizeClass(["quick_action_bar__results",{"quick_action_bar__results--with-overflow-y":y.value}]),wrap:"nowrap"},{default:i.withCtx(()=>[m.value==="renderLoading"?(i.openBlock(),i.createBlock(Mt,{key:0,direction:"column",gap:"4"},{default:i.withCtx(()=>[(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(5,U=>i.createVNode(Mt,{key:U,direction:"column",gap:"1",class:"quick_action_bar__skeleton-card"},{default:i.withCtx(()=>[i.createVNode(Pu,{width:250,height:20}),i.createVNode(Pu,{width:180,height:20})]),_:2},1024)),64))]),_:1})):m.value==="renderInitialState"?(i.openBlock(),i.createElementBlock("div",fJ,i.toDisplayString(e.initialStateText),1)):m.value==="renderEmptyState"?(i.openBlock(),i.createElementBlock("div",pJ,i.toDisplayString(e.emptyStateText),1)):m.value==="renderRecents"?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:3},i.renderList(g.value,U=>(i.openBlock(),i.createBlock(Mt,{key:U,direction:"column",gap:"4",class:"quick_action_bar__result-item",onClick:ee=>x(U)},{default:i.withCtx(()=>[i.unref(Zr)(T.$slots,"recent-item")?i.renderSlot(T.$slots,"recent-item",{key:0,data:U},void 0,!0):(i.openBlock(),i.createBlock(Mt,{key:1,justify:"space-between",align:"center"},{default:i.withCtx(()=>[i.createVNode(Mt,{align:"center",gap:"2"},{default:i.withCtx(()=>[i.createVNode(xe,{height:"20",width:"20",name:"history-outline",color:"#52616F"}),i.createElementVNode("span",null,i.toDisplayString(U.title),1)]),_:2},1024),i.createVNode(xe,{height:"20",width:"20",name:"trash-outline",color:"#52616F",class:"quick_action_bar__remove-recent-icon",onClick:i.withModifiers(ee=>C(U),["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,(U,ee)=>(i.openBlock(),i.createElementBlock("div",{key:ee,class:"quick_action_bar__results-block"},[U.results.length>0?(i.openBlock(),i.createBlock(Vs,{key:0,text:U.category,inline:"",class:"quick_action_bar__divider"},null,8,["text"])):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(I(U.results),Y=>(i.openBlock(),i.createElementBlock("div",{key:Y,class:"quick_action_bar__result-item-wrapper",onClick:ne=>x(Y)},[i.unref(Zr)(T.$slots,"result-item")?i.renderSlot(T.$slots,"result-item",{key:0,data:Y},void 0,!0):(i.openBlock(),i.createElementBlock("div",gJ,[i.createVNode(V5,{"highlighted-text":h.value},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(Y.title),1)]),_:2},1032,["highlighted-text"])]))],8,mJ))),128)),U.results.length>n.numResults?(i.openBlock(),i.createBlock(Mt,{key:1,class:"quick_action_bar__show-more",align:"center",justify:"start",gap:"1",onClick:Y=>M(U)},{default:i.withCtx(()=>[i.createElementVNode("span",null,[i.createTextVNode(" Ver todos os "+i.toDisplayString(U.results.length)+" resultados em ",1),i.createElementVNode("b",null,i.toDisplayString(U.category),1)])]),_:2},1032,["onClick"])):i.createCommentVNode("",!0)]))),128)):i.createCommentVNode("",!0),m.value==="renderResults"||m.value==="renderEmptyState"?i.renderSlot(T.$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-ed84eaae"]]),zf={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"}}},$6=()=>{i.useCssVars(e=>({"43811d2c":e.cursorType}))},T6=zf.setup;zf.setup=T6?(e,t)=>($6(),T6(e,t)):$6;const bJ={class:"cds-radio__container"},vJ=["id","value","disabled","name","checked"],_J=["for"],wJ=["disabled"];function kJ(e,t,n,a,r,s){return i.openBlock(),i.createElementBlock("span",bJ,[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,vJ),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,wJ)])],8,_J)])}const xJ=te(zf,[["render",kJ]]),CJ={components:{Doughnut:g3},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:yi,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:xa,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++}}},SJ={class:"responsive-container"},MJ={class:"legend__container"},BJ=["onClick"];function EJ(e,t,n,a,r,s){const o=i.resolveComponent("Doughnut");return i.openBlock(),i.createElementBlock("span",null,[i.createElementVNode("div",SJ,[i.createElementVNode("div",MJ,[(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,BJ))),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 OJ=te(CJ,[["render",EJ],["__scopeId","data-v-71746dc3"]]),DJ=["disabled","for"],VJ=["id","value","disabled"],$J=["for"],TJ={class:"content-title"},IJ={key:0,class:"content-body"},AJ={key:0,class:"radio-button__error-text"},NJ=te({__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,default:"https://cuida.framer.wiki/"}},{modelValue:{type:[String,null]},modelModifiers:{}}),emits:["update:modelValue"],setup(e){i.useCssVars(d=>({"6eebab18":o.value}));const t=i.useModel(e,"modelValue"),n=e,a=i.ref(""),r=i.ref(`radio-group$-${Ga()}`),s=i.computed(()=>({"--border-color-selected":eo(n.variant),"--background-color":BO(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(Oh,{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]=g=>a.value=g),type:"radio",value:f.value,disabled:f.disabled||e.disabled},null,8,VJ),[[i.vModelRadio,a.value]]),i.createElementVNode("label",{class:"radio-button__content",for:`${d.$attrs.id||r.value}-${f.value}`},[i.createElementVNode("div",TJ,i.toDisplayString(f.label||f.text),1),e.allowsExpand||e.fluid?(i.openBlock(),i.createElementBlock("div",IJ,i.toDisplayString(f.body),1)):i.createCommentVNode("",!0)],8,$J)],8,DJ)],6))),128))],2),l.value&&!e.disabled?(i.openBlock(),i.createElementBlock("div",AJ,i.toDisplayString(e.errorMessage),1)):i.createCommentVNode("",!0)],4))}},[["__scopeId","data-v-cb7475c3"]]),zJ=["value","placeholder","disabled"],LJ=te({__name:"SearchInput",props:i.mergeModels({disabled:{type:Boolean,default:!1},placeholder:{type:String,default:"Busque..."},fluid:{type:Boolean,default:!1}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=i.ref(""),n=i.ref(!1),a=i.useModel(e,"modelValue"),r=e,s=i.computed(()=>(r.fluid?"search-input--fluid":"search-input").concat(" ",r.disabled?"search-input--disabled":"")),o=i.computed(()=>r.fluid?"search-input__field--fluid":"search-input__field");function l(h){t.value=h.target.value,a.value=h.target.value}function d(){t.value="",a.value=""}return i.onMounted(()=>{t.value=a.value}),(h,f)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(s.value)},[i.createVNode(xe,{name:"search-outline",class:"search-input__search-icon"}),i.createElementVNode("input",{id:"cds-search-input",value:t.value,placeholder:e.placeholder,disabled:e.disabled,class:i.normalizeClass(o.value),onFocus:f[0]||(f[0]=m=>n.value=!0),onBlur:f[1]||(f[1]=m=>n.value=!1),onInput:l},null,42,zJ),t.value?(i.openBlock(),i.createBlock(xe,{key:0,name:"x-outline",width:"18",height:"18",class:"search-input__close-icon",onClick:d})):i.createCommentVNode("",!0)],2))}},[["__scopeId","data-v-fad0c1c1"]]),PJ={components:{CdsIcon:xe,CdsTooltip:rd},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)}}},FJ={class:"segment-control"},RJ=["onClick"],HJ={key:1};function WJ(e,t,n,a,r,s){const o=i.resolveComponent("cds-icon"),l=i.resolveComponent("cds-tooltip");return i.openBlock(),i.createElementBlock("div",FJ,[(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",HJ,i.toDisplayString(d),1))],10,RJ))),128))])}const YJ=te(PJ,[["render",WJ]]),Lf={components:{CdsIcon:xe,CdsClickable:Ii,CdsButton:ti,CdsScrollable:ad},props:{title:{type:String,default:null},modelValue:{type:Boolean,default:!1,required:!0},withOverlay:{type:Boolean,default:!1},size:{type:String,default:"md"},noCloseOnBackdrop:{type:Boolean,default:!1},noCloseOnEsc:{type:Boolean,default:!1},actionButtonVariant:{type:String,default:"green"},noFooter:{type:Boolean,default:!1},noCancelButton:{type:Boolean,default:!1},disableOkButton:{type:Boolean,default:!1},disableCancelButton:{type:Boolean,default:!1},okButtonText:{type:Boolean,default:!1},cancelButtonText:{type:Boolean,default:!1},blockOkButton:{type:Boolean,default:!1},noCloseOkButton:{type:Boolean,default:!1},noCloseCancelButton:{type:Boolean,default:!1}},data(){return{sassColorVariables:yi}},computed:{overlayColor(){const e=this.withOverlay?this.sassColorVariables.n900:"transparent";return`rgba(${this.hexToRgb(e)}, 0.4)`},sideSheetWidth(){let e="328px";switch(this.size){case"xl":e="840px";break;case"lg":e="700px";break;case"md":e="500px";break;default:e="340px";break}return e}},watch:{modelValue(e){if(!e){this.dettachKeyupEvent();return}this.attachKeyupEvent()}},created(){this.attachKeyupEvent()},beforeUnmount(){this.dettachKeyupEvent()},methods:{hexToRgb:ou,shouldCloseOnBackdrop(){this.noCloseOnBackdrop||this.$emit("update:modelValue",!this.modelValue)},shouldCloseOnEsc(){this.noCloseOnEsc||this.$emit("update:modelValue",!this.modelValue)},keyupListener(e){e.keyCode===pw.ESC&&this.shouldCloseOnEsc()},attachKeyupEvent(){window.addEventListener("keyup",this.keyupListener)},dettachKeyupEvent(){window.removeEventListener("keyup",this.keyupListener)},closeHandle(){this.$emit("close",!0),this.$emit("update:modelValue",!1)},cancelHandle(){this.$emit("cancel",!0),this.noCloseCancelButton||(this.$emit("update:modelValue",!1),this.$emit("close",!0))},okHandle(){this.noCloseOkButton||(this.$emit("update:modelValue",!1),this.$emit("close",!0)),this.$emit("ok",!0)}}},I6=()=>{i.useCssVars(e=>({a52e092a:e.overlayColor,"24b4a654":e.sideSheetWidth}))},A6=Lf.setup;Lf.setup=A6?(e,t)=>(I6(),A6(e,t)):I6;const UJ={class:"side-sheet__header"},jJ={key:0,class:"side-sheet__footer"};function qJ(e,t,n,a,r,s){const o=i.resolveComponent("cds-icon"),l=i.resolveComponent("cds-clickable"),d=i.resolveComponent("cds-scrollable"),h=i.resolveComponent("cds-button");return n.modelValue?(i.openBlock(),i.createElementBlock("div",{key:0,class:"side-sheet__overlay",tabindex:"0",onClick:t[4]||(t[4]=(...f)=>s.shouldCloseOnBackdrop&&s.shouldCloseOnBackdrop(...f))},[i.createElementVNode("div",{class:"side-sheet__container",onClick:t[3]||(t[3]=i.withModifiers(()=>{},["stop"]))},[i.createElementVNode("header",null,[i.renderSlot(e.$slots,"header",{},()=>[i.createElementVNode("div",UJ,[i.createElementVNode("h3",null,i.toDisplayString(n.title),1),i.createElementVNode("div",{class:"side-sheet__close-icon",onClick:t[0]||(t[0]=(...f)=>s.closeHandle&&s.closeHandle(...f))},[i.createVNode(l,{clickable:""},{default:i.withCtx(()=>[i.createVNode(o,{height:"20",width:"20",name:"x-outline"})]),_:1})])])],!0)]),i.createVNode(d,{"max-height":"100%"},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3}),n.noFooter?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("footer",jJ,[i.renderSlot(e.$slots,"footer",{},()=>[n.noCancelButton?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(h,{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(h,{class:"footer__ok-button",text:n.okButtonText,variant:n.actionButtonVariant,disabled:n.disableOkButton,block:n.blockOkButton,onClick:t[2]||(t[2]=f=>n.disableOkButton?!1:s.okHandle())},null,8,["text","variant","disabled","block"])],!0)]))])])):i.createCommentVNode("",!0)}const GJ=te(Lf,[["render",qJ],["__scopeId","data-v-f4113d03"]]),KJ={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=te(KJ,[["render",ZJ],["__scopeId","data-v-d39e7029"]]);(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,Kt=(e,t,n)=>(QJ(e,typeof t!="symbol"?t+"":t,n),n);const Pf=(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 N6=Pf(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 z6=Pf(aQ,[["render",rQ]]),pc=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 Da{constructor(t){Kt(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){Kt(this,"dotsPos",[]),Kt(this,"dotsValue",[]),Kt(this,"data"),Kt(this,"enableCross"),Kt(this,"fixed"),Kt(this,"max"),Kt(this,"min"),Kt(this,"interval"),Kt(this,"minRange"),Kt(this,"maxRange"),Kt(this,"order"),Kt(this,"marks"),Kt(this,"included"),Kt(this,"process"),Kt(this,"adsorb"),Kt(this,"dotOptions"),Kt(this,"onError"),Kt(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 Da(+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 Da(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=(w,k)=>{const x=Math.abs(w-k);return d?x<this.minRangeDir:x>this.maxRangeDir};let g=a+f,y=this.dotsPos[g],_=t;for(;this.isPos(y)&&m(y,_);){const{pos:w}=this.getValidPos(y+s,g);r.push({index:g,changePos:w-y}),g=g+f,_=w,y=this.dotsPos[g]}}),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 Da(t).minus(this.min).divide(this.interval).toNumber()}const n=new Da(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 Da(n).multiply(this.interval).plus(this.min).toNumber());return t}}getRangeDir(t){return t?new Da(t).divide(new Da(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 Da(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){Kt(this,"map"),Kt(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 Ff=4,vn={None:0,Drag:2,Focus:4},hQ={emits:["update:modelValue","change","drag-start","drag-end","dragging","error"],components:{VueSliderDot:N6,VueSliderMark:z6},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 pc((this.isHorizontal?this.height:this.width)||Ff)},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?pc(this.width):this.isHorizontal?"auto":pc(Ff),a=this.height?pc(this.height):this.isHorizontal?pc(Ff):"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 Da(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 Rf=Pf(hQ,[["render",pQ]]);Rf.VueSliderMark=z6,Rf.VueSliderDot=N6;const mQ={components:{vueSlider:Rf},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=te(mQ,[["render",vQ]]),wQ={components:{CdsIcon:xe},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
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"},xQ=["onClick"],CQ=["id","onClick"],SQ={key:2,class:"stepper__processing-icon"},MQ={key:3,class:"stepper__icon-text"},BQ={key:0,class:"stepper__edge-container"},EQ={class:"stepper__edge"};function OQ(e,t,n,a,r,s){const o=i.resolveComponent("cds-icon");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,xQ)):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",MQ,i.toDisplayString(d+1),1))],2),i.createElementVNode("div",{class:i.normalizeClass(s.dividerStyle(d))},null,2)],10,CQ),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",BQ,[i.createElementVNode("div",EQ,[i.createElementVNode("div",{class:i.normalizeClass(s.dividerStyle(-1))},null,2)])]))],2)}const DQ=te(wQ,[["render",OQ],["__scopeId","data-v-6046312d"]]);function L6(){const e=i.useSlots();return!!Object.keys(e).length}function P6(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=te({__name:"MobileStepperInput",props:{modelValue:{type:Number},modelModifiers:{}},emits:i.mergeModels({add:null,subtract:null},["update:modelValue"]),setup(e,{emit:t}){i.useCssVars(y=>({"02ea66ee":h.value,"54bcdda5":m.value,"46c93ccc":g.value}));const n=t,a=i.useModel(e,"modelValue"),r=i.useAttrs(),s=i.ref(0),o=i.ref(!1),l=Sh.longClickDirective({delay:400,interval:50}),d=P6("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"),g=i.computed(()=>r.suffix?"0":"8px");return i.watch(s,y=>{y!==a.value&&(a.value=y)}),i.watch(a,y=>{s.value=y}),(y,_)=>(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":_[0]||(_[0]=w=>s.value=w),class:i.normalizeClass(["mobile-stepper-input__field",f.value]),type:"number",disabled:y.$attrs.disabled,onFocus:_[1]||(_[1]=w=>o.value=!0),onBlur:_[2]||(_[2]=w=>o.value=!1)},null,42,$Q),[[i.vModelText,s.value]]),y.$attrs.suffix?(i.openBlock(),i.createElementBlock("span",TQ,[i.renderSlot(y.$slots,"suffix",{},()=>[i.createTextVNode(i.toDisplayString(y.$attrs.suffix),1)],!0)])):i.createCommentVNode("",!0)],2),i.withDirectives(i.createVNode(hu,{icon:"minus-outline",size:"lg",disabled:y.$attrs.disabled,onCdsClick:_[3]||(_[3]=w=>n("subtract"))},null,8,["disabled"]),[[i.unref(l),()=>n("subtract")]]),i.withDirectives(i.createVNode(hu,{icon:"plus-outline",size:"lg",disabled:y.$attrs.disabled,onCdsClick:_[4]||(_[4]=w=>n("add"))},null,8,["disabled"]),[[i.unref(l),()=>n("add")]])]))}},[["__scopeId","data-v-89506cfe"]]),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"},UQ={__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,...dr},["update:modelValue"]),setup(e,{expose:t,emit:n}){i.useCssVars(T=>({"83fd7b6a":k.value,"8442bab0":E.value,"61091f92":C.value}));const a=L6(),r=Sh.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}=cr(l),g=e,y=i.ref(s.value),_=i.ref(!1),w=P6("stepper-input",g.state,g.disabled,_),k=i.computed(()=>g.width==="fluid"||g.fluid?"100%":"fit-content"),x=i.computed(()=>g.state==="invalid"),M=i.computed(()=>g.fluid?"stepper-input__field--fluid":`stepper-input__field--${g.width}`),E=i.computed(()=>g.suffix?"8px 2px 8px 8px":"8px"),C=i.computed(()=>g.suffix?"0":"8px");i.watch(s,T=>{y.value=T}),i.watch(y,T=>{T||(y.value=0),typeof T=="string"&&(y.value=+y.value),T<g.min?(y.value=g.min,l("invalid-number",`'O campo não pode ser menor que ${parseInt(g.min,10)}.'`)):T>g.max?(y.value=g.max,l("invalid-number",`'O campo não pode ser maior que ${parseInt(g.max,10)}.'`)):s.value=parseInt(T,10)}),i.watch(()=>g.step,T=>{(T>g.max||T<g.min)&&(console.warn("A propriedade step está fora dos limites definidos por min e max."),l("step-out-of-bounds"))},{immediate:!0});function $(T){y.value=parseInt(y.value)+T,f()}function I(){_.value=!0,d()}function L(){_.value=!1,h()}return(T,F)=>(i.openBlock(),i.createElementBlock("div",null,[i.unref(a)?i.renderSlot(T.$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(Eh,{key:0})):i.createCommentVNode("",!0)])])),e.mobile?(i.openBlock(),i.createBlock(IQ,i.mergeProps({key:2,modelValue:y.value,"onUpdate:modelValue":F[0]||(F[0]=U=>y.value=U)},g,{onAdd:F[1]||(F[1]=U=>$(e.step)),onSubtract:F[2]||(F[2]=U=>$(-e.step))}),null,16,["modelValue"])):(i.openBlock(),i.createElementBlock("div",{key:3,class:i.normalizeClass(i.unref(w)),onClick:F[6]||(F[6]=(...U)=>i.unref(m)&&i.unref(m)(...U))},[i.withDirectives(i.createElementVNode("input",{ref:"stepper-input","onUpdate:modelValue":F[3]||(F[3]=U=>y.value=U),disabled:e.disabled,class:i.normalizeClass(["stepper-input__field",M.value]),type:"number",onFocus:I,onBlur:L},null,42,PQ),[[i.vModelText,y.value]]),e.suffix?(i.openBlock(),i.createElementBlock("span",FQ,[i.renderSlot(T.$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:I,onBlur:L,onClick:F[4]||(F[4]=U=>$(e.step))},[i.createVNode(xe,{height:"16",width:"16",name:"plus-outline"})],40,HQ)),[[i.unref(r),()=>$(e.step)]]),i.withDirectives((i.openBlock(),i.createElementBlock("button",{disabled:e.disabled,class:"stepper-input__icon--minus",tabindex:"-1",onFocus:I,onBlur:L,onClick:F[5]||(F[5]=U=>$(-e.step))},[i.createVNode(xe,{height:"16",width:"16",name:"minus-outline"})],40,WQ)),[[i.unref(r),()=>$(-e.step)]])])],2)),x.value&&!e.disabled?(i.openBlock(),i.createElementBlock("div",YQ,i.toDisplayString(e.errorMessage),1)):i.createCommentVNode("",!0)]))}},jQ=te(UQ,[["__scopeId","data-v-2c85b39e"]]),qQ={class:"switch__label"},GQ=["disabled"],KQ={key:0,class:"switch__supporting-text-container"},ZQ={key:1,class:"switch__supporting-text"},XQ=te({__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("span",qQ,[i.createTextVNode(i.toDisplayString(e.label)+" ",1),e.tooltip?i.withDirectives((i.openBlock(),i.createBlock(xe,{key:0,name:e.tooltipIcon,height:"18",width:"18",class:"label__icon"},null,8,["name"])),[[m,e.tooltip]]):i.createCommentVNode("",!0)]),i.createElementVNode("label",{class:i.normalizeClass(["switch",l.value])},[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":f[0]||(f[0]=g=>r.value=g),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]=g=>s.value=!1),onFocusin:f[2]||(f[2]=g=>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,g=>(i.openBlock(),i.createElementBlock("li",{key:g,class:"switch__supporting-text-list"},i.toDisplayString(g),1))),128))])):(i.openBlock(),i.createElementBlock("div",ZQ,i.toDisplayString(e.supportingText),1))],64)):i.createCommentVNode("",!0)])}}},[["__scopeId","data-v-b58913b0"]]),Hf={components:{CdsCheckbox:Qs,CdsIcon:xe,CdsClickable:Ii},props:{modelValue:{type:Array,default:()=>[]},items:{type:Array,required:!0,default:()=>[]},fields:{type:Array,default:()=>[]},hover:{type:Boolean,default:!1},allowSelection:{type:Boolean,default:!1},selectionVariant:{type:String,default:"green"},sortable:{type:Boolean,default:!1},sortBy:{type:String,default:null},fixedHeader:{type:Boolean,default:!1},sortDesc:{type:Boolean,default:!1},noWrap:{type:Boolean,default:!1}},data(){return{selectAll:!1,select:[],localSortDesc:this.sortDesc,localSortBy:this.sortBy,localItems:this.items}},computed:{computedFields(){return this.fields.length>0?this.fields.map(e=>typeof e=="object"?e:{key:e,label:ln.startCase(e)}):this.items.length>0?Object.keys(this.items[0]).map(e=>({key:e,label:ln.startCase(e)})):[]},resolveNoWarp(){return this.noWrap?"nowrap":"pre-line"},resolveFixedHeader(){return this.fixedHeader?"sticky":""},resolveHeaderShadow(){return this.fixedHeader?"0px 1px 5px rgba(0, 0, 0, 0.07)":""}},watch:{modelValue:{handler(e,t){if(e!==t){if(!e.length){this.resetSelect();return}e.forEach(n=>{const a=ln.findIndex(this.localItems,n);a>-1&&(this.select[a]=!0)})}},immediate:!0},items(e,t){ln.isEqual(e,t)||(this.localItems=e,this.resetSelect())},sortBy:{handler(e,t){e!==t&&this.handleSortBy(e)},immediate:!0},select:{handler(e){const t=this.localItems.filter((n,a)=>e[a]);this.$emit("update:modelValue",t)},deep:!0}},methods:{hasSlot:Zr,resetSelect(){this.selectAll=!1;for(let e=0;e<this.localItems.length;e++)this.select[e]=!1},handleSelectAll(){for(let e=0;e<this.localItems.length;e++)this.select[e]=this.selectAll},handleSelectRow(e){if(this.selectAll&&!e){this.selectAll=!1;return}this.selectAll=this.select.reduce((t,n)=>t&&n)},handleSortBy(e){if(!this.sortable)return;if(this.resetSelect(),this.localSortBy===e&&this.localSortDesc){this.localSortBy=null,this.localItems=this.items;return}const t=this.localSortDesc?"asc":"desc";this.localSortDesc=this.localSortBy===e?!this.localSortDesc:!1,this.localSortBy=e,this.localItems=ln.orderBy(this.items,[this.localSortBy],[t])},resolveHeaderItemClass(e){return e!==0&&e!==this.fields.length-1?"table__header-item":e===0?"table__header-item--first":"table__header-item--last"},resolveContentItemClass(e,t){return e!==this.items.length-1?"table__item":t!==0&&t!==this.fields.length-1?"table__item--common":t===0?"table__item--first":"table__item--last"},resolveItemClass(){return this.hover?"table__content--hoverable":""},resolveValue(e,t){return t.formatter&&typeof t.formatter=="function"?t.formatter(e[t.key]):e[t.key]}}},F6=()=>{i.useCssVars(e=>({c40a7262:e.resolveFixedHeader,"4da1e81f":e.resolveHeaderShadow,"5295810a":e.resolveNoWarp}))},R6=Hf.setup;Hf.setup=R6?(e,t)=>(F6(),R6(e,t)):F6;const JQ={class:"table__container"},QQ={class:"table__header"},eee={class:"table__header-item-content"},tee=["width"];function nee(e,t,n,a,r,s){const o=i.resolveComponent("cds-checkbox"),l=i.resolveComponent("cds-icon"),d=i.resolveComponent("cds-clickable");return i.openBlock(),i.createElementBlock("table",JQ,[i.createElementVNode("tr",QQ,[n.allowSelection?(i.openBlock(),i.createElementBlock("th",{key:0,class:i.normalizeClass(["table__select-item",s.resolveHeaderItemClass(0)])},[i.createVNode(o,{id:"select-all-rows",modelValue:r.selectAll,"onUpdate:modelValue":[t[0]||(t[0]=h=>r.selectAll=h),s.handleSelectAll],class:"table__select-checkbox",label:"",variant:n.selectionVariant},null,8,["modelValue","variant","onUpdate:modelValue"])],2)):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.computedFields,(h,f)=>(i.openBlock(),i.createElementBlock("th",{key:f,class:i.normalizeClass(s.resolveHeaderItemClass(f))},[i.createElementVNode("div",eee,[s.hasSlot(e.$slots,"header-item")?i.renderSlot(e.$slots,"header-item",{key:0,data:h},void 0,!0):(i.openBlock(),i.createBlock(d,{key:1,id:`sort-icon-${h.key}`,clickable:n.sortable,onClick:i.withModifiers(m=>s.handleSortBy(h.key),["stop"])},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(h.label)+" ",1),n.sortable&&h.label&&h.key!==r.localSortBy?(i.openBlock(),i.createBlock(l,{key:0,class:"table__sort-icon",height:"13",width:"13",name:"swap-vertical-arrows-outline"})):n.sortable&&h.label&&r.localSortDesc?(i.openBlock(),i.createBlock(l,{key:1,class:"table__sort-icon",height:"13",width:"13",name:"sort-descending-duotone"})):n.sortable&&h.label?(i.openBlock(),i.createBlock(l,{key:2,class:"table__sort-icon",height:"13",width:"13",name:"sort-ascending-duotone"})):i.createCommentVNode("",!0)]),_:2},1032,["id","clickable","onClick"]))])],2))),128))]),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.localItems,(h,f)=>(i.openBlock(),i.createElementBlock("tr",{key:f,class:i.normalizeClass(s.resolveItemClass())},[n.allowSelection?(i.openBlock(),i.createElementBlock("td",{key:0,class:i.normalizeClass(["table__select-item",s.resolveContentItemClass(f,0)])},[i.createVNode(o,{id:`select-row-${f}`,modelValue:r.select[f],"onUpdate:modelValue":[m=>r.select[f]=m,s.handleSelectRow],class:"table__select-checkbox",label:"",variant:n.selectionVariant},null,8,["id","modelValue","onUpdate:modelValue","variant"])],2)):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.computedFields,(m,g)=>(i.openBlock(),i.createElementBlock("td",{key:g,class:i.normalizeClass(s.resolveContentItemClass(f,g)),width:m.width?m.width:"auto"},[i.renderSlot(e.$slots,"table-item",{data:h,field:m.key,rowIndex:f,colIndex:g},()=>[i.createTextVNode(i.toDisplayString(s.resolveValue(h,m)),1)],!0)],10,tee))),128))],2))),128))])}const iee=te(Hf,[["render",nee],["__scopeId","data-v-e1527f6b"]]),aee={components:{CdsIcon:xe},props:{tabs:{type:Array,default:()=>[],required:!0,validator:e=>!e.filter(n=>on(n.title)||on(n.name)).length},activeTab:{type:Object,default:()=>({}),required:!0},variant:{type:String,default:"green",validator:e=>Ri.includes(e)},showAddAction:{type:Boolean,default:!1}},data(){return{internalActiveTab:this.activeTab,colorOptions:Ri}},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:eo,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 ao(this.internalActiveTab,e)}}},ree={id:"tabs"},see={class:"inner-tabs__header"},oee=["id"],lee=["onClick","onContextmenu"],cee={class:"inner-tabs__text"},dee={key:0,role:"presentation",class:"nav-item cds-tab__action"},uee={class:"inner-tabs__content"};function hee(e,t,n,a,r,s){const o=i.resolveComponent("cds-icon");return i.openBlock(),i.createElementBlock("div",ree,[i.createElementVNode("ul",see,[(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",cee,i.toDisplayString(l.title),1)],46,lee)],8,oee))),128)),n.showAddAction?(i.openBlock(),i.createElementBlock("li",dee,[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",uee,[(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 fee=te(aee,[["render",hee]]),pee=te({__name:"Text",props:{as:{type:String,default:"span"},color:{type:String,default:"n-800"},textAlign:{type:String,default:"start"},noMargin:{type:Boolean,default:!1}},setup(e,{expose:t}){i.useCssVars(s=>({"8f37fcb6":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}])},{default:i.withCtx(()=>[i.renderSlot(s.$slots,"default",{},void 0,!0)]),_:3},8,["class"]))}},[["__scopeId","data-v-f5a05004"]]),mee={__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,default:"https://cuida.framer.wiki/"},fluid:{type:Boolean,default:!1,required:!1},lazy:{type:Boolean,default:!1},tooltip:{type:String,default:null},tooltipIcon:{type:String,default:"info-outline"},floatingLabel:{type:Boolean,default:!1}},{modelValue:{type:String},modelModifiers:{}}),emits:i.mergeModels({...dr},["update:modelValue"]),setup(e,{expose:t,emit:n}){var y,_;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:g}=cr(o);return i.watch(r,(w,k)=>{w!==k&&(l.value=w)},{immediate:!0}),i.watch(l,w=>{r.value=w}),t({componentRef:(y=a.value)==null?void 0:y.componentRef,isFocused:(_=a.value)==null?void 0:_.isFocused,focus:()=>{var w;return(w=a.value)==null?void 0:w.focus()},blur:()=>{var w;return(w=a.value)==null?void 0:w.blur()},clear:()=>{var w;return(w=a.value)==null?void 0:w.clear()},select:()=>{var w;return(w=a.value)==null?void 0:w.select()}}),(w,k)=>(i.openBlock(),i.createElementBlock("div",null,[i.createVNode(aa,i.mergeProps({ref:"baseInput",modelValue:l.value,"onUpdate:modelValue":k[0]||(k[0]=x=>l.value=x)},{...w.$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(g)}),null,16,["modelValue","support-link-url","support-link","floating-label","onClick","onChange","onFocus","onBlur","onKeydown"])]))}},gee={key:0,class:"cds-tile__extra-container"},yee={class:"cds-tile__extra"},bee={key:2},vee=te({__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:n5},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 y=n.size==="sm"?30:20;return n.title.length>y?n.title.substring(0,y)+"...":n.title});function g(){n.disabled||n.loading||a("cdsClick")}return(y,_)=>(i.openBlock(),i.createBlock(Jl,{variant:s.value,clickable:!e.disabled,padding:"0",light:"",onBoxClick:g},{default:i.withCtx(()=>[e.loading?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",gee,[i.createElementVNode("div",yee,[i.renderSlot(y.$slots,"extra",{},void 0,!0)])])),e.loading?(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(o.value)},[i.createVNode(Pu,{fluid:""})],2)):(i.openBlock(),i.createElementBlock("div",bee,[i.createElementVNode("div",{class:i.normalizeClass(l.value)},[h.value==="icon"?(i.openBlock(),i.createBlock(xe,{key:0,class:"cds-tile__icon",name:e.icon},null,8,["name"])):(i.openBlock(),i.createBlock(Ql,{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-abc1fa1b"]]),Wf=e=>/[0-2][0-9]:[0-5][0-9]/.test(e),_ee=(e,t)=>Wf(e)&&Wf(t)?de.fromFormat(e,"HH:mm").diff(de.fromFormat(t,"HH:mm"))>0:!1,wee={directives:{facade:io},props:{modelValue:{type:[String,Array],default:"",validator:e=>e===""||e===[]?!0:typeof e=="string"?Wf(e):e.length===2&&_ee(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.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=Ht.fromDateTimes(de.fromFormat(`${this.startHour}:${this.startMinute}`,"HH:mm"),de.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(":")}}},kee={class:"input__label"},xee=["for"],Cee={key:0,class:"label__required-indicator"},See=["id"],Mee=["id","disabled"],Bee=["id","disabled"],Eee={key:0,class:"input__separator"},Oee={key:1},Dee=["id","disabled"],Vee=["id","disabled"],$ee={key:0,class:"input__message"};function Tee(e,t,n,a,r,s){const o=i.resolveDirective("facade");return i.openBlock(),i.createElementBlock("div",null,[i.createElementVNode("label",kee,[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",Cee," * ")):i.createCommentVNode("",!0)],8,xee)]),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,Mee),[[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,Bee),[[i.vModelText,r.startMinute],[o,"##"]])]),n.mode==="range"?(i.openBlock(),i.createElementBlock("div",Eee," Até ")):i.createCommentVNode("",!0),n.mode==="range"?(i.openBlock(),i.createElementBlock("div",Oee,[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,Dee),[[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,Vee),[[i.vModelText,r.endMinute],[o,"##"]])])):i.createCommentVNode("",!0)],8,See),n.state==="invalid"&&!n.disabled?(i.openBlock(),i.createElementBlock("div",$ee,i.toDisplayString(n.errorMessage),1)):i.createCommentVNode("",!0)])}const Iee=te(wee,[["render",Tee],["__scopeId","data-v-8cf870de"]]),Yf={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)})}},H6=()=>{i.useCssVars(e=>({"7ea49ddc":e.directionResolver,"1372a9d4":e.oppositeSlotWidthResolver}))},W6=Yf.setup;Yf.setup=W6?(e,t)=>(H6(),W6(e,t)):H6;const Aee={class:"cds-timeline"};function Nee(e,t,n,a,r,s){return i.openBlock(),i.createElementBlock("div",Aee,[i.renderSlot(e.$slots,"default")])}const zee=te(Yf,[["render",Nee]]),Lee={components:{CdsSpinner:xs},props:{variant:{type:String,default:"green"},loading:{type:Boolean,default:!1},hollowed:{type:Boolean,default:!1}},methods:{hasSlot:Zr}},Pee={class:"cds-timeline-item"},Fee={class:"cds-timeline-item__opposite"},Ree={class:"cds-timeline-item__timeline-container"},Hee={class:"cds-timeline-item__content-container"},Wee={key:0,class:"cds-timeline-item__title"},Yee={class:"cds-timeline-item__text"};function Uee(e,t,n,a,r,s){const o=i.resolveComponent("cds-spinner");return i.openBlock(),i.createElementBlock("div",Pee,[i.createElementVNode("div",Fee,[i.renderSlot(e.$slots,"opposite",{},void 0,!0)]),i.createElementVNode("div",Ree,[n.loading?(i.openBlock(),i.createBlock(o,{key:1,size:"sm",class:"spinner",variant:n.variant},null,8,["variant"])):(i.openBlock(),i.createElementBlock("span",{key:0,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",Hee,[s.hasSlot(e.$slots,"title")?(i.openBlock(),i.createElementBlock("div",Wee,[i.renderSlot(e.$slots,"title",{},void 0,!0)])):i.createCommentVNode("",!0),i.createElementVNode("span",Yee,[i.renderSlot(e.$slots,"content",{},void 0,!0)])])])}const jee=te(Lee,[["render",Uee],["__scopeId","data-v-e1fab2ab"]]),qee={class:"top-app-bar"},Gee={class:"top-app-bar__menu-container"},Kee=["src","alt"],Zee={key:3,class:"top-app-bar__title"},Xee={class:"top-app-bar__actions"},Jee=te({__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}=ru(),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",qee,[i.createElementVNode("div",Gee,[e.showMenuIcon?(i.openBlock(),i.createBlock(xe,{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(xe,{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,Kee)):(i.openBlock(),i.createElementBlock("h2",Zee,i.toDisplayString(e.title),1))]),i.createElementVNode("div",Xee,[i.renderSlot(d.$slots,"actions",{},void 0,!0)])])}}},[["__scopeId","data-v-7e901427"]]),Uf={directives:{cdstip:ul},components:{CdsIcon:xe,CdsClickable:Ii},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:Ga,handleShowPassword(){this.showPassword=!this.showPassword}}},Y6=()=>{i.useCssVars(e=>({"5fad3268":e.resolveInputWidth}))},U6=Uf.setup;Uf.setup=U6?(e,t)=>(Y6(),U6(e,t)):Y6;const Qee={key:0},ete={class:"password-input__label__content",for:"cds-password-input"},tte={key:0,class:"password-input__label__required-indicator"},nte=["id","type","placeholder","disabled"],ite={key:0,class:"password-input__password-toogle"},ate={key:0,class:"password-input__error-message"};function rte(e,t,n,a,r,s){const o=i.resolveComponent("cds-icon"),l=i.resolveComponent("cds-clickable"),d=i.resolveDirective("cdstip");return i.openBlock(),i.createElementBlock("div",null,[i.createElementVNode("span",null,[s.hasSlots?(i.openBlock(),i.createElementBlock("span",Qee,[i.renderSlot(e.$slots,"label",{},void 0,!0)])):(i.openBlock(),i.createElementBlock("label",{key:1,class:i.normalizeClass(s.labelDynamicClass)},[i.createElementVNode("div",ete,[i.createElementVNode("span",null,i.toDisplayString(n.label),1),n.required?(i.openBlock(),i.createElementBlock("span",tte," * ")):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"])),[[d,n.tooltip]]):i.createCommentVNode("",!0)])],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]=h=>r.internalValue=h),type:s.customInputType,placeholder:n.placeholder,disabled:n.disabled,class:i.normalizeClass(s.inputClass),onFocus:t[1]||(t[1]=h=>r.isBeingFocused=!0),onBlur:t[2]||(t[2]=h=>r.isBeingFocused=!1)},null,42,nte),[[i.vModelDynamic,r.internalValue]]),s.disableTextPasswordInput?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",ite,[i.createVNode(l,{id:"cds-clickable",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",ate,i.toDisplayString(n.errorMessage),1)):i.createCommentVNode("",!0)])}const ste=te(Uf,[["render",rte],["__scopeId","data-v-e719017b"]]),ote={class:"camera-container"},lte={key:1,class:"camera-container__failed"},cte=["src"],dte=te({__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),g=i.computed(()=>r.value||m.value);i.watch(()=>a.modelValue,M=>{M&&setTimeout(()=>y(),100),f.value=M},{immediate:!0}),i.watch(f,M=>n("update:model-value",M));async function y(){let M=null;try{M=await navigator.mediaDevices.getUserMedia({video:!0}),s.value.srcObject=M,d.value=!0}catch(E){m.value=!0,console.error("Erro ao acessar a câmera: "+E.message)}r.value=!1}function _(){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 w(){if(!s.value||!o.value)return;const M=o.value,E=M.getContext("2d");M.width=s.value.videoWidth,M.height=s.value.videoHeight,E.drawImage(s.value,0,0,M.width,M.height),M.toBlob(C=>{const $=new File([C],"captured-photo.png",{type:"image/png"});l.value=URL.createObjectURL(C),h.value=$})}function k(){l.value=null,h.value=null}function x(){h.value&&(n("on-take-photo",h.value),f.value=!1,_())}return(M,E)=>(i.openBlock(),i.createBlock(f6,{modelValue:f.value,"onUpdate:modelValue":E[0]||(E[0]=C=>f.value=C),size:"lg",title:e.title,"no-footer":"",onClose:_,onOk:E[1]||(E[1]=C=>f.value=!1)},{default:i.withCtx(()=>[i.createVNode(Mt,{justify:"center",direction:"column",gap:"3"},{default:i.withCtx(()=>[i.createElementVNode("div",ote,[r.value?(i.openBlock(),i.createBlock(Mt,{key:0,class:"camera-container__loading",align:"center",justify:"center"},{default:i.withCtx(()=>[i.createVNode(xs,{variant:e.variant,size:"md"},null,8,["variant"])]),_:1})):i.createCommentVNode("",!0),m.value?(i.openBlock(),i.createElementBlock("div",lte,[i.createVNode(Mt,{align:"center",gap:"2"},{default:i.withCtx(()=>[i.createVNode(xe,{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,cte),[[i.vShow,!g.value&&l.value]]),i.withDirectives(i.createElementVNode("video",{ref_key:"videoRef",ref:s,class:"camera-container__video",playsinline:"",autoplay:""},null,512),[[i.vShow,!g.value&&!l.value]])]),i.createVNode(Mt,{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(Mt,{gap:"2",class:"camera-container__buttons"},{default:i.withCtx(()=>[l.value?(i.openBlock(),i.createBlock(ti,{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(ti,{key:0,class:"camera-container__button",size:"lg",variant:e.variant,disabled:!d.value,secondary:"",onClick:i.withModifiers(w,["prevent"])},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.takePhotoButtonText),1)]),_:1},8,["variant","disabled"])),i.createVNode(ti,{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-ec0720ec"]]),ute={components:{CdsBox:Jl,CdsButton:ti},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})}}},hte={class:"cds-wizard"},fte={class:"cds-wizard__container"},pte=["clickable","onBoxClick"],mte={key:0},gte={class:"cds-wizard__title"},yte={class:"cds-wizard__subtitle"},bte={class:"cds-wizard__content"},vte={key:1,class:"cds-wizard__empty-state"},_te=["src","alt"],wte={class:"cds-wizard__empty-state-title"},kte={class:"cds-wizard__empty-state-subtitle"},xte={class:"cds-wizard__buttons"};function Cte(e,t,n,a,r,s){const o=i.resolveComponent("cds-button");return i.openBlock(),i.createElementBlock("div",hte,[i.createElementVNode("div",fte,[(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",mte,[i.renderSlot(e.$slots,`step-${d+1}-header`,{},()=>[i.createElementVNode("h3",gte,i.toDisplayString(l.title),1),i.createElementVNode("h4",yte,i.toDisplayString(l.subtitle),1)],!0),i.createElementVNode("div",bte,[i.renderSlot(e.$slots,`step-${d+1}`,{},void 0,!0)])])):(i.openBlock(),i.createElementBlock("div",vte,[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,_te)):i.createCommentVNode("",!0),i.createElementVNode("div",wte,i.toDisplayString(l.title),1),i.createElementVNode("div",kte,i.toDisplayString(s.emptyStateText(l.title)),1)]))],42,pte))),128))]),i.createElementVNode("div",xte,[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 Ste=te(ute,[["render",Cte],["__scopeId","data-v-79a43ffe"]]),Mte=(e,t)=>{let n="",a="",r=t.modifiers,s=t.arg;n=document.querySelector(`[id='${t.value}']`),a=document.querySelector(`[id='${e.id}']`),ol(n,a,{placement:s,modifiers:[{name:"offset",options:{offset:[0,-4]}},{name:"flip",enabled:!!r.flip}]})},rs="__v-click-outside",j6=typeof window<"u",Bte=typeof navigator<"u",Ete=j6&&("ontouchstart"in window||Bte&&navigator.msMaxTouchPoints>0)?["touchstart"]:["click"],Ote=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||Ete,isActive:e.isActive!==!1,detectIframe:e.detectIframe!==!1,capture:!!e.capture}},q6=({event:e,handler:t,middleware:n})=>{n(e)&&t(e)},Dte=({el:e,event:t,handler:n,middleware:a})=>{setTimeout(()=>{const{activeElement:r}=document;r&&r.tagName==="IFRAME"&&!e.contains(r)&&q6({event:t,handler:n,middleware:a})},0)},Vte=({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))&&q6({event:t,handler:n,middleware:a})},G6=(e,{value:t})=>{const{events:n,handler:a,middleware:r,isActive:s,detectIframe:o,capture:l}=Ote(t);if(s){if(e[rs]=n.map(d=>({event:d,srcTarget:document.documentElement,handler:h=>Vte({el:e,event:h,handler:a,middleware:r}),capture:l})),o){const d={event:"blur",srcTarget:window,handler:h=>Dte({el:e,event:h,handler:a,middleware:r}),capture:l};e[rs]=[...e[rs],d]}e[rs].forEach(({event:d,srcTarget:h,handler:f})=>setTimeout(()=>{e[rs]&&h.addEventListener(d,f,l)},0))}},K6=e=>{(e[rs]||[]).forEach(({event:n,srcTarget:a,handler:r,capture:s})=>a.removeEventListener(n,r,s)),delete e[rs]},$te=j6?{beforeMount:G6,updated:(e,{value:t,oldValue:n})=>{JSON.stringify(t)!==JSON.stringify(n)&&(K6(e),G6(e,{value:t}))},unmounted:K6}:{};return{install:(e,t)=>{e.directive("cdstip",ul),e.directive("cds-floatify",Mte),e.directive("cds-click-outside",$te),e.component("CdsActionBar",F_),e.component("CdsActionsList",q_),e.component("CdsAlert",ew),e.component("CdsAlertCard",rw),e.component("CdsAppBar",Tw),e.component("CdsAvatar",fl),e.component("CdsAvatarGroup",Ww),e.component("CdsBadge",Q1),e.component("CdsBarChart",cM),e.component("CdsBox",Jl),e.component("CdsBottomSheet",IE),e.component("CdsBreadcrumb",PE),e.component("CdsButton",ti),e.component("CdsCard",nO),e.component("CdsCalloutCard",dO),e.component("CdsCarousel",fO),e.component("CdsCarouselController",vO),e.component("CdsCheckbox",Qs),e.component("CdsCheckboxGroup",TO),e.component("CdsChevron",$s),e.component("CdsChip",zO),e.component("CdsClickable",Ii),e.component("CdsCollapsibleContainer",WO),e.component("CdsColorPicker",tD),e.component("CdsDashboardCard",uD),e.component("CdsDateInput",hV),e.component("CdsDialogModal",MV),e.component("CdsDivider",Vs),e.component("CdsDropdown",TV),e.component("CdsDropdownButton",FV),e.component("CdsDonutChart",YV),e.component("CdsEmptyState",JV),e.component("CdsFileInput",x5),e.component("CdsFileViewer",b$),e.component("CdsFilterSelect",E$),e.component("CdsFlatButton",_5),e.component("CdsFlexbox",Mt),e.component("CdsFloatingAssistant",W$),e.component("CdsFloatingActionButton",G$),e.component("CdsGaugeChart",iT),e.component("CdsGrid",lu),e.component("CdsGridItem",rT),e.component("CdsHighlight",V5),e.component("CdsIcon",xe),e.component("CdsIconButton",hu),e.component("CdsImage",Ql),e.component("CdsInnerTabs",yT),e.component("CdsInteractionBlockingOverlay",CT),e.component("CdsLineChart",pE),e.component("CdsLink",tc),e.component("CdsList",XG),e.component("CdsInlineDateInput",UG),e.component("CdsLoadingBar",eK),e.component("CdsLoadingIndicator",tK),e.component("CdsMobileNavbar",rK),e.component("CdsMobileNavigation",mK),e.component("CdsModal",f6),e.component("CdsMonthAndYearPicker",BK),e.component("CdsMultiselect",BZ),e.component("CdsComboBox",FZ),e.component("CdsDynamicInputList",BV),e.component("CdsMultiFileInput",YK),e.component("CdsNavBar",YZ),e.component("CdsNumberInput",jZ),e.component("CdsOverlayLoader",ZZ),e.component("CdsPageContainer",x6),e.component("CdsPageLayout",DX),e.component("CdsPageHeader",LX),e.component("CdsPagination",WX),e.component("CdsPanelCard",KX),e.component("CdsPinInput",eJ),e.component("CdsPopover",hl),e.component("CdsProgressBar",aJ),e.component("CdsProgressCircular",cJ),e.component("CdsPulsar",C5),e.component("CdsQuickActionBar",yJ),e.component("CdsRadio",xJ),e.component("CdsRadioButtonGroup",NJ),e.component("CdsRadialBarChart",OJ),e.component("CdsRichTooltip",zh),e.component("CdsSpacer",iu),e.component("CdsScrollable",ad),e.component("CdsSearchInput",LJ),e.component("CdsSecondaryNavigation",B6),e.component("CdsSegmentedControl",YJ),e.component("CdsSelect",p6),e.component("CdsSideBar",M6),e.component("CdsSideSheet",GJ),e.component("CdsSkeleton",Pu),e.component("CdsSkeletonText",XJ),e.component("CdsSlider",_Q),e.component("CdsSpinner",xs),e.component("CdsStackedBarChart",ME),e.component("CdsStepper",DQ),e.component("CdsStepperInput",jQ),e.component("CdsSwitch",XQ),e.component("CdsTable",iee),e.component("CdsTabs",fee),e.component("CdsText",pee),e.component("CdsTextArea",mee),e.component("CdsTextInput",v5),e.component("CdsTile",vee),e.component("CdsTimeInput",Iee),e.component("CdsTooltip",rd),e.component("CdsTopAppBar",Jee),e.component("CdsTimeline",zee),e.component("CdsTimelineItem",jee),e.component("CdsTruncate",J1),e.component("CdsPasswordInput",ste),e.component("CdsPieChart",bE),e.component("CdsPolarAreaChart",kE),e.component("CdsWebcamModal",dte),e.component("CdsWizard",Ste)},utils:{contrastChecker:i5,hasSlot:Zr,removeAccents:nc,hexToRgb:ou,isDeviceType:Xr,useIsMobile:ru,useHasSlot:ec,useHasSlots:L6,unmaskBRL:k6,uuidv4:to}}});