@win2win/shared-ui 0.1.53 → 0.1.54

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/style.css CHANGED
@@ -1 +1 @@
1
- .card-option[data-v-148468d6]{transition:all .3s;display:flex;justify-content:center;align-items:center;padding:.5rem;border-radius:.5rem;cursor:pointer;background:#fff;color:#202020;height:100px;width:160px;text-align:center;font-size:16px;word-break:break-word;border:.5px solid rgba(73,74,74,.1);box-shadow:5px 7px 7px -4px #b6b6b6b3;-webkit-box-shadow:5px 7px 7px -4px rgba(182,182,182,.7);-moz-box-shadow:5px 7px 7px -4px rgba(182,182,182,.7)}@media (max-width: 388px){.card-option[data-v-148468d6]{width:120px;height:80px;font-size:12px}}@media (max-width: 317px){.card-option[data-v-148468d6]{min-width:75px;height:80px;font-size:12px}}.card-option.active[data-v-148468d6]{color:#000;font-weight:500;box-shadow:5px 7px 7px -4px #494a4ae6;-webkit-box-shadow:5px 7px 7px -4px rgba(73,74,74,.9);-moz-box-shadow:5px 7px 7px -4px rgba(73,74,74,.9)}.card-select-container[data-v-148468d6]{padding:0 10vw;display:flex;align-items:center;justify-content:start;width:100%;flex-wrap:wrap;gap:1rem}@media (max-width: 768px){.card-select-container[data-v-148468d6]{padding:0 10px;display:flex;justify-content:center;max-width:100%}}.image-card[data-v-148468d6]{margin:auto 1rem;transition:all .3s;position:relative;height:fit-content;width:fit-content;border-radius:.5rem;overflow:hidden;cursor:pointer}.image-card .check[data-v-148468d6]{position:absolute;bottom:15px;right:15px;width:30px;height:30px;background:#fff;border-radius:5px}.image-card.active[data-v-148468d6]{box-shadow:13px 12px 15px -2px #3f3f3fb0;-webkit-box-shadow:13px 12px 15px -2px rgba(63,63,63,.69);-moz-box-shadow:13px 12px 15px -2px rgba(63,63,63,.69)}.indicator-icon[data-v-86ec13f1]{width:10px;height:10px;border-radius:50%;flex-shrink:0}.indicator-icon.coral[data-v-86ec13f1]{background:linear-gradient(40deg,#0ff,#4169e1,#ffb6c1)}.indicator-icon.green[data-v-86ec13f1]{background:linear-gradient(40deg,#2e8b57,#00ff7f)}.indicator-icon.red[data-v-86ec13f1]{background:linear-gradient(40deg,#8b0000,red)}.indicator-icon.pink[data-v-86ec13f1]{background:linear-gradient(40deg,#c71585,violet)}.indicator-icon.purple[data-v-86ec13f1]{background:linear-gradient(40deg,indigo,#639)}.indicator-icon.blue[data-v-86ec13f1]{background:linear-gradient(40deg,#00008b,#00bfff)}.indicator-icon.cyan[data-v-86ec13f1]{background:linear-gradient(40deg,#00ced1,#0ff)}.indicator-icon.orange[data-v-86ec13f1]{background:linear-gradient(40deg,#f4a460,#ffdab9)}.indicator-icon.yellow[data-v-86ec13f1]{background:linear-gradient(40deg,gold,#ff0)}.indicator-icon.grey[data-v-86ec13f1]{background:linear-gradient(40deg,#d3d3d3,#f5f5f5)}.indicator-icon.black[data-v-86ec13f1]{background:linear-gradient(40deg,#6d6d6d,#000)}.hoverable[data-v-a10936e1]{padding:.5rem;border-radius:4px}.hoverable[data-v-a10936e1]:hover{background-color:#f5f5f5}.bordered[data-v-a10936e1]{border:.25px solid rgb(236,236,236);padding:12px;border-radius:6.5px;box-shadow:0 2px 3px #0000001a}.text[data-v-a10936e1]{font-size:13px}.dense-text[data-v-a10936e1]{font-size:12px}[data-v-5593318f] .q-field__control-container{padding-left:0}[data-v-5593318f] .q-field--float .q-field__label{transform:translateY(-40%) scale(.9)}[data-v-5593318f] .q-field__label{font-size:15px;color:#000}[data-v-5593318f] .q-field__native{padding-top:24px;padding-bottom:0;font-weight:600}[data-v-5593318f] .q-field__bottom{padding-top:14px}.m-auto[data-v-8f5284d3]{margin:auto!important}.buttons-container[data-v-3bcb795a]{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;justify-content:space-between;align-items:center;padding:0 25px;pointer-events:none}.buttons-container[data-v-3bcb795a]>*{pointer-events:all}[data-v-fa1749f7]::deep(.q-field__native){font-size:19.5px;text-align:center}.question-title{letter-spacing:.5px;font-weight:500;font-size:23px;line-height:30px}.form-steps-container[data-v-2d9dca33]{height:75vh;overflow-y:auto}@media screen and (max-width: 700px){.form-steps-container[data-v-2d9dca33]{height:100%}}.controls-container[data-v-2d9dca33]{margin:0rem auto}@media (max-width: 768px){.controls-container[data-v-2d9dca33]{margin:2rem auto}}[data-v-bd5dfdca]::deep(.q-field__bottom){padding:0!important}.form-steps-container[data-v-a8cd1002]{height:55vh;overflow-y:auto}.description[data-v-a8cd1002]{font-size:16px}@media screen and (max-width: 700px){.form-steps-container[data-v-a8cd1002]{height:100%}}.form-container[data-v-a8cd1002]{max-width:75vw;margin:auto;display:grid;row-gap:.5rem;column-gap:1rem}@media (max-width: 768px){.form-container[data-v-a8cd1002]{grid-template-columns:1fr}}@media (max-width: 1200px){.form-container[data-v-a8cd1002]{max-width:100%}}.controls-container[data-v-a8cd1002]{margin:0rem auto}@media (max-width: 768px){.controls-container[data-v-a8cd1002]{margin:2rem auto}}.form-container[data-v-a8cd1002]{max-width:100%;margin:1rem}@media (min-width: 768px){.form-container[data-v-a8cd1002]{max-width:800px}}@media (min-width: 1200px){.form-container[data-v-a8cd1002]{max-width:1200px;margin:10px auto auto}}.buttons-container[data-v-ea1ef607]{pointer-events:none;width:100%}.max-container[data-v-ea1ef607]{max-width:1200px;margin:0 auto}[data-v-ea1ef607]::deep(button){pointer-events:all}[data-v-ea1ef607]::deep(.checkbox){pointer-events:all}._card_12eql_1{background:#fff;border-radius:8px;padding:1rem;box-shadow:0 2px 10px #0000001a}._card-header_12eql_8{margin-bottom:15px}._card-header_12eql_8 h3{line-height:1;margin:0;font-size:1.2em;color:#036}._card-header_12eql_8 p{margin:0;color:#999}._card-content_12eql_22 ._card-field_12eql_22{display:flex;justify-content:space-between;margin-bottom:10px}._card-content_12eql_22 ._card-field_12eql_22 ._field-label_12eql_27{color:#666}._card-content_12eql_22 ._card-field_12eql_22 ._field-value_12eql_30{font-weight:700;color:#333}._card-section_1xfbl_2{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1rem}._img-container_17yzt_2{display:flex;width:100%}.section[data-v-52c4a9ac]{position:relative;display:flex;justify-content:center;align-items:center}.section:hover .add-btn[data-v-52c4a9ac]{visibility:visible}.signature[data-v-52c4a9ac]{width:auto;height:300px;max-width:100vw;border:1px solid black}@media print{.no-print[data-v-52c4a9ac]{display:none!important}}._table-section_aicx8_1{border-collapse:collapse}._table-section_aicx8_1 th,._table-section_aicx8_1 td{padding:0;border:1px solid #000}._section_1q071_1,._p-container_1q071_2{position:relative}._section_1q071_1:hover ._add-btn_1q071_6{visibility:visible}._p-container_1q071_2:hover{background-color:#0000000a}._p-container_1q071_2:hover ._remove-btn_1q071_13{visibility:visible}._add-btn_1q071_6,._remove-btn_1q071_13{z-index:9;visibility:hidden;position:absolute;top:0;right:0}h1{font-size:24px!important;line-height:1!important}h2{font-size:18px!important;line-height:1!important}p{font-size:14px!important}@media print{._no-print_1q071_41{display:none!important}._no-print_1q071_41 ._p-container_1q071_2{background-color:transparent!important}}.section[data-v-c483c6de]{position:relative;display:flex;justify-content:center;align-items:center}.section[data-v-c483c6de]:hover .add-btn[data-v-c483c6de]{visibility:visible}._sections-container_1wrbi_3{display:flex;flex-direction:column;gap:2rem}@media print{@page{margin:10mm;size:A4}._sections-container_1wrbi_3>*{page-break-inside:avoid}}
1
+ .card-option[data-v-148468d6]{transition:all .3s;display:flex;justify-content:center;align-items:center;padding:.5rem;border-radius:.5rem;cursor:pointer;background:#fff;color:#202020;height:100px;width:160px;text-align:center;font-size:16px;word-break:break-word;border:.5px solid rgba(73,74,74,.1);box-shadow:5px 7px 7px -4px #b6b6b6b3;-webkit-box-shadow:5px 7px 7px -4px rgba(182,182,182,.7);-moz-box-shadow:5px 7px 7px -4px rgba(182,182,182,.7)}@media (max-width: 388px){.card-option[data-v-148468d6]{width:120px;height:80px;font-size:12px}}@media (max-width: 317px){.card-option[data-v-148468d6]{min-width:75px;height:80px;font-size:12px}}.card-option.active[data-v-148468d6]{color:#000;font-weight:500;box-shadow:5px 7px 7px -4px #494a4ae6;-webkit-box-shadow:5px 7px 7px -4px rgba(73,74,74,.9);-moz-box-shadow:5px 7px 7px -4px rgba(73,74,74,.9)}.card-select-container[data-v-148468d6]{padding:0 10vw;display:flex;align-items:center;justify-content:start;width:100%;flex-wrap:wrap;gap:1rem}@media (max-width: 768px){.card-select-container[data-v-148468d6]{padding:0 10px;display:flex;justify-content:center;max-width:100%}}.image-card[data-v-148468d6]{margin:auto 1rem;transition:all .3s;position:relative;height:fit-content;width:fit-content;border-radius:.5rem;overflow:hidden;cursor:pointer}.image-card .check[data-v-148468d6]{position:absolute;bottom:15px;right:15px;width:30px;height:30px;background:#fff;border-radius:5px}.image-card.active[data-v-148468d6]{box-shadow:13px 12px 15px -2px #3f3f3fb0;-webkit-box-shadow:13px 12px 15px -2px rgba(63,63,63,.69);-moz-box-shadow:13px 12px 15px -2px rgba(63,63,63,.69)}.indicator-icon[data-v-86ec13f1]{width:10px;height:10px;border-radius:50%;flex-shrink:0}.indicator-icon.coral[data-v-86ec13f1]{background:linear-gradient(40deg,#0ff,#4169e1,#ffb6c1)}.indicator-icon.green[data-v-86ec13f1]{background:linear-gradient(40deg,#2e8b57,#00ff7f)}.indicator-icon.red[data-v-86ec13f1]{background:linear-gradient(40deg,#8b0000,red)}.indicator-icon.pink[data-v-86ec13f1]{background:linear-gradient(40deg,#c71585,violet)}.indicator-icon.purple[data-v-86ec13f1]{background:linear-gradient(40deg,indigo,#639)}.indicator-icon.blue[data-v-86ec13f1]{background:linear-gradient(40deg,#00008b,#00bfff)}.indicator-icon.cyan[data-v-86ec13f1]{background:linear-gradient(40deg,#00ced1,#0ff)}.indicator-icon.orange[data-v-86ec13f1]{background:linear-gradient(40deg,#f4a460,#ffdab9)}.indicator-icon.yellow[data-v-86ec13f1]{background:linear-gradient(40deg,gold,#ff0)}.indicator-icon.grey[data-v-86ec13f1]{background:linear-gradient(40deg,#d3d3d3,#f5f5f5)}.indicator-icon.black[data-v-86ec13f1]{background:linear-gradient(40deg,#6d6d6d,#000)}.hoverable[data-v-a10936e1]{padding:.5rem;border-radius:4px}.hoverable[data-v-a10936e1]:hover{background-color:#f5f5f5}.bordered[data-v-a10936e1]{border:.25px solid rgb(236,236,236);padding:12px;border-radius:6.5px;box-shadow:0 2px 3px #0000001a}.text[data-v-a10936e1]{font-size:13px}.dense-text[data-v-a10936e1]{font-size:12px}[data-v-5593318f] .q-field__control-container{padding-left:0}[data-v-5593318f] .q-field--float .q-field__label{transform:translateY(-40%) scale(.9)}[data-v-5593318f] .q-field__label{font-size:15px;color:#000}[data-v-5593318f] .q-field__native{padding-top:24px;padding-bottom:0;font-weight:600}[data-v-5593318f] .q-field__bottom{padding-top:14px}.m-auto[data-v-8f5284d3]{margin:auto!important}.buttons-container[data-v-3bcb795a]{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;justify-content:space-between;align-items:center;padding:0 25px;pointer-events:none}.buttons-container[data-v-3bcb795a]>*{pointer-events:all}[data-v-fa1749f7]::deep(.q-field__native){font-size:19.5px;text-align:center}.question-title{letter-spacing:.5px;font-weight:500;font-size:23px;line-height:30px}.form-steps-container[data-v-2d9dca33]{height:75vh;overflow-y:auto}@media screen and (max-width: 700px){.form-steps-container[data-v-2d9dca33]{height:100%}}.controls-container[data-v-2d9dca33]{margin:0rem auto}@media (max-width: 768px){.controls-container[data-v-2d9dca33]{margin:2rem auto}}[data-v-bd5dfdca]::deep(.q-field__bottom){padding:0!important}.form-steps-container[data-v-a8cd1002]{height:55vh;overflow-y:auto}.description[data-v-a8cd1002]{font-size:16px}@media screen and (max-width: 700px){.form-steps-container[data-v-a8cd1002]{height:100%}}.form-container[data-v-a8cd1002]{max-width:75vw;margin:auto;display:grid;row-gap:.5rem;column-gap:1rem}@media (max-width: 768px){.form-container[data-v-a8cd1002]{grid-template-columns:1fr}}@media (max-width: 1200px){.form-container[data-v-a8cd1002]{max-width:100%}}.controls-container[data-v-a8cd1002]{margin:0rem auto}@media (max-width: 768px){.controls-container[data-v-a8cd1002]{margin:2rem auto}}.form-container[data-v-a8cd1002]{max-width:100%;margin:1rem}@media (min-width: 768px){.form-container[data-v-a8cd1002]{max-width:800px}}@media (min-width: 1200px){.form-container[data-v-a8cd1002]{max-width:1200px;margin:10px auto auto}}.buttons-container[data-v-ea1ef607]{pointer-events:none;width:100%}.max-container[data-v-ea1ef607]{max-width:1200px;margin:0 auto}[data-v-ea1ef607]::deep(button){pointer-events:all}[data-v-ea1ef607]::deep(.checkbox){pointer-events:all}._card_12eql_1{background:#fff;border-radius:8px;padding:1rem;box-shadow:0 2px 10px #0000001a}._card-header_12eql_8{margin-bottom:15px}._card-header_12eql_8 h3{line-height:1;margin:0;font-size:1.2em;color:#036}._card-header_12eql_8 p{margin:0;color:#999}._card-content_12eql_22 ._card-field_12eql_22{display:flex;justify-content:space-between;margin-bottom:10px}._card-content_12eql_22 ._card-field_12eql_22 ._field-label_12eql_27{color:#666}._card-content_12eql_22 ._card-field_12eql_22 ._field-value_12eql_30{font-weight:700;color:#333}._card-section_1xfbl_2{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1rem}._img-container_17yzt_2{display:flex;width:100%}.section[data-v-52c4a9ac]{position:relative;display:flex;justify-content:center;align-items:center}.section:hover .add-btn[data-v-52c4a9ac]{visibility:visible}.signature[data-v-52c4a9ac]{width:auto;height:300px;max-width:100vw;border:1px solid black}@media print{.no-print[data-v-52c4a9ac]{display:none!important}}._table-section_aicx8_1{border-collapse:collapse}._table-section_aicx8_1 th,._table-section_aicx8_1 td{padding:0;border:1px solid #000}._section_besae_1,._p-container_besae_2{position:relative}._section_besae_1:hover ._add-btn_besae_6{visibility:visible}._p-container_besae_2:hover{background-color:#0000000a}._p-container_besae_2:hover ._remove-btn_besae_13{visibility:visible}._add-btn_besae_6,._remove-btn_besae_13{z-index:9;visibility:hidden;position:absolute;top:0;right:0}h1{font-size:24px;line-height:1}h2{font-size:18px;line-height:1}p{font-size:14px}@media print{._no-print_besae_41{display:none!important}._no-print_besae_41 ._p-container_besae_2{background-color:transparent!important}}.section[data-v-c483c6de]{position:relative;display:flex;justify-content:center;align-items:center}.section[data-v-c483c6de]:hover .add-btn[data-v-c483c6de]{visibility:visible}._sections-container_1wrbi_3{display:flex;flex-direction:column;gap:2rem}@media print{@page{margin:10mm;size:A4}._sections-container_1wrbi_3>*{page-break-inside:avoid}}
@@ -11164,12 +11164,12 @@ const OS = /* @__PURE__ */ Ve({
11164
11164
  ]);
11165
11165
  };
11166
11166
  }
11167
- }), aC = "_section_1q071_1", sC = {
11167
+ }), aC = "_section_besae_1", sC = {
11168
11168
  section: aC,
11169
- "p-container": "_p-container_1q071_2",
11170
- "add-btn": "_add-btn_1q071_6",
11171
- "remove-btn": "_remove-btn_1q071_13",
11172
- "no-print": "_no-print_1q071_41"
11169
+ "p-container": "_p-container_besae_2",
11170
+ "add-btn": "_add-btn_besae_6",
11171
+ "remove-btn": "_remove-btn_besae_13",
11172
+ "no-print": "_no-print_besae_41"
11173
11173
  }, cC = {
11174
11174
  $style: sC
11175
11175
  }, fC = /* @__PURE__ */ ht(uC, [["__cssModules", cC]]), dC = L("svg", {
@@ -25,4 +25,4 @@ function print() { __p += __j.call(arguments, '') }
25
25
  `:`;
26
26
  `)+z+`return __p
27
27
  }`;var we=zd(function(){return ke(p,ue+"return "+z).apply(i,_)});if(we.source=z,Ia(we))throw we;return we}function ew(e){return Oe(e).toLowerCase()}function tw(e){return Oe(e).toUpperCase()}function nw(e,n,o){if(e=Oe(e),e&&(o||n===i))return Yc(e);if(!e||!(n=xt(n)))return e;var s=Gt(e),f=Gt(n),p=Xc(s,f),_=Jc(s,f)+1;return Vn(s,p,_).join("")}function rw(e,n,o){if(e=Oe(e),e&&(o||n===i))return e.slice(0,tf(e)+1);if(!e||!(n=xt(n)))return e;var s=Gt(e),f=Jc(s,Gt(n))+1;return Vn(s,0,f).join("")}function ow(e,n,o){if(e=Oe(e),e&&(o||n===i))return e.replace(Zr,"");if(!e||!(n=xt(n)))return e;var s=Gt(e),f=Xc(s,Gt(n));return Vn(s,f).join("")}function iw(e,n){var o=U,s=Z;if($e(n)){var f="separator"in n?n.separator:f;o="length"in n?be(n.length):o,s="omission"in n?xt(n.omission):s}e=Oe(e);var p=e.length;if(Sr(e)){var _=Gt(e);p=_.length}if(o>=p)return e;var C=o-Cr(s);if(C<1)return s;var B=_?Vn(_,0,C).join(""):e.slice(0,C);if(f===i)return B+s;if(_&&(C+=B.length-C),Fa(f)){if(e.slice(C).search(f)){var V,q=B;for(f.global||(f=Ql(f.source,Oe(ln.exec(f))+"g")),f.lastIndex=0;V=f.exec(q);)var z=V.index;B=B.slice(0,z===i?C:z)}}else if(e.indexOf(xt(f),C)!=C){var ee=B.lastIndexOf(f);ee>-1&&(B=B.slice(0,ee))}return B+s}function lw(e){return e=Oe(e),e&&Cl.test(e)?e.replace(Kr,Lp):e}var aw=Tr(function(e,n,o){return e+(o?" ":"")+n.toUpperCase()}),Va=Hf("toUpperCase");function Ud(e,n,o){return e=Oe(e),n=o?i:n,n===i?Tp(e)?Np(e):wp(e):e.match(n)||[]}var zd=Se(function(e,n){try{return St(e,i,n)}catch(o){return Ia(o)?o:new _e(o)}}),uw=fn(function(e,n){return It(n,function(o){o=en(o),sn(e,o,Ta(e[o],e))}),e});function sw(e){var n=e==null?0:e.length,o=de();return e=n?Ne(e,function(s){if(typeof s[1]!="function")throw new Ft(d);return[o(s[0]),s[1]]}):[],Se(function(s){for(var f=-1;++f<n;){var p=e[f];if(St(p[0],this,s))return St(p[1],this,s)}})}function cw(e){return Lv(Lt(e,w))}function qa(e){return function(){return e}}function fw(e,n){return e==null||e!==e?n:e}var dw=Gf(),hw=Gf(!0);function _t(e){return e}function Na(e){return Sf(typeof e=="function"?e:Lt(e,w))}function mw(e){return xf(Lt(e,w))}function gw(e,n){return Ef(e,Lt(n,w))}var pw=Se(function(e,n){return function(o){return lo(o,e,n)}}),vw=Se(function(e,n){return function(o){return lo(e,o,n)}});function Pa(e,n,o){var s=Je(n),f=Ci(n,s);o==null&&!($e(n)&&(f.length||!s.length))&&(o=n,n=e,e=this,f=Ci(n,Je(n)));var p=!($e(o)&&"chain"in o)||!!o.chain,_=hn(e);return It(f,function(C){var B=n[C];e[C]=B,_&&(e.prototype[C]=function(){var V=this.__chain__;if(p||V){var q=e(this.__wrapped__),z=q.__actions__=gt(this.__actions__);return z.push({func:B,args:arguments,thisArg:e}),q.__chain__=V,q}return B.apply(e,Tn([this.value()],arguments))})}),e}function _w(){return tt._===this&&(tt._=Hp),this}function $a(){}function yw(e){return e=be(e),Se(function(n){return Af(n,e)})}var bw=va(Ne),ww=va(Gc),Sw=va(Ul);function Hd(e){return xa(e)?zl(en(e)):Xv(e)}function Cw(e){return function(n){return e==null?i:er(e,n)}}var xw=Kf(),Ew=Kf(!0);function Da(){return[]}function Ua(){return!1}function Aw(){return{}}function kw(){return""}function Bw(){return!0}function Ow(e,n){if(e=be(e),e<1||e>se)return[];var o=I,s=lt(e,I);n=de(n),e-=I;for(var f=Gl(s,n);++o<e;)n(o);return f}function Tw(e){return ye(e)?Ne(e,en):Et(e)?[e]:gt(cd(Oe(e)))}function Rw(e){var n=++Up;return Oe(e)+n}var Iw=Oi(function(e,n){return e+n},0),Fw=_a("ceil"),Mw=Oi(function(e,n){return e/n},1),Lw=_a("floor");function Vw(e){return e&&e.length?Si(e,_t,ra):i}function qw(e,n){return e&&e.length?Si(e,de(n,2),ra):i}function Nw(e){return Qc(e,_t)}function Pw(e,n){return Qc(e,de(n,2))}function $w(e){return e&&e.length?Si(e,_t,aa):i}function Dw(e,n){return e&&e.length?Si(e,de(n,2),aa):i}var Uw=Oi(function(e,n){return e*n},1),zw=_a("round"),Hw=Oi(function(e,n){return e-n},0);function Ww(e){return e&&e.length?Wl(e,_t):0}function Gw(e,n){return e&&e.length?Wl(e,de(n,2)):0}return g.after=my,g.ary=wd,g.assign=tb,g.assignIn=Ld,g.assignInWith=Ui,g.assignWith=nb,g.at=rb,g.before=Sd,g.bind=Ta,g.bindAll=uw,g.bindKey=Cd,g.castArray=Ay,g.chain=_d,g.chunk=L_,g.compact=V_,g.concat=q_,g.cond=sw,g.conforms=cw,g.constant=qa,g.countBy=W1,g.create=ob,g.curry=xd,g.curryRight=Ed,g.debounce=Ad,g.defaults=ib,g.defaultsDeep=lb,g.defer=gy,g.delay=py,g.difference=N_,g.differenceBy=P_,g.differenceWith=$_,g.drop=D_,g.dropRight=U_,g.dropRightWhile=z_,g.dropWhile=H_,g.fill=W_,g.filter=j1,g.flatMap=Z1,g.flatMapDeep=Y1,g.flatMapDepth=X1,g.flatten=md,g.flattenDeep=G_,g.flattenDepth=j_,g.flip=vy,g.flow=dw,g.flowRight=hw,g.fromPairs=K_,g.functions=hb,g.functionsIn=mb,g.groupBy=J1,g.initial=Z_,g.intersection=Y_,g.intersectionBy=X_,g.intersectionWith=J_,g.invert=pb,g.invertBy=vb,g.invokeMap=ty,g.iteratee=Na,g.keyBy=ny,g.keys=Je,g.keysIn=vt,g.map=Vi,g.mapKeys=yb,g.mapValues=bb,g.matches=mw,g.matchesProperty=gw,g.memoize=Ni,g.merge=wb,g.mergeWith=Vd,g.method=pw,g.methodOf=vw,g.mixin=Pa,g.negate=Pi,g.nthArg=yw,g.omit=Sb,g.omitBy=Cb,g.once=_y,g.orderBy=ry,g.over=bw,g.overArgs=yy,g.overEvery=ww,g.overSome=Sw,g.partial=Ra,g.partialRight=kd,g.partition=oy,g.pick=xb,g.pickBy=qd,g.property=Hd,g.propertyOf=Cw,g.pull=r1,g.pullAll=pd,g.pullAllBy=o1,g.pullAllWith=i1,g.pullAt=l1,g.range=xw,g.rangeRight=Ew,g.rearg=by,g.reject=ay,g.remove=a1,g.rest=wy,g.reverse=Ba,g.sampleSize=sy,g.set=Ab,g.setWith=kb,g.shuffle=cy,g.slice=u1,g.sortBy=hy,g.sortedUniq=g1,g.sortedUniqBy=p1,g.split=Zb,g.spread=Sy,g.tail=v1,g.take=_1,g.takeRight=y1,g.takeRightWhile=b1,g.takeWhile=w1,g.tap=V1,g.throttle=Cy,g.thru=Li,g.toArray=Id,g.toPairs=Nd,g.toPairsIn=Pd,g.toPath=Tw,g.toPlainObject=Md,g.transform=Bb,g.unary=xy,g.union=S1,g.unionBy=C1,g.unionWith=x1,g.uniq=E1,g.uniqBy=A1,g.uniqWith=k1,g.unset=Ob,g.unzip=Oa,g.unzipWith=vd,g.update=Tb,g.updateWith=Rb,g.values=Fr,g.valuesIn=Ib,g.without=B1,g.words=Ud,g.wrap=Ey,g.xor=O1,g.xorBy=T1,g.xorWith=R1,g.zip=I1,g.zipObject=F1,g.zipObjectDeep=M1,g.zipWith=L1,g.entries=Nd,g.entriesIn=Pd,g.extend=Ld,g.extendWith=Ui,Pa(g,g),g.add=Iw,g.attempt=zd,g.camelCase=Vb,g.capitalize=$d,g.ceil=Fw,g.clamp=Fb,g.clone=ky,g.cloneDeep=Oy,g.cloneDeepWith=Ty,g.cloneWith=By,g.conformsTo=Ry,g.deburr=Dd,g.defaultTo=fw,g.divide=Mw,g.endsWith=qb,g.eq=Kt,g.escape=Nb,g.escapeRegExp=Pb,g.every=G1,g.find=K1,g.findIndex=dd,g.findKey=ab,g.findLast=Q1,g.findLastIndex=hd,g.findLastKey=ub,g.floor=Lw,g.forEach=yd,g.forEachRight=bd,g.forIn=sb,g.forInRight=cb,g.forOwn=fb,g.forOwnRight=db,g.get=Ma,g.gt=Iy,g.gte=Fy,g.has=gb,g.hasIn=La,g.head=gd,g.identity=_t,g.includes=ey,g.indexOf=Q_,g.inRange=Mb,g.invoke=_b,g.isArguments=rr,g.isArray=ye,g.isArrayBuffer=My,g.isArrayLike=pt,g.isArrayLikeObject=We,g.isBoolean=Ly,g.isBuffer=qn,g.isDate=Vy,g.isElement=qy,g.isEmpty=Ny,g.isEqual=Py,g.isEqualWith=$y,g.isError=Ia,g.isFinite=Dy,g.isFunction=hn,g.isInteger=Bd,g.isLength=$i,g.isMap=Od,g.isMatch=Uy,g.isMatchWith=zy,g.isNaN=Hy,g.isNative=Wy,g.isNil=jy,g.isNull=Gy,g.isNumber=Td,g.isObject=$e,g.isObjectLike=ze,g.isPlainObject=ho,g.isRegExp=Fa,g.isSafeInteger=Ky,g.isSet=Rd,g.isString=Di,g.isSymbol=Et,g.isTypedArray=Ir,g.isUndefined=Qy,g.isWeakMap=Zy,g.isWeakSet=Yy,g.join=e1,g.kebabCase=$b,g.last=qt,g.lastIndexOf=t1,g.lowerCase=Db,g.lowerFirst=Ub,g.lt=Xy,g.lte=Jy,g.max=Vw,g.maxBy=qw,g.mean=Nw,g.meanBy=Pw,g.min=$w,g.minBy=Dw,g.stubArray=Da,g.stubFalse=Ua,g.stubObject=Aw,g.stubString=kw,g.stubTrue=Bw,g.multiply=Uw,g.nth=n1,g.noConflict=_w,g.noop=$a,g.now=qi,g.pad=zb,g.padEnd=Hb,g.padStart=Wb,g.parseInt=Gb,g.random=Lb,g.reduce=iy,g.reduceRight=ly,g.repeat=jb,g.replace=Kb,g.result=Eb,g.round=zw,g.runInContext=k,g.sample=uy,g.size=fy,g.snakeCase=Qb,g.some=dy,g.sortedIndex=s1,g.sortedIndexBy=c1,g.sortedIndexOf=f1,g.sortedLastIndex=d1,g.sortedLastIndexBy=h1,g.sortedLastIndexOf=m1,g.startCase=Yb,g.startsWith=Xb,g.subtract=Hw,g.sum=Ww,g.sumBy=Gw,g.template=Jb,g.times=Ow,g.toFinite=mn,g.toInteger=be,g.toLength=Fd,g.toLower=ew,g.toNumber=Nt,g.toSafeInteger=eb,g.toString=Oe,g.toUpper=tw,g.trim=nw,g.trimEnd=rw,g.trimStart=ow,g.truncate=iw,g.unescape=lw,g.uniqueId=Rw,g.upperCase=aw,g.upperFirst=Va,g.each=yd,g.eachRight=bd,g.first=gd,Pa(g,function(){var e={};return Xt(g,function(n,o){Re.call(g.prototype,o)||(e[o]=n)}),e}(),{chain:!1}),g.VERSION=u,It(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){g[e].placeholder=g}),It(["drop","take"],function(e,n){xe.prototype[e]=function(o){o=o===i?1:Xe(be(o),0);var s=this.__filtered__&&!n?new xe(this):this.clone();return s.__filtered__?s.__takeCount__=lt(o,s.__takeCount__):s.__views__.push({size:lt(o,I),type:e+(s.__dir__<0?"Right":"")}),s},xe.prototype[e+"Right"]=function(o){return this.reverse()[e](o).reverse()}}),It(["filter","map","takeWhile"],function(e,n){var o=n+1,s=o==D||o==ae;xe.prototype[e]=function(f){var p=this.clone();return p.__iteratees__.push({iteratee:de(f,3),type:o}),p.__filtered__=p.__filtered__||s,p}}),It(["head","last"],function(e,n){var o="take"+(n?"Right":"");xe.prototype[e]=function(){return this[o](1).value()[0]}}),It(["initial","tail"],function(e,n){var o="drop"+(n?"":"Right");xe.prototype[e]=function(){return this.__filtered__?new xe(this):this[o](1)}}),xe.prototype.compact=function(){return this.filter(_t)},xe.prototype.find=function(e){return this.filter(e).head()},xe.prototype.findLast=function(e){return this.reverse().find(e)},xe.prototype.invokeMap=Se(function(e,n){return typeof e=="function"?new xe(this):this.map(function(o){return lo(o,e,n)})}),xe.prototype.reject=function(e){return this.filter(Pi(de(e)))},xe.prototype.slice=function(e,n){e=be(e);var o=this;return o.__filtered__&&(e>0||n<0)?new xe(o):(e<0?o=o.takeRight(-e):e&&(o=o.drop(e)),n!==i&&(n=be(n),o=n<0?o.dropRight(-n):o.take(n-e)),o)},xe.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},xe.prototype.toArray=function(){return this.take(I)},Xt(xe.prototype,function(e,n){var o=/^(?:filter|find|map|reject)|While$/.test(n),s=/^(?:head|last)$/.test(n),f=g[s?"take"+(n=="last"?"Right":""):n],p=s||/^find/.test(n);f&&(g.prototype[n]=function(){var _=this.__wrapped__,C=s?[1]:arguments,B=_ instanceof xe,V=C[0],q=B||ye(_),z=function(Ce){var Ee=f.apply(g,Tn([Ce],C));return s&&ee?Ee[0]:Ee};q&&o&&typeof V=="function"&&V.length!=1&&(B=q=!1);var ee=this.__chain__,ue=!!this.__actions__.length,he=p&&!ee,we=B&&!ue;if(!p&&q){_=we?_:new xe(this);var me=e.apply(_,C);return me.__actions__.push({func:Li,args:[z],thisArg:i}),new Mt(me,ee)}return he&&we?e.apply(this,C):(me=this.thru(z),he?s?me.value()[0]:me.value():me)})}),It(["pop","push","shift","sort","splice","unshift"],function(e){var n=ai[e],o=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",s=/^(?:pop|shift)$/.test(e);g.prototype[e]=function(){var f=arguments;if(s&&!this.__chain__){var p=this.value();return n.apply(ye(p)?p:[],f)}return this[o](function(_){return n.apply(ye(_)?_:[],f)})}}),Xt(xe.prototype,function(e,n){var o=g[n];if(o){var s=o.name+"";Re.call(kr,s)||(kr[s]=[]),kr[s].push({name:n,func:o})}}),kr[Bi(i,P).name]=[{name:"wrapper",func:i}],xe.prototype.clone=lv,xe.prototype.reverse=av,xe.prototype.value=uv,g.prototype.at=q1,g.prototype.chain=N1,g.prototype.commit=P1,g.prototype.next=$1,g.prototype.plant=U1,g.prototype.reverse=z1,g.prototype.toJSON=g.prototype.valueOf=g.prototype.value=H1,g.prototype.first=g.prototype.head,Jr&&(g.prototype[Jr]=D1),g},xr=Pp();Qn?((Qn.exports=xr)._=xr,Nl._=xr):tt._=xr}).call(ce)}(mo,mo.exports);var Ve=mo.exports,rt={},za={},or={};Object.defineProperty(or,"__esModule",{value:!0}),or.EstadoCaptacion=or.TipoCaptacion=void 0;var Ha;(function(t){t.CLIENTES="1",t.PROVEEDORES="2",t.USUARIOS="3",t.PRODUCTOS="4",t.PEDIDOS="5",t.SOLICITUDES="6"})(Ha||(or.TipoCaptacion=Ha={}));var Wa;(function(t){t.EN_ESTUDIO="1",t.PRE_APROBADA="2",t.APROBADA="3",t.EN_NEGOCIACION="4",t.NEGOCIACION_FINALIZADA="5",t.CONFIRMADA="6",t.FINALIZADA="7",t.CANCELADA="0"})(Wa||(or.EstadoCaptacion=Wa={}));var go={};Object.defineProperty(go,"__esModule",{value:!0}),go.TipoGarantia=void 0;var Ga;(function(t){t.INMUEBLE="Propiedad inmobiliaria",t.VEHICULO="Vehículo",t.AVAL_PERSONAL="Aval personal",t.OTROS="Otros"})(Ga||(go.TipoGarantia=Ga={}));var po={};Object.defineProperty(po,"__esModule",{value:!0}),po.TipoImportacion=void 0;var ja;(function(t){t.CAPTACION="captacion",t.PEDIDO="pedido",t.PRODUCTO="producto",t.CLIENTE="cliente"})(ja||(po.TipoImportacion=ja={}));var pn={};Object.defineProperty(pn,"__esModule",{value:!0}),pn.TipoLiquidacionReclamo=pn.EstadoLiquidacionReclamo=pn.EstadoLiquidacion=void 0;var Ka;(function(t){t[t.EN_PREVISION=1]="EN_PREVISION",t[t.CONFIRMACION_PENDIENTE=2]="CONFIRMACION_PENDIENTE",t[t.CONFIRMADA=3]="CONFIRMADA",t[t.PAGADA=4]="PAGADA",t[t.CON_RECLAMOS=5]="CON_RECLAMOS"})(Ka||(pn.EstadoLiquidacion=Ka={}));var Qa;(function(t){t[t.ACTIVO=1]="ACTIVO",t[t.APROBADO=2]="APROBADO",t[t.NEGADO=3]="NEGADO"})(Qa||(pn.EstadoLiquidacionReclamo=Qa={}));var Za;(function(t){t[t.ITEM=1]="ITEM",t[t.COBRO=2]="COBRO"})(Za||(pn.TipoLiquidacionReclamo=Za={}));var vo={};Object.defineProperty(vo,"__esModule",{value:!0}),vo.TipoNotificacion=void 0;var Ya;(function(t){t.NUEVO="1",t.DOCUMENTOS="2",t.REALIZADO="3",t.INCIDENTES="4",t.CANCELACION="5"})(Ya||(vo.TipoNotificacion=Ya={}));var _o={};Object.defineProperty(_o,"__esModule",{value:!0}),_o.EstadoPedido=void 0;var Xa;(function(t){t[t.PENDIENTE=1]="PENDIENTE",t[t.REVISAR_DOC=2]="REVISAR_DOC",t[t.LLAMAR=3]="LLAMAR",t[t.FINALIZADO=4]="FINALIZADO",t[t.CANCELADO=5]="CANCELADO",t[t.LIQUIDADO=6]="LIQUIDADO",t[t.INCIDENCIA=7]="INCIDENCIA",t[t.TRAMITADO=8]="TRAMITADO",t[t.PENDIENTE_ASIGNAR=9]="PENDIENTE_ASIGNAR"})(Xa||(_o.EstadoPedido=Xa={}));var ir={};Object.defineProperty(ir,"__esModule",{value:!0}),ir.TipoProducto=ir.EstadoProducto=void 0;var Ja;(function(t){t.DESHABILITADO="0",t.INACTIVO="1",t.ACTIVADO="2",t.PUBLICO="3"})(Ja||(ir.EstadoProducto=Ja={}));var eu;(function(t){t.ARTICULO="1",t.SERVICIO_CONTRATO="2",t.MEMBRESIA="3",t.OFERTA_EMPLEO="4"})(eu||(ir.TipoProducto=eu={}));var yo={};Object.defineProperty(yo,"__esModule",{value:!0}),yo.EstadoBase=void 0;var tu;(function(t){t[t.INACTIVO=0]="INACTIVO",t[t.ACTIVO=1]="ACTIVO"})(tu||(yo.EstadoBase=tu={})),function(t){var l=ce&&ce.__createBinding||(Object.create?function(u,a,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(a,c);(!h||("get"in h?!a.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return a[c]}}),Object.defineProperty(u,d,h)}:function(u,a,c,d){d===void 0&&(d=c),u[d]=a[c]}),i=ce&&ce.__exportStar||function(u,a){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(a,c)&&l(a,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),i(or,t),i(go,t),i(po,t),i(pn,t),i(vo,t),i(_o,t),i(ir,t),i(yo,t)}(za);var nu={},ru={},ou={};Object.defineProperty(ou,"__esModule",{value:!0}),function(t){var l=ce&&ce.__createBinding||(Object.create?function(u,a,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(a,c);(!h||("get"in h?!a.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return a[c]}}),Object.defineProperty(u,d,h)}:function(u,a,c,d){d===void 0&&(d=c),u[d]=a[c]}),i=ce&&ce.__exportStar||function(u,a){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(a,c)&&l(a,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),i(ou,t)}(ru);var iu={},lu={};Object.defineProperty(lu,"__esModule",{value:!0});var lr={};Object.defineProperty(lr,"__esModule",{value:!0}),lr.RuleValueType=lr.ESTADO_RULE_OPERATORS=void 0,lr.ESTADO_RULE_OPERATORS=[">","<","=","!=",">=","<=","in","not in","contains","not empty","like"];var au;(function(t){t.CONST="const",t.FLAG="flag"})(au||(lr.RuleValueType=au={}));var bo={};Object.defineProperty(bo,"__esModule",{value:!0}),bo.FlagType=void 0;var uu;(function(t){t.FIELD="field",t.QUERY="query"})(uu||(bo.FlagType=uu={})),function(t){var l=ce&&ce.__createBinding||(Object.create?function(u,a,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(a,c);(!h||("get"in h?!a.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return a[c]}}),Object.defineProperty(u,d,h)}:function(u,a,c,d){d===void 0&&(d=c),u[d]=a[c]}),i=ce&&ce.__exportStar||function(u,a){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(a,c)&&l(a,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),i(lu,t),i(lr,t),i(bo,t)}(iu);var su={},wo={};Object.defineProperty(wo,"__esModule",{value:!0}),wo.LAYOUT_COLUMNA_TYPES=void 0,wo.LAYOUT_COLUMNA_TYPES=["texto","numero","fecha"],function(t){var l=ce&&ce.__createBinding||(Object.create?function(u,a,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(a,c);(!h||("get"in h?!a.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return a[c]}}),Object.defineProperty(u,d,h)}:function(u,a,c,d){d===void 0&&(d=c),u[d]=a[c]}),i=ce&&ce.__exportStar||function(u,a){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(a,c)&&l(a,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),i(wo,t)}(su);var cu={},vn={};Object.defineProperty(vn,"__esModule",{value:!0}),vn.LAYOUT_SECTION_TYPES=vn.LayoutSectionType=vn.TextLineType=void 0;var fu;(function(t){t.TITLE="title",t.SUBTITLE="subtitle",t.PARAGRAPH="paragraph"})(fu||(vn.TextLineType=fu={}));var _n;(function(t){t.TEXT="text",t.TABLE="table",t.CARDS_GRID="cards-grid",t.IMAGE="image",t.SIGNATURE="signature",t.RADIO_BUTTONS="radio_buttons"})(_n||(vn.LayoutSectionType=_n={})),vn.LAYOUT_SECTION_TYPES=[_n.TEXT,_n.CARDS_GRID,_n.TABLE,_n.IMAGE,_n.SIGNATURE,_n.RADIO_BUTTONS],function(t){var l=ce&&ce.__createBinding||(Object.create?function(u,a,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(a,c);(!h||("get"in h?!a.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return a[c]}}),Object.defineProperty(u,d,h)}:function(u,a,c,d){d===void 0&&(d=c),u[d]=a[c]}),i=ce&&ce.__exportStar||function(u,a){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(a,c)&&l(a,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),i(vn,t)}(cu);var du={},ar={};Object.defineProperty(ar,"__esModule",{value:!0}),ar.COMISION_SOURCE_ENTITIES=ar.TipoComision=void 0;var hu;(function(t){t.PORCENTAJE="porcentaje",t.MONTO_FIJO="monto_fijo"})(hu||(ar.TipoComision=hu={})),ar.COMISION_SOURCE_ENTITIES=["captacion","pedido","producto","propuesta","importacion"];var mu={};Object.defineProperty(mu,"__esModule",{value:!0});var So={};Object.defineProperty(So,"__esModule",{value:!0}),So.TipoLiquidacion=void 0;var gu;(function(t){t.SOLICITUD_CLIENTE="solicitud_cliente",t.RED_COMERCIAL="red_comercial"})(gu||(So.TipoLiquidacion=gu={}));var Bt={};Object.defineProperty(Bt,"__esModule",{value:!0}),Bt.TABLES=Bt.TABLES_FIELDS=Bt.SOURCES=Bt.LOGIC_OPERATORS=Bt.RULE_OPERATORS=void 0,Bt.RULE_OPERATORS=["==","!=","<",">","IN"],Bt.LOGIC_OPERATORS=["AND","OR"],Bt.SOURCES=["IMPORTACION","TABLA","CONTENEDOR"],Bt.TABLES_FIELDS={PRODUCTOS:["TIPO","NOMBRE","DESCRIPCION","ID_GAMA","ESTADO","TAGS","ID_PRODUCTO","PROPS","CODIGO_EXTERNO"],CAPTACION:["ESTADO","TIPO","CAPTADO","ID_CAPTACION","FECHA_CAPTADO","COD_CLIENTE","COD_PROVEEDOR"]},Bt.TABLES=[{label:"PRODUCTOS",value:"PRODUCTOS"},{label:"CAPTACIONES",value:"CAPTACION"}],function(t){var l=ce&&ce.__createBinding||(Object.create?function(u,a,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(a,c);(!h||("get"in h?!a.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return a[c]}}),Object.defineProperty(u,d,h)}:function(u,a,c,d){d===void 0&&(d=c),u[d]=a[c]}),i=ce&&ce.__exportStar||function(u,a){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(a,c)&&l(a,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),i(ar,t),i(mu,t),i(So,t),i(Bt,t)}(du);var pu={},Co={};Object.defineProperty(Co,"__esModule",{value:!0}),Co.OPERATORS=void 0,Co.OPERATORS=["==","!=",">","<",">=","<=","contains","not_contains","in","not_in"];var ur={};Object.defineProperty(ur,"__esModule",{value:!0}),ur.ControlType=ur.GAMA_PROP_CONTROL_TYPES=void 0,ur.GAMA_PROP_CONTROL_TYPES=[{code:"input_text",icon:"title",label:"Texto"},{code:"input_number",icon:"o_looks_one",label:"Número"},{code:"datetime",icon:"event",label:"Fecha y hora"},{code:"date",icon:"calendar_today",label:"Fecha"},{code:"time",icon:"schedule",label:"Hora"},{code:"switch",icon:"toggle_on",label:"Switch"},{code:"checkbox",icon:"o_check_box",label:"Checkbox"},{code:"select",icon:"list",label:"Selector simple"},{code:"cards_select",icon:"grid_view",label:"Selector de tarjetas"},{code:"location",icon:"o_location_on",label:"Ubicación"},{code:"dynamic_array",icon:"data_array",label:"Colección dinámica"},{code:"object",icon:"data_object",label:"Objeto"},{code:"keys_counter",icon:"plus_one",label:"Contador de entradas"},{code:"collection",icon:"o_description",label:"Colección"}];var vu;(function(t){t.TEXT="input_text",t.NUMBER="input_number",t.DATETIME="datetime",t.DATE="date",t.TIME="time",t.SWITCH="switch",t.CHECKBOX="checkbox",t.SELECT="select",t.CARDS_SELECT="cards_select",t.LOCATION="location",t.DYNAMIC_ARRAY="dynamic_array",t.OBJECT="object",t.KEYS_COUNTER="keys_counter",t.COLLECTION="collection"})(vu||(ur.ControlType=vu={}));var _u={};Object.defineProperty(_u,"__esModule",{value:!0});var yu={};Object.defineProperty(yu,"__esModule",{value:!0});var bu={},zi={exports:{}};(function(t,l){(function(i,u){u(l)})(ce,function(i){var u=function(y){return"trwagmyfpdxbnjzsqvhlcke"[+y%23]},a=function(y){return(""+Math.random()).slice(-y)},c=function(y){return(function(m){var w=m%2147483647;return w<=0&&(w+=2147483646),{next:function(){return w=16807*w%2147483647}}}(y).next()-1)/2147483646},d=function(y){var m="xyzXYZ".indexOf(y[0])%3,w=m.toString();m===-1&&(w=y[0]);var E=""+w+y.slice(1,8);return u(E).toUpperCase()},h=function(y){return/^[XYZ]{1}[0-9]{7}[TRWAGMYFPDXBNJZSQVHLCKE]{1}$/i.test(y)},v=function(y){return/^[0-9]{8}[TRWAGMYFPDXBNJZSQVHLCKE]{1}$/i.test(y)};i.ctrlChar=d,i.isNIE=function(y){return!!y&&y.length===9&&h(y)&&d(y)===y[8].toUpperCase()},i.isNIF=function(y){return!!y&&y.length===9&&v(y)&&d(y)===y[8].toUpperCase()},i.isValid=function(y){var m=y||"";if(m.length!==9&&!h(m)&&!v(m))return!1;var w="xyzXYZ".indexOf(m[0])%3,E=w.toString();w===-1&&(E=m[0]);var x=+(E+m.slice(1,8))%23;return"trwagmyfpdxbnjzsqvhlcket".indexOf(m[8].toLowerCase())===x},i.normalize=function(y){return y.replace(/[-_\s]/gi,"").toUpperCase()},i.randomNIE=function(){var y=Math.floor(3*Math.random()),m=a(7),w=u(""+y+m).toUpperCase();return""+"XYZ"[y]+m+w},i.randomNIEWith=function(y,m,w){w===void 0&&(w=1e8*Math.random());var E="xyzXYZ".indexOf(y)%3;if(E===-1)return null;var x="trwagmyfpdxbnjzsqvhlckeTRWAGMYFPDXBNJZSQVHLCKE".indexOf(m)%23;if(x===-1)return null;var b=E+1,R=+(""+E+Math.floor(1e6*b+(9999999-1e6*b-23)*c(w)));return(""+y+("0"+(R-R%23+x)+m).slice(-8)).toUpperCase()},i.randomNIF=function(){var y=a(8);return y+u(y).toUpperCase()},i.randomNIFWith=function(y,m){m===void 0&&(m=1e8*Math.random());var w="trwagmyfpdxbnjzsqvhlckeTRWAGMYFPDXBNJZSQVHLCKE".indexOf(y)%23;if(w===-1)return null;var E=99999998-4347826*(Math.floor(22*c(m))+1);return(""+("0"+(E+(w-Math.max(0,E)%23))).slice(-8)+y).toUpperCase()},Object.defineProperty(i,"__esModule",{value:!0})})})(zi,zi.exports);var jd=zi.exports,wu={};(function(t){(function(l,i){typeof t.nodeName!="string"?i(t):i(l.IBAN={})})(ce,function(l){Array.prototype.map||(Array.prototype.map=function(b){if(this===void 0||this===null)throw new TypeError;var R=Object(this),A=R.length>>>0;if(typeof b!="function")throw new TypeError;for(var P=new Array(A),$=arguments.length>=2?arguments[1]:void 0,M=0;M<A;M++)M in R&&(P[M]=b.call($,R[M],M,R));return P});var i=65,u=90;function a(b){return b=b.toUpperCase(),b=b.substr(4)+b.substr(0,4),b.split("").map(function(R){var A=R.charCodeAt(0);return A>=i&&A<=u?A-i+10:R}).join("")}function c(b){for(var R=b,A;R.length>2;)A=R.slice(0,9),R=parseInt(A,10)%97+R.slice(A.length);return parseInt(R,10)%97}function d(b){var R=b.match(/(.{3})/g).map(function(A){var P,$=A.slice(0,1),M=parseInt(A.slice(1),10);switch($){case"A":P="0-9A-Za-z";break;case"B":P="0-9A-Z";break;case"C":P="A-Za-z";break;case"F":P="0-9";break;case"L":P="a-z";break;case"U":P="A-Z";break;case"W":P="0-9a-z";break}return"(["+P+"]{"+M+"})"});return new RegExp("^"+R.join("")+"$")}function h(b){return b.replace(w,"").toUpperCase()}function v(b,R,A,P){this.countryCode=b,this.length=R,this.structure=A,this.example=P}v.prototype._regex=function(){return this._cachedRegex||(this._cachedRegex=d(this.structure))},v.prototype.isValid=function(b){return this.length==b.length&&this.countryCode===b.slice(0,2)&&this._regex().test(b.slice(4))&&c(a(b))==1},v.prototype.toBBAN=function(b,R){return this._regex().exec(b.slice(4)).slice(1).join(R)},v.prototype.fromBBAN=function(b){if(!this.isValidBBAN(b))throw new Error("Invalid BBAN");var R=c(a(this.countryCode+"00"+b)),A=("0"+(98-R)).slice(-2);return this.countryCode+A+b},v.prototype.isValidBBAN=function(b){return this.length-4==b.length&&this._regex().test(b)};var y={};function m(b){y[b.countryCode]=b}m(new v("AD",24,"F04F04A12","AD1200012030200359100100")),m(new v("AE",23,"F03F16","AE070331234567890123456")),m(new v("AL",28,"F08A16","AL47212110090000000235698741")),m(new v("AT",20,"F05F11","AT611904300234573201")),m(new v("AZ",28,"U04A20","AZ21NABZ00000000137010001944")),m(new v("BA",20,"F03F03F08F02","BA391290079401028494")),m(new v("BE",16,"F03F07F02","BE68539007547034")),m(new v("BG",22,"U04F04F02A08","BG80BNBG96611020345678")),m(new v("BH",22,"U04A14","BH67BMAG00001299123456")),m(new v("BR",29,"F08F05F10U01A01","BR9700360305000010009795493P1")),m(new v("BY",28,"A04F04A16","BY13NBRB3600900000002Z00AB00")),m(new v("CH",21,"F05A12","CH9300762011623852957")),m(new v("CR",22,"F04F14","CR72012300000171549015")),m(new v("CY",28,"F03F05A16","CY17002001280000001200527600")),m(new v("CZ",24,"F04F06F10","CZ6508000000192000145399")),m(new v("DE",22,"F08F10","DE89370400440532013000")),m(new v("DK",18,"F04F09F01","DK5000400440116243")),m(new v("DO",28,"U04F20","DO28BAGR00000001212453611324")),m(new v("EE",20,"F02F02F11F01","EE382200221020145685")),m(new v("EG",29,"F04F04F17","EG800002000156789012345180002")),m(new v("ES",24,"F04F04F01F01F10","ES9121000418450200051332")),m(new v("FI",18,"F06F07F01","FI2112345600000785")),m(new v("FO",18,"F04F09F01","FO6264600001631634")),m(new v("FR",27,"F05F05A11F02","FR1420041010050500013M02606")),m(new v("GB",22,"U04F06F08","GB29NWBK60161331926819")),m(new v("GE",22,"U02F16","GE29NB0000000101904917")),m(new v("GI",23,"U04A15","GI75NWBK000000007099453")),m(new v("GL",18,"F04F09F01","GL8964710001000206")),m(new v("GR",27,"F03F04A16","GR1601101250000000012300695")),m(new v("GT",28,"A04A20","GT82TRAJ01020000001210029690")),m(new v("HR",21,"F07F10","HR1210010051863000160")),m(new v("HU",28,"F03F04F01F15F01","HU42117730161111101800000000")),m(new v("IE",22,"U04F06F08","IE29AIBK93115212345678")),m(new v("IL",23,"F03F03F13","IL620108000000099999999")),m(new v("IS",26,"F04F02F06F10","IS140159260076545510730339")),m(new v("IT",27,"U01F05F05A12","IT60X0542811101000000123456")),m(new v("IQ",23,"U04F03A12","IQ98NBIQ850123456789012")),m(new v("JO",30,"A04F22","JO15AAAA1234567890123456789012")),m(new v("KW",30,"U04A22","KW81CBKU0000000000001234560101")),m(new v("KZ",20,"F03A13","KZ86125KZT5004100100")),m(new v("LB",28,"F04A20","LB62099900000001001901229114")),m(new v("LC",32,"U04F24","LC07HEMM000100010012001200013015")),m(new v("LI",21,"F05A12","LI21088100002324013AA")),m(new v("LT",20,"F05F11","LT121000011101001000")),m(new v("LU",20,"F03A13","LU280019400644750000")),m(new v("LV",21,"U04A13","LV80BANK0000435195001")),m(new v("MC",27,"F05F05A11F02","MC5811222000010123456789030")),m(new v("MD",24,"U02A18","MD24AG000225100013104168")),m(new v("ME",22,"F03F13F02","ME25505000012345678951")),m(new v("MK",19,"F03A10F02","MK07250120000058984")),m(new v("MR",27,"F05F05F11F02","MR1300020001010000123456753")),m(new v("MT",31,"U04F05A18","MT84MALT011000012345MTLCAST001S")),m(new v("MU",30,"U04F02F02F12F03U03","MU17BOMM0101101030300200000MUR")),m(new v("NL",18,"U04F10","NL91ABNA0417164300")),m(new v("NO",15,"F04F06F01","NO9386011117947")),m(new v("PK",24,"U04A16","PK36SCBL0000001123456702")),m(new v("PL",28,"F08F16","PL61109010140000071219812874")),m(new v("PS",29,"U04A21","PS92PALS000000000400123456702")),m(new v("PT",25,"F04F04F11F02","PT50000201231234567890154")),m(new v("QA",29,"U04A21","QA30AAAA123456789012345678901")),m(new v("RO",24,"U04A16","RO49AAAA1B31007593840000")),m(new v("RS",22,"F03F13F02","RS35260005601001611379")),m(new v("SA",24,"F02A18","SA0380000000608010167519")),m(new v("SC",31,"U04F04F16U03","SC18SSCB11010000000000001497USD")),m(new v("SE",24,"F03F16F01","SE4550000000058398257466")),m(new v("SI",19,"F05F08F02","SI56263300012039086")),m(new v("SK",24,"F04F06F10","SK3112000000198742637541")),m(new v("SM",27,"U01F05F05A12","SM86U0322509800000000270100")),m(new v("ST",25,"F08F11F02","ST68000100010051845310112")),m(new v("SV",28,"U04F20","SV62CENR00000000000000700025")),m(new v("TL",23,"F03F14F02","TL380080012345678910157")),m(new v("TN",24,"F02F03F13F02","TN5910006035183598478831")),m(new v("TR",26,"F05F01A16","TR330006100519786457841326")),m(new v("UA",29,"F25","UA511234567890123456789012345")),m(new v("VA",22,"F18","VA59001123000012345678")),m(new v("VG",24,"U04F16","VG96VPVG0000012345678901")),m(new v("XK",20,"F04F10F02","XK051212012345678906")),m(new v("AO",25,"F21","AO69123456789012345678901")),m(new v("BF",27,"F23","BF2312345678901234567890123")),m(new v("BI",16,"F12","BI41123456789012")),m(new v("BJ",28,"F24","BJ39123456789012345678901234")),m(new v("CI",28,"U02F22","CI70CI1234567890123456789012")),m(new v("CM",27,"F23","CM9012345678901234567890123")),m(new v("CV",25,"F21","CV30123456789012345678901")),m(new v("DZ",24,"F20","DZ8612345678901234567890")),m(new v("IR",26,"F22","IR861234568790123456789012")),m(new v("MG",27,"F23","MG1812345678901234567890123")),m(new v("ML",28,"U01F23","ML15A12345678901234567890123")),m(new v("MZ",25,"F21","MZ25123456789012345678901")),m(new v("SN",28,"U01F23","SN52A12345678901234567890123")),m(new v("GF",27,"F05F05A11F02","GF121234512345123456789AB13")),m(new v("GP",27,"F05F05A11F02","GP791234512345123456789AB13")),m(new v("MQ",27,"F05F05A11F02","MQ221234512345123456789AB13")),m(new v("RE",27,"F05F05A11F02","RE131234512345123456789AB13")),m(new v("PF",27,"F05F05A11F02","PF281234512345123456789AB13")),m(new v("TF",27,"F05F05A11F02","TF891234512345123456789AB13")),m(new v("YT",27,"F05F05A11F02","YT021234512345123456789AB13")),m(new v("NC",27,"F05F05A11F02","NC551234512345123456789AB13")),m(new v("BL",27,"F05F05A11F02","BL391234512345123456789AB13")),m(new v("MF",27,"F05F05A11F02","MF551234512345123456789AB13")),m(new v("PM",27,"F05F05A11F02","PM071234512345123456789AB13")),m(new v("WF",27,"F05F05A11F02","WF621234512345123456789AB13"));var w=/[^a-zA-Z0-9]/g,E=/(.{4})(?!$)/g;function x(b){return typeof b=="string"||b instanceof String}l.isValid=function(b){if(!x(b))return!1;b=h(b);var R=y[b.slice(0,2)];return!!R&&R.isValid(b)},l.toBBAN=function(b,R){typeof R>"u"&&(R=" "),b=h(b);var A=y[b.slice(0,2)];if(!A)throw new Error("No country with code "+b.slice(0,2));return A.toBBAN(b,R)},l.fromBBAN=function(b,R){var A=y[b];if(!A)throw new Error("No country with code "+b);return A.fromBBAN(h(R))},l.isValidBBAN=function(b,R){if(!x(R))return!1;var A=y[b];return A&&A.isValidBBAN(h(R))},l.printFormat=function(b,R){return typeof R>"u"&&(R=" "),h(b).replace(E,"$1"+R)},l.electronicFormat=h,l.countries=y})})(wu),function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.VALIDATORS=t.PropValidatorKeys=t.GamaPropValidatorsMap=void 0;const l=jd,i=wu;t.GamaPropValidatorsMap={required:{fn:()=>a=>a.value!==null&&a.value!==void 0&&a.value!=="",message:"Este campo es requerido",label:"Requerido"},min:{fn:a=>c=>{if(typeof c.value=="number")return(c.value||0)>=a;if(typeof c.value=="string"){const d=c.value||"";return c.multiple?d.split(",").length>=a:d.length>=a}return!1},message:"El valor es menor al mínimo permitido",label:"Mínimo"},max:{fn:a=>c=>{if(typeof c.value=="number")return(c.value||0)<=a;if(typeof c.value=="string"){const d=c.value||"";return c.multiple?d.split(",").length<=a:(d||"").length<=a}return!1},message:"El valor es mayor al máximo permitido",label:"Máximo"},onlyNumbers:{fn:()=>a=>/^[0-9]*$/.test(String(a.value)||""),message:"Este campo solo acepta números",label:"Solo números"},email:{fn:()=>a=>a.value?/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(String(a.value)||""):!0,message:"El correo electrónico no es válido",label:"Correo electrónico"},url:{fn:()=>a=>a.value?/^(ftp|http|https):\/\/[^ "]+$/.test(String(a.value)||"")||/^www\.[^ "]+$/.test(String(a.value)||""):!0,message:"La URL no es válida",label:"URL"},iban:{fn:()=>a=>a.value?i.isValid(String(a.value)||""):!0,message:"El IBAN no es válido",label:"Cuenta Bancaria (IBAN)"},dni:{fn:()=>a=>a.value?(0,l.isValid)(String(a.value)||""):!0,message:"El dni no es válido",label:"Identificación España (DNI, NIF, NIE)"},ine:{fn:()=>a=>!0,message:"El INE no es válido",label:"Identificación México (INE)"},rfc:{fn:()=>a=>!0,message:"El RFC no es válido",label:"Identificador México (RFC)"}};var u;(function(a){a.REQUERIDO="required",a.MINIMO="min",a.MAXIMO="max",a.SOLO_NUMEROS="onlyNumbers",a.EMAIL="email",a.URL="url",a.DNI="dni",a.IBAN="iban",a.INE="ine",a.RFC="rfc"})(u||(t.PropValidatorKeys=u={})),t.VALIDATORS=Object.entries(t.GamaPropValidatorsMap).map(([a,c])=>({value:a,...c}))}(bu);var Su={};Object.defineProperty(Su,"__esModule",{value:!0}),function(t){var l=ce&&ce.__createBinding||(Object.create?function(u,a,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(a,c);(!h||("get"in h?!a.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return a[c]}}),Object.defineProperty(u,d,h)}:function(u,a,c,d){d===void 0&&(d=c),u[d]=a[c]}),i=ce&&ce.__exportStar||function(u,a){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(a,c)&&l(a,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),i(Co,t),i(ur,t),i(_u,t),i(yu,t),i(bu,t),i(Su,t)}(pu);var Cu={},xu={};Object.defineProperty(xu,"__esModule",{value:!0});var Eu={};Object.defineProperty(Eu,"__esModule",{value:!0});var Au={};Object.defineProperty(Au,"__esModule",{value:!0});var ku={};Object.defineProperty(ku,"__esModule",{value:!0});var Bu={};Object.defineProperty(Bu,"__esModule",{value:!0});var Ou={};Object.defineProperty(Ou,"__esModule",{value:!0});var Tu={};Object.defineProperty(Tu,"__esModule",{value:!0});var Ru={};Object.defineProperty(Ru,"__esModule",{value:!0});var Iu={};Object.defineProperty(Iu,"__esModule",{value:!0});var Fu={};Object.defineProperty(Fu,"__esModule",{value:!0});var Mu={};Object.defineProperty(Mu,"__esModule",{value:!0});var Lu={};Object.defineProperty(Lu,"__esModule",{value:!0});var Vu={};Object.defineProperty(Vu,"__esModule",{value:!0}),function(t){var l=ce&&ce.__createBinding||(Object.create?function(u,a,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(a,c);(!h||("get"in h?!a.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return a[c]}}),Object.defineProperty(u,d,h)}:function(u,a,c,d){d===void 0&&(d=c),u[d]=a[c]}),i=ce&&ce.__exportStar||function(u,a){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(a,c)&&l(a,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),i(xu,t),i(Eu,t),i(Au,t),i(ku,t),i(Bu,t),i(Ou,t),i(Tu,t),i(Ru,t),i(Iu,t),i(Fu,t),i(Mu,t),i(Lu,t),i(Vu,t)}(Cu);var qu={},Nu={};Object.defineProperty(Nu,"__esModule",{value:!0});var xo={};Object.defineProperty(xo,"__esModule",{value:!0}),xo.TimestampsAction=void 0;var Pu;(function(t){t.CHECKIN="checkin",t.CHECKOUT="checkout"})(Pu||(xo.TimestampsAction=Pu={})),function(t){var l=ce&&ce.__createBinding||(Object.create?function(u,a,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(a,c);(!h||("get"in h?!a.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return a[c]}}),Object.defineProperty(u,d,h)}:function(u,a,c,d){d===void 0&&(d=c),u[d]=a[c]}),i=ce&&ce.__exportStar||function(u,a){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(a,c)&&l(a,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),i(Nu,t),i(xo,t)}(qu),function(t){var l=ce&&ce.__createBinding||(Object.create?function(u,a,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(a,c);(!h||("get"in h?!a.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return a[c]}}),Object.defineProperty(u,d,h)}:function(u,a,c,d){d===void 0&&(d=c),u[d]=a[c]}),i=ce&&ce.__exportStar||function(u,a){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(a,c)&&l(a,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),i(ru,t),i(iu,t),i(su,t),i(cu,t),i(du,t),i(pu,t),i(Cu,t),i(qu,t)}(nu),function(t){var l=ce&&ce.__createBinding||(Object.create?function(u,a,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(a,c);(!h||("get"in h?!a.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return a[c]}}),Object.defineProperty(u,d,h)}:function(u,a,c,d){d===void 0&&(d=c),u[d]=a[c]}),i=ce&&ce.__exportStar||function(u,a){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(a,c)&&l(a,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),i(za,t),i(nu,t)}(rt);const Hi=[rt.ControlType.DYNAMIC_ARRAY,rt.ControlType.OBJECT],Kd={maxControlsPerGroup:1,notifyValidations:!0},$u={required:{fn:()=>t=>{var l;if(t.controlType===rt.ControlType.LOCATION){const{value:i}=t.value;return Ve.values(Ve.omit(i,"catastro")).every(u=>!Ve.isNil(u)&&u!=="")&&(i!=null&&i.catastro?Qd(i==null?void 0:i.catastro):!0)}return t.controlType===rt.ControlType.DYNAMIC_ARRAY||t.multiple?(((l=t.value)==null?void 0:l.length)||0)>0:!Ve.isNil(t.value)&&t.value!==""},message:"Este campo es requerido"},min:{fn:t=>l=>Du(l,">=",t),message:"El valor es menor al mínimo permitido"},max:{fn:t=>l=>Du(l,"<=",t),message:"El valor es mayor al máximo permitido"},onlyNumbers:{fn:()=>t=>/^[0-9]*$/.test(String(t.value)||""),message:"Este campo solo acepta números"},email:{fn:()=>t=>t.value?/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(String(t.value)||""):!0,message:"El correo electrónico no es válido"},url:{fn:()=>t=>t.value?/^(ftp|http|https):\/\/[^ "]+$/.test(String(t.value)||"")||/^www\.[^ "]+$/.test(String(t.value)||""):!0,message:"La URL no es válida"}};function Du(t,l,i){const u={">":(a,c)=>a>c,"<":(a,c)=>a<c,">=":(a,c)=>a>=c,"<=":(a,c)=>a<=c}[l];if(t.controlType===rt.ControlType.NUMBER){const a=Number(t.value);return u(a,i)}if(t.controlType===rt.ControlType.TEXT){const a=(t.value||"").length;return u(a,i)}if([rt.ControlType.CARDS_SELECT,rt.ControlType.SELECT].includes(t.controlType)&&t.multiple){const a=(t.value||[]).length;return u(a,i)}return!1}function Qd(t){return/^[A-Za-z0-9]{20}$/.test(t)}function Zd(t){const l=[];t.controls.forEach((u,a)=>{const c=Yd(u);l.push(...c);const d=!c.length;t.controls[a].valid=d});const i=!l.length;return t.valid=i,l}function Yd(t){const l=[];return t.validators&&t.validators.forEach(i=>{const{validator:u,param:a}=i,c=$u[u]||null;c&&(c.fn(Number(a))(t)||l.push(c.message))}),l}function Xd(t,l,i){return l.controlType==="dynamic_array"?Jd(t,l,i):l.controlType==="object"?Uu(t,l,i):[]}function Jd(t,l,i){var c,d;const u=[],a=((c=l.itemsLength)==null?void 0:c.value)||0;for(let h=0;h<a;h++){const v=Uu({...t,title:`${t.title} ${h+1}`},{...l,value:(d=l.value)==null?void 0:d[h]},i);v.forEach(y=>{y.controls.forEach(m=>{m.code=`${h}.${m.code}`})}),u.push(...v)}return u}function Uu(t,l,i){const u=l.structure;return Ve.chunk(u,i).map(c=>({...t,controls:zu(c).map(d=>{var h;return{...d,id:l.id,value:((h=l.value)==null?void 0:h[d.code])||d.value}})}))}function eh(t){return Ve.chain(t).groupBy("group").toPairs().orderBy(([i,u])=>i).map(([i,u])=>{var d;const a=((d=u.find(h=>{var v;return!!((v=h.title)!=null&&v.trim())}))==null?void 0:d.title)||"",c=u[0].group;return{title:a,controls:u,order:c,visible:!0,valid:u.every(h=>h.valid),id:""}}).value()}function th(t){return t.map(l=>({...l,valid:!1,controls:zu(l.controls)}))}function zu(t){return t.map(l=>{var i,u,a;return{...l,valid:!((i=l.validators)!=null&&i.length),visible:!((u=l.conditions)!=null&&u.length),value:nh(l),itemsLength:l.controlType==="dynamic_array"?{...l.itemsLength,value:((a=l.itemsLength)==null?void 0:a.default)||1}:null}})}function nh(t){if(!Ve.isNil(t.defaultValue))return t.defaultValue;switch(t.controlType){case"input_text":return"";case"input_number":return null;case"select":return t.multiple?[]:"";case"cards_select":return t.multiple?[]:"";case"checkbox":return null;case"switch":return null;case"location":return{};case"dynamic_array":return[];case"object":return{};default:return""}}const sr=Gd.defineStore("form",{state:()=>({formSteps:[],currentStep:1,onLastSubstep:!1,collections:{}}),actions:{setFormSteps(t){this.formSteps=th(t)},nextStep(){this.currentStep!==this.formSteps.length&&this.currentStep++},previousStep(){this.currentStep!==1&&this.currentStep--},setControlValue(t,l){const{id:i,value:u,code:a}=l,c=this.formSteps[t].controls.find(d=>d.id===i);c&&(Hi.includes(c.controlType)?Ve.set(c.value,a,u):c.value=u)},setControlVisibility(t,l,i){const u=this.formSteps[t].controls.find(a=>a.id===l);u&&(u.visible=i)},setControlItemsLength(t,l,i){const u=this.formSteps[t].controls.find(a=>a.id===l);!u||u.controlType!=="dynamic_array"||(u.itemsLength.value=i)},setOnLastSubstep(t){this.onLastSubstep=t},resetSteps(){this.currentStep=1},setCollection(t,l){this.collections[t]=l}},getters:{currentFormStep(t){return t.formSteps[t.currentStep-1]||null},stepsCount(t){return t.formSteps.length},nextDisabled(){return this.currentFormStep.controls.filter(t=>t.visible).some(t=>!t.valid)},getCollection(t){return l=>t.collections[l]||null}}});class Hu{toRaw(l){return l.flatMap(a=>a.controls).filter(a=>a.visible).map(a=>({ID_CUESTIONARIO_PREGUNTA:a.id,RESPUESTA:this.formatValue(a)}))}fromRaw(l){return Ve.orderBy(l,"ORDEN").filter(u=>u.PREGUNTAS.length&&u.ESTADO===1).map(u=>{const a=u.NOMBRE,c=u.ORDEN,d=u.DESCRIPCION,h=u.CLAVE,v=u.ID_CUESTIONARIO,y=u.PREGUNTAS.filter(m=>m.ESTADO===1).map(m=>this.parseControl(m));return{title:a,order:c,text:d,controls:y,name:h,id:v}})}parseControl(l){return{controlType:l.TIPO,label:l.NOMBRE,name:l.CLAVE,options:l.RESPUESTAS,multiple:l.MULTIPLE||!1,validators:l.VALIDACIONES,conditions:l.CONDITIONS,itemsLength:l.LENGTH,id:l.ID_CUESTIONARIO_PREGUNTA,row:l.FILA,col:l.COLUMNA,prefix:l.PREFIJO,suffix:l.SUFIJO,structure:l.STRUCTURE,group:l.GRUPO,title:l.TITULO_GRUPO,customParams:l.PARAMS}}formatValue(l){const{controlType:i,value:u,structure:a}=l,c=(d,h)=>h.controlType==="input_number"&&d!==null&&d!==void 0&&d!==""&&typeof d=="string";return c(u,l)?parseFloat(u.replaceAll(".","")):(i==="object"&&a.forEach(d=>{const h=u[d.code];c(h,d)&&(u[d.code]=parseFloat(h==null?void 0:h.replaceAll(".","")))}),u)}}function Eo(t,l,i,u){return Object.defineProperty(t,l,{get:i,set:u,enumerable:!0}),t}const yn=r.ref(!1);let Wi;function rh(t,l){const i=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(t)||/(opr)[\/]([\w.]+)/.exec(t)||/(vivaldi)[\/]([\w.]+)/.exec(t)||/(chrome|crios)[\/]([\w.]+)/.exec(t)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(t)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(t)||/(firefox|fxios)[\/]([\w.]+)/.exec(t)||/(webkit)[\/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(t)||[];return{browser:i[5]||i[3]||i[1]||"",version:i[4]||i[2]||"0",platform:l[0]||""}}function oh(t){return/(ipad)/.exec(t)||/(ipod)/.exec(t)||/(windows phone)/.exec(t)||/(iphone)/.exec(t)||/(kindle)/.exec(t)||/(silk)/.exec(t)||/(android)/.exec(t)||/(win)/.exec(t)||/(mac)/.exec(t)||/(linux)/.exec(t)||/(cros)/.exec(t)||/(playbook)/.exec(t)||/(bb)/.exec(t)||/(blackberry)/.exec(t)||[]}const Wu="ontouchstart"in window||window.navigator.maxTouchPoints>0;function ih(t){const l=t.toLowerCase(),i=oh(l),u=rh(l,i),a={};u.browser&&(a[u.browser]=!0,a.version=u.version,a.versionNumber=parseInt(u.version,10)),u.platform&&(a[u.platform]=!0);const c=a.android||a.ios||a.bb||a.blackberry||a.ipad||a.iphone||a.ipod||a.kindle||a.playbook||a.silk||a["windows phone"];if(c===!0||l.indexOf("mobile")!==-1?a.mobile=!0:a.desktop=!0,a["windows phone"]&&(a.winphone=!0,delete a["windows phone"]),a.edga||a.edgios||a.edg?(a.edge=!0,u.browser="edge"):a.crios?(a.chrome=!0,u.browser="chrome"):a.fxios&&(a.firefox=!0,u.browser="firefox"),(a.ipod||a.ipad||a.iphone)&&(a.ios=!0),a.vivaldi&&(u.browser="vivaldi",a.vivaldi=!0),(a.chrome||a.opr||a.safari||a.vivaldi||a.mobile===!0&&a.ios!==!0&&c!==!0)&&(a.webkit=!0),a.opr&&(u.browser="opera",a.opera=!0),a.safari&&(a.blackberry||a.bb?(u.browser="blackberry",a.blackberry=!0):a.playbook?(u.browser="playbook",a.playbook=!0):a.android?(u.browser="android",a.android=!0):a.kindle?(u.browser="kindle",a.kindle=!0):a.silk&&(u.browser="silk",a.silk=!0)),a.name=u.browser,a.platform=u.platform,l.indexOf("electron")!==-1)a.electron=!0;else if(document.location.href.indexOf("-extension://")!==-1)a.bex=!0;else{if(window.Capacitor!==void 0?(a.capacitor=!0,a.nativeMobile=!0,a.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(a.cordova=!0,a.nativeMobile=!0,a.nativeMobileWrapper="cordova"),yn.value===!0&&(Wi={is:{...a}}),Wu===!0&&a.mac===!0&&(a.desktop===!0&&a.safari===!0||a.nativeMobile===!0&&a.android!==!0&&a.ios!==!0&&a.ipad!==!0)){delete a.mac,delete a.desktop;const d=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(a,{mobile:!0,ios:!0,platform:d,[d]:!0})}a.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete a.desktop,a.mobile=!0)}return a}const Gu=navigator.userAgent||navigator.vendor||window.opera,lh={has:{touch:!1,webStorage:!1},within:{iframe:!1}},yt={userAgent:Gu,is:ih(Gu),has:{touch:Wu},within:{iframe:window.self!==window.top}},Gi={install(t){const{$q:l}=t;yn.value===!0?(t.onSSRHydrated.push(()=>{Object.assign(l.platform,yt),yn.value=!1}),l.platform=r.reactive(this)):l.platform=this}};{let t;Eo(yt.has,"webStorage",()=>{if(t!==void 0)return t;try{if(window.localStorage)return t=!0,!0}catch{}return t=!1,!1}),Object.assign(Gi,yt),yn.value===!0&&(Object.assign(Gi,Wi,lh),Wi=null)}function He(t){return r.markRaw(r.defineComponent(t))}function ju(t){return r.markRaw(t)}function tn(t,l){if(t===l)return!0;if(t!==null&&l!==null&&typeof t=="object"&&typeof l=="object"){if(t.constructor!==l.constructor)return!1;let i,u;if(t.constructor===Array){if(i=t.length,i!==l.length)return!1;for(u=i;u--!==0;)if(tn(t[u],l[u])!==!0)return!1;return!0}if(t.constructor===Map){if(t.size!==l.size)return!1;let c=t.entries();for(u=c.next();u.done!==!0;){if(l.has(u.value[0])!==!0)return!1;u=c.next()}for(c=t.entries(),u=c.next();u.done!==!0;){if(tn(u.value[1],l.get(u.value[0]))!==!0)return!1;u=c.next()}return!0}if(t.constructor===Set){if(t.size!==l.size)return!1;const c=t.entries();for(u=c.next();u.done!==!0;){if(l.has(u.value[0])!==!0)return!1;u=c.next()}return!0}if(t.buffer!=null&&t.buffer.constructor===ArrayBuffer){if(i=t.length,i!==l.length)return!1;for(u=i;u--!==0;)if(t[u]!==l[u])return!1;return!0}if(t.constructor===RegExp)return t.source===l.source&&t.flags===l.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===l.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===l.toString();const a=Object.keys(t).filter(c=>t[c]!==void 0);if(i=a.length,i!==Object.keys(l).filter(c=>l[c]!==void 0).length)return!1;for(u=i;u--!==0;){const c=a[u];if(tn(t[c],l[c])!==!0)return!1}return!0}return t!==t&&l!==l}const Ku={threshold:0,root:null,rootMargin:"0px"};function Qu(t,l,i){let u,a,c;typeof i=="function"?(u=i,a=Ku,c=l.cfg===void 0):(u=i.handler,a=Object.assign({},Ku,i.cfg),c=l.cfg===void 0||tn(l.cfg,a)===!1),l.handler!==u&&(l.handler=u),c===!0&&(l.cfg=a,l.observer!==void 0&&l.observer.unobserve(t),l.observer=new IntersectionObserver(([d])=>{if(typeof l.handler=="function"){if(d.rootBounds===null&&document.body.contains(t)===!0){l.observer.unobserve(t),l.observer.observe(t);return}(l.handler(d,l.observer)===!1||l.once===!0&&d.isIntersecting===!0)&&Zu(t)}},a),l.observer.observe(t))}function Zu(t){const l=t.__qvisible;l!==void 0&&(l.observer!==void 0&&l.observer.unobserve(t),delete t.__qvisible)}const ah=ju({name:"intersection",mounted(t,{modifiers:l,value:i}){const u={once:l.once===!0};Qu(t,u,i),t.__qvisible=u},updated(t,l){const i=t.__qvisible;i!==void 0&&Qu(t,i,l.value)},beforeUnmount:Zu});function ot(t,l){return t!==void 0&&t()||l}function uh(t,l){if(t!==void 0){const i=t();if(i!=null)return i.slice()}return l}function bn(t,l){return t!==void 0?l.concat(t()):l}function sh(t,l){return t===void 0?l:l!==void 0?l.concat(t()):t()}function Yu(t,l,i,u,a,c){l.key=u+a;const d=r.h(t,l,i);return a===!0?r.withDirectives(d,c()):d}const ch=He({name:"QIntersection",props:{tag:{type:String,default:"div"},once:Boolean,transition:String,transitionDuration:{type:[String,Number],default:300},ssrPrerender:Boolean,margin:String,threshold:[Number,Array],root:{default:null},disable:Boolean,onVisibility:Function},setup(t,{slots:l,emit:i}){const u=r.ref(yn.value===!0?t.ssrPrerender:!1),a=r.computed(()=>t.root!==void 0||t.margin!==void 0||t.threshold!==void 0?{handler:v,cfg:{root:t.root,rootMargin:t.margin,threshold:t.threshold}}:v),c=r.computed(()=>t.disable!==!0&&(yn.value!==!0||t.once!==!0||t.ssrPrerender!==!0)),d=r.computed(()=>[[ah,a.value,void 0,{once:t.once}]]),h=r.computed(()=>`--q-transition-duration: ${t.transitionDuration}ms`);function v(m){u.value!==m.isIntersecting&&(u.value=m.isIntersecting,t.onVisibility!==void 0&&i("visibility",u.value))}function y(){if(u.value===!0)return[r.h("div",{key:"content",style:h.value},ot(l.default))];if(l.hidden!==void 0)return[r.h("div",{key:"hidden",style:h.value},l.hidden())]}return()=>{const m=t.transition?[r.h(r.Transition,{name:"q-transition--"+t.transition},y)]:y();return Yu(t.tag,{class:"q-intersection"},m,"main",c.value,()=>d.value)}}}),ji={xs:18,sm:24,md:32,lg:38,xl:46},Mr={size:String};function Lr(t,l=ji){return r.computed(()=>t.size!==void 0?{fontSize:t.size in l?`${l[t.size]}px`:t.size}:null)}const fh={size:{type:[String,Number],default:"1em"},color:String};function dh(t){return{cSize:r.computed(()=>t.size in ji?`${ji[t.size]}px`:t.size),classes:r.computed(()=>"q-spinner"+(t.color?` text-${t.color}`:""))}}const Ki=He({name:"QSpinner",props:{...fh,thickness:{type:Number,default:5}},setup(t){const{cSize:l,classes:i}=dh(t);return()=>r.h("svg",{class:i.value+" q-spinner-mat",width:l.value,height:l.value,viewBox:"25 25 50 50"},[r.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":t.thickness,"stroke-miterlimit":"10"})])}}),hh={ratio:[String,Number]};function mh(t,l){return r.computed(()=>{const i=Number(t.ratio||(l!==void 0?l.value:void 0));return isNaN(i)!==!0&&i>0?{paddingBottom:`${100/i}%`}:null})}function Qi(t){if(Object(t.$parent)===t.$parent)return t.$parent;let{parent:l}=t.$;for(;Object(l)===l;){if(Object(l.proxy)===l.proxy)return l.proxy;l=l.parent}}function Xu(t){return t.appContext.config.globalProperties.$router!==void 0}function Vr(t){return t.isUnmounted===!0||t.isDeactivated===!0}function qr(){let t=null;const l=r.getCurrentInstance();function i(){t!==null&&(clearTimeout(t),t=null)}return r.onDeactivated(i),r.onBeforeUnmount(i),{removeTimeout:i,registerTimeout(u,a){i(),Vr(l)===!1&&(t=setTimeout(()=>{t=null,u()},a))}}}const gh=He({name:"QImg",props:{...hh,src:String,srcset:String,sizes:String,alt:String,crossorigin:String,decoding:String,referrerpolicy:String,draggable:Boolean,loading:{type:String,default:"lazy"},loadingShowDelay:{type:[Number,String],default:0},fetchpriority:{type:String,default:"auto"},width:String,height:String,initialRatio:{type:[Number,String],default:1.7778},placeholderSrc:String,errorSrc:String,fit:{type:String,default:"cover"},position:{type:String,default:"50% 50%"},imgClass:String,imgStyle:Object,noSpinner:Boolean,noNativeMenu:Boolean,noTransition:Boolean,spinnerColor:String,spinnerSize:String},emits:["load","error"],setup(t,{slots:l,emit:i}){const u=r.ref(t.initialRatio),a=mh(t,u),c=r.getCurrentInstance(),{registerTimeout:d,removeTimeout:h}=qr(),{registerTimeout:v,removeTimeout:y}=qr(),m=r.computed(()=>t.placeholderSrc!==void 0?{src:t.placeholderSrc}:null),w=r.computed(()=>t.errorSrc!==void 0?{src:t.errorSrc,__qerror:!0}:null),E=[r.ref(null),r.ref(m.value)],x=r.ref(0),b=r.ref(!1),R=r.ref(!1),A=r.computed(()=>`q-img q-img--${t.noNativeMenu===!0?"no-":""}menu`),P=r.computed(()=>({width:t.width,height:t.height})),$=r.computed(()=>`q-img__image ${t.imgClass!==void 0?t.imgClass+" ":""}q-img__image--with${t.noTransition===!0?"out":""}-transition q-img__image--`),M=r.computed(()=>({...t.imgStyle,objectFit:t.fit,objectPosition:t.position}));function j(){if(y(),t.loadingShowDelay===0){b.value=!0;return}v(()=>{b.value=!0},t.loadingShowDelay)}function W(){y(),b.value=!1}function Q({target:O}){Vr(c)===!1&&(h(),u.value=O.naturalHeight===0?.5:O.naturalWidth/O.naturalHeight,K(O,1))}function K(O,te){te===1e3||Vr(c)===!0||(O.complete===!0?ie(O):d(()=>{K(O,te+1)},50))}function ie(O){Vr(c)!==!0&&(x.value=x.value^1,E[x.value].value=null,W(),O.getAttribute("__qerror")!=="true"&&(R.value=!1),i("load",O.currentSrc||O.src))}function N(O){h(),W(),R.value=!0,E[x.value].value=w.value,E[x.value^1].value=m.value,i("error",O)}function U(O){const te=E[O].value,D={key:"img_"+O,class:$.value,style:M.value,alt:t.alt,crossorigin:t.crossorigin,decoding:t.decoding,referrerpolicy:t.referrerpolicy,height:t.height,width:t.width,loading:t.loading,fetchpriority:t.fetchpriority,"aria-hidden":"true",draggable:t.draggable,...te};return x.value===O?Object.assign(D,{class:D.class+"current",onLoad:Q,onError:N}):D.class+="loaded",r.h("div",{class:"q-img__container absolute-full",key:"img"+O},r.h("img",D))}function Z(){return b.value===!1?r.h("div",{key:"content",class:"q-img__content absolute-full q-anchor--skip"},ot(l[R.value===!0?"error":"default"])):r.h("div",{key:"loading",class:"q-img__loading absolute-full flex flex-center"},l.loading!==void 0?l.loading():t.noSpinner===!0?void 0:[r.h(Ki,{color:t.spinnerColor,size:t.spinnerSize})])}{let O=function(){r.watch(()=>t.src||t.srcset||t.sizes?{src:t.src,srcset:t.srcset,sizes:t.sizes}:null,te=>{h(),R.value=!1,te===null?(W(),E[x.value^1].value=m.value):j(),E[x.value].value=te},{immediate:!0})};yn.value===!0?r.onMounted(O):O()}return()=>{const O=[];return a.value!==null&&O.push(r.h("div",{key:"filler",style:a.value})),E[0].value!==null&&O.push(U(0)),E[1].value!==null&&O.push(U(1)),O.push(r.h(r.Transition,{name:"q-transition--fade"},Z)),r.h("div",{key:"main",class:A.value,style:P.value,role:"img","aria-label":t.alt},O)}}}),Ju="0 0 24 24",es=t=>t,Zi=t=>`ionicons ${t}`,ts={"mdi-":t=>`mdi ${t}`,"icon-":es,"bt-":t=>`bt ${t}`,"eva-":t=>`eva ${t}`,"ion-md":Zi,"ion-ios":Zi,"ion-logo":Zi,"iconfont ":es,"ti-":t=>`themify-icon ${t}`,"bi-":t=>`bootstrap-icons ${t}`},ns={o_:"-outlined",r_:"-round",s_:"-sharp"},rs={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},ph=new RegExp("^("+Object.keys(ts).join("|")+")"),vh=new RegExp("^("+Object.keys(ns).join("|")+")"),os=new RegExp("^("+Object.keys(rs).join("|")+")"),_h=/^[Mm]\s?[-+]?\.?\d/,yh=/^img:/,bh=/^svguse:/,wh=/^ion-/,Sh=/^(fa-(sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,dt=He({name:"QIcon",props:{...Mr,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(t,{slots:l}){const{proxy:{$q:i}}=r.getCurrentInstance(),u=Lr(t),a=r.computed(()=>"q-icon"+(t.left===!0?" on-left":"")+(t.right===!0?" on-right":"")+(t.color!==void 0?` text-${t.color}`:"")),c=r.computed(()=>{let d,h=t.name;if(h==="none"||!h)return{none:!0};if(i.iconMapFn!==null){const m=i.iconMapFn(h);if(m!==void 0)if(m.icon!==void 0){if(h=m.icon,h==="none"||!h)return{none:!0}}else return{cls:m.cls,content:m.content!==void 0?m.content:" "}}if(_h.test(h)===!0){const[m,w=Ju]=h.split("|");return{svg:!0,viewBox:w,nodes:m.split("&&").map(E=>{const[x,b,R]=E.split("@@");return r.h("path",{style:b,d:x,transform:R})})}}if(yh.test(h)===!0)return{img:!0,src:h.substring(4)};if(bh.test(h)===!0){const[m,w=Ju]=h.split("|");return{svguse:!0,src:m.substring(7),viewBox:w}}let v=" ";const y=h.match(ph);if(y!==null)d=ts[y[1]](h);else if(Sh.test(h)===!0)d=h;else if(wh.test(h)===!0)d=`ionicons ion-${i.platform.is.ios===!0?"ios":"md"}${h.substring(3)}`;else if(os.test(h)===!0){d="notranslate material-symbols";const m=h.match(os);m!==null&&(h=h.substring(6),d+=rs[m[1]]),v=h}else{d="notranslate material-icons";const m=h.match(vh);m!==null&&(h=h.substring(2),d+=ns[m[1]]),v=h}return{cls:d,content:v}});return()=>{const d={class:a.value,style:u.value,"aria-hidden":"true",role:"presentation"};return c.value.none===!0?r.h(t.tag,d,ot(l.default)):c.value.img===!0?r.h(t.tag,d,bn(l.default,[r.h("img",{src:c.value.src})])):c.value.svg===!0?r.h(t.tag,d,bn(l.default,[r.h("svg",{viewBox:c.value.viewBox||"0 0 24 24"},c.value.nodes)])):c.value.svguse===!0?r.h(t.tag,d,bn(l.default,[r.h("svg",{viewBox:c.value.viewBox},[r.h("use",{"xlink:href":c.value.src})])])):(c.value.cls!==void 0&&(d.class+=" "+c.value.cls),r.h(t.tag,d,bn(l.default,[c.value.content])))}}}),Ch={class:"card-select-container"},xh=["onClick"],Eh={class:"check"},Ah={class:"row justify-center items-center",style:{height:"100%"}},kh=["onClick"],Bh=r.defineComponent({__name:"CardsSelectControl",props:r.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=r.useModel(t,"modelValue"),i=t,{control:u}=r.toRefs(i);function a(h){if(u.value.multiple){let v=Ve.cloneDeep(l.value);h.exclusive?v=[h.value]:(v=v.filter(y=>{var m,w;return!((w=(m=u.value.options)==null?void 0:m.find(E=>E.value===y))!=null&&w.exclusive)}),v.includes(h.value)?v=v.filter(y=>y!==h.value):v.push(h.value)),l.value=v}else l.value=h.value}function c(h){return d(h)?"active":""}function d(h){let v;return u.value.multiple?v=(l.value||[]).includes(String(h.value)):v=l.value===h.value,v}return(h,v)=>{const y=r.resolveComponent("ControlLabel");return r.openBlock(),r.createElementBlock(r.Fragment,null,[r.unref(u).label?(r.openBlock(),r.createBlock(y,{key:0,label:r.unref(u).label},null,8,["label"])):r.createCommentVNode("",!0),r.createElementVNode("div",Ch,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(u).options,(m,w)=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:w},[m.image?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(`image-card ${c(m)}`),onClick:()=>a(m)},[r.createVNode(gh,{src:m.image,height:"200px",width:"200px",fit:"fill",class:"image"},null,8,["src"]),r.createElementVNode("div",Eh,[r.createElementVNode("div",Ah,[d(m)?(r.openBlock(),r.createBlock(dt,{key:0,name:"check",size:"25px"})):r.createCommentVNode("",!0)])])],10,xh)):(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass(`card-option ${c(m)}`),onClick:()=>a(m)},[r.createElementVNode("span",null,r.toDisplayString(m.label),1)],10,kh))],64))),128))])],64)}}}),Qe=(t,l)=>{const i=t.__vccOpts||t;for(const[u,a]of l)i[u]=a;return i},Oh=Qe(Bh,[["__scopeId","data-v-148468d6"]]),wn={dark:{type:Boolean,default:null}};function Sn(t,l){return r.computed(()=>t.dark===null?l.dark.isActive:t.dark)}function is(t,l){const i=r.ref(null),u=r.computed(()=>t.disable===!0?null:r.h("span",{ref:i,class:"no-outline",tabindex:-1}));function a(c){const d=l.value;c!==void 0&&c.type.indexOf("key")===0?d!==null&&document.activeElement!==d&&d.contains(document.activeElement)===!0&&d.focus():i.value!==null&&(c===void 0||d!==null&&d.contains(c.target)===!0)&&i.value.focus()}return{refocusTargetEl:u,refocusTarget:a}}const Ao={name:String};function ls(t={}){return(l,i,u)=>{l[i](r.h("input",{class:"hidden"+(u||""),...t.value}))}}function as(t){return r.computed(()=>t.name||t.for)}const us={xs:30,sm:35,md:40,lg:50,xl:60},ht={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const t=Object.defineProperty({},"passive",{get(){Object.assign(ht,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,t),window.removeEventListener("qtest",null,t)}catch{}function Th(){}function ss(t){return t.touches&&t.touches[0]?t=t.touches[0]:t.changedTouches&&t.changedTouches[0]?t=t.changedTouches[0]:t.targetTouches&&t.targetTouches[0]&&(t=t.targetTouches[0]),{top:t.clientY,left:t.clientX}}function Rh(t){if(t.path)return t.path;if(t.composedPath)return t.composedPath();const l=[];let i=t.target;for(;i;){if(l.push(i),i.tagName==="HTML")return l.push(document),l.push(window),l;i=i.parentElement}}function Zt(t){t.stopPropagation()}function $t(t){t.cancelable!==!1&&t.preventDefault()}function De(t){t.cancelable!==!1&&t.preventDefault(),t.stopPropagation()}function Nr(t,l,i){const u=`__q_${l}_evt`;t[u]=t[u]!==void 0?t[u].concat(i):i,i.forEach(a=>{a[0].addEventListener(a[1],t[a[2]],ht[a[3]])})}function ko(t,l){const i=`__q_${l}_evt`;t[i]!==void 0&&(t[i].forEach(u=>{u[0].removeEventListener(u[1],t[u[2]],ht[u[3]])}),t[i]=void 0)}const cs={...wn,...Mr,...Ao,modelValue:{required:!0,default:null},val:{},trueValue:{default:!0},falseValue:{default:!1},indeterminateValue:{default:null},checkedIcon:String,uncheckedIcon:String,indeterminateIcon:String,toggleOrder:{type:String,validator:t=>t==="tf"||t==="ft"},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},fs=["update:modelValue"];function ds(t,l){const{props:i,slots:u,emit:a,proxy:c}=r.getCurrentInstance(),{$q:d}=c,h=Sn(i,d),v=r.ref(null),{refocusTargetEl:y,refocusTarget:m}=is(i,v),w=Lr(i,us),E=r.computed(()=>i.val!==void 0&&Array.isArray(i.modelValue)),x=r.computed(()=>{const O=r.toRaw(i.val);return E.value===!0?i.modelValue.findIndex(te=>r.toRaw(te)===O):-1}),b=r.computed(()=>E.value===!0?x.value!==-1:r.toRaw(i.modelValue)===r.toRaw(i.trueValue)),R=r.computed(()=>E.value===!0?x.value===-1:r.toRaw(i.modelValue)===r.toRaw(i.falseValue)),A=r.computed(()=>b.value===!1&&R.value===!1),P=r.computed(()=>i.disable===!0?-1:i.tabindex||0),$=r.computed(()=>`q-${t} cursor-pointer no-outline row inline no-wrap items-center`+(i.disable===!0?" disabled":"")+(h.value===!0?` q-${t}--dark`:"")+(i.dense===!0?` q-${t}--dense`:"")+(i.leftLabel===!0?" reverse":"")),M=r.computed(()=>{const O=b.value===!0?"truthy":R.value===!0?"falsy":"indet",te=i.color!==void 0&&(i.keepColor===!0||(t==="toggle"?b.value===!0:R.value!==!0))?` text-${i.color}`:"";return`q-${t}__inner relative-position non-selectable q-${t}__inner--${O}${te}`}),j=r.computed(()=>{const O={type:"checkbox"};return i.name!==void 0&&Object.assign(O,{".checked":b.value,"^checked":b.value===!0?"checked":void 0,name:i.name,value:E.value===!0?i.val:i.trueValue}),O}),W=ls(j),Q=r.computed(()=>{const O={tabindex:P.value,role:t==="toggle"?"switch":"checkbox","aria-label":i.label,"aria-checked":A.value===!0?"mixed":b.value===!0?"true":"false"};return i.disable===!0&&(O["aria-disabled"]="true"),O});function K(O){O!==void 0&&(De(O),m(O)),i.disable!==!0&&a("update:modelValue",ie(),O)}function ie(){if(E.value===!0){if(b.value===!0){const O=i.modelValue.slice();return O.splice(x.value,1),O}return i.modelValue.concat([i.val])}if(b.value===!0){if(i.toggleOrder!=="ft"||i.toggleIndeterminate===!1)return i.falseValue}else if(R.value===!0){if(i.toggleOrder==="ft"||i.toggleIndeterminate===!1)return i.trueValue}else return i.toggleOrder!=="ft"?i.trueValue:i.falseValue;return i.indeterminateValue}function N(O){(O.keyCode===13||O.keyCode===32)&&De(O)}function U(O){(O.keyCode===13||O.keyCode===32)&&K(O)}const Z=l(b,A);return Object.assign(c,{toggle:K}),()=>{const O=Z();i.disable!==!0&&W(O,"unshift",` q-${t}__native absolute q-ma-none q-pa-none`);const te=[r.h("div",{class:M.value,style:w.value,"aria-hidden":"true"},O)];y.value!==null&&te.push(y.value);const D=i.label!==void 0?bn(u.default,[i.label]):ot(u.default);return D!==void 0&&te.push(r.h("div",{class:`q-${t}__label q-anchor--skip`},D)),r.h("div",{ref:v,class:$.value,...Q.value,onClick:K,onKeydown:N,onKeyup:U},te)}}const Ih=r.h("div",{key:"svg",class:"q-checkbox__bg absolute"},[r.h("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[r.h("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),r.h("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),hs=He({name:"QCheckbox",props:cs,emits:fs,setup(t){function l(i,u){const a=r.computed(()=>(i.value===!0?t.checkedIcon:u.value===!0?t.indeterminateIcon:t.uncheckedIcon)||null);return()=>a.value!==null?[r.h("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[r.h(dt,{class:"q-checkbox__icon",name:a.value})])]:[Ih]}return ds("checkbox",l)}}),ms=r.defineComponent({__name:"SimpleCheckbox",props:r.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=r.useModel(t,"modelValue");return(i,u)=>(r.openBlock(),r.createBlock(hs,{outlined:"",label:i.control.label,color:"green-10","model-value":!!l.value,"onUpdate:modelValue":u[0]||(u[0]=a=>l.value=!l.value),style:{height:"66.2px"}},null,8,["label","model-value"]))}}),Fh=He({name:"QToggle",props:{...cs,icon:String,iconColor:String},emits:fs,setup(t){function l(i,u){const a=r.computed(()=>(i.value===!0?t.checkedIcon:u.value===!0?t.indeterminateIcon:t.uncheckedIcon)||t.icon),c=r.computed(()=>i.value===!0?t.iconColor:null);return()=>[r.h("div",{class:"q-toggle__track"}),r.h("div",{class:"q-toggle__thumb absolute flex flex-center no-wrap"},a.value!==void 0?[r.h(dt,{name:a.value,color:c.value})]:void 0)]}return ds("toggle",l)}}),Mh=r.defineComponent({__name:"SimpleSwitch",props:r.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=r.useModel(t,"modelValue");return(i,u)=>(r.openBlock(),r.createBlock(Fh,{falseValue:0,trueValue:1,outlined:"",label:i.control.label,modelValue:l.value,"onUpdate:modelValue":u[0]||(u[0]=a=>l.value=a),leftLabel:"",color:"green-10",style:{height:"66.2px"}},null,8,["label","modelValue"]))}}),Bo=He({name:"QCard",props:{...wn,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(t,{slots:l}){const{proxy:{$q:i}}=r.getCurrentInstance(),u=Sn(t,i),a=r.computed(()=>"q-card"+(u.value===!0?" q-card--dark q-dark":"")+(t.bordered===!0?" q-card--bordered":"")+(t.square===!0?" q-card--square no-border-radius":"")+(t.flat===!0?" q-card--flat no-shadow":""));return()=>r.h(t.tag,{class:a.value},ot(l.default))}});let Yi,Oo=0;const et=new Array(256);for(let t=0;t<256;t++)et[t]=(t+256).toString(16).substring(1);const Lh=(()=>{const t=typeof crypto<"u"?crypto:typeof window<"u"?window.crypto||window.msCrypto:void 0;if(t!==void 0){if(t.randomBytes!==void 0)return t.randomBytes;if(t.getRandomValues!==void 0)return l=>{const i=new Uint8Array(l);return t.getRandomValues(i),i}}return l=>{const i=[];for(let u=l;u>0;u--)i.push(Math.floor(Math.random()*256));return i}})(),gs=4096;function Xi(){(Yi===void 0||Oo+16>gs)&&(Oo=0,Yi=Lh(gs));const t=Array.prototype.slice.call(Yi,Oo,Oo+=16);return t[6]=t[6]&15|64,t[8]=t[8]&63|128,et[t[0]]+et[t[1]]+et[t[2]]+et[t[3]]+"-"+et[t[4]]+et[t[5]]+"-"+et[t[6]]+et[t[7]]+"-"+et[t[8]]+et[t[9]]+"-"+et[t[10]]+et[t[11]]+et[t[12]]+et[t[13]]+et[t[14]]+et[t[15]]}function Vh(t){return t??null}function ps(t,l){return t??(l===!0?`f_${Xi()}`:null)}function qh({getValue:t,required:l=!0}={}){if(yn.value===!0){const i=t!==void 0?r.ref(Vh(t())):r.ref(null);return l===!0&&i.value===null&&r.onMounted(()=>{i.value=`f_${Xi()}`}),t!==void 0&&r.watch(t,u=>{i.value=ps(u,l)}),i}return t!==void 0?r.computed(()=>ps(t(),l)):r.ref(`f_${Xi()}`)}const vs=/^on[A-Z]/;function Nh(){const{attrs:t,vnode:l}=r.getCurrentInstance(),i={listeners:r.ref({}),attributes:r.ref({})};function u(){const a={},c={};for(const d in t)d!=="class"&&d!=="style"&&vs.test(d)===!1&&(a[d]=t[d]);for(const d in l.props)vs.test(d)===!0&&(c[d]=l.props[d]);i.attributes.value=a,i.listeners.value=c}return r.onBeforeUpdate(u),u(),i}const Ph="_q_",$h="_q_fo_";function Dh({validate:t,resetValidation:l,requiresQForm:i}){const u=r.inject($h,!1);if(u!==!1){const{props:a,proxy:c}=r.getCurrentInstance();Object.assign(c,{validate:t,resetValidation:l}),r.watch(()=>a.disable,d=>{d===!0?(typeof l=="function"&&l(),u.unbindComponent(c)):u.bindComponent(c)}),r.onMounted(()=>{a.disable!==!0&&u.bindComponent(c)}),r.onBeforeUnmount(()=>{a.disable!==!0&&u.unbindComponent(c)})}else i===!0&&console.error("Parent QForm not found on useFormChild()!")}const _s=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,ys=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,bs=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,To=/^rgb\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5])\)$/,Ro=/^rgba\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/,Ji={date:t=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(t),time:t=>/^([0-1]?\d|2[0-3]):[0-5]\d$/.test(t),fulltime:t=>/^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(t),timeOrFulltime:t=>/^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/.test(t),email:t=>/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t),hexColor:t=>_s.test(t),hexaColor:t=>ys.test(t),hexOrHexaColor:t=>bs.test(t),rgbColor:t=>To.test(t),rgbaColor:t=>Ro.test(t),rgbOrRgbaColor:t=>To.test(t)||Ro.test(t),hexOrRgbColor:t=>_s.test(t)||To.test(t),hexaOrRgbaColor:t=>ys.test(t)||Ro.test(t),anyColor:t=>bs.test(t)||To.test(t)||Ro.test(t)};function ws(t,l=250,i){let u=null;function a(){const c=arguments,d=()=>{u=null,t.apply(this,c)};u!==null&&clearTimeout(u),u=setTimeout(d,l)}return a.cancel=()=>{u!==null&&clearTimeout(u)},a}const Uh=[!0,!1,"ondemand"],zh={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:t=>Uh.includes(t)}};function Hh(t,l){const{props:i,proxy:u}=r.getCurrentInstance(),a=r.ref(!1),c=r.ref(null),d=r.ref(!1);Dh({validate:R,resetValidation:b});let h=0,v;const y=r.computed(()=>i.rules!==void 0&&i.rules!==null&&i.rules.length!==0),m=r.computed(()=>i.disable!==!0&&y.value===!0&&l.value===!1),w=r.computed(()=>i.error===!0||a.value===!0),E=r.computed(()=>typeof i.errorMessage=="string"&&i.errorMessage.length!==0?i.errorMessage:c.value);r.watch(()=>i.modelValue,()=>{d.value=!0,m.value===!0&&i.lazyRules===!1&&A()});function x(){i.lazyRules!=="ondemand"&&m.value===!0&&d.value===!0&&A()}r.watch(()=>i.reactiveRules,P=>{P===!0?v===void 0&&(v=r.watch(()=>i.rules,x,{immediate:!0,deep:!0})):v!==void 0&&(v(),v=void 0)},{immediate:!0}),r.watch(()=>i.lazyRules,x),r.watch(t,P=>{P===!0?d.value=!0:m.value===!0&&i.lazyRules!=="ondemand"&&A()});function b(){h++,l.value=!1,d.value=!1,a.value=!1,c.value=null,A.cancel()}function R(P=i.modelValue){if(i.disable===!0||y.value===!1)return!0;const $=++h,M=l.value!==!0?()=>{d.value=!0}:()=>{},j=(Q,K)=>{Q===!0&&M(),a.value=Q,c.value=K||null,l.value=!1},W=[];for(let Q=0;Q<i.rules.length;Q++){const K=i.rules[Q];let ie;if(typeof K=="function"?ie=K(P,Ji):typeof K=="string"&&Ji[K]!==void 0&&(ie=Ji[K](P)),ie===!1||typeof ie=="string")return j(!0,ie),!1;ie!==!0&&ie!==void 0&&W.push(ie)}return W.length===0?(j(!1),!0):(l.value=!0,Promise.all(W).then(Q=>{if(Q===void 0||Array.isArray(Q)===!1||Q.length===0)return $===h&&j(!1),!0;const K=Q.find(ie=>ie===!1||typeof ie=="string");return $===h&&j(K!==void 0,K),K===void 0},Q=>($===h&&(console.error(Q),j(!0)),!1)))}const A=ws(R,0);return r.onBeforeUnmount(()=>{v!==void 0&&v(),A.cancel()}),Object.assign(u,{resetValidation:b,validate:R}),Eo(u,"hasError",()=>w.value),{isDirtyModel:d,hasRules:y,hasError:w,errorMessage:E,validate:R,resetValidation:b}}let Nn=[],Pr=[];function Ss(t){Pr=Pr.filter(l=>l!==t)}function Wh(t){Ss(t),Pr.push(t)}function Cs(t){Ss(t),Pr.length===0&&Nn.length!==0&&(Nn[Nn.length-1](),Nn=[])}function Io(t){Pr.length===0?t():Nn.push(t)}function Gh(t){Nn=Nn.filter(l=>l!==t)}function $r(t){return t!=null&&(""+t).length!==0}const Fo={...{...wn,...zh,label:String,stackLabel:Boolean,hint:String,hideHint:Boolean,prefix:String,suffix:String,labelColor:String,color:String,bgColor:String,filled:Boolean,outlined:Boolean,borderless:Boolean,standout:[Boolean,String],square:Boolean,loading:Boolean,labelSlot:Boolean,bottomSlots:Boolean,hideBottomSpace:Boolean,rounded:Boolean,dense:Boolean,itemAligned:Boolean,counter:Boolean,clearable:Boolean,clearIcon:String,disable:Boolean,readonly:Boolean,autofocus:Boolean,for:String},maxlength:[Number,String]},el=["update:modelValue","clear","focus","blur"];function tl({requiredForAttr:t=!0,tagProp:l}={}){const{props:i,proxy:u}=r.getCurrentInstance(),a=Sn(i,u.$q),c=qh({required:t,getValue:()=>i.for});return{requiredForAttr:t,tag:l===!0?r.computed(()=>i.tag):{value:"label"},isDark:a,editable:r.computed(()=>i.disable!==!0&&i.readonly!==!0),innerLoading:r.ref(!1),focused:r.ref(!1),hasPopupOpen:!1,splitAttrs:Nh(),targetUid:c,rootRef:r.ref(null),targetRef:r.ref(null),controlRef:r.ref(null)}}function nl(t){const{props:l,emit:i,slots:u,attrs:a,proxy:c}=r.getCurrentInstance(),{$q:d}=c;let h=null;t.hasValue===void 0&&(t.hasValue=r.computed(()=>$r(l.modelValue))),t.emitValue===void 0&&(t.emitValue=H=>{i("update:modelValue",H)}),t.controlEvents===void 0&&(t.controlEvents={onFocusin:N,onFocusout:U}),Object.assign(t,{clearValue:Z,onControlFocusin:N,onControlFocusout:U,focus:K}),t.computedCounter===void 0&&(t.computedCounter=r.computed(()=>{if(l.counter!==!1){const H=typeof l.modelValue=="string"||typeof l.modelValue=="number"?(""+l.modelValue).length:Array.isArray(l.modelValue)===!0?l.modelValue.length:0,se=l.maxlength!==void 0?l.maxlength:l.maxValues;return H+(se!==void 0?" / "+se:"")}}));const{isDirtyModel:v,hasRules:y,hasError:m,errorMessage:w,resetValidation:E}=Hh(t.focused,t.innerLoading),x=t.floatingLabel!==void 0?r.computed(()=>l.stackLabel===!0||t.focused.value===!0||t.floatingLabel.value===!0):r.computed(()=>l.stackLabel===!0||t.focused.value===!0||t.hasValue.value===!0),b=r.computed(()=>l.bottomSlots===!0||l.hint!==void 0||y.value===!0||l.counter===!0||l.error!==null),R=r.computed(()=>l.filled===!0?"filled":l.outlined===!0?"outlined":l.borderless===!0?"borderless":l.standout?"standout":"standard"),A=r.computed(()=>`q-field row no-wrap items-start q-field--${R.value}`+(t.fieldClass!==void 0?` ${t.fieldClass.value}`:"")+(l.rounded===!0?" q-field--rounded":"")+(l.square===!0?" q-field--square":"")+(x.value===!0?" q-field--float":"")+($.value===!0?" q-field--labeled":"")+(l.dense===!0?" q-field--dense":"")+(l.itemAligned===!0?" q-field--item-aligned q-item-type":"")+(t.isDark.value===!0?" q-field--dark":"")+(t.getControl===void 0?" q-field--auto-height":"")+(t.focused.value===!0?" q-field--focused":"")+(m.value===!0?" q-field--error":"")+(m.value===!0||t.focused.value===!0?" q-field--highlighted":"")+(l.hideBottomSpace!==!0&&b.value===!0?" q-field--with-bottom":"")+(l.disable===!0?" q-field--disabled":l.readonly===!0?" q-field--readonly":"")),P=r.computed(()=>"q-field__control relative-position row no-wrap"+(l.bgColor!==void 0?` bg-${l.bgColor}`:"")+(m.value===!0?" text-negative":typeof l.standout=="string"&&l.standout.length!==0&&t.focused.value===!0?` ${l.standout}`:l.color!==void 0?` text-${l.color}`:"")),$=r.computed(()=>l.labelSlot===!0||l.label!==void 0),M=r.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(l.labelColor!==void 0&&m.value!==!0?` text-${l.labelColor}`:"")),j=r.computed(()=>({id:t.targetUid.value,editable:t.editable.value,focused:t.focused.value,floatingLabel:x.value,modelValue:l.modelValue,emitValue:t.emitValue})),W=r.computed(()=>{const H={};return t.targetUid.value&&(H.for=t.targetUid.value),l.disable===!0&&(H["aria-disabled"]="true"),H});function Q(){const H=document.activeElement;let se=t.targetRef!==void 0&&t.targetRef.value;se&&(H===null||H.id!==t.targetUid.value)&&(se.hasAttribute("tabindex")===!0||(se=se.querySelector("[tabindex]")),se&&se!==H&&se.focus({preventScroll:!0}))}function K(){Io(Q)}function ie(){Gh(Q);const H=document.activeElement;H!==null&&t.rootRef.value.contains(H)&&H.blur()}function N(H){h!==null&&(clearTimeout(h),h=null),t.editable.value===!0&&t.focused.value===!1&&(t.focused.value=!0,i("focus",H))}function U(H,se){h!==null&&clearTimeout(h),h=setTimeout(()=>{h=null,!(document.hasFocus()===!0&&(t.hasPopupOpen===!0||t.controlRef===void 0||t.controlRef.value===null||t.controlRef.value.contains(document.activeElement)!==!1))&&(t.focused.value===!0&&(t.focused.value=!1,i("blur",H)),se!==void 0&&se())})}function Z(H){De(H),d.platform.is.mobile!==!0?(t.targetRef!==void 0&&t.targetRef.value||t.rootRef.value).focus():t.rootRef.value.contains(document.activeElement)===!0&&document.activeElement.blur(),l.type==="file"&&(t.inputRef.value.value=null),i("update:modelValue",null),i("clear",l.modelValue),r.nextTick(()=>{const se=v.value;E(),v.value=se})}function O(){const H=[];return u.prepend!==void 0&&H.push(r.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:$t},u.prepend())),H.push(r.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},te())),m.value===!0&&l.noErrorIcon===!1&&H.push(le("error",[r.h(dt,{name:d.iconSet.field.error,color:"negative"})])),l.loading===!0||t.innerLoading.value===!0?H.push(le("inner-loading-append",u.loading!==void 0?u.loading():[r.h(Ki,{color:l.color})])):l.clearable===!0&&t.hasValue.value===!0&&t.editable.value===!0&&H.push(le("inner-clearable-append",[r.h(dt,{class:"q-field__focusable-action",tag:"button",name:l.clearIcon||d.iconSet.field.clear,tabindex:0,type:"button","aria-hidden":null,role:null,onClick:Z})])),u.append!==void 0&&H.push(r.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:$t},u.append())),t.getInnerAppend!==void 0&&H.push(le("inner-append",t.getInnerAppend())),t.getControlChild!==void 0&&H.push(t.getControlChild()),H}function te(){const H=[];return l.prefix!==void 0&&l.prefix!==null&&H.push(r.h("div",{class:"q-field__prefix no-pointer-events row items-center"},l.prefix)),t.getShadowControl!==void 0&&t.hasShadow.value===!0&&H.push(t.getShadowControl()),t.getControl!==void 0?H.push(t.getControl()):u.rawControl!==void 0?H.push(u.rawControl()):u.control!==void 0&&H.push(r.h("div",{ref:t.targetRef,class:"q-field__native row",tabindex:-1,...t.splitAttrs.attributes.value,"data-autofocus":l.autofocus===!0||void 0},u.control(j.value))),$.value===!0&&H.push(r.h("div",{class:M.value},ot(u.label,l.label))),l.suffix!==void 0&&l.suffix!==null&&H.push(r.h("div",{class:"q-field__suffix no-pointer-events row items-center"},l.suffix)),H.concat(ot(u.default))}function D(){let H,se;m.value===!0?w.value!==null?(H=[r.h("div",{role:"alert"},w.value)],se=`q--slot-error-${w.value}`):(H=ot(u.error),se="q--slot-error"):(l.hideHint!==!0||t.focused.value===!0)&&(l.hint!==void 0?(H=[r.h("div",l.hint)],se=`q--slot-hint-${l.hint}`):(H=ot(u.hint),se="q--slot-hint"));const Be=l.counter===!0||u.counter!==void 0;if(l.hideBottomSpace===!0&&Be===!1&&H===void 0)return;const ge=r.h("div",{key:se,class:"q-field__messages col"},H);return r.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(l.hideBottomSpace!==!0?"animated":"stale"),onClick:$t},[l.hideBottomSpace===!0?ge:r.h(r.Transition,{name:"q-transition--field-message"},()=>ge),Be===!0?r.h("div",{class:"q-field__counter"},u.counter!==void 0?u.counter():t.computedCounter.value):null])}function le(H,se){return se===null?null:r.h("div",{key:H,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},se)}let ae=!1;return r.onDeactivated(()=>{ae=!0}),r.onActivated(()=>{ae===!0&&l.autofocus===!0&&c.focus()}),l.autofocus===!0&&r.onMounted(()=>{c.focus()}),r.onBeforeUnmount(()=>{h!==null&&clearTimeout(h)}),Object.assign(c,{focus:K,blur:ie}),function(){const se=t.getControl===void 0&&u.control===void 0?{...t.splitAttrs.attributes.value,"data-autofocus":l.autofocus===!0||void 0,...W.value}:W.value;return r.h(t.tag.value,{ref:t.rootRef,class:[A.value,a.class],style:a.style,...se},[u.before!==void 0?r.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:$t},u.before()):null,r.h("div",{class:"q-field__inner relative-position col self-stretch"},[r.h("div",{ref:t.controlRef,class:P.value,tabindex:-1,...t.controlEvents},O()),b.value===!0?D():null]),u.after!==void 0?r.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:$t},u.after()):null])}}function rl(t){return t!==Object(t)||t.isComposing===!0||t.qKeyEvent===!0}function Pn(t,l){return rl(t)===!0?!1:[].concat(l).includes(t.keyCode)}const xs={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},Mo={"#":{pattern:"[\\d]",negate:"[^\\d]"},S:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]"},N:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]"},A:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:t=>t.toLocaleUpperCase()},a:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:t=>t.toLocaleLowerCase()},X:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:t=>t.toLocaleUpperCase()},x:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:t=>t.toLocaleLowerCase()}},Es=Object.keys(Mo);Es.forEach(t=>{Mo[t].regex=new RegExp(Mo[t].pattern)});const jh=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+Es.join("")+"])|(.)","g"),As=/[.*+?^${}()|[\]\\]/g,je="",Kh={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function Qh(t,l,i,u){let a,c,d,h,v,y;const m=r.ref(null),w=r.ref(x());function E(){return t.autogrow===!0||["textarea","text","search","url","tel","password"].includes(t.type)}r.watch(()=>t.type+t.autogrow,R),r.watch(()=>t.mask,N=>{if(N!==void 0)A(w.value,!0);else{const U=K(w.value);R(),t.modelValue!==U&&l("update:modelValue",U)}}),r.watch(()=>t.fillMask+t.reverseFillMask,()=>{m.value===!0&&A(w.value,!0)}),r.watch(()=>t.unmaskedValue,()=>{m.value===!0&&A(w.value)});function x(){if(R(),m.value===!0){const N=W(K(t.modelValue));return t.fillMask!==!1?ie(N):N}return t.modelValue}function b(N){if(N<a.length)return a.slice(-N);let U="",Z=a;const O=Z.indexOf(je);if(O!==-1){for(let te=N-Z.length;te>0;te--)U+=je;Z=Z.slice(0,O)+U+Z.slice(O)}return Z}function R(){if(m.value=t.mask!==void 0&&t.mask.length!==0&&E(),m.value===!1){h=void 0,a="",c="";return}const N=xs[t.mask]===void 0?t.mask:xs[t.mask],U=typeof t.fillMask=="string"&&t.fillMask.length!==0?t.fillMask.slice(0,1):"_",Z=U.replace(As,"\\$&"),O=[],te=[],D=[];let le=t.reverseFillMask===!0,ae="",H="";N.replace(jh,(I,T,Y,pe,fe)=>{if(pe!==void 0){const G=Mo[pe];D.push(G),H=G.negate,le===!0&&(te.push("(?:"+H+"+)?("+G.pattern+"+)?(?:"+H+"+)?("+G.pattern+"+)?"),le=!1),te.push("(?:"+H+"+)?("+G.pattern+")?")}else if(Y!==void 0)ae="\\"+(Y==="\\"?"":Y),D.push(Y),O.push("([^"+ae+"]+)?"+ae+"?");else{const G=T!==void 0?T:fe;ae=G==="\\"?"\\\\\\\\":G.replace(As,"\\\\$&"),D.push(G),O.push("([^"+ae+"]+)?"+ae+"?")}});const se=new RegExp("^"+O.join("")+"("+(ae===""?".":"[^"+ae+"]")+"+)?"+(ae===""?"":"["+ae+"]*")+"$"),Be=te.length-1,ge=te.map((I,T)=>T===0&&t.reverseFillMask===!0?new RegExp("^"+Z+"*"+I):T===Be?new RegExp("^"+I+"("+(H===""?".":H)+"+)?"+(t.reverseFillMask===!0?"$":Z+"*")):new RegExp("^"+I));d=D,h=I=>{const T=se.exec(t.reverseFillMask===!0?I:I.slice(0,D.length+1));T!==null&&(I=T.slice(1).join(""));const Y=[],pe=ge.length;for(let fe=0,G=I;fe<pe;fe++){const re=ge[fe].exec(G);if(re===null)break;G=G.slice(re.shift().length),Y.push(...re)}return Y.length!==0?Y.join(""):I},a=D.map(I=>typeof I=="string"?I:je).join(""),c=a.split(je).join(U)}function A(N,U,Z){const O=u.value,te=O.selectionEnd,D=O.value.length-te,le=K(N);U===!0&&R();const ae=W(le),H=t.fillMask!==!1?ie(ae):ae,se=w.value!==H;O.value!==H&&(O.value=H),se===!0&&(w.value=H),document.activeElement===O&&r.nextTick(()=>{if(H===c){const ge=t.reverseFillMask===!0?c.length:0;O.setSelectionRange(ge,ge,"forward");return}if(Z==="insertFromPaste"&&t.reverseFillMask!==!0){const ge=O.selectionEnd;let I=te-1;for(let T=v;T<=I&&T<ge;T++)a[T]!==je&&I++;$.right(O,I);return}if(["deleteContentBackward","deleteContentForward"].indexOf(Z)!==-1){const ge=t.reverseFillMask===!0?te===0?H.length>ae.length?1:0:Math.max(0,H.length-(H===c?0:Math.min(ae.length,D)+1))+1:te;O.setSelectionRange(ge,ge,"forward");return}if(t.reverseFillMask===!0)if(se===!0){const ge=Math.max(0,H.length-(H===c?0:Math.min(ae.length,D+1)));ge===1&&te===1?O.setSelectionRange(ge,ge,"forward"):$.rightReverse(O,ge)}else{const ge=H.length-D;O.setSelectionRange(ge,ge,"backward")}else if(se===!0){const ge=Math.max(0,a.indexOf(je),Math.min(ae.length,te)-1);$.right(O,ge)}else{const ge=te-1;$.right(O,ge)}});const Be=t.unmaskedValue===!0?K(H):H;String(t.modelValue)!==Be&&(t.modelValue!==null||Be!=="")&&i(Be,!0)}function P(N,U,Z){const O=W(K(N.value));U=Math.max(0,a.indexOf(je),Math.min(O.length,U)),v=U,N.setSelectionRange(U,Z,"forward")}const $={left(N,U){const Z=a.slice(U-1).indexOf(je)===-1;let O=Math.max(0,U-1);for(;O>=0;O--)if(a[O]===je){U=O,Z===!0&&U++;break}if(O<0&&a[U]!==void 0&&a[U]!==je)return $.right(N,0);U>=0&&N.setSelectionRange(U,U,"backward")},right(N,U){const Z=N.value.length;let O=Math.min(Z,U+1);for(;O<=Z;O++)if(a[O]===je){U=O;break}else a[O-1]===je&&(U=O);if(O>Z&&a[U-1]!==void 0&&a[U-1]!==je)return $.left(N,Z);N.setSelectionRange(U,U,"forward")},leftReverse(N,U){const Z=b(N.value.length);let O=Math.max(0,U-1);for(;O>=0;O--)if(Z[O-1]===je){U=O;break}else if(Z[O]===je&&(U=O,O===0))break;if(O<0&&Z[U]!==void 0&&Z[U]!==je)return $.rightReverse(N,0);U>=0&&N.setSelectionRange(U,U,"backward")},rightReverse(N,U){const Z=N.value.length,O=b(Z),te=O.slice(0,U+1).indexOf(je)===-1;let D=Math.min(Z,U+1);for(;D<=Z;D++)if(O[D-1]===je){U=D,U>0&&te===!0&&U--;break}if(D>Z&&O[U-1]!==void 0&&O[U-1]!==je)return $.leftReverse(N,Z);N.setSelectionRange(U,U,"forward")}};function M(N){l("click",N),y=void 0}function j(N){if(l("keydown",N),rl(N)===!0||N.altKey===!0)return;const U=u.value,Z=U.selectionStart,O=U.selectionEnd;if(N.shiftKey||(y=void 0),N.keyCode===37||N.keyCode===39){N.shiftKey&&y===void 0&&(y=U.selectionDirection==="forward"?Z:O);const te=$[(N.keyCode===39?"right":"left")+(t.reverseFillMask===!0?"Reverse":"")];if(N.preventDefault(),te(U,y===Z?O:Z),N.shiftKey){const D=U.selectionStart;U.setSelectionRange(Math.min(y,D),Math.max(y,D),"forward")}}else N.keyCode===8&&t.reverseFillMask!==!0&&Z===O?($.left(U,Z),U.setSelectionRange(U.selectionStart,O,"backward")):N.keyCode===46&&t.reverseFillMask===!0&&Z===O&&($.rightReverse(U,O),U.setSelectionRange(Z,U.selectionEnd,"forward"))}function W(N){if(N==null||N==="")return"";if(t.reverseFillMask===!0)return Q(N);const U=d;let Z=0,O="";for(let te=0;te<U.length;te++){const D=N[Z],le=U[te];if(typeof le=="string")O+=le,D===le&&Z++;else if(D!==void 0&&le.regex.test(D))O+=le.transform!==void 0?le.transform(D):D,Z++;else return O}return O}function Q(N){const U=d,Z=a.indexOf(je);let O=N.length-1,te="";for(let D=U.length-1;D>=0&&O!==-1;D--){const le=U[D];let ae=N[O];if(typeof le=="string")te=le+te,ae===le&&O--;else if(ae!==void 0&&le.regex.test(ae))do te=(le.transform!==void 0?le.transform(ae):ae)+te,O--,ae=N[O];while(Z===D&&ae!==void 0&&le.regex.test(ae));else return te}return te}function K(N){return typeof N!="string"||h===void 0?typeof N=="number"?h(""+N):N:h(N)}function ie(N){return c.length-N.length<=0?N:t.reverseFillMask===!0&&N.length!==0?c.slice(0,-N.length)+N:N+c.slice(N.length)}return{innerValue:w,hasMask:m,moveCursorForPaste:P,updateMaskValue:A,onMaskedKeydown:j,onMaskedClick:M}}function Zh(t,l){function i(){const u=t.modelValue;try{const a="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(u)===u&&("length"in u?Array.from(u):[u]).forEach(c=>{a.items.add(c)}),{files:a.files}}catch{return{files:void 0}}}return r.computed(()=>{if(t.type==="file")return i()})}const Yh=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,Xh=/[\u4e00-\u9fff\u3400-\u4dbf\u{20000}-\u{2a6df}\u{2a700}-\u{2b73f}\u{2b740}-\u{2b81f}\u{2b820}-\u{2ceaf}\uf900-\ufaff\u3300-\u33ff\ufe30-\ufe4f\uf900-\ufaff\u{2f800}-\u{2fa1f}]/u,Jh=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,em=/[a-z0-9_ -]$/i;function ks(t){return function(i){if(i.type==="compositionend"||i.type==="change"){if(i.target.qComposing!==!0)return;i.target.qComposing=!1,t(i)}else i.type==="compositionupdate"&&i.target.qComposing!==!0&&typeof i.data=="string"&&(yt.is.firefox===!0?em.test(i.data)===!1:Yh.test(i.data)===!0||Xh.test(i.data)===!0||Jh.test(i.data)===!0)===!0&&(i.target.qComposing=!0)}}const Bs=He({name:"QInput",inheritAttrs:!1,props:{...Fo,...Kh,...Ao,modelValue:[String,Number],shadowText:String,type:{type:String,default:"text"},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...el,"paste","change","keydown","click","animationend"],setup(t,{emit:l,attrs:i}){const{proxy:u}=r.getCurrentInstance(),{$q:a}=u,c={};let d=NaN,h,v,y=null,m;const w=r.ref(null),E=as(t),{innerValue:x,hasMask:b,moveCursorForPaste:R,updateMaskValue:A,onMaskedKeydown:P,onMaskedClick:$}=Qh(t,l,ae,w),M=Zh(t),j=r.computed(()=>$r(x.value)),W=ks(D),Q=tl(),K=r.computed(()=>t.type==="textarea"||t.autogrow===!0),ie=r.computed(()=>K.value===!0||["text","search","url","tel","password"].includes(t.type)),N=r.computed(()=>{const T={...Q.splitAttrs.listeners.value,onInput:D,onPaste:te,onChange:se,onBlur:Be,onFocus:Zt};return T.onCompositionstart=T.onCompositionupdate=T.onCompositionend=W,b.value===!0&&(T.onKeydown=P,T.onClick=$),t.autogrow===!0&&(T.onAnimationend=le),T}),U=r.computed(()=>{const T={tabindex:0,"data-autofocus":t.autofocus===!0||void 0,rows:t.type==="textarea"?6:void 0,"aria-label":t.label,name:E.value,...Q.splitAttrs.attributes.value,id:Q.targetUid.value,maxlength:t.maxlength,disabled:t.disable===!0,readonly:t.readonly===!0};return K.value===!1&&(T.type=t.type),t.autogrow===!0&&(T.rows=1),T});r.watch(()=>t.type,()=>{w.value&&(w.value.value=t.modelValue)}),r.watch(()=>t.modelValue,T=>{if(b.value===!0){if(v===!0&&(v=!1,String(T)===d))return;A(T)}else x.value!==T&&(x.value=T,t.type==="number"&&c.hasOwnProperty("value")===!0&&(h===!0?h=!1:delete c.value));t.autogrow===!0&&r.nextTick(H)}),r.watch(()=>t.autogrow,T=>{T===!0?r.nextTick(H):w.value!==null&&i.rows>0&&(w.value.style.height="auto")}),r.watch(()=>t.dense,()=>{t.autogrow===!0&&r.nextTick(H)});function Z(){Io(()=>{const T=document.activeElement;w.value!==null&&w.value!==T&&(T===null||T.id!==Q.targetUid.value)&&w.value.focus({preventScroll:!0})})}function O(){w.value!==null&&w.value.select()}function te(T){if(b.value===!0&&t.reverseFillMask!==!0){const Y=T.target;R(Y,Y.selectionStart,Y.selectionEnd)}l("paste",T)}function D(T){if(!T||!T.target)return;if(t.type==="file"){l("update:modelValue",T.target.files);return}const Y=T.target.value;if(T.target.qComposing===!0){c.value=Y;return}if(b.value===!0)A(Y,!1,T.inputType);else if(ae(Y),ie.value===!0&&T.target===document.activeElement){const{selectionStart:pe,selectionEnd:fe}=T.target;pe!==void 0&&fe!==void 0&&r.nextTick(()=>{T.target===document.activeElement&&Y.indexOf(T.target.value)===0&&T.target.setSelectionRange(pe,fe)})}t.autogrow===!0&&H()}function le(T){l("animationend",T),H()}function ae(T,Y){m=()=>{y=null,t.type!=="number"&&c.hasOwnProperty("value")===!0&&delete c.value,t.modelValue!==T&&d!==T&&(d=T,Y===!0&&(v=!0),l("update:modelValue",T),r.nextTick(()=>{d===T&&(d=NaN)})),m=void 0},t.type==="number"&&(h=!0,c.value=T),t.debounce!==void 0?(y!==null&&clearTimeout(y),c.value=T,y=setTimeout(m,t.debounce)):m()}function H(){requestAnimationFrame(()=>{const T=w.value;if(T!==null){const Y=T.parentNode.style,{scrollTop:pe}=T,{overflowY:fe,maxHeight:G}=a.platform.is.firefox===!0?{}:window.getComputedStyle(T),re=fe!==void 0&&fe!=="scroll";re===!0&&(T.style.overflowY="hidden"),Y.marginBottom=T.scrollHeight-1+"px",T.style.height="1px",T.style.height=T.scrollHeight+"px",re===!0&&(T.style.overflowY=parseInt(G,10)<T.scrollHeight?"auto":"hidden"),Y.marginBottom="",T.scrollTop=pe}})}function se(T){W(T),y!==null&&(clearTimeout(y),y=null),m!==void 0&&m(),l("change",T.target.value)}function Be(T){T!==void 0&&Zt(T),y!==null&&(clearTimeout(y),y=null),m!==void 0&&m(),h=!1,v=!1,delete c.value,t.type!=="file"&&setTimeout(()=>{w.value!==null&&(w.value.value=x.value!==void 0?x.value:"")})}function ge(){return c.hasOwnProperty("value")===!0?c.value:x.value!==void 0?x.value:""}r.onBeforeUnmount(()=>{Be()}),r.onMounted(()=>{t.autogrow===!0&&H()}),Object.assign(Q,{innerValue:x,fieldClass:r.computed(()=>`q-${K.value===!0?"textarea":"input"}`+(t.autogrow===!0?" q-textarea--autogrow":"")),hasShadow:r.computed(()=>t.type!=="file"&&typeof t.shadowText=="string"&&t.shadowText.length!==0),inputRef:w,emitValue:ae,hasValue:j,floatingLabel:r.computed(()=>j.value===!0&&(t.type!=="number"||isNaN(x.value)===!1)||$r(t.displayValue)),getControl:()=>r.h(K.value===!0?"textarea":"input",{ref:w,class:["q-field__native q-placeholder",t.inputClass],style:t.inputStyle,...U.value,...N.value,...t.type!=="file"?{value:ge()}:M.value}),getShadowControl:()=>r.h("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(K.value===!0?"":" text-no-wrap")},[r.h("span",{class:"invisible"},ge()),r.h("span",t.shadowText)])});const I=nl(Q);return Object.assign(u,{focus:Z,select:O,getNativeElement:()=>w.value}),Eo(u,"nativeEl",()=>w.value),I}}),tm=["text","rect","circle","QBtn","QBadge","QChip","QToolbar","QCheckbox","QRadio","QToggle","QSlider","QRange","QInput","QAvatar"],nm=["wave","pulse","pulse-x","pulse-y","fade","blink","none"],rm=He({name:"QSkeleton",props:{...wn,tag:{type:String,default:"div"},type:{type:String,validator:t=>tm.includes(t),default:"rect"},animation:{type:String,validator:t=>nm.includes(t),default:"wave"},animationSpeed:{type:[String,Number],default:1500},square:Boolean,bordered:Boolean,size:String,width:String,height:String},setup(t,{slots:l}){const i=r.getCurrentInstance(),u=Sn(t,i.proxy.$q),a=r.computed(()=>{const d=t.size!==void 0?[t.size,t.size]:[t.width,t.height];return{"--q-skeleton-speed":`${t.animationSpeed}ms`,width:d[0],height:d[1]}}),c=r.computed(()=>`q-skeleton q-skeleton--${u.value===!0?"dark":"light"} q-skeleton--type-${t.type}`+(t.animation!=="none"?` q-skeleton--anim q-skeleton--anim-${t.animation}`:"")+(t.square===!0?" q-skeleton--square":"")+(t.bordered===!0?" q-skeleton--bordered":""));return()=>r.h(t.tag,{class:c.value,style:a.value},ot(l.default))}}),om=Qe(r.defineComponent({__name:"IndicatorColor",props:{color:{}},setup(t){const l=t,i=r.computed(()=>{var u;return(u=l.color)!=null&&u.startsWith("#")?{background:l.color}:{}});return(u,a)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([u.color,"indicator-icon"]),style:r.normalizeStyle(i.value)},null,6))}}),[["__scopeId","data-v-86ec13f1"]]),im=Qe(r.defineComponent({__name:"Field",props:{sm:{type:Boolean},label:{},value:{},row:{type:Boolean,default:!1},loading:{type:Boolean},hoverable:{type:Boolean,default:!1},bordered:{type:Boolean},colouredLabel:{type:Boolean,default:!0},dense:{type:Boolean,default:!1},indicatorColor:{},format:{},badge:{}},setup(t){const l=t,i=r.computed(()=>l.format?l.format(l.value):l.value),u=r.computed(()=>l.badge?"badge-"+l.badge(l.value):"");return(a,c)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass({"row justify-between items-center no-wrap":a.row,hoverable:a.hoverable,bordered:a.bordered})},[r.createElementVNode("div",{class:r.normalizeClass([a.dense?"dense-text":"text"]),style:r.normalizeStyle({fontSize:a.sm?"11px":""})},r.toDisplayString(a.label),7),a.loading?(r.openBlock(),r.createBlock(rm,{key:0,type:"rect",width:"100px",animation:"wave"})):(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass([`font-bold text-accent-1 row items-center ${a.dense?"dense-text":"text"} `,{text:a.colouredLabel,badgeClass:u.value}])},[a.indicatorColor?(r.openBlock(),r.createBlock(om,{key:0,color:a.indicatorColor,class:"q-mr-xs"},null,8,["color"])):r.createCommentVNode("",!0),r.createElementVNode("div",{style:r.normalizeStyle({fontSize:a.sm?"11px":""})},r.toDisplayString(i.value),5)],2))],2))}}),[["__scopeId","data-v-a10936e1"]]),lm={key:0},am={key:0,class:"text-weight-bold text-deep-orange"},um={style:{"font-size":"16px","padding-top":"1.5rem"}},sm=Qe(r.defineComponent({__name:"WinInput",props:r.mergeModels({name:{},mask:{},fillMask:{type:[Boolean,String]},reverseFillMask:{type:Boolean},unmaskedValue:{type:Boolean},modelValue:{},error:{type:[Boolean,null]},errorMessage:{},noErrorIcon:{type:Boolean},rules:{},reactiveRules:{type:Boolean},lazyRules:{type:[Boolean,String]},label:{},stackLabel:{type:Boolean},hint:{},hideHint:{type:Boolean},prefix:{},suffix:{},labelColor:{},color:{},bgColor:{},dark:{type:[Boolean,null]},loading:{type:Boolean,default:!1},clearable:{type:Boolean},clearIcon:{},filled:{type:Boolean},outlined:{type:Boolean},borderless:{type:Boolean},standout:{type:[Boolean,String]},labelSlot:{type:Boolean},bottomSlots:{type:Boolean},hideBottomSpace:{type:Boolean},counter:{type:Boolean},rounded:{type:Boolean},square:{type:Boolean},dense:{type:Boolean},itemAligned:{type:Boolean},disable:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},autofocus:{type:Boolean},for:{},shadowText:{},type:{default:"text"},debounce:{},maxlength:{},autogrow:{type:Boolean},inputClass:{},inputStyle:{},"onUpdate:modelValue":{},onFocus:{},onBlur:{},onClear:{},required:{type:Boolean,default:!1},height:{default:"70px"},step:{default:1},currency:{type:Boolean},decimals:{default:0},useFieldOnReadonly:{type:Boolean,default:!1},fieldFormat:{},percentage:{type:Boolean},currencySymbol:{default:"€"},rows:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t,{expose:l}){const i=r.useModel(t,"modelValue"),u=r.ref(null),a=t;l({validate:()=>{var h;return(h=u.value)==null?void 0:h.validate()}});const d=r.computed(()=>{if(a.fieldFormat)return a.fieldFormat});return(h,v)=>h.useFieldOnReadonly&&h.readonly?(r.openBlock(),r.createBlock(im,{key:0,label:h.label||"",value:i.value??"~",format:d.value,bordered:!0},null,8,["label","value","format"])):(r.openBlock(),r.createBlock(Bo,{key:1,class:"glass-card q-py-sm q-px-md",style:r.normalizeStyle({height:h.dense?"auto":h.height})},{default:r.withCtx(()=>[r.createVNode(r.unref(Bs),r.mergeProps({ref_key:"inputRef",ref:u},{...a},{borderless:"","hide-bottom-space":"",modelValue:i.value,"onUpdate:modelValue":v[0]||(v[0]=y=>i.value=y)}),r.createSlots({label:r.withCtx(()=>[h.label?(r.openBlock(),r.createElementBlock("div",lm,[r.createTextVNode(r.toDisplayString(h.label)+" ",1),h.required&&!h.readonly?(r.openBlock(),r.createElementBlock("span",am,"*")):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0)]),_:2},[h.$slots.prepend?{name:"prepend",fn:r.withCtx(()=>[r.renderSlot(h.$slots,"prepend",{},void 0,!0)]),key:"0"}:void 0,h.$slots.append||h.percentage?{name:"append",fn:r.withCtx(()=>[r.renderSlot(h.$slots,"append",{},()=>[r.createElementVNode("span",um,r.toDisplayString(h.percentage?"%":""),1)],!0)]),key:"1"}:void 0]),1040,["modelValue"])]),_:3},8,["style"]))}}),[["__scopeId","data-v-5593318f"]]),cm={class:"ww-subtitle text-center q-mb-md text-grey-9",style:{"font-weight":"600"}},fm=r.defineComponent({__name:"ControlLabel",props:{label:{}},setup(t){return(l,i)=>(r.openBlock(),r.createElementBlock("div",cm,r.toDisplayString(l.label),1))}}),dm={style:{"max-width":"400px"},class:"text-center"},hm={style:{"font-size":"16px"}},mm={style:{"font-size":"16px"}},ol=Qe(r.defineComponent({__name:"InputControl",props:r.mergeModels({control:{},innerLabel:{type:Boolean,default:!1}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=t,i=r.ref(null),u=r.computed(()=>{var c;return(c=l.control.controlType)==null?void 0:c.split("_")[1]}),a=r.useModel(t,"modelValue");return r.onMounted(()=>{var c;(c=i.value)==null||c.focus()}),(c,d)=>(r.openBlock(),r.createElementBlock("div",dm,[!c.innerLabel&&c.control.label?(r.openBlock(),r.createBlock(fm,{key:0,label:c.control.label},null,8,["label"])):r.createCommentVNode("",!0),r.createVNode(sm,{modelValue:a.value,"onUpdate:modelValue":d[0]||(d[0]=h=>a.value=h),width:"250px",mask:u.value==="number"?"###.###.###.###.###":void 0,label:c.innerLabel?c.control.label:void 0,inputStyle:{textAlign:(u.value==="number","center")},ref_key:"inputRef",ref:i},r.createSlots({_:2},[c.control.prefix?{name:"prepend",fn:r.withCtx(()=>[r.createElementVNode("span",hm,r.toDisplayString(c.control.prefix),1)]),key:"0"}:void 0,c.control.suffix?{name:"append",fn:r.withCtx(()=>[r.createElementVNode("span",mm,r.toDisplayString(c.control.suffix),1)]),key:"1"}:void 0]),1032,["modelValue","mask","label","inputStyle"])]))}}),[["__scopeId","data-v-8f5284d3"]]);function il(t,l){const i=t.style;for(const u in l)i[u]=l[u]}function gm(t){if(t==null)return;if(typeof t=="string")try{return document.querySelector(t)||void 0}catch{return}const l=r.unref(t);if(l)return l.$el||l}function Os(t,l){if(t==null||t.contains(l)===!0)return!0;for(let i=t.nextElementSibling;i!==null;i=i.nextElementSibling)if(i.contains(l))return!0;return!1}function pm(t,l=250){let i=!1,u;return function(){return i===!1&&(i=!0,setTimeout(()=>{i=!1},l),u=t.apply(this,arguments)),u}}function Ts(t,l,i,u){i.modifiers.stop===!0&&Zt(t);const a=i.modifiers.color;let c=i.modifiers.center;c=c===!0||u===!0;const d=document.createElement("span"),h=document.createElement("span"),v=ss(t),{left:y,top:m,width:w,height:E}=l.getBoundingClientRect(),x=Math.sqrt(w*w+E*E),b=x/2,R=`${(w-x)/2}px`,A=c?R:`${v.left-y-b}px`,P=`${(E-x)/2}px`,$=c?P:`${v.top-m-b}px`;h.className="q-ripple__inner",il(h,{height:`${x}px`,width:`${x}px`,transform:`translate3d(${A},${$},0) scale3d(.2,.2,1)`,opacity:0}),d.className=`q-ripple${a?" text-"+a:""}`,d.setAttribute("dir","ltr"),d.appendChild(h),l.appendChild(d);const M=()=>{d.remove(),clearTimeout(j)};i.abort.push(M);let j=setTimeout(()=>{h.classList.add("q-ripple__inner--enter"),h.style.transform=`translate3d(${R},${P},0) scale3d(1,1,1)`,h.style.opacity=.2,j=setTimeout(()=>{h.classList.remove("q-ripple__inner--enter"),h.classList.add("q-ripple__inner--leave"),h.style.opacity=0,j=setTimeout(()=>{d.remove(),i.abort.splice(i.abort.indexOf(M),1)},275)},250)},50)}function Rs(t,{modifiers:l,value:i,arg:u}){const a=Object.assign({},t.cfg.ripple,l,i);t.modifiers={early:a.early===!0,stop:a.stop===!0,center:a.center===!0,color:a.color||u,keyCodes:[].concat(a.keyCodes||13)}}const Is=ju({name:"ripple",beforeMount(t,l){const i=l.instance.$.appContext.config.globalProperties.$q.config||{};if(i.ripple===!1)return;const u={cfg:i,enabled:l.value!==!1,modifiers:{},abort:[],start(a){u.enabled===!0&&a.qSkipRipple!==!0&&a.type===(u.modifiers.early===!0?"pointerdown":"click")&&Ts(a,t,u,a.qKeyEvent===!0)},keystart:pm(a=>{u.enabled===!0&&a.qSkipRipple!==!0&&Pn(a,u.modifiers.keyCodes)===!0&&a.type===`key${u.modifiers.early===!0?"down":"up"}`&&Ts(a,t,u,!0)},300)};Rs(u,l),t.__qripple=u,Nr(u,"main",[[t,"pointerdown","start","passive"],[t,"click","start","passive"],[t,"keydown","keystart","passive"],[t,"keyup","keystart","passive"]])},updated(t,l){if(l.oldValue!==l.value){const i=t.__qripple;i!==void 0&&(i.enabled=l.value!==!1,i.enabled===!0&&Object(l.value)===l.value&&Rs(i,l))}},beforeUnmount(t){const l=t.__qripple;l!==void 0&&(l.abort.forEach(i=>{i()}),ko(l,"main"),delete t._qripple)}}),Fs={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},vm=Object.keys(Fs),_m={align:{type:String,validator:t=>vm.includes(t)}};function ym(t){return r.computed(()=>{const l=t.align===void 0?t.vertical===!0?"stretch":"left":t.align;return`${t.vertical===!0?"items":"justify"}-${Fs[l]}`})}function Ms(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}function Ls(t,l){return(t.aliasOf||t)===(l.aliasOf||l)}function bm(t,l){for(const i in l){const u=l[i],a=t[i];if(typeof u=="string"){if(u!==a)return!1}else if(Array.isArray(a)===!1||a.length!==u.length||u.some((c,d)=>c!==a[d]))return!1}return!0}function Vs(t,l){return Array.isArray(l)===!0?t.length===l.length&&t.every((i,u)=>i===l[u]):t.length===1&&t[0]===l}function wm(t,l){return Array.isArray(t)===!0?Vs(t,l):Array.isArray(l)===!0?Vs(l,t):t===l}function Sm(t,l){if(Object.keys(t).length!==Object.keys(l).length)return!1;for(const i in t)if(wm(t[i],l[i])===!1)return!1;return!0}const qs={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},Cm={...qs,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function Ns({fallbackTag:t,useDisableForRouterLinkProps:l=!0}={}){const i=r.getCurrentInstance(),{props:u,proxy:a,emit:c}=i,d=Xu(i),h=r.computed(()=>u.disable!==!0&&u.href!==void 0),v=l===!0?r.computed(()=>d===!0&&u.disable!==!0&&h.value!==!0&&u.to!==void 0&&u.to!==null&&u.to!==""):r.computed(()=>d===!0&&h.value!==!0&&u.to!==void 0&&u.to!==null&&u.to!==""),y=r.computed(()=>v.value===!0?$(u.to):null),m=r.computed(()=>y.value!==null),w=r.computed(()=>h.value===!0||m.value===!0),E=r.computed(()=>u.type==="a"||w.value===!0?"a":u.tag||t||"div"),x=r.computed(()=>h.value===!0?{href:u.href,target:u.target}:m.value===!0?{href:y.value.href,target:u.target}:{}),b=r.computed(()=>{if(m.value===!1)return-1;const{matched:W}=y.value,{length:Q}=W,K=W[Q-1];if(K===void 0)return-1;const ie=a.$route.matched;if(ie.length===0)return-1;const N=ie.findIndex(Ls.bind(null,K));if(N!==-1)return N;const U=Ms(W[Q-2]);return Q>1&&Ms(K)===U&&ie[ie.length-1].path!==U?ie.findIndex(Ls.bind(null,W[Q-2])):N}),R=r.computed(()=>m.value===!0&&b.value!==-1&&bm(a.$route.params,y.value.params)),A=r.computed(()=>R.value===!0&&b.value===a.$route.matched.length-1&&Sm(a.$route.params,y.value.params)),P=r.computed(()=>m.value===!0?A.value===!0?` ${u.exactActiveClass} ${u.activeClass}`:u.exact===!0?"":R.value===!0?` ${u.activeClass}`:"":"");function $(W){try{return a.$router.resolve(W)}catch{}return null}function M(W,{returnRouterError:Q,to:K=u.to,replace:ie=u.replace}={}){if(u.disable===!0)return W.preventDefault(),Promise.resolve(!1);if(W.metaKey||W.altKey||W.ctrlKey||W.shiftKey||W.button!==void 0&&W.button!==0||u.target==="_blank")return Promise.resolve(!1);W.preventDefault();const N=a.$router[ie===!0?"replace":"push"](K);return Q===!0?N:N.then(()=>{}).catch(()=>{})}function j(W){if(m.value===!0){const Q=K=>M(W,K);c("click",W,Q),W.defaultPrevented!==!0&&Q()}else c("click",W)}return{hasRouterLink:m,hasHrefLink:h,hasLink:w,linkTag:E,resolvedLink:y,linkIsActive:R,linkIsExactActive:A,linkClass:P,linkAttrs:x,getLink:$,navigateToRouterLink:M,navigateOnClick:j}}const Ps={none:0,xs:4,sm:8,md:16,lg:24,xl:32},xm={xs:8,sm:10,md:14,lg:20,xl:24},Em=["button","submit","reset"],Am=/[^\s]\/[^\s]/,km=["flat","outline","push","unelevated"];function Bm(t,l){return t.flat===!0?"flat":t.outline===!0?"outline":t.push===!0?"push":t.unelevated===!0?"unelevated":l}const Om={...{...Mr,...qs,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...km.reduce((t,l)=>(t[l]=Boolean)&&t,{}),square:Boolean,rounded:Boolean,glossy:Boolean,size:String,fab:Boolean,fabMini:Boolean,padding:String,color:String,textColor:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,tabindex:[Number,String],ripple:{type:[Boolean,Object],default:!0},align:{..._m.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},round:Boolean};function Tm(t){const l=Lr(t,xm),i=ym(t),{hasRouterLink:u,hasLink:a,linkTag:c,linkAttrs:d,navigateOnClick:h}=Ns({fallbackTag:"button"}),v=r.computed(()=>{const A=t.fab===!1&&t.fabMini===!1?l.value:{};return t.padding!==void 0?Object.assign({},A,{padding:t.padding.split(/\s+/).map(P=>P in Ps?Ps[P]+"px":P).join(" "),minWidth:"0",minHeight:"0"}):A}),y=r.computed(()=>t.rounded===!0||t.fab===!0||t.fabMini===!0),m=r.computed(()=>t.disable!==!0&&t.loading!==!0),w=r.computed(()=>m.value===!0?t.tabindex||0:-1),E=r.computed(()=>Bm(t,"standard")),x=r.computed(()=>{const A={tabindex:w.value};return a.value===!0?Object.assign(A,d.value):Em.includes(t.type)===!0&&(A.type=t.type),c.value==="a"?(t.disable===!0?A["aria-disabled"]="true":A.href===void 0&&(A.role="button"),u.value!==!0&&Am.test(t.type)===!0&&(A.type=t.type)):t.disable===!0&&(A.disabled="",A["aria-disabled"]="true"),t.loading===!0&&t.percentage!==void 0&&Object.assign(A,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":t.percentage}),A}),b=r.computed(()=>{let A;t.color!==void 0?t.flat===!0||t.outline===!0?A=`text-${t.textColor||t.color}`:A=`bg-${t.color} text-${t.textColor||"white"}`:t.textColor&&(A=`text-${t.textColor}`);const P=t.round===!0?"round":`rectangle${y.value===!0?" q-btn--rounded":t.square===!0?" q-btn--square":""}`;return`q-btn--${E.value} q-btn--${P}`+(A!==void 0?" "+A:"")+(m.value===!0?" q-btn--actionable q-focusable q-hoverable":t.disable===!0?" disabled":"")+(t.fab===!0?" q-btn--fab":t.fabMini===!0?" q-btn--fab-mini":"")+(t.noCaps===!0?" q-btn--no-uppercase":"")+(t.dense===!0?" q-btn--dense":"")+(t.stretch===!0?" no-border-radius self-stretch":"")+(t.glossy===!0?" glossy":"")+(t.square?" q-btn--square":"")}),R=r.computed(()=>i.value+(t.stack===!0?" column":" row")+(t.noWrap===!0?" no-wrap text-no-wrap":"")+(t.loading===!0?" q-btn__content--hidden":""));return{classes:b,style:v,innerClasses:R,attributes:x,hasLink:a,linkTag:c,navigateOnClick:h,isActionable:m}}const{passiveCapture:Ot}=ht;let cr=null,fr=null,dr=null;const Tt=He({name:"QBtn",props:{...Om,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(t,{slots:l,emit:i}){const{proxy:u}=r.getCurrentInstance(),{classes:a,style:c,innerClasses:d,attributes:h,hasLink:v,linkTag:y,navigateOnClick:m,isActionable:w}=Tm(t),E=r.ref(null),x=r.ref(null);let b=null,R,A=null;const P=r.computed(()=>t.label!==void 0&&t.label!==null&&t.label!==""),$=r.computed(()=>t.disable===!0||t.ripple===!1?!1:{keyCodes:v.value===!0?[13,32]:[13],...t.ripple===!0?{}:t.ripple}),M=r.computed(()=>({center:t.round})),j=r.computed(()=>{const D=Math.max(0,Math.min(100,t.percentage));return D>0?{transition:"transform 0.6s",transform:`translateX(${D-100}%)`}:{}}),W=r.computed(()=>{if(t.loading===!0)return{onMousedown:te,onTouchstart:te,onClick:te,onKeydown:te,onKeyup:te};if(w.value===!0){const D={onClick:K,onKeydown:ie,onMousedown:U};if(u.$q.platform.has.touch===!0){const le=t.onTouchstart!==void 0?"":"Passive";D[`onTouchstart${le}`]=N}return D}return{onClick:De}}),Q=r.computed(()=>({ref:E,class:"q-btn q-btn-item non-selectable no-outline "+a.value,style:c.value,...h.value,...W.value}));function K(D){if(E.value!==null){if(D!==void 0){if(D.defaultPrevented===!0)return;const le=document.activeElement;if(t.type==="submit"&&le!==document.body&&E.value.contains(le)===!1&&le.contains(E.value)===!1){E.value.focus();const ae=()=>{document.removeEventListener("keydown",De,!0),document.removeEventListener("keyup",ae,Ot),E.value!==null&&E.value.removeEventListener("blur",ae,Ot)};document.addEventListener("keydown",De,!0),document.addEventListener("keyup",ae,Ot),E.value.addEventListener("blur",ae,Ot)}}m(D)}}function ie(D){E.value!==null&&(i("keydown",D),Pn(D,[13,32])===!0&&fr!==E.value&&(fr!==null&&O(),D.defaultPrevented!==!0&&(E.value.focus(),fr=E.value,E.value.classList.add("q-btn--active"),document.addEventListener("keyup",Z,!0),E.value.addEventListener("blur",Z,Ot)),De(D)))}function N(D){E.value!==null&&(i("touchstart",D),D.defaultPrevented!==!0&&(cr!==E.value&&(cr!==null&&O(),cr=E.value,b=D.target,b.addEventListener("touchcancel",Z,Ot),b.addEventListener("touchend",Z,Ot)),R=!0,A!==null&&clearTimeout(A),A=setTimeout(()=>{A=null,R=!1},200)))}function U(D){E.value!==null&&(D.qSkipRipple=R===!0,i("mousedown",D),D.defaultPrevented!==!0&&dr!==E.value&&(dr!==null&&O(),dr=E.value,E.value.classList.add("q-btn--active"),document.addEventListener("mouseup",Z,Ot)))}function Z(D){if(E.value!==null&&!(D!==void 0&&D.type==="blur"&&document.activeElement===E.value)){if(D!==void 0&&D.type==="keyup"){if(fr===E.value&&Pn(D,[13,32])===!0){const le=new MouseEvent("click",D);le.qKeyEvent=!0,D.defaultPrevented===!0&&$t(le),D.cancelBubble===!0&&Zt(le),E.value.dispatchEvent(le),De(D),D.qKeyEvent=!0}i("keyup",D)}O()}}function O(D){const le=x.value;D!==!0&&(cr===E.value||dr===E.value)&&le!==null&&le!==document.activeElement&&(le.setAttribute("tabindex",-1),le.focus()),cr===E.value&&(b!==null&&(b.removeEventListener("touchcancel",Z,Ot),b.removeEventListener("touchend",Z,Ot)),cr=b=null),dr===E.value&&(document.removeEventListener("mouseup",Z,Ot),dr=null),fr===E.value&&(document.removeEventListener("keyup",Z,!0),E.value!==null&&E.value.removeEventListener("blur",Z,Ot),fr=null),E.value!==null&&E.value.classList.remove("q-btn--active")}function te(D){De(D),D.qSkipRipple=!0}return r.onBeforeUnmount(()=>{O(!0)}),Object.assign(u,{click:D=>{w.value===!0&&K(D)}}),()=>{let D=[];t.icon!==void 0&&D.push(r.h(dt,{name:t.icon,left:t.stack!==!0&&P.value===!0,role:"img","aria-hidden":"true"})),P.value===!0&&D.push(r.h("span",{class:"block"},[t.label])),D=bn(l.default,D),t.iconRight!==void 0&&t.round===!1&&D.push(r.h(dt,{name:t.iconRight,right:t.stack!==!0&&P.value===!0,role:"img","aria-hidden":"true"}));const le=[r.h("span",{class:"q-focus-helper",ref:x})];return t.loading===!0&&t.percentage!==void 0&&le.push(r.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(t.darkPercentage===!0?" q-btn__progress--dark":"")},[r.h("span",{class:"q-btn__progress-indicator fit block",style:j.value})])),le.push(r.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+d.value},D)),t.loading!==null&&le.push(r.h(r.Transition,{name:"q-transition--fade"},()=>t.loading===!0?[r.h("span",{key:"loading",class:"absolute-full flex flex-center"},l.loading!==void 0?l.loading():[r.h(Ki)])]:null)),r.withDirectives(r.h(y.value,Q.value,le),[[Is,$.value,void 0,M.value]])}}}),$s=t=>(r.pushScopeId("data-v-3bcb795a"),t=t(),r.popScopeId(),t),Rm={class:"buttons-container"},Im={class:"lt-md"},Fm={class:"row justify-between q-my-md q-px-md"},Mm=$s(()=>r.createElementVNode("span",{class:"text-black"},"Atrás",-1)),Lm={key:1},Vm=$s(()=>r.createElementVNode("span",{class:"text-black"},"Siguiente",-1)),qm=Qe(r.defineComponent({__name:"NavigationButtons",props:{currentStep:{},stepsCount:{},nextDisabled:{type:Boolean}},emits:["prev","next"],setup(t){const l=t,i=r.computed(()=>l.currentStep+1);return(u,a)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("div",Rm,[i.value>1?(r.openBlock(),r.createBlock(Tt,{key:0,style:{position:"absolute",left:"25px",cursor:"pointer"},size:"26px",color:"white","text-color":"white",class:"gt-sm",onClick:a[0]||(a[0]=c=>u.$emit("prev")),flat:""},{default:r.withCtx(()=>[r.createVNode(dt,{name:"arrow_back_ios",color:"info"})]),_:1})):r.createCommentVNode("",!0),i.value!==u.stepsCount?(r.openBlock(),r.createBlock(Tt,{key:1,style:{position:"absolute",right:"25px",cursor:"pointer"},size:"26px",color:"white","text-color":"white",class:"gt-sm",onClick:a[1]||(a[1]=c=>u.$emit("next")),disable:u.nextDisabled,flat:""},{default:r.withCtx(()=>[r.createVNode(dt,{name:"arrow_forward_ios",color:"info"})]),_:1},8,["disable"])):r.createCommentVNode("",!0)]),r.createElementVNode("div",Im,[r.createElementVNode("div",Fm,[i.value>1&&i.value<u.stepsCount?(r.openBlock(),r.createBlock(Tt,{key:0,color:"info",class:"q-px-md-xl q-py-sm q-mr-sm win-btn win-btn-primary",onClick:a[2]||(a[2]=c=>u.$emit("prev")),flat:"","no-caps":""},{default:r.withCtx(()=>[Mm]),_:1})):(r.openBlock(),r.createElementBlock("div",Lm)),i.value<u.stepsCount?(r.openBlock(),r.createBlock(Tt,{key:2,color:"info",class:"q-px-xl q-py-sm q-ml-sm win-btn win-btn-primary",onClick:a[3]||(a[3]=c=>u.$emit("next")),disable:u.nextDisabled,flat:"","no-caps":""},{default:r.withCtx(()=>[Vm]),_:1},8,["disable"])):r.createCommentVNode("",!0)])])],64))}}),[["__scopeId","data-v-3bcb795a"]]),Nm=He({name:"QField",inheritAttrs:!1,props:{...Fo,tag:{type:String,default:"label"}},emits:el,setup(){return nl(tl({requiredForAttr:!1,tagProp:!0}))}}),Pm={xs:8,sm:10,md:14,lg:20,xl:24},$m=He({name:"QChip",props:{...wn,...Mr,dense:Boolean,icon:String,iconRight:String,iconRemove:String,iconSelected:String,label:[String,Number],color:String,textColor:String,modelValue:{type:Boolean,default:!0},selected:{type:Boolean,default:null},square:Boolean,outline:Boolean,clickable:Boolean,removable:Boolean,removeAriaLabel:String,tabindex:[String,Number],disable:Boolean,ripple:{type:[Boolean,Object],default:!0}},emits:["update:modelValue","update:selected","remove","click"],setup(t,{slots:l,emit:i}){const{proxy:{$q:u}}=r.getCurrentInstance(),a=Sn(t,u),c=Lr(t,Pm),d=r.computed(()=>t.selected===!0||t.icon!==void 0),h=r.computed(()=>t.selected===!0?t.iconSelected||u.iconSet.chip.selected:t.icon),v=r.computed(()=>t.iconRemove||u.iconSet.chip.remove),y=r.computed(()=>t.disable===!1&&(t.clickable===!0||t.selected!==null)),m=r.computed(()=>{const A=t.outline===!0&&t.color||t.textColor;return"q-chip row inline no-wrap items-center"+(t.outline===!1&&t.color!==void 0?` bg-${t.color}`:"")+(A?` text-${A} q-chip--colored`:"")+(t.disable===!0?" disabled":"")+(t.dense===!0?" q-chip--dense":"")+(t.outline===!0?" q-chip--outline":"")+(t.selected===!0?" q-chip--selected":"")+(y.value===!0?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(t.square===!0?" q-chip--square":"")+(a.value===!0?" q-chip--dark q-dark":"")}),w=r.computed(()=>{const A=t.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:t.tabindex||0},P={...A,role:"button","aria-hidden":"false","aria-label":t.removeAriaLabel||u.lang.label.remove};return{chip:A,remove:P}});function E(A){A.keyCode===13&&x(A)}function x(A){t.disable||(i("update:selected",!t.selected),i("click",A))}function b(A){(A.keyCode===void 0||A.keyCode===13)&&(De(A),t.disable===!1&&(i("update:modelValue",!1),i("remove")))}function R(){const A=[];y.value===!0&&A.push(r.h("div",{class:"q-focus-helper"})),d.value===!0&&A.push(r.h(dt,{class:"q-chip__icon q-chip__icon--left",name:h.value}));const P=t.label!==void 0?[r.h("div",{class:"ellipsis"},[t.label])]:void 0;return A.push(r.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},sh(l.default,P))),t.iconRight&&A.push(r.h(dt,{class:"q-chip__icon q-chip__icon--right",name:t.iconRight})),t.removable===!0&&A.push(r.h(dt,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:v.value,...w.value.remove,onClick:b,onKeyup:b})),A}return()=>{if(t.modelValue===!1)return;const A={class:m.value,style:c.value};return y.value===!0&&Object.assign(A,w.value.chip,{onClick:x,onKeyup:E}),Yu("div",A,R(),"ripple",t.ripple!==!1&&t.disable!==!0,()=>[[Is,t.ripple]])}}}),Dm=He({name:"QItem",props:{...wn,...Cm,tag:{type:String,default:"div"},active:{type:Boolean,default:null},clickable:Boolean,dense:Boolean,insetLevel:Number,tabindex:[String,Number],focused:Boolean,manualFocus:Boolean},emits:["click","keyup"],setup(t,{slots:l,emit:i}){const{proxy:{$q:u}}=r.getCurrentInstance(),a=Sn(t,u),{hasLink:c,linkAttrs:d,linkClass:h,linkTag:v,navigateOnClick:y}=Ns(),m=r.ref(null),w=r.ref(null),E=r.computed(()=>t.clickable===!0||c.value===!0||t.tag==="label"),x=r.computed(()=>t.disable!==!0&&E.value===!0),b=r.computed(()=>"q-item q-item-type row no-wrap"+(t.dense===!0?" q-item--dense":"")+(a.value===!0?" q-item--dark":"")+(c.value===!0&&t.active===null?h.value:t.active===!0?` q-item--active${t.activeClass!==void 0?` ${t.activeClass}`:""}`:"")+(t.disable===!0?" disabled":"")+(x.value===!0?" q-item--clickable q-link cursor-pointer "+(t.manualFocus===!0?"q-manual-focusable":"q-focusable q-hoverable")+(t.focused===!0?" q-manual-focusable--focused":""):"")),R=r.computed(()=>t.insetLevel===void 0?null:{["padding"+(u.lang.rtl===!0?"Right":"Left")]:16+t.insetLevel*56+"px"});function A(M){x.value===!0&&(w.value!==null&&(M.qKeyEvent!==!0&&document.activeElement===m.value?w.value.focus():document.activeElement===w.value&&m.value.focus()),y(M))}function P(M){if(x.value===!0&&Pn(M,[13,32])===!0){De(M),M.qKeyEvent=!0;const j=new MouseEvent("click",M);j.qKeyEvent=!0,m.value.dispatchEvent(j)}i("keyup",M)}function $(){const M=uh(l.default,[]);return x.value===!0&&M.unshift(r.h("div",{class:"q-focus-helper",tabindex:-1,ref:w})),M}return()=>{const M={ref:m,class:b.value,style:R.value,role:"listitem",onClick:A,onKeyup:P};return x.value===!0?(M.tabindex=t.tabindex||"0",Object.assign(M,d.value)):E.value===!0&&(M["aria-disabled"]="true"),r.h(v.value,M,$())}}}),Um=He({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(t,{slots:l}){const i=r.computed(()=>`q-item__section column q-item__section--${t.avatar===!0||t.side===!0||t.thumbnail===!0?"side":"main"}`+(t.top===!0?" q-item__section--top justify-start":" justify-center")+(t.avatar===!0?" q-item__section--avatar":"")+(t.thumbnail===!0?" q-item__section--thumbnail":"")+(t.noWrap===!0?" q-item__section--nowrap":""));return()=>r.h("div",{class:i.value},ot(l.default))}}),zm=He({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(t,{slots:l}){const i=r.computed(()=>parseInt(t.lines,10)),u=r.computed(()=>"q-item__label"+(t.overline===!0?" q-item__label--overline text-overline":"")+(t.caption===!0?" q-item__label--caption text-caption":"")+(t.header===!0?" q-item__label--header":"")+(i.value===1?" ellipsis":"")),a=r.computed(()=>t.lines!==void 0&&i.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":i.value}:null);return()=>r.h("div",{style:a.value,class:u.value},ot(l.default))}});function ll(){if(window.getSelection!==void 0){const t=window.getSelection();t.empty!==void 0?t.empty():t.removeAllRanges!==void 0&&(t.removeAllRanges(),Gi.is.mobile!==!0&&t.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}const Ds={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},Hm={...Ds,contextMenu:Boolean};function Us({showing:t,avoidEmit:l,configureAnchorEl:i}){const{props:u,proxy:a,emit:c}=r.getCurrentInstance(),d=r.ref(null);let h=null;function v(x){return d.value===null?!1:x===void 0||x.touches===void 0||x.touches.length<=1}const y={};i===void 0&&(Object.assign(y,{hide(x){a.hide(x)},toggle(x){a.toggle(x),x.qAnchorHandled=!0},toggleKey(x){Pn(x,13)===!0&&y.toggle(x)},contextClick(x){a.hide(x),$t(x),r.nextTick(()=>{a.show(x),x.qAnchorHandled=!0})},prevent:$t,mobileTouch(x){if(y.mobileCleanup(x),v(x)!==!0)return;a.hide(x),d.value.classList.add("non-selectable");const b=x.target;Nr(y,"anchor",[[b,"touchmove","mobileCleanup","passive"],[b,"touchend","mobileCleanup","passive"],[b,"touchcancel","mobileCleanup","passive"],[d.value,"contextmenu","prevent","notPassive"]]),h=setTimeout(()=>{h=null,a.show(x),x.qAnchorHandled=!0},300)},mobileCleanup(x){d.value.classList.remove("non-selectable"),h!==null&&(clearTimeout(h),h=null),t.value===!0&&x!==void 0&&ll()}}),i=function(x=u.contextMenu){if(u.noParentEvent===!0||d.value===null)return;let b;x===!0?a.$q.platform.is.mobile===!0?b=[[d.value,"touchstart","mobileTouch","passive"]]:b=[[d.value,"mousedown","hide","passive"],[d.value,"contextmenu","contextClick","notPassive"]]:b=[[d.value,"click","toggle","passive"],[d.value,"keyup","toggleKey","passive"]],Nr(y,"anchor",b)});function m(){ko(y,"anchor")}function w(x){for(d.value=x;d.value.classList.contains("q-anchor--skip");)d.value=d.value.parentNode;i()}function E(){if(u.target===!1||u.target===""||a.$el.parentNode===null)d.value=null;else if(u.target===!0)w(a.$el.parentNode);else{let x=u.target;if(typeof u.target=="string")try{x=document.querySelector(u.target)}catch{x=void 0}x!=null?(d.value=x.$el||x,i()):(d.value=null,console.error(`Anchor: target "${u.target}" not found`))}}return r.watch(()=>u.contextMenu,x=>{d.value!==null&&(m(),i(x))}),r.watch(()=>u.target,()=>{d.value!==null&&m(),E()}),r.watch(()=>u.noParentEvent,x=>{d.value!==null&&(x===!0?m():i())}),r.onMounted(()=>{E(),l!==!0&&u.modelValue===!0&&d.value===null&&c("update:modelValue",!1)}),r.onBeforeUnmount(()=>{h!==null&&clearTimeout(h),m()}),{anchorEl:d,canShow:v,anchorEvents:y}}function zs(t,l){const i=r.ref(null);let u;function a(h,v){const y=`${v!==void 0?"add":"remove"}EventListener`,m=v!==void 0?v:u;h!==window&&h[y]("scroll",m,ht.passive),window[y]("scroll",m,ht.passive),u=v}function c(){i.value!==null&&(a(i.value),i.value=null)}const d=r.watch(()=>t.noParentEvent,()=>{i.value!==null&&(c(),l())});return r.onBeforeUnmount(d),{localScrollTarget:i,unconfigureScrollTarget:c,changeScrollEvent:a}}const al={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},ul=["beforeShow","show","beforeHide","hide"];function sl({showing:t,canShow:l,hideOnRouteChange:i,handleShow:u,handleHide:a,processOnMount:c}){const d=r.getCurrentInstance(),{props:h,emit:v,proxy:y}=d;let m;function w($){t.value===!0?b($):E($)}function E($){if(h.disable===!0||$!==void 0&&$.qAnchorHandled===!0||l!==void 0&&l($)!==!0)return;const M=h["onUpdate:modelValue"]!==void 0;M===!0&&(v("update:modelValue",!0),m=$,r.nextTick(()=>{m===$&&(m=void 0)})),(h.modelValue===null||M===!1)&&x($)}function x($){t.value!==!0&&(t.value=!0,v("beforeShow",$),u!==void 0?u($):v("show",$))}function b($){if(h.disable===!0)return;const M=h["onUpdate:modelValue"]!==void 0;M===!0&&(v("update:modelValue",!1),m=$,r.nextTick(()=>{m===$&&(m=void 0)})),(h.modelValue===null||M===!1)&&R($)}function R($){t.value!==!1&&(t.value=!1,v("beforeHide",$),a!==void 0?a($):v("hide",$))}function A($){h.disable===!0&&$===!0?h["onUpdate:modelValue"]!==void 0&&v("update:modelValue",!1):$===!0!==t.value&&($===!0?x:R)(m)}r.watch(()=>h.modelValue,A),i!==void 0&&Xu(d)===!0&&r.watch(()=>y.$route.fullPath,()=>{i.value===!0&&t.value===!0&&b()}),c===!0&&r.onMounted(()=>{A(h.modelValue)});const P={show:E,hide:b,toggle:w};return Object.assign(y,P),P}const Hs={};let Wm=1,Gm=document.body;function jm(t,l){const i=document.createElement("div");if(i.id=l!==void 0?`q-portal--${l}--${Wm++}`:t,Hs.globalNodes!==void 0){const u=Hs.globalNodes.class;u!==void 0&&(i.className=u)}return Gm.appendChild(i),i}function Km(t){t.remove()}const Dr=[];function Qm(t,l){do{if(t.$options.name==="QMenu"){if(t.hide(l),t.$props.separateClosePopup===!0)return Qi(t)}else if(t.__qPortal===!0){const i=Qi(t);return i!==void 0&&i.$options.name==="QPopupProxy"?(t.hide(l),i):t}t=Qi(t)}while(t!=null)}const Zm=He({name:"QPortal",setup(t,{slots:l}){return()=>l.default()}});function Ym(t){for(t=t.parent;t!=null;){if(t.type.name==="QGlobalDialog")return!0;if(t.type.name==="QDialog"||t.type.name==="QMenu")return!1;t=t.parent}return!1}function cl(t,l,i,u){const a=r.ref(!1),c=r.ref(!1);let d=null;const h={},v=u==="dialog"&&Ym(t);function y(w){if(w===!0){Cs(h),c.value=!0;return}c.value=!1,a.value===!1&&(v===!1&&d===null&&(d=jm(!1,u)),a.value=!0,Dr.push(t.proxy),Wh(h))}function m(w){if(c.value=!1,w!==!0)return;Cs(h),a.value=!1;const E=Dr.indexOf(t.proxy);E!==-1&&Dr.splice(E,1),d!==null&&(Km(d),d=null)}return r.onUnmounted(()=>{m(!0)}),t.proxy.__qPortal=!0,Eo(t.proxy,"contentEl",()=>l.value),{showPortal:y,hidePortal:m,portalIsActive:a,portalIsAccessible:c,renderPortal:()=>v===!0?i():a.value===!0?[r.h(r.Teleport,{to:d},r.h(Zm,i))]:void 0}}const Ur={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function fl(t,l=()=>{},i=()=>{}){return{transitionProps:r.computed(()=>{const u=`q-transition--${t.transitionShow||l()}`,a=`q-transition--${t.transitionHide||i()}`;return{appear:!0,enterFromClass:`${u}-enter-from`,enterActiveClass:`${u}-enter-active`,enterToClass:`${u}-enter-to`,leaveFromClass:`${a}-leave-from`,leaveActiveClass:`${a}-leave-active`,leaveToClass:`${a}-leave-to`}}),transitionStyle:r.computed(()=>`--q-transition-duration: ${t.transitionDuration}ms`)}}function dl(){let t;const l=r.getCurrentInstance();function i(){t=void 0}return r.onDeactivated(i),r.onBeforeUnmount(i),{removeTick:i,registerTick(u){t=u,r.nextTick(()=>{t===u&&(Vr(l)===!1&&t(),t=void 0)})}}}const Ws=[Element,String],Xm=[null,document,document.body,document.scrollingElement,document.documentElement];function Gs(t,l){let i=gm(l);if(i===void 0){if(t==null)return window;i=t.closest(".scroll,.scroll-y,.overflow-auto")}return Xm.includes(i)?window:i}function Jm(t){return t===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:t.scrollTop}function e0(t){return t===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:t.scrollLeft}let Lo;function t0(){if(Lo!==void 0)return Lo;const t=document.createElement("p"),l=document.createElement("div");il(t,{width:"100%",height:"200px"}),il(l,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),l.appendChild(t),document.body.appendChild(l);const i=t.offsetWidth;l.style.overflow="scroll";let u=t.offsetWidth;return i===u&&(u=l.clientWidth),l.remove(),Lo=i-u,Lo}function n0(t,l=!0){return!t||t.nodeType!==Node.ELEMENT_NODE?!1:l?t.scrollHeight>t.clientHeight&&(t.classList.contains("scroll")||t.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(t)["overflow-y"])):t.scrollWidth>t.clientWidth&&(t.classList.contains("scroll")||t.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(t)["overflow-x"]))}const $n=[];let hr;function r0(t){hr=t.keyCode===27}function o0(){hr===!0&&(hr=!1)}function i0(t){hr===!0&&(hr=!1,Pn(t,27)===!0&&$n[$n.length-1](t))}function js(t){window[t]("keydown",r0),window[t]("blur",o0),window[t]("keyup",i0),hr=!1}function Ks(t){yt.is.desktop===!0&&($n.push(t),$n.length===1&&js("addEventListener"))}function Vo(t){const l=$n.indexOf(t);l!==-1&&($n.splice(l,1),$n.length===0&&js("removeEventListener"))}const Dn=[];function Qs(t){Dn[Dn.length-1](t)}function Zs(t){yt.is.desktop===!0&&(Dn.push(t),Dn.length===1&&document.body.addEventListener("focusin",Qs))}function hl(t){const l=Dn.indexOf(t);l!==-1&&(Dn.splice(l,1),Dn.length===0&&document.body.removeEventListener("focusin",Qs))}const{notPassiveCapture:qo}=ht,Un=[];function No(t){const l=t.target;if(l===void 0||l.nodeType===8||l.classList.contains("no-pointer-events")===!0)return;let i=Dr.length-1;for(;i>=0;){const u=Dr[i].$;if(u.type.name==="QTooltip"){i--;continue}if(u.type.name!=="QDialog")break;if(u.props.seamless!==!0)return;i--}for(let u=Un.length-1;u>=0;u--){const a=Un[u];if((a.anchorEl.value===null||a.anchorEl.value.contains(l)===!1)&&(l===document.body||a.innerRef.value!==null&&a.innerRef.value.contains(l)===!1))t.qClickOutside=!0,a.onClickOutside(t);else return}}function Ys(t){Un.push(t),Un.length===1&&(document.addEventListener("mousedown",No,qo),document.addEventListener("touchstart",No,qo))}function Po(t){const l=Un.findIndex(i=>i===t);l!==-1&&(Un.splice(l,1),Un.length===0&&(document.removeEventListener("mousedown",No,qo),document.removeEventListener("touchstart",No,qo)))}let Xs,Js;function $o(t){const l=t.split(" ");return l.length!==2?!1:["top","center","bottom"].includes(l[0])!==!0?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):["left","middle","right","start","end"].includes(l[1])!==!0?(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1):!0}function ec(t){return t?!(t.length!==2||typeof t[0]!="number"||typeof t[1]!="number"):!0}const ml={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(t=>{ml[`${t}#ltr`]=t,ml[`${t}#rtl`]=t});function Do(t,l){const i=t.split(" ");return{vertical:i[0],horizontal:ml[`${i[1]}#${l===!0?"rtl":"ltr"}`]}}function l0(t,l){let{top:i,left:u,right:a,bottom:c,width:d,height:h}=t.getBoundingClientRect();return l!==void 0&&(i-=l[1],u-=l[0],c+=l[1],a+=l[0],d+=l[0],h+=l[1]),{top:i,bottom:c,height:h,left:u,right:a,width:d,middle:u+(a-u)/2,center:i+(c-i)/2}}function a0(t,l,i){let{top:u,left:a}=t.getBoundingClientRect();return u+=l.top,a+=l.left,i!==void 0&&(u+=i[1],a+=i[0]),{top:u,bottom:u+1,height:1,left:a,right:a+1,width:1,middle:a,center:u}}function u0(t,l){return{top:0,center:l/2,bottom:l,left:0,middle:t/2,right:t}}function tc(t,l,i,u){return{top:t[i.vertical]-l[u.vertical],left:t[i.horizontal]-l[u.horizontal]}}function gl(t,l=0){if(t.targetEl===null||t.anchorEl===null||l>5)return;if(t.targetEl.offsetHeight===0||t.targetEl.offsetWidth===0){setTimeout(()=>{gl(t,l+1)},10);return}const{targetEl:i,offset:u,anchorEl:a,anchorOrigin:c,selfOrigin:d,absoluteOffset:h,fit:v,cover:y,maxHeight:m,maxWidth:w}=t;if(yt.is.ios===!0&&window.visualViewport!==void 0){const Q=document.body.style,{offsetLeft:K,offsetTop:ie}=window.visualViewport;K!==Xs&&(Q.setProperty("--q-pe-left",K+"px"),Xs=K),ie!==Js&&(Q.setProperty("--q-pe-top",ie+"px"),Js=ie)}const{scrollLeft:E,scrollTop:x}=i,b=h===void 0?l0(a,y===!0?[0,0]:u):a0(a,h,u);Object.assign(i.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:w||"100vw",maxHeight:m||"100vh",visibility:"visible"});const{offsetWidth:R,offsetHeight:A}=i,{elWidth:P,elHeight:$}=v===!0||y===!0?{elWidth:Math.max(b.width,R),elHeight:y===!0?Math.max(b.height,A):A}:{elWidth:R,elHeight:A};let M={maxWidth:w,maxHeight:m};(v===!0||y===!0)&&(M.minWidth=b.width+"px",y===!0&&(M.minHeight=b.height+"px")),Object.assign(i.style,M);const j=u0(P,$);let W=tc(b,j,c,d);if(h===void 0||u===void 0)pl(W,b,j,c,d);else{const{top:Q,left:K}=W;pl(W,b,j,c,d);let ie=!1;if(W.top!==Q){ie=!0;const N=2*u[1];b.center=b.top-=N,b.bottom-=N+2}if(W.left!==K){ie=!0;const N=2*u[0];b.middle=b.left-=N,b.right-=N+2}ie===!0&&(W=tc(b,j,c,d),pl(W,b,j,c,d))}M={top:W.top+"px",left:W.left+"px"},W.maxHeight!==void 0&&(M.maxHeight=W.maxHeight+"px",b.height>W.maxHeight&&(M.minHeight=M.maxHeight)),W.maxWidth!==void 0&&(M.maxWidth=W.maxWidth+"px",b.width>W.maxWidth&&(M.minWidth=M.maxWidth)),Object.assign(i.style,M),i.scrollTop!==x&&(i.scrollTop=x),i.scrollLeft!==E&&(i.scrollLeft=E)}function pl(t,l,i,u,a){const c=i.bottom,d=i.right,h=t0(),v=window.innerHeight-h,y=document.body.clientWidth;if(t.top<0||t.top+c>v)if(a.vertical==="center")t.top=l[u.vertical]>v/2?Math.max(0,v-c):0,t.maxHeight=Math.min(c,v);else if(l[u.vertical]>v/2){const m=Math.min(v,u.vertical==="center"?l.center:u.vertical===a.vertical?l.bottom:l.top);t.maxHeight=Math.min(c,m),t.top=Math.max(0,m-c)}else t.top=Math.max(0,u.vertical==="center"?l.center:u.vertical===a.vertical?l.top:l.bottom),t.maxHeight=Math.min(c,v-t.top);if(t.left<0||t.left+d>y)if(t.maxWidth=Math.min(d,y),a.horizontal==="middle")t.left=l[u.horizontal]>y/2?Math.max(0,y-d):0;else if(l[u.horizontal]>y/2){const m=Math.min(y,u.horizontal==="middle"?l.middle:u.horizontal===a.horizontal?l.right:l.left);t.maxWidth=Math.min(d,m),t.left=Math.max(0,m-t.maxWidth)}else t.left=Math.max(0,u.horizontal==="middle"?l.middle:u.horizontal===a.horizontal?l.left:l.right),t.maxWidth=Math.min(d,y-t.left)}const s0=He({name:"QMenu",inheritAttrs:!1,props:{...Hm,...al,...wn,...Ur,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:$o},self:{type:String,validator:$o},offset:{type:Array,validator:ec},scrollTarget:Ws,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...ul,"click","escapeKey"],setup(t,{slots:l,emit:i,attrs:u}){let a=null,c,d,h;const v=r.getCurrentInstance(),{proxy:y}=v,{$q:m}=y,w=r.ref(null),E=r.ref(!1),x=r.computed(()=>t.persistent!==!0&&t.noRouteDismiss!==!0),b=Sn(t,m),{registerTick:R,removeTick:A}=dl(),{registerTimeout:P}=qr(),{transitionProps:$,transitionStyle:M}=fl(t),{localScrollTarget:j,changeScrollEvent:W,unconfigureScrollTarget:Q}=zs(t,Y),{anchorEl:K,canShow:ie}=Us({showing:E}),{hide:N}=sl({showing:E,canShow:ie,handleShow:ge,handleHide:I,hideOnRouteChange:x,processOnMount:!0}),{showPortal:U,hidePortal:Z,renderPortal:O}=cl(v,w,Ae,"menu"),te={anchorEl:K,innerRef:w,onClickOutside(X){if(t.persistent!==!0&&E.value===!0)return N(X),(X.type==="touchstart"||X.target.classList.contains("q-dialog__backdrop"))&&De(X),!0}},D=r.computed(()=>Do(t.anchor||(t.cover===!0?"center middle":"bottom start"),m.lang.rtl)),le=r.computed(()=>t.cover===!0?D.value:Do(t.self||"top start",m.lang.rtl)),ae=r.computed(()=>(t.square===!0?" q-menu--square":"")+(b.value===!0?" q-menu--dark q-dark":"")),H=r.computed(()=>t.autoClose===!0?{onClick:pe}:{}),se=r.computed(()=>E.value===!0&&t.persistent!==!0);r.watch(se,X=>{X===!0?(Ks(G),Ys(te)):(Vo(G),Po(te))});function Be(){Io(()=>{let X=w.value;X&&X.contains(document.activeElement)!==!0&&(X=X.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||X.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||X.querySelector("[autofocus], [data-autofocus]")||X,X.focus({preventScroll:!0}))})}function ge(X){if(a=t.noRefocus===!1?document.activeElement:null,Zs(fe),U(),Y(),c=void 0,X!==void 0&&(t.touchPosition||t.contextMenu)){const Pe=ss(X);if(Pe.left!==void 0){const{top:ut,left:Ut}=K.value.getBoundingClientRect();c={left:Pe.left-Ut,top:Pe.top-ut}}}d===void 0&&(d=r.watch(()=>m.screen.width+"|"+m.screen.height+"|"+t.self+"|"+t.anchor+"|"+m.lang.rtl,re)),t.noFocus!==!0&&document.activeElement.blur(),R(()=>{re(),t.noFocus!==!0&&Be()}),P(()=>{m.platform.is.ios===!0&&(h=t.autoClose,w.value.click()),re(),U(!0),i("show",X)},t.transitionDuration)}function I(X){A(),Z(),T(!0),a!==null&&(X===void 0||X.qClickOutside!==!0)&&(((X&&X.type.indexOf("key")===0?a.closest('[tabindex]:not([tabindex^="-"])'):void 0)||a).focus(),a=null),P(()=>{Z(!0),i("hide",X)},t.transitionDuration)}function T(X){c=void 0,d!==void 0&&(d(),d=void 0),(X===!0||E.value===!0)&&(hl(fe),Q(),Po(te),Vo(G)),X!==!0&&(a=null)}function Y(){(K.value!==null||t.scrollTarget!==void 0)&&(j.value=Gs(K.value,t.scrollTarget),W(j.value,re))}function pe(X){h!==!0?(Qm(y,X),i("click",X)):h=!1}function fe(X){se.value===!0&&t.noFocus!==!0&&Os(w.value,X.target)!==!0&&Be()}function G(X){i("escapeKey"),N(X)}function re(){gl({targetEl:w.value,offset:t.offset,anchorEl:K.value,anchorOrigin:D.value,selfOrigin:le.value,absoluteOffset:c,fit:t.fit,cover:t.cover,maxHeight:t.maxHeight,maxWidth:t.maxWidth})}function Ae(){return r.h(r.Transition,$.value,()=>E.value===!0?r.h("div",{role:"menu",...u,ref:w,tabindex:-1,class:["q-menu q-position-engine scroll"+ae.value,u.class],style:[u.style,M.value],...H.value},ot(l.default)):null)}return r.onBeforeUnmount(T),Object.assign(y,{focus:Be,updatePosition:re}),O}});function c0(t,l,i){function u(){}return r.onBeforeUnmount(()=>{t.value===!0&&void 0}),{removeFromHistory:u,addToHistory(){}}}let zr=0,vl,_l,Hr,yl=!1,nc,rc,oc,zn=null;function f0(t){d0(t)&&De(t)}function d0(t){if(t.target===document.body||t.target.classList.contains("q-layout__backdrop"))return!0;const l=Rh(t),i=t.shiftKey&&!t.deltaX,u=!i&&Math.abs(t.deltaX)<=Math.abs(t.deltaY),a=i||u?t.deltaY:t.deltaX;for(let c=0;c<l.length;c++){const d=l[c];if(n0(d,u))return u?a<0&&d.scrollTop===0?!0:a>0&&d.scrollTop+d.clientHeight===d.scrollHeight:a<0&&d.scrollLeft===0?!0:a>0&&d.scrollLeft+d.clientWidth===d.scrollWidth}return!0}function ic(t){t.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function Uo(t){yl!==!0&&(yl=!0,requestAnimationFrame(()=>{yl=!1;const{height:l}=t.target,{clientHeight:i,scrollTop:u}=document.scrollingElement;(Hr===void 0||l!==window.innerHeight)&&(Hr=i-l,document.scrollingElement.scrollTop=u),u>Hr&&(document.scrollingElement.scrollTop-=Math.ceil((u-Hr)/8))}))}function lc(t){const l=document.body,i=window.visualViewport!==void 0;if(t==="add"){const{overflowY:u,overflowX:a}=window.getComputedStyle(l);vl=e0(window),_l=Jm(window),nc=l.style.left,rc=l.style.top,oc=window.location.href,l.style.left=`-${vl}px`,l.style.top=`-${_l}px`,a!=="hidden"&&(a==="scroll"||l.scrollWidth>window.innerWidth)&&l.classList.add("q-body--force-scrollbar-x"),u!=="hidden"&&(u==="scroll"||l.scrollHeight>window.innerHeight)&&l.classList.add("q-body--force-scrollbar-y"),l.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,yt.is.ios===!0&&(i===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",Uo,ht.passiveCapture),window.visualViewport.addEventListener("scroll",Uo,ht.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",ic,ht.passiveCapture))}yt.is.desktop===!0&&yt.is.mac===!0&&window[`${t}EventListener`]("wheel",f0,ht.notPassive),t==="remove"&&(yt.is.ios===!0&&(i===!0?(window.visualViewport.removeEventListener("resize",Uo,ht.passiveCapture),window.visualViewport.removeEventListener("scroll",Uo,ht.passiveCapture)):window.removeEventListener("scroll",ic,ht.passiveCapture)),l.classList.remove("q-body--prevent-scroll"),l.classList.remove("q-body--force-scrollbar-x"),l.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,l.style.left=nc,l.style.top=rc,window.location.href===oc&&window.scrollTo(vl,_l),Hr=void 0)}function h0(t){let l="add";if(t===!0){if(zr++,zn!==null){clearTimeout(zn),zn=null;return}if(zr>1)return}else{if(zr===0||(zr--,zr>0))return;if(l="remove",yt.is.ios===!0&&yt.is.nativeMobile===!0){zn!==null&&clearTimeout(zn),zn=setTimeout(()=>{lc(l),zn=null},100);return}}lc(l)}function m0(){let t;return{preventBodyScroll(l){l!==t&&(t!==void 0||l===!0)&&(t=l,h0(l))}}}let zo=0;const g0={standard:"fixed-full flex-center",top:"fixed-top justify-center",bottom:"fixed-bottom justify-center",right:"fixed-right items-center",left:"fixed-left items-center"},ac={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},p0=He({name:"QDialog",inheritAttrs:!1,props:{...al,...Ur,transitionShow:String,transitionHide:String,persistent:Boolean,autoClose:Boolean,allowFocusOutside:Boolean,noEscDismiss:Boolean,noBackdropDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,noShake:Boolean,seamless:Boolean,maximized:Boolean,fullWidth:Boolean,fullHeight:Boolean,square:Boolean,backdropFilter:String,position:{type:String,default:"standard",validator:t=>["standard","top","bottom","left","right"].includes(t)}},emits:[...ul,"shake","click","escapeKey"],setup(t,{slots:l,emit:i,attrs:u}){const a=r.getCurrentInstance(),c=r.ref(null),d=r.ref(!1),h=r.ref(!1);let v=null,y=null,m,w;const E=r.computed(()=>t.persistent!==!0&&t.noRouteDismiss!==!0&&t.seamless!==!0),{preventBodyScroll:x}=m0(),{registerTimeout:b}=qr(),{registerTick:R,removeTick:A}=dl(),{transitionProps:P,transitionStyle:$}=fl(t,()=>ac[t.position][0],()=>ac[t.position][1]),M=r.computed(()=>$.value+(t.backdropFilter!==void 0?`;backdrop-filter:${t.backdropFilter};-webkit-backdrop-filter:${t.backdropFilter}`:"")),{showPortal:j,hidePortal:W,portalIsAccessible:Q,renderPortal:K}=cl(a,c,fe,"dialog"),{hide:ie}=sl({showing:d,hideOnRouteChange:E,handleShow:le,handleHide:ae,processOnMount:!0}),{addToHistory:N,removeFromHistory:U}=c0(d),Z=r.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${t.maximized===!0?"maximized":"minimized"} q-dialog__inner--${t.position} ${g0[t.position]}`+(h.value===!0?" q-dialog__inner--animating":"")+(t.fullWidth===!0?" q-dialog__inner--fullwidth":"")+(t.fullHeight===!0?" q-dialog__inner--fullheight":"")+(t.square===!0?" q-dialog__inner--square":"")),O=r.computed(()=>d.value===!0&&t.seamless!==!0),te=r.computed(()=>t.autoClose===!0?{onClick:T}:{}),D=r.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${O.value===!0?"modal":"seamless"}`,u.class]);r.watch(()=>t.maximized,G=>{d.value===!0&&I(G)}),r.watch(O,G=>{x(G),G===!0?(Zs(pe),Ks(Be)):(hl(pe),Vo(Be))});function le(G){N(),y=t.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,I(t.maximized),j(),h.value=!0,t.noFocus!==!0?(document.activeElement!==null&&document.activeElement.blur(),R(H)):A(),b(()=>{if(a.proxy.$q.platform.is.ios===!0){if(t.seamless!==!0&&document.activeElement){const{top:re,bottom:Ae}=document.activeElement.getBoundingClientRect(),{innerHeight:X}=window,Pe=window.visualViewport!==void 0?window.visualViewport.height:X;re>0&&Ae>Pe/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-Pe,Ae>=X?1/0:Math.ceil(document.scrollingElement.scrollTop+Ae-Pe/2))),document.activeElement.scrollIntoView()}w=!0,c.value.click(),w=!1}j(!0),h.value=!1,i("show",G)},t.transitionDuration)}function ae(G){A(),U(),ge(!0),h.value=!0,W(),y!==null&&(((G&&G.type.indexOf("key")===0?y.closest('[tabindex]:not([tabindex^="-"])'):void 0)||y).focus(),y=null),b(()=>{W(!0),h.value=!1,i("hide",G)},t.transitionDuration)}function H(G){Io(()=>{let re=c.value;if(re!==null){if(G!==void 0){const Ae=re.querySelector(G);if(Ae!==null){Ae.focus({preventScroll:!0});return}}re.contains(document.activeElement)!==!0&&(re=re.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||re.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||re.querySelector("[autofocus], [data-autofocus]")||re,re.focus({preventScroll:!0}))}})}function se(G){G&&typeof G.focus=="function"?G.focus({preventScroll:!0}):H(),i("shake");const re=c.value;re!==null&&(re.classList.remove("q-animate--scale"),re.classList.add("q-animate--scale"),v!==null&&clearTimeout(v),v=setTimeout(()=>{v=null,c.value!==null&&(re.classList.remove("q-animate--scale"),H())},170))}function Be(){t.seamless!==!0&&(t.persistent===!0||t.noEscDismiss===!0?t.maximized!==!0&&t.noShake!==!0&&se():(i("escapeKey"),ie()))}function ge(G){v!==null&&(clearTimeout(v),v=null),(G===!0||d.value===!0)&&(I(!1),t.seamless!==!0&&(x(!1),hl(pe),Vo(Be))),G!==!0&&(y=null)}function I(G){G===!0?m!==!0&&(zo<1&&document.body.classList.add("q-body--dialog"),zo++,m=!0):m===!0&&(zo<2&&document.body.classList.remove("q-body--dialog"),zo--,m=!1)}function T(G){w!==!0&&(ie(G),i("click",G))}function Y(G){t.persistent!==!0&&t.noBackdropDismiss!==!0?ie(G):t.noShake!==!0&&se()}function pe(G){t.allowFocusOutside!==!0&&Q.value===!0&&Os(c.value,G.target)!==!0&&H('[tabindex]:not([tabindex="-1"])')}Object.assign(a.proxy,{focus:H,shake:se,__updateRefocusTarget(G){y=G||null}}),r.onBeforeUnmount(ge);function fe(){return r.h("div",{role:"dialog","aria-modal":O.value===!0?"true":"false",...u,class:D.value},[r.h(r.Transition,{name:"q-transition--fade",appear:!0},()=>O.value===!0?r.h("div",{class:"q-dialog__backdrop fixed-full",style:M.value,"aria-hidden":"true",tabindex:-1,onClick:Y}):null),r.h(r.Transition,P.value,()=>d.value===!0?r.h("div",{ref:c,class:Z.value,style:$.value,tabindex:-1,...te.value},ot(l.default)):null)])}return K}});let Ho=!1;{const t=document.createElement("div");t.setAttribute("dir","rtl"),Object.assign(t.style,{width:"1px",height:"1px",overflow:"auto"});const l=document.createElement("div");Object.assign(l.style,{width:"1000px",height:"1px"}),document.body.appendChild(t),t.appendChild(l),t.scrollLeft=-1e3,Ho=t.scrollLeft>=0,t.remove()}const Dt=1e3,v0=["start","center","end","start-force","center-force","end-force"],uc=Array.prototype.filter,_0=window.getComputedStyle(document.body).overflowAnchor===void 0?Th:function(t,l){t!==null&&(t._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(t._qOverflowAnimationFrame),t._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(t===null)return;t._qOverflowAnimationFrame=void 0;const i=t.children||[];uc.call(i,a=>a.dataset&&a.dataset.qVsAnchor!==void 0).forEach(a=>{delete a.dataset.qVsAnchor});const u=i[l];u&&u.dataset&&(u.dataset.qVsAnchor="")}))};function mr(t,l){return t+l}function bl(t,l,i,u,a,c,d,h){const v=t===window?document.scrollingElement||document.documentElement:t,y=a===!0?"offsetWidth":"offsetHeight",m={scrollStart:0,scrollViewSize:-d-h,scrollMaxSize:0,offsetStart:-d,offsetEnd:-h};if(a===!0?(t===window?(m.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,m.scrollViewSize+=document.documentElement.clientWidth):(m.scrollStart=v.scrollLeft,m.scrollViewSize+=v.clientWidth),m.scrollMaxSize=v.scrollWidth,c===!0&&(m.scrollStart=(Ho===!0?m.scrollMaxSize-m.scrollViewSize:0)-m.scrollStart)):(t===window?(m.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,m.scrollViewSize+=document.documentElement.clientHeight):(m.scrollStart=v.scrollTop,m.scrollViewSize+=v.clientHeight),m.scrollMaxSize=v.scrollHeight),i!==null)for(let w=i.previousElementSibling;w!==null;w=w.previousElementSibling)w.classList.contains("q-virtual-scroll--skip")===!1&&(m.offsetStart+=w[y]);if(u!==null)for(let w=u.nextElementSibling;w!==null;w=w.nextElementSibling)w.classList.contains("q-virtual-scroll--skip")===!1&&(m.offsetEnd+=w[y]);if(l!==t){const w=v.getBoundingClientRect(),E=l.getBoundingClientRect();a===!0?(m.offsetStart+=E.left-w.left,m.offsetEnd-=E.width):(m.offsetStart+=E.top-w.top,m.offsetEnd-=E.height),t!==window&&(m.offsetStart+=m.scrollStart),m.offsetEnd+=m.scrollMaxSize-m.offsetStart}return m}function sc(t,l,i,u){l==="end"&&(l=(t===window?document.body:t)[i===!0?"scrollWidth":"scrollHeight"]),t===window?i===!0?(u===!0&&(l=(Ho===!0?document.body.scrollWidth-document.documentElement.clientWidth:0)-l),window.scrollTo(l,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,l):i===!0?(u===!0&&(l=(Ho===!0?t.scrollWidth-t.offsetWidth:0)-l),t.scrollLeft=l):t.scrollTop=l}function Wr(t,l,i,u){if(i>=u)return 0;const a=l.length,c=Math.floor(i/Dt),d=Math.floor((u-1)/Dt)+1;let h=t.slice(c,d).reduce(mr,0);return i%Dt!==0&&(h-=l.slice(c*Dt,i).reduce(mr,0)),u%Dt!==0&&u!==a&&(h-=l.slice(u,d*Dt).reduce(mr,0)),h}const cc={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...{virtualScrollSliceSize:{type:[Number,String],default:10},virtualScrollSliceRatioBefore:{type:[Number,String],default:1},virtualScrollSliceRatioAfter:{type:[Number,String],default:1},virtualScrollItemSize:{type:[Number,String],default:24},virtualScrollStickySizeStart:{type:[Number,String],default:0},virtualScrollStickySizeEnd:{type:[Number,String],default:0},tableColspan:[Number,String]}};function y0({virtualScrollLength:t,getVirtualScrollTarget:l,getVirtualScrollEl:i,virtualScrollItemSizeComputed:u}){const a=r.getCurrentInstance(),{props:c,emit:d,proxy:h}=a,{$q:v}=h;let y,m,w,E=[],x;const b=r.ref(0),R=r.ref(0),A=r.ref({}),P=r.ref(null),$=r.ref(null),M=r.ref(null),j=r.ref({from:0,to:0}),W=r.computed(()=>c.tableColspan!==void 0?c.tableColspan:100);u===void 0&&(u=r.computed(()=>c.virtualScrollItemSize));const Q=r.computed(()=>u.value+";"+c.virtualScrollHorizontal),K=r.computed(()=>Q.value+";"+c.virtualScrollSliceRatioBefore+";"+c.virtualScrollSliceRatioAfter);r.watch(K,()=>{ae()}),r.watch(Q,ie);function ie(){le(m,!0)}function N(I){le(I===void 0?m:I)}function U(I,T){const Y=l();if(Y==null||Y.nodeType===8)return;const pe=bl(Y,i(),P.value,$.value,c.virtualScrollHorizontal,v.lang.rtl,c.virtualScrollStickySizeStart,c.virtualScrollStickySizeEnd);w!==pe.scrollViewSize&&ae(pe.scrollViewSize),O(Y,pe,Math.min(t.value-1,Math.max(0,parseInt(I,10)||0)),0,v0.indexOf(T)!==-1?T:m!==-1&&I>m?"end":"start")}function Z(){const I=l();if(I==null||I.nodeType===8)return;const T=bl(I,i(),P.value,$.value,c.virtualScrollHorizontal,v.lang.rtl,c.virtualScrollStickySizeStart,c.virtualScrollStickySizeEnd),Y=t.value-1,pe=T.scrollMaxSize-T.offsetStart-T.offsetEnd-R.value;if(y===T.scrollStart)return;if(T.scrollMaxSize<=0){O(I,T,0,0);return}w!==T.scrollViewSize&&ae(T.scrollViewSize),te(j.value.from);const fe=Math.floor(T.scrollMaxSize-Math.max(T.scrollViewSize,T.offsetEnd)-Math.min(x[Y],T.scrollViewSize/2));if(fe>0&&Math.ceil(T.scrollStart)>=fe){O(I,T,Y,T.scrollMaxSize-T.offsetEnd-E.reduce(mr,0));return}let G=0,re=T.scrollStart-T.offsetStart,Ae=re;if(re<=pe&&re+T.scrollViewSize>=b.value)re-=b.value,G=j.value.from,Ae=re;else for(let X=0;re>=E[X]&&G<Y;X++)re-=E[X],G+=Dt;for(;re>0&&G<Y;)re-=x[G],re>-T.scrollViewSize?(G++,Ae=re):Ae=x[G]+re;O(I,T,G,Ae)}function O(I,T,Y,pe,fe){const G=typeof fe=="string"&&fe.indexOf("-force")!==-1,re=G===!0?fe.replace("-force",""):fe,Ae=re!==void 0?re:"start";let X=Math.max(0,Y-A.value[Ae]),Pe=X+A.value.total;Pe>t.value&&(Pe=t.value,X=Math.max(0,Pe-A.value.total)),y=T.scrollStart;const ut=X!==j.value.from||Pe!==j.value.to;if(ut===!1&&re===void 0){se(Y);return}const{activeElement:Ut}=document,bt=M.value;ut===!0&&bt!==null&&bt!==Ut&&bt.contains(Ut)===!0&&(bt.addEventListener("focusout",D),setTimeout(()=>{bt!==null&&bt.removeEventListener("focusout",D)})),_0(bt,Y-X);const it=re!==void 0?x.slice(X,Y).reduce(mr,0):0;if(ut===!0){const wt=Pe>=j.value.from&&X<=j.value.to?j.value.to:Pe;j.value={from:X,to:wt},b.value=Wr(E,x,0,X),R.value=Wr(E,x,Pe,t.value),requestAnimationFrame(()=>{j.value.to!==Pe&&y===T.scrollStart&&(j.value={from:j.value.from,to:Pe},R.value=Wr(E,x,Pe,t.value))})}requestAnimationFrame(()=>{if(y!==T.scrollStart)return;ut===!0&&te(X);const wt=x.slice(X,Y).reduce(mr,0),nn=wt+T.offsetStart+b.value,mt=nn+x[Y];let Cn=nn+pe;if(re!==void 0){const Gr=wt-it,zt=T.scrollStart+Gr;Cn=G!==!0&&zt<nn&&mt<zt+T.scrollViewSize?zt:re==="end"?mt-T.scrollViewSize:nn-(re==="start"?0:Math.round((T.scrollViewSize-x[Y])/2))}y=Cn,sc(I,Cn,c.virtualScrollHorizontal,v.lang.rtl),se(Y)})}function te(I){const T=M.value;if(T){const Y=uc.call(T.children,X=>X.classList&&X.classList.contains("q-virtual-scroll--skip")===!1),pe=Y.length,fe=c.virtualScrollHorizontal===!0?X=>X.getBoundingClientRect().width:X=>X.offsetHeight;let G=I,re,Ae;for(let X=0;X<pe;){for(re=fe(Y[X]),X++;X<pe&&Y[X].classList.contains("q-virtual-scroll--with-prev")===!0;)re+=fe(Y[X]),X++;Ae=re-x[G],Ae!==0&&(x[G]+=Ae,E[Math.floor(G/Dt)]+=Ae),G++}}}function D(){M.value!==null&&M.value!==void 0&&M.value.focus()}function le(I,T){const Y=1*u.value;(T===!0||Array.isArray(x)===!1)&&(x=[]);const pe=x.length;x.length=t.value;for(let G=t.value-1;G>=pe;G--)x[G]=Y;const fe=Math.floor((t.value-1)/Dt);E=[];for(let G=0;G<=fe;G++){let re=0;const Ae=Math.min((G+1)*Dt,t.value);for(let X=G*Dt;X<Ae;X++)re+=x[X];E.push(re)}m=-1,y=void 0,b.value=Wr(E,x,0,j.value.from),R.value=Wr(E,x,j.value.to,t.value),I>=0?(te(j.value.from),r.nextTick(()=>{U(I)})):Be()}function ae(I){if(I===void 0&&typeof window<"u"){const re=l();re!=null&&re.nodeType!==8&&(I=bl(re,i(),P.value,$.value,c.virtualScrollHorizontal,v.lang.rtl,c.virtualScrollStickySizeStart,c.virtualScrollStickySizeEnd).scrollViewSize)}w=I;const T=parseFloat(c.virtualScrollSliceRatioBefore)||0,Y=parseFloat(c.virtualScrollSliceRatioAfter)||0,pe=1+T+Y,fe=I===void 0||I<=0?1:Math.ceil(I/u.value),G=Math.max(1,fe,Math.ceil((c.virtualScrollSliceSize>0?c.virtualScrollSliceSize:10)/pe));A.value={total:Math.ceil(G*pe),start:Math.ceil(G*T),center:Math.ceil(G*(.5+T)),end:Math.ceil(G*(1+T)),view:fe}}function H(I,T){const Y=c.virtualScrollHorizontal===!0?"width":"height",pe={["--q-virtual-scroll-item-"+Y]:u.value+"px"};return[I==="tbody"?r.h(I,{class:"q-virtual-scroll__padding",key:"before",ref:P},[r.h("tr",[r.h("td",{style:{[Y]:`${b.value}px`,...pe},colspan:W.value})])]):r.h(I,{class:"q-virtual-scroll__padding",key:"before",ref:P,style:{[Y]:`${b.value}px`,...pe}}),r.h(I,{class:"q-virtual-scroll__content",key:"content",ref:M,tabindex:-1},T.flat()),I==="tbody"?r.h(I,{class:"q-virtual-scroll__padding",key:"after",ref:$},[r.h("tr",[r.h("td",{style:{[Y]:`${R.value}px`,...pe},colspan:W.value})])]):r.h(I,{class:"q-virtual-scroll__padding",key:"after",ref:$,style:{[Y]:`${R.value}px`,...pe}})]}function se(I){m!==I&&(c.onVirtualScroll!==void 0&&d("virtualScroll",{index:I,from:j.value.from,to:j.value.to-1,direction:I<m?"decrease":"increase",ref:h}),m=I)}ae();const Be=ws(Z,v.platform.is.ios===!0?120:35);r.onBeforeMount(()=>{ae()});let ge=!1;return r.onDeactivated(()=>{ge=!0}),r.onActivated(()=>{if(ge!==!0)return;const I=l();y!==void 0&&I!==void 0&&I!==null&&I.nodeType!==8?sc(I,y,c.virtualScrollHorizontal,v.lang.rtl):U(m)}),r.onBeforeUnmount(()=>{Be.cancel()}),Object.assign(h,{scrollTo:U,reset:ie,refresh:N}),{virtualScrollSliceRange:j,virtualScrollSliceSizeComputed:A,setVirtualScrollSize:ae,onVirtualScrollEvt:Be,localResetVirtualScroll:le,padVirtualScroll:H,scrollTo:U,reset:ie,refresh:N}}function fc(t,l,i){if(i<=l)return l;const u=i-l+1;let a=l+(t-l)%u;return a<l&&(a=u+a),a===0?0:a}const dc=t=>["add","add-unique","toggle"].includes(t),b0=".*+?^${}()|[]\\",w0=Object.keys(Fo),hc=He({name:"QSelect",inheritAttrs:!1,props:{...cc,...Ao,...Fo,modelValue:{required:!0},multiple:Boolean,displayValue:[String,Number],displayValueHtml:Boolean,dropdownIcon:String,options:{type:Array,default:()=>[]},optionValue:[Function,String],optionLabel:[Function,String],optionDisable:[Function,String],hideSelected:Boolean,hideDropdownIcon:Boolean,fillInput:Boolean,maxValues:[Number,String],optionsDense:Boolean,optionsDark:{type:Boolean,default:null},optionsSelectedClass:String,optionsHtml:Boolean,optionsCover:Boolean,menuShrink:Boolean,menuAnchor:String,menuSelf:String,menuOffset:Array,popupContentClass:String,popupContentStyle:[String,Array,Object],popupNoRouteDismiss:Boolean,useInput:Boolean,useChips:Boolean,newValueMode:{type:String,validator:dc},mapOptions:Boolean,emitValue:Boolean,inputDebounce:{type:[Number,String],default:500},inputClass:[Array,String,Object],inputStyle:[Array,String,Object],tabindex:{type:[String,Number],default:0},autocomplete:String,transitionShow:{},transitionHide:{},transitionDuration:{},behavior:{type:String,validator:t=>["default","menu","dialog"].includes(t),default:"default"},virtualScrollItemSize:cc.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...el,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(t,{slots:l,emit:i}){const{proxy:u}=r.getCurrentInstance(),{$q:a}=u,c=r.ref(!1),d=r.ref(!1),h=r.ref(-1),v=r.ref(""),y=r.ref(!1),m=r.ref(!1);let w=null,E=null,x,b,R,A=null,P,$,M,j;const W=r.ref(null),Q=r.ref(null),K=r.ref(null),ie=r.ref(null),N=r.ref(null),U=as(t),Z=ks(Xo),O=r.computed(()=>Array.isArray(t.options)?t.options.length:0),te=r.computed(()=>t.virtualScrollItemSize===void 0?t.optionsDense===!0?24:48:t.virtualScrollItemSize),{virtualScrollSliceRange:D,virtualScrollSliceSizeComputed:le,localResetVirtualScroll:ae,padVirtualScroll:H,onVirtualScrollEvt:se,scrollTo:Be,setVirtualScrollSize:ge}=y0({virtualScrollLength:O,getVirtualScrollTarget:Zo,getVirtualScrollEl:Kr,virtualScrollItemSizeComputed:te}),I=tl(),T=r.computed(()=>{const S=t.mapOptions===!0&&t.multiple!==!0,ne=t.modelValue!==void 0&&(t.modelValue!==null||S===!0)?t.multiple===!0&&Array.isArray(t.modelValue)?t.modelValue:[t.modelValue]:[];if(t.mapOptions===!0&&Array.isArray(t.options)===!0){const J=t.mapOptions===!0&&x!==void 0?x:[],ve=ne.map(Ie=>jr(Ie,J));return t.modelValue===null&&S===!0?ve.filter(Ie=>Ie!==null):ve}return ne}),Y=r.computed(()=>{const S={};return w0.forEach(ne=>{const J=t[ne];J!==void 0&&(S[ne]=J)}),S}),pe=r.computed(()=>t.optionsDark===null?I.isDark.value:t.optionsDark),fe=r.computed(()=>$r(T.value)),G=r.computed(()=>{let S="q-field__input q-placeholder col";return t.hideSelected===!0||T.value.length===0?[S,t.inputClass]:(S+=" q-field__input--padding",t.inputClass===void 0?S:[S,t.inputClass])}),re=r.computed(()=>(t.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(t.popupContentClass?" "+t.popupContentClass:"")),Ae=r.computed(()=>O.value===0),X=r.computed(()=>T.value.map(S=>Ze.value(S)).join(", ")),Pe=r.computed(()=>t.displayValue!==void 0?t.displayValue:X.value),ut=r.computed(()=>t.optionsHtml===!0?()=>!0:S=>S!=null&&S.html===!0),Ut=r.computed(()=>t.displayValueHtml===!0||t.displayValue===void 0&&(t.optionsHtml===!0||T.value.some(ut.value))),bt=r.computed(()=>I.focused.value===!0?t.tabindex:-1),it=r.computed(()=>{const S={tabindex:t.tabindex,role:"combobox","aria-label":t.label,"aria-readonly":t.readonly===!0?"true":"false","aria-autocomplete":t.useInput===!0?"list":"none","aria-expanded":c.value===!0?"true":"false","aria-controls":`${I.targetUid.value}_lb`};return h.value>=0&&(S["aria-activedescendant"]=`${I.targetUid.value}_${h.value}`),S}),wt=r.computed(()=>({id:`${I.targetUid.value}_lb`,role:"listbox","aria-multiselectable":t.multiple===!0?"true":"false"})),nn=r.computed(()=>T.value.map((S,ne)=>({index:ne,opt:S,html:ut.value(S),selected:!0,removeAtIndex:xn,toggleOption:Wt,tabindex:bt.value}))),mt=r.computed(()=>{if(O.value===0)return[];const{from:S,to:ne}=D.value;return t.options.slice(S,ne).map((J,ve)=>{const Ie=Ht.value(J)===!0,Te=Gn(J)===!0,Ke=S+ve,qe={clickable:!0,active:Te,activeClass:zt.value,manualFocus:!0,focused:!1,disable:Ie,tabindex:-1,dense:t.optionsDense,dark:pe.value,role:"option","aria-selected":Te===!0?"true":"false",id:`${I.targetUid.value}_${Ke}`,onClick:()=>{Wt(J)}};return Ie!==!0&&(h.value===Ke&&(qe.focused=!0),a.platform.is.desktop===!0&&(qe.onMousemove=()=>{c.value===!0&&Yt(Ke)})),{index:Ke,opt:J,html:ut.value(J),label:Ze.value(J),selected:qe.active,focused:qe.focused,toggleOption:Wt,setOptionIndex:Yt,itemProps:qe}})}),Cn=r.computed(()=>t.dropdownIcon!==void 0?t.dropdownIcon:a.iconSet.arrow.dropdown),Gr=r.computed(()=>t.optionsCover===!1&&t.outlined!==!0&&t.standout!==!0&&t.borderless!==!0&&t.rounded!==!0),zt=r.computed(()=>t.optionsSelectedClass!==void 0?t.optionsSelectedClass:t.color!==void 0?`text-${t.color}`:""),Ue=r.computed(()=>Wn(t.optionValue,"value")),Ze=r.computed(()=>Wn(t.optionLabel,"label")),Ht=r.computed(()=>Wn(t.optionDisable,"disable")),gr=r.computed(()=>T.value.map(S=>Ue.value(S))),Hn=r.computed(()=>{const S={onInput:Xo,onChange:Z,onKeydown:Qo,onKeyup:jo,onKeypress:Ko,onFocus:vr,onClick(ne){b===!0&&Zt(ne)}};return S.onCompositionstart=S.onCompositionupdate=S.onCompositionend=Z,S});r.watch(T,S=>{x=S,t.useInput===!0&&t.fillInput===!0&&t.multiple!==!0&&I.innerLoading.value!==!0&&(d.value!==!0&&c.value!==!0||fe.value!==!0)&&(R!==!0&&ln(),(d.value===!0||c.value===!0)&&An(""))},{immediate:!0}),r.watch(()=>t.fillInput,ln),r.watch(c,Yr),r.watch(O,Il);function Go(S){return t.emitValue===!0?Ue.value(S):S}function rn(S){if(S!==-1&&S<T.value.length)if(t.multiple===!0){const ne=t.modelValue.slice();i("remove",{index:S,value:ne.splice(S,1)[0]}),i("update:modelValue",ne)}else i("update:modelValue",null)}function xn(S){rn(S),I.focus()}function pr(S,ne){const J=Go(S);if(t.multiple!==!0){t.fillInput===!0&&Kn(Ze.value(S),!0,!0),i("update:modelValue",J);return}if(T.value.length===0){i("add",{index:0,value:J}),i("update:modelValue",t.multiple===!0?[J]:J);return}if(ne===!0&&Gn(S)===!0||t.maxValues!==void 0&&t.modelValue.length>=t.maxValues)return;const ve=t.modelValue.slice();i("add",{index:ve.length,value:J}),ve.push(J),i("update:modelValue",ve)}function Wt(S,ne){if(I.editable.value!==!0||S===void 0||Ht.value(S)===!0)return;const J=Ue.value(S);if(t.multiple!==!0){ne!==!0&&(Kn(t.fillInput===!0?Ze.value(S):"",!0,!0),on()),Q.value!==null&&Q.value.focus(),(T.value.length===0||tn(Ue.value(T.value[0]),J)!==!0)&&i("update:modelValue",t.emitValue===!0?J:S);return}if((b!==!0||y.value===!0)&&I.focus(),vr(),T.value.length===0){const Te=t.emitValue===!0?J:S;i("add",{index:0,value:Te}),i("update:modelValue",t.multiple===!0?[Te]:Te);return}const ve=t.modelValue.slice(),Ie=gr.value.findIndex(Te=>tn(Te,J));if(Ie!==-1)i("remove",{index:Ie,value:ve.splice(Ie,1)[0]});else{if(t.maxValues!==void 0&&ve.length>=t.maxValues)return;const Te=t.emitValue===!0?J:S;i("add",{index:ve.length,value:Te}),ve.push(Te)}i("update:modelValue",ve)}function Yt(S){if(a.platform.is.desktop!==!0)return;const ne=S!==-1&&S<O.value?S:-1;h.value!==ne&&(h.value=ne)}function En(S=1,ne){if(c.value===!0){let J=h.value;do J=fc(J+S,-1,O.value-1);while(J!==-1&&J!==h.value&&Ht.value(t.options[J])===!0);h.value!==J&&(Yt(J),Be(J),ne!==!0&&t.useInput===!0&&t.fillInput===!0&&jn(J>=0?Ze.value(t.options[J]):P,!0))}}function jr(S,ne){const J=ve=>tn(Ue.value(ve),S);return t.options.find(J)||ne.find(J)||S}function Wn(S,ne){const J=S!==void 0?S:ne;return typeof J=="function"?J:ve=>ve!==null&&typeof ve=="object"&&J in ve?ve[J]:ve}function Gn(S){const ne=Ue.value(S);return gr.value.find(J=>tn(J,ne))!==void 0}function vr(S){t.useInput===!0&&Q.value!==null&&(S===void 0||Q.value===S.target&&S.target.value===X.value)&&Q.value.select()}function _r(S){Pn(S,27)===!0&&c.value===!0&&(Zt(S),on(),ln()),i("keyup",S)}function jo(S){const{value:ne}=S.target;if(S.keyCode!==void 0){_r(S);return}if(S.target.value="",w!==null&&(clearTimeout(w),w=null),E!==null&&(clearTimeout(E),E=null),ln(),typeof ne=="string"&&ne.length!==0){const J=ne.toLocaleLowerCase(),ve=Te=>{const Ke=t.options.find(qe=>Te.value(qe).toLocaleLowerCase()===J);return Ke===void 0?!1:(T.value.indexOf(Ke)===-1?Wt(Ke):on(),!0)},Ie=Te=>{ve(Ue)!==!0&&(ve(Ze)===!0||Te===!0||An(ne,!0,()=>Ie(!0)))};Ie()}else I.clearValue(S)}function Ko(S){i("keypress",S)}function Qo(S){if(i("keydown",S),rl(S)===!0)return;const ne=v.value.length!==0&&(t.newValueMode!==void 0||t.onNewValue!==void 0),J=S.shiftKey!==!0&&t.multiple!==!0&&(h.value!==-1||ne===!0);if(S.keyCode===27){$t(S);return}if(S.keyCode===9&&J===!1){kn();return}if(S.target===void 0||S.target.id!==I.targetUid.value||I.editable.value!==!0)return;if(S.keyCode===40&&I.innerLoading.value!==!0&&c.value===!1){De(S),Bn();return}if(S.keyCode===8&&(t.useChips===!0||t.clearable===!0)&&t.hideSelected!==!0&&v.value.length===0){t.multiple===!0&&Array.isArray(t.modelValue)===!0?rn(t.modelValue.length-1):t.multiple!==!0&&t.modelValue!==null&&i("update:modelValue",null);return}(S.keyCode===35||S.keyCode===36)&&(typeof v.value!="string"||v.value.length===0)&&(De(S),h.value=-1,En(S.keyCode===36?1:-1,t.multiple)),(S.keyCode===33||S.keyCode===34)&&le.value!==void 0&&(De(S),h.value=Math.max(-1,Math.min(O.value,h.value+(S.keyCode===33?-1:1)*le.value.view)),En(S.keyCode===33?1:-1,t.multiple)),(S.keyCode===38||S.keyCode===40)&&(De(S),En(S.keyCode===38?-1:1,t.multiple));const ve=O.value;if((M===void 0||j<Date.now())&&(M=""),ve>0&&t.useInput!==!0&&S.key!==void 0&&S.key.length===1&&S.altKey===!1&&S.ctrlKey===!1&&S.metaKey===!1&&(S.keyCode!==32||M.length!==0)){c.value!==!0&&Bn(S);const Ie=S.key.toLocaleLowerCase(),Te=M.length===1&&M[0]===Ie;j=Date.now()+1500,Te===!1&&(De(S),M+=Ie);const Ke=new RegExp("^"+M.split("").map(yr=>b0.indexOf(yr)!==-1?"\\"+yr:yr).join(".*"),"i");let qe=h.value;if(Te===!0||qe<0||Ke.test(Ze.value(t.options[qe]))!==!0)do qe=fc(qe+1,-1,ve-1);while(qe!==h.value&&(Ht.value(t.options[qe])===!0||Ke.test(Ze.value(t.options[qe]))!==!0));h.value!==qe&&r.nextTick(()=>{Yt(qe),Be(qe),qe>=0&&t.useInput===!0&&t.fillInput===!0&&jn(Ze.value(t.options[qe]),!0)});return}if(!(S.keyCode!==13&&(S.keyCode!==32||t.useInput===!0||M!=="")&&(S.keyCode!==9||J===!1))){if(S.keyCode!==9&&De(S),h.value!==-1&&h.value<ve){Wt(t.options[h.value]);return}if(ne===!0){const Ie=(Te,Ke)=>{if(Ke){if(dc(Ke)!==!0)return}else Ke=t.newValueMode;if(Kn("",t.multiple!==!0,!0),Te==null)return;(Ke==="toggle"?Wt:pr)(Te,Ke==="add-unique"),t.multiple!==!0&&(Q.value!==null&&Q.value.focus(),on())};if(t.onNewValue!==void 0?i("newValue",v.value,Ie):Ie(v.value),t.multiple!==!0)return}c.value===!0?kn():I.innerLoading.value!==!0&&Bn()}}function Kr(){return b===!0?N.value:K.value!==null&&K.value.contentEl!==null?K.value.contentEl:void 0}function Zo(){return Kr()}function Cl(){return t.hideSelected===!0?[]:l["selected-item"]!==void 0?nn.value.map(S=>l["selected-item"](S)).slice():l.selected!==void 0?[].concat(l.selected()):t.useChips===!0?nn.value.map((S,ne)=>r.h($m,{key:"option-"+ne,removable:I.editable.value===!0&&Ht.value(S.opt)!==!0,dense:!0,textColor:t.color,tabindex:bt.value,onRemove(){S.removeAtIndex(ne)}},()=>r.h("span",{class:"ellipsis",[S.html===!0?"innerHTML":"textContent"]:Ze.value(S.opt)}))):[r.h("span",{[Ut.value===!0?"innerHTML":"textContent"]:Pe.value})]}function Yo(){if(Ae.value===!0)return l["no-option"]!==void 0?l["no-option"]({inputValue:v.value}):void 0;const S=l.option!==void 0?l.option:J=>r.h(Dm,{key:J.index,...J.itemProps},()=>r.h(Um,()=>r.h(zm,()=>r.h("span",{[J.html===!0?"innerHTML":"textContent"]:J.label}))));let ne=H("div",mt.value.map(S));return l["before-options"]!==void 0&&(ne=l["before-options"]().concat(ne)),bn(l["after-options"],ne)}function xl(S,ne){const J=ne===!0?{...it.value,...I.splitAttrs.attributes.value}:void 0,ve={ref:ne===!0?Q:void 0,key:"i_t",class:G.value,style:t.inputStyle,value:v.value!==void 0?v.value:"",type:"search",...J,id:ne===!0?I.targetUid.value:void 0,maxlength:t.maxlength,autocomplete:t.autocomplete,"data-autofocus":S===!0||t.autofocus===!0||void 0,disabled:t.disable===!0,readonly:t.readonly===!0,...Hn.value};return S!==!0&&b===!0&&(Array.isArray(ve.class)===!0?ve.class=[...ve.class,"no-pointer-events"]:ve.class+=" no-pointer-events"),r.h("input",ve)}function Xo(S){w!==null&&(clearTimeout(w),w=null),E!==null&&(clearTimeout(E),E=null),!(S&&S.target&&S.target.qComposing===!0)&&(jn(S.target.value||""),R=!0,P=v.value,I.focused.value!==!0&&(b!==!0||y.value===!0)&&I.focus(),t.onFilter!==void 0&&(w=setTimeout(()=>{w=null,An(v.value)},t.inputDebounce)))}function jn(S,ne){v.value!==S&&(v.value=S,ne===!0||t.inputDebounce===0||t.inputDebounce==="0"?i("inputValue",S):E=setTimeout(()=>{E=null,i("inputValue",S)},t.inputDebounce))}function Kn(S,ne,J){R=J!==!0,t.useInput===!0&&(jn(S,!0),(ne===!0||J!==!0)&&(P=S),ne!==!0&&An(S))}function An(S,ne,J){if(t.onFilter===void 0||ne!==!0&&I.focused.value!==!0)return;I.innerLoading.value===!0?i("filterAbort"):(I.innerLoading.value=!0,m.value=!0),S!==""&&t.multiple!==!0&&T.value.length!==0&&R!==!0&&S===Ze.value(T.value[0])&&(S="");const ve=setTimeout(()=>{c.value===!0&&(c.value=!1)},10);A!==null&&clearTimeout(A),A=ve,i("filter",S,(Ie,Te)=>{(ne===!0||I.focused.value===!0)&&A===ve&&(clearTimeout(A),typeof Ie=="function"&&Ie(),m.value=!1,r.nextTick(()=>{I.innerLoading.value=!1,I.editable.value===!0&&(ne===!0?c.value===!0&&on():c.value===!0?Yr(!0):c.value=!0),typeof Te=="function"&&r.nextTick(()=>{Te(u)}),typeof J=="function"&&r.nextTick(()=>{J(u)})}))},()=>{I.focused.value===!0&&A===ve&&(clearTimeout(A),I.innerLoading.value=!1,m.value=!1),c.value===!0&&(c.value=!1)})}function El(){return r.h(s0,{ref:K,class:re.value,style:t.popupContentStyle,modelValue:c.value,fit:t.menuShrink!==!0,cover:t.optionsCover===!0&&Ae.value!==!0&&t.useInput!==!0,anchor:t.menuAnchor,self:t.menuSelf,offset:t.menuOffset,dark:pe.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:t.popupNoRouteDismiss,square:Gr.value,transitionShow:t.transitionShow,transitionHide:t.transitionHide,transitionDuration:t.transitionDuration,separateClosePopup:!0,...wt.value,onScrollPassive:se,onBeforeShow:ei,onBeforeHide:Qr,onShow:Al},Yo)}function Qr(S){ti(S),kn()}function Al(){ge()}function Zr(S){Zt(S),Q.value!==null&&Q.value.focus(),y.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function kl(S){Zt(S),r.nextTick(()=>{y.value=!1})}function Bl(){const S=[r.h(Nm,{class:`col-auto ${I.fieldClass.value}`,...Y.value,for:I.targetUid.value,dark:pe.value,square:!0,loading:m.value,itemAligned:!1,filled:!0,stackLabel:v.value.length!==0,...I.splitAttrs.listeners.value,onFocus:Zr,onBlur:kl},{...l,rawControl:()=>I.getControl(!0),before:void 0,after:void 0})];return c.value===!0&&S.push(r.h("div",{ref:N,class:re.value+" scroll",style:t.popupContentStyle,...wt.value,onClick:$t,onScrollPassive:se},Yo())),r.h(p0,{ref:ie,modelValue:d.value,position:t.useInput===!0?"top":void 0,transitionShow:$,transitionHide:t.transitionHide,transitionDuration:t.transitionDuration,noRouteDismiss:t.popupNoRouteDismiss,onBeforeShow:ei,onBeforeHide:Ol,onHide:Tl,onShow:Rl},()=>r.h("div",{class:"q-select__dialog"+(pe.value===!0?" q-select__dialog--dark q-dark":"")+(y.value===!0?" q-select__dialog--focused":"")},S))}function Ol(S){ti(S),ie.value!==null&&ie.value.__updateRefocusTarget(I.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),I.focused.value=!1}function Tl(S){on(),I.focused.value===!1&&i("blur",S),ln()}function Rl(){const S=document.activeElement;(S===null||S.id!==I.targetUid.value)&&Q.value!==null&&Q.value!==S&&Q.value.focus(),ge()}function kn(){d.value!==!0&&(h.value=-1,c.value===!0&&(c.value=!1),I.focused.value===!1&&(A!==null&&(clearTimeout(A),A=null),I.innerLoading.value===!0&&(i("filterAbort"),I.innerLoading.value=!1,m.value=!1)))}function Bn(S){I.editable.value===!0&&(b===!0?(I.onControlFocusin(S),d.value=!0,r.nextTick(()=>{I.focus()})):I.focus(),t.onFilter!==void 0?An(v.value):(Ae.value!==!0||l["no-option"]!==void 0)&&(c.value=!0))}function on(){d.value=!1,kn()}function ln(){t.useInput===!0&&Kn(t.multiple!==!0&&t.fillInput===!0&&T.value.length!==0&&Ze.value(T.value[0])||"",!0,!0)}function Yr(S){let ne=-1;if(S===!0){if(T.value.length!==0){const J=Ue.value(T.value[0]);ne=t.options.findIndex(ve=>tn(Ue.value(ve),J))}ae(ne)}Yt(ne)}function Il(S,ne){c.value===!0&&I.innerLoading.value===!1&&(ae(-1,!0),r.nextTick(()=>{c.value===!0&&I.innerLoading.value===!1&&(S>ne?ae():Yr(!0))}))}function Jo(){d.value===!1&&K.value!==null&&K.value.updatePosition()}function ei(S){S!==void 0&&Zt(S),i("popupShow",S),I.hasPopupOpen=!0,I.onControlFocusin(S)}function ti(S){S!==void 0&&Zt(S),i("popupHide",S),I.hasPopupOpen=!1,I.onControlFocusout(S)}function ni(){b=a.platform.is.mobile!==!0&&t.behavior!=="dialog"?!1:t.behavior!=="menu"&&(t.useInput===!0?l["no-option"]!==void 0||t.onFilter!==void 0||Ae.value===!1:!0),$=a.platform.is.ios===!0&&b===!0&&t.useInput===!0?"fade":t.transitionShow}return r.onBeforeUpdate(ni),r.onUpdated(Jo),ni(),r.onBeforeUnmount(()=>{w!==null&&clearTimeout(w),E!==null&&clearTimeout(E)}),Object.assign(u,{showPopup:Bn,hidePopup:on,removeAtIndex:rn,add:pr,toggleOption:Wt,getOptionIndex:()=>h.value,setOptionIndex:Yt,moveOptionSelection:En,filter:An,updateMenuPosition:Jo,updateInputValue:Kn,isOptionSelected:Gn,getEmittingOptionValue:Go,isOptionDisabled:(...S)=>Ht.value.apply(null,S)===!0,getOptionValue:(...S)=>Ue.value.apply(null,S),getOptionLabel:(...S)=>Ze.value.apply(null,S)}),Object.assign(I,{innerValue:T,fieldClass:r.computed(()=>`q-select q-field--auto-height q-select--with${t.useInput!==!0?"out":""}-input q-select--with${t.useChips!==!0?"out":""}-chips q-select--${t.multiple===!0?"multiple":"single"}`),inputRef:W,targetRef:Q,hasValue:fe,showPopup:Bn,floatingLabel:r.computed(()=>t.hideSelected!==!0&&fe.value===!0||typeof v.value=="number"||v.value.length!==0||$r(t.displayValue)),getControlChild:()=>{if(I.editable.value!==!1&&(d.value===!0||Ae.value!==!0||l["no-option"]!==void 0))return b===!0?Bl():El();I.hasPopupOpen===!0&&(I.hasPopupOpen=!1)},controlEvents:{onFocusin(S){I.onControlFocusin(S)},onFocusout(S){I.onControlFocusout(S,()=>{ln(),kn()})},onClick(S){if($t(S),b!==!0&&c.value===!0){kn(),Q.value!==null&&Q.value.focus();return}Bn(S)}},getControl:S=>{const ne=Cl(),J=S===!0||d.value!==!0||b!==!0;if(t.useInput===!0)ne.push(xl(S,J));else if(I.editable.value===!0){const Ie=J===!0?it.value:void 0;ne.push(r.h("input",{ref:J===!0?Q:void 0,key:"d_t",class:"q-select__focus-target",id:J===!0?I.targetUid.value:void 0,value:Pe.value,readonly:!0,"data-autofocus":S===!0||t.autofocus===!0||void 0,...Ie,onKeydown:Qo,onKeyup:_r,onKeypress:Ko})),J===!0&&typeof t.autocomplete=="string"&&t.autocomplete.length!==0&&ne.push(r.h("input",{class:"q-select__autocomplete-input",autocomplete:t.autocomplete,tabindex:-1,onKeyup:jo}))}if(U.value!==void 0&&t.disable!==!0&&gr.value.length!==0){const Ie=gr.value.map(Te=>r.h("option",{value:Te,selected:!0}));ne.push(r.h("select",{class:"hidden",name:U.value,multiple:t.multiple},Ie))}const ve=t.useInput===!0||J!==!0?void 0:I.splitAttrs.attributes.value;return r.h("div",{class:"q-field__native row items-center",...ve,...I.splitAttrs.listeners.value},ne)},getInnerAppend:()=>t.loading!==!0&&m.value!==!0&&t.hideDropdownIcon!==!0?[r.h(dt,{class:"q-select__dropdown-icon"+(c.value===!0?" rotate-180":""),name:Cn.value})]:null}),nl(I)}}),S0=Qe(r.defineComponent({__name:"SelectControl",props:r.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=r.ref([]),i=r.useModel(t,"modelValue"),u=t,a=r.ref(!1),c=r.computed(()=>u.control.customParams),d=r.ref([]),h=r.computed(()=>{var w;return((w=c.value)==null?void 0:w.collection)||null}),v=r.computed(()=>h.value?d.value:u.control.options),y=sr();r.watch(h,w=>{if(!w)return;const E=y.getCollection(h.value);if(E){d.value=E;return}a.value=!0},{immediate:!0});function m(w,E){if(w===""){E(()=>{l.value=Ve.cloneDeep(v.value)});return}E(()=>{const x=w.toLowerCase();l.value=(v.value||[]).filter(b=>b.toLowerCase().includes(x))})}return(w,E)=>{const x=r.resolveComponent("ControlLabel");return r.openBlock(),r.createElementBlock(r.Fragment,null,[w.control.label?(r.openBlock(),r.createBlock(x,{key:0,label:w.control.label},null,8,["label"])):r.createCommentVNode("",!0),r.createVNode(Bo,{class:"q-card win-card row items-center q-px-md"},{default:r.withCtx(()=>[r.createVNode(hc,{borderless:"",label:w.control.label,modelValue:i.value,"onUpdate:modelValue":E[0]||(E[0]=b=>i.value=b),"emit-value":"","option-label":"label","map-options":"","use-input":"",clearable:"",onFilter:m,options:l.value,style:{minHeight:"70px",width:"300px",margin:"auto"}},null,8,["label","modelValue","options"])]),_:1})],64)}}}),[["__scopeId","data-v-fa1749f7"]]),C0={class:"text-center",style:{width:"100%"}},x0={class:"text-center text-weight-medium"},E0={class:"question-title"},A0=r.defineComponent({__name:"StepHeader",props:{formGroup:{},stepsCount:{}},setup(t){return(l,i)=>(r.openBlock(),r.createElementBlock("div",C0,[r.createElementVNode("div",x0,r.toDisplayString(l.formGroup.order+1)+"/"+r.toDisplayString(l.stepsCount),1),r.createElementVNode("div",E0,r.toDisplayString(l.formGroup.title||""),1)]))}});function mc(){return r.inject(Ph)}function gc(t,l){const{maxControlsPerGroup:i,notifyValidations:u}={...Kd,...l||{}},a=sr(),c=r.computed(()=>a.formSteps[t]),d=r.ref([]),h=r.ref([]),v=(x,b)=>{a.setControlValue(t,x);const R=d.value.find($=>$.id===b);R&&(h.value=Zd(R));const A=m(x),P=w(x);(A||P)&&y()};function y(){const x=c.value.controls,b=[];eh(x).forEach(A=>{const P=A.controls;if(P.every(M=>!Hi.includes(M.controlType))){b.push(A);return}let $={...A,controls:[]};for(const M of P)if(Hi.includes(M.controlType)){b.push($),$={...$,controls:[]};const j=Xd(A,M,i);b.push(...j)}else $.controls.push(M)}),d.value=Ve.orderBy(b,"order").map(A=>({...A,id:A.controls.map(P=>P.id).join("-")})).filter(A=>A.controls.some(P=>P.visible)).map((A,P)=>({...A,order:P,controls:A.controls.filter($=>$.visible)}))}function m({id:x,value:b}){let R=!1;const P=c.value.controls.filter($=>{var M;return((M=$.conditions)==null?void 0:M.some(j=>j.id===x))||!1});if(P!=null&&P.length)return P.forEach(({id:$,conditions:M,visible:j})=>{const W=M.every(Q=>{const{value:K,operator:ie}=Q;return{"==":b===K,"!=":b!==K,">":b>K,"<":b<K}[ie]||!1});j!==W&&(a.setControlVisibility(t,$,W),R=!0)}),R}function w({id:x,value:b}){const R=Number(b||0);let A=!1;const $=c.value.controls.filter(M=>{var j;return M.controlType==="dynamic_array"&&((j=M.itemsLength)==null?void 0:j.controlId)===x});if($!=null&&$.length)return $.forEach(({id:M,itemsLength:j})=>{(j==null?void 0:j.value)!==R&&(a.setControlItemsLength(t,M,R),A=!0)}),A}const{notify:E}=mc();return r.watch(h,x=>{x.length&&(u&&E({message:x[0],color:"negative",position:"bottom",timeout:5e3,actions:[{label:"✕",color:"white"}]}),h.value=[])},{deep:!0}),r.watch(c,()=>{y()},{immediate:!0}),{model:d,errorMessages:h,rebuildModel:y,onControlValueUpdate:v}}const k0={key:0,style:{height:"100%"}},B0={class:"q-py-sm"},O0={class:"form-steps-container"},T0={class:"row justify-center items-center",style:{height:"100%",width:"100vw"}},R0={class:"controls-container",style:{height:"100%"}},I0={class:"form-container flex column items-center q-px-md",style:{width:"100vw"}},F0=Qe(r.defineComponent({__name:"MultipleFormGroups",props:{index:{}},setup(t){const l=t,i=sr(),{model:u,onControlValueUpdate:a}=gc(l.index),c=r.computed(()=>u.value.length),d=r.ref(0),h=r.computed(()=>u.value[d.value]),v=m=>{const w=Ve.toPairs(Ve.groupBy(m,"row"));return Ve.orderBy(w,([E,x])=>Number(E),"asc").map(([E,x])=>({controls:Ve.orderBy(x,"col","asc")}))};r.watch(d,m=>{const w=m+1===c.value;i.setOnLastSubstep(w)},{immediate:!0});function y(m){return{input_text:ol,input_number:ol,checkbox:ms,switch:Mh,select:S0,cards_select:Oh}[m]||ol}return(m,w)=>h.value?(r.openBlock(),r.createElementBlock("div",k0,[r.createElementVNode("div",B0,[r.createVNode(A0,{formGroup:h.value,stepsCount:c.value},null,8,["formGroup","stepsCount"])]),r.createElementVNode("div",O0,[r.createElementVNode("div",T0,[r.createElementVNode("div",R0,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(u),E=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:E.id},[d.value===E.order?(r.openBlock(),r.createBlock(ch,{key:0,transition:"slide-left",style:{height:"75%",width:"100vw"},class:"row q-py-xs justify-center items-center bg-grey-1"},{default:r.withCtx(()=>[r.createElementVNode("div",I0,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(v(E.controls),(x,b)=>(r.openBlock(),r.createElementBlock("div",{class:"q-mb-xl",key:b},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(x.controls,(R,A)=>(r.openBlock(),r.createElementBlock("div",{key:A},[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(y(R.controlType)),{control:R,modelValue:x.controls[A].value,"onUpdate:modelValue":[P=>x.controls[A].value=P,P=>r.unref(a)(R,E.id)]},null,8,["control","modelValue","onUpdate:modelValue"]))]))),128))]))),128))])]),_:2},1024)):r.createCommentVNode("",!0)],64))),128)),r.createVNode(qm,{currentStep:d.value,stepsCount:c.value,nextDisabled:!h.value.valid,onPrev:w[0]||(w[0]=E=>d.value--),onNext:w[1]||(w[1]=E=>h.value.valid&&d.value++)},null,8,["currentStep","stepsCount","nextDisabled"])])])])])):r.createCommentVNode("",!0)}}),[["__scopeId","data-v-2d9dca33"]]),M0={style:{"font-size":"16px","padding-top":"1rem"}},L0={style:{"font-size":"16px","padding-top":"1rem"}},wl=Qe(r.defineComponent({__name:"SimpleInput",props:r.mergeModels({control:{},rules:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=r.useModel(t,"modelValue"),i=t,u=r.computed(()=>{var a;return(a=i.control.controlType)==null?void 0:a.split("_")[1]});return(a,c)=>(r.openBlock(),r.createBlock(Bo,{class:"q-px-md win-card"},{default:r.withCtx(()=>[r.createVNode(Bs,{borderless:"","reverse-fill-mask":"",modelValue:l.value,"onUpdate:modelValue":c[0]||(c[0]=d=>l.value=d),label:a.control.label,mask:u.value==="number"?"###.###.###.###.###":void 0,"input-class":{"text-right":u.value==="number"},"input-style":{fontSize:"16px"},rules:a.rules},r.createSlots({_:2},[a.control.prefix?{name:"prepend",fn:r.withCtx(()=>[r.createElementVNode("span",M0,r.toDisplayString(a.control.prefix),1)]),key:"0"}:void 0,a.control.suffix?{name:"append",fn:r.withCtx(()=>[r.createElementVNode("span",L0,r.toDisplayString(a.control.suffix),1)]),key:"1"}:void 0]),1032,["modelValue","label","mask","input-class","rules"])]),_:1}))}}),[["__scopeId","data-v-bd5dfdca"]]),pc=r.defineComponent({__name:"SimpleSelect",props:r.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=r.useModel(t,"modelValue");return(i,u)=>(r.openBlock(),r.createBlock(Bo,{class:"q-px-md win-card"},{default:r.withCtx(()=>[r.createVNode(hc,{borderless:"",label:i.control.label,options:i.control.options,modelValue:l.value,"onUpdate:modelValue":u[0]||(u[0]=a=>l.value=a),"emit-value":"","option-label":"label","map-options":""},null,8,["label","options","modelValue"])]),_:1}))}}),V0={key:0,style:{height:"100%"}},q0={class:"question-title text-center q-py-sm"},N0={class:"form-steps-container bg-grey-1"},P0={class:"form-container",style:{height:"100%"}},$0={class:"row items-center"},D0={class:"col-12 row"},U0=Qe(r.defineComponent({__name:"SingleFormGroup",props:{index:{}},setup(t){const l=t,{model:i,onControlValueUpdate:u}=gc(l.index,{notifyValidations:!1});function a(v){return{input_text:wl,input_number:wl,select:pc,cards_select:pc,checkbox:ms}[v]||wl}const c=v=>Ve.orderBy(Ve.toPairs(Ve.groupBy(v,"row")),"row").map(([y,m])=>({controls:Ve.orderBy(m,"col")}));function d(v){return[y=>{var w;let m="";return(w=v.validators)==null||w.some(E=>{const{param:x,validator:b}=E,R=$u[b];return R.fn(Number(x))({...v,value:y})?!1:(m=R.message,!0)}),!m.length||m}]}const h=sr();return r.onMounted(()=>h.setOnLastSubstep(!0)),(v,y)=>r.unref(i)?(r.openBlock(),r.createElementBlock("div",V0,[r.createElementVNode("div",q0,r.toDisplayString(r.unref(i)[0].title),1),r.createElementVNode("div",N0,[r.createElementVNode("div",P0,[r.createElementVNode("div",$0,[r.createElementVNode("div",D0,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c(r.unref(i)[0].controls),(m,w)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(c(r.unref(i)[0].controls).length>1?"col-md-6 col-12":"col-12"),key:w},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(m.controls,(E,x)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(`col-xs-12 col-sm q-pa-xs ${c(r.unref(i)[0].controls).length>1?"col-md-6 col-12":"col-12"}`),key:x},[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(a(E.controlType)),{control:E,modelValue:E.value,"onUpdate:modelValue":[b=>E.value=b,b=>r.unref(u)(E,r.unref(i)[0].id)],rules:d(E)},null,8,["control","modelValue","onUpdate:modelValue","rules"]))],2))),128))],2))),128))])])])])])):r.createCommentVNode("",!0)}}),[["__scopeId","data-v-a8cd1002"]]),Sl=t=>(r.pushScopeId("data-v-ea1ef607"),t=t(),r.popScopeId(),t),z0={class:"buttons-container"},H0={class:"max-container"},W0={key:0,class:"row checkbox justify-end q-my-sm"},G0={style:{"max-width":"650px"}},j0=Sl(()=>r.createElementVNode("br",{class:"gt-sm"},null,-1)),K0={class:"row justify-between q-my-md q-px-md q-pb-xl"},Q0=Sl(()=>r.createElementVNode("span",{class:"text-black"},"Atrás",-1)),Z0={key:1},Y0={key:0,class:"text-black"},X0=Sl(()=>r.createElementVNode("span",{class:"gt-sm"},"formulario",-1)),J0={key:1,class:"text-black"},eg=Qe(r.defineComponent({__name:"StepsNavigationButtons",emits:["submit"],setup(t,{emit:l}){const{nextStep:i,previousStep:u,currentStep:a,stepsCount:c,nextDisabled:d,onLastSubstep:h}=r.toRefs(sr()),v=l,y=r.ref(!1),m=E=>{},w=()=>{a.value===c.value?v("submit"):i.value()};return(E,x)=>(r.openBlock(),r.createElementBlock("div",z0,[r.createElementVNode("div",H0,[r.unref(a)===r.unref(c)?(r.openBlock(),r.createElementBlock("div",W0,[r.createElementVNode("div",G0,[r.createVNode(hs,{color:"info",class:"checkbox",modelValue:y.value,"onUpdate:modelValue":x[1]||(x[1]=b=>y.value=b)},{default:r.withCtx(()=>[r.createElementVNode("div",null,[r.createTextVNode(" He leído, comprendo y acepto los términos de tratamiento de datos "),j0,r.createTextVNode(" personales para esta solicitud. Más info. sobre la protección de datos "),r.createElementVNode("span",{style:{"text-decoration":"underline"},onClick:x[0]||(x[0]=b=>m())},"aquí"),r.createTextVNode(". ")])]),_:1},8,["modelValue"])])])):r.createCommentVNode("",!0),r.createElementVNode("div",K0,[r.unref(a)>1?(r.openBlock(),r.createBlock(Tt,{key:0,color:"info",class:"q-px-xl q-py-sm q-mr-sm win-btn win-btn-primary bg-white",onClick:r.unref(u),flat:"","no-caps":""},{default:r.withCtx(()=>[Q0]),_:1},8,["onClick"])):(r.openBlock(),r.createElementBlock("div",Z0)),r.createElementVNode("div",null,[!r.unref(d)&&r.unref(h)?(r.openBlock(),r.createBlock(Tt,{key:0,color:"green",class:"q-px-xl q-py-sm q-ml-sm win-btn win-btn-primary bg-white",onClick:w,disable:r.unref(a)===r.unref(c)&&!y.value,flat:"","no-caps":""},{default:r.withCtx(()=>[r.unref(a)===r.unref(c)?(r.openBlock(),r.createElementBlock("span",Y0,[r.createTextVNode(" Enviar "),X0])):(r.openBlock(),r.createElementBlock("span",J0," Siguiente "))]),_:1},8,["disable"])):r.createCommentVNode("",!0)])])])]))}}),[["__scopeId","data-v-ea1ef607"]]),vc=r.defineComponent({__name:"DynamicForm",props:{forms:{}},emits:["onSubmit"],setup(t,{emit:l}){const i=t,u=l,a=r.ref(!1),c=sr(),d=v=>Ve.keys(Ve.groupBy(v.controls,"group")).length===1;r.watch(()=>i.forms,v=>{const m=new Hu().fromRaw(v);c.setFormSteps(m)},{immediate:!0});function h(){const v=Ve.cloneDeep(c.formSteps),m=new Hu().toRaw(v);u("onSubmit",m)}return(v,y)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("div",null,[r.renderSlot(v.$slots,"header"),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(c).formSteps,(m,w)=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:w},[d(m)?r.withDirectives((r.openBlock(),r.createBlock(U0,{key:0,index:w},null,8,["index"])),[[r.vShow,r.unref(c).currentStep===w+1]]):r.withDirectives((r.openBlock(),r.createBlock(F0,{key:1,index:w,onOnLastStep:y[0]||(y[0]=E=>a.value=E)},null,8,["index"])),[[r.vShow,r.unref(c).currentStep===w+1]])],64))),128))]),r.createVNode(eg,{onSubmit:h})],64))}}),tg=r.createElementVNode("img",{src:"https://upload.wikimedia.org/wikipedia/commons/thumb/9/95/Vue.js_Logo_2.svg/640px-Vue.js_Logo_2.svg.png",alt:""},null,-1),_c=r.defineComponent({__name:"TestUi",setup(t){const l=r.ref("Test W2W UI!");return(i,u)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[tg,r.createElementVNode("h1",null,r.toDisplayString(l.value),1)],64))}}),ng=r.defineComponent({__name:"DomSection",props:{section:{}},setup(t){const l=r.ref(null),i=t;return r.watch([()=>i.section,l],([u,a])=>{u&&a&&a.appendChild(u)}),(u,a)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"container",ref:l},null,512))}});function yc(t,l){const i=`{{${l}}}`;try{const u=l.split(".").flatMap(a=>{var h;const c=/(\w+)\[(\d+)\]/g,d=(h=Array.from(a.matchAll(c)))==null?void 0:h[0];return d!=null&&d.length?d.slice(1):a});return(u==null?void 0:u.reduce((a,c)=>(a==null?void 0:a[c])||"",t))||i}catch(u){return console.error(u),i}}function rg(t,l,i){const u=l.split(".");if(!u.length)return t;const a=u.pop(),c=u.reduce((d,h)=>(d[h]||(d[h]={}),d[h]),t);return c[a]=i,t}const og={class:"card"},ig={key:0,class:"card-header"},lg=["contenteditable"],ag={class:"card-content"},ug=["contenteditable"],sg=["contenteditable"],cg=Qe(r.defineComponent({__name:"Card",props:{card:{},data:{}},setup(t){const l=t;function i(c){const d=c.value||yc(l.data,c.key||"");return u(d,c.format)}function u(c,d){return d?d==="currency"?new Intl.NumberFormat("es-ES",{style:"currency",currency:"EUR"}).format(c):d==="percentage"?`${c} %`:c:c}const a=r.inject("editable");return(c,d)=>(r.openBlock(),r.createElementBlock("div",og,[c.card.title||c.card.subtitle?(r.openBlock(),r.createElementBlock("div",ig,[c.card.title?(r.openBlock(),r.createElementBlock("h3",{key:0,contenteditable:r.unref(a)},r.toDisplayString(c.card.title),9,lg)):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),r.createElementVNode("div",ag,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c.card.fields,(h,v)=>(r.openBlock(),r.createElementBlock("div",{key:v,class:"card-field"},[r.createElementVNode("span",{contenteditable:r.unref(a),class:"field-label"},r.toDisplayString(h.label),9,ug),r.createElementVNode("span",{contenteditable:r.unref(a),class:"field-value"},r.toDisplayString(i(h)),9,sg)]))),128))])]))}}),[["__cssModules",{$style:{card:"_card_12eql_1","card-header":"_card-header_12eql_8","card-content":"_card-content_12eql_22","card-field":"_card-field_12eql_22","field-label":"_field-label_12eql_27","field-value":"_field-value_12eql_30"}}]]);function Wo(t,l={}){const i=r.inject("data"),u=r.computed(()=>i.value[t]||l),a=r.computed(()=>i.value.global||{}),c=r.computed(()=>({...a.value,...u.value}));return{sectionData:u,globalData:a,data:c}}const fg=Qe(r.defineComponent({__name:"CardGridSection",props:{styles:{},id:{},content:{}},setup(t){const l=t,{data:i}=Wo(l.id,{});return(u,a)=>{var c;return r.openBlock(),r.createElementBlock("div",{class:"card-section",style:r.normalizeStyle(((c=u.styles)==null?void 0:c.cssRaw)||"")},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(u.content.cards,(d,h)=>(r.openBlock(),r.createBlock(cg,{key:h,card:d,data:r.unref(i)},null,8,["card","data"]))),128))],4)}}}),[["__cssModules",{$style:{"card-section":"_card-section_1xfbl_2"}}]]),dg=["src","alt"],hg=Qe(r.defineComponent({__name:"ImageSection",props:{styles:{},id:{},content:{}},setup(t){const l=t,{content:i,styles:u}=r.toRefs(l);return Wo(l.id,{}),(a,c)=>(r.openBlock(),r.createElementBlock("div",{style:r.normalizeStyle({justifyContent:r.unref(i).align}),class:"img-container"},[r.createElementVNode("img",{src:r.unref(i).src,alt:r.unref(i).alt,style:r.normalizeStyle({width:r.unref(i).width,height:r.unref(i).height})},null,12,dg)],4))}}),[["__cssModules",{$style:{"img-container":"_img-container_17yzt_2"}}]]),mg={class:"section"},gg={key:0},pg={key:0,class:"no-print"},vg={class:"signature"},_g={class:"flex justify-end q-gutter-sm q-pa-sm"},yg={key:1,class:"column",style:{"max-width":"100vw"}},bg=["src"],wg={class:"flex justify-end q-mt-sm no-print"},Sg={key:1,class:"flex justify-center q-pa-lg"},Cg=Qe(r.defineComponent({__name:"SignatureSection",props:{styles:{},id:{},content:{}},emits:["save","clear","cancel","edit"],setup(t,{emit:l}){const i=t,u=r.computed(()=>i.content.signable),a=r.ref(null),c=r.ref(""),d=r.ref(!1),{screen:h}=mc(),v=()=>{var x;(x=a.value)==null||x.clearSignature()},y=l,m=()=>{var R;const{isEmpty:x,data:b}=(R=a.value)==null?void 0:R.saveSignature();x||(c.value=b,d.value=!1,y("save"))},w=()=>{d.value=!0,y("edit")},E=()=>{d.value=!1,y("cancel")};return(x,b)=>{const R=r.resolveComponent("VueSignaturePad");return r.openBlock(),r.createElementBlock("div",mg,[u.value?(r.openBlock(),r.createElementBlock("div",gg,[d.value?(r.openBlock(),r.createElementBlock("div",pg,[r.createElementVNode("div",vg,[r.createVNode(R,{width:r.unref(h).lt.md?"100vw":"auto",height:"240px",ref_key:"signaturePad",ref:a},null,8,["width"])]),r.createElementVNode("div",_g,[r.createVNode(Tt,{unelevated:"",outline:"",onClick:E},{default:r.withCtx(()=>[r.createTextVNode("Cancelar")]),_:1}),r.createVNode(Tt,{unelevated:"",outline:"",onClick:v},{default:r.withCtx(()=>[r.createTextVNode("Limpiar")]),_:1}),r.createVNode(Tt,{unelevated:"",outline:"",onClick:m},{default:r.withCtx(()=>[r.createTextVNode("Confirmar")]),_:1})])])):(r.openBlock(),r.createElementBlock("div",yg,[r.createElementVNode("img",{src:c.value,height:"240"},null,8,bg),r.createElementVNode("div",wg,[r.createVNode(Tt,{onClick:w},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(c.value?"Volver a firmar":"Firmar"),1)]),_:1})])]))])):(r.openBlock(),r.createElementBlock("div",Sg,"[FIRMA]"))])}}}),[["__scopeId","data-v-52c4a9ac"]]),xg=["contenteditable"],Eg=["contenteditable"],Ag="#f5f5f5",kg=Qe(r.defineComponent({__name:"TableSection",props:{styles:{},id:{},content:{}},setup(t){const l=t,{columns:i}=r.toRefs(l.content),{data:u}=Wo(l.id,[]),a=r.computed(()=>[...u.value[l.content.rowsKey]||[]]),c=r.inject("editable");return(d,h)=>{var v;return r.openBlock(),r.createElementBlock("table",{style:r.normalizeStyle("width: 100%;"+((v=d.styles)==null?void 0:v.cssRaw)||""),class:"table-section"},[r.createElementVNode("thead",null,[r.createElementVNode("tr",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(i),y=>(r.openBlock(),r.createElementBlock("th",{key:y.key,style:r.normalizeStyle({textAlign:y.align||"left"}),contenteditable:r.unref(c)},r.toDisplayString(y.header),13,xg))),128))])]),r.createElementVNode("tbody",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(a.value,(y,m)=>(r.openBlock(),r.createElementBlock("tr",{key:m,style:r.normalizeStyle({backgroundColor:m%2===0?Ag:"transparent"})},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(i),w=>(r.openBlock(),r.createElementBlock("td",{key:w.key,style:r.normalizeStyle({textAlign:w.align||"left"}),contenteditable:r.unref(c)},r.toDisplayString(y[w.key]),13,Eg))),128))],4))),128))])],4)}}}),[["__cssModules",{$style:{"table-section":"_table-section_aicx8_1"}}]]),bc=He({name:"QTooltip",inheritAttrs:!1,props:{...Ds,...al,...Ur,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null},transitionShow:{...Ur.transitionShow,default:"jump-down"},transitionHide:{...Ur.transitionHide,default:"jump-up"},anchor:{type:String,default:"bottom middle",validator:$o},self:{type:String,default:"top middle",validator:$o},offset:{type:Array,default:()=>[14,14],validator:ec},scrollTarget:Ws,delay:{type:Number,default:0},hideDelay:{type:Number,default:0},persistent:Boolean},emits:[...ul],setup(t,{slots:l,emit:i,attrs:u}){let a,c;const d=r.getCurrentInstance(),{proxy:{$q:h}}=d,v=r.ref(null),y=r.ref(!1),m=r.computed(()=>Do(t.anchor,h.lang.rtl)),w=r.computed(()=>Do(t.self,h.lang.rtl)),E=r.computed(()=>t.persistent!==!0),{registerTick:x,removeTick:b}=dl(),{registerTimeout:R}=qr(),{transitionProps:A,transitionStyle:P}=fl(t),{localScrollTarget:$,changeScrollEvent:M,unconfigureScrollTarget:j}=zs(t,ge),{anchorEl:W,canShow:Q,anchorEvents:K}=Us({showing:y,configureAnchorEl:Be}),{show:ie,hide:N}=sl({showing:y,canShow:Q,handleShow:te,handleHide:D,hideOnRouteChange:E,processOnMount:!0});Object.assign(K,{delayShow:H,delayHide:se});const{showPortal:U,hidePortal:Z,renderPortal:O}=cl(d,v,T,"tooltip");if(h.platform.is.mobile===!0){const Y={anchorEl:W,innerRef:v,onClickOutside(fe){return N(fe),fe.target.classList.contains("q-dialog__backdrop")&&De(fe),!0}},pe=r.computed(()=>t.modelValue===null&&t.persistent!==!0&&y.value===!0);r.watch(pe,fe=>{(fe===!0?Ys:Po)(Y)}),r.onBeforeUnmount(()=>{Po(Y)})}function te(Y){U(),x(()=>{c=new MutationObserver(()=>ae()),c.observe(v.value,{attributes:!1,childList:!0,characterData:!0,subtree:!0}),ae(),ge()}),a===void 0&&(a=r.watch(()=>h.screen.width+"|"+h.screen.height+"|"+t.self+"|"+t.anchor+"|"+h.lang.rtl,ae)),R(()=>{U(!0),i("show",Y)},t.transitionDuration)}function D(Y){b(),Z(),le(),R(()=>{Z(!0),i("hide",Y)},t.transitionDuration)}function le(){c!==void 0&&(c.disconnect(),c=void 0),a!==void 0&&(a(),a=void 0),j(),ko(K,"tooltipTemp")}function ae(){gl({targetEl:v.value,offset:t.offset,anchorEl:W.value,anchorOrigin:m.value,selfOrigin:w.value,maxHeight:t.maxHeight,maxWidth:t.maxWidth})}function H(Y){if(h.platform.is.mobile===!0){ll(),document.body.classList.add("non-selectable");const pe=W.value,fe=["touchmove","touchcancel","touchend","click"].map(G=>[pe,G,"delayHide","passiveCapture"]);Nr(K,"tooltipTemp",fe)}R(()=>{ie(Y)},t.delay)}function se(Y){h.platform.is.mobile===!0&&(ko(K,"tooltipTemp"),ll(),setTimeout(()=>{document.body.classList.remove("non-selectable")},10)),R(()=>{N(Y)},t.hideDelay)}function Be(){if(t.noParentEvent===!0||W.value===null)return;const Y=h.platform.is.mobile===!0?[[W.value,"touchstart","delayShow","passive"]]:[[W.value,"mouseenter","delayShow","passive"],[W.value,"mouseleave","delayHide","passive"]];Nr(K,"anchor",Y)}function ge(){if(W.value!==null||t.scrollTarget!==void 0){$.value=Gs(W.value,t.scrollTarget);const Y=t.noParentEvent===!0?ae:N;M($.value,Y)}}function I(){return y.value===!0?r.h("div",{...u,ref:v,class:["q-tooltip q-tooltip--style q-position-engine no-pointer-events",u.class],style:[u.style,P.value],role:"tooltip"},ot(l.default)):null}function T(){return r.h(r.Transition,A.value,I)}return r.onBeforeUnmount(le),Object.assign(d.proxy,{updatePosition:ae}),O}}),Bg={class:"section"},Og={key:0,class:"no-print"},Tg={class:"add-btn"},Rg=["contenteditable"],Ig=["contenteditable"],Fg={class:"p-container"},Mg=["contenteditable"],Lg={key:0,class:"remove-btn no-print"},Vg=Qe(r.defineComponent({__name:"TextSection",props:{styles:{},id:{},content:{}},setup(t){const l=t,{data:i}=Wo(l.id,{}),u=r.computed(()=>{var w;return((w=l.content)==null?void 0:w.lines)||[]}),a=r.ref([]),c=r.inject("editable"),d=(w,E,x)=>{if(!E)return h(i.value,w);const b={};return Object.keys(E).forEach(A=>{const P=`${x}.${A}`;rg(b,P,E[A])}),h(b,w)};r.watch(u,w=>{a.value=Ve.cloneDeep(w)},{deep:!0,immediate:!0});function h(w,E){const x=E.match(/{{(.*?)}}/g);return x?x.reduce((b,R)=>{const A=R.replace(/{{|}}/g,"").trim(),P=yc(w,A);return b.replace(R,P??A)},E):E}const v=()=>{if(!(c!=null&&c.value))return;const w=a.value.length,E={type:rt.TextLineType.PARAGRAPH,text:"Párrafo "+w};a.value.push(E)},y=w=>{c!=null&&c.value&&a.value.splice(w,1)},m=w=>w.split(`
28
- `);return(w,E)=>{var x;return r.openBlock(),r.createElementBlock("div",Bg,[r.unref(c)?(r.openBlock(),r.createElementBlock("div",Og,[r.createElementVNode("div",Tg,[r.createVNode(Tt,{size:"sm",round:"",color:"black",onClick:v,icon:"add"},{default:r.withCtx(()=>[r.createVNode(bc,null,{default:r.withCtx(()=>[r.createTextVNode("Agregar párrafo")]),_:1})]),_:1})])])):r.createCommentVNode("",!0),r.createElementVNode("div",{style:r.normalizeStyle(((x=w.styles)==null?void 0:x.cssRaw)||"")},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(a.value,({type:b,text:R,align:A,sourceCollection:P,styles:$},M)=>(r.openBlock(),r.createElementBlock("div",{style:r.normalizeStyle({textAlign:A||"left"})},[b==="title"?(r.openBlock(),r.createElementBlock("h1",{key:0,contenteditable:r.unref(c),style:r.normalizeStyle($||{})},r.toDisplayString(d(R,null)),13,Rg)):r.createCommentVNode("",!0),b==="subtitle"?(r.openBlock(),r.createElementBlock("h2",{key:1,contenteditable:r.unref(c),style:r.normalizeStyle($||{})},r.toDisplayString(d(R,null)),13,Ig)):r.createCommentVNode("",!0),b==="paragraph"?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:2},r.renderList(P?r.unref(i)[P]:[null],j=>(r.openBlock(),r.createElementBlock("div",Fg,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(m(d(R,j,P)),W=>(r.openBlock(),r.createElementBlock("p",{contenteditable:r.unref(c),style:r.normalizeStyle($||{})},r.toDisplayString(W),13,Mg))),256)),r.unref(c)?(r.openBlock(),r.createElementBlock("div",Lg,[r.createVNode(Tt,{size:"sm",r:"",round:"",color:"black",onClick:W=>y(M),icon:"delete"},{default:r.withCtx(()=>[r.createVNode(bc,null,{default:r.withCtx(()=>[r.createTextVNode("Eliminar párrafo")]),_:1})]),_:2},1032,["onClick"])])):r.createCommentVNode("",!0)]))),256)):r.createCommentVNode("",!0)],4))),256))],4)])}}}),[["__cssModules",{$style:{section:"_section_1q071_1","p-container":"_p-container_1q071_2","add-btn":"_add-btn_1q071_6","remove-btn":"_remove-btn_1q071_13","no-print":"_no-print_1q071_41"}}]]),qg=r.h("svg",{key:"svg",class:"q-radio__bg absolute non-selectable",viewBox:"0 0 24 24"},[r.h("path",{d:"M12,22a10,10 0 0 1 -10,-10a10,10 0 0 1 10,-10a10,10 0 0 1 10,10a10,10 0 0 1 -10,10m0,-22a12,12 0 0 0 -12,12a12,12 0 0 0 12,12a12,12 0 0 0 12,-12a12,12 0 0 0 -12,-12"}),r.h("path",{class:"q-radio__check",d:"M12,6a6,6 0 0 0 -6,6a6,6 0 0 0 6,6a6,6 0 0 0 6,-6a6,6 0 0 0 -6,-6"})]),wc=He({name:"QRadio",props:{...wn,...Mr,...Ao,modelValue:{required:!0},val:{required:!0},label:String,leftLabel:Boolean,checkedIcon:String,uncheckedIcon:String,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},emits:["update:modelValue"],setup(t,{slots:l,emit:i}){const{proxy:u}=r.getCurrentInstance(),a=Sn(t,u.$q),c=Lr(t,us),d=r.ref(null),{refocusTargetEl:h,refocusTarget:v}=is(t,d),y=r.computed(()=>r.toRaw(t.modelValue)===r.toRaw(t.val)),m=r.computed(()=>"q-radio cursor-pointer no-outline row inline no-wrap items-center"+(t.disable===!0?" disabled":"")+(a.value===!0?" q-radio--dark":"")+(t.dense===!0?" q-radio--dense":"")+(t.leftLabel===!0?" reverse":"")),w=r.computed(()=>{const M=t.color!==void 0&&(t.keepColor===!0||y.value===!0)?` text-${t.color}`:"";return`q-radio__inner relative-position q-radio__inner--${y.value===!0?"truthy":"falsy"}${M}`}),E=r.computed(()=>(y.value===!0?t.checkedIcon:t.uncheckedIcon)||null),x=r.computed(()=>t.disable===!0?-1:t.tabindex||0),b=r.computed(()=>{const M={type:"radio"};return t.name!==void 0&&Object.assign(M,{".checked":y.value===!0,"^checked":y.value===!0?"checked":void 0,name:t.name,value:t.val}),M}),R=ls(b);function A(M){M!==void 0&&(De(M),v(M)),t.disable!==!0&&y.value!==!0&&i("update:modelValue",t.val,M)}function P(M){(M.keyCode===13||M.keyCode===32)&&De(M)}function $(M){(M.keyCode===13||M.keyCode===32)&&A(M)}return Object.assign(u,{set:A}),()=>{const M=E.value!==null?[r.h("div",{key:"icon",class:"q-radio__icon-container absolute-full flex flex-center no-wrap"},[r.h(dt,{class:"q-radio__icon",name:E.value})])]:[qg];t.disable!==!0&&R(M,"unshift"," q-radio__native q-ma-none q-pa-none");const j=[r.h("div",{class:w.value,style:c.value,"aria-hidden":"true"},M)];h.value!==null&&j.push(h.value);const W=t.label!==void 0?bn(l.default,[t.label]):ot(l.default);return W!==void 0&&j.push(r.h("div",{class:"q-radio__label q-anchor--skip"},W)),r.h("div",{ref:d,class:m.value,tabindex:x.value,role:"radio","aria-label":t.label,"aria-checked":y.value===!0?"true":"false","aria-disabled":t.disable===!0?"true":void 0,onClick:A,onKeydown:P,onKeyup:$},j)}}}),Ng={class:"section"},Pg={class:"q-py-md-lg q-my-md q-px-xs row justify-center items-center"},$g=Qe(r.defineComponent({__name:"RadioButtonsSection",props:{styles:{},id:{},content:{}},setup(t){const l=r.ref("");return(i,u)=>(r.openBlock(),r.createElementBlock("div",Ng,[r.createElementVNode("div",Pg,[r.createVNode(wc,{modelValue:l.value,"onUpdate:modelValue":u[0]||(u[0]=a=>l.value=a),val:"si",label:"Sí acepto",class:"q-mx-md"},null,8,["modelValue"]),r.createVNode(wc,{modelValue:l.value,"onUpdate:modelValue":u[1]||(u[1]=a=>l.value=a),val:"No",label:"No acepto",class:"q-mx-md"},null,8,["modelValue"])])]))}}),[["__scopeId","data-v-c483c6de"]]),Dg=r.defineComponent({__name:"SectionWrapper",props:{section:{}},setup(t){const l=t,i={[rt.LayoutSectionType.TEXT]:Vg,[rt.LayoutSectionType.IMAGE]:hg,[rt.LayoutSectionType.TABLE]:kg,[rt.LayoutSectionType.CARDS_GRID]:fg,[rt.LayoutSectionType.SIGNATURE]:Cg,[rt.LayoutSectionType.RADIO_BUTTONS]:$g},u=r.computed(()=>l.section.type),a=r.computed(()=>({content:l.section.content,styles:l.section.styles,id:l.section.idDocLaySection}));return(c,d)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(i[u.value]),r.normalizeProps(r.guardReactiveProps(a.value)),null,16))}}),Sc=Qe(r.defineComponent({__name:"SectionsContainer",props:{layout:{},data:{},htmlNodes:{},editable:{type:Boolean}},setup(t){var h;const l=t,{layout:i,data:u,editable:a}=r.toRefs(l);r.provide("data",u),r.provide("editable",a||r.ref(!1));const c=r.computed(()=>{var y;const v=i.value.sections.map(m=>({type:"default",section:m}));return(y=l.htmlNodes)==null||y.forEach(({index:m,element:w})=>{const E=m>v.length?v.length:m;v.splice(E,0,{type:"html",section:w})}),v}),d=((h=i.value.styles)==null?void 0:h.cssRaw)||"";return(v,y)=>(r.openBlock(),r.createElementBlock("div",{class:"sections-container",style:r.normalizeStyle(r.unref(d))},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c.value,({type:m,section:w})=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[m==="default"?(r.openBlock(),r.createBlock(Dg,{key:0,section:w},null,8,["section"])):(r.openBlock(),r.createBlock(ng,{key:1,section:w},null,8,["section"]))],64))),256))],4))}}),[["__cssModules",{$style:{"sections-container":"_sections-container_1wrbi_3"}}]]),Ug={install(t,l){if(l!=null&&l.pinia)t.use(l.pinia);else throw new Error("No se ha encontrado una instancia de pinia");t.component("DynamicForm",vc),t.component("TestUi",_c),t.component("SectionsContainer",Sc)}};Pt.DynamicForm=vc,Pt.SectionsContainer=Sc,Pt.TestUi=_c,Pt.default=Ug,Object.defineProperties(Pt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
28
+ `);return(w,E)=>{var x;return r.openBlock(),r.createElementBlock("div",Bg,[r.unref(c)?(r.openBlock(),r.createElementBlock("div",Og,[r.createElementVNode("div",Tg,[r.createVNode(Tt,{size:"sm",round:"",color:"black",onClick:v,icon:"add"},{default:r.withCtx(()=>[r.createVNode(bc,null,{default:r.withCtx(()=>[r.createTextVNode("Agregar párrafo")]),_:1})]),_:1})])])):r.createCommentVNode("",!0),r.createElementVNode("div",{style:r.normalizeStyle(((x=w.styles)==null?void 0:x.cssRaw)||"")},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(a.value,({type:b,text:R,align:A,sourceCollection:P,styles:$},M)=>(r.openBlock(),r.createElementBlock("div",{style:r.normalizeStyle({textAlign:A||"left"})},[b==="title"?(r.openBlock(),r.createElementBlock("h1",{key:0,contenteditable:r.unref(c),style:r.normalizeStyle($||{})},r.toDisplayString(d(R,null)),13,Rg)):r.createCommentVNode("",!0),b==="subtitle"?(r.openBlock(),r.createElementBlock("h2",{key:1,contenteditable:r.unref(c),style:r.normalizeStyle($||{})},r.toDisplayString(d(R,null)),13,Ig)):r.createCommentVNode("",!0),b==="paragraph"?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:2},r.renderList(P?r.unref(i)[P]:[null],j=>(r.openBlock(),r.createElementBlock("div",Fg,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(m(d(R,j,P)),W=>(r.openBlock(),r.createElementBlock("p",{contenteditable:r.unref(c),style:r.normalizeStyle($||{})},r.toDisplayString(W),13,Mg))),256)),r.unref(c)?(r.openBlock(),r.createElementBlock("div",Lg,[r.createVNode(Tt,{size:"sm",r:"",round:"",color:"black",onClick:W=>y(M),icon:"delete"},{default:r.withCtx(()=>[r.createVNode(bc,null,{default:r.withCtx(()=>[r.createTextVNode("Eliminar párrafo")]),_:1})]),_:2},1032,["onClick"])])):r.createCommentVNode("",!0)]))),256)):r.createCommentVNode("",!0)],4))),256))],4)])}}}),[["__cssModules",{$style:{section:"_section_besae_1","p-container":"_p-container_besae_2","add-btn":"_add-btn_besae_6","remove-btn":"_remove-btn_besae_13","no-print":"_no-print_besae_41"}}]]),qg=r.h("svg",{key:"svg",class:"q-radio__bg absolute non-selectable",viewBox:"0 0 24 24"},[r.h("path",{d:"M12,22a10,10 0 0 1 -10,-10a10,10 0 0 1 10,-10a10,10 0 0 1 10,10a10,10 0 0 1 -10,10m0,-22a12,12 0 0 0 -12,12a12,12 0 0 0 12,12a12,12 0 0 0 12,-12a12,12 0 0 0 -12,-12"}),r.h("path",{class:"q-radio__check",d:"M12,6a6,6 0 0 0 -6,6a6,6 0 0 0 6,6a6,6 0 0 0 6,-6a6,6 0 0 0 -6,-6"})]),wc=He({name:"QRadio",props:{...wn,...Mr,...Ao,modelValue:{required:!0},val:{required:!0},label:String,leftLabel:Boolean,checkedIcon:String,uncheckedIcon:String,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},emits:["update:modelValue"],setup(t,{slots:l,emit:i}){const{proxy:u}=r.getCurrentInstance(),a=Sn(t,u.$q),c=Lr(t,us),d=r.ref(null),{refocusTargetEl:h,refocusTarget:v}=is(t,d),y=r.computed(()=>r.toRaw(t.modelValue)===r.toRaw(t.val)),m=r.computed(()=>"q-radio cursor-pointer no-outline row inline no-wrap items-center"+(t.disable===!0?" disabled":"")+(a.value===!0?" q-radio--dark":"")+(t.dense===!0?" q-radio--dense":"")+(t.leftLabel===!0?" reverse":"")),w=r.computed(()=>{const M=t.color!==void 0&&(t.keepColor===!0||y.value===!0)?` text-${t.color}`:"";return`q-radio__inner relative-position q-radio__inner--${y.value===!0?"truthy":"falsy"}${M}`}),E=r.computed(()=>(y.value===!0?t.checkedIcon:t.uncheckedIcon)||null),x=r.computed(()=>t.disable===!0?-1:t.tabindex||0),b=r.computed(()=>{const M={type:"radio"};return t.name!==void 0&&Object.assign(M,{".checked":y.value===!0,"^checked":y.value===!0?"checked":void 0,name:t.name,value:t.val}),M}),R=ls(b);function A(M){M!==void 0&&(De(M),v(M)),t.disable!==!0&&y.value!==!0&&i("update:modelValue",t.val,M)}function P(M){(M.keyCode===13||M.keyCode===32)&&De(M)}function $(M){(M.keyCode===13||M.keyCode===32)&&A(M)}return Object.assign(u,{set:A}),()=>{const M=E.value!==null?[r.h("div",{key:"icon",class:"q-radio__icon-container absolute-full flex flex-center no-wrap"},[r.h(dt,{class:"q-radio__icon",name:E.value})])]:[qg];t.disable!==!0&&R(M,"unshift"," q-radio__native q-ma-none q-pa-none");const j=[r.h("div",{class:w.value,style:c.value,"aria-hidden":"true"},M)];h.value!==null&&j.push(h.value);const W=t.label!==void 0?bn(l.default,[t.label]):ot(l.default);return W!==void 0&&j.push(r.h("div",{class:"q-radio__label q-anchor--skip"},W)),r.h("div",{ref:d,class:m.value,tabindex:x.value,role:"radio","aria-label":t.label,"aria-checked":y.value===!0?"true":"false","aria-disabled":t.disable===!0?"true":void 0,onClick:A,onKeydown:P,onKeyup:$},j)}}}),Ng={class:"section"},Pg={class:"q-py-md-lg q-my-md q-px-xs row justify-center items-center"},$g=Qe(r.defineComponent({__name:"RadioButtonsSection",props:{styles:{},id:{},content:{}},setup(t){const l=r.ref("");return(i,u)=>(r.openBlock(),r.createElementBlock("div",Ng,[r.createElementVNode("div",Pg,[r.createVNode(wc,{modelValue:l.value,"onUpdate:modelValue":u[0]||(u[0]=a=>l.value=a),val:"si",label:"Sí acepto",class:"q-mx-md"},null,8,["modelValue"]),r.createVNode(wc,{modelValue:l.value,"onUpdate:modelValue":u[1]||(u[1]=a=>l.value=a),val:"No",label:"No acepto",class:"q-mx-md"},null,8,["modelValue"])])]))}}),[["__scopeId","data-v-c483c6de"]]),Dg=r.defineComponent({__name:"SectionWrapper",props:{section:{}},setup(t){const l=t,i={[rt.LayoutSectionType.TEXT]:Vg,[rt.LayoutSectionType.IMAGE]:hg,[rt.LayoutSectionType.TABLE]:kg,[rt.LayoutSectionType.CARDS_GRID]:fg,[rt.LayoutSectionType.SIGNATURE]:Cg,[rt.LayoutSectionType.RADIO_BUTTONS]:$g},u=r.computed(()=>l.section.type),a=r.computed(()=>({content:l.section.content,styles:l.section.styles,id:l.section.idDocLaySection}));return(c,d)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(i[u.value]),r.normalizeProps(r.guardReactiveProps(a.value)),null,16))}}),Sc=Qe(r.defineComponent({__name:"SectionsContainer",props:{layout:{},data:{},htmlNodes:{},editable:{type:Boolean}},setup(t){var h;const l=t,{layout:i,data:u,editable:a}=r.toRefs(l);r.provide("data",u),r.provide("editable",a||r.ref(!1));const c=r.computed(()=>{var y;const v=i.value.sections.map(m=>({type:"default",section:m}));return(y=l.htmlNodes)==null||y.forEach(({index:m,element:w})=>{const E=m>v.length?v.length:m;v.splice(E,0,{type:"html",section:w})}),v}),d=((h=i.value.styles)==null?void 0:h.cssRaw)||"";return(v,y)=>(r.openBlock(),r.createElementBlock("div",{class:"sections-container",style:r.normalizeStyle(r.unref(d))},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c.value,({type:m,section:w})=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[m==="default"?(r.openBlock(),r.createBlock(Dg,{key:0,section:w},null,8,["section"])):(r.openBlock(),r.createBlock(ng,{key:1,section:w},null,8,["section"]))],64))),256))],4))}}),[["__cssModules",{$style:{"sections-container":"_sections-container_1wrbi_3"}}]]),Ug={install(t,l){if(l!=null&&l.pinia)t.use(l.pinia);else throw new Error("No se ha encontrado una instancia de pinia");t.component("DynamicForm",vc),t.component("TestUi",_c),t.component("SectionsContainer",Sc)}};Pt.DynamicForm=vc,Pt.SectionsContainer=Sc,Pt.TestUi=_c,Pt.default=Ug,Object.defineProperties(Pt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@win2win/shared-ui",
3
- "version": "0.1.53",
3
+ "version": "0.1.54",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [