@validol4ik/uikit 0.3.40 → 0.3.41

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.
@@ -0,0 +1,135 @@
1
+ import { ref as p, reactive as v } from "vue";
2
+ function m(o, r, a, i) {
3
+ return Object.defineProperty(o, r, {
4
+ get: a,
5
+ set: i,
6
+ enumerable: !0
7
+ }), o;
8
+ }
9
+ const s = p(
10
+ !1
11
+ );
12
+ let l;
13
+ function h(o, r) {
14
+ const a = /(edg|edge|edga|edgios)\/([\w.]+)/.exec(o) || /(opr)[\/]([\w.]+)/.exec(o) || /(vivaldi)[\/]([\w.]+)/.exec(o) || /(chrome|crios)[\/]([\w.]+)/.exec(o) || /(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(o) || /(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(o) || /(firefox|fxios)[\/]([\w.]+)/.exec(o) || /(webkit)[\/]([\w.]+)/.exec(o) || /(opera)(?:.*version|)[\/]([\w.]+)/.exec(o) || [];
15
+ return {
16
+ browser: a[5] || a[3] || a[1] || "",
17
+ version: a[4] || a[2] || "0",
18
+ platform: r[0] || ""
19
+ };
20
+ }
21
+ function x(o) {
22
+ return /(ipad)/.exec(o) || /(ipod)/.exec(o) || /(windows phone)/.exec(o) || /(iphone)/.exec(o) || /(kindle)/.exec(o) || /(silk)/.exec(o) || /(android)/.exec(o) || /(win)/.exec(o) || /(mac)/.exec(o) || /(linux)/.exec(o) || /(cros)/.exec(o) || /(playbook)/.exec(o) || /(bb)/.exec(o) || /(blackberry)/.exec(o) || [];
23
+ }
24
+ const b = "ontouchstart" in window || window.navigator.maxTouchPoints > 0;
25
+ function k(o) {
26
+ const r = o.toLowerCase(), a = x(r), i = h(r, a), e = {
27
+ mobile: !1,
28
+ desktop: !1,
29
+ cordova: !1,
30
+ capacitor: !1,
31
+ nativeMobile: !1,
32
+ // nativeMobileWrapper: void 0,
33
+ electron: !1,
34
+ bex: !1,
35
+ linux: !1,
36
+ mac: !1,
37
+ win: !1,
38
+ cros: !1,
39
+ chrome: !1,
40
+ firefox: !1,
41
+ opera: !1,
42
+ safari: !1,
43
+ vivaldi: !1,
44
+ edge: !1,
45
+ edgeChromium: !1,
46
+ ie: !1,
47
+ webkit: !1,
48
+ android: !1,
49
+ ios: !1,
50
+ ipad: !1,
51
+ iphone: !1,
52
+ ipod: !1,
53
+ kindle: !1,
54
+ winphone: !1,
55
+ blackberry: !1,
56
+ playbook: !1,
57
+ silk: !1
58
+ };
59
+ i.browser && (e[i.browser] = !0, e.version = i.version, e.versionNumber = parseInt(i.version, 10)), i.platform && (e[i.platform] = !0);
60
+ const f = e.android || e.ios || e.bb || e.blackberry || e.ipad || e.iphone || e.ipod || e.kindle || e.playbook || e.silk || e["windows phone"];
61
+ if (f === !0 || r.indexOf("mobile") !== -1 ? e.mobile = !0 : e.desktop = !0, e["windows phone"] && (e.winphone = !0, delete e["windows phone"]), e.edga || e.edgios || e.edg ? (e.edge = !0, i.browser = "edge") : e.crios ? (e.chrome = !0, i.browser = "chrome") : e.fxios && (e.firefox = !0, i.browser = "firefox"), (e.ipod || e.ipad || e.iphone) && (e.ios = !0), e.vivaldi && (i.browser = "vivaldi", e.vivaldi = !0), // Chrome, Opera 15+, Vivaldi and Safari are webkit based browsers
62
+ (e.chrome || e.opr || e.safari || e.vivaldi || e.mobile === !0 && e.ios !== !0 && f !== !0) && (e.webkit = !0), e.opr && (i.browser = "opera", e.opera = !0), e.safari && (e.blackberry || e.bb ? (i.browser = "blackberry", e.blackberry = !0) : e.playbook ? (i.browser = "playbook", e.playbook = !0) : e.android ? (i.browser = "android", e.android = !0) : e.kindle ? (i.browser = "kindle", e.kindle = !0) : e.silk && (i.browser = "silk", e.silk = !0)), e.name = i.browser, e.platform = i.platform, r.indexOf("electron") !== -1)
63
+ e.electron = !0;
64
+ else if (document.location.href.indexOf("-extension://") !== -1)
65
+ e.bex = !0;
66
+ else {
67
+ if (window.Capacitor !== void 0 ? (e.capacitor = !0, e.nativeMobile = !0, e.nativeMobileWrapper = "capacitor") : (window._cordovaNative !== void 0 || window.cordova !== void 0) && (e.cordova = !0, e.nativeMobile = !0, e.nativeMobileWrapper = "cordova"), s.value === !0 && (l = { is: { ...e } }), b === !0 && e.mac === !0 && (e.desktop === !0 && e.safari === !0 || e.nativeMobile === !0 && e.android !== !0 && e.ios !== !0 && e.ipad !== !0)) {
68
+ delete e.mac, delete e.desktop;
69
+ const c = Math.min(window.innerHeight, window.innerWidth) > 414 ? "ipad" : "iphone";
70
+ Object.assign(e, {
71
+ mobile: !0,
72
+ ios: !0,
73
+ platform: c,
74
+ [c]: !0
75
+ });
76
+ }
77
+ e.mobile !== !0 && window.navigator.userAgentData && window.navigator.userAgentData.mobile && (delete e.desktop, e.mobile = !0);
78
+ }
79
+ return e;
80
+ }
81
+ const d = navigator.userAgent || navigator.vendor || window.opera, y = {
82
+ has: {
83
+ touch: !1,
84
+ webStorage: !1
85
+ },
86
+ within: { iframe: !1 }
87
+ }, n = {
88
+ userAgent: d,
89
+ is: k(d),
90
+ has: {
91
+ touch: b
92
+ },
93
+ within: {
94
+ iframe: window.self !== window.top
95
+ }
96
+ }, w = {
97
+ install(o) {
98
+ const { $q: r } = o;
99
+ s.value === !0 ? (o.onSSRHydrated.push(() => {
100
+ Object.assign(r.platform, n), s.value = !1;
101
+ }), r.platform = v(this)) : r.platform = this;
102
+ }
103
+ };
104
+ {
105
+ let o;
106
+ m(n.has, "webStorage", () => {
107
+ if (o !== void 0)
108
+ return o;
109
+ try {
110
+ if (window.localStorage)
111
+ return o = !0, !0;
112
+ } catch {
113
+ }
114
+ return o = !1, !1;
115
+ }), Object.assign(w, n), s.value === !0 && (Object.assign(w, l, y), l = null);
116
+ }
117
+ const t = [];
118
+ function u(o) {
119
+ t[t.length - 1](o);
120
+ }
121
+ function M(o) {
122
+ n.is.desktop === !0 && (t.push(o), t.length === 1 && document.body.addEventListener("focusin", u));
123
+ }
124
+ function O(o) {
125
+ const r = t.indexOf(o);
126
+ r !== -1 && (t.splice(r, 1), t.length === 0 && document.body.removeEventListener("focusin", u));
127
+ }
128
+ export {
129
+ w as P,
130
+ M as a,
131
+ m as b,
132
+ n as c,
133
+ s as i,
134
+ O as r
135
+ };
@@ -0,0 +1 @@
1
+ "use strict";const w=require("vue");function b(o,r,a,i){return Object.defineProperty(o,r,{get:a,set:i,enumerable:!0}),o}const s=w.ref(!1);let l;function m(o,r){const a=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(o)||/(opr)[\/]([\w.]+)/.exec(o)||/(vivaldi)[\/]([\w.]+)/.exec(o)||/(chrome|crios)[\/]([\w.]+)/.exec(o)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(o)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(o)||/(firefox|fxios)[\/]([\w.]+)/.exec(o)||/(webkit)[\/]([\w.]+)/.exec(o)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(o)||[];return{browser:a[5]||a[3]||a[1]||"",version:a[4]||a[2]||"0",platform:r[0]||""}}function h(o){return/(ipad)/.exec(o)||/(ipod)/.exec(o)||/(windows phone)/.exec(o)||/(iphone)/.exec(o)||/(kindle)/.exec(o)||/(silk)/.exec(o)||/(android)/.exec(o)||/(win)/.exec(o)||/(mac)/.exec(o)||/(linux)/.exec(o)||/(cros)/.exec(o)||/(playbook)/.exec(o)||/(bb)/.exec(o)||/(blackberry)/.exec(o)||[]}const p="ontouchstart"in window||window.navigator.maxTouchPoints>0;function x(o){const r=o.toLowerCase(),a=h(r),i=m(r,a),e={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};i.browser&&(e[i.browser]=!0,e.version=i.version,e.versionNumber=parseInt(i.version,10)),i.platform&&(e[i.platform]=!0);const c=e.android||e.ios||e.bb||e.blackberry||e.ipad||e.iphone||e.ipod||e.kindle||e.playbook||e.silk||e["windows phone"];if(c===!0||r.indexOf("mobile")!==-1?e.mobile=!0:e.desktop=!0,e["windows phone"]&&(e.winphone=!0,delete e["windows phone"]),e.edga||e.edgios||e.edg?(e.edge=!0,i.browser="edge"):e.crios?(e.chrome=!0,i.browser="chrome"):e.fxios&&(e.firefox=!0,i.browser="firefox"),(e.ipod||e.ipad||e.iphone)&&(e.ios=!0),e.vivaldi&&(i.browser="vivaldi",e.vivaldi=!0),(e.chrome||e.opr||e.safari||e.vivaldi||e.mobile===!0&&e.ios!==!0&&c!==!0)&&(e.webkit=!0),e.opr&&(i.browser="opera",e.opera=!0),e.safari&&(e.blackberry||e.bb?(i.browser="blackberry",e.blackberry=!0):e.playbook?(i.browser="playbook",e.playbook=!0):e.android?(i.browser="android",e.android=!0):e.kindle?(i.browser="kindle",e.kindle=!0):e.silk&&(i.browser="silk",e.silk=!0)),e.name=i.browser,e.platform=i.platform,r.indexOf("electron")!==-1)e.electron=!0;else if(document.location.href.indexOf("-extension://")!==-1)e.bex=!0;else{if(window.Capacitor!==void 0?(e.capacitor=!0,e.nativeMobile=!0,e.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(e.cordova=!0,e.nativeMobile=!0,e.nativeMobileWrapper="cordova"),s.value===!0&&(l={is:{...e}}),p===!0&&e.mac===!0&&(e.desktop===!0&&e.safari===!0||e.nativeMobile===!0&&e.android!==!0&&e.ios!==!0&&e.ipad!==!0)){delete e.mac,delete e.desktop;const d=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(e,{mobile:!0,ios:!0,platform:d,[d]:!0})}e.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete e.desktop,e.mobile=!0)}return e}const u=navigator.userAgent||navigator.vendor||window.opera,k={has:{touch:!1,webStorage:!1},within:{iframe:!1}},n={userAgent:u,is:x(u),has:{touch:p},within:{iframe:window.self!==window.top}},f={install(o){const{$q:r}=o;s.value===!0?(o.onSSRHydrated.push(()=>{Object.assign(r.platform,n),s.value=!1}),r.platform=w.reactive(this)):r.platform=this}};{let o;b(n.has,"webStorage",()=>{if(o!==void 0)return o;try{if(window.localStorage)return o=!0,!0}catch{}return o=!1,!1}),Object.assign(f,n),s.value===!0&&(Object.assign(f,l,k),l=null)}const t=[];function v(o){t[t.length-1](o)}function y(o){n.is.desktop===!0&&(t.push(o),t.length===1&&document.body.addEventListener("focusin",v))}function g(o){const r=t.indexOf(o);r!==-1&&(t.splice(r,1),t.length===0&&document.body.removeEventListener("focusin",v))}exports.Platform=f;exports.addFocusout=y;exports.client=n;exports.injectProp=b;exports.isRuntimeSsrPreHydration=s;exports.removeFocusout=g;
@@ -0,0 +1 @@
1
+ "use strict";const n=require("vue"),ie={PRIMARY:"primary",INFO:"info"},L={SM:"sm",MD:"md",LG:"lg"},qe={[L.SM]:"3px 9px",[L.MD]:"5px 12px",[L.LG]:"9px 20px"},Q={xs:18,sm:24,md:32,lg:38,xl:46},U={size:String};function Y(e,t=Q){return n.computed(()=>e.size!==void 0?{fontSize:e.size in t?`${t[e.size]}px`:e.size}:null)}function V(e){return n.markRaw(n.defineComponent(e))}function Ce(e){return n.markRaw(e)}function ue(e,t){return e!==void 0&&e()||t}function $e(e,t){if(e!==void 0){const o=e();if(o!=null)return o.slice()}return t}function T(e,t){return e!==void 0?t.concat(e()):t}function Be(e,t){return e===void 0?t:t!==void 0?t.concat(e()):e()}function Le(e,t,o,r,a,d){t.key=r+a;const s=n.h(e,t,o);return a===!0?n.withDirectives(s,d()):s}const X="0 0 24 24",Z=e=>e,F=e=>`ionicons ${e}`,le={"mdi-":e=>`mdi ${e}`,"icon-":Z,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":F,"ion-ios":F,"ion-logo":F,"iconfont ":Z,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`},se={o_:"-outlined",r_:"-round",s_:"-sharp"},ce={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},Re=new RegExp("^("+Object.keys(le).join("|")+")"),Pe=new RegExp("^("+Object.keys(se).join("|")+")"),J=new RegExp("^("+Object.keys(ce).join("|")+")"),_e=/^[Mm]\s?[-+]?\.?\d/,we=/^img:/,xe=/^svguse:/,Me=/^ion-/,Ae=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,H=V({name:"QIcon",props:{...U,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:t}){const{proxy:{$q:o}}=n.getCurrentInstance(),r=Y(e),a=n.computed(()=>"q-icon"+(e.left===!0?" on-left":"")+(e.right===!0?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),d=n.computed(()=>{let s,u=e.name;if(u==="none"||!u)return{none:!0};if(o.iconMapFn!==null){const c=o.iconMapFn(u);if(c!==void 0)if(c.icon!==void 0){if(u=c.icon,u==="none"||!u)return{none:!0}}else return{cls:c.cls,content:c.content!==void 0?c.content:" "}}if(_e.test(u)===!0){const[c,h=X]=u.split("|");return{svg:!0,viewBox:h,nodes:c.split("&&").map(l=>{const[b,p,y]=l.split("@@");return n.h("path",{style:p,d:b,transform:y})})}}if(we.test(u)===!0)return{img:!0,src:u.substring(4)};if(xe.test(u)===!0){const[c,h=X]=u.split("|");return{svguse:!0,src:c.substring(7),viewBox:h}}let S=" ";const g=u.match(Re);if(g!==null)s=le[g[1]](u);else if(Ae.test(u)===!0)s=u;else if(Me.test(u)===!0)s=`ionicons ion-${o.platform.is.ios===!0?"ios":"md"}${u.substring(3)}`;else if(J.test(u)===!0){s="notranslate material-symbols";const c=u.match(J);c!==null&&(u=u.substring(6),s+=ce[c[1]]),S=u}else{s="notranslate material-icons";const c=u.match(Pe);c!==null&&(u=u.substring(2),s+=se[c[1]]),S=u}return{cls:s,content:S}});return()=>{const s={class:a.value,style:r.value,"aria-hidden":"true",role:"presentation"};return d.value.none===!0?n.h(e.tag,s,ue(t.default)):d.value.img===!0?n.h(e.tag,s,T(t.default,[n.h("img",{src:d.value.src})])):d.value.svg===!0?n.h(e.tag,s,T(t.default,[n.h("svg",{viewBox:d.value.viewBox||"0 0 24 24"},d.value.nodes)])):d.value.svguse===!0?n.h(e.tag,s,T(t.default,[n.h("svg",{viewBox:d.value.viewBox},[n.h("use",{"xlink:href":d.value.src})])])):(d.value.cls!==void 0&&(s.class+=" "+d.value.cls),n.h(e.tag,s,T(t.default,[d.value.content])))}}}),Oe={size:{type:[String,Number],default:"1em"},color:String};function Te(e){return{cSize:n.computed(()=>e.size in Q?`${Q[e.size]}px`:e.size),classes:n.computed(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}const de=V({name:"QSpinner",props:{...Oe,thickness:{type:Number,default:5}},setup(e){const{cSize:t,classes:o}=Te(e);return()=>n.h("svg",{class:o.value+" q-spinner-mat",width:t.value,height:t.value,viewBox:"25 25 50 50"},[n.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});function fe(e,t){const o=e.style;for(const r in t)o[r]=t[r]}function ze(e){if(e==null)return;if(typeof e=="string")try{return document.querySelector(e)||void 0}catch{return}const t=n.unref(e);if(t)return t.$el||t}function je(e,t){if(e==null||e.contains(t)===!0)return!0;for(let o=e.nextElementSibling;o!==null;o=o.nextElementSibling)if(o.contains(t))return!0;return!1}const I={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(I,{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{}function Ie(){}function ve(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 De(e){if(e.path)return e.path;if(e.composedPath)return e.composedPath();const t=[];let o=e.target;for(;o;){if(t.push(o),o.tagName==="HTML")return t.push(document),t.push(window),t;o=o.parentElement}}function G(e){e.stopPropagation()}function me(e){e.cancelable!==!1&&e.preventDefault()}function w(e){e.cancelable!==!1&&e.preventDefault(),e.stopPropagation()}function pe(e,t,o){const r=`__q_${t}_evt`;e[r]=e[r]!==void 0?e[r].concat(o):o,o.forEach(a=>{a[0].addEventListener(a[1],e[a[2]],I[a[3]])})}function ge(e,t){const o=`__q_${t}_evt`;e[o]!==void 0&&(e[o].forEach(r=>{r[0].removeEventListener(r[1],e[r[2]],I[r[3]])}),e[o]=void 0)}function he(e){return e!==Object(e)||e.isComposing===!0||e.qKeyEvent===!0}function N(e,t){return he(e)===!0?!1:[].concat(t).includes(e.keyCode)}function Ke(e,t=250){let o=!1,r;return function(){return o===!1&&(o=!0,setTimeout(()=>{o=!1},t),r=e.apply(this,arguments)),r}}function ee(e,t,o,r){o.modifiers.stop===!0&&G(e);const a=o.modifiers.color;let d=o.modifiers.center;d=d===!0||r===!0;const s=document.createElement("span"),u=document.createElement("span"),S=ve(e),{left:g,top:c,width:h,height:l}=t.getBoundingClientRect(),b=Math.sqrt(h*h+l*l),p=b/2,y=`${(h-b)/2}px`,f=d?y:`${S.left-g-p}px`,k=`${(l-b)/2}px`,x=d?k:`${S.top-c-p}px`;u.className="q-ripple__inner",fe(u,{height:`${b}px`,width:`${b}px`,transform:`translate3d(${f},${x},0) scale3d(.2,.2,1)`,opacity:0}),s.className=`q-ripple${a?" text-"+a:""}`,s.setAttribute("dir","ltr"),s.appendChild(u),t.appendChild(s);const P=()=>{s.remove(),clearTimeout(_)};o.abort.push(P);let _=setTimeout(()=>{u.classList.add("q-ripple__inner--enter"),u.style.transform=`translate3d(${y},${k},0) scale3d(1,1,1)`,u.style.opacity=.2,_=setTimeout(()=>{u.classList.remove("q-ripple__inner--enter"),u.classList.add("q-ripple__inner--leave"),u.style.opacity=0,_=setTimeout(()=>{s.remove(),o.abort.splice(o.abort.indexOf(P),1)},275)},250)},50)}function te(e,{modifiers:t,value:o,arg:r}){const a=Object.assign({},e.cfg.ripple,t,o);e.modifiers={early:a.early===!0,stop:a.stop===!0,center:a.center===!0,color:a.color||r,keyCodes:[].concat(a.keyCodes||13)}}const be=Ce({name:"ripple",beforeMount(e,t){const o=t.instance.$.appContext.config.globalProperties.$q.config||{};if(o.ripple===!1)return;const r={cfg:o,enabled:t.value!==!1,modifiers:{},abort:[],start(a){r.enabled===!0&&a.qSkipRipple!==!0&&a.type===(r.modifiers.early===!0?"pointerdown":"click")&&ee(a,e,r,a.qKeyEvent===!0)},keystart:Ke(a=>{r.enabled===!0&&a.qSkipRipple!==!0&&N(a,r.modifiers.keyCodes)===!0&&a.type===`key${r.modifiers.early===!0?"down":"up"}`&&ee(a,e,r,!0)},300)};te(r,t),e.__qripple=r,pe(r,"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;o!==void 0&&(o.enabled=t.value!==!1,o.enabled===!0&&Object(t.value)===t.value&&te(o,t))}},beforeUnmount(e){const t=e.__qripple;t!==void 0&&(t.abort.forEach(o=>{o()}),ge(t,"main"),delete e._qripple)}}),ye={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},Ne=Object.keys(ye),Ve={align:{type:String,validator:e=>Ne.includes(e)}};function Fe(e){return n.computed(()=>{const t=e.align===void 0?e.vertical===!0?"stretch":"left":e.align;return`${e.vertical===!0?"items":"justify"}-${ye[t]}`})}function Qe(e){if(Object(e.$parent)===e.$parent)return e.$parent;let{parent:t}=e.$;for(;Object(t)===t;){if(Object(t.proxy)===t.proxy)return t.proxy;t=t.parent}}function ke(e){return e.appContext.config.globalProperties.$router!==void 0}function He(e){return e.isUnmounted===!0||e.isDeactivated===!0}function ne(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function re(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ue(e,t){for(const o in t){const r=t[o],a=e[o];if(typeof r=="string"){if(r!==a)return!1}else if(Array.isArray(a)===!1||a.length!==r.length||r.some((d,s)=>d!==a[s]))return!1}return!0}function oe(e,t){return Array.isArray(t)===!0?e.length===t.length&&e.every((o,r)=>o===t[r]):e.length===1&&e[0]===t}function Ye(e,t){return Array.isArray(e)===!0?oe(e,t):Array.isArray(t)===!0?oe(t,e):e===t}function Ge(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const o in e)if(Ye(e[o],t[o])===!1)return!1;return!0}const Se={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},We={...Se,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function Ee({fallbackTag:e,useDisableForRouterLinkProps:t=!0}={}){const o=n.getCurrentInstance(),{props:r,proxy:a,emit:d}=o,s=ke(o),u=n.computed(()=>r.disable!==!0&&r.href!==void 0),S=t===!0?n.computed(()=>s===!0&&r.disable!==!0&&u.value!==!0&&r.to!==void 0&&r.to!==null&&r.to!==""):n.computed(()=>s===!0&&u.value!==!0&&r.to!==void 0&&r.to!==null&&r.to!==""),g=n.computed(()=>S.value===!0?x(r.to):null),c=n.computed(()=>g.value!==null),h=n.computed(()=>u.value===!0||c.value===!0),l=n.computed(()=>r.type==="a"||h.value===!0?"a":r.tag||e||"div"),b=n.computed(()=>u.value===!0?{href:r.href,target:r.target}:c.value===!0?{href:g.value.href,target:r.target}:{}),p=n.computed(()=>{if(c.value===!1)return-1;const{matched:v}=g.value,{length:E}=v,C=v[E-1];if(C===void 0)return-1;const B=a.$route.matched;if(B.length===0)return-1;const R=B.findIndex(re.bind(null,C));if(R!==-1)return R;const D=ne(v[E-2]);return E>1&&ne(C)===D&&B[B.length-1].path!==D?B.findIndex(re.bind(null,v[E-2])):R}),y=n.computed(()=>c.value===!0&&p.value!==-1&&Ue(a.$route.params,g.value.params)),f=n.computed(()=>y.value===!0&&p.value===a.$route.matched.length-1&&Ge(a.$route.params,g.value.params)),k=n.computed(()=>c.value===!0?f.value===!0?` ${r.exactActiveClass} ${r.activeClass}`:r.exact===!0?"":y.value===!0?` ${r.activeClass}`:"":"");function x(v){try{return a.$router.resolve(v)}catch{}return null}function P(v,{returnRouterError:E,to:C=r.to,replace:B=r.replace}={}){if(r.disable===!0)return v.preventDefault(),Promise.resolve(!1);if(v.metaKey||v.altKey||v.ctrlKey||v.shiftKey||v.button!==void 0&&v.button!==0||r.target==="_blank")return Promise.resolve(!1);v.preventDefault();const R=a.$router[B===!0?"replace":"push"](C);return E===!0?R:R.then(()=>{}).catch(()=>{})}function _(v){if(c.value===!0){const E=C=>P(v,C);d("click",v,E),v.defaultPrevented!==!0&&E()}else d("click",v)}return{hasRouterLink:c,hasHrefLink:u,hasLink:h,linkTag:l,resolvedLink:g,linkIsActive:y,linkIsExactActive:f,linkClass:k,linkAttrs:b,getLink:x,navigateToRouterLink:P,navigateOnClick:_}}const ae={none:0,xs:4,sm:8,md:16,lg:24,xl:32},Xe={xs:8,sm:10,md:14,lg:20,xl:24},Ze=["button","submit","reset"],Je=/[^\s]\/[^\s]/,et=["flat","outline","push","unelevated"];function tt(e,t){return e.flat===!0?"flat":e.outline===!0?"outline":e.push===!0?"push":e.unelevated===!0?"unelevated":t}const nt={...U,...Se,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...et.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:{...Ve.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},rt={...nt,round:Boolean};function ot(e){const t=Y(e,Xe),o=Fe(e),{hasRouterLink:r,hasLink:a,linkTag:d,linkAttrs:s,navigateOnClick:u}=Ee({fallbackTag:"button"}),S=n.computed(()=>{const f=e.fab===!1&&e.fabMini===!1?t.value:{};return e.padding!==void 0?Object.assign({},f,{padding:e.padding.split(/\s+/).map(k=>k in ae?ae[k]+"px":k).join(" "),minWidth:"0",minHeight:"0"}):f}),g=n.computed(()=>e.rounded===!0||e.fab===!0||e.fabMini===!0),c=n.computed(()=>e.disable!==!0&&e.loading!==!0),h=n.computed(()=>c.value===!0?e.tabindex||0:-1),l=n.computed(()=>tt(e,"standard")),b=n.computed(()=>{const f={tabindex:h.value};return a.value===!0?Object.assign(f,s.value):Ze.includes(e.type)===!0&&(f.type=e.type),d.value==="a"?(e.disable===!0?f["aria-disabled"]="true":f.href===void 0&&(f.role="button"),r.value!==!0&&Je.test(e.type)===!0&&(f.type=e.type)):e.disable===!0&&(f.disabled="",f["aria-disabled"]="true"),e.loading===!0&&e.percentage!==void 0&&Object.assign(f,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),f}),p=n.computed(()=>{let f;e.color!==void 0?e.flat===!0||e.outline===!0?f=`text-${e.textColor||e.color}`:f=`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(f=`text-${e.textColor}`);const k=e.round===!0?"round":`rectangle${g.value===!0?" q-btn--rounded":e.square===!0?" q-btn--square":""}`;return`q-btn--${l.value} q-btn--${k}`+(f!==void 0?" "+f:"")+(c.value===!0?" q-btn--actionable q-focusable q-hoverable":e.disable===!0?" disabled":"")+(e.fab===!0?" q-btn--fab":e.fabMini===!0?" q-btn--fab-mini":"")+(e.noCaps===!0?" q-btn--no-uppercase":"")+(e.dense===!0?" q-btn--dense":"")+(e.stretch===!0?" no-border-radius self-stretch":"")+(e.glossy===!0?" glossy":"")+(e.square?" q-btn--square":"")}),y=n.computed(()=>o.value+(e.stack===!0?" column":" row")+(e.noWrap===!0?" no-wrap text-no-wrap":"")+(e.loading===!0?" q-btn__content--hidden":""));return{classes:p,style:S,innerClasses:y,attributes:b,hasLink:a,linkTag:d,navigateOnClick:u,isActionable:c}}const{passiveCapture:q}=I;let M=null,A=null,O=null;const at=V({name:"QBtn",props:{...rt,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:t,emit:o}){const{proxy:r}=n.getCurrentInstance(),{classes:a,style:d,innerClasses:s,attributes:u,hasLink:S,linkTag:g,navigateOnClick:c,isActionable:h}=ot(e),l=n.ref(null),b=n.ref(null);let p=null,y,f=null;const k=n.computed(()=>e.label!==void 0&&e.label!==null&&e.label!==""),x=n.computed(()=>e.disable===!0||e.ripple===!1?!1:{keyCodes:S.value===!0?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),P=n.computed(()=>({center:e.round})),_=n.computed(()=>{const i=Math.max(0,Math.min(100,e.percentage));return i>0?{transition:"transform 0.6s",transform:`translateX(${i-100}%)`}:{}}),v=n.computed(()=>{if(e.loading===!0)return{onMousedown:j,onTouchstart:j,onClick:j,onKeydown:j,onKeyup:j};if(h.value===!0){const i={onClick:C,onKeydown:B,onMousedown:D};if(r.$q.platform.has.touch===!0){const m=e.onTouchstart!==void 0?"":"Passive";i[`onTouchstart${m}`]=R}return i}return{onClick:w}}),E=n.computed(()=>({ref:l,class:"q-btn q-btn-item non-selectable no-outline "+a.value,style:d.value,...u.value,...v.value}));function C(i){if(l.value!==null){if(i!==void 0){if(i.defaultPrevented===!0)return;const m=document.activeElement;if(e.type==="submit"&&m!==document.body&&l.value.contains(m)===!1&&m.contains(l.value)===!1){l.value.focus();const K=()=>{document.removeEventListener("keydown",w,!0),document.removeEventListener("keyup",K,q),l.value!==null&&l.value.removeEventListener("blur",K,q)};document.addEventListener("keydown",w,!0),document.addEventListener("keyup",K,q),l.value.addEventListener("blur",K,q)}}c(i)}}function B(i){l.value!==null&&(o("keydown",i),N(i,[13,32])===!0&&A!==l.value&&(A!==null&&z(),i.defaultPrevented!==!0&&(l.value.focus(),A=l.value,l.value.classList.add("q-btn--active"),document.addEventListener("keyup",$,!0),l.value.addEventListener("blur",$,q)),w(i)))}function R(i){l.value!==null&&(o("touchstart",i),i.defaultPrevented!==!0&&(M!==l.value&&(M!==null&&z(),M=l.value,p=i.target,p.addEventListener("touchcancel",$,q),p.addEventListener("touchend",$,q)),y=!0,f!==null&&clearTimeout(f),f=setTimeout(()=>{f=null,y=!1},200)))}function D(i){l.value!==null&&(i.qSkipRipple=y===!0,o("mousedown",i),i.defaultPrevented!==!0&&O!==l.value&&(O!==null&&z(),O=l.value,l.value.classList.add("q-btn--active"),document.addEventListener("mouseup",$,q)))}function $(i){if(l.value!==null&&!(i!==void 0&&i.type==="blur"&&document.activeElement===l.value)){if(i!==void 0&&i.type==="keyup"){if(A===l.value&&N(i,[13,32])===!0){const m=new MouseEvent("click",i);m.qKeyEvent=!0,i.defaultPrevented===!0&&me(m),i.cancelBubble===!0&&G(m),l.value.dispatchEvent(m),w(i),i.qKeyEvent=!0}o("keyup",i)}z()}}function z(i){const m=b.value;i!==!0&&(M===l.value||O===l.value)&&m!==null&&m!==document.activeElement&&(m.setAttribute("tabindex",-1),m.focus()),M===l.value&&(p!==null&&(p.removeEventListener("touchcancel",$,q),p.removeEventListener("touchend",$,q)),M=p=null),O===l.value&&(document.removeEventListener("mouseup",$,q),O=null),A===l.value&&(document.removeEventListener("keyup",$,!0),l.value!==null&&l.value.removeEventListener("blur",$,q),A=null),l.value!==null&&l.value.classList.remove("q-btn--active")}function j(i){w(i),i.qSkipRipple=!0}return n.onBeforeUnmount(()=>{z(!0)}),Object.assign(r,{click:i=>{h.value===!0&&C(i)}}),()=>{let i=[];e.icon!==void 0&&i.push(n.h(H,{name:e.icon,left:e.stack!==!0&&k.value===!0,role:"img"})),k.value===!0&&i.push(n.h("span",{class:"block"},[e.label])),i=T(t.default,i),e.iconRight!==void 0&&e.round===!1&&i.push(n.h(H,{name:e.iconRight,right:e.stack!==!0&&k.value===!0,role:"img"}));const m=[n.h("span",{class:"q-focus-helper",ref:b})];return e.loading===!0&&e.percentage!==void 0&&m.push(n.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(e.darkPercentage===!0?" q-btn__progress--dark":"")},[n.h("span",{class:"q-btn__progress-indicator fit block",style:_.value})])),m.push(n.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+s.value},i)),e.loading!==null&&m.push(n.h(n.Transition,{name:"q-transition--fade"},()=>e.loading===!0?[n.h("span",{key:"loading",class:"absolute-full flex flex-center"},t.loading!==void 0?t.loading():[n.h(de)])]:null)),n.withDirectives(n.h(g.value,E.value,m),[[be,x.value,void 0,P.value]])}}}),it=n.defineComponent({__name:"AppButton",props:{size:{default:L.MD},transparent:{type:Boolean},flat:{type:Boolean},rounded:{type:Boolean},color:{default:ie.PRIMARY},iconLeft:{},iconRight:{},iconMiddle:{},disabled:{type:Boolean},loading:{type:Boolean},to:{},href:{},target:{},submit:{type:Boolean},ariaLabel:{},label:{}},emits:["click"],setup(e){const t=e,o=n.computed(()=>["app-btn",{"app-btn_default":!t.transparent&&!t.flat,"app-btn_trans":t.transparent,"app-btn_flat":t.flat,"app-btn_rounded":t.rounded,"app-btn_sm":t.size===L.SM,"app-btn_md":t.size===L.MD,"app-btn_lg":t.size===L.LG,"app-btn_icon-left":t.iconLeft,"app-btn_icon-right":t.iconRight,"app-btn_icon-middle":t.iconMiddle},`app-btn_${t.color}`]);return(r,a)=>(n.openBlock(),n.createBlock(n.unref(at),{"no-caps":"",unelevated:"",class:n.normalizeClass(o.value),padding:n.unref(qe)[r.size||n.unref(L).MD],loading:r.loading,disable:r.disabled||void 0,to:r.to,href:r.href,target:r.target,type:r.submit?"submit":void 0,"aria-label":r.ariaLabel,onClick:a[0]||(a[0]=d=>r.$emit("click",d))},{default:n.withCtx(()=>[r.iconLeft||r.iconMiddle?(n.openBlock(),n.createElementBlock("i",{key:0,class:n.normalizeClass(["icon-kl",r.iconLeft?"icon-kl_left":"icon-kl_middle",`icon-kl-${r.iconLeft||r.iconMiddle}`,r.transparent||r.flat?`text-${r.color}`:"text-secondary"])},null,2)):n.createCommentVNode("",!0),n.renderSlot(r.$slots,"default",{},void 0,!0),r.label?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(r.label),1)],64)):n.createCommentVNode("",!0),r.iconRight?(n.openBlock(),n.createElementBlock("i",{key:2,class:n.normalizeClass(["icon-kl","icon-kl_right",`icon-kl-${r.iconRight}`,r.transparent?`text-${r.color}`:"text-secondary"])},null,2)):n.createCommentVNode("",!0)]),_:3},8,["class","padding","loading","disable","to","href","target","type","aria-label"]))}}),W=(e,t)=>{const o=e.__vccOpts||e;for(const[r,a]of t)o[r]=a;return o},ut=W(it,[["__scopeId","data-v-a4faf632"]]),lt=n.defineComponent({__name:"AppIcon",props:{name:{},size:{},color:{}},setup(e){return(t,o)=>(n.openBlock(),n.createElementBlock("i",{class:n.normalizeClass(["icon-kl",`icon-kl-${t.name}`,t.color?`text-${t.color}`:""]),style:n.normalizeStyle(t.size?`font-size: ${t.size}`:void 0)},null,6))}}),st=W(lt,[["__scopeId","data-v-941765ee"]]),ct=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./AppButtonCopy-BwUe-m18.cjs"))),dt=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./AppSelect-CHMren7D.cjs")));exports.AppButton=ut;exports.AppButtonCopy=ct;exports.AppIcon=st;exports.AppSelect=dt;exports.COLORS=ie;exports.QIcon=H;exports.QSpinner=de;exports.Ripple=be;exports.SIZES=L;exports._export_sfc=W;exports.addEvt=pe;exports.childHasFocus=je;exports.cleanEvt=ge;exports.createComponent=V;exports.css=fe;exports.getElement=ze;exports.getEventPath=De;exports.getParentProxy=Qe;exports.hDir=Le;exports.hMergeSlot=T;exports.hMergeSlotSafely=Be;exports.hSlot=ue;exports.hUniqueSlot=$e;exports.isKeyCode=N;exports.listenOpts=I;exports.noop=Ie;exports.position=ve;exports.prevent=me;exports.shouldIgnoreKey=he;exports.stop=G;exports.stopAndPrevent=w;exports.useRouterLink=Ee;exports.useRouterLinkProps=We;exports.useSize=Y;exports.useSizeProps=U;exports.vmHasRouter=ke;exports.vmIsDestroyed=He;