shared-ritm 1.0.0 → 1.0.2
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/demo.html +1 -1
- package/dist/{shared-components.common.js → shared-ritm.common.js} +1 -1
- package/dist/shared-ritm.common.js.map +1 -0
- package/dist/{shared-components.umd.js → shared-ritm.umd.js} +3 -3
- package/dist/shared-ritm.umd.js.map +1 -0
- package/dist/shared-ritm.umd.min.js +2 -0
- package/dist/shared-ritm.umd.min.js.map +1 -0
- package/package.json +5 -3
- package/dist/shared-components.common.js.map +0 -1
- package/dist/shared-components.umd.js.map +0 -1
- package/dist/shared-components.umd.min.js +0 -2
- package/dist/shared-components.umd.min.js.map +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["SharedRitm"]=t(require("vue")):e["SharedRitm"]=t(e["Vue"])})("undefined"!==typeof self?self:this,(e=>(()=>{var t={69:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>s});var n=o(970),l=o.n(n),a=o(387),i=o.n(a),r=i()(l());r.push([e.id,".AppButton_wrapper_Z77v9{flex:0 0 auto}.AppButton_wrapper_Z77v9.q-btn--rounded{border-radius:14px}.AppButton_wrapper_Z77v9.q-btn{color:#0a1629;font-size:16px;font-style:normal;font-weight:700}.AppButton_wrapper_Z77v9.--loading span:has(>svg){overflow:hidden}.AppButton_wrapper_Z77v9 .q-icon{font-size:1.2em}.AppButton_wrapper_Z77v9.--large-icon .q-icon{font-size:1.715em}.AppButton_wrapper_Z77v9.--full-width{width:100%}.AppButton_wrapper_Z77v9.--link{padding:0 8px;display:inline;min-height:unset;font-size:inherit;text-decoration:underline}",""]),r.locals={wrapper:"AppButton_wrapper_Z77v9"};const s=r},628:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>s});var n=o(970),l=o.n(n),a=o(387),i=o.n(a),r=i()(l());r.push([e.id,".AppInput_app-input_TjMbV.q-field--outlined .q-field__control{border-radius:14px;height:48px;align-items:center;padding:0 16px;color:#87caff}.AppInput_app-input_TjMbV .q-field__control-container{margin-left:8px}@media(max-width:1440px){.AppInput_app-input_TjMbV.q-field--outlined .q-field__control{height:40px;padding:0 12px}.AppInput_app-input_TjMbV .q-field__control-container{margin-left:6px}}",""]),r.locals={"app-input":"AppInput_app-input_TjMbV"};const s=r},387:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var o="",n="undefined"!==typeof t[5];return t[4]&&(o+="@supports (".concat(t[4],") {")),t[2]&&(o+="@media ".concat(t[2]," {")),n&&(o+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),o+=e(t),n&&(o+="}"),t[2]&&(o+="}"),t[4]&&(o+="}"),o})).join("")},t.i=function(e,o,n,l,a){"string"===typeof e&&(e=[[null,e,void 0]]);var i={};if(n)for(var r=0;r<this.length;r++){var s=this[r][0];null!=s&&(i[s]=!0)}for(var u=0;u<e.length;u++){var c=[].concat(e[u]);n&&i[c[0]]||("undefined"!==typeof a&&("undefined"===typeof c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=a),o&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=o):c[2]=o),l&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=l):c[4]="".concat(l)),t.push(c))}},t}},970:e=>{"use strict";e.exports=function(e){return e[1]}},110:e=>{e.exports=function(e,t,o){const n=void 0!==e.__vccOpts?e.__vccOpts:e,l=n[t];if(void 0===l)n[t]=o;else for(var a in o)void 0===l[a]&&(l[a]=o[a])}},317:(e,t)=>{"use strict";t.A=(e,t)=>{const o=e.__vccOpts||e;for(const[n,l]of t)o[n]=l;return o}},20:(e,t,o)=>{var n=o(69);n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals);var l=o(517).A;l("1a127cde",n,!0,{sourceMap:!1,shadowMode:!1})},157:(e,t,o)=>{var n=o(628);n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals);var l=o(517).A;l("63facbf4",n,!0,{sourceMap:!1,shadowMode:!1})},517:(e,t,o)=>{"use strict";function n(e,t){for(var o=[],n={},l=0;l<t.length;l++){var a=t[l],i=a[0],r=a[1],s=a[2],u=a[3],c={id:e+":"+l,css:r,media:s,sourceMap:u};n[i]?n[i].parts.push(c):o.push(n[i]={id:i,parts:[c]})}return o}o.d(t,{A:()=>v});var l="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!l)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var a={},i=l&&(document.head||document.getElementsByTagName("head")[0]),r=null,s=0,u=!1,c=function(){},d=null,p="data-vue-ssr-id",f="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function v(e,t,o,l){u=o,d=l||{};var i=n(e,t);return m(i),function(t){for(var o=[],l=0;l<i.length;l++){var r=i[l],s=a[r.id];s.refs--,o.push(s)}t?(i=n(e,t),m(i)):i=[];for(l=0;l<o.length;l++){s=o[l];if(0===s.refs){for(var u=0;u<s.parts.length;u++)s.parts[u]();delete a[s.id]}}}}function m(e){for(var t=0;t<e.length;t++){var o=e[t],n=a[o.id];if(n){n.refs++;for(var l=0;l<n.parts.length;l++)n.parts[l](o.parts[l]);for(;l<o.parts.length;l++)n.parts.push(g(o.parts[l]));n.parts.length>o.parts.length&&(n.parts.length=o.parts.length)}else{var i=[];for(l=0;l<o.parts.length;l++)i.push(g(o.parts[l]));a[o.id]={id:o.id,refs:1,parts:i}}}}function h(){var e=document.createElement("style");return e.type="text/css",i.appendChild(e),e}function g(e){var t,o,n=document.querySelector("style["+p+'~="'+e.id+'"]');if(n){if(u)return c;n.parentNode.removeChild(n)}if(f){var l=s++;n=r||(r=h()),t=y.bind(null,n,l,!1),o=y.bind(null,n,l,!0)}else n=h(),t=w.bind(null,n),o=function(){n.parentNode.removeChild(n)};return t(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap)return;t(e=n)}else o()}}var b=function(){var e=[];return function(t,o){return e[t]=o,e.filter(Boolean).join("\n")}}();function y(e,t,o,n){var l=o?"":n.css;if(e.styleSheet)e.styleSheet.cssText=b(t,l);else{var a=document.createTextNode(l),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(a,i[t]):e.appendChild(a)}}function w(e,t){var o=t.css,n=t.media,l=t.sourceMap;if(n&&e.setAttribute("media",n),d.ssrId&&e.setAttribute(p,t.id),l&&(o+="\n/*# sourceURL="+l.sources[0]+" */",o+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(l))))+" */"),e.styleSheet)e.styleSheet.cssText=o;else{while(e.firstChild)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(o))}}},274:t=>{"use strict";t.exports=e}},o={};function n(e){var l=o[e];if(void 0!==l)return l.exports;var a=o[e]={id:e,exports:{}};return t[e](a,a.exports,n),a.exports}(()=>{n.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;return n.d(t,{a:t}),t}})(),(()=>{n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})}})(),(()=>{n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})(),(()=>{n.p=""})();var l={};return(()=>{"use strict";if("undefined"!==typeof window){var e=window.document.currentScript,t=e&&e.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);t&&(n.p=t[1])}var o=n(274);const l=(0,o.defineComponent)({__name:"AppButton",props:{disable:{type:[Boolean,Function]},tooltip:{},uppercase:{type:Boolean},xSmall:{type:Boolean},small:{type:Boolean},large:{type:Boolean},fullWidth:{type:Boolean},wrap:{type:Boolean},largeIcon:{type:Boolean},modelValue:{type:Boolean},badge:{type:[String,Boolean,Number]},badgeColor:{},badgeInline:{type:Boolean},link:{type:Boolean},size:{},type:{},to:{},replace:{type:Boolean},href:{},target:{},label:{},icon:{},iconRight:{},outline:{type:Boolean},flat:{type:Boolean},unelevated:{type:Boolean},rounded:{type:Boolean},push:{type:Boolean},square:{type:Boolean},glossy:{type:Boolean},fab:{type:Boolean},fabMini:{type:Boolean},padding:{},color:{},textColor:{},noCaps:{type:Boolean},noWrap:{type:Boolean},dense:{type:Boolean},ripple:{type:Boolean},tabindex:{},align:{},stack:{type:Boolean},stretch:{type:Boolean},loading:{type:Boolean},round:{type:Boolean},percentage:{},darkPercentage:{type:Boolean}},emits:["update:modelValue","click"],setup(e,{emit:t}){const n=e,l=t;function a(e){l("click",e),l("update:modelValue",!n.modelValue)}const i=(0,o.computed)((()=>void 0===n.badge||!1===n.badge||!0===n.badge||""===n.badge?"":n.badge)),r=(0,o.computed)((()=>"function"===typeof n.disable?n.disable():n.disable));return(e,t)=>{const n=(0,o.resolveComponent)("q-badge"),l=(0,o.resolveComponent)("q-tooltip"),s=(0,o.resolveComponent)("q-btn");return(0,o.openBlock)(),(0,o.createBlock)(s,(0,o.mergeProps)(e.$props,{class:[[e.$style.wrapper],"hover-bg-secondary hover-text-black"],disable:r.value,"no-caps":!e.uppercase,"no-wrap":!e.wrap,onClick:a}),{default:(0,o.withCtx)((()=>[(0,o.renderSlot)(e.$slots,"default"),e.badge?((0,o.openBlock)(),(0,o.createBlock)(n,{key:0,style:{padding:"6px",top:"-10px",right:"-10px","font-size":"12px"},color:e.badgeColor,floating:!e.badgeInline,rounded:!0},{default:(0,o.withCtx)((()=>[(0,o.createTextVNode)((0,o.toDisplayString)(i.value),1)])),_:1},8,["color","floating"])):(0,o.createCommentVNode)("",!0),e.tooltip?((0,o.openBlock)(),(0,o.createBlock)(l,{key:1,class:"text-body2",delay:400},{default:(0,o.withCtx)((()=>[(0,o.createTextVNode)((0,o.toDisplayString)(e.tooltip),1)])),_:1})):(0,o.createCommentVNode)("",!0)])),_:3},16,["class","disable","no-caps","no-wrap"])}}});var a=n(20),i=n.n(a);n(317);const r={xs:18,sm:24,md:32,lg:38,xl:46},s={size:String};function u(e,t=r){return(0,o.computed)((()=>void 0!==e.size?{fontSize:e.size in t?`${t[e.size]}px`:e.size}:null))}function c(e){return(0,o.markRaw)((0,o.defineComponent)(e))}function d(e){return(0,o.markRaw)(e)}function p(e,t){return void 0!==e&&e()||t}function f(e,t){return void 0!==e?t.concat(e()):t}const v="0 0 24 24",m=e=>e,h=e=>`ionicons ${e}`,g={"mdi-":e=>`mdi ${e}`,"icon-":m,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":h,"ion-ios":h,"ion-logo":h,"iconfont ":m,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`},b={o_:"-outlined",r_:"-round",s_:"-sharp"},y={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},w=new RegExp("^("+Object.keys(g).join("|")+")"),x=new RegExp("^("+Object.keys(b).join("|")+")"),k=new RegExp("^("+Object.keys(y).join("|")+")"),C=/^[Mm]\s?[-+]?\.?\d/,B=/^img:/,q=/^svguse:/,S=/^ion-/,_=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,M=c({name:"QIcon",props:{...s,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=(0,o.getCurrentInstance)(),l=u(e),a=(0,o.computed)((()=>"q-icon"+(!0===e.left?" on-left":"")+(!0===e.right?" on-right":"")+(void 0!==e.color?` text-${e.color}`:""))),i=(0,o.computed)((()=>{let t,l=e.name;if("none"===l||!l)return{none:!0};if(null!==n.iconMapFn){const e=n.iconMapFn(l);if(void 0!==e){if(void 0===e.icon)return{cls:e.cls,content:void 0!==e.content?e.content:" "};if(l=e.icon,"none"===l||!l)return{none:!0}}}if(!0===C.test(l)){const[e,t=v]=l.split("|");return{svg:!0,viewBox:t,nodes:e.split("&&").map((e=>{const[t,n,l]=e.split("@@");return(0,o.h)("path",{style:n,d:t,transform:l})}))}}if(!0===B.test(l))return{img:!0,src:l.substring(4)};if(!0===q.test(l)){const[e,t=v]=l.split("|");return{svguse:!0,src:e.substring(7),viewBox:t}}let a=" ";const i=l.match(w);if(null!==i)t=g[i[1]](l);else if(!0===_.test(l))t=l;else if(!0===S.test(l))t=`ionicons ion-${!0===n.platform.is.ios?"ios":"md"}${l.substring(3)}`;else if(!0===k.test(l)){t="notranslate material-symbols";const e=l.match(k);null!==e&&(l=l.substring(6),t+=y[e[1]]),a=l}else{t="notranslate material-icons";const e=l.match(x);null!==e&&(l=l.substring(2),t+=b[e[1]]),a=l}return{cls:t,content:a}}));return()=>{const n={class:a.value,style:l.value,"aria-hidden":"true",role:"presentation"};return!0===i.value.none?(0,o.h)(e.tag,n,p(t.default)):!0===i.value.img?(0,o.h)(e.tag,n,f(t.default,[(0,o.h)("img",{src:i.value.src})])):!0===i.value.svg?(0,o.h)(e.tag,n,f(t.default,[(0,o.h)("svg",{viewBox:i.value.viewBox||"0 0 24 24"},i.value.nodes)])):!0===i.value.svguse?(0,o.h)(e.tag,n,f(t.default,[(0,o.h)("svg",{viewBox:i.value.viewBox},[(0,o.h)("use",{"xlink:href":i.value.src})])])):(void 0!==i.value.cls&&(n.class+=" "+i.value.cls),(0,o.h)(e.tag,n,f(t.default,[i.value.content])))}}}),E={size:{type:[String,Number],default:"1em"},color:String};function A(e){return{cSize:(0,o.computed)((()=>e.size in r?`${r[e.size]}px`:e.size)),classes:(0,o.computed)((()=>"q-spinner"+(e.color?` text-${e.color}`:"")))}}const T=c({name:"QSpinner",props:{...E,thickness:{type:Number,default:5}},setup(e){const{cSize:t,classes:n}=A(e);return()=>(0,o.h)("svg",{class:n.value+" q-spinner-mat",width:t.value,height:t.value,viewBox:"25 25 50 50"},[(0,o.h)("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});function $(e,t){const o=e.style;for(const n in t)o[n]=t[n]}function V(e){if(void 0===e||null===e)return;if("string"===typeof e)try{return document.querySelector(e)||void 0}catch(n){return}const t=(0,o.unref)(e);return t?t.$el||t:void 0}const R={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(R,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,e),window.removeEventListener("qtest",null,e)}catch(Ro){}function O(e){return e.touches&&e.touches[0]?e=e.touches[0]:e.changedTouches&&e.changedTouches[0]?e=e.changedTouches[0]:e.targetTouches&&e.targetTouches[0]&&(e=e.targetTouches[0]),{top:e.clientY,left:e.clientX}}function L(e){e.stopPropagation()}function j(e){!1!==e.cancelable&&e.preventDefault()}function P(e){!1!==e.cancelable&&e.preventDefault(),e.stopPropagation()}function F(e,t,o){const n=`__q_${t}_evt`;e[n]=void 0!==e[n]?e[n].concat(o):o,o.forEach((t=>{t[0].addEventListener(t[1],e[t[2]],R[t[3]])}))}function z(e,t){const o=`__q_${t}_evt`;void 0!==e[o]&&(e[o].forEach((t=>{t[0].removeEventListener(t[1],e[t[2]],R[t[3]])})),e[o]=void 0)}let H=!1;function I(e){return!0===H||e!==Object(e)||!0===e.isComposing||!0===e.qKeyEvent}function N(e,t){return!0!==I(e)&&[].concat(t).includes(e.keyCode)}function U(e,t=250){let o,n=!1;return function(){return!1===n&&(n=!0,setTimeout((()=>{n=!1}),t),o=e.apply(this,arguments)),o}}function W(e,t,o,n){!0===o.modifiers.stop&&L(e);const l=o.modifiers.color;let a=o.modifiers.center;a=!0===a||!0===n;const i=document.createElement("span"),r=document.createElement("span"),s=O(e),{left:u,top:c,width:d,height:p}=t.getBoundingClientRect(),f=Math.sqrt(d*d+p*p),v=f/2,m=(d-f)/2+"px",h=a?m:s.left-u-v+"px",g=(p-f)/2+"px",b=a?g:s.top-c-v+"px";r.className="q-ripple__inner",$(r,{height:`${f}px`,width:`${f}px`,transform:`translate3d(${h},${b},0) scale3d(.2,.2,1)`,opacity:0}),i.className="q-ripple"+(l?" text-"+l:""),i.setAttribute("dir","ltr"),i.appendChild(r),t.appendChild(i);const y=()=>{i.remove(),clearTimeout(w)};o.abort.push(y);let w=setTimeout((()=>{r.classList.add("q-ripple__inner--enter"),r.style.transform=`translate3d(${m},${g},0) scale3d(1,1,1)`,r.style.opacity=.2,w=setTimeout((()=>{r.classList.remove("q-ripple__inner--enter"),r.classList.add("q-ripple__inner--leave"),r.style.opacity=0,w=setTimeout((()=>{i.remove(),o.abort.splice(o.abort.indexOf(y),1)}),275)}),250)}),50)}function D(e,{modifiers:t,value:o,arg:n}){const l=Object.assign({},e.cfg.ripple,t,o);e.modifiers={early:!0===l.early,stop:!0===l.stop,center:!0===l.center,color:l.color||n,keyCodes:[].concat(l.keyCodes||13)}}const Z=d({name:"ripple",beforeMount(e,t){const o=t.instance.$.appContext.config.globalProperties.$q.config||{};if(!1===o.ripple)return;const n={cfg:o,enabled:!1!==t.value,modifiers:{},abort:[],start(t){!0===n.enabled&&!0!==t.qSkipRipple&&t.type===(!0===n.modifiers.early?"pointerdown":"click")&&W(t,e,n,!0===t.qKeyEvent)},keystart:U((t=>{!0===n.enabled&&!0!==t.qSkipRipple&&!0===N(t,n.modifiers.keyCodes)&&t.type==="key"+(!0===n.modifiers.early?"down":"up")&&W(t,e,n,!0)}),300)};D(n,t),e.__qripple=n,F(n,"main",[[e,"pointerdown","start","passive"],[e,"click","start","passive"],[e,"keydown","keystart","passive"],[e,"keyup","keystart","passive"]])},updated(e,t){if(t.oldValue!==t.value){const o=e.__qripple;void 0!==o&&(o.enabled=!1!==t.value,!0===o.enabled&&Object(t.value)===t.value&&D(o,t))}},beforeUnmount(e){const t=e.__qripple;void 0!==t&&(t.abort.forEach((e=>{e()})),z(t,"main"),delete e._qripple)}}),Q={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},K=Object.keys(Q),Y={align:{type:String,validator:e=>K.includes(e)}};function G(e){return(0,o.computed)((()=>{const t=void 0===e.align?!0===e.vertical?"stretch":"left":e.align;return`${!0===e.vertical?"items":"justify"}-${Q[t]}`}))}function X(e){return void 0!==e.appContext.config.globalProperties.$router}function J(e){return!0===e.isUnmounted||!0===e.isDeactivated}function ee(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function te(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function oe(e,t){for(const o in t){const n=t[o],l=e[o];if("string"===typeof n){if(n!==l)return!1}else if(!1===Array.isArray(l)||l.length!==n.length||n.some(((e,t)=>e!==l[t])))return!1}return!0}function ne(e,t){return!0===Array.isArray(t)?e.length===t.length&&e.every(((e,o)=>e===t[o])):1===e.length&&e[0]===t}function le(e,t){return!0===Array.isArray(e)?ne(e,t):!0===Array.isArray(t)?ne(t,e):e===t}function ae(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const o in e)if(!1===le(e[o],t[o]))return!1;return!0}const ie={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean};Boolean;function re({fallbackTag:e,useDisableForRouterLinkProps:t=!0}={}){const n=(0,o.getCurrentInstance)(),{props:l,proxy:a,emit:i}=n,r=X(n),s=(0,o.computed)((()=>!0!==l.disable&&void 0!==l.href)),u=!0===t?(0,o.computed)((()=>!0===r&&!0!==l.disable&&!0!==s.value&&void 0!==l.to&&null!==l.to&&""!==l.to)):(0,o.computed)((()=>!0===r&&!0!==s.value&&void 0!==l.to&&null!==l.to&&""!==l.to)),c=(0,o.computed)((()=>!0===u.value?y(l.to):null)),d=(0,o.computed)((()=>null!==c.value)),p=(0,o.computed)((()=>!0===s.value||!0===d.value)),f=(0,o.computed)((()=>"a"===l.type||!0===p.value?"a":l.tag||e||"div")),v=(0,o.computed)((()=>!0===s.value?{href:l.href,target:l.target}:!0===d.value?{href:c.value.href,target:l.target}:{})),m=(0,o.computed)((()=>{if(!1===d.value)return-1;const{matched:e}=c.value,{length:t}=e,o=e[t-1];if(void 0===o)return-1;const n=a.$route.matched;if(0===n.length)return-1;const l=n.findIndex(te.bind(null,o));if(-1!==l)return l;const i=ee(e[t-2]);return t>1&&ee(o)===i&&n[n.length-1].path!==i?n.findIndex(te.bind(null,e[t-2])):l})),h=(0,o.computed)((()=>!0===d.value&&-1!==m.value&&oe(a.$route.params,c.value.params))),g=(0,o.computed)((()=>!0===h.value&&m.value===a.$route.matched.length-1&&ae(a.$route.params,c.value.params))),b=(0,o.computed)((()=>!0===d.value?!0===g.value?` ${l.exactActiveClass} ${l.activeClass}`:!0===l.exact?"":!0===h.value?` ${l.activeClass}`:"":""));function y(e){try{return a.$router.resolve(e)}catch(Ro){}return null}function w(e,{returnRouterError:t,to:o=l.to,replace:n=l.replace}={}){if(!0===l.disable)return e.preventDefault(),Promise.resolve(!1);if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||void 0!==e.button&&0!==e.button||"_blank"===l.target)return Promise.resolve(!1);e.preventDefault();const i=a.$router[!0===n?"replace":"push"](o);return!0===t?i:i.then((()=>{})).catch((()=>{}))}function x(e){if(!0===d.value){const t=t=>w(e,t);i("click",e,t),!0!==e.defaultPrevented&&t()}else i("click",e)}return{hasRouterLink:d,hasHrefLink:s,hasLink:p,linkTag:f,resolvedLink:c,linkIsActive:h,linkIsExactActive:g,linkClass:b,linkAttrs:v,getLink:y,navigateToRouterLink:w,navigateOnClick:x}}const se={none:0,xs:4,sm:8,md:16,lg:24,xl:32},ue={xs:8,sm:10,md:14,lg:20,xl:24},ce=["button","submit","reset"],de=/[^\s]\/[^\s]/,pe=["flat","outline","push","unelevated"];function fe(e,t){return!0===e.flat?"flat":!0===e.outline?"outline":!0===e.push?"push":!0===e.unelevated?"unelevated":t}const ve={...s,...ie,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...pe.reduce(((e,t)=>(e[t]=Boolean)&&e),{}),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:{...Y.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},me={...ve,round:Boolean};function he(e){const t=u(e,ue),n=G(e),{hasRouterLink:l,hasLink:a,linkTag:i,linkAttrs:r,navigateOnClick:s}=re({fallbackTag:"button"}),c=(0,o.computed)((()=>{const o=!1===e.fab&&!1===e.fabMini?t.value:{};return void 0!==e.padding?Object.assign({},o,{padding:e.padding.split(/\s+/).map((e=>e in se?se[e]+"px":e)).join(" "),minWidth:"0",minHeight:"0"}):o})),d=(0,o.computed)((()=>!0===e.rounded||!0===e.fab||!0===e.fabMini)),p=(0,o.computed)((()=>!0!==e.disable&&!0!==e.loading)),f=(0,o.computed)((()=>!0===p.value?e.tabindex||0:-1)),v=(0,o.computed)((()=>fe(e,"standard"))),m=(0,o.computed)((()=>{const t={tabindex:f.value};return!0===a.value?Object.assign(t,r.value):!0===ce.includes(e.type)&&(t.type=e.type),"a"===i.value?(!0===e.disable?t["aria-disabled"]="true":void 0===t.href&&(t.role="button"),!0!==l.value&&!0===de.test(e.type)&&(t.type=e.type)):!0===e.disable&&(t.disabled="",t["aria-disabled"]="true"),!0===e.loading&&void 0!==e.percentage&&Object.assign(t,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),t})),h=(0,o.computed)((()=>{let t;void 0!==e.color?t=!0===e.flat||!0===e.outline?`text-${e.textColor||e.color}`:`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(t=`text-${e.textColor}`);const o=!0===e.round?"round":"rectangle"+(!0===d.value?" q-btn--rounded":!0===e.square?" q-btn--square":"");return`q-btn--${v.value} q-btn--${o}`+(void 0!==t?" "+t:"")+(!0===p.value?" q-btn--actionable q-focusable q-hoverable":!0===e.disable?" disabled":"")+(!0===e.fab?" q-btn--fab":!0===e.fabMini?" q-btn--fab-mini":"")+(!0===e.noCaps?" q-btn--no-uppercase":"")+(!0===e.dense?" q-btn--dense":"")+(!0===e.stretch?" no-border-radius self-stretch":"")+(!0===e.glossy?" glossy":"")+(e.square?" q-btn--square":"")})),g=(0,o.computed)((()=>n.value+(!0===e.stack?" column":" row")+(!0===e.noWrap?" no-wrap text-no-wrap":"")+(!0===e.loading?" q-btn__content--hidden":"")));return{classes:h,style:c,innerClasses:g,attributes:m,hasLink:a,linkTag:i,navigateOnClick:s,isActionable:p}}const{passiveCapture:ge}=R;let be=null,ye=null,we=null;const xe=c({name:"QBtn",props:{...me,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:t,emit:n}){const{proxy:l}=(0,o.getCurrentInstance)(),{classes:a,style:i,innerClasses:r,attributes:s,hasLink:u,linkTag:c,navigateOnClick:d,isActionable:p}=he(e),v=(0,o.ref)(null),m=(0,o.ref)(null);let h,g=null,b=null;const y=(0,o.computed)((()=>void 0!==e.label&&null!==e.label&&""!==e.label)),w=(0,o.computed)((()=>!0!==e.disable&&!1!==e.ripple&&{keyCodes:!0===u.value?[13,32]:[13],...!0===e.ripple?{}:e.ripple})),x=(0,o.computed)((()=>({center:e.round}))),k=(0,o.computed)((()=>{const t=Math.max(0,Math.min(100,e.percentage));return t>0?{transition:"transform 0.6s",transform:`translateX(${t-100}%)`}:{}})),C=(0,o.computed)((()=>{if(!0===e.loading)return{onMousedown:V,onTouchstart:V,onClick:V,onKeydown:V,onKeyup:V};if(!0===p.value){const t={onClick:q,onKeydown:S,onMousedown:E};if(!0===l.$q.platform.has.touch){const o=void 0!==e.onTouchstart?"":"Passive";t[`onTouchstart${o}`]=_}return t}return{onClick:P}})),B=(0,o.computed)((()=>({ref:v,class:"q-btn q-btn-item non-selectable no-outline "+a.value,style:i.value,...s.value,...C.value})));function q(t){if(null!==v.value){if(void 0!==t){if(!0===t.defaultPrevented)return;const o=document.activeElement;if("submit"===e.type&&o!==document.body&&!1===v.value.contains(o)&&!1===o.contains(v.value)){v.value.focus();const e=()=>{document.removeEventListener("keydown",P,!0),document.removeEventListener("keyup",e,ge),null!==v.value&&v.value.removeEventListener("blur",e,ge)};document.addEventListener("keydown",P,!0),document.addEventListener("keyup",e,ge),v.value.addEventListener("blur",e,ge)}}d(t)}}function S(e){null!==v.value&&(n("keydown",e),!0===N(e,[13,32])&&ye!==v.value&&(null!==ye&&$(),!0!==e.defaultPrevented&&(v.value.focus(),ye=v.value,v.value.classList.add("q-btn--active"),document.addEventListener("keyup",A,!0),v.value.addEventListener("blur",A,ge)),P(e)))}function _(e){null!==v.value&&(n("touchstart",e),!0!==e.defaultPrevented&&(be!==v.value&&(null!==be&&$(),be=v.value,g=e.target,g.addEventListener("touchcancel",A,ge),g.addEventListener("touchend",A,ge)),h=!0,null!==b&&clearTimeout(b),b=setTimeout((()=>{b=null,h=!1}),200)))}function E(e){null!==v.value&&(e.qSkipRipple=!0===h,n("mousedown",e),!0!==e.defaultPrevented&&we!==v.value&&(null!==we&&$(),we=v.value,v.value.classList.add("q-btn--active"),document.addEventListener("mouseup",A,ge)))}function A(e){if(null!==v.value&&(void 0===e||"blur"!==e.type||document.activeElement!==v.value)){if(void 0!==e&&"keyup"===e.type){if(ye===v.value&&!0===N(e,[13,32])){const t=new MouseEvent("click",e);t.qKeyEvent=!0,!0===e.defaultPrevented&&j(t),!0===e.cancelBubble&&L(t),v.value.dispatchEvent(t),P(e),e.qKeyEvent=!0}n("keyup",e)}$()}}function $(e){const t=m.value;!0===e||be!==v.value&&we!==v.value||null===t||t===document.activeElement||(t.setAttribute("tabindex",-1),t.focus()),be===v.value&&(null!==g&&(g.removeEventListener("touchcancel",A,ge),g.removeEventListener("touchend",A,ge)),be=g=null),we===v.value&&(document.removeEventListener("mouseup",A,ge),we=null),ye===v.value&&(document.removeEventListener("keyup",A,!0),null!==v.value&&v.value.removeEventListener("blur",A,ge),ye=null),null!==v.value&&v.value.classList.remove("q-btn--active")}function V(e){P(e),e.qSkipRipple=!0}return(0,o.onBeforeUnmount)((()=>{$(!0)})),Object.assign(l,{click:e=>{!0===p.value&&q(e)}}),()=>{let n=[];void 0!==e.icon&&n.push((0,o.h)(M,{name:e.icon,left:!0!==e.stack&&!0===y.value,role:"img"})),!0===y.value&&n.push((0,o.h)("span",{class:"block"},[e.label])),n=f(t.default,n),void 0!==e.iconRight&&!1===e.round&&n.push((0,o.h)(M,{name:e.iconRight,right:!0!==e.stack&&!0===y.value,role:"img"}));const l=[(0,o.h)("span",{class:"q-focus-helper",ref:m})];return!0===e.loading&&void 0!==e.percentage&&l.push((0,o.h)("span",{class:"q-btn__progress absolute-full overflow-hidden"+(!0===e.darkPercentage?" q-btn__progress--dark":"")},[(0,o.h)("span",{class:"q-btn__progress-indicator fit block",style:k.value})])),l.push((0,o.h)("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+r.value},n)),null!==e.loading&&l.push((0,o.h)(o.Transition,{name:"q-transition--fade"},(()=>!0===e.loading?[(0,o.h)("span",{key:"loading",class:"absolute-full flex flex-center"},void 0!==t.loading?t.loading():[(0,o.h)(T)])]:null))),(0,o.withDirectives)((0,o.h)(c.value,B.value,l),[[Z,w.value,void 0,x.value]])}}}),ke=["top","middle","bottom"],Ce=c({name:"QBadge",props:{color:String,textColor:String,floating:Boolean,transparent:Boolean,multiLine:Boolean,outline:Boolean,rounded:Boolean,label:[Number,String],align:{type:String,validator:e=>ke.includes(e)}},setup(e,{slots:t}){const n=(0,o.computed)((()=>void 0!==e.align?{verticalAlign:e.align}:null)),l=(0,o.computed)((()=>{const t=!0===e.outline&&e.color||e.textColor;return`q-badge flex inline items-center no-wrap q-badge--${!0===e.multiLine?"multi":"single"}-line`+(!0===e.outline?" q-badge--outline":void 0!==e.color?` bg-${e.color}`:"")+(void 0!==t?` text-${t}`:"")+(!0===e.floating?" q-badge--floating":"")+(!0===e.rounded?" q-badge--rounded":"")+(!0===e.transparent?" q-badge--transparent":"")}));return()=>(0,o.h)("div",{class:l.value,style:n.value,role:"status","aria-label":e.label},f(t.default,void 0!==e.label?[e.label]:[]))}});function Be(e,t,o,n){return Object.defineProperty(e,t,{get:o,set:n,enumerable:!0}),e}const qe=(0,o.ref)(!1);let Se;function _e(e,t){const o=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(e)||/(opr)[\/]([\w.]+)/.exec(e)||/(vivaldi)[\/]([\w.]+)/.exec(e)||/(chrome|crios)[\/]([\w.]+)/.exec(e)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(firefox|fxios)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(e)||[];return{browser:o[5]||o[3]||o[1]||"",version:o[4]||o[2]||"0",platform:t[0]||""}}function Me(e){return/(ipad)/.exec(e)||/(ipod)/.exec(e)||/(windows phone)/.exec(e)||/(iphone)/.exec(e)||/(kindle)/.exec(e)||/(silk)/.exec(e)||/(android)/.exec(e)||/(win)/.exec(e)||/(mac)/.exec(e)||/(linux)/.exec(e)||/(cros)/.exec(e)||/(playbook)/.exec(e)||/(bb)/.exec(e)||/(blackberry)/.exec(e)||[]}const Ee="ontouchstart"in window||window.navigator.maxTouchPoints>0;function Ae(e){const t=e.toLowerCase(),o=Me(t),n=_e(t,o),l={mobile:!1,desktop:!1,cordova:!1,capacitor:!1,nativeMobile:!1,electron:!1,bex:!1,linux:!1,mac:!1,win:!1,cros:!1,chrome:!1,firefox:!1,opera:!1,safari:!1,vivaldi:!1,edge:!1,edgeChromium:!1,ie:!1,webkit:!1,android:!1,ios:!1,ipad:!1,iphone:!1,ipod:!1,kindle:!1,winphone:!1,blackberry:!1,playbook:!1,silk:!1};n.browser&&(l[n.browser]=!0,l.version=n.version,l.versionNumber=parseInt(n.version,10)),n.platform&&(l[n.platform]=!0);const a=l.android||l.ios||l.bb||l.blackberry||l.ipad||l.iphone||l.ipod||l.kindle||l.playbook||l.silk||l["windows phone"];if(!0===a||-1!==t.indexOf("mobile")?l.mobile=!0:l.desktop=!0,l["windows phone"]&&(l.winphone=!0,delete l["windows phone"]),l.edga||l.edgios||l.edg?(l.edge=!0,n.browser="edge"):l.crios?(l.chrome=!0,n.browser="chrome"):l.fxios&&(l.firefox=!0,n.browser="firefox"),(l.ipod||l.ipad||l.iphone)&&(l.ios=!0),l.vivaldi&&(n.browser="vivaldi",l.vivaldi=!0),(l.chrome||l.opr||l.safari||l.vivaldi||!0===l.mobile&&!0!==l.ios&&!0!==a)&&(l.webkit=!0),l.opr&&(n.browser="opera",l.opera=!0),l.safari&&(l.blackberry||l.bb?(n.browser="blackberry",l.blackberry=!0):l.playbook?(n.browser="playbook",l.playbook=!0):l.android?(n.browser="android",l.android=!0):l.kindle?(n.browser="kindle",l.kindle=!0):l.silk&&(n.browser="silk",l.silk=!0)),l.name=n.browser,l.platform=n.platform,-1!==t.indexOf("electron"))l.electron=!0;else if(-1!==document.location.href.indexOf("-extension://"))l.bex=!0;else{if(void 0!==window.Capacitor?(l.capacitor=!0,l.nativeMobile=!0,l.nativeMobileWrapper="capacitor"):void 0===window._cordovaNative&&void 0===window.cordova||(l.cordova=!0,l.nativeMobile=!0,l.nativeMobileWrapper="cordova"),!0===qe.value&&(Se={is:{...l}}),!0===Ee&&!0===l.mac&&(!0===l.desktop&&!0===l.safari||!0===l.nativeMobile&&!0!==l.android&&!0!==l.ios&&!0!==l.ipad)){delete l.mac,delete l.desktop;const e=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(l,{mobile:!0,ios:!0,platform:e,[e]:!0})}!0!==l.mobile&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete l.desktop,l.mobile=!0)}return l}const Te=navigator.userAgent||navigator.vendor||window.opera,$e={has:{touch:!1,webStorage:!1},within:{iframe:!1}},Ve={userAgent:Te,is:Ae(Te),has:{touch:Ee},within:{iframe:window.self!==window.top}},Re={install(e){const{$q:t}=e;!0===qe.value?(e.onSSRHydrated.push((()=>{Object.assign(t.platform,Ve),qe.value=!1})),t.platform=(0,o.reactive)(this)):t.platform=this}};{let e;Be(Ve.has,"webStorage",(()=>{if(void 0!==e)return e;try{if(window.localStorage)return e=!0,!0}catch(Ro){}return e=!1,!1})),Object.assign(Re,Ve),!0===qe.value&&(Object.assign(Re,Se,$e),Se=null)}const Oe=Re;function Le(){if(void 0!==window.getSelection){const e=window.getSelection();void 0!==e.empty?e.empty():void 0!==e.removeAllRanges&&(e.removeAllRanges(),!0!==Oe.is.mobile&&e.addRange(document.createRange()))}else void 0!==document.selection&&document.selection.empty()}const je={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean};Boolean;function Pe({showing:e,avoidEmit:t,configureAnchorEl:n}){const{props:l,proxy:a,emit:i}=(0,o.getCurrentInstance)(),r=(0,o.ref)(null);let s=null;function u(e){return null!==r.value&&(void 0===e||void 0===e.touches||e.touches.length<=1)}const c={};function d(){z(c,"anchor")}function p(e){r.value=e;while(r.value.classList.contains("q-anchor--skip"))r.value=r.value.parentNode;n()}function f(){if(!1===l.target||""===l.target||null===a.$el.parentNode)r.value=null;else if(!0===l.target)p(a.$el.parentNode);else{let t=l.target;if("string"===typeof l.target)try{t=document.querySelector(l.target)}catch(e){t=void 0}void 0!==t&&null!==t?(r.value=t.$el||t,n()):(r.value=null,console.error(`Anchor: target "${l.target}" not found`))}}return void 0===n&&(Object.assign(c,{hide(e){a.hide(e)},toggle(e){a.toggle(e),e.qAnchorHandled=!0},toggleKey(e){!0===N(e,13)&&c.toggle(e)},contextClick(e){a.hide(e),j(e),(0,o.nextTick)((()=>{a.show(e),e.qAnchorHandled=!0}))},prevent:j,mobileTouch(e){if(c.mobileCleanup(e),!0!==u(e))return;a.hide(e),r.value.classList.add("non-selectable");const t=e.target;F(c,"anchor",[[t,"touchmove","mobileCleanup","passive"],[t,"touchend","mobileCleanup","passive"],[t,"touchcancel","mobileCleanup","passive"],[r.value,"contextmenu","prevent","notPassive"]]),s=setTimeout((()=>{s=null,a.show(e),e.qAnchorHandled=!0}),300)},mobileCleanup(t){r.value.classList.remove("non-selectable"),null!==s&&(clearTimeout(s),s=null),!0===e.value&&void 0!==t&&Le()}}),n=function(e=l.contextMenu){if(!0===l.noParentEvent||null===r.value)return;let t;t=!0===e?!0===a.$q.platform.is.mobile?[[r.value,"touchstart","mobileTouch","passive"]]:[[r.value,"mousedown","hide","passive"],[r.value,"contextmenu","contextClick","notPassive"]]:[[r.value,"click","toggle","passive"],[r.value,"keyup","toggleKey","passive"]],F(c,"anchor",t)}),(0,o.watch)((()=>l.contextMenu),(e=>{null!==r.value&&(d(),n(e))})),(0,o.watch)((()=>l.target),(()=>{null!==r.value&&d(),f()})),(0,o.watch)((()=>l.noParentEvent),(e=>{null!==r.value&&(!0===e?d():n())})),(0,o.onMounted)((()=>{f(),!0!==t&&!0===l.modelValue&&null===r.value&&i("update:modelValue",!1)})),(0,o.onBeforeUnmount)((()=>{null!==s&&clearTimeout(s),d()})),{anchorEl:r,canShow:u,anchorEvents:c}}function Fe(e,t){const n=(0,o.ref)(null);let l;function a(e,t){const o=(void 0!==t?"add":"remove")+"EventListener",n=void 0!==t?t:l;e!==window&&e[o]("scroll",n,R.passive),window[o]("scroll",n,R.passive),l=t}function i(){null!==n.value&&(a(n.value),n.value=null)}const r=(0,o.watch)((()=>e.noParentEvent),(()=>{null!==n.value&&(i(),t())}));return(0,o.onBeforeUnmount)(r),{localScrollTarget:n,unconfigureScrollTarget:i,changeScrollEvent:a}}const ze={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},He=["beforeShow","show","beforeHide","hide"];function Ie({showing:e,canShow:t,hideOnRouteChange:n,handleShow:l,handleHide:a,processOnMount:i}){const r=(0,o.getCurrentInstance)(),{props:s,emit:u,proxy:c}=r;let d;function p(t){!0===e.value?m(t):f(t)}function f(e){if(!0===s.disable||void 0!==e&&!0===e.qAnchorHandled||void 0!==t&&!0!==t(e))return;const n=void 0!==s["onUpdate:modelValue"];!0===n&&(u("update:modelValue",!0),d=e,(0,o.nextTick)((()=>{d===e&&(d=void 0)}))),null!==s.modelValue&&!1!==n||v(e)}function v(t){!0!==e.value&&(e.value=!0,u("beforeShow",t),void 0!==l?l(t):u("show",t))}function m(e){if(!0===s.disable)return;const t=void 0!==s["onUpdate:modelValue"];!0===t&&(u("update:modelValue",!1),d=e,(0,o.nextTick)((()=>{d===e&&(d=void 0)}))),null!==s.modelValue&&!1!==t||h(e)}function h(t){!1!==e.value&&(e.value=!1,u("beforeHide",t),void 0!==a?a(t):u("hide",t))}function g(t){if(!0===s.disable&&!0===t)void 0!==s["onUpdate:modelValue"]&&u("update:modelValue",!1);else if(!0===t!==e.value){const e=!0===t?v:h;e(d)}}(0,o.watch)((()=>s.modelValue),g),void 0!==n&&!0===X(r)&&(0,o.watch)((()=>c.$route.fullPath),(()=>{!0===n.value&&!0===e.value&&m()})),!0===i&&(0,o.onMounted)((()=>{g(s.modelValue)}));const b={show:f,hide:m,toggle:p};return Object.assign(c,b),b}let Ne=[],Ue=[];function We(e){Ue=Ue.filter((t=>t!==e))}function De(e){We(e),Ue.push(e)}function Ze(e){We(e),0===Ue.length&&0!==Ne.length&&(Ne[Ne.length-1](),Ne=[])}function Qe(e){0===Ue.length?e():Ne.push(e)}function Ke(e){Ne=Ne.filter((t=>t!==e))}const Ye={};const Ge=[],Xe=[];let Je=1,et=document.body;function tt(e,t){const o=document.createElement("div");if(o.id=void 0!==t?`q-portal--${t}--${Je++}`:e,void 0!==Ye.globalNodes){const e=Ye.globalNodes.class;void 0!==e&&(o.className=e)}return et.appendChild(o),Ge.push(o),Xe.push(t),o}function ot(e){const t=Ge.indexOf(e);Ge.splice(t,1),Xe.splice(t,1),e.remove()}const nt=[];const lt=c({name:"QPortal",setup(e,{slots:t}){return()=>t.default()}});function at(e){e=e.parent;while(void 0!==e&&null!==e){if("QGlobalDialog"===e.type.name)return!0;if("QDialog"===e.type.name||"QMenu"===e.type.name)return!1;e=e.parent}return!1}function it(e,t,n,l){const a=(0,o.ref)(!1),i=(0,o.ref)(!1);let r=null;const s={},u="dialog"===l&&at(e);function c(t){if(!0===t)return Ze(s),void(i.value=!0);i.value=!1,!1===a.value&&(!1===u&&null===r&&(r=tt(!1,l)),a.value=!0,nt.push(e.proxy),De(s))}function d(t){if(i.value=!1,!0!==t)return;Ze(s),a.value=!1;const o=nt.indexOf(e.proxy);-1!==o&&nt.splice(o,1),null!==r&&(ot(r),r=null)}return(0,o.onUnmounted)((()=>{d(!0)})),e.proxy.__qPortal=!0,Be(e.proxy,"contentEl",(()=>t.value)),{showPortal:c,hidePortal:d,portalIsActive:a,portalIsAccessible:i,renderPortal:()=>!0===u?n():!0===a.value?[(0,o.h)(o.Teleport,{to:r},(0,o.h)(lt,n))]:void 0}}const rt={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function st(e,t=()=>{},n=()=>{}){return{transitionProps:(0,o.computed)((()=>{const o=`q-transition--${e.transitionShow||t()}`,l=`q-transition--${e.transitionHide||n()}`;return{appear:!0,enterFromClass:`${o}-enter-from`,enterActiveClass:`${o}-enter-active`,enterToClass:`${o}-enter-to`,leaveFromClass:`${l}-leave-from`,leaveActiveClass:`${l}-leave-active`,leaveToClass:`${l}-leave-to`}})),transitionStyle:(0,o.computed)((()=>`--q-transition-duration: ${e.transitionDuration}ms`))}}function ut(){let e;const t=(0,o.getCurrentInstance)();function n(){e=void 0}return(0,o.onDeactivated)(n),(0,o.onBeforeUnmount)(n),{removeTick:n,registerTick(n){e=n,(0,o.nextTick)((()=>{e===n&&(!1===J(t)&&e(),e=void 0)}))}}}function ct(){let e=null;const t=(0,o.getCurrentInstance)();function n(){null!==e&&(clearTimeout(e),e=null)}return(0,o.onDeactivated)(n),(0,o.onBeforeUnmount)(n),{removeTimeout:n,registerTimeout(o,l){n(e),!1===J(t)&&(e=setTimeout((()=>{e=null,o()}),l))}}}const dt=[Element,String],pt=[null,document,document.body,document.scrollingElement,document.documentElement];function ft(e,t){let o=V(t);if(void 0===o){if(void 0===e||null===e)return window;o=e.closest(".scroll,.scroll-y,.overflow-auto")}return pt.includes(o)?window:o}let vt;function mt(){if(void 0!==vt)return vt;const e=document.createElement("p"),t=document.createElement("div");$(e,{width:"100%",height:"200px"}),$(t,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(e),document.body.appendChild(t);const o=e.offsetWidth;t.style.overflow="scroll";let n=e.offsetWidth;return o===n&&(n=t.clientWidth),t.remove(),vt=o-n,vt}let ht=null;const{notPassiveCapture:gt}=R,bt=[];function yt(e){null!==ht&&(clearTimeout(ht),ht=null);const t=e.target;if(void 0===t||8===t.nodeType||!0===t.classList.contains("no-pointer-events"))return;let o=nt.length-1;while(o>=0){const e=nt[o].$;if("QTooltip"!==e.type.name){if("QDialog"!==e.type.name)break;if(!0!==e.props.seamless)return;o--}else o--}for(let n=bt.length-1;n>=0;n--){const o=bt[n];if(null!==o.anchorEl.value&&!1!==o.anchorEl.value.contains(t)||t!==document.body&&(null===o.innerRef.value||!1!==o.innerRef.value.contains(t)))return;e.qClickOutside=!0,o.onClickOutside(e)}}function wt(e){bt.push(e),1===bt.length&&(document.addEventListener("mousedown",yt,gt),document.addEventListener("touchstart",yt,gt))}function xt(e){const t=bt.findIndex((t=>t===e));-1!==t&&(bt.splice(t,1),0===bt.length&&(null!==ht&&(clearTimeout(ht),ht=null),document.removeEventListener("mousedown",yt,gt),document.removeEventListener("touchstart",yt,gt)))}let kt,Ct;function Bt(e){const t=e.split(" ");return 2===t.length&&(!0!==["top","center","bottom"].includes(t[0])?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):!0===["left","middle","right","start","end"].includes(t[1])||(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1))}function qt(e){return!e||2===e.length&&("number"===typeof e[0]&&"number"===typeof e[1])}const St={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};function _t(e,t){const o=e.split(" ");return{vertical:o[0],horizontal:St[`${o[1]}#${!0===t?"rtl":"ltr"}`]}}function Mt(e,t){let{top:o,left:n,right:l,bottom:a,width:i,height:r}=e.getBoundingClientRect();return void 0!==t&&(o-=t[1],n-=t[0],a+=t[1],l+=t[0],i+=t[0],r+=t[1]),{top:o,bottom:a,height:r,left:n,right:l,width:i,middle:n+(l-n)/2,center:o+(a-o)/2}}function Et(e,t,o){let{top:n,left:l}=e.getBoundingClientRect();return n+=t.top,l+=t.left,void 0!==o&&(n+=o[1],l+=o[0]),{top:n,bottom:n+1,height:1,left:l,right:l+1,width:1,middle:l,center:n}}function At(e,t){return{top:0,center:t/2,bottom:t,left:0,middle:e/2,right:e}}function Tt(e,t,o,n){return{top:e[o.vertical]-t[n.vertical],left:e[o.horizontal]-t[n.horizontal]}}function $t(e,t=0){if(null===e.targetEl||null===e.anchorEl||t>5)return;if(0===e.targetEl.offsetHeight||0===e.targetEl.offsetWidth)return void setTimeout((()=>{$t(e,t+1)}),10);const{targetEl:o,offset:n,anchorEl:l,anchorOrigin:a,selfOrigin:i,absoluteOffset:r,fit:s,cover:u,maxHeight:c,maxWidth:d}=e;if(!0===Ve.is.ios&&void 0!==window.visualViewport){const e=document.body.style,{offsetLeft:t,offsetTop:o}=window.visualViewport;t!==kt&&(e.setProperty("--q-pe-left",t+"px"),kt=t),o!==Ct&&(e.setProperty("--q-pe-top",o+"px"),Ct=o)}const{scrollLeft:p,scrollTop:f}=o,v=void 0===r?Mt(l,!0===u?[0,0]:n):Et(l,r,n);Object.assign(o.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:d,maxHeight:c,visibility:"visible"});const{offsetWidth:m,offsetHeight:h}=o,{elWidth:g,elHeight:b}=!0===s||!0===u?{elWidth:Math.max(v.width,m),elHeight:!0===u?Math.max(v.height,h):h}:{elWidth:m,elHeight:h};let y={maxWidth:d,maxHeight:c};!0!==s&&!0!==u||(y.minWidth=v.width+"px",!0===u&&(y.minHeight=v.height+"px")),Object.assign(o.style,y);const w=At(g,b);let x=Tt(v,w,a,i);if(void 0===r||void 0===n)Vt(x,v,w,a,i);else{const{top:e,left:t}=x;Vt(x,v,w,a,i);let o=!1;if(x.top!==e){o=!0;const e=2*n[1];v.center=v.top-=e,v.bottom-=e+2}if(x.left!==t){o=!0;const e=2*n[0];v.middle=v.left-=e,v.right-=e+2}!0===o&&(x=Tt(v,w,a,i),Vt(x,v,w,a,i))}y={top:x.top+"px",left:x.left+"px"},void 0!==x.maxHeight&&(y.maxHeight=x.maxHeight+"px",v.height>x.maxHeight&&(y.minHeight=y.maxHeight)),void 0!==x.maxWidth&&(y.maxWidth=x.maxWidth+"px",v.width>x.maxWidth&&(y.minWidth=y.maxWidth)),Object.assign(o.style,y),o.scrollTop!==f&&(o.scrollTop=f),o.scrollLeft!==p&&(o.scrollLeft=p)}function Vt(e,t,o,n,l){const a=o.bottom,i=o.right,r=mt(),s=window.innerHeight-r,u=document.body.clientWidth;if(e.top<0||e.top+a>s)if("center"===l.vertical)e.top=t[n.vertical]>s/2?Math.max(0,s-a):0,e.maxHeight=Math.min(a,s);else if(t[n.vertical]>s/2){const o=Math.min(s,"center"===n.vertical?t.center:n.vertical===l.vertical?t.bottom:t.top);e.maxHeight=Math.min(a,o),e.top=Math.max(0,o-a)}else e.top=Math.max(0,"center"===n.vertical?t.center:n.vertical===l.vertical?t.top:t.bottom),e.maxHeight=Math.min(a,s-e.top);if(e.left<0||e.left+i>u)if(e.maxWidth=Math.min(i,u),"middle"===l.horizontal)e.left=t[n.horizontal]>u/2?Math.max(0,u-i):0;else if(t[n.horizontal]>u/2){const o=Math.min(u,"middle"===n.horizontal?t.middle:n.horizontal===l.horizontal?t.right:t.left);e.maxWidth=Math.min(i,o),e.left=Math.max(0,o-e.maxWidth)}else e.left=Math.max(0,"middle"===n.horizontal?t.middle:n.horizontal===l.horizontal?t.left:t.right),e.maxWidth=Math.min(i,u-e.left)}["left","middle","right"].forEach((e=>{St[`${e}#ltr`]=e,St[`${e}#rtl`]=e}));const Rt=c({name:"QTooltip",inheritAttrs:!1,props:{...je,...ze,...rt,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null},transitionShow:{...rt.transitionShow,default:"jump-down"},transitionHide:{...rt.transitionHide,default:"jump-up"},anchor:{type:String,default:"bottom middle",validator:Bt},self:{type:String,default:"top middle",validator:Bt},offset:{type:Array,default:()=>[14,14],validator:qt},scrollTarget:dt,delay:{type:Number,default:0},hideDelay:{type:Number,default:0},persistent:Boolean},emits:[...He],setup(e,{slots:t,emit:n,attrs:l}){let a,i;const r=(0,o.getCurrentInstance)(),{proxy:{$q:s}}=r,u=(0,o.ref)(null),c=(0,o.ref)(!1),d=(0,o.computed)((()=>_t(e.anchor,s.lang.rtl))),f=(0,o.computed)((()=>_t(e.self,s.lang.rtl))),v=(0,o.computed)((()=>!0!==e.persistent)),{registerTick:m,removeTick:h}=ut(),{registerTimeout:g}=ct(),{transitionProps:b,transitionStyle:y}=st(e),{localScrollTarget:w,changeScrollEvent:x,unconfigureScrollTarget:k}=Fe(e,H),{anchorEl:C,canShow:B,anchorEvents:q}=Pe({showing:c,configureAnchorEl:j}),{show:S,hide:_}=Ie({showing:c,canShow:B,handleShow:T,handleHide:$,hideOnRouteChange:v,processOnMount:!0});Object.assign(q,{delayShow:O,delayHide:L});const{showPortal:M,hidePortal:E,renderPortal:A}=it(r,u,N,"tooltip");if(!0===s.platform.is.mobile){const t={anchorEl:C,innerRef:u,onClickOutside(e){return _(e),e.target.classList.contains("q-dialog__backdrop")&&P(e),!0}},n=(0,o.computed)((()=>null===e.modelValue&&!0!==e.persistent&&!0===c.value));(0,o.watch)(n,(e=>{const o=!0===e?wt:xt;o(t)})),(0,o.onBeforeUnmount)((()=>{xt(t)}))}function T(t){M(),m((()=>{i=new MutationObserver((()=>R())),i.observe(u.value,{attributes:!1,childList:!0,characterData:!0,subtree:!0}),R(),H()})),void 0===a&&(a=(0,o.watch)((()=>s.screen.width+"|"+s.screen.height+"|"+e.self+"|"+e.anchor+"|"+s.lang.rtl),R)),g((()=>{M(!0),n("show",t)}),e.transitionDuration)}function $(t){h(),E(),V(),g((()=>{E(!0),n("hide",t)}),e.transitionDuration)}function V(){void 0!==i&&(i.disconnect(),i=void 0),void 0!==a&&(a(),a=void 0),k(),z(q,"tooltipTemp")}function R(){$t({targetEl:u.value,offset:e.offset,anchorEl:C.value,anchorOrigin:d.value,selfOrigin:f.value,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function O(t){if(!0===s.platform.is.mobile){Le(),document.body.classList.add("non-selectable");const e=C.value,t=["touchmove","touchcancel","touchend","click"].map((t=>[e,t,"delayHide","passiveCapture"]));F(q,"tooltipTemp",t)}g((()=>{S(t)}),e.delay)}function L(t){!0===s.platform.is.mobile&&(z(q,"tooltipTemp"),Le(),setTimeout((()=>{document.body.classList.remove("non-selectable")}),10)),g((()=>{_(t)}),e.hideDelay)}function j(){if(!0===e.noParentEvent||null===C.value)return;const t=!0===s.platform.is.mobile?[[C.value,"touchstart","delayShow","passive"]]:[[C.value,"mouseenter","delayShow","passive"],[C.value,"mouseleave","delayHide","passive"]];F(q,"anchor",t)}function H(){if(null!==C.value||void 0!==e.scrollTarget){w.value=ft(C.value,e.scrollTarget);const t=!0===e.noParentEvent?R:_;x(w.value,t)}}function I(){return!0===c.value?(0,o.h)("div",{...l,ref:u,class:["q-tooltip q-tooltip--style q-position-engine no-pointer-events",l.class],style:[l.style,y.value],role:"tooltip"},p(t.default)):null}function N(){return(0,o.h)(o.Transition,b.value,I)}return(0,o.onBeforeUnmount)(V),Object.assign(r.proxy,{updatePosition:R}),A}});var Ot=n(110),Lt=n.n(Ot);const jt={};jt["$style"]=i();Lt()(l,"components",{QBtn:xe,QBadge:Ce,QTooltip:Rt,QIcon:M});const Pt=(0,o.defineComponent)({__name:"AppInput",props:{field:{type:Boolean},required:{type:Boolean},datePicker:{type:Boolean},timePicker:{type:Boolean},dateLocale:{},withIcon:{type:Boolean},iconName:{},iconColor:{},withButton:{type:Boolean},buttonIcon:{},buttonTooltip:{},clearTooltip:{},withArrow:{type:Boolean},name:{},mask:{},fillMask:{type:[Boolean,String]},reverseFillMask:{type:Boolean},unmaskedValue:{type:Boolean},modelValue:{default:""},error:{type:Boolean,default:void 0},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},loading:{type:Boolean},clearable:{type:Boolean},clearIcon:{},filled:{type:Boolean},outlined:{type:Boolean,default:!0},borderless:{type:Boolean},bordered:{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,default:!0},itemAligned:{type:Boolean},disable:{type:Boolean},readonly:{type:Boolean},autofocus:{type:Boolean},for:{},shadowText:{},type:{},debounce:{},maxlength:{},autogrow:{type:Boolean},inputClass:{},inputStyle:{},onClear:{},"onUpdate:modelValue":{},onFocus:{},onBlur:{},onClick:{}},emits:["update:modelValue","button-click","clear","focus","blur","click"],setup(e,{emit:t}){const n=e,l=t,a=(0,o.computed)({get:()=>null!==n.modelValue&&void 0!==n.modelValue&&"number"===n.type?+n.modelValue:n.modelValue,set:e=>l("update:modelValue","number"===n.type?+e:e)}),i=(0,o.computed)((()=>({"--dense":n.dense,"--bordered":n.bordered})));return(e,t)=>{const n=(0,o.resolveComponent)("q-icon"),l=(0,o.resolveComponent)("q-input");return(0,o.openBlock)(),(0,o.createBlock)(l,{standout:"",outlined:"",clearable:"",dense:"","bg-color":"white",modelValue:a.value,"onUpdate:modelValue":t[0]||(t[0]=e=>a.value=e),class:(0,o.normalizeClass)([e.$style["app-input"],i.value]),type:e.type,readonly:e.readonly||e.field,placeholder:e.label},{prepend:(0,o.withCtx)((()=>[(0,o.createVNode)(n,null,{default:(0,o.withCtx)((()=>t[1]||(t[1]=[(0,o.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[(0,o.createElementVNode)("path",{d:"M11.5 21C16.7467 21 21 16.7467 21 11.5C21 6.25329 16.7467 2 11.5 2C6.25329 2 2 6.25329 2 11.5C2 16.7467 6.25329 21 11.5 21Z",stroke:"#404650","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,o.createElementVNode)("path",{d:"M22 22L20 20",stroke:"#3F8CFF","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]))),_:1})])),_:1},8,["modelValue","class","type","readonly","placeholder"])}}});var Ft=n(157),zt=n.n(Ft);let Ht,It=0;const Nt=new Array(256);for(let n=0;n<256;n++)Nt[n]=(n+256).toString(16).substring(1);const Ut=(()=>{const e="undefined"!==typeof crypto?crypto:"undefined"!==typeof window?window.crypto||window.msCrypto:void 0;if(void 0!==e){if(void 0!==e.randomBytes)return e.randomBytes;if(void 0!==e.getRandomValues)return t=>{const o=new Uint8Array(t);return e.getRandomValues(o),o}}return e=>{const t=[];for(let o=e;o>0;o--)t.push(Math.floor(256*Math.random()));return t}})(),Wt=4096;function Dt(){(void 0===Ht||It+16>Wt)&&(It=0,Ht=Ut(Wt));const e=Array.prototype.slice.call(Ht,It,It+=16);return e[6]=15&e[6]|64,e[8]=63&e[8]|128,Nt[e[0]]+Nt[e[1]]+Nt[e[2]]+Nt[e[3]]+"-"+Nt[e[4]]+Nt[e[5]]+"-"+Nt[e[6]]+Nt[e[7]]+"-"+Nt[e[8]]+Nt[e[9]]+"-"+Nt[e[10]]+Nt[e[11]]+Nt[e[12]]+Nt[e[13]]+Nt[e[14]]+Nt[e[15]]}function Zt(e){return void 0===e||null===e?null:e}function Qt(e,t){return void 0===e||null===e?!0===t?`f_${Dt()}`:null:e}function Kt({getValue:e,required:t=!0}={}){if(!0===qe.value){const n=void 0!==e?(0,o.ref)(Zt(e())):(0,o.ref)(null);return!0===t&&null===n.value&&(0,o.onMounted)((()=>{n.value=`f_${Dt()}`})),void 0!==e&&(0,o.watch)(e,(e=>{n.value=Qt(e,t)})),n}return void 0!==e?(0,o.computed)((()=>Qt(e(),t))):(0,o.ref)(`f_${Dt()}`)}const Yt=/^on[A-Z]/;function Gt(){const{attrs:e,vnode:t}=(0,o.getCurrentInstance)(),n={listeners:(0,o.ref)({}),attributes:(0,o.ref)({})};function l(){const o={},l={};for(const t in e)"class"!==t&&"style"!==t&&!1===Yt.test(t)&&(o[t]=e[t]);for(const e in t.props)!0===Yt.test(e)&&(l[e]=t.props[e]);n.attributes.value=o,n.listeners.value=l}return(0,o.onBeforeUpdate)(l),l(),n}const Xt={dark:{type:Boolean,default:null}};function Jt(e,t){return(0,o.computed)((()=>null===e.dark?t.dark.isActive:e.dark))}const eo="_q_fo_";function to({validate:e,resetValidation:t,requiresQForm:n}){const l=(0,o.inject)(eo,!1);if(!1!==l){const{props:n,proxy:a}=(0,o.getCurrentInstance)();Object.assign(a,{validate:e,resetValidation:t}),(0,o.watch)((()=>n.disable),(e=>{!0===e?("function"===typeof t&&t(),l.unbindComponent(a)):l.bindComponent(a)})),(0,o.onMounted)((()=>{!0!==n.disable&&l.bindComponent(a)})),(0,o.onBeforeUnmount)((()=>{!0!==n.disable&&l.unbindComponent(a)}))}else!0===n&&console.error("Parent QForm not found on useFormChild()!")}const oo=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,no=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,lo=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,ao=/^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])\)$/,io=/^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)\)$/,ro={date:e=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(e),time:e=>/^([0-1]?\d|2[0-3]):[0-5]\d$/.test(e),fulltime:e=>/^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(e),timeOrFulltime:e=>/^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/.test(e),email:e=>/^(([^<>()\[\]\\.,;:\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(e),hexColor:e=>oo.test(e),hexaColor:e=>no.test(e),hexOrHexaColor:e=>lo.test(e),rgbColor:e=>ao.test(e),rgbaColor:e=>io.test(e),rgbOrRgbaColor:e=>ao.test(e)||io.test(e),hexOrRgbColor:e=>oo.test(e)||ao.test(e),hexaOrRgbaColor:e=>no.test(e)||io.test(e),anyColor:e=>lo.test(e)||ao.test(e)||io.test(e)};function so(e,t=250,o){let n=null;function l(){const l=arguments,a=()=>{n=null,!0!==o&&e.apply(this,l)};null!==n?clearTimeout(n):!0===o&&e.apply(this,l),n=setTimeout(a,t)}return l.cancel=()=>{null!==n&&clearTimeout(n)},l}const uo=[!0,!1,"ondemand"],co={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:e=>uo.includes(e)}};function po(e,t){const{props:n,proxy:l}=(0,o.getCurrentInstance)(),a=(0,o.ref)(!1),i=(0,o.ref)(null),r=(0,o.ref)(!1);to({validate:h,resetValidation:m});let s,u=0;const c=(0,o.computed)((()=>void 0!==n.rules&&null!==n.rules&&0!==n.rules.length)),d=(0,o.computed)((()=>!0!==n.disable&&!0===c.value&&!1===t.value)),p=(0,o.computed)((()=>!0===n.error||!0===a.value)),f=(0,o.computed)((()=>"string"===typeof n.errorMessage&&0!==n.errorMessage.length?n.errorMessage:i.value));function v(){"ondemand"!==n.lazyRules&&!0===d.value&&!0===r.value&&g()}function m(){u++,t.value=!1,r.value=!1,a.value=!1,i.value=null,g.cancel()}function h(e=n.modelValue){if(!0===n.disable||!1===c.value)return!0;const o=++u,l=!0!==t.value?()=>{r.value=!0}:()=>{},s=(e,o)=>{!0===e&&l(),a.value=e,i.value=o||null,t.value=!1},d=[];for(let t=0;t<n.rules.length;t++){const o=n.rules[t];let l;if("function"===typeof o?l=o(e,ro):"string"===typeof o&&void 0!==ro[o]&&(l=ro[o](e)),!1===l||"string"===typeof l)return s(!0,l),!1;!0!==l&&void 0!==l&&d.push(l)}return 0===d.length?(s(!1),!0):(t.value=!0,Promise.all(d).then((e=>{if(void 0===e||!1===Array.isArray(e)||0===e.length)return o===u&&s(!1),!0;const t=e.find((e=>!1===e||"string"===typeof e));return o===u&&s(void 0!==t,t),void 0===t}),(e=>(o===u&&(console.error(e),s(!0)),!1))))}(0,o.watch)((()=>n.modelValue),(()=>{r.value=!0,!0===d.value&&!1===n.lazyRules&&g()})),(0,o.watch)((()=>n.reactiveRules),(e=>{!0===e?void 0===s&&(s=(0,o.watch)((()=>n.rules),v,{immediate:!0,deep:!0})):void 0!==s&&(s(),s=void 0)}),{immediate:!0}),(0,o.watch)((()=>n.lazyRules),v),(0,o.watch)(e,(e=>{!0===e?r.value=!0:!0===d.value&&"ondemand"!==n.lazyRules&&g()}));const g=so(h,0);return(0,o.onBeforeUnmount)((()=>{void 0!==s&&s(),g.cancel()})),Object.assign(l,{resetValidation:m,validate:h}),Be(l,"hasError",(()=>p.value)),{isDirtyModel:r,hasRules:c,hasError:p,errorMessage:f,validate:h,resetValidation:m}}function fo(e){return void 0!==e&&null!==e&&0!==(""+e).length}const vo={...Xt,...co,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},mo={...vo,maxlength:[Number,String]},ho=["update:modelValue","clear","focus","blur"];function go({requiredForAttr:e=!0,tagProp:t,changeEvent:n=!1}={}){const{props:l,proxy:a}=(0,o.getCurrentInstance)(),i=Jt(l,a.$q),r=Kt({required:e,getValue:()=>l.for});return{requiredForAttr:e,changeEvent:n,tag:!0===t?(0,o.computed)((()=>l.tag)):{value:"label"},isDark:i,editable:(0,o.computed)((()=>!0!==l.disable&&!0!==l.readonly)),innerLoading:(0,o.ref)(!1),focused:(0,o.ref)(!1),hasPopupOpen:!1,splitAttrs:Gt(),targetUid:r,rootRef:(0,o.ref)(null),targetRef:(0,o.ref)(null),controlRef:(0,o.ref)(null)}}function bo(e){const{props:t,emit:n,slots:l,attrs:a,proxy:i}=(0,o.getCurrentInstance)(),{$q:r}=i;let s=null;void 0===e.hasValue&&(e.hasValue=(0,o.computed)((()=>fo(t.modelValue)))),void 0===e.emitValue&&(e.emitValue=e=>{n("update:modelValue",e)}),void 0===e.controlEvents&&(e.controlEvents={onFocusin:_,onFocusout:E}),Object.assign(e,{clearValue:A,onControlFocusin:_,onControlFocusout:E,focus:q}),void 0===e.computedCounter&&(e.computedCounter=(0,o.computed)((()=>{if(!1!==t.counter){const e="string"===typeof t.modelValue||"number"===typeof t.modelValue?(""+t.modelValue).length:!0===Array.isArray(t.modelValue)?t.modelValue.length:0,o=void 0!==t.maxlength?t.maxlength:t.maxValues;return e+(void 0!==o?" / "+o:"")}})));const{isDirtyModel:u,hasRules:c,hasError:d,errorMessage:f,resetValidation:v}=po(e.focused,e.innerLoading),m=void 0!==e.floatingLabel?(0,o.computed)((()=>!0===t.stackLabel||!0===e.focused.value||!0===e.floatingLabel.value)):(0,o.computed)((()=>!0===t.stackLabel||!0===e.focused.value||!0===e.hasValue.value)),h=(0,o.computed)((()=>!0===t.bottomSlots||void 0!==t.hint||!0===c.value||!0===t.counter||null!==t.error)),g=(0,o.computed)((()=>!0===t.filled?"filled":!0===t.outlined?"outlined":!0===t.borderless?"borderless":t.standout?"standout":"standard")),b=(0,o.computed)((()=>`q-field row no-wrap items-start q-field--${g.value}`+(void 0!==e.fieldClass?` ${e.fieldClass.value}`:"")+(!0===t.rounded?" q-field--rounded":"")+(!0===t.square?" q-field--square":"")+(!0===m.value?" q-field--float":"")+(!0===w.value?" q-field--labeled":"")+(!0===t.dense?" q-field--dense":"")+(!0===t.itemAligned?" q-field--item-aligned q-item-type":"")+(!0===e.isDark.value?" q-field--dark":"")+(void 0===e.getControl?" q-field--auto-height":"")+(!0===e.focused.value?" q-field--focused":"")+(!0===d.value?" q-field--error":"")+(!0===d.value||!0===e.focused.value?" q-field--highlighted":"")+(!0!==t.hideBottomSpace&&!0===h.value?" q-field--with-bottom":"")+(!0===t.disable?" q-field--disabled":!0===t.readonly?" q-field--readonly":""))),y=(0,o.computed)((()=>"q-field__control relative-position row no-wrap"+(void 0!==t.bgColor?` bg-${t.bgColor}`:"")+(!0===d.value?" text-negative":"string"===typeof t.standout&&0!==t.standout.length&&!0===e.focused.value?` ${t.standout}`:void 0!==t.color?` text-${t.color}`:""))),w=(0,o.computed)((()=>!0===t.labelSlot||void 0!==t.label)),x=(0,o.computed)((()=>"q-field__label no-pointer-events absolute ellipsis"+(void 0!==t.labelColor&&!0!==d.value?` text-${t.labelColor}`:""))),k=(0,o.computed)((()=>({id:e.targetUid.value,editable:e.editable.value,focused:e.focused.value,floatingLabel:m.value,modelValue:t.modelValue,emitValue:e.emitValue}))),C=(0,o.computed)((()=>{const o={};return e.targetUid.value&&(o.for=e.targetUid.value),!0===t.disable&&(o["aria-disabled"]="true"),o}));function B(){const t=document.activeElement;let o=void 0!==e.targetRef&&e.targetRef.value;!o||null!==t&&t.id===e.targetUid.value||(!0===o.hasAttribute("tabindex")||(o=o.querySelector("[tabindex]")),o&&o!==t&&o.focus({preventScroll:!0}))}function q(){Qe(B)}function S(){Ke(B);const t=document.activeElement;null!==t&&e.rootRef.value.contains(t)&&t.blur()}function _(t){null!==s&&(clearTimeout(s),s=null),!0===e.editable.value&&!1===e.focused.value&&(e.focused.value=!0,n("focus",t))}function E(t,o){null!==s&&clearTimeout(s),s=setTimeout((()=>{s=null,(!0!==document.hasFocus()||!0!==e.hasPopupOpen&&void 0!==e.controlRef&&null!==e.controlRef.value&&!1===e.controlRef.value.contains(document.activeElement))&&(!0===e.focused.value&&(e.focused.value=!1,n("blur",t)),void 0!==o&&o())}))}function A(l){if(P(l),!0!==r.platform.is.mobile){const t=void 0!==e.targetRef&&e.targetRef.value||e.rootRef.value;t.focus()}else!0===e.rootRef.value.contains(document.activeElement)&&document.activeElement.blur();"file"===t.type&&(e.inputRef.value.value=null),n("update:modelValue",null),!0===e.changeEvent&&n("change",null),n("clear",t.modelValue),(0,o.nextTick)((()=>{const e=u.value;v(),u.value=e}))}function $(e){[13,32].includes(e.keyCode)&&A(e)}function V(){const n=[];return void 0!==l.prepend&&n.push((0,o.h)("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:j},l.prepend())),n.push((0,o.h)("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},R())),!0===d.value&&!1===t.noErrorIcon&&n.push(L("error",[(0,o.h)(M,{name:r.iconSet.field.error,color:"negative"})])),!0===t.loading||!0===e.innerLoading.value?n.push(L("inner-loading-append",void 0!==l.loading?l.loading():[(0,o.h)(T,{color:t.color})])):!0===t.clearable&&!0===e.hasValue.value&&!0===e.editable.value&&n.push(L("inner-clearable-append",[(0,o.h)(M,{class:"q-field__focusable-action",name:t.clearIcon||r.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":r.lang.label.clear,onKeyup:$,onClick:A})])),void 0!==l.append&&n.push((0,o.h)("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:j},l.append())),void 0!==e.getInnerAppend&&n.push(L("inner-append",e.getInnerAppend())),void 0!==e.getControlChild&&n.push(e.getControlChild()),n}function R(){const n=[];return void 0!==t.prefix&&null!==t.prefix&&n.push((0,o.h)("div",{class:"q-field__prefix no-pointer-events row items-center"},t.prefix)),void 0!==e.getShadowControl&&!0===e.hasShadow.value&&n.push(e.getShadowControl()),void 0!==e.getControl?n.push(e.getControl()):void 0!==l.rawControl?n.push(l.rawControl()):void 0!==l.control&&n.push((0,o.h)("div",{ref:e.targetRef,class:"q-field__native row",tabindex:-1,...e.splitAttrs.attributes.value,"data-autofocus":!0===t.autofocus||void 0},l.control(k.value))),!0===w.value&&n.push((0,o.h)("div",{class:x.value},p(l.label,t.label))),void 0!==t.suffix&&null!==t.suffix&&n.push((0,o.h)("div",{class:"q-field__suffix no-pointer-events row items-center"},t.suffix)),n.concat(p(l.default))}function O(){let n,a;!0===d.value?null!==f.value?(n=[(0,o.h)("div",{role:"alert"},f.value)],a=`q--slot-error-${f.value}`):(n=p(l.error),a="q--slot-error"):!0===t.hideHint&&!0!==e.focused.value||(void 0!==t.hint?(n=[(0,o.h)("div",t.hint)],a=`q--slot-hint-${t.hint}`):(n=p(l.hint),a="q--slot-hint"));const i=!0===t.counter||void 0!==l.counter;if(!0===t.hideBottomSpace&&!1===i&&void 0===n)return;const r=(0,o.h)("div",{key:a,class:"q-field__messages col"},n);return(0,o.h)("div",{class:"q-field__bottom row items-start q-field__bottom--"+(!0!==t.hideBottomSpace?"animated":"stale"),onClick:j},[!0===t.hideBottomSpace?r:(0,o.h)(o.Transition,{name:"q-transition--field-message"},(()=>r)),!0===i?(0,o.h)("div",{class:"q-field__counter"},void 0!==l.counter?l.counter():e.computedCounter.value):null])}function L(e,t){return null===t?null:(0,o.h)("div",{key:e,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},t)}let F=!1;return(0,o.onDeactivated)((()=>{F=!0})),(0,o.onActivated)((()=>{!0===F&&!0===t.autofocus&&i.focus()})),!0===t.autofocus&&(0,o.onMounted)((()=>{i.focus()})),(0,o.onBeforeUnmount)((()=>{null!==s&&clearTimeout(s)})),Object.assign(i,{focus:q,blur:S}),function(){const n=void 0===e.getControl&&void 0===l.control?{...e.splitAttrs.attributes.value,"data-autofocus":!0===t.autofocus||void 0,...C.value}:C.value;return(0,o.h)(e.tag.value,{ref:e.rootRef,class:[b.value,a.class],style:a.style,...n},[void 0!==l.before?(0,o.h)("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:j},l.before()):null,(0,o.h)("div",{class:"q-field__inner relative-position col self-stretch"},[(0,o.h)("div",{ref:e.controlRef,class:y.value,tabindex:-1,...e.controlEvents},V()),!0===h.value?O():null]),void 0!==l.after?(0,o.h)("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:j},l.after()):null])}}const yo={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},wo={"#":{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:e=>e.toLocaleUpperCase()},a:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:e=>e.toLocaleLowerCase()},X:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:e=>e.toLocaleUpperCase()},x:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:e=>e.toLocaleLowerCase()}},xo=Object.keys(wo);xo.forEach((e=>{wo[e].regex=new RegExp(wo[e].pattern)}));const ko=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+xo.join("")+"])|(.)","g"),Co=/[.*+?^${}()|[\]\\]/g,Bo=String.fromCharCode(1),qo={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function So(e,t,n,l){let a,i,r,s,u,c;const d=(0,o.ref)(null),p=(0,o.ref)(v());function f(){return!0===e.autogrow||["textarea","text","search","url","tel","password"].includes(e.type)}function v(){if(h(),!0===d.value){const t=k(B(e.modelValue));return!1!==e.fillMask?q(t):t}return e.modelValue}function m(e){if(e<a.length)return a.slice(-e);let t="",o=a;const n=o.indexOf(Bo);if(-1!==n){for(let n=e-o.length;n>0;n--)t+=Bo;o=o.slice(0,n)+t+o.slice(n)}return o}function h(){if(d.value=void 0!==e.mask&&0!==e.mask.length&&f(),!1===d.value)return s=void 0,a="",void(i="");const t=void 0===yo[e.mask]?e.mask:yo[e.mask],o="string"===typeof e.fillMask&&0!==e.fillMask.length?e.fillMask.slice(0,1):"_",n=o.replace(Co,"\\$&"),l=[],u=[],c=[];let p=!0===e.reverseFillMask,v="",m="";t.replace(ko,((e,t,o,n,a)=>{if(void 0!==n){const e=wo[n];c.push(e),m=e.negate,!0===p&&(u.push("(?:"+m+"+)?("+e.pattern+"+)?(?:"+m+"+)?("+e.pattern+"+)?"),p=!1),u.push("(?:"+m+"+)?("+e.pattern+")?")}else if(void 0!==o)v="\\"+("\\"===o?"":o),c.push(o),l.push("([^"+v+"]+)?"+v+"?");else{const e=void 0!==t?t:a;v="\\"===e?"\\\\\\\\":e.replace(Co,"\\\\$&"),c.push(e),l.push("([^"+v+"]+)?"+v+"?")}}));const h=new RegExp("^"+l.join("")+"("+(""===v?".":"[^"+v+"]")+"+)?"+(""===v?"":"["+v+"]*")+"$"),g=u.length-1,b=u.map(((t,o)=>0===o&&!0===e.reverseFillMask?new RegExp("^"+n+"*"+t):o===g?new RegExp("^"+t+"("+(""===m?".":m)+"+)?"+(!0===e.reverseFillMask?"$":n+"*")):new RegExp("^"+t)));r=c,s=t=>{const o=h.exec(!0===e.reverseFillMask?t:t.slice(0,c.length+1));null!==o&&(t=o.slice(1).join(""));const n=[],l=b.length;for(let e=0,a=t;e<l;e++){const t=b[e].exec(a);if(null===t)break;a=a.slice(t.shift().length),n.push(...t)}return 0!==n.length?n.join(""):t},a=c.map((e=>"string"===typeof e?e:Bo)).join(""),i=a.split(Bo).join(o)}function g(t,r,s){const c=l.value,d=c.selectionEnd,f=c.value.length-d,v=B(t);!0===r&&h();const m=k(v),g=!1!==e.fillMask?q(m):m,b=p.value!==g;c.value!==g&&(c.value=g),!0===b&&(p.value=g),document.activeElement===c&&(0,o.nextTick)((()=>{if(g!==i)if("insertFromPaste"!==s||!0===e.reverseFillMask)if(-1===["deleteContentBackward","deleteContentForward"].indexOf(s))if(!0===e.reverseFillMask)if(!0===b){const e=Math.max(0,g.length-(g===i?0:Math.min(m.length,f+1)));1===e&&1===d?c.setSelectionRange(e,e,"forward"):y.rightReverse(c,e)}else{const e=g.length-f;c.setSelectionRange(e,e,"backward")}else if(!0===b){const e=Math.max(0,a.indexOf(Bo),Math.min(m.length,d)-1);y.right(c,e)}else{const e=d-1;y.right(c,e)}else{const t=!0===e.reverseFillMask?0===d?g.length>m.length?1:0:Math.max(0,g.length-(g===i?0:Math.min(m.length,f)+1))+1:d;c.setSelectionRange(t,t,"forward")}else{const e=c.selectionEnd;let t=d-1;for(let o=u;o<=t&&o<e;o++)a[o]!==Bo&&t++;y.right(c,t)}else{const t=!0===e.reverseFillMask?i.length:0;c.setSelectionRange(t,t,"forward")}}));const w=!0===e.unmaskedValue?B(g):g;String(e.modelValue)===w||null===e.modelValue&&""===w||n(w,!0)}function b(e,t,o){const n=k(B(e.value));t=Math.max(0,a.indexOf(Bo),Math.min(n.length,t)),u=t,e.setSelectionRange(t,o,"forward")}(0,o.watch)((()=>e.type+e.autogrow),h),(0,o.watch)((()=>e.mask),(o=>{if(void 0!==o)g(p.value,!0);else{const o=B(p.value);h(),e.modelValue!==o&&t("update:modelValue",o)}})),(0,o.watch)((()=>e.fillMask+e.reverseFillMask),(()=>{!0===d.value&&g(p.value,!0)})),(0,o.watch)((()=>e.unmaskedValue),(()=>{!0===d.value&&g(p.value)}));const y={left(e,t){const o=-1===a.slice(t-1).indexOf(Bo);let n=Math.max(0,t-1);for(;n>=0;n--)if(a[n]===Bo){t=n,!0===o&&t++;break}if(n<0&&void 0!==a[t]&&a[t]!==Bo)return y.right(e,0);t>=0&&e.setSelectionRange(t,t,"backward")},right(e,t){const o=e.value.length;let n=Math.min(o,t+1);for(;n<=o;n++){if(a[n]===Bo){t=n;break}a[n-1]===Bo&&(t=n)}if(n>o&&void 0!==a[t-1]&&a[t-1]!==Bo)return y.left(e,o);e.setSelectionRange(t,t,"forward")},leftReverse(e,t){const o=m(e.value.length);let n=Math.max(0,t-1);for(;n>=0;n--){if(o[n-1]===Bo){t=n;break}if(o[n]===Bo&&(t=n,0===n))break}if(n<0&&void 0!==o[t]&&o[t]!==Bo)return y.rightReverse(e,0);t>=0&&e.setSelectionRange(t,t,"backward")},rightReverse(e,t){const o=e.value.length,n=m(o),l=-1===n.slice(0,t+1).indexOf(Bo);let a=Math.min(o,t+1);for(;a<=o;a++)if(n[a-1]===Bo){t=a,t>0&&!0===l&&t--;break}if(a>o&&void 0!==n[t-1]&&n[t-1]!==Bo)return y.leftReverse(e,o);e.setSelectionRange(t,t,"forward")}};function w(e){t("click",e),c=void 0}function x(o){if(t("keydown",o),!0===I(o)||!0===o.altKey)return;const n=l.value,a=n.selectionStart,i=n.selectionEnd;if(o.shiftKey||(c=void 0),37===o.keyCode||39===o.keyCode){o.shiftKey&&void 0===c&&(c="forward"===n.selectionDirection?a:i);const t=y[(39===o.keyCode?"right":"left")+(!0===e.reverseFillMask?"Reverse":"")];if(o.preventDefault(),t(n,c===a?i:a),o.shiftKey){const e=n.selectionStart;n.setSelectionRange(Math.min(c,e),Math.max(c,e),"forward")}}else 8===o.keyCode&&!0!==e.reverseFillMask&&a===i?(y.left(n,a),n.setSelectionRange(n.selectionStart,i,"backward")):46===o.keyCode&&!0===e.reverseFillMask&&a===i&&(y.rightReverse(n,i),n.setSelectionRange(a,n.selectionEnd,"forward"))}function k(t){if(void 0===t||null===t||""===t)return"";if(!0===e.reverseFillMask)return C(t);const o=r;let n=0,l="";for(let e=0;e<o.length;e++){const a=t[n],i=o[e];if("string"===typeof i)l+=i,a===i&&n++;else{if(void 0===a||!i.regex.test(a))return l;l+=void 0!==i.transform?i.transform(a):a,n++}}return l}function C(e){const t=r,o=a.indexOf(Bo);let n=e.length-1,l="";for(let a=t.length-1;a>=0&&-1!==n;a--){const i=t[a];let r=e[n];if("string"===typeof i)l=i+l,r===i&&n--;else{if(void 0===r||!i.regex.test(r))return l;do{l=(void 0!==i.transform?i.transform(r):r)+l,n--,r=e[n]}while(o===a&&void 0!==r&&i.regex.test(r))}}return l}function B(e){return"string"!==typeof e||void 0===s?"number"===typeof e?s(""+e):e:s(e)}function q(t){return i.length-t.length<=0?t:!0===e.reverseFillMask&&0!==t.length?i.slice(0,-t.length)+t:t+i.slice(t.length)}return{innerValue:p,hasMask:d,moveCursorForPaste:b,updateMaskValue:g,onMaskedKeydown:x,onMaskedClick:w}}const _o={name:String};function Mo(e){return(0,o.computed)((()=>e.name||e.for))}function Eo(e,t){function n(){const t=e.modelValue;try{const e="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(t)===t&&("length"in t?Array.from(t):[t]).forEach((t=>{e.items.add(t)})),{files:e.files}}catch(o){return{files:void 0}}}return!0===t?(0,o.computed)((()=>{if("file"===e.type)return n()})):(0,o.computed)(n)}function Ao(e){return function(t){if("compositionend"===t.type||"change"===t.type){if(!0!==t.target.qComposing)return;t.target.qComposing=!1,e(t)}else"compositionstart"===t.type&&(t.target.qComposing=!0)}}const To=c({name:"QInput",inheritAttrs:!1,props:{...mo,...qo,..._o,modelValue:[String,Number,FileList],shadowText:String,type:{type:String,default:"text"},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...ho,"paste","change","keydown","click","animationend"],setup(e,{emit:t,attrs:n}){const{proxy:l}=(0,o.getCurrentInstance)(),{$q:a}=l,i={};let r,s,u,c=NaN,d=null;const p=(0,o.ref)(null),f=Mo(e),{innerValue:v,hasMask:m,moveCursorForPaste:h,updateMaskValue:g,onMaskedKeydown:b,onMaskedClick:y}=So(e,t,V,p),w=Eo(e,!0),x=(0,o.computed)((()=>fo(v.value))),k=Ao(T),C=go({changeEvent:!0}),B=(0,o.computed)((()=>"textarea"===e.type||!0===e.autogrow)),q=(0,o.computed)((()=>!0===B.value||["text","search","url","tel","password"].includes(e.type))),S=(0,o.computed)((()=>{const t={...C.splitAttrs.listeners.value,onInput:T,onPaste:A,onChange:O,onBlur:j,onFocus:L};return t.onCompositionstart=t.onCompositionupdate=t.onCompositionend=k,!0===m.value&&(t.onKeydown=b,t.onClick=y),!0===e.autogrow&&(t.onAnimationend=$),t})),_=(0,o.computed)((()=>{const t={tabindex:0,"data-autofocus":!0===e.autofocus||void 0,rows:"textarea"===e.type?6:void 0,"aria-label":e.label,name:f.value,...C.splitAttrs.attributes.value,id:C.targetUid.value,maxlength:e.maxlength,disabled:!0===e.disable,readonly:!0===e.readonly};return!1===B.value&&(t.type=e.type),!0===e.autogrow&&(t.rows=1),t}));function M(){Qe((()=>{const e=document.activeElement;null===p.value||p.value===e||null!==e&&e.id===C.targetUid.value||p.value.focus({preventScroll:!0})}))}function E(){null!==p.value&&p.value.select()}function A(o){if(!0===m.value&&!0!==e.reverseFillMask){const e=o.target;h(e,e.selectionStart,e.selectionEnd)}t("paste",o)}function T(n){if(!n||!n.target)return;if("file"===e.type)return void t("update:modelValue",n.target.files);const l=n.target.value;if(!0!==n.target.qComposing){if(!0===m.value)g(l,!1,n.inputType);else if(V(l),!0===q.value&&n.target===document.activeElement){const{selectionStart:e,selectionEnd:t}=n.target;void 0!==e&&void 0!==t&&(0,o.nextTick)((()=>{n.target===document.activeElement&&0===l.indexOf(n.target.value)&&n.target.setSelectionRange(e,t)}))}!0===e.autogrow&&R()}else i.value=l}function $(e){t("animationend",e),R()}function V(n,l){u=()=>{d=null,"number"!==e.type&&!0===i.hasOwnProperty("value")&&delete i.value,e.modelValue!==n&&c!==n&&(c=n,!0===l&&(s=!0),t("update:modelValue",n),(0,o.nextTick)((()=>{c===n&&(c=NaN)}))),u=void 0},"number"===e.type&&(r=!0,i.value=n),void 0!==e.debounce?(null!==d&&clearTimeout(d),i.value=n,d=setTimeout(u,e.debounce)):u()}function R(){requestAnimationFrame((()=>{const e=p.value;if(null!==e){const t=e.parentNode.style,{scrollTop:o}=e,{overflowY:n,maxHeight:l}=!0===a.platform.is.firefox?{}:window.getComputedStyle(e),i=void 0!==n&&"scroll"!==n;!0===i&&(e.style.overflowY="hidden"),t.marginBottom=e.scrollHeight-1+"px",e.style.height="1px",e.style.height=e.scrollHeight+"px",!0===i&&(e.style.overflowY=parseInt(l,10)<e.scrollHeight?"auto":"hidden"),t.marginBottom="",e.scrollTop=o}}))}function O(e){k(e),null!==d&&(clearTimeout(d),d=null),void 0!==u&&u(),t("change",e.target.value)}function j(t){void 0!==t&&L(t),null!==d&&(clearTimeout(d),d=null),void 0!==u&&u(),r=!1,s=!1,delete i.value,"file"!==e.type&&setTimeout((()=>{null!==p.value&&(p.value.value=void 0!==v.value?v.value:"")}))}function P(){return!0===i.hasOwnProperty("value")?i.value:void 0!==v.value?v.value:""}(0,o.watch)((()=>e.type),(()=>{p.value&&(p.value.value=e.modelValue)})),(0,o.watch)((()=>e.modelValue),(t=>{if(!0===m.value){if(!0===s&&(s=!1,String(t)===c))return;g(t)}else v.value!==t&&(v.value=t,"number"===e.type&&!0===i.hasOwnProperty("value")&&(!0===r?r=!1:delete i.value));!0===e.autogrow&&(0,o.nextTick)(R)})),(0,o.watch)((()=>e.autogrow),(e=>{!0===e?(0,o.nextTick)(R):null!==p.value&&n.rows>0&&(p.value.style.height="auto")})),(0,o.watch)((()=>e.dense),(()=>{!0===e.autogrow&&(0,o.nextTick)(R)})),(0,o.onBeforeUnmount)((()=>{j()})),(0,o.onMounted)((()=>{!0===e.autogrow&&R()})),Object.assign(C,{innerValue:v,fieldClass:(0,o.computed)((()=>"q-"+(!0===B.value?"textarea":"input")+(!0===e.autogrow?" q-textarea--autogrow":""))),hasShadow:(0,o.computed)((()=>"file"!==e.type&&"string"===typeof e.shadowText&&0!==e.shadowText.length)),inputRef:p,emitValue:V,hasValue:x,floatingLabel:(0,o.computed)((()=>!0===x.value&&("number"!==e.type||!1===isNaN(v.value))||fo(e.displayValue))),getControl:()=>(0,o.h)(!0===B.value?"textarea":"input",{ref:p,class:["q-field__native q-placeholder",e.inputClass],style:e.inputStyle,..._.value,...S.value,..."file"!==e.type?{value:P()}:w.value}),getShadowControl:()=>(0,o.h)("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(!0===B.value?"":" text-no-wrap")},[(0,o.h)("span",{class:"invisible"},P()),(0,o.h)("span",e.shadowText)])});const F=bo(C);return Object.assign(l,{focus:M,select:E,getNativeElement:()=>p.value}),Be(l,"nativeEl",(()=>p.value)),F}}),$o=c({name:"QField",inheritAttrs:!1,props:{...mo,tag:{type:String,default:"label"}},emits:ho,setup(){return bo(go({tagProp:!0}))}}),Vo={};Vo["$style"]=zt();Lt()(Pt,"components",{QInput:To,QIcon:M,QField:$o})})(),l=l["default"],l})()));
|
|
2
|
+
//# sourceMappingURL=shared-ritm.umd.min.js.map
|