@solfacil/girassol 0.2.3 → 0.2.6

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.
@@ -1,6 +1,6 @@
1
- (function(y,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(y=typeof globalThis<"u"?globalThis:y||self,e(y.girassol={},y.Vue))})(this,function(y,e){"use strict";const se=[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)],re=e.defineComponent({__name:"CircleLoader",props:{size:{default:"large"},dark:{type:Boolean}},setup(t){return(n,l)=>(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"},se,2))}}),Bl="",me=["data-testid","disabled"],he={class:"icon -left"},ue={class:"icon -right"},fe={key:0,class:"loading"},x=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 n(i,d){return i?d:""}const l=e.useSlots(),a=e.computed(()=>!!(l!=null&&l.default)&&(!!(l!=null&&l["icon-right"])||!!(l!=null&&l["icon-left"]))),o=e.computed(()=>!(l!=null&&l.default)&&(!!(l!=null&&l["icon-right"])||!!(l!=null&&l["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
- ${n(t.loading,"-loading-helper")}
3
- ${n(t.onColor,"-on-color")}
4
- ${n(e.unref(a),"-has-icon")}
5
- ${n(e.unref(o),"-only-icon")}
6
- `]),type:"button",disabled:t.disabled||t.loading},[e.createElementVNode("div",he,[e.renderSlot(i.$slots,"icon-left")]),e.renderSlot(i.$slots,"default"),e.createElementVNode("div",ue,[e.renderSlot(i.$slots,"icon-right")]),t.loading?(e.openBlock(),e.createElementBlock("div",fe,[e.createVNode(re,{"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,me))}}),wl="",$e={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},be=[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 ye(t,n){return e.openBlock(),e.createElementBlock("svg",$e,be)}const ge={name:"material-symbols-delete-outline",render:ye},Z=e.defineComponent({__name:"ButtonDestructive",props:{id:null,size:null,loading:{type:Boolean}},setup(t){return(n,l)=>(e.openBlock(),e.createBlock(x,{id:`destructive-${t.id}`,size:t.size,loading:t.loading,variant:"primary",class:"button-destructive"},{"icon-left":e.withCtx(()=>[e.createVNode(e.unref(ge))]),default:e.withCtx(()=>[e.renderSlot(n.$slots,"default")]),_:3},8,["id","size","loading"]))}}),Sl="";x.install=t=>{t.component("SolButton",x)},Z.install=t=>{t.component("SolButton",x)};const ke=["id","data-testid","value"],V=e.defineComponent({__name:"Input",props:{id:null,modelValue:null,invert:{type:Boolean},error:{type:Boolean}},emits:["update:modelValue"],setup(t,{expose:n,emit:l}){function a({target:i}){l("update:modelValue",i==null?void 0:i.value)}const o=e.ref("");return n({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,ke))}}),El="";V.install=t=>{t.component("SolInput",V)};const Be=["id","data-testid"],we=["for"],Ce={class:"container-input"},Se=["id"],Ee=["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:n}){const l=t,a=e.computed({get:()=>l.modelValue,set:d=>{n("update:modelValue",d)}});function o(d,s){return!!d&&!s}function i(d,s){return s?`error-${l.id}`:o(d,s)?`hint-${l.id}`:null}return(d,s)=>{var r;return e.openBlock(),e.createElementBlock("div",{id:`textfield-${t.id}`,"data-testid":`textfield-${t.id}`,class:e.normalizeClass([[`${(r=d.$props.class)!=null?r:""}`,{"-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,we)):e.createCommentVNode("",!0)]),e.createElementVNode("div",Ce,[e.renderSlot(d.$slots,"default",{},()=>[e.createVNode(V,e.mergeProps(d.$attrs,{id:t.id,modelValue:e.unref(a),"onUpdate:modelValue":s[0]||(s[0]=m=>e.isRef(a)?a.value=m: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,Se)):t.error?(e.openBlock(),e.createElementBlock("span",{key:1,id:`error-${t.id}`,class:"error"},e.toDisplayString(t.error),9,Ee)):e.createCommentVNode("",!0)],10,Be)}}}),Vl="",Ve={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},pe=[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 xe(t,n){return e.openBlock(),e.createElementBlock("svg",Ve,pe)}const Ne={name:"mi-eye",render:xe},ze={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Te=[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 Me(t,n){return e.openBlock(),e.createElementBlock("svg",ze,Te)}const De={name:"mi-eye-off",render:Me},Le=["aria-label"],R=e.defineComponent({__name:"TextfieldPassword",props:{id:{default:""},label:{default:"Sua senha"}},setup(t){const n=e.ref(!1),l=e.computed(()=>n.value?"text":"password");return(a,o)=>(e.openBlock(),e.createBlock(T,{id:t.id,required:"",type:e.unref(l),label:t.label,placeholder:"Insira sua senha"},{icon:e.withCtx(()=>[e.createElementVNode("button",{type:"button","data-testid":"toggle-type-password","aria-label":n.value?"Hide password":"Show password",onClick:o[0]||(o[0]=i=>n.value=!n.value)},[e.withDirectives(e.createVNode(e.unref(Ne),{"aria-hidden":"true"},null,512),[[e.vShow,n.value]]),e.withDirectives(e.createVNode(e.unref(De),{"aria-hidden":"true"},null,512),[[e.vShow,!n.value]])],8,Le)]),_:1},8,["id","type","label"]))}});T.install=t=>{t.component("SolTextfield",T)},R.install=t=>{t.component("SolTextfieldPassword",R)};const Pe=["id","data-testid"],Ae=["for"],Ie={class:"container-textarea"},Oe=["id","data-testid","invert","aria-invalid","aria-describedby"],Re=["id"],He=["id"],H=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:n}){const l=t,a=e.computed({get:()=>l.modelValue,set:d=>{n("update:modelValue",d)}});function o(d,s){return!!d&&!s}function i(d,s){return s?`error-${l.id}`:o(d,s)?`hint-${l.id}`:null}return(d,s)=>{var r;return e.openBlock(),e.createElementBlock("div",{id:`textarea-${t.id}`,"data-testid":`textarea-${t.id}`,class:e.normalizeClass([[`${(r=d.$props.class)!=null?r:""}`,{"-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,Ae)):e.createCommentVNode("",!0)]),e.createElementVNode("div",Ie,[e.renderSlot(d.$slots,"default",{},()=>[e.withDirectives(e.createElementVNode("textarea",e.mergeProps(d.$attrs,{id:`input-${t.id}`,"onUpdate:modelValue":s[0]||(s[0]=m=>e.isRef(a)?a.value=m: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,Oe),[[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,Re)):t.error?(e.openBlock(),e.createElementBlock("span",{key:1,id:`error-${t.id}`,class:"error"},e.toDisplayString(t.error),9,He)):e.createCommentVNode("",!0)],10,Pe)}}}),Nl="";H.install=t=>{t.component("SolTextarea",H)};const Fe=["id","data-testid","checked","value","name"],Ke=["for"],M=e.defineComponent({__name:"Radio",props:{id:null,name:null,value:null,label:null,checked:null,class:null},emits:["change"],setup(t,{emit:n}){return(l,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["sol-radio-core",l.$props.class])},[e.createElementVNode("input",e.mergeProps(l.$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=>n("change",t.value))}),null,16,Fe),e.createElementVNode("label",{class:"label",for:`radio-${t.name}-${t.id}`},e.toDisplayString(t.label),9,Ke)],2))}}),zl="",Ue=["aria-labelledby"],Ge=["id","data-testid"],Ye=["id"],We=["id"],F=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:n}){const l=t;function a(s,r){return!!s&&!r}function o(s,r){return r?`error-${l.id}`:a(s,r)?`hint-${l.id}`:null}function i(s){return(l==null?void 0:l.modelValue)===s}function d(s){n("change",s.value),n("update:modelValue",s.value)}return(s,r)=>(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,Ge)]),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,(m,f)=>{var w;return e.openBlock(),e.createElementBlock("li",{key:f},[e.createVNode(M,e.mergeProps(s.$attrs,{id:(w=m==null?void 0:m.id)!=null?w:`${m.value}`,class:["radio",{"mb-micro":t.direction==="column","mr-micro":t.direction==="row"}],name:m.name,value:m.value,label:m.label,checked:i(m.value),"aria-invalid":!!t.error,"aria-describedby":o(t.hint,t.error),onChange:b=>d(m)}),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,Ye)):t.error?(e.openBlock(),e.createElementBlock("p",{key:1,id:`error-${t.id}`,class:"error"},e.toDisplayString(t.error),9,We)):e.createCommentVNode("",!0)],8,Ue))}}),Tl="";M.install=t=>{t.component("SolRadio",M)},F.install=t=>{t.component("SolRadioGroup",F)};const je=["id","data-testid","checked","value","name"],qe=["for"],D=e.defineComponent({__name:"Checkbox",props:{id:null,name:null,value:null,label:null,checked:null,class:null},emits:["change"],setup(t,{emit:n}){return(l,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["sol-checkbox-core",l.$props.class])},[e.createElementVNode("input",e.mergeProps(l.$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=>n("change",t.value))}),null,16,je),e.createElementVNode("label",{class:"label",for:`checkbox-${t.name}-${t.id}`},e.toDisplayString(t.label),9,qe)],2))}}),Ml="",Ze=["aria-labelledby"],Qe=["id","data-testid"],Je=["id"],Xe=["id"],K=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:n}){const l=t;function a(r,m){return!!r&&!m}function o(r,m){return m?`error-${l.id}`:a(r,m)?`hint-${l.id}`:null}function i(r){var m;return(m=l==null?void 0:l.modelValue)==null?void 0:m.includes(r)}function d(r){return Array.isArray(l==null?void 0:l.modelValue)?[...l.modelValue,r]:[r]}function s(r){var f;n("change",r.value);const m=i(r.value)?(f=l.modelValue)==null?void 0:f.filter(w=>w!==r.value):d(r.value);n("update:modelValue",m)}return(r,m)=>(e.openBlock(),e.createElementBlock("fieldset",{class:"sol-checkbox-group-core","aria-labelledby":`checkbox-group-title-${t.id}`},[e.renderSlot(r.$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,Qe)]),e.createElementVNode("ul",{class:e.normalizeClass(["container-checkboxes",{"flex-col":t.direction==="column"}])},[e.renderSlot(r.$slots,"default",{checkboxes:t.checkboxes,direction:t.direction},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.checkboxes,(f,w)=>{var b;return e.openBlock(),e.createElementBlock("li",{key:w},[e.createVNode(D,e.mergeProps(r.$attrs,{id:(b=f==null?void 0:f.id)!=null?b:`${f.value}`,class:["checkbox",{"mb-micro":t.direction==="column","mr-micro":t.direction==="row"}],label:f.label,name:f.name,value:f.value,checked:i(f.value),"aria-invalid":!!t.error,"aria-describedby":o(t.hint,t.error),onChange:g=>s(f)}),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,Je)):t.error?(e.openBlock(),e.createElementBlock("p",{key:1,id:`error-${t.id}`,class:"error"},e.toDisplayString(t.error),9,Xe)):e.createCommentVNode("",!0)],8,Ze))}}),Dl="";D.install=t=>{t.component("SolCheckbox",D)},K.install=t=>{t.component("SolCheckboxGroup",K)};const _e=["id","for","data-testid"],ve={class:"switch-container"},et=["id","aria-checked","aria-labelledby","data-testid","checked","value","name"],tt=e.createElementVNode("span",{class:"ellipse"},null,-1),U=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:n}){return(l,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["sol-switch-core",[l.$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,_e),e.createElementVNode("div",ve,[e.createElementVNode("input",e.mergeProps(l.$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=>n("change",t.value))}),null,16,et),tt])],2))}}),Ll="";U.install=t=>{t.component("SolSwitch",U)};var ee;const L=typeof window<"u",lt=t=>typeof t=="string",Q=()=>{};L&&((ee=window==null?void 0:window.navigator)==null?void 0:ee.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function nt(t){return typeof t=="function"?t():e.unref(t)}function ot(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function P(t){var n;const l=nt(t);return(n=l==null?void 0:l.$el)!=null?n:l}const te=L?window:void 0;L&&window.document,L&&window.navigator,L&&window.location;function G(...t){let n,l,a,o;if(lt(t[0])?([l,a,o]=t,n=te):[n,l,a,o]=t,!n)return Q;let i=Q;const d=e.watch(()=>P(n),r=>{i(),r&&(r.addEventListener(l,a,o),i=()=>{r.removeEventListener(l,a,o),i=Q})},{immediate:!0,flush:"post"}),s=()=>{d(),i()};return ot(s),s}function le(t,n,l={}){const{window:a=te,ignore:o,capture:i=!0,detectIframe:d=!1}=l;if(!a)return;const s=e.ref(!0);let r;const m=b=>{a.clearTimeout(r);const g=P(t),k=b.composedPath();!g||g===b.target||k.includes(g)||!s.value||o&&o.length>0&&o.some(S=>{const p=P(S);return p&&(b.target===p||k.includes(p))})||n(b)},f=[G(a,"click",m,{passive:!0,capture:i}),G(a,"pointerdown",b=>{const g=P(t);s.value=!!g&&!b.composedPath().includes(g)},{passive:!0}),G(a,"pointerup",b=>{if(b.button===0){const g=b.composedPath();b.composedPath=()=>g,r=a.setTimeout(()=>m(b),50)}},{passive:!0}),d&&G(a,"blur",b=>{var g;const k=P(t);((g=document.activeElement)==null?void 0:g.tagName)==="IFRAME"&&!(k!=null&&k.contains(document.activeElement))&&n(b)})].filter(Boolean);return()=>f.forEach(b=>b())}const J=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},X="__vueuse_ssr_handlers__";J[X]=J[X]||{},J[X];var ne;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(ne||(ne={}));const at={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},it=[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 dt(t,n){return e.openBlock(),e.createElementBlock("svg",at,it)}const oe={name:"mi-search",render:dt},ct=["data-testid"],st=["id","for"],rt=["id","disabled","data-testid","aria-expanded","aria-labelledby","aria-label","aria-controls","onClick"],mt={class:"dropdown-container"},ht=["id","data-testid","aria-multiselectable","aria-labelledby"],ut=["id","data-testid","selected","aria-selected","onClick","onKeyup"],ft={key:0,class:"no-data"},$t=e.createTextVNode(" Sem dados "),Y=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:n}){const l=t,a=e.ref(),o=e.ref(!1),i=e.ref(""),d=e.computed(()=>{var c;return l.fetchOnSearch?l.options:(c=l.options)==null?void 0:c.filter(h=>typeof h=="string"?h.includes(i.value):h.name.includes(i.value))}),s=e.computed(()=>Array.isArray(l.selected)?l.selected.join(", ").trim():l.selected);le(a,()=>{o.value&&f()});function r(){l.disabled||(o.value?f():m())}function m(){o.value=!0}function f(){q(),n("closeDropdown")}function w(c){const h=new Set(l.selected);return h.has(c)?h.delete(c):h.add(c),[...h]}function b(c){const h=typeof c=="string"?c:c.value,u=l.isMultipleSelect?w(h):h;n("update:selected",u),l.closeOnSelect&&!l.isMultipleSelect&&f()}function g(c){return Array.isArray(l.selected)?typeof c=="string"?l.selected.includes(c):l.selected.includes(c.value):typeof c=="string"?c===l.selected:c.value===l.selected}const k=e.reactive({list:void 0,search:void 0}),S=e.reactive({id:"",index:0});function p({code:c}){const h=B=>{const C=B!=null?B:S.index;B!==void 0&&(S.index=B),setTimeout(()=>{var O,ce;const E=(O=k.list)==null?void 0:O.children[C];S.id=(ce=E==null?void 0:E.id)!=null?ce:"",E==null||E.focus()},0)},u=()=>{var B;l.searchable&&(S.index=0,(B=k==null?void 0:k.search)==null||B.focus())};switch(c){case"ArrowUp":return S.index>0&&(S.index-=1),h();case"ArrowDown":return o.value?(S.index<d.value.length-1&&(S.index+=1),h()):(m(),h(0));case"Home":return h(0);case"End":return h(l.options.length-1);case"Escape":return f();default:!["Enter","NumpadEnter","Space"].includes(c)&&u()}}function q(){o.value=!1,S.index=0,i.value=""}function z(c,h){return typeof c=="string"?c:c[h!=null?h:"value"]}function $(c,h){k[c]=h!=null?h:void 0}return(c,h)=>(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(c.$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,st)]),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(r,["stop"])},[e.renderSlot(c.$slots,"toggle-dropdown",{toggle:{open:m,close:f,toggleDropdown:r},isOpen:o.value,select:b,selectedSanitized:e.unref(s),selected:t.selected},()=>[e.createTextVNode(e.toDisplayString(e.unref(s)||"Selecione"),1)])],8,rt),e.createVNode(e.Transition,{mode:"out-in",name:"dropdown"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",mt,[t.searchable?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["search-container",{"-loading":t.loading}])},[e.renderSlot(c.$slots,"search",{filter:i.value},()=>[e.createVNode(V,{id:`search-dropdown-${t.id}`,ref:u=>$("search",u==null?void 0:u.input),modelValue:i.value,"onUpdate:modelValue":h[0]||(h[0]=u=>i.value=u),"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:h[1]||(h[1]=e.withModifiers(()=>{},["stop"])),onInput:h[2]||(h[2]=u=>{var B;return n("search",(B=u.target)==null?void 0:B.value)})},null,8,["id","modelValue","data-testid","placeholder","aria-expanded","aria-owns","aria-controls","aria-activedescendant","aria-labelledby"]),e.createVNode(e.unref(oe),{"aria-hidden":"true",class:"icon"})])],2)):e.createCommentVNode("",!0),e.createElementVNode("ul",{id:`dropdown-list-${t.id}`,ref:u=>$("list",u),"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),(u,B)=>(e.openBlock(),e.createElementBlock("li",{id:`option-${t.id}-${z(u,"value")}`,key:B,"data-testid":`option-${t.id}-${z(u,"value")}`,role:"option",tabindex:"-1",class:"dropdown-item",style:e.normalizeStyle(`--item: ${B+1}`),selected:g(u),"aria-selected":g(u),onClick:C=>b(u),onKeyup:[e.withKeys(C=>b(u),["enter"]),e.withKeys(C=>b(u),["space"])]},[e.renderSlot(c.$slots,"default",{text:z(u,"name"),option:u,isSelect:g},()=>[e.createTextVNode(e.toDisplayString(z(u,"name")),1)])],44,ut))),128)),e.unref(d).length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("li",ft,[e.renderSlot(c.$slots,"no-data",{},()=>[$t])]))],8,ht)],512),[[e.vShow,o.value]])]),_:3})],42,ct))}}),Al="";Y.install=t=>{t.component("SolDropdown",Y)};const bt={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},yt=[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 gt(t,n){return e.openBlock(),e.createElementBlock("svg",bt,yt)}const ae={name:"mi-close",render:gt},kt=["id","data-testid","title","aria-describedby","aria-disabled","onKeydown"],Bt=["id"],wt={class:"label"},A=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:n}){const l=t;function a({code:o}){if(!l.disabled)switch(o){case"Enter":case"NumpadEnter":case"Space":return n("update:selected");case"Delete":case"Backspace":return l.removable&&n("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=>n("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,Bt),e.createElementVNode("span",wt,[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=>n("close"),["stop"]))},[e.createVNode(e.unref(ae),{class:"icon"})])):e.createCommentVNode("",!0)],42,kt))}}),Ol="",Ct=["id","data-testid","aria-multiselectable","aria-labelledby"],St=["id","data-testid","selected","aria-selected","onClick","onKeyup"],Et={key:0,class:"no-data"},Vt=e.createTextVNode(" Sem dados "),pt=e.defineComponent({__name:"ListOption",props:{id:null,options:null,multiple:{type:Boolean},isSelected:null},emits:["select"],setup(t,{expose:n,emit:l}){const a=e.ref("");return n({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:r=>l("select",d),onKeyup:[e.withKeys(r=>l("select",d),["enter"]),e.withKeys(r=>l("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,St))),128)),t.options.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("li",Et,[e.renderSlot(o.$slots,"no-data",{},()=>[Vt])]))],8,Ct))}}),Rl="",xt={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Nt=[e.createElementVNode("path",{fill:"currentColor",d:"m17 10l-5 6l-5-6h10z"},null,-1)];function zt(t,n){return e.openBlock(),e.createElementBlock("svg",xt,Nt)}const Tt={name:"mi-caret-down",render:zt},Mt=["data-testid"],Dt=["id"],Lt=["id","disabled","data-testid","aria-expanded","aria-labelledby","aria-label","aria-controls","onClick"],Pt={key:0,class:"container-tags"},At={key:1,class:"mr-micro placeholder-inline",tabindex:"-1"},It={class:"error"},Ot={class:"select-options-container"},W=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:n}){const l=t,a=e.ref(),o=e.ref(!1),i=e.ref(""),d=e.computed(()=>{var $;return l.fetchOnSearch?l.options:($=l.options)==null?void 0:$.filter(c=>c.name.includes(i.value))});le(a,()=>{o.value&&m()});function s(){l.disabled||(o.value?m():r())}function r(){o.value=!0}function m(){p(),n("closeDropdown")}function f($){if(Array.isArray(l.selected)){const c=l.selected.findIndex(({value:h})=>h===$.value);return c===-1?[...l.selected,$]:l.selected.filter((h,u)=>u!==c)}return[$]}function w($){l.multiple?n("update:selected",f($)):n("update:selected",$),l.closeOnSelect&&!l.multiple&&m()}function b($){var c;return Array.isArray(l.selected)?l.selected.some(({value:h})=>h===$.value):$.value===((c=l.selected)==null?void 0:c.value)}const g=e.reactive({list:void 0,search:void 0}),k=e.reactive({id:"",index:0});function S({code:$}){const c=u=>{const B=u!=null?u:k.index;u!==void 0&&(k.index=u),setTimeout(()=>{var E,O;const C=(E=g.list)==null?void 0:E.children[B];k.id=(O=C==null?void 0:C.id)!=null?O:"",C==null||C.focus()},0)},h=()=>{var u;l.searchable&&(k.index=0,(u=g==null?void 0:g.search)==null||u.focus())};switch($){case"ArrowUp":return k.index>0&&(k.index-=1),c();case"ArrowDown":return o.value?(k.index<l.options.length-1&&(k.index+=1),c()):(r(),c(0));case"Home":return c(0);case"End":return c(l.options.length-1);case"Escape":return m();default:!["Enter","NumpadEnter","Space"].includes($)&&h()}}function p(){o.value=!1,k.index=0,i.value=""}function q($){return c=>{g[$]=$==="search"?c==null?void 0:c.input:c==null?void 0:c.list}}function z(){var c;const $=l.selected;return(c=$==null?void 0:$.name)!=null?c:l.placeholder}return($,c)=>(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:S},[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,Dt)):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:r,close:m,toggleDropdown:s},isOpen:o.value,select:w,selected:t.selected},()=>{var h;return[t.multiple&&Array.isArray(t.selected)&&((h=t.selected)==null?void 0:h.length)?(e.openBlock(),e.createElementBlock("div",Pt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.selected,(u,B)=>(e.openBlock(),e.createBlock(A,{id:u.value,key:B,label:u.name,onClick:e.withModifiers(C=>w(u),["stop"]),onClose:C=>w(u)},null,8,["id","label","onClick","onClose"]))),128))])):(e.openBlock(),e.createElementBlock("span",At,e.toDisplayString(z()),1)),e.createVNode(e.unref(Tt),{"aria-hidden":"true",tabindex:"-1",class:e.normalizeClass(["icon",{"-open":o.value}])},null,8,["class"])]})],8,Lt),e.createElementVNode("span",It,e.toDisplayString(t.error),1),e.createVNode(e.Transition,{mode:"out-in",name:"dropdown"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",Ot,[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(V,{id:`select-search-${t.id}`,ref:q("search"),modelValue:i.value,"onUpdate:modelValue":c[0]||(c[0]=h=>i.value=h),"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":k.id,"aria-labelledby":`select-label-${t.id}`,onClick:c[1]||(c[1]=e.withModifiers(()=>{},["stop"])),onInput:c[2]||(c[2]=h=>{var u;return n("search",(u=h.target)==null?void 0:u.value)})},null,8,["id","modelValue","data-testid","placeholder","aria-expanded","aria-owns","aria-controls","aria-activedescendant","aria-labelledby"]),e.createVNode(e.unref(oe),{"aria-hidden":"true",class:"icon"})])],2)):e.createCommentVNode("",!0),e.createVNode(pt,{id:t.id,ref:q("list"),options:e.unref(d),multiple:t.multiple,"is-selected":b,onSelect:w},{"item-list":e.withCtx(({text:h,value:u,option:B,isSelected:C})=>[e.renderSlot($.$slots,"default",{text:h,value:u,option:B,isSelected:C})]),"no-data":e.withCtx(()=>[e.renderSlot($.$slots,"no-data")]),_:3},8,["id","options","multiple"])])],512),[[e.vShow,o.value]])]),_:3})],42,Mt))}}),Fl="";W.install=t=>{t.component("SolSelect",W)},A.install=t=>{t.component("SolChip",A)};const Rt={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Ht=[e.createElementVNode("path",{fill:"currentColor",d:"M11.293 7.293a1 1 0 0 1 1.414 0l6 6a1 1 0 0 1-1.414 1.414L12 9.414l-5.293 5.293a1 1 0 0 1-1.414-1.414l6-6z"},null,-1)];function Ft(t,n){return e.openBlock(),e.createElementBlock("svg",Rt,Ht)}const Kt={name:"mi-chevron-up",render:Ft},Ut=["id","data-testid","aria-disabled"],Gt=["data-testid","tabindex"],Yt=["data-testid"],j=e.defineComponent({__name:"Accordion",props:{id:null,title:{default:"Title"},invert:{type:Boolean},disabled:{type:Boolean}},setup(t){return(n,l)=>(e.openBlock(),e.createElementBlock("details",{id:`accordion-${t.id}`,"data-testid":`accordion-${t.id}`,class:e.normalizeClass(["sol-accordion-core",{"-invert":t.invert,"-disabled":t.disabled}]),"aria-disabled":t.disabled},[e.createElementVNode("summary",{"data-testid":`accordion-title-${t.id}`,class:"summary",tabindex:t.disabled?-1:0},[e.renderSlot(n.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)]),e.createVNode(e.unref(Kt),{class:"icon","aria-hidden":"true"})],8,Gt),e.createElementVNode("div",{"data-testid":`accordion-content-${t.id}`,class:"container"},[e.renderSlot(n.$slots,"default")],8,Yt)],10,Ut))}}),Ul="";j.install=t=>{t.component("SolAccordion",j)};const Gl="",Yl="",Wl="",jl="",ie=12,N={type:"success",timeout:5e3,showIcon:!0,showCloseButton:!0,position:"top-right",hideProgressBar:!1};function Wt(t,n){const l=e.reactive({id:null,intervalId:null,startTime:0,remaining:n}),a=e.ref(100);function o(){clearInterval(l.intervalId),clearTimeout(l.id),l.remaining-=Date.now()-l.startTime}function i(){l.startTime=Date.now(),clearTimeout(l.id),l.intervalId=setInterval(()=>{a.value--},n/100-5),l.id=setTimeout(t,l.remaining)}function d(){clearInterval(l.intervalId),clearTimeout(l.id),a.value=100}return e.onMounted(()=>{if(n<=0)return!1}),e.onUnmounted(()=>{d()}),{start:i,stop:o,clear:d,progress:a}}function jt(t){return{stylePosition:e.computed(()=>{const{position:l,offset:a}=t();switch(l){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 de=(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))(de||{});const qt={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Zt=[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 Qt(t,n){return e.openBlock(),e.createElementBlock("svg",qt,Zt)}const Jt={name:"mi-circle-check",render:Qt},Xt={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},_t=[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 vt(t,n){return e.openBlock(),e.createElementBlock("svg",Xt,_t)}const el={name:"mi-circle-error",render:vt},tl={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},ll=[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 nl(t,n){return e.openBlock(),e.createElementBlock("svg",tl,ll)}const ol={name:"mi-circle-warning",render:nl},al=["id","data-testid"],il={class:"content-wrapper"},dl={key:0,class:"icon-container","aria-hidden":"true"},cl={class:"content"},sl={key:0,class:"description"},rl=["data-testid"],ml=e.defineComponent({__name:"Toast",props:{id:null,type:{default:N.type},visible:{type:Boolean,default:!1},title:null,description:null,timeout:null,hideProgressBar:{type:Boolean,default:N.hideProgressBar},showIcon:{type:Boolean,default:N.showIcon},offset:{default:0},onClose:null,onCloseHandler:null,position:{default:N.position}},setup(t){const n=t,{start:l,stop:a,progress:o}=Wt(()=>{var m;(m=n.onCloseHandler)==null||m.call(n)},n.timeout),{stylePosition:i}=jt(()=>({offset:n.offset,position:n.position})),d=e.computed(()=>n.title&&n.description);function s(){n.timeout>0&&a()}function r(){l()}return e.onMounted(()=>{l()}),(m,f)=>(e.openBlock(),e.createBlock(e.Transition,{name:e.unref(de)[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:f[1]||(f[1]=e.withKeys((...w)=>t.onCloseHandler&&t.onCloseHandler(...w),["esc"])),onMouseenter:s,onMouseleave:r,onFocusin:s,onFocusout:r},[e.createElementVNode("section",il,[t.showIcon?(e.openBlock(),e.createElementBlock("div",dl,[e.renderSlot(m.$slots,"icon-status",{type:t.type},()=>[t.type==="success"?(e.openBlock(),e.createBlock(e.unref(Jt),{key:0,class:"icon"})):e.createCommentVNode("",!0),t.type==="info"?(e.openBlock(),e.createBlock(e.unref(ol),{key:1,class:"icon"})):e.createCommentVNode("",!0),t.type==="danger"?(e.openBlock(),e.createBlock(e.unref(el),{key:2,class:"icon"})):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),e.createElementVNode("div",cl,[e.createElementVNode("p",{class:e.normalizeClass(["title",{"-multiline":e.unref(d)}])},[e.renderSlot(m.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)])],2),t.description?(e.openBlock(),e.createElementBlock("p",sl,[e.renderSlot(m.$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:f[0]||(f[0]=(...w)=>t.onCloseHandler&&t.onCloseHandler(...w))},[e.createVNode(e.unref(ae),{class:"icon"})],10,rl),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,al)):e.createCommentVNode("",!0)]),_:3},8,["name"]))}}),Jl="",I={"top-left":[],"top-right":[],"top-center":[],"bottom-left":[],"bottom-right":[],"bottom-center":[]};function hl(){let t=0;function n(){Object.entries(I).forEach(([a,o])=>{o.length&&o.forEach(i=>{var s;const d=(s=i.toastVNode.props)==null?void 0:s.id;_(d,a)})})}return{createToast:(a,o)=>{const i=t++,d=o?ul(o):N;return o!=null&&o.showOneToast&&n(),fl(i,d,typeof a=="string"?{title:a}:a),{close:()=>_(i,d.position)}},clearAllToasts:n}}function ul(t){const n={...N,...t,showIcon:t.showIcon};return n.hideProgressBar=!!(n.timeout&&(n==null?void 0:n.timeout)<=0),t.hideProgressBar&&(n.hideProgressBar=t.hideProgressBar),n}function fl(t,n,l){setTimeout(()=>{const a=bl(n,I,ie),o=document.createElement("div");document.body.appendChild(o);const i=e.createVNode(ml,$l(n,t,a,_,l));e.render(i,o),I[n.position].push({toastVNode:i,container:o}),i.component&&(i.component.props.visible=!0)},1)}function $l(t,n,l,a,o){return{...t,...o,id:n,offset:l,visible:!1,onCloseHandler(){a(n,t.position?t.position:"top-right")}}}function bl(t,n,l){if(!t.position)throw new Error("no position");return n[t.position].reduce((a,{toastVNode:o})=>(a+=o.el.offsetHeight+l||0,a),l)}function yl(t,n,l,a){for(let o=t;o<n.length;o++){const{toastVNode:i}=n[o];if(!i.el)return;const d=l.split("-")[0]||"top",s=parseInt(i.el.style[d],10)-a-ie;if(!i.component)return;i.component.props.offset=s}}function _(t,n){var r;const l=I[n],a=l.findIndex(({toastVNode:m})=>{var f;return t===((f=m==null?void 0:m.props)==null?void 0:f.id)});if(a===-1)return;const{container:o,toastVNode:i}=l[a],d=(r=i==null?void 0:i.el)==null?void 0:r.offsetHeight;if(I[n].splice(a,1),yl(a,l,n,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 v={SolButton:x,SolButtonDestructive:Z,SolInput:V,SolTextarea:H,SolTextfield:T,SolTextfieldPassword:R,SolRadio:M,SolRadioGroup:F,SolCheckbox:D,SolCheckboxGroup:K,SolSwitch:U,SolDropdown:Y,SolSelect:W,SolChip:A,SolAccordion:j};function gl(t){for(const n in v)t.component(n,v[n])}y.SolAccordion=j,y.SolButton=x,y.SolButtonDestructive=Z,y.SolCheckbox=D,y.SolCheckboxGroup=K,y.SolChip=A,y.SolDropdown=Y,y.SolInput=V,y.SolRadio=M,y.SolRadioGroup=F,y.SolSelect=W,y.SolSwitch=U,y.SolTextarea=H,y.SolTextfield=T,y.SolTextfieldPassword=R,y.components=v,y.install=gl,y.useToast=hl,Object.defineProperties(y,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1
+ (function(g,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(g=typeof globalThis<"u"?globalThis:g||self,e(g.girassol={},g.Vue))})(this,function(g,e){"use strict";const me=[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)],ue=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"},me,2))}}),Mn="",fe=["data-testid","disabled"],he={class:"icon -left"},$e={class:"icon -right"},be={key:0,class:"loading"},N=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(a,d){return a?d:""}const n=e.useSlots(),o=e.computed(()=>!!(n!=null&&n.default)&&(!!(n!=null&&n["icon-right"])||!!(n!=null&&n["icon-left"]))),i=e.computed(()=>!(n!=null&&n.default)&&(!!(n!=null&&n["icon-right"])||!!(n!=null&&n["icon-left"])));return(a,d)=>(e.openBlock(),e.createElementBlock("button",{"data-testid":`button-${t.id}`,class:e.normalizeClass(["sol-button-core",`-${t.variant} -${t.size}
2
+ ${l(t.loading,"-loading-helper")}
3
+ ${l(t.onColor,"-on-color")}
4
+ ${l(e.unref(o),"-has-icon")}
5
+ ${l(e.unref(i),"-only-icon")}
6
+ `]),type:"button",disabled:t.disabled||t.loading},[e.createElementVNode("div",he,[e.renderSlot(a.$slots,"icon-left")]),e.renderSlot(a.$slots,"default"),e.createElementVNode("div",$e,[e.renderSlot(a.$slots,"icon-right")]),t.loading?(e.openBlock(),e.createElementBlock("div",be,[e.createVNode(ue,{"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,fe))}}),Tn="",ye={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},ke=[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 ge(t,l){return e.openBlock(),e.createElementBlock("svg",ye,ke)}const Be={name:"material-symbols-delete-outline",render:ge},J=e.defineComponent({__name:"ButtonDestructive",props:{id:null,size:null,loading:{type:Boolean}},setup(t){return(l,n)=>(e.openBlock(),e.createBlock(N,{id:`destructive-${t.id}`,size:t.size,loading:t.loading,variant:"primary",class:"button-destructive"},{"icon-left":e.withCtx(()=>[e.createVNode(e.unref(Be))]),default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:3},8,["id","size","loading"]))}}),In="";N.install=t=>{t.component("SolButton",N)},J.install=t=>{t.component("SolButton",N)};const we=["id","data-testid","value"],p=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 o({target:a}){n("update:modelValue",a==null?void 0:a.value)}const i=e.ref("");return l({input:i}),(a,d)=>(e.openBlock(),e.createElementBlock("input",{id:`input-${t.id}`,ref_key:"input",ref:i,"data-testid":`input-${t.id}`,value:t.modelValue,class:e.normalizeClass(["sol-input-core",{"-invert":t.invert,"-error":t.error}]),onInput:o},null,42,we))}}),Ln="";p.install=t=>{t.component("SolInput",p)};const Se=["id","data-testid"],Ce=["for"],Ee={class:"container-input"},Ve=["id"],pe=["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,o=e.computed({get:()=>n.modelValue,set:d=>{l("update:modelValue",d)}});function i(d,c){return!!d&&!c}function a(d,c){return c?`error-${n.id}`:i(d,c)?`hint-${n.id}`:null}return(d,c)=>{var r;return e.openBlock(),e.createElementBlock("div",{id:`textfield-${t.id}`,"data-testid":`textfield-${t.id}`,class:e.normalizeClass([[`${(r=d.$props.class)!=null?r:""}`,{"-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,Ce)):e.createCommentVNode("",!0)]),e.createElementVNode("div",Ee,[e.renderSlot(d.$slots,"default",{},()=>[e.createVNode(p,e.mergeProps(d.$attrs,{id:t.id,modelValue:e.unref(o),"onUpdate:modelValue":c[0]||(c[0]=m=>e.isRef(o)?o.value=m:null),"data-testid":`input-${t.id}`,class:[t.error&&"-error","input"],invert:t.invert,"aria-invalid":!!t.error,"aria-describedby":a(t.hint,t.error)}),null,16,["id","modelValue","data-testid","class","invert","aria-invalid","aria-describedby"])]),e.renderSlot(d.$slots,"icon")]),i(t.hint,t.error)?(e.openBlock(),e.createElementBlock("span",{key:0,id:`hint-${t.id}`,class:"hint"},e.toDisplayString(t.hint),9,Ve)):t.error?(e.openBlock(),e.createElementBlock("span",{key:1,id:`error-${t.id}`,class:"error"},e.toDisplayString(t.error),9,pe)):e.createCommentVNode("",!0)],10,Se)}}}),Pn="",xe={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Ne=[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 ze(t,l){return e.openBlock(),e.createElementBlock("svg",xe,Ne)}const Me={name:"mi-eye",render:ze},Te={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},De=[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 Ie(t,l){return e.openBlock(),e.createElementBlock("svg",Te,De)}const Le={name:"mi-eye-off",render:Ie},Pe=["aria-label"],F=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(o,i)=>(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:i[0]||(i[0]=a=>l.value=!l.value)},[e.withDirectives(e.createVNode(e.unref(Me),{"aria-hidden":"true"},null,512),[[e.vShow,l.value]]),e.withDirectives(e.createVNode(e.unref(Le),{"aria-hidden":"true"},null,512),[[e.vShow,!l.value]])],8,Pe)]),_:1},8,["id","type","label"]))}});T.install=t=>{t.component("SolTextfield",T)},F.install=t=>{t.component("SolTextfieldPassword",F)};const Oe=["id","data-testid"],Ae=["for"],Re={class:"container-textarea"},Fe=["id","data-testid","invert","aria-invalid","aria-describedby"],He=["id"],Ke=["id"],H=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,o=e.computed({get:()=>n.modelValue,set:d=>{l("update:modelValue",d)}});function i(d,c){return!!d&&!c}function a(d,c){return c?`error-${n.id}`:i(d,c)?`hint-${n.id}`:null}return(d,c)=>{var r;return e.openBlock(),e.createElementBlock("div",{id:`textarea-${t.id}`,"data-testid":`textarea-${t.id}`,class:e.normalizeClass([[`${(r=d.$props.class)!=null?r:""}`,{"-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,Ae)):e.createCommentVNode("",!0)]),e.createElementVNode("div",Re,[e.renderSlot(d.$slots,"default",{},()=>[e.withDirectives(e.createElementVNode("textarea",e.mergeProps(d.$attrs,{id:`input-${t.id}`,"onUpdate:modelValue":c[0]||(c[0]=m=>e.isRef(o)?o.value=m:null),"data-testid":`input-${t.id}`,class:[t.error&&"-error","textarea"],invert:t.invert,style:{resize:t.resize},"aria-invalid":!!t.error,"aria-describedby":a(t.hint,t.error)}),null,16,Fe),[[e.vModelText,e.unref(o)]])])]),i(t.hint,t.error)?(e.openBlock(),e.createElementBlock("span",{key:0,id:`hint-${t.id}`,class:"hint"},e.toDisplayString(t.hint),9,He)):t.error?(e.openBlock(),e.createElementBlock("span",{key:1,id:`error-${t.id}`,class:"error"},e.toDisplayString(t.error),9,Ke)):e.createCommentVNode("",!0)],10,Oe)}}}),Rn="";H.install=t=>{t.component("SolTextarea",H)};const Ue=["id","data-testid","checked","value","name"],Ge=["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,o)=>(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:o[0]||(o[0]=i=>l("change",t.value))}),null,16,Ue),e.createElementVNode("label",{class:"label",for:`radio-${t.name}-${t.id}`},e.toDisplayString(t.label),9,Ge)],2))}}),Fn="",Ye=["aria-labelledby"],We=["id","data-testid"],je=["id"],qe=["id"],K=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 o(c,r){return!!c&&!r}function i(c,r){return r?`error-${n.id}`:o(c,r)?`hint-${n.id}`:null}function a(c){return(n==null?void 0:n.modelValue)===c}function d(c){l("change",c.value),l("update:modelValue",c.value)}return(c,r)=>(e.openBlock(),e.createElementBlock("fieldset",{class:"sol-radio-group-core","aria-labelledby":`radio-group-title-${t.id}`},[e.renderSlot(c.$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,We)]),e.createElementVNode("ul",{class:e.normalizeClass(["container-radios",{"flex-col":t.direction==="column"}])},[e.renderSlot(c.$slots,"default",{radios:t.radios,direction:t.direction},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.radios,(m,u)=>{var B;return e.openBlock(),e.createElementBlock("li",{key:u},[e.createVNode(D,e.mergeProps(c.$attrs,{id:(B=m==null?void 0:m.id)!=null?B:`${m.value}`,class:["radio",{"mb-micro":t.direction==="column","mr-micro":t.direction==="row"}],name:m.name,value:m.value,label:m.label,checked:a(m.value),"aria-invalid":!!t.error,"aria-describedby":i(t.hint,t.error),onChange:b=>d(m)}),null,16,["id","class","name","value","label","checked","aria-invalid","aria-describedby","onChange"])])}),128))])],2),o(t.hint,t.error)?(e.openBlock(),e.createElementBlock("p",{key:0,id:`hint-${t.id}`,class:"hint"},e.toDisplayString(t.hint),9,je)):t.error?(e.openBlock(),e.createElementBlock("p",{key:1,id:`error-${t.id}`,class:"error"},e.toDisplayString(t.error),9,qe)):e.createCommentVNode("",!0)],8,Ye))}}),Hn="";D.install=t=>{t.component("SolRadio",D)},K.install=t=>{t.component("SolRadioGroup",K)};const Ze=["id","data-testid","checked","value","name"],Qe=["for"],I=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,o)=>(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:o[0]||(o[0]=i=>l("change",t.value))}),null,16,Ze),e.createElementVNode("label",{class:"label",for:`checkbox-${t.name}-${t.id}`},e.toDisplayString(t.label),9,Qe)],2))}}),Kn="",Je=["aria-labelledby"],Xe=["id","data-testid"],_e=["id"],ve=["id"],U=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 o(r,m){return!!r&&!m}function i(r,m){return m?`error-${n.id}`:o(r,m)?`hint-${n.id}`:null}function a(r){var m;return(m=n==null?void 0:n.modelValue)==null?void 0:m.includes(r)}function d(r){return Array.isArray(n==null?void 0:n.modelValue)?[...n.modelValue,r]:[r]}function c(r){var u;l("change",r.value);const m=a(r.value)?(u=n.modelValue)==null?void 0:u.filter(B=>B!==r.value):d(r.value);l("update:modelValue",m)}return(r,m)=>(e.openBlock(),e.createElementBlock("fieldset",{class:"sol-checkbox-group-core","aria-labelledby":`checkbox-group-title-${t.id}`},[e.renderSlot(r.$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,Xe)]),e.createElementVNode("ul",{class:e.normalizeClass(["container-checkboxes",{"flex-col":t.direction==="column"}])},[e.renderSlot(r.$slots,"default",{checkboxes:t.checkboxes,direction:t.direction},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.checkboxes,(u,B)=>{var b;return e.openBlock(),e.createElementBlock("li",{key:B},[e.createVNode(I,e.mergeProps(r.$attrs,{id:(b=u==null?void 0:u.id)!=null?b:`${u.value}`,class:["checkbox",{"mb-micro":t.direction==="column","mr-micro":t.direction==="row"}],label:u.label,name:u.name,value:u.value,checked:a(u.value),"aria-invalid":!!t.error,"aria-describedby":i(t.hint,t.error),onChange:y=>c(u)}),null,16,["id","class","label","name","value","checked","aria-invalid","aria-describedby","onChange"])])}),128))])],2),o(t.hint,t.error)?(e.openBlock(),e.createElementBlock("p",{key:0,id:`hint-${t.id}`,class:"hint"},e.toDisplayString(t.hint),9,_e)):t.error?(e.openBlock(),e.createElementBlock("p",{key:1,id:`error-${t.id}`,class:"error"},e.toDisplayString(t.error),9,ve)):e.createCommentVNode("",!0)],8,Je))}}),Un="";I.install=t=>{t.component("SolCheckbox",I)},U.install=t=>{t.component("SolCheckboxGroup",U)};const et=["id","for","data-testid"],tt={class:"switch-container"},nt=["id","aria-checked","aria-labelledby","data-testid","checked","value","name"],lt=e.createElementVNode("span",{class:"ellipse"},null,-1),G=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,o)=>(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,et),e.createElementVNode("div",tt,[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:o[0]||(o[0]=i=>l("change",t.value))}),null,16,nt),lt])],2))}}),Gn="";G.install=t=>{t.component("SolSwitch",G)};var le;const L=typeof window<"u",ot=t=>typeof t=="string",X=()=>{};L&&((le=window==null?void 0:window.navigator)==null?void 0:le.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function it(t){return typeof t=="function"?t():e.unref(t)}function at(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function P(t){var l;const n=it(t);return(l=n==null?void 0:n.$el)!=null?l:n}const oe=L?window:void 0;L&&window.document,L&&window.navigator,L&&window.location;function Y(...t){let l,n,o,i;if(ot(t[0])?([n,o,i]=t,l=oe):[l,n,o,i]=t,!l)return X;let a=X;const d=e.watch(()=>P(l),r=>{a(),r&&(r.addEventListener(n,o,i),a=()=>{r.removeEventListener(n,o,i),a=X})},{immediate:!0,flush:"post"}),c=()=>{d(),a()};return at(c),c}function _(t,l,n={}){const{window:o=oe,ignore:i,capture:a=!0,detectIframe:d=!1}=n;if(!o)return;const c=e.ref(!0);let r;const m=b=>{o.clearTimeout(r);const y=P(t),k=b.composedPath();!y||y===b.target||k.includes(y)||!c.value||i&&i.length>0&&i.some(w=>{const E=P(w);return E&&(b.target===E||k.includes(E))})||l(b)},u=[Y(o,"click",m,{passive:!0,capture:a}),Y(o,"pointerdown",b=>{const y=P(t);c.value=!!y&&!b.composedPath().includes(y)},{passive:!0}),Y(o,"pointerup",b=>{if(b.button===0){const y=b.composedPath();b.composedPath=()=>y,r=o.setTimeout(()=>m(b),50)}},{passive:!0}),d&&Y(o,"blur",b=>{var y;const k=P(t);((y=document.activeElement)==null?void 0:y.tagName)==="IFRAME"&&!(k!=null&&k.contains(document.activeElement))&&l(b)})].filter(Boolean);return()=>u.forEach(b=>b())}const v=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ee="__vueuse_ssr_handlers__";v[ee]=v[ee]||{},v[ee];var ie;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(ie||(ie={}));const dt={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 st(t,l){return e.openBlock(),e.createElementBlock("svg",dt,ct)}const ae={name:"mi-search",render:st},rt=["data-testid"],mt=["id","for"],ut=["id","disabled","data-testid","aria-expanded","aria-labelledby","aria-label","aria-controls","onClick"],ft={class:"dropdown-container"},ht=["id","data-testid","aria-multiselectable","aria-labelledby"],$t=["id","data-testid","selected","aria-selected","onClick","onKeyup"],bt={key:0,class:"no-data"},yt=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,o=e.ref(),i=e.ref(!1),a=e.ref(""),d=e.computed(()=>{var s;return n.fetchOnSearch?n.options:(s=n.options)==null?void 0:s.filter(f=>typeof f=="string"?f.includes(a.value):f.name.includes(a.value))}),c=e.computed(()=>Array.isArray(n.selected)?n.selected.join(", ").trim():n.selected);_(o,()=>{i.value&&u()});function r(){n.disabled||(i.value?u():m())}function m(){i.value=!0}function u(){x(),l("closeDropdown")}function B(s){const f=new Set(n.selected);return f.has(s)?f.delete(s):f.add(s),[...f]}function b(s){const f=typeof s=="string"?s:s.value,h=n.isMultipleSelect?B(f):f;l("update:selected",h),n.closeOnSelect&&!n.isMultipleSelect&&u()}function y(s){return Array.isArray(n.selected)?typeof s=="string"?n.selected.includes(s):n.selected.includes(s.value):typeof s=="string"?s===n.selected:s.value===n.selected}const k=e.reactive({list:void 0,search:void 0}),w=e.reactive({id:"",index:0});function E({code:s}){const f=S=>{const C=S!=null?S:w.index;S!==void 0&&(w.index=S),setTimeout(()=>{var R,re;const V=(R=k.list)==null?void 0:R.children[C];w.id=(re=V==null?void 0:V.id)!=null?re:"",V==null||V.focus()},0)},h=()=>{var S;n.searchable&&(w.index=0,(S=k==null?void 0:k.search)==null||S.focus())};switch(s){case"ArrowUp":return w.index>0&&(w.index-=1),f();case"ArrowDown":return i.value?(w.index<d.value.length-1&&(w.index+=1),f()):(m(),f(0));case"Home":return f(0);case"End":return f(n.options.length-1);case"Escape":return u();default:!["Enter","NumpadEnter","Space"].includes(s)&&h()}}function x(){i.value=!1,w.index=0,a.value=""}function M(s,f){return typeof s=="string"?s:s[f!=null?f:"value"]}function $(s,f){k[s]=f!=null?f:void 0}return(s,f)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"el",ref:o,class:e.normalizeClass(["sol-dropdown-core",{"-smaller":t.smallerWidth}]),"data-testid":`dropdown-${t.id}`,onKeydownPassive:E},[e.renderSlot(s.$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,mt)]),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":i.value,"aria-labelledby":`label-dropdown-${t.id}`,"aria-label":t.ariaLabel,"aria-controls":`dropdown-list-${t.id}`,onClick:e.withModifiers(r,["stop"])},[e.renderSlot(s.$slots,"toggle-dropdown",{toggle:{open:m,close:u,toggleDropdown:r},isOpen:i.value,select:b,selectedSanitized:e.unref(c),selected:t.selected},()=>[e.createTextVNode(e.toDisplayString(e.unref(c)||"Selecione"),1)])],8,ut),e.createVNode(e.Transition,{mode:"out-in",name:"dropdown"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",ft,[t.searchable?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["search-container",{"-loading":t.loading}])},[e.renderSlot(s.$slots,"search",{filter:a.value},()=>[e.createVNode(p,{id:`search-dropdown-${t.id}`,ref:h=>$("search",h==null?void 0:h.input),modelValue:a.value,"onUpdate:modelValue":f[0]||(f[0]=h=>a.value=h),"data-testid":`search-dropdown-${t.id}`,role:"combobox",class:"search","aria-autocomplete":"list",placeholder:t.searchPlaceholder,"aria-expanded":i.value,"aria-haspopup":"listbox","aria-owns":`dropdown-list-${t.id}`,"aria-controls":`dropdown-list-${t.id}`,"aria-activedescendant":w.id,"aria-labelledby":`label-dropdown-${t.id}`,onClick:f[1]||(f[1]=e.withModifiers(()=>{},["stop"])),onInput:f[2]||(f[2]=h=>{var S;return l("search",(S=h.target)==null?void 0:S.value)})},null,8,["id","modelValue","data-testid","placeholder","aria-expanded","aria-owns","aria-controls","aria-activedescendant","aria-labelledby"]),e.createVNode(e.unref(ae),{"aria-hidden":"true",class:"icon"})])],2)):e.createCommentVNode("",!0),e.createElementVNode("ul",{id:`dropdown-list-${t.id}`,ref:h=>$("list",h),"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),(h,S)=>(e.openBlock(),e.createElementBlock("li",{id:`option-${t.id}-${M(h,"value")}`,key:S,"data-testid":`option-${t.id}-${M(h,"value")}`,role:"option",tabindex:"-1",class:"dropdown-item",style:e.normalizeStyle(`--item: ${S+1}`),selected:y(h),"aria-selected":y(h),onClick:C=>b(h),onKeyup:[e.withKeys(C=>b(h),["enter"]),e.withKeys(C=>b(h),["space"])]},[e.renderSlot(s.$slots,"default",{text:M(h,"name"),option:h,isSelect:y},()=>[e.createTextVNode(e.toDisplayString(M(h,"name")),1)])],44,$t))),128)),e.unref(d).length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("li",bt,[e.renderSlot(s.$slots,"no-data",{},()=>[yt])]))],8,ht)],512),[[e.vShow,i.value]])]),_:3})],42,rt))}}),Wn="";W.install=t=>{t.component("SolDropdown",W)};const kt={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},gt=[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 Bt(t,l){return e.openBlock(),e.createElementBlock("svg",kt,gt)}const de={name:"mi-close",render:Bt},wt=["id","data-testid","title","aria-describedby","aria-disabled","onKeydown"],St=["id"],Ct={class:"label"},O=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 o({code:i}){if(!n.disabled)switch(i){case"Enter":case"NumpadEnter":case"Space":return l("update:selected");case"Delete":case"Backspace":return n.removable&&l("close");default:return!1}}return(i,a)=>(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:a[1]||(a[1]=d=>l("update:selected")),onKeydown:e.withModifiers(o,["self"])},[e.createElementVNode("span",{id:`chip-description-${t.id}`,"z-index":"-1",class:"sr-only"},"Press Delete or Backspace to remove this Chip",8,St),e.createElementVNode("span",Ct,[e.renderSlot(i.$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:a[0]||(a[0]=e.withModifiers(d=>l("close"),["stop"]))},[e.createVNode(e.unref(de),{class:"icon"})])):e.createCommentVNode("",!0)],42,wt))}}),qn="",Et=["id","data-testid","aria-multiselectable","aria-labelledby"],Vt=["id","data-testid","selected","aria-selected","onClick","onKeyup"],pt={key:0,class:"no-data"},xt=e.createTextVNode(" Sem dados "),Nt=e.defineComponent({__name:"ListOption",props:{id:null,options:null,multiple:{type:Boolean},isSelected:null},emits:["select"],setup(t,{expose:l,emit:n}){const o=e.ref("");return l({list:o}),(i,a)=>(e.openBlock(),e.createElementBlock("ul",{id:`select-list-${t.id}`,ref_key:"list",ref:o,"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,c)=>(e.openBlock(),e.createElementBlock("li",{id:`option-${t.id}-${d.value}`,key:c,"data-testid":`option-${t.id}-${d.value}`,role:"option",tabindex:"-1",class:"select-option-item",style:e.normalizeStyle(`--item: ${c+1}`),selected:t.isSelected(d),"aria-selected":t.isSelected(d),onClick:r=>n("select",d),onKeyup:[e.withKeys(r=>n("select",d),["enter"]),e.withKeys(r=>n("select",d),["space"])]},[e.renderSlot(i.$slots,"item-list",{text:d.name,value:d.value,option:d,isSelected:t.isSelected(d)},()=>[e.createTextVNode(e.toDisplayString(d.name),1)])],44,Vt))),128)),t.options.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("li",pt,[e.renderSlot(i.$slots,"no-data",{},()=>[xt])]))],8,Et))}}),Zn="",zt={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Mt=[e.createElementVNode("path",{fill:"currentColor",d:"m17 10l-5 6l-5-6h10z"},null,-1)];function Tt(t,l){return e.openBlock(),e.createElementBlock("svg",zt,Mt)}const Dt={name:"mi-caret-down",render:Tt},It=["data-testid"],Lt=["id"],Pt=["id","disabled","data-testid","aria-expanded","aria-labelledby","aria-label","aria-controls","onClick"],Ot={key:0,class:"container-tags"},At={key:1,class:"mr-micro placeholder-inline",tabindex:"-1"},Rt={class:"error"},Ft={class:"select-options-container"},j=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,o=e.ref(),i=e.ref(!1),a=e.ref(""),d=e.computed(()=>{var $;return n.fetchOnSearch?n.options:($=n.options)==null?void 0:$.filter(s=>s.name.includes(a.value))});_(o,()=>{i.value&&m()});function c(){n.disabled||(i.value?m():r())}function r(){i.value=!0}function m(){E(),l("closeDropdown")}function u($){if(Array.isArray(n.selected)){const s=n.selected.findIndex(({value:f})=>f===$.value);return s===-1?[...n.selected,$]:n.selected.filter((f,h)=>h!==s)}return[$]}function B($){n.multiple?l("update:selected",u($)):l("update:selected",$),n.closeOnSelect&&!n.multiple&&m()}function b($){var s;return Array.isArray(n.selected)?n.selected.some(({value:f})=>f===$.value):$.value===((s=n.selected)==null?void 0:s.value)}const y=e.reactive({list:void 0,search:void 0}),k=e.reactive({id:"",index:0});function w({code:$}){const s=h=>{const S=h!=null?h:k.index;h!==void 0&&(k.index=h),setTimeout(()=>{var V,R;const C=(V=y.list)==null?void 0:V.children[S];k.id=(R=C==null?void 0:C.id)!=null?R:"",C==null||C.focus()},0)},f=()=>{var h;n.searchable&&(k.index=0,(h=y==null?void 0:y.search)==null||h.focus())};switch($){case"ArrowUp":return k.index>0&&(k.index-=1),s();case"ArrowDown":return i.value?(k.index<n.options.length-1&&(k.index+=1),s()):(r(),s(0));case"Home":return s(0);case"End":return s(n.options.length-1);case"Escape":return m();default:!["Enter","NumpadEnter","Space"].includes($)&&f()}}function E(){i.value=!1,k.index=0,a.value=""}function x($){return s=>{y[$]=$==="search"?s==null?void 0:s.input:s==null?void 0:s.list}}function M(){var s;const $=n.selected;return(s=$==null?void 0:$.name)!=null?s:n.placeholder}return($,s)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"el",ref:o,class:e.normalizeClass(["sol-select-core",{"-smaller":t.smallerWidth}]),"data-testid":`select-${t.id}`,onKeydownPassive:w},[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,Lt)):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":i.value,"aria-labelledby":`select-label-${t.id}`,"aria-label":t.ariaLabel,"aria-controls":`select-list-${t.id}`,onClick:e.withModifiers(c,["stop"])},[e.renderSlot($.$slots,"toggle-dropdown",{toggle:{open:r,close:m,toggleDropdown:c},isOpen:i.value,select:B,selected:t.selected},()=>{var f;return[t.multiple&&Array.isArray(t.selected)&&((f=t.selected)==null?void 0:f.length)?(e.openBlock(),e.createElementBlock("div",Ot,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.selected,(h,S)=>(e.openBlock(),e.createBlock(O,{id:h.value,key:S,label:h.name,onClick:e.withModifiers(C=>B(h),["stop"]),onClose:C=>B(h)},null,8,["id","label","onClick","onClose"]))),128))])):(e.openBlock(),e.createElementBlock("span",At,e.toDisplayString(M()),1)),e.createVNode(e.unref(Dt),{"aria-hidden":"true",tabindex:"-1",class:e.normalizeClass(["icon",{"-open":i.value}])},null,8,["class"])]})],8,Pt),e.createElementVNode("span",Rt,e.toDisplayString(t.error),1),e.createVNode(e.Transition,{mode:"out-in",name:"dropdown"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",Ft,[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:a.value},()=>[e.createVNode(p,{id:`select-search-${t.id}`,ref:x("search"),modelValue:a.value,"onUpdate:modelValue":s[0]||(s[0]=f=>a.value=f),"data-testid":`select-search-${t.id}`,role:"combobox",class:"search","aria-autocomplete":"list",placeholder:t.searchPlaceholder,"aria-expanded":i.value,"aria-haspopup":"listbox","aria-owns":`select-list-${t.id}`,"aria-controls":`select-list-${t.id}`,"aria-activedescendant":k.id,"aria-labelledby":`select-label-${t.id}`,onClick:s[1]||(s[1]=e.withModifiers(()=>{},["stop"])),onInput:s[2]||(s[2]=f=>{var h;return l("search",(h=f.target)==null?void 0:h.value)})},null,8,["id","modelValue","data-testid","placeholder","aria-expanded","aria-owns","aria-controls","aria-activedescendant","aria-labelledby"]),e.createVNode(e.unref(ae),{"aria-hidden":"true",class:"icon"})])],2)):e.createCommentVNode("",!0),e.createVNode(Nt,{id:t.id,ref:x("list"),options:e.unref(d),multiple:t.multiple,"is-selected":b,onSelect:B},{"item-list":e.withCtx(({text:f,value:h,option:S,isSelected:C})=>[e.renderSlot($.$slots,"default",{text:f,value:h,option:S,isSelected:C})]),"no-data":e.withCtx(()=>[e.renderSlot($.$slots,"no-data")]),_:3},8,["id","options","multiple"])])],512),[[e.vShow,i.value]])]),_:3})],42,It))}}),Jn="";j.install=t=>{t.component("SolSelect",j)},O.install=t=>{t.component("SolChip",O)};const Ht={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Kt=[e.createElementVNode("path",{fill:"currentColor",d:"M11.293 7.293a1 1 0 0 1 1.414 0l6 6a1 1 0 0 1-1.414 1.414L12 9.414l-5.293 5.293a1 1 0 0 1-1.414-1.414l6-6z"},null,-1)];function Ut(t,l){return e.openBlock(),e.createElementBlock("svg",Ht,Kt)}const Gt={name:"mi-chevron-up",render:Ut},Yt=["id","data-testid","aria-disabled"],Wt=["data-testid","tabindex"],jt=["data-testid"],q=e.defineComponent({__name:"Accordion",props:{id:null,title:{default:"Title"},invert:{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",{"-invert":t.invert,"-disabled":t.disabled}]),"aria-disabled":t.disabled},[e.createElementVNode("summary",{"data-testid":`accordion-title-${t.id}`,class:"summary",tabindex:t.disabled?-1:0},[e.renderSlot(l.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)]),e.createVNode(e.unref(Gt),{class:"icon","aria-hidden":"true"})],8,Wt),e.createElementVNode("div",{"data-testid":`accordion-content-${t.id}`,class:"container"},[e.renderSlot(l.$slots,"default")],8,jt)],10,Yt))}}),_n="";q.install=t=>{t.component("SolAccordion",q)};function qt(t,l){function n({code:o}){var d;const i=o;(()=>{if(!(l!=null&&l.fallback))return!1;const c=r=>Array.isArray(r)?!r.includes(i):i!==r;return l!=null&&l.exclude?!t.hasOwnProperty(i)&&c(l.exclude):!t.hasOwnProperty(i)})()&&(l==null||l.fallback()),t.hasOwnProperty(i)&&((d=t[i])==null||d.call(t))}return{navigate:n}}function Zt({target:t,query:l}){const n=e.reactive({id:"",index:-1});function o(u){const B=u!=null?u:n.index,b=t==null?void 0:t.value;u!==void 0&&(n.index=u),setTimeout(()=>{var w;const y=b.children[B],k=l&&y.querySelector(l)?y.querySelector(l):y;n.id=(w=y==null?void 0:y.id)!=null?w:"",k==null||k.focus()},0)}function i(){n.index>0&&(n.index-=1,o())}function a(u){n.index<u-1&&(n.index+=1,o())}function d(){o(0)}function c(u){o(u-1)}function r(u){return u.id?u.id===n.id:u.index===n.index}function m(){n.id="",n.index=-1}return{elementFocus:n,isItemFocused:r,resetStateFocus:m,focusListItem:o,focusOnPreviousItem:i,focusOnNextItem:a,focusOnFirstItem:d,focusOnLastItem:c}}const Qt=["id","data-testid"],Jt=["id","aria-expanded"],Xt=["id","data-testid","aria-labelledby"],Z=e.defineComponent({__name:"Menu",props:{id:null,label:{default:"Teste"},position:{default:"bottom"}},emits:["change"],setup(t,{emit:l}){const n=e.ref();_(n,()=>{b()});const o=e.ref(!1),i=e.ref(),a=e.computed(()=>i.value?i.value.childElementCount:0),{resetStateFocus:d,focusOnPreviousItem:c,focusOnNextItem:r,focusOnFirstItem:m,focusOnLastItem:u}=Zt({target:i,query:'[role="menuitem"]'}),{navigate:B}=qt({Home:m,End:()=>u(a.value),ArrowUp:c,ArrowDown:()=>{!o.value&&y(),r(a.value)},Escape:b});function b(){o.value=!1,d()}function y(){o.value=!0}function k(){o.value=!0}return(w,E)=>(e.openBlock(),e.createElementBlock("div",{id:`menu-${t.id}`,ref_key:"el",ref:n,"data-testid":`menu-${t.id}`,class:e.normalizeClass([`-${t.position}`,"sol-menu-core"]),onKeyupPassive:E[0]||(E[0]=(...x)=>e.unref(B)&&e.unref(B)(...x)),onFocusin:E[1]||(E[1]=x=>l("change","teste"))},[e.createElementVNode("button",{id:`menu-button-${t.id}`,type:"button",role:"menuitem",class:"toggle-menu","aria-haspopup":"true","aria-expanded":o.value,onClick:k},[e.renderSlot(w.$slots,"label",{},()=>[e.createTextVNode(e.toDisplayString(t.label),1)])],8,Jt),e.withDirectives(e.createElementVNode("menu",{id:`menu-container-${t.id}`,ref_key:"menu",ref:i,"data-testid":`menu-container-${t.id}`,role:"menu","aria-labelledby":`menu-button-${t.id}`,class:e.normalizeClass(["menu",{"-open":o.value}])},[e.renderSlot(w.$slots,"default")],10,Xt),[[e.vShow,o.value]])],42,Qt))}}),vn="";Z.install=t=>{t.component("SolMenu",Z)};const _t=["id"],vt=["href","target"],Q=e.defineComponent({__name:"MenuItemLink",props:{id:null,text:null,link:null,active:{type:Boolean},external:{type:Boolean}},setup(t){return(l,n)=>(e.openBlock(),e.createElementBlock("li",{id:`menu-item-link-${t.id}`,class:"sol-menuitem-link-core",tabindex:"-1",role:"none"},[e.renderSlot(l.$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,vt)])],8,_t))}}),el="";Q.install=t=>{t.component("SolMenuItemLink",Q)};const tl="",nl="",ll="",ol="",ce=12,z={type:"success",timeout:5e3,showIcon:!0,showCloseButton:!0,position:"top-right",hideProgressBar:!1};function en(t,l){const n=e.reactive({id:null,intervalId:null,startTime:0,remaining:l}),o=e.ref(100);function i(){clearInterval(n.intervalId),clearTimeout(n.id),n.remaining-=Date.now()-n.startTime}function a(){n.startTime=Date.now(),clearTimeout(n.id),n.intervalId=setInterval(()=>{o.value--},l/100-5),n.id=setTimeout(t,n.remaining)}function d(){clearInterval(n.intervalId),clearTimeout(n.id),o.value=100}return e.onMounted(()=>{if(l<=0)return!1}),e.onUnmounted(()=>{d()}),{start:a,stop:i,clear:d,progress:o}}function tn(t){return{stylePosition:e.computed(()=>{const{position:n,offset:o}=t();switch(n){case"top-left":return{left:"0",top:`${o}px`};case"bottom-left":return{left:"0",bottom:`${o}px`};case"bottom-right":return{right:"0",bottom:`${o}px`};case"top-center":return{top:`${o}px`,left:"0",right:"0",marginRight:"auto",marginLeft:"auto"};case"bottom-center":return{bottom:`${o}px`,left:"0",right:"0",marginRight:"auto",marginLeft:"auto"};default:return{right:"0",top:`${o}px`}}})}}var se=(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))(se||{});const nn={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},ln=[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 on(t,l){return e.openBlock(),e.createElementBlock("svg",nn,ln)}const an={name:"mi-circle-check",render:on},dn={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},cn=[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 sn(t,l){return e.openBlock(),e.createElementBlock("svg",dn,cn)}const rn={name:"mi-circle-error",render:sn},mn={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},un=[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 fn(t,l){return e.openBlock(),e.createElementBlock("svg",mn,un)}const hn={name:"mi-circle-warning",render:fn},$n=["id","data-testid"],bn={class:"content-wrapper"},yn={key:0,class:"icon-container","aria-hidden":"true"},kn={class:"content"},gn={key:0,class:"description"},Bn=["data-testid"],wn=e.defineComponent({__name:"Toast",props:{id:null,type:{default:z.type},visible:{type:Boolean,default:!1},title:null,description:null,timeout:null,hideProgressBar:{type:Boolean,default:z.hideProgressBar},showIcon:{type:Boolean,default:z.showIcon},offset:{default:0},onClose:null,onCloseHandler:null,position:{default:z.position}},setup(t){const l=t,{start:n,stop:o,progress:i}=en(()=>{var m;(m=l.onCloseHandler)==null||m.call(l)},l.timeout),{stylePosition:a}=tn(()=>({offset:l.offset,position:l.position})),d=e.computed(()=>l.title&&l.description);function c(){l.timeout>0&&o()}function r(){n()}return e.onMounted(()=>{n()}),(m,u)=>(e.openBlock(),e.createBlock(e.Transition,{name:e.unref(se)[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(a)),class:e.normalizeClass(["sol-toast-core",[`-${t.type}`,{"-multiline":e.unref(d)}]]),onKeyup:u[1]||(u[1]=e.withKeys((...B)=>t.onCloseHandler&&t.onCloseHandler(...B),["esc"])),onMouseenter:c,onMouseleave:r,onFocusin:c,onFocusout:r},[e.createElementVNode("section",bn,[t.showIcon?(e.openBlock(),e.createElementBlock("div",yn,[e.renderSlot(m.$slots,"icon-status",{type:t.type},()=>[t.type==="success"?(e.openBlock(),e.createBlock(e.unref(an),{key:0,class:"icon"})):e.createCommentVNode("",!0),t.type==="info"?(e.openBlock(),e.createBlock(e.unref(hn),{key:1,class:"icon"})):e.createCommentVNode("",!0),t.type==="danger"?(e.openBlock(),e.createBlock(e.unref(rn),{key:2,class:"icon"})):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),e.createElementVNode("div",kn,[e.createElementVNode("p",{class:e.normalizeClass(["title",{"-multiline":e.unref(d)}])},[e.renderSlot(m.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)])],2),t.description?(e.openBlock(),e.createElementBlock("p",gn,[e.renderSlot(m.$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:u[0]||(u[0]=(...B)=>t.onCloseHandler&&t.onCloseHandler(...B))},[e.createVNode(e.unref(de),{class:"icon"})],10,Bn),t.hideProgressBar?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"progressbar","aria-hidden":"true",style:e.normalizeStyle({width:`${e.unref(i)}%`})},null,4))],46,$n)):e.createCommentVNode("",!0)]),_:3},8,["name"]))}}),cl="",A={"top-left":[],"top-right":[],"top-center":[],"bottom-left":[],"bottom-right":[],"bottom-center":[]};function Sn(){let t=0;function l(){Object.entries(A).forEach(([o,i])=>{i.length&&i.forEach(a=>{var c;const d=(c=a.toastVNode.props)==null?void 0:c.id;te(d,o)})})}return{createToast:(o,i)=>{const a=t++,d=i?Cn(i):z;return i!=null&&i.showOneToast&&l(),En(a,d,typeof o=="string"?{title:o}:o),{close:()=>te(a,d.position)}},clearAllToasts:l}}function Cn(t){const l={...z,...t,showIcon:t.showIcon};return l.hideProgressBar=!!(l.timeout&&(l==null?void 0:l.timeout)<=0),t.hideProgressBar&&(l.hideProgressBar=t.hideProgressBar),l}function En(t,l,n){setTimeout(()=>{const o=pn(l,A,ce),i=document.createElement("div");document.body.appendChild(i);const a=e.createVNode(wn,Vn(l,t,o,te,n));e.render(a,i),A[l.position].push({toastVNode:a,container:i}),a.component&&(a.component.props.visible=!0)},1)}function Vn(t,l,n,o,i){return{...t,...i,id:l,offset:n,visible:!1,onCloseHandler(){o(l,t.position?t.position:"top-right")}}}function pn(t,l,n){if(!t.position)throw new Error("no position");return l[t.position].reduce((o,{toastVNode:i})=>(o+=i.el.offsetHeight+n||0,o),n)}function xn(t,l,n,o){for(let i=t;i<l.length;i++){const{toastVNode:a}=l[i];if(!a.el)return;const d=n.split("-")[0]||"top",c=parseInt(a.el.style[d],10)-o-ce;if(!a.component)return;a.component.props.offset=c}}function te(t,l){var r;const n=A[l],o=n.findIndex(({toastVNode:m})=>{var u;return t===((u=m==null?void 0:m.props)==null?void 0:u.id)});if(o===-1)return;const{container:i,toastVNode:a}=n[o],d=(r=a==null?void 0:a.el)==null?void 0:r.offsetHeight;if(A[l].splice(o,1),xn(o,n,l,d),!a.component)return;const c=a.component.props;c.visible=!1,c.onClose&&c.onClose(),setTimeout(()=>{e.render(null,i),document.body.removeChild(i)},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 ne={SolButton:N,SolButtonDestructive:J,SolInput:p,SolTextarea:H,SolTextfield:T,SolTextfieldPassword:F,SolRadio:D,SolRadioGroup:K,SolCheckbox:I,SolCheckboxGroup:U,SolSwitch:G,SolDropdown:W,SolSelect:j,SolChip:O,SolAccordion:q,SolMenu:Z,SolMenuItemLink:Q};function Nn(t){for(const l in ne)t.component(l,ne[l])}g.SolAccordion=q,g.SolButton=N,g.SolButtonDestructive=J,g.SolCheckbox=I,g.SolCheckboxGroup=U,g.SolChip=O,g.SolDropdown=W,g.SolInput=p,g.SolMenu=Z,g.SolMenuItemLink=Q,g.SolRadio=D,g.SolRadioGroup=K,g.SolSelect=j,g.SolSwitch=G,g.SolTextarea=H,g.SolTextfield=T,g.SolTextfieldPassword=F,g.components=ne,g.install=Nn,g.useToast=Sn,Object.defineProperties(g,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});