@solfacil/girassol 0.4.0 → 0.5.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/girassol.es.js +1426 -1398
- package/dist/girassol.umd.js +5 -5
- package/dist/style.css +1 -1
- package/dist/theme/solfacil/effects.d.ts +1 -0
- package/dist/types/components/forms/inputs/input-core/Input.vue.d.ts +1 -1
- package/dist/types/components/forms/inputs/input-text/InputText.vue.d.ts +3 -3
- package/dist/types/components/forms/inputs/input-textarea/InputTextarea.vue.d.ts +3 -3
- package/dist/types/components/forms/inputs/types.d.ts +1 -1
- package/dist/types/components/forms/select/types.d.ts +1 -1
- package/dist/types/components/loader/CircleLoader.vue.d.ts +3 -3
- package/dist/types/composables/use-toast/Toast.vue.d.ts +29 -25
- package/dist/types/composables/use-toast/index.d.ts +11 -6
- package/dist/types/composables/use-toast/types.d.ts +31 -4
- package/dist/types/index.d.ts +12 -12
- package/package.json +1 -1
- package/theme/solfacil/effects.ts +2 -0
package/dist/girassol.umd.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
(function(
|
|
2
|
-
${n(e.loading,"-loading
|
|
1
|
+
(function(j,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(j=typeof globalThis<"u"?globalThis:j||self,t(j.girassol={},j.Vue))})(this,function(j,t){"use strict";const gn=t.createElementVNode("path",{class:"path",d:"M16.0008 1.5C17.905 1.5 19.7905 1.87506 21.5497 2.60375C23.3089 3.33244 24.9074 4.4005 26.2538 5.74695C27.6003 7.0934 28.6684 8.69187 29.397 10.4511C30.1257 12.2103 30.5008 14.0958 30.5008 16C30.5008 17.9042 30.1257 19.7897 29.397 21.5489C28.6684 23.3081 27.6003 24.9066 26.2538 26.2531C24.9074 27.5995 23.3089 28.6676 21.5497 29.3963C19.7905 30.1249 17.905 30.5 16.0008 30.5C14.0966 30.5 12.2111 30.1249 10.4519 29.3963C8.69266 28.6676 7.09419 27.5995 5.74774 26.253C4.4013 24.9066 3.33323 23.3081 2.60454 21.5489C1.87585 19.7897 1.50079 17.9042 1.50079 16C1.5008 14.0958 1.87585 12.2103 2.60454 10.4511C3.33324 8.69187 4.4013 7.0934 5.74775 5.74695C7.0942 4.4005 8.69267 3.33244 10.4519 2.60375C12.2111 1.87505 14.0966 1.5 16.0008 1.5L16.0008 1.5Z"},null,-1),Bt=t.defineComponent({__name:"CircleLoader",props:{size:{default:"large"},dark:{type:Boolean},title:{default:"Carregando"}},setup(e){return(n,l)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(["sol-inner-loader",`-${e.size}`]),viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("title",null,t.toDisplayString(e.title),1),gn],2))}}),Lo="",bn=["data-testid","disabled"],kn={class:"icon -left"},pn={class:"icon -right"},$n={key:0,class:"loading"},oe=t.defineComponent({__name:"Button",props:{id:null,loading:{type:Boolean},onColor:{type:Boolean,default:!1},disabled:{type:Boolean},size:{default:"large"},variant:{default:"primary"}},setup(e){function n(o,a){return o?a:""}const l=t.useSlots(),i=t.computed(()=>!!(l!=null&&l.default)&&(!!(l!=null&&l["icon-right"])||!!(l!=null&&l["icon-left"]))),r=t.computed(()=>!(l!=null&&l.default)&&(!!(l!=null&&l["icon-right"])||!!(l!=null&&l["icon-left"])));return(o,a)=>(t.openBlock(),t.createElementBlock("button",{"data-testid":`button-${e.id}`,class:t.normalizeClass(["sol-button-core",`-${e.variant} -${e.size}
|
|
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(r),"-only-icon")}
|
|
6
|
-
`]),type:"button",disabled:e.disabled||e.loading},[t.createElementVNode("div",
|
|
6
|
+
`]),type:"button",disabled:e.disabled||e.loading},[t.createElementVNode("div",kn,[t.renderSlot(o.$slots,"icon-left")]),t.renderSlot(o.$slots,"default"),t.createElementVNode("div",pn,[t.renderSlot(o.$slots,"icon-right")]),e.loading?(t.openBlock(),t.createElementBlock("div",$n,[t.createVNode(Bt,{"data-testid":`button-loader-${e.id}`,size:e.size==="small"?"small":"medium",dark:e.onColor},null,8,["data-testid","size","dark"])])):t.createCommentVNode("",!0)],10,bn))}}),qo="",wn={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Sn=[t.createElementVNode("path",{fill:"currentColor",d:"M7 21q-.825 0-1.412-.587Q5 19.825 5 19V6H4V4h5V3h6v1h5v2h-1v13q0 .825-.587 1.413Q17.825 21 17 21ZM17 6H7v13h10ZM9 17h2V8H9Zm4 0h2V8h-2ZM7 6v13Z"},null,-1)];function xn(e,n){return t.openBlock(),t.createElementBlock("svg",wn,Sn)}const Cn={name:"material-symbols-delete-outline",render:xn},tt=t.defineComponent({__name:"ButtonDestructive",props:{id:null,size:null,loading:{type:Boolean}},setup(e){return(n,l)=>(t.openBlock(),t.createBlock(oe,{id:`destructive-${e.id}`,size:e.size,loading:e.loading,variant:"primary",class:"button-destructive"},{"icon-left":t.withCtx(()=>[t.createVNode(t.unref(Cn))]),default:t.withCtx(()=>[t.renderSlot(n.$slots,"default")]),_:3},8,["id","size","loading"]))}}),zo="";oe.install=e=>{e.component("SolButton",oe)},tt.install=e=>{e.component("SolButton",oe)};/*!
|
|
7
7
|
* maska v1.5.0
|
|
8
8
|
* (c) 2019-2021 Alexander Shabunevich
|
|
9
9
|
* Released under the MIT License.
|
|
10
|
-
*/function
|
|
10
|
+
*/function vn(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function En(e,n){for(var l=0;l<n.length;l++){var i=n[l];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Bn(e,n,l){return n in e?Object.defineProperty(e,n,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[n]=l,e}function Ot(e,n){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),l.push.apply(l,i)}return l}function De(e){for(var n=1;n<arguments.length;n++){var l=arguments[n]!=null?arguments[n]:{};n%2?Ot(Object(l),!0).forEach(function(i){Bn(e,i,l[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):Ot(Object(l)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(l,i))})}return e}var Vt={"#":{pattern:/[0-9]/},X:{pattern:/[0-9a-zA-Z]/},S:{pattern:/[a-zA-Z]/},A:{pattern:/[a-zA-Z]/,uppercase:!0},a:{pattern:/[a-zA-Z]/,lowercase:!0},"!":{escape:!0},"*":{repeat:!0}};function It(e,n){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Vt,i=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3];return Nt(n).length>1?On(n)(e,n,l,i):nt(e,n,l,i)}function Nt(e){try{return JSON.parse(e)}catch{return[e]}}function On(e){var n=Nt(e).sort(function(i,r){return i.length-r.length});return function(i,r,o){var a=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],c=n.map(function(m){return nt(i,m,o,!1)}),s=c.pop();for(var u in n)if(l(s,n[u],o))return nt(i,n[u],o,a);return""};function l(i,r,o){for(var a in o)o[a].escape&&(r=r.replace(new RegExp(a+".{1}","g"),""));return r.split("").filter(function(c){return o[c]&&o[c].pattern}).length>=i.length}}function nt(e,n,l){for(var i=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],r=0,o=0,a="",c="";r<n.length&&o<e.length;){var s=n[r],u=e[o],m=l[s];if(m&&m.pattern)m.pattern.test(u)&&(a+=Vn(u,m),r++,i&&n[r]&&(l[n[r]]?l[n[r]]&&l[n[r]].escape&&(a+=n[r+1],r+=2):(a+=n[r],r++))),o++;else if(m&&m.repeat){var h=l[n[r-1]];h&&!h.pattern.test(u)?r++:r--}else m&&m.escape&&(s=n[++r]),i&&(a+=s),u===s&&o++,r++}for(;i&&r<n.length;){var d=n[r];if(l[d]){c="";break}c+=d,r++}return a+c}function Vn(e,n){return n.transform&&(e=n.transform(e)),n.uppercase?e.toLocaleUpperCase():n.lowercase?e.toLocaleLowerCase():e}function At(e){return e instanceof HTMLInputElement?e:e.querySelector("input")||e}function lt(e){return Object.prototype.toString.call(e)==="[object String]"}var In=function(){function e(i){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(vn(this,e),!i)throw new Error("Maska: no element for mask");if(o.preprocessor!=null&&typeof o.preprocessor!="function")throw new Error("Maska: preprocessor must be a function");if(o.tokens)for(var a in o.tokens)o.tokens[a]=De({},o.tokens[a]),o.tokens[a].pattern&<(o.tokens[a].pattern)&&(o.tokens[a].pattern=new RegExp(o.tokens[a].pattern));this._opts={mask:o.mask,tokens:De(De({},Vt),o.tokens),preprocessor:o.preprocessor},this._el=lt(i)?document.querySelectorAll(i):i.length?i:[i],this.inputEvent=function(c){return r.updateValue(c.target,c)},this.init()}var n,l;return n=e,(l=[{key:"init",value:function(){for(var i=this,r=function(a){var c=At(i._el[a]);!i._opts.mask||c.dataset.mask&&c.dataset.mask===i._opts.mask||(c.dataset.mask=i._opts.mask),setTimeout(function(){return i.updateValue(c)},0),c.dataset.maskInited||(c.dataset.maskInited=!0,c.addEventListener("input",i.inputEvent),c.addEventListener("beforeinput",i.beforeInput))},o=0;o<this._el.length;o++)r(o)}},{key:"destroy",value:function(){for(var i=0;i<this._el.length;i++){var r=At(this._el[i]);r.removeEventListener("input",this.inputEvent),r.removeEventListener("beforeinput",this.beforeInput),delete r.dataset.mask,delete r.dataset.maskInited}}},{key:"updateValue",value:function(i,r){if(i&&i.type){var o=i.type.match(/^number$/i)&&i.validity.badInput;if(!i.value&&!o||!i.dataset.mask)return i.dataset.maskRawValue="",void this.dispatch("maska",i,r);var a=i.selectionEnd,c=i.value,s=c[a-1];i.dataset.maskRawValue=It(i.value,i.dataset.mask,this._opts.tokens,!1);var u=i.value;this._opts.preprocessor&&(u=this._opts.preprocessor(u)),i.value=It(u,i.dataset.mask,this._opts.tokens),r&&r.inputType==="insertText"&&a===c.length&&(a=i.value.length),function(m,h,d){for(;h&&h<m.value.length&&m.value.charAt(h-1)!==d;)h++;(m.type?m.type.match(/^(text|search|password|tel|url)$/i):!m.type)&&m===document.activeElement&&(m.setSelectionRange(h,h),setTimeout(function(){m.setSelectionRange(h,h)},0))}(i,a,s),this.dispatch("maska",i,r),i.value!==c&&this.dispatch("input",i,r)}}},{key:"beforeInput",value:function(i){i&&i.target&&i.target.type&&i.target.type.match(/^number$/i)&&i.data&&isNaN(i.target.value+i.data)&&i.preventDefault()}},{key:"dispatch",value:function(i,r,o){r.dispatchEvent(function(a){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,s=document.createEvent("Event");return s.initEvent(a,!0,!0),c&&(s.inputType=c),s}(i,o&&o.inputType||null))}}])&&En(n.prototype,l),e}(),it,Tt=(it=new WeakMap,function(e,n){n.value&&(it.has(e)&&!function(l){return!(lt(l.value)&&l.value===l.oldValue||Array.isArray(l.value)&&JSON.stringify(l.value)===JSON.stringify(l.oldValue)||l.value&&l.value.mask&&l.oldValue&&l.oldValue.mask&&l.value.mask===l.oldValue.mask)}(n)||it.set(e,new In(e,function(l){var i={};return l.mask?(i.mask=Array.isArray(l.mask)?JSON.stringify(l.mask):l.mask,i.tokens=l.tokens?De({},l.tokens):{},i.preprocessor=l.preprocessor):i.mask=Array.isArray(l)?JSON.stringify(l):l,i}(n.value))))});function Nn(e){e.directive("maska",Tt)}typeof window<"u"&&window.Vue&&window.Vue.use&&window.Vue.use(Nn);const An={CPF:"###.###.###-##",CNPJ:"##.###.###/#####-##",CPF_CNPJ:["###.###.###-##","##.###.###/#####-##"],MobilePhoneDDD:"(##) # ####-####"};function Tn(e){const n=Tt,l=t.computed(()=>{if(e!=null&&e.hasOwnProperty("preset")){const{preset:i}=e;return An[i]}return e});return{vMask:n,maskValue:l}}const Fn=["id","data-testid","value"],Ft=t.defineComponent({__name:"Input",props:{id:null,modelValue:null,error:null,mask:null,size:{default:"medium"},hasFeedbackIcon:null},emits:["update:modelValue"],setup(e,{expose:n,emit:l}){const i=e,{maskValue:r,vMask:o}=Tn(i.mask);function a({target:s}){l("update:modelValue",s==null?void 0:s.value)}const c=t.ref("");return n({input:c}),(s,u)=>t.withDirectives((t.openBlock(),t.createElementBlock("input",{id:`input-${e.id}`,ref_key:"input",ref:c,"data-testid":`input-${e.id}`,value:e.modelValue,class:t.normalizeClass(["sol-input-core",[`-${e.size}`,{"-error":e.error,"-feedback-icon":e.hasFeedbackIcon}]]),onInput:a},null,42,Fn)),[[t.unref(o),t.unref(r)]])}}),jo="";function Mn(){return Mt().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Mt(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const Pn=typeof Proxy=="function",Ln="devtools-plugin:setup",qn="plugin:settings:set";let ye,rt;function Dn(){var e;return ye!==void 0||(typeof window<"u"&&window.performance?(ye=!0,rt=window.performance):typeof global<"u"&&((e=global.perf_hooks)===null||e===void 0?void 0:e.performance)?(ye=!0,rt=global.perf_hooks.performance):ye=!1),ye}function zn(){return Dn()?rt.now():Date.now()}class jn{constructor(n,l){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=n,this.hook=l;const i={};if(n.settings)for(const a in n.settings){const c=n.settings[a];i[a]=c.defaultValue}const r=`__vue-devtools-plugin-settings__${n.id}`;let o=Object.assign({},i);try{const a=localStorage.getItem(r),c=JSON.parse(a);Object.assign(o,c)}catch{}this.fallbacks={getSettings(){return o},setSettings(a){try{localStorage.setItem(r,JSON.stringify(a))}catch{}o=a},now(){return zn()}},l&&l.on(qn,(a,c)=>{a===this.plugin.id&&this.fallbacks.setSettings(c)}),this.proxiedOn=new Proxy({},{get:(a,c)=>this.target?this.target.on[c]:(...s)=>{this.onQueue.push({method:c,args:s})}}),this.proxiedTarget=new Proxy({},{get:(a,c)=>this.target?this.target[c]:c==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(c)?(...s)=>(this.targetQueue.push({method:c,args:s,resolve:()=>{}}),this.fallbacks[c](...s)):(...s)=>new Promise(u=>{this.targetQueue.push({method:c,args:s,resolve:u})})})}async setRealTarget(n){this.target=n;for(const l of this.onQueue)this.target.on[l.method](...l.args);for(const l of this.targetQueue)l.resolve(await this.target[l.method](...l.args))}}function Rn(e,n){const l=e,i=Mt(),r=Mn(),o=Pn&&l.enableEarlyProxy;if(r&&(i.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!o))r.emit(Ln,e,n);else{const a=o?new jn(l,r):null;(i.__VUE_DEVTOOLS_PLUGINS__=i.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:l,setupFn:n,proxy:a}),a&&n(a.proxiedTarget)}}/**
|
|
11
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 xe(e){return e==null}const ue=e=>e!==null&&!!e&&typeof e=="object"&&!Array.isArray(e);function Ft(e){return Number(e)>=0}function qn(e){const n=parseFloat(e);return isNaN(n)?e:n}const _n={};function Qn(e){return _n[e]}const me=Symbol("vee-validate-form"),Hn=Symbol("vee-validate-field-instance"),De=Symbol("Default empty value");function rt(e){return ge(e)&&!!e.__locatorRef}function Ee(e){return!!e&&ge(e.validate)}function be(e){return e==="checkbox"||e==="radio"}function Un(e){return ue(e)||Array.isArray(e)}function Pt(e){return Array.isArray(e)?e.length===0:ue(e)&&Object.keys(e).length===0}function je(e){return/^\[.+\]$/i.test(e)}function Zn(e){return Lt(e)&&e.multiple}function Lt(e){return e.tagName==="SELECT"}function Gn(e,n){const l=![!1,null,void 0,0].includes(n.multiple)&&!Number.isNaN(n.multiple);return e==="select"&&"multiple"in n&&l}function Yn(e,n){return!Gn(e,n)&&n.type!=="file"&&!be(n.type)}function zt(e){return ot(e)&&e.target&&"submit"in e.target}function ot(e){return e?!!(typeof Event<"u"&&ge(Event)&&e instanceof Event||e&&e.srcElement):!1}function Dt(e,n){return n in e&&e[n]!==De}var jt=function e(n,l){if(n===l)return!0;if(n&&l&&typeof n=="object"&&typeof l=="object"){if(n.constructor!==l.constructor)return!1;var i,r,o;if(Array.isArray(n)){if(i=n.length,i!=l.length)return!1;for(r=i;r--!==0;)if(!e(n[r],l[r]))return!1;return!0}if(n.constructor===RegExp)return n.source===l.source&&n.flags===l.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===l.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===l.toString();if(o=Object.keys(n),i=o.length,i!==Object.keys(l).length)return!1;for(r=i;r--!==0;)if(!Object.prototype.hasOwnProperty.call(l,o[r]))return!1;for(r=i;r--!==0;){var a=o[r];if(!e(n[a],l[a]))return!1}return!0}return n!==n&&l!==l};function at(e){return je(e)?e.replace(/\[|\]/gi,""):e}function U(e,n,l){return e?je(n)?e[at(n)]:(n||"").split(/\.|\[(\d+)\]/).filter(Boolean).reduce((r,o)=>Un(r)&&o in r?r[o]:l,e):l}function fe(e,n,l){if(je(n)){e[at(n)]=l;return}const i=n.split(/\.|\[(\d+)\]/).filter(Boolean);let r=e;for(let o=0;o<i.length;o++){if(o===i.length-1){r[i[o]]=l;return}(!(i[o]in r)||xe(r[i[o]]))&&(r[i[o]]=Ft(i[o+1])?[]:{}),r=r[i[o]]}}function st(e,n){if(Array.isArray(e)&&Ft(n)){e.splice(Number(n),1);return}ue(e)&&delete e[n]}function ct(e,n){if(je(n)){delete e[at(n)];return}const l=n.split(/\.|\[(\d+)\]/).filter(Boolean);let i=e;for(let o=0;o<l.length;o++){if(o===l.length-1){st(i,l[o]);break}if(!(l[o]in i)||xe(i[l[o]]))break;i=i[l[o]]}const r=l.map((o,a)=>U(e,l.slice(0,a).join(".")));for(let o=r.length-1;o>=0;o--)if(!!Pt(r[o])){if(o===0){st(e,l[0]);continue}st(r[o-1],l[o-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 dt(e){t.warn(`[vee-validate]: ${e}`)}function Wn(e){return Array.isArray(e)?e[0]:e}function ut(e,n,l){if(Array.isArray(e)){const i=[...e],r=i.findIndex(o=>jt(o,n));return r>=0?i.splice(r,1):i.push(n),i}return jt(e,n)?l:n}function Jn(e,n){let l,i;return function(...r){const o=this;return l||(l=!0,setTimeout(()=>l=!1,n),i=e.apply(o,r)),i}}function Rt(e,n=0){let l=null,i=[];return function(...r){return l&&window.clearTimeout(l),l=window.setTimeout(()=>{const o=e(...r);i.forEach(a=>a(o)),i=[]},n),new Promise(o=>i.push(o))}}function Kn(e,n){return ue(n)&&n.number?qn(e):e}function ft(e,n){let l;return async function(...r){const o=e(...r);l=o;const a=await o;return o!==l||(l=void 0,n(a,r)),a}}const Re=(e,n,l)=>n.slots.default?typeof e=="string"||!e?n.slots.default(l()):{default:()=>{var i,r;return(r=(i=n.slots).default)===null||r===void 0?void 0:r.call(i,l())}}:n.slots.default;function mt(e){if(qt(e))return e._value}function qt(e){return"_value"in e}function ht(e){if(!ot(e))return e;const n=e.target;if(be(n.type)&&qt(n))return mt(n);if(n.type==="file"&&n.files){const l=Array.from(n.files);return n.multiple?l:l[0]}if(Zn(n))return Array.from(n.options).filter(l=>l.selected&&!l.disabled).map(mt);if(Lt(n)){const l=Array.from(n.options).find(i=>i.selected);return l?mt(l):n.value}return n.value}function _t(e){const n={};return Object.defineProperty(n,"_$$isNormalized",{value:!0,writable:!1,enumerable:!1,configurable:!1}),e?ue(e)&&e._$$isNormalized?e:ue(e)?Object.keys(e).reduce((l,i)=>{const r=Xn(e[i]);return e[i]!==!1&&(l[i]=Qt(r)),l},n):typeof e!="string"?n:e.split("|").reduce((l,i)=>{const r=el(i);return r.name&&(l[r.name]=Qt(r.params)),l},n):n}function Xn(e){return e===!0?[]:Array.isArray(e)||ue(e)?e:[e]}function Qt(e){const n=l=>typeof l=="string"&&l[0]==="@"?tl(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 el=e=>{let n=[];const l=e.split(":")[0];return e.includes(":")&&(n=e.split(":").slice(1).join(":").split(",")),{name:l,params:n}};function tl(e){const n=l=>U(l,e)||l[e];return n.__locatorRef=e,n}function nl(e){return Array.isArray(e)?e.filter(rt):W(e).filter(n=>rt(e[n])).map(n=>e[n])}let ll=Object.assign({},{generateMessage:({field:e})=>`${e} is not valid.`,bails:!0,validateOnBlur:!0,validateOnChange:!0,validateOnInput:!1,validateOnModelUpdate:!0});const yt=()=>ll;async function Ht(e,n,l={}){const i=l==null?void 0:l.bails,r={name:(l==null?void 0:l.name)||"{field}",rules:n,bails:i!=null?i:!0,formData:(l==null?void 0:l.values)||{}},a=(await il(r,e)).errors;return{errors:a,valid:!a.length}}async function il(e,n){if(Ee(e.rules))return rl(n,e.rules,{bails:e.bails});if(ge(e.rules)||Array.isArray(e.rules)){const a={field:e.name,form:e.formData,value:n},c=Array.isArray(e.rules)?e.rules:[e.rules],s=c.length,u=[];for(let m=0;m<s;m++){const h=c[m],d=await h(n,a);if(typeof d!="string"&&d)continue;const w=typeof d=="string"?d:Ut(a);if(u.push(w),e.bails)return{errors:u}}return{errors:u}}const l=Object.assign(Object.assign({},e),{rules:_t(e.rules)}),i=[],r=Object.keys(l.rules),o=r.length;for(let a=0;a<o;a++){const c=r[a],s=await ol(l,n,{name:c,params:l.rules[c]});if(s.error&&(i.push(s.error),e.bails))return{errors:i}}return{errors:i}}async function rl(e,n,l){var i;return{errors:await n.validate(e,{abortEarly:(i=l.bails)!==null&&i!==void 0?i:!0}).then(()=>[]).catch(o=>{if(o.name==="ValidationError")return o.errors;throw o})}}async function ol(e,n,l){const i=Qn(l.name);if(!i)throw new Error(`No such validator '${l.name}' exists.`);const r=al(l.params,e.formData),o={field:e.name,value:n,form:e.formData,rule:Object.assign(Object.assign({},l),{params:r})},a=await i(n,r,o);return typeof a=="string"?{error:a}:{error:a?void 0:Ut(o)}}function Ut(e){const n=yt().generateMessage;return n?n(e):"Field is invalid"}function al(e,n){const l=i=>rt(i)?i(n):i;return Array.isArray(e)?e.map(l):Object.keys(e).reduce((i,r)=>(i[r]=l(e[r]),i),{})}async function sl(e,n){const l=await e.validate(n,{abortEarly:!1}).then(()=>[]).catch(o=>{if(o.name!=="ValidationError")throw o;return o.inner||[]}),i={},r={};for(const o of l){const a=o.errors;i[o.path]={valid:!a.length,errors:a},a.length&&(r[o.path]=a[0])}return{valid:!l.length,results:i,errors:r}}async function cl(e,n,l){const r=W(e).map(async u=>{var m,h,d;const b=await Ht(U(n,u),e[u],{name:((m=l==null?void 0:l.names)===null||m===void 0?void 0:m[u])||u,values:n,bails:(d=(h=l==null?void 0:l.bailsMap)===null||h===void 0?void 0:h[u])!==null&&d!==void 0?d:!0});return Object.assign(Object.assign({},b),{path:u})});let o=!0;const a=await Promise.all(r),c={},s={};for(const u of a)c[u.path]={valid:u.valid,errors:u.errors},u.valid||(o=!1,s[u.path]=u.errors[0]);return{valid:o,results:c,errors:s}}function Zt(e,n,l){typeof l.value=="object"&&(l.value=Z(l.value)),!l.enumerable||l.get||l.set||!l.configurable||!l.writable||n==="__proto__"?Object.defineProperty(e,n,l):e[n]=l.value}function Z(e){if(typeof e!="object")return e;var n=0,l,i,r,o=Object.prototype.toString.call(e);if(o==="[object Object]"?r=Object.create(e.__proto__||null):o==="[object Array]"?r=Array(e.length):o==="[object Set]"?(r=new Set,e.forEach(function(a){r.add(Z(a))})):o==="[object Map]"?(r=new Map,e.forEach(function(a,c){r.set(Z(c),Z(a))})):o==="[object Date]"?r=new Date(+e):o==="[object RegExp]"?r=new RegExp(e.source,e.flags):o==="[object DataView]"?r=new e.constructor(Z(e.buffer)):o==="[object ArrayBuffer]"?r=e.slice(0):o.slice(-6)==="Array]"&&(r=new e.constructor(e)),r){for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)Zt(r,i[n],Object.getOwnPropertyDescriptor(e,i[n]));for(n=0,i=Object.getOwnPropertyNames(e);n<i.length;n++)Object.hasOwnProperty.call(r,l=i[n])&&r[l]===e[l]||Zt(r,l,Object.getOwnPropertyDescriptor(e,l))}return r||e}var le=function e(n,l){if(n===l)return!0;if(n&&l&&typeof n=="object"&&typeof l=="object"){if(n.constructor!==l.constructor)return!1;var i,r,o;if(Array.isArray(n)){if(i=n.length,i!=l.length)return!1;for(r=i;r--!==0;)if(!e(n[r],l[r]))return!1;return!0}if(n instanceof Map&&l instanceof Map){if(n.size!==l.size)return!1;for(r of n.entries())if(!l.has(r[0]))return!1;for(r of n.entries())if(!e(r[1],l.get(r[0])))return!1;return!0}if(n instanceof Set&&l instanceof Set){if(n.size!==l.size)return!1;for(r of n.entries())if(!l.has(r[0]))return!1;return!0}if(ArrayBuffer.isView(n)&&ArrayBuffer.isView(l)){if(i=n.length,i!=l.length)return!1;for(r=i;r--!==0;)if(n[r]!==l[r])return!1;return!0}if(n.constructor===RegExp)return n.source===l.source&&n.flags===l.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===l.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===l.toString();if(o=Object.keys(n),i=o.length,i!==Object.keys(l).length)return!1;for(r=i;r--!==0;)if(!Object.prototype.hasOwnProperty.call(l,o[r]))return!1;for(r=i;r--!==0;){var a=o[r];if(!e(n[a],l[a]))return!1}return!0}return n!==n&&l!==l};let Gt=0;function dl(e,n){const{value:l,initialValue:i,setInitialValue:r}=Yt(e,n.modelValue,!n.standalone),{errorMessage:o,errors:a,setErrors:c}=fl(e,!n.standalone),s=ul(l,i,a),u=Gt>=Number.MAX_SAFE_INTEGER?0:++Gt;function m(h){var d;"value"in h&&(l.value=h.value),"errors"in h&&c(h.errors),"touched"in h&&(s.touched=(d=h.touched)!==null&&d!==void 0?d:s.touched),"initialValue"in h&&r(h.initialValue)}return{id:u,path:e,value:l,initialValue:i,meta:s,errors:a,errorMessage:o,setState:m}}function Yt(e,n,l=!0){const i=l===!0?ve(me,void 0):void 0,r=t.ref(t.unref(n));function o(){return i?U(i.meta.value.initialValues,t.unref(e),t.unref(r)):t.unref(r)}function a(m){if(!i){r.value=m;return}i.stageInitialValue(t.unref(e),m,!0)}const c=t.computed(o);if(!i)return{value:t.ref(o()),initialValue:c,setInitialValue:a};const s=n?t.unref(n):U(i.values,t.unref(e),t.unref(c));return i.stageInitialValue(t.unref(e),s,!0),{value:t.computed({get(){return U(i.values,t.unref(e))},set(m){i.setFieldValue(t.unref(e),m)}}),initialValue:c,setInitialValue:a}}function ul(e,n,l){const i=t.reactive({touched:!1,pending:!1,valid:!0,validated:!!t.unref(l).length,initialValue:t.computed(()=>t.unref(n)),dirty:t.computed(()=>!le(t.unref(e),t.unref(n)))});return t.watch(l,r=>{i.valid=!r.length},{immediate:!0,flush:"sync"}),i}function fl(e,n){const l=n?ve(me,void 0):void 0;function i(o){return o?Array.isArray(o)?o:[o]:[]}if(!l){const o=t.ref([]);return{errors:o,errorMessage:t.computed(()=>o.value[0]),setErrors:a=>{o.value=i(a)}}}const r=t.computed(()=>l.errorBag.value[t.unref(e)]||[]);return{errors:r,errorMessage:t.computed(()=>r.value[0]),setErrors:o=>{l.setFieldErrorBag(t.unref(e),i(o))}}}function Wt(e){process.env.NODE_ENV!=="production"&&Rn({id:"vee-validate-devtools-plugin",label:"VeeValidate Plugin",packageName:"vee-validate",homepage:"https://vee-validate.logaretm.com/v4",app:e,logo:"https://vee-validate.logaretm.com/v4/logo.png"},yl)}const Be={},Oe={};let oe;const ke=Jn(()=>{setTimeout(async()=>{await t.nextTick(),oe==null||oe.sendInspectorState(pe),oe==null||oe.sendInspectorTree(pe)},100)},100);function ml(e){const n=t.getCurrentInstance();if(!oe){const l=n==null?void 0:n.appContext.app;if(!l)return;Wt(l)}Be[e.formId]=Object.assign({},e),Be[e.formId]._vm=n,t.onUnmounted(()=>{delete Be[e.formId],ke()}),ke()}function hl(e){const n=t.getCurrentInstance();if(!oe){const l=n==null?void 0:n.appContext.app;if(!l)return;Wt(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 ae=null;function yl(e){oe=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(!ae){console.error("There is not a valid selected vee-validate node or component");return}const n=await ae.validate();console.log(n)}},{icon:"delete_sweep",tooltip:"Clear validation state of the selected item",action:()=>{if(!ae){console.error("There is not a valid selected vee-validate node or component");return}if("id"in ae){ae.resetField();return}ae.resetForm()}}]}),e.on.getInspectorTree(n=>{if(n.inspectorId!==pe)return;const l=Object.values(Be),i=Object.values(Oe);n.rootNodes=[...l.map(gl),...i.map(r=>gt(r))]}),e.on.getInspectorState((n,l)=>{if(n.inspectorId!==pe||l.currentTab!==`custom-inspector:${pe}`)return;const{form:i,field:r,type:o}=bl(n.nodeId);if(i&&o==="form"){n.state=pl(i),ae=i;return}if(r&&o==="field"){n.state=kl(r),ae=r;return}ae=null})}function gl(e){const{textColor:n,bgColor:l}=Kt(e),i={};Object.values(e.fieldsByPath.value).forEach(a=>{const c=Array.isArray(a)?a[0]:a;!c||fe(i,t.unref(c.name),gt(c,e))});function r(a,c=[]){const s=[...c].pop();return"id"in a?Object.assign(Object.assign({},a),{label:s||a.label}):ue(a)?{id:`${c.join(".")}`,label:s||"",children:Object.keys(a).map(u=>r(a[u],[...c,u]))}:Array.isArray(a)?{id:`${c.join(".")}`,label:`${s}[]`,children:a.map((u,m)=>r(u,[...c,String(m)]))}:{id:"",label:"",children:[]}}const{children:o}=r(i);return{id:Jt(e),label:"Form",children:o,tags:[{label:"Form",textColor:n,backgroundColor:l},{label:`${Object.keys(e.fieldsByPath.value).length} fields`,textColor:X.white,backgroundColor:X.unknown}]}}function gt(e,n){const l=Wn(e),{textColor:i,bgColor:r}=Kt(l),o=Array.isArray(e)&&e.length>1;return{id:Jt(n,l,!o),label:t.unref(l.name),children:Array.isArray(e)?e.map(a=>gt(a,n)):void 0,tags:[o?void 0:{label:"Field",textColor:i,backgroundColor:r},n?void 0:{label:"Standalone",textColor:X.black,backgroundColor:X.gray},!o&&l.type==="checkbox"?{label:"Checkbox",textColor:X.white,backgroundColor:X.blue}:void 0,!o&&l.type==="radio"?{label:"Radio",textColor:X.white,backgroundColor:X.purple}:void 0,o?{label:"Group",textColor:X.black,backgroundColor:X.orange}:void 0].filter(Boolean)}}function Jt(e,n,l=!0){const i=e?t.unref(n==null?void 0:n.name):n==null?void 0:n.id,r=i?e==null?void 0:e.fieldsByPath.value[i]:void 0;let o;l&&n&&Array.isArray(r)&&(o=r.indexOf(n));const a={f:e==null?void 0:e.formId,ff:i,idx:o,type:n?"field":"form"};return btoa(JSON.stringify(a))}function bl(e){try{const n=JSON.parse(atob(e)),l=Be[n.f];if(!l&&n.ff){const r=Oe[n.ff];return r?{type:n.type,field:r}:{}}if(!l)return{};const i=l.fieldsByPath.value[n.ff];return{type:n.type,form:l,field:Array.isArray(i)?i[n.idx||0]:i}}catch{}return{}}function kl(e){const{errors:n,meta:l,value:i}=e;return{"Field state":[{key:"errors",value:n.value},{key:"initialValue",value:l.initialValue},{key:"currentValue",value:i.value},{key:"touched",value:l.touched},{key:"dirty",value:l.dirty},{key:"valid",value:l.valid}]}}function pl(e){const{errorBag:n,meta:l,values:i,isSubmitting:r,submitCount:o}=e;return{"Form state":[{key:"submitCount",value:o.value},{key:"isSubmitting",value:r.value},{key:"touched",value:l.value.touched},{key:"dirty",value:l.value.dirty},{key:"valid",value:l.value.valid},{key:"initialValues",value:l.value.initialValues},{key:"currentValues",value:i},{key:"errors",value:W(n.value).reduce((a,c)=>{var s;const u=(s=n.value[c])===null||s===void 0?void 0:s[0];return u&&(a[c]=u),a},{})}]}}function Kt(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 bt(e,n,l){return be(l==null?void 0:l.type)?Sl(e,n,l):Xt(e,n,l)}function Xt(e,n,l){const{initialValue:i,validateOnMount:r,bails:o,type:a,checkedValue:c,label:s,validateOnValueUpdate:u,uncheckedValue:m,standalone:h,keepValueOnUnmount:d,modelPropName:b,syncVModel:w}=$l(t.unref(e),l),S=h?void 0:ve(me);let L=!1;const{id:j,value:q,initialValue:$,meta:k,setState:V,errors:I,errorMessage:T}=dl(e,{modelValue:i,standalone:h});w&&Cl({value:q,prop:b,handleChange:ne});const z=()=>{k.touched=!0},_=t.computed(()=>{let y=t.unref(n);const E=t.unref(S==null?void 0:S.schema);return E&&!Ee(E)&&(y=wl(E,t.unref(e))||y),Ee(y)||ge(y)||Array.isArray(y)?y:_t(y)});async function A(y){var E,Q;return S!=null&&S.validateSchema?(E=(await S.validateSchema(y)).results[t.unref(e)])!==null&&E!==void 0?E:{valid:!0,errors:[]}:Ht(q.value,_.value,{name:t.unref(s)||t.unref(e),values:(Q=S==null?void 0:S.values)!==null&&Q!==void 0?Q:{},bails:o})}const D=ft(async()=>(k.pending=!0,k.validated=!0,A("validated-only")),y=>(L&&(y.valid=!0,y.errors=[]),V({errors:y.errors}),k.pending=!1,y)),H=ft(async()=>A("silent"),y=>(L&&(y.valid=!0),k.valid=y.valid,y));function J(y){return(y==null?void 0:y.mode)==="silent"?H():D()}function ne(y,E=!0){const Q=ht(y);q.value=Q,!u&&E&&D()}t.onMounted(()=>{if(r)return D();(!S||!S.validateSchema)&&H()});function Y(y){k.touched=y}let v;function B(){v=t.watch(q,(y,E)=>{if(le(y,E))return;(u?D:H)()},{deep:!0})}B();function p(y){var E;v==null||v();const Q=y&&"value"in y?y.value:$.value;V({value:Z(Q),initialValue:Z(Q),touched:(E=y==null?void 0:y.touched)!==null&&E!==void 0?E:!1,errors:(y==null?void 0:y.errors)||[]}),k.pending=!1,k.validated=!1,H(),t.nextTick(()=>{B()})}function C(y){q.value=y}function O(y){V({errors:Array.isArray(y)?y:[y]})}const N={id:j,name:e,label:s,value:q,meta:k,errors:I,errorMessage:T,type:a,checkedValue:c,uncheckedValue:m,bails:o,keepValueOnUnmount:d,resetField:p,handleReset:()=>p(),validate:J,handleChange:ne,handleBlur:z,setState:V,setTouched:Y,setErrors:O,setValue:C};if(t.provide(Hn,N),t.isRef(n)&&typeof t.unref(n)!="function"&&t.watch(n,(y,E)=>{le(y,E)||(k.validated?D():H())},{deep:!0}),process.env.NODE_ENV!=="production"&&(N._vm=t.getCurrentInstance(),t.watch(()=>Object.assign(Object.assign({errors:I.value},k),{value:q.value}),ke,{deep:!0}),S||hl(N)),!S)return N;S.register(N),t.onBeforeUnmount(()=>{L=!0,S.unregister(N)});const P=t.computed(()=>{const y=_.value;return!y||ge(y)||Ee(y)||Array.isArray(y)?{}:Object.keys(y).reduce((E,Q)=>{const se=nl(y[Q]).map(ee=>ee.__locatorRef).reduce((ee,te)=>{const ie=U(S.values,te)||S.values[te];return ie!==void 0&&(ee[te]=ie),ee},{});return Object.assign(E,se),E},{})});return t.watch(P,(y,E)=>{if(!Object.keys(y).length)return;!le(y,E)&&(k.validated?D():H())}),N}function $l(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 wl(e,n){if(!!e)return e[n]}function Sl(e,n,l){const i=l!=null&&l.standalone?void 0:ve(me),r=l==null?void 0:l.checkedValue,o=l==null?void 0:l.uncheckedValue;function a(c){const s=c.handleChange,u=t.computed(()=>{const h=t.unref(c.value),d=t.unref(r);return Array.isArray(h)?h.findIndex(b=>le(b,d))>=0:le(d,h)});function m(h,d=!0){var b;if(u.value===((b=h==null?void 0:h.target)===null||b===void 0?void 0:b.checked))return;let w=ht(h);i||(w=ut(t.unref(c.value),t.unref(r),t.unref(o))),s(w,d)}return Object.assign(Object.assign({},c),{checked:u,checkedValue:r,uncheckedValue:o,handleChange:m})}return a(Xt(e,n,l))}function Cl({prop:e,value:n,handleChange:l}){const i=t.getCurrentInstance();if(!i){process.env.NODE_ENV!=="production"&&console.warn("Failed to setup model events because `useField` was not called in setup.");return}const r=e||"modelValue",o=`update:${r}`;r in i.props&&(t.watch(n,a=>{le(a,en(i,r))||i.emit(o,a)}),t.watch(()=>en(i,r),a=>{if(a===De&&n.value===void 0)return;const c=a===De?void 0:a;le(c,Kn(n.value,i.props.modelModifiers))||l(c)}))}function en(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:()=>yt().bails},label:{type:String,default:void 0},uncheckedValue:{type:null,default:void 0},modelValue:{type:null,default:De},modelModifiers:{type:null,default:()=>({})},"onUpdate:modelValue":{type:null,default:void 0},standalone:{type:Boolean,default:!1},keepValue:{type:Boolean,default:void 0}},setup(e,n){const l=t.toRef(e,"rules"),i=t.toRef(e,"name"),r=t.toRef(e,"label"),o=t.toRef(e,"uncheckedValue"),a=t.toRef(e,"keepValue"),{errors:c,value:s,errorMessage:u,validate:m,handleChange:h,handleBlur:d,setTouched:b,resetField:w,handleReset:S,meta:L,checked:j,setErrors:q}=bt(i,l,{validateOnMount:e.validateOnMount,bails:e.bails,standalone:e.standalone,type:n.attrs.type,initialValue:El(e,n),checkedValue:n.attrs.value,uncheckedValue:o,label:r,validateOnValueUpdate:!1,keepValueOnUnmount:a}),$=function(_,A=!0){h(_,A),n.emit("update:modelValue",s.value)},k=z=>{be(n.attrs.type)||(s.value=ht(z))},V=function(_){k(_),n.emit("update:modelValue",s.value)},I=t.computed(()=>{const{validateOnInput:z,validateOnChange:_,validateOnBlur:A,validateOnModelUpdate:D}=xl(e),H=[d,n.attrs.onBlur,A?m:void 0].filter(Boolean),J=[B=>$(B,z),n.attrs.onInput].filter(Boolean),ne=[B=>$(B,_),n.attrs.onChange].filter(Boolean),Y={name:e.name,onBlur:H,onInput:J,onChange:ne};Y["onUpdate:modelValue"]=B=>$(B,D),be(n.attrs.type)&&j&&(Y.checked=j.value);const v=tn(e,n);return Yn(v,n.attrs)&&(Y.value=s.value),Y});function T(){return{field:I.value,value:s.value,meta:L,errors:c.value,errorMessage:u.value,validate:m,resetField:w,handleChange:$,handleInput:V,handleReset:S,handleBlur:d,setTouched:b,setErrors:q}}return n.expose({setErrors:q,setTouched:b,reset:w,validate:m,handleChange:h}),()=>{const z=t.resolveDynamicComponent(tn(e,n)),_=Re(z,n,T);return z?t.h(z,Object.assign(Object.assign({},n.attrs),I.value),_):_}}});function tn(e,n){let l=e.as||"";return!e.as&&!n.slots.default&&(l="input"),l}function xl(e){var n,l,i,r;const{validateOnInput:o,validateOnChange:a,validateOnBlur:c,validateOnModelUpdate:s}=yt();return{validateOnInput:(n=e.validateOnInput)!==null&&n!==void 0?n:o,validateOnChange:(l=e.validateOnChange)!==null&&l!==void 0?l:a,validateOnBlur:(i=e.validateOnBlur)!==null&&i!==void 0?i:c,validateOnModelUpdate:(r=e.validateOnModelUpdate)!==null&&r!==void 0?r:s}}function El(e,n){return be(n.attrs.type)?Dt(e,"modelValue")?e.modelValue:void 0:Dt(e,"modelValue")?e.modelValue:n.attrs.value}let vl=0;function Bl(e){var n;const l=vl++;let i=!1;const r=t.ref({}),o=t.ref(!1),a=t.ref(0),c=[],s=t.reactive(Z(t.unref(e==null?void 0:e.initialValues)||{})),{errorBag:u,setErrorBag:m,setFieldErrorBag:h}=Il(e==null?void 0:e.initialErrors),d=t.computed(()=>W(u.value).reduce((f,g)=>{const M=u.value[g];return M&&M.length&&(f[g]=M[0]),f},{}));function b(f){const g=r.value[f];return Array.isArray(g)?g[0]:g}function w(f){return!!r.value[f]}const S=t.computed(()=>W(r.value).reduce((f,g)=>{const M=b(g);return M&&(f[g]=t.unref(M.label||M.name)||""),f},{})),L=t.computed(()=>W(r.value).reduce((f,g)=>{var M;const F=b(g);return F&&(f[g]=(M=F.bails)!==null&&M!==void 0?M:!0),f},{})),j=Object.assign({},(e==null?void 0:e.initialErrors)||{}),q=(n=e==null?void 0:e.keepValuesOnUnmount)!==null&&n!==void 0?n:!1,{initialValues:$,originalInitialValues:k,setInitialValues:V}=Vl(r,s,e==null?void 0:e.initialValues),I=Ol(r,s,k,d),T=e==null?void 0:e.validationSchema,z=Rt(hn,5),_=Rt(hn,5),A=ft(async f=>await f==="silent"?z():_(),(f,[g])=>{const M=D.fieldsByPath.value||{},F=W(D.errorBag.value);return[...new Set([...W(f.results),...W(M),...F])].reduce((G,K)=>{const ce=M[K],Ce=(f.results[K]||{errors:[]}).errors,re={errors:Ce,valid:!Ce.length};if(G.results[K]=re,re.valid||(G.errors[K]=re.errors[0]),!ce)return Y(K,Ce),G;if(J(ce,Le=>Le.meta.valid=re.valid),g==="silent")return G;const Ao=Array.isArray(ce)?ce.some(Le=>Le.meta.validated):ce.meta.validated;return g==="validated-only"&&!Ao||J(ce,Le=>Le.setState({errors:re.errors})),G},{valid:f.valid,results:{},errors:{}})}),D={formId:l,fieldsByPath:r,values:s,errorBag:u,errors:d,schema:T,submitCount:a,meta:I,isSubmitting:o,fieldArrays:c,keepValuesOnUnmount:q,validateSchema:t.unref(T)?A:void 0,validate:te,register:se,unregister:ee,setFieldErrorBag:h,validateField:ie,setFieldValue:B,setValues:p,setErrors:v,setFieldError:Y,setFieldTouched:N,setTouched:P,resetForm:y,handleSubmit:Pe,stageInitialValue:Io,unsetInitialValue:Vo,setFieldInitialValue:mn,useFieldModel:O};function H(f){return Array.isArray(f)}function J(f,g){return Array.isArray(f)?f.forEach(g):g(f)}function ne(f){Object.values(r.value).forEach(g=>{!g||J(g,f)})}function Y(f,g){h(f,g)}function v(f){m(f)}function B(f,g,{force:M}={force:!1}){var F;const x=r.value[f],G=Z(g);if(!x){fe(s,f,G);return}if(H(x)&&((F=x[0])===null||F===void 0?void 0:F.type)==="checkbox"&&!Array.isArray(g)){const ce=Z(ut(U(s,f)||[],g,void 0));fe(s,f,ce);return}let K=g;!H(x)&&x.type==="checkbox"&&!M&&!i&&(K=Z(ut(U(s,f),g,t.unref(x.uncheckedValue)))),fe(s,f,K)}function p(f){W(s).forEach(g=>{delete s[g]}),W(f).forEach(g=>{B(g,f[g])}),c.forEach(g=>g&&g.reset())}function C(f){const{value:g}=Yt(f);return t.watch(g,()=>{w(t.unref(f))||te({mode:"validated-only"})},{deep:!0}),g}function O(f){return Array.isArray(f)?f.map(C):C(f)}function N(f,g){const M=r.value[f];M&&J(M,F=>F.setTouched(g))}function P(f){W(f).forEach(g=>{N(g,!!f[g])})}function y(f){i=!0,f!=null&&f.values?(V(f.values),p(f==null?void 0:f.values)):(V(k.value),p(k.value)),ne(g=>g.resetField()),f!=null&&f.touched&&P(f.touched),v((f==null?void 0:f.errors)||{}),a.value=(f==null?void 0:f.submitCount)||0,t.nextTick(()=>{i=!1})}function E(f,g){const M=t.markRaw(f),F=g;if(!r.value[F]){r.value[F]=M;return}const x=r.value[F];x&&!Array.isArray(x)&&(r.value[F]=[x]),r.value[F]=[...r.value[F],M]}function Q(f,g){const M=g,F=r.value[M];if(!!F){if(!H(F)&&f.id===F.id){delete r.value[M];return}if(H(F)){const x=F.findIndex(G=>G.id===f.id);if(x===-1)return;F.splice(x,1),F.length||delete r.value[M]}}}function se(f){const g=t.unref(f.name);E(f,g),t.isRef(f.name)&&t.watch(f.name,async(F,x)=>{await t.nextTick(),Q(f,x),E(f,F),(d.value[x]||d.value[F])&&(Y(x,void 0),ie(F)),await t.nextTick(),w(x)||ct(s,x)});const M=t.unref(f.errorMessage);M&&(j==null?void 0:j[g])!==M&&ie(g),delete j[g]}function ee(f){const g=t.unref(f.name),M=r.value[g],F=!!M&&H(M);Q(f,g),t.nextTick(()=>{var x;const G=(x=t.unref(f.keepValueOnUnmount))!==null&&x!==void 0?x:t.unref(q),K=U(s,g);if(F&&(M===r.value[g]||!r.value[g])&&Array.isArray(K)&&!G){const Ce=K.findIndex(re=>le(re,t.unref(f.checkedValue)));if(Ce>-1){const re=[...K];re.splice(Ce,1),B(g,re,{force:!0})}}if(!w(g)){if(Y(g,void 0),G||F&&!Pt(U(s,g)))return;ct(s,g)}})}async function te(f){if(ne(x=>x.meta.validated=!0),D.validateSchema)return D.validateSchema((f==null?void 0:f.mode)||"force");const g=await Promise.all(Object.values(r.value).map(x=>{const G=Array.isArray(x)?x[0]:x;return G?G.validate(f).then(K=>({key:t.unref(G.name),valid:K.valid,errors:K.errors})):Promise.resolve({key:"",valid:!0,errors:[]})})),M={},F={};for(const x of g)M[x.key]={valid:x.valid,errors:x.errors},x.errors.length&&(F[x.key]=x.errors[0]);return{valid:g.every(x=>x.valid),results:M,errors:F}}async function ie(f){const g=r.value[f];return g?Array.isArray(g)?g.map(M=>M.validate())[0]:g.validate():(t.warn(`field with name ${f} was not found`),Promise.resolve({errors:[],valid:!0}))}function Pe(f,g){return function(F){return F instanceof Event&&(F.preventDefault(),F.stopPropagation()),P(W(r.value).reduce((x,G)=>(x[G]=!0,x),{})),o.value=!0,a.value++,te().then(x=>{if(x.valid&&typeof f=="function")return f(Z(s),{evt:F,setErrors:v,setFieldError:Y,setTouched:P,setFieldTouched:N,setValues:p,setFieldValue:B,resetForm:y});!x.valid&&typeof g=="function"&&g({values:Z(s),evt:F,errors:x.errors,results:x.results})}).then(x=>(o.value=!1,x),x=>{throw o.value=!1,x})}}function mn(f,g){fe($.value,f,Z(g))}function Vo(f){ct($.value,f)}function Io(f,g,M=!1){fe(s,f,g),mn(f,g),M&&!(e!=null&&e.initialValues)&&fe(k.value,f,Z(g))}async function hn(){const f=t.unref(T);return f?Ee(f)?await sl(f,s):await cl(f,s,{names:S.value,bailsMap:L.value}):{valid:!0,results:{},errors:{}}}const No=Pe((f,{evt:g})=>{zt(g)&&g.target.submit()});return t.onMounted(()=>{if(e!=null&&e.initialErrors&&v(e.initialErrors),e!=null&&e.initialTouched&&P(e.initialTouched),e!=null&&e.validateOnMount){te();return}D.validateSchema&&D.validateSchema("silent")}),t.isRef(T)&&t.watch(T,()=>{var f;(f=D.validateSchema)===null||f===void 0||f.call(D,"validated-only")}),t.provide(me,D),process.env.NODE_ENV!=="production"&&(ml(D),t.watch(()=>Object.assign(Object.assign({errors:u.value},I.value),{values:s,isSubmitting:o.value,submitCount:a.value}),ke,{deep:!0})),{errors:d,meta:I,values:s,isSubmitting:o,submitCount:a,validate:te,validateField:ie,handleReset:()=>y(),resetForm:y,handleSubmit:Pe,submitForm:No,setFieldError:Y,setErrors:v,setFieldValue:B,setValues:p,setFieldTouched:N,setTouched:P,useFieldModel:O}}function Ol(e,n,l,i){const r={touched:"some",pending:"some",valid:"every"},o=t.computed(()=>!le(n,t.unref(l)));function a(){const s=Object.values(e.value).flat(1).filter(Boolean);return W(r).reduce((u,m)=>{const h=r[m];return u[m]=s[h](d=>d.meta[m]),u},{})}const c=t.reactive(a());return t.watchEffect(()=>{const s=a();c.touched=s.touched,c.valid=s.valid,c.pending=s.pending}),t.computed(()=>Object.assign(Object.assign({initialValues:t.unref(l)},c),{valid:c.valid&&!W(i.value).length,dirty:o.value}))}function Vl(e,n,l){const i=t.ref(Z(t.unref(l))||{}),r=t.ref(Z(t.unref(l))||{});function o(a,c=!1){i.value=Z(a),r.value=Z(a),c&&W(e.value).forEach(s=>{const u=e.value[s],m=Array.isArray(u)?u.some(d=>d.meta.touched):u==null?void 0:u.meta.touched;if(!u||m)return;const h=U(i.value,s);fe(n,s,Z(h))})}return t.isRef(l)&&t.watch(l,a=>{o(a,!0)},{deep:!0}),{initialValues:i,originalInitialValues:r,setInitialValues:o}}function Il(e){const n=t.ref({});function l(o){return Array.isArray(o)?o:o?[o]:[]}function i(o,a){if(!a){delete n.value[o];return}n.value[o]=l(a)}function r(o){n.value=W(o).reduce((a,c)=>{const s=o[c];return s&&(a[c]=l(s)),a},{})}return e&&r(e),{errorBag:n,setErrorBag:r,setFieldErrorBag:i}}t.defineComponent({name:"Form",inheritAttrs:!1,props:{as:{type:String,default:"form"},validationSchema:{type:Object,default:void 0},initialValues:{type:Object,default:void 0},initialErrors:{type:Object,default:void 0},initialTouched:{type:Object,default:void 0},validateOnMount:{type:Boolean,default:!1},onSubmit:{type:Function,default:void 0},onInvalidSubmit:{type:Function,default:void 0},keepValues:{type:Boolean,default:!1}},setup(e,n){const l=t.toRef(e,"initialValues"),i=t.toRef(e,"validationSchema"),r=t.toRef(e,"keepValues"),{errors:o,values:a,meta:c,isSubmitting:s,submitCount:u,validate:m,validateField:h,handleReset:d,resetForm:b,handleSubmit:w,setErrors:S,setFieldError:L,setFieldValue:j,setValues:q,setFieldTouched:$,setTouched:k}=Bl({validationSchema:i.value?i:void 0,initialValues:l,initialErrors:e.initialErrors,initialTouched:e.initialTouched,validateOnMount:e.validateOnMount,keepValuesOnUnmount:r}),V=w((A,{evt:D})=>{zt(D)&&D.target.submit()},e.onInvalidSubmit),I=e.onSubmit?w(e.onSubmit,e.onInvalidSubmit):V;function T(A){ot(A)&&A.preventDefault(),d(),typeof n.attrs.onReset=="function"&&n.attrs.onReset()}function z(A,D){return w(typeof A=="function"&&!D?A:D,e.onInvalidSubmit)(A)}function _(){return{meta:c.value,errors:o.value,values:a,isSubmitting:s.value,submitCount:u.value,validate:m,validateField:h,handleSubmit:z,handleReset:d,submitForm:V,setErrors:S,setFieldError:L,setFieldValue:j,setValues:q,setFieldTouched:$,setTouched:k,resetForm:b}}return n.expose({setFieldError:L,setErrors:S,setFieldValue:j,setValues:q,setFieldTouched:$,setTouched:k,resetForm:b,validate:m,validateField:h}),function(){const D=e.as==="form"?e.as:t.resolveDynamicComponent(e.as),H=Re(D,n,_);if(!e.as)return H;const J=e.as==="form"?{novalidate:!0}:{};return t.h(D,Object.assign(Object.assign(Object.assign({},J),n.attrs),{onSubmit:I,onReset:T}),H)}}});function Nl(e){const n=ve(me,void 0),l=t.ref([]),i=()=>{},r={fields:l,remove:i,push:i,swap:i,insert:i,update:i,replace:i,prepend:i,move:i};if(!n)return dt("FieldArray requires being a child of `<Form/>` or `useForm` being called before it. Array fields may not work correctly"),r;if(!t.unref(e))return dt("FieldArray requires a field path to be provided, did you forget to pass the `name` prop?"),r;const o=n.fieldArrays.find($=>t.unref($.path)===t.unref(e));if(o)return o;let a=0;function c(){const $=U(n==null?void 0:n.values,t.unref(e),[])||[];l.value=$.map(u),s()}c();function s(){const $=l.value.length;for(let k=0;k<$;k++){const V=l.value[k];V.isFirst=k===0,V.isLast=k===$-1}}function u($){const k=a++;return{key:k,value:t.computed({get(){const I=U(n==null?void 0:n.values,t.unref(e),[])||[],T=l.value.findIndex(z=>z.key===k);return T===-1?$:I[T]},set(I){const T=l.value.findIndex(z=>z.key===k);if(T===-1){dt("Attempting to update a non-existent array item");return}S(T,I)}}),isFirst:!1,isLast:!1}}function m($){const k=t.unref(e),V=U(n==null?void 0:n.values,k);if(!V||!Array.isArray(V))return;const I=[...V];I.splice($,1),n==null||n.unsetInitialValue(k+`[${$}]`),n==null||n.setFieldValue(k,I),l.value.splice($,1),s()}function h($){const k=t.unref(e),V=U(n==null?void 0:n.values,k),I=xe(V)?[]:V;if(!Array.isArray(I))return;const T=[...I];T.push($),n==null||n.stageInitialValue(k+`[${T.length-1}]`,$),n==null||n.setFieldValue(k,T),l.value.push(u($)),s()}function d($,k){const V=t.unref(e),I=U(n==null?void 0:n.values,V);if(!Array.isArray(I)||!($ in I)||!(k in I))return;const T=[...I],z=[...l.value],_=T[$];T[$]=T[k],T[k]=_;const A=z[$];z[$]=z[k],z[k]=A,n==null||n.setFieldValue(V,T),l.value=z,s()}function b($,k){const V=t.unref(e),I=U(n==null?void 0:n.values,V);if(!Array.isArray(I)||I.length<$)return;const T=[...I],z=[...l.value];T.splice($,0,k),z.splice($,0,u(k)),n==null||n.setFieldValue(V,T),l.value=z,s()}function w($){const k=t.unref(e);n==null||n.setFieldValue(k,$),c()}function S($,k){const V=t.unref(e),I=U(n==null?void 0:n.values,V);!Array.isArray(I)||I.length-1<$||n==null||n.setFieldValue(`${V}[${$}]`,k)}function L($){const k=t.unref(e),V=U(n==null?void 0:n.values,k),I=xe(V)?[]:V;if(!Array.isArray(I))return;const T=[$,...I];n==null||n.stageInitialValue(k+`[${T.length-1}]`,$),n==null||n.setFieldValue(k,T),l.value.unshift(u($)),s()}function j($,k){const V=t.unref(e),I=U(n==null?void 0:n.values,V),T=xe(I)?[]:[...I];if(!Array.isArray(I)||!($ in I)||!(k in I))return;const z=[...l.value],_=z[$];z.splice($,1),z.splice(k,0,_);const A=T[$];T.splice($,1),T.splice(k,0,A),n==null||n.setFieldValue(V,T),l.value=z,s()}const q={fields:l,remove:m,push:h,swap:d,insert:b,update:S,replace:w,prepend:L,move:j};return n.fieldArrays.push(Object.assign({path:e,reset:c},q)),t.onBeforeUnmount(()=>{const $=n.fieldArrays.findIndex(k=>t.unref(k.path)===t.unref(e));$>=0&&n.fieldArrays.splice($,1)}),q}t.defineComponent({name:"FieldArray",inheritAttrs:!1,props:{name:{type:String,required:!0}},setup(e,n){const{push:l,remove:i,swap:r,insert:o,replace:a,update:c,prepend:s,move:u,fields:m}=Nl(t.toRef(e,"name"));function h(){return{fields:m.value,push:l,remove:i,swap:r,insert:o,update:c,replace:a,prepend:s,move:u}}return n.expose({push:l,remove:i,swap:r,insert:o,update:c,replace:a,prepend:s,move:u}),()=>Re(void 0,n,h)}}),t.defineComponent({name:"ErrorMessage",props:{as:{type:String,default:void 0},name:{type:String,required:!0}},setup(e,n){const l=t.inject(me,void 0),i=t.computed(()=>l==null?void 0:l.errors.value[e.name]);function r(){return{message:i.value}}return()=>{if(!i.value)return;const o=e.as?t.resolveDynamicComponent(e.as):e.as,a=Re(o,n,r),c=Object.assign({role:"alert"},n.attrs);return!o&&(Array.isArray(a)||!a)&&(a==null?void 0:a.length)?a:(Array.isArray(a)||!a)&&!(a!=null&&a.length)?t.h(o||"span",c,i.value):t.h(o,c,a)}}});function Ve(e,n){var a,c,s,u;const l=(n==null?void 0:n.component)==="input"&&(((a=n==null?void 0:n.error)==null?void 0:a.value)!==null||(n==null?void 0:n.modelValue)!==void 0),i=(n==null?void 0:n.component)==="radio"&&(((c=n==null?void 0:n.error)==null?void 0:c.value)!==null||(n==null?void 0:n.modelValue)!==void 0),r=(n==null?void 0:n.component)==="checkbox"&&(((s=n==null?void 0:n.error)==null?void 0:s.value)!==null||(n==null?void 0:n.modelValue)!==void 0),o=(n==null?void 0:n.component)==="select"&&(((u=n==null?void 0:n.error)==null?void 0:u.value)!==null||(n==null?void 0:n.selected)!==void 0);return n!=null&&n.useFieldParent?n==null?void 0:n.useFieldParent(e):n!=null&&n.rules?bt(e,n==null?void 0:n.rules,n==null?void 0:n.opts):o?Tl(n==null?void 0:n.error,n==null?void 0:n.selected):l||i||r?Al(n==null?void 0:n.error,n==null?void 0:n.modelValue):bt(e)}function Al(e,n){return{value:t.ref(n!=null?n:""),errorMessage:e}}function Tl(e,n){return{value:t.ref(n),errorMessage:e}}const Ml={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Fl=[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 Pl(e,n){return t.openBlock(),t.createElementBlock("svg",Ml,Fl)}const Ll={name:"material-symbols-done",render:Pl},zl=["id","data-testid"],Dl=["for","data-testid","data-required"],jl={class:"container-input"},Rl=["id","data-testid"],ql={inheritAttrs:!1},Ie=t.defineComponent({...ql,__name:"InputText",props:{id:null,name:null,class:null,label:null,mask:null,helperText:null,successText:null,loadingText:null,required:null,disabled:null,isSuccess:null,isLoading:null,size:{default:"md"},error:{default:null},modelValue:null,placeholder:null,useField:null,rules:null,opts:null},emits:["update:modelValue"],setup(e,{emit:n}){const l=e,i=t.useSlots(),r=t.computed(()=>!!(i!=null&&i.icon)),o=t.computed(()=>{var d;return(d=l.name)!=null?d:""}),{value:a,errorMessage:c}=Ve(o.value,{component:"input",error:t.computed(()=>l.error),modelValue:l.modelValue,rules:l.rules,opts:l.opts,useFieldParent:l.useField}),s=t.computed(()=>!!l.loadingText||!!(c!=null&&c.value)||!!l.successText||!!l.helperText),u=t.computed(()=>s.value?`input-text-describe-${l.id}`:null),m=t.computed(()=>{var d;return l.loadingText&&l.isLoading?{text:l.loadingText,type:"loading"}:(d=c==null?void 0:c.value)!=null&&d.length?{text:c==null?void 0:c.value,type:"error"}:l.successText&&l.isSuccess?{text:l.successText,type:"success"}:{text:l.helperText,type:"helper"}});function h(d){n("update:modelValue",d)}return(d,b)=>(t.openBlock(),t.createElementBlock("div",{id:`input-text-${e.id}`,"data-testid":`input-text-${e.id}`,class:t.normalizeClass([[`${d.$props.class}`,{"-disabled":e.disabled}],"sol-input-text-core"])},[e.label?(t.openBlock(),t.createElementBlock("label",{key:0,for:`input-text-input-${e.id}`,"data-testid":`input-text-label-${e.id}`,class:t.normalizeClass(["label",`-${e.size}`]),"data-required":e.required},t.toDisplayString(e.label),11,Dl)):t.createCommentVNode("",!0),t.createElementVNode("div",jl,[t.createVNode(Tt,t.mergeProps(d.$attrs,{id:`text-input-${e.id}`,modelValue:t.unref(a),"onUpdate:modelValue":[b[0]||(b[0]=w=>t.isRef(a)?a.value=w:null),h],size:e.size,name:t.unref(o),mask:e.mask,placeholder:e.placeholder,"data-required":e.required,"has-feedback-icon":t.unref(r),error:!!t.unref(c),disabled:e.disabled,"aria-invalid":!!t.unref(c),"aria-describedby":t.unref(u)}),null,16,["id","modelValue","size","name","mask","placeholder","data-required","has-feedback-icon","error","disabled","aria-invalid","aria-describedby"]),e.isLoading?(t.openBlock(),t.createBlock(vt,{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(Ll),{key:0,"aria-hidden":"true",class:"text-feedback-positive-pure"})):t.renderSlot(d.$slots,"icon",{key:1})],2))]),t.unref(s)?(t.openBlock(),t.createElementBlock("span",{key:1,id:`input-text-describe-${e.id}`,"data-testid":`input-text-describe-${e.id}`,class:t.normalizeClass(["message",`-${t.unref(m).type}`])},t.toDisplayString(t.unref(m).text),11,Rl)):t.createCommentVNode("",!0)],10,zl))}}),jo="",_l={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Ql=[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 Hl(e,n){return t.openBlock(),t.createElementBlock("svg",_l,Ql)}const Ul={name:"iconoir-eye-empty",render:Hl},Zl={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Gl=[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 Yl(e,n){return t.openBlock(),t.createElementBlock("svg",Zl,Gl)}const Wl={name:"iconoir-eye-off",render:Yl},Jl=["aria-label"],qe=t.defineComponent({__name:"InputPassword",props:{id:null,label:null,name:{default:"password"},placeholder:{default:"Digite sua senha."},helperText:null,required:{default:!0},disabled:null,size:null,error:null,modelValue:null,useField:null,rules:null,opts:null},setup(e){const n=t.ref(!1),l=t.computed(()=>n.value?"text":"password");return(i,r)=>(t.openBlock(),t.createBlock(Ie,{id:`password-${e.id}`,type:t.unref(l),label:e.label,name:e.name,required:e.required,size:e.size,"helper-text":e.helperText,placeholder:e.placeholder,error:e.error,"model-value":e.modelValue,"use-field":e.useField,rules:e.rules,opts:e.opts},{icon:t.withCtx(()=>[t.createElementVNode("button",{type:"button","data-testid":"toggle-type-password","aria-label":n.value?"Hide password":"Show password",onClick:r[0]||(r[0]=o=>n.value=!n.value)},[t.withDirectives(t.createVNode(t.unref(Ul),{class:"password-feedback-icon","aria-hidden":"true"},null,512),[[t.vShow,n.value]]),t.withDirectives(t.createVNode(t.unref(Wl),{class:"password-feedback-icon","aria-hidden":"true"},null,512),[[t.vShow,!n.value]])],8,Jl)]),_:1},8,["id","type","label","name","required","size","helper-text","placeholder","error","model-value","use-field","rules","opts"]))}}),_o="",Kl=["id","data-testid"],Xl=["id","data-testid","for","data-required"],ei=["id","data-testid","data-required","placeholder","aria-invalid","aria-describedby"],ti=["id","data-testid"],_e=t.defineComponent({__name:"InputTextarea",props:{id:null,class:null,name:null,label:null,required:{type:Boolean},helperText:null,resize:{default:"both"},size:{default:"md"},error:{default:null},placeholder:null,modelValue:null,useField:null,rules:null,opts:null},emits:["update:modelValue"],setup(e,{emit:n}){const l=e,i=t.computed(()=>{var m;return(m=l.name)!=null?m:""}),{value:r,errorMessage:o}=Ve(i.value,{component:"input",error:t.computed(()=>l.error),modelValue:l.modelValue,rules:l.rules,opts:l.opts,useFieldParent:l.useField}),a=t.computed(()=>!!(o!=null&&o.value)||!!l.helperText),c=t.computed(()=>a.value?`input-textarea-describe-${l.id}`:void 0),s=t.computed(()=>{var m;return(m=o==null?void 0:o.value)!=null&&m.length?{text:o==null?void 0:o.value,type:"error"}:{text:l.helperText,type:"helper"}});function u({target:m}){n("update:modelValue",m==null?void 0:m.value)}return(m,h)=>{var d;return t.openBlock(),t.createElementBlock("div",{id:`input-textarea-${e.id}`,"data-testid":`input-textarea-${e.id}`,class:t.normalizeClass([[`${(d=m.$props.class)!=null?d:""}`,`-${e.size}`],"sol-textarea-core"])},[e.label?(t.openBlock(),t.createElementBlock("label",{key:0,id:`input-textarea-label-${e.id}`,"data-testid":`input-textarea-label-${e.id}`,for:`input-textarea-input-${e.id}`,class:"label","data-required":e.required},[t.createElementVNode("span",null,t.toDisplayString(e.label),1)],8,Xl)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(t.unref(r))+" ",1),t.withDirectives(t.createElementVNode("textarea",t.mergeProps(m.$attrs,{id:`input-textarea-input-${e.id}`,"onUpdate:modelValue":h[0]||(h[0]=b=>t.isRef(r)?r.value=b:null),"data-testid":`input-textarea-input-${e.id}`,"data-required":e.required,class:[[`-${e.size}`,{"-error":e.error}],"textarea"],rows:"4",placeholder:e.placeholder,style:{resize:e.resize},"aria-invalid":!!t.unref(o),"aria-describedby":t.unref(c),onInput:u}),null,16,ei),[[t.vModelText,t.unref(r)]]),t.unref(a)?(t.openBlock(),t.createElementBlock("span",{key:1,id:`input-textarea-describe-${e.id}`,"data-testid":`input-textarea-describe-${e.id}`,class:t.normalizeClass(["message",`-${t.unref(s).type}`])},t.toDisplayString(t.unref(s).text),11,ti)):t.createCommentVNode("",!0)],10,Kl)}}}),Qo="";Ie.install=e=>{e.component("SolInputText",Ie)},qe.install=e=>{e.component("SolInputTextPassword",qe)},_e.install=e=>{e.component("SolInputTextarea",_e)};const ni=["id","aria-checked","aria-labelledby","data-testid","checked","value","name"],li=["id","for","data-testid"],Qe=t.defineComponent({__name:"Switch",props:{id:null,name:null,value:null,label:null,checked:{type:Boolean},class:null,textDirection:{default:"left"},hideLabel:{type:Boolean},stretchLabel:{type:Boolean,default:!1}},emits:["change"],setup(e,{emit:n}){return(l,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["sol-switch-core",[l.$props.class,`-text-${e.textDirection}`,{"-stretch-label":e.stretchLabel}]])},[t.createElementVNode("input",t.mergeProps(l.$attrs,{id:`switch-${e.name}-${e.id}`,type:"checkbox",class:"switch",role:"switch","aria-checked":e.checked,"aria-labelledby":`switch-label-${e.name}-${e.id}`,"data-testid":`switch-${e.name}-${e.id}`,checked:e.checked,value:e.value,name:e.name,onChange:i[0]||(i[0]=r=>{var o;return n("change",(o=e.value)!=null?o:!!e.checked)})}),null,16,ni),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,li)],2))}}),Ho="";Qe.install=e=>{e.component("SolSwitch",Qe)};const ii=["id","data-testid","checked","value","name"],ri=["for"],oi={inheritAttrs:!1},$e=t.defineComponent({...oi,__name:"Radio",props:{id:null,name:null,value:null,label:null,hideLabel:null,checked:null,class:null},emits:["change"],setup(e,{emit:n}){return(l,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["sol-radio-core",[l.$props.class,{"-hide-label":e.hideLabel}]])},[t.createElementVNode("input",t.mergeProps(l.$attrs,{id:`radio-${e.name}-${e.id}`,type:"radio",class:"radio","data-testid":`radio-${e.name}-${e.id}`,checked:e.checked,value:e.value,name:e.name,onChange:i[0]||(i[0]=r=>n("change",e.value))}),null,16,ii),t.createElementVNode("label",{class:"label",for:`radio-${e.name}-${e.id}`},t.toDisplayString(e.label),9,ri)],2))}}),Uo="",ai=["id","data-testid","aria-labelledby"],si=["id","data-testid"],ci=["id","data-testid"],He=t.defineComponent({__name:"RadioGroup",props:{id:null,title:null,name:null,hideTitle:{type:Boolean,default:!1},helperText:null,error:{default:null},radios:null,modelValue:null,direction:{default:"row"},useField:null,rules:null,opts:null},emits:["change","update:modelValue"],setup(e,{emit:n}){const l=e,i=t.computed(()=>{var h;return(h=l.name)!=null?h:""}),{value:r,errorMessage:o}=Ve(i.value,{component:"radio",error:t.computed(()=>l.error),modelValue:l.modelValue,rules:l.rules,opts:l.opts,useFieldParent:l.useField}),a=t.computed(()=>!!(o!=null&&o.value)||!!l.helperText),c=t.computed(()=>a.value?`radios-describe-${l.id}`:null),s=t.computed(()=>{var h;return(h=o==null?void 0:o.value)!=null&&h.length?{text:o==null?void 0:o.value,type:"error"}:{text:l.helperText,type:"helper"}});function u(h){return r.value===h}function m(h){r.value=h.value,n("change",h.value),n("update:modelValue",h.value)}return(h,d)=>(t.openBlock(),t.createElementBlock("fieldset",{id:`radio-group-${e.id}`,"data-testid":`radio-group-${e.id}`,"aria-labelledby":`radio-group-title-${e.id}`,class:"sol-radio-group-core"},[t.renderSlot(h.$slots,"title",{id:`radio-group-title-${e.id}`},()=>[t.createElementVNode("legend",{id:`radio-group-title-${e.id}`,class:t.normalizeClass(["title",{"sr-only":e.hideTitle}]),"data-testid":`radio-group-title-${e.id}`},t.toDisplayString(e.title),11,si)]),t.createElementVNode("ul",{class:t.normalizeClass(["container-radios",{"flex-col":e.direction==="column"}])},[t.renderSlot(h.$slots,"default",{radios:e.radios,direction:e.direction},()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.radios,(b,w)=>{var S;return t.openBlock(),t.createElementBlock("li",{key:w},[t.createVNode($e,t.mergeProps(h.$attrs,{id:(S=b==null?void 0:b.id)!=null?S:`${b.value}`,class:["radio",{"mb-micro":e.direction==="column","mr-micro":e.direction==="row"}],name:b.name,value:b.value,label:b.label,checked:u(b.value),error:!!t.unref(o),"aria-invalid":!!t.unref(o),"aria-describedby":t.unref(c),onChange:L=>m(b)}),null,16,["id","class","name","value","label","checked","error","aria-invalid","aria-describedby","onChange"])])}),128))])],2),t.unref(a)?(t.openBlock(),t.createElementBlock("span",{key:0,id:`radios-describe-${e.id}`,"data-testid":`radios-describe-${e.id}`,class:t.normalizeClass(["message",`-${t.unref(s).type}`])},t.toDisplayString(t.unref(s).text),11,ci)):t.createCommentVNode("",!0)],8,ai))}}),Zo="";$e.install=e=>{e.component("SolRadio",$e)},He.install=e=>{e.component("SolRadioGroup",He)};const di=["id","indeterminate","data-testid","checked","value","name"],ui=["for"],fi={inheritAttrs:!1},he=t.defineComponent({...fi,__name:"Checkbox",props:{id:null,name:null,value:null,label:null,hideLabel:null,checked:null,class:null,indeterminate:{type:Boolean}},emits:["change"],setup(e,{emit:n}){return(l,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["sol-checkbox-core",[l.$props.class,{"-hide-label":e.hideLabel}]])},[t.createElementVNode("input",t.mergeProps(l.$attrs,{id:`checkbox-${e.name}-${e.id}`,type:"checkbox",indeterminate:e.indeterminate,class:"checkbox","data-testid":`checkbox-${e.name}-${e.id}`,checked:e.checked,value:e.value,name:e.name,onChange:i[0]||(i[0]=r=>n("change",e.value))}),null,16,di),t.createElementVNode("label",{class:"label",for:`checkbox-${e.name}-${e.id}`},t.toDisplayString(e.label),9,ui)],2))}}),Go="",mi=["id","data-testid","aria-labelledby"],hi=["id","data-testid"],yi=["id","data-testid"],Ue=t.defineComponent({__name:"CheckboxGroup",props:{id:null,title:null,name:null,hideTitle:{type:Boolean,default:!1},helperText:null,error:{default:null},checkboxes:null,modelValue:null,direction:{default:"row"},useField:null,rules:null,opts:null},emits:["change","update:modelValue"],setup(e,{emit:n}){const l=e,i=t.computed(()=>{var d;return(d=l.name)!=null?d:""}),{value:r,errorMessage:o}=Ve(i.value,{component:"checkbox",error:t.computed(()=>l.error),modelValue:l.modelValue,rules:l.rules,useFieldParent:l.useField}),a=t.computed(()=>!!(o!=null&&o.value)||!!l.helperText),c=t.computed(()=>a.value?`checkboxes-describe-${l.id}`:null),s=t.computed(()=>{var d;return(d=o==null?void 0:o.value)!=null&&d.length?{text:o==null?void 0:o.value,type:"error"}:{text:l.helperText,type:"helper"}});function u(d){var b;return(b=r.value)==null?void 0:b.includes(d)}function m(d){return Array.isArray(r.value)?[...r.value,d]:[d]}function h(d){var w;n("change",d.value);const b=u(d.value)?(w=r.value)==null?void 0:w.filter(S=>S!==d.value):m(d.value);r.value=b,n("update:modelValue",b)}return(d,b)=>(t.openBlock(),t.createElementBlock("fieldset",{id:`checkbox-group-${e.id}`,"data-testid":`checkbox-group-${e.id}`,class:"sol-checkbox-group-core","aria-labelledby":`checkbox-group-title-${e.id}`},[t.renderSlot(d.$slots,"title",{id:`checkbox-group-title-${e.id}`},()=>[t.createElementVNode("legend",{id:`checkbox-group-title-${e.id}`,class:t.normalizeClass(["title",{"sr-only":e.hideTitle}]),"data-testid":`checkbox-group-title-${e.id}`},t.toDisplayString(e.title),11,hi)]),t.createElementVNode("ul",{class:t.normalizeClass(["container-checkboxes",{"flex-col":e.direction==="column"}])},[t.renderSlot(d.$slots,"default",{checkboxes:e.checkboxes,direction:e.direction},()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.checkboxes,(w,S)=>{var L;return t.openBlock(),t.createElementBlock("li",{key:S},[t.createVNode(he,t.mergeProps(d.$attrs,{id:(L=w==null?void 0:w.id)!=null?L:`${w.value}`,class:["checkbox",{"mb-micro":e.direction==="column","mr-micro":e.direction==="row"}],label:w.label,name:w.name,value:w.value,checked:u(w.value),error:!!t.unref(o),"aria-invalid":!!t.unref(o),"aria-describedby":t.unref(c),onChange:j=>h(w)}),null,16,["id","class","label","name","value","checked","error","aria-invalid","aria-describedby","onChange"])])}),128))])],2),t.unref(a)?(t.openBlock(),t.createElementBlock("span",{key:0,id:`checkboxes-describe-${e.id}`,"data-testid":`checkboxes-describe-${e.id}`,class:t.normalizeClass(["message",`-${t.unref(s).type}`])},t.toDisplayString(t.unref(s).text),11,yi)):t.createCommentVNode("",!0)],8,mi))}}),Yo="";he.install=e=>{e.component("SolCheckbox",he)},Ue.install=e=>{e.component("SolCheckboxGroup",Ue)};var nn;const Ne=typeof window<"u",gi=e=>typeof e=="string",kt=()=>{};Ne&&((nn=window==null?void 0:window.navigator)==null?void 0:nn.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function bi(e){return typeof e=="function"?e():t.unref(e)}function ki(e){return e}function ln(e){return t.getCurrentScope()?(t.onScopeDispose(e),!0):!1}function pi(e,n=!0){t.getCurrentInstance()?t.onBeforeMount(e):n?e():t.nextTick(e)}function $i(e,n=!0){t.getCurrentInstance()?t.onMounted(e):n?e():t.nextTick(e)}function Ae(e){var n;const l=bi(e);return(n=l==null?void 0:l.$el)!=null?n:l}const pt=Ne?window:void 0;Ne&&window.document,Ne&&window.navigator,Ne&&window.location;function Ze(...e){let n,l,i,r;if(gi(e[0])?([l,i,r]=e,n=pt):[n,l,i,r]=e,!n)return kt;let o=kt;const a=t.watch(()=>Ae(n),s=>{o(),s&&(s.addEventListener(l,i,r),o=()=>{s.removeEventListener(l,i,r),o=kt})},{immediate:!0,flush:"post"}),c=()=>{a(),o()};return ln(c),c}function rn(e,n,l={}){const{window:i=pt,ignore:r,capture:o=!0,detectIframe:a=!1}=l;if(!i)return;const c=t.ref(!0);let s;const u=d=>{i.clearTimeout(s);const b=Ae(e),w=d.composedPath();!b||b===d.target||w.includes(b)||!c.value||r&&r.length>0&&r.some(S=>{const L=Ae(S);return L&&(d.target===L||w.includes(L))})||n(d)},m=[Ze(i,"click",u,{passive:!0,capture:o}),Ze(i,"pointerdown",d=>{const b=Ae(e);c.value=!!b&&!d.composedPath().includes(b)},{passive:!0}),Ze(i,"pointerup",d=>{if(d.button===0){const b=d.composedPath();d.composedPath=()=>b,s=i.setTimeout(()=>u(d),50)}},{passive:!0}),a&&Ze(i,"blur",d=>{var b;const w=Ae(e);((b=document.activeElement)==null?void 0:b.tagName)==="IFRAME"&&!(w!=null&&w.contains(document.activeElement))&&n(d)})].filter(Boolean);return()=>m.forEach(d=>d())}function wi(e,n=!1){const l=t.ref(),i=()=>l.value=Boolean(e());return i(),$i(i,n),l}function Si(e,n={}){const{window:l=pt}=n,i=wi(()=>l&&"matchMedia"in l&&typeof l.matchMedia=="function");let r;const o=t.ref(!1),a=()=>{!i.value||(r||(r=l.matchMedia(e)),o.value=r.matches)};return pi(()=>{a(),r&&("addEventListener"in r?r.addEventListener("change",a):r.addListener(a),ln(()=>{"removeEventListener"in r?r.removeEventListener("change",a):r.removeListener(a)}))}),o}const $t=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},wt="__vueuse_ssr_handlers__";$t[wt]=$t[wt]||{},$t[wt];var on;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(on||(on={}));var Ci=Object.defineProperty,an=Object.getOwnPropertySymbols,xi=Object.prototype.hasOwnProperty,Ei=Object.prototype.propertyIsEnumerable,sn=(e,n,l)=>n in e?Ci(e,n,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[n]=l,vi=(e,n)=>{for(var l in n||(n={}))xi.call(n,l)&&sn(e,l,n[l]);if(an)for(var l of an(n))Ei.call(n,l)&&sn(e,l,n[l]);return e};vi({linear:ki},{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 Bi={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Oi=[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 Vi(e,n){return t.openBlock(),t.createElementBlock("svg",Bi,Oi)}const cn={name:"mi-close",render:Vi},Ii=["id","data-testid","title","aria-describedby","aria-disabled","onKeydown"],Ni=["id"],Ai={class:"label"},Te=t.defineComponent({__name:"Chip",props:{id:null,label:null,selected:{type:Boolean},disabled:{type:Boolean},removable:{type:Boolean,default:!0}},emits:["close","update:selected"],setup(e,{emit:n}){const l=e;function i({code:r}){if(!l.disabled)switch(r){case"Enter":case"NumpadEnter":case"Space":return n("update:selected");case"Delete":case"Backspace":return l.removable&&n("close");default:return!1}}return(r,o)=>(t.openBlock(),t.createElementBlock("div",{id:`chip-${e.id}`,"data-testid":`chip-${e.id}`,class:t.normalizeClass(["sol-chip-core",{"-selected":e.selected,"-disabled":e.disabled}]),tabindex:"0",title:e.label,"aria-describedby":`chip-description-${e.id}`,"aria-disabled":e.disabled,onClick:o[1]||(o[1]=a=>n("update:selected")),onKeydown:t.withModifiers(i,["self"])},[t.createElementVNode("span",{id:`chip-description-${e.id}`,"z-index":"-1",class:"sr-only"},"Press Delete or Backspace to remove this Chip",8,Ni),t.createElementVNode("span",Ai,[t.renderSlot(r.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.label),1)])]),e.removable?(t.openBlock(),t.createElementBlock("i",{key:0,role:"presentation","aira-hidden":"true",class:"close",onClick:o[0]||(o[0]=t.withModifiers(a=>n("close"),["stop"]))},[t.createVNode(t.unref(cn),{class:"icon"})])):t.createCommentVNode("",!0)],42,Ii))}}),Ko="",Ti={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Mi=[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 Fi(e,n){return t.openBlock(),t.createElementBlock("svg",Ti,Mi)}const Pi={name:"material-symbols-search",render:Fi},Li=["id","data-testid","aria-multiselectable","aria-labelledby"],zi=["id","data-testid","selected","aria-selected","onClick","onKeyup"],Di={key:1},ji={key:0,class:"no-data"},Ri=t.createElementVNode("p",null,"Sem resultado para essa busca",-1),qi=t.defineComponent({__name:"ListOption",props:{id:null,name:null,options:null,multiple:{type:Boolean},isSelected:null},emits:["select"],setup(e,{expose:n,emit:l}){const i=t.ref("");return n({list:i}),(r,o)=>(t.openBlock(),t.createElementBlock("ul",{id:`select-list-${e.id}`,ref_key:"list",ref:i,"data-testid":`select-list-${e.id}`,role:"listbox",tabindex:"-1","aria-multiselectable":e.multiple,"aria-labelledby":`select-label-${e.id}`,class:"select-list-core"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,(a,c)=>(t.openBlock(),t.createElementBlock("li",{id:`option-${e.id}-${a.value}`,key:c,"data-testid":`option-${e.id}-${a.value}`,role:"option",tabindex:"-1",class:"select-option-item",style:t.normalizeStyle(`--item: ${c+1}`),selected:e.isSelected(a),"aria-selected":e.isSelected(a),onClick:s=>l("select",a),onKeyup:[t.withKeys(s=>l("select",a),["enter"]),t.withKeys(s=>l("select",a),["space"])]},[e.multiple?(t.openBlock(),t.createBlock(he,{key:0,id:`option-${e.id}-${a.value}`,class:"pointer-events-none",value:a.value,checked:e.isSelected(a),label:a.name,name:e.name},null,8,["id","value","checked","label","name"])):(t.openBlock(),t.createElementBlock("span",Di,t.toDisplayString(a.name),1))],44,zi))),128)),e.options.length?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("li",ji,[t.renderSlot(r.$slots,"no-data",{},()=>[t.createVNode(t.unref(Pi),{class:"icon"}),Ri])]))],8,Li))}}),ea="",_i={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Qi=[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 Hi(e,n){return t.openBlock(),t.createElementBlock("svg",_i,Qi)}const Ui={name:"mi-search",render:Hi},Zi={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Gi=[t.createElementVNode("path",{fill:"currentColor",d:"m17 10l-5 6l-5-6h10z"},null,-1)];function Yi(e,n){return t.openBlock(),t.createElementBlock("svg",Zi,Gi)}const Wi={name:"mi-caret-down",render:Yi};function St(e,n){function l({code:i}){var a;const r=i;(()=>{if(!(n!=null&&n.fallback))return!1;const c=s=>Array.isArray(s)?!s.includes(r):r!==s;return n!=null&&n.exclude?!e.hasOwnProperty(r)&&c(n.exclude):!e.hasOwnProperty(r)})()&&(n==null||n.fallback()),e.hasOwnProperty(r)&&((a=e[r])==null||a.call(e))}return{navigate:l}}function Ct({target:e,query:n}){const l=t.reactive({id:"",index:-1,rowIndex:-1});function i(d){const b=d!=null?d:l.index,w=e==null?void 0:e.value;h(),d!==void 0&&(l.index=d),setTimeout(()=>{var j;const S=w.children[b],L=n&&S.querySelector(n)?S.querySelector(n):S;l.id=(j=S==null?void 0:S.id)!=null?j:"",L==null||L.focus()},0)}function r(){l.index>0&&(l.index-=1,i())}function o(d){l.index<d-1&&(l.index+=1,i())}function a(){i(0)}function c(d){i(d-1)}function s({query:d,to:b}){var $,k;const w=l.index>=0?l.index:0,L=(e==null?void 0:e.value).children[w],j=Array.isArray(d)?d.flatMap(V=>Array.from(L.querySelectorAll(V))).filter(V=>V):Array.from(L.querySelectorAll(d));if(!j.length)return;const q=l.rowIndex<j.length-1;b==="RIGHT"&&q&&(l.rowIndex+=1,($=j[l.rowIndex])==null||$.focus()),b==="LEFT"&&(l.rowIndex=l.rowIndex>=0?l.rowIndex-1:-1,l.rowIndex<0?L.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:r,focusOnNextItem:o,focusOnFirstItem:a,focusOnLastItem:c,focusInsideRow:s}}const Ji=["data-testid"],Ki=["id","data-testid","data-required"],Xi=["id","data-testid","disabled","aria-expanded","aria-labelledby","aria-label","aria-invalid","aria-describedby","aria-controls","onClick"],er={key:0,class:"container-tags"},tr=["data-testid"],nr=["id","data-testid"],lr={class:"select-options-container"},ir=t.createElementVNode("hr",{class:"text-neutral-high-medium"},null,-1),Ge=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:"md"},placeholder:{default:"Selecione"},searchPlaceholder:{default:"Buscar por"},error:{default:null},useField:null,rules:null,opts:null},emits:["closeDropdown","search","update:selected"],setup(e,{emit:n}){const l=e,i=t.ref(),r=t.ref(!1),o=t.ref(""),a=t.computed(()=>{var v;return l.fetchOnSearch?l.options:(v=l.options)==null?void 0:v.filter(B=>new RegExp(o.value,"gi").test(B.name))});rn(i,()=>{r.value&&d()});const c=t.computed(()=>{var v;return(v=l.name)!=null?v:""}),{value:s,errorMessage:u}=Ve(c.value,{component:"select",error:t.computed(()=>l.error),selected:l==null?void 0:l.selected,rules:l.rules,opts:l.opts,useFieldParent:l.useField});function m(){l.disabled||(r.value?d():h())}function h(){r.value=!0}function d(){A(),n("closeDropdown")}function b(v){if(Array.isArray(s.value)){const B=s.value.findIndex(({value:p})=>p===v.value);return B===-1?[...s.value,v]:s.value.filter((p,C)=>C!==B)}return[v]}function w(v){const B=l.multiple?b(v):v;n("update:selected",B),s.value=B,l.closeOnSelect&&!l.multiple&&d()}function S(v){var B;return Array.isArray(s.value)?s.value.some(({value:p})=>p===v.value):v.value===((B=s==null?void 0:s.value)==null?void 0:B.value)}const L=t.ref(),j=t.ref();function q(){var v;l.searchable&&(z(),(v=L.value)==null||v.focus())}const{elementFocus:$,focusOnFirstItem:k,focusOnLastItem:V,focusOnNextItem:I,focusOnPreviousItem:T,resetStateFocus:z}=Ct({target:j}),{navigate:_}=St({Home:k,End:()=>V(l.options.length),ArrowUp:T,ArrowDown:()=>{!r.value&&h(),I(l.options.length)},Escape:d},{fallback:q,exclude:["Enter","NumpadEnter","Space"]});function A(){r.value=!1,o.value="",z()}function D(v){return B=>{v==="search"?L.value=B==null?void 0:B.input:j.value=B==null?void 0:B.list}}function H(){var B;const v=s.value;return(B=v==null?void 0:v.name)!=null?B:l.placeholder}const J=t.computed(()=>!!(u!=null&&u.value)||!!l.helperText),ne=t.computed(()=>J.value?`input-text-describe-${l.id}`:void 0),Y=t.computed(()=>{var 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,B)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"el",ref:i,class:t.normalizeClass(["sol-select-core",`-${e.size}`]),"data-testid":`select-${e.id}`,onKeydownPassive:B[3]||(B[3]=(...p)=>t.unref(_)&&t.unref(_)(...p))},[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,Ki)):t.createCommentVNode("",!0)]),t.createElementVNode("button",{id:`select-toggle-${e.id}`,"data-testid":`select-toggle-${e.id}`,type:"button",disabled:e.disabled,class:"select-button-toggle","aria-haspopup":"listbox","aria-expanded":r.value,"aria-labelledby":`select-label-${e.id}`,"aria-label":e.ariaLabel,"aria-invalid":!!t.unref(u),"aria-describedby":t.unref(ne),"aria-controls":`select-list-${e.id}`,onClick:t.withModifiers(m,["stop"])},[t.renderSlot(v.$slots,"toggle-dropdown",{toggle:{open:h,close:d,toggleDropdown:m},isOpen:r.value,select:w,selected:e.selected},()=>{var p;return[e.multiple&&Array.isArray(t.unref(s))&&((p=t.unref(s))==null?void 0:p.length)?(t.openBlock(),t.createElementBlock("div",er,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(s),(C,O)=>(t.openBlock(),t.createBlock(Te,{id:`select-value-selected-${e.id}-${C.value}`,key:O,label:C.name,onClick:t.withModifiers(N=>w(C),["stop"]),onClose:N=>w(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,tr)),t.createVNode(t.unref(Wi),{"aria-hidden":"true",tabindex:"-1",class:t.normalizeClass(["icon",{"-open":r.value}])},null,8,["class"])]})],8,Xi),t.unref(J)?t.withDirectives((t.openBlock(),t.createElementBlock("span",{key:0,id:`select-describe-${e.id}`,"data-testid":`select-describe-${e.id}`,class:t.normalizeClass(["message",`-${t.unref(Y).type}`])},t.toDisplayString(t.unref(Y).text),11,nr)),[[t.vShow,!r.value]]):t.createCommentVNode("",!0),t.createVNode(t.Transition,{mode:"out-in",name:"dropdown"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",lr,[t.renderSlot(v.$slots,"search",{},()=>[e.searchable?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["search-container",{"-loading":e.loading}])},[t.createVNode(Tt,{id:`select-search-${e.id}`,ref:D("search"),modelValue:o.value,"onUpdate:modelValue":B[0]||(B[0]=p=>o.value=p),role:"combobox",class:"search",size:"sm","aria-autocomplete":"list",placeholder:e.searchPlaceholder,"aria-expanded":r.value,"aria-haspopup":"listbox","aria-owns":`select-list-${e.id}`,"aria-controls":`select-list-${e.id}`,"aria-activedescendant":t.unref($).id,"aria-labelledby":`select-label-${e.id}`,onClick:B[1]||(B[1]=t.withModifiers(()=>{},["stop"])),onInput:B[2]||(B[2]=p=>{var C;return n("search",(C=p.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(Ui),{"aria-hidden":"true",class:"icon"})],2)):t.createCommentVNode("",!0),ir,t.createVNode(qi,{id:e.id,ref:D("list"),options:t.unref(a),name:t.unref(c),multiple:e.multiple,"is-selected":S,onSelect:w},{"no-data":t.withCtx(()=>[t.renderSlot(v.$slots,"no-data")]),_:3},8,["id","options","name","multiple"])])],512),[[t.vShow,r.value]])]),_:3})],42,Ji))}}),la="";Ge.install=e=>{e.component("SolSelect",Ge)},Te.install=e=>{e.component("SolChip",Te)};const rr=["id","data-testid","title"],Ye=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,rr))}}),ia="";Ye.install=e=>{e.component("SolTag",Ye)};const or={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},ar=[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 sr(e,n){return t.openBlock(),t.createElementBlock("svg",or,ar)}const cr={name:"material-symbols-check-circle-outline",render:sr},dr={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},ur=[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 fr(e,n){return t.openBlock(),t.createElementBlock("svg",dr,ur)}const mr={name:"material-symbols-warning-outline",render:fr},hr={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},yr=[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 gr(e,n){return t.openBlock(),t.createElementBlock("svg",hr,yr)}const br={name:"material-symbols-cancel-outline",render:gr},kr={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},pr=[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 $r(e,n){return t.openBlock(),t.createElementBlock("svg",kr,pr)}const wr={name:"material-symbols-info-outline",render:$r},Sr=["id","data-testid"],Cr={class:"container-content"},xr={class:"content"},Er={key:0,class:"title"},We=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",Cr,[e.feedback==="success"?(t.openBlock(),t.createBlock(t.unref(cr),{key:0,class:"icon","aria-hidden":"true"})):t.createCommentVNode("",!0),e.feedback==="warning"?(t.openBlock(),t.createBlock(t.unref(mr),{key:1,class:"icon","aria-hidden":"true"})):t.createCommentVNode("",!0),e.feedback==="error"?(t.openBlock(),t.createBlock(t.unref(br),{key:2,class:"icon","aria-hidden":"true"})):t.createCommentVNode("",!0),e.feedback==="informative"?(t.openBlock(),t.createBlock(t.unref(wr),{key:3,class:"icon","aria-hidden":"true"})):t.createCommentVNode("",!0),t.createElementVNode("div",xr,[e.title?(t.openBlock(),t.createElementBlock("strong",Er,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(de,{key:0,id:`alert-action-${e.id}`,variant:"secondary",size:"small",onClick:i[0]||(i[0]=r=>n("click"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.action),1)]),_:1},8,["id"])):t.createCommentVNode("",!0)],10,Sr))}}),ca="";We.install=e=>{e.component("SolAlert",We)};const vr={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Br=[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 Or(e,n){return t.openBlock(),t.createElementBlock("svg",vr,Br)}const dn={name:"material-symbols-keyboard-arrow-down-rounded",render:Or},Vr=["id","data-testid","aria-disabled"],Ir=["data-testid","tabindex"],Nr={class:"container-title"},Ar={class:"icon"},Tr=["data-testid"],Je=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",Nr,[t.createElementVNode("span",Ar,[t.renderSlot(n.$slots,"icon")]),t.renderSlot(n.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(e.title),1)])]),t.createVNode(t.unref(dn),{class:"icon","aria-hidden":"true"})],8,Ir),t.createElementVNode("div",{"data-testid":`accordion-content-${e.id}`,class:"accordion-content"},[t.renderSlot(n.$slots,"default")],8,Tr)],10,Vr))}}),ua="";Je.install=e=>{e.component("SolAccordion",Je)};const Mr=["id","data-testid"],Fr=["id","aria-expanded"],Pr=["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();rn(n,()=>{h()});const l=t.ref(!1),i=t.ref(),r=t.computed(()=>i.value?i.value.childElementCount:0),{resetStateFocus:o,focusOnPreviousItem:a,focusOnNextItem:c,focusOnFirstItem:s,focusOnLastItem:u}=Ct({target:i,query:'[role="menuitem"]'}),{navigate:m}=St({Home:s,End:()=>u(r.value),ArrowUp:a,ArrowDown:()=>{!l.value&&d(),c(r.value)},Escape:h});function h(){l.value=!1,o()}function d(){l.value=!0}function b(){l.value?h():d()}return(w,S)=>(t.openBlock(),t.createElementBlock("div",{id:`menu-${e.id}`,ref_key:"el",ref:n,"data-testid":`menu-${e.id}`,class:t.normalizeClass([`-${e.position}`,"sol-menu-core"]),onKeyupPassive:S[0]||(S[0]=(...L)=>t.unref(m)&&t.unref(m)(...L))},[t.renderSlot(w.$slots,"trigger",{id:`menu-button-${e.id}`,toggle:b,isOpen:l.value,arias:{role:"menuitem",class:"toggle-menu",ariaHaspopup:!0,ariaExpanded:l.value}},()=>[t.createElementVNode("button",{id:`menu-button-${e.id}`,type:"button",role:"menuitem",class:"toggle-menu","aria-haspopup":"true","aria-expanded":l.value,onClick:b},[t.renderSlot(w.$slots,"label",{isOpen:l.value},()=>[t.createTextVNode(t.toDisplayString(e.label),1)])],8,Fr)]),t.withDirectives(t.createElementVNode("menu",{id:`menu-container-${e.id}`,ref_key:"menu",ref:i,"data-testid":`menu-container-${e.id}`,role:"menu","aria-labelledby":`menu-button-${e.id}`,class:t.normalizeClass(["menu",{"-open":l.value}])},[t.renderSlot(w.$slots,"default",{close:h})],10,Pr),[[t.vShow,l.value]])],42,Mr))}}),fa="",Lr=["itemprop"],zr=t.defineComponent({__name:"TextValue",props:{itemProp:null,property:null,value:null,isHighlightValue:{type:Boolean},align:{default:"left"},hide:{type:Boolean}},setup(e){return(n,l)=>(t.openBlock(),t.createElementBlock("p",{class:t.normalizeClass(["text-property-value",`-${e.align}`])},[t.createElementVNode("span",{class:t.normalizeClass(["property",{"-hide":e.hide}])},[t.renderSlot(n.$slots,"property",{},()=>[t.createTextVNode(t.toDisplayString(e.property),1)])],2),t.createElementVNode("span",{itemprop:e.itemProp,class:t.normalizeClass(["value",{"-highlight":e.isHighlightValue}])},[t.renderSlot(n.$slots,"value",{},()=>[t.createTextVNode(t.toDisplayString(e.value),1)])],10,Lr)],2))}}),ma="",Dr=["id","data-testid"],jr={key:0,"data-interactive":"",class:"selectable"},Rr={key:1,class:"column-item -image"},qr=["data-testid"],_r={key:2,class:"menu-action","data-interactive":""},Qr=t.defineComponent({__name:"ListItem",props:{id:null,itemIndex:null,headers:null,data:null,hasMenu:null,hasImage:null,renderHeader:null,isHighlight:null,isSelected:null,fallbackValue:null,setFixedColumnSize:null,sortPositions:null},setup(e){const n=e,l=t.useSlots(),i=t.computed(()=>!!(l!=null&&l.selectable));function r(s){return s!=null?s:n.fallbackValue}function o(s){return i.value&&s===0}function a(s){return n.hasImage&&s===0}function c(s,u){return n.hasMenu&&s===0&&u===0}return(s,u)=>(t.openBlock(),t.createElementBlock("li",{id:`listitem-${e.id}-${e.itemIndex}`,"data-testid":`listitem-${e.id}-${e.itemIndex}`,class:t.normalizeClass(["list-item",{"-selected":e.isSelected}]),tabindex:"-1"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.sortPositions,(m,h)=>(t.openBlock(),t.createElementBlock("div",{key:h,class:"list-item-row"},[o(h)?(t.openBlock(),t.createElementBlock("div",jr,[t.renderSlot(s.$slots,"selectable",{data:e.data,index:e.itemIndex,label:`${e.data[m[0]]}`})])):t.createCommentVNode("",!0),a(h)?(t.openBlock(),t.createElementBlock("div",Rr,[t.renderSlot(s.$slots,"image",{data:e.data})])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m,(d,b)=>(t.openBlock(),t.createElementBlock("div",{key:b,style:t.normalizeStyle(`${e.setFixedColumnSize(d)}`),class:"column-item","data-testid":`listitem-column-${e.id}-${e.itemIndex}-${d}`},[t.renderSlot(s.$slots,`column:${d}`,{data:{key:d,value:e.data[d]},index:e.itemIndex,columnIndex:b,renderHeader:e.renderHeader,headers:e.headers},()=>{var w,S,L,j;return[t.createVNode(zr,{"data-testid":`listitem-${e.id}-${e.itemIndex}-${d}`,"item-prop":d,hide:(S=(w=e.headers)==null?void 0:w[d])==null?void 0:S.hide,align:(j=(L=e.headers)==null?void 0:L[d])==null?void 0:j.align,"is-highlight-value":e.isHighlight({key:d})},{property:t.withCtx(()=>[t.renderSlot(s.$slots,`header:${d}`,{data:{key:d,value:e.data[d]},index:h,columnIndex:b,renderHeader:e.renderHeader,headers:e.headers},()=>[t.createTextVNode(t.toDisplayString(e.renderHeader(d)),1)])]),value:t.withCtx(()=>[t.renderSlot(s.$slots,`value:${d}`,{data:{key:d,value:e.data[d]},index:h,columnIndex:b,isHighlight:e.isHighlight},()=>[t.createTextVNode(t.toDisplayString(r(e.data[d])),1)])]),_:2},1032,["data-testid","item-prop","hide","align","is-highlight-value"])]})],12,qr))),128)),c(h,0)?(t.openBlock(),t.createElementBlock("div",_r,[t.renderSlot(s.$slots,"action-button",{arias:{testid:`list-row-action-${e.id}-${e.itemIndex}`,data:e.data,index:e.itemIndex,ariaLabel:"Open menu"}})])):t.createCommentVNode("",!0)]))),128))],10,Dr))}}),ha="",Hr={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Ur=[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 Zr(e,n){return t.openBlock(),t.createElementBlock("svg",Hr,Ur)}const Gr={name:"material-symbols-more-vert",render:Zr},Yr=["id","data-testid","aria-label"],Ke=t.defineComponent({__name:"List",props:{id:null,data:null,headers:null,selected:null,ariaLabel:{default:"List of data"},selectMode:null,dataIdentifier:{default:()=>({key:"id"})},sortPositions:null,fallbackValue:{default:"-"}},emits:["listitem:click","listitem:selected","update:selected"],setup(e,{expose:n,emit:l}){var B;const i=e,r=t.useSlots(),o=t.computed(()=>!!(r!=null&&r.menu)),a=t.computed(()=>!!(r!=null&&r.image)),c=Si("(min-width: 1024px)"),s=t.computed(()=>{var p,C,O;return(C=(p=i.sortPositions)==null?void 0:p.mobile)!=null&&C.length?(O=i.sortPositions)==null?void 0:O.mobile:h()}),u=t.computed(()=>{var p;return(p=i.sortPositions)!=null&&p.desktop.length?i.sortPositions.desktop:Object.keys(i.data[0])}),m=t.computed(()=>c.value?[u.value]:s.value);function h(){return Object.keys(i.data[0]).reduce((C,O,N)=>{if(N===0)return C=[[O]];if(N===1)return C=[...C,[O]];const P=C==null?void 0:C.length,y=C==null?void 0:C[P-1];return Array.isArray(y)&&(y==null?void 0:y.length)<2?(C[P-1]=[...y,O],C):C=[...C,[O]]},[])}function d(p){var C,O;return(O=i.headers&&((C=i.headers[p])==null?void 0:C.text))!=null?O:p}function b(p){var C,O,N,P,y,E,Q,se,ee;if((C=i.headers)!=null&&C[p]){if(((N=(O=i.headers)==null?void 0:O[p])==null?void 0:N.width)&&c.value)return`--basis-width: ${(y=(P=i.headers)==null?void 0:P[p])==null?void 0:y.width}; --shrink: 0;`;if(((Q=(E=i.headers)==null?void 0:E[p])==null?void 0:Q.mobileWidth)&&!c.value)return`--basis-width: ${(ee=(se=i.headers)==null?void 0:se[p])==null?void 0:ee.mobileWidth}; --shrink: 0;`}}function w({key:p,value:C}){var O,N;return C?!0:p?!!((N=(O=i.headers)==null?void 0:O[p])!=null&&N.highlight):!1}const S=t.ref(),L=["[data-interactive] input","[data-interactive-element]","[data-interactive] button"],{elementFocus:j,focusInsideRow:q,focusOnFirstItem:$,focusOnLastItem:k,focusOnNextItem:V,focusOnPreviousItem:I,resetStateFocus:T}=Ct({target:S}),{navigate:z}=St({Home:$,End:()=>k(i.data.length),ArrowUp:()=>!_()&&I(),ArrowDown:()=>!_()&&V(i.data.length),ArrowLeft:()=>j.id&&q({to:"LEFT",query:L}),ArrowRight:()=>j.id&&q({to:"RIGHT",query:L})},{fallback:T,exclude:["Enter","NumpadEnter","Space"]});function _(){var p,C;if(document.activeElement&&((p=document.activeElement)==null?void 0:p.role)){const O=document.activeElement.role,N=(C=document.activeElement)==null?void 0:C.parentElement;return O==="menuitem"?!0:!!(()=>O==="none"&&(N==null?void 0:N.role)&&["menuitem","menu"].includes(N.role))()}return!1}const A=t.ref((B=i==null?void 0:i.selected)!=null?B:{});function D(p){if(A.value){const C=i.dataIdentifier.key,O=p[C];return i.selectMode&&i.selectMode==="checkbox"&&Array.isArray(A.value)?A.value.findIndex(P=>P[C]===O)>=0:A.value[C]===O}return!1}function H(p){A.value=p,l("listitem:selected",p),l("update:selected",A.value)}function J(p){const C=i.dataIdentifier.key,O=p[C],N=Array.isArray(A.value)?A.value:[],P=D(p)?N==null?void 0:N.filter(y=>y[C]!==O):ne(p);A.value=P,l("listitem:selected",p),l("update:selected",A.value)}function ne(p){var C;if(Array.isArray(A.value)){const O=i.dataIdentifier.key,N=A.value.findIndex(P=>P[O]===p[O]);return N===-1?[...A.value,p]:(C=A.value)==null?void 0:C.filter((P,y)=>y!==N)}return[p]}function Y(){const p=Object.keys(i.data[0]).includes(i.dataIdentifier.key);if(i.selectMode==="checkbox"&&p){A.value=i.data,l("update:selected",A.value);return}console.warn('The Prop `dataIdentifier.key` must be a valid key; and The Prop `selectMode` must be "checkbox"'),console.warn(`Your Prop [dataIdentifier.key] is ${i.dataIdentifier.key} and [selectMode] is ${i.selectMode}`)}function v(){A.value=i.selectMode==="checkbox"&&Array.isArray(A.value)?[]:{},l("update:selected",A.value)}return n({unselectAll:v,selectAll:Y}),(p,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]=(...O)=>t.unref(z)&&t.unref(z)(...O))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.data,(O,N)=>(t.openBlock(),t.createBlock(Qr,{id:e.id,key:N,headers:e.headers,data:O,"item-index":N,"is-selected":D(O),"sort-positions":t.unref(m),"fallback-value":e.fallbackValue,"has-image":t.unref(a),"has-menu":t.unref(o),"render-header":d,"is-highlight":w,"set-fixed-column-size":b,onClick:t.withModifiers(P=>l("listitem:click",{...O,index:N}),["self"]),onKeyup:[t.withKeys(t.withModifiers(P=>l("listitem:click",{...O,index:N}),["self"]),["enter"]),t.withKeys(t.withModifiers(P=>l("listitem:click",{...O,index:N}),["self"]),["space"])]},t.createSlots({selectable:t.withCtx(({data:P,label:y})=>{var E,Q,se,ee,te,ie;return[e.selectMode==="checkbox"?(t.openBlock(),t.createBlock(he,{key:0,id:`listitem-${P[(E=e.dataIdentifier)==null?void 0:E.key]}`,"hide-label":!0,label:y,checked:D(O),value:P[(Q=e.dataIdentifier)==null?void 0:Q.key],name:(se=e.dataIdentifier.inputName)!=null?se:e.id,onChange:Pe=>J(P)},null,8,["id","label","checked","value","name","onChange"])):t.createCommentVNode("",!0),e.selectMode==="radio"?(t.openBlock(),t.createBlock($e,{key:1,id:`listitem-${P[(ee=e.dataIdentifier)==null?void 0:ee.key]}`,"hide-label":!0,label:y,checked:D(O),value:P[(te=e.dataIdentifier)==null?void 0:te.key],name:(ie=e.dataIdentifier.inputName)!=null?ie:e.id,onChange:Pe=>H(P)},null,8,["id","label","checked","value","name","onChange"])):t.createCommentVNode("",!0)]}),"action-button":t.withCtx(({arias:P})=>[t.renderSlot(p.$slots,"action-button",{arias:P},()=>[t.createVNode(we,{id:`listitem-${e.id}-${N}`,position:"left"},{trigger:t.withCtx(({arias:y,id:E,toggle:Q})=>[t.createVNode(de,{id:E,"aria-haspopup":y.ariaHaspopup,"aria-expanded":y.ariaExpanded,role:y.role,size:"small",variant:"tertiary","aria-label":P.ariaLabel,class:"menu-button-trigger",onClick:Q},{"icon-left":t.withCtx(()=>[t.createVNode(t.unref(Gr),{class:"text-2xs","aria-hidden":"true"})]),_:2},1032,["id","aria-haspopup","aria-expanded","role","aria-label","onClick"])]),default:t.withCtx(()=>[t.renderSlot(p.$slots,"menu")]),_:2},1032,["id"])])]),_:2},[t.unref(a)?{name:"image",fn:t.withCtx(({data:P})=>[t.renderSlot(p.$slots,"image",{data:P})]),key:"0"}:void 0,t.renderList(O,(P,y)=>({name:`column:${y}`,fn:t.withCtx(E=>[t.renderSlot(p.$slots,`column:${y}`,{data:E.data,index:E.index,columnIndex:N,renderHeader:d,headers:e.headers})])})),t.renderList(O,(P,y)=>({name:`header:${y}`,fn:t.withCtx(E=>[t.renderSlot(p.$slots,`header:${y}`,{data:E.data,index:E.index,columnIndex:E.columnIndex,renderHeader:E.renderHeader,headers:E.headers})])})),t.renderList(O,(P,y)=>({name:`value:${y}`,fn:t.withCtx(E=>[t.renderSlot(p.$slots,`value:${y}`,{data:E.data,index:E.index,columnIndex:E.columnIndex,isHighlight:E.isHighlight})])}))]),1032,["id","headers","data","item-index","is-selected","sort-positions","fallback-value","has-image","has-menu","onClick","onKeyup"]))),128))],40,Yr))}}),ga="";Ke.install=e=>{e.component("SolList",Ke)},we.install=e=>{e.component("SolMenu",we)};const Wr=["id"],Jr=["href","target"],Me=t.defineComponent({__name:"MenuItemLink",props:{id:null,linkId:null,text:null,link:null,active:null,external:null},emits:["clicked"],setup(e,{emit:n}){return(l,i)=>{var r;return t.openBlock(),t.createElementBlock("li",{id:`menu-item-link-${e.id}`,class:"sol-menuitem-link-core",tabindex:"-1",role:"none",onClick:i[0]||(i[0]=o=>n("clicked")),onKeyup:[i[1]||(i[1]=t.withKeys(o=>n("clicked"),["enter"])),i[2]||(i[2]=t.withKeys(o=>n("clicked"),["space"]))]},[t.renderSlot(l.$slots,"default",{id:(r=e.linkId)!=null?r:e.id,active:e.active,link:e.link,text:e.text,external:e.external},()=>[t.createElementVNode("a",{role:"menuitem",class:t.normalizeClass({"-active":e.active}),href:e.link,target:e.external?"_blank":"_parent"},t.toDisplayString(e.text),11,Jr)])],40,Wr)}}}),ba="";Me.install=e=>{e.component("SolMenuItemLink",Me)};const Kr={class:"label-container"},Xr={class:"label"},Xe=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",Kr,[t.createElementVNode("span",Xr,t.toDisplayString(e.label),1),t.createVNode(t.unref(dn),{class:t.normalizeClass(["icon",{"-opened":i}]),"aria-hidden":"true"},null,8,["class"])])])]),default:t.withCtx(({close:i})=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.linkItems,(r,o)=>{var a;return t.openBlock(),t.createBlock(Me,{id:`${e.id}-${(a=r==null?void 0:r.id)!=null?a:r.text}`,key:o,"link-id":r.id,text:r.text,link:r.link,external:r.external,active:r.active,onClicked:i},{default:t.withCtx(()=>{var c;return[t.renderSlot(n.$slots,"default",{id:(c=r.id)!=null?c:e.id,active:r.active,link:r.link,text:r.text,external:r.external})]}),_:2},1032,["id","link-id","text","link","external","active","onClicked"])}),128))]),_:3},8,["id"]))}}),ka="";Xe.install=e=>{e.component("SolMenuNavigationLinks",Xe)};const pa="",$a="",wa="",Sa="",un=12,Se={type:"success",timeout:5e3,showIcon:!0,showCloseButton:!0,position:"top-right",hideProgressBar:!1};function eo(e,n){const l=t.reactive({id:null,intervalId:null,startTime:0,remaining:n}),i=t.ref(100);function r(){clearInterval(l.intervalId),clearTimeout(l.id),l.remaining-=Date.now()-l.startTime}function o(){l.startTime=Date.now(),clearTimeout(l.id),l.intervalId=setInterval(()=>{i.value--},n/100-5),l.id=setTimeout(e,l.remaining)}function a(){clearInterval(l.intervalId),clearTimeout(l.id),i.value=100}return t.onMounted(()=>{if(n<=0)return!1}),t.onUnmounted(()=>{a()}),{start:o,stop:r,clear:a,progress:i}}function to(e){return{stylePosition:t.computed(()=>{const{position:l,offset:i}=e();switch(l){case"top-left":return{left:"0",top:`${i}px`};case"bottom-left":return{left:"0",bottom:`${i}px`};case"bottom-right":return{right:"0",bottom:`${i}px`};case"top-center":return{top:`${i}px`,left:"0",right:"0",marginRight:"auto",marginLeft:"auto"};case"bottom-center":return{bottom:`${i}px`,left:"0",right:"0",marginRight:"auto",marginLeft:"auto"};default:return{right:"0",top:`${i}px`}}})}}var fn=(e=>(e["top-left"]="bounce-left",e["top-right"]="bounce-right",e["top-center"]="bounce-down",e["bottom-left"]="bounce-left",e["bottom-center"]="bounce-up",e["bottom-right"]="bounce-right",e))(fn||{});const no={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},lo=[t.createElementVNode("path",{fill:"currentColor",d:"M12 4a8 8 0 1 0 0 16a8 8 0 0 0 0-16zM2 12C2 6.477 6.477 2 12 2s10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12zm14.664-3.247a1 1 0 0 1 .083 1.411l-5.333 6a1 1 0 0 1-1.495 0l-2.666-3a1 1 0 0 1 1.494-1.328l1.92 2.159l4.586-5.16a1 1 0 0 1 1.411-.082z"},null,-1)];function io(e,n){return t.openBlock(),t.createElementBlock("svg",no,lo)}const ro={name:"mi-circle-check",render:io},oo={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},ao=[t.createElementVNode("path",{fill:"currentColor",d:"M12 4a8 8 0 1 0 0 16a8 8 0 0 0 0-16zM2 12C2 6.477 6.477 2 12 2s10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12zm5.793-4.207a1 1 0 0 1 1.414 0L12 10.586l2.793-2.793a1 1 0 1 1 1.414 1.414L13.414 12l2.793 2.793a1 1 0 0 1-1.414 1.414L12 13.414l-2.793 2.793a1 1 0 0 1-1.414-1.414L10.586 12L7.793 9.207a1 1 0 0 1 0-1.414z"},null,-1)];function so(e,n){return t.openBlock(),t.createElementBlock("svg",oo,ao)}const co={name:"mi-circle-error",render:so},uo={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},fo=[t.createElementVNode("g",{fill:"currentColor"},[t.createElementVNode("path",{d:"M12 4a8 8 0 1 0 0 16a8 8 0 0 0 0-16zM2 12C2 6.477 6.477 2 12 2s10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12z"}),t.createElementVNode("path",{d:"M12 14a1 1 0 0 1-1-1V7a1 1 0 1 1 2 0v6a1 1 0 0 1-1 1zm-1.5 2.5a1.5 1.5 0 1 1 3 0a1.5 1.5 0 0 1-3 0z"})],-1)];function mo(e,n){return t.openBlock(),t.createElementBlock("svg",uo,fo)}const ho={name:"mi-circle-warning",render:mo},yo=["id","data-testid"],go={class:"content-wrapper"},bo={key:0,class:"icon-container","aria-hidden":"true"},ko={class:"content"},po={key:0,class:"description"},$o=["data-testid"],wo=t.defineComponent({__name:"Toast",props:{id:null,type:{default:Se.type},visible:{type:Boolean,default:!1},title:null,description:null,timeout:null,hideProgressBar:{type:Boolean,default:Se.hideProgressBar},showIcon:{type:Boolean,default:Se.showIcon},offset:{default:0},onClose:null,onCloseHandler:null,position:{default:Se.position}},setup(e){const n=e,{start:l,stop:i,progress:r}=eo(()=>{var u;(u=n.onCloseHandler)==null||u.call(n)},n.timeout),{stylePosition:o}=to(()=>({offset:n.offset,position:n.position})),a=t.computed(()=>n.title&&n.description);function c(){n.timeout>0&&i()}function s(){l()}return t.onMounted(()=>{l()}),(u,m)=>(t.openBlock(),t.createBlock(t.Transition,{name:t.unref(fn)[e.position],type:"animation"},{default:t.withCtx(()=>[e.visible?(t.openBlock(),t.createElementBlock("div",{key:0,id:`toast-${e.type}-${e.id}`,role:"status","data-testid":`toast-${e.type}-${e.id}`,style:t.normalizeStyle(t.unref(o)),class:t.normalizeClass(["sol-toast-core",[`-${e.type}`,{"-multiline":t.unref(a)}]]),onKeyup:m[1]||(m[1]=t.withKeys((...h)=>e.onCloseHandler&&e.onCloseHandler(...h),["esc"])),onMouseenter:c,onMouseleave:s,onFocusin:c,onFocusout:s},[t.createElementVNode("section",go,[e.showIcon?(t.openBlock(),t.createElementBlock("div",bo,[t.renderSlot(u.$slots,"icon-status",{type:e.type},()=>[e.type==="success"?(t.openBlock(),t.createBlock(t.unref(ro),{key:0,class:"icon"})):t.createCommentVNode("",!0),e.type==="info"?(t.openBlock(),t.createBlock(t.unref(ho),{key:1,class:"icon"})):t.createCommentVNode("",!0),e.type==="danger"?(t.openBlock(),t.createBlock(t.unref(co),{key:2,class:"icon"})):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0),t.createElementVNode("div",ko,[t.createElementVNode("p",{class:t.normalizeClass(["title",{"-multiline":t.unref(a)}])},[t.renderSlot(u.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(e.title),1)])],2),e.description?(t.openBlock(),t.createElementBlock("p",po,[t.renderSlot(u.$slots,"description",{},()=>[t.createTextVNode(t.toDisplayString(e.description),1)])])):t.createCommentVNode("",!0)])]),t.createElementVNode("button",{type:"button",class:t.normalizeClass(["close",{"-multiline":t.unref(a)}]),"data-testid":`toast-close-button-${e.type}-${e.id}`,"aria-label":"close notification",onClick:m[0]||(m[0]=(...h)=>e.onCloseHandler&&e.onCloseHandler(...h))},[t.createVNode(t.unref(cn),{class:"icon"})],10,$o),e.hideProgressBar?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:"progressbar","aria-hidden":"true",style:t.normalizeStyle({width:`${t.unref(r)}%`})},null,4))],46,yo)):t.createCommentVNode("",!0)]),_:3},8,["name"]))}}),va="",Fe={"top-left":[],"top-right":[],"top-center":[],"bottom-left":[],"bottom-right":[],"bottom-center":[]};function So(){let e=0;function n(){Object.entries(Fe).forEach(([i,r])=>{r.length&&r.forEach(o=>{var c;const a=(c=o.toastVNode.props)==null?void 0:c.id;xt(a,i)})})}return{createToast:(i,r)=>{const o=e++,a=r?Co(r):Se;return r!=null&&r.showOneToast&&n(),xo(o,a,typeof i=="string"?{title:i}:i),{close:()=>xt(o,a.position)}},clearAllToasts:n}}function Co(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 xo(e,n,l){setTimeout(()=>{const i=vo(n,Fe,un),r=document.createElement("div");document.body.appendChild(r);const o=t.createVNode(wo,Eo(n,e,i,xt,l));t.render(o,r),Fe[n.position].push({toastVNode:o,container:r}),o.component&&(o.component.props.visible=!0)},1)}function Eo(e,n,l,i,r){return{...e,...r,id:n,offset:l,visible:!1,onCloseHandler(){i(n,e.position?e.position:"top-right")}}}function vo(e,n,l){if(!e.position)throw new Error("no position");return n[e.position].reduce((i,{toastVNode:r})=>(i+=r.el.offsetHeight+l||0,i),l)}function Bo(e,n,l,i){for(let r=e;r<n.length;r++){const{toastVNode:o}=n[r];if(!o.el)return;const a=l.split("-")[0]||"top",c=parseInt(o.el.style[a],10)-i-un;if(!o.component)return;o.component.props.offset=c}}function xt(e,n){var s;const l=Fe[n],i=l.findIndex(({toastVNode:u})=>{var m;return e===((m=u==null?void 0:u.props)==null?void 0:m.id)});if(i===-1)return;const{container:r,toastVNode:o}=l[i],a=(s=o==null?void 0:o.el)==null?void 0:s.offsetHeight;if(Fe[n].splice(i,1),Bo(i,l,n,a),!o.component)return;const c=o.component.props;c.visible=!1,c.onClose&&c.onClose(),setTimeout(()=>{t.render(null,r),document.body.removeChild(r)},1e3)}console.log("%c\u{1F33B}[Girassol]\u{1F33B}","padding: 8px;background: #212121;color: gold; font-family: 'Fira code'; font-weight: bold; font-size: 1.2rem");const Et={SolButton:de,SolButtonDestructive:et,SolInputTextarea:_e,SolInputText:Ie,SolInputTextPassword:qe,SolRadio:$e,SolRadioGroup:He,SolCheckbox:he,SolCheckboxGroup:Ue,SolSwitch:Qe,SolSelect:Ge,SolChip:Te,SolTag:Ye,SolAlert:We,SolAccordion:Je,SolList:Ke,SolMenu:we,SolMenuItemLink:Me,SolMenuNavigationLinks:Xe};function Oo(e){for(const n in Et)e.component(n,Et[n])}R.SolAccordion=Je,R.SolAlert=We,R.SolButton=de,R.SolButtonDestructive=et,R.SolCheckbox=he,R.SolCheckboxGroup=Ue,R.SolChip=Te,R.SolInputText=Ie,R.SolInputTextPassword=qe,R.SolInputTextarea=_e,R.SolList=Ke,R.SolMenu=we,R.SolMenuItemLink=Me,R.SolMenuNavigationLinks=Xe,R.SolRadio=$e,R.SolRadioGroup=He,R.SolSelect=Ge,R.SolSwitch=Qe,R.SolTag=Ye,R.components=Et,R.install=Oo,R.useToast=So,Object.defineProperties(R,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
14
|
+
*/function ge(e){return typeof e=="function"}function Ce(e){return e==null}const ue=e=>e!==null&&!!e&&typeof e=="object"&&!Array.isArray(e);function Pt(e){return Number(e)>=0}function Qn(e){const n=parseFloat(e);return isNaN(n)?e:n}const _n={};function Hn(e){return _n[e]}const me=Symbol("vee-validate-form"),Un=Symbol("vee-validate-field-instance"),ze=Symbol("Default empty value");function ot(e){return ge(e)&&!!e.__locatorRef}function ve(e){return!!e&&ge(e.validate)}function be(e){return e==="checkbox"||e==="radio"}function Zn(e){return ue(e)||Array.isArray(e)}function Lt(e){return Array.isArray(e)?e.length===0:ue(e)&&Object.keys(e).length===0}function je(e){return/^\[.+\]$/i.test(e)}function Gn(e){return qt(e)&&e.multiple}function qt(e){return e.tagName==="SELECT"}function Yn(e,n){const l=![!1,null,void 0,0].includes(n.multiple)&&!Number.isNaN(n.multiple);return e==="select"&&"multiple"in n&&l}function Wn(e,n){return!Yn(e,n)&&n.type!=="file"&&!be(n.type)}function Dt(e){return at(e)&&e.target&&"submit"in e.target}function at(e){return e?!!(typeof Event<"u"&&ge(Event)&&e instanceof Event||e&&e.srcElement):!1}function zt(e,n){return n in e&&e[n]!==ze}var jt=function e(n,l){if(n===l)return!0;if(n&&l&&typeof n=="object"&&typeof l=="object"){if(n.constructor!==l.constructor)return!1;var i,r,o;if(Array.isArray(n)){if(i=n.length,i!=l.length)return!1;for(r=i;r--!==0;)if(!e(n[r],l[r]))return!1;return!0}if(n.constructor===RegExp)return n.source===l.source&&n.flags===l.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===l.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===l.toString();if(o=Object.keys(n),i=o.length,i!==Object.keys(l).length)return!1;for(r=i;r--!==0;)if(!Object.prototype.hasOwnProperty.call(l,o[r]))return!1;for(r=i;r--!==0;){var a=o[r];if(!e(n[a],l[a]))return!1}return!0}return n!==n&&l!==l};function st(e){return je(e)?e.replace(/\[|\]/gi,""):e}function U(e,n,l){return e?je(n)?e[st(n)]:(n||"").split(/\.|\[(\d+)\]/).filter(Boolean).reduce((r,o)=>Zn(r)&&o in r?r[o]:l,e):l}function fe(e,n,l){if(je(n)){e[st(n)]=l;return}const i=n.split(/\.|\[(\d+)\]/).filter(Boolean);let r=e;for(let o=0;o<i.length;o++){if(o===i.length-1){r[i[o]]=l;return}(!(i[o]in r)||Ce(r[i[o]]))&&(r[i[o]]=Pt(i[o+1])?[]:{}),r=r[i[o]]}}function ct(e,n){if(Array.isArray(e)&&Pt(n)){e.splice(Number(n),1);return}ue(e)&&delete e[n]}function dt(e,n){if(je(n)){delete e[st(n)];return}const l=n.split(/\.|\[(\d+)\]/).filter(Boolean);let i=e;for(let o=0;o<l.length;o++){if(o===l.length-1){ct(i,l[o]);break}if(!(l[o]in i)||Ce(i[l[o]]))break;i=i[l[o]]}const r=l.map((o,a)=>U(e,l.slice(0,a).join(".")));for(let o=r.length-1;o>=0;o--)if(!!Lt(r[o])){if(o===0){ct(e,l[0]);continue}ct(r[o-1],l[o-1])}}function W(e){return Object.keys(e)}function Ee(e,n=void 0){const l=t.getCurrentInstance();return(l==null?void 0:l.provides[e])||t.inject(e,n)}function ut(e){t.warn(`[vee-validate]: ${e}`)}function Jn(e){return Array.isArray(e)?e[0]:e}function ft(e,n,l){if(Array.isArray(e)){const i=[...e],r=i.findIndex(o=>jt(o,n));return r>=0?i.splice(r,1):i.push(n),i}return jt(e,n)?l:n}function Kn(e,n){let l,i;return function(...r){const o=this;return l||(l=!0,setTimeout(()=>l=!1,n),i=e.apply(o,r)),i}}function Rt(e,n=0){let l=null,i=[];return function(...r){return l&&window.clearTimeout(l),l=window.setTimeout(()=>{const o=e(...r);i.forEach(a=>a(o)),i=[]},n),new Promise(o=>i.push(o))}}function Xn(e,n){return ue(n)&&n.number?Qn(e):e}function mt(e,n){let l;return async function(...r){const o=e(...r);l=o;const a=await o;return o!==l||(l=void 0,n(a,r)),a}}const Re=(e,n,l)=>n.slots.default?typeof e=="string"||!e?n.slots.default(l()):{default:()=>{var i,r;return(r=(i=n.slots).default)===null||r===void 0?void 0:r.call(i,l())}}:n.slots.default;function ht(e){if(Qt(e))return e._value}function Qt(e){return"_value"in e}function yt(e){if(!at(e))return e;const n=e.target;if(be(n.type)&&Qt(n))return ht(n);if(n.type==="file"&&n.files){const l=Array.from(n.files);return n.multiple?l:l[0]}if(Gn(n))return Array.from(n.options).filter(l=>l.selected&&!l.disabled).map(ht);if(qt(n)){const l=Array.from(n.options).find(i=>i.selected);return l?ht(l):n.value}return n.value}function _t(e){const n={};return Object.defineProperty(n,"_$$isNormalized",{value:!0,writable:!1,enumerable:!1,configurable:!1}),e?ue(e)&&e._$$isNormalized?e:ue(e)?Object.keys(e).reduce((l,i)=>{const r=el(e[i]);return e[i]!==!1&&(l[i]=Ht(r)),l},n):typeof e!="string"?n:e.split("|").reduce((l,i)=>{const r=tl(i);return r.name&&(l[r.name]=Ht(r.params)),l},n):n}function el(e){return e===!0?[]:Array.isArray(e)||ue(e)?e:[e]}function Ht(e){const n=l=>typeof l=="string"&&l[0]==="@"?nl(l.slice(1)):l;return Array.isArray(e)?e.map(n):e instanceof RegExp?[e]:Object.keys(e).reduce((l,i)=>(l[i]=n(e[i]),l),{})}const tl=e=>{let n=[];const l=e.split(":")[0];return e.includes(":")&&(n=e.split(":").slice(1).join(":").split(",")),{name:l,params:n}};function nl(e){const n=l=>U(l,e)||l[e];return n.__locatorRef=e,n}function ll(e){return Array.isArray(e)?e.filter(ot):W(e).filter(n=>ot(e[n])).map(n=>e[n])}let il=Object.assign({},{generateMessage:({field:e})=>`${e} is not valid.`,bails:!0,validateOnBlur:!0,validateOnChange:!0,validateOnInput:!1,validateOnModelUpdate:!0});const gt=()=>il;async function Ut(e,n,l={}){const i=l==null?void 0:l.bails,r={name:(l==null?void 0:l.name)||"{field}",rules:n,bails:i!=null?i:!0,formData:(l==null?void 0:l.values)||{}},a=(await rl(r,e)).errors;return{errors:a,valid:!a.length}}async function rl(e,n){if(ve(e.rules))return ol(n,e.rules,{bails:e.bails});if(ge(e.rules)||Array.isArray(e.rules)){const a={field:e.name,form:e.formData,value:n},c=Array.isArray(e.rules)?e.rules:[e.rules],s=c.length,u=[];for(let m=0;m<s;m++){const h=c[m],d=await h(n,a);if(typeof d!="string"&&d)continue;const w=typeof d=="string"?d:Zt(a);if(u.push(w),e.bails)return{errors:u}}return{errors:u}}const l=Object.assign(Object.assign({},e),{rules:_t(e.rules)}),i=[],r=Object.keys(l.rules),o=r.length;for(let a=0;a<o;a++){const c=r[a],s=await al(l,n,{name:c,params:l.rules[c]});if(s.error&&(i.push(s.error),e.bails))return{errors:i}}return{errors:i}}async function ol(e,n,l){var i;return{errors:await n.validate(e,{abortEarly:(i=l.bails)!==null&&i!==void 0?i:!0}).then(()=>[]).catch(o=>{if(o.name==="ValidationError")return o.errors;throw o})}}async function al(e,n,l){const i=Hn(l.name);if(!i)throw new Error(`No such validator '${l.name}' exists.`);const r=sl(l.params,e.formData),o={field:e.name,value:n,form:e.formData,rule:Object.assign(Object.assign({},l),{params:r})},a=await i(n,r,o);return typeof a=="string"?{error:a}:{error:a?void 0:Zt(o)}}function Zt(e){const n=gt().generateMessage;return n?n(e):"Field is invalid"}function sl(e,n){const l=i=>ot(i)?i(n):i;return Array.isArray(e)?e.map(l):Object.keys(e).reduce((i,r)=>(i[r]=l(e[r]),i),{})}async function cl(e,n){const l=await e.validate(n,{abortEarly:!1}).then(()=>[]).catch(o=>{if(o.name!=="ValidationError")throw o;return o.inner||[]}),i={},r={};for(const o of l){const a=o.errors;i[o.path]={valid:!a.length,errors:a},a.length&&(r[o.path]=a[0])}return{valid:!l.length,results:i,errors:r}}async function dl(e,n,l){const r=W(e).map(async u=>{var m,h,d;const b=await Ut(U(n,u),e[u],{name:((m=l==null?void 0:l.names)===null||m===void 0?void 0:m[u])||u,values:n,bails:(d=(h=l==null?void 0:l.bailsMap)===null||h===void 0?void 0:h[u])!==null&&d!==void 0?d:!0});return Object.assign(Object.assign({},b),{path:u})});let o=!0;const a=await Promise.all(r),c={},s={};for(const u of a)c[u.path]={valid:u.valid,errors:u.errors},u.valid||(o=!1,s[u.path]=u.errors[0]);return{valid:o,results:c,errors:s}}function Gt(e,n,l){typeof l.value=="object"&&(l.value=Z(l.value)),!l.enumerable||l.get||l.set||!l.configurable||!l.writable||n==="__proto__"?Object.defineProperty(e,n,l):e[n]=l.value}function Z(e){if(typeof e!="object")return e;var n=0,l,i,r,o=Object.prototype.toString.call(e);if(o==="[object Object]"?r=Object.create(e.__proto__||null):o==="[object Array]"?r=Array(e.length):o==="[object Set]"?(r=new Set,e.forEach(function(a){r.add(Z(a))})):o==="[object Map]"?(r=new Map,e.forEach(function(a,c){r.set(Z(c),Z(a))})):o==="[object Date]"?r=new Date(+e):o==="[object RegExp]"?r=new RegExp(e.source,e.flags):o==="[object DataView]"?r=new e.constructor(Z(e.buffer)):o==="[object ArrayBuffer]"?r=e.slice(0):o.slice(-6)==="Array]"&&(r=new e.constructor(e)),r){for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)Gt(r,i[n],Object.getOwnPropertyDescriptor(e,i[n]));for(n=0,i=Object.getOwnPropertyNames(e);n<i.length;n++)Object.hasOwnProperty.call(r,l=i[n])&&r[l]===e[l]||Gt(r,l,Object.getOwnPropertyDescriptor(e,l))}return r||e}var le=function e(n,l){if(n===l)return!0;if(n&&l&&typeof n=="object"&&typeof l=="object"){if(n.constructor!==l.constructor)return!1;var i,r,o;if(Array.isArray(n)){if(i=n.length,i!=l.length)return!1;for(r=i;r--!==0;)if(!e(n[r],l[r]))return!1;return!0}if(n instanceof Map&&l instanceof Map){if(n.size!==l.size)return!1;for(r of n.entries())if(!l.has(r[0]))return!1;for(r of n.entries())if(!e(r[1],l.get(r[0])))return!1;return!0}if(n instanceof Set&&l instanceof Set){if(n.size!==l.size)return!1;for(r of n.entries())if(!l.has(r[0]))return!1;return!0}if(ArrayBuffer.isView(n)&&ArrayBuffer.isView(l)){if(i=n.length,i!=l.length)return!1;for(r=i;r--!==0;)if(n[r]!==l[r])return!1;return!0}if(n.constructor===RegExp)return n.source===l.source&&n.flags===l.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===l.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===l.toString();if(o=Object.keys(n),i=o.length,i!==Object.keys(l).length)return!1;for(r=i;r--!==0;)if(!Object.prototype.hasOwnProperty.call(l,o[r]))return!1;for(r=i;r--!==0;){var a=o[r];if(!e(n[a],l[a]))return!1}return!0}return n!==n&&l!==l};let Yt=0;function ul(e,n){const{value:l,initialValue:i,setInitialValue:r}=Wt(e,n.modelValue,!n.standalone),{errorMessage:o,errors:a,setErrors:c}=ml(e,!n.standalone),s=fl(l,i,a),u=Yt>=Number.MAX_SAFE_INTEGER?0:++Yt;function m(h){var d;"value"in h&&(l.value=h.value),"errors"in h&&c(h.errors),"touched"in h&&(s.touched=(d=h.touched)!==null&&d!==void 0?d:s.touched),"initialValue"in h&&r(h.initialValue)}return{id:u,path:e,value:l,initialValue:i,meta:s,errors:a,errorMessage:o,setState:m}}function Wt(e,n,l=!0){const i=l===!0?Ee(me,void 0):void 0,r=t.ref(t.unref(n));function o(){return i?U(i.meta.value.initialValues,t.unref(e),t.unref(r)):t.unref(r)}function a(m){if(!i){r.value=m;return}i.stageInitialValue(t.unref(e),m,!0)}const c=t.computed(o);if(!i)return{value:t.ref(o()),initialValue:c,setInitialValue:a};const s=n?t.unref(n):U(i.values,t.unref(e),t.unref(c));return i.stageInitialValue(t.unref(e),s,!0),{value:t.computed({get(){return U(i.values,t.unref(e))},set(m){i.setFieldValue(t.unref(e),m)}}),initialValue:c,setInitialValue:a}}function fl(e,n,l){const i=t.reactive({touched:!1,pending:!1,valid:!0,validated:!!t.unref(l).length,initialValue:t.computed(()=>t.unref(n)),dirty:t.computed(()=>!le(t.unref(e),t.unref(n)))});return t.watch(l,r=>{i.valid=!r.length},{immediate:!0,flush:"sync"}),i}function ml(e,n){const l=n?Ee(me,void 0):void 0;function i(o){return o?Array.isArray(o)?o:[o]:[]}if(!l){const o=t.ref([]);return{errors:o,errorMessage:t.computed(()=>o.value[0]),setErrors:a=>{o.value=i(a)}}}const r=t.computed(()=>l.errorBag.value[t.unref(e)]||[]);return{errors:r,errorMessage:t.computed(()=>r.value[0]),setErrors:o=>{l.setFieldErrorBag(t.unref(e),i(o))}}}function Jt(e){process.env.NODE_ENV!=="production"&&Rn({id:"vee-validate-devtools-plugin",label:"VeeValidate Plugin",packageName:"vee-validate",homepage:"https://vee-validate.logaretm.com/v4",app:e,logo:"https://vee-validate.logaretm.com/v4/logo.png"},gl)}const Be={},Oe={};let ae;const ke=Kn(()=>{setTimeout(async()=>{await t.nextTick(),ae==null||ae.sendInspectorState(pe),ae==null||ae.sendInspectorTree(pe)},100)},100);function hl(e){const n=t.getCurrentInstance();if(!ae){const l=n==null?void 0:n.appContext.app;if(!l)return;Jt(l)}Be[e.formId]=Object.assign({},e),Be[e.formId]._vm=n,t.onUnmounted(()=>{delete Be[e.formId],ke()}),ke()}function yl(e){const n=t.getCurrentInstance();if(!ae){const l=n==null?void 0:n.appContext.app;if(!l)return;Jt(l)}Oe[e.id]=Object.assign({},e),Oe[e.id]._vm=n,t.onUnmounted(()=>{delete Oe[e.id],ke()}),ke()}const pe="vee-validate-inspector",X={error:12405579,success:448379,unknown:5522283,white:16777215,black:0,blue:218007,purple:12157168,orange:16099682,gray:12304330};let se=null;function gl(e){ae=e,e.addInspector({id:pe,icon:"rule",label:"vee-validate",noSelectionText:"Select a vee-validate node to inspect",actions:[{icon:"done_outline",tooltip:"Validate selected item",action:async()=>{if(!se){console.error("There is not a valid selected vee-validate node or component");return}const n=await se.validate();console.log(n)}},{icon:"delete_sweep",tooltip:"Clear validation state of the selected item",action:()=>{if(!se){console.error("There is not a valid selected vee-validate node or component");return}if("id"in se){se.resetField();return}se.resetForm()}}]}),e.on.getInspectorTree(n=>{if(n.inspectorId!==pe)return;const l=Object.values(Be),i=Object.values(Oe);n.rootNodes=[...l.map(bl),...i.map(r=>bt(r))]}),e.on.getInspectorState((n,l)=>{if(n.inspectorId!==pe||l.currentTab!==`custom-inspector:${pe}`)return;const{form:i,field:r,type:o}=kl(n.nodeId);if(i&&o==="form"){n.state=$l(i),se=i;return}if(r&&o==="field"){n.state=pl(r),se=r;return}se=null})}function bl(e){const{textColor:n,bgColor:l}=Xt(e),i={};Object.values(e.fieldsByPath.value).forEach(a=>{const c=Array.isArray(a)?a[0]:a;!c||fe(i,t.unref(c.name),bt(c,e))});function r(a,c=[]){const s=[...c].pop();return"id"in a?Object.assign(Object.assign({},a),{label:s||a.label}):ue(a)?{id:`${c.join(".")}`,label:s||"",children:Object.keys(a).map(u=>r(a[u],[...c,u]))}:Array.isArray(a)?{id:`${c.join(".")}`,label:`${s}[]`,children:a.map((u,m)=>r(u,[...c,String(m)]))}:{id:"",label:"",children:[]}}const{children:o}=r(i);return{id:Kt(e),label:"Form",children:o,tags:[{label:"Form",textColor:n,backgroundColor:l},{label:`${Object.keys(e.fieldsByPath.value).length} fields`,textColor:X.white,backgroundColor:X.unknown}]}}function bt(e,n){const l=Jn(e),{textColor:i,bgColor:r}=Xt(l),o=Array.isArray(e)&&e.length>1;return{id:Kt(n,l,!o),label:t.unref(l.name),children:Array.isArray(e)?e.map(a=>bt(a,n)):void 0,tags:[o?void 0:{label:"Field",textColor:i,backgroundColor:r},n?void 0:{label:"Standalone",textColor:X.black,backgroundColor:X.gray},!o&&l.type==="checkbox"?{label:"Checkbox",textColor:X.white,backgroundColor:X.blue}:void 0,!o&&l.type==="radio"?{label:"Radio",textColor:X.white,backgroundColor:X.purple}:void 0,o?{label:"Group",textColor:X.black,backgroundColor:X.orange}:void 0].filter(Boolean)}}function Kt(e,n,l=!0){const i=e?t.unref(n==null?void 0:n.name):n==null?void 0:n.id,r=i?e==null?void 0:e.fieldsByPath.value[i]:void 0;let o;l&&n&&Array.isArray(r)&&(o=r.indexOf(n));const a={f:e==null?void 0:e.formId,ff:i,idx:o,type:n?"field":"form"};return btoa(JSON.stringify(a))}function kl(e){try{const n=JSON.parse(atob(e)),l=Be[n.f];if(!l&&n.ff){const r=Oe[n.ff];return r?{type:n.type,field:r}:{}}if(!l)return{};const i=l.fieldsByPath.value[n.ff];return{type:n.type,form:l,field:Array.isArray(i)?i[n.idx||0]:i}}catch{}return{}}function pl(e){const{errors:n,meta:l,value:i}=e;return{"Field state":[{key:"errors",value:n.value},{key:"initialValue",value:l.initialValue},{key:"currentValue",value:i.value},{key:"touched",value:l.touched},{key:"dirty",value:l.dirty},{key:"valid",value:l.valid}]}}function $l(e){const{errorBag:n,meta:l,values:i,isSubmitting:r,submitCount:o}=e;return{"Form state":[{key:"submitCount",value:o.value},{key:"isSubmitting",value:r.value},{key:"touched",value:l.value.touched},{key:"dirty",value:l.value.dirty},{key:"valid",value:l.value.valid},{key:"initialValues",value:l.value.initialValues},{key:"currentValues",value:i},{key:"errors",value:W(n.value).reduce((a,c)=>{var s;const u=(s=n.value[c])===null||s===void 0?void 0:s[0];return u&&(a[c]=u),a},{})}]}}function Xt(e){const n="id"in e?e.meta.valid:e.meta.value.valid;return{bgColor:n?X.success:X.error,textColor:n?X.black:X.white}}function kt(e,n,l){return be(l==null?void 0:l.type)?xl(e,n,l):en(e,n,l)}function en(e,n,l){const{initialValue:i,validateOnMount:r,bails:o,type:a,checkedValue:c,label:s,validateOnValueUpdate:u,uncheckedValue:m,standalone:h,keepValueOnUnmount:d,modelPropName:b,syncVModel:w}=wl(t.unref(e),l),S=h?void 0:Ee(me);let L=!1;const{id:z,value:R,initialValue:$,meta:k,setState:V,errors:I,errorMessage:T}=ul(e,{modelValue:i,standalone:h});w&&Cl({value:R,prop:b,handleChange:ne});const q=()=>{k.touched=!0},Q=t.computed(()=>{let y=t.unref(n);const v=t.unref(S==null?void 0:S.schema);return v&&!ve(v)&&(y=Sl(v,t.unref(e))||y),ve(y)||ge(y)||Array.isArray(y)?y:_t(y)});async function A(y){var v,_;return S!=null&&S.validateSchema?(v=(await S.validateSchema(y)).results[t.unref(e)])!==null&&v!==void 0?v:{valid:!0,errors:[]}:Ut(R.value,Q.value,{name:t.unref(s)||t.unref(e),values:(_=S==null?void 0:S.values)!==null&&_!==void 0?_:{},bails:o})}const D=mt(async()=>(k.pending=!0,k.validated=!0,A("validated-only")),y=>(L&&(y.valid=!0,y.errors=[]),V({errors:y.errors}),k.pending=!1,y)),H=mt(async()=>A("silent"),y=>(L&&(y.valid=!0),k.valid=y.valid,y));function J(y){return(y==null?void 0:y.mode)==="silent"?H():D()}function ne(y,v=!0){const _=yt(y);R.value=_,!u&&v&&D()}t.onMounted(()=>{if(r)return D();(!S||!S.validateSchema)&&H()});function Y(y){k.touched=y}let E;function B(){E=t.watch(R,(y,v)=>{if(le(y,v))return;(u?D:H)()},{deep:!0})}B();function p(y){var v;E==null||E();const _=y&&"value"in y?y.value:$.value;V({value:Z(_),initialValue:Z(_),touched:(v=y==null?void 0:y.touched)!==null&&v!==void 0?v:!1,errors:(y==null?void 0:y.errors)||[]}),k.pending=!1,k.validated=!1,H(),t.nextTick(()=>{B()})}function x(y){R.value=y}function O(y){V({errors:Array.isArray(y)?y:[y]})}const N={id:z,name:e,label:s,value:R,meta:k,errors:I,errorMessage:T,type:a,checkedValue:c,uncheckedValue:m,bails:o,keepValueOnUnmount:d,resetField:p,handleReset:()=>p(),validate:J,handleChange:ne,handleBlur:q,setState:V,setTouched:Y,setErrors:O,setValue:x};if(t.provide(Un,N),t.isRef(n)&&typeof t.unref(n)!="function"&&t.watch(n,(y,v)=>{le(y,v)||(k.validated?D():H())},{deep:!0}),process.env.NODE_ENV!=="production"&&(N._vm=t.getCurrentInstance(),t.watch(()=>Object.assign(Object.assign({errors:I.value},k),{value:R.value}),ke,{deep:!0}),S||yl(N)),!S)return N;S.register(N),t.onBeforeUnmount(()=>{L=!0,S.unregister(N)});const P=t.computed(()=>{const y=Q.value;return!y||ge(y)||ve(y)||Array.isArray(y)?{}:Object.keys(y).reduce((v,_)=>{const ce=ll(y[_]).map(ee=>ee.__locatorRef).reduce((ee,te)=>{const ie=U(S.values,te)||S.values[te];return ie!==void 0&&(ee[te]=ie),ee},{});return Object.assign(v,ce),v},{})});return t.watch(P,(y,v)=>{if(!Object.keys(y).length)return;!le(y,v)&&(k.validated?D():H())}),N}function wl(e,n){const l=()=>({initialValue:void 0,validateOnMount:!1,bails:!0,rules:"",label:e,validateOnValueUpdate:!0,standalone:!1,keepValueOnUnmount:void 0,modelPropName:"modelValue",syncVModel:!0});if(!n)return l();const i="valueProp"in n?n.valueProp:n.checkedValue;return Object.assign(Object.assign(Object.assign({},l()),n||{}),{checkedValue:i})}function Sl(e,n){if(!!e)return e[n]}function xl(e,n,l){const i=l!=null&&l.standalone?void 0:Ee(me),r=l==null?void 0:l.checkedValue,o=l==null?void 0:l.uncheckedValue;function a(c){const s=c.handleChange,u=t.computed(()=>{const h=t.unref(c.value),d=t.unref(r);return Array.isArray(h)?h.findIndex(b=>le(b,d))>=0:le(d,h)});function m(h,d=!0){var b;if(u.value===((b=h==null?void 0:h.target)===null||b===void 0?void 0:b.checked))return;let w=yt(h);i||(w=ft(t.unref(c.value),t.unref(r),t.unref(o))),s(w,d)}return Object.assign(Object.assign({},c),{checked:u,checkedValue:r,uncheckedValue:o,handleChange:m})}return a(en(e,n,l))}function Cl({prop:e,value:n,handleChange:l}){const i=t.getCurrentInstance();if(!i){process.env.NODE_ENV!=="production"&&console.warn("Failed to setup model events because `useField` was not called in setup.");return}const r=e||"modelValue",o=`update:${r}`;r in i.props&&(t.watch(n,a=>{le(a,tn(i,r))||i.emit(o,a)}),t.watch(()=>tn(i,r),a=>{if(a===ze&&n.value===void 0)return;const c=a===ze?void 0:a;le(c,Xn(n.value,i.props.modelModifiers))||l(c)}))}function tn(e,n){return e.props[n]}t.defineComponent({name:"Field",inheritAttrs:!1,props:{as:{type:[String,Object],default:void 0},name:{type:String,required:!0},rules:{type:[Object,String,Function],default:void 0},validateOnMount:{type:Boolean,default:!1},validateOnBlur:{type:Boolean,default:void 0},validateOnChange:{type:Boolean,default:void 0},validateOnInput:{type:Boolean,default:void 0},validateOnModelUpdate:{type:Boolean,default:void 0},bails:{type:Boolean,default:()=>gt().bails},label:{type:String,default:void 0},uncheckedValue:{type:null,default:void 0},modelValue:{type:null,default:ze},modelModifiers:{type:null,default:()=>({})},"onUpdate:modelValue":{type:null,default:void 0},standalone:{type:Boolean,default:!1},keepValue:{type:Boolean,default:void 0}},setup(e,n){const l=t.toRef(e,"rules"),i=t.toRef(e,"name"),r=t.toRef(e,"label"),o=t.toRef(e,"uncheckedValue"),a=t.toRef(e,"keepValue"),{errors:c,value:s,errorMessage:u,validate:m,handleChange:h,handleBlur:d,setTouched:b,resetField:w,handleReset:S,meta:L,checked:z,setErrors:R}=kt(i,l,{validateOnMount:e.validateOnMount,bails:e.bails,standalone:e.standalone,type:n.attrs.type,initialValue:El(e,n),checkedValue:n.attrs.value,uncheckedValue:o,label:r,validateOnValueUpdate:!1,keepValueOnUnmount:a}),$=function(Q,A=!0){h(Q,A),n.emit("update:modelValue",s.value)},k=q=>{be(n.attrs.type)||(s.value=yt(q))},V=function(Q){k(Q),n.emit("update:modelValue",s.value)},I=t.computed(()=>{const{validateOnInput:q,validateOnChange:Q,validateOnBlur:A,validateOnModelUpdate:D}=vl(e),H=[d,n.attrs.onBlur,A?m:void 0].filter(Boolean),J=[B=>$(B,q),n.attrs.onInput].filter(Boolean),ne=[B=>$(B,Q),n.attrs.onChange].filter(Boolean),Y={name:e.name,onBlur:H,onInput:J,onChange:ne};Y["onUpdate:modelValue"]=B=>$(B,D),be(n.attrs.type)&&z&&(Y.checked=z.value);const E=nn(e,n);return Wn(E,n.attrs)&&(Y.value=s.value),Y});function T(){return{field:I.value,value:s.value,meta:L,errors:c.value,errorMessage:u.value,validate:m,resetField:w,handleChange:$,handleInput:V,handleReset:S,handleBlur:d,setTouched:b,setErrors:R}}return n.expose({setErrors:R,setTouched:b,reset:w,validate:m,handleChange:h}),()=>{const q=t.resolveDynamicComponent(nn(e,n)),Q=Re(q,n,T);return q?t.h(q,Object.assign(Object.assign({},n.attrs),I.value),Q):Q}}});function nn(e,n){let l=e.as||"";return!e.as&&!n.slots.default&&(l="input"),l}function vl(e){var n,l,i,r;const{validateOnInput:o,validateOnChange:a,validateOnBlur:c,validateOnModelUpdate:s}=gt();return{validateOnInput:(n=e.validateOnInput)!==null&&n!==void 0?n:o,validateOnChange:(l=e.validateOnChange)!==null&&l!==void 0?l:a,validateOnBlur:(i=e.validateOnBlur)!==null&&i!==void 0?i:c,validateOnModelUpdate:(r=e.validateOnModelUpdate)!==null&&r!==void 0?r:s}}function El(e,n){return be(n.attrs.type)?zt(e,"modelValue")?e.modelValue:void 0:zt(e,"modelValue")?e.modelValue:n.attrs.value}let Bl=0;function Ol(e){var n;const l=Bl++;let i=!1;const r=t.ref({}),o=t.ref(!1),a=t.ref(0),c=[],s=t.reactive(Z(t.unref(e==null?void 0:e.initialValues)||{})),{errorBag:u,setErrorBag:m,setFieldErrorBag:h}=Nl(e==null?void 0:e.initialErrors),d=t.computed(()=>W(u.value).reduce((f,g)=>{const F=u.value[g];return F&&F.length&&(f[g]=F[0]),f},{}));function b(f){const g=r.value[f];return Array.isArray(g)?g[0]:g}function w(f){return!!r.value[f]}const S=t.computed(()=>W(r.value).reduce((f,g)=>{const F=b(g);return F&&(f[g]=t.unref(F.label||F.name)||""),f},{})),L=t.computed(()=>W(r.value).reduce((f,g)=>{var F;const M=b(g);return M&&(f[g]=(F=M.bails)!==null&&F!==void 0?F:!0),f},{})),z=Object.assign({},(e==null?void 0:e.initialErrors)||{}),R=(n=e==null?void 0:e.keepValuesOnUnmount)!==null&&n!==void 0?n:!1,{initialValues:$,originalInitialValues:k,setInitialValues:V}=Il(r,s,e==null?void 0:e.initialValues),I=Vl(r,s,k,d),T=e==null?void 0:e.validationSchema,q=Rt(yn,5),Q=Rt(yn,5),A=mt(async f=>await f==="silent"?q():Q(),(f,[g])=>{const F=D.fieldsByPath.value||{},M=W(D.errorBag.value);return[...new Set([...W(f.results),...W(F),...M])].reduce((G,K)=>{const de=F[K],xe=(f.results[K]||{errors:[]}).errors,re={errors:xe,valid:!xe.length};if(G.results[K]=re,re.valid||(G.errors[K]=re.errors[0]),!de)return Y(K,xe),G;if(J(de,qe=>qe.meta.valid=re.valid),g==="silent")return G;const Po=Array.isArray(de)?de.some(qe=>qe.meta.validated):de.meta.validated;return g==="validated-only"&&!Po||J(de,qe=>qe.setState({errors:re.errors})),G},{valid:f.valid,results:{},errors:{}})}),D={formId:l,fieldsByPath:r,values:s,errorBag:u,errors:d,schema:T,submitCount:a,meta:I,isSubmitting:o,fieldArrays:c,keepValuesOnUnmount:R,validateSchema:t.unref(T)?A:void 0,validate:te,register:ce,unregister:ee,setFieldErrorBag:h,validateField:ie,setFieldValue:B,setValues:p,setErrors:E,setFieldError:Y,setFieldTouched:N,setTouched:P,resetForm:y,handleSubmit:Le,stageInitialValue:Fo,unsetInitialValue:To,setFieldInitialValue:hn,useFieldModel:O};function H(f){return Array.isArray(f)}function J(f,g){return Array.isArray(f)?f.forEach(g):g(f)}function ne(f){Object.values(r.value).forEach(g=>{!g||J(g,f)})}function Y(f,g){h(f,g)}function E(f){m(f)}function B(f,g,{force:F}={force:!1}){var M;const C=r.value[f],G=Z(g);if(!C){fe(s,f,G);return}if(H(C)&&((M=C[0])===null||M===void 0?void 0:M.type)==="checkbox"&&!Array.isArray(g)){const de=Z(ft(U(s,f)||[],g,void 0));fe(s,f,de);return}let K=g;!H(C)&&C.type==="checkbox"&&!F&&!i&&(K=Z(ft(U(s,f),g,t.unref(C.uncheckedValue)))),fe(s,f,K)}function p(f){W(s).forEach(g=>{delete s[g]}),W(f).forEach(g=>{B(g,f[g])}),c.forEach(g=>g&&g.reset())}function x(f){const{value:g}=Wt(f);return t.watch(g,()=>{w(t.unref(f))||te({mode:"validated-only"})},{deep:!0}),g}function O(f){return Array.isArray(f)?f.map(x):x(f)}function N(f,g){const F=r.value[f];F&&J(F,M=>M.setTouched(g))}function P(f){W(f).forEach(g=>{N(g,!!f[g])})}function y(f){i=!0,f!=null&&f.values?(V(f.values),p(f==null?void 0:f.values)):(V(k.value),p(k.value)),ne(g=>g.resetField()),f!=null&&f.touched&&P(f.touched),E((f==null?void 0:f.errors)||{}),a.value=(f==null?void 0:f.submitCount)||0,t.nextTick(()=>{i=!1})}function v(f,g){const F=t.markRaw(f),M=g;if(!r.value[M]){r.value[M]=F;return}const C=r.value[M];C&&!Array.isArray(C)&&(r.value[M]=[C]),r.value[M]=[...r.value[M],F]}function _(f,g){const F=g,M=r.value[F];if(!!M){if(!H(M)&&f.id===M.id){delete r.value[F];return}if(H(M)){const C=M.findIndex(G=>G.id===f.id);if(C===-1)return;M.splice(C,1),M.length||delete r.value[F]}}}function ce(f){const g=t.unref(f.name);v(f,g),t.isRef(f.name)&&t.watch(f.name,async(M,C)=>{await t.nextTick(),_(f,C),v(f,M),(d.value[C]||d.value[M])&&(Y(C,void 0),ie(M)),await t.nextTick(),w(C)||dt(s,C)});const F=t.unref(f.errorMessage);F&&(z==null?void 0:z[g])!==F&&ie(g),delete z[g]}function ee(f){const g=t.unref(f.name),F=r.value[g],M=!!F&&H(F);_(f,g),t.nextTick(()=>{var C;const G=(C=t.unref(f.keepValueOnUnmount))!==null&&C!==void 0?C:t.unref(R),K=U(s,g);if(M&&(F===r.value[g]||!r.value[g])&&Array.isArray(K)&&!G){const xe=K.findIndex(re=>le(re,t.unref(f.checkedValue)));if(xe>-1){const re=[...K];re.splice(xe,1),B(g,re,{force:!0})}}if(!w(g)){if(Y(g,void 0),G||M&&!Lt(U(s,g)))return;dt(s,g)}})}async function te(f){if(ne(C=>C.meta.validated=!0),D.validateSchema)return D.validateSchema((f==null?void 0:f.mode)||"force");const g=await Promise.all(Object.values(r.value).map(C=>{const G=Array.isArray(C)?C[0]:C;return G?G.validate(f).then(K=>({key:t.unref(G.name),valid:K.valid,errors:K.errors})):Promise.resolve({key:"",valid:!0,errors:[]})})),F={},M={};for(const C of g)F[C.key]={valid:C.valid,errors:C.errors},C.errors.length&&(M[C.key]=C.errors[0]);return{valid:g.every(C=>C.valid),results:F,errors:M}}async function ie(f){const g=r.value[f];return g?Array.isArray(g)?g.map(F=>F.validate())[0]:g.validate():(t.warn(`field with name ${f} was not found`),Promise.resolve({errors:[],valid:!0}))}function Le(f,g){return function(M){return M instanceof Event&&(M.preventDefault(),M.stopPropagation()),P(W(r.value).reduce((C,G)=>(C[G]=!0,C),{})),o.value=!0,a.value++,te().then(C=>{if(C.valid&&typeof f=="function")return f(Z(s),{evt:M,setErrors:E,setFieldError:Y,setTouched:P,setFieldTouched:N,setValues:p,setFieldValue:B,resetForm:y});!C.valid&&typeof g=="function"&&g({values:Z(s),evt:M,errors:C.errors,results:C.results})}).then(C=>(o.value=!1,C),C=>{throw o.value=!1,C})}}function hn(f,g){fe($.value,f,Z(g))}function To(f){dt($.value,f)}function Fo(f,g,F=!1){fe(s,f,g),hn(f,g),F&&!(e!=null&&e.initialValues)&&fe(k.value,f,Z(g))}async function yn(){const f=t.unref(T);return f?ve(f)?await cl(f,s):await dl(f,s,{names:S.value,bailsMap:L.value}):{valid:!0,results:{},errors:{}}}const Mo=Le((f,{evt:g})=>{Dt(g)&&g.target.submit()});return t.onMounted(()=>{if(e!=null&&e.initialErrors&&E(e.initialErrors),e!=null&&e.initialTouched&&P(e.initialTouched),e!=null&&e.validateOnMount){te();return}D.validateSchema&&D.validateSchema("silent")}),t.isRef(T)&&t.watch(T,()=>{var f;(f=D.validateSchema)===null||f===void 0||f.call(D,"validated-only")}),t.provide(me,D),process.env.NODE_ENV!=="production"&&(hl(D),t.watch(()=>Object.assign(Object.assign({errors:u.value},I.value),{values:s,isSubmitting:o.value,submitCount:a.value}),ke,{deep:!0})),{errors:d,meta:I,values:s,isSubmitting:o,submitCount:a,validate:te,validateField:ie,handleReset:()=>y(),resetForm:y,handleSubmit:Le,submitForm:Mo,setFieldError:Y,setErrors:E,setFieldValue:B,setValues:p,setFieldTouched:N,setTouched:P,useFieldModel:O}}function Vl(e,n,l,i){const r={touched:"some",pending:"some",valid:"every"},o=t.computed(()=>!le(n,t.unref(l)));function a(){const s=Object.values(e.value).flat(1).filter(Boolean);return W(r).reduce((u,m)=>{const h=r[m];return u[m]=s[h](d=>d.meta[m]),u},{})}const c=t.reactive(a());return t.watchEffect(()=>{const s=a();c.touched=s.touched,c.valid=s.valid,c.pending=s.pending}),t.computed(()=>Object.assign(Object.assign({initialValues:t.unref(l)},c),{valid:c.valid&&!W(i.value).length,dirty:o.value}))}function Il(e,n,l){const i=t.ref(Z(t.unref(l))||{}),r=t.ref(Z(t.unref(l))||{});function o(a,c=!1){i.value=Z(a),r.value=Z(a),c&&W(e.value).forEach(s=>{const u=e.value[s],m=Array.isArray(u)?u.some(d=>d.meta.touched):u==null?void 0:u.meta.touched;if(!u||m)return;const h=U(i.value,s);fe(n,s,Z(h))})}return t.isRef(l)&&t.watch(l,a=>{o(a,!0)},{deep:!0}),{initialValues:i,originalInitialValues:r,setInitialValues:o}}function Nl(e){const n=t.ref({});function l(o){return Array.isArray(o)?o:o?[o]:[]}function i(o,a){if(!a){delete n.value[o];return}n.value[o]=l(a)}function r(o){n.value=W(o).reduce((a,c)=>{const s=o[c];return s&&(a[c]=l(s)),a},{})}return e&&r(e),{errorBag:n,setErrorBag:r,setFieldErrorBag:i}}t.defineComponent({name:"Form",inheritAttrs:!1,props:{as:{type:String,default:"form"},validationSchema:{type:Object,default:void 0},initialValues:{type:Object,default:void 0},initialErrors:{type:Object,default:void 0},initialTouched:{type:Object,default:void 0},validateOnMount:{type:Boolean,default:!1},onSubmit:{type:Function,default:void 0},onInvalidSubmit:{type:Function,default:void 0},keepValues:{type:Boolean,default:!1}},setup(e,n){const l=t.toRef(e,"initialValues"),i=t.toRef(e,"validationSchema"),r=t.toRef(e,"keepValues"),{errors:o,values:a,meta:c,isSubmitting:s,submitCount:u,validate:m,validateField:h,handleReset:d,resetForm:b,handleSubmit:w,setErrors:S,setFieldError:L,setFieldValue:z,setValues:R,setFieldTouched:$,setTouched:k}=Ol({validationSchema:i.value?i:void 0,initialValues:l,initialErrors:e.initialErrors,initialTouched:e.initialTouched,validateOnMount:e.validateOnMount,keepValuesOnUnmount:r}),V=w((A,{evt:D})=>{Dt(D)&&D.target.submit()},e.onInvalidSubmit),I=e.onSubmit?w(e.onSubmit,e.onInvalidSubmit):V;function T(A){at(A)&&A.preventDefault(),d(),typeof n.attrs.onReset=="function"&&n.attrs.onReset()}function q(A,D){return w(typeof A=="function"&&!D?A:D,e.onInvalidSubmit)(A)}function Q(){return{meta:c.value,errors:o.value,values:a,isSubmitting:s.value,submitCount:u.value,validate:m,validateField:h,handleSubmit:q,handleReset:d,submitForm:V,setErrors:S,setFieldError:L,setFieldValue:z,setValues:R,setFieldTouched:$,setTouched:k,resetForm:b}}return n.expose({setFieldError:L,setErrors:S,setFieldValue:z,setValues:R,setFieldTouched:$,setTouched:k,resetForm:b,validate:m,validateField:h}),function(){const D=e.as==="form"?e.as:t.resolveDynamicComponent(e.as),H=Re(D,n,Q);if(!e.as)return H;const J=e.as==="form"?{novalidate:!0}:{};return t.h(D,Object.assign(Object.assign(Object.assign({},J),n.attrs),{onSubmit:I,onReset:T}),H)}}});function Al(e){const n=Ee(me,void 0),l=t.ref([]),i=()=>{},r={fields:l,remove:i,push:i,swap:i,insert:i,update:i,replace:i,prepend:i,move:i};if(!n)return ut("FieldArray requires being a child of `<Form/>` or `useForm` being called before it. Array fields may not work correctly"),r;if(!t.unref(e))return ut("FieldArray requires a field path to be provided, did you forget to pass the `name` prop?"),r;const o=n.fieldArrays.find($=>t.unref($.path)===t.unref(e));if(o)return o;let a=0;function c(){const $=U(n==null?void 0:n.values,t.unref(e),[])||[];l.value=$.map(u),s()}c();function s(){const $=l.value.length;for(let k=0;k<$;k++){const V=l.value[k];V.isFirst=k===0,V.isLast=k===$-1}}function u($){const k=a++;return{key:k,value:t.computed({get(){const I=U(n==null?void 0:n.values,t.unref(e),[])||[],T=l.value.findIndex(q=>q.key===k);return T===-1?$:I[T]},set(I){const T=l.value.findIndex(q=>q.key===k);if(T===-1){ut("Attempting to update a non-existent array item");return}S(T,I)}}),isFirst:!1,isLast:!1}}function m($){const k=t.unref(e),V=U(n==null?void 0:n.values,k);if(!V||!Array.isArray(V))return;const I=[...V];I.splice($,1),n==null||n.unsetInitialValue(k+`[${$}]`),n==null||n.setFieldValue(k,I),l.value.splice($,1),s()}function h($){const k=t.unref(e),V=U(n==null?void 0:n.values,k),I=Ce(V)?[]:V;if(!Array.isArray(I))return;const T=[...I];T.push($),n==null||n.stageInitialValue(k+`[${T.length-1}]`,$),n==null||n.setFieldValue(k,T),l.value.push(u($)),s()}function d($,k){const V=t.unref(e),I=U(n==null?void 0:n.values,V);if(!Array.isArray(I)||!($ in I)||!(k in I))return;const T=[...I],q=[...l.value],Q=T[$];T[$]=T[k],T[k]=Q;const A=q[$];q[$]=q[k],q[k]=A,n==null||n.setFieldValue(V,T),l.value=q,s()}function b($,k){const V=t.unref(e),I=U(n==null?void 0:n.values,V);if(!Array.isArray(I)||I.length<$)return;const T=[...I],q=[...l.value];T.splice($,0,k),q.splice($,0,u(k)),n==null||n.setFieldValue(V,T),l.value=q,s()}function w($){const k=t.unref(e);n==null||n.setFieldValue(k,$),c()}function S($,k){const V=t.unref(e),I=U(n==null?void 0:n.values,V);!Array.isArray(I)||I.length-1<$||n==null||n.setFieldValue(`${V}[${$}]`,k)}function L($){const k=t.unref(e),V=U(n==null?void 0:n.values,k),I=Ce(V)?[]:V;if(!Array.isArray(I))return;const T=[$,...I];n==null||n.stageInitialValue(k+`[${T.length-1}]`,$),n==null||n.setFieldValue(k,T),l.value.unshift(u($)),s()}function z($,k){const V=t.unref(e),I=U(n==null?void 0:n.values,V),T=Ce(I)?[]:[...I];if(!Array.isArray(I)||!($ in I)||!(k in I))return;const q=[...l.value],Q=q[$];q.splice($,1),q.splice(k,0,Q);const A=T[$];T.splice($,1),T.splice(k,0,A),n==null||n.setFieldValue(V,T),l.value=q,s()}const R={fields:l,remove:m,push:h,swap:d,insert:b,update:S,replace:w,prepend:L,move:z};return n.fieldArrays.push(Object.assign({path:e,reset:c},R)),t.onBeforeUnmount(()=>{const $=n.fieldArrays.findIndex(k=>t.unref(k.path)===t.unref(e));$>=0&&n.fieldArrays.splice($,1)}),R}t.defineComponent({name:"FieldArray",inheritAttrs:!1,props:{name:{type:String,required:!0}},setup(e,n){const{push:l,remove:i,swap:r,insert:o,replace:a,update:c,prepend:s,move:u,fields:m}=Al(t.toRef(e,"name"));function h(){return{fields:m.value,push:l,remove:i,swap:r,insert:o,update:c,replace:a,prepend:s,move:u}}return n.expose({push:l,remove:i,swap:r,insert:o,update:c,replace:a,prepend:s,move:u}),()=>Re(void 0,n,h)}}),t.defineComponent({name:"ErrorMessage",props:{as:{type:String,default:void 0},name:{type:String,required:!0}},setup(e,n){const l=t.inject(me,void 0),i=t.computed(()=>l==null?void 0:l.errors.value[e.name]);function r(){return{message:i.value}}return()=>{if(!i.value)return;const o=e.as?t.resolveDynamicComponent(e.as):e.as,a=Re(o,n,r),c=Object.assign({role:"alert"},n.attrs);return!o&&(Array.isArray(a)||!a)&&(a==null?void 0:a.length)?a:(Array.isArray(a)||!a)&&!(a!=null&&a.length)?t.h(o||"span",c,i.value):t.h(o,c,a)}}});function Ve(e,n){var a,c,s,u;const l=(n==null?void 0:n.component)==="input"&&(((a=n==null?void 0:n.error)==null?void 0:a.value)!==null||(n==null?void 0:n.modelValue)!==void 0),i=(n==null?void 0:n.component)==="radio"&&(((c=n==null?void 0:n.error)==null?void 0:c.value)!==null||(n==null?void 0:n.modelValue)!==void 0),r=(n==null?void 0:n.component)==="checkbox"&&(((s=n==null?void 0:n.error)==null?void 0:s.value)!==null||(n==null?void 0:n.modelValue)!==void 0),o=(n==null?void 0:n.component)==="select"&&(((u=n==null?void 0:n.error)==null?void 0:u.value)!==null||(n==null?void 0:n.selected)!==void 0);return n!=null&&n.useFieldParent?n==null?void 0:n.useFieldParent(e):n!=null&&n.rules?kt(e,n==null?void 0:n.rules,n==null?void 0:n.opts):o?Fl(n==null?void 0:n.error,n==null?void 0:n.selected):l||i||r?Tl(n==null?void 0:n.error,n==null?void 0:n.modelValue):kt(e)}function Tl(e,n){return{value:t.ref(n!=null?n:""),errorMessage:e}}function Fl(e,n){return{value:t.ref(n),errorMessage:e}}const Ml={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Pl=[t.createElementVNode("path",{fill:"currentColor",d:"m9.55 18l-5.7-5.7l1.425-1.425L9.55 15.15l9.175-9.175L20.15 7.4Z"},null,-1)];function Ll(e,n){return t.openBlock(),t.createElementBlock("svg",Ml,Pl)}const ql={name:"material-symbols-done",render:Ll},Dl=["id","data-testid"],zl=["for","data-testid","data-required"],jl={class:"container-input"},Rl=["id","data-testid"],Ql={inheritAttrs:!1},Ie=t.defineComponent({...Ql,__name:"InputText",props:{id:null,name:null,class:null,label:null,mask:null,helperText:null,successText:null,loadingText:null,required:null,disabled:null,isSuccess:null,isLoading:null,size:{default:"medium"},error:{default:null},modelValue:null,placeholder:null,useField:null,rules:null,opts:null},emits:["update:modelValue"],setup(e,{emit:n}){const l=e,i=t.useSlots(),r=t.computed(()=>!!(i!=null&&i.icon)),o=t.computed(()=>{var d;return(d=l.name)!=null?d:""}),{value:a,errorMessage:c}=Ve(o.value,{component:"input",error:t.computed(()=>l.error),modelValue:l.modelValue,rules:l.rules,opts:l.opts,useFieldParent:l.useField}),s=t.computed(()=>!!l.loadingText||!!(c!=null&&c.value)||!!l.successText||!!l.helperText),u=t.computed(()=>s.value?`input-text-describe-${l.id}`:null),m=t.computed(()=>{var d;return l.loadingText&&l.isLoading?{text:l.loadingText,type:"loading"}:(d=c==null?void 0:c.value)!=null&&d.length?{text:c==null?void 0:c.value,type:"error"}:l.successText&&l.isSuccess?{text:l.successText,type:"success"}:{text:l.helperText,type:"helper"}});function h(d){n("update:modelValue",d)}return(d,b)=>(t.openBlock(),t.createElementBlock("div",{id:`input-text-${e.id}`,"data-testid":`input-text-${e.id}`,class:t.normalizeClass([[`${d.$props.class}`,{"-disabled":e.disabled}],"sol-input-text-core"])},[e.label?(t.openBlock(),t.createElementBlock("label",{key:0,for:`input-text-input-${e.id}`,"data-testid":`input-text-label-${e.id}`,class:t.normalizeClass(["label",`-${e.size}`]),"data-required":e.required},t.toDisplayString(e.label),11,zl)):t.createCommentVNode("",!0),t.createElementVNode("div",jl,[t.createVNode(Ft,t.mergeProps(d.$attrs,{id:`text-input-${e.id}`,modelValue:t.unref(a),"onUpdate:modelValue":[b[0]||(b[0]=w=>t.isRef(a)?a.value=w:null),h],size:e.size,name:t.unref(o),mask:e.mask,placeholder:e.placeholder,"data-required":e.required,"has-feedback-icon":t.unref(r),error:!!t.unref(c),disabled:e.disabled,"aria-invalid":!!t.unref(c),"aria-describedby":t.unref(u)}),null,16,["id","modelValue","size","name","mask","placeholder","data-required","has-feedback-icon","error","disabled","aria-invalid","aria-describedby"]),e.isLoading?(t.openBlock(),t.createBlock(Bt,{key:0,class:t.normalizeClass(["icon-position",`-${e.size}`]),title:"carregando","aria-busy":e.isSuccess,size:e.size},null,8,["aria-busy","class","size"])):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["icon-position",`-${e.size}`])},[e.isSuccess?(t.openBlock(),t.createBlock(t.unref(ql),{key:0,"aria-hidden":"true",class:"text-feedback-positive-pure"})):t.renderSlot(d.$slots,"icon",{key:1})],2))]),t.unref(s)?(t.openBlock(),t.createElementBlock("span",{key:1,id:`input-text-describe-${e.id}`,"data-testid":`input-text-describe-${e.id}`,class:t.normalizeClass(["message",`-${t.unref(m).type}`])},t.toDisplayString(t.unref(m).text),11,Rl)):t.createCommentVNode("",!0)],10,Dl))}}),_o="",_l={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Hl=[t.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5"},[t.createElementVNode("path",{d:"M12 14a2 2 0 1 0 0-4a2 2 0 0 0 0 4Z"}),t.createElementVNode("path",{d:"M21 12c-1.889 2.991-5.282 6-9 6s-7.111-3.009-9-6c2.299-2.842 4.992-6 9-6s6.701 3.158 9 6Z"})],-1)];function Ul(e,n){return t.openBlock(),t.createElementBlock("svg",_l,Hl)}const Zl={name:"iconoir-eye-empty",render:Ul},Gl={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Yl=[t.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5"},[t.createElementVNode("path",{d:"m3 3l18 18M10.5 10.677a2 2 0 0 0 2.823 2.823"}),t.createElementVNode("path",{d:"M7.362 7.561C5.68 8.74 4.279 10.42 3 12c1.889 2.991 5.282 6 9 6c1.55 0 3.043-.523 4.395-1.35M12 6c4.008 0 6.701 3.158 9 6a15.66 15.66 0 0 1-1.078 1.5"})],-1)];function Wl(e,n){return t.openBlock(),t.createElementBlock("svg",Gl,Yl)}const Jl={name:"iconoir-eye-off",render:Wl},Kl=["aria-label"],Qe=t.defineComponent({__name:"InputPassword",props:{id:null,label:null,name:{default:"password"},placeholder:{default:"Digite sua senha."},helperText:null,required:{default:!0},disabled:null,size:null,error:null,modelValue:null,useField:null,rules:null,opts:null},setup(e){const n=t.ref(!1),l=t.computed(()=>n.value?"text":"password");return(i,r)=>(t.openBlock(),t.createBlock(Ie,{id:`password-${e.id}`,type:t.unref(l),label:e.label,name:e.name,required:e.required,size:e.size,"helper-text":e.helperText,placeholder:e.placeholder,error:e.error,"model-value":e.modelValue,"use-field":e.useField,rules:e.rules,opts:e.opts},{icon:t.withCtx(()=>[t.createElementVNode("button",{type:"button","data-testid":"toggle-type-password","aria-label":n.value?"Hide password":"Show password",onClick:r[0]||(r[0]=o=>n.value=!n.value)},[t.withDirectives(t.createVNode(t.unref(Zl),{class:"password-feedback-icon","aria-hidden":"true"},null,512),[[t.vShow,n.value]]),t.withDirectives(t.createVNode(t.unref(Jl),{class:"password-feedback-icon","aria-hidden":"true"},null,512),[[t.vShow,!n.value]])],8,Kl)]),_:1},8,["id","type","label","name","required","size","helper-text","placeholder","error","model-value","use-field","rules","opts"]))}}),Zo="",Xl=["id","data-testid"],ei=["id","data-testid","for","data-required"],ti=["id","data-testid","data-required","placeholder","aria-invalid","aria-describedby"],ni=["id","data-testid"],_e=t.defineComponent({__name:"InputTextarea",props:{id:null,class:null,name:null,label:null,required:{type:Boolean},helperText:null,resize:{default:"both"},size:{default:"medium"},error:{default:null},placeholder:null,modelValue:null,useField:null,rules:null,opts:null},emits:["update:modelValue"],setup(e,{emit:n}){const l=e,i=t.computed(()=>{var m;return(m=l.name)!=null?m:""}),{value:r,errorMessage:o}=Ve(i.value,{component:"input",error:t.computed(()=>l.error),modelValue:l.modelValue,rules:l.rules,opts:l.opts,useFieldParent:l.useField}),a=t.computed(()=>!!(o!=null&&o.value)||!!l.helperText),c=t.computed(()=>a.value?`input-textarea-describe-${l.id}`:void 0),s=t.computed(()=>{var m;return(m=o==null?void 0:o.value)!=null&&m.length?{text:o==null?void 0:o.value,type:"error"}:{text:l.helperText,type:"helper"}});function u({target:m}){n("update:modelValue",m==null?void 0:m.value)}return(m,h)=>{var d;return t.openBlock(),t.createElementBlock("div",{id:`input-textarea-${e.id}`,"data-testid":`input-textarea-${e.id}`,class:t.normalizeClass([[`${(d=m.$props.class)!=null?d:""}`,`-${e.size}`],"sol-textarea-core"])},[e.label?(t.openBlock(),t.createElementBlock("label",{key:0,id:`input-textarea-label-${e.id}`,"data-testid":`input-textarea-label-${e.id}`,for:`input-textarea-input-${e.id}`,class:"label","data-required":e.required},[t.createElementVNode("span",null,t.toDisplayString(e.label),1)],8,ei)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(t.unref(r))+" ",1),t.withDirectives(t.createElementVNode("textarea",t.mergeProps(m.$attrs,{id:`input-textarea-input-${e.id}`,"onUpdate:modelValue":h[0]||(h[0]=b=>t.isRef(r)?r.value=b:null),"data-testid":`input-textarea-input-${e.id}`,"data-required":e.required,class:[[`-${e.size}`,{"-error":e.error}],"textarea"],rows:"4",placeholder:e.placeholder,style:{resize:e.resize},"aria-invalid":!!t.unref(o),"aria-describedby":t.unref(c),onInput:u}),null,16,ti),[[t.vModelText,t.unref(r)]]),t.unref(a)?(t.openBlock(),t.createElementBlock("span",{key:1,id:`input-textarea-describe-${e.id}`,"data-testid":`input-textarea-describe-${e.id}`,class:t.normalizeClass(["message",`-${t.unref(s).type}`])},t.toDisplayString(t.unref(s).text),11,ni)):t.createCommentVNode("",!0)],10,Xl)}}}),Go="";Ie.install=e=>{e.component("SolInputText",Ie)},Qe.install=e=>{e.component("SolInputTextPassword",Qe)},_e.install=e=>{e.component("SolInputTextarea",_e)};const li=["id","aria-checked","aria-labelledby","data-testid","checked","value","name"],ii=["id","for","data-testid"],He=t.defineComponent({__name:"Switch",props:{id:null,name:null,value:null,label:null,checked:{type:Boolean},class:null,textDirection:{default:"left"},hideLabel:{type:Boolean},stretchLabel:{type:Boolean,default:!1}},emits:["change"],setup(e,{emit:n}){return(l,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["sol-switch-core",[l.$props.class,`-text-${e.textDirection}`,{"-stretch-label":e.stretchLabel}]])},[t.createElementVNode("input",t.mergeProps(l.$attrs,{id:`switch-${e.name}-${e.id}`,type:"checkbox",class:"switch",role:"switch","aria-checked":e.checked,"aria-labelledby":`switch-label-${e.name}-${e.id}`,"data-testid":`switch-${e.name}-${e.id}`,checked:e.checked,value:e.value,name:e.name,onChange:i[0]||(i[0]=r=>{var o;return n("change",(o=e.value)!=null?o:!!e.checked)})}),null,16,li),t.createElementVNode("label",{id:`switch-label-${e.name}-${e.id}`,class:t.normalizeClass(["label",`-${e.textDirection} ${e.hideLabel?"sr-only":""}`]),for:`switch-${e.name}-${e.id}`,"data-testid":`switch-label-${e.name}-${e.id}`},t.toDisplayString(e.label),11,ii)],2))}}),Yo="";He.install=e=>{e.component("SolSwitch",He)};const ri=["id","data-testid","checked","value","name"],oi=["for"],ai={inheritAttrs:!1},$e=t.defineComponent({...ai,__name:"Radio",props:{id:null,name:null,value:null,label:null,hideLabel:null,checked:null,class:null},emits:["change"],setup(e,{emit:n}){return(l,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["sol-radio-core",[l.$props.class,{"-hide-label":e.hideLabel}]])},[t.createElementVNode("input",t.mergeProps(l.$attrs,{id:`radio-${e.name}-${e.id}`,type:"radio",class:"radio","data-testid":`radio-${e.name}-${e.id}`,checked:e.checked,value:e.value,name:e.name,onChange:i[0]||(i[0]=r=>n("change",e.value))}),null,16,ri),t.createElementVNode("label",{class:"label",for:`radio-${e.name}-${e.id}`},t.toDisplayString(e.label),9,oi)],2))}}),Wo="",si=["id","data-testid","aria-labelledby"],ci=["id","data-testid"],di=["id","data-testid"],Ue=t.defineComponent({__name:"RadioGroup",props:{id:null,title:null,name:null,hideTitle:{type:Boolean,default:!1},helperText:null,error:{default:null},radios:null,modelValue:null,direction:{default:"row"},useField:null,rules:null,opts:null},emits:["change","update:modelValue"],setup(e,{emit:n}){const l=e,i=t.computed(()=>{var h;return(h=l.name)!=null?h:""}),{value:r,errorMessage:o}=Ve(i.value,{component:"radio",error:t.computed(()=>l.error),modelValue:l.modelValue,rules:l.rules,opts:l.opts,useFieldParent:l.useField}),a=t.computed(()=>!!(o!=null&&o.value)||!!l.helperText),c=t.computed(()=>a.value?`radios-describe-${l.id}`:null),s=t.computed(()=>{var h;return(h=o==null?void 0:o.value)!=null&&h.length?{text:o==null?void 0:o.value,type:"error"}:{text:l.helperText,type:"helper"}});function u(h){return r.value===h}function m(h){r.value=h.value,n("change",h.value),n("update:modelValue",h.value)}return(h,d)=>(t.openBlock(),t.createElementBlock("fieldset",{id:`radio-group-${e.id}`,"data-testid":`radio-group-${e.id}`,"aria-labelledby":`radio-group-title-${e.id}`,class:"sol-radio-group-core"},[t.renderSlot(h.$slots,"title",{id:`radio-group-title-${e.id}`},()=>[t.createElementVNode("legend",{id:`radio-group-title-${e.id}`,class:t.normalizeClass(["title",{"sr-only":e.hideTitle}]),"data-testid":`radio-group-title-${e.id}`},t.toDisplayString(e.title),11,ci)]),t.createElementVNode("ul",{class:t.normalizeClass(["container-radios",{"flex-col":e.direction==="column"}])},[t.renderSlot(h.$slots,"default",{radios:e.radios,direction:e.direction},()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.radios,(b,w)=>{var S;return t.openBlock(),t.createElementBlock("li",{key:w},[t.createVNode($e,t.mergeProps(h.$attrs,{id:(S=b==null?void 0:b.id)!=null?S:`${b.value}`,class:["radio",{"mb-micro":e.direction==="column","mr-micro":e.direction==="row"}],name:b.name,value:b.value,label:b.label,checked:u(b.value),error:!!t.unref(o),"aria-invalid":!!t.unref(o),"aria-describedby":t.unref(c),onChange:L=>m(b)}),null,16,["id","class","name","value","label","checked","error","aria-invalid","aria-describedby","onChange"])])}),128))])],2),t.unref(a)?(t.openBlock(),t.createElementBlock("span",{key:0,id:`radios-describe-${e.id}`,"data-testid":`radios-describe-${e.id}`,class:t.normalizeClass(["message",`-${t.unref(s).type}`])},t.toDisplayString(t.unref(s).text),11,di)):t.createCommentVNode("",!0)],8,si))}}),Jo="";$e.install=e=>{e.component("SolRadio",$e)},Ue.install=e=>{e.component("SolRadioGroup",Ue)};const ui=["id","indeterminate","data-testid","checked","value","name"],fi=["for"],mi={inheritAttrs:!1},he=t.defineComponent({...mi,__name:"Checkbox",props:{id:null,name:null,value:null,label:null,hideLabel:null,checked:null,class:null,indeterminate:{type:Boolean}},emits:["change"],setup(e,{emit:n}){return(l,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["sol-checkbox-core",[l.$props.class,{"-hide-label":e.hideLabel}]])},[t.createElementVNode("input",t.mergeProps(l.$attrs,{id:`checkbox-${e.name}-${e.id}`,type:"checkbox",indeterminate:e.indeterminate,class:"checkbox","data-testid":`checkbox-${e.name}-${e.id}`,checked:e.checked,value:e.value,name:e.name,onChange:i[0]||(i[0]=r=>n("change",e.value))}),null,16,ui),t.createElementVNode("label",{class:"label",for:`checkbox-${e.name}-${e.id}`},t.toDisplayString(e.label),9,fi)],2))}}),Ko="",hi=["id","data-testid","aria-labelledby"],yi=["id","data-testid"],gi=["id","data-testid"],Ze=t.defineComponent({__name:"CheckboxGroup",props:{id:null,title:null,name:null,hideTitle:{type:Boolean,default:!1},helperText:null,error:{default:null},checkboxes:null,modelValue:null,direction:{default:"row"},useField:null,rules:null,opts:null},emits:["change","update:modelValue"],setup(e,{emit:n}){const l=e,i=t.computed(()=>{var d;return(d=l.name)!=null?d:""}),{value:r,errorMessage:o}=Ve(i.value,{component:"checkbox",error:t.computed(()=>l.error),modelValue:l.modelValue,rules:l.rules,useFieldParent:l.useField}),a=t.computed(()=>!!(o!=null&&o.value)||!!l.helperText),c=t.computed(()=>a.value?`checkboxes-describe-${l.id}`:null),s=t.computed(()=>{var d;return(d=o==null?void 0:o.value)!=null&&d.length?{text:o==null?void 0:o.value,type:"error"}:{text:l.helperText,type:"helper"}});function u(d){var b;return(b=r.value)==null?void 0:b.includes(d)}function m(d){return Array.isArray(r.value)?[...r.value,d]:[d]}function h(d){var w;n("change",d.value);const b=u(d.value)?(w=r.value)==null?void 0:w.filter(S=>S!==d.value):m(d.value);r.value=b,n("update:modelValue",b)}return(d,b)=>(t.openBlock(),t.createElementBlock("fieldset",{id:`checkbox-group-${e.id}`,"data-testid":`checkbox-group-${e.id}`,class:"sol-checkbox-group-core","aria-labelledby":`checkbox-group-title-${e.id}`},[t.renderSlot(d.$slots,"title",{id:`checkbox-group-title-${e.id}`},()=>[t.createElementVNode("legend",{id:`checkbox-group-title-${e.id}`,class:t.normalizeClass(["title",{"sr-only":e.hideTitle}]),"data-testid":`checkbox-group-title-${e.id}`},t.toDisplayString(e.title),11,yi)]),t.createElementVNode("ul",{class:t.normalizeClass(["container-checkboxes",{"flex-col":e.direction==="column"}])},[t.renderSlot(d.$slots,"default",{checkboxes:e.checkboxes,direction:e.direction},()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.checkboxes,(w,S)=>{var L;return t.openBlock(),t.createElementBlock("li",{key:S},[t.createVNode(he,t.mergeProps(d.$attrs,{id:(L=w==null?void 0:w.id)!=null?L:`${w.value}`,class:["checkbox",{"mb-micro":e.direction==="column","mr-micro":e.direction==="row"}],label:w.label,name:w.name,value:w.value,checked:u(w.value),error:!!t.unref(o),"aria-invalid":!!t.unref(o),"aria-describedby":t.unref(c),onChange:z=>h(w)}),null,16,["id","class","label","name","value","checked","error","aria-invalid","aria-describedby","onChange"])])}),128))])],2),t.unref(a)?(t.openBlock(),t.createElementBlock("span",{key:0,id:`checkboxes-describe-${e.id}`,"data-testid":`checkboxes-describe-${e.id}`,class:t.normalizeClass(["message",`-${t.unref(s).type}`])},t.toDisplayString(t.unref(s).text),11,gi)):t.createCommentVNode("",!0)],8,hi))}}),Xo="";he.install=e=>{e.component("SolCheckbox",he)},Ze.install=e=>{e.component("SolCheckboxGroup",Ze)};var ln;const Ne=typeof window<"u",bi=e=>typeof e=="string",pt=()=>{};Ne&&((ln=window==null?void 0:window.navigator)==null?void 0:ln.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function ki(e){return typeof e=="function"?e():t.unref(e)}function pi(e){return e}function rn(e){return t.getCurrentScope()?(t.onScopeDispose(e),!0):!1}function $i(e,n=!0){t.getCurrentInstance()?t.onBeforeMount(e):n?e():t.nextTick(e)}function wi(e,n=!0){t.getCurrentInstance()?t.onMounted(e):n?e():t.nextTick(e)}function Ae(e){var n;const l=ki(e);return(n=l==null?void 0:l.$el)!=null?n:l}const $t=Ne?window:void 0;Ne&&window.document,Ne&&window.navigator,Ne&&window.location;function Ge(...e){let n,l,i,r;if(bi(e[0])?([l,i,r]=e,n=$t):[n,l,i,r]=e,!n)return pt;let o=pt;const a=t.watch(()=>Ae(n),s=>{o(),s&&(s.addEventListener(l,i,r),o=()=>{s.removeEventListener(l,i,r),o=pt})},{immediate:!0,flush:"post"}),c=()=>{a(),o()};return rn(c),c}function on(e,n,l={}){const{window:i=$t,ignore:r,capture:o=!0,detectIframe:a=!1}=l;if(!i)return;const c=t.ref(!0);let s;const u=d=>{i.clearTimeout(s);const b=Ae(e),w=d.composedPath();!b||b===d.target||w.includes(b)||!c.value||r&&r.length>0&&r.some(S=>{const L=Ae(S);return L&&(d.target===L||w.includes(L))})||n(d)},m=[Ge(i,"click",u,{passive:!0,capture:o}),Ge(i,"pointerdown",d=>{const b=Ae(e);c.value=!!b&&!d.composedPath().includes(b)},{passive:!0}),Ge(i,"pointerup",d=>{if(d.button===0){const b=d.composedPath();d.composedPath=()=>b,s=i.setTimeout(()=>u(d),50)}},{passive:!0}),a&&Ge(i,"blur",d=>{var b;const w=Ae(e);((b=document.activeElement)==null?void 0:b.tagName)==="IFRAME"&&!(w!=null&&w.contains(document.activeElement))&&n(d)})].filter(Boolean);return()=>m.forEach(d=>d())}function Si(e,n=!1){const l=t.ref(),i=()=>l.value=Boolean(e());return i(),wi(i,n),l}function xi(e,n={}){const{window:l=$t}=n,i=Si(()=>l&&"matchMedia"in l&&typeof l.matchMedia=="function");let r;const o=t.ref(!1),a=()=>{!i.value||(r||(r=l.matchMedia(e)),o.value=r.matches)};return $i(()=>{a(),r&&("addEventListener"in r?r.addEventListener("change",a):r.addListener(a),rn(()=>{"removeEventListener"in r?r.removeEventListener("change",a):r.removeListener(a)}))}),o}const wt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},St="__vueuse_ssr_handlers__";wt[St]=wt[St]||{},wt[St];var an;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(an||(an={}));var Ci=Object.defineProperty,sn=Object.getOwnPropertySymbols,vi=Object.prototype.hasOwnProperty,Ei=Object.prototype.propertyIsEnumerable,cn=(e,n,l)=>n in e?Ci(e,n,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[n]=l,Bi=(e,n)=>{for(var l in n||(n={}))vi.call(n,l)&&cn(e,l,n[l]);if(sn)for(var l of sn(n))Ei.call(n,l)&&cn(e,l,n[l]);return e};Bi({linear:pi},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});const Oi={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Vi=[t.createElementVNode("path",{fill:"currentColor",d:"M5.293 5.293a1 1 0 0 1 1.414 0L12 10.586l5.293-5.293a1 1 0 1 1 1.414 1.414L13.414 12l5.293 5.293a1 1 0 0 1-1.414 1.414L12 13.414l-5.293 5.293a1 1 0 0 1-1.414-1.414L10.586 12L5.293 6.707a1 1 0 0 1 0-1.414z"},null,-1)];function Ii(e,n){return t.openBlock(),t.createElementBlock("svg",Oi,Vi)}const Ni={name:"mi-close",render:Ii},Ai=["id","data-testid","title","aria-describedby","aria-disabled","onKeydown"],Ti=["id"],Fi={class:"label"},Te=t.defineComponent({__name:"Chip",props:{id:null,label:null,selected:{type:Boolean},disabled:{type:Boolean},removable:{type:Boolean,default:!0}},emits:["close","update:selected"],setup(e,{emit:n}){const l=e;function i({code:r}){if(!l.disabled)switch(r){case"Enter":case"NumpadEnter":case"Space":return n("update:selected");case"Delete":case"Backspace":return l.removable&&n("close");default:return!1}}return(r,o)=>(t.openBlock(),t.createElementBlock("div",{id:`chip-${e.id}`,"data-testid":`chip-${e.id}`,class:t.normalizeClass(["sol-chip-core",{"-selected":e.selected,"-disabled":e.disabled}]),tabindex:"0",title:e.label,"aria-describedby":`chip-description-${e.id}`,"aria-disabled":e.disabled,onClick:o[1]||(o[1]=a=>n("update:selected")),onKeydown:t.withModifiers(i,["self"])},[t.createElementVNode("span",{id:`chip-description-${e.id}`,"z-index":"-1",class:"sr-only"},"Press Delete or Backspace to remove this Chip",8,Ti),t.createElementVNode("span",Fi,[t.renderSlot(r.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.label),1)])]),e.removable?(t.openBlock(),t.createElementBlock("i",{key:0,role:"presentation","aira-hidden":"true",class:"close",onClick:o[0]||(o[0]=t.withModifiers(a=>n("close"),["stop"]))},[t.createVNode(t.unref(Ni),{class:"icon"})])):t.createCommentVNode("",!0)],42,Ai))}}),na="",Mi={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Pi=[t.createElementVNode("path",{fill:"currentColor",d:"m19.6 21l-6.3-6.3q-.75.6-1.725.95Q10.6 16 9.5 16q-2.725 0-4.612-1.887Q3 12.225 3 9.5q0-2.725 1.888-4.613Q6.775 3 9.5 3t4.613 1.887Q16 6.775 16 9.5q0 1.1-.35 2.075q-.35.975-.95 1.725l6.3 6.3ZM9.5 14q1.875 0 3.188-1.312Q14 11.375 14 9.5q0-1.875-1.312-3.188Q11.375 5 9.5 5Q7.625 5 6.312 6.312Q5 7.625 5 9.5q0 1.875 1.312 3.188Q7.625 14 9.5 14Z"},null,-1)];function Li(e,n){return t.openBlock(),t.createElementBlock("svg",Mi,Pi)}const qi={name:"material-symbols-search",render:Li},Di=["id","data-testid","aria-multiselectable","aria-labelledby"],zi=["id","data-testid","selected","aria-selected","onClick","onKeyup"],ji={key:1},Ri={key:0,class:"no-data"},Qi=t.createElementVNode("p",null,"Sem resultado para essa busca",-1),_i=t.defineComponent({__name:"ListOption",props:{id:null,name:null,options:null,multiple:{type:Boolean},isSelected:null},emits:["select"],setup(e,{expose:n,emit:l}){const i=t.ref("");return n({list:i}),(r,o)=>(t.openBlock(),t.createElementBlock("ul",{id:`select-list-${e.id}`,ref_key:"list",ref:i,"data-testid":`select-list-${e.id}`,role:"listbox",tabindex:"-1","aria-multiselectable":e.multiple,"aria-labelledby":`select-label-${e.id}`,class:"select-list-core"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,(a,c)=>(t.openBlock(),t.createElementBlock("li",{id:`option-${e.id}-${a.value}`,key:c,"data-testid":`option-${e.id}-${a.value}`,role:"option",tabindex:"-1",class:"select-option-item",style:t.normalizeStyle(`--item: ${c+1}`),selected:e.isSelected(a),"aria-selected":e.isSelected(a),onClick:s=>l("select",a),onKeyup:[t.withKeys(s=>l("select",a),["enter"]),t.withKeys(s=>l("select",a),["space"])]},[e.multiple?(t.openBlock(),t.createBlock(he,{key:0,id:`option-${e.id}-${a.value}`,class:"pointer-events-none",value:a.value,checked:e.isSelected(a),label:a.name,name:e.name},null,8,["id","value","checked","label","name"])):(t.openBlock(),t.createElementBlock("span",ji,t.toDisplayString(a.name),1))],44,zi))),128)),e.options.length?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("li",Ri,[t.renderSlot(r.$slots,"no-data",{},()=>[t.createVNode(t.unref(qi),{class:"icon"}),Qi])]))],8,Di))}}),ia="",Hi={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Ui=[t.createElementVNode("path",{fill:"currentColor",d:"M10 4a6 6 0 1 0 0 12a6 6 0 0 0 0-12zm-8 6a8 8 0 1 1 14.32 4.906l5.387 5.387a1 1 0 0 1-1.414 1.414l-5.387-5.387A8 8 0 0 1 2 10z"},null,-1)];function Zi(e,n){return t.openBlock(),t.createElementBlock("svg",Hi,Ui)}const Gi={name:"mi-search",render:Zi},Yi={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Wi=[t.createElementVNode("path",{fill:"currentColor",d:"m17 10l-5 6l-5-6h10z"},null,-1)];function Ji(e,n){return t.openBlock(),t.createElementBlock("svg",Yi,Wi)}const Ki={name:"mi-caret-down",render:Ji};function xt(e,n){function l({code:i}){var a;const r=i;(()=>{if(!(n!=null&&n.fallback))return!1;const c=s=>Array.isArray(s)?!s.includes(r):r!==s;return n!=null&&n.exclude?!e.hasOwnProperty(r)&&c(n.exclude):!e.hasOwnProperty(r)})()&&(n==null||n.fallback()),e.hasOwnProperty(r)&&((a=e[r])==null||a.call(e))}return{navigate:l}}function Ct({target:e,query:n}){const l=t.reactive({id:"",index:-1,rowIndex:-1});function i(d){const b=d!=null?d:l.index,w=e==null?void 0:e.value;h(),d!==void 0&&(l.index=d),setTimeout(()=>{var z;const S=w.children[b],L=n&&S.querySelector(n)?S.querySelector(n):S;l.id=(z=S==null?void 0:S.id)!=null?z:"",L==null||L.focus()},0)}function r(){l.index>0&&(l.index-=1,i())}function o(d){l.index<d-1&&(l.index+=1,i())}function a(){i(0)}function c(d){i(d-1)}function s({query:d,to:b}){var $,k;const w=l.index>=0?l.index:0,L=(e==null?void 0:e.value).children[w],z=Array.isArray(d)?d.flatMap(V=>Array.from(L.querySelectorAll(V))).filter(V=>V):Array.from(L.querySelectorAll(d));if(!z.length)return;const R=l.rowIndex<z.length-1;b==="RIGHT"&&R&&(l.rowIndex+=1,($=z[l.rowIndex])==null||$.focus()),b==="LEFT"&&(l.rowIndex=l.rowIndex>=0?l.rowIndex-1:-1,l.rowIndex<0?L.focus():(k=z[l.rowIndex])==null||k.focus())}function u(d){return d.id?d.id===l.id:d.index===l.index}function m(){l.id="",l.index=-1,l.rowIndex=-1}function h(){l.rowIndex=-1}return{elementFocus:l,isItemFocused:u,resetStateFocus:m,focusListItem:i,focusOnPreviousItem:r,focusOnNextItem:o,focusOnFirstItem:a,focusOnLastItem:c,focusInsideRow:s}}const Xi=["data-testid"],er=["id","data-testid","data-required"],tr=["id","data-testid","disabled","aria-expanded","aria-labelledby","aria-label","aria-invalid","aria-describedby","aria-controls","onClick"],nr={key:0,class:"container-tags"},lr=["data-testid"],ir=["id","data-testid"],rr={class:"select-options-container"},or=t.createElementVNode("hr",{class:"text-neutral-high-medium"},null,-1),Ye=t.defineComponent({__name:"Select",props:{id:null,label:null,ariaLabel:null,name:null,selected:null,options:{default:()=>[]},required:null,disabled:null,loading:{default:!1},searchable:{default:!1},closeOnSelect:{default:!0},fetchOnSearch:{default:!1},multiple:null,helperText:null,size:{default:"medium"},placeholder:{default:"Selecione"},searchPlaceholder:{default:"Buscar por"},error:{default:null},useField:null,rules:null,opts:null},emits:["closeDropdown","search","update:selected"],setup(e,{emit:n}){const l=e,i=t.ref(),r=t.ref(!1),o=t.ref(""),a=t.computed(()=>{var E;return l.fetchOnSearch?l.options:(E=l.options)==null?void 0:E.filter(B=>new RegExp(o.value,"gi").test(B.name))});on(i,()=>{r.value&&d()});const c=t.computed(()=>{var E;return(E=l.name)!=null?E:""}),{value:s,errorMessage:u}=Ve(c.value,{component:"select",error:t.computed(()=>l.error),selected:l==null?void 0:l.selected,rules:l.rules,opts:l.opts,useFieldParent:l.useField});function m(){l.disabled||(r.value?d():h())}function h(){r.value=!0}function d(){A(),n("closeDropdown")}function b(E){if(Array.isArray(s.value)){const B=s.value.findIndex(({value:p})=>p===E.value);return B===-1?[...s.value,E]:s.value.filter((p,x)=>x!==B)}return[E]}function w(E){const B=l.multiple?b(E):E;n("update:selected",B),s.value=B,l.closeOnSelect&&!l.multiple&&d()}function S(E){var B;return Array.isArray(s.value)?s.value.some(({value:p})=>p===E.value):E.value===((B=s==null?void 0:s.value)==null?void 0:B.value)}const L=t.ref(),z=t.ref();function R(){var E;l.searchable&&(q(),(E=L.value)==null||E.focus())}const{elementFocus:$,focusOnFirstItem:k,focusOnLastItem:V,focusOnNextItem:I,focusOnPreviousItem:T,resetStateFocus:q}=Ct({target:z}),{navigate:Q}=xt({Home:k,End:()=>V(l.options.length),ArrowUp:T,ArrowDown:()=>{!r.value&&h(),I(l.options.length)},Escape:d},{fallback:R,exclude:["Enter","NumpadEnter","Space"]});function A(){r.value=!1,o.value="",q()}function D(E){return B=>{E==="search"?L.value=B==null?void 0:B.input:z.value=B==null?void 0:B.list}}function H(){var B;const E=s.value;return(B=E==null?void 0:E.name)!=null?B:l.placeholder}const J=t.computed(()=>!!(u!=null&&u.value)||!!l.helperText),ne=t.computed(()=>J.value?`input-text-describe-${l.id}`:void 0),Y=t.computed(()=>{var E;return(E=u==null?void 0:u.value)!=null&&E.length?{text:u==null?void 0:u.value,type:"error"}:{text:l.helperText,type:"helper"}});return(E,B)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"el",ref:i,class:t.normalizeClass(["sol-select-core",`-${e.size}`]),"data-testid":`select-${e.id}`,onKeydownPassive:B[3]||(B[3]=(...p)=>t.unref(Q)&&t.unref(Q)(...p))},[t.renderSlot(E.$slots,"label",{id:`select-label-${e.id}`,for:`select-toggle-${e.id}`},()=>[e.label?(t.openBlock(),t.createElementBlock("label",{key:0,id:`select-label-${e.id}`,"data-testid":`select-label-${e.id}`,"data-required":e.required,class:t.normalizeClass(["label",{"-disabled":e.disabled}])},t.toDisplayString(e.label),11,er)):t.createCommentVNode("",!0)]),t.createElementVNode("button",{id:`select-toggle-${e.id}`,"data-testid":`select-toggle-${e.id}`,type:"button",disabled:e.disabled,class:"select-button-toggle","aria-haspopup":"listbox","aria-expanded":r.value,"aria-labelledby":`select-label-${e.id}`,"aria-label":e.ariaLabel,"aria-invalid":!!t.unref(u),"aria-describedby":t.unref(ne),"aria-controls":`select-list-${e.id}`,onClick:t.withModifiers(m,["stop"])},[t.renderSlot(E.$slots,"toggle-dropdown",{toggle:{open:h,close:d,toggleDropdown:m},isOpen:r.value,select:w,selected:e.selected},()=>{var p;return[e.multiple&&Array.isArray(t.unref(s))&&((p=t.unref(s))==null?void 0:p.length)?(t.openBlock(),t.createElementBlock("div",nr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(s),(x,O)=>(t.openBlock(),t.createBlock(Te,{id:`select-value-selected-${e.id}-${x.value}`,key:O,label:x.name,onClick:t.withModifiers(N=>w(x),["stop"]),onClose:N=>w(x)},null,8,["id","label","onClick","onClose"]))),128))])):(t.openBlock(),t.createElementBlock("span",{key:1,"data-testid":`select-value-selected-${e.id}`,class:"",tabindex:"-1"},t.toDisplayString(H()),9,lr)),t.createVNode(t.unref(Ki),{"aria-hidden":"true",tabindex:"-1",class:t.normalizeClass(["icon",{"-open":r.value}])},null,8,["class"])]})],8,tr),t.unref(J)?t.withDirectives((t.openBlock(),t.createElementBlock("span",{key:0,id:`select-describe-${e.id}`,"data-testid":`select-describe-${e.id}`,class:t.normalizeClass(["message",`-${t.unref(Y).type}`])},t.toDisplayString(t.unref(Y).text),11,ir)),[[t.vShow,!r.value]]):t.createCommentVNode("",!0),t.createVNode(t.Transition,{mode:"out-in",name:"dropdown"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",rr,[t.renderSlot(E.$slots,"search",{},()=>[e.searchable?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["search-container",{"-loading":e.loading}])},[t.createVNode(Ft,{id:`select-search-${e.id}`,ref:D("search"),modelValue:o.value,"onUpdate:modelValue":B[0]||(B[0]=p=>o.value=p),role:"combobox",class:"search",size:"small","aria-autocomplete":"list",placeholder:e.searchPlaceholder,"aria-expanded":r.value,"aria-haspopup":"listbox","aria-owns":`select-list-${e.id}`,"aria-controls":`select-list-${e.id}`,"aria-activedescendant":t.unref($).id,"aria-labelledby":`select-label-${e.id}`,onClick:B[1]||(B[1]=t.withModifiers(()=>{},["stop"])),onInput:B[2]||(B[2]=p=>{var x;return n("search",(x=p.target)==null?void 0:x.value)})},null,8,["id","modelValue","placeholder","aria-expanded","aria-owns","aria-controls","aria-activedescendant","aria-labelledby"]),t.createVNode(t.unref(Gi),{"aria-hidden":"true",class:"icon"})],2)):t.createCommentVNode("",!0),or,t.createVNode(_i,{id:e.id,ref:D("list"),options:t.unref(a),name:t.unref(c),multiple:e.multiple,"is-selected":S,onSelect:w},{"no-data":t.withCtx(()=>[t.renderSlot(E.$slots,"no-data")]),_:3},8,["id","options","name","multiple"])])],512),[[t.vShow,r.value]])]),_:3})],42,Xi))}}),aa="";Ye.install=e=>{e.component("SolSelect",Ye)},Te.install=e=>{e.component("SolChip",Te)};const ar=["id","data-testid","title"],We=t.defineComponent({__name:"Tag",props:{id:null,text:{default:"default"},variant:{default:"fill"},size:{default:"small"},type:{default:"neutral"}},setup(e){return(n,l)=>(t.openBlock(),t.createElementBlock("div",{id:`tag-${e.id}`,"data-testid":`tag-${e.id}`,class:t.normalizeClass(["sol-tag-core",`-${e.size} -${e.variant} -${e.type}`]),title:e.text},[t.renderSlot(n.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.text),1)])],10,ar))}}),sa="";We.install=e=>{e.component("SolTag",We)};const sr={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},cr=[t.createElementVNode("path",{fill:"currentColor",d:"m10.6 16.6l7.05-7.05l-1.4-1.4l-5.65 5.65l-2.85-2.85l-1.4 1.4ZM12 22q-2.075 0-3.9-.788q-1.825-.787-3.175-2.137q-1.35-1.35-2.137-3.175Q2 14.075 2 12t.788-3.9q.787-1.825 2.137-3.175q1.35-1.35 3.175-2.138Q9.925 2 12 2t3.9.787q1.825.788 3.175 2.138q1.35 1.35 2.137 3.175Q22 9.925 22 12t-.788 3.9q-.787 1.825-2.137 3.175q-1.35 1.35-3.175 2.137Q14.075 22 12 22Zm0-2q3.35 0 5.675-2.325Q20 15.35 20 12q0-3.35-2.325-5.675Q15.35 4 12 4Q8.65 4 6.325 6.325Q4 8.65 4 12q0 3.35 2.325 5.675Q8.65 20 12 20Zm0-8Z"},null,-1)];function dr(e,n){return t.openBlock(),t.createElementBlock("svg",sr,cr)}const ur={name:"material-symbols-check-circle-outline",render:dr},fr={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},mr=[t.createElementVNode("path",{fill:"currentColor",d:"M1 21L12 2l11 19Zm3.45-2h15.1L12 6ZM12 18q.425 0 .713-.288Q13 17.425 13 17t-.287-.712Q12.425 16 12 16t-.712.288Q11 16.575 11 17t.288.712Q11.575 18 12 18Zm-1-3h2v-5h-2Zm1-2.5Z"},null,-1)];function hr(e,n){return t.openBlock(),t.createElementBlock("svg",fr,mr)}const yr={name:"material-symbols-warning-outline",render:hr},gr={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},br=[t.createElementVNode("path",{fill:"currentColor",d:"m8.4 17l3.6-3.6l3.6 3.6l1.4-1.4l-3.6-3.6L17 8.4L15.6 7L12 10.6L8.4 7L7 8.4l3.6 3.6L7 15.6Zm3.6 5q-2.075 0-3.9-.788q-1.825-.787-3.175-2.137q-1.35-1.35-2.137-3.175Q2 14.075 2 12t.788-3.9q.787-1.825 2.137-3.175q1.35-1.35 3.175-2.138Q9.925 2 12 2t3.9.787q1.825.788 3.175 2.138q1.35 1.35 2.137 3.175Q22 9.925 22 12t-.788 3.9q-.787 1.825-2.137 3.175q-1.35 1.35-3.175 2.137Q14.075 22 12 22Zm0-2q3.35 0 5.675-2.325Q20 15.35 20 12q0-3.35-2.325-5.675Q15.35 4 12 4Q8.65 4 6.325 6.325Q4 8.65 4 12q0 3.35 2.325 5.675Q8.65 20 12 20Zm0-8Z"},null,-1)];function kr(e,n){return t.openBlock(),t.createElementBlock("svg",gr,br)}const pr={name:"material-symbols-cancel-outline",render:kr},$r={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},wr=[t.createElementVNode("path",{fill:"currentColor",d:"M11 17h2v-6h-2Zm1-8q.425 0 .713-.288Q13 8.425 13 8t-.287-.713Q12.425 7 12 7t-.712.287Q11 7.575 11 8t.288.712Q11.575 9 12 9Zm0 13q-2.075 0-3.9-.788q-1.825-.787-3.175-2.137q-1.35-1.35-2.137-3.175Q2 14.075 2 12t.788-3.9q.787-1.825 2.137-3.175q1.35-1.35 3.175-2.138Q9.925 2 12 2t3.9.787q1.825.788 3.175 2.138q1.35 1.35 2.137 3.175Q22 9.925 22 12t-.788 3.9q-.787 1.825-2.137 3.175q-1.35 1.35-3.175 2.137Q14.075 22 12 22Zm0-2q3.35 0 5.675-2.325Q20 15.35 20 12q0-3.35-2.325-5.675Q15.35 4 12 4Q8.65 4 6.325 6.325Q4 8.65 4 12q0 3.35 2.325 5.675Q8.65 20 12 20Zm0-8Z"},null,-1)];function Sr(e,n){return t.openBlock(),t.createElementBlock("svg",$r,wr)}const xr={name:"material-symbols-info-outline",render:Sr},Cr=["id","data-testid"],vr={class:"container-content"},Er={class:"content"},Br={key:0,class:"title"},Je=t.defineComponent({__name:"Alert",props:{id:null,title:{default:"title"},text:{default:"text"},feedback:{default:"success"},action:null},emits:["click"],setup(e,{emit:n}){return(l,i)=>(t.openBlock(),t.createElementBlock("div",{id:`alert-${e.id}`,"data-testid":`alert-${e.id}`,class:t.normalizeClass(["sol-alert-core",`-${e.feedback}`]),"aria-live":"assertive",role:"alert"},[t.createElementVNode("div",vr,[e.feedback==="success"?(t.openBlock(),t.createBlock(t.unref(ur),{key:0,class:"icon","aria-hidden":"true"})):t.createCommentVNode("",!0),e.feedback==="warning"?(t.openBlock(),t.createBlock(t.unref(yr),{key:1,class:"icon","aria-hidden":"true"})):t.createCommentVNode("",!0),e.feedback==="error"?(t.openBlock(),t.createBlock(t.unref(pr),{key:2,class:"icon","aria-hidden":"true"})):t.createCommentVNode("",!0),e.feedback==="informative"?(t.openBlock(),t.createBlock(t.unref(xr),{key:3,class:"icon","aria-hidden":"true"})):t.createCommentVNode("",!0),t.createElementVNode("div",Er,[e.title?(t.openBlock(),t.createElementBlock("strong",Br,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.renderSlot(l.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.text),1)])])]),e.action?(t.openBlock(),t.createBlock(oe,{key:0,id:`alert-action-${e.id}`,variant:"secondary",size:"small",onClick:i[0]||(i[0]=r=>n("click"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.action),1)]),_:1},8,["id"])):t.createCommentVNode("",!0)],10,Cr))}}),ma="";Je.install=e=>{e.component("SolAlert",Je)};const Or={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Vr=[t.createElementVNode("path",{fill:"currentColor",d:"M12 14.975q-.2 0-.387-.075q-.188-.075-.313-.2l-4.6-4.6q-.275-.275-.275-.7q0-.425.275-.7q.275-.275.7-.275q.425 0 .7.275l3.9 3.9l3.9-3.9q.275-.275.7-.275q.425 0 .7.275q.275.275.275.7q0 .425-.275.7l-4.6 4.6q-.15.15-.325.212q-.175.063-.375.063Z"},null,-1)];function Ir(e,n){return t.openBlock(),t.createElementBlock("svg",Or,Vr)}const dn={name:"material-symbols-keyboard-arrow-down-rounded",render:Ir},Nr=["id","data-testid","aria-disabled"],Ar=["data-testid","tabindex"],Tr={class:"container-title"},Fr={class:"icon"},Mr=["data-testid"],Ke=t.defineComponent({__name:"Accordion",props:{id:null,title:{default:"Title"},onColor:{type:Boolean},disabled:{type:Boolean}},setup(e){return(n,l)=>(t.openBlock(),t.createElementBlock("details",{id:`accordion-${e.id}`,"data-testid":`accordion-${e.id}`,class:t.normalizeClass(["sol-accordion-core",{"-on-color":e.onColor,"-disabled":e.disabled}]),"aria-disabled":e.disabled},[t.createElementVNode("summary",{"data-testid":`accordion-title-${e.id}`,class:"summary",tabindex:e.disabled?-1:0},[t.createElementVNode("div",Tr,[t.createElementVNode("span",Fr,[t.renderSlot(n.$slots,"icon")]),t.renderSlot(n.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(e.title),1)])]),t.createVNode(t.unref(dn),{class:"icon","aria-hidden":"true"})],8,Ar),t.createElementVNode("div",{"data-testid":`accordion-content-${e.id}`,class:"accordion-content"},[t.renderSlot(n.$slots,"default")],8,Mr)],10,Nr))}}),ya="";Ke.install=e=>{e.component("SolAccordion",Ke)};const Pr=["id","data-testid"],Lr=["id","aria-expanded"],qr=["id","data-testid","aria-labelledby"],we=t.defineComponent({__name:"Menu",props:{id:null,label:{default:"Teste"},position:{default:"bottom"}},setup(e){const n=t.ref();on(n,()=>{h()});const l=t.ref(!1),i=t.ref(),r=t.computed(()=>i.value?i.value.childElementCount:0),{resetStateFocus:o,focusOnPreviousItem:a,focusOnNextItem:c,focusOnFirstItem:s,focusOnLastItem:u}=Ct({target:i,query:'[role="menuitem"]'}),{navigate:m}=xt({Home:s,End:()=>u(r.value),ArrowUp:a,ArrowDown:()=>{!l.value&&d(),c(r.value)},Escape:h});function h(){l.value=!1,o()}function d(){l.value=!0}function b(){l.value?h():d()}return(w,S)=>(t.openBlock(),t.createElementBlock("div",{id:`menu-${e.id}`,ref_key:"el",ref:n,"data-testid":`menu-${e.id}`,class:t.normalizeClass([`-${e.position}`,"sol-menu-core"]),onKeyupPassive:S[0]||(S[0]=(...L)=>t.unref(m)&&t.unref(m)(...L))},[t.renderSlot(w.$slots,"trigger",{id:`menu-button-${e.id}`,toggle:b,isOpen:l.value,arias:{role:"menuitem",class:"toggle-menu",ariaHaspopup:!0,ariaExpanded:l.value}},()=>[t.createElementVNode("button",{id:`menu-button-${e.id}`,type:"button",role:"menuitem",class:"toggle-menu","aria-haspopup":"true","aria-expanded":l.value,onClick:b},[t.renderSlot(w.$slots,"label",{isOpen:l.value},()=>[t.createTextVNode(t.toDisplayString(e.label),1)])],8,Lr)]),t.withDirectives(t.createElementVNode("menu",{id:`menu-container-${e.id}`,ref_key:"menu",ref:i,"data-testid":`menu-container-${e.id}`,role:"menu","aria-labelledby":`menu-button-${e.id}`,class:t.normalizeClass(["menu",{"-open":l.value}])},[t.renderSlot(w.$slots,"default",{close:h})],10,qr),[[t.vShow,l.value]])],42,Pr))}}),ga="",Dr=["itemprop"],zr=t.defineComponent({__name:"TextValue",props:{itemProp:null,property:null,value:null,isHighlightValue:{type:Boolean},align:{default:"left"},hide:{type:Boolean}},setup(e){return(n,l)=>(t.openBlock(),t.createElementBlock("p",{class:t.normalizeClass(["text-property-value",`-${e.align}`])},[t.createElementVNode("span",{class:t.normalizeClass(["property",{"-hide":e.hide}])},[t.renderSlot(n.$slots,"property",{},()=>[t.createTextVNode(t.toDisplayString(e.property),1)])],2),t.createElementVNode("span",{itemprop:e.itemProp,class:t.normalizeClass(["value",{"-highlight":e.isHighlightValue}])},[t.renderSlot(n.$slots,"value",{},()=>[t.createTextVNode(t.toDisplayString(e.value),1)])],10,Dr)],2))}}),ba="",jr=["id","data-testid"],Rr={key:0,"data-interactive":"",class:"selectable"},Qr={key:1,class:"column-item -image"},_r=["data-testid"],Hr={key:2,class:"menu-action","data-interactive":""},Ur=t.defineComponent({__name:"ListItem",props:{id:null,itemIndex:null,headers:null,data:null,hasMenu:null,hasImage:null,renderHeader:null,isHighlight:null,isSelected:null,fallbackValue:null,setFixedColumnSize:null,sortPositions:null},setup(e){const n=e,l=t.useSlots(),i=t.computed(()=>!!(l!=null&&l.selectable));function r(s){return s!=null?s:n.fallbackValue}function o(s){return i.value&&s===0}function a(s){return n.hasImage&&s===0}function c(s,u){return n.hasMenu&&s===0&&u===0}return(s,u)=>(t.openBlock(),t.createElementBlock("li",{id:`listitem-${e.id}-${e.itemIndex}`,"data-testid":`listitem-${e.id}-${e.itemIndex}`,class:t.normalizeClass(["list-item",{"-selected":e.isSelected}]),tabindex:"-1"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.sortPositions,(m,h)=>(t.openBlock(),t.createElementBlock("div",{key:h,class:"list-item-row"},[o(h)?(t.openBlock(),t.createElementBlock("div",Rr,[t.renderSlot(s.$slots,"selectable",{data:e.data,index:e.itemIndex,label:`${e.data[m[0]]}`})])):t.createCommentVNode("",!0),a(h)?(t.openBlock(),t.createElementBlock("div",Qr,[t.renderSlot(s.$slots,"image",{data:e.data})])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m,(d,b)=>(t.openBlock(),t.createElementBlock("div",{key:b,style:t.normalizeStyle(`${e.setFixedColumnSize(d)}`),class:"column-item","data-testid":`listitem-column-${e.id}-${e.itemIndex}-${d}`},[t.renderSlot(s.$slots,`column:${d}`,{data:{key:d,value:e.data[d]},index:e.itemIndex,columnIndex:b,renderHeader:e.renderHeader,headers:e.headers},()=>{var w,S,L,z;return[t.createVNode(zr,{"data-testid":`listitem-${e.id}-${e.itemIndex}-${d}`,"item-prop":d,hide:(S=(w=e.headers)==null?void 0:w[d])==null?void 0:S.hide,align:(z=(L=e.headers)==null?void 0:L[d])==null?void 0:z.align,"is-highlight-value":e.isHighlight({key:d})},{property:t.withCtx(()=>[t.renderSlot(s.$slots,`header:${d}`,{data:{key:d,value:e.data[d]},index:h,columnIndex:b,renderHeader:e.renderHeader,headers:e.headers},()=>[t.createTextVNode(t.toDisplayString(e.renderHeader(d)),1)])]),value:t.withCtx(()=>[t.renderSlot(s.$slots,`value:${d}`,{data:{key:d,value:e.data[d]},index:h,columnIndex:b,isHighlight:e.isHighlight},()=>[t.createTextVNode(t.toDisplayString(r(e.data[d])),1)])]),_:2},1032,["data-testid","item-prop","hide","align","is-highlight-value"])]})],12,_r))),128)),c(h,0)?(t.openBlock(),t.createElementBlock("div",Hr,[t.renderSlot(s.$slots,"action-button",{arias:{testid:`list-row-action-${e.id}-${e.itemIndex}`,data:e.data,index:e.itemIndex,ariaLabel:"Open menu"}})])):t.createCommentVNode("",!0)]))),128))],10,jr))}}),ka="",Zr={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},Gr=[t.createElementVNode("path",{fill:"currentColor",d:"M12 20q-.825 0-1.412-.587Q10 18.825 10 18q0-.825.588-1.413Q11.175 16 12 16t1.413.587Q14 17.175 14 18q0 .825-.587 1.413Q12.825 20 12 20Zm0-6q-.825 0-1.412-.588Q10 12.825 10 12t.588-1.413Q11.175 10 12 10t1.413.587Q14 11.175 14 12q0 .825-.587 1.412Q12.825 14 12 14Zm0-6q-.825 0-1.412-.588Q10 6.825 10 6t.588-1.412Q11.175 4 12 4t1.413.588Q14 5.175 14 6t-.587 1.412Q12.825 8 12 8Z"},null,-1)];function Yr(e,n){return t.openBlock(),t.createElementBlock("svg",Zr,Gr)}const Wr={name:"material-symbols-more-vert",render:Yr},Jr=["id","data-testid","aria-label"],Xe=t.defineComponent({__name:"List",props:{id:null,data:null,headers:null,selected:null,ariaLabel:{default:"List of data"},selectMode:null,dataIdentifier:{default:()=>({key:"id"})},sortPositions:null,fallbackValue:{default:"-"}},emits:["listitem:click","listitem:selected","update:selected"],setup(e,{expose:n,emit:l}){var B;const i=e,r=t.useSlots(),o=t.computed(()=>!!(r!=null&&r.menu)),a=t.computed(()=>!!(r!=null&&r.image)),c=xi("(min-width: 1024px)"),s=t.computed(()=>{var p,x,O;return(x=(p=i.sortPositions)==null?void 0:p.mobile)!=null&&x.length?(O=i.sortPositions)==null?void 0:O.mobile:h()}),u=t.computed(()=>{var p;return(p=i.sortPositions)!=null&&p.desktop.length?i.sortPositions.desktop:Object.keys(i.data[0])}),m=t.computed(()=>c.value?[u.value]:s.value);function h(){return Object.keys(i.data[0]).reduce((x,O,N)=>{if(N===0)return x=[[O]];if(N===1)return x=[...x,[O]];const P=x==null?void 0:x.length,y=x==null?void 0:x[P-1];return Array.isArray(y)&&(y==null?void 0:y.length)<2?(x[P-1]=[...y,O],x):x=[...x,[O]]},[])}function d(p){var x,O;return(O=i.headers&&((x=i.headers[p])==null?void 0:x.text))!=null?O:p}function b(p){var x,O,N,P,y,v,_,ce,ee;if((x=i.headers)!=null&&x[p]){if(((N=(O=i.headers)==null?void 0:O[p])==null?void 0:N.width)&&c.value)return`--basis-width: ${(y=(P=i.headers)==null?void 0:P[p])==null?void 0:y.width}; --shrink: 0;`;if(((_=(v=i.headers)==null?void 0:v[p])==null?void 0:_.mobileWidth)&&!c.value)return`--basis-width: ${(ee=(ce=i.headers)==null?void 0:ce[p])==null?void 0:ee.mobileWidth}; --shrink: 0;`}}function w({key:p,value:x}){var O,N;return x?!0:p?!!((N=(O=i.headers)==null?void 0:O[p])!=null&&N.highlight):!1}const S=t.ref(),L=["[data-interactive] input","[data-interactive-element]","[data-interactive] button"],{elementFocus:z,focusInsideRow:R,focusOnFirstItem:$,focusOnLastItem:k,focusOnNextItem:V,focusOnPreviousItem:I,resetStateFocus:T}=Ct({target:S}),{navigate:q}=xt({Home:$,End:()=>k(i.data.length),ArrowUp:()=>!Q()&&I(),ArrowDown:()=>!Q()&&V(i.data.length),ArrowLeft:()=>z.id&&R({to:"LEFT",query:L}),ArrowRight:()=>z.id&&R({to:"RIGHT",query:L})},{fallback:T,exclude:["Enter","NumpadEnter","Space"]});function Q(){var p,x;if(document.activeElement&&((p=document.activeElement)==null?void 0:p.role)){const O=document.activeElement.role,N=(x=document.activeElement)==null?void 0:x.parentElement;return O==="menuitem"?!0:!!(()=>O==="none"&&(N==null?void 0:N.role)&&["menuitem","menu"].includes(N.role))()}return!1}const A=t.ref((B=i==null?void 0:i.selected)!=null?B:{});function D(p){if(A.value){const x=i.dataIdentifier.key,O=p[x];return i.selectMode&&i.selectMode==="checkbox"&&Array.isArray(A.value)?A.value.findIndex(P=>P[x]===O)>=0:A.value[x]===O}return!1}function H(p){A.value=p,l("listitem:selected",p),l("update:selected",A.value)}function J(p){const x=i.dataIdentifier.key,O=p[x],N=Array.isArray(A.value)?A.value:[],P=D(p)?N==null?void 0:N.filter(y=>y[x]!==O):ne(p);A.value=P,l("listitem:selected",p),l("update:selected",A.value)}function ne(p){var x;if(Array.isArray(A.value)){const O=i.dataIdentifier.key,N=A.value.findIndex(P=>P[O]===p[O]);return N===-1?[...A.value,p]:(x=A.value)==null?void 0:x.filter((P,y)=>y!==N)}return[p]}function Y(){const p=Object.keys(i.data[0]).includes(i.dataIdentifier.key);if(i.selectMode==="checkbox"&&p){A.value=i.data,l("update:selected",A.value);return}console.warn('The Prop `dataIdentifier.key` must be a valid key; and The Prop `selectMode` must be "checkbox"'),console.warn(`Your Prop [dataIdentifier.key] is ${i.dataIdentifier.key} and [selectMode] is ${i.selectMode}`)}function E(){A.value=i.selectMode==="checkbox"&&Array.isArray(A.value)?[]:{},l("update:selected",A.value)}return n({unselectAll:E,selectAll:Y}),(p,x)=>(t.openBlock(),t.createElementBlock("ul",{id:`list-${e.id}`,ref_key:"list",ref:S,"data-testid":`list-${e.id}`,class:"sol-list-core","aria-label":e.ariaLabel,tabindex:"0",itemscope:"",onKeyupPassive:x[0]||(x[0]=(...O)=>t.unref(q)&&t.unref(q)(...O))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.data,(O,N)=>(t.openBlock(),t.createBlock(Ur,{id:e.id,key:N,headers:e.headers,data:O,"item-index":N,"is-selected":D(O),"sort-positions":t.unref(m),"fallback-value":e.fallbackValue,"has-image":t.unref(a),"has-menu":t.unref(o),"render-header":d,"is-highlight":w,"set-fixed-column-size":b,onClick:t.withModifiers(P=>l("listitem:click",{...O,index:N}),["self"]),onKeyup:[t.withKeys(t.withModifiers(P=>l("listitem:click",{...O,index:N}),["self"]),["enter"]),t.withKeys(t.withModifiers(P=>l("listitem:click",{...O,index:N}),["self"]),["space"])]},t.createSlots({selectable:t.withCtx(({data:P,label:y})=>{var v,_,ce,ee,te,ie;return[e.selectMode==="checkbox"?(t.openBlock(),t.createBlock(he,{key:0,id:`listitem-${P[(v=e.dataIdentifier)==null?void 0:v.key]}`,"hide-label":!0,label:y,checked:D(O),value:P[(_=e.dataIdentifier)==null?void 0:_.key],name:(ce=e.dataIdentifier.inputName)!=null?ce:e.id,onChange:Le=>J(P)},null,8,["id","label","checked","value","name","onChange"])):t.createCommentVNode("",!0),e.selectMode==="radio"?(t.openBlock(),t.createBlock($e,{key:1,id:`listitem-${P[(ee=e.dataIdentifier)==null?void 0:ee.key]}`,"hide-label":!0,label:y,checked:D(O),value:P[(te=e.dataIdentifier)==null?void 0:te.key],name:(ie=e.dataIdentifier.inputName)!=null?ie:e.id,onChange:Le=>H(P)},null,8,["id","label","checked","value","name","onChange"])):t.createCommentVNode("",!0)]}),"action-button":t.withCtx(({arias:P})=>[t.renderSlot(p.$slots,"action-button",{arias:P},()=>[t.createVNode(we,{id:`listitem-${e.id}-${N}`,position:"left"},{trigger:t.withCtx(({arias:y,id:v,toggle:_})=>[t.createVNode(oe,{id:v,"aria-haspopup":y.ariaHaspopup,"aria-expanded":y.ariaExpanded,role:y.role,size:"small",variant:"tertiary","aria-label":P.ariaLabel,class:"menu-button-trigger",onClick:_},{"icon-left":t.withCtx(()=>[t.createVNode(t.unref(Wr),{class:"text-2xs","aria-hidden":"true"})]),_:2},1032,["id","aria-haspopup","aria-expanded","role","aria-label","onClick"])]),default:t.withCtx(()=>[t.renderSlot(p.$slots,"menu")]),_:2},1032,["id"])])]),_:2},[t.unref(a)?{name:"image",fn:t.withCtx(({data:P})=>[t.renderSlot(p.$slots,"image",{data:P})]),key:"0"}:void 0,t.renderList(O,(P,y)=>({name:`column:${y}`,fn:t.withCtx(v=>[t.renderSlot(p.$slots,`column:${y}`,{data:v.data,index:v.index,columnIndex:N,renderHeader:d,headers:e.headers})])})),t.renderList(O,(P,y)=>({name:`header:${y}`,fn:t.withCtx(v=>[t.renderSlot(p.$slots,`header:${y}`,{data:v.data,index:v.index,columnIndex:v.columnIndex,renderHeader:v.renderHeader,headers:v.headers})])})),t.renderList(O,(P,y)=>({name:`value:${y}`,fn:t.withCtx(v=>[t.renderSlot(p.$slots,`value:${y}`,{data:v.data,index:v.index,columnIndex:v.columnIndex,isHighlight:v.isHighlight})])}))]),1032,["id","headers","data","item-index","is-selected","sort-positions","fallback-value","has-image","has-menu","onClick","onKeyup"]))),128))],40,Jr))}}),$a="";Xe.install=e=>{e.component("SolList",Xe)},we.install=e=>{e.component("SolMenu",we)};const Kr=["id"],Xr=["href","target"],Fe=t.defineComponent({__name:"MenuItemLink",props:{id:null,linkId:null,text:null,link:null,active:null,external:null},emits:["clicked"],setup(e,{emit:n}){return(l,i)=>{var r;return t.openBlock(),t.createElementBlock("li",{id:`menu-item-link-${e.id}`,class:"sol-menuitem-link-core",tabindex:"-1",role:"none",onClick:i[0]||(i[0]=o=>n("clicked")),onKeyup:[i[1]||(i[1]=t.withKeys(o=>n("clicked"),["enter"])),i[2]||(i[2]=t.withKeys(o=>n("clicked"),["space"]))]},[t.renderSlot(l.$slots,"default",{id:(r=e.linkId)!=null?r:e.id,active:e.active,link:e.link,text:e.text,external:e.external},()=>[t.createElementVNode("a",{role:"menuitem",class:t.normalizeClass({"-active":e.active}),href:e.link,target:e.external?"_blank":"_parent"},t.toDisplayString(e.text),11,Xr)])],40,Kr)}}}),wa="";Fe.install=e=>{e.component("SolMenuItemLink",Fe)};const eo={class:"label-container"},to={class:"label"},et=t.defineComponent({__name:"MenuNavigationLinks",props:{id:null,label:null,linkItems:null},setup(e){return(n,l)=>(t.openBlock(),t.createBlock(we,{id:`navigation-${e.id}`,class:"sol-menu-navigation-links-core"},{label:t.withCtx(({isOpen:i})=>[t.renderSlot(n.$slots,"label",{isOpen:i},()=>[t.createElementVNode("div",eo,[t.createElementVNode("span",to,t.toDisplayString(e.label),1),t.createVNode(t.unref(dn),{class:t.normalizeClass(["icon",{"-opened":i}]),"aria-hidden":"true"},null,8,["class"])])])]),default:t.withCtx(({close:i})=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.linkItems,(r,o)=>{var a;return t.openBlock(),t.createBlock(Fe,{id:`${e.id}-${(a=r==null?void 0:r.id)!=null?a:r.text}`,key:o,"link-id":r.id,text:r.text,link:r.link,external:r.external,active:r.active,onClicked:i},{default:t.withCtx(()=>{var c;return[t.renderSlot(n.$slots,"default",{id:(c=r.id)!=null?c:e.id,active:r.active,link:r.link,text:r.text,external:r.external})]}),_:2},1032,["id","link-id","text","link","external","active","onClicked"])}),128))]),_:3},8,["id"]))}}),Sa="";et.install=e=>{e.component("SolMenuNavigationLinks",et)};const xa="",Ca="",va="",Ea="",un=12,Se={type:"success",timeout:5e3,showIcon:!0,showCloseButton:!0,position:"top-right",hideProgressBar:!1};function no(e,n){const l=t.reactive({id:null,intervalId:null,startTime:0,remaining:n}),i=t.ref(100);function r(){clearInterval(l.intervalId),clearTimeout(l.id),l.remaining-=Date.now()-l.startTime}function o(){l.startTime=Date.now(),clearTimeout(l.id),l.intervalId=setInterval(()=>{i.value--},n/100-5),l.id=setTimeout(e,l.remaining)}function a(){clearInterval(l.intervalId),clearTimeout(l.id),i.value=100}return t.onMounted(()=>{if(n<=0)return!1}),t.onUnmounted(()=>{a()}),{start:o,stop:r,clear:a,progress:i}}function lo(e){return{stylePosition:t.computed(()=>{const{position:l,offset:i}=e();switch(l){case"top-left":return{left:"0",top:`${i}px`};case"bottom-left":return{left:"0",bottom:`${i}px`};case"bottom-right":return{right:"0",bottom:`${i}px`};case"top-center":return{top:`${i}px`,left:"0",right:"0",marginRight:"auto",marginLeft:"auto"};case"bottom-center":return{bottom:`${i}px`,left:"0",right:"0",marginRight:"auto",marginLeft:"auto"};default:return{right:"0",top:`${i}px`}}})}}var fn=(e=>(e["top-left"]="bounce-left",e["top-right"]="bounce-right",e["top-center"]="bounce-down",e["bottom-left"]="bounce-left",e["bottom-center"]="bounce-up",e["bottom-right"]="bounce-right",e))(fn||{});const io={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},ro=[t.createElementVNode("path",{fill:"currentColor",d:"m10.6 16.6l7.05-7.05l-1.4-1.4l-5.65 5.65l-2.85-2.85l-1.4 1.4ZM12 22q-2.075 0-3.9-.788q-1.825-.787-3.175-2.137q-1.35-1.35-2.137-3.175Q2 14.075 2 12t.788-3.9q.787-1.825 2.137-3.175q1.35-1.35 3.175-2.138Q9.925 2 12 2t3.9.787q1.825.788 3.175 2.138q1.35 1.35 2.137 3.175Q22 9.925 22 12t-.788 3.9q-.787 1.825-2.137 3.175q-1.35 1.35-3.175 2.137Q14.075 22 12 22Z"},null,-1)];function oo(e,n){return t.openBlock(),t.createElementBlock("svg",io,ro)}const ao={name:"material-symbols-check-circle",render:oo},so={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},co=[t.createElementVNode("path",{fill:"currentColor",d:"m8.4 17l3.6-3.6l3.6 3.6l1.4-1.4l-3.6-3.6L17 8.4L15.6 7L12 10.6L8.4 7L7 8.4l3.6 3.6L7 15.6Zm3.6 5q-2.075 0-3.9-.788q-1.825-.787-3.175-2.137q-1.35-1.35-2.137-3.175Q2 14.075 2 12t.788-3.9q.787-1.825 2.137-3.175q1.35-1.35 3.175-2.138Q9.925 2 12 2t3.9.787q1.825.788 3.175 2.138q1.35 1.35 2.137 3.175Q22 9.925 22 12t-.788 3.9q-.787 1.825-2.137 3.175q-1.35 1.35-3.175 2.137Q14.075 22 12 22Z"},null,-1)];function uo(e,n){return t.openBlock(),t.createElementBlock("svg",so,co)}const fo={name:"material-symbols-cancel",render:uo},mo={preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1em",height:"1em"},ho=[t.createElementVNode("path",{fill:"currentColor",d:"M12 17q.425 0 .713-.288Q13 16.425 13 16t-.287-.713Q12.425 15 12 15t-.712.287Q11 15.575 11 16t.288.712Q11.575 17 12 17Zm0 5q-2.075 0-3.9-.788q-1.825-.787-3.175-2.137q-1.35-1.35-2.137-3.175Q2 14.075 2 12t.788-3.9q.787-1.825 2.137-3.175q1.35-1.35 3.175-2.138Q9.925 2 12 2t3.9.787q1.825.788 3.175 2.138q1.35 1.35 2.137 3.175Q22 9.925 22 12t-.788 3.9q-.787 1.825-2.137 3.175q-1.35 1.35-3.175 2.137Q14.075 22 12 22Zm0-9q.425 0 .713-.288Q13 12.425 13 12V8q0-.425-.287-.713Q12.425 7 12 7t-.712.287Q11 7.575 11 8v4q0 .425.288.712q.287.288.712.288Z"},null,-1)];function yo(e,n){return t.openBlock(),t.createElementBlock("svg",mo,ho)}const go={name:"material-symbols-error-circle-rounded",render:yo},bo=["id","data-testid"],ko={class:"content-wrapper"},po={key:0,class:"icon-container","aria-hidden":"true"},$o={class:"content"},wo={key:0,class:"description"},So=t.defineComponent({__name:"Toast",props:{id:null,type:{default:Se.type},visible:{type:Boolean,default:!1},title:null,description:null,actionText:null,timeout:null,hideProgressBar:{type:Boolean,default:Se.hideProgressBar},showIcon:{type:Boolean,default:Se.showIcon},offset:{default:0},onAction:null,onCloseHandler:null,position:{default:Se.position}},setup(e){const n=e,{start:l,stop:i,progress:r}=no(()=>{var m;(m=n.onCloseHandler)==null||m.call(n)},n.timeout),{stylePosition:o}=lo(()=>({offset:n.offset,position:n.position})),a=t.computed(()=>n.title&&n.description);function c(){n.timeout>0&&i()}function s(){l()}t.onMounted(()=>{l()});function u(){var m,h;(m=n.onAction)==null||m.call(n),(h=n.onCloseHandler)==null||h.call(n)}return(m,h)=>(t.openBlock(),t.createBlock(t.Transition,{name:t.unref(fn)[e.position],type:"animation"},{default:t.withCtx(()=>[e.visible?(t.openBlock(),t.createElementBlock("div",{key:0,id:`toast-${e.type}-${e.id}`,"data-testid":`toast-${e.type}-${e.position}`,role:"alert","aria-live":"assertive",style:t.normalizeStyle(t.unref(o)),class:t.normalizeClass(["sol-toast-core",[`-${e.type} -${e.position}`,{"-multiline":t.unref(a)}]]),onKeyup:h[0]||(h[0]=t.withKeys((...d)=>e.onCloseHandler&&e.onCloseHandler(...d),["esc"])),onMouseenter:c,onMouseleave:s,onFocusin:c,onFocusout:s},[t.createElementVNode("section",ko,[e.showIcon?(t.openBlock(),t.createElementBlock("div",po,[t.renderSlot(m.$slots,"icon-status",{type:e.type},()=>[e.type==="success"?(t.openBlock(),t.createBlock(t.unref(ao),{key:0,class:"icon"})):t.createCommentVNode("",!0),["informative","warning"].includes(e.type)?(t.openBlock(),t.createBlock(t.unref(go),{key:1,class:"icon"})):t.createCommentVNode("",!0),e.type==="error"?(t.openBlock(),t.createBlock(t.unref(fo),{key:2,class:"icon"})):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0),t.createElementVNode("div",$o,[t.createElementVNode("p",{class:t.normalizeClass(["title",{"-multiline":t.unref(a)}])},[t.renderSlot(m.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(e.title),1)])],2),e.description?(t.openBlock(),t.createElementBlock("p",wo,[t.renderSlot(m.$slots,"description",{},()=>[t.createTextVNode(t.toDisplayString(e.description),1)])])):t.createCommentVNode("",!0)])]),t.createVNode(oe,{id:`toast-action-${e.type}-${e.position}`,class:t.normalizeClass(["action",{"-multiline":t.unref(a)}]),size:"small","on-color":e.type!=="warning",variant:"tertiary","aria-label":"close notification",onClick:u},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.actionText),1)]),_:1},8,["id","on-color","class"]),e.hideProgressBar?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:"progressbar","aria-hidden":"true",style:t.normalizeStyle({width:`${t.unref(r)}%`})},null,4))],46,bo)):t.createCommentVNode("",!0)]),_:3},8,["name"]))}}),Ia="",Me={"top-left":[],"top-right":[],"top-center":[],"bottom-left":[],"bottom-right":[],"bottom-center":[]};function xo(){mn(0)}function mn(e=2){Object.entries(Me).forEach(([n,l])=>{l.length>e&&l.map(r=>{var o;return(o=r.toastVNode.props)==null?void 0:o.id}).forEach(r=>vt(r,n))})}function Co(e){return typeof e=="string"?{description:e,actionText:"Fechar"}:{actionText:"Fechar",...e}}function vo(e,n=Se){const l=window.innerWidth<1024?"bottom-center":"top-right";return e?Bo({...e,position:l}):n}function Eo(){const n=Pe(0),l=Pe(0,"success"),i=Pe(0,"error"),r=Pe(0,"warning"),o=Pe(0,"informative");return{createToast:n,createErrorToast:i,createSuccessToast:l,createInformativeToast:o,createWarningToast:r,clearAllToasts:xo}}function Pe(e,n){return function(l,i){const r=e++,o=vo({...i,type:n});return mn(),Oo(r,o,Co(l)),{close:()=>vt(r,o.position)}}}function Bo(e){const n={...Se,...e,showIcon:e.showIcon};return n.hideProgressBar=!!(n.timeout&&(n==null?void 0:n.timeout)<=0),e.hideProgressBar&&(n.hideProgressBar=e.hideProgressBar),n}function Oo(e,n,l){setTimeout(()=>{const i=Io(n,Me,un),r=document.createElement("div");document.body.appendChild(r);const o=t.createVNode(So,Vo(n,e,i,vt,l));t.render(o,r),Me[n.position].push({toastVNode:o,container:r}),o.component&&(o.component.props.visible=!0)},1)}function Vo(e,n,l,i,r){return{...e,...r,id:n,offset:l,visible:!1,onCloseHandler(){i(n,e.position?e.position:"top-right")}}}function Io(e,n,l){if(!e.position)throw new Error("no position");return n[e.position].reduce((i,{toastVNode:r})=>(i+=r.el.offsetHeight+l||0,i),l)}function No(e,n,l,i){for(let r=e;r<n.length;r++){const{toastVNode:o}=n[r];if(!o.el)return;const a=l.split("-")[0]||"top",c=parseInt(o.el.style[a],10)-i-un;if(!o.component)return;o.component.props.offset=c}}function vt(e,n){var s;const l=Me[n],i=l.findIndex(({toastVNode:u})=>{var m;return e===((m=u==null?void 0:u.props)==null?void 0:m.id)});if(i===-1)return;const{container:r,toastVNode:o}=l[i],a=(s=o==null?void 0:o.el)==null?void 0:s.offsetHeight;if(Me[n].splice(i,1),No(i,l,n,a),!o.component)return;const c=o.component.props;c.visible=!1,c.onClose&&c.onClose(),setTimeout(()=>{t.render(null,r),document.body.removeChild(r)},1e3)}console.log("%c\u{1F33B}[Girassol]\u{1F33B}","padding: 8px;background: #212121;color: gold; font-family: 'Fira code'; font-weight: bold; font-size: 1.2rem");const Et={SolButton:oe,SolButtonDestructive:tt,SolInputTextarea:_e,SolInputText:Ie,SolInputTextPassword:Qe,SolRadio:$e,SolRadioGroup:Ue,SolCheckbox:he,SolCheckboxGroup:Ze,SolSwitch:He,SolSelect:Ye,SolChip:Te,SolTag:We,SolAlert:Je,SolAccordion:Ke,SolList:Xe,SolMenu:we,SolMenuItemLink:Fe,SolMenuNavigationLinks:et};function Ao(e){for(const n in Et)e.component(n,Et[n])}j.SolAccordion=Ke,j.SolAlert=Je,j.SolButton=oe,j.SolButtonDestructive=tt,j.SolCheckbox=he,j.SolCheckboxGroup=Ze,j.SolChip=Te,j.SolInputText=Ie,j.SolInputTextPassword=Qe,j.SolInputTextarea=_e,j.SolList=Xe,j.SolMenu=we,j.SolMenuItemLink=Fe,j.SolMenuNavigationLinks=et,j.SolRadio=$e,j.SolRadioGroup=Ue,j.SolSelect=Ye,j.SolSwitch=He,j.SolTag=We,j.components=Et,j.install=Ao,j.useToast=Eo,Object.defineProperties(j,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|