@solfacil/girassol 0.5.0 → 0.7.0-beta-pagination.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 (74) hide show
  1. package/README.md +32 -13
  2. package/dist/components.d.ts +4 -1
  3. package/dist/components.json +1 -1
  4. package/dist/girassol.es.js +2742 -2263
  5. package/dist/girassol.umd.js +6 -6
  6. package/dist/style.css +1 -1
  7. package/dist/theme/solfacil/borders.d.ts +0 -1
  8. package/dist/theme/solfacil/index.d.ts +1 -0
  9. package/dist/theme/solfacil/screens.d.ts +17 -5
  10. package/dist/theme/solfacil/utilities.d.ts +1 -0
  11. package/dist/types/components/{informations/chip/Chip.vue.d.ts → filters/chip/removable-chip/RemovableChip.vue.d.ts} +37 -37
  12. package/dist/types/components/filters/chip/removable-chip/index.d.ts +2 -0
  13. package/dist/types/components/{informations/chip/chip.spec.d.ts → filters/chip/removable-chip/removable-chip.spec.d.ts} +0 -0
  14. package/dist/types/components/filters/chip/removable-chip/types.d.ts +4 -0
  15. package/dist/types/components/filters/chip/selectable-chip/SelectableChip.vue.d.ts +125 -0
  16. package/dist/types/components/filters/chip/selectable-chip/index.d.ts +2 -0
  17. package/dist/types/components/filters/chip/selectable-chip/selectable-chip.spec.d.ts +1 -0
  18. package/dist/types/components/filters/chip/selectable-chip/types.d.ts +5 -0
  19. package/dist/types/components/filters/chip/types.d.ts +6 -0
  20. package/dist/types/components/forms/button/button/Button.vue.d.ts +4 -4
  21. package/dist/types/components/forms/button/button-destructive/ButtonDestructive.vue.d.ts +30 -7
  22. package/dist/types/components/forms/checkbox/checkbox/Checkbox.vue.d.ts +81 -13
  23. package/dist/types/components/forms/checkbox/checkbox-group/CheckboxGroup.vue.d.ts +4 -20
  24. package/dist/types/components/forms/inputs/input-core/Input.vue.d.ts +91 -15
  25. package/dist/types/components/forms/inputs/input-password/InputPassword.vue.d.ts +107 -21
  26. package/dist/types/components/forms/inputs/input-textarea/InputTextarea.vue.d.ts +121 -33
  27. package/dist/types/components/forms/radio/radio/Radio.vue.d.ts +78 -12
  28. package/dist/types/components/forms/radio/radio-group/RadioGroup.vue.d.ts +4 -20
  29. package/dist/types/components/forms/select/ListOption.vue.d.ts +16 -60
  30. package/dist/types/components/forms/select/Select.vue.d.ts +26 -24
  31. package/dist/types/components/forms/select/types.d.ts +2 -2
  32. package/dist/types/components/forms/switch/Switch.vue.d.ts +108 -18
  33. package/dist/types/components/loader/CircleLoader.vue.d.ts +72 -10
  34. package/dist/types/components/modal/Modal.vue.d.ts +209 -0
  35. package/dist/types/components/modal/index.d.ts +2 -0
  36. package/dist/types/components/modal/modal.spec.d.ts +1 -0
  37. package/dist/types/components/modal/types.d.ts +16 -0
  38. package/dist/types/components/overlay/Overlay.vue.d.ts +2 -0
  39. package/dist/types/components/pagination/Pagination.vue.d.ts +190 -0
  40. package/dist/types/components/pagination/index.d.ts +2 -0
  41. package/dist/types/components/pagination/pagination.spec.d.ts +1 -0
  42. package/dist/types/components/pagination/types.d.ts +14 -0
  43. package/dist/types/composables/use-filters/index.d.ts +8 -0
  44. package/{cli/build/types/cli.d.ts → dist/types/composables/use-filters/use-filters.spec.d.ts} +0 -0
  45. package/dist/types/composables/use-modal/index.d.ts +4 -0
  46. package/dist/types/composables/use-validate-field/index.d.ts +3 -3
  47. package/dist/types/composables/use-validate-field/types.d.ts +4 -8
  48. package/dist/types/index.d.ts +2381 -993
  49. package/package.json +31 -20
  50. package/theme/solfacil/borders.ts +0 -1
  51. package/theme/solfacil/effects.ts +4 -4
  52. package/theme/solfacil/index.ts +2 -1
  53. package/theme/solfacil/screens.ts +16 -5
  54. package/theme/solfacil/utilities.ts +26 -1
  55. package/vite.config.ts +5 -0
  56. package/windi.config.ts +1 -14
  57. package/cli/build/cli.js +0 -68
  58. package/cli/build/commands/create:component.js +0 -124
  59. package/cli/build/commands/generate:plugin.js +0 -89
  60. package/cli/build/commands/generate:types.js +0 -76
  61. package/cli/build/commands/girassol-cli.js +0 -52
  62. package/cli/build/extensions/cli-extension.js +0 -17
  63. package/cli/build/templates/components.d.ts.ejs +0 -1
  64. package/cli/build/templates/nuxt-plugin.ejs +0 -8
  65. package/cli/build/templates/vue-plugin.ejs +0 -5
  66. package/cli/build/templates/windi.config.ts.ejs +0 -3
  67. package/cli/build/types/commands/create:component.d.ts +0 -1
  68. package/cli/build/types/commands/generate:plugin.d.ts +0 -1
  69. package/cli/build/types/commands/generate:types.d.ts +0 -7
  70. package/cli/build/types/commands/girassol-cli.d.ts +0 -1
  71. package/cli/build/types/extensions/cli-extension.d.ts +0 -1
  72. package/cli/build/types/types.d.ts +0 -0
  73. package/cli/build/types.js +0 -2
  74. package/dist/types/components/informations/chip/index.d.ts +0 -2
@@ -1,14 +1,14 @@
1
- (function(j,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(j=typeof globalThis<"u"?globalThis:j||self,t(j.girassol={},j.Vue))})(this,function(j,t){"use strict";const gn=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),Bt=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),gn],2))}}),Lo="",bn=["data-testid","disabled"],kn={class:"icon -left"},pn={class:"icon -right"},$n={key:0,class:"loading"},oe=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,a){return o?a:""}const l=t.useSlots(),i=t.computed(()=>!!(l!=null&&l.default)&&(!!(l!=null&&l["icon-right"])||!!(l!=null&&l["icon-left"]))),r=t.computed(()=>!(l!=null&&l.default)&&(!!(l!=null&&l["icon-right"])||!!(l!=null&&l["icon-left"])));return(o,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(r),"-only-icon")}
6
- `]),type:"button",disabled:e.disabled||e.loading},[t.createElementVNode("div",kn,[t.renderSlot(o.$slots,"icon-left")]),t.renderSlot(o.$slots,"default"),t.createElementVNode("div",pn,[t.renderSlot(o.$slots,"icon-right")]),e.loading?(t.openBlock(),t.createElementBlock("div",$n,[t.createVNode(Bt,{"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,bn))}}),qo="",wn={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Sn=[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 xn(e,n){return t.openBlock(),t.createElementBlock("svg",wn,Sn)}const Cn={name:"material-symbols-delete-outline",render:xn},tt=t.defineComponent({__name:"ButtonDestructive",props:{id:null,size:null,loading:{type:Boolean}},setup(e){return(n,l)=>(t.openBlock(),t.createBlock(oe,{id:`destructive-${e.id}`,size:e.size,loading:e.loading,variant:"primary",class:"button-destructive"},{"icon-left":t.withCtx(()=>[t.createVNode(t.unref(Cn))]),default:t.withCtx(()=>[t.renderSlot(n.$slots,"default")]),_:3},8,["id","size","loading"]))}}),zo="";oe.install=e=>{e.component("SolButton",oe)},tt.install=e=>{e.component("SolButton",oe)};/*!
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 vn(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function En(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 Bn(e,n,l){return n in e?Object.defineProperty(e,n,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[n]=l,e}function Ot(e,n){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),l.push.apply(l,i)}return l}function De(e){for(var n=1;n<arguments.length;n++){var l=arguments[n]!=null?arguments[n]:{};n%2?Ot(Object(l),!0).forEach(function(i){Bn(e,i,l[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):Ot(Object(l)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(l,i))})}return e}var Vt={"#":{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 It(e,n){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Vt,i=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3];return Nt(n).length>1?On(n)(e,n,l,i):nt(e,n,l,i)}function Nt(e){try{return JSON.parse(e)}catch{return[e]}}function On(e){var n=Nt(e).sort(function(i,r){return i.length-r.length});return function(i,r,o){var a=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],c=n.map(function(m){return nt(i,m,o,!1)}),s=c.pop();for(var u in n)if(l(s,n[u],o))return nt(i,n[u],o,a);return""};function l(i,r,o){for(var a in o)o[a].escape&&(r=r.replace(new RegExp(a+".{1}","g"),""));return r.split("").filter(function(c){return o[c]&&o[c].pattern}).length>=i.length}}function nt(e,n,l){for(var i=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],r=0,o=0,a="",c="";r<n.length&&o<e.length;){var s=n[r],u=e[o],m=l[s];if(m&&m.pattern)m.pattern.test(u)&&(a+=Vn(u,m),r++,i&&n[r]&&(l[n[r]]?l[n[r]]&&l[n[r]].escape&&(a+=n[r+1],r+=2):(a+=n[r],r++))),o++;else if(m&&m.repeat){var h=l[n[r-1]];h&&!h.pattern.test(u)?r++:r--}else m&&m.escape&&(s=n[++r]),i&&(a+=s),u===s&&o++,r++}for(;i&&r<n.length;){var d=n[r];if(l[d]){c="";break}c+=d,r++}return a+c}function Vn(e,n){return n.transform&&(e=n.transform(e)),n.uppercase?e.toLocaleUpperCase():n.lowercase?e.toLocaleLowerCase():e}function At(e){return e instanceof HTMLInputElement?e:e.querySelector("input")||e}function lt(e){return Object.prototype.toString.call(e)==="[object String]"}var In=function(){function e(i){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(vn(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 a in o.tokens)o.tokens[a]=De({},o.tokens[a]),o.tokens[a].pattern&&lt(o.tokens[a].pattern)&&(o.tokens[a].pattern=new RegExp(o.tokens[a].pattern));this._opts={mask:o.mask,tokens:De(De({},Vt),o.tokens),preprocessor:o.preprocessor},this._el=lt(i)?document.querySelectorAll(i):i.length?i:[i],this.inputEvent=function(c){return r.updateValue(c.target,c)},this.init()}var n,l;return n=e,(l=[{key:"init",value:function(){for(var i=this,r=function(a){var c=At(i._el[a]);!i._opts.mask||c.dataset.mask&&c.dataset.mask===i._opts.mask||(c.dataset.mask=i._opts.mask),setTimeout(function(){return i.updateValue(c)},0),c.dataset.maskInited||(c.dataset.maskInited=!0,c.addEventListener("input",i.inputEvent),c.addEventListener("beforeinput",i.beforeInput))},o=0;o<this._el.length;o++)r(o)}},{key:"destroy",value:function(){for(var i=0;i<this._el.length;i++){var r=At(this._el[i]);r.removeEventListener("input",this.inputEvent),r.removeEventListener("beforeinput",this.beforeInput),delete r.dataset.mask,delete r.dataset.maskInited}}},{key:"updateValue",value:function(i,r){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,r);var a=i.selectionEnd,c=i.value,s=c[a-1];i.dataset.maskRawValue=It(i.value,i.dataset.mask,this._opts.tokens,!1);var u=i.value;this._opts.preprocessor&&(u=this._opts.preprocessor(u)),i.value=It(u,i.dataset.mask,this._opts.tokens),r&&r.inputType==="insertText"&&a===c.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,s),this.dispatch("maska",i,r),i.value!==c&&this.dispatch("input",i,r)}}},{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,r,o){r.dispatchEvent(function(a){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,s=document.createEvent("Event");return s.initEvent(a,!0,!0),c&&(s.inputType=c),s}(i,o&&o.inputType||null))}}])&&En(n.prototype,l),e}(),it,Tt=(it=new WeakMap,function(e,n){n.value&&(it.has(e)&&!function(l){return!(lt(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)||it.set(e,new In(e,function(l){var i={};return l.mask?(i.mask=Array.isArray(l.mask)?JSON.stringify(l.mask):l.mask,i.tokens=l.tokens?De({},l.tokens):{},i.preprocessor=l.preprocessor):i.mask=Array.isArray(l)?JSON.stringify(l):l,i}(n.value))))});function Nn(e){e.directive("maska",Tt)}typeof window<"u"&&window.Vue&&window.Vue.use&&window.Vue.use(Nn);const An={CPF:"###.###.###-##",CNPJ:"##.###.###/#####-##",CPF_CNPJ:["###.###.###-##","##.###.###/#####-##"],MobilePhoneDDD:"(##) # ####-####"};function Tn(e){const n=Tt,l=t.computed(()=>{if(e!=null&&e.hasOwnProperty("preset")){const{preset:i}=e;return An[i]}return e});return{vMask:n,maskValue:l}}const Fn=["id","data-testid","value"],Ft=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:r,vMask:o}=Tn(i.mask);function a({target:s}){l("update:modelValue",s==null?void 0:s.value)}const c=t.ref("");return n({input:c}),(s,u)=>t.withDirectives((t.openBlock(),t.createElementBlock("input",{id:`input-${e.id}`,ref_key:"input",ref:c,"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,Fn)),[[t.unref(o),t.unref(r)]])}}),jo="";function Mn(){return Mt().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Mt(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const Pn=typeof Proxy=="function",Ln="devtools-plugin:setup",qn="plugin:settings:set";let ye,rt;function Dn(){var e;return ye!==void 0||(typeof window<"u"&&window.performance?(ye=!0,rt=window.performance):typeof global<"u"&&((e=global.perf_hooks)===null||e===void 0?void 0:e.performance)?(ye=!0,rt=global.perf_hooks.performance):ye=!1),ye}function zn(){return Dn()?rt.now():Date.now()}class jn{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 c=n.settings[a];i[a]=c.defaultValue}const r=`__vue-devtools-plugin-settings__${n.id}`;let o=Object.assign({},i);try{const a=localStorage.getItem(r),c=JSON.parse(a);Object.assign(o,c)}catch{}this.fallbacks={getSettings(){return o},setSettings(a){try{localStorage.setItem(r,JSON.stringify(a))}catch{}o=a},now(){return zn()}},l&&l.on(qn,(a,c)=>{a===this.plugin.id&&this.fallbacks.setSettings(c)}),this.proxiedOn=new Proxy({},{get:(a,c)=>this.target?this.target.on[c]:(...s)=>{this.onQueue.push({method:c,args:s})}}),this.proxiedTarget=new Proxy({},{get:(a,c)=>this.target?this.target[c]:c==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(c)?(...s)=>(this.targetQueue.push({method:c,args:s,resolve:()=>{}}),this.fallbacks[c](...s)):(...s)=>new Promise(u=>{this.targetQueue.push({method:c,args:s,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 Rn(e,n){const l=e,i=Mt(),r=Mn(),o=Pn&&l.enableEarlyProxy;if(r&&(i.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!o))r.emit(Ln,e,n);else{const a=o?new jn(l,r):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 ge(e){return typeof e=="function"}function Ce(e){return e==null}const ue=e=>e!==null&&!!e&&typeof e=="object"&&!Array.isArray(e);function Pt(e){return Number(e)>=0}function Qn(e){const n=parseFloat(e);return isNaN(n)?e:n}const _n={};function Hn(e){return _n[e]}const me=Symbol("vee-validate-form"),Un=Symbol("vee-validate-field-instance"),ze=Symbol("Default empty value");function ot(e){return ge(e)&&!!e.__locatorRef}function ve(e){return!!e&&ge(e.validate)}function be(e){return e==="checkbox"||e==="radio"}function Zn(e){return ue(e)||Array.isArray(e)}function Lt(e){return Array.isArray(e)?e.length===0:ue(e)&&Object.keys(e).length===0}function je(e){return/^\[.+\]$/i.test(e)}function Gn(e){return qt(e)&&e.multiple}function qt(e){return e.tagName==="SELECT"}function Yn(e,n){const l=![!1,null,void 0,0].includes(n.multiple)&&!Number.isNaN(n.multiple);return e==="select"&&"multiple"in n&&l}function Wn(e,n){return!Yn(e,n)&&n.type!=="file"&&!be(n.type)}function Dt(e){return at(e)&&e.target&&"submit"in e.target}function at(e){return e?!!(typeof Event<"u"&&ge(Event)&&e instanceof Event||e&&e.srcElement):!1}function zt(e,n){return n in e&&e[n]!==ze}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,r,o;if(Array.isArray(n)){if(i=n.length,i!=l.length)return!1;for(r=i;r--!==0;)if(!e(n[r],l[r]))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(r=i;r--!==0;)if(!Object.prototype.hasOwnProperty.call(l,o[r]))return!1;for(r=i;r--!==0;){var a=o[r];if(!e(n[a],l[a]))return!1}return!0}return n!==n&&l!==l};function st(e){return je(e)?e.replace(/\[|\]/gi,""):e}function U(e,n,l){return e?je(n)?e[st(n)]:(n||"").split(/\.|\[(\d+)\]/).filter(Boolean).reduce((r,o)=>Zn(r)&&o in r?r[o]:l,e):l}function fe(e,n,l){if(je(n)){e[st(n)]=l;return}const i=n.split(/\.|\[(\d+)\]/).filter(Boolean);let r=e;for(let o=0;o<i.length;o++){if(o===i.length-1){r[i[o]]=l;return}(!(i[o]in r)||Ce(r[i[o]]))&&(r[i[o]]=Pt(i[o+1])?[]:{}),r=r[i[o]]}}function ct(e,n){if(Array.isArray(e)&&Pt(n)){e.splice(Number(n),1);return}ue(e)&&delete e[n]}function dt(e,n){if(je(n)){delete e[st(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){ct(i,l[o]);break}if(!(l[o]in i)||Ce(i[l[o]]))break;i=i[l[o]]}const r=l.map((o,a)=>U(e,l.slice(0,a).join(".")));for(let o=r.length-1;o>=0;o--)if(!!Lt(r[o])){if(o===0){ct(e,l[0]);continue}ct(r[o-1],l[o-1])}}function W(e){return Object.keys(e)}function Ee(e,n=void 0){const l=t.getCurrentInstance();return(l==null?void 0:l.provides[e])||t.inject(e,n)}function ut(e){t.warn(`[vee-validate]: ${e}`)}function Jn(e){return Array.isArray(e)?e[0]:e}function ft(e,n,l){if(Array.isArray(e)){const i=[...e],r=i.findIndex(o=>jt(o,n));return r>=0?i.splice(r,1):i.push(n),i}return jt(e,n)?l:n}function Kn(e,n){let l,i;return function(...r){const o=this;return l||(l=!0,setTimeout(()=>l=!1,n),i=e.apply(o,r)),i}}function Rt(e,n=0){let l=null,i=[];return function(...r){return l&&window.clearTimeout(l),l=window.setTimeout(()=>{const o=e(...r);i.forEach(a=>a(o)),i=[]},n),new Promise(o=>i.push(o))}}function Xn(e,n){return ue(n)&&n.number?Qn(e):e}function mt(e,n){let l;return async function(...r){const o=e(...r);l=o;const a=await o;return o!==l||(l=void 0,n(a,r)),a}}const Re=(e,n,l)=>n.slots.default?typeof e=="string"||!e?n.slots.default(l()):{default:()=>{var i,r;return(r=(i=n.slots).default)===null||r===void 0?void 0:r.call(i,l())}}:n.slots.default;function ht(e){if(Qt(e))return e._value}function Qt(e){return"_value"in e}function yt(e){if(!at(e))return e;const n=e.target;if(be(n.type)&&Qt(n))return ht(n);if(n.type==="file"&&n.files){const l=Array.from(n.files);return n.multiple?l:l[0]}if(Gn(n))return Array.from(n.options).filter(l=>l.selected&&!l.disabled).map(ht);if(qt(n)){const l=Array.from(n.options).find(i=>i.selected);return l?ht(l):n.value}return n.value}function _t(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 r=el(e[i]);return e[i]!==!1&&(l[i]=Ht(r)),l},n):typeof e!="string"?n:e.split("|").reduce((l,i)=>{const r=tl(i);return r.name&&(l[r.name]=Ht(r.params)),l},n):n}function el(e){return e===!0?[]:Array.isArray(e)||ue(e)?e:[e]}function Ht(e){const n=l=>typeof l=="string"&&l[0]==="@"?nl(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 tl=e=>{let n=[];const l=e.split(":")[0];return e.includes(":")&&(n=e.split(":").slice(1).join(":").split(",")),{name:l,params:n}};function nl(e){const n=l=>U(l,e)||l[e];return n.__locatorRef=e,n}function ll(e){return Array.isArray(e)?e.filter(ot):W(e).filter(n=>ot(e[n])).map(n=>e[n])}let il=Object.assign({},{generateMessage:({field:e})=>`${e} is not valid.`,bails:!0,validateOnBlur:!0,validateOnChange:!0,validateOnInput:!1,validateOnModelUpdate:!0});const gt=()=>il;async function Ut(e,n,l={}){const i=l==null?void 0:l.bails,r={name:(l==null?void 0:l.name)||"{field}",rules:n,bails:i!=null?i:!0,formData:(l==null?void 0:l.values)||{}},a=(await rl(r,e)).errors;return{errors:a,valid:!a.length}}async function rl(e,n){if(ve(e.rules))return ol(n,e.rules,{bails:e.bails});if(ge(e.rules)||Array.isArray(e.rules)){const a={field:e.name,form:e.formData,value:n},c=Array.isArray(e.rules)?e.rules:[e.rules],s=c.length,u=[];for(let m=0;m<s;m++){const h=c[m],d=await h(n,a);if(typeof d!="string"&&d)continue;const w=typeof d=="string"?d:Zt(a);if(u.push(w),e.bails)return{errors:u}}return{errors:u}}const l=Object.assign(Object.assign({},e),{rules:_t(e.rules)}),i=[],r=Object.keys(l.rules),o=r.length;for(let a=0;a<o;a++){const c=r[a],s=await al(l,n,{name:c,params:l.rules[c]});if(s.error&&(i.push(s.error),e.bails))return{errors:i}}return{errors:i}}async function ol(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 al(e,n,l){const i=Hn(l.name);if(!i)throw new Error(`No such validator '${l.name}' exists.`);const r=sl(l.params,e.formData),o={field:e.name,value:n,form:e.formData,rule:Object.assign(Object.assign({},l),{params:r})},a=await i(n,r,o);return typeof a=="string"?{error:a}:{error:a?void 0:Zt(o)}}function Zt(e){const n=gt().generateMessage;return n?n(e):"Field is invalid"}function sl(e,n){const l=i=>ot(i)?i(n):i;return Array.isArray(e)?e.map(l):Object.keys(e).reduce((i,r)=>(i[r]=l(e[r]),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={},r={};for(const o of l){const a=o.errors;i[o.path]={valid:!a.length,errors:a},a.length&&(r[o.path]=a[0])}return{valid:!l.length,results:i,errors:r}}async function dl(e,n,l){const r=W(e).map(async u=>{var m,h,d;const b=await Ut(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 o=!0;const a=await Promise.all(r),c={},s={};for(const u of a)c[u.path]={valid:u.valid,errors:u.errors},u.valid||(o=!1,s[u.path]=u.errors[0]);return{valid:o,results:c,errors:s}}function Gt(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,r,o=Object.prototype.toString.call(e);if(o==="[object Object]"?r=Object.create(e.__proto__||null):o==="[object Array]"?r=Array(e.length):o==="[object Set]"?(r=new Set,e.forEach(function(a){r.add(Z(a))})):o==="[object Map]"?(r=new Map,e.forEach(function(a,c){r.set(Z(c),Z(a))})):o==="[object Date]"?r=new Date(+e):o==="[object RegExp]"?r=new RegExp(e.source,e.flags):o==="[object DataView]"?r=new e.constructor(Z(e.buffer)):o==="[object ArrayBuffer]"?r=e.slice(0):o.slice(-6)==="Array]"&&(r=new e.constructor(e)),r){for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)Gt(r,i[n],Object.getOwnPropertyDescriptor(e,i[n]));for(n=0,i=Object.getOwnPropertyNames(e);n<i.length;n++)Object.hasOwnProperty.call(r,l=i[n])&&r[l]===e[l]||Gt(r,l,Object.getOwnPropertyDescriptor(e,l))}return r||e}var le=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,r,o;if(Array.isArray(n)){if(i=n.length,i!=l.length)return!1;for(r=i;r--!==0;)if(!e(n[r],l[r]))return!1;return!0}if(n instanceof Map&&l instanceof Map){if(n.size!==l.size)return!1;for(r of n.entries())if(!l.has(r[0]))return!1;for(r of n.entries())if(!e(r[1],l.get(r[0])))return!1;return!0}if(n instanceof Set&&l instanceof Set){if(n.size!==l.size)return!1;for(r of n.entries())if(!l.has(r[0]))return!1;return!0}if(ArrayBuffer.isView(n)&&ArrayBuffer.isView(l)){if(i=n.length,i!=l.length)return!1;for(r=i;r--!==0;)if(n[r]!==l[r])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(r=i;r--!==0;)if(!Object.prototype.hasOwnProperty.call(l,o[r]))return!1;for(r=i;r--!==0;){var a=o[r];if(!e(n[a],l[a]))return!1}return!0}return n!==n&&l!==l};let Yt=0;function ul(e,n){const{value:l,initialValue:i,setInitialValue:r}=Wt(e,n.modelValue,!n.standalone),{errorMessage:o,errors:a,setErrors:c}=ml(e,!n.standalone),s=fl(l,i,a),u=Yt>=Number.MAX_SAFE_INTEGER?0:++Yt;function m(h){var d;"value"in h&&(l.value=h.value),"errors"in h&&c(h.errors),"touched"in h&&(s.touched=(d=h.touched)!==null&&d!==void 0?d:s.touched),"initialValue"in h&&r(h.initialValue)}return{id:u,path:e,value:l,initialValue:i,meta:s,errors:a,errorMessage:o,setState:m}}function Wt(e,n,l=!0){const i=l===!0?Ee(me,void 0):void 0,r=t.ref(t.unref(n));function o(){return i?U(i.meta.value.initialValues,t.unref(e),t.unref(r)):t.unref(r)}function a(m){if(!i){r.value=m;return}i.stageInitialValue(t.unref(e),m,!0)}const c=t.computed(o);if(!i)return{value:t.ref(o()),initialValue:c,setInitialValue:a};const s=n?t.unref(n):U(i.values,t.unref(e),t.unref(c));return i.stageInitialValue(t.unref(e),s,!0),{value:t.computed({get(){return U(i.values,t.unref(e))},set(m){i.setFieldValue(t.unref(e),m)}}),initialValue:c,setInitialValue:a}}function fl(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(()=>!le(t.unref(e),t.unref(n)))});return t.watch(l,r=>{i.valid=!r.length},{immediate:!0,flush:"sync"}),i}function ml(e,n){const l=n?Ee(me,void 0):void 0;function i(o){return o?Array.isArray(o)?o:[o]:[]}if(!l){const o=t.ref([]);return{errors:o,errorMessage:t.computed(()=>o.value[0]),setErrors:a=>{o.value=i(a)}}}const r=t.computed(()=>l.errorBag.value[t.unref(e)]||[]);return{errors:r,errorMessage:t.computed(()=>r.value[0]),setErrors:o=>{l.setFieldErrorBag(t.unref(e),i(o))}}}function Jt(e){process.env.NODE_ENV!=="production"&&Rn({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"},gl)}const Be={},Oe={};let ae;const ke=Kn(()=>{setTimeout(async()=>{await t.nextTick(),ae==null||ae.sendInspectorState(pe),ae==null||ae.sendInspectorTree(pe)},100)},100);function hl(e){const n=t.getCurrentInstance();if(!ae){const l=n==null?void 0:n.appContext.app;if(!l)return;Jt(l)}Be[e.formId]=Object.assign({},e),Be[e.formId]._vm=n,t.onUnmounted(()=>{delete Be[e.formId],ke()}),ke()}function yl(e){const n=t.getCurrentInstance();if(!ae){const l=n==null?void 0:n.appContext.app;if(!l)return;Jt(l)}Oe[e.id]=Object.assign({},e),Oe[e.id]._vm=n,t.onUnmounted(()=>{delete Oe[e.id],ke()}),ke()}const pe="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 gl(e){ae=e,e.addInspector({id:pe,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!==pe)return;const l=Object.values(Be),i=Object.values(Oe);n.rootNodes=[...l.map(bl),...i.map(r=>bt(r))]}),e.on.getInspectorState((n,l)=>{if(n.inspectorId!==pe||l.currentTab!==`custom-inspector:${pe}`)return;const{form:i,field:r,type:o}=kl(n.nodeId);if(i&&o==="form"){n.state=$l(i),se=i;return}if(r&&o==="field"){n.state=pl(r),se=r;return}se=null})}function bl(e){const{textColor:n,bgColor:l}=Xt(e),i={};Object.values(e.fieldsByPath.value).forEach(a=>{const c=Array.isArray(a)?a[0]:a;!c||fe(i,t.unref(c.name),bt(c,e))});function r(a,c=[]){const s=[...c].pop();return"id"in a?Object.assign(Object.assign({},a),{label:s||a.label}):ue(a)?{id:`${c.join(".")}`,label:s||"",children:Object.keys(a).map(u=>r(a[u],[...c,u]))}:Array.isArray(a)?{id:`${c.join(".")}`,label:`${s}[]`,children:a.map((u,m)=>r(u,[...c,String(m)]))}:{id:"",label:"",children:[]}}const{children:o}=r(i);return{id:Kt(e),label:"Form",children:o,tags:[{label:"Form",textColor:n,backgroundColor:l},{label:`${Object.keys(e.fieldsByPath.value).length} fields`,textColor:X.white,backgroundColor:X.unknown}]}}function bt(e,n){const l=Jn(e),{textColor:i,bgColor:r}=Xt(l),o=Array.isArray(e)&&e.length>1;return{id:Kt(n,l,!o),label:t.unref(l.name),children:Array.isArray(e)?e.map(a=>bt(a,n)):void 0,tags:[o?void 0:{label:"Field",textColor:i,backgroundColor:r},n?void 0:{label:"Standalone",textColor:X.black,backgroundColor:X.gray},!o&&l.type==="checkbox"?{label:"Checkbox",textColor:X.white,backgroundColor:X.blue}:void 0,!o&&l.type==="radio"?{label:"Radio",textColor:X.white,backgroundColor:X.purple}:void 0,o?{label:"Group",textColor:X.black,backgroundColor:X.orange}:void 0].filter(Boolean)}}function Kt(e,n,l=!0){const i=e?t.unref(n==null?void 0:n.name):n==null?void 0:n.id,r=i?e==null?void 0:e.fieldsByPath.value[i]:void 0;let o;l&&n&&Array.isArray(r)&&(o=r.indexOf(n));const a={f:e==null?void 0:e.formId,ff:i,idx:o,type:n?"field":"form"};return btoa(JSON.stringify(a))}function kl(e){try{const n=JSON.parse(atob(e)),l=Be[n.f];if(!l&&n.ff){const r=Oe[n.ff];return r?{type:n.type,field:r}:{}}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 pl(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 $l(e){const{errorBag:n,meta:l,values:i,isSubmitting:r,submitCount:o}=e;return{"Form state":[{key:"submitCount",value:o.value},{key:"isSubmitting",value:r.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,c)=>{var s;const u=(s=n.value[c])===null||s===void 0?void 0:s[0];return u&&(a[c]=u),a},{})}]}}function Xt(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 kt(e,n,l){return be(l==null?void 0:l.type)?xl(e,n,l):en(e,n,l)}function en(e,n,l){const{initialValue:i,validateOnMount:r,bails:o,type:a,checkedValue:c,label:s,validateOnValueUpdate:u,uncheckedValue:m,standalone:h,keepValueOnUnmount:d,modelPropName:b,syncVModel:w}=wl(t.unref(e),l),S=h?void 0:Ee(me);let L=!1;const{id:z,value:R,initialValue:$,meta:k,setState:V,errors:I,errorMessage:T}=ul(e,{modelValue:i,standalone:h});w&&Cl({value:R,prop:b,handleChange:ne});const q=()=>{k.touched=!0},Q=t.computed(()=>{let y=t.unref(n);const v=t.unref(S==null?void 0:S.schema);return v&&!ve(v)&&(y=Sl(v,t.unref(e))||y),ve(y)||ge(y)||Array.isArray(y)?y:_t(y)});async function A(y){var v,_;return S!=null&&S.validateSchema?(v=(await S.validateSchema(y)).results[t.unref(e)])!==null&&v!==void 0?v:{valid:!0,errors:[]}:Ut(R.value,Q.value,{name:t.unref(s)||t.unref(e),values:(_=S==null?void 0:S.values)!==null&&_!==void 0?_:{},bails:o})}const D=mt(async()=>(k.pending=!0,k.validated=!0,A("validated-only")),y=>(L&&(y.valid=!0,y.errors=[]),V({errors:y.errors}),k.pending=!1,y)),H=mt(async()=>A("silent"),y=>(L&&(y.valid=!0),k.valid=y.valid,y));function J(y){return(y==null?void 0:y.mode)==="silent"?H():D()}function ne(y,v=!0){const _=yt(y);R.value=_,!u&&v&&D()}t.onMounted(()=>{if(r)return D();(!S||!S.validateSchema)&&H()});function Y(y){k.touched=y}let E;function B(){E=t.watch(R,(y,v)=>{if(le(y,v))return;(u?D:H)()},{deep:!0})}B();function p(y){var v;E==null||E();const _=y&&"value"in y?y.value:$.value;V({value:Z(_),initialValue:Z(_),touched:(v=y==null?void 0:y.touched)!==null&&v!==void 0?v:!1,errors:(y==null?void 0:y.errors)||[]}),k.pending=!1,k.validated=!1,H(),t.nextTick(()=>{B()})}function x(y){R.value=y}function O(y){V({errors:Array.isArray(y)?y:[y]})}const N={id:z,name:e,label:s,value:R,meta:k,errors:I,errorMessage:T,type:a,checkedValue:c,uncheckedValue:m,bails:o,keepValueOnUnmount:d,resetField:p,handleReset:()=>p(),validate:J,handleChange:ne,handleBlur:q,setState:V,setTouched:Y,setErrors:O,setValue:x};if(t.provide(Un,N),t.isRef(n)&&typeof t.unref(n)!="function"&&t.watch(n,(y,v)=>{le(y,v)||(k.validated?D():H())},{deep:!0}),process.env.NODE_ENV!=="production"&&(N._vm=t.getCurrentInstance(),t.watch(()=>Object.assign(Object.assign({errors:I.value},k),{value:R.value}),ke,{deep:!0}),S||yl(N)),!S)return N;S.register(N),t.onBeforeUnmount(()=>{L=!0,S.unregister(N)});const P=t.computed(()=>{const y=Q.value;return!y||ge(y)||ve(y)||Array.isArray(y)?{}:Object.keys(y).reduce((v,_)=>{const ce=ll(y[_]).map(ee=>ee.__locatorRef).reduce((ee,te)=>{const ie=U(S.values,te)||S.values[te];return ie!==void 0&&(ee[te]=ie),ee},{});return Object.assign(v,ce),v},{})});return t.watch(P,(y,v)=>{if(!Object.keys(y).length)return;!le(y,v)&&(k.validated?D():H())}),N}function wl(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 Sl(e,n){if(!!e)return e[n]}function xl(e,n,l){const i=l!=null&&l.standalone?void 0:Ee(me),r=l==null?void 0:l.checkedValue,o=l==null?void 0:l.uncheckedValue;function a(c){const s=c.handleChange,u=t.computed(()=>{const h=t.unref(c.value),d=t.unref(r);return Array.isArray(h)?h.findIndex(b=>le(b,d))>=0:le(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 w=yt(h);i||(w=ft(t.unref(c.value),t.unref(r),t.unref(o))),s(w,d)}return Object.assign(Object.assign({},c),{checked:u,checkedValue:r,uncheckedValue:o,handleChange:m})}return a(en(e,n,l))}function Cl({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 r=e||"modelValue",o=`update:${r}`;r in i.props&&(t.watch(n,a=>{le(a,tn(i,r))||i.emit(o,a)}),t.watch(()=>tn(i,r),a=>{if(a===ze&&n.value===void 0)return;const c=a===ze?void 0:a;le(c,Xn(n.value,i.props.modelModifiers))||l(c)}))}function tn(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:()=>gt().bails},label:{type:String,default:void 0},uncheckedValue:{type:null,default:void 0},modelValue:{type:null,default:ze},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"),r=t.toRef(e,"label"),o=t.toRef(e,"uncheckedValue"),a=t.toRef(e,"keepValue"),{errors:c,value:s,errorMessage:u,validate:m,handleChange:h,handleBlur:d,setTouched:b,resetField:w,handleReset:S,meta:L,checked:z,setErrors:R}=kt(i,l,{validateOnMount:e.validateOnMount,bails:e.bails,standalone:e.standalone,type:n.attrs.type,initialValue:El(e,n),checkedValue:n.attrs.value,uncheckedValue:o,label:r,validateOnValueUpdate:!1,keepValueOnUnmount:a}),$=function(Q,A=!0){h(Q,A),n.emit("update:modelValue",s.value)},k=q=>{be(n.attrs.type)||(s.value=yt(q))},V=function(Q){k(Q),n.emit("update:modelValue",s.value)},I=t.computed(()=>{const{validateOnInput:q,validateOnChange:Q,validateOnBlur:A,validateOnModelUpdate:D}=vl(e),H=[d,n.attrs.onBlur,A?m:void 0].filter(Boolean),J=[B=>$(B,q),n.attrs.onInput].filter(Boolean),ne=[B=>$(B,Q),n.attrs.onChange].filter(Boolean),Y={name:e.name,onBlur:H,onInput:J,onChange:ne};Y["onUpdate:modelValue"]=B=>$(B,D),be(n.attrs.type)&&z&&(Y.checked=z.value);const E=nn(e,n);return Wn(E,n.attrs)&&(Y.value=s.value),Y});function T(){return{field:I.value,value:s.value,meta:L,errors:c.value,errorMessage:u.value,validate:m,resetField:w,handleChange:$,handleInput:V,handleReset:S,handleBlur:d,setTouched:b,setErrors:R}}return n.expose({setErrors:R,setTouched:b,reset:w,validate:m,handleChange:h}),()=>{const q=t.resolveDynamicComponent(nn(e,n)),Q=Re(q,n,T);return q?t.h(q,Object.assign(Object.assign({},n.attrs),I.value),Q):Q}}});function nn(e,n){let l=e.as||"";return!e.as&&!n.slots.default&&(l="input"),l}function vl(e){var n,l,i,r;const{validateOnInput:o,validateOnChange:a,validateOnBlur:c,validateOnModelUpdate:s}=gt();return{validateOnInput:(n=e.validateOnInput)!==null&&n!==void 0?n:o,validateOnChange:(l=e.validateOnChange)!==null&&l!==void 0?l:a,validateOnBlur:(i=e.validateOnBlur)!==null&&i!==void 0?i:c,validateOnModelUpdate:(r=e.validateOnModelUpdate)!==null&&r!==void 0?r:s}}function El(e,n){return be(n.attrs.type)?zt(e,"modelValue")?e.modelValue:void 0:zt(e,"modelValue")?e.modelValue:n.attrs.value}let Bl=0;function Ol(e){var n;const l=Bl++;let i=!1;const r=t.ref({}),o=t.ref(!1),a=t.ref(0),c=[],s=t.reactive(Z(t.unref(e==null?void 0:e.initialValues)||{})),{errorBag:u,setErrorBag:m,setFieldErrorBag:h}=Nl(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=r.value[f];return Array.isArray(g)?g[0]:g}function w(f){return!!r.value[f]}const S=t.computed(()=>W(r.value).reduce((f,g)=>{const F=b(g);return F&&(f[g]=t.unref(F.label||F.name)||""),f},{})),L=t.computed(()=>W(r.value).reduce((f,g)=>{var F;const M=b(g);return M&&(f[g]=(F=M.bails)!==null&&F!==void 0?F:!0),f},{})),z=Object.assign({},(e==null?void 0:e.initialErrors)||{}),R=(n=e==null?void 0:e.keepValuesOnUnmount)!==null&&n!==void 0?n:!1,{initialValues:$,originalInitialValues:k,setInitialValues:V}=Il(r,s,e==null?void 0:e.initialValues),I=Vl(r,s,k,d),T=e==null?void 0:e.validationSchema,q=Rt(yn,5),Q=Rt(yn,5),A=mt(async f=>await f==="silent"?q():Q(),(f,[g])=>{const F=D.fieldsByPath.value||{},M=W(D.errorBag.value);return[...new Set([...W(f.results),...W(F),...M])].reduce((G,K)=>{const de=F[K],xe=(f.results[K]||{errors:[]}).errors,re={errors:xe,valid:!xe.length};if(G.results[K]=re,re.valid||(G.errors[K]=re.errors[0]),!de)return Y(K,xe),G;if(J(de,qe=>qe.meta.valid=re.valid),g==="silent")return G;const Po=Array.isArray(de)?de.some(qe=>qe.meta.validated):de.meta.validated;return g==="validated-only"&&!Po||J(de,qe=>qe.setState({errors:re.errors})),G},{valid:f.valid,results:{},errors:{}})}),D={formId:l,fieldsByPath:r,values:s,errorBag:u,errors:d,schema:T,submitCount:a,meta:I,isSubmitting:o,fieldArrays:c,keepValuesOnUnmount:R,validateSchema:t.unref(T)?A:void 0,validate:te,register:ce,unregister:ee,setFieldErrorBag:h,validateField:ie,setFieldValue:B,setValues:p,setErrors:E,setFieldError:Y,setFieldTouched:N,setTouched:P,resetForm:y,handleSubmit:Le,stageInitialValue:Fo,unsetInitialValue:To,setFieldInitialValue:hn,useFieldModel:O};function H(f){return Array.isArray(f)}function J(f,g){return Array.isArray(f)?f.forEach(g):g(f)}function ne(f){Object.values(r.value).forEach(g=>{!g||J(g,f)})}function Y(f,g){h(f,g)}function E(f){m(f)}function B(f,g,{force:F}={force:!1}){var M;const C=r.value[f],G=Z(g);if(!C){fe(s,f,G);return}if(H(C)&&((M=C[0])===null||M===void 0?void 0:M.type)==="checkbox"&&!Array.isArray(g)){const de=Z(ft(U(s,f)||[],g,void 0));fe(s,f,de);return}let K=g;!H(C)&&C.type==="checkbox"&&!F&&!i&&(K=Z(ft(U(s,f),g,t.unref(C.uncheckedValue)))),fe(s,f,K)}function p(f){W(s).forEach(g=>{delete s[g]}),W(f).forEach(g=>{B(g,f[g])}),c.forEach(g=>g&&g.reset())}function x(f){const{value:g}=Wt(f);return t.watch(g,()=>{w(t.unref(f))||te({mode:"validated-only"})},{deep:!0}),g}function O(f){return Array.isArray(f)?f.map(x):x(f)}function N(f,g){const F=r.value[f];F&&J(F,M=>M.setTouched(g))}function P(f){W(f).forEach(g=>{N(g,!!f[g])})}function y(f){i=!0,f!=null&&f.values?(V(f.values),p(f==null?void 0:f.values)):(V(k.value),p(k.value)),ne(g=>g.resetField()),f!=null&&f.touched&&P(f.touched),E((f==null?void 0:f.errors)||{}),a.value=(f==null?void 0:f.submitCount)||0,t.nextTick(()=>{i=!1})}function v(f,g){const F=t.markRaw(f),M=g;if(!r.value[M]){r.value[M]=F;return}const C=r.value[M];C&&!Array.isArray(C)&&(r.value[M]=[C]),r.value[M]=[...r.value[M],F]}function _(f,g){const F=g,M=r.value[F];if(!!M){if(!H(M)&&f.id===M.id){delete r.value[F];return}if(H(M)){const C=M.findIndex(G=>G.id===f.id);if(C===-1)return;M.splice(C,1),M.length||delete r.value[F]}}}function ce(f){const g=t.unref(f.name);v(f,g),t.isRef(f.name)&&t.watch(f.name,async(M,C)=>{await t.nextTick(),_(f,C),v(f,M),(d.value[C]||d.value[M])&&(Y(C,void 0),ie(M)),await t.nextTick(),w(C)||dt(s,C)});const F=t.unref(f.errorMessage);F&&(z==null?void 0:z[g])!==F&&ie(g),delete z[g]}function ee(f){const g=t.unref(f.name),F=r.value[g],M=!!F&&H(F);_(f,g),t.nextTick(()=>{var C;const G=(C=t.unref(f.keepValueOnUnmount))!==null&&C!==void 0?C:t.unref(R),K=U(s,g);if(M&&(F===r.value[g]||!r.value[g])&&Array.isArray(K)&&!G){const xe=K.findIndex(re=>le(re,t.unref(f.checkedValue)));if(xe>-1){const re=[...K];re.splice(xe,1),B(g,re,{force:!0})}}if(!w(g)){if(Y(g,void 0),G||M&&!Lt(U(s,g)))return;dt(s,g)}})}async function te(f){if(ne(C=>C.meta.validated=!0),D.validateSchema)return D.validateSchema((f==null?void 0:f.mode)||"force");const g=await Promise.all(Object.values(r.value).map(C=>{const G=Array.isArray(C)?C[0]:C;return G?G.validate(f).then(K=>({key:t.unref(G.name),valid:K.valid,errors:K.errors})):Promise.resolve({key:"",valid:!0,errors:[]})})),F={},M={};for(const C of g)F[C.key]={valid:C.valid,errors:C.errors},C.errors.length&&(M[C.key]=C.errors[0]);return{valid:g.every(C=>C.valid),results:F,errors:M}}async function ie(f){const g=r.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 Le(f,g){return function(M){return M instanceof Event&&(M.preventDefault(),M.stopPropagation()),P(W(r.value).reduce((C,G)=>(C[G]=!0,C),{})),o.value=!0,a.value++,te().then(C=>{if(C.valid&&typeof f=="function")return f(Z(s),{evt:M,setErrors:E,setFieldError:Y,setTouched:P,setFieldTouched:N,setValues:p,setFieldValue:B,resetForm:y});!C.valid&&typeof g=="function"&&g({values:Z(s),evt:M,errors:C.errors,results:C.results})}).then(C=>(o.value=!1,C),C=>{throw o.value=!1,C})}}function hn(f,g){fe($.value,f,Z(g))}function To(f){dt($.value,f)}function Fo(f,g,F=!1){fe(s,f,g),hn(f,g),F&&!(e!=null&&e.initialValues)&&fe(k.value,f,Z(g))}async function yn(){const f=t.unref(T);return f?ve(f)?await cl(f,s):await dl(f,s,{names:S.value,bailsMap:L.value}):{valid:!0,results:{},errors:{}}}const Mo=Le((f,{evt:g})=>{Dt(g)&&g.target.submit()});return t.onMounted(()=>{if(e!=null&&e.initialErrors&&E(e.initialErrors),e!=null&&e.initialTouched&&P(e.initialTouched),e!=null&&e.validateOnMount){te();return}D.validateSchema&&D.validateSchema("silent")}),t.isRef(T)&&t.watch(T,()=>{var f;(f=D.validateSchema)===null||f===void 0||f.call(D,"validated-only")}),t.provide(me,D),process.env.NODE_ENV!=="production"&&(hl(D),t.watch(()=>Object.assign(Object.assign({errors:u.value},I.value),{values:s,isSubmitting:o.value,submitCount:a.value}),ke,{deep:!0})),{errors:d,meta:I,values:s,isSubmitting:o,submitCount:a,validate:te,validateField:ie,handleReset:()=>y(),resetForm:y,handleSubmit:Le,submitForm:Mo,setFieldError:Y,setErrors:E,setFieldValue:B,setValues:p,setFieldTouched:N,setTouched:P,useFieldModel:O}}function Vl(e,n,l,i){const r={touched:"some",pending:"some",valid:"every"},o=t.computed(()=>!le(n,t.unref(l)));function a(){const s=Object.values(e.value).flat(1).filter(Boolean);return W(r).reduce((u,m)=>{const h=r[m];return u[m]=s[h](d=>d.meta[m]),u},{})}const c=t.reactive(a());return t.watchEffect(()=>{const s=a();c.touched=s.touched,c.valid=s.valid,c.pending=s.pending}),t.computed(()=>Object.assign(Object.assign({initialValues:t.unref(l)},c),{valid:c.valid&&!W(i.value).length,dirty:o.value}))}function Il(e,n,l){const i=t.ref(Z(t.unref(l))||{}),r=t.ref(Z(t.unref(l))||{});function o(a,c=!1){i.value=Z(a),r.value=Z(a),c&&W(e.value).forEach(s=>{const u=e.value[s],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,s);fe(n,s,Z(h))})}return t.isRef(l)&&t.watch(l,a=>{o(a,!0)},{deep:!0}),{initialValues:i,originalInitialValues:r,setInitialValues:o}}function Nl(e){const n=t.ref({});function l(o){return Array.isArray(o)?o:o?[o]:[]}function i(o,a){if(!a){delete n.value[o];return}n.value[o]=l(a)}function r(o){n.value=W(o).reduce((a,c)=>{const s=o[c];return s&&(a[c]=l(s)),a},{})}return e&&r(e),{errorBag:n,setErrorBag:r,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"),r=t.toRef(e,"keepValues"),{errors:o,values:a,meta:c,isSubmitting:s,submitCount:u,validate:m,validateField:h,handleReset:d,resetForm:b,handleSubmit:w,setErrors:S,setFieldError:L,setFieldValue:z,setValues:R,setFieldTouched:$,setTouched:k}=Ol({validationSchema:i.value?i:void 0,initialValues:l,initialErrors:e.initialErrors,initialTouched:e.initialTouched,validateOnMount:e.validateOnMount,keepValuesOnUnmount:r}),V=w((A,{evt:D})=>{Dt(D)&&D.target.submit()},e.onInvalidSubmit),I=e.onSubmit?w(e.onSubmit,e.onInvalidSubmit):V;function T(A){at(A)&&A.preventDefault(),d(),typeof n.attrs.onReset=="function"&&n.attrs.onReset()}function q(A,D){return w(typeof A=="function"&&!D?A:D,e.onInvalidSubmit)(A)}function Q(){return{meta:c.value,errors:o.value,values:a,isSubmitting:s.value,submitCount:u.value,validate:m,validateField:h,handleSubmit:q,handleReset:d,submitForm:V,setErrors:S,setFieldError:L,setFieldValue:z,setValues:R,setFieldTouched:$,setTouched:k,resetForm:b}}return n.expose({setFieldError:L,setErrors:S,setFieldValue:z,setValues:R,setFieldTouched:$,setTouched:k,resetForm:b,validate:m,validateField:h}),function(){const D=e.as==="form"?e.as:t.resolveDynamicComponent(e.as),H=Re(D,n,Q);if(!e.as)return H;const J=e.as==="form"?{novalidate:!0}:{};return t.h(D,Object.assign(Object.assign(Object.assign({},J),n.attrs),{onSubmit:I,onReset:T}),H)}}});function Al(e){const n=Ee(me,void 0),l=t.ref([]),i=()=>{},r={fields:l,remove:i,push:i,swap:i,insert:i,update:i,replace:i,prepend:i,move:i};if(!n)return ut("FieldArray requires being a child of `<Form/>` or `useForm` being called before it. Array fields may not work correctly"),r;if(!t.unref(e))return ut("FieldArray requires a field path to be provided, did you forget to pass the `name` prop?"),r;const o=n.fieldArrays.find($=>t.unref($.path)===t.unref(e));if(o)return o;let a=0;function c(){const $=U(n==null?void 0:n.values,t.unref(e),[])||[];l.value=$.map(u),s()}c();function s(){const $=l.value.length;for(let k=0;k<$;k++){const V=l.value[k];V.isFirst=k===0,V.isLast=k===$-1}}function u($){const k=a++;return{key:k,value:t.computed({get(){const I=U(n==null?void 0:n.values,t.unref(e),[])||[],T=l.value.findIndex(q=>q.key===k);return T===-1?$:I[T]},set(I){const T=l.value.findIndex(q=>q.key===k);if(T===-1){ut("Attempting to update a non-existent array item");return}S(T,I)}}),isFirst:!1,isLast:!1}}function m($){const k=t.unref(e),V=U(n==null?void 0:n.values,k);if(!V||!Array.isArray(V))return;const I=[...V];I.splice($,1),n==null||n.unsetInitialValue(k+`[${$}]`),n==null||n.setFieldValue(k,I),l.value.splice($,1),s()}function h($){const k=t.unref(e),V=U(n==null?void 0:n.values,k),I=Ce(V)?[]:V;if(!Array.isArray(I))return;const T=[...I];T.push($),n==null||n.stageInitialValue(k+`[${T.length-1}]`,$),n==null||n.setFieldValue(k,T),l.value.push(u($)),s()}function d($,k){const V=t.unref(e),I=U(n==null?void 0:n.values,V);if(!Array.isArray(I)||!($ in I)||!(k in I))return;const T=[...I],q=[...l.value],Q=T[$];T[$]=T[k],T[k]=Q;const A=q[$];q[$]=q[k],q[k]=A,n==null||n.setFieldValue(V,T),l.value=q,s()}function b($,k){const V=t.unref(e),I=U(n==null?void 0:n.values,V);if(!Array.isArray(I)||I.length<$)return;const T=[...I],q=[...l.value];T.splice($,0,k),q.splice($,0,u(k)),n==null||n.setFieldValue(V,T),l.value=q,s()}function w($){const k=t.unref(e);n==null||n.setFieldValue(k,$),c()}function S($,k){const V=t.unref(e),I=U(n==null?void 0:n.values,V);!Array.isArray(I)||I.length-1<$||n==null||n.setFieldValue(`${V}[${$}]`,k)}function L($){const k=t.unref(e),V=U(n==null?void 0:n.values,k),I=Ce(V)?[]:V;if(!Array.isArray(I))return;const T=[$,...I];n==null||n.stageInitialValue(k+`[${T.length-1}]`,$),n==null||n.setFieldValue(k,T),l.value.unshift(u($)),s()}function z($,k){const V=t.unref(e),I=U(n==null?void 0:n.values,V),T=Ce(I)?[]:[...I];if(!Array.isArray(I)||!($ in I)||!(k in I))return;const q=[...l.value],Q=q[$];q.splice($,1),q.splice(k,0,Q);const A=T[$];T.splice($,1),T.splice(k,0,A),n==null||n.setFieldValue(V,T),l.value=q,s()}const R={fields:l,remove:m,push:h,swap:d,insert:b,update:S,replace:w,prepend:L,move:z};return n.fieldArrays.push(Object.assign({path:e,reset:c},R)),t.onBeforeUnmount(()=>{const $=n.fieldArrays.findIndex(k=>t.unref(k.path)===t.unref(e));$>=0&&n.fieldArrays.splice($,1)}),R}t.defineComponent({name:"FieldArray",inheritAttrs:!1,props:{name:{type:String,required:!0}},setup(e,n){const{push:l,remove:i,swap:r,insert:o,replace:a,update:c,prepend:s,move:u,fields:m}=Al(t.toRef(e,"name"));function h(){return{fields:m.value,push:l,remove:i,swap:r,insert:o,update:c,replace:a,prepend:s,move:u}}return n.expose({push:l,remove:i,swap:r,insert:o,update:c,replace:a,prepend:s,move:u}),()=>Re(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 r(){return{message:i.value}}return()=>{if(!i.value)return;const o=e.as?t.resolveDynamicComponent(e.as):e.as,a=Re(o,n,r),c=Object.assign({role:"alert"},n.attrs);return!o&&(Array.isArray(a)||!a)&&(a==null?void 0:a.length)?a:(Array.isArray(a)||!a)&&!(a!=null&&a.length)?t.h(o||"span",c,i.value):t.h(o,c,a)}}});function Ve(e,n){var a,c,s,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"&&(((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)==="checkbox"&&(((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)==="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?kt(e,n==null?void 0:n.rules,n==null?void 0:n.opts):o?Fl(n==null?void 0:n.error,n==null?void 0:n.selected):l||i||r?Tl(n==null?void 0:n.error,n==null?void 0:n.modelValue):kt(e)}function Tl(e,n){return{value:t.ref(n!=null?n:""),errorMessage:e}}function Fl(e,n){return{value:t.ref(n),errorMessage:e}}const Ml={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Pl=[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 Ll(e,n){return t.openBlock(),t.createElementBlock("svg",Ml,Pl)}const ql={name:"material-symbols-done",render:Ll},Dl=["id","data-testid"],zl=["for","data-testid","data-required"],jl={class:"container-input"},Rl=["id","data-testid"],Ql={inheritAttrs:!1},Ie=t.defineComponent({...Ql,__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(),r=t.computed(()=>!!(i!=null&&i.icon)),o=t.computed(()=>{var d;return(d=l.name)!=null?d:""}),{value:a,errorMessage:c}=Ve(o.value,{component:"input",error:t.computed(()=>l.error),modelValue:l.modelValue,rules:l.rules,opts:l.opts,useFieldParent:l.useField}),s=t.computed(()=>!!l.loadingText||!!(c!=null&&c.value)||!!l.successText||!!l.helperText),u=t.computed(()=>s.value?`input-text-describe-${l.id}`:null),m=t.computed(()=>{var d;return l.loadingText&&l.isLoading?{text:l.loadingText,type:"loading"}:(d=c==null?void 0:c.value)!=null&&d.length?{text:c==null?void 0:c.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,zl)):t.createCommentVNode("",!0),t.createElementVNode("div",jl,[t.createVNode(Ft,t.mergeProps(d.$attrs,{id:`text-input-${e.id}`,modelValue:t.unref(a),"onUpdate:modelValue":[b[0]||(b[0]=w=>t.isRef(a)?a.value=w:null),h],size:e.size,name:t.unref(o),mask:e.mask,placeholder:e.placeholder,"data-required":e.required,"has-feedback-icon":t.unref(r),error:!!t.unref(c),disabled:e.disabled,"aria-invalid":!!t.unref(c),"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(Bt,{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(ql),{key:0,"aria-hidden":"true",class:"text-feedback-positive-pure"})):t.renderSlot(d.$slots,"icon",{key:1})],2))]),t.unref(s)?(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,Rl)):t.createCommentVNode("",!0)],10,Dl))}}),_o="",_l={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Hl=[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 Ul(e,n){return t.openBlock(),t.createElementBlock("svg",_l,Hl)}const Zl={name:"iconoir-eye-empty",render:Ul},Gl={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Yl=[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 Wl(e,n){return t.openBlock(),t.createElementBlock("svg",Gl,Yl)}const Jl={name:"iconoir-eye-off",render:Wl},Kl=["aria-label"],Qe=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,r)=>(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:r[0]||(r[0]=o=>n.value=!n.value)},[t.withDirectives(t.createVNode(t.unref(Zl),{class:"password-feedback-icon","aria-hidden":"true"},null,512),[[t.vShow,n.value]]),t.withDirectives(t.createVNode(t.unref(Jl),{class:"password-feedback-icon","aria-hidden":"true"},null,512),[[t.vShow,!n.value]])],8,Kl)]),_:1},8,["id","type","label","name","required","size","helper-text","placeholder","error","model-value","use-field","rules","opts"]))}}),Zo="",Xl=["id","data-testid"],ei=["id","data-testid","for","data-required"],ti=["id","data-testid","data-required","placeholder","aria-invalid","aria-describedby"],ni=["id","data-testid"],_e=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:r,errorMessage:o}=Ve(i.value,{component:"input",error:t.computed(()=>l.error),modelValue:l.modelValue,rules:l.rules,opts:l.opts,useFieldParent:l.useField}),a=t.computed(()=>!!(o!=null&&o.value)||!!l.helperText),c=t.computed(()=>a.value?`input-textarea-describe-${l.id}`:void 0),s=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({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,ei)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(t.unref(r))+" ",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(r)?r.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(o),"aria-describedby":t.unref(c),onInput:u}),null,16,ti),[[t.vModelText,t.unref(r)]]),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(s).type}`])},t.toDisplayString(t.unref(s).text),11,ni)):t.createCommentVNode("",!0)],10,Xl)}}}),Go="";Ie.install=e=>{e.component("SolInputText",Ie)},Qe.install=e=>{e.component("SolInputTextPassword",Qe)},_e.install=e=>{e.component("SolInputTextarea",_e)};const li=["id","aria-checked","aria-labelledby","data-testid","checked","value","name"],ii=["id","for","data-testid"],He=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"],setup(e,{emit:n}){return(l,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["sol-switch-core",[l.$props.class,`-text-${e.textDirection}`,{"-stretch-label":e.stretchLabel}]])},[t.createElementVNode("input",t.mergeProps(l.$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[0]||(i[0]=r=>{var o;return n("change",(o=e.value)!=null?o:!!e.checked)})}),null,16,li),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,ii)],2))}}),Yo="";He.install=e=>{e.component("SolSwitch",He)};const ri=["id","data-testid","checked","value","name"],oi=["for"],ai={inheritAttrs:!1},$e=t.defineComponent({...ai,__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]=r=>n("change",e.value))}),null,16,ri),t.createElementVNode("label",{class:"label",for:`radio-${e.name}-${e.id}`},t.toDisplayString(e.label),9,oi)],2))}}),Wo="",si=["id","data-testid","aria-labelledby"],ci=["id","data-testid"],di=["id","data-testid"],Ue=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:r,errorMessage:o}=Ve(i.value,{component:"radio",error:t.computed(()=>l.error),modelValue:l.modelValue,rules:l.rules,opts:l.opts,useFieldParent:l.useField}),a=t.computed(()=>!!(o!=null&&o.value)||!!l.helperText),c=t.computed(()=>a.value?`radios-describe-${l.id}`:null),s=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(h){return r.value===h}function m(h){r.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,ci)]),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,w)=>{var S;return t.openBlock(),t.createElementBlock("li",{key:w},[t.createVNode($e,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(o),"aria-invalid":!!t.unref(o),"aria-describedby":t.unref(c),onChange:L=>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(s).type}`])},t.toDisplayString(t.unref(s).text),11,di)):t.createCommentVNode("",!0)],8,si))}}),Jo="";$e.install=e=>{e.component("SolRadio",$e)},Ue.install=e=>{e.component("SolRadioGroup",Ue)};const ui=["id","indeterminate","data-testid","checked","value","name"],fi=["for"],mi={inheritAttrs:!1},he=t.defineComponent({...mi,__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]=r=>n("change",e.value))}),null,16,ui),t.createElementVNode("label",{class:"label",for:`checkbox-${e.name}-${e.id}`},t.toDisplayString(e.label),9,fi)],2))}}),Ko="",hi=["id","data-testid","aria-labelledby"],yi=["id","data-testid"],gi=["id","data-testid"],Ze=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:r,errorMessage:o}=Ve(i.value,{component:"checkbox",error:t.computed(()=>l.error),modelValue:l.modelValue,rules:l.rules,useFieldParent:l.useField}),a=t.computed(()=>!!(o!=null&&o.value)||!!l.helperText),c=t.computed(()=>a.value?`checkboxes-describe-${l.id}`:null),s=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 b;return(b=r.value)==null?void 0:b.includes(d)}function m(d){return Array.isArray(r.value)?[...r.value,d]:[d]}function h(d){var w;n("change",d.value);const b=u(d.value)?(w=r.value)==null?void 0:w.filter(S=>S!==d.value):m(d.value);r.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,yi)]),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,(w,S)=>{var L;return t.openBlock(),t.createElementBlock("li",{key:S},[t.createVNode(he,t.mergeProps(d.$attrs,{id:(L=w==null?void 0:w.id)!=null?L:`${w.value}`,class:["checkbox",{"mb-micro":e.direction==="column","mr-micro":e.direction==="row"}],label:w.label,name:w.name,value:w.value,checked:u(w.value),error:!!t.unref(o),"aria-invalid":!!t.unref(o),"aria-describedby":t.unref(c),onChange:z=>h(w)}),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(s).type}`])},t.toDisplayString(t.unref(s).text),11,gi)):t.createCommentVNode("",!0)],8,hi))}}),Xo="";he.install=e=>{e.component("SolCheckbox",he)},Ze.install=e=>{e.component("SolCheckboxGroup",Ze)};var ln;const Ne=typeof window<"u",bi=e=>typeof e=="string",pt=()=>{};Ne&&((ln=window==null?void 0:window.navigator)==null?void 0:ln.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function ki(e){return typeof e=="function"?e():t.unref(e)}function pi(e){return e}function rn(e){return t.getCurrentScope()?(t.onScopeDispose(e),!0):!1}function $i(e,n=!0){t.getCurrentInstance()?t.onBeforeMount(e):n?e():t.nextTick(e)}function wi(e,n=!0){t.getCurrentInstance()?t.onMounted(e):n?e():t.nextTick(e)}function Ae(e){var n;const l=ki(e);return(n=l==null?void 0:l.$el)!=null?n:l}const $t=Ne?window:void 0;Ne&&window.document,Ne&&window.navigator,Ne&&window.location;function Ge(...e){let n,l,i,r;if(bi(e[0])?([l,i,r]=e,n=$t):[n,l,i,r]=e,!n)return pt;let o=pt;const a=t.watch(()=>Ae(n),s=>{o(),s&&(s.addEventListener(l,i,r),o=()=>{s.removeEventListener(l,i,r),o=pt})},{immediate:!0,flush:"post"}),c=()=>{a(),o()};return rn(c),c}function on(e,n,l={}){const{window:i=$t,ignore:r,capture:o=!0,detectIframe:a=!1}=l;if(!i)return;const c=t.ref(!0);let s;const u=d=>{i.clearTimeout(s);const b=Ae(e),w=d.composedPath();!b||b===d.target||w.includes(b)||!c.value||r&&r.length>0&&r.some(S=>{const L=Ae(S);return L&&(d.target===L||w.includes(L))})||n(d)},m=[Ge(i,"click",u,{passive:!0,capture:o}),Ge(i,"pointerdown",d=>{const b=Ae(e);c.value=!!b&&!d.composedPath().includes(b)},{passive:!0}),Ge(i,"pointerup",d=>{if(d.button===0){const b=d.composedPath();d.composedPath=()=>b,s=i.setTimeout(()=>u(d),50)}},{passive:!0}),a&&Ge(i,"blur",d=>{var b;const w=Ae(e);((b=document.activeElement)==null?void 0:b.tagName)==="IFRAME"&&!(w!=null&&w.contains(document.activeElement))&&n(d)})].filter(Boolean);return()=>m.forEach(d=>d())}function Si(e,n=!1){const l=t.ref(),i=()=>l.value=Boolean(e());return i(),wi(i,n),l}function xi(e,n={}){const{window:l=$t}=n,i=Si(()=>l&&"matchMedia"in l&&typeof l.matchMedia=="function");let r;const o=t.ref(!1),a=()=>{!i.value||(r||(r=l.matchMedia(e)),o.value=r.matches)};return $i(()=>{a(),r&&("addEventListener"in r?r.addEventListener("change",a):r.addListener(a),rn(()=>{"removeEventListener"in r?r.removeEventListener("change",a):r.removeListener(a)}))}),o}const wt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},St="__vueuse_ssr_handlers__";wt[St]=wt[St]||{},wt[St];var an;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(an||(an={}));var Ci=Object.defineProperty,sn=Object.getOwnPropertySymbols,vi=Object.prototype.hasOwnProperty,Ei=Object.prototype.propertyIsEnumerable,cn=(e,n,l)=>n in e?Ci(e,n,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[n]=l,Bi=(e,n)=>{for(var l in n||(n={}))vi.call(n,l)&&cn(e,l,n[l]);if(sn)for(var l of sn(n))Ei.call(n,l)&&cn(e,l,n[l]);return e};Bi({linear:pi},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});const Oi={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Vi=[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 Ii(e,n){return t.openBlock(),t.createElementBlock("svg",Oi,Vi)}const Ni={name:"mi-close",render:Ii},Ai=["id","data-testid","title","aria-describedby","aria-disabled","onKeydown"],Ti=["id"],Fi={class:"label"},Te=t.defineComponent({__name:"Chip",props:{id:null,label:null,selected:{type:Boolean},disabled:{type:Boolean},removable:{type:Boolean,default:!0}},emits:["close","update:selected"],setup(e,{emit:n}){const l=e;function i({code:r}){if(!l.disabled)switch(r){case"Enter":case"NumpadEnter":case"Space":return n("update:selected");case"Delete":case"Backspace":return l.removable&&n("close");default:return!1}}return(r,o)=>(t.openBlock(),t.createElementBlock("div",{id:`chip-${e.id}`,"data-testid":`chip-${e.id}`,class:t.normalizeClass(["sol-chip-core",{"-selected":e.selected,"-disabled":e.disabled}]),tabindex:"0",title:e.label,"aria-describedby":`chip-description-${e.id}`,"aria-disabled":e.disabled,onClick:o[1]||(o[1]=a=>n("update:selected")),onKeydown:t.withModifiers(i,["self"])},[t.createElementVNode("span",{id:`chip-description-${e.id}`,"z-index":"-1",class:"sr-only"},"Press Delete or Backspace to remove this Chip",8,Ti),t.createElementVNode("span",Fi,[t.renderSlot(r.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.label),1)])]),e.removable?(t.openBlock(),t.createElementBlock("i",{key:0,role:"presentation","aira-hidden":"true",class:"close",onClick:o[0]||(o[0]=t.withModifiers(a=>n("close"),["stop"]))},[t.createVNode(t.unref(Ni),{class:"icon"})])):t.createCommentVNode("",!0)],42,Ai))}}),na="",Mi={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Pi=[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 Li(e,n){return t.openBlock(),t.createElementBlock("svg",Mi,Pi)}const qi={name:"material-symbols-search",render:Li},Di=["id","data-testid","aria-multiselectable","aria-labelledby"],zi=["id","data-testid","selected","aria-selected","onClick","onKeyup"],ji={key:1},Ri={key:0,class:"no-data"},Qi=t.createElementVNode("p",null,"Sem resultado para essa busca",-1),_i=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}),(r,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,(a,c)=>(t.openBlock(),t.createElementBlock("li",{id:`option-${e.id}-${a.value}`,key:c,"data-testid":`option-${e.id}-${a.value}`,role:"option",tabindex:"-1",class:"select-option-item",style:t.normalizeStyle(`--item: ${c+1}`),selected:e.isSelected(a),"aria-selected":e.isSelected(a),onClick:s=>l("select",a),onKeyup:[t.withKeys(s=>l("select",a),["enter"]),t.withKeys(s=>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",ji,t.toDisplayString(a.name),1))],44,zi))),128)),e.options.length?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("li",Ri,[t.renderSlot(r.$slots,"no-data",{},()=>[t.createVNode(t.unref(qi),{class:"icon"}),Qi])]))],8,Di))}}),ia="",Hi={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Ui=[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 Zi(e,n){return t.openBlock(),t.createElementBlock("svg",Hi,Ui)}const Gi={name:"mi-search",render:Zi},Yi={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Wi=[t.createElementVNode("path",{fill:"currentColor",d:"m17 10l-5 6l-5-6h10z"},null,-1)];function Ji(e,n){return t.openBlock(),t.createElementBlock("svg",Yi,Wi)}const Ki={name:"mi-caret-down",render:Ji};function xt(e,n){function l({code:i}){var a;const r=i;(()=>{if(!(n!=null&&n.fallback))return!1;const c=s=>Array.isArray(s)?!s.includes(r):r!==s;return n!=null&&n.exclude?!e.hasOwnProperty(r)&&c(n.exclude):!e.hasOwnProperty(r)})()&&(n==null||n.fallback()),e.hasOwnProperty(r)&&((a=e[r])==null||a.call(e))}return{navigate:l}}function Ct({target:e,query:n}){const l=t.reactive({id:"",index:-1,rowIndex:-1});function i(d){const b=d!=null?d:l.index,w=e==null?void 0:e.value;h(),d!==void 0&&(l.index=d),setTimeout(()=>{var z;const S=w.children[b],L=n&&S.querySelector(n)?S.querySelector(n):S;l.id=(z=S==null?void 0:S.id)!=null?z:"",L==null||L.focus()},0)}function r(){l.index>0&&(l.index-=1,i())}function o(d){l.index<d-1&&(l.index+=1,i())}function a(){i(0)}function c(d){i(d-1)}function s({query:d,to:b}){var $,k;const w=l.index>=0?l.index:0,L=(e==null?void 0:e.value).children[w],z=Array.isArray(d)?d.flatMap(V=>Array.from(L.querySelectorAll(V))).filter(V=>V):Array.from(L.querySelectorAll(d));if(!z.length)return;const R=l.rowIndex<z.length-1;b==="RIGHT"&&R&&(l.rowIndex+=1,($=z[l.rowIndex])==null||$.focus()),b==="LEFT"&&(l.rowIndex=l.rowIndex>=0?l.rowIndex-1:-1,l.rowIndex<0?L.focus():(k=z[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:r,focusOnNextItem:o,focusOnFirstItem:a,focusOnLastItem:c,focusInsideRow:s}}const Xi=["data-testid"],er=["id","data-testid","data-required"],tr=["id","data-testid","disabled","aria-expanded","aria-labelledby","aria-label","aria-invalid","aria-describedby","aria-controls","onClick"],nr={key:0,class:"container-tags"},lr=["data-testid"],ir=["id","data-testid"],rr={class:"select-options-container"},or=t.createElementVNode("hr",{class:"text-neutral-high-medium"},null,-1),Ye=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(),r=t.ref(!1),o=t.ref(""),a=t.computed(()=>{var E;return l.fetchOnSearch?l.options:(E=l.options)==null?void 0:E.filter(B=>new RegExp(o.value,"gi").test(B.name))});on(i,()=>{r.value&&d()});const c=t.computed(()=>{var E;return(E=l.name)!=null?E:""}),{value:s,errorMessage:u}=Ve(c.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||(r.value?d():h())}function h(){r.value=!0}function d(){A(),n("closeDropdown")}function b(E){if(Array.isArray(s.value)){const B=s.value.findIndex(({value:p})=>p===E.value);return B===-1?[...s.value,E]:s.value.filter((p,x)=>x!==B)}return[E]}function w(E){const B=l.multiple?b(E):E;n("update:selected",B),s.value=B,l.closeOnSelect&&!l.multiple&&d()}function S(E){var B;return Array.isArray(s.value)?s.value.some(({value:p})=>p===E.value):E.value===((B=s==null?void 0:s.value)==null?void 0:B.value)}const L=t.ref(),z=t.ref();function R(){var E;l.searchable&&(q(),(E=L.value)==null||E.focus())}const{elementFocus:$,focusOnFirstItem:k,focusOnLastItem:V,focusOnNextItem:I,focusOnPreviousItem:T,resetStateFocus:q}=Ct({target:z}),{navigate:Q}=xt({Home:k,End:()=>V(l.options.length),ArrowUp:T,ArrowDown:()=>{!r.value&&h(),I(l.options.length)},Escape:d},{fallback:R,exclude:["Enter","NumpadEnter","Space"]});function A(){r.value=!1,o.value="",q()}function D(E){return B=>{E==="search"?L.value=B==null?void 0:B.input:z.value=B==null?void 0:B.list}}function H(){var B;const E=s.value;return(B=E==null?void 0:E.name)!=null?B:l.placeholder}const J=t.computed(()=>!!(u!=null&&u.value)||!!l.helperText),ne=t.computed(()=>J.value?`input-text-describe-${l.id}`:void 0),Y=t.computed(()=>{var E;return(E=u==null?void 0:u.value)!=null&&E.length?{text:u==null?void 0:u.value,type:"error"}:{text:l.helperText,type:"helper"}});return(E,B)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"el",ref:i,class:t.normalizeClass(["sol-select-core",`-${e.size}`]),"data-testid":`select-${e.id}`,onKeydownPassive:B[3]||(B[3]=(...p)=>t.unref(Q)&&t.unref(Q)(...p))},[t.renderSlot(E.$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,er)):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":r.value,"aria-labelledby":`select-label-${e.id}`,"aria-label":e.ariaLabel,"aria-invalid":!!t.unref(u),"aria-describedby":t.unref(ne),"aria-controls":`select-list-${e.id}`,onClick:t.withModifiers(m,["stop"])},[t.renderSlot(E.$slots,"toggle-dropdown",{toggle:{open:h,close:d,toggleDropdown:m},isOpen:r.value,select:w,selected:e.selected},()=>{var p;return[e.multiple&&Array.isArray(t.unref(s))&&((p=t.unref(s))==null?void 0:p.length)?(t.openBlock(),t.createElementBlock("div",nr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(s),(x,O)=>(t.openBlock(),t.createBlock(Te,{id:`select-value-selected-${e.id}-${x.value}`,key:O,label:x.name,onClick:t.withModifiers(N=>w(x),["stop"]),onClose:N=>w(x)},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,lr)),t.createVNode(t.unref(Ki),{"aria-hidden":"true",tabindex:"-1",class:t.normalizeClass(["icon",{"-open":r.value}])},null,8,["class"])]})],8,tr),t.unref(J)?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,ir)),[[t.vShow,!r.value]]):t.createCommentVNode("",!0),t.createVNode(t.Transition,{mode:"out-in",name:"dropdown"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",rr,[t.renderSlot(E.$slots,"search",{},()=>[e.searchable?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["search-container",{"-loading":e.loading}])},[t.createVNode(Ft,{id:`select-search-${e.id}`,ref:D("search"),modelValue:o.value,"onUpdate:modelValue":B[0]||(B[0]=p=>o.value=p),role:"combobox",class:"search",size:"small","aria-autocomplete":"list",placeholder:e.searchPlaceholder,"aria-expanded":r.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:B[1]||(B[1]=t.withModifiers(()=>{},["stop"])),onInput:B[2]||(B[2]=p=>{var x;return n("search",(x=p.target)==null?void 0:x.value)})},null,8,["id","modelValue","placeholder","aria-expanded","aria-owns","aria-controls","aria-activedescendant","aria-labelledby"]),t.createVNode(t.unref(Gi),{"aria-hidden":"true",class:"icon"})],2)):t.createCommentVNode("",!0),or,t.createVNode(_i,{id:e.id,ref:D("list"),options:t.unref(a),name:t.unref(c),multiple:e.multiple,"is-selected":S,onSelect:w},{"no-data":t.withCtx(()=>[t.renderSlot(E.$slots,"no-data")]),_:3},8,["id","options","name","multiple"])])],512),[[t.vShow,r.value]])]),_:3})],42,Xi))}}),aa="";Ye.install=e=>{e.component("SolSelect",Ye)},Te.install=e=>{e.component("SolChip",Te)};const ar=["id","data-testid","title"],We=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,ar))}}),sa="";We.install=e=>{e.component("SolTag",We)};const sr={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},cr=[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 dr(e,n){return t.openBlock(),t.createElementBlock("svg",sr,cr)}const ur={name:"material-symbols-check-circle-outline",render:dr},fr={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},mr=[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 hr(e,n){return t.openBlock(),t.createElementBlock("svg",fr,mr)}const yr={name:"material-symbols-warning-outline",render:hr},gr={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},br=[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 kr(e,n){return t.openBlock(),t.createElementBlock("svg",gr,br)}const pr={name:"material-symbols-cancel-outline",render:kr},$r={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},wr=[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 Sr(e,n){return t.openBlock(),t.createElementBlock("svg",$r,wr)}const xr={name:"material-symbols-info-outline",render:Sr},Cr=["id","data-testid"],vr={class:"container-content"},Er={class:"content"},Br={key:0,class:"title"},Je=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",vr,[e.feedback==="success"?(t.openBlock(),t.createBlock(t.unref(ur),{key:0,class:"icon","aria-hidden":"true"})):t.createCommentVNode("",!0),e.feedback==="warning"?(t.openBlock(),t.createBlock(t.unref(yr),{key:1,class:"icon","aria-hidden":"true"})):t.createCommentVNode("",!0),e.feedback==="error"?(t.openBlock(),t.createBlock(t.unref(pr),{key:2,class:"icon","aria-hidden":"true"})):t.createCommentVNode("",!0),e.feedback==="informative"?(t.openBlock(),t.createBlock(t.unref(xr),{key:3,class:"icon","aria-hidden":"true"})):t.createCommentVNode("",!0),t.createElementVNode("div",Er,[e.title?(t.openBlock(),t.createElementBlock("strong",Br,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(oe,{key:0,id:`alert-action-${e.id}`,variant:"secondary",size:"small",onClick:i[0]||(i[0]=r=>n("click"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.action),1)]),_:1},8,["id"])):t.createCommentVNode("",!0)],10,Cr))}}),ma="";Je.install=e=>{e.component("SolAlert",Je)};const Or={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Vr=[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 Ir(e,n){return t.openBlock(),t.createElementBlock("svg",Or,Vr)}const dn={name:"material-symbols-keyboard-arrow-down-rounded",render:Ir},Nr=["id","data-testid","aria-disabled"],Ar=["data-testid","tabindex"],Tr={class:"container-title"},Fr={class:"icon"},Mr=["data-testid"],Ke=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",Tr,[t.createElementVNode("span",Fr,[t.renderSlot(n.$slots,"icon")]),t.renderSlot(n.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(e.title),1)])]),t.createVNode(t.unref(dn),{class:"icon","aria-hidden":"true"})],8,Ar),t.createElementVNode("div",{"data-testid":`accordion-content-${e.id}`,class:"accordion-content"},[t.renderSlot(n.$slots,"default")],8,Mr)],10,Nr))}}),ya="";Ke.install=e=>{e.component("SolAccordion",Ke)};const Pr=["id","data-testid"],Lr=["id","aria-expanded"],qr=["id","data-testid","aria-labelledby"],we=t.defineComponent({__name:"Menu",props:{id:null,label:{default:"Teste"},position:{default:"bottom"}},setup(e){const n=t.ref();on(n,()=>{h()});const l=t.ref(!1),i=t.ref(),r=t.computed(()=>i.value?i.value.childElementCount:0),{resetStateFocus:o,focusOnPreviousItem:a,focusOnNextItem:c,focusOnFirstItem:s,focusOnLastItem:u}=Ct({target:i,query:'[role="menuitem"]'}),{navigate:m}=xt({Home:s,End:()=>u(r.value),ArrowUp:a,ArrowDown:()=>{!l.value&&d(),c(r.value)},Escape:h});function h(){l.value=!1,o()}function d(){l.value=!0}function b(){l.value?h():d()}return(w,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]=(...L)=>t.unref(m)&&t.unref(m)(...L))},[t.renderSlot(w.$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(w.$slots,"label",{isOpen:l.value},()=>[t.createTextVNode(t.toDisplayString(e.label),1)])],8,Lr)]),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(w.$slots,"default",{close:h})],10,qr),[[t.vShow,l.value]])],42,Pr))}}),ga="",Dr=["itemprop"],zr=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,Dr)],2))}}),ba="",jr=["id","data-testid"],Rr={key:0,"data-interactive":"",class:"selectable"},Qr={key:1,class:"column-item -image"},_r=["data-testid"],Hr={key:2,class:"menu-action","data-interactive":""},Ur=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 r(s){return s!=null?s:n.fallbackValue}function o(s){return i.value&&s===0}function a(s){return n.hasImage&&s===0}function c(s,u){return n.hasMenu&&s===0&&u===0}return(s,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"},[o(h)?(t.openBlock(),t.createElementBlock("div",Rr,[t.renderSlot(s.$slots,"selectable",{data:e.data,index:e.itemIndex,label:`${e.data[m[0]]}`})])):t.createCommentVNode("",!0),a(h)?(t.openBlock(),t.createElementBlock("div",Qr,[t.renderSlot(s.$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(s.$slots,`column:${d}`,{data:{key:d,value:e.data[d]},index:e.itemIndex,columnIndex:b,renderHeader:e.renderHeader,headers:e.headers},()=>{var w,S,L,z;return[t.createVNode(zr,{"data-testid":`listitem-${e.id}-${e.itemIndex}-${d}`,"item-prop":d,hide:(S=(w=e.headers)==null?void 0:w[d])==null?void 0:S.hide,align:(z=(L=e.headers)==null?void 0:L[d])==null?void 0:z.align,"is-highlight-value":e.isHighlight({key:d})},{property:t.withCtx(()=>[t.renderSlot(s.$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(s.$slots,`value:${d}`,{data:{key:d,value:e.data[d]},index:h,columnIndex:b,isHighlight:e.isHighlight},()=>[t.createTextVNode(t.toDisplayString(r(e.data[d])),1)])]),_:2},1032,["data-testid","item-prop","hide","align","is-highlight-value"])]})],12,_r))),128)),c(h,0)?(t.openBlock(),t.createElementBlock("div",Hr,[t.renderSlot(s.$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,jr))}}),ka="",Zr={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Gr=[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 Yr(e,n){return t.openBlock(),t.createElementBlock("svg",Zr,Gr)}const Wr={name:"material-symbols-more-vert",render:Yr},Jr=["id","data-testid","aria-label"],Xe=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 B;const i=e,r=t.useSlots(),o=t.computed(()=>!!(r!=null&&r.menu)),a=t.computed(()=>!!(r!=null&&r.image)),c=xi("(min-width: 1024px)"),s=t.computed(()=>{var p,x,O;return(x=(p=i.sortPositions)==null?void 0:p.mobile)!=null&&x.length?(O=i.sortPositions)==null?void 0:O.mobile:h()}),u=t.computed(()=>{var p;return(p=i.sortPositions)!=null&&p.desktop.length?i.sortPositions.desktop:Object.keys(i.data[0])}),m=t.computed(()=>c.value?[u.value]:s.value);function h(){return Object.keys(i.data[0]).reduce((x,O,N)=>{if(N===0)return x=[[O]];if(N===1)return x=[...x,[O]];const P=x==null?void 0:x.length,y=x==null?void 0:x[P-1];return Array.isArray(y)&&(y==null?void 0:y.length)<2?(x[P-1]=[...y,O],x):x=[...x,[O]]},[])}function d(p){var x,O;return(O=i.headers&&((x=i.headers[p])==null?void 0:x.text))!=null?O:p}function b(p){var x,O,N,P,y,v,_,ce,ee;if((x=i.headers)!=null&&x[p]){if(((N=(O=i.headers)==null?void 0:O[p])==null?void 0:N.width)&&c.value)return`--basis-width: ${(y=(P=i.headers)==null?void 0:P[p])==null?void 0:y.width}; --shrink: 0;`;if(((_=(v=i.headers)==null?void 0:v[p])==null?void 0:_.mobileWidth)&&!c.value)return`--basis-width: ${(ee=(ce=i.headers)==null?void 0:ce[p])==null?void 0:ee.mobileWidth}; --shrink: 0;`}}function w({key:p,value:x}){var O,N;return x?!0:p?!!((N=(O=i.headers)==null?void 0:O[p])!=null&&N.highlight):!1}const S=t.ref(),L=["[data-interactive] input","[data-interactive-element]","[data-interactive] button"],{elementFocus:z,focusInsideRow:R,focusOnFirstItem:$,focusOnLastItem:k,focusOnNextItem:V,focusOnPreviousItem:I,resetStateFocus:T}=Ct({target:S}),{navigate:q}=xt({Home:$,End:()=>k(i.data.length),ArrowUp:()=>!Q()&&I(),ArrowDown:()=>!Q()&&V(i.data.length),ArrowLeft:()=>z.id&&R({to:"LEFT",query:L}),ArrowRight:()=>z.id&&R({to:"RIGHT",query:L})},{fallback:T,exclude:["Enter","NumpadEnter","Space"]});function Q(){var p,x;if(document.activeElement&&((p=document.activeElement)==null?void 0:p.role)){const O=document.activeElement.role,N=(x=document.activeElement)==null?void 0:x.parentElement;return O==="menuitem"?!0:!!(()=>O==="none"&&(N==null?void 0:N.role)&&["menuitem","menu"].includes(N.role))()}return!1}const A=t.ref((B=i==null?void 0:i.selected)!=null?B:{});function D(p){if(A.value){const x=i.dataIdentifier.key,O=p[x];return i.selectMode&&i.selectMode==="checkbox"&&Array.isArray(A.value)?A.value.findIndex(P=>P[x]===O)>=0:A.value[x]===O}return!1}function H(p){A.value=p,l("listitem:selected",p),l("update:selected",A.value)}function J(p){const x=i.dataIdentifier.key,O=p[x],N=Array.isArray(A.value)?A.value:[],P=D(p)?N==null?void 0:N.filter(y=>y[x]!==O):ne(p);A.value=P,l("listitem:selected",p),l("update:selected",A.value)}function ne(p){var x;if(Array.isArray(A.value)){const O=i.dataIdentifier.key,N=A.value.findIndex(P=>P[O]===p[O]);return N===-1?[...A.value,p]:(x=A.value)==null?void 0:x.filter((P,y)=>y!==N)}return[p]}function Y(){const p=Object.keys(i.data[0]).includes(i.dataIdentifier.key);if(i.selectMode==="checkbox"&&p){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 E(){A.value=i.selectMode==="checkbox"&&Array.isArray(A.value)?[]:{},l("update:selected",A.value)}return n({unselectAll:E,selectAll:Y}),(p,x)=>(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:x[0]||(x[0]=(...O)=>t.unref(q)&&t.unref(q)(...O))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.data,(O,N)=>(t.openBlock(),t.createBlock(Ur,{id:e.id,key:N,headers:e.headers,data:O,"item-index":N,"is-selected":D(O),"sort-positions":t.unref(m),"fallback-value":e.fallbackValue,"has-image":t.unref(a),"has-menu":t.unref(o),"render-header":d,"is-highlight":w,"set-fixed-column-size":b,onClick:t.withModifiers(P=>l("listitem:click",{...O,index:N}),["self"]),onKeyup:[t.withKeys(t.withModifiers(P=>l("listitem:click",{...O,index:N}),["self"]),["enter"]),t.withKeys(t.withModifiers(P=>l("listitem:click",{...O,index:N}),["self"]),["space"])]},t.createSlots({selectable:t.withCtx(({data:P,label:y})=>{var v,_,ce,ee,te,ie;return[e.selectMode==="checkbox"?(t.openBlock(),t.createBlock(he,{key:0,id:`listitem-${P[(v=e.dataIdentifier)==null?void 0:v.key]}`,"hide-label":!0,label:y,checked:D(O),value:P[(_=e.dataIdentifier)==null?void 0:_.key],name:(ce=e.dataIdentifier.inputName)!=null?ce:e.id,onChange:Le=>J(P)},null,8,["id","label","checked","value","name","onChange"])):t.createCommentVNode("",!0),e.selectMode==="radio"?(t.openBlock(),t.createBlock($e,{key:1,id:`listitem-${P[(ee=e.dataIdentifier)==null?void 0:ee.key]}`,"hide-label":!0,label:y,checked:D(O),value:P[(te=e.dataIdentifier)==null?void 0:te.key],name:(ie=e.dataIdentifier.inputName)!=null?ie:e.id,onChange:Le=>H(P)},null,8,["id","label","checked","value","name","onChange"])):t.createCommentVNode("",!0)]}),"action-button":t.withCtx(({arias:P})=>[t.renderSlot(p.$slots,"action-button",{arias:P},()=>[t.createVNode(we,{id:`listitem-${e.id}-${N}`,position:"left"},{trigger:t.withCtx(({arias:y,id:v,toggle:_})=>[t.createVNode(oe,{id:v,"aria-haspopup":y.ariaHaspopup,"aria-expanded":y.ariaExpanded,role:y.role,size:"small",variant:"tertiary","aria-label":P.ariaLabel,class:"menu-button-trigger",onClick:_},{"icon-left":t.withCtx(()=>[t.createVNode(t.unref(Wr),{class:"text-2xs","aria-hidden":"true"})]),_:2},1032,["id","aria-haspopup","aria-expanded","role","aria-label","onClick"])]),default:t.withCtx(()=>[t.renderSlot(p.$slots,"menu")]),_:2},1032,["id"])])]),_:2},[t.unref(a)?{name:"image",fn:t.withCtx(({data:P})=>[t.renderSlot(p.$slots,"image",{data:P})]),key:"0"}:void 0,t.renderList(O,(P,y)=>({name:`column:${y}`,fn:t.withCtx(v=>[t.renderSlot(p.$slots,`column:${y}`,{data:v.data,index:v.index,columnIndex:N,renderHeader:d,headers:e.headers})])})),t.renderList(O,(P,y)=>({name:`header:${y}`,fn:t.withCtx(v=>[t.renderSlot(p.$slots,`header:${y}`,{data:v.data,index:v.index,columnIndex:v.columnIndex,renderHeader:v.renderHeader,headers:v.headers})])})),t.renderList(O,(P,y)=>({name:`value:${y}`,fn:t.withCtx(v=>[t.renderSlot(p.$slots,`value:${y}`,{data:v.data,index:v.index,columnIndex:v.columnIndex,isHighlight:v.isHighlight})])}))]),1032,["id","headers","data","item-index","is-selected","sort-positions","fallback-value","has-image","has-menu","onClick","onKeyup"]))),128))],40,Jr))}}),$a="";Xe.install=e=>{e.component("SolList",Xe)},we.install=e=>{e.component("SolMenu",we)};const Kr=["id"],Xr=["href","target"],Fe=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 r;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:(r=e.linkId)!=null?r: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,Xr)])],40,Kr)}}}),wa="";Fe.install=e=>{e.component("SolMenuItemLink",Fe)};const eo={class:"label-container"},to={class:"label"},et=t.defineComponent({__name:"MenuNavigationLinks",props:{id:null,label:null,linkItems:null},setup(e){return(n,l)=>(t.openBlock(),t.createBlock(we,{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",eo,[t.createElementVNode("span",to,t.toDisplayString(e.label),1),t.createVNode(t.unref(dn),{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,(r,o)=>{var a;return t.openBlock(),t.createBlock(Fe,{id:`${e.id}-${(a=r==null?void 0:r.id)!=null?a:r.text}`,key:o,"link-id":r.id,text:r.text,link:r.link,external:r.external,active:r.active,onClicked:i},{default:t.withCtx(()=>{var c;return[t.renderSlot(n.$slots,"default",{id:(c=r.id)!=null?c:e.id,active:r.active,link:r.link,text:r.text,external:r.external})]}),_:2},1032,["id","link-id","text","link","external","active","onClicked"])}),128))]),_:3},8,["id"]))}}),Sa="";et.install=e=>{e.component("SolMenuNavigationLinks",et)};const xa="",Ca="",va="",Ea="",un=12,Se={type:"success",timeout:5e3,showIcon:!0,showCloseButton:!0,position:"top-right",hideProgressBar:!1};function no(e,n){const l=t.reactive({id:null,intervalId:null,startTime:0,remaining:n}),i=t.ref(100);function r(){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 a(){clearInterval(l.intervalId),clearTimeout(l.id),i.value=100}return t.onMounted(()=>{if(n<=0)return!1}),t.onUnmounted(()=>{a()}),{start:o,stop:r,clear:a,progress:i}}function lo(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 fn=(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))(fn||{});const io={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},ro=[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 oo(e,n){return t.openBlock(),t.createElementBlock("svg",io,ro)}const ao={name:"material-symbols-check-circle",render:oo},so={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},co=[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 uo(e,n){return t.openBlock(),t.createElementBlock("svg",so,co)}const fo={name:"material-symbols-cancel",render:uo},mo={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},ho=[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 yo(e,n){return t.openBlock(),t.createElementBlock("svg",mo,ho)}const go={name:"material-symbols-error-circle-rounded",render:yo},bo=["id","data-testid"],ko={class:"content-wrapper"},po={key:0,class:"icon-container","aria-hidden":"true"},$o={class:"content"},wo={key:0,class:"description"},So=t.defineComponent({__name:"Toast",props:{id:null,type:{default:Se.type},visible:{type:Boolean,default:!1},title:null,description:null,actionText:null,timeout:null,hideProgressBar:{type:Boolean,default:Se.hideProgressBar},showIcon:{type:Boolean,default:Se.showIcon},offset:{default:0},onAction:null,onCloseHandler:null,position:{default:Se.position}},setup(e){const n=e,{start:l,stop:i,progress:r}=no(()=>{var m;(m=n.onCloseHandler)==null||m.call(n)},n.timeout),{stylePosition:o}=lo(()=>({offset:n.offset,position:n.position})),a=t.computed(()=>n.title&&n.description);function c(){n.timeout>0&&i()}function s(){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(fn)[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(a)}]]),onKeyup:h[0]||(h[0]=t.withKeys((...d)=>e.onCloseHandler&&e.onCloseHandler(...d),["esc"])),onMouseenter:c,onMouseleave:s,onFocusin:c,onFocusout:s},[t.createElementVNode("section",ko,[e.showIcon?(t.openBlock(),t.createElementBlock("div",po,[t.renderSlot(m.$slots,"icon-status",{type:e.type},()=>[e.type==="success"?(t.openBlock(),t.createBlock(t.unref(ao),{key:0,class:"icon"})):t.createCommentVNode("",!0),["informative","warning"].includes(e.type)?(t.openBlock(),t.createBlock(t.unref(go),{key:1,class:"icon"})):t.createCommentVNode("",!0),e.type==="error"?(t.openBlock(),t.createBlock(t.unref(fo),{key:2,class:"icon"})):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0),t.createElementVNode("div",$o,[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",wo,[t.renderSlot(m.$slots,"description",{},()=>[t.createTextVNode(t.toDisplayString(e.description),1)])])):t.createCommentVNode("",!0)])]),t.createVNode(oe,{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(r)}%`})},null,4))],46,bo)):t.createCommentVNode("",!0)]),_:3},8,["name"]))}}),Ia="",Me={"top-left":[],"top-right":[],"top-center":[],"bottom-left":[],"bottom-right":[],"bottom-center":[]};function xo(){mn(0)}function mn(e=2){Object.entries(Me).forEach(([n,l])=>{l.length>e&&l.map(r=>{var o;return(o=r.toastVNode.props)==null?void 0:o.id}).forEach(r=>vt(r,n))})}function Co(e){return typeof e=="string"?{description:e,actionText:"Fechar"}:{actionText:"Fechar",...e}}function vo(e,n=Se){const l=window.innerWidth<1024?"bottom-center":"top-right";return e?Bo({...e,position:l}):n}function Eo(){const n=Pe(0),l=Pe(0,"success"),i=Pe(0,"error"),r=Pe(0,"warning"),o=Pe(0,"informative");return{createToast:n,createErrorToast:i,createSuccessToast:l,createInformativeToast:o,createWarningToast:r,clearAllToasts:xo}}function Pe(e,n){return function(l,i){const r=e++,o=vo({...i,type:n});return mn(),Oo(r,o,Co(l)),{close:()=>vt(r,o.position)}}}function Bo(e){const n={...Se,...e,showIcon:e.showIcon};return n.hideProgressBar=!!(n.timeout&&(n==null?void 0:n.timeout)<=0),e.hideProgressBar&&(n.hideProgressBar=e.hideProgressBar),n}function Oo(e,n,l){setTimeout(()=>{const i=Io(n,Me,un),r=document.createElement("div");document.body.appendChild(r);const o=t.createVNode(So,Vo(n,e,i,vt,l));t.render(o,r),Me[n.position].push({toastVNode:o,container:r}),o.component&&(o.component.props.visible=!0)},1)}function Vo(e,n,l,i,r){return{...e,...r,id:n,offset:l,visible:!1,onCloseHandler(){i(n,e.position?e.position:"top-right")}}}function Io(e,n,l){if(!e.position)throw new Error("no position");return n[e.position].reduce((i,{toastVNode:r})=>(i+=r.el.offsetHeight+l||0,i),l)}function No(e,n,l,i){for(let r=e;r<n.length;r++){const{toastVNode:o}=n[r];if(!o.el)return;const a=l.split("-")[0]||"top",c=parseInt(o.el.style[a],10)-i-un;if(!o.component)return;o.component.props.offset=c}}function vt(e,n){var s;const l=Me[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:r,toastVNode:o}=l[i],a=(s=o==null?void 0:o.el)==null?void 0:s.offsetHeight;if(Me[n].splice(i,1),No(i,l,n,a),!o.component)return;const c=o.component.props;c.visible=!1,c.onClose&&c.onClose(),setTimeout(()=>{t.render(null,r),document.body.removeChild(r)},1e3)}console.log("%c\u{1F33B}[Girassol]\u{1F33B}","padding: 8px;background: #212121;color: gold; font-family: 'Fira code'; font-weight: bold; font-size: 1.2rem");const Et={SolButton:oe,SolButtonDestructive:tt,SolInputTextarea:_e,SolInputText:Ie,SolInputTextPassword:Qe,SolRadio:$e,SolRadioGroup:Ue,SolCheckbox:he,SolCheckboxGroup:Ze,SolSwitch:He,SolSelect:Ye,SolChip:Te,SolTag:We,SolAlert:Je,SolAccordion:Ke,SolList:Xe,SolMenu:we,SolMenuItemLink:Fe,SolMenuNavigationLinks:et};function Ao(e){for(const n in Et)e.component(n,Et[n])}j.SolAccordion=Ke,j.SolAlert=Je,j.SolButton=oe,j.SolButtonDestructive=tt,j.SolCheckbox=he,j.SolCheckboxGroup=Ze,j.SolChip=Te,j.SolInputText=Ie,j.SolInputTextPassword=Qe,j.SolInputTextarea=_e,j.SolList=Xe,j.SolMenu=we,j.SolMenuItemLink=Fe,j.SolMenuNavigationLinks=et,j.SolRadio=$e,j.SolRadioGroup=Ue,j.SolSelect=Ye,j.SolSwitch=He,j.SolTag=We,j.components=Et,j.install=Ao,j.useToast=Eo,Object.defineProperties(j,{__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"}})});