@solfacil/girassol 0.7.0 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/cli/build/cli.js +68 -0
  2. package/cli/build/commands/create:component.js +136 -0
  3. package/cli/build/commands/generate:plugin.js +109 -0
  4. package/cli/build/commands/generate:types.js +76 -0
  5. package/cli/build/commands/girassol-cli.js +52 -0
  6. package/cli/build/extensions/cli-extension.js +17 -0
  7. package/cli/build/templates/components.d.ts.ejs +1 -0
  8. package/cli/build/templates/nuxt-plugin.ejs +8 -0
  9. package/cli/build/templates/vitesse-plugin.ejs +8 -0
  10. package/cli/build/templates/vue-plugin.ejs +5 -0
  11. package/cli/build/templates/windi.config.ts.ejs +3 -0
  12. package/cli/build/types/cli.d.ts +1 -0
  13. package/cli/build/types/commands/create:component.d.ts +1 -0
  14. package/cli/build/types/commands/generate:plugin.d.ts +1 -0
  15. package/cli/build/types/commands/generate:types.d.ts +7 -0
  16. package/cli/build/types/commands/girassol-cli.d.ts +1 -0
  17. package/cli/build/types/extensions/cli-extension.d.ts +1 -0
  18. package/cli/build/types/types.d.ts +0 -0
  19. package/cli/build/types.js +2 -0
  20. package/dist/components.d.ts +1 -0
  21. package/dist/components.json +1 -1
  22. package/dist/girassol.es.js +2143 -2015
  23. package/dist/girassol.umd.js +6 -6
  24. package/dist/style.css +1 -1
  25. package/dist/types/components/forms/checkbox/checkbox/Checkbox.vue.d.ts +81 -13
  26. package/dist/types/components/forms/checkbox/checkbox-group/CheckboxGroup.vue.d.ts +4 -20
  27. package/dist/types/components/forms/inputs/input-core/Input.vue.d.ts +91 -15
  28. package/dist/types/components/forms/inputs/input-password/InputPassword.vue.d.ts +107 -21
  29. package/dist/types/components/forms/inputs/input-textarea/InputTextarea.vue.d.ts +121 -33
  30. package/dist/types/components/forms/radio/radio/Radio.vue.d.ts +78 -12
  31. package/dist/types/components/forms/radio/radio-group/RadioGroup.vue.d.ts +4 -20
  32. package/dist/types/components/forms/select/ListOption.vue.d.ts +16 -60
  33. package/dist/types/components/forms/select/Select.vue.d.ts +23 -21
  34. package/dist/types/components/forms/select/types.d.ts +2 -2
  35. package/dist/types/components/forms/switch/Switch.vue.d.ts +107 -20
  36. package/dist/types/components/loader/CircleLoader.vue.d.ts +72 -10
  37. package/dist/types/components/pagination/Pagination.vue.d.ts +190 -0
  38. package/dist/types/components/pagination/index.d.ts +2 -0
  39. package/dist/types/components/pagination/pagination.spec.d.ts +1 -0
  40. package/dist/types/components/pagination/types.d.ts +14 -0
  41. package/dist/types/composables/use-validate-field/index.d.ts +3 -3
  42. package/dist/types/composables/use-validate-field/types.d.ts +4 -8
  43. package/dist/types/index.d.ts +1441 -525
  44. package/package.json +27 -18
@@ -1,14 +1,14 @@
1
- (function(q,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(q=typeof globalThis<"u"?globalThis:q||self,t(q.girassol={},q.Vue))})(this,function(q,t){"use strict";const Cn=t.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),Tt=t.defineComponent({__name:"CircleLoader",props:{size:{default:"large"},dark:{type:Boolean},title:{default:"Carregando"}},setup(e){return(n,l)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(["sol-inner-loader",`-${e.size}`]),viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("title",null,t.toDisplayString(e.title),1),Cn],2))}}),ca="",xn=["data-testid","disabled"],En={class:"icon -left"},Bn={class:"icon -right"},vn={key:0,class:"loading"},ee=t.defineComponent({__name:"Button",props:{id:null,loading:{type:Boolean},onColor:{type:Boolean,default:!1},disabled:{type:Boolean},size:{default:"large"},variant:{default:"primary"}},setup(e){function n(r,a){return r?a:""}const l=t.useSlots(),i=t.computed(()=>!!(l!=null&&l.default)&&(!!(l!=null&&l["icon-right"])||!!(l!=null&&l["icon-left"]))),o=t.computed(()=>!(l!=null&&l.default)&&(!!(l!=null&&l["icon-right"])||!!(l!=null&&l["icon-left"])));return(r,a)=>(t.openBlock(),t.createElementBlock("button",{"data-testid":`button-${e.id}`,class:t.normalizeClass(["sol-button-core",`-${e.variant} -${e.size}
1
+ (function(q,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(q=typeof globalThis<"u"?globalThis:q||self,t(q.girassol={},q.Vue))})(this,function(q,t){"use strict";const vn=t.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),qt=t.defineComponent({__name:"CircleLoader",props:{size:{default:"large"},dark:{type:Boolean},title:{default:"Carregando"}},setup(e){return(n,l)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(["sol-inner-loader",`-${e.size}`]),viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("title",null,t.toDisplayString(e.title),1),vn],2))}}),xr="",Nn=["data-testid","disabled"],In={class:"icon -left"},Tn={class:"icon -right"},An={key:0,class:"loading"},te=t.defineComponent({__name:"Button",props:{id:null,loading:{type:Boolean},onColor:{type:Boolean,default:!1},disabled:{type:Boolean},size:{default:"large"},variant:{default:"primary"}},setup(e){function n(o,r){return o?r:""}const l=t.useSlots(),i=t.computed(()=>!!(l!=null&&l.default)&&(!!(l!=null&&l["icon-right"])||!!(l!=null&&l["icon-left"]))),a=t.computed(()=>!(l!=null&&l.default)&&(!!(l!=null&&l["icon-right"])||!!(l!=null&&l["icon-left"])));return(o,r)=>(t.openBlock(),t.createElementBlock("button",{"data-testid":`button-${e.id}`,class:t.normalizeClass(["sol-button-core",`-${e.variant} -${e.size}
2
2
  ${n(e.loading,"-loading")}
3
3
  ${n(e.onColor,"-on-color")}
4
4
  ${n(t.unref(i),"-has-icon")}
5
- ${n(t.unref(o),"-only-icon")}
6
- `]),type:"button",disabled:e.disabled||e.loading},[t.createElementVNode("div",En,[t.renderSlot(r.$slots,"icon-left")]),t.renderSlot(r.$slots,"default"),t.createElementVNode("div",Bn,[t.renderSlot(r.$slots,"icon-right")]),e.loading?(t.openBlock(),t.createElementBlock("div",vn,[t.createVNode(Tt,{"data-testid":`button-loader-${e.id}`,size:e.size==="small"?"small":"medium",dark:e.onColor},null,8,["data-testid","size","dark"])])):t.createCommentVNode("",!0)],10,xn))}}),da="",On={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Vn=[t.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 In(e,n){return t.openBlock(),t.createElementBlock("svg",On,Vn)}const Nn={name:"material-symbols-delete-outline",render:In},ot=t.defineComponent({__name:"ButtonDestructive",props:{id:null,size:null,loading:{type:Boolean},hideIcon:{type:Boolean,default:!1}},setup(e){return(n,l)=>(t.openBlock(),t.createBlock(ee,{id:`destructive-${e.id}`,size:e.size,loading:e.loading,variant:"primary",class:"button-destructive"},{"icon-left":t.withCtx(()=>[e.hideIcon?(t.openBlock(),t.createBlock(t.unref(Nn),{key:0,"aria-hidden":"true"})):t.createCommentVNode("",!0)]),default:t.withCtx(()=>[t.renderSlot(n.$slots,"default")]),_:3},8,["id","size","loading"]))}}),fa="";ee.install=e=>{e.component("SolButton",ee)},ot.install=e=>{e.component("SolButton",ee)};/*!
5
+ ${n(t.unref(a),"-only-icon")}
6
+ `]),type:"button",disabled:e.disabled||e.loading},[t.createElementVNode("div",In,[t.renderSlot(o.$slots,"icon-left")]),t.renderSlot(o.$slots,"default"),t.createElementVNode("div",Tn,[t.renderSlot(o.$slots,"icon-right")]),e.loading?(t.openBlock(),t.createElementBlock("div",An,[t.createVNode(qt,{"data-testid":`button-loader-${e.id}`,size:e.size==="small"?"small":"medium",dark:e.onColor},null,8,["data-testid","size","dark"])])):t.createCommentVNode("",!0)],10,Nn))}}),Er="",Pn={viewBox:"0 0 24 24",width:"1em",height:"1em"},Fn=[t.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 qn(e,n){return t.openBlock(),t.createElementBlock("svg",Pn,Fn)}const zn={name:"material-symbols-delete-outline",render:qn},st=t.defineComponent({__name:"ButtonDestructive",props:{id:null,size:null,loading:{type:Boolean},hideIcon:{type:Boolean,default:!1}},setup(e){return(n,l)=>(t.openBlock(),t.createBlock(te,{id:`destructive-${e.id}`,size:e.size,loading:e.loading,variant:"primary",class:"button-destructive"},{"icon-left":t.withCtx(()=>[e.hideIcon?(t.openBlock(),t.createBlock(t.unref(zn),{key:0,"aria-hidden":"true"})):t.createCommentVNode("",!0)]),default:t.withCtx(()=>[t.renderSlot(n.$slots,"default")]),_:3},8,["id","size","loading"]))}}),Or="";te.install=e=>{e.component("SolButton",te)},st.install=e=>{e.component("SolButton",te)};/*!
7
7
  * maska v1.5.0
8
8
  * (c) 2019-2021 Alexander Shabunevich
9
9
  * Released under the MIT License.
10
- */function Tn(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function An(e,n){for(var l=0;l<n.length;l++){var i=n[l];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Mn(e,n,l){return n in e?Object.defineProperty(e,n,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[n]=l,e}function At(e,n){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),l.push.apply(l,i)}return l}function je(e){for(var n=1;n<arguments.length;n++){var l=arguments[n]!=null?arguments[n]:{};n%2?At(Object(l),!0).forEach(function(i){Mn(e,i,l[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):At(Object(l)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(l,i))})}return e}var Mt={"#":{pattern:/[0-9]/},X:{pattern:/[0-9a-zA-Z]/},S:{pattern:/[a-zA-Z]/},A:{pattern:/[a-zA-Z]/,uppercase:!0},a:{pattern:/[a-zA-Z]/,lowercase:!0},"!":{escape:!0},"*":{repeat:!0}};function Ft(e,n){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Mt,i=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3];return Pt(n).length>1?Fn(n)(e,n,l,i):rt(e,n,l,i)}function Pt(e){try{return JSON.parse(e)}catch{return[e]}}function Fn(e){var n=Pt(e).sort(function(i,o){return i.length-o.length});return function(i,o,r){var a=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],s=n.map(function(m){return rt(i,m,r,!1)}),c=s.pop();for(var u in n)if(l(c,n[u],r))return rt(i,n[u],r,a);return""};function l(i,o,r){for(var a in r)r[a].escape&&(o=o.replace(new RegExp(a+".{1}","g"),""));return o.split("").filter(function(s){return r[s]&&r[s].pattern}).length>=i.length}}function rt(e,n,l){for(var i=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],o=0,r=0,a="",s="";o<n.length&&r<e.length;){var c=n[o],u=e[r],m=l[c];if(m&&m.pattern)m.pattern.test(u)&&(a+=Pn(u,m),o++,i&&n[o]&&(l[n[o]]?l[n[o]]&&l[n[o]].escape&&(a+=n[o+1],o+=2):(a+=n[o],o++))),r++;else if(m&&m.repeat){var h=l[n[o-1]];h&&!h.pattern.test(u)?o++:o--}else m&&m.escape&&(c=n[++o]),i&&(a+=c),u===c&&r++,o++}for(;i&&o<n.length;){var d=n[o];if(l[d]){s="";break}s+=d,o++}return a+s}function Pn(e,n){return n.transform&&(e=n.transform(e)),n.uppercase?e.toLocaleUpperCase():n.lowercase?e.toLocaleLowerCase():e}function Lt(e){return e instanceof HTMLInputElement?e:e.querySelector("input")||e}function at(e){return Object.prototype.toString.call(e)==="[object String]"}var Ln=function(){function e(i){var o=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(Tn(this,e),!i)throw new Error("Maska: no element for mask");if(r.preprocessor!=null&&typeof r.preprocessor!="function")throw new Error("Maska: preprocessor must be a function");if(r.tokens)for(var a in r.tokens)r.tokens[a]=je({},r.tokens[a]),r.tokens[a].pattern&&at(r.tokens[a].pattern)&&(r.tokens[a].pattern=new RegExp(r.tokens[a].pattern));this._opts={mask:r.mask,tokens:je(je({},Mt),r.tokens),preprocessor:r.preprocessor},this._el=at(i)?document.querySelectorAll(i):i.length?i:[i],this.inputEvent=function(s){return o.updateValue(s.target,s)},this.init()}var n,l;return n=e,(l=[{key:"init",value:function(){for(var i=this,o=function(a){var s=Lt(i._el[a]);!i._opts.mask||s.dataset.mask&&s.dataset.mask===i._opts.mask||(s.dataset.mask=i._opts.mask),setTimeout(function(){return i.updateValue(s)},0),s.dataset.maskInited||(s.dataset.maskInited=!0,s.addEventListener("input",i.inputEvent),s.addEventListener("beforeinput",i.beforeInput))},r=0;r<this._el.length;r++)o(r)}},{key:"destroy",value:function(){for(var i=0;i<this._el.length;i++){var o=Lt(this._el[i]);o.removeEventListener("input",this.inputEvent),o.removeEventListener("beforeinput",this.beforeInput),delete o.dataset.mask,delete o.dataset.maskInited}}},{key:"updateValue",value:function(i,o){if(i&&i.type){var r=i.type.match(/^number$/i)&&i.validity.badInput;if(!i.value&&!r||!i.dataset.mask)return i.dataset.maskRawValue="",void this.dispatch("maska",i,o);var a=i.selectionEnd,s=i.value,c=s[a-1];i.dataset.maskRawValue=Ft(i.value,i.dataset.mask,this._opts.tokens,!1);var u=i.value;this._opts.preprocessor&&(u=this._opts.preprocessor(u)),i.value=Ft(u,i.dataset.mask,this._opts.tokens),o&&o.inputType==="insertText"&&a===s.length&&(a=i.value.length),function(m,h,d){for(;h&&h<m.value.length&&m.value.charAt(h-1)!==d;)h++;(m.type?m.type.match(/^(text|search|password|tel|url)$/i):!m.type)&&m===document.activeElement&&(m.setSelectionRange(h,h),setTimeout(function(){m.setSelectionRange(h,h)},0))}(i,a,c),this.dispatch("maska",i,o),i.value!==s&&this.dispatch("input",i,o)}}},{key:"beforeInput",value:function(i){i&&i.target&&i.target.type&&i.target.type.match(/^number$/i)&&i.data&&isNaN(i.target.value+i.data)&&i.preventDefault()}},{key:"dispatch",value:function(i,o,r){o.dispatchEvent(function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,c=document.createEvent("Event");return c.initEvent(a,!0,!0),s&&(c.inputType=s),c}(i,r&&r.inputType||null))}}])&&An(n.prototype,l),e}(),st,ct=(st=new WeakMap,function(e,n){n.value&&(st.has(e)&&!function(l){return!(at(l.value)&&l.value===l.oldValue||Array.isArray(l.value)&&JSON.stringify(l.value)===JSON.stringify(l.oldValue)||l.value&&l.value.mask&&l.oldValue&&l.oldValue.mask&&l.value.mask===l.oldValue.mask)}(n)||st.set(e,new Ln(e,function(l){var i={};return l.mask?(i.mask=Array.isArray(l.mask)?JSON.stringify(l.mask):l.mask,i.tokens=l.tokens?je({},l.tokens):{},i.preprocessor=l.preprocessor):i.mask=Array.isArray(l)?JSON.stringify(l):l,i}(n.value))))});function zn(e){e.directive("maska",ct)}typeof window<"u"&&window.Vue&&window.Vue.use&&window.Vue.use(zn);const Dn={CPF:"###.###.###-##",CNPJ:"##.###.###/#####-##",CPF_CNPJ:["###.###.###-##","##.###.###/#####-##"],MobilePhoneDDD:"(##) # ####-####"},qn=ct;function zt(e){const n=ct,l=t.computed(()=>{if(e!=null&&e.hasOwnProperty("preset")){const{preset:i}=e;return Dn[i]}return e});return{vMask:n,maskValue:l}}const jn=["id","data-testid","value"],Dt=t.defineComponent({__name:"Input",props:{id:null,modelValue:null,error:null,mask:null,size:{default:"medium"},hasFeedbackIcon:null},emits:["update:modelValue"],setup(e,{expose:n,emit:l}){const i=e,{maskValue:o,vMask:r}=zt(i.mask);function a({target:c}){l("update:modelValue",c==null?void 0:c.value)}const s=t.ref("");return n({input:s}),(c,u)=>t.withDirectives((t.openBlock(),t.createElementBlock("input",{id:`input-${e.id}`,ref_key:"input",ref:s,"data-testid":`input-${e.id}`,value:e.modelValue,class:t.normalizeClass(["sol-input-core",[`-${e.size}`,{"-error":e.error,"-feedback-icon":e.hasFeedbackIcon}]]),onInput:a},null,42,jn)),[[t.unref(r),t.unref(o)]])}}),ma="";function _n(){return qt().__VUE_DEVTOOLS_GLOBAL_HOOK__}function qt(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const Rn=typeof Proxy=="function",Qn="devtools-plugin:setup",Hn="plugin:settings:set";let ge,dt;function Un(){var e;return ge!==void 0||(typeof window<"u"&&window.performance?(ge=!0,dt=window.performance):typeof global<"u"&&((e=global.perf_hooks)===null||e===void 0?void 0:e.performance)?(ge=!0,dt=global.perf_hooks.performance):ge=!1),ge}function Zn(){return Un()?dt.now():Date.now()}class Gn{constructor(n,l){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=n,this.hook=l;const i={};if(n.settings)for(const a in n.settings){const s=n.settings[a];i[a]=s.defaultValue}const o=`__vue-devtools-plugin-settings__${n.id}`;let r=Object.assign({},i);try{const a=localStorage.getItem(o),s=JSON.parse(a);Object.assign(r,s)}catch{}this.fallbacks={getSettings(){return r},setSettings(a){try{localStorage.setItem(o,JSON.stringify(a))}catch{}r=a},now(){return Zn()}},l&&l.on(Hn,(a,s)=>{a===this.plugin.id&&this.fallbacks.setSettings(s)}),this.proxiedOn=new Proxy({},{get:(a,s)=>this.target?this.target.on[s]:(...c)=>{this.onQueue.push({method:s,args:c})}}),this.proxiedTarget=new Proxy({},{get:(a,s)=>this.target?this.target[s]:s==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(s)?(...c)=>(this.targetQueue.push({method:s,args:c,resolve:()=>{}}),this.fallbacks[s](...c)):(...c)=>new Promise(u=>{this.targetQueue.push({method:s,args:c,resolve:u})})})}async setRealTarget(n){this.target=n;for(const l of this.onQueue)this.target.on[l.method](...l.args);for(const l of this.targetQueue)l.resolve(await this.target[l.method](...l.args))}}function Yn(e,n){const l=e,i=qt(),o=_n(),r=Rn&&l.enableEarlyProxy;if(o&&(i.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!r))o.emit(Qn,e,n);else{const a=r?new Gn(l,o):null;(i.__VUE_DEVTOOLS_PLUGINS__=i.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:l,setupFn:n,proxy:a}),a&&n(a.proxiedTarget)}}/**
11
- * vee-validate v4.6.7
10
+ */function Mn(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function Dn(e,n){for(var l=0;l<n.length;l++){var i=n[l];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Ln(e,n,l){return n in e?Object.defineProperty(e,n,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[n]=l,e}function zt(e,n){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),l.push.apply(l,i)}return l}function je(e){for(var n=1;n<arguments.length;n++){var l=arguments[n]!=null?arguments[n]:{};n%2?zt(Object(l),!0).forEach(function(i){Ln(e,i,l[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):zt(Object(l)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(l,i))})}return e}var Mt={"#":{pattern:/[0-9]/},X:{pattern:/[0-9a-zA-Z]/},S:{pattern:/[a-zA-Z]/},A:{pattern:/[a-zA-Z]/,uppercase:!0},a:{pattern:/[a-zA-Z]/,lowercase:!0},"!":{escape:!0},"*":{repeat:!0}};function Dt(e,n){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Mt,i=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3];return Lt(n).length>1?_n(n)(e,n,l,i):ct(e,n,l,i)}function Lt(e){try{return JSON.parse(e)}catch{return[e]}}function _n(e){var n=Lt(e).sort(function(i,a){return i.length-a.length});return function(i,a,o){var r=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],s=n.map(function(h){return ct(i,h,o,!1)}),c=s.pop();for(var u in n)if(l(c,n[u],o))return ct(i,n[u],o,r);return""};function l(i,a,o){for(var r in o)o[r].escape&&(a=a.replace(new RegExp(r+".{1}","g"),""));return a.split("").filter(function(s){return o[s]&&o[s].pattern}).length>=i.length}}function ct(e,n,l){for(var i=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],a=0,o=0,r="",s="";a<n.length&&o<e.length;){var c=n[a],u=e[o],h=l[c];if(h&&h.pattern)h.pattern.test(u)&&(r+=jn(u,h),a++,i&&n[a]&&(l[n[a]]?l[n[a]]&&l[n[a]].escape&&(r+=n[a+1],a+=2):(r+=n[a],a++))),o++;else if(h&&h.repeat){var m=l[n[a-1]];m&&!m.pattern.test(u)?a++:a--}else h&&h.escape&&(c=n[++a]),i&&(r+=c),u===c&&o++,a++}for(;i&&a<n.length;){var d=n[a];if(l[d]){s="";break}s+=d,a++}return r+s}function jn(e,n){return n.transform&&(e=n.transform(e)),n.uppercase?e.toLocaleUpperCase():n.lowercase?e.toLocaleLowerCase():e}function _t(e){return e instanceof HTMLInputElement?e:e.querySelector("input")||e}function dt(e){return Object.prototype.toString.call(e)==="[object String]"}var Qn=function(){function e(i){var a=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(Mn(this,e),!i)throw new Error("Maska: no element for mask");if(o.preprocessor!=null&&typeof o.preprocessor!="function")throw new Error("Maska: preprocessor must be a function");if(o.tokens)for(var r in o.tokens)o.tokens[r]=je({},o.tokens[r]),o.tokens[r].pattern&&dt(o.tokens[r].pattern)&&(o.tokens[r].pattern=new RegExp(o.tokens[r].pattern));this._opts={mask:o.mask,tokens:je(je({},Mt),o.tokens),preprocessor:o.preprocessor},this._el=dt(i)?document.querySelectorAll(i):i.length?i:[i],this.inputEvent=function(s){return a.updateValue(s.target,s)},this.init()}var n,l;return n=e,(l=[{key:"init",value:function(){for(var i=this,a=function(r){var s=_t(i._el[r]);!i._opts.mask||s.dataset.mask&&s.dataset.mask===i._opts.mask||(s.dataset.mask=i._opts.mask),setTimeout(function(){return i.updateValue(s)},0),s.dataset.maskInited||(s.dataset.maskInited=!0,s.addEventListener("input",i.inputEvent),s.addEventListener("beforeinput",i.beforeInput))},o=0;o<this._el.length;o++)a(o)}},{key:"destroy",value:function(){for(var i=0;i<this._el.length;i++){var a=_t(this._el[i]);a.removeEventListener("input",this.inputEvent),a.removeEventListener("beforeinput",this.beforeInput),delete a.dataset.mask,delete a.dataset.maskInited}}},{key:"updateValue",value:function(i,a){if(i&&i.type){var o=i.type.match(/^number$/i)&&i.validity.badInput;if(!i.value&&!o||!i.dataset.mask)return i.dataset.maskRawValue="",void this.dispatch("maska",i,a);var r=i.selectionEnd,s=i.value,c=s[r-1];i.dataset.maskRawValue=Dt(i.value,i.dataset.mask,this._opts.tokens,!1);var u=i.value;this._opts.preprocessor&&(u=this._opts.preprocessor(u)),i.value=Dt(u,i.dataset.mask,this._opts.tokens),a&&a.inputType==="insertText"&&r===s.length&&(r=i.value.length),function(h,m,d){for(;m&&m<h.value.length&&h.value.charAt(m-1)!==d;)m++;(h.type?h.type.match(/^(text|search|password|tel|url)$/i):!h.type)&&h===document.activeElement&&(h.setSelectionRange(m,m),setTimeout(function(){h.setSelectionRange(m,m)},0))}(i,r,c),this.dispatch("maska",i,a),i.value!==s&&this.dispatch("input",i,a)}}},{key:"beforeInput",value:function(i){i&&i.target&&i.target.type&&i.target.type.match(/^number$/i)&&i.data&&isNaN(i.target.value+i.data)&&i.preventDefault()}},{key:"dispatch",value:function(i,a,o){a.dispatchEvent(function(r){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,c=document.createEvent("Event");return c.initEvent(r,!0,!0),s&&(c.inputType=s),c}(i,o&&o.inputType||null))}}])&&Dn(n.prototype,l),e}(),ut,ft=(ut=new WeakMap,function(e,n){n.value&&(ut.has(e)&&!function(l){return!(dt(l.value)&&l.value===l.oldValue||Array.isArray(l.value)&&JSON.stringify(l.value)===JSON.stringify(l.oldValue)||l.value&&l.value.mask&&l.oldValue&&l.oldValue.mask&&l.value.mask===l.oldValue.mask)}(n)||ut.set(e,new Qn(e,function(l){var i={};return l.mask?(i.mask=Array.isArray(l.mask)?JSON.stringify(l.mask):l.mask,i.tokens=l.tokens?je({},l.tokens):{},i.preprocessor=l.preprocessor):i.mask=Array.isArray(l)?JSON.stringify(l):l,i}(n.value))))});function Rn(e){e.directive("maska",ft)}typeof window<"u"&&window.Vue&&window.Vue.use&&window.Vue.use(Rn);const Hn={CPF:"###.###.###-##",CNPJ:"##.###.###/#####-##",CPF_CNPJ:["###.###.###-##","##.###.###/#####-##"],MobilePhoneDDD:"(##) # ####-####"},Un=ft;function jt(e){const n=ft,l=t.computed(()=>{if(e!=null&&e.hasOwnProperty("preset")){const{preset:i}=e;return Hn[i]}return e});return{vMask:n,maskValue:l}}const Zn=["id","data-testid","value"],Qt=t.defineComponent({__name:"Input",props:{id:null,modelValue:null,error:null,mask:null,size:{default:"medium"},hasFeedbackIcon:null},emits:["update:modelValue"],setup(e,{expose:n,emit:l}){const i=e,{maskValue:a,vMask:o}=jt(i.mask);function r({target:c}){l("update:modelValue",c==null?void 0:c.value)}const s=t.ref("");return n({input:s}),(c,u)=>t.withDirectives((t.openBlock(),t.createElementBlock("input",{id:`input-${e.id}`,ref_key:"input",ref:s,"data-testid":`input-${e.id}`,value:e.modelValue,class:t.normalizeClass(["sol-input-core",[`-${e.size}`,{"-error":e.error,"-feedback-icon":e.hasFeedbackIcon}]]),onInput:r},null,42,Zn)),[[t.unref(o),t.unref(a)]])}}),vr="";function Gn(){return Rt().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Rt(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const Wn=typeof Proxy=="function",Kn="devtools-plugin:setup",Jn="plugin:settings:set";let be,mt;function Yn(){var e;return be!==void 0||(typeof window<"u"&&window.performance?(be=!0,mt=window.performance):typeof global<"u"&&((e=global.perf_hooks)===null||e===void 0?void 0:e.performance)?(be=!0,mt=global.perf_hooks.performance):be=!1),be}function Xn(){return Yn()?mt.now():Date.now()}class el{constructor(n,l){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=n,this.hook=l;const i={};if(n.settings)for(const r in n.settings){const s=n.settings[r];i[r]=s.defaultValue}const a=`__vue-devtools-plugin-settings__${n.id}`;let o=Object.assign({},i);try{const r=localStorage.getItem(a),s=JSON.parse(r);Object.assign(o,s)}catch{}this.fallbacks={getSettings(){return o},setSettings(r){try{localStorage.setItem(a,JSON.stringify(r))}catch{}o=r},now(){return Xn()}},l&&l.on(Jn,(r,s)=>{r===this.plugin.id&&this.fallbacks.setSettings(s)}),this.proxiedOn=new Proxy({},{get:(r,s)=>this.target?this.target.on[s]:(...c)=>{this.onQueue.push({method:s,args:c})}}),this.proxiedTarget=new Proxy({},{get:(r,s)=>this.target?this.target[s]:s==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(s)?(...c)=>(this.targetQueue.push({method:s,args:c,resolve:()=>{}}),this.fallbacks[s](...c)):(...c)=>new Promise(u=>{this.targetQueue.push({method:s,args:c,resolve:u})})})}async setRealTarget(n){this.target=n;for(const l of this.onQueue)this.target.on[l.method](...l.args);for(const l of this.targetQueue)l.resolve(await this.target[l.method](...l.args))}}function tl(e,n){const l=e,i=Rt(),a=Gn(),o=Wn&&l.enableEarlyProxy;if(a&&(i.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!o))a.emit(Kn,e,n);else{const r=o?new el(l,a):null;(i.__VUE_DEVTOOLS_PLUGINS__=i.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:l,setupFn:n,proxy:r}),r&&n(r.proxiedTarget)}}/**
11
+ * vee-validate v4.7.0
12
12
  * (c) 2022 Abdelrahman Awad
13
13
  * @license MIT
14
- */function be(e){return typeof e=="function"}function Ee(e){return e==null}const ue=e=>e!==null&&!!e&&typeof e=="object"&&!Array.isArray(e);function jt(e){return Number(e)>=0}function Wn(e){const n=parseFloat(e);return isNaN(n)?e:n}const Kn={};function Jn(e){return Kn[e]}const me=Symbol("vee-validate-form"),Xn=Symbol("vee-validate-field-instance"),_e=Symbol("Default empty value");function ut(e){return be(e)&&!!e.__locatorRef}function Be(e){return!!e&&be(e.validate)}function ke(e){return e==="checkbox"||e==="radio"}function el(e){return ue(e)||Array.isArray(e)}function _t(e){return Array.isArray(e)?e.length===0:ue(e)&&Object.keys(e).length===0}function Re(e){return/^\[.+\]$/i.test(e)}function tl(e){return Rt(e)&&e.multiple}function Rt(e){return e.tagName==="SELECT"}function nl(e,n){const l=![!1,null,void 0,0].includes(n.multiple)&&!Number.isNaN(n.multiple);return e==="select"&&"multiple"in n&&l}function ll(e,n){return!nl(e,n)&&n.type!=="file"&&!ke(n.type)}function Qt(e){return ft(e)&&e.target&&"submit"in e.target}function ft(e){return e?!!(typeof Event<"u"&&be(Event)&&e instanceof Event||e&&e.srcElement):!1}function Ht(e,n){return n in e&&e[n]!==_e}var Ut=function e(n,l){if(n===l)return!0;if(n&&l&&typeof n=="object"&&typeof l=="object"){if(n.constructor!==l.constructor)return!1;var i,o,r;if(Array.isArray(n)){if(i=n.length,i!=l.length)return!1;for(o=i;o--!==0;)if(!e(n[o],l[o]))return!1;return!0}if(n.constructor===RegExp)return n.source===l.source&&n.flags===l.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===l.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===l.toString();if(r=Object.keys(n),i=r.length,i!==Object.keys(l).length)return!1;for(o=i;o--!==0;)if(!Object.prototype.hasOwnProperty.call(l,r[o]))return!1;for(o=i;o--!==0;){var a=r[o];if(!e(n[a],l[a]))return!1}return!0}return n!==n&&l!==l};function mt(e){return Re(e)?e.replace(/\[|\]/gi,""):e}function U(e,n,l){return e?Re(n)?e[mt(n)]:(n||"").split(/\.|\[(\d+)\]/).filter(Boolean).reduce((o,r)=>el(o)&&r in o?o[r]:l,e):l}function fe(e,n,l){if(Re(n)){e[mt(n)]=l;return}const i=n.split(/\.|\[(\d+)\]/).filter(Boolean);let o=e;for(let r=0;r<i.length;r++){if(r===i.length-1){o[i[r]]=l;return}(!(i[r]in o)||Ee(o[i[r]]))&&(o[i[r]]=jt(i[r+1])?[]:{}),o=o[i[r]]}}function ht(e,n){if(Array.isArray(e)&&jt(n)){e.splice(Number(n),1);return}ue(e)&&delete e[n]}function yt(e,n){if(Re(n)){delete e[mt(n)];return}const l=n.split(/\.|\[(\d+)\]/).filter(Boolean);let i=e;for(let r=0;r<l.length;r++){if(r===l.length-1){ht(i,l[r]);break}if(!(l[r]in i)||Ee(i[l[r]]))break;i=i[l[r]]}const o=l.map((r,a)=>U(e,l.slice(0,a).join(".")));for(let r=o.length-1;r>=0;r--)if(!!_t(o[r])){if(r===0){ht(e,l[0]);continue}ht(o[r-1],l[r-1])}}function W(e){return Object.keys(e)}function ve(e,n=void 0){const l=t.getCurrentInstance();return(l==null?void 0:l.provides[e])||t.inject(e,n)}function gt(e){t.warn(`[vee-validate]: ${e}`)}function il(e){return Array.isArray(e)?e[0]:e}function bt(e,n,l){if(Array.isArray(e)){const i=[...e],o=i.findIndex(r=>Ut(r,n));return o>=0?i.splice(o,1):i.push(n),i}return Ut(e,n)?l:n}function ol(e,n){let l,i;return function(...o){const r=this;return l||(l=!0,setTimeout(()=>l=!1,n),i=e.apply(r,o)),i}}function Zt(e,n=0){let l=null,i=[];return function(...o){return l&&window.clearTimeout(l),l=window.setTimeout(()=>{const r=e(...o);i.forEach(a=>a(r)),i=[]},n),new Promise(r=>i.push(r))}}function rl(e,n){return ue(n)&&n.number?Wn(e):e}function kt(e,n){let l;return async function(...o){const r=e(...o);l=r;const a=await r;return r!==l||(l=void 0,n(a,o)),a}}const Qe=(e,n,l)=>n.slots.default?typeof e=="string"||!e?n.slots.default(l()):{default:()=>{var i,o;return(o=(i=n.slots).default)===null||o===void 0?void 0:o.call(i,l())}}:n.slots.default;function pt(e){if(Gt(e))return e._value}function Gt(e){return"_value"in e}function $t(e){if(!ft(e))return e;const n=e.target;if(ke(n.type)&&Gt(n))return pt(n);if(n.type==="file"&&n.files){const l=Array.from(n.files);return n.multiple?l:l[0]}if(tl(n))return Array.from(n.options).filter(l=>l.selected&&!l.disabled).map(pt);if(Rt(n)){const l=Array.from(n.options).find(i=>i.selected);return l?pt(l):n.value}return n.value}function Yt(e){const n={};return Object.defineProperty(n,"_$$isNormalized",{value:!0,writable:!1,enumerable:!1,configurable:!1}),e?ue(e)&&e._$$isNormalized?e:ue(e)?Object.keys(e).reduce((l,i)=>{const o=al(e[i]);return e[i]!==!1&&(l[i]=Wt(o)),l},n):typeof e!="string"?n:e.split("|").reduce((l,i)=>{const o=sl(i);return o.name&&(l[o.name]=Wt(o.params)),l},n):n}function al(e){return e===!0?[]:Array.isArray(e)||ue(e)?e:[e]}function Wt(e){const n=l=>typeof l=="string"&&l[0]==="@"?cl(l.slice(1)):l;return Array.isArray(e)?e.map(n):e instanceof RegExp?[e]:Object.keys(e).reduce((l,i)=>(l[i]=n(e[i]),l),{})}const sl=e=>{let n=[];const l=e.split(":")[0];return e.includes(":")&&(n=e.split(":").slice(1).join(":").split(",")),{name:l,params:n}};function cl(e){const n=l=>U(l,e)||l[e];return n.__locatorRef=e,n}function dl(e){return Array.isArray(e)?e.filter(ut):W(e).filter(n=>ut(e[n])).map(n=>e[n])}let ul=Object.assign({},{generateMessage:({field:e})=>`${e} is not valid.`,bails:!0,validateOnBlur:!0,validateOnChange:!0,validateOnInput:!1,validateOnModelUpdate:!0});const wt=()=>ul;async function Kt(e,n,l={}){const i=l==null?void 0:l.bails,o={name:(l==null?void 0:l.name)||"{field}",rules:n,bails:i!=null?i:!0,formData:(l==null?void 0:l.values)||{}},a=(await fl(o,e)).errors;return{errors:a,valid:!a.length}}async function fl(e,n){if(Be(e.rules))return ml(n,e.rules,{bails:e.bails});if(be(e.rules)||Array.isArray(e.rules)){const a={field:e.name,form:e.formData,value:n},s=Array.isArray(e.rules)?e.rules:[e.rules],c=s.length,u=[];for(let m=0;m<c;m++){const h=s[m],d=await h(n,a);if(typeof d!="string"&&d)continue;const $=typeof d=="string"?d:Jt(a);if(u.push($),e.bails)return{errors:u}}return{errors:u}}const l=Object.assign(Object.assign({},e),{rules:Yt(e.rules)}),i=[],o=Object.keys(l.rules),r=o.length;for(let a=0;a<r;a++){const s=o[a],c=await hl(l,n,{name:s,params:l.rules[s]});if(c.error&&(i.push(c.error),e.bails))return{errors:i}}return{errors:i}}async function ml(e,n,l){var i;return{errors:await n.validate(e,{abortEarly:(i=l.bails)!==null&&i!==void 0?i:!0}).then(()=>[]).catch(r=>{if(r.name==="ValidationError")return r.errors;throw r})}}async function hl(e,n,l){const i=Jn(l.name);if(!i)throw new Error(`No such validator '${l.name}' exists.`);const o=yl(l.params,e.formData),r={field:e.name,value:n,form:e.formData,rule:Object.assign(Object.assign({},l),{params:o})},a=await i(n,o,r);return typeof a=="string"?{error:a}:{error:a?void 0:Jt(r)}}function Jt(e){const n=wt().generateMessage;return n?n(e):"Field is invalid"}function yl(e,n){const l=i=>ut(i)?i(n):i;return Array.isArray(e)?e.map(l):Object.keys(e).reduce((i,o)=>(i[o]=l(e[o]),i),{})}async function gl(e,n){const l=await e.validate(n,{abortEarly:!1}).then(()=>[]).catch(r=>{if(r.name!=="ValidationError")throw r;return r.inner||[]}),i={},o={};for(const r of l){const a=r.errors;i[r.path]={valid:!a.length,errors:a},a.length&&(o[r.path]=a[0])}return{valid:!l.length,results:i,errors:o}}async function bl(e,n,l){const o=W(e).map(async u=>{var m,h,d;const b=await Kt(U(n,u),e[u],{name:((m=l==null?void 0:l.names)===null||m===void 0?void 0:m[u])||u,values:n,bails:(d=(h=l==null?void 0:l.bailsMap)===null||h===void 0?void 0:h[u])!==null&&d!==void 0?d:!0});return Object.assign(Object.assign({},b),{path:u})});let r=!0;const a=await Promise.all(o),s={},c={};for(const u of a)s[u.path]={valid:u.valid,errors:u.errors},u.valid||(r=!1,c[u.path]=u.errors[0]);return{valid:r,results:s,errors:c}}function Xt(e,n,l){typeof l.value=="object"&&(l.value=Z(l.value)),!l.enumerable||l.get||l.set||!l.configurable||!l.writable||n==="__proto__"?Object.defineProperty(e,n,l):e[n]=l.value}function Z(e){if(typeof e!="object")return e;var n=0,l,i,o,r=Object.prototype.toString.call(e);if(r==="[object Object]"?o=Object.create(e.__proto__||null):r==="[object Array]"?o=Array(e.length):r==="[object Set]"?(o=new Set,e.forEach(function(a){o.add(Z(a))})):r==="[object Map]"?(o=new Map,e.forEach(function(a,s){o.set(Z(s),Z(a))})):r==="[object Date]"?o=new Date(+e):r==="[object RegExp]"?o=new RegExp(e.source,e.flags):r==="[object DataView]"?o=new e.constructor(Z(e.buffer)):r==="[object ArrayBuffer]"?o=e.slice(0):r.slice(-6)==="Array]"&&(o=new e.constructor(e)),o){for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)Xt(o,i[n],Object.getOwnPropertyDescriptor(e,i[n]));for(n=0,i=Object.getOwnPropertyNames(e);n<i.length;n++)Object.hasOwnProperty.call(o,l=i[n])&&o[l]===e[l]||Xt(o,l,Object.getOwnPropertyDescriptor(e,l))}return o||e}var ie=function e(n,l){if(n===l)return!0;if(n&&l&&typeof n=="object"&&typeof l=="object"){if(n.constructor!==l.constructor)return!1;var i,o,r;if(Array.isArray(n)){if(i=n.length,i!=l.length)return!1;for(o=i;o--!==0;)if(!e(n[o],l[o]))return!1;return!0}if(n instanceof Map&&l instanceof Map){if(n.size!==l.size)return!1;for(o of n.entries())if(!l.has(o[0]))return!1;for(o of n.entries())if(!e(o[1],l.get(o[0])))return!1;return!0}if(n instanceof Set&&l instanceof Set){if(n.size!==l.size)return!1;for(o of n.entries())if(!l.has(o[0]))return!1;return!0}if(ArrayBuffer.isView(n)&&ArrayBuffer.isView(l)){if(i=n.length,i!=l.length)return!1;for(o=i;o--!==0;)if(n[o]!==l[o])return!1;return!0}if(n.constructor===RegExp)return n.source===l.source&&n.flags===l.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===l.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===l.toString();if(r=Object.keys(n),i=r.length,i!==Object.keys(l).length)return!1;for(o=i;o--!==0;)if(!Object.prototype.hasOwnProperty.call(l,r[o]))return!1;for(o=i;o--!==0;){var a=r[o];if(!e(n[a],l[a]))return!1}return!0}return n!==n&&l!==l};let en=0;function kl(e,n){const{value:l,initialValue:i,setInitialValue:o}=tn(e,n.modelValue,!n.standalone),{errorMessage:r,errors:a,setErrors:s}=$l(e,!n.standalone),c=pl(l,i,a),u=en>=Number.MAX_SAFE_INTEGER?0:++en;function m(h){var d;"value"in h&&(l.value=h.value),"errors"in h&&s(h.errors),"touched"in h&&(c.touched=(d=h.touched)!==null&&d!==void 0?d:c.touched),"initialValue"in h&&o(h.initialValue)}return{id:u,path:e,value:l,initialValue:i,meta:c,errors:a,errorMessage:r,setState:m}}function tn(e,n,l=!0){const i=l===!0?ve(me,void 0):void 0,o=t.ref(t.unref(n));function r(){return i?U(i.meta.value.initialValues,t.unref(e),t.unref(o)):t.unref(o)}function a(m){if(!i){o.value=m;return}i.stageInitialValue(t.unref(e),m,!0)}const s=t.computed(r);if(!i)return{value:t.ref(r()),initialValue:s,setInitialValue:a};const c=n?t.unref(n):U(i.values,t.unref(e),t.unref(s));return i.stageInitialValue(t.unref(e),c,!0),{value:t.computed({get(){return U(i.values,t.unref(e))},set(m){i.setFieldValue(t.unref(e),m)}}),initialValue:s,setInitialValue:a}}function pl(e,n,l){const i=t.reactive({touched:!1,pending:!1,valid:!0,validated:!!t.unref(l).length,initialValue:t.computed(()=>t.unref(n)),dirty:t.computed(()=>!ie(t.unref(e),t.unref(n)))});return t.watch(l,o=>{i.valid=!o.length},{immediate:!0,flush:"sync"}),i}function $l(e,n){const l=n?ve(me,void 0):void 0;function i(r){return r?Array.isArray(r)?r:[r]:[]}if(!l){const r=t.ref([]);return{errors:r,errorMessage:t.computed(()=>r.value[0]),setErrors:a=>{r.value=i(a)}}}const o=t.computed(()=>l.errorBag.value[t.unref(e)]||[]);return{errors:o,errorMessage:t.computed(()=>o.value[0]),setErrors:r=>{l.setFieldErrorBag(t.unref(e),i(r))}}}function nn(e){process.env.NODE_ENV!=="production"&&Yn({id:"vee-validate-devtools-plugin",label:"VeeValidate Plugin",packageName:"vee-validate",homepage:"https://vee-validate.logaretm.com/v4",app:e,logo:"https://vee-validate.logaretm.com/v4/logo.png"},Cl)}const Oe={},Ve={};let ae;const pe=ol(()=>{setTimeout(async()=>{await t.nextTick(),ae==null||ae.sendInspectorState($e),ae==null||ae.sendInspectorTree($e)},100)},100);function wl(e){const n=t.getCurrentInstance();if(!ae){const l=n==null?void 0:n.appContext.app;if(!l)return;nn(l)}Oe[e.formId]=Object.assign({},e),Oe[e.formId]._vm=n,t.onUnmounted(()=>{delete Oe[e.formId],pe()}),pe()}function Sl(e){const n=t.getCurrentInstance();if(!ae){const l=n==null?void 0:n.appContext.app;if(!l)return;nn(l)}Ve[e.id]=Object.assign({},e),Ve[e.id]._vm=n,t.onUnmounted(()=>{delete Ve[e.id],pe()}),pe()}const $e="vee-validate-inspector",X={error:12405579,success:448379,unknown:5522283,white:16777215,black:0,blue:218007,purple:12157168,orange:16099682,gray:12304330};let se=null;function Cl(e){ae=e,e.addInspector({id:$e,icon:"rule",label:"vee-validate",noSelectionText:"Select a vee-validate node to inspect",actions:[{icon:"done_outline",tooltip:"Validate selected item",action:async()=>{if(!se){console.error("There is not a valid selected vee-validate node or component");return}const n=await se.validate();console.log(n)}},{icon:"delete_sweep",tooltip:"Clear validation state of the selected item",action:()=>{if(!se){console.error("There is not a valid selected vee-validate node or component");return}if("id"in se){se.resetField();return}se.resetForm()}}]}),e.on.getInspectorTree(n=>{if(n.inspectorId!==$e)return;const l=Object.values(Oe),i=Object.values(Ve);n.rootNodes=[...l.map(xl),...i.map(o=>St(o))]}),e.on.getInspectorState((n,l)=>{if(n.inspectorId!==$e||l.currentTab!==`custom-inspector:${$e}`)return;const{form:i,field:o,type:r}=El(n.nodeId);if(i&&r==="form"){n.state=vl(i),se=i;return}if(o&&r==="field"){n.state=Bl(o),se=o;return}se=null})}function xl(e){const{textColor:n,bgColor:l}=on(e),i={};Object.values(e.fieldsByPath.value).forEach(a=>{const s=Array.isArray(a)?a[0]:a;!s||fe(i,t.unref(s.name),St(s,e))});function o(a,s=[]){const c=[...s].pop();return"id"in a?Object.assign(Object.assign({},a),{label:c||a.label}):ue(a)?{id:`${s.join(".")}`,label:c||"",children:Object.keys(a).map(u=>o(a[u],[...s,u]))}:Array.isArray(a)?{id:`${s.join(".")}`,label:`${c}[]`,children:a.map((u,m)=>o(u,[...s,String(m)]))}:{id:"",label:"",children:[]}}const{children:r}=o(i);return{id:ln(e),label:"Form",children:r,tags:[{label:"Form",textColor:n,backgroundColor:l},{label:`${Object.keys(e.fieldsByPath.value).length} fields`,textColor:X.white,backgroundColor:X.unknown}]}}function St(e,n){const l=il(e),{textColor:i,bgColor:o}=on(l),r=Array.isArray(e)&&e.length>1;return{id:ln(n,l,!r),label:t.unref(l.name),children:Array.isArray(e)?e.map(a=>St(a,n)):void 0,tags:[r?void 0:{label:"Field",textColor:i,backgroundColor:o},n?void 0:{label:"Standalone",textColor:X.black,backgroundColor:X.gray},!r&&l.type==="checkbox"?{label:"Checkbox",textColor:X.white,backgroundColor:X.blue}:void 0,!r&&l.type==="radio"?{label:"Radio",textColor:X.white,backgroundColor:X.purple}:void 0,r?{label:"Group",textColor:X.black,backgroundColor:X.orange}:void 0].filter(Boolean)}}function ln(e,n,l=!0){const i=e?t.unref(n==null?void 0:n.name):n==null?void 0:n.id,o=i?e==null?void 0:e.fieldsByPath.value[i]:void 0;let r;l&&n&&Array.isArray(o)&&(r=o.indexOf(n));const a={f:e==null?void 0:e.formId,ff:i,idx:r,type:n?"field":"form"};return btoa(JSON.stringify(a))}function El(e){try{const n=JSON.parse(atob(e)),l=Oe[n.f];if(!l&&n.ff){const o=Ve[n.ff];return o?{type:n.type,field:o}:{}}if(!l)return{};const i=l.fieldsByPath.value[n.ff];return{type:n.type,form:l,field:Array.isArray(i)?i[n.idx||0]:i}}catch{}return{}}function Bl(e){const{errors:n,meta:l,value:i}=e;return{"Field state":[{key:"errors",value:n.value},{key:"initialValue",value:l.initialValue},{key:"currentValue",value:i.value},{key:"touched",value:l.touched},{key:"dirty",value:l.dirty},{key:"valid",value:l.valid}]}}function vl(e){const{errorBag:n,meta:l,values:i,isSubmitting:o,submitCount:r}=e;return{"Form state":[{key:"submitCount",value:r.value},{key:"isSubmitting",value:o.value},{key:"touched",value:l.value.touched},{key:"dirty",value:l.value.dirty},{key:"valid",value:l.value.valid},{key:"initialValues",value:l.value.initialValues},{key:"currentValues",value:i},{key:"errors",value:W(n.value).reduce((a,s)=>{var c;const u=(c=n.value[s])===null||c===void 0?void 0:c[0];return u&&(a[s]=u),a},{})}]}}function on(e){const n="id"in e?e.meta.valid:e.meta.value.valid;return{bgColor:n?X.success:X.error,textColor:n?X.black:X.white}}function Ct(e,n,l){return ke(l==null?void 0:l.type)?Il(e,n,l):rn(e,n,l)}function rn(e,n,l){const{initialValue:i,validateOnMount:o,bails:r,type:a,checkedValue:s,label:c,validateOnValueUpdate:u,uncheckedValue:m,standalone:h,keepValueOnUnmount:d,modelPropName:b,syncVModel:$}=Ol(t.unref(e),l),S=h?void 0:ve(me);let D=!1;const{id:_,value:N,initialValue:p,meta:k,setState:E,errors:I,errorMessage:M}=kl(e,{modelValue:i,standalone:h});$&&Nl({value:N,prop:b,handleChange:le});const z=()=>{k.touched=!0},R=t.computed(()=>{let y=t.unref(n);const B=t.unref(S==null?void 0:S.schema);return B&&!Be(B)&&(y=Vl(B,t.unref(e))||y),Be(y)||be(y)||Array.isArray(y)?y:Yt(y)});async function A(y){var B,Q;return S!=null&&S.validateSchema?(B=(await S.validateSchema(y)).results[t.unref(e)])!==null&&B!==void 0?B:{valid:!0,errors:[]}:Kt(N.value,R.value,{name:t.unref(c)||t.unref(e),values:(Q=S==null?void 0:S.values)!==null&&Q!==void 0?Q:{},bails:r})}const j=kt(async()=>(k.pending=!0,k.validated=!0,A("validated-only")),y=>(D&&(y.valid=!0,y.errors=[]),E({errors:y.errors}),k.pending=!1,y)),H=kt(async()=>A("silent"),y=>(D&&(y.valid=!0),k.valid=y.valid,y));function K(y){return(y==null?void 0:y.mode)==="silent"?H():j()}function le(y,B=!0){const Q=$t(y);N.value=Q,!u&&B&&j()}t.onMounted(()=>{if(o)return j();(!S||!S.validateSchema)&&H()});function Y(y){k.touched=y}let v;function O(){v=t.watch(N,(y,B)=>{if(ie(y,B))return;(u?j:H)()},{deep:!0})}O();function w(y){var B;v==null||v();const Q=y&&"value"in y?y.value:p.value;E({value:Z(Q),initialValue:Z(Q),touched:(B=y==null?void 0:y.touched)!==null&&B!==void 0?B:!1,errors:(y==null?void 0:y.errors)||[]}),k.pending=!1,k.validated=!1,H(),t.nextTick(()=>{O()})}function C(y){N.value=y}function V(y){E({errors:Array.isArray(y)?y:[y]})}const T={id:_,name:e,label:c,value:N,meta:k,errors:I,errorMessage:M,type:a,checkedValue:s,uncheckedValue:m,bails:r,keepValueOnUnmount:d,resetField:w,handleReset:()=>w(),validate:K,handleChange:le,handleBlur:z,setState:E,setTouched:Y,setErrors:V,setValue:C};if(t.provide(Xn,T),t.isRef(n)&&typeof t.unref(n)!="function"&&t.watch(n,(y,B)=>{ie(y,B)||(k.validated?j():H())},{deep:!0}),process.env.NODE_ENV!=="production"&&(T._vm=t.getCurrentInstance(),t.watch(()=>Object.assign(Object.assign({errors:I.value},k),{value:N.value}),pe,{deep:!0}),S||Sl(T)),!S)return T;S.register(T),t.onBeforeUnmount(()=>{D=!0,S.unregister(T)});const L=t.computed(()=>{const y=R.value;return!y||be(y)||Be(y)||Array.isArray(y)?{}:Object.keys(y).reduce((B,Q)=>{const ce=dl(y[Q]).map(te=>te.__locatorRef).reduce((te,ne)=>{const oe=U(S.values,ne)||S.values[ne];return oe!==void 0&&(te[ne]=oe),te},{});return Object.assign(B,ce),B},{})});return t.watch(L,(y,B)=>{if(!Object.keys(y).length)return;!ie(y,B)&&(k.validated?j():H())}),T}function Ol(e,n){const l=()=>({initialValue:void 0,validateOnMount:!1,bails:!0,rules:"",label:e,validateOnValueUpdate:!0,standalone:!1,keepValueOnUnmount:void 0,modelPropName:"modelValue",syncVModel:!0});if(!n)return l();const i="valueProp"in n?n.valueProp:n.checkedValue;return Object.assign(Object.assign(Object.assign({},l()),n||{}),{checkedValue:i})}function Vl(e,n){if(!!e)return e[n]}function Il(e,n,l){const i=l!=null&&l.standalone?void 0:ve(me),o=l==null?void 0:l.checkedValue,r=l==null?void 0:l.uncheckedValue;function a(s){const c=s.handleChange,u=t.computed(()=>{const h=t.unref(s.value),d=t.unref(o);return Array.isArray(h)?h.findIndex(b=>ie(b,d))>=0:ie(d,h)});function m(h,d=!0){var b;if(u.value===((b=h==null?void 0:h.target)===null||b===void 0?void 0:b.checked))return;let $=$t(h);i||($=bt(t.unref(s.value),t.unref(o),t.unref(r))),c($,d)}return Object.assign(Object.assign({},s),{checked:u,checkedValue:o,uncheckedValue:r,handleChange:m})}return a(rn(e,n,l))}function Nl({prop:e,value:n,handleChange:l}){const i=t.getCurrentInstance();if(!i){process.env.NODE_ENV!=="production"&&console.warn("Failed to setup model events because `useField` was not called in setup.");return}const o=e||"modelValue",r=`update:${o}`;o in i.props&&(t.watch(n,a=>{ie(a,an(i,o))||i.emit(r,a)}),t.watch(()=>an(i,o),a=>{if(a===_e&&n.value===void 0)return;const s=a===_e?void 0:a;ie(s,rl(n.value,i.props.modelModifiers))||l(s)}))}function an(e,n){return e.props[n]}t.defineComponent({name:"Field",inheritAttrs:!1,props:{as:{type:[String,Object],default:void 0},name:{type:String,required:!0},rules:{type:[Object,String,Function],default:void 0},validateOnMount:{type:Boolean,default:!1},validateOnBlur:{type:Boolean,default:void 0},validateOnChange:{type:Boolean,default:void 0},validateOnInput:{type:Boolean,default:void 0},validateOnModelUpdate:{type:Boolean,default:void 0},bails:{type:Boolean,default:()=>wt().bails},label:{type:String,default:void 0},uncheckedValue:{type:null,default:void 0},modelValue:{type:null,default:_e},modelModifiers:{type:null,default:()=>({})},"onUpdate:modelValue":{type:null,default:void 0},standalone:{type:Boolean,default:!1},keepValue:{type:Boolean,default:void 0}},setup(e,n){const l=t.toRef(e,"rules"),i=t.toRef(e,"name"),o=t.toRef(e,"label"),r=t.toRef(e,"uncheckedValue"),a=t.toRef(e,"keepValue"),{errors:s,value:c,errorMessage:u,validate:m,handleChange:h,handleBlur:d,setTouched:b,resetField:$,handleReset:S,meta:D,checked:_,setErrors:N}=Ct(i,l,{validateOnMount:e.validateOnMount,bails:e.bails,standalone:e.standalone,type:n.attrs.type,initialValue:Al(e,n),checkedValue:n.attrs.value,uncheckedValue:r,label:o,validateOnValueUpdate:!1,keepValueOnUnmount:a}),p=function(R,A=!0){h(R,A),n.emit("update:modelValue",c.value)},k=z=>{ke(n.attrs.type)||(c.value=$t(z))},E=function(R){k(R),n.emit("update:modelValue",c.value)},I=t.computed(()=>{const{validateOnInput:z,validateOnChange:R,validateOnBlur:A,validateOnModelUpdate:j}=Tl(e),H=[d,n.attrs.onBlur,A?m:void 0].filter(Boolean),K=[O=>p(O,z),n.attrs.onInput].filter(Boolean),le=[O=>p(O,R),n.attrs.onChange].filter(Boolean),Y={name:e.name,onBlur:H,onInput:K,onChange:le};Y["onUpdate:modelValue"]=O=>p(O,j),ke(n.attrs.type)&&_&&(Y.checked=_.value);const v=sn(e,n);return ll(v,n.attrs)&&(Y.value=c.value),Y});function M(){return{field:I.value,value:c.value,meta:D,errors:s.value,errorMessage:u.value,validate:m,resetField:$,handleChange:p,handleInput:E,handleReset:S,handleBlur:d,setTouched:b,setErrors:N}}return n.expose({setErrors:N,setTouched:b,reset:$,validate:m,handleChange:h}),()=>{const z=t.resolveDynamicComponent(sn(e,n)),R=Qe(z,n,M);return z?t.h(z,Object.assign(Object.assign({},n.attrs),I.value),R):R}}});function sn(e,n){let l=e.as||"";return!e.as&&!n.slots.default&&(l="input"),l}function Tl(e){var n,l,i,o;const{validateOnInput:r,validateOnChange:a,validateOnBlur:s,validateOnModelUpdate:c}=wt();return{validateOnInput:(n=e.validateOnInput)!==null&&n!==void 0?n:r,validateOnChange:(l=e.validateOnChange)!==null&&l!==void 0?l:a,validateOnBlur:(i=e.validateOnBlur)!==null&&i!==void 0?i:s,validateOnModelUpdate:(o=e.validateOnModelUpdate)!==null&&o!==void 0?o:c}}function Al(e,n){return ke(n.attrs.type)?Ht(e,"modelValue")?e.modelValue:void 0:Ht(e,"modelValue")?e.modelValue:n.attrs.value}let Ml=0;function Fl(e){var n;const l=Ml++;let i=!1;const o=t.ref({}),r=t.ref(!1),a=t.ref(0),s=[],c=t.reactive(Z(t.unref(e==null?void 0:e.initialValues)||{})),{errorBag:u,setErrorBag:m,setFieldErrorBag:h}=zl(e==null?void 0:e.initialErrors),d=t.computed(()=>W(u.value).reduce((f,g)=>{const F=u.value[g];return F&&F.length&&(f[g]=F[0]),f},{}));function b(f){const g=o.value[f];return Array.isArray(g)?g[0]:g}function $(f){return!!o.value[f]}const S=t.computed(()=>W(o.value).reduce((f,g)=>{const F=b(g);return F&&(f[g]=t.unref(F.label||F.name)||""),f},{})),D=t.computed(()=>W(o.value).reduce((f,g)=>{var F;const P=b(g);return P&&(f[g]=(F=P.bails)!==null&&F!==void 0?F:!0),f},{})),_=Object.assign({},(e==null?void 0:e.initialErrors)||{}),N=(n=e==null?void 0:e.keepValuesOnUnmount)!==null&&n!==void 0?n:!1,{initialValues:p,originalInitialValues:k,setInitialValues:E}=Ll(o,c,e==null?void 0:e.initialValues),I=Pl(o,c,k,d),M=e==null?void 0:e.validationSchema,z=Zt(Sn,5),R=Zt(Sn,5),A=kt(async f=>await f==="silent"?z():R(),(f,[g])=>{const F=j.fieldsByPath.value||{},P=W(j.errorBag.value);return[...new Set([...W(f.results),...W(F),...P])].reduce((G,J)=>{const de=F[J],xe=(f.results[J]||{errors:[]}).errors,re={errors:xe,valid:!xe.length};if(G.results[J]=re,re.valid||(G.errors[J]=re.errors[0]),!de)return Y(J,xe),G;if(K(de,qe=>qe.meta.valid=re.valid),g==="silent")return G;const sa=Array.isArray(de)?de.some(qe=>qe.meta.validated):de.meta.validated;return g==="validated-only"&&!sa||K(de,qe=>qe.setState({errors:re.errors})),G},{valid:f.valid,results:{},errors:{}})}),j={formId:l,fieldsByPath:o,values:c,errorBag:u,errors:d,schema:M,submitCount:a,meta:I,isSubmitting:r,fieldArrays:s,keepValuesOnUnmount:N,validateSchema:t.unref(M)?A:void 0,validate:ne,register:ce,unregister:te,setFieldErrorBag:h,validateField:oe,setFieldValue:O,setValues:w,setErrors:v,setFieldError:Y,setFieldTouched:T,setTouched:L,resetForm:y,handleSubmit:De,stageInitialValue:ra,unsetInitialValue:oa,setFieldInitialValue:wn,useFieldModel:V};function H(f){return Array.isArray(f)}function K(f,g){return Array.isArray(f)?f.forEach(g):g(f)}function le(f){Object.values(o.value).forEach(g=>{!g||K(g,f)})}function Y(f,g){h(f,g)}function v(f){m(f)}function O(f,g,{force:F}={force:!1}){var P;const x=o.value[f],G=Z(g);if(!x){fe(c,f,G);return}if(H(x)&&((P=x[0])===null||P===void 0?void 0:P.type)==="checkbox"&&!Array.isArray(g)){const de=Z(bt(U(c,f)||[],g,void 0));fe(c,f,de);return}let J=g;!H(x)&&x.type==="checkbox"&&!F&&!i&&(J=Z(bt(U(c,f),g,t.unref(x.uncheckedValue)))),fe(c,f,J)}function w(f){W(c).forEach(g=>{delete c[g]}),W(f).forEach(g=>{O(g,f[g])}),s.forEach(g=>g&&g.reset())}function C(f){const{value:g}=tn(f);return t.watch(g,()=>{$(t.unref(f))||ne({mode:"validated-only"})},{deep:!0}),g}function V(f){return Array.isArray(f)?f.map(C):C(f)}function T(f,g){const F=o.value[f];F&&K(F,P=>P.setTouched(g))}function L(f){W(f).forEach(g=>{T(g,!!f[g])})}function y(f){i=!0,f!=null&&f.values?(E(f.values),w(f==null?void 0:f.values)):(E(k.value),w(k.value)),le(g=>g.resetField()),f!=null&&f.touched&&L(f.touched),v((f==null?void 0:f.errors)||{}),a.value=(f==null?void 0:f.submitCount)||0,t.nextTick(()=>{i=!1})}function B(f,g){const F=t.markRaw(f),P=g;if(!o.value[P]){o.value[P]=F;return}const x=o.value[P];x&&!Array.isArray(x)&&(o.value[P]=[x]),o.value[P]=[...o.value[P],F]}function Q(f,g){const F=g,P=o.value[F];if(!!P){if(!H(P)&&f.id===P.id){delete o.value[F];return}if(H(P)){const x=P.findIndex(G=>G.id===f.id);if(x===-1)return;P.splice(x,1),P.length||delete o.value[F]}}}function ce(f){const g=t.unref(f.name);B(f,g),t.isRef(f.name)&&t.watch(f.name,async(P,x)=>{await t.nextTick(),Q(f,x),B(f,P),(d.value[x]||d.value[P])&&(Y(x,void 0),oe(P)),await t.nextTick(),$(x)||yt(c,x)});const F=t.unref(f.errorMessage);F&&(_==null?void 0:_[g])!==F&&oe(g),delete _[g]}function te(f){const g=t.unref(f.name),F=o.value[g],P=!!F&&H(F);Q(f,g),t.nextTick(()=>{var x;const G=(x=t.unref(f.keepValueOnUnmount))!==null&&x!==void 0?x:t.unref(N),J=U(c,g);if(P&&(F===o.value[g]||!o.value[g])&&Array.isArray(J)&&!G){const xe=J.findIndex(re=>ie(re,t.unref(f.checkedValue)));if(xe>-1){const re=[...J];re.splice(xe,1),O(g,re,{force:!0})}}if(!$(g)){if(Y(g,void 0),G||P&&!_t(U(c,g)))return;yt(c,g)}})}async function ne(f){if(le(x=>x.meta.validated=!0),j.validateSchema)return j.validateSchema((f==null?void 0:f.mode)||"force");const g=await Promise.all(Object.values(o.value).map(x=>{const G=Array.isArray(x)?x[0]:x;return G?G.validate(f).then(J=>({key:t.unref(G.name),valid:J.valid,errors:J.errors})):Promise.resolve({key:"",valid:!0,errors:[]})})),F={},P={};for(const x of g)F[x.key]={valid:x.valid,errors:x.errors},x.errors.length&&(P[x.key]=x.errors[0]);return{valid:g.every(x=>x.valid),results:F,errors:P}}async function oe(f){const g=o.value[f];return g?Array.isArray(g)?g.map(F=>F.validate())[0]:g.validate():(t.warn(`field with name ${f} was not found`),Promise.resolve({errors:[],valid:!0}))}function De(f,g){return function(P){return P instanceof Event&&(P.preventDefault(),P.stopPropagation()),L(W(o.value).reduce((x,G)=>(x[G]=!0,x),{})),r.value=!0,a.value++,ne().then(x=>{if(x.valid&&typeof f=="function")return f(Z(c),{evt:P,setErrors:v,setFieldError:Y,setTouched:L,setFieldTouched:T,setValues:w,setFieldValue:O,resetForm:y});!x.valid&&typeof g=="function"&&g({values:Z(c),evt:P,errors:x.errors,results:x.results})}).then(x=>(r.value=!1,x),x=>{throw r.value=!1,x})}}function wn(f,g){fe(p.value,f,Z(g))}function oa(f){yt(p.value,f)}function ra(f,g,F=!1){fe(c,f,g),wn(f,g),F&&!(e!=null&&e.initialValues)&&fe(k.value,f,Z(g))}async function Sn(){const f=t.unref(M);return f?Be(f)?await gl(f,c):await bl(f,c,{names:S.value,bailsMap:D.value}):{valid:!0,results:{},errors:{}}}const aa=De((f,{evt:g})=>{Qt(g)&&g.target.submit()});return t.onMounted(()=>{if(e!=null&&e.initialErrors&&v(e.initialErrors),e!=null&&e.initialTouched&&L(e.initialTouched),e!=null&&e.validateOnMount){ne();return}j.validateSchema&&j.validateSchema("silent")}),t.isRef(M)&&t.watch(M,()=>{var f;(f=j.validateSchema)===null||f===void 0||f.call(j,"validated-only")}),t.provide(me,j),process.env.NODE_ENV!=="production"&&(wl(j),t.watch(()=>Object.assign(Object.assign({errors:u.value},I.value),{values:c,isSubmitting:r.value,submitCount:a.value}),pe,{deep:!0})),{errors:d,meta:I,values:c,isSubmitting:r,submitCount:a,validate:ne,validateField:oe,handleReset:()=>y(),resetForm:y,handleSubmit:De,submitForm:aa,setFieldError:Y,setErrors:v,setFieldValue:O,setValues:w,setFieldTouched:T,setTouched:L,useFieldModel:V}}function Pl(e,n,l,i){const o={touched:"some",pending:"some",valid:"every"},r=t.computed(()=>!ie(n,t.unref(l)));function a(){const c=Object.values(e.value).flat(1).filter(Boolean);return W(o).reduce((u,m)=>{const h=o[m];return u[m]=c[h](d=>d.meta[m]),u},{})}const s=t.reactive(a());return t.watchEffect(()=>{const c=a();s.touched=c.touched,s.valid=c.valid,s.pending=c.pending}),t.computed(()=>Object.assign(Object.assign({initialValues:t.unref(l)},s),{valid:s.valid&&!W(i.value).length,dirty:r.value}))}function Ll(e,n,l){const i=t.ref(Z(t.unref(l))||{}),o=t.ref(Z(t.unref(l))||{});function r(a,s=!1){i.value=Z(a),o.value=Z(a),s&&W(e.value).forEach(c=>{const u=e.value[c],m=Array.isArray(u)?u.some(d=>d.meta.touched):u==null?void 0:u.meta.touched;if(!u||m)return;const h=U(i.value,c);fe(n,c,Z(h))})}return t.isRef(l)&&t.watch(l,a=>{r(a,!0)},{deep:!0}),{initialValues:i,originalInitialValues:o,setInitialValues:r}}function zl(e){const n=t.ref({});function l(r){return Array.isArray(r)?r:r?[r]:[]}function i(r,a){if(!a){delete n.value[r];return}n.value[r]=l(a)}function o(r){n.value=W(r).reduce((a,s)=>{const c=r[s];return c&&(a[s]=l(c)),a},{})}return e&&o(e),{errorBag:n,setErrorBag:o,setFieldErrorBag:i}}t.defineComponent({name:"Form",inheritAttrs:!1,props:{as:{type:String,default:"form"},validationSchema:{type:Object,default:void 0},initialValues:{type:Object,default:void 0},initialErrors:{type:Object,default:void 0},initialTouched:{type:Object,default:void 0},validateOnMount:{type:Boolean,default:!1},onSubmit:{type:Function,default:void 0},onInvalidSubmit:{type:Function,default:void 0},keepValues:{type:Boolean,default:!1}},setup(e,n){const l=t.toRef(e,"initialValues"),i=t.toRef(e,"validationSchema"),o=t.toRef(e,"keepValues"),{errors:r,values:a,meta:s,isSubmitting:c,submitCount:u,validate:m,validateField:h,handleReset:d,resetForm:b,handleSubmit:$,setErrors:S,setFieldError:D,setFieldValue:_,setValues:N,setFieldTouched:p,setTouched:k}=Fl({validationSchema:i.value?i:void 0,initialValues:l,initialErrors:e.initialErrors,initialTouched:e.initialTouched,validateOnMount:e.validateOnMount,keepValuesOnUnmount:o}),E=$((A,{evt:j})=>{Qt(j)&&j.target.submit()},e.onInvalidSubmit),I=e.onSubmit?$(e.onSubmit,e.onInvalidSubmit):E;function M(A){ft(A)&&A.preventDefault(),d(),typeof n.attrs.onReset=="function"&&n.attrs.onReset()}function z(A,j){return $(typeof A=="function"&&!j?A:j,e.onInvalidSubmit)(A)}function R(){return{meta:s.value,errors:r.value,values:a,isSubmitting:c.value,submitCount:u.value,validate:m,validateField:h,handleSubmit:z,handleReset:d,submitForm:E,setErrors:S,setFieldError:D,setFieldValue:_,setValues:N,setFieldTouched:p,setTouched:k,resetForm:b}}return n.expose({setFieldError:D,setErrors:S,setFieldValue:_,setValues:N,setFieldTouched:p,setTouched:k,resetForm:b,validate:m,validateField:h}),function(){const j=e.as==="form"?e.as:t.resolveDynamicComponent(e.as),H=Qe(j,n,R);if(!e.as)return H;const K=e.as==="form"?{novalidate:!0}:{};return t.h(j,Object.assign(Object.assign(Object.assign({},K),n.attrs),{onSubmit:I,onReset:M}),H)}}});function Dl(e){const n=ve(me,void 0),l=t.ref([]),i=()=>{},o={fields:l,remove:i,push:i,swap:i,insert:i,update:i,replace:i,prepend:i,move:i};if(!n)return gt("FieldArray requires being a child of `<Form/>` or `useForm` being called before it. Array fields may not work correctly"),o;if(!t.unref(e))return gt("FieldArray requires a field path to be provided, did you forget to pass the `name` prop?"),o;const r=n.fieldArrays.find(p=>t.unref(p.path)===t.unref(e));if(r)return r;let a=0;function s(){const p=U(n==null?void 0:n.values,t.unref(e),[])||[];l.value=p.map(u),c()}s();function c(){const p=l.value.length;for(let k=0;k<p;k++){const E=l.value[k];E.isFirst=k===0,E.isLast=k===p-1}}function u(p){const k=a++;return{key:k,value:t.computed({get(){const I=U(n==null?void 0:n.values,t.unref(e),[])||[],M=l.value.findIndex(z=>z.key===k);return M===-1?p:I[M]},set(I){const M=l.value.findIndex(z=>z.key===k);if(M===-1){gt("Attempting to update a non-existent array item");return}S(M,I)}}),isFirst:!1,isLast:!1}}function m(p){const k=t.unref(e),E=U(n==null?void 0:n.values,k);if(!E||!Array.isArray(E))return;const I=[...E];I.splice(p,1),n==null||n.unsetInitialValue(k+`[${p}]`),n==null||n.setFieldValue(k,I),l.value.splice(p,1),c()}function h(p){const k=t.unref(e),E=U(n==null?void 0:n.values,k),I=Ee(E)?[]:E;if(!Array.isArray(I))return;const M=[...I];M.push(p),n==null||n.stageInitialValue(k+`[${M.length-1}]`,p),n==null||n.setFieldValue(k,M),l.value.push(u(p)),c()}function d(p,k){const E=t.unref(e),I=U(n==null?void 0:n.values,E);if(!Array.isArray(I)||!(p in I)||!(k in I))return;const M=[...I],z=[...l.value],R=M[p];M[p]=M[k],M[k]=R;const A=z[p];z[p]=z[k],z[k]=A,n==null||n.setFieldValue(E,M),l.value=z,c()}function b(p,k){const E=t.unref(e),I=U(n==null?void 0:n.values,E);if(!Array.isArray(I)||I.length<p)return;const M=[...I],z=[...l.value];M.splice(p,0,k),z.splice(p,0,u(k)),n==null||n.setFieldValue(E,M),l.value=z,c()}function $(p){const k=t.unref(e);n==null||n.setFieldValue(k,p),s()}function S(p,k){const E=t.unref(e),I=U(n==null?void 0:n.values,E);!Array.isArray(I)||I.length-1<p||n==null||n.setFieldValue(`${E}[${p}]`,k)}function D(p){const k=t.unref(e),E=U(n==null?void 0:n.values,k),I=Ee(E)?[]:E;if(!Array.isArray(I))return;const M=[p,...I];n==null||n.stageInitialValue(k+`[${M.length-1}]`,p),n==null||n.setFieldValue(k,M),l.value.unshift(u(p)),c()}function _(p,k){const E=t.unref(e),I=U(n==null?void 0:n.values,E),M=Ee(I)?[]:[...I];if(!Array.isArray(I)||!(p in I)||!(k in I))return;const z=[...l.value],R=z[p];z.splice(p,1),z.splice(k,0,R);const A=M[p];M.splice(p,1),M.splice(k,0,A),n==null||n.setFieldValue(E,M),l.value=z,c()}const N={fields:l,remove:m,push:h,swap:d,insert:b,update:S,replace:$,prepend:D,move:_};return n.fieldArrays.push(Object.assign({path:e,reset:s},N)),t.onBeforeUnmount(()=>{const p=n.fieldArrays.findIndex(k=>t.unref(k.path)===t.unref(e));p>=0&&n.fieldArrays.splice(p,1)}),N}t.defineComponent({name:"FieldArray",inheritAttrs:!1,props:{name:{type:String,required:!0}},setup(e,n){const{push:l,remove:i,swap:o,insert:r,replace:a,update:s,prepend:c,move:u,fields:m}=Dl(t.toRef(e,"name"));function h(){return{fields:m.value,push:l,remove:i,swap:o,insert:r,update:s,replace:a,prepend:c,move:u}}return n.expose({push:l,remove:i,swap:o,insert:r,update:s,replace:a,prepend:c,move:u}),()=>Qe(void 0,n,h)}}),t.defineComponent({name:"ErrorMessage",props:{as:{type:String,default:void 0},name:{type:String,required:!0}},setup(e,n){const l=t.inject(me,void 0),i=t.computed(()=>l==null?void 0:l.errors.value[e.name]);function o(){return{message:i.value}}return()=>{if(!i.value)return;const r=e.as?t.resolveDynamicComponent(e.as):e.as,a=Qe(r,n,o),s=Object.assign({role:"alert"},n.attrs);return!r&&(Array.isArray(a)||!a)&&(a==null?void 0:a.length)?a:(Array.isArray(a)||!a)&&!(a!=null&&a.length)?t.h(r||"span",s,i.value):t.h(r,s,a)}}});function Ie(e,n){var a,s,c,u;const l=(n==null?void 0:n.component)==="input"&&(((a=n==null?void 0:n.error)==null?void 0:a.value)!==null||(n==null?void 0:n.modelValue)!==void 0),i=(n==null?void 0:n.component)==="radio"&&(((s=n==null?void 0:n.error)==null?void 0:s.value)!==null||(n==null?void 0:n.modelValue)!==void 0),o=(n==null?void 0:n.component)==="checkbox"&&(((c=n==null?void 0:n.error)==null?void 0:c.value)!==null||(n==null?void 0:n.modelValue)!==void 0),r=(n==null?void 0:n.component)==="select"&&(((u=n==null?void 0:n.error)==null?void 0:u.value)!==null||(n==null?void 0:n.selected)!==void 0);return n!=null&&n.useFieldParent?n==null?void 0:n.useFieldParent(e):n!=null&&n.rules?Ct(e,n==null?void 0:n.rules,n==null?void 0:n.opts):r?jl(n==null?void 0:n.error,n==null?void 0:n.selected):l||i||o?ql(n==null?void 0:n.error,n==null?void 0:n.modelValue):Ct(e)}function ql(e,n){return{value:t.ref(n!=null?n:""),errorMessage:e}}function jl(e,n){return{value:t.ref(n),errorMessage:e}}const _l={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Rl=[t.createElementVNode("path",{fill:"currentColor",d:"m9.55 18l-5.7-5.7l1.425-1.425L9.55 15.15l9.175-9.175L20.15 7.4Z"},null,-1)];function Ql(e,n){return t.openBlock(),t.createElementBlock("svg",_l,Rl)}const cn={name:"material-symbols-done",render:Ql},Hl=["id","data-testid"],Ul=["for","data-testid","data-required"],Zl={class:"container-input"},Gl=["id","data-testid"],Yl={inheritAttrs:!1},Ne=t.defineComponent({...Yl,__name:"InputText",props:{id:null,name:null,class:null,label:null,mask:null,helperText:null,successText:null,loadingText:null,required:null,disabled:null,isSuccess:null,isLoading:null,size:{default:"medium"},error:{default:null},modelValue:null,placeholder:null,useField:null,rules:null,opts:null},emits:["update:modelValue"],setup(e,{emit:n}){const l=e,i=t.useSlots(),o=t.computed(()=>!!(i!=null&&i.icon)),r=t.computed(()=>{var d;return(d=l.name)!=null?d:""}),{value:a,errorMessage:s}=Ie(r.value,{component:"input",error:t.computed(()=>l.error),modelValue:l.modelValue,rules:l.rules,opts:l.opts,useFieldParent:l.useField}),c=t.computed(()=>!!l.loadingText||!!(s!=null&&s.value)||!!l.successText||!!l.helperText),u=t.computed(()=>c.value?`input-text-describe-${l.id}`:null),m=t.computed(()=>{var d;return l.loadingText&&l.isLoading?{text:l.loadingText,type:"loading"}:(d=s==null?void 0:s.value)!=null&&d.length?{text:s==null?void 0:s.value,type:"error"}:l.successText&&l.isSuccess?{text:l.successText,type:"success"}:{text:l.helperText,type:"helper"}});function h(d){n("update:modelValue",d)}return(d,b)=>(t.openBlock(),t.createElementBlock("div",{id:`input-text-${e.id}`,"data-testid":`input-text-${e.id}`,class:t.normalizeClass([[`${d.$props.class}`,{"-disabled":e.disabled}],"sol-input-text-core"])},[e.label?(t.openBlock(),t.createElementBlock("label",{key:0,for:`input-text-input-${e.id}`,"data-testid":`input-text-label-${e.id}`,class:t.normalizeClass(["label",`-${e.size}`]),"data-required":e.required},t.toDisplayString(e.label),11,Ul)):t.createCommentVNode("",!0),t.createElementVNode("div",Zl,[t.createVNode(Dt,t.mergeProps(d.$attrs,{id:`text-input-${e.id}`,modelValue:t.unref(a),"onUpdate:modelValue":[b[0]||(b[0]=$=>t.isRef(a)?a.value=$:null),h],size:e.size,name:t.unref(r),mask:e.mask,placeholder:e.placeholder,"data-required":e.required,"has-feedback-icon":t.unref(o),error:!!t.unref(s),disabled:e.disabled,"aria-invalid":!!t.unref(s),"aria-describedby":t.unref(u)}),null,16,["id","modelValue","size","name","mask","placeholder","data-required","has-feedback-icon","error","disabled","aria-invalid","aria-describedby"]),e.isLoading?(t.openBlock(),t.createBlock(Tt,{key:0,class:t.normalizeClass(["icon-position",`-${e.size}`]),title:"carregando","aria-busy":e.isSuccess,size:e.size},null,8,["aria-busy","class","size"])):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["icon-position",`-${e.size}`])},[e.isSuccess?(t.openBlock(),t.createBlock(t.unref(cn),{key:0,"aria-hidden":"true",class:"text-feedback-positive-pure"})):t.renderSlot(d.$slots,"icon",{key:1})],2))]),t.unref(c)?(t.openBlock(),t.createElementBlock("span",{key:1,id:`input-text-describe-${e.id}`,"data-testid":`input-text-describe-${e.id}`,class:t.normalizeClass(["message",`-${t.unref(m).type}`])},t.toDisplayString(t.unref(m).text),11,Gl)):t.createCommentVNode("",!0)],10,Hl))}}),ga="",Wl={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Kl=[t.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5"},[t.createElementVNode("path",{d:"M12 14a2 2 0 1 0 0-4a2 2 0 0 0 0 4Z"}),t.createElementVNode("path",{d:"M21 12c-1.889 2.991-5.282 6-9 6s-7.111-3.009-9-6c2.299-2.842 4.992-6 9-6s6.701 3.158 9 6Z"})],-1)];function Jl(e,n){return t.openBlock(),t.createElementBlock("svg",Wl,Kl)}const Xl={name:"iconoir-eye-empty",render:Jl},ei={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},ti=[t.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5"},[t.createElementVNode("path",{d:"m3 3l18 18M10.5 10.677a2 2 0 0 0 2.823 2.823"}),t.createElementVNode("path",{d:"M7.362 7.561C5.68 8.74 4.279 10.42 3 12c1.889 2.991 5.282 6 9 6c1.55 0 3.043-.523 4.395-1.35M12 6c4.008 0 6.701 3.158 9 6a15.66 15.66 0 0 1-1.078 1.5"})],-1)];function ni(e,n){return t.openBlock(),t.createElementBlock("svg",ei,ti)}const li={name:"iconoir-eye-off",render:ni},ii=["aria-label"],He=t.defineComponent({__name:"InputPassword",props:{id:null,label:null,name:{default:"password"},placeholder:{default:"Digite sua senha."},helperText:null,required:{default:!0},disabled:null,size:null,error:null,modelValue:null,useField:null,rules:null,opts:null},setup(e){const n=t.ref(!1),l=t.computed(()=>n.value?"text":"password");return(i,o)=>(t.openBlock(),t.createBlock(Ne,{id:`password-${e.id}`,type:t.unref(l),label:e.label,name:e.name,required:e.required,size:e.size,"helper-text":e.helperText,placeholder:e.placeholder,error:e.error,"model-value":e.modelValue,"use-field":e.useField,rules:e.rules,opts:e.opts},{icon:t.withCtx(()=>[t.createElementVNode("button",{type:"button","data-testid":"toggle-type-password","aria-label":n.value?"Hide password":"Show password",onClick:o[0]||(o[0]=r=>n.value=!n.value)},[t.withDirectives(t.createVNode(t.unref(Xl),{class:"password-feedback-icon","aria-hidden":"true"},null,512),[[t.vShow,n.value]]),t.withDirectives(t.createVNode(t.unref(li),{class:"password-feedback-icon","aria-hidden":"true"},null,512),[[t.vShow,!n.value]])],8,ii)]),_:1},8,["id","type","label","name","required","size","helper-text","placeholder","error","model-value","use-field","rules","opts"]))}}),pa="",oi=["id","data-testid"],ri=["id","data-testid","for","data-required"],ai=["id","data-testid","data-required","placeholder","aria-invalid","aria-describedby"],si=["id","data-testid"],Ue=t.defineComponent({__name:"InputTextarea",props:{id:null,class:null,name:null,label:null,required:{type:Boolean},helperText:null,resize:{default:"both"},size:{default:"medium"},error:{default:null},placeholder:null,modelValue:null,useField:null,rules:null,opts:null},emits:["update:modelValue"],setup(e,{emit:n}){const l=e,i=t.computed(()=>{var m;return(m=l.name)!=null?m:""}),{value:o,errorMessage:r}=Ie(i.value,{component:"input",error:t.computed(()=>l.error),modelValue:l.modelValue,rules:l.rules,opts:l.opts,useFieldParent:l.useField}),a=t.computed(()=>!!(r!=null&&r.value)||!!l.helperText),s=t.computed(()=>a.value?`input-textarea-describe-${l.id}`:void 0),c=t.computed(()=>{var m;return(m=r==null?void 0:r.value)!=null&&m.length?{text:r==null?void 0:r.value,type:"error"}:{text:l.helperText,type:"helper"}});function u({target:m}){n("update:modelValue",m==null?void 0:m.value)}return(m,h)=>{var d;return t.openBlock(),t.createElementBlock("div",{id:`input-textarea-${e.id}`,"data-testid":`input-textarea-${e.id}`,class:t.normalizeClass([[`${(d=m.$props.class)!=null?d:""}`,`-${e.size}`],"sol-textarea-core"])},[e.label?(t.openBlock(),t.createElementBlock("label",{key:0,id:`input-textarea-label-${e.id}`,"data-testid":`input-textarea-label-${e.id}`,for:`input-textarea-input-${e.id}`,class:"label","data-required":e.required},[t.createElementVNode("span",null,t.toDisplayString(e.label),1)],8,ri)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(t.unref(o))+" ",1),t.withDirectives(t.createElementVNode("textarea",t.mergeProps(m.$attrs,{id:`input-textarea-input-${e.id}`,"onUpdate:modelValue":h[0]||(h[0]=b=>t.isRef(o)?o.value=b:null),"data-testid":`input-textarea-input-${e.id}`,"data-required":e.required,class:[[`-${e.size}`,{"-error":e.error}],"textarea"],rows:"4",placeholder:e.placeholder,style:{resize:e.resize},"aria-invalid":!!t.unref(r),"aria-describedby":t.unref(s),onInput:u}),null,16,ai),[[t.vModelText,t.unref(o)]]),t.unref(a)?(t.openBlock(),t.createElementBlock("span",{key:1,id:`input-textarea-describe-${e.id}`,"data-testid":`input-textarea-describe-${e.id}`,class:t.normalizeClass(["message",`-${t.unref(c).type}`])},t.toDisplayString(t.unref(c).text),11,si)):t.createCommentVNode("",!0)],10,oi)}}}),$a="";Ne.install=e=>{e.component("SolInputText",Ne)},He.install=e=>{e.component("SolInputTextPassword",He)},Ue.install=e=>{e.component("SolInputTextarea",Ue)};const ci=["id","aria-checked","aria-labelledby","data-testid","checked","value","name"],di=["id","for","data-testid"],Ze=t.defineComponent({__name:"Switch",props:{id:null,name:null,value:null,label:null,checked:{type:Boolean},class:null,textDirection:{default:"left"},hideLabel:{type:Boolean},stretchLabel:{type:Boolean,default:!1}},emits:["change","update:checked"],setup(e,{emit:n}){const l=e;function i(){var o;n("change",(o=l.value)!=null?o:!!l.checked),n("update:checked",!l.checked)}return(o,r)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["sol-switch-core",[o.$props.class,`-text-${e.textDirection}`,{"-stretch-label":e.stretchLabel}]])},[t.createElementVNode("input",t.mergeProps(o.$attrs,{id:`switch-${e.name}-${e.id}`,type:"checkbox",class:"switch",role:"switch","aria-checked":e.checked,"aria-labelledby":`switch-label-${e.name}-${e.id}`,"data-testid":`switch-${e.name}-${e.id}`,checked:e.checked,value:e.value,name:e.name,onChange:i}),null,16,ci),t.createElementVNode("label",{id:`switch-label-${e.name}-${e.id}`,class:t.normalizeClass(["label",`-${e.textDirection} ${e.hideLabel?"sr-only":""}`]),for:`switch-${e.name}-${e.id}`,"data-testid":`switch-label-${e.name}-${e.id}`},t.toDisplayString(e.label),11,di)],2))}}),wa="";Ze.install=e=>{e.component("SolSwitch",Ze)};const ui=["id","data-testid","checked","value","name"],fi=["for"],mi={inheritAttrs:!1},we=t.defineComponent({...mi,__name:"Radio",props:{id:null,name:null,value:null,label:null,hideLabel:null,checked:null,class:null},emits:["change"],setup(e,{emit:n}){return(l,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["sol-radio-core",[l.$props.class,{"-hide-label":e.hideLabel}]])},[t.createElementVNode("input",t.mergeProps(l.$attrs,{id:`radio-${e.name}-${e.id}`,type:"radio",class:"radio","data-testid":`radio-${e.name}-${e.id}`,checked:e.checked,value:e.value,name:e.name,onChange:i[0]||(i[0]=o=>n("change",e.value))}),null,16,ui),t.createElementVNode("label",{class:"label",for:`radio-${e.name}-${e.id}`},t.toDisplayString(e.label),9,fi)],2))}}),Sa="",hi=["id","data-testid","aria-labelledby"],yi=["id","data-testid"],gi=["id","data-testid"],Ge=t.defineComponent({__name:"RadioGroup",props:{id:null,title:null,name:null,hideTitle:{type:Boolean,default:!1},helperText:null,error:{default:null},radios:null,modelValue:null,direction:{default:"row"},useField:null,rules:null,opts:null},emits:["change","update:modelValue"],setup(e,{emit:n}){const l=e,i=t.computed(()=>{var h;return(h=l.name)!=null?h:""}),{value:o,errorMessage:r}=Ie(i.value,{component:"radio",error:t.computed(()=>l.error),modelValue:l.modelValue,rules:l.rules,opts:l.opts,useFieldParent:l.useField}),a=t.computed(()=>!!(r!=null&&r.value)||!!l.helperText),s=t.computed(()=>a.value?`radios-describe-${l.id}`:null),c=t.computed(()=>{var h;return(h=r==null?void 0:r.value)!=null&&h.length?{text:r==null?void 0:r.value,type:"error"}:{text:l.helperText,type:"helper"}});function u(h){return o.value===h}function m(h){o.value=h.value,n("change",h.value),n("update:modelValue",h.value)}return(h,d)=>(t.openBlock(),t.createElementBlock("fieldset",{id:`radio-group-${e.id}`,"data-testid":`radio-group-${e.id}`,"aria-labelledby":`radio-group-title-${e.id}`,class:"sol-radio-group-core"},[t.renderSlot(h.$slots,"title",{id:`radio-group-title-${e.id}`},()=>[t.createElementVNode("legend",{id:`radio-group-title-${e.id}`,class:t.normalizeClass(["title",{"sr-only":e.hideTitle}]),"data-testid":`radio-group-title-${e.id}`},t.toDisplayString(e.title),11,yi)]),t.createElementVNode("ul",{class:t.normalizeClass(["container-radios",{"flex-col":e.direction==="column"}])},[t.renderSlot(h.$slots,"default",{radios:e.radios,direction:e.direction},()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.radios,(b,$)=>{var S;return t.openBlock(),t.createElementBlock("li",{key:$},[t.createVNode(we,t.mergeProps(h.$attrs,{id:(S=b==null?void 0:b.id)!=null?S:`${b.value}`,class:["radio",{"mb-micro":e.direction==="column","mr-micro":e.direction==="row"}],name:b.name,value:b.value,label:b.label,checked:u(b.value),error:!!t.unref(r),"aria-invalid":!!t.unref(r),"aria-describedby":t.unref(s),onChange:D=>m(b)}),null,16,["id","class","name","value","label","checked","error","aria-invalid","aria-describedby","onChange"])])}),128))])],2),t.unref(a)?(t.openBlock(),t.createElementBlock("span",{key:0,id:`radios-describe-${e.id}`,"data-testid":`radios-describe-${e.id}`,class:t.normalizeClass(["message",`-${t.unref(c).type}`])},t.toDisplayString(t.unref(c).text),11,gi)):t.createCommentVNode("",!0)],8,hi))}}),Ca="";we.install=e=>{e.component("SolRadio",we)},Ge.install=e=>{e.component("SolRadioGroup",Ge)};const bi=["id","indeterminate","data-testid","checked","value","name"],ki=["for"],pi={inheritAttrs:!1},he=t.defineComponent({...pi,__name:"Checkbox",props:{id:null,name:null,value:null,label:null,hideLabel:null,checked:null,class:null,indeterminate:{type:Boolean}},emits:["change"],setup(e,{emit:n}){return(l,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["sol-checkbox-core",[l.$props.class,{"-hide-label":e.hideLabel}]])},[t.createElementVNode("input",t.mergeProps(l.$attrs,{id:`checkbox-${e.name}-${e.id}`,type:"checkbox",indeterminate:e.indeterminate,class:"checkbox","data-testid":`checkbox-${e.name}-${e.id}`,checked:e.checked,value:e.value,name:e.name,onChange:i[0]||(i[0]=o=>n("change",e.value))}),null,16,bi),t.createElementVNode("label",{class:"label",for:`checkbox-${e.name}-${e.id}`},t.toDisplayString(e.label),9,ki)],2))}}),xa="",$i=["id","data-testid","aria-labelledby"],wi=["id","data-testid"],Si=["id","data-testid"],Ye=t.defineComponent({__name:"CheckboxGroup",props:{id:null,title:null,name:null,hideTitle:{type:Boolean,default:!1},helperText:null,error:{default:null},checkboxes:null,modelValue:null,direction:{default:"row"},useField:null,rules:null,opts:null},emits:["change","update:modelValue"],setup(e,{emit:n}){const l=e,i=t.computed(()=>{var d;return(d=l.name)!=null?d:""}),{value:o,errorMessage:r}=Ie(i.value,{component:"checkbox",error:t.computed(()=>l.error),modelValue:l.modelValue,rules:l.rules,useFieldParent:l.useField}),a=t.computed(()=>!!(r!=null&&r.value)||!!l.helperText),s=t.computed(()=>a.value?`checkboxes-describe-${l.id}`:null),c=t.computed(()=>{var d;return(d=r==null?void 0:r.value)!=null&&d.length?{text:r==null?void 0:r.value,type:"error"}:{text:l.helperText,type:"helper"}});function u(d){var b;return(b=o.value)==null?void 0:b.includes(d)}function m(d){return Array.isArray(o.value)?[...o.value,d]:[d]}function h(d){var $;n("change",d.value);const b=u(d.value)?($=o.value)==null?void 0:$.filter(S=>S!==d.value):m(d.value);o.value=b,n("update:modelValue",b)}return(d,b)=>(t.openBlock(),t.createElementBlock("fieldset",{id:`checkbox-group-${e.id}`,"data-testid":`checkbox-group-${e.id}`,class:"sol-checkbox-group-core","aria-labelledby":`checkbox-group-title-${e.id}`},[t.renderSlot(d.$slots,"title",{id:`checkbox-group-title-${e.id}`},()=>[t.createElementVNode("legend",{id:`checkbox-group-title-${e.id}`,class:t.normalizeClass(["title",{"sr-only":e.hideTitle}]),"data-testid":`checkbox-group-title-${e.id}`},t.toDisplayString(e.title),11,wi)]),t.createElementVNode("ul",{class:t.normalizeClass(["container-checkboxes",{"flex-col":e.direction==="column"}])},[t.renderSlot(d.$slots,"default",{checkboxes:e.checkboxes,direction:e.direction},()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.checkboxes,($,S)=>{var D;return t.openBlock(),t.createElementBlock("li",{key:S},[t.createVNode(he,t.mergeProps(d.$attrs,{id:(D=$==null?void 0:$.id)!=null?D:`${$.value}`,class:["checkbox",{"mb-micro":e.direction==="column","mr-micro":e.direction==="row"}],label:$.label,name:$.name,value:$.value,checked:u($.value),error:!!t.unref(r),"aria-invalid":!!t.unref(r),"aria-describedby":t.unref(s),onChange:_=>h($)}),null,16,["id","class","label","name","value","checked","error","aria-invalid","aria-describedby","onChange"])])}),128))])],2),t.unref(a)?(t.openBlock(),t.createElementBlock("span",{key:0,id:`checkboxes-describe-${e.id}`,"data-testid":`checkboxes-describe-${e.id}`,class:t.normalizeClass(["message",`-${t.unref(c).type}`])},t.toDisplayString(t.unref(c).text),11,Si)):t.createCommentVNode("",!0)],8,$i))}}),Ea="";he.install=e=>{e.component("SolCheckbox",he)},Ye.install=e=>{e.component("SolCheckboxGroup",Ye)};var dn;const Te=typeof window<"u",Ci=e=>typeof e=="string",xt=()=>{},un=Te&&((dn=window==null?void 0:window.navigator)==null?void 0:dn.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Et(e){return typeof e=="function"?e():t.unref(e)}function xi(e){return e}function Bt(e){return t.getCurrentScope()?(t.onScopeDispose(e),!0):!1}function fn(e){return typeof e=="function"?t.computed(e):t.ref(e)}function Ei(e,n=!0){t.getCurrentInstance()?t.onMounted(e):n?e():t.nextTick(e)}function Ae(e){var n;const l=Et(e);return(n=l==null?void 0:l.$el)!=null?n:l}const vt=Te?window:void 0;Te&&window.document,Te&&window.navigator,Te&&window.location;function Me(...e){let n,l,i,o;if(Ci(e[0])?([l,i,o]=e,n=vt):[n,l,i,o]=e,!n)return xt;let r=xt;const a=t.watch(()=>Ae(n),c=>{r(),c&&(c.addEventListener(l,i,o),r=()=>{c.removeEventListener(l,i,o),r=xt})},{immediate:!0,flush:"post"}),s=()=>{a(),r()};return Bt(s),s}function mn(e,n,l={}){const{window:i=vt,ignore:o,capture:r=!0,detectIframe:a=!1}=l;if(!i)return;const s=t.ref(!0);let c;const u=b=>{i.clearTimeout(c);const $=Ae(e);!$||$===b.target||b.composedPath().includes($)||!s.value||n(b)},m=b=>o&&o.some($=>{const S=Ae($);return S&&(b.target===S||b.composedPath().includes(S))}),h=[Me(i,"click",u,{passive:!0,capture:r}),Me(i,"pointerdown",b=>{const $=Ae(e);s.value=!!$&&!b.composedPath().includes($)&&!m(b)},{passive:!0}),Me(i,"pointerup",b=>{if(b.button===0){const $=b.composedPath();b.composedPath=()=>$,c=i.setTimeout(()=>u(b),50)}},{passive:!0}),a&&Me(i,"blur",b=>{var $;const S=Ae(e);(($=document.activeElement)==null?void 0:$.tagName)==="IFRAME"&&!(S!=null&&S.contains(document.activeElement))&&n(b)})].filter(Boolean);return()=>h.forEach(b=>b())}function Bi(e,n=!1){const l=t.ref(),i=()=>l.value=Boolean(e());return i(),Ei(i,n),l}function vi(e,n={}){const{window:l=vt}=n,i=Bi(()=>l&&"matchMedia"in l&&typeof l.matchMedia=="function");let o;const r=t.ref(!1),a=()=>{!o||("removeEventListener"in o?o.removeEventListener("change",s):o.removeListener(s))},s=()=>{!i.value||(a(),o=l.matchMedia(fn(e).value),r.value=o.matches,"addEventListener"in o?o.addEventListener("change",s):o.addListener(s))};return t.watchEffect(s),Bt(()=>a()),r}const Ot=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Vt="__vueuse_ssr_handlers__";Ot[Vt]=Ot[Vt]||{},Ot[Vt];var hn;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(hn||(hn={}));function Oi(e){const n=e||window.event;return n.touches.length>1?!0:(n.preventDefault&&n.preventDefault(),!1)}function Vi(e,n=!1){const l=t.ref(n);let i=null,o;t.watch(fn(e),s=>{if(s){const c=s;o=c.style.overflow,l.value&&(c.style.overflow="hidden")}},{immediate:!0});const r=()=>{const s=Et(e);!s||l.value||(un&&(i=Me(s,"touchmove",Oi,{passive:!1})),s.style.overflow="hidden",l.value=!0)},a=()=>{const s=Et(e);!s||!l.value||(un&&(i==null||i()),s.style.overflow=o,l.value=!1)};return Bt(a),t.computed({get(){return l.value},set(s){s?r():a()}})}var Ii=Object.defineProperty,yn=Object.getOwnPropertySymbols,Ni=Object.prototype.hasOwnProperty,Ti=Object.prototype.propertyIsEnumerable,gn=(e,n,l)=>n in e?Ii(e,n,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[n]=l,Ai=(e,n)=>{for(var l in n||(n={}))Ni.call(n,l)&&gn(e,l,n[l]);if(yn)for(var l of yn(n))Ti.call(n,l)&&gn(e,l,n[l]);return e};Ai({linear:xi},{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]});function ye(e,n){function l({code:i}){var a;const o=i;(()=>{if(!(n!=null&&n.fallback))return!1;const s=c=>Array.isArray(c)?!c.includes(o):o!==c;return n!=null&&n.exclude?!e.hasOwnProperty(o)&&s(n.exclude):!e.hasOwnProperty(o)})()&&(n==null||n.fallback()),e.hasOwnProperty(o)&&((a=e[o])==null||a.call(e))}return{navigate:l}}function We({target:e,query:n}){const l=t.reactive({id:"",index:-1,rowIndex:-1});function i(d){const b=d!=null?d:l.index,$=e==null?void 0:e.value;h(),d!==void 0&&(l.index=d),setTimeout(()=>{var _;const S=$.children[b],D=n&&S.querySelector(n)?S.querySelector(n):S;l.id=(_=S==null?void 0:S.id)!=null?_:"",D==null||D.focus()},0)}function o(){l.index>0&&(l.index-=1,i())}function r(d){l.index<d-1&&(l.index+=1,i())}function a(){i(0)}function s(d){i(d-1)}function c({query:d,to:b}){var p,k;const $=l.index>=0?l.index:0,D=(e==null?void 0:e.value).children[$],_=Array.isArray(d)?d.flatMap(E=>Array.from(D.querySelectorAll(E))).filter(E=>E):Array.from(D.querySelectorAll(d));if(!_.length)return;const N=l.rowIndex<_.length-1;b==="RIGHT"&&N&&(l.rowIndex+=1,(p=_[l.rowIndex])==null||p.focus()),b==="LEFT"&&(l.rowIndex=l.rowIndex>=0?l.rowIndex-1:-1,l.rowIndex<0?D.focus():(k=_[l.rowIndex])==null||k.focus())}function u(d){return d.id?d.id===l.id:d.index===l.index}function m(){l.id="",l.index=-1,l.rowIndex=-1}function h(){l.rowIndex=-1}return{elementFocus:l,isItemFocused:u,resetStateFocus:m,focusListItem:i,focusOnPreviousItem:o,focusOnNextItem:r,focusOnFirstItem:a,focusOnLastItem:s,focusInsideRow:c}}const Mi={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Fi=[t.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 Pi(e,n){return t.openBlock(),t.createElementBlock("svg",Mi,Fi)}const Li={name:"mi-close",render:Pi},zi=["id","data-testid","tabindex","title","aria-describedby","aria-disabled","onClick"],Di=["id"],qi={class:"label"},Fe=t.defineComponent({__name:"RemovableChip",props:{id:null,label:null,disabled:null,variant:{default:"outline"},size:{default:"small"}},emits:["close"],setup(e,{emit:n}){const l=e,{navigate:i}=ye({Enter:o,Space:o,Delete:o,Backspace:o,NumpadEnter:o});function o(){!l.disabled&&n("close")}return(r,a)=>(t.openBlock(),t.createElementBlock("div",{id:`removable-chip-${e.id}`,"data-testid":`removable-chip-${e.id}`,class:t.normalizeClass(["sol-removable-chip",{"-disabled":e.disabled,[`-${e.size}`]:!0,[`-${e.variant}`]:!0}]),tabindex:e.disabled?-1:0,title:e.label,"aria-describedby":`removable-chip-description-${e.id}`,"aria-disabled":e.disabled,onClick:t.withModifiers(o,["stop"]),onKeyup:a[0]||(a[0]=t.withModifiers((...s)=>t.unref(i)&&t.unref(i)(...s),["self"]))},[t.createElementVNode("span",{id:`removable-chip-description-${e.id}`,"z-index":"-1",class:"description"}," Press Delete or Backspace to remove ",8,Di),t.createElementVNode("span",qi,[t.renderSlot(r.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.label),1)])]),t.createVNode(t.unref(Li),{class:"icon","aria-label":"close",role:"img"})],42,zi))}}),Oa="",ji={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},_i=[t.createElementVNode("path",{fill:"currentColor",d:"m19.6 21l-6.3-6.3q-.75.6-1.725.95Q10.6 16 9.5 16q-2.725 0-4.612-1.887Q3 12.225 3 9.5q0-2.725 1.888-4.613Q6.775 3 9.5 3t4.613 1.887Q16 6.775 16 9.5q0 1.1-.35 2.075q-.35.975-.95 1.725l6.3 6.3ZM9.5 14q1.875 0 3.188-1.312Q14 11.375 14 9.5q0-1.875-1.312-3.188Q11.375 5 9.5 5Q7.625 5 6.312 6.312Q5 7.625 5 9.5q0 1.875 1.312 3.188Q7.625 14 9.5 14Z"},null,-1)];function Ri(e,n){return t.openBlock(),t.createElementBlock("svg",ji,_i)}const Qi={name:"material-symbols-search",render:Ri},Hi=["id","data-testid","aria-multiselectable","aria-labelledby"],Ui=["id","data-testid","selected","aria-selected","onClick","onKeyup"],Zi={key:1},Gi={key:0,class:"no-data"},Yi=t.createElementVNode("p",null,"Sem resultado para essa busca",-1),Wi=t.defineComponent({__name:"ListOption",props:{id:null,name:null,options:null,multiple:{type:Boolean},isSelected:null},emits:["select"],setup(e,{expose:n,emit:l}){const i=t.ref("");return n({list:i}),(o,r)=>(t.openBlock(),t.createElementBlock("ul",{id:`select-list-${e.id}`,ref_key:"list",ref:i,"data-testid":`select-list-${e.id}`,role:"listbox",tabindex:"-1","aria-multiselectable":e.multiple,"aria-labelledby":`select-label-${e.id}`,class:"select-list-core"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,(a,s)=>(t.openBlock(),t.createElementBlock("li",{id:`option-${e.id}-${a.value}`,key:s,"data-testid":`option-${e.id}-${a.value}`,role:"option",tabindex:"-1",class:"select-option-item",style:t.normalizeStyle(`--item: ${s+1}`),selected:e.isSelected(a),"aria-selected":e.isSelected(a),onClick:c=>l("select",a),onKeyup:[t.withKeys(c=>l("select",a),["enter"]),t.withKeys(c=>l("select",a),["space"])]},[e.multiple?(t.openBlock(),t.createBlock(he,{key:0,id:`option-${e.id}-${a.value}`,class:"pointer-events-none",value:a.value,checked:e.isSelected(a),label:a.name,name:e.name},null,8,["id","value","checked","label","name"])):(t.openBlock(),t.createElementBlock("span",Zi,t.toDisplayString(a.name),1))],44,Ui))),128)),e.options.length?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("li",Gi,[t.renderSlot(o.$slots,"no-data",{},()=>[t.createVNode(t.unref(Qi),{class:"icon"}),Yi])]))],8,Hi))}}),Ia="",Ki={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Ji=[t.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 Xi(e,n){return t.openBlock(),t.createElementBlock("svg",Ki,Ji)}const eo={name:"mi-search",render:Xi},to={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},no=[t.createElementVNode("path",{fill:"currentColor",d:"m17 10l-5 6l-5-6h10z"},null,-1)];function lo(e,n){return t.openBlock(),t.createElementBlock("svg",to,no)}const io={name:"mi-caret-down",render:lo},oo=["data-testid"],ro=["id","data-testid","data-required"],ao=["id","data-testid","disabled","aria-expanded","aria-labelledby","aria-label","aria-invalid","aria-describedby","aria-controls","onClick"],so={key:0,class:"container-tags"},co=["data-testid"],uo=["id","data-testid"],fo={class:"select-options-container"},mo=t.createElementVNode("hr",{class:"text-neutral-high-medium"},null,-1),Ke=t.defineComponent({__name:"Select",props:{id:null,label:null,ariaLabel:null,name:null,selected:null,options:{default:()=>[]},required:null,disabled:null,loading:{default:!1},searchable:{default:!1},closeOnSelect:{default:!0},fetchOnSearch:{default:!1},multiple:null,helperText:null,size:{default:"medium"},placeholder:{default:"Selecione"},searchPlaceholder:{default:"Buscar por"},error:{default:null},useField:null,rules:null,opts:null},emits:["closeDropdown","search","update:selected"],setup(e,{emit:n}){const l=e,i=t.ref(),o=t.ref(!1),r=t.ref(""),a=t.computed(()=>{var v;return l.fetchOnSearch?l.options:(v=l.options)==null?void 0:v.filter(O=>new RegExp(r.value,"gi").test(O.name))});mn(i,()=>{o.value&&d()});const s=t.computed(()=>{var v;return(v=l.name)!=null?v:""}),{value:c,errorMessage:u}=Ie(s.value,{component:"select",error:t.computed(()=>l.error),selected:l==null?void 0:l.selected,rules:l.rules,opts:l.opts,useFieldParent:l.useField});function m(){l.disabled||(o.value?d():h())}function h(){o.value=!0}function d(){A(),n("closeDropdown")}function b(v){if(Array.isArray(c.value)){const O=c.value.findIndex(({value:w})=>w===v.value);return O===-1?[...c.value,v]:c.value.filter((w,C)=>C!==O)}return[v]}function $(v){const O=l.multiple?b(v):v;n("update:selected",O),c.value=O,l.closeOnSelect&&!l.multiple&&d()}function S(v){var O;return Array.isArray(c.value)?c.value.some(({value:w})=>w===v.value):v.value===((O=c==null?void 0:c.value)==null?void 0:O.value)}const D=t.ref(),_=t.ref();function N(){var v;l.searchable&&(z(),(v=D.value)==null||v.focus())}const{elementFocus:p,focusOnFirstItem:k,focusOnLastItem:E,focusOnNextItem:I,focusOnPreviousItem:M,resetStateFocus:z}=We({target:_}),{navigate:R}=ye({Home:k,End:()=>E(l.options.length),ArrowUp:M,ArrowDown:()=>{!o.value&&h(),I(l.options.length)},Escape:d},{fallback:N,exclude:["Enter","NumpadEnter","Space"]});function A(){o.value=!1,r.value="",z()}function j(v){return O=>{v==="search"?D.value=O==null?void 0:O.input:_.value=O==null?void 0:O.list}}function H(){var O;const v=c.value;return(O=v==null?void 0:v.name)!=null?O:l.placeholder}const K=t.computed(()=>!!(u!=null&&u.value)||!!l.helperText),le=t.computed(()=>K.value?`input-text-describe-${l.id}`:void 0),Y=t.computed(()=>{var v;return(v=u==null?void 0:u.value)!=null&&v.length?{text:u==null?void 0:u.value,type:"error"}:{text:l.helperText,type:"helper"}});return(v,O)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"el",ref:i,class:t.normalizeClass(["sol-select-core",`-${e.size}`]),"data-testid":`select-${e.id}`,onKeydownPassive:O[3]||(O[3]=(...w)=>t.unref(R)&&t.unref(R)(...w))},[t.renderSlot(v.$slots,"label",{id:`select-label-${e.id}`,for:`select-toggle-${e.id}`},()=>[e.label?(t.openBlock(),t.createElementBlock("label",{key:0,id:`select-label-${e.id}`,"data-testid":`select-label-${e.id}`,"data-required":e.required,class:t.normalizeClass(["label",{"-disabled":e.disabled}])},t.toDisplayString(e.label),11,ro)):t.createCommentVNode("",!0)]),t.createElementVNode("button",{id:`select-toggle-${e.id}`,"data-testid":`select-toggle-${e.id}`,type:"button",disabled:e.disabled,class:"select-button-toggle","aria-haspopup":"listbox","aria-expanded":o.value,"aria-labelledby":`select-label-${e.id}`,"aria-label":e.ariaLabel,"aria-invalid":!!t.unref(u),"aria-describedby":t.unref(le),"aria-controls":`select-list-${e.id}`,onClick:t.withModifiers(m,["stop"])},[t.renderSlot(v.$slots,"toggle-dropdown",{toggle:{open:h,close:d,toggleDropdown:m},isOpen:o.value,select:$,selected:e.selected},()=>{var w;return[e.multiple&&Array.isArray(t.unref(c))&&((w=t.unref(c))==null?void 0:w.length)?(t.openBlock(),t.createElementBlock("div",so,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(c),(C,V)=>(t.openBlock(),t.createBlock(Fe,{id:`select-value-selected-${e.id}-${C.value}`,key:V,variant:"fill",size:"small",label:C.name,onClick:t.withModifiers(T=>$(C),["stop"]),onClose:T=>$(C)},null,8,["id","label","onClick","onClose"]))),128))])):(t.openBlock(),t.createElementBlock("span",{key:1,"data-testid":`select-value-selected-${e.id}`,class:"",tabindex:"-1"},t.toDisplayString(H()),9,co)),t.createVNode(t.unref(io),{"aria-hidden":"true",tabindex:"-1",class:t.normalizeClass(["icon",{"-open":o.value}])},null,8,["class"])]})],8,ao),t.unref(K)?t.withDirectives((t.openBlock(),t.createElementBlock("span",{key:0,id:`select-describe-${e.id}`,"data-testid":`select-describe-${e.id}`,class:t.normalizeClass(["message",`-${t.unref(Y).type}`])},t.toDisplayString(t.unref(Y).text),11,uo)),[[t.vShow,!o.value]]):t.createCommentVNode("",!0),t.createVNode(t.Transition,{mode:"out-in",name:"dropdown"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",fo,[t.renderSlot(v.$slots,"search",{},()=>[e.searchable?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["search-container",{"-loading":e.loading}])},[t.createVNode(Dt,{id:`select-search-${e.id}`,ref:j("search"),modelValue:r.value,"onUpdate:modelValue":O[0]||(O[0]=w=>r.value=w),role:"combobox",class:"search",size:"small","aria-autocomplete":"list",placeholder:e.searchPlaceholder,"aria-expanded":o.value,"aria-haspopup":"listbox","aria-owns":`select-list-${e.id}`,"aria-controls":`select-list-${e.id}`,"aria-activedescendant":t.unref(p).id,"aria-labelledby":`select-label-${e.id}`,onClick:O[1]||(O[1]=t.withModifiers(()=>{},["stop"])),onInput:O[2]||(O[2]=w=>{var C;return n("search",(C=w.target)==null?void 0:C.value)})},null,8,["id","modelValue","placeholder","aria-expanded","aria-owns","aria-controls","aria-activedescendant","aria-labelledby"]),t.createVNode(t.unref(eo),{"aria-hidden":"true",class:"icon"})],2)):t.createCommentVNode("",!0),mo,t.createVNode(Wi,{id:e.id,ref:j("list"),options:t.unref(a),name:t.unref(s),multiple:e.multiple,"is-selected":S,onSelect:$},{"no-data":t.withCtx(()=>[t.renderSlot(v.$slots,"no-data")]),_:3},8,["id","options","name","multiple"])])],512),[[t.vShow,o.value]])]),_:3})],42,oo))}}),Aa="";Ke.install=e=>{e.component("SolSelect",Ke)};const ho=["id","data-testid","aria-disabled","tabindex","title","aria-checked","aria-describedby","onClick"],yo=["id"],go={class:"label"},Je=t.defineComponent({__name:"SelectableChip",props:{id:null,label:null,selected:null,value:null,disabled:null,size:{default:"small"}},emits:["update:selected","change"],setup(e,{emit:n}){const l=e,i={chip:`selectable-chip-${l.id}`,describe:`selectable-chip-description-${l.id}`},{navigate:o}=ye({Enter:r,Space:r,NumpadEnter:r});function r(){l.disabled||(n("change",l.value),n("update:selected",!l.selected))}return(a,s)=>(t.openBlock(),t.createElementBlock("div",{id:i.chip,"data-testid":i.chip,class:t.normalizeClass(["sol-selectable-chip",[`-${e.size}`,{"-disabled":e.disabled,"-selected":e.selected}]]),"aria-disabled":e.disabled,tabindex:e.disabled?-1:0,title:e.label,role:"checkbox","aria-checked":e.selected,"aria-describedby":i.describe,onClick:t.withModifiers(r,["stop"]),onKeyupPassive:s[0]||(s[0]=t.withModifiers((...c)=>t.unref(o)&&t.unref(o)(...c),["self"]))},[e.selected?(t.openBlock(),t.createBlock(t.unref(cn),{key:0,class:"icon","aria-label":"selected",role:"img"})):t.createCommentVNode("",!0),t.createElementVNode("span",{id:i.describe,"z-index":"-1",class:"description"}," Press Enter or Space to "+t.toDisplayString(e.selected?"unselect":"select"),9,yo),t.createElementVNode("span",go,[t.renderSlot(a.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.label),1)])])],42,ho))}}),Ma="";Je.install=e=>{e.component("SolSelectableChip",Je)},Fe.install=e=>{e.component("SolRemovableChip",Fe)};const bo=["id","data-testid","title"],Xe=t.defineComponent({__name:"Tag",props:{id:null,text:{default:"default"},variant:{default:"fill"},size:{default:"small"},type:{default:"neutral"}},setup(e){return(n,l)=>(t.openBlock(),t.createElementBlock("div",{id:`tag-${e.id}`,"data-testid":`tag-${e.id}`,class:t.normalizeClass(["sol-tag-core",`-${e.size} -${e.variant} -${e.type}`]),title:e.text},[t.renderSlot(n.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.text),1)])],10,bo))}}),Fa="";Xe.install=e=>{e.component("SolTag",Xe)};const ko={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},po=[t.createElementVNode("path",{fill:"currentColor",d:"m10.6 16.6l7.05-7.05l-1.4-1.4l-5.65 5.65l-2.85-2.85l-1.4 1.4ZM12 22q-2.075 0-3.9-.788q-1.825-.787-3.175-2.137q-1.35-1.35-2.137-3.175Q2 14.075 2 12t.788-3.9q.787-1.825 2.137-3.175q1.35-1.35 3.175-2.138Q9.925 2 12 2t3.9.787q1.825.788 3.175 2.138q1.35 1.35 2.137 3.175Q22 9.925 22 12t-.788 3.9q-.787 1.825-2.137 3.175q-1.35 1.35-3.175 2.137Q14.075 22 12 22Zm0-2q3.35 0 5.675-2.325Q20 15.35 20 12q0-3.35-2.325-5.675Q15.35 4 12 4Q8.65 4 6.325 6.325Q4 8.65 4 12q0 3.35 2.325 5.675Q8.65 20 12 20Zm0-8Z"},null,-1)];function $o(e,n){return t.openBlock(),t.createElementBlock("svg",ko,po)}const wo={name:"material-symbols-check-circle-outline",render:$o},So={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Co=[t.createElementVNode("path",{fill:"currentColor",d:"M1 21L12 2l11 19Zm3.45-2h15.1L12 6ZM12 18q.425 0 .713-.288Q13 17.425 13 17t-.287-.712Q12.425 16 12 16t-.712.288Q11 16.575 11 17t.288.712Q11.575 18 12 18Zm-1-3h2v-5h-2Zm1-2.5Z"},null,-1)];function xo(e,n){return t.openBlock(),t.createElementBlock("svg",So,Co)}const Eo={name:"material-symbols-warning-outline",render:xo},Bo={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},vo=[t.createElementVNode("path",{fill:"currentColor",d:"m8.4 17l3.6-3.6l3.6 3.6l1.4-1.4l-3.6-3.6L17 8.4L15.6 7L12 10.6L8.4 7L7 8.4l3.6 3.6L7 15.6Zm3.6 5q-2.075 0-3.9-.788q-1.825-.787-3.175-2.137q-1.35-1.35-2.137-3.175Q2 14.075 2 12t.788-3.9q.787-1.825 2.137-3.175q1.35-1.35 3.175-2.138Q9.925 2 12 2t3.9.787q1.825.788 3.175 2.138q1.35 1.35 2.137 3.175Q22 9.925 22 12t-.788 3.9q-.787 1.825-2.137 3.175q-1.35 1.35-3.175 2.137Q14.075 22 12 22Zm0-2q3.35 0 5.675-2.325Q20 15.35 20 12q0-3.35-2.325-5.675Q15.35 4 12 4Q8.65 4 6.325 6.325Q4 8.65 4 12q0 3.35 2.325 5.675Q8.65 20 12 20Zm0-8Z"},null,-1)];function Oo(e,n){return t.openBlock(),t.createElementBlock("svg",Bo,vo)}const Vo={name:"material-symbols-cancel-outline",render:Oo},Io={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},No=[t.createElementVNode("path",{fill:"currentColor",d:"M11 17h2v-6h-2Zm1-8q.425 0 .713-.288Q13 8.425 13 8t-.287-.713Q12.425 7 12 7t-.712.287Q11 7.575 11 8t.288.712Q11.575 9 12 9Zm0 13q-2.075 0-3.9-.788q-1.825-.787-3.175-2.137q-1.35-1.35-2.137-3.175Q2 14.075 2 12t.788-3.9q.787-1.825 2.137-3.175q1.35-1.35 3.175-2.138Q9.925 2 12 2t3.9.787q1.825.788 3.175 2.138q1.35 1.35 2.137 3.175Q22 9.925 22 12t-.788 3.9q-.787 1.825-2.137 3.175q-1.35 1.35-3.175 2.137Q14.075 22 12 22Zm0-2q3.35 0 5.675-2.325Q20 15.35 20 12q0-3.35-2.325-5.675Q15.35 4 12 4Q8.65 4 6.325 6.325Q4 8.65 4 12q0 3.35 2.325 5.675Q8.65 20 12 20Zm0-8Z"},null,-1)];function To(e,n){return t.openBlock(),t.createElementBlock("svg",Io,No)}const Ao={name:"material-symbols-info-outline",render:To},Mo=["id","data-testid"],Fo={class:"container-content"},Po={class:"content"},Lo={key:0,class:"title"},et=t.defineComponent({__name:"Alert",props:{id:null,title:{default:"title"},text:{default:"text"},feedback:{default:"success"},action:null},emits:["click"],setup(e,{emit:n}){return(l,i)=>(t.openBlock(),t.createElementBlock("div",{id:`alert-${e.id}`,"data-testid":`alert-${e.id}`,class:t.normalizeClass(["sol-alert-core",`-${e.feedback}`]),"aria-live":"assertive",role:"alert"},[t.createElementVNode("div",Fo,[e.feedback==="success"?(t.openBlock(),t.createBlock(t.unref(wo),{key:0,class:"icon","aria-hidden":"true"})):t.createCommentVNode("",!0),e.feedback==="warning"?(t.openBlock(),t.createBlock(t.unref(Eo),{key:1,class:"icon","aria-hidden":"true"})):t.createCommentVNode("",!0),e.feedback==="error"?(t.openBlock(),t.createBlock(t.unref(Vo),{key:2,class:"icon","aria-hidden":"true"})):t.createCommentVNode("",!0),e.feedback==="informative"?(t.openBlock(),t.createBlock(t.unref(Ao),{key:3,class:"icon","aria-hidden":"true"})):t.createCommentVNode("",!0),t.createElementVNode("div",Po,[e.title?(t.openBlock(),t.createElementBlock("strong",Lo,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.renderSlot(l.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.text),1)])])]),e.action?(t.openBlock(),t.createBlock(ee,{key:0,id:`alert-action-${e.id}`,variant:"secondary",size:"small",onClick:i[0]||(i[0]=o=>n("click"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.action),1)]),_:1},8,["id"])):t.createCommentVNode("",!0)],10,Mo))}}),qa="";et.install=e=>{e.component("SolAlert",et)};const zo={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Do=[t.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 qo(e,n){return t.openBlock(),t.createElementBlock("svg",zo,Do)}const bn={name:"material-symbols-keyboard-arrow-down-rounded",render:qo},jo=["id","data-testid","aria-disabled"],_o=["data-testid","tabindex"],Ro={class:"container-title"},Qo={class:"icon"},Ho=["data-testid"],tt=t.defineComponent({__name:"Accordion",props:{id:null,title:{default:"Title"},onColor:{type:Boolean},disabled:{type:Boolean}},setup(e){return(n,l)=>(t.openBlock(),t.createElementBlock("details",{id:`accordion-${e.id}`,"data-testid":`accordion-${e.id}`,class:t.normalizeClass(["sol-accordion-core",{"-on-color":e.onColor,"-disabled":e.disabled}]),"aria-disabled":e.disabled},[t.createElementVNode("summary",{"data-testid":`accordion-title-${e.id}`,class:"summary",tabindex:e.disabled?-1:0},[t.createElementVNode("div",Ro,[t.createElementVNode("span",Qo,[t.renderSlot(n.$slots,"icon")]),t.renderSlot(n.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(e.title),1)])]),t.createVNode(t.unref(bn),{class:"icon","aria-hidden":"true"})],8,_o),t.createElementVNode("div",{"data-testid":`accordion-content-${e.id}`,class:"accordion-content"},[t.renderSlot(n.$slots,"default")],8,Ho)],10,jo))}}),_a="";tt.install=e=>{e.component("SolAccordion",tt)};const Uo=["id","data-testid"],Zo=["id","aria-expanded"],Go=["id","data-testid","aria-labelledby"],Se=t.defineComponent({__name:"Menu",props:{id:null,label:{default:"Teste"},position:{default:"bottom"}},setup(e){const n=t.ref();mn(n,()=>{h()});const l=t.ref(!1),i=t.ref(),o=t.computed(()=>i.value?i.value.childElementCount:0),{resetStateFocus:r,focusOnPreviousItem:a,focusOnNextItem:s,focusOnFirstItem:c,focusOnLastItem:u}=We({target:i,query:'[role="menuitem"]'}),{navigate:m}=ye({Home:c,End:()=>u(o.value),ArrowUp:a,ArrowDown:()=>{!l.value&&d(),s(o.value)},Escape:h});function h(){l.value=!1,r()}function d(){l.value=!0}function b(){l.value?h():d()}return($,S)=>(t.openBlock(),t.createElementBlock("div",{id:`menu-${e.id}`,ref_key:"el",ref:n,"data-testid":`menu-${e.id}`,class:t.normalizeClass([`-${e.position}`,"sol-menu-core"]),onKeyupPassive:S[0]||(S[0]=(...D)=>t.unref(m)&&t.unref(m)(...D))},[t.renderSlot($.$slots,"trigger",{id:`menu-button-${e.id}`,toggle:b,isOpen:l.value,arias:{role:"menuitem",class:"toggle-menu",ariaHaspopup:!0,ariaExpanded:l.value}},()=>[t.createElementVNode("button",{id:`menu-button-${e.id}`,type:"button",role:"menuitem",class:"toggle-menu","aria-haspopup":"true","aria-expanded":l.value,onClick:b},[t.renderSlot($.$slots,"label",{isOpen:l.value},()=>[t.createTextVNode(t.toDisplayString(e.label),1)])],8,Zo)]),t.withDirectives(t.createElementVNode("menu",{id:`menu-container-${e.id}`,ref_key:"menu",ref:i,"data-testid":`menu-container-${e.id}`,role:"menu","aria-labelledby":`menu-button-${e.id}`,class:t.normalizeClass(["menu",{"-open":l.value}])},[t.renderSlot($.$slots,"default",{close:h})],10,Go),[[t.vShow,l.value]])],42,Uo))}}),Ra="",Yo=["itemprop"],Wo=t.defineComponent({__name:"TextValue",props:{itemProp:null,property:null,value:null,isHighlightValue:{type:Boolean},align:{default:"left"},hide:{type:Boolean}},setup(e){return(n,l)=>(t.openBlock(),t.createElementBlock("p",{class:t.normalizeClass(["text-property-value",`-${e.align}`])},[t.createElementVNode("span",{class:t.normalizeClass(["property",{"-hide":e.hide}])},[t.renderSlot(n.$slots,"property",{},()=>[t.createTextVNode(t.toDisplayString(e.property),1)])],2),t.createElementVNode("span",{itemprop:e.itemProp,class:t.normalizeClass(["value",{"-highlight":e.isHighlightValue}])},[t.renderSlot(n.$slots,"value",{},()=>[t.createTextVNode(t.toDisplayString(e.value),1)])],10,Yo)],2))}}),Qa="",Ko=["id","data-testid"],Jo={key:0,"data-interactive":"",class:"selectable"},Xo={key:1,class:"column-item -image"},er=["data-testid"],tr={key:2,class:"menu-action","data-interactive":""},nr=t.defineComponent({__name:"ListItem",props:{id:null,itemIndex:null,headers:null,data:null,hasMenu:null,hasImage:null,renderHeader:null,isHighlight:null,isSelected:null,fallbackValue:null,setFixedColumnSize:null,sortPositions:null},setup(e){const n=e,l=t.useSlots(),i=t.computed(()=>!!(l!=null&&l.selectable));function o(c){return c!=null?c:n.fallbackValue}function r(c){return i.value&&c===0}function a(c){return n.hasImage&&c===0}function s(c,u){return n.hasMenu&&c===0&&u===0}return(c,u)=>(t.openBlock(),t.createElementBlock("li",{id:`listitem-${e.id}-${e.itemIndex}`,"data-testid":`listitem-${e.id}-${e.itemIndex}`,class:t.normalizeClass(["list-item",{"-selected":e.isSelected}]),tabindex:"-1"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.sortPositions,(m,h)=>(t.openBlock(),t.createElementBlock("div",{key:h,class:"list-item-row"},[r(h)?(t.openBlock(),t.createElementBlock("div",Jo,[t.renderSlot(c.$slots,"selectable",{data:e.data,index:e.itemIndex,label:`${e.data[m[0]]}`})])):t.createCommentVNode("",!0),a(h)?(t.openBlock(),t.createElementBlock("div",Xo,[t.renderSlot(c.$slots,"image",{data:e.data})])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m,(d,b)=>(t.openBlock(),t.createElementBlock("div",{key:b,style:t.normalizeStyle(`${e.setFixedColumnSize(d)}`),class:"column-item","data-testid":`listitem-column-${e.id}-${e.itemIndex}-${d}`},[t.renderSlot(c.$slots,`column:${d}`,{data:{key:d,value:e.data[d]},index:e.itemIndex,columnIndex:b,renderHeader:e.renderHeader,headers:e.headers},()=>{var $,S,D,_;return[t.createVNode(Wo,{"data-testid":`listitem-${e.id}-${e.itemIndex}-${d}`,"item-prop":d,hide:(S=($=e.headers)==null?void 0:$[d])==null?void 0:S.hide,align:(_=(D=e.headers)==null?void 0:D[d])==null?void 0:_.align,"is-highlight-value":e.isHighlight({key:d})},{property:t.withCtx(()=>[t.renderSlot(c.$slots,`header:${d}`,{data:{key:d,value:e.data[d]},index:h,columnIndex:b,renderHeader:e.renderHeader,headers:e.headers},()=>[t.createTextVNode(t.toDisplayString(e.renderHeader(d)),1)])]),value:t.withCtx(()=>[t.renderSlot(c.$slots,`value:${d}`,{data:{key:d,value:e.data[d]},index:h,columnIndex:b,isHighlight:e.isHighlight},()=>[t.createTextVNode(t.toDisplayString(o(e.data[d])),1)])]),_:2},1032,["data-testid","item-prop","hide","align","is-highlight-value"])]})],12,er))),128)),s(h,0)?(t.openBlock(),t.createElementBlock("div",tr,[t.renderSlot(c.$slots,"action-button",{arias:{testid:`list-row-action-${e.id}-${e.itemIndex}`,data:e.data,index:e.itemIndex,ariaLabel:"Open menu"}})])):t.createCommentVNode("",!0)]))),128))],10,Ko))}}),Ha="",lr={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},ir=[t.createElementVNode("path",{fill:"currentColor",d:"M12 20q-.825 0-1.412-.587Q10 18.825 10 18q0-.825.588-1.413Q11.175 16 12 16t1.413.587Q14 17.175 14 18q0 .825-.587 1.413Q12.825 20 12 20Zm0-6q-.825 0-1.412-.588Q10 12.825 10 12t.588-1.413Q11.175 10 12 10t1.413.587Q14 11.175 14 12q0 .825-.587 1.412Q12.825 14 12 14Zm0-6q-.825 0-1.412-.588Q10 6.825 10 6t.588-1.412Q11.175 4 12 4t1.413.588Q14 5.175 14 6t-.587 1.412Q12.825 8 12 8Z"},null,-1)];function or(e,n){return t.openBlock(),t.createElementBlock("svg",lr,ir)}const rr={name:"material-symbols-more-vert",render:or},ar=["id","data-testid","aria-label"],nt=t.defineComponent({__name:"List",props:{id:null,data:null,headers:null,selected:null,ariaLabel:{default:"List of data"},selectMode:null,dataIdentifier:{default:()=>({key:"id"})},sortPositions:null,fallbackValue:{default:"-"}},emits:["listitem:click","listitem:selected","update:selected"],setup(e,{expose:n,emit:l}){var O;const i=e,o=t.useSlots(),r=t.computed(()=>!!(o!=null&&o.menu)),a=t.computed(()=>!!(o!=null&&o.image)),s=vi("(min-width: 1024px)"),c=t.computed(()=>{var w,C,V;return(C=(w=i.sortPositions)==null?void 0:w.mobile)!=null&&C.length?(V=i.sortPositions)==null?void 0:V.mobile:h()}),u=t.computed(()=>{var w;return(w=i.sortPositions)!=null&&w.desktop.length?i.sortPositions.desktop:Object.keys(i.data[0])}),m=t.computed(()=>s.value?[u.value]:c.value);function h(){return Object.keys(i.data[0]).reduce((C,V,T)=>{if(T===0)return C=[[V]];if(T===1)return C=[...C,[V]];const L=C==null?void 0:C.length,y=C==null?void 0:C[L-1];return Array.isArray(y)&&(y==null?void 0:y.length)<2?(C[L-1]=[...y,V],C):C=[...C,[V]]},[])}function d(w){var C,V;return(V=i.headers&&((C=i.headers[w])==null?void 0:C.text))!=null?V:w}function b(w){var C,V,T,L,y,B,Q,ce,te;if((C=i.headers)!=null&&C[w]){if(((T=(V=i.headers)==null?void 0:V[w])==null?void 0:T.width)&&s.value)return`--basis-width: ${(y=(L=i.headers)==null?void 0:L[w])==null?void 0:y.width}; --shrink: 0;`;if(((Q=(B=i.headers)==null?void 0:B[w])==null?void 0:Q.mobileWidth)&&!s.value)return`--basis-width: ${(te=(ce=i.headers)==null?void 0:ce[w])==null?void 0:te.mobileWidth}; --shrink: 0;`}}function $({key:w,value:C}){var V,T;return C?!0:w?!!((T=(V=i.headers)==null?void 0:V[w])!=null&&T.highlight):!1}const S=t.ref(),D=["[data-interactive] input","[data-interactive-element]","[data-interactive] button"],{elementFocus:_,focusInsideRow:N,focusOnFirstItem:p,focusOnLastItem:k,focusOnNextItem:E,focusOnPreviousItem:I,resetStateFocus:M}=We({target:S}),{navigate:z}=ye({Home:p,End:()=>k(i.data.length),ArrowUp:()=>!R()&&I(),ArrowDown:()=>!R()&&E(i.data.length),ArrowLeft:()=>_.id&&N({to:"LEFT",query:D}),ArrowRight:()=>_.id&&N({to:"RIGHT",query:D})},{fallback:M,exclude:["Enter","NumpadEnter","Space"]});function R(){var w,C;if(document.activeElement&&((w=document.activeElement)==null?void 0:w.role)){const V=document.activeElement.role,T=(C=document.activeElement)==null?void 0:C.parentElement;return V==="menuitem"?!0:!!(()=>V==="none"&&(T==null?void 0:T.role)&&["menuitem","menu"].includes(T.role))()}return!1}const A=t.ref((O=i==null?void 0:i.selected)!=null?O:{});function j(w){if(A.value){const C=i.dataIdentifier.key,V=w[C];return i.selectMode&&i.selectMode==="checkbox"&&Array.isArray(A.value)?A.value.findIndex(L=>L[C]===V)>=0:A.value[C]===V}return!1}function H(w){A.value=w,l("listitem:selected",w),l("update:selected",A.value)}function K(w){const C=i.dataIdentifier.key,V=w[C],T=Array.isArray(A.value)?A.value:[],L=j(w)?T==null?void 0:T.filter(y=>y[C]!==V):le(w);A.value=L,l("listitem:selected",w),l("update:selected",A.value)}function le(w){var C;if(Array.isArray(A.value)){const V=i.dataIdentifier.key,T=A.value.findIndex(L=>L[V]===w[V]);return T===-1?[...A.value,w]:(C=A.value)==null?void 0:C.filter((L,y)=>y!==T)}return[w]}function Y(){const w=Object.keys(i.data[0]).includes(i.dataIdentifier.key);if(i.selectMode==="checkbox"&&w){A.value=i.data,l("update:selected",A.value);return}console.warn('The Prop `dataIdentifier.key` must be a valid key; and The Prop `selectMode` must be "checkbox"'),console.warn(`Your Prop [dataIdentifier.key] is ${i.dataIdentifier.key} and [selectMode] is ${i.selectMode}`)}function v(){A.value=i.selectMode==="checkbox"&&Array.isArray(A.value)?[]:{},l("update:selected",A.value)}return n({unselectAll:v,selectAll:Y}),(w,C)=>(t.openBlock(),t.createElementBlock("ul",{id:`list-${e.id}`,ref_key:"list",ref:S,"data-testid":`list-${e.id}`,class:"sol-list-core","aria-label":e.ariaLabel,tabindex:"0",itemscope:"",onKeyupPassive:C[0]||(C[0]=(...V)=>t.unref(z)&&t.unref(z)(...V))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.data,(V,T)=>(t.openBlock(),t.createBlock(nr,{id:e.id,key:T,headers:e.headers,data:V,"item-index":T,"is-selected":j(V),"sort-positions":t.unref(m),"fallback-value":e.fallbackValue,"has-image":t.unref(a),"has-menu":t.unref(r),"render-header":d,"is-highlight":$,"set-fixed-column-size":b,onClick:t.withModifiers(L=>l("listitem:click",{...V,index:T}),["self"]),onKeyup:[t.withKeys(t.withModifiers(L=>l("listitem:click",{...V,index:T}),["self"]),["enter"]),t.withKeys(t.withModifiers(L=>l("listitem:click",{...V,index:T}),["self"]),["space"])]},t.createSlots({selectable:t.withCtx(({data:L,label:y})=>{var B,Q,ce,te,ne,oe;return[e.selectMode==="checkbox"?(t.openBlock(),t.createBlock(he,{key:0,id:`listitem-${L[(B=e.dataIdentifier)==null?void 0:B.key]}`,"hide-label":!0,label:y,checked:j(V),value:L[(Q=e.dataIdentifier)==null?void 0:Q.key],name:(ce=e.dataIdentifier.inputName)!=null?ce:e.id,onChange:De=>K(L)},null,8,["id","label","checked","value","name","onChange"])):t.createCommentVNode("",!0),e.selectMode==="radio"?(t.openBlock(),t.createBlock(we,{key:1,id:`listitem-${L[(te=e.dataIdentifier)==null?void 0:te.key]}`,"hide-label":!0,label:y,checked:j(V),value:L[(ne=e.dataIdentifier)==null?void 0:ne.key],name:(oe=e.dataIdentifier.inputName)!=null?oe:e.id,onChange:De=>H(L)},null,8,["id","label","checked","value","name","onChange"])):t.createCommentVNode("",!0)]}),"action-button":t.withCtx(({arias:L})=>[t.renderSlot(w.$slots,"action-button",{arias:L},()=>[t.createVNode(Se,{id:`listitem-${e.id}-${T}`,position:"left"},{trigger:t.withCtx(({arias:y,id:B,toggle:Q})=>[t.createVNode(ee,{id:B,"aria-haspopup":y.ariaHaspopup,"aria-expanded":y.ariaExpanded,role:y.role,size:"small",variant:"tertiary","aria-label":L.ariaLabel,class:"menu-button-trigger",onClick:Q},{"icon-left":t.withCtx(()=>[t.createVNode(t.unref(rr),{class:"text-2xs","aria-hidden":"true"})]),_:2},1032,["id","aria-haspopup","aria-expanded","role","aria-label","onClick"])]),default:t.withCtx(()=>[t.renderSlot(w.$slots,"menu")]),_:2},1032,["id"])])]),_:2},[t.unref(a)?{name:"image",fn:t.withCtx(({data:L})=>[t.renderSlot(w.$slots,"image",{data:L})]),key:"0"}:void 0,t.renderList(V,(L,y)=>({name:`column:${y}`,fn:t.withCtx(B=>[t.renderSlot(w.$slots,`column:${y}`,{data:B.data,index:B.index,columnIndex:T,renderHeader:d,headers:e.headers})])})),t.renderList(V,(L,y)=>({name:`header:${y}`,fn:t.withCtx(B=>[t.renderSlot(w.$slots,`header:${y}`,{data:B.data,index:B.index,columnIndex:B.columnIndex,renderHeader:B.renderHeader,headers:B.headers})])})),t.renderList(V,(L,y)=>({name:`value:${y}`,fn:t.withCtx(B=>[t.renderSlot(w.$slots,`value:${y}`,{data:B.data,index:B.index,columnIndex:B.columnIndex,isHighlight:B.isHighlight})])}))]),1032,["id","headers","data","item-index","is-selected","sort-positions","fallback-value","has-image","has-menu","onClick","onKeyup"]))),128))],40,ar))}}),Za="";nt.install=e=>{e.component("SolList",nt)},Se.install=e=>{e.component("SolMenu",Se)};const sr=["id"],cr=["href","target"],Pe=t.defineComponent({__name:"MenuItemLink",props:{id:null,linkId:null,text:null,link:null,active:null,external:null},emits:["clicked"],setup(e,{emit:n}){return(l,i)=>{var o;return t.openBlock(),t.createElementBlock("li",{id:`menu-item-link-${e.id}`,class:"sol-menuitem-link-core",tabindex:"-1",role:"none",onClick:i[0]||(i[0]=r=>n("clicked")),onKeyup:[i[1]||(i[1]=t.withKeys(r=>n("clicked"),["enter"])),i[2]||(i[2]=t.withKeys(r=>n("clicked"),["space"]))]},[t.renderSlot(l.$slots,"default",{id:(o=e.linkId)!=null?o:e.id,active:e.active,link:e.link,text:e.text,external:e.external},()=>[t.createElementVNode("a",{role:"menuitem",class:t.normalizeClass({"-active":e.active}),href:e.link,target:e.external?"_blank":"_parent"},t.toDisplayString(e.text),11,cr)])],40,sr)}}}),Ga="";Pe.install=e=>{e.component("SolMenuItemLink",Pe)};const dr={class:"label-container"},ur={class:"label"},lt=t.defineComponent({__name:"MenuNavigationLinks",props:{id:null,label:null,linkItems:null},setup(e){return(n,l)=>(t.openBlock(),t.createBlock(Se,{id:`navigation-${e.id}`,class:"sol-menu-navigation-links-core"},{label:t.withCtx(({isOpen:i})=>[t.renderSlot(n.$slots,"label",{isOpen:i},()=>[t.createElementVNode("div",dr,[t.createElementVNode("span",ur,t.toDisplayString(e.label),1),t.createVNode(t.unref(bn),{class:t.normalizeClass(["icon",{"-opened":i}]),"aria-hidden":"true"},null,8,["class"])])])]),default:t.withCtx(({close:i})=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.linkItems,(o,r)=>{var a;return t.openBlock(),t.createBlock(Pe,{id:`${e.id}-${(a=o==null?void 0:o.id)!=null?a:o.text}`,key:r,"link-id":o.id,text:o.text,link:o.link,external:o.external,active:o.active,onClicked:i},{default:t.withCtx(()=>{var s;return[t.renderSlot(n.$slots,"default",{id:(s=o.id)!=null?s:e.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"]))}}),Ya="";lt.install=e=>{e.component("SolMenuNavigationLinks",lt)};const Wa="",fr=(e,n)=>{const l=e.__vccOpts||e;for(const[i,o]of n)l[i]=o;return l},mr={},hr={class:"sol-overlay-core"};function yr(e,n){return t.openBlock(),t.createElementBlock("div",hr,[t.renderSlot(e.$slots,"default")])}const gr=fr(mr,[["render",yr]]),br={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},kr=[t.createElementVNode("path",{fill:"currentColor",d:"M6.4 19L5 17.6l5.6-5.6L5 6.4L6.4 5l5.6 5.6L17.6 5L19 6.4L13.4 12l5.6 5.6l-1.4 1.4l-5.6-5.6Z"},null,-1)];function pr(e,n){return t.openBlock(),t.createElementBlock("svg",br,kr)}const $r={name:"material-symbols-close",render:pr},wr=["id","data-testid","aria-labelledby"],Sr=["id","data-testid"],Cr=["id","data-testid"],xr={class:"content"},Er={class:"footer"},Br={class:"main-action"},it=t.defineComponent({__name:"Modal",props:{id:null,size:{default:()=>({desktop:"medium",mobile:"full"})},title:{default:"Modal title"},isOpen:null,target:{default:"body"},actionPrimaryText:null,actionSecondaryText:null,actionTertiaryText:null},emits:["close","open","update:isOpen","action:primary","action:secondary","action:tertiary"],setup(e,{expose:n,emit:l}){const i=e,o={modal:`modal-${i.id}`,header:`modal-header-${i.id}`,headerTitle:`modal-header-title-${i.id}`,headerClose:`modal-header-close-${i.id}`,actionPrimary:`modal-action-primary-${i.id}`,actionSecondary:`modal-action-secondary-${i.id}`,actionTertiary:`modal-action-tertiary-${i.id}`},r={modal:`modal-${i.id}`,header:`modal-header-${i.id}`,headerTitle:`modal-header-title-${i.id}`,headerClose:`modal-header-close-${i.id}`,actionPrimary:`button-modal-action-primary-${i.id}`,actionSecondary:`button-modal-action-secondary-${i.id}`,actionTertiary:`button-modal-action-tertiary-${i.id}`},a=t.ref(),s=t.ref(i.isOpen),c=t.ref(!1),u=t.computed(()=>{var N;return(N=i.isOpen)!=null?N:s.value}),m=Vi(document.body),h=t.computed(()=>{var k,E;const N=(k=i.size.desktop)!=null?k:"medium",p=(E=i.size.mobile)!=null?E:"full";return`-desktop-${N} -mobile-${p}`}),{navigate:d}=ye({Escape:b});function b(){s.value=!1,l("close"),l("update:isOpen",!1)}function $(){s.value=!0,l("open"),l("update:isOpen",!0)}function S(){document.documentElement.style.setProperty("--viewport-100vh",`${window.innerHeight}px`)}function D(N){S(),m.value=!!N,N?setTimeout(()=>c.value=!0,90):c.value=!1}function _(N,p){N&&setTimeout(()=>{var k;return(k=p==null?void 0:p.value)==null?void 0:k.focus()},110)}return t.watch(u,N=>{D(N),_(N,a)},{immediate:!0}),n({close:b,open:$}),(N,p)=>(t.openBlock(),t.createBlock(t.Teleport,{to:e.target},[t.unref(u)?(t.openBlock(),t.createBlock(gr,{key:0},{default:t.withCtx(()=>[t.createVNode(t.Transition,{name:"modal",mode:"out-in"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",{id:o.modal,ref_key:"modal",ref:a,"data-testid":r.modal,tabindex:"-1",role:"alertdialog","aria-modal":"true",class:t.normalizeClass(["sol-modal-core",t.unref(h)]),"aria-labelledby":o.headerTitle,onKeyupPassive:p[3]||(p[3]=(...k)=>t.unref(d)&&t.unref(d)(...k))},[t.createElementVNode("header",{id:o.header,"data-testid":r.header,class:"header"},[t.createElementVNode("h2",{id:o.headerTitle,"data-testid":r.headerTitle,class:"title"},t.toDisplayString(e.title),9,Cr),t.createVNode(ee,{id:o.headerClose,size:"small",class:"flex-shrink-0",variant:"tertiary","aria-label":"Close modal",onClick:b},{"icon-left":t.withCtx(()=>[t.createVNode(t.unref($r),{"aria-hidden":"true",class:"text-2xs"})]),_:1},8,["id"])],8,Sr),t.createElementVNode("main",xr,[t.renderSlot(N.$slots,"default")]),t.createElementVNode("footer",Er,[t.renderSlot(N.$slots,"action-tertiary",{id:o.actionTertiary},()=>[e.actionTertiaryText?(t.openBlock(),t.createBlock(ee,{key:0,id:o.actionTertiary,variant:"tertiary",size:"medium",onClick:p[0]||(p[0]=k=>l("action:primary"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.actionTertiaryText),1)]),_:1},8,["id"])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Br,[t.renderSlot(N.$slots,"action-secondary",{id:o.actionSecondary},()=>[e.actionSecondaryText?(t.openBlock(),t.createBlock(ee,{key:0,id:o.actionSecondary,variant:"secondary",size:"medium",onClick:p[1]||(p[1]=k=>l("action:secondary"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.actionSecondaryText),1)]),_:1},8,["id"])):t.createCommentVNode("",!0)]),t.renderSlot(N.$slots,"action-primary",{id:o.actionPrimary},()=>[e.actionPrimaryText?(t.openBlock(),t.createBlock(ee,{key:0,id:o.actionPrimary,size:"medium",variant:"primary",onClick:p[2]||(p[2]=k=>l("action:tertiary"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.actionPrimaryText),1)]),_:1},8,["id"])):t.createCommentVNode("",!0)])])])],42,wr),[[t.vShow,c.value]])]),_:3})]),_:3})):t.createCommentVNode("",!0)],8,["to"]))}}),Ja="";it.install=e=>{e.component("SolModal",it)};const Xa="",es="",ts="",ns="",kn=12,Ce={type:"success",timeout:5e3,showIcon:!0,showCloseButton:!0,position:"top-right",hideProgressBar:!1};function vr(e,n){const l=t.reactive({id:null,intervalId:null,startTime:0,remaining:n}),i=t.ref(100);function o(){clearInterval(l.intervalId),clearTimeout(l.id),l.remaining-=Date.now()-l.startTime}function r(){l.startTime=Date.now(),clearTimeout(l.id),l.intervalId=setInterval(()=>{i.value--},n/100-5),l.id=setTimeout(e,l.remaining)}function a(){clearInterval(l.intervalId),clearTimeout(l.id),i.value=100}return t.onMounted(()=>{if(n<=0)return!1}),t.onUnmounted(()=>{a()}),{start:r,stop:o,clear:a,progress:i}}function Or(e){return{stylePosition:t.computed(()=>{const{position:l,offset:i}=e();switch(l){case"top-left":return{left:"0",top:`${i}px`};case"bottom-left":return{left:"0",bottom:`${i}px`};case"bottom-right":return{right:"0",bottom:`${i}px`};case"top-center":return{top:`${i}px`,left:"0",right:"0",marginRight:"auto",marginLeft:"auto"};case"bottom-center":return{bottom:`${i}px`,left:"0",right:"0",marginRight:"auto",marginLeft:"auto"};default:return{right:"0",top:`${i}px`}}})}}var pn=(e=>(e["top-left"]="bounce-left",e["top-right"]="bounce-right",e["top-center"]="bounce-down",e["bottom-left"]="bounce-left",e["bottom-center"]="bounce-up",e["bottom-right"]="bounce-right",e))(pn||{});const Vr={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Ir=[t.createElementVNode("path",{fill:"currentColor",d:"m10.6 16.6l7.05-7.05l-1.4-1.4l-5.65 5.65l-2.85-2.85l-1.4 1.4ZM12 22q-2.075 0-3.9-.788q-1.825-.787-3.175-2.137q-1.35-1.35-2.137-3.175Q2 14.075 2 12t.788-3.9q.787-1.825 2.137-3.175q1.35-1.35 3.175-2.138Q9.925 2 12 2t3.9.787q1.825.788 3.175 2.138q1.35 1.35 2.137 3.175Q22 9.925 22 12t-.788 3.9q-.787 1.825-2.137 3.175q-1.35 1.35-3.175 2.137Q14.075 22 12 22Z"},null,-1)];function Nr(e,n){return t.openBlock(),t.createElementBlock("svg",Vr,Ir)}const Tr={name:"material-symbols-check-circle",render:Nr},Ar={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Mr=[t.createElementVNode("path",{fill:"currentColor",d:"m8.4 17l3.6-3.6l3.6 3.6l1.4-1.4l-3.6-3.6L17 8.4L15.6 7L12 10.6L8.4 7L7 8.4l3.6 3.6L7 15.6Zm3.6 5q-2.075 0-3.9-.788q-1.825-.787-3.175-2.137q-1.35-1.35-2.137-3.175Q2 14.075 2 12t.788-3.9q.787-1.825 2.137-3.175q1.35-1.35 3.175-2.138Q9.925 2 12 2t3.9.787q1.825.788 3.175 2.138q1.35 1.35 2.137 3.175Q22 9.925 22 12t-.788 3.9q-.787 1.825-2.137 3.175q-1.35 1.35-3.175 2.137Q14.075 22 12 22Z"},null,-1)];function Fr(e,n){return t.openBlock(),t.createElementBlock("svg",Ar,Mr)}const Pr={name:"material-symbols-cancel",render:Fr},Lr={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},zr=[t.createElementVNode("path",{fill:"currentColor",d:"M12 17q.425 0 .713-.288Q13 16.425 13 16t-.287-.713Q12.425 15 12 15t-.712.287Q11 15.575 11 16t.288.712Q11.575 17 12 17Zm0 5q-2.075 0-3.9-.788q-1.825-.787-3.175-2.137q-1.35-1.35-2.137-3.175Q2 14.075 2 12t.788-3.9q.787-1.825 2.137-3.175q1.35-1.35 3.175-2.138Q9.925 2 12 2t3.9.787q1.825.788 3.175 2.138q1.35 1.35 2.137 3.175Q22 9.925 22 12t-.788 3.9q-.787 1.825-2.137 3.175q-1.35 1.35-3.175 2.137Q14.075 22 12 22Zm0-9q.425 0 .713-.288Q13 12.425 13 12V8q0-.425-.287-.713Q12.425 7 12 7t-.712.287Q11 7.575 11 8v4q0 .425.288.712q.287.288.712.288Z"},null,-1)];function Dr(e,n){return t.openBlock(),t.createElementBlock("svg",Lr,zr)}const qr={name:"material-symbols-error-circle-rounded",render:Dr},jr=["id","data-testid"],_r={class:"content-wrapper"},Rr={key:0,class:"icon-container","aria-hidden":"true"},Qr={class:"content"},Hr={key:0,class:"description"},Ur=t.defineComponent({__name:"Toast",props:{id:null,type:{default:Ce.type},visible:{type:Boolean,default:!1},title:null,description:null,actionText:null,timeout:null,hideProgressBar:{type:Boolean,default:Ce.hideProgressBar},showIcon:{type:Boolean,default:Ce.showIcon},offset:{default:0},onAction:null,onCloseHandler:null,position:{default:Ce.position}},setup(e){const n=e,{start:l,stop:i,progress:o}=vr(()=>{var m;(m=n.onCloseHandler)==null||m.call(n)},n.timeout),{stylePosition:r}=Or(()=>({offset:n.offset,position:n.position})),a=t.computed(()=>n.title&&n.description);function s(){n.timeout>0&&i()}function c(){l()}t.onMounted(()=>{l()});function u(){var m,h;(m=n.onAction)==null||m.call(n),(h=n.onCloseHandler)==null||h.call(n)}return(m,h)=>(t.openBlock(),t.createBlock(t.Transition,{name:t.unref(pn)[e.position],type:"animation"},{default:t.withCtx(()=>[e.visible?(t.openBlock(),t.createElementBlock("div",{key:0,id:`toast-${e.type}-${e.id}`,"data-testid":`toast-${e.type}-${e.position}`,role:"alert","aria-live":"assertive",style:t.normalizeStyle(t.unref(r)),class:t.normalizeClass(["sol-toast-core",[`-${e.type} -${e.position}`,{"-multiline":t.unref(a)}]]),onKeyup:h[0]||(h[0]=t.withKeys((...d)=>e.onCloseHandler&&e.onCloseHandler(...d),["esc"])),onMouseenter:s,onMouseleave:c,onFocusin:s,onFocusout:c},[t.createElementVNode("section",_r,[e.showIcon?(t.openBlock(),t.createElementBlock("div",Rr,[t.renderSlot(m.$slots,"icon-status",{type:e.type},()=>[e.type==="success"?(t.openBlock(),t.createBlock(t.unref(Tr),{key:0,class:"icon"})):t.createCommentVNode("",!0),["informative","warning"].includes(e.type)?(t.openBlock(),t.createBlock(t.unref(qr),{key:1,class:"icon"})):t.createCommentVNode("",!0),e.type==="error"?(t.openBlock(),t.createBlock(t.unref(Pr),{key:2,class:"icon"})):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0),t.createElementVNode("div",Qr,[t.createElementVNode("p",{class:t.normalizeClass(["title",{"-multiline":t.unref(a)}])},[t.renderSlot(m.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(e.title),1)])],2),e.description?(t.openBlock(),t.createElementBlock("p",Hr,[t.renderSlot(m.$slots,"description",{},()=>[t.createTextVNode(t.toDisplayString(e.description),1)])])):t.createCommentVNode("",!0)])]),t.createVNode(ee,{id:`toast-action-${e.type}-${e.position}`,class:t.normalizeClass(["action",{"-multiline":t.unref(a)}]),size:"small","on-color":e.type!=="warning",variant:"tertiary","aria-label":"close notification",onClick:u},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.actionText),1)]),_:1},8,["id","on-color","class"]),e.hideProgressBar?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:"progressbar","aria-hidden":"true",style:t.normalizeStyle({width:`${t.unref(o)}%`})},null,4))],46,jr)):t.createCommentVNode("",!0)]),_:3},8,["name"]))}}),rs="",Le={"top-left":[],"top-right":[],"top-center":[],"bottom-left":[],"bottom-right":[],"bottom-center":[]};function Zr(){$n(0)}function $n(e=2){Object.entries(Le).forEach(([n,l])=>{l.length>e&&l.map(o=>{var r;return(r=o.toastVNode.props)==null?void 0:r.id}).forEach(o=>It(o,n))})}function Gr(e){return typeof e=="string"?{description:e,actionText:"Fechar"}:{actionText:"Fechar",...e}}function Yr(e,n=Ce){const l=window.innerWidth<1024?"bottom-center":"top-right";return e?Kr({...e,position:l}):n}function Wr(){const n=ze(0),l=ze(0,"success"),i=ze(0,"error"),o=ze(0,"warning"),r=ze(0,"informative");return{createToast:n,createErrorToast:i,createSuccessToast:l,createInformativeToast:r,createWarningToast:o,clearAllToasts:Zr}}function ze(e,n){return function(l,i){const o=e++,r=Yr({...i,type:n});return $n(),Jr(o,r,Gr(l)),{close:()=>It(o,r.position)}}}function Kr(e){const n={...Ce,...e,showIcon:e.showIcon};return n.hideProgressBar=!!(n.timeout&&(n==null?void 0:n.timeout)<=0),e.hideProgressBar&&(n.hideProgressBar=e.hideProgressBar),n}function Jr(e,n,l){setTimeout(()=>{const i=ea(n,Le,kn),o=document.createElement("div");document.body.appendChild(o);const r=t.createVNode(Ur,Xr(n,e,i,It,l));t.render(r,o),Le[n.position].push({toastVNode:r,container:o}),r.component&&(r.component.props.visible=!0)},1)}function Xr(e,n,l,i,o){return{...e,...o,id:n,offset:l,visible:!1,onCloseHandler(){i(n,e.position?e.position:"top-right")}}}function ea(e,n,l){if(!e.position)throw new Error("no position");return n[e.position].reduce((i,{toastVNode:o})=>(i+=o.el.offsetHeight+l||0,i),l)}function ta(e,n,l,i){for(let o=e;o<n.length;o++){const{toastVNode:r}=n[o];if(!r.el)return;const a=l.split("-")[0]||"top",s=parseInt(r.el.style[a],10)-i-kn;if(!r.component)return;r.component.props.offset=s}}function It(e,n){var c;const l=Le[n],i=l.findIndex(({toastVNode:u})=>{var m;return e===((m=u==null?void 0:u.props)==null?void 0:m.id)});if(i===-1)return;const{container:o,toastVNode:r}=l[i],a=(c=r==null?void 0:r.el)==null?void 0:c.offsetHeight;if(Le[n].splice(i,1),ta(i,l,n,a),!r.component)return;const s=r.component.props;s.visible=!1,s.onClose&&s.onClose(),setTimeout(()=>{t.render(null,o),document.body.removeChild(o)},1e3)}function na(){return{openModal:l=>{l&&(l==null||l.open())},closeModal:l=>{l&&(l==null||l.close())}}}function la({initialValues:e}={}){const n=t.ref(e!=null?e:[]);function l(r){var a;return(a=n.value)==null?void 0:a.includes(r)}function i(r){return Array.isArray(n.value)?[...n.value,r]:[r]}function o(r){var s;const a=l(r)?(s=n.value)==null?void 0:s.filter(c=>c!==r):i(r);n.value=a}return{selectedFilters:n,isSelected:l,setSelectedFilter:o}}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 Nt={SolButton:ee,SolButtonDestructive:ot,SolInputTextarea:Ue,SolInputText:Ne,SolInputTextPassword:He,SolRadio:we,SolRadioGroup:Ge,SolCheckbox:he,SolCheckboxGroup:Ye,SolSwitch:Ze,SolSelect:Ke,SolRemovableChip:Fe,SolSelectableChip:Je,SolTag:Xe,SolAlert:et,SolAccordion:tt,SolList:nt,SolMenu:Se,SolMenuItemLink:Pe,SolMenuNavigationLinks:lt,SolModal:it};function ia(e){for(const n in Nt)e.component(n,Nt[n])}q.SolAccordion=tt,q.SolAlert=et,q.SolButton=ee,q.SolButtonDestructive=ot,q.SolCheckbox=he,q.SolCheckboxGroup=Ye,q.SolInputText=Ne,q.SolInputTextPassword=He,q.SolInputTextarea=Ue,q.SolList=nt,q.SolMenu=Se,q.SolMenuItemLink=Pe,q.SolMenuNavigationLinks=lt,q.SolModal=it,q.SolRadio=we,q.SolRadioGroup=Ge,q.SolRemovableChip=Fe,q.SolSelect=Ke,q.SolSelectableChip=Je,q.SolSwitch=Ze,q.SolTag=Xe,q.components=Nt,q.install=ia,q.useMask=zt,q.useModal=na,q.useNavigate=ye,q.useNavigateProvider=We,q.useSelectableChip=la,q.useToast=Wr,q.vMask=qn,Object.defineProperties(q,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
14
+ */function pe(e){return typeof e=="function"}function xe(e){return e==null}const me=e=>e!==null&&!!e&&typeof e=="object"&&!Array.isArray(e);function Ht(e){return Number(e)>=0}function nl(e){const n=parseFloat(e);return isNaN(n)?e:n}const ll={};function il(e){return ll[e]}const Ee=Symbol("vee-validate-form"),al=Symbol("vee-validate-field-instance"),Qe=Symbol("Default empty value"),ol=typeof window<"u";function ht(e){return pe(e)&&!!e.__locatorRef}function Be(e){return!!e&&pe(e.validate)}function ke(e){return e==="checkbox"||e==="radio"}function rl(e){return me(e)||Array.isArray(e)}function Ut(e){return Array.isArray(e)?e.length===0:me(e)&&Object.keys(e).length===0}function Re(e){return/^\[.+\]$/i.test(e)}function sl(e){return Zt(e)&&e.multiple}function Zt(e){return e.tagName==="SELECT"}function cl(e,n){const l=![!1,null,void 0,0].includes(n.multiple)&&!Number.isNaN(n.multiple);return e==="select"&&"multiple"in n&&l}function dl(e,n){return!cl(e,n)&&n.type!=="file"&&!ke(n.type)}function Gt(e){return yt(e)&&e.target&&"submit"in e.target}function yt(e){return e?!!(typeof Event<"u"&&pe(Event)&&e instanceof Event||e&&e.srcElement):!1}function Wt(e,n){return n in e&&e[n]!==Qe}function ne(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var l,i,a;if(Array.isArray(e)){if(l=e.length,l!=n.length)return!1;for(i=l;i--!==0;)if(!ne(e[i],n[i]))return!1;return!0}if(e instanceof Map&&n instanceof Map){if(e.size!==n.size)return!1;for(i of e.entries())if(!n.has(i[0]))return!1;for(i of e.entries())if(!ne(i[1],n.get(i[0])))return!1;return!0}if(Kt(e)&&Kt(n))return!(e.size!==n.size||e.name!==n.name||e.lastModified!==n.lastModified||e.type!==n.type);if(e instanceof Set&&n instanceof Set){if(e.size!==n.size)return!1;for(i of e.entries())if(!n.has(i[0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(n)){if(l=e.length,l!=n.length)return!1;for(i=l;i--!==0;)if(e[i]!==n[i])return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(a=Object.keys(e),l=a.length,l!==Object.keys(n).length)return!1;for(i=l;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=l;i--!==0;){var o=a[i];if(!ne(e[o],n[o]))return!1}return!0}return e!==e&&n!==n}function Kt(e){return ol?e instanceof File:!1}var Jt=function e(n,l){if(n===l)return!0;if(n&&l&&typeof n=="object"&&typeof l=="object"){if(n.constructor!==l.constructor)return!1;var i,a,o;if(Array.isArray(n)){if(i=n.length,i!=l.length)return!1;for(a=i;a--!==0;)if(!e(n[a],l[a]))return!1;return!0}if(n.constructor===RegExp)return n.source===l.source&&n.flags===l.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===l.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===l.toString();if(o=Object.keys(n),i=o.length,i!==Object.keys(l).length)return!1;for(a=i;a--!==0;)if(!Object.prototype.hasOwnProperty.call(l,o[a]))return!1;for(a=i;a--!==0;){var r=o[a];if(!e(n[r],l[r]))return!1}return!0}return n!==n&&l!==l};function gt(e){return Re(e)?e.replace(/\[|\]/gi,""):e}function H(e,n,l){return e?Re(n)?e[gt(n)]:(n||"").split(/\.|\[(\d+)\]/).filter(Boolean).reduce((a,o)=>rl(a)&&o in a?a[o]:l,e):l}function se(e,n,l){if(Re(n)){e[gt(n)]=l;return}const i=n.split(/\.|\[(\d+)\]/).filter(Boolean);let a=e;for(let o=0;o<i.length;o++){if(o===i.length-1){a[i[o]]=l;return}(!(i[o]in a)||xe(a[i[o]]))&&(a[i[o]]=Ht(i[o+1])?[]:{}),a=a[i[o]]}}function bt(e,n){if(Array.isArray(e)&&Ht(n)){e.splice(Number(n),1);return}me(e)&&delete e[n]}function pt(e,n){if(Re(n)){delete e[gt(n)];return}const l=n.split(/\.|\[(\d+)\]/).filter(Boolean);let i=e;for(let o=0;o<l.length;o++){if(o===l.length-1){bt(i,l[o]);break}if(!(l[o]in i)||xe(i[l[o]]))break;i=i[l[o]]}const a=l.map((o,r)=>H(e,l.slice(0,r).join(".")));for(let o=a.length-1;o>=0;o--)if(!!Ut(a[o])){if(o===0){bt(e,l[0]);continue}bt(a[o-1],l[o-1])}}function Y(e){return Object.keys(e)}function kt(e,n=void 0){const l=t.getCurrentInstance();return(l==null?void 0:l.provides[e])||t.inject(e,n)}function $t(e){t.warn(`[vee-validate]: ${e}`)}function ul(e){return Array.isArray(e)?e[0]:e}function wt(e,n,l){if(Array.isArray(e)){const i=[...e],a=i.findIndex(o=>Jt(o,n));return a>=0?i.splice(a,1):i.push(n),i}return Jt(e,n)?l:n}function fl(e,n){let l,i;return function(...a){const o=this;return l||(l=!0,setTimeout(()=>l=!1,n),i=e.apply(o,a)),i}}function Yt(e,n=0){let l=null,i=[];return function(...a){return l&&window.clearTimeout(l),l=window.setTimeout(()=>{const o=e(...a);i.forEach(r=>r(o)),i=[]},n),new Promise(o=>i.push(o))}}function ml(e,n){return me(n)&&n.number?nl(e):e}function St(e,n){let l;return async function(...a){const o=e(...a);l=o;const r=await o;return o!==l||(l=void 0,n(r,a)),r}}const He=(e,n,l)=>n.slots.default?typeof e=="string"||!e?n.slots.default(l()):{default:()=>{var i,a;return(a=(i=n.slots).default)===null||a===void 0?void 0:a.call(i,l())}}:n.slots.default;function Ct(e){if(Xt(e))return e._value}function Xt(e){return"_value"in e}function Vt(e){if(!yt(e))return e;const n=e.target;if(ke(n.type)&&Xt(n))return Ct(n);if(n.type==="file"&&n.files){const l=Array.from(n.files);return n.multiple?l:l[0]}if(sl(n))return Array.from(n.options).filter(l=>l.selected&&!l.disabled).map(Ct);if(Zt(n)){const l=Array.from(n.options).find(i=>i.selected);return l?Ct(l):n.value}return n.value}function en(e){const n={};return Object.defineProperty(n,"_$$isNormalized",{value:!0,writable:!1,enumerable:!1,configurable:!1}),e?me(e)&&e._$$isNormalized?e:me(e)?Object.keys(e).reduce((l,i)=>{const a=hl(e[i]);return e[i]!==!1&&(l[i]=tn(a)),l},n):typeof e!="string"?n:e.split("|").reduce((l,i)=>{const a=yl(i);return a.name&&(l[a.name]=tn(a.params)),l},n):n}function hl(e){return e===!0?[]:Array.isArray(e)||me(e)?e:[e]}function tn(e){const n=l=>typeof l=="string"&&l[0]==="@"?gl(l.slice(1)):l;return Array.isArray(e)?e.map(n):e instanceof RegExp?[e]:Object.keys(e).reduce((l,i)=>(l[i]=n(e[i]),l),{})}const yl=e=>{let n=[];const l=e.split(":")[0];return e.includes(":")&&(n=e.split(":").slice(1).join(":").split(",")),{name:l,params:n}};function gl(e){const n=l=>H(l,e)||l[e];return n.__locatorRef=e,n}function bl(e){return Array.isArray(e)?e.filter(ht):Y(e).filter(n=>ht(e[n])).map(n=>e[n])}let pl=Object.assign({},{generateMessage:({field:e})=>`${e} is not valid.`,bails:!0,validateOnBlur:!0,validateOnChange:!0,validateOnInput:!1,validateOnModelUpdate:!0});const xt=()=>pl;async function nn(e,n,l={}){const i=l==null?void 0:l.bails,a={name:(l==null?void 0:l.name)||"{field}",rules:n,bails:i!=null?i:!0,formData:(l==null?void 0:l.values)||{}},r=(await kl(a,e)).errors;return{errors:r,valid:!r.length}}async function kl(e,n){if(Be(e.rules))return $l(n,e.rules,{bails:e.bails});if(pe(e.rules)||Array.isArray(e.rules)){const r={field:e.name,form:e.formData,value:n},s=Array.isArray(e.rules)?e.rules:[e.rules],c=s.length,u=[];for(let h=0;h<c;h++){const m=s[h],d=await m(n,r);if(typeof d!="string"&&d)continue;const S=typeof d=="string"?d:ln(r);if(u.push(S),e.bails)return{errors:u}}return{errors:u}}const l=Object.assign(Object.assign({},e),{rules:en(e.rules)}),i=[],a=Object.keys(l.rules),o=a.length;for(let r=0;r<o;r++){const s=a[r],c=await wl(l,n,{name:s,params:l.rules[s]});if(c.error&&(i.push(c.error),e.bails))return{errors:i}}return{errors:i}}async function $l(e,n,l){var i;return{errors:await n.validate(e,{abortEarly:(i=l.bails)!==null&&i!==void 0?i:!0}).then(()=>[]).catch(o=>{if(o.name==="ValidationError")return o.errors;throw o})}}async function wl(e,n,l){const i=il(l.name);if(!i)throw new Error(`No such validator '${l.name}' exists.`);const a=Sl(l.params,e.formData),o={field:e.name,value:n,form:e.formData,rule:Object.assign(Object.assign({},l),{params:a})},r=await i(n,a,o);return typeof r=="string"?{error:r}:{error:r?void 0:ln(o)}}function ln(e){const n=xt().generateMessage;return n?n(e):"Field is invalid"}function Sl(e,n){const l=i=>ht(i)?i(n):i;return Array.isArray(e)?e.map(l):Object.keys(e).reduce((i,a)=>(i[a]=l(e[a]),i),{})}async function Cl(e,n){const l=await e.validate(n,{abortEarly:!1}).then(()=>[]).catch(o=>{if(o.name!=="ValidationError")throw o;return o.inner||[]}),i={},a={};for(const o of l){const r=o.errors;i[o.path]={valid:!r.length,errors:r},r.length&&(a[o.path]=r[0])}return{valid:!l.length,results:i,errors:a}}async function Vl(e,n,l){const a=Y(e).map(async u=>{var h,m,d;const y=await nn(H(n,u),e[u],{name:((h=l==null?void 0:l.names)===null||h===void 0?void 0:h[u])||u,values:n,bails:(d=(m=l==null?void 0:l.bailsMap)===null||m===void 0?void 0:m[u])!==null&&d!==void 0?d:!0});return Object.assign(Object.assign({},y),{path:u})});let o=!0;const r=await Promise.all(a),s={},c={};for(const u of r)s[u.path]={valid:u.valid,errors:u.errors},u.valid||(o=!1,c[u.path]=u.errors[0]);return{valid:o,results:s,errors:c}}function an(e,n,l){typeof l.value=="object"&&(l.value=U(l.value)),!l.enumerable||l.get||l.set||!l.configurable||!l.writable||n==="__proto__"?Object.defineProperty(e,n,l):e[n]=l.value}function U(e){if(typeof e!="object")return e;var n=0,l,i,a,o=Object.prototype.toString.call(e);if(o==="[object Object]"?a=Object.create(e.__proto__||null):o==="[object Array]"?a=Array(e.length):o==="[object Set]"?(a=new Set,e.forEach(function(r){a.add(U(r))})):o==="[object Map]"?(a=new Map,e.forEach(function(r,s){a.set(U(s),U(r))})):o==="[object Date]"?a=new Date(+e):o==="[object RegExp]"?a=new RegExp(e.source,e.flags):o==="[object DataView]"?a=new e.constructor(U(e.buffer)):o==="[object ArrayBuffer]"?a=e.slice(0):o.slice(-6)==="Array]"&&(a=new e.constructor(e)),a){for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)an(a,i[n],Object.getOwnPropertyDescriptor(e,i[n]));for(n=0,i=Object.getOwnPropertyNames(e);n<i.length;n++)Object.hasOwnProperty.call(a,l=i[n])&&a[l]===e[l]||an(a,l,Object.getOwnPropertyDescriptor(e,l))}return a||e}let on=0;function xl(e,n){const{value:l,initialValue:i,setInitialValue:a}=rn(e,n.modelValue,n.form),{errorMessage:o,errors:r,setErrors:s}=Bl(e,n.form),c=El(l,i,r),u=on>=Number.MAX_SAFE_INTEGER?0:++on;function h(m){var d;"value"in m&&(l.value=m.value),"errors"in m&&s(m.errors),"touched"in m&&(c.touched=(d=m.touched)!==null&&d!==void 0?d:c.touched),"initialValue"in m&&a(m.initialValue)}return{id:u,path:e,value:l,initialValue:i,meta:c,errors:r,errorMessage:o,setState:h}}function rn(e,n,l){const i=t.ref(t.unref(n));function a(){return l?H(l.meta.value.initialValues,t.unref(e),t.unref(i)):t.unref(i)}function o(u){if(!l){i.value=u;return}l.stageInitialValue(t.unref(e),u,!0)}const r=t.computed(a);if(!l)return{value:t.ref(a()),initialValue:r,setInitialValue:o};const s=n?t.unref(n):H(l.values,t.unref(e),t.unref(r));return l.stageInitialValue(t.unref(e),s,!0),{value:t.computed({get(){return H(l.values,t.unref(e))},set(u){l.setFieldValue(t.unref(e),u)}}),initialValue:r,setInitialValue:o}}function El(e,n,l){const i=t.reactive({touched:!1,pending:!1,valid:!0,validated:!!t.unref(l).length,initialValue:t.computed(()=>t.unref(n)),dirty:t.computed(()=>!ne(t.unref(e),t.unref(n)))});return t.watch(l,a=>{i.valid=!a.length},{immediate:!0,flush:"sync"}),i}function Bl(e,n){function l(a){return a?Array.isArray(a)?a:[a]:[]}if(!n){const a=t.ref([]);return{errors:a,errorMessage:t.computed(()=>a.value[0]),setErrors:o=>{a.value=l(o)}}}const i=t.computed(()=>n.errorBag.value[t.unref(e)]||[]);return{errors:i,errorMessage:t.computed(()=>i.value[0]),setErrors:a=>{n.setFieldErrorBag(t.unref(e),l(a))}}}function sn(e){process.env.NODE_ENV!=="production"&&tl({id:"vee-validate-devtools-plugin",label:"VeeValidate Plugin",packageName:"vee-validate",homepage:"https://vee-validate.logaretm.com/v4",app:e,logo:"https://vee-validate.logaretm.com/v4/logo.png"},Nl)}const Oe={},ve={};let ce;const $e=fl(()=>{setTimeout(async()=>{await t.nextTick(),ce==null||ce.sendInspectorState(we),ce==null||ce.sendInspectorTree(we)},100)},100);function Ol(e){const n=t.getCurrentInstance();if(!ce){const l=n==null?void 0:n.appContext.app;if(!l)return;sn(l)}Oe[e.formId]=Object.assign({},e),Oe[e.formId]._vm=n,t.onUnmounted(()=>{delete Oe[e.formId],$e()}),$e()}function vl(e){const n=t.getCurrentInstance();if(!ce){const l=n==null?void 0:n.appContext.app;if(!l)return;sn(l)}ve[e.id]=Object.assign({},e),ve[e.id]._vm=n,t.onUnmounted(()=>{delete ve[e.id],$e()}),$e()}const we="vee-validate-inspector",le={error:12405579,success:448379,unknown:5522283,white:16777215,black:0,blue:218007,purple:12157168,orange:16099682,gray:12304330};let de=null;function Nl(e){ce=e,e.addInspector({id:we,icon:"rule",label:"vee-validate",noSelectionText:"Select a vee-validate node to inspect",actions:[{icon:"done_outline",tooltip:"Validate selected item",action:async()=>{if(!de){console.error("There is not a valid selected vee-validate node or component");return}const n=await de.validate();console.log(n)}},{icon:"delete_sweep",tooltip:"Clear validation state of the selected item",action:()=>{if(!de){console.error("There is not a valid selected vee-validate node or component");return}if("id"in de){de.resetField();return}de.resetForm()}}]}),e.on.getInspectorTree(n=>{if(n.inspectorId!==we)return;const l=Object.values(Oe),i=Object.values(ve);n.rootNodes=[...l.map(Il),...i.map(a=>Et(a))]}),e.on.getInspectorState((n,l)=>{if(n.inspectorId!==we||l.currentTab!==`custom-inspector:${we}`)return;const{form:i,field:a,type:o}=Tl(n.nodeId);if(i&&o==="form"){n.state=Pl(i),de=i;return}if(a&&o==="field"){n.state=Al(a),de=a;return}de=null})}function Il(e){const{textColor:n,bgColor:l}=dn(e),i={};Object.values(e.fieldsByPath.value).forEach(r=>{const s=Array.isArray(r)?r[0]:r;!s||se(i,t.unref(s.name),Et(s,e))});function a(r,s=[]){const c=[...s].pop();return"id"in r?Object.assign(Object.assign({},r),{label:c||r.label}):me(r)?{id:`${s.join(".")}`,label:c||"",children:Object.keys(r).map(u=>a(r[u],[...s,u]))}:Array.isArray(r)?{id:`${s.join(".")}`,label:`${c}[]`,children:r.map((u,h)=>a(u,[...s,String(h)]))}:{id:"",label:"",children:[]}}const{children:o}=a(i);return{id:cn(e),label:"Form",children:o,tags:[{label:"Form",textColor:n,backgroundColor:l},{label:`${Object.keys(e.fieldsByPath.value).length} fields`,textColor:le.white,backgroundColor:le.unknown}]}}function Et(e,n){const l=ul(e),{textColor:i,bgColor:a}=dn(l),o=Array.isArray(e)&&e.length>1;return{id:cn(n,l,!o),label:t.unref(l.name),children:Array.isArray(e)?e.map(r=>Et(r,n)):void 0,tags:[o?void 0:{label:"Field",textColor:i,backgroundColor:a},n?void 0:{label:"Standalone",textColor:le.black,backgroundColor:le.gray},!o&&l.type==="checkbox"?{label:"Checkbox",textColor:le.white,backgroundColor:le.blue}:void 0,!o&&l.type==="radio"?{label:"Radio",textColor:le.white,backgroundColor:le.purple}:void 0,o?{label:"Group",textColor:le.black,backgroundColor:le.orange}:void 0].filter(Boolean)}}function cn(e,n,l=!0){const i=e?t.unref(n==null?void 0:n.name):n==null?void 0:n.id,a=i?e==null?void 0:e.fieldsByPath.value[i]:void 0;let o;l&&n&&Array.isArray(a)&&(o=a.indexOf(n));const r={f:e==null?void 0:e.formId,ff:i,idx:o,type:n?"field":"form"};return btoa(JSON.stringify(r))}function Tl(e){try{const n=JSON.parse(atob(e)),l=Oe[n.f];if(!l&&n.ff){const a=ve[n.ff];return a?{type:n.type,field:a}:{}}if(!l)return{};const i=l.fieldsByPath.value[n.ff];return{type:n.type,form:l,field:Array.isArray(i)?i[n.idx||0]:i}}catch{}return{}}function Al(e){const{errors:n,meta:l,value:i}=e;return{"Field state":[{key:"errors",value:n.value},{key:"initialValue",value:l.initialValue},{key:"currentValue",value:i.value},{key:"touched",value:l.touched},{key:"dirty",value:l.dirty},{key:"valid",value:l.valid}]}}function Pl(e){const{errorBag:n,meta:l,values:i,isSubmitting:a,submitCount:o}=e;return{"Form state":[{key:"submitCount",value:o.value},{key:"isSubmitting",value:a.value},{key:"touched",value:l.value.touched},{key:"dirty",value:l.value.dirty},{key:"valid",value:l.value.valid},{key:"initialValues",value:l.value.initialValues},{key:"currentValues",value:i},{key:"errors",value:Y(n.value).reduce((r,s)=>{var c;const u=(c=n.value[s])===null||c===void 0?void 0:c[0];return u&&(r[s]=u),r},{})}]}}function dn(e){const n="id"in e?e.meta.valid:e.meta.value.valid;return{bgColor:n?le.success:le.error,textColor:n?le.black:le.white}}function un(e,n,l){return ke(l==null?void 0:l.type)?zl(e,n,l):fn(e,n,l)}function fn(e,n,l){const{initialValue:i,validateOnMount:a,bails:o,type:r,checkedValue:s,label:c,validateOnValueUpdate:u,uncheckedValue:h,controlled:m,keepValueOnUnmount:d,modelPropName:y,syncVModel:S,form:x}=Fl(t.unref(e),l),L=m?kt(Ee):void 0,E=x||L;let I=!1;const{id:p,value:$,initialValue:B,meta:V,setState:T,errors:A,errorMessage:j}=xl(e,{modelValue:i,form:E});S&&Ml({value:$,prop:y,handleChange:G});const M=()=>{V.touched=!0},Z=t.computed(()=>{let w=t.unref(n);const _=t.unref(E==null?void 0:E.schema);return _&&!Be(_)&&(w=ql(_,t.unref(e))||w),Be(w)||pe(w)||Array.isArray(w)?w:en(w)});async function W(w){var _,J;return E!=null&&E.validateSchema?(_=(await E.validateSchema(w)).results[t.unref(e)])!==null&&_!==void 0?_:{valid:!0,errors:[]}:nn($.value,Z.value,{name:t.unref(c)||t.unref(e),values:(J=E==null?void 0:E.values)!==null&&J!==void 0?J:{},bails:o})}const K=St(async()=>(V.pending=!0,V.validated=!0,W("validated-only")),w=>(I&&(w.valid=!0,w.errors=[]),T({errors:w.errors}),V.pending=!1,w)),ee=St(async()=>W("silent"),w=>(I&&(w.valid=!0),V.valid=w.valid,w));function ie(w){return(w==null?void 0:w.mode)==="silent"?ee():K()}function G(w,_=!0){const J=Vt(w);$.value=J,!u&&_&&K()}t.onMounted(()=>{if(a)return K();(!E||!E.validateSchema)&&ee()});function X(w){V.touched=w}let g,k=U($.value);function C(){g=t.watch($,(w,_)=>{if(ne(w,_)&&ne(w,k))return;(u?K:ee)(),k=U(w)},{deep:!0})}C();function O(w){var _;g==null||g();const J=w&&"value"in w?w.value:B.value;T({value:U(J),initialValue:U(J),touched:(_=w==null?void 0:w.touched)!==null&&_!==void 0?_:!1,errors:(w==null?void 0:w.errors)||[]}),V.pending=!1,V.validated=!1,ee(),t.nextTick(()=>{C()})}function v(w){$.value=w}function z(w){T({errors:Array.isArray(w)?w:[w]})}const D={id:p,name:e,label:c,value:$,meta:V,errors:A,errorMessage:j,type:r,checkedValue:s,uncheckedValue:h,bails:o,keepValueOnUnmount:d,resetField:O,handleReset:()=>O(),validate:ie,handleChange:G,handleBlur:M,setState:T,setTouched:X,setErrors:z,setValue:v};if(t.provide(al,D),t.isRef(n)&&typeof t.unref(n)!="function"&&t.watch(n,(w,_)=>{ne(w,_)||(V.validated?K():ee())},{deep:!0}),process.env.NODE_ENV!=="production"&&(D._vm=t.getCurrentInstance(),t.watch(()=>Object.assign(Object.assign({errors:A.value},V),{value:$.value}),$e,{deep:!0}),E||vl(D)),!E)return D;E.register(D),t.onBeforeUnmount(()=>{I=!0,E.unregister(D)});const oe=t.computed(()=>{const w=Z.value;return!w||pe(w)||Be(w)||Array.isArray(w)?{}:Object.keys(w).reduce((_,J)=>{const ge=bl(w[J]).map(ue=>ue.__locatorRef).reduce((ue,Le)=>{const ot=H(E.values,Le)||E.values[Le];return ot!==void 0&&(ue[Le]=ot),ue},{});return Object.assign(_,ge),_},{})});return t.watch(oe,(w,_)=>{if(!Object.keys(w).length)return;!ne(w,_)&&(V.validated?K():ee())}),D}function Fl(e,n){const l=()=>({initialValue:void 0,validateOnMount:!1,bails:!0,label:e,validateOnValueUpdate:!0,keepValueOnUnmount:void 0,modelPropName:"modelValue",syncVModel:!0,controlled:!0});if(!n)return l();const i="valueProp"in n?n.valueProp:n.checkedValue,a="standalone"in n?!n.standalone:n.controlled;return Object.assign(Object.assign(Object.assign({},l()),n||{}),{controlled:a!=null?a:!0,checkedValue:i})}function ql(e,n){if(!!e)return e[n]}function zl(e,n,l){const i=l!=null&&l.standalone?void 0:kt(Ee),a=l==null?void 0:l.checkedValue,o=l==null?void 0:l.uncheckedValue;function r(s){const c=s.handleChange,u=t.computed(()=>{const m=t.unref(s.value),d=t.unref(a);return Array.isArray(m)?m.findIndex(y=>ne(y,d))>=0:ne(d,m)});function h(m,d=!0){var y;if(u.value===((y=m==null?void 0:m.target)===null||y===void 0?void 0:y.checked)){d&&s.validate();return}let S=Vt(m);i||(S=wt(t.unref(s.value),t.unref(a),t.unref(o))),c(S,d)}return Object.assign(Object.assign({},s),{checked:u,checkedValue:a,uncheckedValue:o,handleChange:h})}return r(fn(e,n,l))}function Ml({prop:e,value:n,handleChange:l}){const i=t.getCurrentInstance();if(!i){process.env.NODE_ENV!=="production"&&console.warn("Failed to setup model events because `useField` was not called in setup.");return}const a=e||"modelValue",o=`update:${a}`;a in i.props&&(t.watch(n,r=>{ne(r,mn(i,a))||i.emit(o,r)}),t.watch(()=>mn(i,a),r=>{if(r===Qe&&n.value===void 0)return;const s=r===Qe?void 0:r;ne(s,ml(n.value,i.props.modelModifiers))||l(s)}))}function mn(e,n){return e.props[n]}t.defineComponent({name:"Field",inheritAttrs:!1,props:{as:{type:[String,Object],default:void 0},name:{type:String,required:!0},rules:{type:[Object,String,Function],default:void 0},validateOnMount:{type:Boolean,default:!1},validateOnBlur:{type:Boolean,default:void 0},validateOnChange:{type:Boolean,default:void 0},validateOnInput:{type:Boolean,default:void 0},validateOnModelUpdate:{type:Boolean,default:void 0},bails:{type:Boolean,default:()=>xt().bails},label:{type:String,default:void 0},uncheckedValue:{type:null,default:void 0},modelValue:{type:null,default:Qe},modelModifiers:{type:null,default:()=>({})},"onUpdate:modelValue":{type:null,default:void 0},standalone:{type:Boolean,default:!1},keepValue:{type:Boolean,default:void 0}},setup(e,n){const l=t.toRef(e,"rules"),i=t.toRef(e,"name"),a=t.toRef(e,"label"),o=t.toRef(e,"uncheckedValue"),r=t.toRef(e,"keepValue"),{errors:s,value:c,errorMessage:u,validate:h,handleChange:m,handleBlur:d,setTouched:y,resetField:S,handleReset:x,meta:L,checked:E,setErrors:I}=un(i,l,{validateOnMount:e.validateOnMount,bails:e.bails,standalone:e.standalone,type:n.attrs.type,initialValue:Ll(e,n),checkedValue:n.attrs.value,uncheckedValue:o,label:a,validateOnValueUpdate:!1,keepValueOnUnmount:r}),p=function(j,M=!0){m(j,M),n.emit("update:modelValue",c.value)},$=A=>{ke(n.attrs.type)||(c.value=Vt(A))},B=function(j){$(j),n.emit("update:modelValue",c.value)},V=t.computed(()=>{const{validateOnInput:A,validateOnChange:j,validateOnBlur:M,validateOnModelUpdate:Z}=Dl(e),W=[d,n.attrs.onBlur,M?h:void 0].filter(Boolean),K=[X=>p(X,A),n.attrs.onInput].filter(Boolean),ee=[X=>p(X,j),n.attrs.onChange].filter(Boolean),ie={name:e.name,onBlur:W,onInput:K,onChange:ee};ie["onUpdate:modelValue"]=X=>p(X,Z),ke(n.attrs.type)&&E&&(ie.checked=E.value);const G=hn(e,n);return dl(G,n.attrs)&&(ie.value=c.value),ie});function T(){return{field:V.value,value:c.value,meta:L,errors:s.value,errorMessage:u.value,validate:h,resetField:S,handleChange:p,handleInput:B,handleReset:x,handleBlur:d,setTouched:y,setErrors:I}}return n.expose({setErrors:I,setTouched:y,reset:S,validate:h,handleChange:m}),()=>{const A=t.resolveDynamicComponent(hn(e,n)),j=He(A,n,T);return A?t.h(A,Object.assign(Object.assign({},n.attrs),V.value),j):j}}});function hn(e,n){let l=e.as||"";return!e.as&&!n.slots.default&&(l="input"),l}function Dl(e){var n,l,i,a;const{validateOnInput:o,validateOnChange:r,validateOnBlur:s,validateOnModelUpdate:c}=xt();return{validateOnInput:(n=e.validateOnInput)!==null&&n!==void 0?n:o,validateOnChange:(l=e.validateOnChange)!==null&&l!==void 0?l:r,validateOnBlur:(i=e.validateOnBlur)!==null&&i!==void 0?i:s,validateOnModelUpdate:(a=e.validateOnModelUpdate)!==null&&a!==void 0?a:c}}function Ll(e,n){return ke(n.attrs.type)?Wt(e,"modelValue")?e.modelValue:void 0:Wt(e,"modelValue")?e.modelValue:n.attrs.value}let _l=0;function jl(e){var n;const l=_l++,i=new Set;let a=!1;const o=t.ref({}),r=t.ref(!1),s=t.ref(0),c=[],u=t.reactive(U(t.unref(e==null?void 0:e.initialValues)||{})),{errorBag:h,setErrorBag:m,setFieldErrorBag:d}=Hl(e==null?void 0:e.initialErrors),y=t.computed(()=>Y(h.value).reduce((f,b)=>{const N=h.value[b];return N&&N.length&&(f[b]=N[0]),f},{}));function S(f){const b=o.value[f];return Array.isArray(b)?b[0]:b}function x(f){return!!o.value[f]}const L=t.computed(()=>Y(o.value).reduce((f,b)=>{const N=S(b);return N&&(f[b]=t.unref(N.label||N.name)||""),f},{})),E=t.computed(()=>Y(o.value).reduce((f,b)=>{var N;const F=S(b);return F&&(f[b]=(N=F.bails)!==null&&N!==void 0?N:!0),f},{})),I=Object.assign({},(e==null?void 0:e.initialErrors)||{}),p=(n=e==null?void 0:e.keepValuesOnUnmount)!==null&&n!==void 0?n:!1,{initialValues:$,originalInitialValues:B,setInitialValues:V}=Rl(o,u,e==null?void 0:e.initialValues),T=Ql(o,u,B,y),A=t.computed(()=>[...i,...Y(o.value)].reduce((f,b)=>{const N=H(u,b);return se(f,b,N),f},{})),j=e==null?void 0:e.validationSchema,M=Yt(On,5),Z=Yt(On,5),W=St(async f=>await f==="silent"?M():Z(),(f,[b])=>{const N=G.fieldsByPath.value||{},F=Y(G.errorBag.value);return[...new Set([...Y(f.results),...Y(N),...F])].reduce((R,Q)=>{const ae=N[Q],fe=(f.results[Q]||{errors:[]}).errors,re={errors:fe,valid:!fe.length};if(R.results[Q]=re,re.valid||(R.errors[Q]=re.errors[0]),!ae)return C(Q,fe),R;if(g(ae,_e=>_e.meta.valid=re.valid),b==="silent")return R;const Vr=Array.isArray(ae)?ae.some(_e=>_e.meta.validated):ae.meta.validated;return b==="validated-only"&&!Vr||g(ae,_e=>_e.setState({errors:re.errors})),R},{valid:f.valid,results:{},errors:{}})});function K(f){return function(N,F){return function(R){return R instanceof Event&&(R.preventDefault(),R.stopPropagation()),_(Y(o.value).reduce((Q,ae)=>(Q[ae]=!0,Q),{})),r.value=!0,s.value++,rt().then(Q=>{const ae=U(u);if(Q.valid&&typeof N=="function"){const fe=U(A.value);return N(f?fe:ae,{evt:R,controlledValues:fe,setErrors:O,setFieldError:C,setTouched:_,setFieldTouched:w,setValues:z,setFieldValue:v,resetForm:J})}!Q.valid&&typeof F=="function"&&F({values:ae,evt:R,errors:Q.errors,results:Q.results})}).then(Q=>(r.value=!1,Q),Q=>{throw r.value=!1,Q})}}}const ie=K(!1);ie.withControlled=K(!0);const G={formId:l,fieldsByPath:o,values:u,controlledValues:A,errorBag:h,errors:y,schema:j,submitCount:s,meta:T,isSubmitting:r,fieldArrays:c,keepValuesOnUnmount:p,validateSchema:t.unref(j)?W:void 0,validate:rt,register:Le,unregister:ot,setFieldErrorBag:d,validateField:Ft,setFieldValue:v,setValues:z,setErrors:O,setFieldError:C,setFieldTouched:w,setTouched:_,resetForm:J,handleSubmit:ie,stageInitialValue:Sr,unsetInitialValue:wr,setFieldInitialValue:Bn,useFieldModel:oe};function X(f){return Array.isArray(f)}function g(f,b){return Array.isArray(f)?f.forEach(b):b(f)}function k(f){Object.values(o.value).forEach(b=>{!b||g(b,f)})}function C(f,b){d(f,b)}function O(f){m(f)}function v(f,b,{force:N}={force:!1}){var F;const P=o.value[f],R=U(b);if(!P){se(u,f,R);return}if(X(P)&&((F=P[0])===null||F===void 0?void 0:F.type)==="checkbox"&&!Array.isArray(b)){const ae=U(wt(H(u,f)||[],b,void 0));se(u,f,ae);return}let Q=b;!X(P)&&P.type==="checkbox"&&!N&&!a&&(Q=U(wt(H(u,f),b,t.unref(P.uncheckedValue)))),se(u,f,Q)}function z(f){Y(u).forEach(b=>{delete u[b]}),Y(f).forEach(b=>{v(b,f[b])}),c.forEach(b=>b&&b.reset())}function D(f){const{value:b}=rn(f,void 0,G);return t.watch(b,()=>{x(t.unref(f))||rt({mode:"validated-only"})},{deep:!0}),i.add(t.unref(f)),b}function oe(f){return Array.isArray(f)?f.map(D):D(f)}function w(f,b){const N=o.value[f];N&&g(N,F=>F.setTouched(b))}function _(f){Y(f).forEach(b=>{w(b,!!f[b])})}function J(f){a=!0,k(b=>b.resetField()),f!=null&&f.values?(V(f.values),z(f==null?void 0:f.values)):(V(B.value),z(B.value)),f!=null&&f.touched&&_(f.touched),O((f==null?void 0:f.errors)||{}),s.value=(f==null?void 0:f.submitCount)||0,t.nextTick(()=>{a=!1})}function ge(f,b){const N=t.markRaw(f),F=b;if(!o.value[F]){o.value[F]=N;return}const P=o.value[F];P&&!Array.isArray(P)&&(o.value[F]=[P]),o.value[F]=[...o.value[F],N]}function ue(f,b){const N=b,F=o.value[N];if(!!F){if(!X(F)&&f.id===F.id){delete o.value[N];return}if(X(F)){const P=F.findIndex(R=>R.id===f.id);if(P===-1)return;F.splice(P,1),F.length||delete o.value[N]}}}function Le(f){const b=t.unref(f.name);ge(f,b),t.isRef(f.name)&&t.watch(f.name,async(F,P)=>{await t.nextTick(),ue(f,P),ge(f,F),(y.value[P]||y.value[F])&&(C(P,void 0),Ft(F)),await t.nextTick(),x(P)||pt(u,P)});const N=t.unref(f.errorMessage);N&&(I==null?void 0:I[b])!==N&&Ft(b),delete I[b]}function ot(f){const b=t.unref(f.name),N=o.value[b],F=!!N&&X(N);ue(f,b),t.nextTick(()=>{var P;const R=(P=t.unref(f.keepValueOnUnmount))!==null&&P!==void 0?P:t.unref(p),Q=H(u,b);if(F&&(N===o.value[b]||!o.value[b])&&Array.isArray(Q)&&!R){const fe=Q.findIndex(re=>ne(re,t.unref(f.checkedValue)));if(fe>-1){const re=[...Q];re.splice(fe,1),v(b,re,{force:!0})}}if(!x(b)){if(C(b,void 0),R||F&&!Ut(H(u,b)))return;pt(u,b)}})}async function rt(f){if(k(P=>P.meta.validated=!0),G.validateSchema)return G.validateSchema((f==null?void 0:f.mode)||"force");const b=await Promise.all(Object.values(o.value).map(P=>{const R=Array.isArray(P)?P[0]:P;return R?R.validate(f).then(Q=>({key:t.unref(R.name),valid:Q.valid,errors:Q.errors})):Promise.resolve({key:"",valid:!0,errors:[]})})),N={},F={};for(const P of b)N[P.key]={valid:P.valid,errors:P.errors},P.errors.length&&(F[P.key]=P.errors[0]);return{valid:b.every(P=>P.valid),results:N,errors:F}}async function Ft(f){const b=o.value[f];return b?Array.isArray(b)?b.map(N=>N.validate())[0]:b.validate():(t.warn(`field with name ${f} was not found`),Promise.resolve({errors:[],valid:!0}))}function wr(f){pt($.value,f)}function Sr(f,b,N=!1){se(u,f,b),Bn(f,b),N&&!(e!=null&&e.initialValues)&&se(B.value,f,U(b))}function Bn(f,b){se($.value,f,U(b))}async function On(){const f=t.unref(j);return f?Be(f)?await Cl(f,u):await Vl(f,u,{names:L.value,bailsMap:E.value}):{valid:!0,results:{},errors:{}}}const Cr=ie((f,{evt:b})=>{Gt(b)&&b.target.submit()});return t.onMounted(()=>{if(e!=null&&e.initialErrors&&O(e.initialErrors),e!=null&&e.initialTouched&&_(e.initialTouched),e!=null&&e.validateOnMount){rt();return}G.validateSchema&&G.validateSchema("silent")}),t.isRef(j)&&t.watch(j,()=>{var f;(f=G.validateSchema)===null||f===void 0||f.call(G,"validated-only")}),t.provide(Ee,G),process.env.NODE_ENV!=="production"&&(Ol(G),t.watch(()=>Object.assign(Object.assign({errors:h.value},T.value),{values:u,isSubmitting:r.value,submitCount:s.value}),$e,{deep:!0})),Object.assign(Object.assign({},G),{handleReset:()=>J(),submitForm:Cr})}function Ql(e,n,l,i){const a={touched:"some",pending:"some",valid:"every"},o=t.computed(()=>!ne(n,t.unref(l)));function r(){const c=Object.values(e.value).flat(1).filter(Boolean);return Y(a).reduce((u,h)=>{const m=a[h];return u[h]=c[m](d=>d.meta[h]),u},{})}const s=t.reactive(r());return t.watchEffect(()=>{const c=r();s.touched=c.touched,s.valid=c.valid,s.pending=c.pending}),t.computed(()=>Object.assign(Object.assign({initialValues:t.unref(l)},s),{valid:s.valid&&!Y(i.value).length,dirty:o.value}))}function Rl(e,n,l){const i=t.ref(U(t.unref(l))||{}),a=t.ref(U(t.unref(l))||{});function o(r,s=!1){i.value=U(r),a.value=U(r),s&&Y(e.value).forEach(c=>{const u=e.value[c],h=Array.isArray(u)?u.some(d=>d.meta.touched):u==null?void 0:u.meta.touched;if(!u||h)return;const m=H(i.value,c);se(n,c,U(m))})}return t.isRef(l)&&t.watch(l,r=>{o(r,!0)},{deep:!0}),{initialValues:i,originalInitialValues:a,setInitialValues:o}}function Hl(e){const n=t.ref({});function l(o){return Array.isArray(o)?o:o?[o]:[]}function i(o,r){if(!r){delete n.value[o];return}n.value[o]=l(r)}function a(o){n.value=Y(o).reduce((r,s)=>{const c=o[s];return c&&(r[s]=l(c)),r},{})}return e&&a(e),{errorBag:n,setErrorBag:a,setFieldErrorBag:i}}t.defineComponent({name:"Form",inheritAttrs:!1,props:{as:{type:String,default:"form"},validationSchema:{type:Object,default:void 0},initialValues:{type:Object,default:void 0},initialErrors:{type:Object,default:void 0},initialTouched:{type:Object,default:void 0},validateOnMount:{type:Boolean,default:!1},onSubmit:{type:Function,default:void 0},onInvalidSubmit:{type:Function,default:void 0},keepValues:{type:Boolean,default:!1}},setup(e,n){const l=t.toRef(e,"initialValues"),i=t.toRef(e,"validationSchema"),a=t.toRef(e,"keepValues"),{errors:o,values:r,meta:s,isSubmitting:c,submitCount:u,controlledValues:h,validate:m,validateField:d,handleReset:y,resetForm:S,handleSubmit:x,setErrors:L,setFieldError:E,setFieldValue:I,setValues:p,setFieldTouched:$,setTouched:B}=jl({validationSchema:i.value?i:void 0,initialValues:l,initialErrors:e.initialErrors,initialTouched:e.initialTouched,validateOnMount:e.validateOnMount,keepValuesOnUnmount:a}),V=x((Z,{evt:W})=>{Gt(W)&&W.target.submit()},e.onInvalidSubmit),T=e.onSubmit?x(e.onSubmit,e.onInvalidSubmit):V;function A(Z){yt(Z)&&Z.preventDefault(),y(),typeof n.attrs.onReset=="function"&&n.attrs.onReset()}function j(Z,W){return x(typeof Z=="function"&&!W?Z:W,e.onInvalidSubmit)(Z)}function M(){return{meta:s.value,errors:o.value,values:r,isSubmitting:c.value,submitCount:u.value,controlledValues:h.value,validate:m,validateField:d,handleSubmit:j,handleReset:y,submitForm:V,setErrors:L,setFieldError:E,setFieldValue:I,setValues:p,setFieldTouched:$,setTouched:B,resetForm:S}}return n.expose({setFieldError:E,setErrors:L,setFieldValue:I,setValues:p,setFieldTouched:$,setTouched:B,resetForm:S,validate:m,validateField:d}),function(){const W=e.as==="form"?e.as:t.resolveDynamicComponent(e.as),K=He(W,n,M);if(!e.as)return K;const ee=e.as==="form"?{novalidate:!0}:{};return t.h(W,Object.assign(Object.assign(Object.assign({},ee),n.attrs),{onSubmit:T,onReset:A}),K)}}});function Ul(e){const n=kt(Ee,void 0),l=t.ref([]),i=()=>{},a={fields:l,remove:i,push:i,swap:i,insert:i,update:i,replace:i,prepend:i,move:i};if(!n)return $t("FieldArray requires being a child of `<Form/>` or `useForm` being called before it. Array fields may not work correctly"),a;if(!t.unref(e))return $t("FieldArray requires a field path to be provided, did you forget to pass the `name` prop?"),a;const o=n.fieldArrays.find(p=>t.unref(p.path)===t.unref(e));if(o)return o;let r=0;function s(){const p=H(n==null?void 0:n.values,t.unref(e),[])||[];l.value=p.map(u),c()}s();function c(){const p=l.value.length;for(let $=0;$<p;$++){const B=l.value[$];B.isFirst=$===0,B.isLast=$===p-1}}function u(p){const $=r++;return{key:$,value:t.computed({get(){const V=H(n==null?void 0:n.values,t.unref(e),[])||[],T=l.value.findIndex(A=>A.key===$);return T===-1?p:V[T]},set(V){const T=l.value.findIndex(A=>A.key===$);if(T===-1){$t("Attempting to update a non-existent array item");return}x(T,V)}}),isFirst:!1,isLast:!1}}function h(p){const $=t.unref(e),B=H(n==null?void 0:n.values,$);if(!B||!Array.isArray(B))return;const V=[...B];V.splice(p,1),n==null||n.unsetInitialValue($+`[${p}]`),n==null||n.setFieldValue($,V),l.value.splice(p,1),c()}function m(p){const $=t.unref(e),B=H(n==null?void 0:n.values,$),V=xe(B)?[]:B;if(!Array.isArray(V))return;const T=[...V];T.push(p),n==null||n.stageInitialValue($+`[${T.length-1}]`,p),n==null||n.setFieldValue($,T),l.value.push(u(p)),c()}function d(p,$){const B=t.unref(e),V=H(n==null?void 0:n.values,B);if(!Array.isArray(V)||!(p in V)||!($ in V))return;const T=[...V],A=[...l.value],j=T[p];T[p]=T[$],T[$]=j;const M=A[p];A[p]=A[$],A[$]=M,n==null||n.setFieldValue(B,T),l.value=A,c()}function y(p,$){const B=t.unref(e),V=H(n==null?void 0:n.values,B);if(!Array.isArray(V)||V.length<p)return;const T=[...V],A=[...l.value];T.splice(p,0,$),A.splice(p,0,u($)),n==null||n.setFieldValue(B,T),l.value=A,c()}function S(p){const $=t.unref(e);n==null||n.setFieldValue($,p),s()}function x(p,$){const B=t.unref(e),V=H(n==null?void 0:n.values,B);!Array.isArray(V)||V.length-1<p||n==null||n.setFieldValue(`${B}[${p}]`,$)}function L(p){const $=t.unref(e),B=H(n==null?void 0:n.values,$),V=xe(B)?[]:B;if(!Array.isArray(V))return;const T=[p,...V];n==null||n.stageInitialValue($+`[${T.length-1}]`,p),n==null||n.setFieldValue($,T),l.value.unshift(u(p)),c()}function E(p,$){const B=t.unref(e),V=H(n==null?void 0:n.values,B),T=xe(V)?[]:[...V];if(!Array.isArray(V)||!(p in V)||!($ in V))return;const A=[...l.value],j=A[p];A.splice(p,1),A.splice($,0,j);const M=T[p];T.splice(p,1),T.splice($,0,M),n==null||n.setFieldValue(B,T),l.value=A,c()}const I={fields:l,remove:h,push:m,swap:d,insert:y,update:x,replace:S,prepend:L,move:E};return n.fieldArrays.push(Object.assign({path:e,reset:s},I)),t.onBeforeUnmount(()=>{const p=n.fieldArrays.findIndex($=>t.unref($.path)===t.unref(e));p>=0&&n.fieldArrays.splice(p,1)}),I}t.defineComponent({name:"FieldArray",inheritAttrs:!1,props:{name:{type:String,required:!0}},setup(e,n){const{push:l,remove:i,swap:a,insert:o,replace:r,update:s,prepend:c,move:u,fields:h}=Ul(t.toRef(e,"name"));function m(){return{fields:h.value,push:l,remove:i,swap:a,insert:o,update:s,replace:r,prepend:c,move:u}}return n.expose({push:l,remove:i,swap:a,insert:o,update:s,replace:r,prepend:c,move:u}),()=>He(void 0,n,m)}}),t.defineComponent({name:"ErrorMessage",props:{as:{type:String,default:void 0},name:{type:String,required:!0}},setup(e,n){const l=t.inject(Ee,void 0),i=t.computed(()=>l==null?void 0:l.errors.value[e.name]);function a(){return{message:i.value}}return()=>{if(!i.value)return;const o=e.as?t.resolveDynamicComponent(e.as):e.as,r=He(o,n,a),s=Object.assign({role:"alert"},n.attrs);return!o&&(Array.isArray(r)||!r)&&(r==null?void 0:r.length)?r:(Array.isArray(r)||!r)&&!(r!=null&&r.length)?t.h(o||"span",s,i.value):t.h(o,s,r)}}});function Ne(e,n,l){return n!=null&&n.useFieldParent?n==null?void 0:n.useFieldParent(e):n!=null&&n.rules?un(e,n==null?void 0:n.rules,n==null?void 0:n.opts):Zl(n==null?void 0:n.error,l)}function Zl(e,n){const l=t.getCurrentInstance();return{value:t.computed({get(){return l==null?void 0:l.props[n.propKey]},set(a){n==null||n.emit(a)}}),errorMessage:e}}const Gl={viewBox:"0 0 24 24",width:"1em",height:"1em"},Wl=[t.createElementVNode("path",{fill:"currentColor",d:"m9.55 18l-5.7-5.7l1.425-1.425L9.55 15.15l9.175-9.175L20.15 7.4Z"},null,-1)];function Kl(e,n){return t.openBlock(),t.createElementBlock("svg",Gl,Wl)}const yn={name:"material-symbols-done",render:Kl},Jl=["id","data-testid"],Yl=["for","data-testid","data-required"],Xl={class:"container-input"},ei=["id","data-testid"],ti={inheritAttrs:!1},Ie=t.defineComponent({...ti,__name:"InputText",props:{id:null,name:null,class:null,label:null,mask:null,helperText:null,successText:null,loadingText:null,required:null,disabled:null,isSuccess:null,isLoading:null,size:{default:"medium"},error:{default:null},modelValue:null,placeholder:null,useField:null,rules:null,opts:null},emits:["update:modelValue"],setup(e,{emit:n}){const l=e,i=t.useSlots(),a=t.computed(()=>!!(i!=null&&i.icon)),o=t.computed(()=>{var d;return(d=l.name)!=null?d:""}),{value:r,errorMessage:s}=Ne(o.value,{error:t.computed(()=>l.error),rules:l.rules,opts:l.opts,useFieldParent:l.useField},{propKey:"modelValue",emit:d=>n("update:modelValue",d)}),c=t.computed(()=>!!l.loadingText||!!(s!=null&&s.value)||!!l.successText||!!l.helperText),u=t.computed(()=>c.value?`input-text-describe-${l.id}`:null),h=t.computed(()=>{var d;return l.loadingText&&l.isLoading?{text:l.loadingText,type:"loading"}:(d=s==null?void 0:s.value)!=null&&d.length?{text:s==null?void 0:s.value,type:"error"}:l.successText&&l.isSuccess?{text:l.successText,type:"success"}:{text:l.helperText,type:"helper"}});function m(d){n("update:modelValue",d)}return(d,y)=>(t.openBlock(),t.createElementBlock("div",{id:`input-text-${e.id}`,"data-testid":`input-text-${e.id}`,class:t.normalizeClass([[`${d.$props.class}`,{"-disabled":e.disabled}],"sol-input-text-core"])},[e.label?(t.openBlock(),t.createElementBlock("label",{key:0,for:`input-text-input-${e.id}`,"data-testid":`input-text-label-${e.id}`,class:t.normalizeClass(["label",`-${e.size}`]),"data-required":e.required},t.toDisplayString(e.label),11,Yl)):t.createCommentVNode("",!0),t.createElementVNode("div",Xl,[t.createVNode(Qt,t.mergeProps(d.$attrs,{id:`text-input-${e.id}`,modelValue:t.unref(r),"onUpdate:modelValue":[y[0]||(y[0]=S=>t.isRef(r)?r.value=S:null),m],size:e.size,name:t.unref(o),mask:e.mask,placeholder:e.placeholder,"data-required":e.required,"has-feedback-icon":t.unref(a),error:!!t.unref(s),disabled:e.disabled,"aria-invalid":!!t.unref(s),"aria-describedby":t.unref(u)}),null,16,["id","modelValue","size","name","mask","placeholder","data-required","has-feedback-icon","error","disabled","aria-invalid","aria-describedby"]),e.isLoading?(t.openBlock(),t.createBlock(qt,{key:0,class:t.normalizeClass(["icon-position",`-${e.size}`]),title:"carregando","aria-busy":e.isSuccess,size:e.size},null,8,["aria-busy","class","size"])):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["icon-position",`-${e.size}`])},[e.isSuccess?(t.openBlock(),t.createBlock(t.unref(yn),{key:0,"aria-hidden":"true",class:"text-feedback-positive-pure"})):t.renderSlot(d.$slots,"icon",{key:1})],2))]),t.unref(c)?(t.openBlock(),t.createElementBlock("span",{key:1,id:`input-text-describe-${e.id}`,"data-testid":`input-text-describe-${e.id}`,class:t.normalizeClass(["message",`-${t.unref(h).type}`])},t.toDisplayString(t.unref(h).text),11,ei)):t.createCommentVNode("",!0)],10,Jl))}}),Tr="",ni={viewBox:"0 0 24 24",width:"1em",height:"1em"},li=[t.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5"},[t.createElementVNode("path",{d:"M12 14a2 2 0 1 0 0-4a2 2 0 0 0 0 4Z"}),t.createElementVNode("path",{d:"M21 12c-1.889 2.991-5.282 6-9 6s-7.111-3.009-9-6c2.299-2.842 4.992-6 9-6s6.701 3.158 9 6Z"})],-1)];function ii(e,n){return t.openBlock(),t.createElementBlock("svg",ni,li)}const ai={name:"iconoir-eye-empty",render:ii},oi={viewBox:"0 0 24 24",width:"1em",height:"1em"},ri=[t.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5"},[t.createElementVNode("path",{d:"m3 3l18 18M10.5 10.677a2 2 0 0 0 2.823 2.823"}),t.createElementVNode("path",{d:"M7.362 7.561C5.68 8.74 4.279 10.42 3 12c1.889 2.991 5.282 6 9 6c1.55 0 3.043-.523 4.395-1.35M12 6c4.008 0 6.701 3.158 9 6a15.66 15.66 0 0 1-1.078 1.5"})],-1)];function si(e,n){return t.openBlock(),t.createElementBlock("svg",oi,ri)}const ci={name:"iconoir-eye-off",render:si},di=["aria-label"],Ue=t.defineComponent({__name:"InputPassword",props:{id:null,label:null,name:{default:"password"},placeholder:{default:"Digite sua senha."},helperText:null,required:{default:!0},disabled:null,size:null,error:null,modelValue:null,useField:null,rules:null,opts:null},setup(e){const n=t.ref(!1),l=t.computed(()=>n.value?"text":"password");return(i,a)=>(t.openBlock(),t.createBlock(Ie,{id:`password-${e.id}`,type:t.unref(l),label:e.label,name:e.name,required:e.required,size:e.size,"helper-text":e.helperText,placeholder:e.placeholder,error:e.error,"model-value":e.modelValue,"use-field":e.useField,rules:e.rules,opts:e.opts},{icon:t.withCtx(()=>[t.createElementVNode("button",{type:"button","data-testid":"toggle-type-password","aria-label":n.value?"Hide password":"Show password",onClick:a[0]||(a[0]=o=>n.value=!n.value)},[t.withDirectives(t.createVNode(t.unref(ai),{class:"password-feedback-icon","aria-hidden":"true"},null,512),[[t.vShow,n.value]]),t.withDirectives(t.createVNode(t.unref(ci),{class:"password-feedback-icon","aria-hidden":"true"},null,512),[[t.vShow,!n.value]])],8,di)]),_:1},8,["id","type","label","name","required","size","helper-text","placeholder","error","model-value","use-field","rules","opts"]))}}),Fr="",ui=["id","data-testid"],fi=["id","data-testid","for","data-required"],mi=["id","data-testid","data-required","placeholder","aria-invalid","aria-describedby"],hi=["id","data-testid"],Ze=t.defineComponent({__name:"InputTextarea",props:{id:null,class:null,name:null,label:null,required:{type:Boolean},helperText:null,resize:{default:"both"},size:{default:"medium"},error:{default:null},placeholder:null,modelValue:null,useField:null,rules:null,opts:null},emits:["update:modelValue"],setup(e,{emit:n}){const l=e,i=t.computed(()=>{var h;return(h=l.name)!=null?h:""}),{value:a,errorMessage:o}=Ne(i.value,{error:t.computed(()=>l.error),rules:l.rules,opts:l.opts,useFieldParent:l.useField},{propKey:"modelValue",emit:h=>n("update:modelValue",h)}),r=t.computed(()=>!!(o!=null&&o.value)||!!l.helperText),s=t.computed(()=>r.value?`input-textarea-describe-${l.id}`:void 0),c=t.computed(()=>{var h;return(h=o==null?void 0:o.value)!=null&&h.length?{text:o==null?void 0:o.value,type:"error"}:{text:l.helperText,type:"helper"}});function u({target:h}){n("update:modelValue",h==null?void 0:h.value)}return(h,m)=>{var d;return t.openBlock(),t.createElementBlock("div",{id:`input-textarea-${e.id}`,"data-testid":`input-textarea-${e.id}`,class:t.normalizeClass([[`${(d=h.$props.class)!=null?d:""}`,`-${e.size}`],"sol-textarea-core"])},[e.label?(t.openBlock(),t.createElementBlock("label",{key:0,id:`input-textarea-label-${e.id}`,"data-testid":`input-textarea-label-${e.id}`,for:`input-textarea-input-${e.id}`,class:"label","data-required":e.required},[t.createElementVNode("span",null,t.toDisplayString(e.label),1)],8,fi)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(t.unref(a))+" ",1),t.withDirectives(t.createElementVNode("textarea",t.mergeProps(h.$attrs,{id:`input-textarea-input-${e.id}`,"onUpdate:modelValue":m[0]||(m[0]=y=>t.isRef(a)?a.value=y:null),"data-testid":`input-textarea-input-${e.id}`,"data-required":e.required,class:[[`-${e.size}`,{"-error":e.error}],"textarea"],rows:"4",placeholder:e.placeholder,style:{resize:e.resize},"aria-invalid":!!t.unref(o),"aria-describedby":t.unref(s),onInput:u}),null,16,mi),[[t.vModelText,t.unref(a)]]),t.unref(r)?(t.openBlock(),t.createElementBlock("span",{key:1,id:`input-textarea-describe-${e.id}`,"data-testid":`input-textarea-describe-${e.id}`,class:t.normalizeClass(["message",`-${t.unref(c).type}`])},t.toDisplayString(t.unref(c).text),11,hi)):t.createCommentVNode("",!0)],10,ui)}}}),qr="";Ie.install=e=>{e.component("SolInputText",Ie)},Ue.install=e=>{e.component("SolInputTextPassword",Ue)},Ze.install=e=>{e.component("SolInputTextarea",Ze)};const yi=["id","aria-checked","aria-labelledby","data-testid","checked","value","name"],gi=["id","for","data-testid"],Ge=t.defineComponent({__name:"Switch",props:{id:null,name:null,value:null,label:null,checked:{type:Boolean},class:null,textDirection:{default:"left"},hideLabel:{type:Boolean},stretchLabel:{type:Boolean,default:!1}},emits:["change","update:checked"],setup(e,{emit:n}){const l=e;function i(){var a;n("change",(a=l.value)!=null?a:!!l.checked),n("update:checked",!l.checked)}return(a,o)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["sol-switch-core",[a.$props.class,`-text-${e.textDirection}`,{"-stretch-label":e.stretchLabel}]])},[t.createElementVNode("input",t.mergeProps(a.$attrs,{id:`switch-${e.name}-${e.id}`,type:"checkbox",class:"switch",role:"switch","aria-checked":e.checked,"aria-labelledby":`switch-label-${e.name}-${e.id}`,"data-testid":`switch-${e.name}-${e.id}`,checked:e.checked,value:e.value,name:e.name,onChange:i}),null,16,yi),t.createElementVNode("label",{id:`switch-label-${e.name}-${e.id}`,class:t.normalizeClass(["label",`-${e.textDirection} ${e.hideLabel?"sr-only":""}`]),for:`switch-${e.name}-${e.id}`,"data-testid":`switch-label-${e.name}-${e.id}`},t.toDisplayString(e.label),11,gi)],2))}}),zr="";Ge.install=e=>{e.component("SolSwitch",Ge)};const bi=["id","data-testid","checked","value","name"],pi=["for"],ki={inheritAttrs:!1},Se=t.defineComponent({...ki,__name:"Radio",props:{id:null,name:null,value:null,label:null,hideLabel:null,checked:null,class:null},emits:["change"],setup(e,{emit:n}){return(l,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["sol-radio-core",[l.$props.class,{"-hide-label":e.hideLabel}]])},[t.createElementVNode("input",t.mergeProps(l.$attrs,{id:`radio-${e.name}-${e.id}`,type:"radio",class:"radio","data-testid":`radio-${e.name}-${e.id}`,checked:e.checked,value:e.value,name:e.name,onChange:i[0]||(i[0]=a=>n("change",e.value))}),null,16,bi),t.createElementVNode("label",{class:"label",for:`radio-${e.name}-${e.id}`},t.toDisplayString(e.label),9,pi)],2))}}),Mr="",$i=["id","data-testid","aria-labelledby"],wi=["id","data-testid"],Si=["id","data-testid"],We=t.defineComponent({__name:"RadioGroup",props:{id:null,title:null,name:null,hideTitle:{type:Boolean,default:!1},helperText:null,error:{default:null},radios:null,modelValue:null,direction:{default:"row"},useField:null,rules:null,opts:null},emits:["change","update:modelValue"],setup(e,{emit:n}){const l=e,i=t.computed(()=>{var m;return(m=l.name)!=null?m:""}),{value:a,errorMessage:o}=Ne(i.value,{error:t.computed(()=>l.error),rules:l.rules,opts:l.opts,useFieldParent:l.useField},{propKey:"modelValue",emit:m=>n("update:modelValue",m)}),r=t.computed(()=>!!(o!=null&&o.value)||!!l.helperText),s=t.computed(()=>r.value?`radios-describe-${l.id}`:null),c=t.computed(()=>{var m;return(m=o==null?void 0:o.value)!=null&&m.length?{text:o==null?void 0:o.value,type:"error"}:{text:l.helperText,type:"helper"}});function u(m){return a.value===m}function h(m){a.value=m.value,n("change",m.value),n("update:modelValue",m.value)}return(m,d)=>(t.openBlock(),t.createElementBlock("fieldset",{id:`radio-group-${e.id}`,"data-testid":`radio-group-${e.id}`,"aria-labelledby":`radio-group-title-${e.id}`,class:"sol-radio-group-core"},[t.renderSlot(m.$slots,"title",{id:`radio-group-title-${e.id}`},()=>[t.createElementVNode("legend",{id:`radio-group-title-${e.id}`,class:t.normalizeClass(["title",{"sr-only":e.hideTitle}]),"data-testid":`radio-group-title-${e.id}`},t.toDisplayString(e.title),11,wi)]),t.createElementVNode("ul",{class:t.normalizeClass(["container-radios",{"flex-col":e.direction==="column"}])},[t.renderSlot(m.$slots,"default",{radios:e.radios,direction:e.direction},()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.radios,(y,S)=>{var x;return t.openBlock(),t.createElementBlock("li",{key:S},[t.createVNode(Se,t.mergeProps(m.$attrs,{id:(x=y==null?void 0:y.id)!=null?x:`${y.value}`,class:["radio",{"mb-micro":e.direction==="column","mr-micro":e.direction==="row"}],name:y.name,value:y.value,label:y.label,checked:u(y.value),error:!!t.unref(o),"aria-invalid":!!t.unref(o),"aria-describedby":t.unref(s),onChange:L=>h(y)}),null,16,["id","class","name","value","label","checked","error","aria-invalid","aria-describedby","onChange"])])}),128))])],2),t.unref(r)?(t.openBlock(),t.createElementBlock("span",{key:0,id:`radios-describe-${e.id}`,"data-testid":`radios-describe-${e.id}`,class:t.normalizeClass(["message",`-${t.unref(c).type}`])},t.toDisplayString(t.unref(c).text),11,Si)):t.createCommentVNode("",!0)],8,$i))}}),Dr="";Se.install=e=>{e.component("SolRadio",Se)},We.install=e=>{e.component("SolRadioGroup",We)};const Ci=["id","indeterminate","data-testid","checked","value","name"],Vi=["for"],xi={inheritAttrs:!1},he=t.defineComponent({...xi,__name:"Checkbox",props:{id:null,name:null,value:null,label:null,hideLabel:null,checked:null,class:null,indeterminate:{type:Boolean}},emits:["change"],setup(e,{emit:n}){return(l,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["sol-checkbox-core",[l.$props.class,{"-hide-label":e.hideLabel}]])},[t.createElementVNode("input",t.mergeProps(l.$attrs,{id:`checkbox-${e.name}-${e.id}`,type:"checkbox",indeterminate:e.indeterminate,class:"checkbox","data-testid":`checkbox-${e.name}-${e.id}`,checked:e.checked,value:e.value,name:e.name,onChange:i[0]||(i[0]=a=>n("change",e.value))}),null,16,Ci),t.createElementVNode("label",{class:"label",for:`checkbox-${e.name}-${e.id}`},t.toDisplayString(e.label),9,Vi)],2))}}),Lr="",Ei=["id","data-testid","aria-labelledby"],Bi=["id","data-testid"],Oi=["id","data-testid"],Ke=t.defineComponent({__name:"CheckboxGroup",props:{id:null,title:null,name:null,hideTitle:{type:Boolean,default:!1},helperText:null,error:{default:null},checkboxes:null,modelValue:null,direction:{default:"row"},useField:null,rules:null,opts:null},emits:["change","update:modelValue"],setup(e,{emit:n}){const l=e,i=t.computed(()=>{var d;return(d=l.name)!=null?d:""}),{value:a,errorMessage:o}=Ne(i.value,{error:t.computed(()=>l.error),rules:l.rules,useFieldParent:l.useField},{propKey:"modelValue",emit:d=>n("update:modelValue",d)}),r=t.computed(()=>!!(o!=null&&o.value)||!!l.helperText),s=t.computed(()=>r.value?`checkboxes-describe-${l.id}`:null),c=t.computed(()=>{var d;return(d=o==null?void 0:o.value)!=null&&d.length?{text:o==null?void 0:o.value,type:"error"}:{text:l.helperText,type:"helper"}});function u(d){var y;return(y=a.value)==null?void 0:y.includes(d)}function h(d){return Array.isArray(a.value)?[...a.value,d]:[d]}function m(d){var S;n("change",d.value);const y=u(d.value)?(S=a.value)==null?void 0:S.filter(x=>x!==d.value):h(d.value);a.value=y,n("update:modelValue",y)}return(d,y)=>(t.openBlock(),t.createElementBlock("fieldset",{id:`checkbox-group-${e.id}`,"data-testid":`checkbox-group-${e.id}`,class:"sol-checkbox-group-core","aria-labelledby":`checkbox-group-title-${e.id}`},[t.renderSlot(d.$slots,"title",{id:`checkbox-group-title-${e.id}`},()=>[t.createElementVNode("legend",{id:`checkbox-group-title-${e.id}`,class:t.normalizeClass(["title",{"sr-only":e.hideTitle}]),"data-testid":`checkbox-group-title-${e.id}`},t.toDisplayString(e.title),11,Bi)]),t.createElementVNode("ul",{class:t.normalizeClass(["container-checkboxes",{"flex-col":e.direction==="column"}])},[t.renderSlot(d.$slots,"default",{checkboxes:e.checkboxes,direction:e.direction},()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.checkboxes,(S,x)=>{var L;return t.openBlock(),t.createElementBlock("li",{key:x},[t.createVNode(he,t.mergeProps(d.$attrs,{id:(L=S==null?void 0:S.id)!=null?L:`${S.value}`,class:["checkbox",{"mb-micro":e.direction==="column","mr-micro":e.direction==="row"}],label:S.label,name:S.name,value:S.value,checked:u(S.value),error:!!t.unref(o),"aria-invalid":!!t.unref(o),"aria-describedby":t.unref(s),onChange:E=>m(S)}),null,16,["id","class","label","name","value","checked","error","aria-invalid","aria-describedby","onChange"])])}),128))])],2),t.unref(r)?(t.openBlock(),t.createElementBlock("span",{key:0,id:`checkboxes-describe-${e.id}`,"data-testid":`checkboxes-describe-${e.id}`,class:t.normalizeClass(["message",`-${t.unref(c).type}`])},t.toDisplayString(t.unref(c).text),11,Oi)):t.createCommentVNode("",!0)],8,Ei))}}),_r="";he.install=e=>{e.component("SolCheckbox",he)},Ke.install=e=>{e.component("SolCheckboxGroup",Ke)};var gn;const Te=typeof window<"u",vi=e=>typeof e=="string",Bt=()=>{},bn=Te&&((gn=window==null?void 0:window.navigator)==null?void 0:gn.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Ot(e){return typeof e=="function"?e():t.unref(e)}function Ni(e){return e}function vt(e){return t.getCurrentScope()?(t.onScopeDispose(e),!0):!1}function pn(e){return typeof e=="function"?t.computed(e):t.ref(e)}function Ii(e,n=!0){t.getCurrentInstance()?t.onMounted(e):n?e():t.nextTick(e)}function Ae(e){var n;const l=Ot(e);return(n=l==null?void 0:l.$el)!=null?n:l}const Nt=Te?window:void 0;Te&&window.document,Te&&window.navigator,Te&&window.location;function Pe(...e){let n,l,i,a;if(vi(e[0])?([l,i,a]=e,n=Nt):[n,l,i,a]=e,!n)return Bt;let o=Bt;const r=t.watch(()=>Ae(n),c=>{o(),c&&(c.addEventListener(l,i,a),o=()=>{c.removeEventListener(l,i,a),o=Bt})},{immediate:!0,flush:"post"}),s=()=>{r(),o()};return vt(s),s}function kn(e,n,l={}){const{window:i=Nt,ignore:a,capture:o=!0,detectIframe:r=!1}=l;if(!i)return;const s=t.ref(!0);let c;const u=y=>{i.clearTimeout(c);const S=Ae(e);!S||S===y.target||y.composedPath().includes(S)||!s.value||n(y)},h=y=>a&&a.some(S=>{const x=Ae(S);return x&&(y.target===x||y.composedPath().includes(x))}),m=[Pe(i,"click",u,{passive:!0,capture:o}),Pe(i,"pointerdown",y=>{const S=Ae(e);s.value=!!S&&!y.composedPath().includes(S)&&!h(y)},{passive:!0}),Pe(i,"pointerup",y=>{if(y.button===0){const S=y.composedPath();y.composedPath=()=>S,c=i.setTimeout(()=>u(y),50)}},{passive:!0}),r&&Pe(i,"blur",y=>{var S;const x=Ae(e);((S=document.activeElement)==null?void 0:S.tagName)==="IFRAME"&&!(x!=null&&x.contains(document.activeElement))&&n(y)})].filter(Boolean);return()=>m.forEach(y=>y())}function Ti(e,n=!1){const l=t.ref(),i=()=>l.value=Boolean(e());return i(),Ii(i,n),l}function Ai(e,n={}){const{window:l=Nt}=n,i=Ti(()=>l&&"matchMedia"in l&&typeof l.matchMedia=="function");let a;const o=t.ref(!1),r=()=>{!a||("removeEventListener"in a?a.removeEventListener("change",s):a.removeListener(s))},s=()=>{!i.value||(r(),a=l.matchMedia(pn(e).value),o.value=a.matches,"addEventListener"in a?a.addEventListener("change",s):a.addListener(s))};return t.watchEffect(s),vt(()=>r()),o}const It=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Tt="__vueuse_ssr_handlers__";It[Tt]=It[Tt]||{},It[Tt];var $n;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})($n||($n={}));function Pi(e){const n=e||window.event;return n.touches.length>1?!0:(n.preventDefault&&n.preventDefault(),!1)}function Fi(e,n=!1){const l=t.ref(n);let i=null,a;t.watch(pn(e),s=>{if(s){const c=s;a=c.style.overflow,l.value&&(c.style.overflow="hidden")}},{immediate:!0});const o=()=>{const s=Ot(e);!s||l.value||(bn&&(i=Pe(s,"touchmove",Pi,{passive:!1})),s.style.overflow="hidden",l.value=!0)},r=()=>{const s=Ot(e);!s||!l.value||(bn&&(i==null||i()),s.style.overflow=a,l.value=!1)};return vt(r),t.computed({get(){return l.value},set(s){s?o():r()}})}var qi=Object.defineProperty,wn=Object.getOwnPropertySymbols,zi=Object.prototype.hasOwnProperty,Mi=Object.prototype.propertyIsEnumerable,Sn=(e,n,l)=>n in e?qi(e,n,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[n]=l,Di=(e,n)=>{for(var l in n||(n={}))zi.call(n,l)&&Sn(e,l,n[l]);if(wn)for(var l of wn(n))Mi.call(n,l)&&Sn(e,l,n[l]);return e};Di({linear:Ni},{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]});function ye(e,n){function l({code:i}){var r;const a=i;(()=>{if(!(n!=null&&n.fallback))return!1;const s=c=>Array.isArray(c)?!c.includes(a):a!==c;return n!=null&&n.exclude?!e.hasOwnProperty(a)&&s(n.exclude):!e.hasOwnProperty(a)})()&&(n==null||n.fallback()),e.hasOwnProperty(a)&&((r=e[a])==null||r.call(e))}return{navigate:l}}function Je({target:e,query:n}){const l=t.reactive({id:"",index:-1,rowIndex:-1});function i(d){const y=d!=null?d:l.index,S=e==null?void 0:e.value;m(),d!==void 0&&(l.index=d),setTimeout(()=>{var E;const x=S.children[y],L=n&&x.querySelector(n)?x.querySelector(n):x;l.id=(E=x==null?void 0:x.id)!=null?E:"",L==null||L.focus()},0)}function a(){l.index>0&&(l.index-=1,i())}function o(d){l.index<d-1&&(l.index+=1,i())}function r(){i(0)}function s(d){i(d-1)}function c({query:d,to:y}){var p,$;const S=l.index>=0?l.index:0,L=(e==null?void 0:e.value).children[S],E=Array.isArray(d)?d.flatMap(B=>Array.from(L.querySelectorAll(B))).filter(B=>B):Array.from(L.querySelectorAll(d));if(!E.length)return;const I=l.rowIndex<E.length-1;y==="RIGHT"&&I&&(l.rowIndex+=1,(p=E[l.rowIndex])==null||p.focus()),y==="LEFT"&&(l.rowIndex=l.rowIndex>=0?l.rowIndex-1:-1,l.rowIndex<0?L.focus():($=E[l.rowIndex])==null||$.focus())}function u(d){return d.id?d.id===l.id:d.index===l.index}function h(){l.id="",l.index=-1,l.rowIndex=-1}function m(){l.rowIndex=-1}return{elementFocus:l,isItemFocused:u,resetStateFocus:h,focusListItem:i,focusOnPreviousItem:a,focusOnNextItem:o,focusOnFirstItem:r,focusOnLastItem:s,focusInsideRow:c}}const Li={viewBox:"0 0 24 24",width:"1em",height:"1em"},_i=[t.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 ji(e,n){return t.openBlock(),t.createElementBlock("svg",Li,_i)}const Qi={name:"mi-close",render:ji},Ri=["id","data-testid","tabindex","title","aria-describedby","aria-disabled","onClick"],Hi=["id"],Ui={class:"label"},Fe=t.defineComponent({__name:"RemovableChip",props:{id:null,label:null,disabled:null,variant:{default:"outline"},size:{default:"small"}},emits:["close"],setup(e,{emit:n}){const l=e,{navigate:i}=ye({Enter:a,Space:a,Delete:a,Backspace:a,NumpadEnter:a});function a(){!l.disabled&&n("close")}return(o,r)=>(t.openBlock(),t.createElementBlock("div",{id:`removable-chip-${e.id}`,"data-testid":`removable-chip-${e.id}`,class:t.normalizeClass(["sol-removable-chip",{"-disabled":e.disabled,[`-${e.size}`]:!0,[`-${e.variant}`]:!0}]),tabindex:e.disabled?-1:0,title:e.label,"aria-describedby":`removable-chip-description-${e.id}`,"aria-disabled":e.disabled,onClick:t.withModifiers(a,["stop"]),onKeyup:r[0]||(r[0]=t.withModifiers((...s)=>t.unref(i)&&t.unref(i)(...s),["self"]))},[t.createElementVNode("span",{id:`removable-chip-description-${e.id}`,"z-index":"-1",class:"description"}," Press Delete or Backspace to remove ",8,Hi),t.createElementVNode("span",Ui,[t.renderSlot(o.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.label),1)])]),t.createVNode(t.unref(Qi),{class:"icon","aria-label":"close",role:"img"})],42,Ri))}}),Rr="",Zi={viewBox:"0 0 24 24",width:"1em",height:"1em"},Gi=[t.createElementVNode("path",{fill:"currentColor",d:"m19.6 21l-6.3-6.3q-.75.6-1.725.95Q10.6 16 9.5 16q-2.725 0-4.612-1.887Q3 12.225 3 9.5q0-2.725 1.888-4.613Q6.775 3 9.5 3t4.613 1.887Q16 6.775 16 9.5q0 1.1-.35 2.075q-.35.975-.95 1.725l6.3 6.3ZM9.5 14q1.875 0 3.188-1.312Q14 11.375 14 9.5q0-1.875-1.312-3.188Q11.375 5 9.5 5Q7.625 5 6.312 6.312Q5 7.625 5 9.5q0 1.875 1.312 3.188Q7.625 14 9.5 14Z"},null,-1)];function Wi(e,n){return t.openBlock(),t.createElementBlock("svg",Zi,Gi)}const Ki={name:"material-symbols-search",render:Wi},Ji=["id","data-testid","aria-multiselectable","aria-labelledby"],Yi=["id","data-testid","selected","aria-selected","onClick","onKeyup"],Xi={key:1},ea={key:0,class:"no-data"},ta=t.createElementVNode("p",null,"Sem resultado para essa busca",-1),na=t.defineComponent({__name:"ListOption",props:{id:null,name:null,options:null,multiple:{type:Boolean},isSelected:null},emits:["select"],setup(e,{expose:n,emit:l}){const i=t.ref("");return n({list:i}),(a,o)=>(t.openBlock(),t.createElementBlock("ul",{id:`select-list-${e.id}`,ref_key:"list",ref:i,"data-testid":`select-list-${e.id}`,role:"listbox",tabindex:"-1","aria-multiselectable":e.multiple,"aria-labelledby":`select-label-${e.id}`,class:"select-list-core"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,(r,s)=>(t.openBlock(),t.createElementBlock("li",{id:`option-${e.id}-${r.value}`,key:s,"data-testid":`option-${e.id}-${r.value}`,role:"option",tabindex:"-1",class:"select-option-item",style:t.normalizeStyle(`--item: ${s+1}`),selected:e.isSelected(r),"aria-selected":e.isSelected(r),onClick:c=>l("select",r),onKeyup:[t.withKeys(c=>l("select",r),["enter"]),t.withKeys(c=>l("select",r),["space"])]},[e.multiple?(t.openBlock(),t.createBlock(he,{key:0,id:`option-${e.id}-${r.value}`,class:"pointer-events-none mx-2xs",value:r.value,checked:e.isSelected(r),label:`${r.name}`,name:e.name},null,8,["id","value","checked","label","name"])):(t.openBlock(),t.createElementBlock("span",Xi,t.toDisplayString(r.name),1))],44,Yi))),128)),e.options.length?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("li",ea,[t.renderSlot(a.$slots,"no-data",{},()=>[t.createVNode(t.unref(Ki),{class:"icon"}),ta])]))],8,Ji))}}),Ur="",la={viewBox:"0 0 24 24",width:"1em",height:"1em"},ia=[t.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 aa(e,n){return t.openBlock(),t.createElementBlock("svg",la,ia)}const oa={name:"mi-search",render:aa},ra={viewBox:"0 0 24 24",width:"1em",height:"1em"},sa=[t.createElementVNode("path",{fill:"currentColor",d:"m17 10l-5 6l-5-6h10z"},null,-1)];function ca(e,n){return t.openBlock(),t.createElementBlock("svg",ra,sa)}const da={name:"mi-caret-down",render:ca},ua=["data-testid"],fa=["id","data-testid","data-required"],ma=["id","data-testid","disabled","aria-expanded","aria-labelledby","aria-label","data-count","aria-invalid","aria-describedby","aria-controls","onClick"],ha={key:0,class:"container-tags"},ya=["data-testid"],ga=["id","data-testid"],ba={class:"select-options-container"},pa=t.createElementVNode("hr",{class:"text-neutral-high-medium"},null,-1),qe=t.defineComponent({__name:"Select",props:{id:null,label:null,ariaLabel:null,name:null,dropdownPosition:{default:"bottom"},selected:null,options:{default:()=>[]},required:null,disabled:null,loading:{default:!1},searchable:{default:!1},closeOnSelect:{default:!0},fetchOnSearch:{default:!1},multiple:{default:!1},helperText:null,size:{default:"medium"},placeholder:{default:"Selecione"},searchPlaceholder:{default:"Buscar por"},error:{default:null},useField:null,rules:null,opts:null},emits:["closeDropdown","search","update:selected"],setup(e,{emit:n}){const l=e,i=t.ref(),a=t.ref(!1),o=t.ref(""),r=t.computed(()=>{var g;return l.fetchOnSearch?l.options:(g=l.options)==null?void 0:g.filter(k=>new RegExp(o.value,"gi").test(`${k.name}`))});kn(i,()=>{a.value&&y()});const s=t.computed(()=>{var g;return(g=l.name)!=null?g:""}),{value:c,errorMessage:u}=Ne(s.value,{error:t.computed(()=>l.error),rules:l.rules,opts:l.opts,useFieldParent:l.useField},{propKey:"selected",emit:g=>n("update:selected",g)});function h(){l.disabled||(a.value?y():d())}const m=t.ref(l.dropdownPosition!=="dynamic"?l.dropdownPosition:"bottom");function d(){a.value=!0,l.dropdownPosition==="dynamic"&&X()}function y(){Z(),n("closeDropdown")}function S(g){if(Array.isArray(c.value)){const k=c.value.findIndex(({value:C})=>C===g.value);return k===-1?[...c.value,g]:c.value.filter((C,O)=>O!==k)}return[g]}function x(g){const k=l.multiple?S(g):g;c.value=k,l.closeOnSelect&&!l.multiple&&y()}function L(g){var k;return Array.isArray(c.value)?c.value.some(({value:C})=>C===g.value):g.value===((k=c==null?void 0:c.value)==null?void 0:k.value)}const E=t.ref(),I=t.ref();function p(){var g;l.searchable&&(j(),(g=E.value)==null||g.focus())}const{elementFocus:$,focusOnFirstItem:B,focusOnLastItem:V,focusOnNextItem:T,focusOnPreviousItem:A,resetStateFocus:j}=Je({target:I}),{navigate:M}=ye({Home:B,End:()=>V(l.options.length),ArrowUp:A,ArrowDown:()=>{!a.value&&d(),T(l.options.length)},Escape:y},{fallback:p,exclude:["Enter","NumpadEnter","Space"]});function Z(){a.value=!1,o.value="",j()}function W(g){return k=>g==="search"?E.value=k==null?void 0:k.input:I.value=k==null?void 0:k.list}function K(){var k;const g=c.value;return(k=g==null?void 0:g.name)!=null?k:l.placeholder}const ee=t.computed(()=>!!(u!=null&&u.value)||!!l.helperText),ie=t.computed(()=>ee.value?`input-text-describe-${l.id}`:void 0),G=t.computed(()=>{var g;return(g=u==null?void 0:u.value)!=null&&g.length?{text:u==null?void 0:u.value,type:"error"}:{text:l.helperText,type:"helper"}});function X(){if(i.value){const g=i.value.getBoundingClientRect(),k=window.outerHeight-g.bottom>300?"bottom":"top";m.value=k}}return(g,k)=>{var C;return t.openBlock(),t.createElementBlock("div",{ref_key:"el",ref:i,class:t.normalizeClass(["sol-select-core",[`-${e.size} -${m.value}`,{"-selected-multiple":e.multiple&&Array.isArray(t.unref(c))&&((C=t.unref(c))==null?void 0:C.length)}]]),"data-testid":`select-${e.id}`,onKeydownPassive:k[3]||(k[3]=(...O)=>t.unref(M)&&t.unref(M)(...O))},[t.renderSlot(g.$slots,"label",{id:`select-label-${e.id}`,for:`select-toggle-${e.id}`},()=>[e.label?(t.openBlock(),t.createElementBlock("label",{key:0,id:`select-label-${e.id}`,"data-testid":`select-label-${e.id}`,"data-required":e.required,class:t.normalizeClass(["label",{"-disabled":e.disabled}])},t.toDisplayString(e.label),11,fa)):t.createCommentVNode("",!0)]),t.createElementVNode("button",{id:`select-toggle-${e.id}`,"data-testid":`select-toggle-${e.id}`,type:"button",disabled:e.disabled,class:"select-button-toggle","aria-haspopup":"listbox","aria-expanded":a.value,"aria-labelledby":`select-label-${e.id}`,"aria-label":e.ariaLabel,"data-count":Array.isArray(t.unref(c))&&t.unref(c).length,"aria-invalid":!!t.unref(u),"aria-describedby":t.unref(ie),"aria-controls":`select-list-${e.id}`,onClick:t.withModifiers(h,["stop"])},[t.renderSlot(g.$slots,"toggle-dropdown",{toggle:{open:d,close:y,toggleDropdown:h},isOpen:a.value,select:x,selected:e.selected},()=>{var O;return[e.multiple&&Array.isArray(t.unref(c))&&((O=t.unref(c))==null?void 0:O.length)?(t.openBlock(),t.createElementBlock("div",ha,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(c),(v,z)=>(t.openBlock(),t.createBlock(Fe,{id:`select-value-selected-${e.id}-${v.value}`,key:z,variant:"fill",size:"small",label:String(v.name),onClick:t.withModifiers(D=>x(v),["stop"]),onClose:D=>x(v)},null,8,["id","label","onClick","onClose"]))),128))])):(t.openBlock(),t.createElementBlock("span",{key:1,"data-testid":`select-value-selected-${e.id}`,class:"min-w-3xs text-left",tabindex:"-1"},t.toDisplayString(K()),9,ya)),t.createVNode(t.unref(da),{"aria-hidden":"true",tabindex:"-1",class:t.normalizeClass(["icon",{"-open":a.value}])},null,8,["class"])]})],8,ma),t.unref(ee)?t.withDirectives((t.openBlock(),t.createElementBlock("span",{key:0,id:`select-describe-${e.id}`,"data-testid":`select-describe-${e.id}`,class:t.normalizeClass(["message",`-${t.unref(G).type}`])},t.toDisplayString(t.unref(G).text),11,ga)),[[t.vShow,!a.value]]):t.createCommentVNode("",!0),t.createVNode(t.Transition,{mode:"out-in",name:"dropdown"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",ba,[t.renderSlot(g.$slots,"search",{},()=>[e.searchable?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["search-container",{"-loading":e.loading}])},[t.createVNode(Qt,{id:`select-search-${e.id}`,ref:W("search"),modelValue:o.value,"onUpdate:modelValue":k[0]||(k[0]=O=>o.value=O),role:"combobox",class:"search",size:"small","aria-autocomplete":"list",placeholder:e.searchPlaceholder,"aria-expanded":a.value,"aria-haspopup":"listbox","aria-owns":`select-list-${e.id}`,"aria-controls":`select-list-${e.id}`,"aria-activedescendant":t.unref($).id,"aria-labelledby":`select-label-${e.id}`,onClick:k[1]||(k[1]=t.withModifiers(()=>{},["stop"])),onInput:k[2]||(k[2]=O=>{var v;return n("search",(v=O.target)==null?void 0:v.value)})},null,8,["id","modelValue","placeholder","aria-expanded","aria-owns","aria-controls","aria-activedescendant","aria-labelledby"]),t.createVNode(t.unref(oa),{"aria-hidden":"true",class:"icon"})],2)):t.createCommentVNode("",!0),pa,t.createVNode(na,{id:e.id,ref:W("list"),options:t.unref(r),name:t.unref(s),multiple:e.multiple,"is-selected":L,onSelect:x},{"no-data":t.withCtx(()=>[t.renderSlot(g.$slots,"no-data")]),_:3},8,["id","options","name","multiple"])])],512),[[t.vShow,a.value]])]),_:3})],42,ua)}}}),Wr="";qe.install=e=>{e.component("SolSelect",qe)};const ka=["id","data-testid","aria-disabled","tabindex","title","aria-checked","aria-describedby","onClick"],$a=["id"],wa={class:"label"},Ye=t.defineComponent({__name:"SelectableChip",props:{id:null,label:null,selected:null,value:null,disabled:null,size:{default:"small"}},emits:["update:selected","change"],setup(e,{emit:n}){const l=e,i={chip:`selectable-chip-${l.id}`,describe:`selectable-chip-description-${l.id}`},{navigate:a}=ye({Enter:o,Space:o,NumpadEnter:o});function o(){l.disabled||(n("change",l.value),n("update:selected",!l.selected))}return(r,s)=>(t.openBlock(),t.createElementBlock("div",{id:i.chip,"data-testid":i.chip,class:t.normalizeClass(["sol-selectable-chip",[`-${e.size}`,{"-disabled":e.disabled,"-selected":e.selected}]]),"aria-disabled":e.disabled,tabindex:e.disabled?-1:0,title:e.label,role:"checkbox","aria-checked":e.selected,"aria-describedby":i.describe,onClick:t.withModifiers(o,["stop"]),onKeyupPassive:s[0]||(s[0]=t.withModifiers((...c)=>t.unref(a)&&t.unref(a)(...c),["self"]))},[e.selected?(t.openBlock(),t.createBlock(t.unref(yn),{key:0,class:"icon","aria-label":"selected",role:"img"})):t.createCommentVNode("",!0),t.createElementVNode("span",{id:i.describe,"z-index":"-1",class:"description"}," Press Enter or Space to "+t.toDisplayString(e.selected?"unselect":"select"),9,$a),t.createElementVNode("span",wa,[t.renderSlot(r.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.label),1)])])],42,ka))}}),Kr="";Ye.install=e=>{e.component("SolSelectableChip",Ye)},Fe.install=e=>{e.component("SolRemovableChip",Fe)};const Sa=["id","data-testid","title"],Xe=t.defineComponent({__name:"Tag",props:{id:null,text:{default:"default"},variant:{default:"fill"},size:{default:"small"},type:{default:"neutral"}},setup(e){return(n,l)=>(t.openBlock(),t.createElementBlock("div",{id:`tag-${e.id}`,"data-testid":`tag-${e.id}`,class:t.normalizeClass(["sol-tag-core",`-${e.size} -${e.variant} -${e.type}`]),title:e.text},[t.renderSlot(n.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.text),1)])],10,Sa))}}),Jr="";Xe.install=e=>{e.component("SolTag",Xe)};const Ca={viewBox:"0 0 24 24",width:"1em",height:"1em"},Va=[t.createElementVNode("path",{fill:"currentColor",d:"m10.6 16.6l7.05-7.05l-1.4-1.4l-5.65 5.65l-2.85-2.85l-1.4 1.4ZM12 22q-2.075 0-3.9-.788q-1.825-.787-3.175-2.137q-1.35-1.35-2.137-3.175Q2 14.075 2 12t.788-3.9q.787-1.825 2.137-3.175q1.35-1.35 3.175-2.138Q9.925 2 12 2t3.9.787q1.825.788 3.175 2.138q1.35 1.35 2.137 3.175Q22 9.925 22 12t-.788 3.9q-.787 1.825-2.137 3.175q-1.35 1.35-3.175 2.137Q14.075 22 12 22Zm0-2q3.35 0 5.675-2.325Q20 15.35 20 12q0-3.35-2.325-5.675Q15.35 4 12 4Q8.65 4 6.325 6.325Q4 8.65 4 12q0 3.35 2.325 5.675Q8.65 20 12 20Zm0-8Z"},null,-1)];function xa(e,n){return t.openBlock(),t.createElementBlock("svg",Ca,Va)}const Ea={name:"material-symbols-check-circle-outline",render:xa},Ba={viewBox:"0 0 24 24",width:"1em",height:"1em"},Oa=[t.createElementVNode("path",{fill:"currentColor",d:"M1 21L12 2l11 19Zm3.45-2h15.1L12 6ZM12 18q.425 0 .713-.288Q13 17.425 13 17t-.287-.712Q12.425 16 12 16t-.712.288Q11 16.575 11 17t.288.712Q11.575 18 12 18Zm-1-3h2v-5h-2Zm1-2.5Z"},null,-1)];function va(e,n){return t.openBlock(),t.createElementBlock("svg",Ba,Oa)}const Na={name:"material-symbols-warning-outline",render:va},Ia={viewBox:"0 0 24 24",width:"1em",height:"1em"},Ta=[t.createElementVNode("path",{fill:"currentColor",d:"m8.4 17l3.6-3.6l3.6 3.6l1.4-1.4l-3.6-3.6L17 8.4L15.6 7L12 10.6L8.4 7L7 8.4l3.6 3.6L7 15.6Zm3.6 5q-2.075 0-3.9-.788q-1.825-.787-3.175-2.137q-1.35-1.35-2.137-3.175Q2 14.075 2 12t.788-3.9q.787-1.825 2.137-3.175q1.35-1.35 3.175-2.138Q9.925 2 12 2t3.9.787q1.825.788 3.175 2.138q1.35 1.35 2.137 3.175Q22 9.925 22 12t-.788 3.9q-.787 1.825-2.137 3.175q-1.35 1.35-3.175 2.137Q14.075 22 12 22Zm0-2q3.35 0 5.675-2.325Q20 15.35 20 12q0-3.35-2.325-5.675Q15.35 4 12 4Q8.65 4 6.325 6.325Q4 8.65 4 12q0 3.35 2.325 5.675Q8.65 20 12 20Zm0-8Z"},null,-1)];function Aa(e,n){return t.openBlock(),t.createElementBlock("svg",Ia,Ta)}const Pa={name:"material-symbols-cancel-outline",render:Aa},Fa={viewBox:"0 0 24 24",width:"1em",height:"1em"},qa=[t.createElementVNode("path",{fill:"currentColor",d:"M11 17h2v-6h-2Zm1-8q.425 0 .713-.288Q13 8.425 13 8t-.287-.713Q12.425 7 12 7t-.712.287Q11 7.575 11 8t.288.712Q11.575 9 12 9Zm0 13q-2.075 0-3.9-.788q-1.825-.787-3.175-2.137q-1.35-1.35-2.137-3.175Q2 14.075 2 12t.788-3.9q.787-1.825 2.137-3.175q1.35-1.35 3.175-2.138Q9.925 2 12 2t3.9.787q1.825.788 3.175 2.138q1.35 1.35 2.137 3.175Q22 9.925 22 12t-.788 3.9q-.787 1.825-2.137 3.175q-1.35 1.35-3.175 2.137Q14.075 22 12 22Zm0-2q3.35 0 5.675-2.325Q20 15.35 20 12q0-3.35-2.325-5.675Q15.35 4 12 4Q8.65 4 6.325 6.325Q4 8.65 4 12q0 3.35 2.325 5.675Q8.65 20 12 20Zm0-8Z"},null,-1)];function za(e,n){return t.openBlock(),t.createElementBlock("svg",Fa,qa)}const Ma={name:"material-symbols-info-outline",render:za},Da=["id","data-testid"],La={class:"container-content"},_a={class:"content"},ja={key:0,class:"title"},et=t.defineComponent({__name:"Alert",props:{id:null,title:{default:"title"},text:{default:"text"},feedback:{default:"success"},action:null},emits:["click"],setup(e,{emit:n}){return(l,i)=>(t.openBlock(),t.createElementBlock("div",{id:`alert-${e.id}`,"data-testid":`alert-${e.id}`,class:t.normalizeClass(["sol-alert-core",`-${e.feedback}`]),"aria-live":"assertive",role:"alert"},[t.createElementVNode("div",La,[e.feedback==="success"?(t.openBlock(),t.createBlock(t.unref(Ea),{key:0,class:"icon","aria-hidden":"true"})):t.createCommentVNode("",!0),e.feedback==="warning"?(t.openBlock(),t.createBlock(t.unref(Na),{key:1,class:"icon","aria-hidden":"true"})):t.createCommentVNode("",!0),e.feedback==="error"?(t.openBlock(),t.createBlock(t.unref(Pa),{key:2,class:"icon","aria-hidden":"true"})):t.createCommentVNode("",!0),e.feedback==="informative"?(t.openBlock(),t.createBlock(t.unref(Ma),{key:3,class:"icon","aria-hidden":"true"})):t.createCommentVNode("",!0),t.createElementVNode("div",_a,[e.title?(t.openBlock(),t.createElementBlock("strong",ja,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.renderSlot(l.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.text),1)])])]),e.action?(t.openBlock(),t.createBlock(te,{key:0,id:`alert-action-${e.id}`,variant:"secondary",size:"small",onClick:i[0]||(i[0]=a=>n("click"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.action),1)]),_:1},8,["id"])):t.createCommentVNode("",!0)],10,Da))}}),ns="";et.install=e=>{e.component("SolAlert",et)};const Qa={viewBox:"0 0 24 24",width:"1em",height:"1em"},Ra=[t.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 Ha(e,n){return t.openBlock(),t.createElementBlock("svg",Qa,Ra)}const Cn={name:"material-symbols-keyboard-arrow-down-rounded",render:Ha},Ua=["id","data-testid","aria-disabled"],Za=["data-testid","tabindex"],Ga={class:"container-title"},Wa={class:"icon"},Ka=["data-testid"],tt=t.defineComponent({__name:"Accordion",props:{id:null,title:{default:"Title"},onColor:{type:Boolean},disabled:{type:Boolean}},setup(e){return(n,l)=>(t.openBlock(),t.createElementBlock("details",{id:`accordion-${e.id}`,"data-testid":`accordion-${e.id}`,class:t.normalizeClass(["sol-accordion-core",{"-on-color":e.onColor,"-disabled":e.disabled}]),"aria-disabled":e.disabled},[t.createElementVNode("summary",{"data-testid":`accordion-title-${e.id}`,class:"summary",tabindex:e.disabled?-1:0},[t.createElementVNode("div",Ga,[t.createElementVNode("span",Wa,[t.renderSlot(n.$slots,"icon")]),t.renderSlot(n.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(e.title),1)])]),t.createVNode(t.unref(Cn),{class:"icon","aria-hidden":"true"})],8,Za),t.createElementVNode("div",{"data-testid":`accordion-content-${e.id}`,class:"accordion-content"},[t.renderSlot(n.$slots,"default")],8,Ka)],10,Ua))}}),is="";tt.install=e=>{e.component("SolAccordion",tt)};const Ja=["id","data-testid"],Ya=["id","aria-expanded"],Xa=["id","data-testid","aria-labelledby"],Ce=t.defineComponent({__name:"Menu",props:{id:null,label:{default:"Teste"},position:{default:"bottom"}},setup(e){const n=t.ref();kn(n,()=>{m()});const l=t.ref(!1),i=t.ref(),a=t.computed(()=>i.value?i.value.childElementCount:0),{resetStateFocus:o,focusOnPreviousItem:r,focusOnNextItem:s,focusOnFirstItem:c,focusOnLastItem:u}=Je({target:i,query:'[role="menuitem"]'}),{navigate:h}=ye({Home:c,End:()=>u(a.value),ArrowUp:r,ArrowDown:()=>{!l.value&&d(),s(a.value)},Escape:m});function m(){l.value=!1,o()}function d(){l.value=!0}function y(){l.value?m():d()}return(S,x)=>(t.openBlock(),t.createElementBlock("div",{id:`menu-${e.id}`,ref_key:"el",ref:n,"data-testid":`menu-${e.id}`,class:t.normalizeClass([`-${e.position}`,"sol-menu-core"]),onKeyupPassive:x[0]||(x[0]=(...L)=>t.unref(h)&&t.unref(h)(...L))},[t.renderSlot(S.$slots,"trigger",{id:`menu-button-${e.id}`,toggle:y,isOpen:l.value,arias:{role:"menuitem",class:"toggle-menu",ariaHaspopup:!0,ariaExpanded:l.value}},()=>[t.createElementVNode("button",{id:`menu-button-${e.id}`,type:"button",role:"menuitem",class:"toggle-menu","aria-haspopup":"true","aria-expanded":l.value,onClick:y},[t.renderSlot(S.$slots,"label",{isOpen:l.value},()=>[t.createTextVNode(t.toDisplayString(e.label),1)])],8,Ya)]),t.withDirectives(t.createElementVNode("menu",{id:`menu-container-${e.id}`,ref_key:"menu",ref:i,"data-testid":`menu-container-${e.id}`,role:"menu","aria-labelledby":`menu-button-${e.id}`,class:t.normalizeClass(["menu",{"-open":l.value}])},[t.renderSlot(S.$slots,"default",{close:m})],10,Xa),[[t.vShow,l.value]])],42,Ja))}}),as="",eo=["itemprop"],to=t.defineComponent({__name:"TextValue",props:{itemProp:null,property:null,value:null,isHighlightValue:{type:Boolean},align:{default:"left"},hide:{type:Boolean}},setup(e){return(n,l)=>(t.openBlock(),t.createElementBlock("p",{class:t.normalizeClass(["text-property-value",`-${e.align}`])},[t.createElementVNode("span",{class:t.normalizeClass(["property",{"-hide":e.hide}])},[t.renderSlot(n.$slots,"property",{},()=>[t.createTextVNode(t.toDisplayString(e.property),1)])],2),t.createElementVNode("span",{itemprop:e.itemProp,class:t.normalizeClass(["value",{"-highlight":e.isHighlightValue}])},[t.renderSlot(n.$slots,"value",{},()=>[t.createTextVNode(t.toDisplayString(e.value),1)])],10,eo)],2))}}),os="",no=["id","data-testid"],lo={key:0,"data-interactive":"",class:"selectable"},io={key:1,class:"column-item -image"},ao=["data-testid"],oo={key:2,class:"menu-action","data-interactive":""},ro=t.defineComponent({__name:"ListItem",props:{id:null,itemIndex:null,headers:null,data:null,hasMenu:null,hasImage:null,renderHeader:null,isHighlight:null,isSelected:null,fallbackValue:null,setFixedColumnSize:null,sortPositions:null},setup(e){const n=e,l=t.useSlots(),i=t.computed(()=>!!(l!=null&&l.selectable));function a(c){return c!=null?c:n.fallbackValue}function o(c){return i.value&&c===0}function r(c){return n.hasImage&&c===0}function s(c,u){return n.hasMenu&&c===0&&u===0}return(c,u)=>(t.openBlock(),t.createElementBlock("li",{id:`listitem-${e.id}-${e.itemIndex}`,"data-testid":`listitem-${e.id}-${e.itemIndex}`,class:t.normalizeClass(["list-item",{"-selected":e.isSelected}]),tabindex:"-1"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.sortPositions,(h,m)=>(t.openBlock(),t.createElementBlock("div",{key:m,class:"list-item-row"},[o(m)?(t.openBlock(),t.createElementBlock("div",lo,[t.renderSlot(c.$slots,"selectable",{data:e.data,index:e.itemIndex,label:`${e.data[h[0]]}`})])):t.createCommentVNode("",!0),r(m)?(t.openBlock(),t.createElementBlock("div",io,[t.renderSlot(c.$slots,"image",{data:e.data})])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(h,(d,y)=>(t.openBlock(),t.createElementBlock("div",{key:y,style:t.normalizeStyle(`${e.setFixedColumnSize(d)}`),class:"column-item","data-testid":`listitem-column-${e.id}-${e.itemIndex}-${d}`},[t.renderSlot(c.$slots,`column:${d}`,{data:{key:d,value:e.data[d]},index:e.itemIndex,columnIndex:y,renderHeader:e.renderHeader,headers:e.headers},()=>{var S,x,L,E;return[t.createVNode(to,{"data-testid":`listitem-${e.id}-${e.itemIndex}-${d}`,"item-prop":d,hide:(x=(S=e.headers)==null?void 0:S[d])==null?void 0:x.hide,align:(E=(L=e.headers)==null?void 0:L[d])==null?void 0:E.align,"is-highlight-value":e.isHighlight({key:d})},{property:t.withCtx(()=>[t.renderSlot(c.$slots,`header:${d}`,{data:{key:d,value:e.data[d]},index:m,columnIndex:y,renderHeader:e.renderHeader,headers:e.headers},()=>[t.createTextVNode(t.toDisplayString(e.renderHeader(d)),1)])]),value:t.withCtx(()=>[t.renderSlot(c.$slots,`value:${d}`,{data:{key:d,value:e.data[d]},index:m,columnIndex:y,isHighlight:e.isHighlight},()=>[t.createTextVNode(t.toDisplayString(a(e.data[d])),1)])]),_:2},1032,["data-testid","item-prop","hide","align","is-highlight-value"])]})],12,ao))),128)),s(m,0)?(t.openBlock(),t.createElementBlock("div",oo,[t.renderSlot(c.$slots,"action-button",{arias:{testid:`list-row-action-${e.id}-${e.itemIndex}`,data:e.data,index:e.itemIndex,ariaLabel:"Open menu"}})])):t.createCommentVNode("",!0)]))),128))],10,no))}}),rs="",so={viewBox:"0 0 24 24",width:"1em",height:"1em"},co=[t.createElementVNode("path",{fill:"currentColor",d:"M12 20q-.825 0-1.412-.587Q10 18.825 10 18q0-.825.588-1.413Q11.175 16 12 16t1.413.587Q14 17.175 14 18q0 .825-.587 1.413Q12.825 20 12 20Zm0-6q-.825 0-1.412-.588Q10 12.825 10 12t.588-1.413Q11.175 10 12 10t1.413.587Q14 11.175 14 12q0 .825-.587 1.412Q12.825 14 12 14Zm0-6q-.825 0-1.412-.588Q10 6.825 10 6t.588-1.412Q11.175 4 12 4t1.413.588Q14 5.175 14 6t-.587 1.412Q12.825 8 12 8Z"},null,-1)];function uo(e,n){return t.openBlock(),t.createElementBlock("svg",so,co)}const fo={name:"material-symbols-more-vert",render:uo},mo=["id","data-testid","aria-label"],nt=t.defineComponent({__name:"List",props:{id:null,data:null,headers:null,selected:null,ariaLabel:{default:"List of data"},selectMode:null,dataIdentifier:{default:()=>({key:"id"})},sortPositions:null,fallbackValue:{default:"-"}},emits:["listitem:click","listitem:selected","update:selected"],setup(e,{expose:n,emit:l}){var X;const i=e,a=t.useSlots(),o=t.computed(()=>!!(a!=null&&a.menu)),r=t.computed(()=>!!(a!=null&&a.image)),s=Ai("(min-width: 1024px)"),c=t.computed(()=>{var g,k,C;return(k=(g=i.sortPositions)==null?void 0:g.mobile)!=null&&k.length?(C=i.sortPositions)==null?void 0:C.mobile:m()}),u=t.computed(()=>{var g;return(g=i.sortPositions)!=null&&g.desktop.length?i.sortPositions.desktop:Object.keys(i.data[0])}),h=t.computed(()=>s.value?[u.value]:c.value);function m(){return Object.keys(i.data[0]).reduce((k,C,O)=>{if(O===0)return k=[[C]];if(O===1)return k=[...k,[C]];const v=k==null?void 0:k.length,z=k==null?void 0:k[v-1];return Array.isArray(z)&&(z==null?void 0:z.length)<2?(k[v-1]=[...z,C],k):k=[...k,[C]]},[])}function d(g){var k,C;return(C=i.headers&&((k=i.headers[g])==null?void 0:k.text))!=null?C:g}function y(g){var k,C,O,v,z,D,oe,w,_;if((k=i.headers)!=null&&k[g]){if(((O=(C=i.headers)==null?void 0:C[g])==null?void 0:O.width)&&s.value)return`--basis-width: ${(z=(v=i.headers)==null?void 0:v[g])==null?void 0:z.width}; --shrink: 0;`;if(((oe=(D=i.headers)==null?void 0:D[g])==null?void 0:oe.mobileWidth)&&!s.value)return`--basis-width: ${(_=(w=i.headers)==null?void 0:w[g])==null?void 0:_.mobileWidth}; --shrink: 0;`}}function S({key:g,value:k}){var C,O;return k?!0:g?!!((O=(C=i.headers)==null?void 0:C[g])!=null&&O.highlight):!1}const x=t.ref(),L=["[data-interactive] input","[data-interactive-element]","[data-interactive] button"],{elementFocus:E,focusInsideRow:I,focusOnFirstItem:p,focusOnLastItem:$,focusOnNextItem:B,focusOnPreviousItem:V,resetStateFocus:T}=Je({target:x}),{navigate:A}=ye({Home:p,End:()=>$(i.data.length),ArrowUp:()=>!j()&&V(),ArrowDown:()=>!j()&&B(i.data.length),ArrowLeft:()=>E.id&&I({to:"LEFT",query:L}),ArrowRight:()=>E.id&&I({to:"RIGHT",query:L})},{fallback:T,exclude:["Enter","NumpadEnter","Space"]});function j(){var g,k;if(document.activeElement&&((g=document.activeElement)==null?void 0:g.role)){const C=document.activeElement.role,O=(k=document.activeElement)==null?void 0:k.parentElement;return C==="menuitem"?!0:!!(()=>C==="none"&&(O==null?void 0:O.role)&&["menuitem","menu"].includes(O.role))()}return!1}const M=t.ref((X=i==null?void 0:i.selected)!=null?X:{});function Z(g){if(M.value){const k=i.dataIdentifier.key,C=g[k];return i.selectMode&&i.selectMode==="checkbox"&&Array.isArray(M.value)?M.value.findIndex(v=>v[k]===C)>=0:M.value[k]===C}return!1}function W(g){M.value=g,l("listitem:selected",g),l("update:selected",M.value)}function K(g){const k=i.dataIdentifier.key,C=g[k],O=Array.isArray(M.value)?M.value:[],v=Z(g)?O==null?void 0:O.filter(z=>z[k]!==C):ee(g);M.value=v,l("listitem:selected",g),l("update:selected",M.value)}function ee(g){var k;if(Array.isArray(M.value)){const C=i.dataIdentifier.key,O=M.value.findIndex(v=>v[C]===g[C]);return O===-1?[...M.value,g]:(k=M.value)==null?void 0:k.filter((v,z)=>z!==O)}return[g]}function ie(){const g=Object.keys(i.data[0]).includes(i.dataIdentifier.key);if(i.selectMode==="checkbox"&&g){M.value=i.data,l("update:selected",M.value);return}console.warn('The Prop `dataIdentifier.key` must be a valid key; and The Prop `selectMode` must be "checkbox"'),console.warn(`Your Prop [dataIdentifier.key] is ${i.dataIdentifier.key} and [selectMode] is ${i.selectMode}`)}function G(){M.value=i.selectMode==="checkbox"&&Array.isArray(M.value)?[]:{},l("update:selected",M.value)}return n({unselectAll:G,selectAll:ie}),(g,k)=>(t.openBlock(),t.createElementBlock("ul",{id:`list-${e.id}`,ref_key:"list",ref:x,"data-testid":`list-${e.id}`,class:"sol-list-core","aria-label":e.ariaLabel,tabindex:"0",itemscope:"",onKeyupPassive:k[0]||(k[0]=(...C)=>t.unref(A)&&t.unref(A)(...C))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.data,(C,O)=>(t.openBlock(),t.createBlock(ro,{id:e.id,key:O,headers:e.headers,data:C,"item-index":O,"is-selected":Z(C),"sort-positions":t.unref(h),"fallback-value":e.fallbackValue,"has-image":t.unref(r),"has-menu":t.unref(o),"render-header":d,"is-highlight":S,"set-fixed-column-size":y,onClick:t.withModifiers(v=>l("listitem:click",{...C,index:O}),["self"]),onKeyup:[t.withKeys(t.withModifiers(v=>l("listitem:click",{...C,index:O}),["self"]),["enter"]),t.withKeys(t.withModifiers(v=>l("listitem:click",{...C,index:O}),["self"]),["space"])]},t.createSlots({selectable:t.withCtx(({data:v,label:z})=>{var D,oe,w,_,J,ge;return[e.selectMode==="checkbox"?(t.openBlock(),t.createBlock(he,{key:0,id:`listitem-${v[(D=e.dataIdentifier)==null?void 0:D.key]}`,"hide-label":!0,label:z,checked:Z(C),value:v[(oe=e.dataIdentifier)==null?void 0:oe.key],name:(w=e.dataIdentifier.inputName)!=null?w:e.id,onChange:ue=>K(v)},null,8,["id","label","checked","value","name","onChange"])):t.createCommentVNode("",!0),e.selectMode==="radio"?(t.openBlock(),t.createBlock(Se,{key:1,id:`listitem-${v[(_=e.dataIdentifier)==null?void 0:_.key]}`,"hide-label":!0,label:z,checked:Z(C),value:v[(J=e.dataIdentifier)==null?void 0:J.key],name:(ge=e.dataIdentifier.inputName)!=null?ge:e.id,onChange:ue=>W(v)},null,8,["id","label","checked","value","name","onChange"])):t.createCommentVNode("",!0)]}),"action-button":t.withCtx(({arias:v})=>[t.renderSlot(g.$slots,"action-button",{arias:v},()=>[t.createVNode(Ce,{id:`listitem-${e.id}-${O}`,position:"left"},{trigger:t.withCtx(({arias:z,id:D,toggle:oe})=>[t.createVNode(te,{id:D,"aria-haspopup":z.ariaHaspopup,"aria-expanded":z.ariaExpanded,role:z.role,size:"small",variant:"tertiary","aria-label":v.ariaLabel,class:"menu-button-trigger",onClick:oe},{"icon-left":t.withCtx(()=>[t.createVNode(t.unref(fo),{class:"text-2xs","aria-hidden":"true"})]),_:2},1032,["id","aria-haspopup","aria-expanded","role","aria-label","onClick"])]),default:t.withCtx(()=>[t.renderSlot(g.$slots,"menu")]),_:2},1032,["id"])])]),_:2},[t.unref(r)?{name:"image",fn:t.withCtx(({data:v})=>[t.renderSlot(g.$slots,"image",{data:v})]),key:"0"}:void 0,t.renderList(C,(v,z)=>({name:`column:${z}`,fn:t.withCtx(D=>[t.renderSlot(g.$slots,`column:${z}`,{data:D.data,index:D.index,columnIndex:O,renderHeader:d,headers:e.headers})])})),t.renderList(C,(v,z)=>({name:`header:${z}`,fn:t.withCtx(D=>[t.renderSlot(g.$slots,`header:${z}`,{data:D.data,index:D.index,columnIndex:D.columnIndex,renderHeader:D.renderHeader,headers:D.headers})])})),t.renderList(C,(v,z)=>({name:`value:${z}`,fn:t.withCtx(D=>[t.renderSlot(g.$slots,`value:${z}`,{data:D.data,index:D.index,columnIndex:D.columnIndex,isHighlight:D.isHighlight})])}))]),1032,["id","headers","data","item-index","is-selected","sort-positions","fallback-value","has-image","has-menu","onClick","onKeyup"]))),128))],40,mo))}}),cs="";nt.install=e=>{e.component("SolList",nt)},Ce.install=e=>{e.component("SolMenu",Ce)};const ho=["id"],yo=["href","target"],ze=t.defineComponent({__name:"MenuItemLink",props:{id:null,linkId:null,text:null,link:null,active:null,external:null},emits:["clicked"],setup(e,{emit:n}){return(l,i)=>{var a;return t.openBlock(),t.createElementBlock("li",{id:`menu-item-link-${e.id}`,class:"sol-menuitem-link-core",tabindex:"-1",role:"none",onClick:i[0]||(i[0]=o=>n("clicked")),onKeyup:[i[1]||(i[1]=t.withKeys(o=>n("clicked"),["enter"])),i[2]||(i[2]=t.withKeys(o=>n("clicked"),["space"]))]},[t.renderSlot(l.$slots,"default",{id:(a=e.linkId)!=null?a:e.id,active:e.active,link:e.link,text:e.text,external:e.external},()=>[t.createElementVNode("a",{role:"menuitem",class:t.normalizeClass({"-active":e.active}),href:e.link,target:e.external?"_blank":"_parent"},t.toDisplayString(e.text),11,yo)])],40,ho)}}}),ds="";ze.install=e=>{e.component("SolMenuItemLink",ze)};const go={class:"label-container"},bo={class:"label"},lt=t.defineComponent({__name:"MenuNavigationLinks",props:{id:null,label:null,linkItems:null},setup(e){return(n,l)=>(t.openBlock(),t.createBlock(Ce,{id:`navigation-${e.id}`,class:"sol-menu-navigation-links-core"},{label:t.withCtx(({isOpen:i})=>[t.renderSlot(n.$slots,"label",{isOpen:i},()=>[t.createElementVNode("div",go,[t.createElementVNode("span",bo,t.toDisplayString(e.label),1),t.createVNode(t.unref(Cn),{class:t.normalizeClass(["icon",{"-opened":i}]),"aria-hidden":"true"},null,8,["class"])])])]),default:t.withCtx(({close:i})=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.linkItems,(a,o)=>{var r;return t.openBlock(),t.createBlock(ze,{id:`${e.id}-${(r=a==null?void 0:a.id)!=null?r:a.text}`,key:o,"link-id":a.id,text:a.text,link:a.link,external:a.external,active:a.active,onClicked:i},{default:t.withCtx(()=>{var s;return[t.renderSlot(n.$slots,"default",{id:(s=a.id)!=null?s:e.id,active:a.active,link:a.link,text:a.text,external:a.external})]}),_:2},1032,["id","link-id","text","link","external","active","onClicked"])}),128))]),_:3},8,["id"]))}}),us="";lt.install=e=>{e.component("SolMenuNavigationLinks",lt)};const fs="",po=(e,n)=>{const l=e.__vccOpts||e;for(const[i,a]of n)l[i]=a;return l},ko={},$o={class:"sol-overlay-core"};function wo(e,n){return t.openBlock(),t.createElementBlock("div",$o,[t.renderSlot(e.$slots,"default")])}const So=po(ko,[["render",wo]]),Co={viewBox:"0 0 24 24",width:"1em",height:"1em"},Vo=[t.createElementVNode("path",{fill:"currentColor",d:"M6.4 19L5 17.6l5.6-5.6L5 6.4L6.4 5l5.6 5.6L17.6 5L19 6.4L13.4 12l5.6 5.6l-1.4 1.4l-5.6-5.6Z"},null,-1)];function xo(e,n){return t.openBlock(),t.createElementBlock("svg",Co,Vo)}const Eo={name:"material-symbols-close",render:xo},Bo=["id","data-testid","aria-labelledby"],Oo=["id","data-testid"],vo=["id","data-testid"],No={class:"content"},Io={class:"footer"},To={class:"main-action"},it=t.defineComponent({__name:"Modal",props:{id:null,size:{default:()=>({desktop:"medium",mobile:"full"})},title:{default:"Modal title"},isOpen:null,target:{default:"body"},actionPrimaryText:null,actionSecondaryText:null,actionTertiaryText:null},emits:["close","open","update:isOpen","action:primary","action:secondary","action:tertiary"],setup(e,{expose:n,emit:l}){const i=e,a={modal:`modal-${i.id}`,header:`modal-header-${i.id}`,headerTitle:`modal-header-title-${i.id}`,headerClose:`modal-header-close-${i.id}`,actionPrimary:`modal-action-primary-${i.id}`,actionSecondary:`modal-action-secondary-${i.id}`,actionTertiary:`modal-action-tertiary-${i.id}`},o={modal:`modal-${i.id}`,header:`modal-header-${i.id}`,headerTitle:`modal-header-title-${i.id}`,headerClose:`modal-header-close-${i.id}`,actionPrimary:`button-modal-action-primary-${i.id}`,actionSecondary:`button-modal-action-secondary-${i.id}`,actionTertiary:`button-modal-action-tertiary-${i.id}`},r=t.ref(),s=t.ref(i.isOpen),c=t.ref(!1),u=t.computed(()=>{var I;return(I=i.isOpen)!=null?I:s.value}),h=Fi(document.body),m=t.computed(()=>{var $,B;const I=($=i.size.desktop)!=null?$:"medium",p=(B=i.size.mobile)!=null?B:"full";return`-desktop-${I} -mobile-${p}`}),{navigate:d}=ye({Escape:y});function y(){s.value=!1,l("close"),l("update:isOpen",!1)}function S(){s.value=!0,l("open"),l("update:isOpen",!0)}function x(){document.documentElement.style.setProperty("--viewport-100vh",`${window.innerHeight}px`)}function L(I){x(),h.value=!!I,I?setTimeout(()=>c.value=!0,90):c.value=!1}function E(I,p){I&&setTimeout(()=>{var $;return($=p==null?void 0:p.value)==null?void 0:$.focus()},110)}return t.watch(u,I=>{L(I),E(I,r)},{immediate:!0}),n({close:y,open:S}),(I,p)=>(t.openBlock(),t.createBlock(t.Teleport,{to:e.target},[t.unref(u)?(t.openBlock(),t.createBlock(So,{key:0},{default:t.withCtx(()=>[t.createVNode(t.Transition,{name:"modal",mode:"out-in"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",{id:a.modal,ref_key:"modal",ref:r,"data-testid":o.modal,tabindex:"-1",role:"alertdialog","aria-modal":"true",class:t.normalizeClass(["sol-modal-core",t.unref(m)]),"aria-labelledby":a.headerTitle,onKeyupPassive:p[3]||(p[3]=(...$)=>t.unref(d)&&t.unref(d)(...$))},[t.createElementVNode("header",{id:a.header,"data-testid":o.header,class:"header"},[t.createElementVNode("h2",{id:a.headerTitle,"data-testid":o.headerTitle,class:"title"},t.toDisplayString(e.title),9,vo),t.createVNode(te,{id:a.headerClose,size:"small",class:"flex-shrink-0",variant:"tertiary","aria-label":"Close modal",onClick:y},{"icon-left":t.withCtx(()=>[t.createVNode(t.unref(Eo),{"aria-hidden":"true",class:"text-2xs"})]),_:1},8,["id"])],8,Oo),t.createElementVNode("main",No,[t.renderSlot(I.$slots,"default")]),t.createElementVNode("footer",Io,[t.renderSlot(I.$slots,"action-tertiary",{id:a.actionTertiary},()=>[e.actionTertiaryText?(t.openBlock(),t.createBlock(te,{key:0,id:a.actionTertiary,variant:"tertiary",size:"medium",onClick:p[0]||(p[0]=$=>l("action:primary"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.actionTertiaryText),1)]),_:1},8,["id"])):t.createCommentVNode("",!0)]),t.createElementVNode("div",To,[t.renderSlot(I.$slots,"action-secondary",{id:a.actionSecondary},()=>[e.actionSecondaryText?(t.openBlock(),t.createBlock(te,{key:0,id:a.actionSecondary,variant:"secondary",size:"medium",onClick:p[1]||(p[1]=$=>l("action:secondary"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.actionSecondaryText),1)]),_:1},8,["id"])):t.createCommentVNode("",!0)]),t.renderSlot(I.$slots,"action-primary",{id:a.actionPrimary},()=>[e.actionPrimaryText?(t.openBlock(),t.createBlock(te,{key:0,id:a.actionPrimary,size:"medium",variant:"primary",onClick:p[2]||(p[2]=$=>l("action:tertiary"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.actionPrimaryText),1)]),_:1},8,["id"])):t.createCommentVNode("",!0)])])])],42,Bo),[[t.vShow,c.value]])]),_:3})]),_:3})):t.createCommentVNode("",!0)],8,["to"]))}}),hs="";it.install=e=>{e.component("SolModal",it)};const Ao={viewBox:"0 0 24 24",width:"1em",height:"1em"},Po=[t.createElementVNode("path",{fill:"currentColor",d:"m13.3 17.3l-4.6-4.6q-.15-.15-.212-.325q-.063-.175-.063-.375t.063-.375q.062-.175.212-.325l4.6-4.6q.275-.275.7-.275q.425 0 .7.275q.275.275.275.7q0 .425-.275.7L10.8 12l3.9 3.9q.275.275.275.7q0 .425-.275.7q-.275.275-.7.275q-.425 0-.7-.275Z"},null,-1)];function Fo(e,n){return t.openBlock(),t.createElementBlock("svg",Ao,Po)}const qo={name:"material-symbols-chevron-left-rounded",render:Fo},zo={viewBox:"0 0 24 24",width:"1em",height:"1em"},Mo=[t.createElementVNode("path",{fill:"currentColor",d:"M8.7 17.3q-.275-.275-.275-.7q0-.425.275-.7l3.9-3.9l-3.9-3.9q-.275-.275-.275-.7q0-.425.275-.7q.275-.275.7-.275q.425 0 .7.275l4.6 4.6q.15.15.213.325q.062.175.062.375t-.062.375q-.063.175-.213.325l-4.6 4.6q-.275.275-.7.275q-.425 0-.7-.275Z"},null,-1)];function Do(e,n){return t.openBlock(),t.createElementBlock("svg",zo,Mo)}const Lo={name:"material-symbols-chevron-right-rounded",render:Do},_o=["id","data-testid","data-current-page"],jo={class:"total"},at=t.defineComponent({__name:"Pagination",props:{id:null,size:{default:"medium"},openMenuPosition:{default:"top"},totalPages:{default:10},current:{default:1},nextPageData:null,previousPageData:null},emits:["update:current","page","page:next","page:previous"],setup(e,{emit:n}){const l=e,i=t.computed(()=>Array.from({length:r()},(d,y)=>y+1).map(d=>({value:d,name:d}))),a=t.computed(()=>o());function o(){return l.current?l.current>=1&&l.current<=r()?l.current:l.current>r()?r():1:1}function r(){return l.totalPages&&l.totalPages<1?1:l.totalPages}function s(){var y;const d=+a.value+1;m(d),n("page:next",{...(y=l.nextPageData)!=null?y:{},page:d})}function c(){return{value:a.value,name:a.value}}function u(){var y;const d=+a.value-1;m(d),n("page:previous",{...(y=l.previousPageData)!=null?y:{},page:d})}function h(d){const y=d.value;m(Number(y)),n("page",Number(y))}function m(d){n("update:current",d)}return(d,y)=>(t.openBlock(),t.createElementBlock("div",{id:`pagination-${e.id}`,"data-testid":`pagination-${e.id}`,"data-current-page":t.unref(a),class:"sol-pagination-core",role:"navigation","aria-label":"Pagination Navigation"},[t.createVNode(te,{id:`previous-page-${e.id}`,variant:"tertiary",disabled:+t.unref(a)<=1,class:"mr-micro",size:e.size,onClick:u},{"icon-left":t.withCtx(()=>[t.createVNode(t.unref(qo))]),default:t.withCtx(()=>[t.createTextVNode(" Anterior ")]),_:1},8,["id","disabled","size"]),t.createVNode(qe,{id:`pagination-${e.id}`,selected:c(),options:t.unref(i),size:e.size,name:"pagination","dropdown-position":e.openMenuPosition,"onUpdate:selected":h},null,8,["id","selected","options","size","dropdown-position"]),t.createElementVNode("span",jo,"de "+t.toDisplayString(r()),1),t.createVNode(te,{id:`next-page-${e.id}`,variant:"tertiary",size:e.size,class:"ml-micro",disabled:+t.unref(a)>=r(),onClick:s},{"icon-right":t.withCtx(()=>[t.createVNode(t.unref(Lo))]),default:t.withCtx(()=>[t.createTextVNode(" Pr\xF3ximo ")]),_:1},8,["id","size","disabled"])],8,_o))}}),bs="";at.install=e=>{e.component("SolPagination",at)};const ps="",ks="",$s="",ws="",Vn=12,Ve={type:"success",timeout:5e3,showIcon:!0,showCloseButton:!0,position:"top-right",hideProgressBar:!1};function Qo(e,n){const l=t.reactive({id:null,intervalId:null,startTime:0,remaining:n}),i=t.ref(100);function a(){clearInterval(l.intervalId),clearTimeout(l.id),l.remaining-=Date.now()-l.startTime}function o(){l.startTime=Date.now(),clearTimeout(l.id),l.intervalId=setInterval(()=>{i.value--},n/100-5),l.id=setTimeout(e,l.remaining)}function r(){clearInterval(l.intervalId),clearTimeout(l.id),i.value=100}return t.onMounted(()=>{if(n<=0)return!1}),t.onUnmounted(()=>{r()}),{start:o,stop:a,clear:r,progress:i}}function Ro(e){return{stylePosition:t.computed(()=>{const{position:l,offset:i}=e();switch(l){case"top-left":return{left:"0",top:`${i}px`};case"bottom-left":return{left:"0",bottom:`${i}px`};case"bottom-right":return{right:"0",bottom:`${i}px`};case"top-center":return{top:`${i}px`,left:"0",right:"0",marginRight:"auto",marginLeft:"auto"};case"bottom-center":return{bottom:`${i}px`,left:"0",right:"0",marginRight:"auto",marginLeft:"auto"};default:return{right:"0",top:`${i}px`}}})}}var xn=(e=>(e["top-left"]="bounce-left",e["top-right"]="bounce-right",e["top-center"]="bounce-down",e["bottom-left"]="bounce-left",e["bottom-center"]="bounce-up",e["bottom-right"]="bounce-right",e))(xn||{});const Ho={viewBox:"0 0 24 24",width:"1em",height:"1em"},Uo=[t.createElementVNode("path",{fill:"currentColor",d:"m10.6 16.6l7.05-7.05l-1.4-1.4l-5.65 5.65l-2.85-2.85l-1.4 1.4ZM12 22q-2.075 0-3.9-.788q-1.825-.787-3.175-2.137q-1.35-1.35-2.137-3.175Q2 14.075 2 12t.788-3.9q.787-1.825 2.137-3.175q1.35-1.35 3.175-2.138Q9.925 2 12 2t3.9.787q1.825.788 3.175 2.138q1.35 1.35 2.137 3.175Q22 9.925 22 12t-.788 3.9q-.787 1.825-2.137 3.175q-1.35 1.35-3.175 2.137Q14.075 22 12 22Z"},null,-1)];function Zo(e,n){return t.openBlock(),t.createElementBlock("svg",Ho,Uo)}const Go={name:"material-symbols-check-circle",render:Zo},Wo={viewBox:"0 0 24 24",width:"1em",height:"1em"},Ko=[t.createElementVNode("path",{fill:"currentColor",d:"m8.4 17l3.6-3.6l3.6 3.6l1.4-1.4l-3.6-3.6L17 8.4L15.6 7L12 10.6L8.4 7L7 8.4l3.6 3.6L7 15.6Zm3.6 5q-2.075 0-3.9-.788q-1.825-.787-3.175-2.137q-1.35-1.35-2.137-3.175Q2 14.075 2 12t.788-3.9q.787-1.825 2.137-3.175q1.35-1.35 3.175-2.138Q9.925 2 12 2t3.9.787q1.825.788 3.175 2.138q1.35 1.35 2.137 3.175Q22 9.925 22 12t-.788 3.9q-.787 1.825-2.137 3.175q-1.35 1.35-3.175 2.137Q14.075 22 12 22Z"},null,-1)];function Jo(e,n){return t.openBlock(),t.createElementBlock("svg",Wo,Ko)}const Yo={name:"material-symbols-cancel",render:Jo},Xo={viewBox:"0 0 24 24",width:"1em",height:"1em"},er=[t.createElementVNode("path",{fill:"currentColor",d:"M12 17q.425 0 .713-.288Q13 16.425 13 16t-.287-.713Q12.425 15 12 15t-.712.287Q11 15.575 11 16t.288.712Q11.575 17 12 17Zm0 5q-2.075 0-3.9-.788q-1.825-.787-3.175-2.137q-1.35-1.35-2.137-3.175Q2 14.075 2 12t.788-3.9q.787-1.825 2.137-3.175q1.35-1.35 3.175-2.138Q9.925 2 12 2t3.9.787q1.825.788 3.175 2.138q1.35 1.35 2.137 3.175Q22 9.925 22 12t-.788 3.9q-.787 1.825-2.137 3.175q-1.35 1.35-3.175 2.137Q14.075 22 12 22Zm0-9q.425 0 .713-.288Q13 12.425 13 12V8q0-.425-.287-.713Q12.425 7 12 7t-.712.287Q11 7.575 11 8v4q0 .425.288.712q.287.288.712.288Z"},null,-1)];function tr(e,n){return t.openBlock(),t.createElementBlock("svg",Xo,er)}const nr={name:"material-symbols-error-circle-rounded",render:tr},lr=["id","data-testid"],ir={class:"content-wrapper"},ar={key:0,class:"icon-container","aria-hidden":"true"},or={class:"content"},rr={key:0,class:"description"},sr=t.defineComponent({__name:"Toast",props:{id:null,type:{default:Ve.type},visible:{type:Boolean,default:!1},title:null,description:null,actionText:null,timeout:null,hideProgressBar:{type:Boolean,default:Ve.hideProgressBar},showIcon:{type:Boolean,default:Ve.showIcon},offset:{default:0},onAction:null,onCloseHandler:null,position:{default:Ve.position}},setup(e){const n=e,{start:l,stop:i,progress:a}=Qo(()=>{var h;(h=n.onCloseHandler)==null||h.call(n)},n.timeout),{stylePosition:o}=Ro(()=>({offset:n.offset,position:n.position})),r=t.computed(()=>n.title&&n.description);function s(){n.timeout>0&&i()}function c(){l()}t.onMounted(()=>{l()});function u(){var h,m;(h=n.onAction)==null||h.call(n),(m=n.onCloseHandler)==null||m.call(n)}return(h,m)=>(t.openBlock(),t.createBlock(t.Transition,{name:t.unref(xn)[e.position],type:"animation"},{default:t.withCtx(()=>[e.visible?(t.openBlock(),t.createElementBlock("div",{key:0,id:`toast-${e.type}-${e.id}`,"data-testid":`toast-${e.type}-${e.position}`,role:"alert","aria-live":"assertive",style:t.normalizeStyle(t.unref(o)),class:t.normalizeClass(["sol-toast-core",[`-${e.type} -${e.position}`,{"-multiline":t.unref(r)}]]),onKeyup:m[0]||(m[0]=t.withKeys((...d)=>e.onCloseHandler&&e.onCloseHandler(...d),["esc"])),onMouseenter:s,onMouseleave:c,onFocusin:s,onFocusout:c},[t.createElementVNode("section",ir,[e.showIcon?(t.openBlock(),t.createElementBlock("div",ar,[t.renderSlot(h.$slots,"icon-status",{type:e.type},()=>[e.type==="success"?(t.openBlock(),t.createBlock(t.unref(Go),{key:0,class:"icon"})):t.createCommentVNode("",!0),["informative","warning"].includes(e.type)?(t.openBlock(),t.createBlock(t.unref(nr),{key:1,class:"icon"})):t.createCommentVNode("",!0),e.type==="error"?(t.openBlock(),t.createBlock(t.unref(Yo),{key:2,class:"icon"})):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0),t.createElementVNode("div",or,[t.createElementVNode("p",{class:t.normalizeClass(["title",{"-multiline":t.unref(r)}])},[t.renderSlot(h.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(e.title),1)])],2),e.description?(t.openBlock(),t.createElementBlock("p",rr,[t.renderSlot(h.$slots,"description",{},()=>[t.createTextVNode(t.toDisplayString(e.description),1)])])):t.createCommentVNode("",!0)])]),t.createVNode(te,{id:`toast-action-${e.type}-${e.position}`,class:t.normalizeClass(["action",{"-multiline":t.unref(r)}]),size:"small","on-color":e.type!=="warning",variant:"tertiary","aria-label":"close notification",onClick:u},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.actionText),1)]),_:1},8,["id","on-color","class"]),e.hideProgressBar?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:"progressbar","aria-hidden":"true",style:t.normalizeStyle({width:`${t.unref(a)}%`})},null,4))],46,lr)):t.createCommentVNode("",!0)]),_:3},8,["name"]))}}),xs="",Me={"top-left":[],"top-right":[],"top-center":[],"bottom-left":[],"bottom-right":[],"bottom-center":[]};function cr(){En(0)}function En(e=2){Object.entries(Me).forEach(([n,l])=>{l.length>e&&l.map(a=>{var o;return(o=a.toastVNode.props)==null?void 0:o.id}).forEach(a=>At(a,n))})}function dr(e){return typeof e=="string"?{description:e,actionText:"Fechar"}:{actionText:"Fechar",...e}}function ur(e,n=Ve){const l=window.innerWidth<1024?"bottom-center":"top-right";return e?mr({...e,position:l}):n}function fr(){const n=De(0),l=De(0,"success"),i=De(0,"error"),a=De(0,"warning"),o=De(0,"informative");return{createToast:n,createErrorToast:i,createSuccessToast:l,createInformativeToast:o,createWarningToast:a,clearAllToasts:cr}}function De(e,n){return function(l,i){const a=e++,o=ur({...i,type:n});return En(),hr(a,o,dr(l)),{close:()=>At(a,o.position)}}}function mr(e){const n={...Ve,...e,showIcon:e.showIcon};return n.hideProgressBar=!!(n.timeout&&(n==null?void 0:n.timeout)<=0),e.hideProgressBar&&(n.hideProgressBar=e.hideProgressBar),n}function hr(e,n,l){setTimeout(()=>{const i=gr(n,Me,Vn),a=document.createElement("div");document.body.appendChild(a);const o=t.createVNode(sr,yr(n,e,i,At,l));t.render(o,a),Me[n.position].push({toastVNode:o,container:a}),o.component&&(o.component.props.visible=!0)},1)}function yr(e,n,l,i,a){return{...e,...a,id:n,offset:l,visible:!1,onCloseHandler(){i(n,e.position?e.position:"top-right")}}}function gr(e,n,l){if(!e.position)throw new Error("no position");return n[e.position].reduce((i,{toastVNode:a})=>(i+=a.el.offsetHeight+l||0,i),l)}function br(e,n,l,i){for(let a=e;a<n.length;a++){const{toastVNode:o}=n[a];if(!o.el)return;const r=l.split("-")[0]||"top",s=parseInt(o.el.style[r],10)-i-Vn;if(!o.component)return;o.component.props.offset=s}}function At(e,n){var c;const l=Me[n],i=l.findIndex(({toastVNode:u})=>{var h;return e===((h=u==null?void 0:u.props)==null?void 0:h.id)});if(i===-1)return;const{container:a,toastVNode:o}=l[i],r=(c=o==null?void 0:o.el)==null?void 0:c.offsetHeight;if(Me[n].splice(i,1),br(i,l,n,r),!o.component)return;const s=o.component.props;s.visible=!1,s.onClose&&s.onClose(),setTimeout(()=>{t.render(null,a),document.body.removeChild(a)},1e3)}function pr(){return{openModal:l=>{l&&(l==null||l.open())},closeModal:l=>{l&&(l==null||l.close())}}}function kr({initialValues:e}={}){const n=t.ref(e!=null?e:[]);function l(o){var r;return(r=n.value)==null?void 0:r.includes(o)}function i(o){return Array.isArray(n.value)?[...n.value,o]:[o]}function a(o){var s;const r=l(o)?(s=n.value)==null?void 0:s.filter(c=>c!==o):i(o);n.value=r}return{selectedFilters:n,isSelected:l,setSelectedFilter:a}}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 Pt={SolButton:te,SolButtonDestructive:st,SolInputTextarea:Ze,SolInputText:Ie,SolInputTextPassword:Ue,SolRadio:Se,SolRadioGroup:We,SolCheckbox:he,SolCheckboxGroup:Ke,SolSwitch:Ge,SolSelect:qe,SolRemovableChip:Fe,SolSelectableChip:Ye,SolTag:Xe,SolAlert:et,SolAccordion:tt,SolList:nt,SolMenu:Ce,SolMenuItemLink:ze,SolMenuNavigationLinks:lt,SolModal:it,SolPagination:at};function $r(e){for(const n in Pt)e.component(n,Pt[n])}q.SolAccordion=tt,q.SolAlert=et,q.SolButton=te,q.SolButtonDestructive=st,q.SolCheckbox=he,q.SolCheckboxGroup=Ke,q.SolInputText=Ie,q.SolInputTextPassword=Ue,q.SolInputTextarea=Ze,q.SolList=nt,q.SolMenu=Ce,q.SolMenuItemLink=ze,q.SolMenuNavigationLinks=lt,q.SolModal=it,q.SolPagination=at,q.SolRadio=Se,q.SolRadioGroup=We,q.SolRemovableChip=Fe,q.SolSelect=qe,q.SolSelectableChip=Ye,q.SolSwitch=Ge,q.SolTag=Xe,q.components=Pt,q.install=$r,q.useMask=jt,q.useModal=pr,q.useNavigate=ye,q.useNavigateProvider=Je,q.useSelectableChip=kr,q.useToast=fr,q.vMask=Un,Object.defineProperties(q,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});