@solfacil/girassol 0.2.9 → 0.2.12
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.
- package/dist/girassol.es.js +310 -294
- package/dist/girassol.umd.js +2 -2
- package/dist/style.css +1 -1
- package/dist/theme/solfacil/miscs.d.ts +7 -0
- package/dist/theme/solfacil/spacing.d.ts +3 -0
- package/dist/types/components/forms/radio/index.d.ts +2 -2
- package/dist/types/components/forms/radio/{Radio.vue.d.ts → radio/Radio.vue.d.ts} +8 -8
- package/dist/types/components/forms/radio/{radio.spec.d.ts → radio/radio.spec.d.ts} +0 -0
- package/dist/types/components/forms/radio/{RadioGroup.vue.d.ts → radio-group/RadioGroup.vue.d.ts} +14 -14
- package/dist/types/components/forms/radio/{radio-group.spec.d.ts → radio-group/radio-group.spec.d.ts} +0 -0
- package/dist/types/components/forms/radio/{radio-type.d.ts → types.d.ts} +0 -0
- package/dist/types/components/menus/menu-item/menu-item-link/MenuItemLink.vue.d.ts +4 -0
- package/dist/types/components/menus/menu-item/menu-item-link/types.d.ts +1 -0
- package/dist/types/index.d.ts +45 -33
- package/package.json +1 -1
- package/theme/solfacil/spacing.ts +2 -1
package/dist/girassol.umd.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
(function(k,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(k=typeof globalThis<"u"?globalThis:k||self,e(k.girassol={},k.Vue))})(this,function(k,e){"use strict";const we=[e.createElementVNode("path",{class:"path",d:"M16.0008 1.5C17.905 1.5 19.7905 1.87506 21.5497 2.60375C23.3089 3.33244 24.9074 4.4005 26.2538 5.74695C27.6003 7.0934 28.6684 8.69187 29.397 10.4511C30.1257 12.2103 30.5008 14.0958 30.5008 16C30.5008 17.9042 30.1257 19.7897 29.397 21.5489C28.6684 23.3081 27.6003 24.9066 26.2538 26.2531C24.9074 27.5995 23.3089 28.6676 21.5497 29.3963C19.7905 30.1249 17.905 30.5 16.0008 30.5C14.0966 30.5 12.2111 30.1249 10.4519 29.3963C8.69266 28.6676 7.09419 27.5995 5.74774 26.253C4.4013 24.9066 3.33323 23.3081 2.60454 21.5489C1.87585 19.7897 1.50079 17.9042 1.50079 16C1.5008 14.0958 1.87585 12.2103 2.60454 10.4511C3.33324 8.69187 4.4013 7.0934 5.74775 5.74695C7.0942 4.4005 8.69267 3.33244 10.4519 2.60375C12.2111 1.87505 14.0966 1.5 16.0008 1.5L16.0008 1.5Z"},null,-1)],Se=e.defineComponent({__name:"CircleLoader",props:{size:{default:"large"},dark:{type:Boolean}},setup(t){return(l,n)=>(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["sol-inner-loader",`-${t.size}`]),viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},we,2))}}),
|
|
1
|
+
(function(k,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(k=typeof globalThis<"u"?globalThis:k||self,e(k.girassol={},k.Vue))})(this,function(k,e){"use strict";const we=[e.createElementVNode("path",{class:"path",d:"M16.0008 1.5C17.905 1.5 19.7905 1.87506 21.5497 2.60375C23.3089 3.33244 24.9074 4.4005 26.2538 5.74695C27.6003 7.0934 28.6684 8.69187 29.397 10.4511C30.1257 12.2103 30.5008 14.0958 30.5008 16C30.5008 17.9042 30.1257 19.7897 29.397 21.5489C28.6684 23.3081 27.6003 24.9066 26.2538 26.2531C24.9074 27.5995 23.3089 28.6676 21.5497 29.3963C19.7905 30.1249 17.905 30.5 16.0008 30.5C14.0966 30.5 12.2111 30.1249 10.4519 29.3963C8.69266 28.6676 7.09419 27.5995 5.74774 26.253C4.4013 24.9066 3.33323 23.3081 2.60454 21.5489C1.87585 19.7897 1.50079 17.9042 1.50079 16C1.5008 14.0958 1.87585 12.2103 2.60454 10.4511C3.33324 8.69187 4.4013 7.0934 5.74775 5.74695C7.0942 4.4005 8.69267 3.33244 10.4519 2.60375C12.2111 1.87505 14.0966 1.5 16.0008 1.5L16.0008 1.5Z"},null,-1)],Se=e.defineComponent({__name:"CircleLoader",props:{size:{default:"large"},dark:{type:Boolean}},setup(t){return(l,n)=>(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["sol-inner-loader",`-${t.size}`]),viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},we,2))}}),Yn="",Ce=["data-testid","disabled"],Ee={class:"icon -left"},Ve={class:"icon -right"},pe={key:0,class:"loading"},I=e.defineComponent({__name:"Button",props:{id:null,loading:{type:Boolean},onColor:{type:Boolean,default:!1},disabled:{type:Boolean},size:{default:"large"},variant:{default:"primary"}},setup(t){function l(i,d){return i?d:""}const n=e.useSlots(),a=e.computed(()=>!!(n!=null&&n.default)&&(!!(n!=null&&n["icon-right"])||!!(n!=null&&n["icon-left"]))),o=e.computed(()=>!(n!=null&&n.default)&&(!!(n!=null&&n["icon-right"])||!!(n!=null&&n["icon-left"])));return(i,d)=>(e.openBlock(),e.createElementBlock("button",{"data-testid":`button-${t.id}`,class:e.normalizeClass(["sol-button-core",`-${t.variant} -${t.size}
|
|
2
2
|
${l(t.loading,"-loading-helper")}
|
|
3
3
|
${l(t.onColor,"-on-color")}
|
|
4
4
|
${l(e.unref(a),"-has-icon")}
|
|
5
5
|
${l(e.unref(o),"-only-icon")}
|
|
6
|
-
`]),type:"button",disabled:t.disabled||t.loading},[e.createElementVNode("div",Ee,[e.renderSlot(i.$slots,"icon-left")]),e.renderSlot(i.$slots,"default"),e.createElementVNode("div",pe,[e.renderSlot(i.$slots,"icon-right")]),t.loading?(e.openBlock(),e.createElementBlock("div",Ve,[e.createVNode(Se,{"data-testid":`button-loader-${t.id}`,size:t.size==="small"?"small":"medium",dark:t.onColor},null,8,["data-testid","size","dark"])])):e.createCommentVNode("",!0)],10,Ce))}}),Yn="",xe={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Ne=[e.createElementVNode("path",{fill:"currentColor",d:"M7 21q-.825 0-1.412-.587Q5 19.825 5 19V6H4V4h5V3h6v1h5v2h-1v13q0 .825-.587 1.413Q17.825 21 17 21ZM17 6H7v13h10ZM9 17h2V8H9Zm4 0h2V8h-2ZM7 6v13Z"},null,-1)];function ze(t,l){return e.openBlock(),e.createElementBlock("svg",xe,Ne)}const Ie={name:"material-symbols-delete-outline",render:ze},v=e.defineComponent({__name:"ButtonDestructive",props:{id:null,size:null,loading:{type:Boolean}},setup(t){return(l,n)=>(e.openBlock(),e.createBlock(I,{id:`destructive-${t.id}`,size:t.size,loading:t.loading,variant:"primary",class:"button-destructive"},{"icon-left":e.withCtx(()=>[e.createVNode(e.unref(Ie))]),default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:3},8,["id","size","loading"]))}}),Zn="";I.install=t=>{t.component("SolButton",I)},v.install=t=>{t.component("SolButton",I)};const Me=["id","data-testid","value"],N=e.defineComponent({__name:"Input",props:{id:null,modelValue:null,invert:{type:Boolean},error:{type:Boolean}},emits:["update:modelValue"],setup(t,{expose:l,emit:n}){function a({target:i}){n("update:modelValue",i==null?void 0:i.value)}const o=e.ref("");return l({input:o}),(i,d)=>(e.openBlock(),e.createElementBlock("input",{id:`input-${t.id}`,ref_key:"input",ref:o,"data-testid":`input-${t.id}`,value:t.modelValue,class:e.normalizeClass(["sol-input-core",{"-invert":t.invert,"-error":t.error}]),onInput:a},null,42,Me))}}),Jn="";N.install=t=>{t.component("SolInput",N)};const Oe=["id","data-testid"],Te=["for"],De={class:"container-input"},Pe=["id"],Le=["id"],T=e.defineComponent({__name:"Textfield",props:{id:null,class:null,modelValue:{default:""},label:{default:"label"},hint:null,invert:{type:Boolean},error:null},emits:["update:modelValue"],setup(t,{emit:l}){const n=t,a=e.computed({get:()=>n.modelValue,set:d=>{l("update:modelValue",d)}});function o(d,s){return!!d&&!s}function i(d,s){return s?`error-${n.id}`:o(d,s)?`hint-${n.id}`:null}return(d,s)=>{var c;return e.openBlock(),e.createElementBlock("div",{id:`textfield-${t.id}`,"data-testid":`textfield-${t.id}`,class:e.normalizeClass([[`${(c=d.$props.class)!=null?c:""}`,{"-invert":t.invert}],"sol-textfield-core"])},[e.renderSlot(d.$slots,"label",{},()=>[t.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:`input-${t.id}`,class:"label"},[e.createElementVNode("span",null,e.toDisplayString(t.label),1)],8,Te)):e.createCommentVNode("",!0)]),e.createElementVNode("div",De,[e.renderSlot(d.$slots,"default",{},()=>[e.createVNode(N,e.mergeProps(d.$attrs,{id:t.id,modelValue:e.unref(a),"onUpdate:modelValue":s[0]||(s[0]=r=>e.isRef(a)?a.value=r:null),"data-testid":`input-${t.id}`,class:[t.error&&"-error","input"],invert:t.invert,"aria-invalid":!!t.error,"aria-describedby":i(t.hint,t.error)}),null,16,["id","modelValue","data-testid","class","invert","aria-invalid","aria-describedby"])]),e.renderSlot(d.$slots,"icon")]),o(t.hint,t.error)?(e.openBlock(),e.createElementBlock("span",{key:0,id:`hint-${t.id}`,class:"hint"},e.toDisplayString(t.hint),9,Pe)):t.error?(e.openBlock(),e.createElementBlock("span",{key:1,id:`error-${t.id}`,class:"error"},e.toDisplayString(t.error),9,Le)):e.createCommentVNode("",!0)],10,Oe)}}}),Xn="",Ae={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Re=[e.createElementVNode("g",{fill:"currentColor"},[e.createElementVNode("path",{d:"M15 12a3 3 0 1 1-6 0a3 3 0 0 1 6 0z"}),e.createElementVNode("path",{d:"M21.894 11.553C19.736 7.236 15.904 5 12 5c-3.903 0-7.736 2.236-9.894 6.553a1 1 0 0 0 0 .894C4.264 16.764 8.096 19 12 19c3.903 0 7.736-2.236 9.894-6.553a1 1 0 0 0 0-.894zM12 17c-2.969 0-6.002-1.62-7.87-5C5.998 8.62 9.03 7 12 7c2.969 0 6.002 1.62 7.87 5c-1.868 3.38-4.901 5-7.87 5z"})],-1)];function Fe(t,l){return e.openBlock(),e.createElementBlock("svg",Ae,Re)}const He={name:"mi-eye",render:Fe},Ke={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},qe=[e.createElementVNode("path",{fill:"currentColor",d:"M4.707 3.293a1 1 0 0 0-1.414 1.414l2.424 2.424c-1.43 1.076-2.678 2.554-3.611 4.422a1 1 0 0 0 0 .894C4.264 16.764 8.096 19 12 19c1.555 0 3.1-.355 4.53-1.055l2.763 2.762a1 1 0 0 0 1.414-1.414l-16-16zm10.307 13.135c-.98.383-2 .572-3.014.572c-2.969 0-6.002-1.62-7.87-5c.817-1.479 1.858-2.62 3.018-3.437l2.144 2.144a3 3 0 0 0 4.001 4.001l1.72 1.72zm3.538-2.532c.483-.556.926-1.187 1.318-1.896c-1.868-3.38-4.9-5-7.87-5c-.112 0-.224.002-.336.007L9.879 5.223A10.215 10.215 0 0 1 12 5c3.903 0 7.736 2.236 9.894 6.553a1 1 0 0 1 0 .894a13.106 13.106 0 0 1-1.925 2.865l-1.417-1.416z"},null,-1)];function Ue(t,l){return e.openBlock(),e.createElementBlock("svg",Ke,qe)}const Ge={name:"mi-eye-off",render:Ue},Qe=["aria-label"],q=e.defineComponent({__name:"TextfieldPassword",props:{id:{default:""},label:{default:"Sua senha"}},setup(t){const l=e.ref(!1),n=e.computed(()=>l.value?"text":"password");return(a,o)=>(e.openBlock(),e.createBlock(T,{id:t.id,required:"",type:e.unref(n),label:t.label,placeholder:"Insira sua senha"},{icon:e.withCtx(()=>[e.createElementVNode("button",{type:"button","data-testid":"toggle-type-password","aria-label":l.value?"Hide password":"Show password",onClick:o[0]||(o[0]=i=>l.value=!l.value)},[e.withDirectives(e.createVNode(e.unref(He),{"aria-hidden":"true"},null,512),[[e.vShow,l.value]]),e.withDirectives(e.createVNode(e.unref(Ge),{"aria-hidden":"true"},null,512),[[e.vShow,!l.value]])],8,Qe)]),_:1},8,["id","type","label"]))}});T.install=t=>{t.component("SolTextfield",T)},q.install=t=>{t.component("SolTextfieldPassword",q)};const je=["id","data-testid"],Ye=["for"],We={class:"container-textarea"},Ze=["id","data-testid","invert","aria-invalid","aria-describedby"],Je=["id"],Xe=["id"],U=e.defineComponent({__name:"Textarea",props:{id:null,class:null,modelValue:{default:""},label:{default:"label"},hint:null,invert:{type:Boolean},resize:{default:"both"},error:null},emits:["update:modelValue"],setup(t,{emit:l}){const n=t,a=e.computed({get:()=>n.modelValue,set:d=>{l("update:modelValue",d)}});function o(d,s){return!!d&&!s}function i(d,s){return s?`error-${n.id}`:o(d,s)?`hint-${n.id}`:null}return(d,s)=>{var c;return e.openBlock(),e.createElementBlock("div",{id:`textarea-${t.id}`,"data-testid":`textarea-${t.id}`,class:e.normalizeClass([[`${(c=d.$props.class)!=null?c:""}`,{"-invert":t.invert}],"sol-textarea-core"])},[e.renderSlot(d.$slots,"label",{},()=>[t.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:`input-${t.id}`,class:"label"},[e.createElementVNode("span",null,e.toDisplayString(t.label),1)],8,Ye)):e.createCommentVNode("",!0)]),e.createElementVNode("div",We,[e.renderSlot(d.$slots,"default",{},()=>[e.withDirectives(e.createElementVNode("textarea",e.mergeProps(d.$attrs,{id:`input-${t.id}`,"onUpdate:modelValue":s[0]||(s[0]=r=>e.isRef(a)?a.value=r:null),"data-testid":`input-${t.id}`,class:[t.error&&"-error","textarea"],invert:t.invert,style:{resize:t.resize},"aria-invalid":!!t.error,"aria-describedby":i(t.hint,t.error)}),null,16,Ze),[[e.vModelText,e.unref(a)]])])]),o(t.hint,t.error)?(e.openBlock(),e.createElementBlock("span",{key:0,id:`hint-${t.id}`,class:"hint"},e.toDisplayString(t.hint),9,Je)):t.error?(e.openBlock(),e.createElementBlock("span",{key:1,id:`error-${t.id}`,class:"error"},e.toDisplayString(t.error),9,Xe)):e.createCommentVNode("",!0)],10,je)}}}),el="";U.install=t=>{t.component("SolTextarea",U)};const _e=["id","data-testid","checked","value","name"],ve=["for"],D=e.defineComponent({__name:"Radio",props:{id:null,name:null,value:null,label:null,checked:null,class:null},emits:["change"],setup(t,{emit:l}){return(n,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["sol-radio-core",n.$props.class])},[e.createElementVNode("input",e.mergeProps(n.$attrs,{id:`radio-${t.name}-${t.id}`,type:"radio",class:"radio","data-testid":`radio-${t.name}-${t.id}`,checked:t.checked,value:t.value,name:t.name,onChange:a[0]||(a[0]=o=>l("change",t.value))}),null,16,_e),e.createElementVNode("label",{class:"label",for:`radio-${t.name}-${t.id}`},e.toDisplayString(t.label),9,ve)],2))}}),tl="",et=["aria-labelledby"],tt=["id","data-testid"],nt=["id"],lt=["id"],G=e.defineComponent({__name:"RadioGroup",props:{id:null,title:null,hideTitle:{type:Boolean,default:!1},hint:null,error:null,radios:null,modelValue:null,direction:{default:"row"}},emits:["change","update:modelValue"],setup(t,{emit:l}){const n=t;function a(s,c){return!!s&&!c}function o(s,c){return c?`error-${n.id}`:a(s,c)?`hint-${n.id}`:null}function i(s){return(n==null?void 0:n.modelValue)===s}function d(s){l("change",s.value),l("update:modelValue",s.value)}return(s,c)=>(e.openBlock(),e.createElementBlock("fieldset",{class:"sol-radio-group-core","aria-labelledby":`radio-group-title-${t.id}`},[e.renderSlot(s.$slots,"title",{id:`radio-group-title-${t.id}`},()=>[e.createElementVNode("legend",{id:`radio-group-title-${t.id}`,class:e.normalizeClass(["title",{"sr-only":t.hideTitle}]),"data-testid":`radio-group-title-${t.id}`},e.toDisplayString(t.title),11,tt)]),e.createElementVNode("ul",{class:e.normalizeClass(["container-radios",{"flex-col":t.direction==="column"}])},[e.renderSlot(s.$slots,"default",{radios:t.radios,direction:t.direction},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.radios,(r,m)=>{var B;return e.openBlock(),e.createElementBlock("li",{key:m},[e.createVNode(D,e.mergeProps(s.$attrs,{id:(B=r==null?void 0:r.id)!=null?B:`${r.value}`,class:["radio",{"mb-micro":t.direction==="column","mr-micro":t.direction==="row"}],name:r.name,value:r.value,label:r.label,checked:i(r.value),"aria-invalid":!!t.error,"aria-describedby":o(t.hint,t.error),onChange:h=>d(r)}),null,16,["id","class","name","value","label","checked","aria-invalid","aria-describedby","onChange"])])}),128))])],2),a(t.hint,t.error)?(e.openBlock(),e.createElementBlock("p",{key:0,id:`hint-${t.id}`,class:"hint"},e.toDisplayString(t.hint),9,nt)):t.error?(e.openBlock(),e.createElementBlock("p",{key:1,id:`error-${t.id}`,class:"error"},e.toDisplayString(t.error),9,lt)):e.createCommentVNode("",!0)],8,et))}}),nl="";D.install=t=>{t.component("SolRadio",D)},G.install=t=>{t.component("SolRadioGroup",G)};const ot=["id","data-testid","checked","value","name"],at=["for"],P=e.defineComponent({__name:"Checkbox",props:{id:null,name:null,value:null,label:null,checked:null,class:null},emits:["change"],setup(t,{emit:l}){return(n,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["sol-checkbox-core",n.$props.class])},[e.createElementVNode("input",e.mergeProps(n.$attrs,{id:`checkbox-${t.name}-${t.id}`,type:"checkbox",class:"checkbox","data-testid":`checkbox-${t.name}-${t.id}`,checked:t.checked,value:t.value,name:t.name,onChange:a[0]||(a[0]=o=>l("change",t.value))}),null,16,ot),e.createElementVNode("label",{class:"label",for:`checkbox-${t.name}-${t.id}`},e.toDisplayString(t.label),9,at)],2))}}),ll="",it=["aria-labelledby"],dt=["id","data-testid"],st=["id"],ct=["id"],Q=e.defineComponent({__name:"CheckboxGroup",props:{id:null,title:null,hideTitle:{type:Boolean,default:!1},hint:null,error:null,checkboxes:null,modelValue:null,direction:{default:"row"}},emits:["change","update:modelValue"],setup(t,{emit:l}){const n=t;function a(c,r){return!!c&&!r}function o(c,r){return r?`error-${n.id}`:a(c,r)?`hint-${n.id}`:null}function i(c){var r;return(r=n==null?void 0:n.modelValue)==null?void 0:r.includes(c)}function d(c){return Array.isArray(n==null?void 0:n.modelValue)?[...n.modelValue,c]:[c]}function s(c){var m;l("change",c.value);const r=i(c.value)?(m=n.modelValue)==null?void 0:m.filter(B=>B!==c.value):d(c.value);l("update:modelValue",r)}return(c,r)=>(e.openBlock(),e.createElementBlock("fieldset",{class:"sol-checkbox-group-core","aria-labelledby":`checkbox-group-title-${t.id}`},[e.renderSlot(c.$slots,"title",{id:`checkbox-group-title-${t.id}`},()=>[e.createElementVNode("legend",{id:`checkbox-group-title-${t.id}`,class:e.normalizeClass(["title",{"sr-only":t.hideTitle}]),"data-testid":`checkbox-group-title-${t.id}`},e.toDisplayString(t.title),11,dt)]),e.createElementVNode("ul",{class:e.normalizeClass(["container-checkboxes",{"flex-col":t.direction==="column"}])},[e.renderSlot(c.$slots,"default",{checkboxes:t.checkboxes,direction:t.direction},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.checkboxes,(m,B)=>{var h;return e.openBlock(),e.createElementBlock("li",{key:B},[e.createVNode(P,e.mergeProps(c.$attrs,{id:(h=m==null?void 0:m.id)!=null?h:`${m.value}`,class:["checkbox",{"mb-micro":t.direction==="column","mr-micro":t.direction==="row"}],label:m.label,name:m.name,value:m.value,checked:i(m.value),"aria-invalid":!!t.error,"aria-describedby":o(t.hint,t.error),onChange:y=>s(m)}),null,16,["id","class","label","name","value","checked","aria-invalid","aria-describedby","onChange"])])}),128))])],2),a(t.hint,t.error)?(e.openBlock(),e.createElementBlock("p",{key:0,id:`hint-${t.id}`,class:"hint"},e.toDisplayString(t.hint),9,st)):t.error?(e.openBlock(),e.createElementBlock("p",{key:1,id:`error-${t.id}`,class:"error"},e.toDisplayString(t.error),9,ct)):e.createCommentVNode("",!0)],8,it))}}),ol="";P.install=t=>{t.component("SolCheckbox",P)},Q.install=t=>{t.component("SolCheckboxGroup",Q)};const rt=["id","for","data-testid"],mt={class:"switch-container"},ut=["id","aria-checked","aria-labelledby","data-testid","checked","value","name"],ft=e.createElementVNode("span",{class:"ellipse"},null,-1),j=e.defineComponent({__name:"Switch",props:{id:null,name:null,value:null,label:null,checked:{type:Boolean},class:null,hideLabel:{type:Boolean},horizontalLabel:{type:Boolean}},emits:["change"],setup(t,{emit:l}){return(n,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["sol-switch-core",[n.$props.class,{"-horizontal":t.horizontalLabel}]])},[e.createElementVNode("label",{id:`switch-label-${t.name}-${t.id}`,class:e.normalizeClass(["label",{"mb-1":!t.horizontalLabel,"sr-only":t.hideLabel}]),for:`switch-${t.name}-${t.id}`,"data-testid":`switch-label-${t.name}-${t.id}`},e.toDisplayString(t.label),11,rt),e.createElementVNode("div",mt,[e.createElementVNode("input",e.mergeProps(n.$attrs,{id:`switch-${t.name}-${t.id}`,type:"checkbox",class:"switch",role:"switch","aria-checked":t.checked,"aria-labelledby":`switch-label-${t.name}-${t.id}`,"data-testid":`switch-${t.name}-${t.id}`,checked:t.checked,value:t.value,name:t.name,onChange:a[0]||(a[0]=o=>l("change",t.value))}),null,16,ut),ft])],2))}}),al="";j.install=t=>{t.component("SolSwitch",j)};var ce;const L=typeof window<"u",ht=t=>typeof t=="string",ee=()=>{};L&&((ce=window==null?void 0:window.navigator)==null?void 0:ce.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function $t(t){return typeof t=="function"?t():e.unref(t)}function bt(t){return t}function yt(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function A(t){var l;const n=$t(t);return(l=n==null?void 0:n.$el)!=null?l:n}const re=L?window:void 0;L&&window.document,L&&window.navigator,L&&window.location;function Y(...t){let l,n,a,o;if(ht(t[0])?([n,a,o]=t,l=re):[l,n,a,o]=t,!l)return ee;let i=ee;const d=e.watch(()=>A(l),c=>{i(),c&&(c.addEventListener(n,a,o),i=()=>{c.removeEventListener(n,a,o),i=ee})},{immediate:!0,flush:"post"}),s=()=>{d(),i()};return yt(s),s}function te(t,l,n={}){const{window:a=re,ignore:o,capture:i=!0,detectIframe:d=!1}=n;if(!a)return;const s=e.ref(!0);let c;const r=h=>{a.clearTimeout(c);const y=A(t),w=h.composedPath();!y||y===h.target||w.includes(y)||!s.value||o&&o.length>0&&o.some(S=>{const V=A(S);return V&&(h.target===V||w.includes(V))})||l(h)},m=[Y(a,"click",r,{passive:!0,capture:i}),Y(a,"pointerdown",h=>{const y=A(t);s.value=!!y&&!h.composedPath().includes(y)},{passive:!0}),Y(a,"pointerup",h=>{if(h.button===0){const y=h.composedPath();h.composedPath=()=>y,c=a.setTimeout(()=>r(h),50)}},{passive:!0}),d&&Y(a,"blur",h=>{var y;const w=A(t);((y=document.activeElement)==null?void 0:y.tagName)==="IFRAME"&&!(w!=null&&w.contains(document.activeElement))&&l(h)})].filter(Boolean);return()=>m.forEach(h=>h())}const ne=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},le="__vueuse_ssr_handlers__";ne[le]=ne[le]||{},ne[le];var me;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(me||(me={}));var kt=Object.defineProperty,ue=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,Bt=Object.prototype.propertyIsEnumerable,fe=(t,l,n)=>l in t?kt(t,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[l]=n,wt=(t,l)=>{for(var n in l||(l={}))gt.call(l,n)&&fe(t,n,l[n]);if(ue)for(var n of ue(l))Bt.call(l,n)&&fe(t,n,l[n]);return t};wt({linear:bt},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});const St={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Ct=[e.createElementVNode("path",{fill:"currentColor",d:"M10 4a6 6 0 1 0 0 12a6 6 0 0 0 0-12zm-8 6a8 8 0 1 1 14.32 4.906l5.387 5.387a1 1 0 0 1-1.414 1.414l-5.387-5.387A8 8 0 0 1 2 10z"},null,-1)];function Et(t,l){return e.openBlock(),e.createElementBlock("svg",St,Ct)}const he={name:"mi-search",render:Et},pt=["data-testid"],Vt=["id","for"],xt=["id","disabled","data-testid","aria-expanded","aria-labelledby","aria-label","aria-controls","onClick"],Nt={class:"dropdown-container"},zt=["id","data-testid","aria-multiselectable","aria-labelledby"],It=["id","data-testid","selected","aria-selected","onClick","onKeyup"],Mt={key:0,class:"no-data"},Ot=e.createTextVNode(" Sem dados "),W=e.defineComponent({__name:"Dropdown",props:{id:null,label:null,ariaLabel:null,smallerWidth:{type:Boolean},disabled:{type:Boolean},loading:{type:Boolean,default:!1},searchable:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},fetchOnSearch:{type:Boolean,default:!1},isMultipleSelect:{type:Boolean},searchPlaceholder:null,selected:null,options:{default:()=>[]}},emits:["closeDropdown","search","update:selected"],setup(t,{emit:l}){const n=t,a=e.ref(),o=e.ref(!1),i=e.ref(""),d=e.computed(()=>{var f;return n.fetchOnSearch?n.options:(f=n.options)==null?void 0:f.filter(u=>typeof u=="string"?u.includes(i.value):u.name.includes(i.value))}),s=e.computed(()=>Array.isArray(n.selected)?n.selected.join(", ").trim():n.selected);te(a,()=>{o.value&&m()});function c(){n.disabled||(o.value?m():r())}function r(){o.value=!0}function m(){ie(),l("closeDropdown")}function B(f){const u=new Set(n.selected);return u.has(f)?u.delete(f):u.add(f),[...u]}function h(f){const u=typeof f=="string"?f:f.value,g=n.isMultipleSelect?B(u):u;l("update:selected",g),n.closeOnSelect&&!n.isMultipleSelect&&m()}function y(f){return Array.isArray(n.selected)?typeof f=="string"?n.selected.includes(f):n.selected.includes(f.value):typeof f=="string"?f===n.selected:f.value===n.selected}const w=e.reactive({list:void 0,search:void 0}),S=e.reactive({id:"",index:0});function V({code:f}){const u=C=>{const z=C!=null?C:S.index;C!==void 0&&(S.index=C),setTimeout(()=>{var $,b;const x=($=w.list)==null?void 0:$.children[z];S.id=(b=x==null?void 0:x.id)!=null?b:"",x==null||x.focus()},0)},g=()=>{var C;n.searchable&&(S.index=0,(C=w==null?void 0:w.search)==null||C.focus())};switch(f){case"ArrowUp":return S.index>0&&(S.index-=1),u();case"ArrowDown":return o.value?(S.index<d.value.length-1&&(S.index+=1),u()):(r(),u(0));case"Home":return u(0);case"End":return u(n.options.length-1);case"Escape":return m();default:!["Enter","NumpadEnter","Space"].includes(f)&&g()}}function ie(){o.value=!1,S.index=0,i.value=""}function O(f,u){return typeof f=="string"?f:f[u!=null?u:"value"]}function _(f,u){w[f]=u!=null?u:void 0}return(f,u)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"el",ref:a,class:e.normalizeClass(["sol-dropdown-core",{"-smaller":t.smallerWidth}]),"data-testid":`dropdown-${t.id}`,onKeydownPassive:V},[e.renderSlot(f.$slots,"label",{},()=>[e.createElementVNode("label",{id:`label-dropdown-${t.id}`,class:e.normalizeClass(["label",{"-disabled":t.disabled,"sr-only":t.ariaLabel}]),for:`toggle-dropdown-${t.id}`},e.toDisplayString(t.label||t.ariaLabel),11,Vt)]),e.createElementVNode("button",{id:`toggle-dropdown-${t.id}`,disabled:t.disabled,"data-testid":`toggle-dropdown-${t.id}`,class:"button-toggle-dropdown toggle-dropdown","aria-haspopup":"listbox","aria-expanded":o.value,"aria-labelledby":`label-dropdown-${t.id}`,"aria-label":t.ariaLabel,"aria-controls":`dropdown-list-${t.id}`,onClick:e.withModifiers(c,["stop"])},[e.renderSlot(f.$slots,"toggle-dropdown",{toggle:{open:r,close:m,toggleDropdown:c},isOpen:o.value,select:h,selectedSanitized:e.unref(s),selected:t.selected},()=>[e.createTextVNode(e.toDisplayString(e.unref(s)||"Selecione"),1)])],8,xt),e.createVNode(e.Transition,{mode:"out-in",name:"dropdown"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",Nt,[t.searchable?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["search-container",{"-loading":t.loading}])},[e.renderSlot(f.$slots,"search",{filter:i.value},()=>[e.createVNode(N,{id:`search-dropdown-${t.id}`,ref:g=>_("search",g==null?void 0:g.input),modelValue:i.value,"onUpdate:modelValue":u[0]||(u[0]=g=>i.value=g),"data-testid":`search-dropdown-${t.id}`,role:"combobox",class:"search","aria-autocomplete":"list",placeholder:t.searchPlaceholder,"aria-expanded":o.value,"aria-haspopup":"listbox","aria-owns":`dropdown-list-${t.id}`,"aria-controls":`dropdown-list-${t.id}`,"aria-activedescendant":S.id,"aria-labelledby":`label-dropdown-${t.id}`,onClick:u[1]||(u[1]=e.withModifiers(()=>{},["stop"])),onInput:u[2]||(u[2]=g=>{var C;return l("search",(C=g.target)==null?void 0:C.value)})},null,8,["id","modelValue","data-testid","placeholder","aria-expanded","aria-owns","aria-controls","aria-activedescendant","aria-labelledby"]),e.createVNode(e.unref(he),{"aria-hidden":"true",class:"icon"})])],2)):e.createCommentVNode("",!0),e.createElementVNode("ul",{id:`dropdown-list-${t.id}`,ref:g=>_("list",g),"data-testid":`dropdown-list-${t.id}`,role:"listbox",tabindex:"-1","aria-multiselectable":t.isMultipleSelect,"aria-labelledby":`label-dropdown-${t.id}`,class:"dropdown-list-core"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(d),(g,C)=>(e.openBlock(),e.createElementBlock("li",{id:`option-${t.id}-${O(g,"value")}`,key:C,"data-testid":`option-${t.id}-${O(g,"value")}`,role:"option",tabindex:"-1",class:"dropdown-item",style:e.normalizeStyle(`--item: ${C+1}`),selected:y(g),"aria-selected":y(g),onClick:z=>h(g),onKeyup:[e.withKeys(z=>h(g),["enter"]),e.withKeys(z=>h(g),["space"])]},[e.renderSlot(f.$slots,"default",{text:O(g,"name"),option:g,isSelect:y},()=>[e.createTextVNode(e.toDisplayString(O(g,"name")),1)])],44,It))),128)),e.unref(d).length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("li",Mt,[e.renderSlot(f.$slots,"no-data",{},()=>[Ot])]))],8,zt)],512),[[e.vShow,o.value]])]),_:3})],42,pt))}}),sl="";W.install=t=>{t.component("SolDropdown",W)};const Tt={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Dt=[e.createElementVNode("path",{fill:"currentColor",d:"M5.293 5.293a1 1 0 0 1 1.414 0L12 10.586l5.293-5.293a1 1 0 1 1 1.414 1.414L13.414 12l5.293 5.293a1 1 0 0 1-1.414 1.414L12 13.414l-5.293 5.293a1 1 0 0 1-1.414-1.414L10.586 12L5.293 6.707a1 1 0 0 1 0-1.414z"},null,-1)];function Pt(t,l){return e.openBlock(),e.createElementBlock("svg",Tt,Dt)}const $e={name:"mi-close",render:Pt},Lt=["id","data-testid","title","aria-describedby","aria-disabled","onKeydown"],At=["id"],Rt={class:"label"},R=e.defineComponent({__name:"Chip",props:{id:null,label:null,selected:{type:Boolean},disabled:{type:Boolean},removable:{type:Boolean,default:!0}},emits:["close","update:selected"],setup(t,{emit:l}){const n=t;function a({code:o}){if(!n.disabled)switch(o){case"Enter":case"NumpadEnter":case"Space":return l("update:selected");case"Delete":case"Backspace":return n.removable&&l("close");default:return!1}}return(o,i)=>(e.openBlock(),e.createElementBlock("div",{id:`chip-${t.id}`,"data-testid":`chip-${t.id}`,class:e.normalizeClass(["sol-chip-core",{"-selected":t.selected,"-disabled":t.disabled}]),tabindex:"0",title:t.label,"aria-describedby":`chip-description-${t.id}`,"aria-disabled":t.disabled,onClick:i[1]||(i[1]=d=>l("update:selected")),onKeydown:e.withModifiers(a,["self"])},[e.createElementVNode("span",{id:`chip-description-${t.id}`,"z-index":"-1",class:"sr-only"},"Press Delete or Backspace to remove this Chip",8,At),e.createElementVNode("span",Rt,[e.renderSlot(o.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.label),1)])]),t.removable?(e.openBlock(),e.createElementBlock("i",{key:0,role:"presentation","aira-hidden":"true",class:"close",onClick:i[0]||(i[0]=e.withModifiers(d=>l("close"),["stop"]))},[e.createVNode(e.unref($e),{class:"icon"})])):e.createCommentVNode("",!0)],42,Lt))}}),rl="",Ft=["id","data-testid","aria-multiselectable","aria-labelledby"],Ht=["id","data-testid","selected","aria-selected","onClick","onKeyup"],Kt={key:0,class:"no-data"},qt=e.createTextVNode(" Sem dados "),Ut=e.defineComponent({__name:"ListOption",props:{id:null,options:null,multiple:{type:Boolean},isSelected:null},emits:["select"],setup(t,{expose:l,emit:n}){const a=e.ref("");return l({list:a}),(o,i)=>(e.openBlock(),e.createElementBlock("ul",{id:`select-list-${t.id}`,ref_key:"list",ref:a,"data-testid":`select-list-${t.id}`,role:"listbox",tabindex:"-1","aria-multiselectable":t.multiple,"aria-labelledby":`select-label-${t.id}`,class:"select-list-core"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,(d,s)=>(e.openBlock(),e.createElementBlock("li",{id:`option-${t.id}-${d.value}`,key:s,"data-testid":`option-${t.id}-${d.value}`,role:"option",tabindex:"-1",class:"select-option-item",style:e.normalizeStyle(`--item: ${s+1}`),selected:t.isSelected(d),"aria-selected":t.isSelected(d),onClick:c=>n("select",d),onKeyup:[e.withKeys(c=>n("select",d),["enter"]),e.withKeys(c=>n("select",d),["space"])]},[e.renderSlot(o.$slots,"item-list",{text:d.name,value:d.value,option:d,isSelected:t.isSelected(d)},()=>[e.createTextVNode(e.toDisplayString(d.name),1)])],44,Ht))),128)),t.options.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("li",Kt,[e.renderSlot(o.$slots,"no-data",{},()=>[qt])]))],8,Ft))}}),ml="",Gt={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Qt=[e.createElementVNode("path",{fill:"currentColor",d:"m17 10l-5 6l-5-6h10z"},null,-1)];function jt(t,l){return e.openBlock(),e.createElementBlock("svg",Gt,Qt)}const Yt={name:"mi-caret-down",render:jt};function be(t,l){function n({code:a}){var d;const o=a;(()=>{if(!(l!=null&&l.fallback))return!1;const s=c=>Array.isArray(c)?!c.includes(o):o!==c;return l!=null&&l.exclude?!t.hasOwnProperty(o)&&s(l.exclude):!t.hasOwnProperty(o)})()&&(l==null||l.fallback()),t.hasOwnProperty(o)&&((d=t[o])==null||d.call(t))}return{navigate:n}}function ye({target:t,query:l}){const n=e.reactive({id:"",index:-1});function a(m){const B=m!=null?m:n.index,h=t==null?void 0:t.value;m!==void 0&&(n.index=m),setTimeout(()=>{var S;const y=h.children[B],w=l&&y.querySelector(l)?y.querySelector(l):y;n.id=(S=y==null?void 0:y.id)!=null?S:"",w==null||w.focus()},0)}function o(){n.index>0&&(n.index-=1,a())}function i(m){n.index<m-1&&(n.index+=1,a())}function d(){a(0)}function s(m){a(m-1)}function c(m){return m.id?m.id===n.id:m.index===n.index}function r(){n.id="",n.index=-1}return{elementFocus:n,isItemFocused:c,resetStateFocus:r,focusListItem:a,focusOnPreviousItem:o,focusOnNextItem:i,focusOnFirstItem:d,focusOnLastItem:s}}const Wt=["data-testid"],Zt=["id"],Jt=["id","disabled","data-testid","aria-expanded","aria-labelledby","aria-label","aria-controls","onClick"],Xt={key:0,class:"container-tags"},_t={key:1,class:"mr-micro placeholder-inline",tabindex:"-1"},vt={class:"error"},en={class:"select-options-container"},Z=e.defineComponent({__name:"Select",props:{id:null,label:null,ariaLabel:null,smallerWidth:{type:Boolean},disabled:{type:Boolean},loading:{type:Boolean,default:!1},searchable:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},fetchOnSearch:{type:Boolean,default:!1},multiple:{type:Boolean},searchPlaceholder:null,selected:null,options:{default:()=>[]},error:null,placeholder:{default:"placeholder"}},emits:["closeDropdown","search","update:selected"],setup(t,{emit:l}){const n=t,a=e.ref(),o=e.ref(!1),i=e.ref(""),d=e.computed(()=>{var $;return n.fetchOnSearch?n.options:($=n.options)==null?void 0:$.filter(b=>b.name.includes(i.value))});te(a,()=>{o.value&&r()});function s(){n.disabled||(o.value?r():c())}function c(){o.value=!0}function r(){C(),l("closeDropdown")}function m($){if(Array.isArray(n.selected)){const b=n.selected.findIndex(({value:E})=>E===$.value);return b===-1?[...n.selected,$]:n.selected.filter((E,p)=>p!==b)}return[$]}function B($){n.multiple?l("update:selected",m($)):l("update:selected",$),n.closeOnSelect&&!n.multiple&&r()}function h($){var b;return Array.isArray(n.selected)?n.selected.some(({value:E})=>E===$.value):$.value===((b=n.selected)==null?void 0:b.value)}const y=e.ref(),w=e.ref();function S(){var $;n.searchable&&(u(),($=y.value)==null||$.focus())}const{elementFocus:V,focusOnFirstItem:ie,focusOnLastItem:O,focusOnNextItem:_,focusOnPreviousItem:f,resetStateFocus:u}=ye({target:w}),{navigate:g}=be({Home:ie,End:()=>O(n.options.length),ArrowUp:f,ArrowDown:()=>{!o.value&&c(),_(n.options.length)},Escape:r},{fallback:S,exclude:["Enter","NumpadEnter","Space"]});function C(){o.value=!1,i.value="",u()}function z($){return b=>{$==="search"?y.value=b==null?void 0:b.input:w.value=b==null?void 0:b.list}}function x(){var b;const $=n.selected;return(b=$==null?void 0:$.name)!=null?b:n.placeholder}return($,b)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"el",ref:a,class:e.normalizeClass(["sol-select-core",{"-smaller":t.smallerWidth}]),"data-testid":`select-${t.id}`,onKeydownPassive:b[3]||(b[3]=(...E)=>e.unref(g)&&e.unref(g)(...E))},[e.renderSlot($.$slots,"label",{id:`select-label-${t.id}`,for:`select-toggle-${t.id}`},()=>[t.label?(e.openBlock(),e.createElementBlock("label",{key:0,id:`select-label-${t.id}`,class:e.normalizeClass(["label",{"-disabled":t.disabled}])},e.toDisplayString(t.label),11,Zt)):e.createCommentVNode("",!0)]),e.createElementVNode("button",{id:`select-toggle-${t.id}`,disabled:t.disabled,"data-testid":`select-toggle-${t.id}`,class:"select-button-toggle","aria-haspopup":"listbox","aria-expanded":o.value,"aria-labelledby":`select-label-${t.id}`,"aria-label":t.ariaLabel,"aria-controls":`select-list-${t.id}`,onClick:e.withModifiers(s,["stop"])},[e.renderSlot($.$slots,"toggle-dropdown",{toggle:{open:c,close:r,toggleDropdown:s},isOpen:o.value,select:B,selected:t.selected},()=>{var E;return[t.multiple&&Array.isArray(t.selected)&&((E=t.selected)==null?void 0:E.length)?(e.openBlock(),e.createElementBlock("div",Xt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.selected,(p,de)=>(e.openBlock(),e.createBlock(R,{id:p.value,key:de,label:p.name,onClick:e.withModifiers(se=>B(p),["stop"]),onClose:se=>B(p)},null,8,["id","label","onClick","onClose"]))),128))])):(e.openBlock(),e.createElementBlock("span",_t,e.toDisplayString(x()),1)),e.createVNode(e.unref(Yt),{"aria-hidden":"true",tabindex:"-1",class:e.normalizeClass(["icon",{"-open":o.value}])},null,8,["class"])]})],8,Jt),e.createElementVNode("span",vt,e.toDisplayString(t.error),1),e.createVNode(e.Transition,{mode:"out-in",name:"dropdown"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",en,[e.renderSlot($.$slots,"search",{},()=>[t.searchable?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["search-container",{"-loading":t.loading}])},[e.renderSlot($.$slots,"search",{filter:i.value},()=>[e.createVNode(N,{id:`select-search-${t.id}`,ref:z("search"),modelValue:i.value,"onUpdate:modelValue":b[0]||(b[0]=E=>i.value=E),"data-testid":`select-search-${t.id}`,role:"combobox",class:"search","aria-autocomplete":"list",placeholder:t.searchPlaceholder,"aria-expanded":o.value,"aria-haspopup":"listbox","aria-owns":`select-list-${t.id}`,"aria-controls":`select-list-${t.id}`,"aria-activedescendant":e.unref(V).id,"aria-labelledby":`select-label-${t.id}`,onClick:b[1]||(b[1]=e.withModifiers(()=>{},["stop"])),onInput:b[2]||(b[2]=E=>{var p;return l("search",(p=E.target)==null?void 0:p.value)})},null,8,["id","modelValue","data-testid","placeholder","aria-expanded","aria-owns","aria-controls","aria-activedescendant","aria-labelledby"]),e.createVNode(e.unref(he),{"aria-hidden":"true",class:"icon"})])],2)):e.createCommentVNode("",!0),e.createVNode(Ut,{id:t.id,ref:z("list"),options:e.unref(d),multiple:t.multiple,"is-selected":h,onSelect:B},{"item-list":e.withCtx(({text:E,value:p,option:de,isSelected:se})=>[e.renderSlot($.$slots,"default",{text:E,value:p,option:de,isSelected:se})]),"no-data":e.withCtx(()=>[e.renderSlot($.$slots,"no-data")]),_:3},8,["id","options","multiple"])])],512),[[e.vShow,o.value]])]),_:3})],42,Wt))}}),fl="";Z.install=t=>{t.component("SolSelect",Z)},R.install=t=>{t.component("SolChip",R)};const tn={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},nn=[e.createElementVNode("path",{fill:"currentColor",d:"M12 14.975q-.2 0-.387-.075q-.188-.075-.313-.2l-4.6-4.6q-.275-.275-.275-.7q0-.425.275-.7q.275-.275.7-.275q.425 0 .7.275l3.9 3.9l3.9-3.9q.275-.275.7-.275q.425 0 .7.275q.275.275.275.7q0 .425-.275.7l-4.6 4.6q-.15.15-.325.212q-.175.063-.375.063Z"},null,-1)];function ln(t,l){return e.openBlock(),e.createElementBlock("svg",tn,nn)}const ke={name:"material-symbols-keyboard-arrow-down-rounded",render:ln},on=["id","data-testid","aria-disabled"],an=["data-testid","tabindex"],dn={class:"container-title"},sn={class:"icon"},cn=["data-testid"],J=e.defineComponent({__name:"Accordion",props:{id:null,title:{default:"Title"},onColor:{type:Boolean},disabled:{type:Boolean}},setup(t){return(l,n)=>(e.openBlock(),e.createElementBlock("details",{id:`accordion-${t.id}`,"data-testid":`accordion-${t.id}`,class:e.normalizeClass(["sol-accordion-core",{"-on-color":t.onColor,"-disabled":t.disabled}]),"aria-disabled":t.disabled},[e.createElementVNode("summary",{"data-testid":`accordion-title-${t.id}`,class:"summary",tabindex:t.disabled?-1:0},[e.createElementVNode("div",dn,[e.createElementVNode("span",sn,[e.renderSlot(l.$slots,"icon")]),e.renderSlot(l.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)])]),e.createVNode(e.unref(ke),{class:"icon","aria-hidden":"true"})],8,an),e.createElementVNode("div",{"data-testid":`accordion-content-${t.id}`,class:"accordion-content"},[e.renderSlot(l.$slots,"default")],8,cn)],10,on))}}),$l="";J.install=t=>{t.component("SolAccordion",J)};const rn=["id","data-testid"],mn=["id","aria-expanded"],un=["id","data-testid","aria-labelledby"],F=e.defineComponent({__name:"Menu",props:{id:null,label:{default:"Teste"},position:{default:"bottom"}},setup(t){const l=e.ref();te(l,()=>{B()});const n=e.ref(!1),a=e.ref(),o=e.computed(()=>a.value?a.value.childElementCount:0),{resetStateFocus:i,focusOnPreviousItem:d,focusOnNextItem:s,focusOnFirstItem:c,focusOnLastItem:r}=ye({target:a,query:'[role="menuitem"]'}),{navigate:m}=be({Home:c,End:()=>r(o.value),ArrowUp:d,ArrowDown:()=>{!n.value&&h(),s(o.value)},Escape:B});function B(){n.value=!1,i()}function h(){n.value=!0}function y(){n.value?B():h()}return(w,S)=>(e.openBlock(),e.createElementBlock("div",{id:`menu-${t.id}`,ref_key:"el",ref:l,"data-testid":`menu-${t.id}`,class:e.normalizeClass([`-${t.position}`,"sol-menu-core"]),onKeyupPassive:S[0]||(S[0]=(...V)=>e.unref(m)&&e.unref(m)(...V))},[e.createElementVNode("button",{id:`menu-button-${t.id}`,type:"button",role:"menuitem",class:"toggle-menu","aria-haspopup":"true","aria-expanded":n.value,onClick:y},[e.renderSlot(w.$slots,"label",{isOpen:n.value},()=>[e.createTextVNode(e.toDisplayString(t.label),1)])],8,mn),e.withDirectives(e.createElementVNode("menu",{id:`menu-container-${t.id}`,ref_key:"menu",ref:a,"data-testid":`menu-container-${t.id}`,role:"menu","aria-labelledby":`menu-button-${t.id}`,class:e.normalizeClass(["menu",{"-open":n.value}])},[e.renderSlot(w.$slots,"default",{close:B})],10,un),[[e.vShow,n.value]])],42,rn))}}),bl="";F.install=t=>{t.component("SolMenu",F)};const fn=["id"],hn=["href","target"],H=e.defineComponent({__name:"MenuItemLink",props:{id:null,text:null,link:null,active:null,external:null},emits:["clicked"],setup(t,{emit:l}){return(n,a)=>(e.openBlock(),e.createElementBlock("li",{id:`menu-item-link-${t.id}`,class:"sol-menuitem-link-core",tabindex:"-1",role:"none",onClick:a[0]||(a[0]=o=>l("clicked")),onKeyup:[a[1]||(a[1]=e.withKeys(o=>l("clicked"),["enter"])),a[2]||(a[2]=e.withKeys(o=>l("clicked"),["space"]))]},[e.renderSlot(n.$slots,"default",{id:t.id,active:t.active,link:t.link,text:t.text,external:t.external},()=>[e.createElementVNode("a",{role:"menuitem",class:e.normalizeClass({"-active":t.active}),href:t.link,target:t.external?"_blank":"_parent"},e.toDisplayString(t.text),11,hn)])],40,fn))}}),yl="";H.install=t=>{t.component("SolMenuItemLink",H)};const $n={class:"label-container"},bn={class:"label"},X=e.defineComponent({__name:"MenuNavigationLinks",props:{id:null,label:null,linkItems:null},setup(t){return(l,n)=>(e.openBlock(),e.createBlock(F,{id:`navigation-${t.id}`,class:"sol-menu-navigation-links-core"},{label:e.withCtx(({isOpen:a})=>[e.renderSlot(l.$slots,"label",{isOpen:a},()=>[e.createElementVNode("div",$n,[e.createElementVNode("span",bn,e.toDisplayString(t.label),1),e.createVNode(e.unref(ke),{class:e.normalizeClass(["icon",{"-opened":a}]),"aria-hidden":"true"},null,8,["class"])])])]),default:e.withCtx(({close:a})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.linkItems,(o,i)=>(e.openBlock(),e.createBlock(H,{id:`${t.id}-${o.text}`,key:i,text:o.text,link:o.link,external:o.external,active:o.active,onClicked:a},{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default",{id:t.id,active:o.active,link:o.link,text:o.text,external:o.external})]),_:2},1032,["id","text","link","external","active","onClicked"]))),128))]),_:3},8,["id"]))}}),kl="";X.install=t=>{t.component("SolMenuNavigationLinks",X)};const gl="",Bl="",wl="",Sl="",ge=12,M={type:"success",timeout:5e3,showIcon:!0,showCloseButton:!0,position:"top-right",hideProgressBar:!1};function yn(t,l){const n=e.reactive({id:null,intervalId:null,startTime:0,remaining:l}),a=e.ref(100);function o(){clearInterval(n.intervalId),clearTimeout(n.id),n.remaining-=Date.now()-n.startTime}function i(){n.startTime=Date.now(),clearTimeout(n.id),n.intervalId=setInterval(()=>{a.value--},l/100-5),n.id=setTimeout(t,n.remaining)}function d(){clearInterval(n.intervalId),clearTimeout(n.id),a.value=100}return e.onMounted(()=>{if(l<=0)return!1}),e.onUnmounted(()=>{d()}),{start:i,stop:o,clear:d,progress:a}}function kn(t){return{stylePosition:e.computed(()=>{const{position:n,offset:a}=t();switch(n){case"top-left":return{left:"0",top:`${a}px`};case"bottom-left":return{left:"0",bottom:`${a}px`};case"bottom-right":return{right:"0",bottom:`${a}px`};case"top-center":return{top:`${a}px`,left:"0",right:"0",marginRight:"auto",marginLeft:"auto"};case"bottom-center":return{bottom:`${a}px`,left:"0",right:"0",marginRight:"auto",marginLeft:"auto"};default:return{right:"0",top:`${a}px`}}})}}var Be=(t=>(t["top-left"]="bounce-left",t["top-right"]="bounce-right",t["top-center"]="bounce-down",t["bottom-left"]="bounce-left",t["bottom-center"]="bounce-up",t["bottom-right"]="bounce-right",t))(Be||{});const gn={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Bn=[e.createElementVNode("path",{fill:"currentColor",d:"M12 4a8 8 0 1 0 0 16a8 8 0 0 0 0-16zM2 12C2 6.477 6.477 2 12 2s10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12zm14.664-3.247a1 1 0 0 1 .083 1.411l-5.333 6a1 1 0 0 1-1.495 0l-2.666-3a1 1 0 0 1 1.494-1.328l1.92 2.159l4.586-5.16a1 1 0 0 1 1.411-.082z"},null,-1)];function wn(t,l){return e.openBlock(),e.createElementBlock("svg",gn,Bn)}const Sn={name:"mi-circle-check",render:wn},Cn={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},En=[e.createElementVNode("path",{fill:"currentColor",d:"M12 4a8 8 0 1 0 0 16a8 8 0 0 0 0-16zM2 12C2 6.477 6.477 2 12 2s10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12zm5.793-4.207a1 1 0 0 1 1.414 0L12 10.586l2.793-2.793a1 1 0 1 1 1.414 1.414L13.414 12l2.793 2.793a1 1 0 0 1-1.414 1.414L12 13.414l-2.793 2.793a1 1 0 0 1-1.414-1.414L10.586 12L7.793 9.207a1 1 0 0 1 0-1.414z"},null,-1)];function pn(t,l){return e.openBlock(),e.createElementBlock("svg",Cn,En)}const Vn={name:"mi-circle-error",render:pn},xn={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Nn=[e.createElementVNode("g",{fill:"currentColor"},[e.createElementVNode("path",{d:"M12 4a8 8 0 1 0 0 16a8 8 0 0 0 0-16zM2 12C2 6.477 6.477 2 12 2s10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12z"}),e.createElementVNode("path",{d:"M12 14a1 1 0 0 1-1-1V7a1 1 0 1 1 2 0v6a1 1 0 0 1-1 1zm-1.5 2.5a1.5 1.5 0 1 1 3 0a1.5 1.5 0 0 1-3 0z"})],-1)];function zn(t,l){return e.openBlock(),e.createElementBlock("svg",xn,Nn)}const In={name:"mi-circle-warning",render:zn},Mn=["id","data-testid"],On={class:"content-wrapper"},Tn={key:0,class:"icon-container","aria-hidden":"true"},Dn={class:"content"},Pn={key:0,class:"description"},Ln=["data-testid"],An=e.defineComponent({__name:"Toast",props:{id:null,type:{default:M.type},visible:{type:Boolean,default:!1},title:null,description:null,timeout:null,hideProgressBar:{type:Boolean,default:M.hideProgressBar},showIcon:{type:Boolean,default:M.showIcon},offset:{default:0},onClose:null,onCloseHandler:null,position:{default:M.position}},setup(t){const l=t,{start:n,stop:a,progress:o}=yn(()=>{var r;(r=l.onCloseHandler)==null||r.call(l)},l.timeout),{stylePosition:i}=kn(()=>({offset:l.offset,position:l.position})),d=e.computed(()=>l.title&&l.description);function s(){l.timeout>0&&a()}function c(){n()}return e.onMounted(()=>{n()}),(r,m)=>(e.openBlock(),e.createBlock(e.Transition,{name:e.unref(Be)[t.position],type:"animation"},{default:e.withCtx(()=>[t.visible?(e.openBlock(),e.createElementBlock("div",{key:0,id:`toast-${t.type}-${t.id}`,role:"status","data-testid":`toast-${t.type}-${t.id}`,style:e.normalizeStyle(e.unref(i)),class:e.normalizeClass(["sol-toast-core",[`-${t.type}`,{"-multiline":e.unref(d)}]]),onKeyup:m[1]||(m[1]=e.withKeys((...B)=>t.onCloseHandler&&t.onCloseHandler(...B),["esc"])),onMouseenter:s,onMouseleave:c,onFocusin:s,onFocusout:c},[e.createElementVNode("section",On,[t.showIcon?(e.openBlock(),e.createElementBlock("div",Tn,[e.renderSlot(r.$slots,"icon-status",{type:t.type},()=>[t.type==="success"?(e.openBlock(),e.createBlock(e.unref(Sn),{key:0,class:"icon"})):e.createCommentVNode("",!0),t.type==="info"?(e.openBlock(),e.createBlock(e.unref(In),{key:1,class:"icon"})):e.createCommentVNode("",!0),t.type==="danger"?(e.openBlock(),e.createBlock(e.unref(Vn),{key:2,class:"icon"})):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),e.createElementVNode("div",Dn,[e.createElementVNode("p",{class:e.normalizeClass(["title",{"-multiline":e.unref(d)}])},[e.renderSlot(r.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)])],2),t.description?(e.openBlock(),e.createElementBlock("p",Pn,[e.renderSlot(r.$slots,"description",{},()=>[e.createTextVNode(e.toDisplayString(t.description),1)])])):e.createCommentVNode("",!0)])]),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["close",{"-multiline":e.unref(d)}]),"data-testid":`toast-close-button-${t.type}-${t.id}`,"aria-label":"close notification",onClick:m[0]||(m[0]=(...B)=>t.onCloseHandler&&t.onCloseHandler(...B))},[e.createVNode(e.unref($e),{class:"icon"})],10,Ln),t.hideProgressBar?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"progressbar","aria-hidden":"true",style:e.normalizeStyle({width:`${e.unref(o)}%`})},null,4))],46,Mn)):e.createCommentVNode("",!0)]),_:3},8,["name"]))}}),Vl="",K={"top-left":[],"top-right":[],"top-center":[],"bottom-left":[],"bottom-right":[],"bottom-center":[]};function Rn(){let t=0;function l(){Object.entries(K).forEach(([a,o])=>{o.length&&o.forEach(i=>{var s;const d=(s=i.toastVNode.props)==null?void 0:s.id;oe(d,a)})})}return{createToast:(a,o)=>{const i=t++,d=o?Fn(o):M;return o!=null&&o.showOneToast&&l(),Hn(i,d,typeof a=="string"?{title:a}:a),{close:()=>oe(i,d.position)}},clearAllToasts:l}}function Fn(t){const l={...M,...t,showIcon:t.showIcon};return l.hideProgressBar=!!(l.timeout&&(l==null?void 0:l.timeout)<=0),t.hideProgressBar&&(l.hideProgressBar=t.hideProgressBar),l}function Hn(t,l,n){setTimeout(()=>{const a=qn(l,K,ge),o=document.createElement("div");document.body.appendChild(o);const i=e.createVNode(An,Kn(l,t,a,oe,n));e.render(i,o),K[l.position].push({toastVNode:i,container:o}),i.component&&(i.component.props.visible=!0)},1)}function Kn(t,l,n,a,o){return{...t,...o,id:l,offset:n,visible:!1,onCloseHandler(){a(l,t.position?t.position:"top-right")}}}function qn(t,l,n){if(!t.position)throw new Error("no position");return l[t.position].reduce((a,{toastVNode:o})=>(a+=o.el.offsetHeight+n||0,a),n)}function Un(t,l,n,a){for(let o=t;o<l.length;o++){const{toastVNode:i}=l[o];if(!i.el)return;const d=n.split("-")[0]||"top",s=parseInt(i.el.style[d],10)-a-ge;if(!i.component)return;i.component.props.offset=s}}function oe(t,l){var c;const n=K[l],a=n.findIndex(({toastVNode:r})=>{var m;return t===((m=r==null?void 0:r.props)==null?void 0:m.id)});if(a===-1)return;const{container:o,toastVNode:i}=n[a],d=(c=i==null?void 0:i.el)==null?void 0:c.offsetHeight;if(K[l].splice(a,1),Un(a,n,l,d),!i.component)return;const s=i.component.props;s.visible=!1,s.onClose&&s.onClose(),setTimeout(()=>{e.render(null,o),document.body.removeChild(o)},1e3)}console.log("%c\u{1F33B}[Girassol]\u{1F33B}","padding: 8px;background: #212121;color: gold; font-family: 'Fira code'; font-weight: bold; font-size: 1.2rem");const ae={SolButton:I,SolButtonDestructive:v,SolInput:N,SolTextarea:U,SolTextfield:T,SolTextfieldPassword:q,SolRadio:D,SolRadioGroup:G,SolCheckbox:P,SolCheckboxGroup:Q,SolSwitch:j,SolDropdown:W,SolSelect:Z,SolChip:R,SolAccordion:J,SolMenu:F,SolMenuItemLink:H,SolMenuNavigationLinks:X};function Gn(t){for(const l in ae)t.component(l,ae[l])}k.SolAccordion=J,k.SolButton=I,k.SolButtonDestructive=v,k.SolCheckbox=P,k.SolCheckboxGroup=Q,k.SolChip=R,k.SolDropdown=W,k.SolInput=N,k.SolMenu=F,k.SolMenuItemLink=H,k.SolMenuNavigationLinks=X,k.SolRadio=D,k.SolRadioGroup=G,k.SolSelect=Z,k.SolSwitch=j,k.SolTextarea=U,k.SolTextfield=T,k.SolTextfieldPassword=q,k.components=ae,k.install=Gn,k.useToast=Rn,Object.defineProperties(k,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
6
|
+
`]),type:"button",disabled:t.disabled||t.loading},[e.createElementVNode("div",Ee,[e.renderSlot(i.$slots,"icon-left")]),e.renderSlot(i.$slots,"default"),e.createElementVNode("div",Ve,[e.renderSlot(i.$slots,"icon-right")]),t.loading?(e.openBlock(),e.createElementBlock("div",pe,[e.createVNode(Se,{"data-testid":`button-loader-${t.id}`,size:t.size==="small"?"small":"medium",dark:t.onColor},null,8,["data-testid","size","dark"])])):e.createCommentVNode("",!0)],10,Ce))}}),Wn="",xe={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Ne=[e.createElementVNode("path",{fill:"currentColor",d:"M7 21q-.825 0-1.412-.587Q5 19.825 5 19V6H4V4h5V3h6v1h5v2h-1v13q0 .825-.587 1.413Q17.825 21 17 21ZM17 6H7v13h10ZM9 17h2V8H9Zm4 0h2V8h-2ZM7 6v13Z"},null,-1)];function ze(t,l){return e.openBlock(),e.createElementBlock("svg",xe,Ne)}const Ie={name:"material-symbols-delete-outline",render:ze},v=e.defineComponent({__name:"ButtonDestructive",props:{id:null,size:null,loading:{type:Boolean}},setup(t){return(l,n)=>(e.openBlock(),e.createBlock(I,{id:`destructive-${t.id}`,size:t.size,loading:t.loading,variant:"primary",class:"button-destructive"},{"icon-left":e.withCtx(()=>[e.createVNode(e.unref(Ie))]),default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:3},8,["id","size","loading"]))}}),Jn="";I.install=t=>{t.component("SolButton",I)},v.install=t=>{t.component("SolButton",I)};const Me=["id","data-testid","value"],N=e.defineComponent({__name:"Input",props:{id:null,modelValue:null,invert:{type:Boolean},error:{type:Boolean}},emits:["update:modelValue"],setup(t,{expose:l,emit:n}){function a({target:i}){n("update:modelValue",i==null?void 0:i.value)}const o=e.ref("");return l({input:o}),(i,d)=>(e.openBlock(),e.createElementBlock("input",{id:`input-${t.id}`,ref_key:"input",ref:o,"data-testid":`input-${t.id}`,value:t.modelValue,class:e.normalizeClass(["sol-input-core",{"-invert":t.invert,"-error":t.error}]),onInput:a},null,42,Me))}}),Xn="";N.install=t=>{t.component("SolInput",N)};const Oe=["id","data-testid"],Te=["for"],De={class:"container-input"},Pe=["id"],Le=["id"],T=e.defineComponent({__name:"Textfield",props:{id:null,class:null,modelValue:{default:""},label:{default:"label"},hint:null,invert:{type:Boolean},error:null},emits:["update:modelValue"],setup(t,{emit:l}){const n=t,a=e.computed({get:()=>n.modelValue,set:d=>{l("update:modelValue",d)}});function o(d,s){return!!d&&!s}function i(d,s){return s?`error-${n.id}`:o(d,s)?`hint-${n.id}`:null}return(d,s)=>{var c;return e.openBlock(),e.createElementBlock("div",{id:`textfield-${t.id}`,"data-testid":`textfield-${t.id}`,class:e.normalizeClass([[`${(c=d.$props.class)!=null?c:""}`,{"-invert":t.invert}],"sol-textfield-core"])},[e.renderSlot(d.$slots,"label",{},()=>[t.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:`input-${t.id}`,class:"label"},[e.createElementVNode("span",null,e.toDisplayString(t.label),1)],8,Te)):e.createCommentVNode("",!0)]),e.createElementVNode("div",De,[e.renderSlot(d.$slots,"default",{},()=>[e.createVNode(N,e.mergeProps(d.$attrs,{id:t.id,modelValue:e.unref(a),"onUpdate:modelValue":s[0]||(s[0]=r=>e.isRef(a)?a.value=r:null),"data-testid":`input-${t.id}`,class:[t.error&&"-error","input"],invert:t.invert,"aria-invalid":!!t.error,"aria-describedby":i(t.hint,t.error)}),null,16,["id","modelValue","data-testid","class","invert","aria-invalid","aria-describedby"])]),e.renderSlot(d.$slots,"icon")]),o(t.hint,t.error)?(e.openBlock(),e.createElementBlock("span",{key:0,id:`hint-${t.id}`,class:"hint"},e.toDisplayString(t.hint),9,Pe)):t.error?(e.openBlock(),e.createElementBlock("span",{key:1,id:`error-${t.id}`,class:"error"},e.toDisplayString(t.error),9,Le)):e.createCommentVNode("",!0)],10,Oe)}}}),_n="",Ae={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Re=[e.createElementVNode("g",{fill:"currentColor"},[e.createElementVNode("path",{d:"M15 12a3 3 0 1 1-6 0a3 3 0 0 1 6 0z"}),e.createElementVNode("path",{d:"M21.894 11.553C19.736 7.236 15.904 5 12 5c-3.903 0-7.736 2.236-9.894 6.553a1 1 0 0 0 0 .894C4.264 16.764 8.096 19 12 19c3.903 0 7.736-2.236 9.894-6.553a1 1 0 0 0 0-.894zM12 17c-2.969 0-6.002-1.62-7.87-5C5.998 8.62 9.03 7 12 7c2.969 0 6.002 1.62 7.87 5c-1.868 3.38-4.901 5-7.87 5z"})],-1)];function Fe(t,l){return e.openBlock(),e.createElementBlock("svg",Ae,Re)}const He={name:"mi-eye",render:Fe},Ke={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},qe=[e.createElementVNode("path",{fill:"currentColor",d:"M4.707 3.293a1 1 0 0 0-1.414 1.414l2.424 2.424c-1.43 1.076-2.678 2.554-3.611 4.422a1 1 0 0 0 0 .894C4.264 16.764 8.096 19 12 19c1.555 0 3.1-.355 4.53-1.055l2.763 2.762a1 1 0 0 0 1.414-1.414l-16-16zm10.307 13.135c-.98.383-2 .572-3.014.572c-2.969 0-6.002-1.62-7.87-5c.817-1.479 1.858-2.62 3.018-3.437l2.144 2.144a3 3 0 0 0 4.001 4.001l1.72 1.72zm3.538-2.532c.483-.556.926-1.187 1.318-1.896c-1.868-3.38-4.9-5-7.87-5c-.112 0-.224.002-.336.007L9.879 5.223A10.215 10.215 0 0 1 12 5c3.903 0 7.736 2.236 9.894 6.553a1 1 0 0 1 0 .894a13.106 13.106 0 0 1-1.925 2.865l-1.417-1.416z"},null,-1)];function Ue(t,l){return e.openBlock(),e.createElementBlock("svg",Ke,qe)}const Ge={name:"mi-eye-off",render:Ue},Qe=["aria-label"],q=e.defineComponent({__name:"TextfieldPassword",props:{id:{default:""},label:{default:"Sua senha"}},setup(t){const l=e.ref(!1),n=e.computed(()=>l.value?"text":"password");return(a,o)=>(e.openBlock(),e.createBlock(T,{id:t.id,required:"",type:e.unref(n),label:t.label,placeholder:"Insira sua senha"},{icon:e.withCtx(()=>[e.createElementVNode("button",{type:"button","data-testid":"toggle-type-password","aria-label":l.value?"Hide password":"Show password",onClick:o[0]||(o[0]=i=>l.value=!l.value)},[e.withDirectives(e.createVNode(e.unref(He),{"aria-hidden":"true"},null,512),[[e.vShow,l.value]]),e.withDirectives(e.createVNode(e.unref(Ge),{"aria-hidden":"true"},null,512),[[e.vShow,!l.value]])],8,Qe)]),_:1},8,["id","type","label"]))}});T.install=t=>{t.component("SolTextfield",T)},q.install=t=>{t.component("SolTextfieldPassword",q)};const je=["id","data-testid"],Ye=["for"],We={class:"container-textarea"},Ze=["id","data-testid","invert","aria-invalid","aria-describedby"],Je=["id"],Xe=["id"],U=e.defineComponent({__name:"Textarea",props:{id:null,class:null,modelValue:{default:""},label:{default:"label"},hint:null,invert:{type:Boolean},resize:{default:"both"},error:null},emits:["update:modelValue"],setup(t,{emit:l}){const n=t,a=e.computed({get:()=>n.modelValue,set:d=>{l("update:modelValue",d)}});function o(d,s){return!!d&&!s}function i(d,s){return s?`error-${n.id}`:o(d,s)?`hint-${n.id}`:null}return(d,s)=>{var c;return e.openBlock(),e.createElementBlock("div",{id:`textarea-${t.id}`,"data-testid":`textarea-${t.id}`,class:e.normalizeClass([[`${(c=d.$props.class)!=null?c:""}`,{"-invert":t.invert}],"sol-textarea-core"])},[e.renderSlot(d.$slots,"label",{},()=>[t.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:`input-${t.id}`,class:"label"},[e.createElementVNode("span",null,e.toDisplayString(t.label),1)],8,Ye)):e.createCommentVNode("",!0)]),e.createElementVNode("div",We,[e.renderSlot(d.$slots,"default",{},()=>[e.withDirectives(e.createElementVNode("textarea",e.mergeProps(d.$attrs,{id:`input-${t.id}`,"onUpdate:modelValue":s[0]||(s[0]=r=>e.isRef(a)?a.value=r:null),"data-testid":`input-${t.id}`,class:[t.error&&"-error","textarea"],invert:t.invert,style:{resize:t.resize},"aria-invalid":!!t.error,"aria-describedby":i(t.hint,t.error)}),null,16,Ze),[[e.vModelText,e.unref(a)]])])]),o(t.hint,t.error)?(e.openBlock(),e.createElementBlock("span",{key:0,id:`hint-${t.id}`,class:"hint"},e.toDisplayString(t.hint),9,Je)):t.error?(e.openBlock(),e.createElementBlock("span",{key:1,id:`error-${t.id}`,class:"error"},e.toDisplayString(t.error),9,Xe)):e.createCommentVNode("",!0)],10,je)}}}),tl="";U.install=t=>{t.component("SolTextarea",U)};const _e=["id","data-testid","checked","value","name"],ve=["for"],et={inheritAttrs:!1},D=e.defineComponent({...et,__name:"Radio",props:{id:null,name:null,value:null,label:null,checked:null,class:null},emits:["change"],setup(t,{emit:l}){return(n,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["sol-radio-core",n.$props.class])},[e.createElementVNode("input",e.mergeProps(n.$attrs,{id:`radio-${t.name}-${t.id}`,type:"radio",class:"radio","data-testid":`radio-${t.name}-${t.id}`,checked:t.checked,value:t.value,name:t.name,onChange:a[0]||(a[0]=o=>l("change",t.value))}),null,16,_e),e.createElementVNode("label",{class:"label",for:`radio-${t.name}-${t.id}`},e.toDisplayString(t.label),9,ve)],2))}}),nl="",tt=["aria-labelledby"],nt=["id","data-testid"],lt=["id","data-testid"],ot=["id","data-testid"],G=e.defineComponent({__name:"RadioGroup",props:{id:null,title:null,hideTitle:{type:Boolean,default:!1},hint:null,error:null,radios:null,modelValue:null,direction:{default:"row"}},emits:["change","update:modelValue"],setup(t,{emit:l}){const n=t;function a(s,c){return!!s&&!c}function o(s,c){return c?`error-${n.id}`:a(s,c)?`hint-${n.id}`:null}function i(s){return(n==null?void 0:n.modelValue)===s}function d(s){l("change",s.value),l("update:modelValue",s.value)}return(s,c)=>(e.openBlock(),e.createElementBlock("fieldset",{class:"sol-radio-group-core","aria-labelledby":`radio-group-title-${t.id}`},[e.renderSlot(s.$slots,"title",{id:`radio-group-title-${t.id}`},()=>[e.createElementVNode("legend",{id:`radio-group-title-${t.id}`,class:e.normalizeClass(["title",{"sr-only":t.hideTitle}]),"data-testid":`radio-group-title-${t.id}`},e.toDisplayString(t.title),11,nt)]),e.createElementVNode("ul",{class:e.normalizeClass(["container-radios",{"flex-col":t.direction==="column"}])},[e.renderSlot(s.$slots,"default",{radios:t.radios,direction:t.direction},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.radios,(r,m)=>{var B;return e.openBlock(),e.createElementBlock("li",{key:m},[e.createVNode(D,e.mergeProps(s.$attrs,{id:(B=r==null?void 0:r.id)!=null?B:`${r.value}`,class:["radio",{"mb-micro":t.direction==="column","mr-micro":t.direction==="row"}],name:r.name,value:r.value,label:r.label,checked:i(r.value),"aria-invalid":!!t.error,"aria-describedby":o(t.hint,t.error),onChange:h=>d(r)}),null,16,["id","class","name","value","label","checked","aria-invalid","aria-describedby","onChange"])])}),128))])],2),a(t.hint,t.error)?(e.openBlock(),e.createElementBlock("p",{key:0,id:`radios-hint-${t.id}`,"data-testid":`radios-hint-${t.id}`,class:"hint"},e.toDisplayString(t.hint),9,lt)):t.error?(e.openBlock(),e.createElementBlock("p",{key:1,id:`radios-error-${t.id}`,"data-testid":`radios-error-${t.id}`,class:"error"},e.toDisplayString(t.error),9,ot)):e.createCommentVNode("",!0)],8,tt))}}),ll="";D.install=t=>{t.component("SolRadio",D)},G.install=t=>{t.component("SolRadioGroup",G)};const at=["id","data-testid","checked","value","name"],it=["for"],P=e.defineComponent({__name:"Checkbox",props:{id:null,name:null,value:null,label:null,checked:null,class:null},emits:["change"],setup(t,{emit:l}){return(n,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["sol-checkbox-core",n.$props.class])},[e.createElementVNode("input",e.mergeProps(n.$attrs,{id:`checkbox-${t.name}-${t.id}`,type:"checkbox",class:"checkbox","data-testid":`checkbox-${t.name}-${t.id}`,checked:t.checked,value:t.value,name:t.name,onChange:a[0]||(a[0]=o=>l("change",t.value))}),null,16,at),e.createElementVNode("label",{class:"label",for:`checkbox-${t.name}-${t.id}`},e.toDisplayString(t.label),9,it)],2))}}),ol="",dt=["aria-labelledby"],st=["id","data-testid"],ct=["id"],rt=["id"],Q=e.defineComponent({__name:"CheckboxGroup",props:{id:null,title:null,hideTitle:{type:Boolean,default:!1},hint:null,error:null,checkboxes:null,modelValue:null,direction:{default:"row"}},emits:["change","update:modelValue"],setup(t,{emit:l}){const n=t;function a(c,r){return!!c&&!r}function o(c,r){return r?`error-${n.id}`:a(c,r)?`hint-${n.id}`:null}function i(c){var r;return(r=n==null?void 0:n.modelValue)==null?void 0:r.includes(c)}function d(c){return Array.isArray(n==null?void 0:n.modelValue)?[...n.modelValue,c]:[c]}function s(c){var m;l("change",c.value);const r=i(c.value)?(m=n.modelValue)==null?void 0:m.filter(B=>B!==c.value):d(c.value);l("update:modelValue",r)}return(c,r)=>(e.openBlock(),e.createElementBlock("fieldset",{class:"sol-checkbox-group-core","aria-labelledby":`checkbox-group-title-${t.id}`},[e.renderSlot(c.$slots,"title",{id:`checkbox-group-title-${t.id}`},()=>[e.createElementVNode("legend",{id:`checkbox-group-title-${t.id}`,class:e.normalizeClass(["title",{"sr-only":t.hideTitle}]),"data-testid":`checkbox-group-title-${t.id}`},e.toDisplayString(t.title),11,st)]),e.createElementVNode("ul",{class:e.normalizeClass(["container-checkboxes",{"flex-col":t.direction==="column"}])},[e.renderSlot(c.$slots,"default",{checkboxes:t.checkboxes,direction:t.direction},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.checkboxes,(m,B)=>{var h;return e.openBlock(),e.createElementBlock("li",{key:B},[e.createVNode(P,e.mergeProps(c.$attrs,{id:(h=m==null?void 0:m.id)!=null?h:`${m.value}`,class:["checkbox",{"mb-micro":t.direction==="column","mr-micro":t.direction==="row"}],label:m.label,name:m.name,value:m.value,checked:i(m.value),"aria-invalid":!!t.error,"aria-describedby":o(t.hint,t.error),onChange:y=>s(m)}),null,16,["id","class","label","name","value","checked","aria-invalid","aria-describedby","onChange"])])}),128))])],2),a(t.hint,t.error)?(e.openBlock(),e.createElementBlock("p",{key:0,id:`hint-${t.id}`,class:"hint"},e.toDisplayString(t.hint),9,ct)):t.error?(e.openBlock(),e.createElementBlock("p",{key:1,id:`error-${t.id}`,class:"error"},e.toDisplayString(t.error),9,rt)):e.createCommentVNode("",!0)],8,dt))}}),al="";P.install=t=>{t.component("SolCheckbox",P)},Q.install=t=>{t.component("SolCheckboxGroup",Q)};const mt=["id","for","data-testid"],ut={class:"switch-container"},ft=["id","aria-checked","aria-labelledby","data-testid","checked","value","name"],ht=e.createElementVNode("span",{class:"ellipse"},null,-1),j=e.defineComponent({__name:"Switch",props:{id:null,name:null,value:null,label:null,checked:{type:Boolean},class:null,hideLabel:{type:Boolean},horizontalLabel:{type:Boolean}},emits:["change"],setup(t,{emit:l}){return(n,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["sol-switch-core",[n.$props.class,{"-horizontal":t.horizontalLabel}]])},[e.createElementVNode("label",{id:`switch-label-${t.name}-${t.id}`,class:e.normalizeClass(["label",{"mb-1":!t.horizontalLabel,"sr-only":t.hideLabel}]),for:`switch-${t.name}-${t.id}`,"data-testid":`switch-label-${t.name}-${t.id}`},e.toDisplayString(t.label),11,mt),e.createElementVNode("div",ut,[e.createElementVNode("input",e.mergeProps(n.$attrs,{id:`switch-${t.name}-${t.id}`,type:"checkbox",class:"switch",role:"switch","aria-checked":t.checked,"aria-labelledby":`switch-label-${t.name}-${t.id}`,"data-testid":`switch-${t.name}-${t.id}`,checked:t.checked,value:t.value,name:t.name,onChange:a[0]||(a[0]=o=>l("change",t.value))}),null,16,ft),ht])],2))}}),il="";j.install=t=>{t.component("SolSwitch",j)};var ce;const L=typeof window<"u",$t=t=>typeof t=="string",ee=()=>{};L&&((ce=window==null?void 0:window.navigator)==null?void 0:ce.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function bt(t){return typeof t=="function"?t():e.unref(t)}function yt(t){return t}function kt(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function A(t){var l;const n=bt(t);return(l=n==null?void 0:n.$el)!=null?l:n}const re=L?window:void 0;L&&window.document,L&&window.navigator,L&&window.location;function Y(...t){let l,n,a,o;if($t(t[0])?([n,a,o]=t,l=re):[l,n,a,o]=t,!l)return ee;let i=ee;const d=e.watch(()=>A(l),c=>{i(),c&&(c.addEventListener(n,a,o),i=()=>{c.removeEventListener(n,a,o),i=ee})},{immediate:!0,flush:"post"}),s=()=>{d(),i()};return kt(s),s}function te(t,l,n={}){const{window:a=re,ignore:o,capture:i=!0,detectIframe:d=!1}=n;if(!a)return;const s=e.ref(!0);let c;const r=h=>{a.clearTimeout(c);const y=A(t),w=h.composedPath();!y||y===h.target||w.includes(y)||!s.value||o&&o.length>0&&o.some(S=>{const p=A(S);return p&&(h.target===p||w.includes(p))})||l(h)},m=[Y(a,"click",r,{passive:!0,capture:i}),Y(a,"pointerdown",h=>{const y=A(t);s.value=!!y&&!h.composedPath().includes(y)},{passive:!0}),Y(a,"pointerup",h=>{if(h.button===0){const y=h.composedPath();h.composedPath=()=>y,c=a.setTimeout(()=>r(h),50)}},{passive:!0}),d&&Y(a,"blur",h=>{var y;const w=A(t);((y=document.activeElement)==null?void 0:y.tagName)==="IFRAME"&&!(w!=null&&w.contains(document.activeElement))&&l(h)})].filter(Boolean);return()=>m.forEach(h=>h())}const ne=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},le="__vueuse_ssr_handlers__";ne[le]=ne[le]||{},ne[le];var me;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(me||(me={}));var gt=Object.defineProperty,ue=Object.getOwnPropertySymbols,Bt=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable,fe=(t,l,n)=>l in t?gt(t,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[l]=n,St=(t,l)=>{for(var n in l||(l={}))Bt.call(l,n)&&fe(t,n,l[n]);if(ue)for(var n of ue(l))wt.call(l,n)&&fe(t,n,l[n]);return t};St({linear:yt},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});const Ct={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Et=[e.createElementVNode("path",{fill:"currentColor",d:"M10 4a6 6 0 1 0 0 12a6 6 0 0 0 0-12zm-8 6a8 8 0 1 1 14.32 4.906l5.387 5.387a1 1 0 0 1-1.414 1.414l-5.387-5.387A8 8 0 0 1 2 10z"},null,-1)];function Vt(t,l){return e.openBlock(),e.createElementBlock("svg",Ct,Et)}const he={name:"mi-search",render:Vt},pt=["data-testid"],xt=["id","for"],Nt=["id","disabled","data-testid","aria-expanded","aria-labelledby","aria-label","aria-controls","onClick"],zt={class:"dropdown-container"},It=["id","data-testid","aria-multiselectable","aria-labelledby"],Mt=["id","data-testid","selected","aria-selected","onClick","onKeyup"],Ot={key:0,class:"no-data"},Tt=e.createTextVNode(" Sem dados "),W=e.defineComponent({__name:"Dropdown",props:{id:null,label:null,ariaLabel:null,smallerWidth:{type:Boolean},disabled:{type:Boolean},loading:{type:Boolean,default:!1},searchable:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},fetchOnSearch:{type:Boolean,default:!1},isMultipleSelect:{type:Boolean},searchPlaceholder:null,selected:null,options:{default:()=>[]}},emits:["closeDropdown","search","update:selected"],setup(t,{emit:l}){const n=t,a=e.ref(),o=e.ref(!1),i=e.ref(""),d=e.computed(()=>{var f;return n.fetchOnSearch?n.options:(f=n.options)==null?void 0:f.filter(u=>typeof u=="string"?u.includes(i.value):u.name.includes(i.value))}),s=e.computed(()=>Array.isArray(n.selected)?n.selected.join(", ").trim():n.selected);te(a,()=>{o.value&&m()});function c(){n.disabled||(o.value?m():r())}function r(){o.value=!0}function m(){ie(),l("closeDropdown")}function B(f){const u=new Set(n.selected);return u.has(f)?u.delete(f):u.add(f),[...u]}function h(f){const u=typeof f=="string"?f:f.value,g=n.isMultipleSelect?B(u):u;l("update:selected",g),n.closeOnSelect&&!n.isMultipleSelect&&m()}function y(f){return Array.isArray(n.selected)?typeof f=="string"?n.selected.includes(f):n.selected.includes(f.value):typeof f=="string"?f===n.selected:f.value===n.selected}const w=e.reactive({list:void 0,search:void 0}),S=e.reactive({id:"",index:0});function p({code:f}){const u=C=>{const z=C!=null?C:S.index;C!==void 0&&(S.index=C),setTimeout(()=>{var $,b;const x=($=w.list)==null?void 0:$.children[z];S.id=(b=x==null?void 0:x.id)!=null?b:"",x==null||x.focus()},0)},g=()=>{var C;n.searchable&&(S.index=0,(C=w==null?void 0:w.search)==null||C.focus())};switch(f){case"ArrowUp":return S.index>0&&(S.index-=1),u();case"ArrowDown":return o.value?(S.index<d.value.length-1&&(S.index+=1),u()):(r(),u(0));case"Home":return u(0);case"End":return u(n.options.length-1);case"Escape":return m();default:!["Enter","NumpadEnter","Space"].includes(f)&&g()}}function ie(){o.value=!1,S.index=0,i.value=""}function O(f,u){return typeof f=="string"?f:f[u!=null?u:"value"]}function _(f,u){w[f]=u!=null?u:void 0}return(f,u)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"el",ref:a,class:e.normalizeClass(["sol-dropdown-core",{"-smaller":t.smallerWidth}]),"data-testid":`dropdown-${t.id}`,onKeydownPassive:p},[e.renderSlot(f.$slots,"label",{},()=>[e.createElementVNode("label",{id:`label-dropdown-${t.id}`,class:e.normalizeClass(["label",{"-disabled":t.disabled,"sr-only":t.ariaLabel}]),for:`toggle-dropdown-${t.id}`},e.toDisplayString(t.label||t.ariaLabel),11,xt)]),e.createElementVNode("button",{id:`toggle-dropdown-${t.id}`,disabled:t.disabled,"data-testid":`toggle-dropdown-${t.id}`,class:"button-toggle-dropdown toggle-dropdown","aria-haspopup":"listbox","aria-expanded":o.value,"aria-labelledby":`label-dropdown-${t.id}`,"aria-label":t.ariaLabel,"aria-controls":`dropdown-list-${t.id}`,onClick:e.withModifiers(c,["stop"])},[e.renderSlot(f.$slots,"toggle-dropdown",{toggle:{open:r,close:m,toggleDropdown:c},isOpen:o.value,select:h,selectedSanitized:e.unref(s),selected:t.selected},()=>[e.createTextVNode(e.toDisplayString(e.unref(s)||"Selecione"),1)])],8,Nt),e.createVNode(e.Transition,{mode:"out-in",name:"dropdown"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",zt,[t.searchable?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["search-container",{"-loading":t.loading}])},[e.renderSlot(f.$slots,"search",{filter:i.value},()=>[e.createVNode(N,{id:`search-dropdown-${t.id}`,ref:g=>_("search",g==null?void 0:g.input),modelValue:i.value,"onUpdate:modelValue":u[0]||(u[0]=g=>i.value=g),"data-testid":`search-dropdown-${t.id}`,role:"combobox",class:"search","aria-autocomplete":"list",placeholder:t.searchPlaceholder,"aria-expanded":o.value,"aria-haspopup":"listbox","aria-owns":`dropdown-list-${t.id}`,"aria-controls":`dropdown-list-${t.id}`,"aria-activedescendant":S.id,"aria-labelledby":`label-dropdown-${t.id}`,onClick:u[1]||(u[1]=e.withModifiers(()=>{},["stop"])),onInput:u[2]||(u[2]=g=>{var C;return l("search",(C=g.target)==null?void 0:C.value)})},null,8,["id","modelValue","data-testid","placeholder","aria-expanded","aria-owns","aria-controls","aria-activedescendant","aria-labelledby"]),e.createVNode(e.unref(he),{"aria-hidden":"true",class:"icon"})])],2)):e.createCommentVNode("",!0),e.createElementVNode("ul",{id:`dropdown-list-${t.id}`,ref:g=>_("list",g),"data-testid":`dropdown-list-${t.id}`,role:"listbox",tabindex:"-1","aria-multiselectable":t.isMultipleSelect,"aria-labelledby":`label-dropdown-${t.id}`,class:"dropdown-list-core"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(d),(g,C)=>(e.openBlock(),e.createElementBlock("li",{id:`option-${t.id}-${O(g,"value")}`,key:C,"data-testid":`option-${t.id}-${O(g,"value")}`,role:"option",tabindex:"-1",class:"dropdown-item",style:e.normalizeStyle(`--item: ${C+1}`),selected:y(g),"aria-selected":y(g),onClick:z=>h(g),onKeyup:[e.withKeys(z=>h(g),["enter"]),e.withKeys(z=>h(g),["space"])]},[e.renderSlot(f.$slots,"default",{text:O(g,"name"),option:g,isSelect:y},()=>[e.createTextVNode(e.toDisplayString(O(g,"name")),1)])],44,Mt))),128)),e.unref(d).length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("li",Ot,[e.renderSlot(f.$slots,"no-data",{},()=>[Tt])]))],8,It)],512),[[e.vShow,o.value]])]),_:3})],42,pt))}}),cl="";W.install=t=>{t.component("SolDropdown",W)};const Dt={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Pt=[e.createElementVNode("path",{fill:"currentColor",d:"M5.293 5.293a1 1 0 0 1 1.414 0L12 10.586l5.293-5.293a1 1 0 1 1 1.414 1.414L13.414 12l5.293 5.293a1 1 0 0 1-1.414 1.414L12 13.414l-5.293 5.293a1 1 0 0 1-1.414-1.414L10.586 12L5.293 6.707a1 1 0 0 1 0-1.414z"},null,-1)];function Lt(t,l){return e.openBlock(),e.createElementBlock("svg",Dt,Pt)}const $e={name:"mi-close",render:Lt},At=["id","data-testid","title","aria-describedby","aria-disabled","onKeydown"],Rt=["id"],Ft={class:"label"},R=e.defineComponent({__name:"Chip",props:{id:null,label:null,selected:{type:Boolean},disabled:{type:Boolean},removable:{type:Boolean,default:!0}},emits:["close","update:selected"],setup(t,{emit:l}){const n=t;function a({code:o}){if(!n.disabled)switch(o){case"Enter":case"NumpadEnter":case"Space":return l("update:selected");case"Delete":case"Backspace":return n.removable&&l("close");default:return!1}}return(o,i)=>(e.openBlock(),e.createElementBlock("div",{id:`chip-${t.id}`,"data-testid":`chip-${t.id}`,class:e.normalizeClass(["sol-chip-core",{"-selected":t.selected,"-disabled":t.disabled}]),tabindex:"0",title:t.label,"aria-describedby":`chip-description-${t.id}`,"aria-disabled":t.disabled,onClick:i[1]||(i[1]=d=>l("update:selected")),onKeydown:e.withModifiers(a,["self"])},[e.createElementVNode("span",{id:`chip-description-${t.id}`,"z-index":"-1",class:"sr-only"},"Press Delete or Backspace to remove this Chip",8,Rt),e.createElementVNode("span",Ft,[e.renderSlot(o.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.label),1)])]),t.removable?(e.openBlock(),e.createElementBlock("i",{key:0,role:"presentation","aira-hidden":"true",class:"close",onClick:i[0]||(i[0]=e.withModifiers(d=>l("close"),["stop"]))},[e.createVNode(e.unref($e),{class:"icon"})])):e.createCommentVNode("",!0)],42,At))}}),ml="",Ht=["id","data-testid","aria-multiselectable","aria-labelledby"],Kt=["id","data-testid","selected","aria-selected","onClick","onKeyup"],qt={key:0,class:"no-data"},Ut=e.createTextVNode(" Sem dados "),Gt=e.defineComponent({__name:"ListOption",props:{id:null,options:null,multiple:{type:Boolean},isSelected:null},emits:["select"],setup(t,{expose:l,emit:n}){const a=e.ref("");return l({list:a}),(o,i)=>(e.openBlock(),e.createElementBlock("ul",{id:`select-list-${t.id}`,ref_key:"list",ref:a,"data-testid":`select-list-${t.id}`,role:"listbox",tabindex:"-1","aria-multiselectable":t.multiple,"aria-labelledby":`select-label-${t.id}`,class:"select-list-core"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,(d,s)=>(e.openBlock(),e.createElementBlock("li",{id:`option-${t.id}-${d.value}`,key:s,"data-testid":`option-${t.id}-${d.value}`,role:"option",tabindex:"-1",class:"select-option-item",style:e.normalizeStyle(`--item: ${s+1}`),selected:t.isSelected(d),"aria-selected":t.isSelected(d),onClick:c=>n("select",d),onKeyup:[e.withKeys(c=>n("select",d),["enter"]),e.withKeys(c=>n("select",d),["space"])]},[e.renderSlot(o.$slots,"item-list",{text:d.name,value:d.value,option:d,isSelected:t.isSelected(d)},()=>[e.createTextVNode(e.toDisplayString(d.name),1)])],44,Kt))),128)),t.options.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("li",qt,[e.renderSlot(o.$slots,"no-data",{},()=>[Ut])]))],8,Ht))}}),ul="",Qt={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},jt=[e.createElementVNode("path",{fill:"currentColor",d:"m17 10l-5 6l-5-6h10z"},null,-1)];function Yt(t,l){return e.openBlock(),e.createElementBlock("svg",Qt,jt)}const Wt={name:"mi-caret-down",render:Yt};function be(t,l){function n({code:a}){var d;const o=a;(()=>{if(!(l!=null&&l.fallback))return!1;const s=c=>Array.isArray(c)?!c.includes(o):o!==c;return l!=null&&l.exclude?!t.hasOwnProperty(o)&&s(l.exclude):!t.hasOwnProperty(o)})()&&(l==null||l.fallback()),t.hasOwnProperty(o)&&((d=t[o])==null||d.call(t))}return{navigate:n}}function ye({target:t,query:l}){const n=e.reactive({id:"",index:-1});function a(m){const B=m!=null?m:n.index,h=t==null?void 0:t.value;m!==void 0&&(n.index=m),setTimeout(()=>{var S;const y=h.children[B],w=l&&y.querySelector(l)?y.querySelector(l):y;n.id=(S=y==null?void 0:y.id)!=null?S:"",w==null||w.focus()},0)}function o(){n.index>0&&(n.index-=1,a())}function i(m){n.index<m-1&&(n.index+=1,a())}function d(){a(0)}function s(m){a(m-1)}function c(m){return m.id?m.id===n.id:m.index===n.index}function r(){n.id="",n.index=-1}return{elementFocus:n,isItemFocused:c,resetStateFocus:r,focusListItem:a,focusOnPreviousItem:o,focusOnNextItem:i,focusOnFirstItem:d,focusOnLastItem:s}}const Zt=["data-testid"],Jt=["id"],Xt=["id","disabled","data-testid","aria-expanded","aria-labelledby","aria-label","aria-controls","onClick"],_t={key:0,class:"container-tags"},vt={key:1,class:"mr-micro placeholder-inline",tabindex:"-1"},en={class:"error"},tn={class:"select-options-container"},Z=e.defineComponent({__name:"Select",props:{id:null,label:null,ariaLabel:null,smallerWidth:{type:Boolean},disabled:{type:Boolean},loading:{type:Boolean,default:!1},searchable:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},fetchOnSearch:{type:Boolean,default:!1},multiple:{type:Boolean},searchPlaceholder:null,selected:null,options:{default:()=>[]},error:null,placeholder:{default:"placeholder"}},emits:["closeDropdown","search","update:selected"],setup(t,{emit:l}){const n=t,a=e.ref(),o=e.ref(!1),i=e.ref(""),d=e.computed(()=>{var $;return n.fetchOnSearch?n.options:($=n.options)==null?void 0:$.filter(b=>b.name.includes(i.value))});te(a,()=>{o.value&&r()});function s(){n.disabled||(o.value?r():c())}function c(){o.value=!0}function r(){C(),l("closeDropdown")}function m($){if(Array.isArray(n.selected)){const b=n.selected.findIndex(({value:E})=>E===$.value);return b===-1?[...n.selected,$]:n.selected.filter((E,V)=>V!==b)}return[$]}function B($){n.multiple?l("update:selected",m($)):l("update:selected",$),n.closeOnSelect&&!n.multiple&&r()}function h($){var b;return Array.isArray(n.selected)?n.selected.some(({value:E})=>E===$.value):$.value===((b=n.selected)==null?void 0:b.value)}const y=e.ref(),w=e.ref();function S(){var $;n.searchable&&(u(),($=y.value)==null||$.focus())}const{elementFocus:p,focusOnFirstItem:ie,focusOnLastItem:O,focusOnNextItem:_,focusOnPreviousItem:f,resetStateFocus:u}=ye({target:w}),{navigate:g}=be({Home:ie,End:()=>O(n.options.length),ArrowUp:f,ArrowDown:()=>{!o.value&&c(),_(n.options.length)},Escape:r},{fallback:S,exclude:["Enter","NumpadEnter","Space"]});function C(){o.value=!1,i.value="",u()}function z($){return b=>{$==="search"?y.value=b==null?void 0:b.input:w.value=b==null?void 0:b.list}}function x(){var b;const $=n.selected;return(b=$==null?void 0:$.name)!=null?b:n.placeholder}return($,b)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"el",ref:a,class:e.normalizeClass(["sol-select-core",{"-smaller":t.smallerWidth}]),"data-testid":`select-${t.id}`,onKeydownPassive:b[3]||(b[3]=(...E)=>e.unref(g)&&e.unref(g)(...E))},[e.renderSlot($.$slots,"label",{id:`select-label-${t.id}`,for:`select-toggle-${t.id}`},()=>[t.label?(e.openBlock(),e.createElementBlock("label",{key:0,id:`select-label-${t.id}`,class:e.normalizeClass(["label",{"-disabled":t.disabled}])},e.toDisplayString(t.label),11,Jt)):e.createCommentVNode("",!0)]),e.createElementVNode("button",{id:`select-toggle-${t.id}`,disabled:t.disabled,"data-testid":`select-toggle-${t.id}`,class:"select-button-toggle","aria-haspopup":"listbox","aria-expanded":o.value,"aria-labelledby":`select-label-${t.id}`,"aria-label":t.ariaLabel,"aria-controls":`select-list-${t.id}`,onClick:e.withModifiers(s,["stop"])},[e.renderSlot($.$slots,"toggle-dropdown",{toggle:{open:c,close:r,toggleDropdown:s},isOpen:o.value,select:B,selected:t.selected},()=>{var E;return[t.multiple&&Array.isArray(t.selected)&&((E=t.selected)==null?void 0:E.length)?(e.openBlock(),e.createElementBlock("div",_t,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.selected,(V,de)=>(e.openBlock(),e.createBlock(R,{id:V.value,key:de,label:V.name,onClick:e.withModifiers(se=>B(V),["stop"]),onClose:se=>B(V)},null,8,["id","label","onClick","onClose"]))),128))])):(e.openBlock(),e.createElementBlock("span",vt,e.toDisplayString(x()),1)),e.createVNode(e.unref(Wt),{"aria-hidden":"true",tabindex:"-1",class:e.normalizeClass(["icon",{"-open":o.value}])},null,8,["class"])]})],8,Xt),e.createElementVNode("span",en,e.toDisplayString(t.error),1),e.createVNode(e.Transition,{mode:"out-in",name:"dropdown"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",tn,[e.renderSlot($.$slots,"search",{},()=>[t.searchable?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["search-container",{"-loading":t.loading}])},[e.renderSlot($.$slots,"search",{filter:i.value},()=>[e.createVNode(N,{id:`select-search-${t.id}`,ref:z("search"),modelValue:i.value,"onUpdate:modelValue":b[0]||(b[0]=E=>i.value=E),"data-testid":`select-search-${t.id}`,role:"combobox",class:"search","aria-autocomplete":"list",placeholder:t.searchPlaceholder,"aria-expanded":o.value,"aria-haspopup":"listbox","aria-owns":`select-list-${t.id}`,"aria-controls":`select-list-${t.id}`,"aria-activedescendant":e.unref(p).id,"aria-labelledby":`select-label-${t.id}`,onClick:b[1]||(b[1]=e.withModifiers(()=>{},["stop"])),onInput:b[2]||(b[2]=E=>{var V;return l("search",(V=E.target)==null?void 0:V.value)})},null,8,["id","modelValue","data-testid","placeholder","aria-expanded","aria-owns","aria-controls","aria-activedescendant","aria-labelledby"]),e.createVNode(e.unref(he),{"aria-hidden":"true",class:"icon"})])],2)):e.createCommentVNode("",!0),e.createVNode(Gt,{id:t.id,ref:z("list"),options:e.unref(d),multiple:t.multiple,"is-selected":h,onSelect:B},{"item-list":e.withCtx(({text:E,value:V,option:de,isSelected:se})=>[e.renderSlot($.$slots,"default",{text:E,value:V,option:de,isSelected:se})]),"no-data":e.withCtx(()=>[e.renderSlot($.$slots,"no-data")]),_:3},8,["id","options","multiple"])])],512),[[e.vShow,o.value]])]),_:3})],42,Zt))}}),hl="";Z.install=t=>{t.component("SolSelect",Z)},R.install=t=>{t.component("SolChip",R)};const nn={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},ln=[e.createElementVNode("path",{fill:"currentColor",d:"M12 14.975q-.2 0-.387-.075q-.188-.075-.313-.2l-4.6-4.6q-.275-.275-.275-.7q0-.425.275-.7q.275-.275.7-.275q.425 0 .7.275l3.9 3.9l3.9-3.9q.275-.275.7-.275q.425 0 .7.275q.275.275.275.7q0 .425-.275.7l-4.6 4.6q-.15.15-.325.212q-.175.063-.375.063Z"},null,-1)];function on(t,l){return e.openBlock(),e.createElementBlock("svg",nn,ln)}const ke={name:"material-symbols-keyboard-arrow-down-rounded",render:on},an=["id","data-testid","aria-disabled"],dn=["data-testid","tabindex"],sn={class:"container-title"},cn={class:"icon"},rn=["data-testid"],J=e.defineComponent({__name:"Accordion",props:{id:null,title:{default:"Title"},onColor:{type:Boolean},disabled:{type:Boolean}},setup(t){return(l,n)=>(e.openBlock(),e.createElementBlock("details",{id:`accordion-${t.id}`,"data-testid":`accordion-${t.id}`,class:e.normalizeClass(["sol-accordion-core",{"-on-color":t.onColor,"-disabled":t.disabled}]),"aria-disabled":t.disabled},[e.createElementVNode("summary",{"data-testid":`accordion-title-${t.id}`,class:"summary",tabindex:t.disabled?-1:0},[e.createElementVNode("div",sn,[e.createElementVNode("span",cn,[e.renderSlot(l.$slots,"icon")]),e.renderSlot(l.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)])]),e.createVNode(e.unref(ke),{class:"icon","aria-hidden":"true"})],8,dn),e.createElementVNode("div",{"data-testid":`accordion-content-${t.id}`,class:"accordion-content"},[e.renderSlot(l.$slots,"default")],8,rn)],10,an))}}),bl="";J.install=t=>{t.component("SolAccordion",J)};const mn=["id","data-testid"],un=["id","aria-expanded"],fn=["id","data-testid","aria-labelledby"],F=e.defineComponent({__name:"Menu",props:{id:null,label:{default:"Teste"},position:{default:"bottom"}},setup(t){const l=e.ref();te(l,()=>{B()});const n=e.ref(!1),a=e.ref(),o=e.computed(()=>a.value?a.value.childElementCount:0),{resetStateFocus:i,focusOnPreviousItem:d,focusOnNextItem:s,focusOnFirstItem:c,focusOnLastItem:r}=ye({target:a,query:'[role="menuitem"]'}),{navigate:m}=be({Home:c,End:()=>r(o.value),ArrowUp:d,ArrowDown:()=>{!n.value&&h(),s(o.value)},Escape:B});function B(){n.value=!1,i()}function h(){n.value=!0}function y(){n.value?B():h()}return(w,S)=>(e.openBlock(),e.createElementBlock("div",{id:`menu-${t.id}`,ref_key:"el",ref:l,"data-testid":`menu-${t.id}`,class:e.normalizeClass([`-${t.position}`,"sol-menu-core"]),onKeyupPassive:S[0]||(S[0]=(...p)=>e.unref(m)&&e.unref(m)(...p))},[e.createElementVNode("button",{id:`menu-button-${t.id}`,type:"button",role:"menuitem",class:"toggle-menu","aria-haspopup":"true","aria-expanded":n.value,onClick:y},[e.renderSlot(w.$slots,"label",{isOpen:n.value},()=>[e.createTextVNode(e.toDisplayString(t.label),1)])],8,un),e.withDirectives(e.createElementVNode("menu",{id:`menu-container-${t.id}`,ref_key:"menu",ref:a,"data-testid":`menu-container-${t.id}`,role:"menu","aria-labelledby":`menu-button-${t.id}`,class:e.normalizeClass(["menu",{"-open":n.value}])},[e.renderSlot(w.$slots,"default",{close:B})],10,fn),[[e.vShow,n.value]])],42,mn))}}),yl="";F.install=t=>{t.component("SolMenu",F)};const hn=["id"],$n=["href","target"],H=e.defineComponent({__name:"MenuItemLink",props:{id:null,linkId:null,text:null,link:null,active:null,external:null},emits:["clicked"],setup(t,{emit:l}){return(n,a)=>{var o;return e.openBlock(),e.createElementBlock("li",{id:`menu-item-link-${t.id}`,class:"sol-menuitem-link-core",tabindex:"-1",role:"none",onClick:a[0]||(a[0]=i=>l("clicked")),onKeyup:[a[1]||(a[1]=e.withKeys(i=>l("clicked"),["enter"])),a[2]||(a[2]=e.withKeys(i=>l("clicked"),["space"]))]},[e.renderSlot(n.$slots,"default",{id:(o=t.linkId)!=null?o:t.id,active:t.active,link:t.link,text:t.text,external:t.external},()=>[e.createElementVNode("a",{role:"menuitem",class:e.normalizeClass({"-active":t.active}),href:t.link,target:t.external?"_blank":"_parent"},e.toDisplayString(t.text),11,$n)])],40,hn)}}}),kl="";H.install=t=>{t.component("SolMenuItemLink",H)};const bn={class:"label-container"},yn={class:"label"},X=e.defineComponent({__name:"MenuNavigationLinks",props:{id:null,label:null,linkItems:null},setup(t){return(l,n)=>(e.openBlock(),e.createBlock(F,{id:`navigation-${t.id}`,class:"sol-menu-navigation-links-core"},{label:e.withCtx(({isOpen:a})=>[e.renderSlot(l.$slots,"label",{isOpen:a},()=>[e.createElementVNode("div",bn,[e.createElementVNode("span",yn,e.toDisplayString(t.label),1),e.createVNode(e.unref(ke),{class:e.normalizeClass(["icon",{"-opened":a}]),"aria-hidden":"true"},null,8,["class"])])])]),default:e.withCtx(({close:a})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.linkItems,(o,i)=>{var d;return e.openBlock(),e.createBlock(H,{id:`${t.id}-${(d=o==null?void 0:o.id)!=null?d:o.text}`,key:i,"link-id":o.id,text:o.text,link:o.link,external:o.external,active:o.active,onClicked:a},{default:e.withCtx(()=>{var s;return[e.renderSlot(l.$slots,"default",{id:(s=o.id)!=null?s:t.id,active:o.active,link:o.link,text:o.text,external:o.external})]}),_:2},1032,["id","link-id","text","link","external","active","onClicked"])}),128))]),_:3},8,["id"]))}}),gl="";X.install=t=>{t.component("SolMenuNavigationLinks",X)};const Bl="",wl="",Sl="",Cl="",ge=12,M={type:"success",timeout:5e3,showIcon:!0,showCloseButton:!0,position:"top-right",hideProgressBar:!1};function kn(t,l){const n=e.reactive({id:null,intervalId:null,startTime:0,remaining:l}),a=e.ref(100);function o(){clearInterval(n.intervalId),clearTimeout(n.id),n.remaining-=Date.now()-n.startTime}function i(){n.startTime=Date.now(),clearTimeout(n.id),n.intervalId=setInterval(()=>{a.value--},l/100-5),n.id=setTimeout(t,n.remaining)}function d(){clearInterval(n.intervalId),clearTimeout(n.id),a.value=100}return e.onMounted(()=>{if(l<=0)return!1}),e.onUnmounted(()=>{d()}),{start:i,stop:o,clear:d,progress:a}}function gn(t){return{stylePosition:e.computed(()=>{const{position:n,offset:a}=t();switch(n){case"top-left":return{left:"0",top:`${a}px`};case"bottom-left":return{left:"0",bottom:`${a}px`};case"bottom-right":return{right:"0",bottom:`${a}px`};case"top-center":return{top:`${a}px`,left:"0",right:"0",marginRight:"auto",marginLeft:"auto"};case"bottom-center":return{bottom:`${a}px`,left:"0",right:"0",marginRight:"auto",marginLeft:"auto"};default:return{right:"0",top:`${a}px`}}})}}var Be=(t=>(t["top-left"]="bounce-left",t["top-right"]="bounce-right",t["top-center"]="bounce-down",t["bottom-left"]="bounce-left",t["bottom-center"]="bounce-up",t["bottom-right"]="bounce-right",t))(Be||{});const Bn={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},wn=[e.createElementVNode("path",{fill:"currentColor",d:"M12 4a8 8 0 1 0 0 16a8 8 0 0 0 0-16zM2 12C2 6.477 6.477 2 12 2s10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12zm14.664-3.247a1 1 0 0 1 .083 1.411l-5.333 6a1 1 0 0 1-1.495 0l-2.666-3a1 1 0 0 1 1.494-1.328l1.92 2.159l4.586-5.16a1 1 0 0 1 1.411-.082z"},null,-1)];function Sn(t,l){return e.openBlock(),e.createElementBlock("svg",Bn,wn)}const Cn={name:"mi-circle-check",render:Sn},En={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Vn=[e.createElementVNode("path",{fill:"currentColor",d:"M12 4a8 8 0 1 0 0 16a8 8 0 0 0 0-16zM2 12C2 6.477 6.477 2 12 2s10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12zm5.793-4.207a1 1 0 0 1 1.414 0L12 10.586l2.793-2.793a1 1 0 1 1 1.414 1.414L13.414 12l2.793 2.793a1 1 0 0 1-1.414 1.414L12 13.414l-2.793 2.793a1 1 0 0 1-1.414-1.414L10.586 12L7.793 9.207a1 1 0 0 1 0-1.414z"},null,-1)];function pn(t,l){return e.openBlock(),e.createElementBlock("svg",En,Vn)}const xn={name:"mi-circle-error",render:pn},Nn={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},zn=[e.createElementVNode("g",{fill:"currentColor"},[e.createElementVNode("path",{d:"M12 4a8 8 0 1 0 0 16a8 8 0 0 0 0-16zM2 12C2 6.477 6.477 2 12 2s10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12z"}),e.createElementVNode("path",{d:"M12 14a1 1 0 0 1-1-1V7a1 1 0 1 1 2 0v6a1 1 0 0 1-1 1zm-1.5 2.5a1.5 1.5 0 1 1 3 0a1.5 1.5 0 0 1-3 0z"})],-1)];function In(t,l){return e.openBlock(),e.createElementBlock("svg",Nn,zn)}const Mn={name:"mi-circle-warning",render:In},On=["id","data-testid"],Tn={class:"content-wrapper"},Dn={key:0,class:"icon-container","aria-hidden":"true"},Pn={class:"content"},Ln={key:0,class:"description"},An=["data-testid"],Rn=e.defineComponent({__name:"Toast",props:{id:null,type:{default:M.type},visible:{type:Boolean,default:!1},title:null,description:null,timeout:null,hideProgressBar:{type:Boolean,default:M.hideProgressBar},showIcon:{type:Boolean,default:M.showIcon},offset:{default:0},onClose:null,onCloseHandler:null,position:{default:M.position}},setup(t){const l=t,{start:n,stop:a,progress:o}=kn(()=>{var r;(r=l.onCloseHandler)==null||r.call(l)},l.timeout),{stylePosition:i}=gn(()=>({offset:l.offset,position:l.position})),d=e.computed(()=>l.title&&l.description);function s(){l.timeout>0&&a()}function c(){n()}return e.onMounted(()=>{n()}),(r,m)=>(e.openBlock(),e.createBlock(e.Transition,{name:e.unref(Be)[t.position],type:"animation"},{default:e.withCtx(()=>[t.visible?(e.openBlock(),e.createElementBlock("div",{key:0,id:`toast-${t.type}-${t.id}`,role:"status","data-testid":`toast-${t.type}-${t.id}`,style:e.normalizeStyle(e.unref(i)),class:e.normalizeClass(["sol-toast-core",[`-${t.type}`,{"-multiline":e.unref(d)}]]),onKeyup:m[1]||(m[1]=e.withKeys((...B)=>t.onCloseHandler&&t.onCloseHandler(...B),["esc"])),onMouseenter:s,onMouseleave:c,onFocusin:s,onFocusout:c},[e.createElementVNode("section",Tn,[t.showIcon?(e.openBlock(),e.createElementBlock("div",Dn,[e.renderSlot(r.$slots,"icon-status",{type:t.type},()=>[t.type==="success"?(e.openBlock(),e.createBlock(e.unref(Cn),{key:0,class:"icon"})):e.createCommentVNode("",!0),t.type==="info"?(e.openBlock(),e.createBlock(e.unref(Mn),{key:1,class:"icon"})):e.createCommentVNode("",!0),t.type==="danger"?(e.openBlock(),e.createBlock(e.unref(xn),{key:2,class:"icon"})):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),e.createElementVNode("div",Pn,[e.createElementVNode("p",{class:e.normalizeClass(["title",{"-multiline":e.unref(d)}])},[e.renderSlot(r.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)])],2),t.description?(e.openBlock(),e.createElementBlock("p",Ln,[e.renderSlot(r.$slots,"description",{},()=>[e.createTextVNode(e.toDisplayString(t.description),1)])])):e.createCommentVNode("",!0)])]),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["close",{"-multiline":e.unref(d)}]),"data-testid":`toast-close-button-${t.type}-${t.id}`,"aria-label":"close notification",onClick:m[0]||(m[0]=(...B)=>t.onCloseHandler&&t.onCloseHandler(...B))},[e.createVNode(e.unref($e),{class:"icon"})],10,An),t.hideProgressBar?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"progressbar","aria-hidden":"true",style:e.normalizeStyle({width:`${e.unref(o)}%`})},null,4))],46,On)):e.createCommentVNode("",!0)]),_:3},8,["name"]))}}),xl="",K={"top-left":[],"top-right":[],"top-center":[],"bottom-left":[],"bottom-right":[],"bottom-center":[]};function Fn(){let t=0;function l(){Object.entries(K).forEach(([a,o])=>{o.length&&o.forEach(i=>{var s;const d=(s=i.toastVNode.props)==null?void 0:s.id;oe(d,a)})})}return{createToast:(a,o)=>{const i=t++,d=o?Hn(o):M;return o!=null&&o.showOneToast&&l(),Kn(i,d,typeof a=="string"?{title:a}:a),{close:()=>oe(i,d.position)}},clearAllToasts:l}}function Hn(t){const l={...M,...t,showIcon:t.showIcon};return l.hideProgressBar=!!(l.timeout&&(l==null?void 0:l.timeout)<=0),t.hideProgressBar&&(l.hideProgressBar=t.hideProgressBar),l}function Kn(t,l,n){setTimeout(()=>{const a=Un(l,K,ge),o=document.createElement("div");document.body.appendChild(o);const i=e.createVNode(Rn,qn(l,t,a,oe,n));e.render(i,o),K[l.position].push({toastVNode:i,container:o}),i.component&&(i.component.props.visible=!0)},1)}function qn(t,l,n,a,o){return{...t,...o,id:l,offset:n,visible:!1,onCloseHandler(){a(l,t.position?t.position:"top-right")}}}function Un(t,l,n){if(!t.position)throw new Error("no position");return l[t.position].reduce((a,{toastVNode:o})=>(a+=o.el.offsetHeight+n||0,a),n)}function Gn(t,l,n,a){for(let o=t;o<l.length;o++){const{toastVNode:i}=l[o];if(!i.el)return;const d=n.split("-")[0]||"top",s=parseInt(i.el.style[d],10)-a-ge;if(!i.component)return;i.component.props.offset=s}}function oe(t,l){var c;const n=K[l],a=n.findIndex(({toastVNode:r})=>{var m;return t===((m=r==null?void 0:r.props)==null?void 0:m.id)});if(a===-1)return;const{container:o,toastVNode:i}=n[a],d=(c=i==null?void 0:i.el)==null?void 0:c.offsetHeight;if(K[l].splice(a,1),Gn(a,n,l,d),!i.component)return;const s=i.component.props;s.visible=!1,s.onClose&&s.onClose(),setTimeout(()=>{e.render(null,o),document.body.removeChild(o)},1e3)}console.log("%c\u{1F33B}[Girassol]\u{1F33B}","padding: 8px;background: #212121;color: gold; font-family: 'Fira code'; font-weight: bold; font-size: 1.2rem");const ae={SolButton:I,SolButtonDestructive:v,SolInput:N,SolTextarea:U,SolTextfield:T,SolTextfieldPassword:q,SolRadio:D,SolRadioGroup:G,SolCheckbox:P,SolCheckboxGroup:Q,SolSwitch:j,SolDropdown:W,SolSelect:Z,SolChip:R,SolAccordion:J,SolMenu:F,SolMenuItemLink:H,SolMenuNavigationLinks:X};function Qn(t){for(const l in ae)t.component(l,ae[l])}k.SolAccordion=J,k.SolButton=I,k.SolButtonDestructive=v,k.SolCheckbox=P,k.SolCheckboxGroup=Q,k.SolChip=R,k.SolDropdown=W,k.SolInput=N,k.SolMenu=F,k.SolMenuItemLink=H,k.SolMenuNavigationLinks=X,k.SolRadio=D,k.SolRadioGroup=G,k.SolSelect=Z,k.SolSwitch=j,k.SolTextarea=U,k.SolTextfield=T,k.SolTextfieldPassword=q,k.components=ae,k.install=Qn,k.useToast=Fn,Object.defineProperties(k,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|