@solfacil/girassol 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components.d.ts +2 -1
- package/dist/components.json +1 -1
- package/dist/girassol.es.js +1378 -1274
- package/dist/girassol.umd.js +4 -4
- package/dist/style.css +1 -1
- package/dist/theme/solfacil/index.d.ts +1 -0
- package/dist/theme/solfacil/utilities.d.ts +1 -0
- package/dist/types/components/{informations/chip/Chip.vue.d.ts → filters/chip/removable-chip/RemovableChip.vue.d.ts} +37 -37
- package/dist/types/components/filters/chip/removable-chip/index.d.ts +2 -0
- package/dist/types/components/{informations/chip/chip.spec.d.ts → filters/chip/removable-chip/removable-chip.spec.d.ts} +0 -0
- package/dist/types/components/filters/chip/removable-chip/types.d.ts +4 -0
- package/dist/types/components/filters/chip/selectable-chip/SelectableChip.vue.d.ts +125 -0
- package/dist/types/components/filters/chip/selectable-chip/index.d.ts +2 -0
- package/dist/types/components/filters/chip/selectable-chip/selectable-chip.spec.d.ts +1 -0
- package/dist/types/components/filters/chip/selectable-chip/types.d.ts +5 -0
- package/dist/types/components/filters/chip/types.d.ts +6 -0
- package/dist/types/components/forms/button/button/Button.vue.d.ts +4 -4
- package/dist/types/components/forms/select/Select.vue.d.ts +4 -4
- package/dist/types/components/modal/Modal.vue.d.ts +4 -4
- package/dist/types/composables/use-filters/index.d.ts +8 -0
- package/dist/types/composables/use-filters/use-filters.spec.d.ts +1 -0
- package/dist/types/index.d.ts +406 -233
- package/package.json +1 -1
- package/theme/solfacil/index.ts +2 -1
- package/theme/solfacil/utilities.ts +26 -1
- package/windi.config.ts +1 -14
- package/dist/types/components/informations/chip/index.d.ts +0 -2
package/dist/girassol.umd.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(q,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(q=typeof globalThis<"u"?globalThis:q||self,t(q.girassol={},q.Vue))})(this,function(q,t){"use strict";const Cn=t.createElementVNode("path",{class:"path",d:"M16.0008 1.5C17.905 1.5 19.7905 1.87506 21.5497 2.60375C23.3089 3.33244 24.9074 4.4005 26.2538 5.74695C27.6003 7.0934 28.6684 8.69187 29.397 10.4511C30.1257 12.2103 30.5008 14.0958 30.5008 16C30.5008 17.9042 30.1257 19.7897 29.397 21.5489C28.6684 23.3081 27.6003 24.9066 26.2538 26.2531C24.9074 27.5995 23.3089 28.6676 21.5497 29.3963C19.7905 30.1249 17.905 30.5 16.0008 30.5C14.0966 30.5 12.2111 30.1249 10.4519 29.3963C8.69266 28.6676 7.09419 27.5995 5.74774 26.253C4.4013 24.9066 3.33323 23.3081 2.60454 21.5489C1.87585 19.7897 1.50079 17.9042 1.50079 16C1.5008 14.0958 1.87585 12.2103 2.60454 10.4511C3.33324 8.69187 4.4013 7.0934 5.74775 5.74695C7.0942 4.4005 8.69267 3.33244 10.4519 2.60375C12.2111 1.87505 14.0966 1.5 16.0008 1.5L16.0008 1.5Z"},null,-1),Tt=t.defineComponent({__name:"CircleLoader",props:{size:{default:"large"},dark:{type:Boolean},title:{default:"Carregando"}},setup(e){return(n,l)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(["sol-inner-loader",`-${e.size}`]),viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("title",null,t.toDisplayString(e.title),1),Cn],2))}}),ca="",xn=["data-testid","disabled"],En={class:"icon -left"},Bn={class:"icon -right"},vn={key:0,class:"loading"},ee=t.defineComponent({__name:"Button",props:{id:null,loading:{type:Boolean},onColor:{type:Boolean,default:!1},disabled:{type:Boolean},size:{default:"large"},variant:{default:"primary"}},setup(e){function n(r,a){return r?a:""}const l=t.useSlots(),i=t.computed(()=>!!(l!=null&&l.default)&&(!!(l!=null&&l["icon-right"])||!!(l!=null&&l["icon-left"]))),o=t.computed(()=>!(l!=null&&l.default)&&(!!(l!=null&&l["icon-right"])||!!(l!=null&&l["icon-left"])));return(r,a)=>(t.openBlock(),t.createElementBlock("button",{"data-testid":`button-${e.id}`,class:t.normalizeClass(["sol-button-core",`-${e.variant} -${e.size}
|
|
2
2
|
${n(e.loading,"-loading")}
|
|
3
3
|
${n(e.onColor,"-on-color")}
|
|
4
4
|
${n(t.unref(i),"-has-icon")}
|
|
5
5
|
${n(t.unref(o),"-only-icon")}
|
|
6
|
-
`]),type:"button",disabled:e.disabled||e.loading},[t.createElementVNode("div",
|
|
6
|
+
`]),type:"button",disabled:e.disabled||e.loading},[t.createElementVNode("div",En,[t.renderSlot(r.$slots,"icon-left")]),t.renderSlot(r.$slots,"default"),t.createElementVNode("div",Bn,[t.renderSlot(r.$slots,"icon-right")]),e.loading?(t.openBlock(),t.createElementBlock("div",vn,[t.createVNode(Tt,{"data-testid":`button-loader-${e.id}`,size:e.size==="small"?"small":"medium",dark:e.onColor},null,8,["data-testid","size","dark"])])):t.createCommentVNode("",!0)],10,xn))}}),da="",On={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Vn=[t.createElementVNode("path",{fill:"currentColor",d:"M7 21q-.825 0-1.412-.587Q5 19.825 5 19V6H4V4h5V3h6v1h5v2h-1v13q0 .825-.587 1.413Q17.825 21 17 21ZM17 6H7v13h10ZM9 17h2V8H9Zm4 0h2V8h-2ZM7 6v13Z"},null,-1)];function In(e,n){return t.openBlock(),t.createElementBlock("svg",On,Vn)}const Nn={name:"material-symbols-delete-outline",render:In},ot=t.defineComponent({__name:"ButtonDestructive",props:{id:null,size:null,loading:{type:Boolean},hideIcon:{type:Boolean,default:!1}},setup(e){return(n,l)=>(t.openBlock(),t.createBlock(ee,{id:`destructive-${e.id}`,size:e.size,loading:e.loading,variant:"primary",class:"button-destructive"},{"icon-left":t.withCtx(()=>[e.hideIcon?(t.openBlock(),t.createBlock(t.unref(Nn),{key:0,"aria-hidden":"true"})):t.createCommentVNode("",!0)]),default:t.withCtx(()=>[t.renderSlot(n.$slots,"default")]),_:3},8,["id","size","loading"]))}}),fa="";ee.install=e=>{e.component("SolButton",ee)},ot.install=e=>{e.component("SolButton",ee)};/*!
|
|
7
7
|
* maska v1.5.0
|
|
8
8
|
* (c) 2019-2021 Alexander Shabunevich
|
|
9
9
|
* Released under the MIT License.
|
|
10
|
-
*/function
|
|
10
|
+
*/function Tn(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function An(e,n){for(var l=0;l<n.length;l++){var i=n[l];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Mn(e,n,l){return n in e?Object.defineProperty(e,n,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[n]=l,e}function At(e,n){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),l.push.apply(l,i)}return l}function je(e){for(var n=1;n<arguments.length;n++){var l=arguments[n]!=null?arguments[n]:{};n%2?At(Object(l),!0).forEach(function(i){Mn(e,i,l[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):At(Object(l)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(l,i))})}return e}var Mt={"#":{pattern:/[0-9]/},X:{pattern:/[0-9a-zA-Z]/},S:{pattern:/[a-zA-Z]/},A:{pattern:/[a-zA-Z]/,uppercase:!0},a:{pattern:/[a-zA-Z]/,lowercase:!0},"!":{escape:!0},"*":{repeat:!0}};function Ft(e,n){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Mt,i=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3];return Pt(n).length>1?Fn(n)(e,n,l,i):rt(e,n,l,i)}function Pt(e){try{return JSON.parse(e)}catch{return[e]}}function Fn(e){var n=Pt(e).sort(function(i,o){return i.length-o.length});return function(i,o,r){var a=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],s=n.map(function(m){return rt(i,m,r,!1)}),c=s.pop();for(var u in n)if(l(c,n[u],r))return rt(i,n[u],r,a);return""};function l(i,o,r){for(var a in r)r[a].escape&&(o=o.replace(new RegExp(a+".{1}","g"),""));return o.split("").filter(function(s){return r[s]&&r[s].pattern}).length>=i.length}}function rt(e,n,l){for(var i=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],o=0,r=0,a="",s="";o<n.length&&r<e.length;){var c=n[o],u=e[r],m=l[c];if(m&&m.pattern)m.pattern.test(u)&&(a+=Pn(u,m),o++,i&&n[o]&&(l[n[o]]?l[n[o]]&&l[n[o]].escape&&(a+=n[o+1],o+=2):(a+=n[o],o++))),r++;else if(m&&m.repeat){var h=l[n[o-1]];h&&!h.pattern.test(u)?o++:o--}else m&&m.escape&&(c=n[++o]),i&&(a+=c),u===c&&r++,o++}for(;i&&o<n.length;){var d=n[o];if(l[d]){s="";break}s+=d,o++}return a+s}function Pn(e,n){return n.transform&&(e=n.transform(e)),n.uppercase?e.toLocaleUpperCase():n.lowercase?e.toLocaleLowerCase():e}function Lt(e){return e instanceof HTMLInputElement?e:e.querySelector("input")||e}function at(e){return Object.prototype.toString.call(e)==="[object String]"}var Ln=function(){function e(i){var o=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(Tn(this,e),!i)throw new Error("Maska: no element for mask");if(r.preprocessor!=null&&typeof r.preprocessor!="function")throw new Error("Maska: preprocessor must be a function");if(r.tokens)for(var a in r.tokens)r.tokens[a]=je({},r.tokens[a]),r.tokens[a].pattern&&at(r.tokens[a].pattern)&&(r.tokens[a].pattern=new RegExp(r.tokens[a].pattern));this._opts={mask:r.mask,tokens:je(je({},Mt),r.tokens),preprocessor:r.preprocessor},this._el=at(i)?document.querySelectorAll(i):i.length?i:[i],this.inputEvent=function(s){return o.updateValue(s.target,s)},this.init()}var n,l;return n=e,(l=[{key:"init",value:function(){for(var i=this,o=function(a){var s=Lt(i._el[a]);!i._opts.mask||s.dataset.mask&&s.dataset.mask===i._opts.mask||(s.dataset.mask=i._opts.mask),setTimeout(function(){return i.updateValue(s)},0),s.dataset.maskInited||(s.dataset.maskInited=!0,s.addEventListener("input",i.inputEvent),s.addEventListener("beforeinput",i.beforeInput))},r=0;r<this._el.length;r++)o(r)}},{key:"destroy",value:function(){for(var i=0;i<this._el.length;i++){var o=Lt(this._el[i]);o.removeEventListener("input",this.inputEvent),o.removeEventListener("beforeinput",this.beforeInput),delete o.dataset.mask,delete o.dataset.maskInited}}},{key:"updateValue",value:function(i,o){if(i&&i.type){var r=i.type.match(/^number$/i)&&i.validity.badInput;if(!i.value&&!r||!i.dataset.mask)return i.dataset.maskRawValue="",void this.dispatch("maska",i,o);var a=i.selectionEnd,s=i.value,c=s[a-1];i.dataset.maskRawValue=Ft(i.value,i.dataset.mask,this._opts.tokens,!1);var u=i.value;this._opts.preprocessor&&(u=this._opts.preprocessor(u)),i.value=Ft(u,i.dataset.mask,this._opts.tokens),o&&o.inputType==="insertText"&&a===s.length&&(a=i.value.length),function(m,h,d){for(;h&&h<m.value.length&&m.value.charAt(h-1)!==d;)h++;(m.type?m.type.match(/^(text|search|password|tel|url)$/i):!m.type)&&m===document.activeElement&&(m.setSelectionRange(h,h),setTimeout(function(){m.setSelectionRange(h,h)},0))}(i,a,c),this.dispatch("maska",i,o),i.value!==s&&this.dispatch("input",i,o)}}},{key:"beforeInput",value:function(i){i&&i.target&&i.target.type&&i.target.type.match(/^number$/i)&&i.data&&isNaN(i.target.value+i.data)&&i.preventDefault()}},{key:"dispatch",value:function(i,o,r){o.dispatchEvent(function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,c=document.createEvent("Event");return c.initEvent(a,!0,!0),s&&(c.inputType=s),c}(i,r&&r.inputType||null))}}])&&An(n.prototype,l),e}(),st,ct=(st=new WeakMap,function(e,n){n.value&&(st.has(e)&&!function(l){return!(at(l.value)&&l.value===l.oldValue||Array.isArray(l.value)&&JSON.stringify(l.value)===JSON.stringify(l.oldValue)||l.value&&l.value.mask&&l.oldValue&&l.oldValue.mask&&l.value.mask===l.oldValue.mask)}(n)||st.set(e,new Ln(e,function(l){var i={};return l.mask?(i.mask=Array.isArray(l.mask)?JSON.stringify(l.mask):l.mask,i.tokens=l.tokens?je({},l.tokens):{},i.preprocessor=l.preprocessor):i.mask=Array.isArray(l)?JSON.stringify(l):l,i}(n.value))))});function zn(e){e.directive("maska",ct)}typeof window<"u"&&window.Vue&&window.Vue.use&&window.Vue.use(zn);const Dn={CPF:"###.###.###-##",CNPJ:"##.###.###/#####-##",CPF_CNPJ:["###.###.###-##","##.###.###/#####-##"],MobilePhoneDDD:"(##) # ####-####"},qn=ct;function zt(e){const n=ct,l=t.computed(()=>{if(e!=null&&e.hasOwnProperty("preset")){const{preset:i}=e;return Dn[i]}return e});return{vMask:n,maskValue:l}}const jn=["id","data-testid","value"],Dt=t.defineComponent({__name:"Input",props:{id:null,modelValue:null,error:null,mask:null,size:{default:"medium"},hasFeedbackIcon:null},emits:["update:modelValue"],setup(e,{expose:n,emit:l}){const i=e,{maskValue:o,vMask:r}=zt(i.mask);function a({target:c}){l("update:modelValue",c==null?void 0:c.value)}const s=t.ref("");return n({input:s}),(c,u)=>t.withDirectives((t.openBlock(),t.createElementBlock("input",{id:`input-${e.id}`,ref_key:"input",ref:s,"data-testid":`input-${e.id}`,value:e.modelValue,class:t.normalizeClass(["sol-input-core",[`-${e.size}`,{"-error":e.error,"-feedback-icon":e.hasFeedbackIcon}]]),onInput:a},null,42,jn)),[[t.unref(r),t.unref(o)]])}}),ma="";function _n(){return qt().__VUE_DEVTOOLS_GLOBAL_HOOK__}function qt(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const Rn=typeof Proxy=="function",Qn="devtools-plugin:setup",Hn="plugin:settings:set";let ge,dt;function Un(){var e;return ge!==void 0||(typeof window<"u"&&window.performance?(ge=!0,dt=window.performance):typeof global<"u"&&((e=global.perf_hooks)===null||e===void 0?void 0:e.performance)?(ge=!0,dt=global.perf_hooks.performance):ge=!1),ge}function Zn(){return Un()?dt.now():Date.now()}class Gn{constructor(n,l){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=n,this.hook=l;const i={};if(n.settings)for(const a in n.settings){const s=n.settings[a];i[a]=s.defaultValue}const o=`__vue-devtools-plugin-settings__${n.id}`;let r=Object.assign({},i);try{const a=localStorage.getItem(o),s=JSON.parse(a);Object.assign(r,s)}catch{}this.fallbacks={getSettings(){return r},setSettings(a){try{localStorage.setItem(o,JSON.stringify(a))}catch{}r=a},now(){return Zn()}},l&&l.on(Hn,(a,s)=>{a===this.plugin.id&&this.fallbacks.setSettings(s)}),this.proxiedOn=new Proxy({},{get:(a,s)=>this.target?this.target.on[s]:(...c)=>{this.onQueue.push({method:s,args:c})}}),this.proxiedTarget=new Proxy({},{get:(a,s)=>this.target?this.target[s]:s==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(s)?(...c)=>(this.targetQueue.push({method:s,args:c,resolve:()=>{}}),this.fallbacks[s](...c)):(...c)=>new Promise(u=>{this.targetQueue.push({method:s,args:c,resolve:u})})})}async setRealTarget(n){this.target=n;for(const l of this.onQueue)this.target.on[l.method](...l.args);for(const l of this.targetQueue)l.resolve(await this.target[l.method](...l.args))}}function Yn(e,n){const l=e,i=qt(),o=_n(),r=Rn&&l.enableEarlyProxy;if(o&&(i.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!r))o.emit(Qn,e,n);else{const a=r?new Gn(l,o):null;(i.__VUE_DEVTOOLS_PLUGINS__=i.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:l,setupFn:n,proxy:a}),a&&n(a.proxiedTarget)}}/**
|
|
11
11
|
* vee-validate v4.6.7
|
|
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 qt(e){return Number(e)>=0}function Zn(e){const n=parseFloat(e);return isNaN(n)?e:n}const Gn={};function Yn(e){return Gn[e]}const me=Symbol("vee-validate-form"),Wn=Symbol("vee-validate-field-instance"),je=Symbol("Default empty value");function st(e){return ge(e)&&!!e.__locatorRef}function Ee(e){return!!e&&ge(e.validate)}function be(e){return e==="checkbox"||e==="radio"}function Kn(e){return ue(e)||Array.isArray(e)}function zt(e){return Array.isArray(e)?e.length===0:ue(e)&&Object.keys(e).length===0}function _e(e){return/^\[.+\]$/i.test(e)}function Jn(e){return jt(e)&&e.multiple}function jt(e){return e.tagName==="SELECT"}function Xn(e,n){const l=![!1,null,void 0,0].includes(n.multiple)&&!Number.isNaN(n.multiple);return e==="select"&&"multiple"in n&&l}function el(e,n){return!Xn(e,n)&&n.type!=="file"&&!be(n.type)}function _t(e){return ct(e)&&e.target&&"submit"in e.target}function ct(e){return e?!!(typeof Event<"u"&&ge(Event)&&e instanceof Event||e&&e.srcElement):!1}function Rt(e,n){return n in e&&e[n]!==je}var Qt=function e(n,l){if(n===l)return!0;if(n&&l&&typeof n=="object"&&typeof l=="object"){if(n.constructor!==l.constructor)return!1;var i,o,r;if(Array.isArray(n)){if(i=n.length,i!=l.length)return!1;for(o=i;o--!==0;)if(!e(n[o],l[o]))return!1;return!0}if(n.constructor===RegExp)return n.source===l.source&&n.flags===l.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===l.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===l.toString();if(r=Object.keys(n),i=r.length,i!==Object.keys(l).length)return!1;for(o=i;o--!==0;)if(!Object.prototype.hasOwnProperty.call(l,r[o]))return!1;for(o=i;o--!==0;){var a=r[o];if(!e(n[a],l[a]))return!1}return!0}return n!==n&&l!==l};function dt(e){return _e(e)?e.replace(/\[|\]/gi,""):e}function U(e,n,l){return e?_e(n)?e[dt(n)]:(n||"").split(/\.|\[(\d+)\]/).filter(Boolean).reduce((o,r)=>Kn(o)&&r in o?o[r]:l,e):l}function fe(e,n,l){if(_e(n)){e[dt(n)]=l;return}const i=n.split(/\.|\[(\d+)\]/).filter(Boolean);let o=e;for(let r=0;r<i.length;r++){if(r===i.length-1){o[i[r]]=l;return}(!(i[r]in o)||Ce(o[i[r]]))&&(o[i[r]]=qt(i[r+1])?[]:{}),o=o[i[r]]}}function ut(e,n){if(Array.isArray(e)&&qt(n)){e.splice(Number(n),1);return}ue(e)&&delete e[n]}function ft(e,n){if(_e(n)){delete e[dt(n)];return}const l=n.split(/\.|\[(\d+)\]/).filter(Boolean);let i=e;for(let r=0;r<l.length;r++){if(r===l.length-1){ut(i,l[r]);break}if(!(l[r]in i)||Ce(i[l[r]]))break;i=i[l[r]]}const o=l.map((r,a)=>U(e,l.slice(0,a).join(".")));for(let r=o.length-1;r>=0;r--)if(!!zt(o[r])){if(r===0){ut(e,l[0]);continue}ut(o[r-1],l[r-1])}}function W(e){return Object.keys(e)}function Be(e,n=void 0){const l=t.getCurrentInstance();return(l==null?void 0:l.provides[e])||t.inject(e,n)}function mt(e){t.warn(`[vee-validate]: ${e}`)}function tl(e){return Array.isArray(e)?e[0]:e}function ht(e,n,l){if(Array.isArray(e)){const i=[...e],o=i.findIndex(r=>Qt(r,n));return o>=0?i.splice(o,1):i.push(n),i}return Qt(e,n)?l:n}function nl(e,n){let l,i;return function(...o){const r=this;return l||(l=!0,setTimeout(()=>l=!1,n),i=e.apply(r,o)),i}}function Ht(e,n=0){let l=null,i=[];return function(...o){return l&&window.clearTimeout(l),l=window.setTimeout(()=>{const r=e(...o);i.forEach(a=>a(r)),i=[]},n),new Promise(r=>i.push(r))}}function ll(e,n){return ue(n)&&n.number?Zn(e):e}function yt(e,n){let l;return async function(...o){const r=e(...o);l=r;const a=await r;return r!==l||(l=void 0,n(a,o)),a}}const Re=(e,n,l)=>n.slots.default?typeof e=="string"||!e?n.slots.default(l()):{default:()=>{var i,o;return(o=(i=n.slots).default)===null||o===void 0?void 0:o.call(i,l())}}:n.slots.default;function gt(e){if(Ut(e))return e._value}function Ut(e){return"_value"in e}function bt(e){if(!ct(e))return e;const n=e.target;if(be(n.type)&&Ut(n))return gt(n);if(n.type==="file"&&n.files){const l=Array.from(n.files);return n.multiple?l:l[0]}if(Jn(n))return Array.from(n.options).filter(l=>l.selected&&!l.disabled).map(gt);if(jt(n)){const l=Array.from(n.options).find(i=>i.selected);return l?gt(l):n.value}return n.value}function Zt(e){const n={};return Object.defineProperty(n,"_$$isNormalized",{value:!0,writable:!1,enumerable:!1,configurable:!1}),e?ue(e)&&e._$$isNormalized?e:ue(e)?Object.keys(e).reduce((l,i)=>{const o=il(e[i]);return e[i]!==!1&&(l[i]=Gt(o)),l},n):typeof e!="string"?n:e.split("|").reduce((l,i)=>{const o=ol(i);return o.name&&(l[o.name]=Gt(o.params)),l},n):n}function il(e){return e===!0?[]:Array.isArray(e)||ue(e)?e:[e]}function Gt(e){const n=l=>typeof l=="string"&&l[0]==="@"?rl(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 ol=e=>{let n=[];const l=e.split(":")[0];return e.includes(":")&&(n=e.split(":").slice(1).join(":").split(",")),{name:l,params:n}};function rl(e){const n=l=>U(l,e)||l[e];return n.__locatorRef=e,n}function al(e){return Array.isArray(e)?e.filter(st):W(e).filter(n=>st(e[n])).map(n=>e[n])}let sl=Object.assign({},{generateMessage:({field:e})=>`${e} is not valid.`,bails:!0,validateOnBlur:!0,validateOnChange:!0,validateOnInput:!1,validateOnModelUpdate:!0});const kt=()=>sl;async function Yt(e,n,l={}){const i=l==null?void 0:l.bails,o={name:(l==null?void 0:l.name)||"{field}",rules:n,bails:i!=null?i:!0,formData:(l==null?void 0:l.values)||{}},a=(await cl(o,e)).errors;return{errors:a,valid:!a.length}}async function cl(e,n){if(Ee(e.rules))return dl(n,e.rules,{bails:e.bails});if(ge(e.rules)||Array.isArray(e.rules)){const a={field:e.name,form:e.formData,value:n},s=Array.isArray(e.rules)?e.rules:[e.rules],c=s.length,u=[];for(let m=0;m<c;m++){const h=s[m],d=await h(n,a);if(typeof d!="string"&&d)continue;const $=typeof d=="string"?d:Wt(a);if(u.push($),e.bails)return{errors:u}}return{errors:u}}const l=Object.assign(Object.assign({},e),{rules:Zt(e.rules)}),i=[],o=Object.keys(l.rules),r=o.length;for(let a=0;a<r;a++){const s=o[a],c=await ul(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 dl(e,n,l){var i;return{errors:await n.validate(e,{abortEarly:(i=l.bails)!==null&&i!==void 0?i:!0}).then(()=>[]).catch(r=>{if(r.name==="ValidationError")return r.errors;throw r})}}async function ul(e,n,l){const i=Yn(l.name);if(!i)throw new Error(`No such validator '${l.name}' exists.`);const o=fl(l.params,e.formData),r={field:e.name,value:n,form:e.formData,rule:Object.assign(Object.assign({},l),{params:o})},a=await i(n,o,r);return typeof a=="string"?{error:a}:{error:a?void 0:Wt(r)}}function Wt(e){const n=kt().generateMessage;return n?n(e):"Field is invalid"}function fl(e,n){const l=i=>st(i)?i(n):i;return Array.isArray(e)?e.map(l):Object.keys(e).reduce((i,o)=>(i[o]=l(e[o]),i),{})}async function ml(e,n){const l=await e.validate(n,{abortEarly:!1}).then(()=>[]).catch(r=>{if(r.name!=="ValidationError")throw r;return r.inner||[]}),i={},o={};for(const r of l){const a=r.errors;i[r.path]={valid:!a.length,errors:a},a.length&&(o[r.path]=a[0])}return{valid:!l.length,results:i,errors:o}}async function hl(e,n,l){const o=W(e).map(async u=>{var m,h,d;const b=await Yt(U(n,u),e[u],{name:((m=l==null?void 0:l.names)===null||m===void 0?void 0:m[u])||u,values:n,bails:(d=(h=l==null?void 0:l.bailsMap)===null||h===void 0?void 0:h[u])!==null&&d!==void 0?d:!0});return Object.assign(Object.assign({},b),{path:u})});let r=!0;const a=await Promise.all(o),s={},c={};for(const u of a)s[u.path]={valid:u.valid,errors:u.errors},u.valid||(r=!1,c[u.path]=u.errors[0]);return{valid:r,results:s,errors:c}}function Kt(e,n,l){typeof l.value=="object"&&(l.value=Z(l.value)),!l.enumerable||l.get||l.set||!l.configurable||!l.writable||n==="__proto__"?Object.defineProperty(e,n,l):e[n]=l.value}function Z(e){if(typeof e!="object")return e;var n=0,l,i,o,r=Object.prototype.toString.call(e);if(r==="[object Object]"?o=Object.create(e.__proto__||null):r==="[object Array]"?o=Array(e.length):r==="[object Set]"?(o=new Set,e.forEach(function(a){o.add(Z(a))})):r==="[object Map]"?(o=new Map,e.forEach(function(a,s){o.set(Z(s),Z(a))})):r==="[object Date]"?o=new Date(+e):r==="[object RegExp]"?o=new RegExp(e.source,e.flags):r==="[object DataView]"?o=new e.constructor(Z(e.buffer)):r==="[object ArrayBuffer]"?o=e.slice(0):r.slice(-6)==="Array]"&&(o=new e.constructor(e)),o){for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)Kt(o,i[n],Object.getOwnPropertyDescriptor(e,i[n]));for(n=0,i=Object.getOwnPropertyNames(e);n<i.length;n++)Object.hasOwnProperty.call(o,l=i[n])&&o[l]===e[l]||Kt(o,l,Object.getOwnPropertyDescriptor(e,l))}return o||e}var ie=function e(n,l){if(n===l)return!0;if(n&&l&&typeof n=="object"&&typeof l=="object"){if(n.constructor!==l.constructor)return!1;var i,o,r;if(Array.isArray(n)){if(i=n.length,i!=l.length)return!1;for(o=i;o--!==0;)if(!e(n[o],l[o]))return!1;return!0}if(n instanceof Map&&l instanceof Map){if(n.size!==l.size)return!1;for(o of n.entries())if(!l.has(o[0]))return!1;for(o of n.entries())if(!e(o[1],l.get(o[0])))return!1;return!0}if(n instanceof Set&&l instanceof Set){if(n.size!==l.size)return!1;for(o of n.entries())if(!l.has(o[0]))return!1;return!0}if(ArrayBuffer.isView(n)&&ArrayBuffer.isView(l)){if(i=n.length,i!=l.length)return!1;for(o=i;o--!==0;)if(n[o]!==l[o])return!1;return!0}if(n.constructor===RegExp)return n.source===l.source&&n.flags===l.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===l.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===l.toString();if(r=Object.keys(n),i=r.length,i!==Object.keys(l).length)return!1;for(o=i;o--!==0;)if(!Object.prototype.hasOwnProperty.call(l,r[o]))return!1;for(o=i;o--!==0;){var a=r[o];if(!e(n[a],l[a]))return!1}return!0}return n!==n&&l!==l};let Jt=0;function yl(e,n){const{value:l,initialValue:i,setInitialValue:o}=Xt(e,n.modelValue,!n.standalone),{errorMessage:r,errors:a,setErrors:s}=bl(e,!n.standalone),c=gl(l,i,a),u=Jt>=Number.MAX_SAFE_INTEGER?0:++Jt;function m(h){var d;"value"in h&&(l.value=h.value),"errors"in h&&s(h.errors),"touched"in h&&(c.touched=(d=h.touched)!==null&&d!==void 0?d:c.touched),"initialValue"in h&&o(h.initialValue)}return{id:u,path:e,value:l,initialValue:i,meta:c,errors:a,errorMessage:r,setState:m}}function Xt(e,n,l=!0){const i=l===!0?Be(me,void 0):void 0,o=t.ref(t.unref(n));function r(){return i?U(i.meta.value.initialValues,t.unref(e),t.unref(o)):t.unref(o)}function a(m){if(!i){o.value=m;return}i.stageInitialValue(t.unref(e),m,!0)}const s=t.computed(r);if(!i)return{value:t.ref(r()),initialValue:s,setInitialValue:a};const c=n?t.unref(n):U(i.values,t.unref(e),t.unref(s));return i.stageInitialValue(t.unref(e),c,!0),{value:t.computed({get(){return U(i.values,t.unref(e))},set(m){i.setFieldValue(t.unref(e),m)}}),initialValue:s,setInitialValue:a}}function gl(e,n,l){const i=t.reactive({touched:!1,pending:!1,valid:!0,validated:!!t.unref(l).length,initialValue:t.computed(()=>t.unref(n)),dirty:t.computed(()=>!ie(t.unref(e),t.unref(n)))});return t.watch(l,o=>{i.valid=!o.length},{immediate:!0,flush:"sync"}),i}function bl(e,n){const l=n?Be(me,void 0):void 0;function i(r){return r?Array.isArray(r)?r:[r]:[]}if(!l){const r=t.ref([]);return{errors:r,errorMessage:t.computed(()=>r.value[0]),setErrors:a=>{r.value=i(a)}}}const o=t.computed(()=>l.errorBag.value[t.unref(e)]||[]);return{errors:o,errorMessage:t.computed(()=>o.value[0]),setErrors:r=>{l.setFieldErrorBag(t.unref(e),i(r))}}}function en(e){process.env.NODE_ENV!=="production"&&Un({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"},$l)}const ve={},Oe={};let ae;const ke=nl(()=>{setTimeout(async()=>{await t.nextTick(),ae==null||ae.sendInspectorState(pe),ae==null||ae.sendInspectorTree(pe)},100)},100);function kl(e){const n=t.getCurrentInstance();if(!ae){const l=n==null?void 0:n.appContext.app;if(!l)return;en(l)}ve[e.formId]=Object.assign({},e),ve[e.formId]._vm=n,t.onUnmounted(()=>{delete ve[e.formId],ke()}),ke()}function pl(e){const n=t.getCurrentInstance();if(!ae){const l=n==null?void 0:n.appContext.app;if(!l)return;en(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 $l(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(ve),i=Object.values(Oe);n.rootNodes=[...l.map(wl),...i.map(o=>pt(o))]}),e.on.getInspectorState((n,l)=>{if(n.inspectorId!==pe||l.currentTab!==`custom-inspector:${pe}`)return;const{form:i,field:o,type:r}=Sl(n.nodeId);if(i&&r==="form"){n.state=Cl(i),se=i;return}if(o&&r==="field"){n.state=xl(o),se=o;return}se=null})}function wl(e){const{textColor:n,bgColor:l}=nn(e),i={};Object.values(e.fieldsByPath.value).forEach(a=>{const s=Array.isArray(a)?a[0]:a;!s||fe(i,t.unref(s.name),pt(s,e))});function o(a,s=[]){const c=[...s].pop();return"id"in a?Object.assign(Object.assign({},a),{label:c||a.label}):ue(a)?{id:`${s.join(".")}`,label:c||"",children:Object.keys(a).map(u=>o(a[u],[...s,u]))}:Array.isArray(a)?{id:`${s.join(".")}`,label:`${c}[]`,children:a.map((u,m)=>o(u,[...s,String(m)]))}:{id:"",label:"",children:[]}}const{children:r}=o(i);return{id:tn(e),label:"Form",children:r,tags:[{label:"Form",textColor:n,backgroundColor:l},{label:`${Object.keys(e.fieldsByPath.value).length} fields`,textColor:X.white,backgroundColor:X.unknown}]}}function pt(e,n){const l=tl(e),{textColor:i,bgColor:o}=nn(l),r=Array.isArray(e)&&e.length>1;return{id:tn(n,l,!r),label:t.unref(l.name),children:Array.isArray(e)?e.map(a=>pt(a,n)):void 0,tags:[r?void 0:{label:"Field",textColor:i,backgroundColor:o},n?void 0:{label:"Standalone",textColor:X.black,backgroundColor:X.gray},!r&&l.type==="checkbox"?{label:"Checkbox",textColor:X.white,backgroundColor:X.blue}:void 0,!r&&l.type==="radio"?{label:"Radio",textColor:X.white,backgroundColor:X.purple}:void 0,r?{label:"Group",textColor:X.black,backgroundColor:X.orange}:void 0].filter(Boolean)}}function tn(e,n,l=!0){const i=e?t.unref(n==null?void 0:n.name):n==null?void 0:n.id,o=i?e==null?void 0:e.fieldsByPath.value[i]:void 0;let r;l&&n&&Array.isArray(o)&&(r=o.indexOf(n));const a={f:e==null?void 0:e.formId,ff:i,idx:r,type:n?"field":"form"};return btoa(JSON.stringify(a))}function Sl(e){try{const n=JSON.parse(atob(e)),l=ve[n.f];if(!l&&n.ff){const o=Oe[n.ff];return o?{type:n.type,field:o}:{}}if(!l)return{};const i=l.fieldsByPath.value[n.ff];return{type:n.type,form:l,field:Array.isArray(i)?i[n.idx||0]:i}}catch{}return{}}function xl(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 Cl(e){const{errorBag:n,meta:l,values:i,isSubmitting:o,submitCount:r}=e;return{"Form state":[{key:"submitCount",value:r.value},{key:"isSubmitting",value:o.value},{key:"touched",value:l.value.touched},{key:"dirty",value:l.value.dirty},{key:"valid",value:l.value.valid},{key:"initialValues",value:l.value.initialValues},{key:"currentValues",value:i},{key:"errors",value:W(n.value).reduce((a,s)=>{var c;const u=(c=n.value[s])===null||c===void 0?void 0:c[0];return u&&(a[s]=u),a},{})}]}}function nn(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 $t(e,n,l){return be(l==null?void 0:l.type)?vl(e,n,l):ln(e,n,l)}function ln(e,n,l){const{initialValue:i,validateOnMount:o,bails:r,type:a,checkedValue:s,label:c,validateOnValueUpdate:u,uncheckedValue:m,standalone:h,keepValueOnUnmount:d,modelPropName:b,syncVModel:$}=El(t.unref(e),l),S=h?void 0:Be(me);let q=!1;const{id:j,value:N,initialValue:p,meta:k,setState:E,errors:I,errorMessage:M}=yl(e,{modelValue:i,standalone:h});$&&Ol({value:N,prop:b,handleChange:le});const D=()=>{k.touched=!0},R=t.computed(()=>{let y=t.unref(n);const B=t.unref(S==null?void 0:S.schema);return B&&!Ee(B)&&(y=Bl(B,t.unref(e))||y),Ee(y)||ge(y)||Array.isArray(y)?y:Zt(y)});async function A(y){var B,Q;return S!=null&&S.validateSchema?(B=(await S.validateSchema(y)).results[t.unref(e)])!==null&&B!==void 0?B:{valid:!0,errors:[]}:Yt(N.value,R.value,{name:t.unref(c)||t.unref(e),values:(Q=S==null?void 0:S.values)!==null&&Q!==void 0?Q:{},bails:r})}const z=yt(async()=>(k.pending=!0,k.validated=!0,A("validated-only")),y=>(q&&(y.valid=!0,y.errors=[]),E({errors:y.errors}),k.pending=!1,y)),H=yt(async()=>A("silent"),y=>(q&&(y.valid=!0),k.valid=y.valid,y));function K(y){return(y==null?void 0:y.mode)==="silent"?H():z()}function le(y,B=!0){const Q=bt(y);N.value=Q,!u&&B&&z()}t.onMounted(()=>{if(o)return z();(!S||!S.validateSchema)&&H()});function Y(y){k.touched=y}let v;function O(){v=t.watch(N,(y,B)=>{if(ie(y,B))return;(u?z:H)()},{deep:!0})}O();function w(y){var B;v==null||v();const Q=y&&"value"in y?y.value:p.value;E({value:Z(Q),initialValue:Z(Q),touched:(B=y==null?void 0:y.touched)!==null&&B!==void 0?B:!1,errors:(y==null?void 0:y.errors)||[]}),k.pending=!1,k.validated=!1,H(),t.nextTick(()=>{O()})}function x(y){N.value=y}function V(y){E({errors:Array.isArray(y)?y:[y]})}const T={id:j,name:e,label:c,value:N,meta:k,errors:I,errorMessage:M,type:a,checkedValue:s,uncheckedValue:m,bails:r,keepValueOnUnmount:d,resetField:w,handleReset:()=>w(),validate:K,handleChange:le,handleBlur:D,setState:E,setTouched:Y,setErrors:V,setValue:x};if(t.provide(Wn,T),t.isRef(n)&&typeof t.unref(n)!="function"&&t.watch(n,(y,B)=>{ie(y,B)||(k.validated?z():H())},{deep:!0}),process.env.NODE_ENV!=="production"&&(T._vm=t.getCurrentInstance(),t.watch(()=>Object.assign(Object.assign({errors:I.value},k),{value:N.value}),ke,{deep:!0}),S||pl(T)),!S)return T;S.register(T),t.onBeforeUnmount(()=>{q=!0,S.unregister(T)});const L=t.computed(()=>{const y=R.value;return!y||ge(y)||Ee(y)||Array.isArray(y)?{}:Object.keys(y).reduce((B,Q)=>{const ce=al(y[Q]).map(te=>te.__locatorRef).reduce((te,ne)=>{const oe=U(S.values,ne)||S.values[ne];return oe!==void 0&&(te[ne]=oe),te},{});return Object.assign(B,ce),B},{})});return t.watch(L,(y,B)=>{if(!Object.keys(y).length)return;!ie(y,B)&&(k.validated?z():H())}),T}function El(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 Bl(e,n){if(!!e)return e[n]}function vl(e,n,l){const i=l!=null&&l.standalone?void 0:Be(me),o=l==null?void 0:l.checkedValue,r=l==null?void 0:l.uncheckedValue;function a(s){const c=s.handleChange,u=t.computed(()=>{const h=t.unref(s.value),d=t.unref(o);return Array.isArray(h)?h.findIndex(b=>ie(b,d))>=0:ie(d,h)});function m(h,d=!0){var b;if(u.value===((b=h==null?void 0:h.target)===null||b===void 0?void 0:b.checked))return;let $=bt(h);i||($=ht(t.unref(s.value),t.unref(o),t.unref(r))),c($,d)}return Object.assign(Object.assign({},s),{checked:u,checkedValue:o,uncheckedValue:r,handleChange:m})}return a(ln(e,n,l))}function Ol({prop:e,value:n,handleChange:l}){const i=t.getCurrentInstance();if(!i){process.env.NODE_ENV!=="production"&&console.warn("Failed to setup model events because `useField` was not called in setup.");return}const o=e||"modelValue",r=`update:${o}`;o in i.props&&(t.watch(n,a=>{ie(a,on(i,o))||i.emit(r,a)}),t.watch(()=>on(i,o),a=>{if(a===je&&n.value===void 0)return;const s=a===je?void 0:a;ie(s,ll(n.value,i.props.modelModifiers))||l(s)}))}function on(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:()=>kt().bails},label:{type:String,default:void 0},uncheckedValue:{type:null,default:void 0},modelValue:{type:null,default:je},modelModifiers:{type:null,default:()=>({})},"onUpdate:modelValue":{type:null,default:void 0},standalone:{type:Boolean,default:!1},keepValue:{type:Boolean,default:void 0}},setup(e,n){const l=t.toRef(e,"rules"),i=t.toRef(e,"name"),o=t.toRef(e,"label"),r=t.toRef(e,"uncheckedValue"),a=t.toRef(e,"keepValue"),{errors:s,value:c,errorMessage:u,validate:m,handleChange:h,handleBlur:d,setTouched:b,resetField:$,handleReset:S,meta:q,checked:j,setErrors:N}=$t(i,l,{validateOnMount:e.validateOnMount,bails:e.bails,standalone:e.standalone,type:n.attrs.type,initialValue:Il(e,n),checkedValue:n.attrs.value,uncheckedValue:r,label:o,validateOnValueUpdate:!1,keepValueOnUnmount:a}),p=function(R,A=!0){h(R,A),n.emit("update:modelValue",c.value)},k=D=>{be(n.attrs.type)||(c.value=bt(D))},E=function(R){k(R),n.emit("update:modelValue",c.value)},I=t.computed(()=>{const{validateOnInput:D,validateOnChange:R,validateOnBlur:A,validateOnModelUpdate:z}=Vl(e),H=[d,n.attrs.onBlur,A?m:void 0].filter(Boolean),K=[O=>p(O,D),n.attrs.onInput].filter(Boolean),le=[O=>p(O,R),n.attrs.onChange].filter(Boolean),Y={name:e.name,onBlur:H,onInput:K,onChange:le};Y["onUpdate:modelValue"]=O=>p(O,z),be(n.attrs.type)&&j&&(Y.checked=j.value);const v=rn(e,n);return el(v,n.attrs)&&(Y.value=c.value),Y});function M(){return{field:I.value,value:c.value,meta:q,errors:s.value,errorMessage:u.value,validate:m,resetField:$,handleChange:p,handleInput:E,handleReset:S,handleBlur:d,setTouched:b,setErrors:N}}return n.expose({setErrors:N,setTouched:b,reset:$,validate:m,handleChange:h}),()=>{const D=t.resolveDynamicComponent(rn(e,n)),R=Re(D,n,M);return D?t.h(D,Object.assign(Object.assign({},n.attrs),I.value),R):R}}});function rn(e,n){let l=e.as||"";return!e.as&&!n.slots.default&&(l="input"),l}function Vl(e){var n,l,i,o;const{validateOnInput:r,validateOnChange:a,validateOnBlur:s,validateOnModelUpdate:c}=kt();return{validateOnInput:(n=e.validateOnInput)!==null&&n!==void 0?n:r,validateOnChange:(l=e.validateOnChange)!==null&&l!==void 0?l:a,validateOnBlur:(i=e.validateOnBlur)!==null&&i!==void 0?i:s,validateOnModelUpdate:(o=e.validateOnModelUpdate)!==null&&o!==void 0?o:c}}function Il(e,n){return be(n.attrs.type)?Rt(e,"modelValue")?e.modelValue:void 0:Rt(e,"modelValue")?e.modelValue:n.attrs.value}let Nl=0;function Tl(e){var n;const l=Nl++;let i=!1;const o=t.ref({}),r=t.ref(!1),a=t.ref(0),s=[],c=t.reactive(Z(t.unref(e==null?void 0:e.initialValues)||{})),{errorBag:u,setErrorBag:m,setFieldErrorBag:h}=Fl(e==null?void 0:e.initialErrors),d=t.computed(()=>W(u.value).reduce((f,g)=>{const F=u.value[g];return F&&F.length&&(f[g]=F[0]),f},{}));function b(f){const g=o.value[f];return Array.isArray(g)?g[0]:g}function $(f){return!!o.value[f]}const S=t.computed(()=>W(o.value).reduce((f,g)=>{const F=b(g);return F&&(f[g]=t.unref(F.label||F.name)||""),f},{})),q=t.computed(()=>W(o.value).reduce((f,g)=>{var F;const P=b(g);return P&&(f[g]=(F=P.bails)!==null&&F!==void 0?F:!0),f},{})),j=Object.assign({},(e==null?void 0:e.initialErrors)||{}),N=(n=e==null?void 0:e.keepValuesOnUnmount)!==null&&n!==void 0?n:!1,{initialValues:p,originalInitialValues:k,setInitialValues:E}=Ml(o,c,e==null?void 0:e.initialValues),I=Al(o,c,k,d),M=e==null?void 0:e.validationSchema,D=Ht(pn,5),R=Ht(pn,5),A=yt(async f=>await f==="silent"?D():R(),(f,[g])=>{const F=z.fieldsByPath.value||{},P=W(z.errorBag.value);return[...new Set([...W(f.results),...W(F),...P])].reduce((G,J)=>{const de=F[J],xe=(f.results[J]||{errors:[]}).errors,re={errors:xe,valid:!xe.length};if(G.results[J]=re,re.valid||(G.errors[J]=re.errors[0]),!de)return Y(J,xe),G;if(K(de,qe=>qe.meta.valid=re.valid),g==="silent")return G;const ta=Array.isArray(de)?de.some(qe=>qe.meta.validated):de.meta.validated;return g==="validated-only"&&!ta||K(de,qe=>qe.setState({errors:re.errors})),G},{valid:f.valid,results:{},errors:{}})}),z={formId:l,fieldsByPath:o,values:c,errorBag:u,errors:d,schema:M,submitCount:a,meta:I,isSubmitting:r,fieldArrays:s,keepValuesOnUnmount:N,validateSchema:t.unref(M)?A:void 0,validate:ne,register:ce,unregister:te,setFieldErrorBag:h,validateField:oe,setFieldValue:O,setValues:w,setErrors:v,setFieldError:Y,setFieldTouched:T,setTouched:L,resetForm:y,handleSubmit:De,stageInitialValue:Xr,unsetInitialValue:Jr,setFieldInitialValue:kn,useFieldModel:V};function H(f){return Array.isArray(f)}function K(f,g){return Array.isArray(f)?f.forEach(g):g(f)}function le(f){Object.values(o.value).forEach(g=>{!g||K(g,f)})}function Y(f,g){h(f,g)}function v(f){m(f)}function O(f,g,{force:F}={force:!1}){var P;const C=o.value[f],G=Z(g);if(!C){fe(c,f,G);return}if(H(C)&&((P=C[0])===null||P===void 0?void 0:P.type)==="checkbox"&&!Array.isArray(g)){const de=Z(ht(U(c,f)||[],g,void 0));fe(c,f,de);return}let J=g;!H(C)&&C.type==="checkbox"&&!F&&!i&&(J=Z(ht(U(c,f),g,t.unref(C.uncheckedValue)))),fe(c,f,J)}function w(f){W(c).forEach(g=>{delete c[g]}),W(f).forEach(g=>{O(g,f[g])}),s.forEach(g=>g&&g.reset())}function x(f){const{value:g}=Xt(f);return t.watch(g,()=>{$(t.unref(f))||ne({mode:"validated-only"})},{deep:!0}),g}function V(f){return Array.isArray(f)?f.map(x):x(f)}function T(f,g){const F=o.value[f];F&&K(F,P=>P.setTouched(g))}function L(f){W(f).forEach(g=>{T(g,!!f[g])})}function y(f){i=!0,f!=null&&f.values?(E(f.values),w(f==null?void 0:f.values)):(E(k.value),w(k.value)),le(g=>g.resetField()),f!=null&&f.touched&&L(f.touched),v((f==null?void 0:f.errors)||{}),a.value=(f==null?void 0:f.submitCount)||0,t.nextTick(()=>{i=!1})}function B(f,g){const F=t.markRaw(f),P=g;if(!o.value[P]){o.value[P]=F;return}const C=o.value[P];C&&!Array.isArray(C)&&(o.value[P]=[C]),o.value[P]=[...o.value[P],F]}function Q(f,g){const F=g,P=o.value[F];if(!!P){if(!H(P)&&f.id===P.id){delete o.value[F];return}if(H(P)){const C=P.findIndex(G=>G.id===f.id);if(C===-1)return;P.splice(C,1),P.length||delete o.value[F]}}}function ce(f){const g=t.unref(f.name);B(f,g),t.isRef(f.name)&&t.watch(f.name,async(P,C)=>{await t.nextTick(),Q(f,C),B(f,P),(d.value[C]||d.value[P])&&(Y(C,void 0),oe(P)),await t.nextTick(),$(C)||ft(c,C)});const F=t.unref(f.errorMessage);F&&(j==null?void 0:j[g])!==F&&oe(g),delete j[g]}function te(f){const g=t.unref(f.name),F=o.value[g],P=!!F&&H(F);Q(f,g),t.nextTick(()=>{var C;const G=(C=t.unref(f.keepValueOnUnmount))!==null&&C!==void 0?C:t.unref(N),J=U(c,g);if(P&&(F===o.value[g]||!o.value[g])&&Array.isArray(J)&&!G){const xe=J.findIndex(re=>ie(re,t.unref(f.checkedValue)));if(xe>-1){const re=[...J];re.splice(xe,1),O(g,re,{force:!0})}}if(!$(g)){if(Y(g,void 0),G||P&&!zt(U(c,g)))return;ft(c,g)}})}async function ne(f){if(le(C=>C.meta.validated=!0),z.validateSchema)return z.validateSchema((f==null?void 0:f.mode)||"force");const g=await Promise.all(Object.values(o.value).map(C=>{const G=Array.isArray(C)?C[0]:C;return G?G.validate(f).then(J=>({key:t.unref(G.name),valid:J.valid,errors:J.errors})):Promise.resolve({key:"",valid:!0,errors:[]})})),F={},P={};for(const C of g)F[C.key]={valid:C.valid,errors:C.errors},C.errors.length&&(P[C.key]=C.errors[0]);return{valid:g.every(C=>C.valid),results:F,errors:P}}async function oe(f){const g=o.value[f];return g?Array.isArray(g)?g.map(F=>F.validate())[0]:g.validate():(t.warn(`field with name ${f} was not found`),Promise.resolve({errors:[],valid:!0}))}function De(f,g){return function(P){return P instanceof Event&&(P.preventDefault(),P.stopPropagation()),L(W(o.value).reduce((C,G)=>(C[G]=!0,C),{})),r.value=!0,a.value++,ne().then(C=>{if(C.valid&&typeof f=="function")return f(Z(c),{evt:P,setErrors:v,setFieldError:Y,setTouched:L,setFieldTouched:T,setValues:w,setFieldValue:O,resetForm:y});!C.valid&&typeof g=="function"&&g({values:Z(c),evt:P,errors:C.errors,results:C.results})}).then(C=>(r.value=!1,C),C=>{throw r.value=!1,C})}}function kn(f,g){fe(p.value,f,Z(g))}function Jr(f){ft(p.value,f)}function Xr(f,g,F=!1){fe(c,f,g),kn(f,g),F&&!(e!=null&&e.initialValues)&&fe(k.value,f,Z(g))}async function pn(){const f=t.unref(M);return f?Ee(f)?await ml(f,c):await hl(f,c,{names:S.value,bailsMap:q.value}):{valid:!0,results:{},errors:{}}}const ea=De((f,{evt:g})=>{_t(g)&&g.target.submit()});return t.onMounted(()=>{if(e!=null&&e.initialErrors&&v(e.initialErrors),e!=null&&e.initialTouched&&L(e.initialTouched),e!=null&&e.validateOnMount){ne();return}z.validateSchema&&z.validateSchema("silent")}),t.isRef(M)&&t.watch(M,()=>{var f;(f=z.validateSchema)===null||f===void 0||f.call(z,"validated-only")}),t.provide(me,z),process.env.NODE_ENV!=="production"&&(kl(z),t.watch(()=>Object.assign(Object.assign({errors:u.value},I.value),{values:c,isSubmitting:r.value,submitCount:a.value}),ke,{deep:!0})),{errors:d,meta:I,values:c,isSubmitting:r,submitCount:a,validate:ne,validateField:oe,handleReset:()=>y(),resetForm:y,handleSubmit:De,submitForm:ea,setFieldError:Y,setErrors:v,setFieldValue:O,setValues:w,setFieldTouched:T,setTouched:L,useFieldModel:V}}function Al(e,n,l,i){const o={touched:"some",pending:"some",valid:"every"},r=t.computed(()=>!ie(n,t.unref(l)));function a(){const c=Object.values(e.value).flat(1).filter(Boolean);return W(o).reduce((u,m)=>{const h=o[m];return u[m]=c[h](d=>d.meta[m]),u},{})}const s=t.reactive(a());return t.watchEffect(()=>{const c=a();s.touched=c.touched,s.valid=c.valid,s.pending=c.pending}),t.computed(()=>Object.assign(Object.assign({initialValues:t.unref(l)},s),{valid:s.valid&&!W(i.value).length,dirty:r.value}))}function Ml(e,n,l){const i=t.ref(Z(t.unref(l))||{}),o=t.ref(Z(t.unref(l))||{});function r(a,s=!1){i.value=Z(a),o.value=Z(a),s&&W(e.value).forEach(c=>{const u=e.value[c],m=Array.isArray(u)?u.some(d=>d.meta.touched):u==null?void 0:u.meta.touched;if(!u||m)return;const h=U(i.value,c);fe(n,c,Z(h))})}return t.isRef(l)&&t.watch(l,a=>{r(a,!0)},{deep:!0}),{initialValues:i,originalInitialValues:o,setInitialValues:r}}function Fl(e){const n=t.ref({});function l(r){return Array.isArray(r)?r:r?[r]:[]}function i(r,a){if(!a){delete n.value[r];return}n.value[r]=l(a)}function o(r){n.value=W(r).reduce((a,s)=>{const c=r[s];return c&&(a[s]=l(c)),a},{})}return e&&o(e),{errorBag:n,setErrorBag:o,setFieldErrorBag:i}}t.defineComponent({name:"Form",inheritAttrs:!1,props:{as:{type:String,default:"form"},validationSchema:{type:Object,default:void 0},initialValues:{type:Object,default:void 0},initialErrors:{type:Object,default:void 0},initialTouched:{type:Object,default:void 0},validateOnMount:{type:Boolean,default:!1},onSubmit:{type:Function,default:void 0},onInvalidSubmit:{type:Function,default:void 0},keepValues:{type:Boolean,default:!1}},setup(e,n){const l=t.toRef(e,"initialValues"),i=t.toRef(e,"validationSchema"),o=t.toRef(e,"keepValues"),{errors:r,values:a,meta:s,isSubmitting:c,submitCount:u,validate:m,validateField:h,handleReset:d,resetForm:b,handleSubmit:$,setErrors:S,setFieldError:q,setFieldValue:j,setValues:N,setFieldTouched:p,setTouched:k}=Tl({validationSchema:i.value?i:void 0,initialValues:l,initialErrors:e.initialErrors,initialTouched:e.initialTouched,validateOnMount:e.validateOnMount,keepValuesOnUnmount:o}),E=$((A,{evt:z})=>{_t(z)&&z.target.submit()},e.onInvalidSubmit),I=e.onSubmit?$(e.onSubmit,e.onInvalidSubmit):E;function M(A){ct(A)&&A.preventDefault(),d(),typeof n.attrs.onReset=="function"&&n.attrs.onReset()}function D(A,z){return $(typeof A=="function"&&!z?A:z,e.onInvalidSubmit)(A)}function R(){return{meta:s.value,errors:r.value,values:a,isSubmitting:c.value,submitCount:u.value,validate:m,validateField:h,handleSubmit:D,handleReset:d,submitForm:E,setErrors:S,setFieldError:q,setFieldValue:j,setValues:N,setFieldTouched:p,setTouched:k,resetForm:b}}return n.expose({setFieldError:q,setErrors:S,setFieldValue:j,setValues:N,setFieldTouched:p,setTouched:k,resetForm:b,validate:m,validateField:h}),function(){const z=e.as==="form"?e.as:t.resolveDynamicComponent(e.as),H=Re(z,n,R);if(!e.as)return H;const K=e.as==="form"?{novalidate:!0}:{};return t.h(z,Object.assign(Object.assign(Object.assign({},K),n.attrs),{onSubmit:I,onReset:M}),H)}}});function Pl(e){const n=Be(me,void 0),l=t.ref([]),i=()=>{},o={fields:l,remove:i,push:i,swap:i,insert:i,update:i,replace:i,prepend:i,move:i};if(!n)return mt("FieldArray requires being a child of `<Form/>` or `useForm` being called before it. Array fields may not work correctly"),o;if(!t.unref(e))return mt("FieldArray requires a field path to be provided, did you forget to pass the `name` prop?"),o;const r=n.fieldArrays.find(p=>t.unref(p.path)===t.unref(e));if(r)return r;let a=0;function s(){const p=U(n==null?void 0:n.values,t.unref(e),[])||[];l.value=p.map(u),c()}s();function c(){const p=l.value.length;for(let k=0;k<p;k++){const E=l.value[k];E.isFirst=k===0,E.isLast=k===p-1}}function u(p){const k=a++;return{key:k,value:t.computed({get(){const I=U(n==null?void 0:n.values,t.unref(e),[])||[],M=l.value.findIndex(D=>D.key===k);return M===-1?p:I[M]},set(I){const M=l.value.findIndex(D=>D.key===k);if(M===-1){mt("Attempting to update a non-existent array item");return}S(M,I)}}),isFirst:!1,isLast:!1}}function m(p){const k=t.unref(e),E=U(n==null?void 0:n.values,k);if(!E||!Array.isArray(E))return;const I=[...E];I.splice(p,1),n==null||n.unsetInitialValue(k+`[${p}]`),n==null||n.setFieldValue(k,I),l.value.splice(p,1),c()}function h(p){const k=t.unref(e),E=U(n==null?void 0:n.values,k),I=Ce(E)?[]:E;if(!Array.isArray(I))return;const M=[...I];M.push(p),n==null||n.stageInitialValue(k+`[${M.length-1}]`,p),n==null||n.setFieldValue(k,M),l.value.push(u(p)),c()}function d(p,k){const E=t.unref(e),I=U(n==null?void 0:n.values,E);if(!Array.isArray(I)||!(p in I)||!(k in I))return;const M=[...I],D=[...l.value],R=M[p];M[p]=M[k],M[k]=R;const A=D[p];D[p]=D[k],D[k]=A,n==null||n.setFieldValue(E,M),l.value=D,c()}function b(p,k){const E=t.unref(e),I=U(n==null?void 0:n.values,E);if(!Array.isArray(I)||I.length<p)return;const M=[...I],D=[...l.value];M.splice(p,0,k),D.splice(p,0,u(k)),n==null||n.setFieldValue(E,M),l.value=D,c()}function $(p){const k=t.unref(e);n==null||n.setFieldValue(k,p),s()}function S(p,k){const E=t.unref(e),I=U(n==null?void 0:n.values,E);!Array.isArray(I)||I.length-1<p||n==null||n.setFieldValue(`${E}[${p}]`,k)}function q(p){const k=t.unref(e),E=U(n==null?void 0:n.values,k),I=Ce(E)?[]:E;if(!Array.isArray(I))return;const M=[p,...I];n==null||n.stageInitialValue(k+`[${M.length-1}]`,p),n==null||n.setFieldValue(k,M),l.value.unshift(u(p)),c()}function j(p,k){const E=t.unref(e),I=U(n==null?void 0:n.values,E),M=Ce(I)?[]:[...I];if(!Array.isArray(I)||!(p in I)||!(k in I))return;const D=[...l.value],R=D[p];D.splice(p,1),D.splice(k,0,R);const A=M[p];M.splice(p,1),M.splice(k,0,A),n==null||n.setFieldValue(E,M),l.value=D,c()}const N={fields:l,remove:m,push:h,swap:d,insert:b,update:S,replace:$,prepend:q,move:j};return n.fieldArrays.push(Object.assign({path:e,reset:s},N)),t.onBeforeUnmount(()=>{const p=n.fieldArrays.findIndex(k=>t.unref(k.path)===t.unref(e));p>=0&&n.fieldArrays.splice(p,1)}),N}t.defineComponent({name:"FieldArray",inheritAttrs:!1,props:{name:{type:String,required:!0}},setup(e,n){const{push:l,remove:i,swap:o,insert:r,replace:a,update:s,prepend:c,move:u,fields:m}=Pl(t.toRef(e,"name"));function h(){return{fields:m.value,push:l,remove:i,swap:o,insert:r,update:s,replace:a,prepend:c,move:u}}return n.expose({push:l,remove:i,swap:o,insert:r,update:s,replace:a,prepend:c,move:u}),()=>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 o(){return{message:i.value}}return()=>{if(!i.value)return;const r=e.as?t.resolveDynamicComponent(e.as):e.as,a=Re(r,n,o),s=Object.assign({role:"alert"},n.attrs);return!r&&(Array.isArray(a)||!a)&&(a==null?void 0:a.length)?a:(Array.isArray(a)||!a)&&!(a!=null&&a.length)?t.h(r||"span",s,i.value):t.h(r,s,a)}}});function Ve(e,n){var a,s,c,u;const l=(n==null?void 0:n.component)==="input"&&(((a=n==null?void 0:n.error)==null?void 0:a.value)!==null||(n==null?void 0:n.modelValue)!==void 0),i=(n==null?void 0:n.component)==="radio"&&(((s=n==null?void 0:n.error)==null?void 0:s.value)!==null||(n==null?void 0:n.modelValue)!==void 0),o=(n==null?void 0:n.component)==="checkbox"&&(((c=n==null?void 0:n.error)==null?void 0:c.value)!==null||(n==null?void 0:n.modelValue)!==void 0),r=(n==null?void 0:n.component)==="select"&&(((u=n==null?void 0:n.error)==null?void 0:u.value)!==null||(n==null?void 0:n.selected)!==void 0);return n!=null&&n.useFieldParent?n==null?void 0:n.useFieldParent(e):n!=null&&n.rules?$t(e,n==null?void 0:n.rules,n==null?void 0:n.opts):r?Dl(n==null?void 0:n.error,n==null?void 0:n.selected):l||i||o?Ll(n==null?void 0:n.error,n==null?void 0:n.modelValue):$t(e)}function Ll(e,n){return{value:t.ref(n!=null?n:""),errorMessage:e}}function Dl(e,n){return{value:t.ref(n),errorMessage:e}}const ql={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},zl=[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 jl(e,n){return t.openBlock(),t.createElementBlock("svg",ql,zl)}const _l={name:"material-symbols-done",render:jl},Rl=["id","data-testid"],Ql=["for","data-testid","data-required"],Hl={class:"container-input"},Ul=["id","data-testid"],Zl={inheritAttrs:!1},Ie=t.defineComponent({...Zl,__name:"InputText",props:{id:null,name:null,class:null,label:null,mask:null,helperText:null,successText:null,loadingText:null,required:null,disabled:null,isSuccess:null,isLoading:null,size:{default:"medium"},error:{default:null},modelValue:null,placeholder:null,useField:null,rules:null,opts:null},emits:["update:modelValue"],setup(e,{emit:n}){const l=e,i=t.useSlots(),o=t.computed(()=>!!(i!=null&&i.icon)),r=t.computed(()=>{var d;return(d=l.name)!=null?d:""}),{value:a,errorMessage:s}=Ve(r.value,{component:"input",error:t.computed(()=>l.error),modelValue:l.modelValue,rules:l.rules,opts:l.opts,useFieldParent:l.useField}),c=t.computed(()=>!!l.loadingText||!!(s!=null&&s.value)||!!l.successText||!!l.helperText),u=t.computed(()=>c.value?`input-text-describe-${l.id}`:null),m=t.computed(()=>{var d;return l.loadingText&&l.isLoading?{text:l.loadingText,type:"loading"}:(d=s==null?void 0:s.value)!=null&&d.length?{text:s==null?void 0:s.value,type:"error"}:l.successText&&l.isSuccess?{text:l.successText,type:"success"}:{text:l.helperText,type:"helper"}});function h(d){n("update:modelValue",d)}return(d,b)=>(t.openBlock(),t.createElementBlock("div",{id:`input-text-${e.id}`,"data-testid":`input-text-${e.id}`,class:t.normalizeClass([[`${d.$props.class}`,{"-disabled":e.disabled}],"sol-input-text-core"])},[e.label?(t.openBlock(),t.createElementBlock("label",{key:0,for:`input-text-input-${e.id}`,"data-testid":`input-text-label-${e.id}`,class:t.normalizeClass(["label",`-${e.size}`]),"data-required":e.required},t.toDisplayString(e.label),11,Ql)):t.createCommentVNode("",!0),t.createElementVNode("div",Hl,[t.createVNode(Lt,t.mergeProps(d.$attrs,{id:`text-input-${e.id}`,modelValue:t.unref(a),"onUpdate:modelValue":[b[0]||(b[0]=$=>t.isRef(a)?a.value=$:null),h],size:e.size,name:t.unref(r),mask:e.mask,placeholder:e.placeholder,"data-required":e.required,"has-feedback-icon":t.unref(o),error:!!t.unref(s),disabled:e.disabled,"aria-invalid":!!t.unref(s),"aria-describedby":t.unref(u)}),null,16,["id","modelValue","size","name","mask","placeholder","data-required","has-feedback-icon","error","disabled","aria-invalid","aria-describedby"]),e.isLoading?(t.openBlock(),t.createBlock(It,{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(_l),{key:0,"aria-hidden":"true",class:"text-feedback-positive-pure"})):t.renderSlot(d.$slots,"icon",{key:1})],2))]),t.unref(c)?(t.openBlock(),t.createElementBlock("span",{key:1,id:`input-text-describe-${e.id}`,"data-testid":`input-text-describe-${e.id}`,class:t.normalizeClass(["message",`-${t.unref(m).type}`])},t.toDisplayString(t.unref(m).text),11,Ul)):t.createCommentVNode("",!0)],10,Rl))}}),ca="",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:"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 Wl(e,n){return t.openBlock(),t.createElementBlock("svg",Gl,Yl)}const Kl={name:"iconoir-eye-empty",render:Wl},Jl={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Xl=[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 ei(e,n){return t.openBlock(),t.createElementBlock("svg",Jl,Xl)}const ti={name:"iconoir-eye-off",render:ei},ni=["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,o)=>(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:o[0]||(o[0]=r=>n.value=!n.value)},[t.withDirectives(t.createVNode(t.unref(Kl),{class:"password-feedback-icon","aria-hidden":"true"},null,512),[[t.vShow,n.value]]),t.withDirectives(t.createVNode(t.unref(ti),{class:"password-feedback-icon","aria-hidden":"true"},null,512),[[t.vShow,!n.value]])],8,ni)]),_:1},8,["id","type","label","name","required","size","helper-text","placeholder","error","model-value","use-field","rules","opts"]))}}),fa="",li=["id","data-testid"],ii=["id","data-testid","for","data-required"],oi=["id","data-testid","data-required","placeholder","aria-invalid","aria-describedby"],ri=["id","data-testid"],He=t.defineComponent({__name:"InputTextarea",props:{id:null,class:null,name:null,label:null,required:{type:Boolean},helperText:null,resize:{default:"both"},size:{default:"medium"},error:{default:null},placeholder:null,modelValue:null,useField:null,rules:null,opts:null},emits:["update:modelValue"],setup(e,{emit:n}){const l=e,i=t.computed(()=>{var m;return(m=l.name)!=null?m:""}),{value:o,errorMessage:r}=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(()=>!!(r!=null&&r.value)||!!l.helperText),s=t.computed(()=>a.value?`input-textarea-describe-${l.id}`:void 0),c=t.computed(()=>{var m;return(m=r==null?void 0:r.value)!=null&&m.length?{text:r==null?void 0:r.value,type:"error"}:{text:l.helperText,type:"helper"}});function u({target:m}){n("update:modelValue",m==null?void 0:m.value)}return(m,h)=>{var d;return t.openBlock(),t.createElementBlock("div",{id:`input-textarea-${e.id}`,"data-testid":`input-textarea-${e.id}`,class:t.normalizeClass([[`${(d=m.$props.class)!=null?d:""}`,`-${e.size}`],"sol-textarea-core"])},[e.label?(t.openBlock(),t.createElementBlock("label",{key:0,id:`input-textarea-label-${e.id}`,"data-testid":`input-textarea-label-${e.id}`,for:`input-textarea-input-${e.id}`,class:"label","data-required":e.required},[t.createElementVNode("span",null,t.toDisplayString(e.label),1)],8,ii)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(t.unref(o))+" ",1),t.withDirectives(t.createElementVNode("textarea",t.mergeProps(m.$attrs,{id:`input-textarea-input-${e.id}`,"onUpdate:modelValue":h[0]||(h[0]=b=>t.isRef(o)?o.value=b:null),"data-testid":`input-textarea-input-${e.id}`,"data-required":e.required,class:[[`-${e.size}`,{"-error":e.error}],"textarea"],rows:"4",placeholder:e.placeholder,style:{resize:e.resize},"aria-invalid":!!t.unref(r),"aria-describedby":t.unref(s),onInput:u}),null,16,oi),[[t.vModelText,t.unref(o)]]),t.unref(a)?(t.openBlock(),t.createElementBlock("span",{key:1,id:`input-textarea-describe-${e.id}`,"data-testid":`input-textarea-describe-${e.id}`,class:t.normalizeClass(["message",`-${t.unref(c).type}`])},t.toDisplayString(t.unref(c).text),11,ri)):t.createCommentVNode("",!0)],10,li)}}}),ma="";Ie.install=e=>{e.component("SolInputText",Ie)},Qe.install=e=>{e.component("SolInputTextPassword",Qe)},He.install=e=>{e.component("SolInputTextarea",He)};const ai=["id","aria-checked","aria-labelledby","data-testid","checked","value","name"],si=["id","for","data-testid"],Ue=t.defineComponent({__name:"Switch",props:{id:null,name:null,value:null,label:null,checked:{type:Boolean},class:null,textDirection:{default:"left"},hideLabel:{type:Boolean},stretchLabel:{type:Boolean,default:!1}},emits:["change","update:checked"],setup(e,{emit:n}){const l=e;function i(){var o;n("change",(o=l.value)!=null?o:!!l.checked),n("update:checked",!l.checked)}return(o,r)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["sol-switch-core",[o.$props.class,`-text-${e.textDirection}`,{"-stretch-label":e.stretchLabel}]])},[t.createElementVNode("input",t.mergeProps(o.$attrs,{id:`switch-${e.name}-${e.id}`,type:"checkbox",class:"switch",role:"switch","aria-checked":e.checked,"aria-labelledby":`switch-label-${e.name}-${e.id}`,"data-testid":`switch-${e.name}-${e.id}`,checked:e.checked,value:e.value,name:e.name,onChange:i}),null,16,ai),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,si)],2))}}),ha="";Ue.install=e=>{e.component("SolSwitch",Ue)};const ci=["id","data-testid","checked","value","name"],di=["for"],ui={inheritAttrs:!1},$e=t.defineComponent({...ui,__name:"Radio",props:{id:null,name:null,value:null,label:null,hideLabel:null,checked:null,class:null},emits:["change"],setup(e,{emit:n}){return(l,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["sol-radio-core",[l.$props.class,{"-hide-label":e.hideLabel}]])},[t.createElementVNode("input",t.mergeProps(l.$attrs,{id:`radio-${e.name}-${e.id}`,type:"radio",class:"radio","data-testid":`radio-${e.name}-${e.id}`,checked:e.checked,value:e.value,name:e.name,onChange:i[0]||(i[0]=o=>n("change",e.value))}),null,16,ci),t.createElementVNode("label",{class:"label",for:`radio-${e.name}-${e.id}`},t.toDisplayString(e.label),9,di)],2))}}),ya="",fi=["id","data-testid","aria-labelledby"],mi=["id","data-testid"],hi=["id","data-testid"],Ze=t.defineComponent({__name:"RadioGroup",props:{id:null,title:null,name:null,hideTitle:{type:Boolean,default:!1},helperText:null,error:{default:null},radios:null,modelValue:null,direction:{default:"row"},useField:null,rules:null,opts:null},emits:["change","update:modelValue"],setup(e,{emit:n}){const l=e,i=t.computed(()=>{var h;return(h=l.name)!=null?h:""}),{value:o,errorMessage:r}=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(()=>!!(r!=null&&r.value)||!!l.helperText),s=t.computed(()=>a.value?`radios-describe-${l.id}`:null),c=t.computed(()=>{var h;return(h=r==null?void 0:r.value)!=null&&h.length?{text:r==null?void 0:r.value,type:"error"}:{text:l.helperText,type:"helper"}});function u(h){return o.value===h}function m(h){o.value=h.value,n("change",h.value),n("update:modelValue",h.value)}return(h,d)=>(t.openBlock(),t.createElementBlock("fieldset",{id:`radio-group-${e.id}`,"data-testid":`radio-group-${e.id}`,"aria-labelledby":`radio-group-title-${e.id}`,class:"sol-radio-group-core"},[t.renderSlot(h.$slots,"title",{id:`radio-group-title-${e.id}`},()=>[t.createElementVNode("legend",{id:`radio-group-title-${e.id}`,class:t.normalizeClass(["title",{"sr-only":e.hideTitle}]),"data-testid":`radio-group-title-${e.id}`},t.toDisplayString(e.title),11,mi)]),t.createElementVNode("ul",{class:t.normalizeClass(["container-radios",{"flex-col":e.direction==="column"}])},[t.renderSlot(h.$slots,"default",{radios:e.radios,direction:e.direction},()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.radios,(b,$)=>{var S;return t.openBlock(),t.createElementBlock("li",{key:$},[t.createVNode($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(r),"aria-invalid":!!t.unref(r),"aria-describedby":t.unref(s),onChange:q=>m(b)}),null,16,["id","class","name","value","label","checked","error","aria-invalid","aria-describedby","onChange"])])}),128))])],2),t.unref(a)?(t.openBlock(),t.createElementBlock("span",{key:0,id:`radios-describe-${e.id}`,"data-testid":`radios-describe-${e.id}`,class:t.normalizeClass(["message",`-${t.unref(c).type}`])},t.toDisplayString(t.unref(c).text),11,hi)):t.createCommentVNode("",!0)],8,fi))}}),ga="";$e.install=e=>{e.component("SolRadio",$e)},Ze.install=e=>{e.component("SolRadioGroup",Ze)};const yi=["id","indeterminate","data-testid","checked","value","name"],gi=["for"],bi={inheritAttrs:!1},he=t.defineComponent({...bi,__name:"Checkbox",props:{id:null,name:null,value:null,label:null,hideLabel:null,checked:null,class:null,indeterminate:{type:Boolean}},emits:["change"],setup(e,{emit:n}){return(l,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["sol-checkbox-core",[l.$props.class,{"-hide-label":e.hideLabel}]])},[t.createElementVNode("input",t.mergeProps(l.$attrs,{id:`checkbox-${e.name}-${e.id}`,type:"checkbox",indeterminate:e.indeterminate,class:"checkbox","data-testid":`checkbox-${e.name}-${e.id}`,checked:e.checked,value:e.value,name:e.name,onChange:i[0]||(i[0]=o=>n("change",e.value))}),null,16,yi),t.createElementVNode("label",{class:"label",for:`checkbox-${e.name}-${e.id}`},t.toDisplayString(e.label),9,gi)],2))}}),ba="",ki=["id","data-testid","aria-labelledby"],pi=["id","data-testid"],$i=["id","data-testid"],Ge=t.defineComponent({__name:"CheckboxGroup",props:{id:null,title:null,name:null,hideTitle:{type:Boolean,default:!1},helperText:null,error:{default:null},checkboxes:null,modelValue:null,direction:{default:"row"},useField:null,rules:null,opts:null},emits:["change","update:modelValue"],setup(e,{emit:n}){const l=e,i=t.computed(()=>{var d;return(d=l.name)!=null?d:""}),{value:o,errorMessage:r}=Ve(i.value,{component:"checkbox",error:t.computed(()=>l.error),modelValue:l.modelValue,rules:l.rules,useFieldParent:l.useField}),a=t.computed(()=>!!(r!=null&&r.value)||!!l.helperText),s=t.computed(()=>a.value?`checkboxes-describe-${l.id}`:null),c=t.computed(()=>{var d;return(d=r==null?void 0:r.value)!=null&&d.length?{text:r==null?void 0:r.value,type:"error"}:{text:l.helperText,type:"helper"}});function u(d){var b;return(b=o.value)==null?void 0:b.includes(d)}function m(d){return Array.isArray(o.value)?[...o.value,d]:[d]}function h(d){var $;n("change",d.value);const b=u(d.value)?($=o.value)==null?void 0:$.filter(S=>S!==d.value):m(d.value);o.value=b,n("update:modelValue",b)}return(d,b)=>(t.openBlock(),t.createElementBlock("fieldset",{id:`checkbox-group-${e.id}`,"data-testid":`checkbox-group-${e.id}`,class:"sol-checkbox-group-core","aria-labelledby":`checkbox-group-title-${e.id}`},[t.renderSlot(d.$slots,"title",{id:`checkbox-group-title-${e.id}`},()=>[t.createElementVNode("legend",{id:`checkbox-group-title-${e.id}`,class:t.normalizeClass(["title",{"sr-only":e.hideTitle}]),"data-testid":`checkbox-group-title-${e.id}`},t.toDisplayString(e.title),11,pi)]),t.createElementVNode("ul",{class:t.normalizeClass(["container-checkboxes",{"flex-col":e.direction==="column"}])},[t.renderSlot(d.$slots,"default",{checkboxes:e.checkboxes,direction:e.direction},()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.checkboxes,($,S)=>{var q;return t.openBlock(),t.createElementBlock("li",{key:S},[t.createVNode(he,t.mergeProps(d.$attrs,{id:(q=$==null?void 0:$.id)!=null?q:`${$.value}`,class:["checkbox",{"mb-micro":e.direction==="column","mr-micro":e.direction==="row"}],label:$.label,name:$.name,value:$.value,checked:u($.value),error:!!t.unref(r),"aria-invalid":!!t.unref(r),"aria-describedby":t.unref(s),onChange:j=>h($)}),null,16,["id","class","label","name","value","checked","error","aria-invalid","aria-describedby","onChange"])])}),128))])],2),t.unref(a)?(t.openBlock(),t.createElementBlock("span",{key:0,id:`checkboxes-describe-${e.id}`,"data-testid":`checkboxes-describe-${e.id}`,class:t.normalizeClass(["message",`-${t.unref(c).type}`])},t.toDisplayString(t.unref(c).text),11,$i)):t.createCommentVNode("",!0)],8,ki))}}),ka="";he.install=e=>{e.component("SolCheckbox",he)},Ge.install=e=>{e.component("SolCheckboxGroup",Ge)};var an;const Ne=typeof window<"u",wi=e=>typeof e=="string",wt=()=>{},sn=Ne&&((an=window==null?void 0:window.navigator)==null?void 0:an.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function St(e){return typeof e=="function"?e():t.unref(e)}function Si(e){return e}function xt(e){return t.getCurrentScope()?(t.onScopeDispose(e),!0):!1}function cn(e){return typeof e=="function"?t.computed(e):t.ref(e)}function xi(e,n=!0){t.getCurrentInstance()?t.onMounted(e):n?e():t.nextTick(e)}function Te(e){var n;const l=St(e);return(n=l==null?void 0:l.$el)!=null?n:l}const Ct=Ne?window:void 0;Ne&&window.document,Ne&&window.navigator,Ne&&window.location;function Ae(...e){let n,l,i,o;if(wi(e[0])?([l,i,o]=e,n=Ct):[n,l,i,o]=e,!n)return wt;let r=wt;const a=t.watch(()=>Te(n),c=>{r(),c&&(c.addEventListener(l,i,o),r=()=>{c.removeEventListener(l,i,o),r=wt})},{immediate:!0,flush:"post"}),s=()=>{a(),r()};return xt(s),s}function dn(e,n,l={}){const{window:i=Ct,ignore:o,capture:r=!0,detectIframe:a=!1}=l;if(!i)return;const s=t.ref(!0);let c;const u=b=>{i.clearTimeout(c);const $=Te(e);!$||$===b.target||b.composedPath().includes($)||!s.value||n(b)},m=b=>o&&o.some($=>{const S=Te($);return S&&(b.target===S||b.composedPath().includes(S))}),h=[Ae(i,"click",u,{passive:!0,capture:r}),Ae(i,"pointerdown",b=>{const $=Te(e);s.value=!!$&&!b.composedPath().includes($)&&!m(b)},{passive:!0}),Ae(i,"pointerup",b=>{if(b.button===0){const $=b.composedPath();b.composedPath=()=>$,c=i.setTimeout(()=>u(b),50)}},{passive:!0}),a&&Ae(i,"blur",b=>{var $;const S=Te(e);(($=document.activeElement)==null?void 0:$.tagName)==="IFRAME"&&!(S!=null&&S.contains(document.activeElement))&&n(b)})].filter(Boolean);return()=>h.forEach(b=>b())}function Ci(e,n=!1){const l=t.ref(),i=()=>l.value=Boolean(e());return i(),xi(i,n),l}function Ei(e,n={}){const{window:l=Ct}=n,i=Ci(()=>l&&"matchMedia"in l&&typeof l.matchMedia=="function");let o;const r=t.ref(!1),a=()=>{!o||("removeEventListener"in o?o.removeEventListener("change",s):o.removeListener(s))},s=()=>{!i.value||(a(),o=l.matchMedia(cn(e).value),r.value=o.matches,"addEventListener"in o?o.addEventListener("change",s):o.addListener(s))};return t.watchEffect(s),xt(()=>a()),r}const Et=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Bt="__vueuse_ssr_handlers__";Et[Bt]=Et[Bt]||{},Et[Bt];var un;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(un||(un={}));function Bi(e){const n=e||window.event;return n.touches.length>1?!0:(n.preventDefault&&n.preventDefault(),!1)}function vi(e,n=!1){const l=t.ref(n);let i=null,o;t.watch(cn(e),s=>{if(s){const c=s;o=c.style.overflow,l.value&&(c.style.overflow="hidden")}},{immediate:!0});const r=()=>{const s=St(e);!s||l.value||(sn&&(i=Ae(s,"touchmove",Bi,{passive:!1})),s.style.overflow="hidden",l.value=!0)},a=()=>{const s=St(e);!s||!l.value||(sn&&(i==null||i()),s.style.overflow=o,l.value=!1)};return xt(a),t.computed({get(){return l.value},set(s){s?r():a()}})}var Oi=Object.defineProperty,fn=Object.getOwnPropertySymbols,Vi=Object.prototype.hasOwnProperty,Ii=Object.prototype.propertyIsEnumerable,mn=(e,n,l)=>n in e?Oi(e,n,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[n]=l,Ni=(e,n)=>{for(var l in n||(n={}))Vi.call(n,l)&&mn(e,l,n[l]);if(fn)for(var l of fn(n))Ii.call(n,l)&&mn(e,l,n[l]);return e};Ni({linear:Si},{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 Ti={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Ai=[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 Mi(e,n){return t.openBlock(),t.createElementBlock("svg",Ti,Ai)}const Fi={name:"mi-close",render:Mi},Pi=["id","data-testid","title","aria-describedby","aria-disabled","onKeydown"],Li=["id"],Di={class:"label"},Me=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:o}){if(!l.disabled)switch(o){case"Enter":case"NumpadEnter":case"Space":return n("update:selected");case"Delete":case"Backspace":return l.removable&&n("close");default:return!1}}return(o,r)=>(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:r[1]||(r[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,Li),t.createElementVNode("span",Di,[t.renderSlot(o.$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:r[0]||(r[0]=t.withModifiers(a=>n("close"),["stop"]))},[t.createVNode(t.unref(Fi),{class:"icon"})])):t.createCommentVNode("",!0)],42,Pi))}}),wa="",qi={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},zi=[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 ji(e,n){return t.openBlock(),t.createElementBlock("svg",qi,zi)}const _i={name:"material-symbols-search",render:ji},Ri=["id","data-testid","aria-multiselectable","aria-labelledby"],Qi=["id","data-testid","selected","aria-selected","onClick","onKeyup"],Hi={key:1},Ui={key:0,class:"no-data"},Zi=t.createElementVNode("p",null,"Sem resultado para essa busca",-1),Gi=t.defineComponent({__name:"ListOption",props:{id:null,name:null,options:null,multiple:{type:Boolean},isSelected:null},emits:["select"],setup(e,{expose:n,emit:l}){const i=t.ref("");return n({list:i}),(o,r)=>(t.openBlock(),t.createElementBlock("ul",{id:`select-list-${e.id}`,ref_key:"list",ref:i,"data-testid":`select-list-${e.id}`,role:"listbox",tabindex:"-1","aria-multiselectable":e.multiple,"aria-labelledby":`select-label-${e.id}`,class:"select-list-core"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,(a,s)=>(t.openBlock(),t.createElementBlock("li",{id:`option-${e.id}-${a.value}`,key:s,"data-testid":`option-${e.id}-${a.value}`,role:"option",tabindex:"-1",class:"select-option-item",style:t.normalizeStyle(`--item: ${s+1}`),selected:e.isSelected(a),"aria-selected":e.isSelected(a),onClick:c=>l("select",a),onKeyup:[t.withKeys(c=>l("select",a),["enter"]),t.withKeys(c=>l("select",a),["space"])]},[e.multiple?(t.openBlock(),t.createBlock(he,{key:0,id:`option-${e.id}-${a.value}`,class:"pointer-events-none",value:a.value,checked:e.isSelected(a),label:a.name,name:e.name},null,8,["id","value","checked","label","name"])):(t.openBlock(),t.createElementBlock("span",Hi,t.toDisplayString(a.name),1))],44,Qi))),128)),e.options.length?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("li",Ui,[t.renderSlot(o.$slots,"no-data",{},()=>[t.createVNode(t.unref(_i),{class:"icon"}),Zi])]))],8,Ri))}}),xa="",Yi={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Wi=[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 Ki(e,n){return t.openBlock(),t.createElementBlock("svg",Yi,Wi)}const Ji={name:"mi-search",render:Ki},Xi={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},eo=[t.createElementVNode("path",{fill:"currentColor",d:"m17 10l-5 6l-5-6h10z"},null,-1)];function to(e,n){return t.openBlock(),t.createElementBlock("svg",Xi,eo)}const no={name:"mi-caret-down",render:to};function Ye(e,n){function l({code:i}){var a;const o=i;(()=>{if(!(n!=null&&n.fallback))return!1;const s=c=>Array.isArray(c)?!c.includes(o):o!==c;return n!=null&&n.exclude?!e.hasOwnProperty(o)&&s(n.exclude):!e.hasOwnProperty(o)})()&&(n==null||n.fallback()),e.hasOwnProperty(o)&&((a=e[o])==null||a.call(e))}return{navigate:l}}function vt({target:e,query:n}){const l=t.reactive({id:"",index:-1,rowIndex:-1});function i(d){const b=d!=null?d:l.index,$=e==null?void 0:e.value;h(),d!==void 0&&(l.index=d),setTimeout(()=>{var j;const S=$.children[b],q=n&&S.querySelector(n)?S.querySelector(n):S;l.id=(j=S==null?void 0:S.id)!=null?j:"",q==null||q.focus()},0)}function o(){l.index>0&&(l.index-=1,i())}function r(d){l.index<d-1&&(l.index+=1,i())}function a(){i(0)}function s(d){i(d-1)}function c({query:d,to:b}){var p,k;const $=l.index>=0?l.index:0,q=(e==null?void 0:e.value).children[$],j=Array.isArray(d)?d.flatMap(E=>Array.from(q.querySelectorAll(E))).filter(E=>E):Array.from(q.querySelectorAll(d));if(!j.length)return;const N=l.rowIndex<j.length-1;b==="RIGHT"&&N&&(l.rowIndex+=1,(p=j[l.rowIndex])==null||p.focus()),b==="LEFT"&&(l.rowIndex=l.rowIndex>=0?l.rowIndex-1:-1,l.rowIndex<0?q.focus():(k=j[l.rowIndex])==null||k.focus())}function u(d){return d.id?d.id===l.id:d.index===l.index}function m(){l.id="",l.index=-1,l.rowIndex=-1}function h(){l.rowIndex=-1}return{elementFocus:l,isItemFocused:u,resetStateFocus:m,focusListItem:i,focusOnPreviousItem:o,focusOnNextItem:r,focusOnFirstItem:a,focusOnLastItem:s,focusInsideRow:c}}const lo=["data-testid"],io=["id","data-testid","data-required"],oo=["id","data-testid","disabled","aria-expanded","aria-labelledby","aria-label","aria-invalid","aria-describedby","aria-controls","onClick"],ro={key:0,class:"container-tags"},ao=["data-testid"],so=["id","data-testid"],co={class:"select-options-container"},uo=t.createElementVNode("hr",{class:"text-neutral-high-medium"},null,-1),We=t.defineComponent({__name:"Select",props:{id:null,label:null,ariaLabel:null,name:null,selected:null,options:{default:()=>[]},required:null,disabled:null,loading:{default:!1},searchable:{default:!1},closeOnSelect:{default:!0},fetchOnSearch:{default:!1},multiple:null,helperText:null,size:{default:"medium"},placeholder:{default:"Selecione"},searchPlaceholder:{default:"Buscar por"},error:{default:null},useField:null,rules:null,opts:null},emits:["closeDropdown","search","update:selected"],setup(e,{emit:n}){const l=e,i=t.ref(),o=t.ref(!1),r=t.ref(""),a=t.computed(()=>{var v;return l.fetchOnSearch?l.options:(v=l.options)==null?void 0:v.filter(O=>new RegExp(r.value,"gi").test(O.name))});dn(i,()=>{o.value&&d()});const s=t.computed(()=>{var v;return(v=l.name)!=null?v:""}),{value:c,errorMessage:u}=Ve(s.value,{component:"select",error:t.computed(()=>l.error),selected:l==null?void 0:l.selected,rules:l.rules,opts:l.opts,useFieldParent:l.useField});function m(){l.disabled||(o.value?d():h())}function h(){o.value=!0}function d(){A(),n("closeDropdown")}function b(v){if(Array.isArray(c.value)){const O=c.value.findIndex(({value:w})=>w===v.value);return O===-1?[...c.value,v]:c.value.filter((w,x)=>x!==O)}return[v]}function $(v){const O=l.multiple?b(v):v;n("update:selected",O),c.value=O,l.closeOnSelect&&!l.multiple&&d()}function S(v){var O;return Array.isArray(c.value)?c.value.some(({value:w})=>w===v.value):v.value===((O=c==null?void 0:c.value)==null?void 0:O.value)}const q=t.ref(),j=t.ref();function N(){var v;l.searchable&&(D(),(v=q.value)==null||v.focus())}const{elementFocus:p,focusOnFirstItem:k,focusOnLastItem:E,focusOnNextItem:I,focusOnPreviousItem:M,resetStateFocus:D}=vt({target:j}),{navigate:R}=Ye({Home:k,End:()=>E(l.options.length),ArrowUp:M,ArrowDown:()=>{!o.value&&h(),I(l.options.length)},Escape:d},{fallback:N,exclude:["Enter","NumpadEnter","Space"]});function A(){o.value=!1,r.value="",D()}function z(v){return O=>{v==="search"?q.value=O==null?void 0:O.input:j.value=O==null?void 0:O.list}}function H(){var O;const v=c.value;return(O=v==null?void 0:v.name)!=null?O:l.placeholder}const K=t.computed(()=>!!(u!=null&&u.value)||!!l.helperText),le=t.computed(()=>K.value?`input-text-describe-${l.id}`:void 0),Y=t.computed(()=>{var v;return(v=u==null?void 0:u.value)!=null&&v.length?{text:u==null?void 0:u.value,type:"error"}:{text:l.helperText,type:"helper"}});return(v,O)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"el",ref:i,class:t.normalizeClass(["sol-select-core",`-${e.size}`]),"data-testid":`select-${e.id}`,onKeydownPassive:O[3]||(O[3]=(...w)=>t.unref(R)&&t.unref(R)(...w))},[t.renderSlot(v.$slots,"label",{id:`select-label-${e.id}`,for:`select-toggle-${e.id}`},()=>[e.label?(t.openBlock(),t.createElementBlock("label",{key:0,id:`select-label-${e.id}`,"data-testid":`select-label-${e.id}`,"data-required":e.required,class:t.normalizeClass(["label",{"-disabled":e.disabled}])},t.toDisplayString(e.label),11,io)):t.createCommentVNode("",!0)]),t.createElementVNode("button",{id:`select-toggle-${e.id}`,"data-testid":`select-toggle-${e.id}`,type:"button",disabled:e.disabled,class:"select-button-toggle","aria-haspopup":"listbox","aria-expanded":o.value,"aria-labelledby":`select-label-${e.id}`,"aria-label":e.ariaLabel,"aria-invalid":!!t.unref(u),"aria-describedby":t.unref(le),"aria-controls":`select-list-${e.id}`,onClick:t.withModifiers(m,["stop"])},[t.renderSlot(v.$slots,"toggle-dropdown",{toggle:{open:h,close:d,toggleDropdown:m},isOpen:o.value,select:$,selected:e.selected},()=>{var w;return[e.multiple&&Array.isArray(t.unref(c))&&((w=t.unref(c))==null?void 0:w.length)?(t.openBlock(),t.createElementBlock("div",ro,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(c),(x,V)=>(t.openBlock(),t.createBlock(Me,{id:`select-value-selected-${e.id}-${x.value}`,key:V,label:x.name,onClick:t.withModifiers(T=>$(x),["stop"]),onClose:T=>$(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,ao)),t.createVNode(t.unref(no),{"aria-hidden":"true",tabindex:"-1",class:t.normalizeClass(["icon",{"-open":o.value}])},null,8,["class"])]})],8,oo),t.unref(K)?t.withDirectives((t.openBlock(),t.createElementBlock("span",{key:0,id:`select-describe-${e.id}`,"data-testid":`select-describe-${e.id}`,class:t.normalizeClass(["message",`-${t.unref(Y).type}`])},t.toDisplayString(t.unref(Y).text),11,so)),[[t.vShow,!o.value]]):t.createCommentVNode("",!0),t.createVNode(t.Transition,{mode:"out-in",name:"dropdown"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",co,[t.renderSlot(v.$slots,"search",{},()=>[e.searchable?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["search-container",{"-loading":e.loading}])},[t.createVNode(Lt,{id:`select-search-${e.id}`,ref:z("search"),modelValue:r.value,"onUpdate:modelValue":O[0]||(O[0]=w=>r.value=w),role:"combobox",class:"search",size:"small","aria-autocomplete":"list",placeholder:e.searchPlaceholder,"aria-expanded":o.value,"aria-haspopup":"listbox","aria-owns":`select-list-${e.id}`,"aria-controls":`select-list-${e.id}`,"aria-activedescendant":t.unref(p).id,"aria-labelledby":`select-label-${e.id}`,onClick:O[1]||(O[1]=t.withModifiers(()=>{},["stop"])),onInput:O[2]||(O[2]=w=>{var x;return n("search",(x=w.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(Ji),{"aria-hidden":"true",class:"icon"})],2)):t.createCommentVNode("",!0),uo,t.createVNode(Gi,{id:e.id,ref:z("list"),options:t.unref(a),name:t.unref(s),multiple:e.multiple,"is-selected":S,onSelect:$},{"no-data":t.withCtx(()=>[t.renderSlot(v.$slots,"no-data")]),_:3},8,["id","options","name","multiple"])])],512),[[t.vShow,o.value]])]),_:3})],42,lo))}}),Ba="";We.install=e=>{e.component("SolSelect",We)},Me.install=e=>{e.component("SolChip",Me)};const fo=["id","data-testid","title"],Ke=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,fo))}}),va="";Ke.install=e=>{e.component("SolTag",Ke)};const mo={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},ho=[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 yo(e,n){return t.openBlock(),t.createElementBlock("svg",mo,ho)}const go={name:"material-symbols-check-circle-outline",render:yo},bo={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},ko=[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 po(e,n){return t.openBlock(),t.createElementBlock("svg",bo,ko)}const $o={name:"material-symbols-warning-outline",render:po},wo={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},So=[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 xo(e,n){return t.openBlock(),t.createElementBlock("svg",wo,So)}const Co={name:"material-symbols-cancel-outline",render:xo},Eo={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Bo=[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 vo(e,n){return t.openBlock(),t.createElementBlock("svg",Eo,Bo)}const Oo={name:"material-symbols-info-outline",render:vo},Vo=["id","data-testid"],Io={class:"container-content"},No={class:"content"},To={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",Io,[e.feedback==="success"?(t.openBlock(),t.createBlock(t.unref(go),{key:0,class:"icon","aria-hidden":"true"})):t.createCommentVNode("",!0),e.feedback==="warning"?(t.openBlock(),t.createBlock(t.unref($o),{key:1,class:"icon","aria-hidden":"true"})):t.createCommentVNode("",!0),e.feedback==="error"?(t.openBlock(),t.createBlock(t.unref(Co),{key:2,class:"icon","aria-hidden":"true"})):t.createCommentVNode("",!0),e.feedback==="informative"?(t.openBlock(),t.createBlock(t.unref(Oo),{key:3,class:"icon","aria-hidden":"true"})):t.createCommentVNode("",!0),t.createElementVNode("div",No,[e.title?(t.openBlock(),t.createElementBlock("strong",To,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.renderSlot(l.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.text),1)])])]),e.action?(t.openBlock(),t.createBlock(ee,{key:0,id:`alert-action-${e.id}`,variant:"secondary",size:"small",onClick:i[0]||(i[0]=o=>n("click"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.action),1)]),_:1},8,["id"])):t.createCommentVNode("",!0)],10,Vo))}}),Ta="";Je.install=e=>{e.component("SolAlert",Je)};const Ao={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Mo=[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 Fo(e,n){return t.openBlock(),t.createElementBlock("svg",Ao,Mo)}const hn={name:"material-symbols-keyboard-arrow-down-rounded",render:Fo},Po=["id","data-testid","aria-disabled"],Lo=["data-testid","tabindex"],Do={class:"container-title"},qo={class:"icon"},zo=["data-testid"],Xe=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",Do,[t.createElementVNode("span",qo,[t.renderSlot(n.$slots,"icon")]),t.renderSlot(n.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(e.title),1)])]),t.createVNode(t.unref(hn),{class:"icon","aria-hidden":"true"})],8,Lo),t.createElementVNode("div",{"data-testid":`accordion-content-${e.id}`,class:"accordion-content"},[t.renderSlot(n.$slots,"default")],8,zo)],10,Po))}}),Ma="";Xe.install=e=>{e.component("SolAccordion",Xe)};const jo=["id","data-testid"],_o=["id","aria-expanded"],Ro=["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();dn(n,()=>{h()});const l=t.ref(!1),i=t.ref(),o=t.computed(()=>i.value?i.value.childElementCount:0),{resetStateFocus:r,focusOnPreviousItem:a,focusOnNextItem:s,focusOnFirstItem:c,focusOnLastItem:u}=vt({target:i,query:'[role="menuitem"]'}),{navigate:m}=Ye({Home:c,End:()=>u(o.value),ArrowUp:a,ArrowDown:()=>{!l.value&&d(),s(o.value)},Escape:h});function h(){l.value=!1,r()}function d(){l.value=!0}function b(){l.value?h():d()}return($,S)=>(t.openBlock(),t.createElementBlock("div",{id:`menu-${e.id}`,ref_key:"el",ref:n,"data-testid":`menu-${e.id}`,class:t.normalizeClass([`-${e.position}`,"sol-menu-core"]),onKeyupPassive:S[0]||(S[0]=(...q)=>t.unref(m)&&t.unref(m)(...q))},[t.renderSlot($.$slots,"trigger",{id:`menu-button-${e.id}`,toggle:b,isOpen:l.value,arias:{role:"menuitem",class:"toggle-menu",ariaHaspopup:!0,ariaExpanded:l.value}},()=>[t.createElementVNode("button",{id:`menu-button-${e.id}`,type:"button",role:"menuitem",class:"toggle-menu","aria-haspopup":"true","aria-expanded":l.value,onClick:b},[t.renderSlot($.$slots,"label",{isOpen:l.value},()=>[t.createTextVNode(t.toDisplayString(e.label),1)])],8,_o)]),t.withDirectives(t.createElementVNode("menu",{id:`menu-container-${e.id}`,ref_key:"menu",ref:i,"data-testid":`menu-container-${e.id}`,role:"menu","aria-labelledby":`menu-button-${e.id}`,class:t.normalizeClass(["menu",{"-open":l.value}])},[t.renderSlot($.$slots,"default",{close:h})],10,Ro),[[t.vShow,l.value]])],42,jo))}}),Fa="",Qo=["itemprop"],Ho=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,Qo)],2))}}),Pa="",Uo=["id","data-testid"],Zo={key:0,"data-interactive":"",class:"selectable"},Go={key:1,class:"column-item -image"},Yo=["data-testid"],Wo={key:2,class:"menu-action","data-interactive":""},Ko=t.defineComponent({__name:"ListItem",props:{id:null,itemIndex:null,headers:null,data:null,hasMenu:null,hasImage:null,renderHeader:null,isHighlight:null,isSelected:null,fallbackValue:null,setFixedColumnSize:null,sortPositions:null},setup(e){const n=e,l=t.useSlots(),i=t.computed(()=>!!(l!=null&&l.selectable));function o(c){return c!=null?c:n.fallbackValue}function r(c){return i.value&&c===0}function a(c){return n.hasImage&&c===0}function s(c,u){return n.hasMenu&&c===0&&u===0}return(c,u)=>(t.openBlock(),t.createElementBlock("li",{id:`listitem-${e.id}-${e.itemIndex}`,"data-testid":`listitem-${e.id}-${e.itemIndex}`,class:t.normalizeClass(["list-item",{"-selected":e.isSelected}]),tabindex:"-1"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.sortPositions,(m,h)=>(t.openBlock(),t.createElementBlock("div",{key:h,class:"list-item-row"},[r(h)?(t.openBlock(),t.createElementBlock("div",Zo,[t.renderSlot(c.$slots,"selectable",{data:e.data,index:e.itemIndex,label:`${e.data[m[0]]}`})])):t.createCommentVNode("",!0),a(h)?(t.openBlock(),t.createElementBlock("div",Go,[t.renderSlot(c.$slots,"image",{data:e.data})])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m,(d,b)=>(t.openBlock(),t.createElementBlock("div",{key:b,style:t.normalizeStyle(`${e.setFixedColumnSize(d)}`),class:"column-item","data-testid":`listitem-column-${e.id}-${e.itemIndex}-${d}`},[t.renderSlot(c.$slots,`column:${d}`,{data:{key:d,value:e.data[d]},index:e.itemIndex,columnIndex:b,renderHeader:e.renderHeader,headers:e.headers},()=>{var $,S,q,j;return[t.createVNode(Ho,{"data-testid":`listitem-${e.id}-${e.itemIndex}-${d}`,"item-prop":d,hide:(S=($=e.headers)==null?void 0:$[d])==null?void 0:S.hide,align:(j=(q=e.headers)==null?void 0:q[d])==null?void 0:j.align,"is-highlight-value":e.isHighlight({key:d})},{property:t.withCtx(()=>[t.renderSlot(c.$slots,`header:${d}`,{data:{key:d,value:e.data[d]},index:h,columnIndex:b,renderHeader:e.renderHeader,headers:e.headers},()=>[t.createTextVNode(t.toDisplayString(e.renderHeader(d)),1)])]),value:t.withCtx(()=>[t.renderSlot(c.$slots,`value:${d}`,{data:{key:d,value:e.data[d]},index:h,columnIndex:b,isHighlight:e.isHighlight},()=>[t.createTextVNode(t.toDisplayString(o(e.data[d])),1)])]),_:2},1032,["data-testid","item-prop","hide","align","is-highlight-value"])]})],12,Yo))),128)),s(h,0)?(t.openBlock(),t.createElementBlock("div",Wo,[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,Uo))}}),La="",Jo={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Xo=[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 er(e,n){return t.openBlock(),t.createElementBlock("svg",Jo,Xo)}const tr={name:"material-symbols-more-vert",render:er},nr=["id","data-testid","aria-label"],et=t.defineComponent({__name:"List",props:{id:null,data:null,headers:null,selected:null,ariaLabel:{default:"List of data"},selectMode:null,dataIdentifier:{default:()=>({key:"id"})},sortPositions:null,fallbackValue:{default:"-"}},emits:["listitem:click","listitem:selected","update:selected"],setup(e,{expose:n,emit:l}){var O;const i=e,o=t.useSlots(),r=t.computed(()=>!!(o!=null&&o.menu)),a=t.computed(()=>!!(o!=null&&o.image)),s=Ei("(min-width: 1024px)"),c=t.computed(()=>{var w,x,V;return(x=(w=i.sortPositions)==null?void 0:w.mobile)!=null&&x.length?(V=i.sortPositions)==null?void 0:V.mobile:h()}),u=t.computed(()=>{var w;return(w=i.sortPositions)!=null&&w.desktop.length?i.sortPositions.desktop:Object.keys(i.data[0])}),m=t.computed(()=>s.value?[u.value]:c.value);function h(){return Object.keys(i.data[0]).reduce((x,V,T)=>{if(T===0)return x=[[V]];if(T===1)return x=[...x,[V]];const L=x==null?void 0:x.length,y=x==null?void 0:x[L-1];return Array.isArray(y)&&(y==null?void 0:y.length)<2?(x[L-1]=[...y,V],x):x=[...x,[V]]},[])}function d(w){var x,V;return(V=i.headers&&((x=i.headers[w])==null?void 0:x.text))!=null?V:w}function b(w){var x,V,T,L,y,B,Q,ce,te;if((x=i.headers)!=null&&x[w]){if(((T=(V=i.headers)==null?void 0:V[w])==null?void 0:T.width)&&s.value)return`--basis-width: ${(y=(L=i.headers)==null?void 0:L[w])==null?void 0:y.width}; --shrink: 0;`;if(((Q=(B=i.headers)==null?void 0:B[w])==null?void 0:Q.mobileWidth)&&!s.value)return`--basis-width: ${(te=(ce=i.headers)==null?void 0:ce[w])==null?void 0:te.mobileWidth}; --shrink: 0;`}}function $({key:w,value:x}){var V,T;return x?!0:w?!!((T=(V=i.headers)==null?void 0:V[w])!=null&&T.highlight):!1}const S=t.ref(),q=["[data-interactive] input","[data-interactive-element]","[data-interactive] button"],{elementFocus:j,focusInsideRow:N,focusOnFirstItem:p,focusOnLastItem:k,focusOnNextItem:E,focusOnPreviousItem:I,resetStateFocus:M}=vt({target:S}),{navigate:D}=Ye({Home:p,End:()=>k(i.data.length),ArrowUp:()=>!R()&&I(),ArrowDown:()=>!R()&&E(i.data.length),ArrowLeft:()=>j.id&&N({to:"LEFT",query:q}),ArrowRight:()=>j.id&&N({to:"RIGHT",query:q})},{fallback:M,exclude:["Enter","NumpadEnter","Space"]});function R(){var w,x;if(document.activeElement&&((w=document.activeElement)==null?void 0:w.role)){const V=document.activeElement.role,T=(x=document.activeElement)==null?void 0:x.parentElement;return V==="menuitem"?!0:!!(()=>V==="none"&&(T==null?void 0:T.role)&&["menuitem","menu"].includes(T.role))()}return!1}const A=t.ref((O=i==null?void 0:i.selected)!=null?O:{});function z(w){if(A.value){const x=i.dataIdentifier.key,V=w[x];return i.selectMode&&i.selectMode==="checkbox"&&Array.isArray(A.value)?A.value.findIndex(L=>L[x]===V)>=0:A.value[x]===V}return!1}function H(w){A.value=w,l("listitem:selected",w),l("update:selected",A.value)}function K(w){const x=i.dataIdentifier.key,V=w[x],T=Array.isArray(A.value)?A.value:[],L=z(w)?T==null?void 0:T.filter(y=>y[x]!==V):le(w);A.value=L,l("listitem:selected",w),l("update:selected",A.value)}function le(w){var x;if(Array.isArray(A.value)){const V=i.dataIdentifier.key,T=A.value.findIndex(L=>L[V]===w[V]);return T===-1?[...A.value,w]:(x=A.value)==null?void 0:x.filter((L,y)=>y!==T)}return[w]}function Y(){const w=Object.keys(i.data[0]).includes(i.dataIdentifier.key);if(i.selectMode==="checkbox"&&w){A.value=i.data,l("update:selected",A.value);return}console.warn('The Prop `dataIdentifier.key` must be a valid key; and The Prop `selectMode` must be "checkbox"'),console.warn(`Your Prop [dataIdentifier.key] is ${i.dataIdentifier.key} and [selectMode] is ${i.selectMode}`)}function v(){A.value=i.selectMode==="checkbox"&&Array.isArray(A.value)?[]:{},l("update:selected",A.value)}return n({unselectAll:v,selectAll:Y}),(w,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]=(...V)=>t.unref(D)&&t.unref(D)(...V))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.data,(V,T)=>(t.openBlock(),t.createBlock(Ko,{id:e.id,key:T,headers:e.headers,data:V,"item-index":T,"is-selected":z(V),"sort-positions":t.unref(m),"fallback-value":e.fallbackValue,"has-image":t.unref(a),"has-menu":t.unref(r),"render-header":d,"is-highlight":$,"set-fixed-column-size":b,onClick:t.withModifiers(L=>l("listitem:click",{...V,index:T}),["self"]),onKeyup:[t.withKeys(t.withModifiers(L=>l("listitem:click",{...V,index:T}),["self"]),["enter"]),t.withKeys(t.withModifiers(L=>l("listitem:click",{...V,index:T}),["self"]),["space"])]},t.createSlots({selectable:t.withCtx(({data:L,label:y})=>{var B,Q,ce,te,ne,oe;return[e.selectMode==="checkbox"?(t.openBlock(),t.createBlock(he,{key:0,id:`listitem-${L[(B=e.dataIdentifier)==null?void 0:B.key]}`,"hide-label":!0,label:y,checked:z(V),value:L[(Q=e.dataIdentifier)==null?void 0:Q.key],name:(ce=e.dataIdentifier.inputName)!=null?ce:e.id,onChange:De=>K(L)},null,8,["id","label","checked","value","name","onChange"])):t.createCommentVNode("",!0),e.selectMode==="radio"?(t.openBlock(),t.createBlock($e,{key:1,id:`listitem-${L[(te=e.dataIdentifier)==null?void 0:te.key]}`,"hide-label":!0,label:y,checked:z(V),value:L[(ne=e.dataIdentifier)==null?void 0:ne.key],name:(oe=e.dataIdentifier.inputName)!=null?oe:e.id,onChange:De=>H(L)},null,8,["id","label","checked","value","name","onChange"])):t.createCommentVNode("",!0)]}),"action-button":t.withCtx(({arias:L})=>[t.renderSlot(w.$slots,"action-button",{arias:L},()=>[t.createVNode(we,{id:`listitem-${e.id}-${T}`,position:"left"},{trigger:t.withCtx(({arias:y,id:B,toggle:Q})=>[t.createVNode(ee,{id:B,"aria-haspopup":y.ariaHaspopup,"aria-expanded":y.ariaExpanded,role:y.role,size:"small",variant:"tertiary","aria-label":L.ariaLabel,class:"menu-button-trigger",onClick:Q},{"icon-left":t.withCtx(()=>[t.createVNode(t.unref(tr),{class:"text-2xs","aria-hidden":"true"})]),_:2},1032,["id","aria-haspopup","aria-expanded","role","aria-label","onClick"])]),default:t.withCtx(()=>[t.renderSlot(w.$slots,"menu")]),_:2},1032,["id"])])]),_:2},[t.unref(a)?{name:"image",fn:t.withCtx(({data:L})=>[t.renderSlot(w.$slots,"image",{data:L})]),key:"0"}:void 0,t.renderList(V,(L,y)=>({name:`column:${y}`,fn:t.withCtx(B=>[t.renderSlot(w.$slots,`column:${y}`,{data:B.data,index:B.index,columnIndex:T,renderHeader:d,headers:e.headers})])})),t.renderList(V,(L,y)=>({name:`header:${y}`,fn:t.withCtx(B=>[t.renderSlot(w.$slots,`header:${y}`,{data:B.data,index:B.index,columnIndex:B.columnIndex,renderHeader:B.renderHeader,headers:B.headers})])})),t.renderList(V,(L,y)=>({name:`value:${y}`,fn:t.withCtx(B=>[t.renderSlot(w.$slots,`value:${y}`,{data:B.data,index:B.index,columnIndex:B.columnIndex,isHighlight:B.isHighlight})])}))]),1032,["id","headers","data","item-index","is-selected","sort-positions","fallback-value","has-image","has-menu","onClick","onKeyup"]))),128))],40,nr))}}),qa="";et.install=e=>{e.component("SolList",et)},we.install=e=>{e.component("SolMenu",we)};const lr=["id"],ir=["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 o;return t.openBlock(),t.createElementBlock("li",{id:`menu-item-link-${e.id}`,class:"sol-menuitem-link-core",tabindex:"-1",role:"none",onClick:i[0]||(i[0]=r=>n("clicked")),onKeyup:[i[1]||(i[1]=t.withKeys(r=>n("clicked"),["enter"])),i[2]||(i[2]=t.withKeys(r=>n("clicked"),["space"]))]},[t.renderSlot(l.$slots,"default",{id:(o=e.linkId)!=null?o:e.id,active:e.active,link:e.link,text:e.text,external:e.external},()=>[t.createElementVNode("a",{role:"menuitem",class:t.normalizeClass({"-active":e.active}),href:e.link,target:e.external?"_blank":"_parent"},t.toDisplayString(e.text),11,ir)])],40,lr)}}}),za="";Fe.install=e=>{e.component("SolMenuItemLink",Fe)};const or={class:"label-container"},rr={class:"label"},tt=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",or,[t.createElementVNode("span",rr,t.toDisplayString(e.label),1),t.createVNode(t.unref(hn),{class:t.normalizeClass(["icon",{"-opened":i}]),"aria-hidden":"true"},null,8,["class"])])])]),default:t.withCtx(({close:i})=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.linkItems,(o,r)=>{var a;return t.openBlock(),t.createBlock(Fe,{id:`${e.id}-${(a=o==null?void 0:o.id)!=null?a:o.text}`,key:r,"link-id":o.id,text:o.text,link:o.link,external:o.external,active:o.active,onClicked:i},{default:t.withCtx(()=>{var s;return[t.renderSlot(n.$slots,"default",{id:(s=o.id)!=null?s:e.id,active:o.active,link:o.link,text:o.text,external:o.external})]}),_:2},1032,["id","link-id","text","link","external","active","onClicked"])}),128))]),_:3},8,["id"]))}}),ja="";tt.install=e=>{e.component("SolMenuNavigationLinks",tt)};const _a="",ar=(e,n)=>{const l=e.__vccOpts||e;for(const[i,o]of n)l[i]=o;return l},sr={},cr={class:"sol-overlay-core"};function dr(e,n){return t.openBlock(),t.createElementBlock("div",cr,[t.renderSlot(e.$slots,"default")])}const ur=ar(sr,[["render",dr]]),fr={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},mr=[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 hr(e,n){return t.openBlock(),t.createElementBlock("svg",fr,mr)}const yr={name:"material-symbols-close",render:hr},gr=["id","data-testid","aria-labelledby"],br=["id","data-testid"],kr=["id","data-testid"],pr={class:"content"},$r={class:"footer"},wr={class:"main-action"},nt=t.defineComponent({__name:"Modal",props:{id:null,size:{default:()=>({desktop:"medium",mobile:"full"})},title:{default:"Modal title"},isOpen:null,target:{default:"body"},actionPrimaryText:null,actionSecondaryText:null,actionTertiaryText:null},emits:["close","open","update:isOpen","action:primary","action:secondary","action:tertiary"],setup(e,{expose:n,emit:l}){const i=e,o={modal:`modal-${i.id}`,header:`modal-header-${i.id}`,headerTitle:`modal-header-title-${i.id}`,headerClose:`modal-header-close-${i.id}`,actionPrimary:`modal-action-primary-${i.id}`,actionSecondary:`modal-action-secondary-${i.id}`,actionTertiary:`modal-action-tertiary-${i.id}`},r={modal:`modal-${i.id}`,header:`modal-header-${i.id}`,headerTitle:`modal-header-title-${i.id}`,headerClose:`modal-header-close-${i.id}`,actionPrimary:`button-modal-action-primary-${i.id}`,actionSecondary:`button-modal-action-secondary-${i.id}`,actionTertiary:`button-modal-action-tertiary-${i.id}`},a=t.ref(),s=t.ref(i.isOpen),c=t.ref(!1),u=t.computed(()=>{var N;return(N=i.isOpen)!=null?N:s.value}),m=vi(document.body),h=t.computed(()=>{var k,E;const N=(k=i.size.desktop)!=null?k:"medium",p=(E=i.size.mobile)!=null?E:"full";return`-desktop-${N} -mobile-${p}`}),{navigate:d}=Ye({Escape:b});function b(){s.value=!1,l("close"),l("update:isOpen",!1)}function $(){s.value=!0,l("open"),l("update:isOpen",!0)}function S(){document.documentElement.style.setProperty("--viewport-100vh",`${window.innerHeight}px`)}function q(N){S(),m.value=!!N,N?setTimeout(()=>c.value=!0,90):c.value=!1}function j(N,p){N&&setTimeout(()=>{var k;return(k=p==null?void 0:p.value)==null?void 0:k.focus()},110)}return t.watch(u,N=>{q(N),j(N,a)},{immediate:!0}),n({close:b,open:$}),(N,p)=>(t.openBlock(),t.createBlock(t.Teleport,{to:e.target},[t.unref(u)?(t.openBlock(),t.createBlock(ur,{key:0},{default:t.withCtx(()=>[t.createVNode(t.Transition,{name:"modal",mode:"out-in"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",{id:o.modal,ref_key:"modal",ref:a,"data-testid":r.modal,tabindex:"-1",role:"alertdialog","aria-modal":"true",class:t.normalizeClass(["sol-modal-core",t.unref(h)]),"aria-labelledby":o.headerTitle,onKeyupPassive:p[3]||(p[3]=(...k)=>t.unref(d)&&t.unref(d)(...k))},[t.createElementVNode("header",{id:o.header,"data-testid":r.header,class:"header"},[t.createElementVNode("h2",{id:o.headerTitle,"data-testid":r.headerTitle,class:"title"},t.toDisplayString(e.title),9,kr),t.createVNode(ee,{id:o.headerClose,size:"small",class:"flex-shrink-0",variant:"tertiary","aria-label":"Close modal",onClick:b},{"icon-left":t.withCtx(()=>[t.createVNode(t.unref(yr),{"aria-hidden":"true",class:"text-2xs"})]),_:1},8,["id"])],8,br),t.createElementVNode("main",pr,[t.renderSlot(N.$slots,"default")]),t.createElementVNode("footer",$r,[t.renderSlot(N.$slots,"action-tertiary",{id:o.actionTertiary},()=>[e.actionTertiaryText?(t.openBlock(),t.createBlock(ee,{key:0,id:o.actionTertiary,variant:"tertiary",size:"medium",onClick:p[0]||(p[0]=k=>l("action:primary"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.actionTertiaryText),1)]),_:1},8,["id"])):t.createCommentVNode("",!0)]),t.createElementVNode("div",wr,[t.renderSlot(N.$slots,"action-secondary",{id:o.actionSecondary},()=>[e.actionSecondaryText?(t.openBlock(),t.createBlock(ee,{key:0,id:o.actionSecondary,variant:"secondary",size:"medium",onClick:p[1]||(p[1]=k=>l("action:secondary"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.actionSecondaryText),1)]),_:1},8,["id"])):t.createCommentVNode("",!0)]),t.renderSlot(N.$slots,"action-primary",{id:o.actionPrimary},()=>[e.actionPrimaryText?(t.openBlock(),t.createBlock(ee,{key:0,id:o.actionPrimary,size:"medium",variant:"primary",onClick:p[2]||(p[2]=k=>l("action:tertiary"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.actionPrimaryText),1)]),_:1},8,["id"])):t.createCommentVNode("",!0)])])])],42,gr),[[t.vShow,c.value]])]),_:3})]),_:3})):t.createCommentVNode("",!0)],8,["to"]))}}),Qa="";nt.install=e=>{e.component("SolModal",nt)};const Ha="",Ua="",Za="",Ga="",yn=12,Se={type:"success",timeout:5e3,showIcon:!0,showCloseButton:!0,position:"top-right",hideProgressBar:!1};function Sr(e,n){const l=t.reactive({id:null,intervalId:null,startTime:0,remaining:n}),i=t.ref(100);function o(){clearInterval(l.intervalId),clearTimeout(l.id),l.remaining-=Date.now()-l.startTime}function r(){l.startTime=Date.now(),clearTimeout(l.id),l.intervalId=setInterval(()=>{i.value--},n/100-5),l.id=setTimeout(e,l.remaining)}function a(){clearInterval(l.intervalId),clearTimeout(l.id),i.value=100}return t.onMounted(()=>{if(n<=0)return!1}),t.onUnmounted(()=>{a()}),{start:r,stop:o,clear:a,progress:i}}function xr(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 gn=(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))(gn||{});const Cr={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Er=[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 Br(e,n){return t.openBlock(),t.createElementBlock("svg",Cr,Er)}const vr={name:"material-symbols-check-circle",render:Br},Or={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Vr=[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 Ir(e,n){return t.openBlock(),t.createElementBlock("svg",Or,Vr)}const Nr={name:"material-symbols-cancel",render:Ir},Tr={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Ar=[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 Mr(e,n){return t.openBlock(),t.createElementBlock("svg",Tr,Ar)}const Fr={name:"material-symbols-error-circle-rounded",render:Mr},Pr=["id","data-testid"],Lr={class:"content-wrapper"},Dr={key:0,class:"icon-container","aria-hidden":"true"},qr={class:"content"},zr={key:0,class:"description"},jr=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:o}=Sr(()=>{var m;(m=n.onCloseHandler)==null||m.call(n)},n.timeout),{stylePosition:r}=xr(()=>({offset:n.offset,position:n.position})),a=t.computed(()=>n.title&&n.description);function s(){n.timeout>0&&i()}function c(){l()}t.onMounted(()=>{l()});function u(){var m,h;(m=n.onAction)==null||m.call(n),(h=n.onCloseHandler)==null||h.call(n)}return(m,h)=>(t.openBlock(),t.createBlock(t.Transition,{name:t.unref(gn)[e.position],type:"animation"},{default:t.withCtx(()=>[e.visible?(t.openBlock(),t.createElementBlock("div",{key:0,id:`toast-${e.type}-${e.id}`,"data-testid":`toast-${e.type}-${e.position}`,role:"alert","aria-live":"assertive",style:t.normalizeStyle(t.unref(r)),class:t.normalizeClass(["sol-toast-core",[`-${e.type} -${e.position}`,{"-multiline":t.unref(a)}]]),onKeyup:h[0]||(h[0]=t.withKeys((...d)=>e.onCloseHandler&&e.onCloseHandler(...d),["esc"])),onMouseenter:s,onMouseleave:c,onFocusin:s,onFocusout:c},[t.createElementVNode("section",Lr,[e.showIcon?(t.openBlock(),t.createElementBlock("div",Dr,[t.renderSlot(m.$slots,"icon-status",{type:e.type},()=>[e.type==="success"?(t.openBlock(),t.createBlock(t.unref(vr),{key:0,class:"icon"})):t.createCommentVNode("",!0),["informative","warning"].includes(e.type)?(t.openBlock(),t.createBlock(t.unref(Fr),{key:1,class:"icon"})):t.createCommentVNode("",!0),e.type==="error"?(t.openBlock(),t.createBlock(t.unref(Nr),{key:2,class:"icon"})):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0),t.createElementVNode("div",qr,[t.createElementVNode("p",{class:t.normalizeClass(["title",{"-multiline":t.unref(a)}])},[t.renderSlot(m.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(e.title),1)])],2),e.description?(t.openBlock(),t.createElementBlock("p",zr,[t.renderSlot(m.$slots,"description",{},()=>[t.createTextVNode(t.toDisplayString(e.description),1)])])):t.createCommentVNode("",!0)])]),t.createVNode(ee,{id:`toast-action-${e.type}-${e.position}`,class:t.normalizeClass(["action",{"-multiline":t.unref(a)}]),size:"small","on-color":e.type!=="warning",variant:"tertiary","aria-label":"close notification",onClick:u},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.actionText),1)]),_:1},8,["id","on-color","class"]),e.hideProgressBar?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:"progressbar","aria-hidden":"true",style:t.normalizeStyle({width:`${t.unref(o)}%`})},null,4))],46,Pr)):t.createCommentVNode("",!0)]),_:3},8,["name"]))}}),Ja="",Pe={"top-left":[],"top-right":[],"top-center":[],"bottom-left":[],"bottom-right":[],"bottom-center":[]};function _r(){bn(0)}function bn(e=2){Object.entries(Pe).forEach(([n,l])=>{l.length>e&&l.map(o=>{var r;return(r=o.toastVNode.props)==null?void 0:r.id}).forEach(o=>Ot(o,n))})}function Rr(e){return typeof e=="string"?{description:e,actionText:"Fechar"}:{actionText:"Fechar",...e}}function Qr(e,n=Se){const l=window.innerWidth<1024?"bottom-center":"top-right";return e?Ur({...e,position:l}):n}function Hr(){const n=Le(0),l=Le(0,"success"),i=Le(0,"error"),o=Le(0,"warning"),r=Le(0,"informative");return{createToast:n,createErrorToast:i,createSuccessToast:l,createInformativeToast:r,createWarningToast:o,clearAllToasts:_r}}function Le(e,n){return function(l,i){const o=e++,r=Qr({...i,type:n});return bn(),Zr(o,r,Rr(l)),{close:()=>Ot(o,r.position)}}}function Ur(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 Zr(e,n,l){setTimeout(()=>{const i=Yr(n,Pe,yn),o=document.createElement("div");document.body.appendChild(o);const r=t.createVNode(jr,Gr(n,e,i,Ot,l));t.render(r,o),Pe[n.position].push({toastVNode:r,container:o}),r.component&&(r.component.props.visible=!0)},1)}function Gr(e,n,l,i,o){return{...e,...o,id:n,offset:l,visible:!1,onCloseHandler(){i(n,e.position?e.position:"top-right")}}}function Yr(e,n,l){if(!e.position)throw new Error("no position");return n[e.position].reduce((i,{toastVNode:o})=>(i+=o.el.offsetHeight+l||0,i),l)}function Wr(e,n,l,i){for(let o=e;o<n.length;o++){const{toastVNode:r}=n[o];if(!r.el)return;const a=l.split("-")[0]||"top",s=parseInt(r.el.style[a],10)-i-yn;if(!r.component)return;r.component.props.offset=s}}function Ot(e,n){var c;const l=Pe[n],i=l.findIndex(({toastVNode:u})=>{var m;return e===((m=u==null?void 0:u.props)==null?void 0:m.id)});if(i===-1)return;const{container:o,toastVNode:r}=l[i],a=(c=r==null?void 0:r.el)==null?void 0:c.offsetHeight;if(Pe[n].splice(i,1),Wr(i,l,n,a),!r.component)return;const s=r.component.props;s.visible=!1,s.onClose&&s.onClose(),setTimeout(()=>{t.render(null,o),document.body.removeChild(o)},1e3)}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 Vt={SolButton:ee,SolButtonDestructive:lt,SolInputTextarea:He,SolInputText:Ie,SolInputTextPassword:Qe,SolRadio:$e,SolRadioGroup:Ze,SolCheckbox:he,SolCheckboxGroup:Ge,SolSwitch:Ue,SolSelect:We,SolChip:Me,SolTag:Ke,SolAlert:Je,SolAccordion:Xe,SolList:et,SolMenu:we,SolMenuItemLink:Fe,SolMenuNavigationLinks:tt,SolModal:nt};function Kr(e){for(const n in Vt)e.component(n,Vt[n])}_.SolAccordion=Xe,_.SolAlert=Je,_.SolButton=ee,_.SolButtonDestructive=lt,_.SolCheckbox=he,_.SolCheckboxGroup=Ge,_.SolChip=Me,_.SolInputText=Ie,_.SolInputTextPassword=Qe,_.SolInputTextarea=He,_.SolList=et,_.SolMenu=we,_.SolMenuItemLink=Fe,_.SolMenuNavigationLinks=tt,_.SolModal=nt,_.SolRadio=$e,_.SolRadioGroup=Ze,_.SolSelect=We,_.SolSwitch=Ue,_.SolTag=Ke,_.components=Vt,_.install=Kr,_.useToast=Hr,Object.defineProperties(_,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
14
|
+
*/function be(e){return typeof e=="function"}function Ee(e){return e==null}const ue=e=>e!==null&&!!e&&typeof e=="object"&&!Array.isArray(e);function jt(e){return Number(e)>=0}function Wn(e){const n=parseFloat(e);return isNaN(n)?e:n}const Kn={};function Jn(e){return Kn[e]}const me=Symbol("vee-validate-form"),Xn=Symbol("vee-validate-field-instance"),_e=Symbol("Default empty value");function ut(e){return be(e)&&!!e.__locatorRef}function Be(e){return!!e&&be(e.validate)}function ke(e){return e==="checkbox"||e==="radio"}function el(e){return ue(e)||Array.isArray(e)}function _t(e){return Array.isArray(e)?e.length===0:ue(e)&&Object.keys(e).length===0}function Re(e){return/^\[.+\]$/i.test(e)}function tl(e){return Rt(e)&&e.multiple}function Rt(e){return e.tagName==="SELECT"}function nl(e,n){const l=![!1,null,void 0,0].includes(n.multiple)&&!Number.isNaN(n.multiple);return e==="select"&&"multiple"in n&&l}function ll(e,n){return!nl(e,n)&&n.type!=="file"&&!ke(n.type)}function Qt(e){return ft(e)&&e.target&&"submit"in e.target}function ft(e){return e?!!(typeof Event<"u"&&be(Event)&&e instanceof Event||e&&e.srcElement):!1}function Ht(e,n){return n in e&&e[n]!==_e}var Ut=function e(n,l){if(n===l)return!0;if(n&&l&&typeof n=="object"&&typeof l=="object"){if(n.constructor!==l.constructor)return!1;var i,o,r;if(Array.isArray(n)){if(i=n.length,i!=l.length)return!1;for(o=i;o--!==0;)if(!e(n[o],l[o]))return!1;return!0}if(n.constructor===RegExp)return n.source===l.source&&n.flags===l.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===l.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===l.toString();if(r=Object.keys(n),i=r.length,i!==Object.keys(l).length)return!1;for(o=i;o--!==0;)if(!Object.prototype.hasOwnProperty.call(l,r[o]))return!1;for(o=i;o--!==0;){var a=r[o];if(!e(n[a],l[a]))return!1}return!0}return n!==n&&l!==l};function mt(e){return Re(e)?e.replace(/\[|\]/gi,""):e}function U(e,n,l){return e?Re(n)?e[mt(n)]:(n||"").split(/\.|\[(\d+)\]/).filter(Boolean).reduce((o,r)=>el(o)&&r in o?o[r]:l,e):l}function fe(e,n,l){if(Re(n)){e[mt(n)]=l;return}const i=n.split(/\.|\[(\d+)\]/).filter(Boolean);let o=e;for(let r=0;r<i.length;r++){if(r===i.length-1){o[i[r]]=l;return}(!(i[r]in o)||Ee(o[i[r]]))&&(o[i[r]]=jt(i[r+1])?[]:{}),o=o[i[r]]}}function ht(e,n){if(Array.isArray(e)&&jt(n)){e.splice(Number(n),1);return}ue(e)&&delete e[n]}function yt(e,n){if(Re(n)){delete e[mt(n)];return}const l=n.split(/\.|\[(\d+)\]/).filter(Boolean);let i=e;for(let r=0;r<l.length;r++){if(r===l.length-1){ht(i,l[r]);break}if(!(l[r]in i)||Ee(i[l[r]]))break;i=i[l[r]]}const o=l.map((r,a)=>U(e,l.slice(0,a).join(".")));for(let r=o.length-1;r>=0;r--)if(!!_t(o[r])){if(r===0){ht(e,l[0]);continue}ht(o[r-1],l[r-1])}}function W(e){return Object.keys(e)}function ve(e,n=void 0){const l=t.getCurrentInstance();return(l==null?void 0:l.provides[e])||t.inject(e,n)}function gt(e){t.warn(`[vee-validate]: ${e}`)}function il(e){return Array.isArray(e)?e[0]:e}function bt(e,n,l){if(Array.isArray(e)){const i=[...e],o=i.findIndex(r=>Ut(r,n));return o>=0?i.splice(o,1):i.push(n),i}return Ut(e,n)?l:n}function ol(e,n){let l,i;return function(...o){const r=this;return l||(l=!0,setTimeout(()=>l=!1,n),i=e.apply(r,o)),i}}function Zt(e,n=0){let l=null,i=[];return function(...o){return l&&window.clearTimeout(l),l=window.setTimeout(()=>{const r=e(...o);i.forEach(a=>a(r)),i=[]},n),new Promise(r=>i.push(r))}}function rl(e,n){return ue(n)&&n.number?Wn(e):e}function kt(e,n){let l;return async function(...o){const r=e(...o);l=r;const a=await r;return r!==l||(l=void 0,n(a,o)),a}}const Qe=(e,n,l)=>n.slots.default?typeof e=="string"||!e?n.slots.default(l()):{default:()=>{var i,o;return(o=(i=n.slots).default)===null||o===void 0?void 0:o.call(i,l())}}:n.slots.default;function pt(e){if(Gt(e))return e._value}function Gt(e){return"_value"in e}function $t(e){if(!ft(e))return e;const n=e.target;if(ke(n.type)&&Gt(n))return pt(n);if(n.type==="file"&&n.files){const l=Array.from(n.files);return n.multiple?l:l[0]}if(tl(n))return Array.from(n.options).filter(l=>l.selected&&!l.disabled).map(pt);if(Rt(n)){const l=Array.from(n.options).find(i=>i.selected);return l?pt(l):n.value}return n.value}function Yt(e){const n={};return Object.defineProperty(n,"_$$isNormalized",{value:!0,writable:!1,enumerable:!1,configurable:!1}),e?ue(e)&&e._$$isNormalized?e:ue(e)?Object.keys(e).reduce((l,i)=>{const o=al(e[i]);return e[i]!==!1&&(l[i]=Wt(o)),l},n):typeof e!="string"?n:e.split("|").reduce((l,i)=>{const o=sl(i);return o.name&&(l[o.name]=Wt(o.params)),l},n):n}function al(e){return e===!0?[]:Array.isArray(e)||ue(e)?e:[e]}function Wt(e){const n=l=>typeof l=="string"&&l[0]==="@"?cl(l.slice(1)):l;return Array.isArray(e)?e.map(n):e instanceof RegExp?[e]:Object.keys(e).reduce((l,i)=>(l[i]=n(e[i]),l),{})}const sl=e=>{let n=[];const l=e.split(":")[0];return e.includes(":")&&(n=e.split(":").slice(1).join(":").split(",")),{name:l,params:n}};function cl(e){const n=l=>U(l,e)||l[e];return n.__locatorRef=e,n}function dl(e){return Array.isArray(e)?e.filter(ut):W(e).filter(n=>ut(e[n])).map(n=>e[n])}let ul=Object.assign({},{generateMessage:({field:e})=>`${e} is not valid.`,bails:!0,validateOnBlur:!0,validateOnChange:!0,validateOnInput:!1,validateOnModelUpdate:!0});const wt=()=>ul;async function Kt(e,n,l={}){const i=l==null?void 0:l.bails,o={name:(l==null?void 0:l.name)||"{field}",rules:n,bails:i!=null?i:!0,formData:(l==null?void 0:l.values)||{}},a=(await fl(o,e)).errors;return{errors:a,valid:!a.length}}async function fl(e,n){if(Be(e.rules))return ml(n,e.rules,{bails:e.bails});if(be(e.rules)||Array.isArray(e.rules)){const a={field:e.name,form:e.formData,value:n},s=Array.isArray(e.rules)?e.rules:[e.rules],c=s.length,u=[];for(let m=0;m<c;m++){const h=s[m],d=await h(n,a);if(typeof d!="string"&&d)continue;const $=typeof d=="string"?d:Jt(a);if(u.push($),e.bails)return{errors:u}}return{errors:u}}const l=Object.assign(Object.assign({},e),{rules:Yt(e.rules)}),i=[],o=Object.keys(l.rules),r=o.length;for(let a=0;a<r;a++){const s=o[a],c=await hl(l,n,{name:s,params:l.rules[s]});if(c.error&&(i.push(c.error),e.bails))return{errors:i}}return{errors:i}}async function ml(e,n,l){var i;return{errors:await n.validate(e,{abortEarly:(i=l.bails)!==null&&i!==void 0?i:!0}).then(()=>[]).catch(r=>{if(r.name==="ValidationError")return r.errors;throw r})}}async function hl(e,n,l){const i=Jn(l.name);if(!i)throw new Error(`No such validator '${l.name}' exists.`);const o=yl(l.params,e.formData),r={field:e.name,value:n,form:e.formData,rule:Object.assign(Object.assign({},l),{params:o})},a=await i(n,o,r);return typeof a=="string"?{error:a}:{error:a?void 0:Jt(r)}}function Jt(e){const n=wt().generateMessage;return n?n(e):"Field is invalid"}function yl(e,n){const l=i=>ut(i)?i(n):i;return Array.isArray(e)?e.map(l):Object.keys(e).reduce((i,o)=>(i[o]=l(e[o]),i),{})}async function gl(e,n){const l=await e.validate(n,{abortEarly:!1}).then(()=>[]).catch(r=>{if(r.name!=="ValidationError")throw r;return r.inner||[]}),i={},o={};for(const r of l){const a=r.errors;i[r.path]={valid:!a.length,errors:a},a.length&&(o[r.path]=a[0])}return{valid:!l.length,results:i,errors:o}}async function bl(e,n,l){const o=W(e).map(async u=>{var m,h,d;const b=await Kt(U(n,u),e[u],{name:((m=l==null?void 0:l.names)===null||m===void 0?void 0:m[u])||u,values:n,bails:(d=(h=l==null?void 0:l.bailsMap)===null||h===void 0?void 0:h[u])!==null&&d!==void 0?d:!0});return Object.assign(Object.assign({},b),{path:u})});let r=!0;const a=await Promise.all(o),s={},c={};for(const u of a)s[u.path]={valid:u.valid,errors:u.errors},u.valid||(r=!1,c[u.path]=u.errors[0]);return{valid:r,results:s,errors:c}}function Xt(e,n,l){typeof l.value=="object"&&(l.value=Z(l.value)),!l.enumerable||l.get||l.set||!l.configurable||!l.writable||n==="__proto__"?Object.defineProperty(e,n,l):e[n]=l.value}function Z(e){if(typeof e!="object")return e;var n=0,l,i,o,r=Object.prototype.toString.call(e);if(r==="[object Object]"?o=Object.create(e.__proto__||null):r==="[object Array]"?o=Array(e.length):r==="[object Set]"?(o=new Set,e.forEach(function(a){o.add(Z(a))})):r==="[object Map]"?(o=new Map,e.forEach(function(a,s){o.set(Z(s),Z(a))})):r==="[object Date]"?o=new Date(+e):r==="[object RegExp]"?o=new RegExp(e.source,e.flags):r==="[object DataView]"?o=new e.constructor(Z(e.buffer)):r==="[object ArrayBuffer]"?o=e.slice(0):r.slice(-6)==="Array]"&&(o=new e.constructor(e)),o){for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)Xt(o,i[n],Object.getOwnPropertyDescriptor(e,i[n]));for(n=0,i=Object.getOwnPropertyNames(e);n<i.length;n++)Object.hasOwnProperty.call(o,l=i[n])&&o[l]===e[l]||Xt(o,l,Object.getOwnPropertyDescriptor(e,l))}return o||e}var ie=function e(n,l){if(n===l)return!0;if(n&&l&&typeof n=="object"&&typeof l=="object"){if(n.constructor!==l.constructor)return!1;var i,o,r;if(Array.isArray(n)){if(i=n.length,i!=l.length)return!1;for(o=i;o--!==0;)if(!e(n[o],l[o]))return!1;return!0}if(n instanceof Map&&l instanceof Map){if(n.size!==l.size)return!1;for(o of n.entries())if(!l.has(o[0]))return!1;for(o of n.entries())if(!e(o[1],l.get(o[0])))return!1;return!0}if(n instanceof Set&&l instanceof Set){if(n.size!==l.size)return!1;for(o of n.entries())if(!l.has(o[0]))return!1;return!0}if(ArrayBuffer.isView(n)&&ArrayBuffer.isView(l)){if(i=n.length,i!=l.length)return!1;for(o=i;o--!==0;)if(n[o]!==l[o])return!1;return!0}if(n.constructor===RegExp)return n.source===l.source&&n.flags===l.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===l.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===l.toString();if(r=Object.keys(n),i=r.length,i!==Object.keys(l).length)return!1;for(o=i;o--!==0;)if(!Object.prototype.hasOwnProperty.call(l,r[o]))return!1;for(o=i;o--!==0;){var a=r[o];if(!e(n[a],l[a]))return!1}return!0}return n!==n&&l!==l};let en=0;function kl(e,n){const{value:l,initialValue:i,setInitialValue:o}=tn(e,n.modelValue,!n.standalone),{errorMessage:r,errors:a,setErrors:s}=$l(e,!n.standalone),c=pl(l,i,a),u=en>=Number.MAX_SAFE_INTEGER?0:++en;function m(h){var d;"value"in h&&(l.value=h.value),"errors"in h&&s(h.errors),"touched"in h&&(c.touched=(d=h.touched)!==null&&d!==void 0?d:c.touched),"initialValue"in h&&o(h.initialValue)}return{id:u,path:e,value:l,initialValue:i,meta:c,errors:a,errorMessage:r,setState:m}}function tn(e,n,l=!0){const i=l===!0?ve(me,void 0):void 0,o=t.ref(t.unref(n));function r(){return i?U(i.meta.value.initialValues,t.unref(e),t.unref(o)):t.unref(o)}function a(m){if(!i){o.value=m;return}i.stageInitialValue(t.unref(e),m,!0)}const s=t.computed(r);if(!i)return{value:t.ref(r()),initialValue:s,setInitialValue:a};const c=n?t.unref(n):U(i.values,t.unref(e),t.unref(s));return i.stageInitialValue(t.unref(e),c,!0),{value:t.computed({get(){return U(i.values,t.unref(e))},set(m){i.setFieldValue(t.unref(e),m)}}),initialValue:s,setInitialValue:a}}function pl(e,n,l){const i=t.reactive({touched:!1,pending:!1,valid:!0,validated:!!t.unref(l).length,initialValue:t.computed(()=>t.unref(n)),dirty:t.computed(()=>!ie(t.unref(e),t.unref(n)))});return t.watch(l,o=>{i.valid=!o.length},{immediate:!0,flush:"sync"}),i}function $l(e,n){const l=n?ve(me,void 0):void 0;function i(r){return r?Array.isArray(r)?r:[r]:[]}if(!l){const r=t.ref([]);return{errors:r,errorMessage:t.computed(()=>r.value[0]),setErrors:a=>{r.value=i(a)}}}const o=t.computed(()=>l.errorBag.value[t.unref(e)]||[]);return{errors:o,errorMessage:t.computed(()=>o.value[0]),setErrors:r=>{l.setFieldErrorBag(t.unref(e),i(r))}}}function nn(e){process.env.NODE_ENV!=="production"&&Yn({id:"vee-validate-devtools-plugin",label:"VeeValidate Plugin",packageName:"vee-validate",homepage:"https://vee-validate.logaretm.com/v4",app:e,logo:"https://vee-validate.logaretm.com/v4/logo.png"},Cl)}const Oe={},Ve={};let ae;const pe=ol(()=>{setTimeout(async()=>{await t.nextTick(),ae==null||ae.sendInspectorState($e),ae==null||ae.sendInspectorTree($e)},100)},100);function wl(e){const n=t.getCurrentInstance();if(!ae){const l=n==null?void 0:n.appContext.app;if(!l)return;nn(l)}Oe[e.formId]=Object.assign({},e),Oe[e.formId]._vm=n,t.onUnmounted(()=>{delete Oe[e.formId],pe()}),pe()}function Sl(e){const n=t.getCurrentInstance();if(!ae){const l=n==null?void 0:n.appContext.app;if(!l)return;nn(l)}Ve[e.id]=Object.assign({},e),Ve[e.id]._vm=n,t.onUnmounted(()=>{delete Ve[e.id],pe()}),pe()}const $e="vee-validate-inspector",X={error:12405579,success:448379,unknown:5522283,white:16777215,black:0,blue:218007,purple:12157168,orange:16099682,gray:12304330};let se=null;function Cl(e){ae=e,e.addInspector({id:$e,icon:"rule",label:"vee-validate",noSelectionText:"Select a vee-validate node to inspect",actions:[{icon:"done_outline",tooltip:"Validate selected item",action:async()=>{if(!se){console.error("There is not a valid selected vee-validate node or component");return}const n=await se.validate();console.log(n)}},{icon:"delete_sweep",tooltip:"Clear validation state of the selected item",action:()=>{if(!se){console.error("There is not a valid selected vee-validate node or component");return}if("id"in se){se.resetField();return}se.resetForm()}}]}),e.on.getInspectorTree(n=>{if(n.inspectorId!==$e)return;const l=Object.values(Oe),i=Object.values(Ve);n.rootNodes=[...l.map(xl),...i.map(o=>St(o))]}),e.on.getInspectorState((n,l)=>{if(n.inspectorId!==$e||l.currentTab!==`custom-inspector:${$e}`)return;const{form:i,field:o,type:r}=El(n.nodeId);if(i&&r==="form"){n.state=vl(i),se=i;return}if(o&&r==="field"){n.state=Bl(o),se=o;return}se=null})}function xl(e){const{textColor:n,bgColor:l}=on(e),i={};Object.values(e.fieldsByPath.value).forEach(a=>{const s=Array.isArray(a)?a[0]:a;!s||fe(i,t.unref(s.name),St(s,e))});function o(a,s=[]){const c=[...s].pop();return"id"in a?Object.assign(Object.assign({},a),{label:c||a.label}):ue(a)?{id:`${s.join(".")}`,label:c||"",children:Object.keys(a).map(u=>o(a[u],[...s,u]))}:Array.isArray(a)?{id:`${s.join(".")}`,label:`${c}[]`,children:a.map((u,m)=>o(u,[...s,String(m)]))}:{id:"",label:"",children:[]}}const{children:r}=o(i);return{id:ln(e),label:"Form",children:r,tags:[{label:"Form",textColor:n,backgroundColor:l},{label:`${Object.keys(e.fieldsByPath.value).length} fields`,textColor:X.white,backgroundColor:X.unknown}]}}function St(e,n){const l=il(e),{textColor:i,bgColor:o}=on(l),r=Array.isArray(e)&&e.length>1;return{id:ln(n,l,!r),label:t.unref(l.name),children:Array.isArray(e)?e.map(a=>St(a,n)):void 0,tags:[r?void 0:{label:"Field",textColor:i,backgroundColor:o},n?void 0:{label:"Standalone",textColor:X.black,backgroundColor:X.gray},!r&&l.type==="checkbox"?{label:"Checkbox",textColor:X.white,backgroundColor:X.blue}:void 0,!r&&l.type==="radio"?{label:"Radio",textColor:X.white,backgroundColor:X.purple}:void 0,r?{label:"Group",textColor:X.black,backgroundColor:X.orange}:void 0].filter(Boolean)}}function ln(e,n,l=!0){const i=e?t.unref(n==null?void 0:n.name):n==null?void 0:n.id,o=i?e==null?void 0:e.fieldsByPath.value[i]:void 0;let r;l&&n&&Array.isArray(o)&&(r=o.indexOf(n));const a={f:e==null?void 0:e.formId,ff:i,idx:r,type:n?"field":"form"};return btoa(JSON.stringify(a))}function El(e){try{const n=JSON.parse(atob(e)),l=Oe[n.f];if(!l&&n.ff){const o=Ve[n.ff];return o?{type:n.type,field:o}:{}}if(!l)return{};const i=l.fieldsByPath.value[n.ff];return{type:n.type,form:l,field:Array.isArray(i)?i[n.idx||0]:i}}catch{}return{}}function Bl(e){const{errors:n,meta:l,value:i}=e;return{"Field state":[{key:"errors",value:n.value},{key:"initialValue",value:l.initialValue},{key:"currentValue",value:i.value},{key:"touched",value:l.touched},{key:"dirty",value:l.dirty},{key:"valid",value:l.valid}]}}function vl(e){const{errorBag:n,meta:l,values:i,isSubmitting:o,submitCount:r}=e;return{"Form state":[{key:"submitCount",value:r.value},{key:"isSubmitting",value:o.value},{key:"touched",value:l.value.touched},{key:"dirty",value:l.value.dirty},{key:"valid",value:l.value.valid},{key:"initialValues",value:l.value.initialValues},{key:"currentValues",value:i},{key:"errors",value:W(n.value).reduce((a,s)=>{var c;const u=(c=n.value[s])===null||c===void 0?void 0:c[0];return u&&(a[s]=u),a},{})}]}}function on(e){const n="id"in e?e.meta.valid:e.meta.value.valid;return{bgColor:n?X.success:X.error,textColor:n?X.black:X.white}}function Ct(e,n,l){return ke(l==null?void 0:l.type)?Il(e,n,l):rn(e,n,l)}function rn(e,n,l){const{initialValue:i,validateOnMount:o,bails:r,type:a,checkedValue:s,label:c,validateOnValueUpdate:u,uncheckedValue:m,standalone:h,keepValueOnUnmount:d,modelPropName:b,syncVModel:$}=Ol(t.unref(e),l),S=h?void 0:ve(me);let D=!1;const{id:_,value:N,initialValue:p,meta:k,setState:E,errors:I,errorMessage:M}=kl(e,{modelValue:i,standalone:h});$&&Nl({value:N,prop:b,handleChange:le});const z=()=>{k.touched=!0},R=t.computed(()=>{let y=t.unref(n);const B=t.unref(S==null?void 0:S.schema);return B&&!Be(B)&&(y=Vl(B,t.unref(e))||y),Be(y)||be(y)||Array.isArray(y)?y:Yt(y)});async function A(y){var B,Q;return S!=null&&S.validateSchema?(B=(await S.validateSchema(y)).results[t.unref(e)])!==null&&B!==void 0?B:{valid:!0,errors:[]}:Kt(N.value,R.value,{name:t.unref(c)||t.unref(e),values:(Q=S==null?void 0:S.values)!==null&&Q!==void 0?Q:{},bails:r})}const j=kt(async()=>(k.pending=!0,k.validated=!0,A("validated-only")),y=>(D&&(y.valid=!0,y.errors=[]),E({errors:y.errors}),k.pending=!1,y)),H=kt(async()=>A("silent"),y=>(D&&(y.valid=!0),k.valid=y.valid,y));function K(y){return(y==null?void 0:y.mode)==="silent"?H():j()}function le(y,B=!0){const Q=$t(y);N.value=Q,!u&&B&&j()}t.onMounted(()=>{if(o)return j();(!S||!S.validateSchema)&&H()});function Y(y){k.touched=y}let v;function O(){v=t.watch(N,(y,B)=>{if(ie(y,B))return;(u?j:H)()},{deep:!0})}O();function w(y){var B;v==null||v();const Q=y&&"value"in y?y.value:p.value;E({value:Z(Q),initialValue:Z(Q),touched:(B=y==null?void 0:y.touched)!==null&&B!==void 0?B:!1,errors:(y==null?void 0:y.errors)||[]}),k.pending=!1,k.validated=!1,H(),t.nextTick(()=>{O()})}function C(y){N.value=y}function V(y){E({errors:Array.isArray(y)?y:[y]})}const T={id:_,name:e,label:c,value:N,meta:k,errors:I,errorMessage:M,type:a,checkedValue:s,uncheckedValue:m,bails:r,keepValueOnUnmount:d,resetField:w,handleReset:()=>w(),validate:K,handleChange:le,handleBlur:z,setState:E,setTouched:Y,setErrors:V,setValue:C};if(t.provide(Xn,T),t.isRef(n)&&typeof t.unref(n)!="function"&&t.watch(n,(y,B)=>{ie(y,B)||(k.validated?j():H())},{deep:!0}),process.env.NODE_ENV!=="production"&&(T._vm=t.getCurrentInstance(),t.watch(()=>Object.assign(Object.assign({errors:I.value},k),{value:N.value}),pe,{deep:!0}),S||Sl(T)),!S)return T;S.register(T),t.onBeforeUnmount(()=>{D=!0,S.unregister(T)});const L=t.computed(()=>{const y=R.value;return!y||be(y)||Be(y)||Array.isArray(y)?{}:Object.keys(y).reduce((B,Q)=>{const ce=dl(y[Q]).map(te=>te.__locatorRef).reduce((te,ne)=>{const oe=U(S.values,ne)||S.values[ne];return oe!==void 0&&(te[ne]=oe),te},{});return Object.assign(B,ce),B},{})});return t.watch(L,(y,B)=>{if(!Object.keys(y).length)return;!ie(y,B)&&(k.validated?j():H())}),T}function Ol(e,n){const l=()=>({initialValue:void 0,validateOnMount:!1,bails:!0,rules:"",label:e,validateOnValueUpdate:!0,standalone:!1,keepValueOnUnmount:void 0,modelPropName:"modelValue",syncVModel:!0});if(!n)return l();const i="valueProp"in n?n.valueProp:n.checkedValue;return Object.assign(Object.assign(Object.assign({},l()),n||{}),{checkedValue:i})}function Vl(e,n){if(!!e)return e[n]}function Il(e,n,l){const i=l!=null&&l.standalone?void 0:ve(me),o=l==null?void 0:l.checkedValue,r=l==null?void 0:l.uncheckedValue;function a(s){const c=s.handleChange,u=t.computed(()=>{const h=t.unref(s.value),d=t.unref(o);return Array.isArray(h)?h.findIndex(b=>ie(b,d))>=0:ie(d,h)});function m(h,d=!0){var b;if(u.value===((b=h==null?void 0:h.target)===null||b===void 0?void 0:b.checked))return;let $=$t(h);i||($=bt(t.unref(s.value),t.unref(o),t.unref(r))),c($,d)}return Object.assign(Object.assign({},s),{checked:u,checkedValue:o,uncheckedValue:r,handleChange:m})}return a(rn(e,n,l))}function Nl({prop:e,value:n,handleChange:l}){const i=t.getCurrentInstance();if(!i){process.env.NODE_ENV!=="production"&&console.warn("Failed to setup model events because `useField` was not called in setup.");return}const o=e||"modelValue",r=`update:${o}`;o in i.props&&(t.watch(n,a=>{ie(a,an(i,o))||i.emit(r,a)}),t.watch(()=>an(i,o),a=>{if(a===_e&&n.value===void 0)return;const s=a===_e?void 0:a;ie(s,rl(n.value,i.props.modelModifiers))||l(s)}))}function an(e,n){return e.props[n]}t.defineComponent({name:"Field",inheritAttrs:!1,props:{as:{type:[String,Object],default:void 0},name:{type:String,required:!0},rules:{type:[Object,String,Function],default:void 0},validateOnMount:{type:Boolean,default:!1},validateOnBlur:{type:Boolean,default:void 0},validateOnChange:{type:Boolean,default:void 0},validateOnInput:{type:Boolean,default:void 0},validateOnModelUpdate:{type:Boolean,default:void 0},bails:{type:Boolean,default:()=>wt().bails},label:{type:String,default:void 0},uncheckedValue:{type:null,default:void 0},modelValue:{type:null,default:_e},modelModifiers:{type:null,default:()=>({})},"onUpdate:modelValue":{type:null,default:void 0},standalone:{type:Boolean,default:!1},keepValue:{type:Boolean,default:void 0}},setup(e,n){const l=t.toRef(e,"rules"),i=t.toRef(e,"name"),o=t.toRef(e,"label"),r=t.toRef(e,"uncheckedValue"),a=t.toRef(e,"keepValue"),{errors:s,value:c,errorMessage:u,validate:m,handleChange:h,handleBlur:d,setTouched:b,resetField:$,handleReset:S,meta:D,checked:_,setErrors:N}=Ct(i,l,{validateOnMount:e.validateOnMount,bails:e.bails,standalone:e.standalone,type:n.attrs.type,initialValue:Al(e,n),checkedValue:n.attrs.value,uncheckedValue:r,label:o,validateOnValueUpdate:!1,keepValueOnUnmount:a}),p=function(R,A=!0){h(R,A),n.emit("update:modelValue",c.value)},k=z=>{ke(n.attrs.type)||(c.value=$t(z))},E=function(R){k(R),n.emit("update:modelValue",c.value)},I=t.computed(()=>{const{validateOnInput:z,validateOnChange:R,validateOnBlur:A,validateOnModelUpdate:j}=Tl(e),H=[d,n.attrs.onBlur,A?m:void 0].filter(Boolean),K=[O=>p(O,z),n.attrs.onInput].filter(Boolean),le=[O=>p(O,R),n.attrs.onChange].filter(Boolean),Y={name:e.name,onBlur:H,onInput:K,onChange:le};Y["onUpdate:modelValue"]=O=>p(O,j),ke(n.attrs.type)&&_&&(Y.checked=_.value);const v=sn(e,n);return ll(v,n.attrs)&&(Y.value=c.value),Y});function M(){return{field:I.value,value:c.value,meta:D,errors:s.value,errorMessage:u.value,validate:m,resetField:$,handleChange:p,handleInput:E,handleReset:S,handleBlur:d,setTouched:b,setErrors:N}}return n.expose({setErrors:N,setTouched:b,reset:$,validate:m,handleChange:h}),()=>{const z=t.resolveDynamicComponent(sn(e,n)),R=Qe(z,n,M);return z?t.h(z,Object.assign(Object.assign({},n.attrs),I.value),R):R}}});function sn(e,n){let l=e.as||"";return!e.as&&!n.slots.default&&(l="input"),l}function Tl(e){var n,l,i,o;const{validateOnInput:r,validateOnChange:a,validateOnBlur:s,validateOnModelUpdate:c}=wt();return{validateOnInput:(n=e.validateOnInput)!==null&&n!==void 0?n:r,validateOnChange:(l=e.validateOnChange)!==null&&l!==void 0?l:a,validateOnBlur:(i=e.validateOnBlur)!==null&&i!==void 0?i:s,validateOnModelUpdate:(o=e.validateOnModelUpdate)!==null&&o!==void 0?o:c}}function Al(e,n){return ke(n.attrs.type)?Ht(e,"modelValue")?e.modelValue:void 0:Ht(e,"modelValue")?e.modelValue:n.attrs.value}let Ml=0;function Fl(e){var n;const l=Ml++;let i=!1;const o=t.ref({}),r=t.ref(!1),a=t.ref(0),s=[],c=t.reactive(Z(t.unref(e==null?void 0:e.initialValues)||{})),{errorBag:u,setErrorBag:m,setFieldErrorBag:h}=zl(e==null?void 0:e.initialErrors),d=t.computed(()=>W(u.value).reduce((f,g)=>{const F=u.value[g];return F&&F.length&&(f[g]=F[0]),f},{}));function b(f){const g=o.value[f];return Array.isArray(g)?g[0]:g}function $(f){return!!o.value[f]}const S=t.computed(()=>W(o.value).reduce((f,g)=>{const F=b(g);return F&&(f[g]=t.unref(F.label||F.name)||""),f},{})),D=t.computed(()=>W(o.value).reduce((f,g)=>{var F;const P=b(g);return P&&(f[g]=(F=P.bails)!==null&&F!==void 0?F:!0),f},{})),_=Object.assign({},(e==null?void 0:e.initialErrors)||{}),N=(n=e==null?void 0:e.keepValuesOnUnmount)!==null&&n!==void 0?n:!1,{initialValues:p,originalInitialValues:k,setInitialValues:E}=Ll(o,c,e==null?void 0:e.initialValues),I=Pl(o,c,k,d),M=e==null?void 0:e.validationSchema,z=Zt(Sn,5),R=Zt(Sn,5),A=kt(async f=>await f==="silent"?z():R(),(f,[g])=>{const F=j.fieldsByPath.value||{},P=W(j.errorBag.value);return[...new Set([...W(f.results),...W(F),...P])].reduce((G,J)=>{const de=F[J],xe=(f.results[J]||{errors:[]}).errors,re={errors:xe,valid:!xe.length};if(G.results[J]=re,re.valid||(G.errors[J]=re.errors[0]),!de)return Y(J,xe),G;if(K(de,qe=>qe.meta.valid=re.valid),g==="silent")return G;const sa=Array.isArray(de)?de.some(qe=>qe.meta.validated):de.meta.validated;return g==="validated-only"&&!sa||K(de,qe=>qe.setState({errors:re.errors})),G},{valid:f.valid,results:{},errors:{}})}),j={formId:l,fieldsByPath:o,values:c,errorBag:u,errors:d,schema:M,submitCount:a,meta:I,isSubmitting:r,fieldArrays:s,keepValuesOnUnmount:N,validateSchema:t.unref(M)?A:void 0,validate:ne,register:ce,unregister:te,setFieldErrorBag:h,validateField:oe,setFieldValue:O,setValues:w,setErrors:v,setFieldError:Y,setFieldTouched:T,setTouched:L,resetForm:y,handleSubmit:De,stageInitialValue:ra,unsetInitialValue:oa,setFieldInitialValue:wn,useFieldModel:V};function H(f){return Array.isArray(f)}function K(f,g){return Array.isArray(f)?f.forEach(g):g(f)}function le(f){Object.values(o.value).forEach(g=>{!g||K(g,f)})}function Y(f,g){h(f,g)}function v(f){m(f)}function O(f,g,{force:F}={force:!1}){var P;const x=o.value[f],G=Z(g);if(!x){fe(c,f,G);return}if(H(x)&&((P=x[0])===null||P===void 0?void 0:P.type)==="checkbox"&&!Array.isArray(g)){const de=Z(bt(U(c,f)||[],g,void 0));fe(c,f,de);return}let J=g;!H(x)&&x.type==="checkbox"&&!F&&!i&&(J=Z(bt(U(c,f),g,t.unref(x.uncheckedValue)))),fe(c,f,J)}function w(f){W(c).forEach(g=>{delete c[g]}),W(f).forEach(g=>{O(g,f[g])}),s.forEach(g=>g&&g.reset())}function C(f){const{value:g}=tn(f);return t.watch(g,()=>{$(t.unref(f))||ne({mode:"validated-only"})},{deep:!0}),g}function V(f){return Array.isArray(f)?f.map(C):C(f)}function T(f,g){const F=o.value[f];F&&K(F,P=>P.setTouched(g))}function L(f){W(f).forEach(g=>{T(g,!!f[g])})}function y(f){i=!0,f!=null&&f.values?(E(f.values),w(f==null?void 0:f.values)):(E(k.value),w(k.value)),le(g=>g.resetField()),f!=null&&f.touched&&L(f.touched),v((f==null?void 0:f.errors)||{}),a.value=(f==null?void 0:f.submitCount)||0,t.nextTick(()=>{i=!1})}function B(f,g){const F=t.markRaw(f),P=g;if(!o.value[P]){o.value[P]=F;return}const x=o.value[P];x&&!Array.isArray(x)&&(o.value[P]=[x]),o.value[P]=[...o.value[P],F]}function Q(f,g){const F=g,P=o.value[F];if(!!P){if(!H(P)&&f.id===P.id){delete o.value[F];return}if(H(P)){const x=P.findIndex(G=>G.id===f.id);if(x===-1)return;P.splice(x,1),P.length||delete o.value[F]}}}function ce(f){const g=t.unref(f.name);B(f,g),t.isRef(f.name)&&t.watch(f.name,async(P,x)=>{await t.nextTick(),Q(f,x),B(f,P),(d.value[x]||d.value[P])&&(Y(x,void 0),oe(P)),await t.nextTick(),$(x)||yt(c,x)});const F=t.unref(f.errorMessage);F&&(_==null?void 0:_[g])!==F&&oe(g),delete _[g]}function te(f){const g=t.unref(f.name),F=o.value[g],P=!!F&&H(F);Q(f,g),t.nextTick(()=>{var x;const G=(x=t.unref(f.keepValueOnUnmount))!==null&&x!==void 0?x:t.unref(N),J=U(c,g);if(P&&(F===o.value[g]||!o.value[g])&&Array.isArray(J)&&!G){const xe=J.findIndex(re=>ie(re,t.unref(f.checkedValue)));if(xe>-1){const re=[...J];re.splice(xe,1),O(g,re,{force:!0})}}if(!$(g)){if(Y(g,void 0),G||P&&!_t(U(c,g)))return;yt(c,g)}})}async function ne(f){if(le(x=>x.meta.validated=!0),j.validateSchema)return j.validateSchema((f==null?void 0:f.mode)||"force");const g=await Promise.all(Object.values(o.value).map(x=>{const G=Array.isArray(x)?x[0]:x;return G?G.validate(f).then(J=>({key:t.unref(G.name),valid:J.valid,errors:J.errors})):Promise.resolve({key:"",valid:!0,errors:[]})})),F={},P={};for(const x of g)F[x.key]={valid:x.valid,errors:x.errors},x.errors.length&&(P[x.key]=x.errors[0]);return{valid:g.every(x=>x.valid),results:F,errors:P}}async function oe(f){const g=o.value[f];return g?Array.isArray(g)?g.map(F=>F.validate())[0]:g.validate():(t.warn(`field with name ${f} was not found`),Promise.resolve({errors:[],valid:!0}))}function De(f,g){return function(P){return P instanceof Event&&(P.preventDefault(),P.stopPropagation()),L(W(o.value).reduce((x,G)=>(x[G]=!0,x),{})),r.value=!0,a.value++,ne().then(x=>{if(x.valid&&typeof f=="function")return f(Z(c),{evt:P,setErrors:v,setFieldError:Y,setTouched:L,setFieldTouched:T,setValues:w,setFieldValue:O,resetForm:y});!x.valid&&typeof g=="function"&&g({values:Z(c),evt:P,errors:x.errors,results:x.results})}).then(x=>(r.value=!1,x),x=>{throw r.value=!1,x})}}function wn(f,g){fe(p.value,f,Z(g))}function oa(f){yt(p.value,f)}function ra(f,g,F=!1){fe(c,f,g),wn(f,g),F&&!(e!=null&&e.initialValues)&&fe(k.value,f,Z(g))}async function Sn(){const f=t.unref(M);return f?Be(f)?await gl(f,c):await bl(f,c,{names:S.value,bailsMap:D.value}):{valid:!0,results:{},errors:{}}}const aa=De((f,{evt:g})=>{Qt(g)&&g.target.submit()});return t.onMounted(()=>{if(e!=null&&e.initialErrors&&v(e.initialErrors),e!=null&&e.initialTouched&&L(e.initialTouched),e!=null&&e.validateOnMount){ne();return}j.validateSchema&&j.validateSchema("silent")}),t.isRef(M)&&t.watch(M,()=>{var f;(f=j.validateSchema)===null||f===void 0||f.call(j,"validated-only")}),t.provide(me,j),process.env.NODE_ENV!=="production"&&(wl(j),t.watch(()=>Object.assign(Object.assign({errors:u.value},I.value),{values:c,isSubmitting:r.value,submitCount:a.value}),pe,{deep:!0})),{errors:d,meta:I,values:c,isSubmitting:r,submitCount:a,validate:ne,validateField:oe,handleReset:()=>y(),resetForm:y,handleSubmit:De,submitForm:aa,setFieldError:Y,setErrors:v,setFieldValue:O,setValues:w,setFieldTouched:T,setTouched:L,useFieldModel:V}}function Pl(e,n,l,i){const o={touched:"some",pending:"some",valid:"every"},r=t.computed(()=>!ie(n,t.unref(l)));function a(){const c=Object.values(e.value).flat(1).filter(Boolean);return W(o).reduce((u,m)=>{const h=o[m];return u[m]=c[h](d=>d.meta[m]),u},{})}const s=t.reactive(a());return t.watchEffect(()=>{const c=a();s.touched=c.touched,s.valid=c.valid,s.pending=c.pending}),t.computed(()=>Object.assign(Object.assign({initialValues:t.unref(l)},s),{valid:s.valid&&!W(i.value).length,dirty:r.value}))}function Ll(e,n,l){const i=t.ref(Z(t.unref(l))||{}),o=t.ref(Z(t.unref(l))||{});function r(a,s=!1){i.value=Z(a),o.value=Z(a),s&&W(e.value).forEach(c=>{const u=e.value[c],m=Array.isArray(u)?u.some(d=>d.meta.touched):u==null?void 0:u.meta.touched;if(!u||m)return;const h=U(i.value,c);fe(n,c,Z(h))})}return t.isRef(l)&&t.watch(l,a=>{r(a,!0)},{deep:!0}),{initialValues:i,originalInitialValues:o,setInitialValues:r}}function zl(e){const n=t.ref({});function l(r){return Array.isArray(r)?r:r?[r]:[]}function i(r,a){if(!a){delete n.value[r];return}n.value[r]=l(a)}function o(r){n.value=W(r).reduce((a,s)=>{const c=r[s];return c&&(a[s]=l(c)),a},{})}return e&&o(e),{errorBag:n,setErrorBag:o,setFieldErrorBag:i}}t.defineComponent({name:"Form",inheritAttrs:!1,props:{as:{type:String,default:"form"},validationSchema:{type:Object,default:void 0},initialValues:{type:Object,default:void 0},initialErrors:{type:Object,default:void 0},initialTouched:{type:Object,default:void 0},validateOnMount:{type:Boolean,default:!1},onSubmit:{type:Function,default:void 0},onInvalidSubmit:{type:Function,default:void 0},keepValues:{type:Boolean,default:!1}},setup(e,n){const l=t.toRef(e,"initialValues"),i=t.toRef(e,"validationSchema"),o=t.toRef(e,"keepValues"),{errors:r,values:a,meta:s,isSubmitting:c,submitCount:u,validate:m,validateField:h,handleReset:d,resetForm:b,handleSubmit:$,setErrors:S,setFieldError:D,setFieldValue:_,setValues:N,setFieldTouched:p,setTouched:k}=Fl({validationSchema:i.value?i:void 0,initialValues:l,initialErrors:e.initialErrors,initialTouched:e.initialTouched,validateOnMount:e.validateOnMount,keepValuesOnUnmount:o}),E=$((A,{evt:j})=>{Qt(j)&&j.target.submit()},e.onInvalidSubmit),I=e.onSubmit?$(e.onSubmit,e.onInvalidSubmit):E;function M(A){ft(A)&&A.preventDefault(),d(),typeof n.attrs.onReset=="function"&&n.attrs.onReset()}function z(A,j){return $(typeof A=="function"&&!j?A:j,e.onInvalidSubmit)(A)}function R(){return{meta:s.value,errors:r.value,values:a,isSubmitting:c.value,submitCount:u.value,validate:m,validateField:h,handleSubmit:z,handleReset:d,submitForm:E,setErrors:S,setFieldError:D,setFieldValue:_,setValues:N,setFieldTouched:p,setTouched:k,resetForm:b}}return n.expose({setFieldError:D,setErrors:S,setFieldValue:_,setValues:N,setFieldTouched:p,setTouched:k,resetForm:b,validate:m,validateField:h}),function(){const j=e.as==="form"?e.as:t.resolveDynamicComponent(e.as),H=Qe(j,n,R);if(!e.as)return H;const K=e.as==="form"?{novalidate:!0}:{};return t.h(j,Object.assign(Object.assign(Object.assign({},K),n.attrs),{onSubmit:I,onReset:M}),H)}}});function Dl(e){const n=ve(me,void 0),l=t.ref([]),i=()=>{},o={fields:l,remove:i,push:i,swap:i,insert:i,update:i,replace:i,prepend:i,move:i};if(!n)return gt("FieldArray requires being a child of `<Form/>` or `useForm` being called before it. Array fields may not work correctly"),o;if(!t.unref(e))return gt("FieldArray requires a field path to be provided, did you forget to pass the `name` prop?"),o;const r=n.fieldArrays.find(p=>t.unref(p.path)===t.unref(e));if(r)return r;let a=0;function s(){const p=U(n==null?void 0:n.values,t.unref(e),[])||[];l.value=p.map(u),c()}s();function c(){const p=l.value.length;for(let k=0;k<p;k++){const E=l.value[k];E.isFirst=k===0,E.isLast=k===p-1}}function u(p){const k=a++;return{key:k,value:t.computed({get(){const I=U(n==null?void 0:n.values,t.unref(e),[])||[],M=l.value.findIndex(z=>z.key===k);return M===-1?p:I[M]},set(I){const M=l.value.findIndex(z=>z.key===k);if(M===-1){gt("Attempting to update a non-existent array item");return}S(M,I)}}),isFirst:!1,isLast:!1}}function m(p){const k=t.unref(e),E=U(n==null?void 0:n.values,k);if(!E||!Array.isArray(E))return;const I=[...E];I.splice(p,1),n==null||n.unsetInitialValue(k+`[${p}]`),n==null||n.setFieldValue(k,I),l.value.splice(p,1),c()}function h(p){const k=t.unref(e),E=U(n==null?void 0:n.values,k),I=Ee(E)?[]:E;if(!Array.isArray(I))return;const M=[...I];M.push(p),n==null||n.stageInitialValue(k+`[${M.length-1}]`,p),n==null||n.setFieldValue(k,M),l.value.push(u(p)),c()}function d(p,k){const E=t.unref(e),I=U(n==null?void 0:n.values,E);if(!Array.isArray(I)||!(p in I)||!(k in I))return;const M=[...I],z=[...l.value],R=M[p];M[p]=M[k],M[k]=R;const A=z[p];z[p]=z[k],z[k]=A,n==null||n.setFieldValue(E,M),l.value=z,c()}function b(p,k){const E=t.unref(e),I=U(n==null?void 0:n.values,E);if(!Array.isArray(I)||I.length<p)return;const M=[...I],z=[...l.value];M.splice(p,0,k),z.splice(p,0,u(k)),n==null||n.setFieldValue(E,M),l.value=z,c()}function $(p){const k=t.unref(e);n==null||n.setFieldValue(k,p),s()}function S(p,k){const E=t.unref(e),I=U(n==null?void 0:n.values,E);!Array.isArray(I)||I.length-1<p||n==null||n.setFieldValue(`${E}[${p}]`,k)}function D(p){const k=t.unref(e),E=U(n==null?void 0:n.values,k),I=Ee(E)?[]:E;if(!Array.isArray(I))return;const M=[p,...I];n==null||n.stageInitialValue(k+`[${M.length-1}]`,p),n==null||n.setFieldValue(k,M),l.value.unshift(u(p)),c()}function _(p,k){const E=t.unref(e),I=U(n==null?void 0:n.values,E),M=Ee(I)?[]:[...I];if(!Array.isArray(I)||!(p in I)||!(k in I))return;const z=[...l.value],R=z[p];z.splice(p,1),z.splice(k,0,R);const A=M[p];M.splice(p,1),M.splice(k,0,A),n==null||n.setFieldValue(E,M),l.value=z,c()}const N={fields:l,remove:m,push:h,swap:d,insert:b,update:S,replace:$,prepend:D,move:_};return n.fieldArrays.push(Object.assign({path:e,reset:s},N)),t.onBeforeUnmount(()=>{const p=n.fieldArrays.findIndex(k=>t.unref(k.path)===t.unref(e));p>=0&&n.fieldArrays.splice(p,1)}),N}t.defineComponent({name:"FieldArray",inheritAttrs:!1,props:{name:{type:String,required:!0}},setup(e,n){const{push:l,remove:i,swap:o,insert:r,replace:a,update:s,prepend:c,move:u,fields:m}=Dl(t.toRef(e,"name"));function h(){return{fields:m.value,push:l,remove:i,swap:o,insert:r,update:s,replace:a,prepend:c,move:u}}return n.expose({push:l,remove:i,swap:o,insert:r,update:s,replace:a,prepend:c,move:u}),()=>Qe(void 0,n,h)}}),t.defineComponent({name:"ErrorMessage",props:{as:{type:String,default:void 0},name:{type:String,required:!0}},setup(e,n){const l=t.inject(me,void 0),i=t.computed(()=>l==null?void 0:l.errors.value[e.name]);function o(){return{message:i.value}}return()=>{if(!i.value)return;const r=e.as?t.resolveDynamicComponent(e.as):e.as,a=Qe(r,n,o),s=Object.assign({role:"alert"},n.attrs);return!r&&(Array.isArray(a)||!a)&&(a==null?void 0:a.length)?a:(Array.isArray(a)||!a)&&!(a!=null&&a.length)?t.h(r||"span",s,i.value):t.h(r,s,a)}}});function Ie(e,n){var a,s,c,u;const l=(n==null?void 0:n.component)==="input"&&(((a=n==null?void 0:n.error)==null?void 0:a.value)!==null||(n==null?void 0:n.modelValue)!==void 0),i=(n==null?void 0:n.component)==="radio"&&(((s=n==null?void 0:n.error)==null?void 0:s.value)!==null||(n==null?void 0:n.modelValue)!==void 0),o=(n==null?void 0:n.component)==="checkbox"&&(((c=n==null?void 0:n.error)==null?void 0:c.value)!==null||(n==null?void 0:n.modelValue)!==void 0),r=(n==null?void 0:n.component)==="select"&&(((u=n==null?void 0:n.error)==null?void 0:u.value)!==null||(n==null?void 0:n.selected)!==void 0);return n!=null&&n.useFieldParent?n==null?void 0:n.useFieldParent(e):n!=null&&n.rules?Ct(e,n==null?void 0:n.rules,n==null?void 0:n.opts):r?jl(n==null?void 0:n.error,n==null?void 0:n.selected):l||i||o?ql(n==null?void 0:n.error,n==null?void 0:n.modelValue):Ct(e)}function ql(e,n){return{value:t.ref(n!=null?n:""),errorMessage:e}}function jl(e,n){return{value:t.ref(n),errorMessage:e}}const _l={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Rl=[t.createElementVNode("path",{fill:"currentColor",d:"m9.55 18l-5.7-5.7l1.425-1.425L9.55 15.15l9.175-9.175L20.15 7.4Z"},null,-1)];function Ql(e,n){return t.openBlock(),t.createElementBlock("svg",_l,Rl)}const cn={name:"material-symbols-done",render:Ql},Hl=["id","data-testid"],Ul=["for","data-testid","data-required"],Zl={class:"container-input"},Gl=["id","data-testid"],Yl={inheritAttrs:!1},Ne=t.defineComponent({...Yl,__name:"InputText",props:{id:null,name:null,class:null,label:null,mask:null,helperText:null,successText:null,loadingText:null,required:null,disabled:null,isSuccess:null,isLoading:null,size:{default:"medium"},error:{default:null},modelValue:null,placeholder:null,useField:null,rules:null,opts:null},emits:["update:modelValue"],setup(e,{emit:n}){const l=e,i=t.useSlots(),o=t.computed(()=>!!(i!=null&&i.icon)),r=t.computed(()=>{var d;return(d=l.name)!=null?d:""}),{value:a,errorMessage:s}=Ie(r.value,{component:"input",error:t.computed(()=>l.error),modelValue:l.modelValue,rules:l.rules,opts:l.opts,useFieldParent:l.useField}),c=t.computed(()=>!!l.loadingText||!!(s!=null&&s.value)||!!l.successText||!!l.helperText),u=t.computed(()=>c.value?`input-text-describe-${l.id}`:null),m=t.computed(()=>{var d;return l.loadingText&&l.isLoading?{text:l.loadingText,type:"loading"}:(d=s==null?void 0:s.value)!=null&&d.length?{text:s==null?void 0:s.value,type:"error"}:l.successText&&l.isSuccess?{text:l.successText,type:"success"}:{text:l.helperText,type:"helper"}});function h(d){n("update:modelValue",d)}return(d,b)=>(t.openBlock(),t.createElementBlock("div",{id:`input-text-${e.id}`,"data-testid":`input-text-${e.id}`,class:t.normalizeClass([[`${d.$props.class}`,{"-disabled":e.disabled}],"sol-input-text-core"])},[e.label?(t.openBlock(),t.createElementBlock("label",{key:0,for:`input-text-input-${e.id}`,"data-testid":`input-text-label-${e.id}`,class:t.normalizeClass(["label",`-${e.size}`]),"data-required":e.required},t.toDisplayString(e.label),11,Ul)):t.createCommentVNode("",!0),t.createElementVNode("div",Zl,[t.createVNode(Dt,t.mergeProps(d.$attrs,{id:`text-input-${e.id}`,modelValue:t.unref(a),"onUpdate:modelValue":[b[0]||(b[0]=$=>t.isRef(a)?a.value=$:null),h],size:e.size,name:t.unref(r),mask:e.mask,placeholder:e.placeholder,"data-required":e.required,"has-feedback-icon":t.unref(o),error:!!t.unref(s),disabled:e.disabled,"aria-invalid":!!t.unref(s),"aria-describedby":t.unref(u)}),null,16,["id","modelValue","size","name","mask","placeholder","data-required","has-feedback-icon","error","disabled","aria-invalid","aria-describedby"]),e.isLoading?(t.openBlock(),t.createBlock(Tt,{key:0,class:t.normalizeClass(["icon-position",`-${e.size}`]),title:"carregando","aria-busy":e.isSuccess,size:e.size},null,8,["aria-busy","class","size"])):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["icon-position",`-${e.size}`])},[e.isSuccess?(t.openBlock(),t.createBlock(t.unref(cn),{key:0,"aria-hidden":"true",class:"text-feedback-positive-pure"})):t.renderSlot(d.$slots,"icon",{key:1})],2))]),t.unref(c)?(t.openBlock(),t.createElementBlock("span",{key:1,id:`input-text-describe-${e.id}`,"data-testid":`input-text-describe-${e.id}`,class:t.normalizeClass(["message",`-${t.unref(m).type}`])},t.toDisplayString(t.unref(m).text),11,Gl)):t.createCommentVNode("",!0)],10,Hl))}}),ga="",Wl={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Kl=[t.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5"},[t.createElementVNode("path",{d:"M12 14a2 2 0 1 0 0-4a2 2 0 0 0 0 4Z"}),t.createElementVNode("path",{d:"M21 12c-1.889 2.991-5.282 6-9 6s-7.111-3.009-9-6c2.299-2.842 4.992-6 9-6s6.701 3.158 9 6Z"})],-1)];function Jl(e,n){return t.openBlock(),t.createElementBlock("svg",Wl,Kl)}const Xl={name:"iconoir-eye-empty",render:Jl},ei={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},ti=[t.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5"},[t.createElementVNode("path",{d:"m3 3l18 18M10.5 10.677a2 2 0 0 0 2.823 2.823"}),t.createElementVNode("path",{d:"M7.362 7.561C5.68 8.74 4.279 10.42 3 12c1.889 2.991 5.282 6 9 6c1.55 0 3.043-.523 4.395-1.35M12 6c4.008 0 6.701 3.158 9 6a15.66 15.66 0 0 1-1.078 1.5"})],-1)];function ni(e,n){return t.openBlock(),t.createElementBlock("svg",ei,ti)}const li={name:"iconoir-eye-off",render:ni},ii=["aria-label"],He=t.defineComponent({__name:"InputPassword",props:{id:null,label:null,name:{default:"password"},placeholder:{default:"Digite sua senha."},helperText:null,required:{default:!0},disabled:null,size:null,error:null,modelValue:null,useField:null,rules:null,opts:null},setup(e){const n=t.ref(!1),l=t.computed(()=>n.value?"text":"password");return(i,o)=>(t.openBlock(),t.createBlock(Ne,{id:`password-${e.id}`,type:t.unref(l),label:e.label,name:e.name,required:e.required,size:e.size,"helper-text":e.helperText,placeholder:e.placeholder,error:e.error,"model-value":e.modelValue,"use-field":e.useField,rules:e.rules,opts:e.opts},{icon:t.withCtx(()=>[t.createElementVNode("button",{type:"button","data-testid":"toggle-type-password","aria-label":n.value?"Hide password":"Show password",onClick:o[0]||(o[0]=r=>n.value=!n.value)},[t.withDirectives(t.createVNode(t.unref(Xl),{class:"password-feedback-icon","aria-hidden":"true"},null,512),[[t.vShow,n.value]]),t.withDirectives(t.createVNode(t.unref(li),{class:"password-feedback-icon","aria-hidden":"true"},null,512),[[t.vShow,!n.value]])],8,ii)]),_:1},8,["id","type","label","name","required","size","helper-text","placeholder","error","model-value","use-field","rules","opts"]))}}),pa="",oi=["id","data-testid"],ri=["id","data-testid","for","data-required"],ai=["id","data-testid","data-required","placeholder","aria-invalid","aria-describedby"],si=["id","data-testid"],Ue=t.defineComponent({__name:"InputTextarea",props:{id:null,class:null,name:null,label:null,required:{type:Boolean},helperText:null,resize:{default:"both"},size:{default:"medium"},error:{default:null},placeholder:null,modelValue:null,useField:null,rules:null,opts:null},emits:["update:modelValue"],setup(e,{emit:n}){const l=e,i=t.computed(()=>{var m;return(m=l.name)!=null?m:""}),{value:o,errorMessage:r}=Ie(i.value,{component:"input",error:t.computed(()=>l.error),modelValue:l.modelValue,rules:l.rules,opts:l.opts,useFieldParent:l.useField}),a=t.computed(()=>!!(r!=null&&r.value)||!!l.helperText),s=t.computed(()=>a.value?`input-textarea-describe-${l.id}`:void 0),c=t.computed(()=>{var m;return(m=r==null?void 0:r.value)!=null&&m.length?{text:r==null?void 0:r.value,type:"error"}:{text:l.helperText,type:"helper"}});function u({target:m}){n("update:modelValue",m==null?void 0:m.value)}return(m,h)=>{var d;return t.openBlock(),t.createElementBlock("div",{id:`input-textarea-${e.id}`,"data-testid":`input-textarea-${e.id}`,class:t.normalizeClass([[`${(d=m.$props.class)!=null?d:""}`,`-${e.size}`],"sol-textarea-core"])},[e.label?(t.openBlock(),t.createElementBlock("label",{key:0,id:`input-textarea-label-${e.id}`,"data-testid":`input-textarea-label-${e.id}`,for:`input-textarea-input-${e.id}`,class:"label","data-required":e.required},[t.createElementVNode("span",null,t.toDisplayString(e.label),1)],8,ri)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(t.unref(o))+" ",1),t.withDirectives(t.createElementVNode("textarea",t.mergeProps(m.$attrs,{id:`input-textarea-input-${e.id}`,"onUpdate:modelValue":h[0]||(h[0]=b=>t.isRef(o)?o.value=b:null),"data-testid":`input-textarea-input-${e.id}`,"data-required":e.required,class:[[`-${e.size}`,{"-error":e.error}],"textarea"],rows:"4",placeholder:e.placeholder,style:{resize:e.resize},"aria-invalid":!!t.unref(r),"aria-describedby":t.unref(s),onInput:u}),null,16,ai),[[t.vModelText,t.unref(o)]]),t.unref(a)?(t.openBlock(),t.createElementBlock("span",{key:1,id:`input-textarea-describe-${e.id}`,"data-testid":`input-textarea-describe-${e.id}`,class:t.normalizeClass(["message",`-${t.unref(c).type}`])},t.toDisplayString(t.unref(c).text),11,si)):t.createCommentVNode("",!0)],10,oi)}}}),$a="";Ne.install=e=>{e.component("SolInputText",Ne)},He.install=e=>{e.component("SolInputTextPassword",He)},Ue.install=e=>{e.component("SolInputTextarea",Ue)};const ci=["id","aria-checked","aria-labelledby","data-testid","checked","value","name"],di=["id","for","data-testid"],Ze=t.defineComponent({__name:"Switch",props:{id:null,name:null,value:null,label:null,checked:{type:Boolean},class:null,textDirection:{default:"left"},hideLabel:{type:Boolean},stretchLabel:{type:Boolean,default:!1}},emits:["change","update:checked"],setup(e,{emit:n}){const l=e;function i(){var o;n("change",(o=l.value)!=null?o:!!l.checked),n("update:checked",!l.checked)}return(o,r)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["sol-switch-core",[o.$props.class,`-text-${e.textDirection}`,{"-stretch-label":e.stretchLabel}]])},[t.createElementVNode("input",t.mergeProps(o.$attrs,{id:`switch-${e.name}-${e.id}`,type:"checkbox",class:"switch",role:"switch","aria-checked":e.checked,"aria-labelledby":`switch-label-${e.name}-${e.id}`,"data-testid":`switch-${e.name}-${e.id}`,checked:e.checked,value:e.value,name:e.name,onChange:i}),null,16,ci),t.createElementVNode("label",{id:`switch-label-${e.name}-${e.id}`,class:t.normalizeClass(["label",`-${e.textDirection} ${e.hideLabel?"sr-only":""}`]),for:`switch-${e.name}-${e.id}`,"data-testid":`switch-label-${e.name}-${e.id}`},t.toDisplayString(e.label),11,di)],2))}}),wa="";Ze.install=e=>{e.component("SolSwitch",Ze)};const ui=["id","data-testid","checked","value","name"],fi=["for"],mi={inheritAttrs:!1},we=t.defineComponent({...mi,__name:"Radio",props:{id:null,name:null,value:null,label:null,hideLabel:null,checked:null,class:null},emits:["change"],setup(e,{emit:n}){return(l,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["sol-radio-core",[l.$props.class,{"-hide-label":e.hideLabel}]])},[t.createElementVNode("input",t.mergeProps(l.$attrs,{id:`radio-${e.name}-${e.id}`,type:"radio",class:"radio","data-testid":`radio-${e.name}-${e.id}`,checked:e.checked,value:e.value,name:e.name,onChange:i[0]||(i[0]=o=>n("change",e.value))}),null,16,ui),t.createElementVNode("label",{class:"label",for:`radio-${e.name}-${e.id}`},t.toDisplayString(e.label),9,fi)],2))}}),Sa="",hi=["id","data-testid","aria-labelledby"],yi=["id","data-testid"],gi=["id","data-testid"],Ge=t.defineComponent({__name:"RadioGroup",props:{id:null,title:null,name:null,hideTitle:{type:Boolean,default:!1},helperText:null,error:{default:null},radios:null,modelValue:null,direction:{default:"row"},useField:null,rules:null,opts:null},emits:["change","update:modelValue"],setup(e,{emit:n}){const l=e,i=t.computed(()=>{var h;return(h=l.name)!=null?h:""}),{value:o,errorMessage:r}=Ie(i.value,{component:"radio",error:t.computed(()=>l.error),modelValue:l.modelValue,rules:l.rules,opts:l.opts,useFieldParent:l.useField}),a=t.computed(()=>!!(r!=null&&r.value)||!!l.helperText),s=t.computed(()=>a.value?`radios-describe-${l.id}`:null),c=t.computed(()=>{var h;return(h=r==null?void 0:r.value)!=null&&h.length?{text:r==null?void 0:r.value,type:"error"}:{text:l.helperText,type:"helper"}});function u(h){return o.value===h}function m(h){o.value=h.value,n("change",h.value),n("update:modelValue",h.value)}return(h,d)=>(t.openBlock(),t.createElementBlock("fieldset",{id:`radio-group-${e.id}`,"data-testid":`radio-group-${e.id}`,"aria-labelledby":`radio-group-title-${e.id}`,class:"sol-radio-group-core"},[t.renderSlot(h.$slots,"title",{id:`radio-group-title-${e.id}`},()=>[t.createElementVNode("legend",{id:`radio-group-title-${e.id}`,class:t.normalizeClass(["title",{"sr-only":e.hideTitle}]),"data-testid":`radio-group-title-${e.id}`},t.toDisplayString(e.title),11,yi)]),t.createElementVNode("ul",{class:t.normalizeClass(["container-radios",{"flex-col":e.direction==="column"}])},[t.renderSlot(h.$slots,"default",{radios:e.radios,direction:e.direction},()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.radios,(b,$)=>{var S;return t.openBlock(),t.createElementBlock("li",{key:$},[t.createVNode(we,t.mergeProps(h.$attrs,{id:(S=b==null?void 0:b.id)!=null?S:`${b.value}`,class:["radio",{"mb-micro":e.direction==="column","mr-micro":e.direction==="row"}],name:b.name,value:b.value,label:b.label,checked:u(b.value),error:!!t.unref(r),"aria-invalid":!!t.unref(r),"aria-describedby":t.unref(s),onChange:D=>m(b)}),null,16,["id","class","name","value","label","checked","error","aria-invalid","aria-describedby","onChange"])])}),128))])],2),t.unref(a)?(t.openBlock(),t.createElementBlock("span",{key:0,id:`radios-describe-${e.id}`,"data-testid":`radios-describe-${e.id}`,class:t.normalizeClass(["message",`-${t.unref(c).type}`])},t.toDisplayString(t.unref(c).text),11,gi)):t.createCommentVNode("",!0)],8,hi))}}),Ca="";we.install=e=>{e.component("SolRadio",we)},Ge.install=e=>{e.component("SolRadioGroup",Ge)};const bi=["id","indeterminate","data-testid","checked","value","name"],ki=["for"],pi={inheritAttrs:!1},he=t.defineComponent({...pi,__name:"Checkbox",props:{id:null,name:null,value:null,label:null,hideLabel:null,checked:null,class:null,indeterminate:{type:Boolean}},emits:["change"],setup(e,{emit:n}){return(l,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["sol-checkbox-core",[l.$props.class,{"-hide-label":e.hideLabel}]])},[t.createElementVNode("input",t.mergeProps(l.$attrs,{id:`checkbox-${e.name}-${e.id}`,type:"checkbox",indeterminate:e.indeterminate,class:"checkbox","data-testid":`checkbox-${e.name}-${e.id}`,checked:e.checked,value:e.value,name:e.name,onChange:i[0]||(i[0]=o=>n("change",e.value))}),null,16,bi),t.createElementVNode("label",{class:"label",for:`checkbox-${e.name}-${e.id}`},t.toDisplayString(e.label),9,ki)],2))}}),xa="",$i=["id","data-testid","aria-labelledby"],wi=["id","data-testid"],Si=["id","data-testid"],Ye=t.defineComponent({__name:"CheckboxGroup",props:{id:null,title:null,name:null,hideTitle:{type:Boolean,default:!1},helperText:null,error:{default:null},checkboxes:null,modelValue:null,direction:{default:"row"},useField:null,rules:null,opts:null},emits:["change","update:modelValue"],setup(e,{emit:n}){const l=e,i=t.computed(()=>{var d;return(d=l.name)!=null?d:""}),{value:o,errorMessage:r}=Ie(i.value,{component:"checkbox",error:t.computed(()=>l.error),modelValue:l.modelValue,rules:l.rules,useFieldParent:l.useField}),a=t.computed(()=>!!(r!=null&&r.value)||!!l.helperText),s=t.computed(()=>a.value?`checkboxes-describe-${l.id}`:null),c=t.computed(()=>{var d;return(d=r==null?void 0:r.value)!=null&&d.length?{text:r==null?void 0:r.value,type:"error"}:{text:l.helperText,type:"helper"}});function u(d){var b;return(b=o.value)==null?void 0:b.includes(d)}function m(d){return Array.isArray(o.value)?[...o.value,d]:[d]}function h(d){var $;n("change",d.value);const b=u(d.value)?($=o.value)==null?void 0:$.filter(S=>S!==d.value):m(d.value);o.value=b,n("update:modelValue",b)}return(d,b)=>(t.openBlock(),t.createElementBlock("fieldset",{id:`checkbox-group-${e.id}`,"data-testid":`checkbox-group-${e.id}`,class:"sol-checkbox-group-core","aria-labelledby":`checkbox-group-title-${e.id}`},[t.renderSlot(d.$slots,"title",{id:`checkbox-group-title-${e.id}`},()=>[t.createElementVNode("legend",{id:`checkbox-group-title-${e.id}`,class:t.normalizeClass(["title",{"sr-only":e.hideTitle}]),"data-testid":`checkbox-group-title-${e.id}`},t.toDisplayString(e.title),11,wi)]),t.createElementVNode("ul",{class:t.normalizeClass(["container-checkboxes",{"flex-col":e.direction==="column"}])},[t.renderSlot(d.$slots,"default",{checkboxes:e.checkboxes,direction:e.direction},()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.checkboxes,($,S)=>{var D;return t.openBlock(),t.createElementBlock("li",{key:S},[t.createVNode(he,t.mergeProps(d.$attrs,{id:(D=$==null?void 0:$.id)!=null?D:`${$.value}`,class:["checkbox",{"mb-micro":e.direction==="column","mr-micro":e.direction==="row"}],label:$.label,name:$.name,value:$.value,checked:u($.value),error:!!t.unref(r),"aria-invalid":!!t.unref(r),"aria-describedby":t.unref(s),onChange:_=>h($)}),null,16,["id","class","label","name","value","checked","error","aria-invalid","aria-describedby","onChange"])])}),128))])],2),t.unref(a)?(t.openBlock(),t.createElementBlock("span",{key:0,id:`checkboxes-describe-${e.id}`,"data-testid":`checkboxes-describe-${e.id}`,class:t.normalizeClass(["message",`-${t.unref(c).type}`])},t.toDisplayString(t.unref(c).text),11,Si)):t.createCommentVNode("",!0)],8,$i))}}),Ea="";he.install=e=>{e.component("SolCheckbox",he)},Ye.install=e=>{e.component("SolCheckboxGroup",Ye)};var dn;const Te=typeof window<"u",Ci=e=>typeof e=="string",xt=()=>{},un=Te&&((dn=window==null?void 0:window.navigator)==null?void 0:dn.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Et(e){return typeof e=="function"?e():t.unref(e)}function xi(e){return e}function Bt(e){return t.getCurrentScope()?(t.onScopeDispose(e),!0):!1}function fn(e){return typeof e=="function"?t.computed(e):t.ref(e)}function Ei(e,n=!0){t.getCurrentInstance()?t.onMounted(e):n?e():t.nextTick(e)}function Ae(e){var n;const l=Et(e);return(n=l==null?void 0:l.$el)!=null?n:l}const vt=Te?window:void 0;Te&&window.document,Te&&window.navigator,Te&&window.location;function Me(...e){let n,l,i,o;if(Ci(e[0])?([l,i,o]=e,n=vt):[n,l,i,o]=e,!n)return xt;let r=xt;const a=t.watch(()=>Ae(n),c=>{r(),c&&(c.addEventListener(l,i,o),r=()=>{c.removeEventListener(l,i,o),r=xt})},{immediate:!0,flush:"post"}),s=()=>{a(),r()};return Bt(s),s}function mn(e,n,l={}){const{window:i=vt,ignore:o,capture:r=!0,detectIframe:a=!1}=l;if(!i)return;const s=t.ref(!0);let c;const u=b=>{i.clearTimeout(c);const $=Ae(e);!$||$===b.target||b.composedPath().includes($)||!s.value||n(b)},m=b=>o&&o.some($=>{const S=Ae($);return S&&(b.target===S||b.composedPath().includes(S))}),h=[Me(i,"click",u,{passive:!0,capture:r}),Me(i,"pointerdown",b=>{const $=Ae(e);s.value=!!$&&!b.composedPath().includes($)&&!m(b)},{passive:!0}),Me(i,"pointerup",b=>{if(b.button===0){const $=b.composedPath();b.composedPath=()=>$,c=i.setTimeout(()=>u(b),50)}},{passive:!0}),a&&Me(i,"blur",b=>{var $;const S=Ae(e);(($=document.activeElement)==null?void 0:$.tagName)==="IFRAME"&&!(S!=null&&S.contains(document.activeElement))&&n(b)})].filter(Boolean);return()=>h.forEach(b=>b())}function Bi(e,n=!1){const l=t.ref(),i=()=>l.value=Boolean(e());return i(),Ei(i,n),l}function vi(e,n={}){const{window:l=vt}=n,i=Bi(()=>l&&"matchMedia"in l&&typeof l.matchMedia=="function");let o;const r=t.ref(!1),a=()=>{!o||("removeEventListener"in o?o.removeEventListener("change",s):o.removeListener(s))},s=()=>{!i.value||(a(),o=l.matchMedia(fn(e).value),r.value=o.matches,"addEventListener"in o?o.addEventListener("change",s):o.addListener(s))};return t.watchEffect(s),Bt(()=>a()),r}const Ot=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Vt="__vueuse_ssr_handlers__";Ot[Vt]=Ot[Vt]||{},Ot[Vt];var hn;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(hn||(hn={}));function Oi(e){const n=e||window.event;return n.touches.length>1?!0:(n.preventDefault&&n.preventDefault(),!1)}function Vi(e,n=!1){const l=t.ref(n);let i=null,o;t.watch(fn(e),s=>{if(s){const c=s;o=c.style.overflow,l.value&&(c.style.overflow="hidden")}},{immediate:!0});const r=()=>{const s=Et(e);!s||l.value||(un&&(i=Me(s,"touchmove",Oi,{passive:!1})),s.style.overflow="hidden",l.value=!0)},a=()=>{const s=Et(e);!s||!l.value||(un&&(i==null||i()),s.style.overflow=o,l.value=!1)};return Bt(a),t.computed({get(){return l.value},set(s){s?r():a()}})}var Ii=Object.defineProperty,yn=Object.getOwnPropertySymbols,Ni=Object.prototype.hasOwnProperty,Ti=Object.prototype.propertyIsEnumerable,gn=(e,n,l)=>n in e?Ii(e,n,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[n]=l,Ai=(e,n)=>{for(var l in n||(n={}))Ni.call(n,l)&&gn(e,l,n[l]);if(yn)for(var l of yn(n))Ti.call(n,l)&&gn(e,l,n[l]);return e};Ai({linear:xi},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});function ye(e,n){function l({code:i}){var a;const o=i;(()=>{if(!(n!=null&&n.fallback))return!1;const s=c=>Array.isArray(c)?!c.includes(o):o!==c;return n!=null&&n.exclude?!e.hasOwnProperty(o)&&s(n.exclude):!e.hasOwnProperty(o)})()&&(n==null||n.fallback()),e.hasOwnProperty(o)&&((a=e[o])==null||a.call(e))}return{navigate:l}}function We({target:e,query:n}){const l=t.reactive({id:"",index:-1,rowIndex:-1});function i(d){const b=d!=null?d:l.index,$=e==null?void 0:e.value;h(),d!==void 0&&(l.index=d),setTimeout(()=>{var _;const S=$.children[b],D=n&&S.querySelector(n)?S.querySelector(n):S;l.id=(_=S==null?void 0:S.id)!=null?_:"",D==null||D.focus()},0)}function o(){l.index>0&&(l.index-=1,i())}function r(d){l.index<d-1&&(l.index+=1,i())}function a(){i(0)}function s(d){i(d-1)}function c({query:d,to:b}){var p,k;const $=l.index>=0?l.index:0,D=(e==null?void 0:e.value).children[$],_=Array.isArray(d)?d.flatMap(E=>Array.from(D.querySelectorAll(E))).filter(E=>E):Array.from(D.querySelectorAll(d));if(!_.length)return;const N=l.rowIndex<_.length-1;b==="RIGHT"&&N&&(l.rowIndex+=1,(p=_[l.rowIndex])==null||p.focus()),b==="LEFT"&&(l.rowIndex=l.rowIndex>=0?l.rowIndex-1:-1,l.rowIndex<0?D.focus():(k=_[l.rowIndex])==null||k.focus())}function u(d){return d.id?d.id===l.id:d.index===l.index}function m(){l.id="",l.index=-1,l.rowIndex=-1}function h(){l.rowIndex=-1}return{elementFocus:l,isItemFocused:u,resetStateFocus:m,focusListItem:i,focusOnPreviousItem:o,focusOnNextItem:r,focusOnFirstItem:a,focusOnLastItem:s,focusInsideRow:c}}const Mi={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Fi=[t.createElementVNode("path",{fill:"currentColor",d:"M5.293 5.293a1 1 0 0 1 1.414 0L12 10.586l5.293-5.293a1 1 0 1 1 1.414 1.414L13.414 12l5.293 5.293a1 1 0 0 1-1.414 1.414L12 13.414l-5.293 5.293a1 1 0 0 1-1.414-1.414L10.586 12L5.293 6.707a1 1 0 0 1 0-1.414z"},null,-1)];function Pi(e,n){return t.openBlock(),t.createElementBlock("svg",Mi,Fi)}const Li={name:"mi-close",render:Pi},zi=["id","data-testid","tabindex","title","aria-describedby","aria-disabled","onClick"],Di=["id"],qi={class:"label"},Fe=t.defineComponent({__name:"RemovableChip",props:{id:null,label:null,disabled:null,variant:{default:"outline"},size:{default:"small"}},emits:["close"],setup(e,{emit:n}){const l=e,{navigate:i}=ye({Enter:o,Space:o,Delete:o,Backspace:o,NumpadEnter:o});function o(){!l.disabled&&n("close")}return(r,a)=>(t.openBlock(),t.createElementBlock("div",{id:`removable-chip-${e.id}`,"data-testid":`removable-chip-${e.id}`,class:t.normalizeClass(["sol-removable-chip",{"-disabled":e.disabled,[`-${e.size}`]:!0,[`-${e.variant}`]:!0}]),tabindex:e.disabled?-1:0,title:e.label,"aria-describedby":`removable-chip-description-${e.id}`,"aria-disabled":e.disabled,onClick:t.withModifiers(o,["stop"]),onKeyup:a[0]||(a[0]=t.withModifiers((...s)=>t.unref(i)&&t.unref(i)(...s),["self"]))},[t.createElementVNode("span",{id:`removable-chip-description-${e.id}`,"z-index":"-1",class:"description"}," Press Delete or Backspace to remove ",8,Di),t.createElementVNode("span",qi,[t.renderSlot(r.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.label),1)])]),t.createVNode(t.unref(Li),{class:"icon","aria-label":"close",role:"img"})],42,zi))}}),Oa="",ji={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},_i=[t.createElementVNode("path",{fill:"currentColor",d:"m19.6 21l-6.3-6.3q-.75.6-1.725.95Q10.6 16 9.5 16q-2.725 0-4.612-1.887Q3 12.225 3 9.5q0-2.725 1.888-4.613Q6.775 3 9.5 3t4.613 1.887Q16 6.775 16 9.5q0 1.1-.35 2.075q-.35.975-.95 1.725l6.3 6.3ZM9.5 14q1.875 0 3.188-1.312Q14 11.375 14 9.5q0-1.875-1.312-3.188Q11.375 5 9.5 5Q7.625 5 6.312 6.312Q5 7.625 5 9.5q0 1.875 1.312 3.188Q7.625 14 9.5 14Z"},null,-1)];function Ri(e,n){return t.openBlock(),t.createElementBlock("svg",ji,_i)}const Qi={name:"material-symbols-search",render:Ri},Hi=["id","data-testid","aria-multiselectable","aria-labelledby"],Ui=["id","data-testid","selected","aria-selected","onClick","onKeyup"],Zi={key:1},Gi={key:0,class:"no-data"},Yi=t.createElementVNode("p",null,"Sem resultado para essa busca",-1),Wi=t.defineComponent({__name:"ListOption",props:{id:null,name:null,options:null,multiple:{type:Boolean},isSelected:null},emits:["select"],setup(e,{expose:n,emit:l}){const i=t.ref("");return n({list:i}),(o,r)=>(t.openBlock(),t.createElementBlock("ul",{id:`select-list-${e.id}`,ref_key:"list",ref:i,"data-testid":`select-list-${e.id}`,role:"listbox",tabindex:"-1","aria-multiselectable":e.multiple,"aria-labelledby":`select-label-${e.id}`,class:"select-list-core"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,(a,s)=>(t.openBlock(),t.createElementBlock("li",{id:`option-${e.id}-${a.value}`,key:s,"data-testid":`option-${e.id}-${a.value}`,role:"option",tabindex:"-1",class:"select-option-item",style:t.normalizeStyle(`--item: ${s+1}`),selected:e.isSelected(a),"aria-selected":e.isSelected(a),onClick:c=>l("select",a),onKeyup:[t.withKeys(c=>l("select",a),["enter"]),t.withKeys(c=>l("select",a),["space"])]},[e.multiple?(t.openBlock(),t.createBlock(he,{key:0,id:`option-${e.id}-${a.value}`,class:"pointer-events-none",value:a.value,checked:e.isSelected(a),label:a.name,name:e.name},null,8,["id","value","checked","label","name"])):(t.openBlock(),t.createElementBlock("span",Zi,t.toDisplayString(a.name),1))],44,Ui))),128)),e.options.length?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("li",Gi,[t.renderSlot(o.$slots,"no-data",{},()=>[t.createVNode(t.unref(Qi),{class:"icon"}),Yi])]))],8,Hi))}}),Ia="",Ki={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Ji=[t.createElementVNode("path",{fill:"currentColor",d:"M10 4a6 6 0 1 0 0 12a6 6 0 0 0 0-12zm-8 6a8 8 0 1 1 14.32 4.906l5.387 5.387a1 1 0 0 1-1.414 1.414l-5.387-5.387A8 8 0 0 1 2 10z"},null,-1)];function Xi(e,n){return t.openBlock(),t.createElementBlock("svg",Ki,Ji)}const eo={name:"mi-search",render:Xi},to={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},no=[t.createElementVNode("path",{fill:"currentColor",d:"m17 10l-5 6l-5-6h10z"},null,-1)];function lo(e,n){return t.openBlock(),t.createElementBlock("svg",to,no)}const io={name:"mi-caret-down",render:lo},oo=["data-testid"],ro=["id","data-testid","data-required"],ao=["id","data-testid","disabled","aria-expanded","aria-labelledby","aria-label","aria-invalid","aria-describedby","aria-controls","onClick"],so={key:0,class:"container-tags"},co=["data-testid"],uo=["id","data-testid"],fo={class:"select-options-container"},mo=t.createElementVNode("hr",{class:"text-neutral-high-medium"},null,-1),Ke=t.defineComponent({__name:"Select",props:{id:null,label:null,ariaLabel:null,name:null,selected:null,options:{default:()=>[]},required:null,disabled:null,loading:{default:!1},searchable:{default:!1},closeOnSelect:{default:!0},fetchOnSearch:{default:!1},multiple:null,helperText:null,size:{default:"medium"},placeholder:{default:"Selecione"},searchPlaceholder:{default:"Buscar por"},error:{default:null},useField:null,rules:null,opts:null},emits:["closeDropdown","search","update:selected"],setup(e,{emit:n}){const l=e,i=t.ref(),o=t.ref(!1),r=t.ref(""),a=t.computed(()=>{var v;return l.fetchOnSearch?l.options:(v=l.options)==null?void 0:v.filter(O=>new RegExp(r.value,"gi").test(O.name))});mn(i,()=>{o.value&&d()});const s=t.computed(()=>{var v;return(v=l.name)!=null?v:""}),{value:c,errorMessage:u}=Ie(s.value,{component:"select",error:t.computed(()=>l.error),selected:l==null?void 0:l.selected,rules:l.rules,opts:l.opts,useFieldParent:l.useField});function m(){l.disabled||(o.value?d():h())}function h(){o.value=!0}function d(){A(),n("closeDropdown")}function b(v){if(Array.isArray(c.value)){const O=c.value.findIndex(({value:w})=>w===v.value);return O===-1?[...c.value,v]:c.value.filter((w,C)=>C!==O)}return[v]}function $(v){const O=l.multiple?b(v):v;n("update:selected",O),c.value=O,l.closeOnSelect&&!l.multiple&&d()}function S(v){var O;return Array.isArray(c.value)?c.value.some(({value:w})=>w===v.value):v.value===((O=c==null?void 0:c.value)==null?void 0:O.value)}const D=t.ref(),_=t.ref();function N(){var v;l.searchable&&(z(),(v=D.value)==null||v.focus())}const{elementFocus:p,focusOnFirstItem:k,focusOnLastItem:E,focusOnNextItem:I,focusOnPreviousItem:M,resetStateFocus:z}=We({target:_}),{navigate:R}=ye({Home:k,End:()=>E(l.options.length),ArrowUp:M,ArrowDown:()=>{!o.value&&h(),I(l.options.length)},Escape:d},{fallback:N,exclude:["Enter","NumpadEnter","Space"]});function A(){o.value=!1,r.value="",z()}function j(v){return O=>{v==="search"?D.value=O==null?void 0:O.input:_.value=O==null?void 0:O.list}}function H(){var O;const v=c.value;return(O=v==null?void 0:v.name)!=null?O:l.placeholder}const K=t.computed(()=>!!(u!=null&&u.value)||!!l.helperText),le=t.computed(()=>K.value?`input-text-describe-${l.id}`:void 0),Y=t.computed(()=>{var v;return(v=u==null?void 0:u.value)!=null&&v.length?{text:u==null?void 0:u.value,type:"error"}:{text:l.helperText,type:"helper"}});return(v,O)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"el",ref:i,class:t.normalizeClass(["sol-select-core",`-${e.size}`]),"data-testid":`select-${e.id}`,onKeydownPassive:O[3]||(O[3]=(...w)=>t.unref(R)&&t.unref(R)(...w))},[t.renderSlot(v.$slots,"label",{id:`select-label-${e.id}`,for:`select-toggle-${e.id}`},()=>[e.label?(t.openBlock(),t.createElementBlock("label",{key:0,id:`select-label-${e.id}`,"data-testid":`select-label-${e.id}`,"data-required":e.required,class:t.normalizeClass(["label",{"-disabled":e.disabled}])},t.toDisplayString(e.label),11,ro)):t.createCommentVNode("",!0)]),t.createElementVNode("button",{id:`select-toggle-${e.id}`,"data-testid":`select-toggle-${e.id}`,type:"button",disabled:e.disabled,class:"select-button-toggle","aria-haspopup":"listbox","aria-expanded":o.value,"aria-labelledby":`select-label-${e.id}`,"aria-label":e.ariaLabel,"aria-invalid":!!t.unref(u),"aria-describedby":t.unref(le),"aria-controls":`select-list-${e.id}`,onClick:t.withModifiers(m,["stop"])},[t.renderSlot(v.$slots,"toggle-dropdown",{toggle:{open:h,close:d,toggleDropdown:m},isOpen:o.value,select:$,selected:e.selected},()=>{var w;return[e.multiple&&Array.isArray(t.unref(c))&&((w=t.unref(c))==null?void 0:w.length)?(t.openBlock(),t.createElementBlock("div",so,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(c),(C,V)=>(t.openBlock(),t.createBlock(Fe,{id:`select-value-selected-${e.id}-${C.value}`,key:V,variant:"fill",size:"small",label:C.name,onClick:t.withModifiers(T=>$(C),["stop"]),onClose:T=>$(C)},null,8,["id","label","onClick","onClose"]))),128))])):(t.openBlock(),t.createElementBlock("span",{key:1,"data-testid":`select-value-selected-${e.id}`,class:"",tabindex:"-1"},t.toDisplayString(H()),9,co)),t.createVNode(t.unref(io),{"aria-hidden":"true",tabindex:"-1",class:t.normalizeClass(["icon",{"-open":o.value}])},null,8,["class"])]})],8,ao),t.unref(K)?t.withDirectives((t.openBlock(),t.createElementBlock("span",{key:0,id:`select-describe-${e.id}`,"data-testid":`select-describe-${e.id}`,class:t.normalizeClass(["message",`-${t.unref(Y).type}`])},t.toDisplayString(t.unref(Y).text),11,uo)),[[t.vShow,!o.value]]):t.createCommentVNode("",!0),t.createVNode(t.Transition,{mode:"out-in",name:"dropdown"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",fo,[t.renderSlot(v.$slots,"search",{},()=>[e.searchable?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["search-container",{"-loading":e.loading}])},[t.createVNode(Dt,{id:`select-search-${e.id}`,ref:j("search"),modelValue:r.value,"onUpdate:modelValue":O[0]||(O[0]=w=>r.value=w),role:"combobox",class:"search",size:"small","aria-autocomplete":"list",placeholder:e.searchPlaceholder,"aria-expanded":o.value,"aria-haspopup":"listbox","aria-owns":`select-list-${e.id}`,"aria-controls":`select-list-${e.id}`,"aria-activedescendant":t.unref(p).id,"aria-labelledby":`select-label-${e.id}`,onClick:O[1]||(O[1]=t.withModifiers(()=>{},["stop"])),onInput:O[2]||(O[2]=w=>{var C;return n("search",(C=w.target)==null?void 0:C.value)})},null,8,["id","modelValue","placeholder","aria-expanded","aria-owns","aria-controls","aria-activedescendant","aria-labelledby"]),t.createVNode(t.unref(eo),{"aria-hidden":"true",class:"icon"})],2)):t.createCommentVNode("",!0),mo,t.createVNode(Wi,{id:e.id,ref:j("list"),options:t.unref(a),name:t.unref(s),multiple:e.multiple,"is-selected":S,onSelect:$},{"no-data":t.withCtx(()=>[t.renderSlot(v.$slots,"no-data")]),_:3},8,["id","options","name","multiple"])])],512),[[t.vShow,o.value]])]),_:3})],42,oo))}}),Aa="";Ke.install=e=>{e.component("SolSelect",Ke)};const ho=["id","data-testid","aria-disabled","tabindex","title","aria-checked","aria-describedby","onClick"],yo=["id"],go={class:"label"},Je=t.defineComponent({__name:"SelectableChip",props:{id:null,label:null,selected:null,value:null,disabled:null,size:{default:"small"}},emits:["update:selected","change"],setup(e,{emit:n}){const l=e,i={chip:`selectable-chip-${l.id}`,describe:`selectable-chip-description-${l.id}`},{navigate:o}=ye({Enter:r,Space:r,NumpadEnter:r});function r(){l.disabled||(n("change",l.value),n("update:selected",!l.selected))}return(a,s)=>(t.openBlock(),t.createElementBlock("div",{id:i.chip,"data-testid":i.chip,class:t.normalizeClass(["sol-selectable-chip",[`-${e.size}`,{"-disabled":e.disabled,"-selected":e.selected}]]),"aria-disabled":e.disabled,tabindex:e.disabled?-1:0,title:e.label,role:"checkbox","aria-checked":e.selected,"aria-describedby":i.describe,onClick:t.withModifiers(r,["stop"]),onKeyupPassive:s[0]||(s[0]=t.withModifiers((...c)=>t.unref(o)&&t.unref(o)(...c),["self"]))},[e.selected?(t.openBlock(),t.createBlock(t.unref(cn),{key:0,class:"icon","aria-label":"selected",role:"img"})):t.createCommentVNode("",!0),t.createElementVNode("span",{id:i.describe,"z-index":"-1",class:"description"}," Press Enter or Space to "+t.toDisplayString(e.selected?"unselect":"select"),9,yo),t.createElementVNode("span",go,[t.renderSlot(a.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.label),1)])])],42,ho))}}),Ma="";Je.install=e=>{e.component("SolSelectableChip",Je)},Fe.install=e=>{e.component("SolRemovableChip",Fe)};const bo=["id","data-testid","title"],Xe=t.defineComponent({__name:"Tag",props:{id:null,text:{default:"default"},variant:{default:"fill"},size:{default:"small"},type:{default:"neutral"}},setup(e){return(n,l)=>(t.openBlock(),t.createElementBlock("div",{id:`tag-${e.id}`,"data-testid":`tag-${e.id}`,class:t.normalizeClass(["sol-tag-core",`-${e.size} -${e.variant} -${e.type}`]),title:e.text},[t.renderSlot(n.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.text),1)])],10,bo))}}),Fa="";Xe.install=e=>{e.component("SolTag",Xe)};const ko={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},po=[t.createElementVNode("path",{fill:"currentColor",d:"m10.6 16.6l7.05-7.05l-1.4-1.4l-5.65 5.65l-2.85-2.85l-1.4 1.4ZM12 22q-2.075 0-3.9-.788q-1.825-.787-3.175-2.137q-1.35-1.35-2.137-3.175Q2 14.075 2 12t.788-3.9q.787-1.825 2.137-3.175q1.35-1.35 3.175-2.138Q9.925 2 12 2t3.9.787q1.825.788 3.175 2.138q1.35 1.35 2.137 3.175Q22 9.925 22 12t-.788 3.9q-.787 1.825-2.137 3.175q-1.35 1.35-3.175 2.137Q14.075 22 12 22Zm0-2q3.35 0 5.675-2.325Q20 15.35 20 12q0-3.35-2.325-5.675Q15.35 4 12 4Q8.65 4 6.325 6.325Q4 8.65 4 12q0 3.35 2.325 5.675Q8.65 20 12 20Zm0-8Z"},null,-1)];function $o(e,n){return t.openBlock(),t.createElementBlock("svg",ko,po)}const wo={name:"material-symbols-check-circle-outline",render:$o},So={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Co=[t.createElementVNode("path",{fill:"currentColor",d:"M1 21L12 2l11 19Zm3.45-2h15.1L12 6ZM12 18q.425 0 .713-.288Q13 17.425 13 17t-.287-.712Q12.425 16 12 16t-.712.288Q11 16.575 11 17t.288.712Q11.575 18 12 18Zm-1-3h2v-5h-2Zm1-2.5Z"},null,-1)];function xo(e,n){return t.openBlock(),t.createElementBlock("svg",So,Co)}const Eo={name:"material-symbols-warning-outline",render:xo},Bo={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},vo=[t.createElementVNode("path",{fill:"currentColor",d:"m8.4 17l3.6-3.6l3.6 3.6l1.4-1.4l-3.6-3.6L17 8.4L15.6 7L12 10.6L8.4 7L7 8.4l3.6 3.6L7 15.6Zm3.6 5q-2.075 0-3.9-.788q-1.825-.787-3.175-2.137q-1.35-1.35-2.137-3.175Q2 14.075 2 12t.788-3.9q.787-1.825 2.137-3.175q1.35-1.35 3.175-2.138Q9.925 2 12 2t3.9.787q1.825.788 3.175 2.138q1.35 1.35 2.137 3.175Q22 9.925 22 12t-.788 3.9q-.787 1.825-2.137 3.175q-1.35 1.35-3.175 2.137Q14.075 22 12 22Zm0-2q3.35 0 5.675-2.325Q20 15.35 20 12q0-3.35-2.325-5.675Q15.35 4 12 4Q8.65 4 6.325 6.325Q4 8.65 4 12q0 3.35 2.325 5.675Q8.65 20 12 20Zm0-8Z"},null,-1)];function Oo(e,n){return t.openBlock(),t.createElementBlock("svg",Bo,vo)}const Vo={name:"material-symbols-cancel-outline",render:Oo},Io={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},No=[t.createElementVNode("path",{fill:"currentColor",d:"M11 17h2v-6h-2Zm1-8q.425 0 .713-.288Q13 8.425 13 8t-.287-.713Q12.425 7 12 7t-.712.287Q11 7.575 11 8t.288.712Q11.575 9 12 9Zm0 13q-2.075 0-3.9-.788q-1.825-.787-3.175-2.137q-1.35-1.35-2.137-3.175Q2 14.075 2 12t.788-3.9q.787-1.825 2.137-3.175q1.35-1.35 3.175-2.138Q9.925 2 12 2t3.9.787q1.825.788 3.175 2.138q1.35 1.35 2.137 3.175Q22 9.925 22 12t-.788 3.9q-.787 1.825-2.137 3.175q-1.35 1.35-3.175 2.137Q14.075 22 12 22Zm0-2q3.35 0 5.675-2.325Q20 15.35 20 12q0-3.35-2.325-5.675Q15.35 4 12 4Q8.65 4 6.325 6.325Q4 8.65 4 12q0 3.35 2.325 5.675Q8.65 20 12 20Zm0-8Z"},null,-1)];function To(e,n){return t.openBlock(),t.createElementBlock("svg",Io,No)}const Ao={name:"material-symbols-info-outline",render:To},Mo=["id","data-testid"],Fo={class:"container-content"},Po={class:"content"},Lo={key:0,class:"title"},et=t.defineComponent({__name:"Alert",props:{id:null,title:{default:"title"},text:{default:"text"},feedback:{default:"success"},action:null},emits:["click"],setup(e,{emit:n}){return(l,i)=>(t.openBlock(),t.createElementBlock("div",{id:`alert-${e.id}`,"data-testid":`alert-${e.id}`,class:t.normalizeClass(["sol-alert-core",`-${e.feedback}`]),"aria-live":"assertive",role:"alert"},[t.createElementVNode("div",Fo,[e.feedback==="success"?(t.openBlock(),t.createBlock(t.unref(wo),{key:0,class:"icon","aria-hidden":"true"})):t.createCommentVNode("",!0),e.feedback==="warning"?(t.openBlock(),t.createBlock(t.unref(Eo),{key:1,class:"icon","aria-hidden":"true"})):t.createCommentVNode("",!0),e.feedback==="error"?(t.openBlock(),t.createBlock(t.unref(Vo),{key:2,class:"icon","aria-hidden":"true"})):t.createCommentVNode("",!0),e.feedback==="informative"?(t.openBlock(),t.createBlock(t.unref(Ao),{key:3,class:"icon","aria-hidden":"true"})):t.createCommentVNode("",!0),t.createElementVNode("div",Po,[e.title?(t.openBlock(),t.createElementBlock("strong",Lo,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.renderSlot(l.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.text),1)])])]),e.action?(t.openBlock(),t.createBlock(ee,{key:0,id:`alert-action-${e.id}`,variant:"secondary",size:"small",onClick:i[0]||(i[0]=o=>n("click"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.action),1)]),_:1},8,["id"])):t.createCommentVNode("",!0)],10,Mo))}}),qa="";et.install=e=>{e.component("SolAlert",et)};const zo={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Do=[t.createElementVNode("path",{fill:"currentColor",d:"M12 14.975q-.2 0-.387-.075q-.188-.075-.313-.2l-4.6-4.6q-.275-.275-.275-.7q0-.425.275-.7q.275-.275.7-.275q.425 0 .7.275l3.9 3.9l3.9-3.9q.275-.275.7-.275q.425 0 .7.275q.275.275.275.7q0 .425-.275.7l-4.6 4.6q-.15.15-.325.212q-.175.063-.375.063Z"},null,-1)];function qo(e,n){return t.openBlock(),t.createElementBlock("svg",zo,Do)}const bn={name:"material-symbols-keyboard-arrow-down-rounded",render:qo},jo=["id","data-testid","aria-disabled"],_o=["data-testid","tabindex"],Ro={class:"container-title"},Qo={class:"icon"},Ho=["data-testid"],tt=t.defineComponent({__name:"Accordion",props:{id:null,title:{default:"Title"},onColor:{type:Boolean},disabled:{type:Boolean}},setup(e){return(n,l)=>(t.openBlock(),t.createElementBlock("details",{id:`accordion-${e.id}`,"data-testid":`accordion-${e.id}`,class:t.normalizeClass(["sol-accordion-core",{"-on-color":e.onColor,"-disabled":e.disabled}]),"aria-disabled":e.disabled},[t.createElementVNode("summary",{"data-testid":`accordion-title-${e.id}`,class:"summary",tabindex:e.disabled?-1:0},[t.createElementVNode("div",Ro,[t.createElementVNode("span",Qo,[t.renderSlot(n.$slots,"icon")]),t.renderSlot(n.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(e.title),1)])]),t.createVNode(t.unref(bn),{class:"icon","aria-hidden":"true"})],8,_o),t.createElementVNode("div",{"data-testid":`accordion-content-${e.id}`,class:"accordion-content"},[t.renderSlot(n.$slots,"default")],8,Ho)],10,jo))}}),_a="";tt.install=e=>{e.component("SolAccordion",tt)};const Uo=["id","data-testid"],Zo=["id","aria-expanded"],Go=["id","data-testid","aria-labelledby"],Se=t.defineComponent({__name:"Menu",props:{id:null,label:{default:"Teste"},position:{default:"bottom"}},setup(e){const n=t.ref();mn(n,()=>{h()});const l=t.ref(!1),i=t.ref(),o=t.computed(()=>i.value?i.value.childElementCount:0),{resetStateFocus:r,focusOnPreviousItem:a,focusOnNextItem:s,focusOnFirstItem:c,focusOnLastItem:u}=We({target:i,query:'[role="menuitem"]'}),{navigate:m}=ye({Home:c,End:()=>u(o.value),ArrowUp:a,ArrowDown:()=>{!l.value&&d(),s(o.value)},Escape:h});function h(){l.value=!1,r()}function d(){l.value=!0}function b(){l.value?h():d()}return($,S)=>(t.openBlock(),t.createElementBlock("div",{id:`menu-${e.id}`,ref_key:"el",ref:n,"data-testid":`menu-${e.id}`,class:t.normalizeClass([`-${e.position}`,"sol-menu-core"]),onKeyupPassive:S[0]||(S[0]=(...D)=>t.unref(m)&&t.unref(m)(...D))},[t.renderSlot($.$slots,"trigger",{id:`menu-button-${e.id}`,toggle:b,isOpen:l.value,arias:{role:"menuitem",class:"toggle-menu",ariaHaspopup:!0,ariaExpanded:l.value}},()=>[t.createElementVNode("button",{id:`menu-button-${e.id}`,type:"button",role:"menuitem",class:"toggle-menu","aria-haspopup":"true","aria-expanded":l.value,onClick:b},[t.renderSlot($.$slots,"label",{isOpen:l.value},()=>[t.createTextVNode(t.toDisplayString(e.label),1)])],8,Zo)]),t.withDirectives(t.createElementVNode("menu",{id:`menu-container-${e.id}`,ref_key:"menu",ref:i,"data-testid":`menu-container-${e.id}`,role:"menu","aria-labelledby":`menu-button-${e.id}`,class:t.normalizeClass(["menu",{"-open":l.value}])},[t.renderSlot($.$slots,"default",{close:h})],10,Go),[[t.vShow,l.value]])],42,Uo))}}),Ra="",Yo=["itemprop"],Wo=t.defineComponent({__name:"TextValue",props:{itemProp:null,property:null,value:null,isHighlightValue:{type:Boolean},align:{default:"left"},hide:{type:Boolean}},setup(e){return(n,l)=>(t.openBlock(),t.createElementBlock("p",{class:t.normalizeClass(["text-property-value",`-${e.align}`])},[t.createElementVNode("span",{class:t.normalizeClass(["property",{"-hide":e.hide}])},[t.renderSlot(n.$slots,"property",{},()=>[t.createTextVNode(t.toDisplayString(e.property),1)])],2),t.createElementVNode("span",{itemprop:e.itemProp,class:t.normalizeClass(["value",{"-highlight":e.isHighlightValue}])},[t.renderSlot(n.$slots,"value",{},()=>[t.createTextVNode(t.toDisplayString(e.value),1)])],10,Yo)],2))}}),Qa="",Ko=["id","data-testid"],Jo={key:0,"data-interactive":"",class:"selectable"},Xo={key:1,class:"column-item -image"},er=["data-testid"],tr={key:2,class:"menu-action","data-interactive":""},nr=t.defineComponent({__name:"ListItem",props:{id:null,itemIndex:null,headers:null,data:null,hasMenu:null,hasImage:null,renderHeader:null,isHighlight:null,isSelected:null,fallbackValue:null,setFixedColumnSize:null,sortPositions:null},setup(e){const n=e,l=t.useSlots(),i=t.computed(()=>!!(l!=null&&l.selectable));function o(c){return c!=null?c:n.fallbackValue}function r(c){return i.value&&c===0}function a(c){return n.hasImage&&c===0}function s(c,u){return n.hasMenu&&c===0&&u===0}return(c,u)=>(t.openBlock(),t.createElementBlock("li",{id:`listitem-${e.id}-${e.itemIndex}`,"data-testid":`listitem-${e.id}-${e.itemIndex}`,class:t.normalizeClass(["list-item",{"-selected":e.isSelected}]),tabindex:"-1"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.sortPositions,(m,h)=>(t.openBlock(),t.createElementBlock("div",{key:h,class:"list-item-row"},[r(h)?(t.openBlock(),t.createElementBlock("div",Jo,[t.renderSlot(c.$slots,"selectable",{data:e.data,index:e.itemIndex,label:`${e.data[m[0]]}`})])):t.createCommentVNode("",!0),a(h)?(t.openBlock(),t.createElementBlock("div",Xo,[t.renderSlot(c.$slots,"image",{data:e.data})])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m,(d,b)=>(t.openBlock(),t.createElementBlock("div",{key:b,style:t.normalizeStyle(`${e.setFixedColumnSize(d)}`),class:"column-item","data-testid":`listitem-column-${e.id}-${e.itemIndex}-${d}`},[t.renderSlot(c.$slots,`column:${d}`,{data:{key:d,value:e.data[d]},index:e.itemIndex,columnIndex:b,renderHeader:e.renderHeader,headers:e.headers},()=>{var $,S,D,_;return[t.createVNode(Wo,{"data-testid":`listitem-${e.id}-${e.itemIndex}-${d}`,"item-prop":d,hide:(S=($=e.headers)==null?void 0:$[d])==null?void 0:S.hide,align:(_=(D=e.headers)==null?void 0:D[d])==null?void 0:_.align,"is-highlight-value":e.isHighlight({key:d})},{property:t.withCtx(()=>[t.renderSlot(c.$slots,`header:${d}`,{data:{key:d,value:e.data[d]},index:h,columnIndex:b,renderHeader:e.renderHeader,headers:e.headers},()=>[t.createTextVNode(t.toDisplayString(e.renderHeader(d)),1)])]),value:t.withCtx(()=>[t.renderSlot(c.$slots,`value:${d}`,{data:{key:d,value:e.data[d]},index:h,columnIndex:b,isHighlight:e.isHighlight},()=>[t.createTextVNode(t.toDisplayString(o(e.data[d])),1)])]),_:2},1032,["data-testid","item-prop","hide","align","is-highlight-value"])]})],12,er))),128)),s(h,0)?(t.openBlock(),t.createElementBlock("div",tr,[t.renderSlot(c.$slots,"action-button",{arias:{testid:`list-row-action-${e.id}-${e.itemIndex}`,data:e.data,index:e.itemIndex,ariaLabel:"Open menu"}})])):t.createCommentVNode("",!0)]))),128))],10,Ko))}}),Ha="",lr={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},ir=[t.createElementVNode("path",{fill:"currentColor",d:"M12 20q-.825 0-1.412-.587Q10 18.825 10 18q0-.825.588-1.413Q11.175 16 12 16t1.413.587Q14 17.175 14 18q0 .825-.587 1.413Q12.825 20 12 20Zm0-6q-.825 0-1.412-.588Q10 12.825 10 12t.588-1.413Q11.175 10 12 10t1.413.587Q14 11.175 14 12q0 .825-.587 1.412Q12.825 14 12 14Zm0-6q-.825 0-1.412-.588Q10 6.825 10 6t.588-1.412Q11.175 4 12 4t1.413.588Q14 5.175 14 6t-.587 1.412Q12.825 8 12 8Z"},null,-1)];function or(e,n){return t.openBlock(),t.createElementBlock("svg",lr,ir)}const rr={name:"material-symbols-more-vert",render:or},ar=["id","data-testid","aria-label"],nt=t.defineComponent({__name:"List",props:{id:null,data:null,headers:null,selected:null,ariaLabel:{default:"List of data"},selectMode:null,dataIdentifier:{default:()=>({key:"id"})},sortPositions:null,fallbackValue:{default:"-"}},emits:["listitem:click","listitem:selected","update:selected"],setup(e,{expose:n,emit:l}){var O;const i=e,o=t.useSlots(),r=t.computed(()=>!!(o!=null&&o.menu)),a=t.computed(()=>!!(o!=null&&o.image)),s=vi("(min-width: 1024px)"),c=t.computed(()=>{var w,C,V;return(C=(w=i.sortPositions)==null?void 0:w.mobile)!=null&&C.length?(V=i.sortPositions)==null?void 0:V.mobile:h()}),u=t.computed(()=>{var w;return(w=i.sortPositions)!=null&&w.desktop.length?i.sortPositions.desktop:Object.keys(i.data[0])}),m=t.computed(()=>s.value?[u.value]:c.value);function h(){return Object.keys(i.data[0]).reduce((C,V,T)=>{if(T===0)return C=[[V]];if(T===1)return C=[...C,[V]];const L=C==null?void 0:C.length,y=C==null?void 0:C[L-1];return Array.isArray(y)&&(y==null?void 0:y.length)<2?(C[L-1]=[...y,V],C):C=[...C,[V]]},[])}function d(w){var C,V;return(V=i.headers&&((C=i.headers[w])==null?void 0:C.text))!=null?V:w}function b(w){var C,V,T,L,y,B,Q,ce,te;if((C=i.headers)!=null&&C[w]){if(((T=(V=i.headers)==null?void 0:V[w])==null?void 0:T.width)&&s.value)return`--basis-width: ${(y=(L=i.headers)==null?void 0:L[w])==null?void 0:y.width}; --shrink: 0;`;if(((Q=(B=i.headers)==null?void 0:B[w])==null?void 0:Q.mobileWidth)&&!s.value)return`--basis-width: ${(te=(ce=i.headers)==null?void 0:ce[w])==null?void 0:te.mobileWidth}; --shrink: 0;`}}function $({key:w,value:C}){var V,T;return C?!0:w?!!((T=(V=i.headers)==null?void 0:V[w])!=null&&T.highlight):!1}const S=t.ref(),D=["[data-interactive] input","[data-interactive-element]","[data-interactive] button"],{elementFocus:_,focusInsideRow:N,focusOnFirstItem:p,focusOnLastItem:k,focusOnNextItem:E,focusOnPreviousItem:I,resetStateFocus:M}=We({target:S}),{navigate:z}=ye({Home:p,End:()=>k(i.data.length),ArrowUp:()=>!R()&&I(),ArrowDown:()=>!R()&&E(i.data.length),ArrowLeft:()=>_.id&&N({to:"LEFT",query:D}),ArrowRight:()=>_.id&&N({to:"RIGHT",query:D})},{fallback:M,exclude:["Enter","NumpadEnter","Space"]});function R(){var w,C;if(document.activeElement&&((w=document.activeElement)==null?void 0:w.role)){const V=document.activeElement.role,T=(C=document.activeElement)==null?void 0:C.parentElement;return V==="menuitem"?!0:!!(()=>V==="none"&&(T==null?void 0:T.role)&&["menuitem","menu"].includes(T.role))()}return!1}const A=t.ref((O=i==null?void 0:i.selected)!=null?O:{});function j(w){if(A.value){const C=i.dataIdentifier.key,V=w[C];return i.selectMode&&i.selectMode==="checkbox"&&Array.isArray(A.value)?A.value.findIndex(L=>L[C]===V)>=0:A.value[C]===V}return!1}function H(w){A.value=w,l("listitem:selected",w),l("update:selected",A.value)}function K(w){const C=i.dataIdentifier.key,V=w[C],T=Array.isArray(A.value)?A.value:[],L=j(w)?T==null?void 0:T.filter(y=>y[C]!==V):le(w);A.value=L,l("listitem:selected",w),l("update:selected",A.value)}function le(w){var C;if(Array.isArray(A.value)){const V=i.dataIdentifier.key,T=A.value.findIndex(L=>L[V]===w[V]);return T===-1?[...A.value,w]:(C=A.value)==null?void 0:C.filter((L,y)=>y!==T)}return[w]}function Y(){const w=Object.keys(i.data[0]).includes(i.dataIdentifier.key);if(i.selectMode==="checkbox"&&w){A.value=i.data,l("update:selected",A.value);return}console.warn('The Prop `dataIdentifier.key` must be a valid key; and The Prop `selectMode` must be "checkbox"'),console.warn(`Your Prop [dataIdentifier.key] is ${i.dataIdentifier.key} and [selectMode] is ${i.selectMode}`)}function v(){A.value=i.selectMode==="checkbox"&&Array.isArray(A.value)?[]:{},l("update:selected",A.value)}return n({unselectAll:v,selectAll:Y}),(w,C)=>(t.openBlock(),t.createElementBlock("ul",{id:`list-${e.id}`,ref_key:"list",ref:S,"data-testid":`list-${e.id}`,class:"sol-list-core","aria-label":e.ariaLabel,tabindex:"0",itemscope:"",onKeyupPassive:C[0]||(C[0]=(...V)=>t.unref(z)&&t.unref(z)(...V))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.data,(V,T)=>(t.openBlock(),t.createBlock(nr,{id:e.id,key:T,headers:e.headers,data:V,"item-index":T,"is-selected":j(V),"sort-positions":t.unref(m),"fallback-value":e.fallbackValue,"has-image":t.unref(a),"has-menu":t.unref(r),"render-header":d,"is-highlight":$,"set-fixed-column-size":b,onClick:t.withModifiers(L=>l("listitem:click",{...V,index:T}),["self"]),onKeyup:[t.withKeys(t.withModifiers(L=>l("listitem:click",{...V,index:T}),["self"]),["enter"]),t.withKeys(t.withModifiers(L=>l("listitem:click",{...V,index:T}),["self"]),["space"])]},t.createSlots({selectable:t.withCtx(({data:L,label:y})=>{var B,Q,ce,te,ne,oe;return[e.selectMode==="checkbox"?(t.openBlock(),t.createBlock(he,{key:0,id:`listitem-${L[(B=e.dataIdentifier)==null?void 0:B.key]}`,"hide-label":!0,label:y,checked:j(V),value:L[(Q=e.dataIdentifier)==null?void 0:Q.key],name:(ce=e.dataIdentifier.inputName)!=null?ce:e.id,onChange:De=>K(L)},null,8,["id","label","checked","value","name","onChange"])):t.createCommentVNode("",!0),e.selectMode==="radio"?(t.openBlock(),t.createBlock(we,{key:1,id:`listitem-${L[(te=e.dataIdentifier)==null?void 0:te.key]}`,"hide-label":!0,label:y,checked:j(V),value:L[(ne=e.dataIdentifier)==null?void 0:ne.key],name:(oe=e.dataIdentifier.inputName)!=null?oe:e.id,onChange:De=>H(L)},null,8,["id","label","checked","value","name","onChange"])):t.createCommentVNode("",!0)]}),"action-button":t.withCtx(({arias:L})=>[t.renderSlot(w.$slots,"action-button",{arias:L},()=>[t.createVNode(Se,{id:`listitem-${e.id}-${T}`,position:"left"},{trigger:t.withCtx(({arias:y,id:B,toggle:Q})=>[t.createVNode(ee,{id:B,"aria-haspopup":y.ariaHaspopup,"aria-expanded":y.ariaExpanded,role:y.role,size:"small",variant:"tertiary","aria-label":L.ariaLabel,class:"menu-button-trigger",onClick:Q},{"icon-left":t.withCtx(()=>[t.createVNode(t.unref(rr),{class:"text-2xs","aria-hidden":"true"})]),_:2},1032,["id","aria-haspopup","aria-expanded","role","aria-label","onClick"])]),default:t.withCtx(()=>[t.renderSlot(w.$slots,"menu")]),_:2},1032,["id"])])]),_:2},[t.unref(a)?{name:"image",fn:t.withCtx(({data:L})=>[t.renderSlot(w.$slots,"image",{data:L})]),key:"0"}:void 0,t.renderList(V,(L,y)=>({name:`column:${y}`,fn:t.withCtx(B=>[t.renderSlot(w.$slots,`column:${y}`,{data:B.data,index:B.index,columnIndex:T,renderHeader:d,headers:e.headers})])})),t.renderList(V,(L,y)=>({name:`header:${y}`,fn:t.withCtx(B=>[t.renderSlot(w.$slots,`header:${y}`,{data:B.data,index:B.index,columnIndex:B.columnIndex,renderHeader:B.renderHeader,headers:B.headers})])})),t.renderList(V,(L,y)=>({name:`value:${y}`,fn:t.withCtx(B=>[t.renderSlot(w.$slots,`value:${y}`,{data:B.data,index:B.index,columnIndex:B.columnIndex,isHighlight:B.isHighlight})])}))]),1032,["id","headers","data","item-index","is-selected","sort-positions","fallback-value","has-image","has-menu","onClick","onKeyup"]))),128))],40,ar))}}),Za="";nt.install=e=>{e.component("SolList",nt)},Se.install=e=>{e.component("SolMenu",Se)};const sr=["id"],cr=["href","target"],Pe=t.defineComponent({__name:"MenuItemLink",props:{id:null,linkId:null,text:null,link:null,active:null,external:null},emits:["clicked"],setup(e,{emit:n}){return(l,i)=>{var o;return t.openBlock(),t.createElementBlock("li",{id:`menu-item-link-${e.id}`,class:"sol-menuitem-link-core",tabindex:"-1",role:"none",onClick:i[0]||(i[0]=r=>n("clicked")),onKeyup:[i[1]||(i[1]=t.withKeys(r=>n("clicked"),["enter"])),i[2]||(i[2]=t.withKeys(r=>n("clicked"),["space"]))]},[t.renderSlot(l.$slots,"default",{id:(o=e.linkId)!=null?o:e.id,active:e.active,link:e.link,text:e.text,external:e.external},()=>[t.createElementVNode("a",{role:"menuitem",class:t.normalizeClass({"-active":e.active}),href:e.link,target:e.external?"_blank":"_parent"},t.toDisplayString(e.text),11,cr)])],40,sr)}}}),Ga="";Pe.install=e=>{e.component("SolMenuItemLink",Pe)};const dr={class:"label-container"},ur={class:"label"},lt=t.defineComponent({__name:"MenuNavigationLinks",props:{id:null,label:null,linkItems:null},setup(e){return(n,l)=>(t.openBlock(),t.createBlock(Se,{id:`navigation-${e.id}`,class:"sol-menu-navigation-links-core"},{label:t.withCtx(({isOpen:i})=>[t.renderSlot(n.$slots,"label",{isOpen:i},()=>[t.createElementVNode("div",dr,[t.createElementVNode("span",ur,t.toDisplayString(e.label),1),t.createVNode(t.unref(bn),{class:t.normalizeClass(["icon",{"-opened":i}]),"aria-hidden":"true"},null,8,["class"])])])]),default:t.withCtx(({close:i})=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.linkItems,(o,r)=>{var a;return t.openBlock(),t.createBlock(Pe,{id:`${e.id}-${(a=o==null?void 0:o.id)!=null?a:o.text}`,key:r,"link-id":o.id,text:o.text,link:o.link,external:o.external,active:o.active,onClicked:i},{default:t.withCtx(()=>{var s;return[t.renderSlot(n.$slots,"default",{id:(s=o.id)!=null?s:e.id,active:o.active,link:o.link,text:o.text,external:o.external})]}),_:2},1032,["id","link-id","text","link","external","active","onClicked"])}),128))]),_:3},8,["id"]))}}),Ya="";lt.install=e=>{e.component("SolMenuNavigationLinks",lt)};const Wa="",fr=(e,n)=>{const l=e.__vccOpts||e;for(const[i,o]of n)l[i]=o;return l},mr={},hr={class:"sol-overlay-core"};function yr(e,n){return t.openBlock(),t.createElementBlock("div",hr,[t.renderSlot(e.$slots,"default")])}const gr=fr(mr,[["render",yr]]),br={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},kr=[t.createElementVNode("path",{fill:"currentColor",d:"M6.4 19L5 17.6l5.6-5.6L5 6.4L6.4 5l5.6 5.6L17.6 5L19 6.4L13.4 12l5.6 5.6l-1.4 1.4l-5.6-5.6Z"},null,-1)];function pr(e,n){return t.openBlock(),t.createElementBlock("svg",br,kr)}const $r={name:"material-symbols-close",render:pr},wr=["id","data-testid","aria-labelledby"],Sr=["id","data-testid"],Cr=["id","data-testid"],xr={class:"content"},Er={class:"footer"},Br={class:"main-action"},it=t.defineComponent({__name:"Modal",props:{id:null,size:{default:()=>({desktop:"medium",mobile:"full"})},title:{default:"Modal title"},isOpen:null,target:{default:"body"},actionPrimaryText:null,actionSecondaryText:null,actionTertiaryText:null},emits:["close","open","update:isOpen","action:primary","action:secondary","action:tertiary"],setup(e,{expose:n,emit:l}){const i=e,o={modal:`modal-${i.id}`,header:`modal-header-${i.id}`,headerTitle:`modal-header-title-${i.id}`,headerClose:`modal-header-close-${i.id}`,actionPrimary:`modal-action-primary-${i.id}`,actionSecondary:`modal-action-secondary-${i.id}`,actionTertiary:`modal-action-tertiary-${i.id}`},r={modal:`modal-${i.id}`,header:`modal-header-${i.id}`,headerTitle:`modal-header-title-${i.id}`,headerClose:`modal-header-close-${i.id}`,actionPrimary:`button-modal-action-primary-${i.id}`,actionSecondary:`button-modal-action-secondary-${i.id}`,actionTertiary:`button-modal-action-tertiary-${i.id}`},a=t.ref(),s=t.ref(i.isOpen),c=t.ref(!1),u=t.computed(()=>{var N;return(N=i.isOpen)!=null?N:s.value}),m=Vi(document.body),h=t.computed(()=>{var k,E;const N=(k=i.size.desktop)!=null?k:"medium",p=(E=i.size.mobile)!=null?E:"full";return`-desktop-${N} -mobile-${p}`}),{navigate:d}=ye({Escape:b});function b(){s.value=!1,l("close"),l("update:isOpen",!1)}function $(){s.value=!0,l("open"),l("update:isOpen",!0)}function S(){document.documentElement.style.setProperty("--viewport-100vh",`${window.innerHeight}px`)}function D(N){S(),m.value=!!N,N?setTimeout(()=>c.value=!0,90):c.value=!1}function _(N,p){N&&setTimeout(()=>{var k;return(k=p==null?void 0:p.value)==null?void 0:k.focus()},110)}return t.watch(u,N=>{D(N),_(N,a)},{immediate:!0}),n({close:b,open:$}),(N,p)=>(t.openBlock(),t.createBlock(t.Teleport,{to:e.target},[t.unref(u)?(t.openBlock(),t.createBlock(gr,{key:0},{default:t.withCtx(()=>[t.createVNode(t.Transition,{name:"modal",mode:"out-in"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",{id:o.modal,ref_key:"modal",ref:a,"data-testid":r.modal,tabindex:"-1",role:"alertdialog","aria-modal":"true",class:t.normalizeClass(["sol-modal-core",t.unref(h)]),"aria-labelledby":o.headerTitle,onKeyupPassive:p[3]||(p[3]=(...k)=>t.unref(d)&&t.unref(d)(...k))},[t.createElementVNode("header",{id:o.header,"data-testid":r.header,class:"header"},[t.createElementVNode("h2",{id:o.headerTitle,"data-testid":r.headerTitle,class:"title"},t.toDisplayString(e.title),9,Cr),t.createVNode(ee,{id:o.headerClose,size:"small",class:"flex-shrink-0",variant:"tertiary","aria-label":"Close modal",onClick:b},{"icon-left":t.withCtx(()=>[t.createVNode(t.unref($r),{"aria-hidden":"true",class:"text-2xs"})]),_:1},8,["id"])],8,Sr),t.createElementVNode("main",xr,[t.renderSlot(N.$slots,"default")]),t.createElementVNode("footer",Er,[t.renderSlot(N.$slots,"action-tertiary",{id:o.actionTertiary},()=>[e.actionTertiaryText?(t.openBlock(),t.createBlock(ee,{key:0,id:o.actionTertiary,variant:"tertiary",size:"medium",onClick:p[0]||(p[0]=k=>l("action:primary"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.actionTertiaryText),1)]),_:1},8,["id"])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Br,[t.renderSlot(N.$slots,"action-secondary",{id:o.actionSecondary},()=>[e.actionSecondaryText?(t.openBlock(),t.createBlock(ee,{key:0,id:o.actionSecondary,variant:"secondary",size:"medium",onClick:p[1]||(p[1]=k=>l("action:secondary"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.actionSecondaryText),1)]),_:1},8,["id"])):t.createCommentVNode("",!0)]),t.renderSlot(N.$slots,"action-primary",{id:o.actionPrimary},()=>[e.actionPrimaryText?(t.openBlock(),t.createBlock(ee,{key:0,id:o.actionPrimary,size:"medium",variant:"primary",onClick:p[2]||(p[2]=k=>l("action:tertiary"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.actionPrimaryText),1)]),_:1},8,["id"])):t.createCommentVNode("",!0)])])])],42,wr),[[t.vShow,c.value]])]),_:3})]),_:3})):t.createCommentVNode("",!0)],8,["to"]))}}),Ja="";it.install=e=>{e.component("SolModal",it)};const Xa="",es="",ts="",ns="",kn=12,Ce={type:"success",timeout:5e3,showIcon:!0,showCloseButton:!0,position:"top-right",hideProgressBar:!1};function vr(e,n){const l=t.reactive({id:null,intervalId:null,startTime:0,remaining:n}),i=t.ref(100);function o(){clearInterval(l.intervalId),clearTimeout(l.id),l.remaining-=Date.now()-l.startTime}function r(){l.startTime=Date.now(),clearTimeout(l.id),l.intervalId=setInterval(()=>{i.value--},n/100-5),l.id=setTimeout(e,l.remaining)}function a(){clearInterval(l.intervalId),clearTimeout(l.id),i.value=100}return t.onMounted(()=>{if(n<=0)return!1}),t.onUnmounted(()=>{a()}),{start:r,stop:o,clear:a,progress:i}}function Or(e){return{stylePosition:t.computed(()=>{const{position:l,offset:i}=e();switch(l){case"top-left":return{left:"0",top:`${i}px`};case"bottom-left":return{left:"0",bottom:`${i}px`};case"bottom-right":return{right:"0",bottom:`${i}px`};case"top-center":return{top:`${i}px`,left:"0",right:"0",marginRight:"auto",marginLeft:"auto"};case"bottom-center":return{bottom:`${i}px`,left:"0",right:"0",marginRight:"auto",marginLeft:"auto"};default:return{right:"0",top:`${i}px`}}})}}var pn=(e=>(e["top-left"]="bounce-left",e["top-right"]="bounce-right",e["top-center"]="bounce-down",e["bottom-left"]="bounce-left",e["bottom-center"]="bounce-up",e["bottom-right"]="bounce-right",e))(pn||{});const Vr={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Ir=[t.createElementVNode("path",{fill:"currentColor",d:"m10.6 16.6l7.05-7.05l-1.4-1.4l-5.65 5.65l-2.85-2.85l-1.4 1.4ZM12 22q-2.075 0-3.9-.788q-1.825-.787-3.175-2.137q-1.35-1.35-2.137-3.175Q2 14.075 2 12t.788-3.9q.787-1.825 2.137-3.175q1.35-1.35 3.175-2.138Q9.925 2 12 2t3.9.787q1.825.788 3.175 2.138q1.35 1.35 2.137 3.175Q22 9.925 22 12t-.788 3.9q-.787 1.825-2.137 3.175q-1.35 1.35-3.175 2.137Q14.075 22 12 22Z"},null,-1)];function Nr(e,n){return t.openBlock(),t.createElementBlock("svg",Vr,Ir)}const Tr={name:"material-symbols-check-circle",render:Nr},Ar={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Mr=[t.createElementVNode("path",{fill:"currentColor",d:"m8.4 17l3.6-3.6l3.6 3.6l1.4-1.4l-3.6-3.6L17 8.4L15.6 7L12 10.6L8.4 7L7 8.4l3.6 3.6L7 15.6Zm3.6 5q-2.075 0-3.9-.788q-1.825-.787-3.175-2.137q-1.35-1.35-2.137-3.175Q2 14.075 2 12t.788-3.9q.787-1.825 2.137-3.175q1.35-1.35 3.175-2.138Q9.925 2 12 2t3.9.787q1.825.788 3.175 2.138q1.35 1.35 2.137 3.175Q22 9.925 22 12t-.788 3.9q-.787 1.825-2.137 3.175q-1.35 1.35-3.175 2.137Q14.075 22 12 22Z"},null,-1)];function Fr(e,n){return t.openBlock(),t.createElementBlock("svg",Ar,Mr)}const Pr={name:"material-symbols-cancel",render:Fr},Lr={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},zr=[t.createElementVNode("path",{fill:"currentColor",d:"M12 17q.425 0 .713-.288Q13 16.425 13 16t-.287-.713Q12.425 15 12 15t-.712.287Q11 15.575 11 16t.288.712Q11.575 17 12 17Zm0 5q-2.075 0-3.9-.788q-1.825-.787-3.175-2.137q-1.35-1.35-2.137-3.175Q2 14.075 2 12t.788-3.9q.787-1.825 2.137-3.175q1.35-1.35 3.175-2.138Q9.925 2 12 2t3.9.787q1.825.788 3.175 2.138q1.35 1.35 2.137 3.175Q22 9.925 22 12t-.788 3.9q-.787 1.825-2.137 3.175q-1.35 1.35-3.175 2.137Q14.075 22 12 22Zm0-9q.425 0 .713-.288Q13 12.425 13 12V8q0-.425-.287-.713Q12.425 7 12 7t-.712.287Q11 7.575 11 8v4q0 .425.288.712q.287.288.712.288Z"},null,-1)];function Dr(e,n){return t.openBlock(),t.createElementBlock("svg",Lr,zr)}const qr={name:"material-symbols-error-circle-rounded",render:Dr},jr=["id","data-testid"],_r={class:"content-wrapper"},Rr={key:0,class:"icon-container","aria-hidden":"true"},Qr={class:"content"},Hr={key:0,class:"description"},Ur=t.defineComponent({__name:"Toast",props:{id:null,type:{default:Ce.type},visible:{type:Boolean,default:!1},title:null,description:null,actionText:null,timeout:null,hideProgressBar:{type:Boolean,default:Ce.hideProgressBar},showIcon:{type:Boolean,default:Ce.showIcon},offset:{default:0},onAction:null,onCloseHandler:null,position:{default:Ce.position}},setup(e){const n=e,{start:l,stop:i,progress:o}=vr(()=>{var m;(m=n.onCloseHandler)==null||m.call(n)},n.timeout),{stylePosition:r}=Or(()=>({offset:n.offset,position:n.position})),a=t.computed(()=>n.title&&n.description);function s(){n.timeout>0&&i()}function c(){l()}t.onMounted(()=>{l()});function u(){var m,h;(m=n.onAction)==null||m.call(n),(h=n.onCloseHandler)==null||h.call(n)}return(m,h)=>(t.openBlock(),t.createBlock(t.Transition,{name:t.unref(pn)[e.position],type:"animation"},{default:t.withCtx(()=>[e.visible?(t.openBlock(),t.createElementBlock("div",{key:0,id:`toast-${e.type}-${e.id}`,"data-testid":`toast-${e.type}-${e.position}`,role:"alert","aria-live":"assertive",style:t.normalizeStyle(t.unref(r)),class:t.normalizeClass(["sol-toast-core",[`-${e.type} -${e.position}`,{"-multiline":t.unref(a)}]]),onKeyup:h[0]||(h[0]=t.withKeys((...d)=>e.onCloseHandler&&e.onCloseHandler(...d),["esc"])),onMouseenter:s,onMouseleave:c,onFocusin:s,onFocusout:c},[t.createElementVNode("section",_r,[e.showIcon?(t.openBlock(),t.createElementBlock("div",Rr,[t.renderSlot(m.$slots,"icon-status",{type:e.type},()=>[e.type==="success"?(t.openBlock(),t.createBlock(t.unref(Tr),{key:0,class:"icon"})):t.createCommentVNode("",!0),["informative","warning"].includes(e.type)?(t.openBlock(),t.createBlock(t.unref(qr),{key:1,class:"icon"})):t.createCommentVNode("",!0),e.type==="error"?(t.openBlock(),t.createBlock(t.unref(Pr),{key:2,class:"icon"})):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0),t.createElementVNode("div",Qr,[t.createElementVNode("p",{class:t.normalizeClass(["title",{"-multiline":t.unref(a)}])},[t.renderSlot(m.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(e.title),1)])],2),e.description?(t.openBlock(),t.createElementBlock("p",Hr,[t.renderSlot(m.$slots,"description",{},()=>[t.createTextVNode(t.toDisplayString(e.description),1)])])):t.createCommentVNode("",!0)])]),t.createVNode(ee,{id:`toast-action-${e.type}-${e.position}`,class:t.normalizeClass(["action",{"-multiline":t.unref(a)}]),size:"small","on-color":e.type!=="warning",variant:"tertiary","aria-label":"close notification",onClick:u},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.actionText),1)]),_:1},8,["id","on-color","class"]),e.hideProgressBar?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:"progressbar","aria-hidden":"true",style:t.normalizeStyle({width:`${t.unref(o)}%`})},null,4))],46,jr)):t.createCommentVNode("",!0)]),_:3},8,["name"]))}}),rs="",Le={"top-left":[],"top-right":[],"top-center":[],"bottom-left":[],"bottom-right":[],"bottom-center":[]};function Zr(){$n(0)}function $n(e=2){Object.entries(Le).forEach(([n,l])=>{l.length>e&&l.map(o=>{var r;return(r=o.toastVNode.props)==null?void 0:r.id}).forEach(o=>It(o,n))})}function Gr(e){return typeof e=="string"?{description:e,actionText:"Fechar"}:{actionText:"Fechar",...e}}function Yr(e,n=Ce){const l=window.innerWidth<1024?"bottom-center":"top-right";return e?Kr({...e,position:l}):n}function Wr(){const n=ze(0),l=ze(0,"success"),i=ze(0,"error"),o=ze(0,"warning"),r=ze(0,"informative");return{createToast:n,createErrorToast:i,createSuccessToast:l,createInformativeToast:r,createWarningToast:o,clearAllToasts:Zr}}function ze(e,n){return function(l,i){const o=e++,r=Yr({...i,type:n});return $n(),Jr(o,r,Gr(l)),{close:()=>It(o,r.position)}}}function Kr(e){const n={...Ce,...e,showIcon:e.showIcon};return n.hideProgressBar=!!(n.timeout&&(n==null?void 0:n.timeout)<=0),e.hideProgressBar&&(n.hideProgressBar=e.hideProgressBar),n}function Jr(e,n,l){setTimeout(()=>{const i=ea(n,Le,kn),o=document.createElement("div");document.body.appendChild(o);const r=t.createVNode(Ur,Xr(n,e,i,It,l));t.render(r,o),Le[n.position].push({toastVNode:r,container:o}),r.component&&(r.component.props.visible=!0)},1)}function Xr(e,n,l,i,o){return{...e,...o,id:n,offset:l,visible:!1,onCloseHandler(){i(n,e.position?e.position:"top-right")}}}function ea(e,n,l){if(!e.position)throw new Error("no position");return n[e.position].reduce((i,{toastVNode:o})=>(i+=o.el.offsetHeight+l||0,i),l)}function ta(e,n,l,i){for(let o=e;o<n.length;o++){const{toastVNode:r}=n[o];if(!r.el)return;const a=l.split("-")[0]||"top",s=parseInt(r.el.style[a],10)-i-kn;if(!r.component)return;r.component.props.offset=s}}function It(e,n){var c;const l=Le[n],i=l.findIndex(({toastVNode:u})=>{var m;return e===((m=u==null?void 0:u.props)==null?void 0:m.id)});if(i===-1)return;const{container:o,toastVNode:r}=l[i],a=(c=r==null?void 0:r.el)==null?void 0:c.offsetHeight;if(Le[n].splice(i,1),ta(i,l,n,a),!r.component)return;const s=r.component.props;s.visible=!1,s.onClose&&s.onClose(),setTimeout(()=>{t.render(null,o),document.body.removeChild(o)},1e3)}function na(){return{openModal:l=>{l&&(l==null||l.open())},closeModal:l=>{l&&(l==null||l.close())}}}function la({initialValues:e}={}){const n=t.ref(e!=null?e:[]);function l(r){var a;return(a=n.value)==null?void 0:a.includes(r)}function i(r){return Array.isArray(n.value)?[...n.value,r]:[r]}function o(r){var s;const a=l(r)?(s=n.value)==null?void 0:s.filter(c=>c!==r):i(r);n.value=a}return{selectedFilters:n,isSelected:l,setSelectedFilter:o}}console.log("%c\u{1F33B}[Girassol]\u{1F33B}","padding: 8px;background: #212121;color: gold; font-family: 'Fira code'; font-weight: bold; font-size: 1.2rem");const Nt={SolButton:ee,SolButtonDestructive:ot,SolInputTextarea:Ue,SolInputText:Ne,SolInputTextPassword:He,SolRadio:we,SolRadioGroup:Ge,SolCheckbox:he,SolCheckboxGroup:Ye,SolSwitch:Ze,SolSelect:Ke,SolRemovableChip:Fe,SolSelectableChip:Je,SolTag:Xe,SolAlert:et,SolAccordion:tt,SolList:nt,SolMenu:Se,SolMenuItemLink:Pe,SolMenuNavigationLinks:lt,SolModal:it};function ia(e){for(const n in Nt)e.component(n,Nt[n])}q.SolAccordion=tt,q.SolAlert=et,q.SolButton=ee,q.SolButtonDestructive=ot,q.SolCheckbox=he,q.SolCheckboxGroup=Ye,q.SolInputText=Ne,q.SolInputTextPassword=He,q.SolInputTextarea=Ue,q.SolList=nt,q.SolMenu=Se,q.SolMenuItemLink=Pe,q.SolMenuNavigationLinks=lt,q.SolModal=it,q.SolRadio=we,q.SolRadioGroup=Ge,q.SolRemovableChip=Fe,q.SolSelect=Ke,q.SolSelectableChip=Je,q.SolSwitch=Ze,q.SolTag=Xe,q.components=Nt,q.install=ia,q.useMask=zt,q.useModal=na,q.useNavigate=ye,q.useNavigateProvider=We,q.useSelectableChip=la,q.useToast=Wr,q.vMask=qn,Object.defineProperties(q,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|