@validol4ik/uikit 0.9.5 → 0.9.6

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.
Files changed (35) hide show
  1. package/dist/{AppButtonCopy-CBOiSOFe.js → AppButtonCopy-4SswxN9E.js} +1 -1
  2. package/dist/{AppButtonCopy-CJq8F3gr.cjs → AppButtonCopy-C-ztdhMo.cjs} +1 -1
  3. package/dist/AppSelect-BmeBIImq.cjs +1 -0
  4. package/dist/AppSelect-BnjDEXM-.js +1985 -0
  5. package/dist/BottomSheet-DSqcRbL0.cjs +1 -0
  6. package/dist/BottomSheet-qodpM1oq.js +103 -0
  7. package/dist/DropdownButton-0caxYIDd.cjs +1 -0
  8. package/dist/{DropdownButton-C37a5e17.js → DropdownButton-CmUx9BXY.js} +8 -7
  9. package/dist/QDialog-Pw0XBuWk.js +264 -0
  10. package/dist/QDialog-f6QBtGnd.cjs +1 -0
  11. package/dist/QMenu-BEJJgJal.js +536 -0
  12. package/dist/QMenu-xk1k4IZT.cjs +1 -0
  13. package/dist/escape-key-BmiNyljw.cjs +1 -0
  14. package/dist/escape-key-DphMa6bO.js +281 -0
  15. package/dist/index-ChHy5BBm.cjs +1 -0
  16. package/dist/index-jCxpgc08.js +1838 -0
  17. package/dist/style.css +1 -1
  18. package/dist/types/components/buttons/CloseButton/CloseButton.vue.d.ts +5 -0
  19. package/dist/types/components/buttons/CloseButton/types.d.ts +4 -0
  20. package/dist/types/components/menu/BottomSheet/BottomSheet.vue.d.ts +38 -0
  21. package/dist/types/components/menu/BottomSheet/types.d.ts +11 -0
  22. package/dist/types/components/menu/MenuItem/MenuItem.vue.d.ts +29 -0
  23. package/dist/types/components/menu/MenuItem/types.d.ts +21 -0
  24. package/dist/types/components/menu/SystemMenu.vue.d.ts +17 -0
  25. package/dist/types/index.d.ts +58 -1
  26. package/dist/uikit.cjs +1 -1
  27. package/dist/uikit.es.js +10 -6
  28. package/package.json +1 -1
  29. package/dist/AppSelect-BOROROsn.cjs +0 -1
  30. package/dist/AppSelect-CZfoTaTG.js +0 -2304
  31. package/dist/DropdownButton-BQrXTfDg.cjs +0 -1
  32. package/dist/QMenu-Ci2SWpGp.js +0 -808
  33. package/dist/QMenu-DGfnSFI-.cjs +0 -1
  34. package/dist/index-CTeqfCv_.js +0 -1674
  35. package/dist/index-Cekw313Q.cjs +0 -1
@@ -0,0 +1,281 @@
1
+ import { getCurrentInstance as E, watch as V, onMounted as I, nextTick as x, ref as $, onUnmounted as K, h as k, Teleport as U, computed as D, onDeactivated as N, onBeforeUnmount as O } from "vue";
2
+ import { H as G, z as T, c as Q, I as W, J as j, K as H, m as _ } from "./index-jCxpgc08.js";
3
+ import { b as z, c as B } from "./focusout-DjvPXP_b.js";
4
+ let c = [], h = [];
5
+ function q(e) {
6
+ h = h.filter((t) => t !== e);
7
+ }
8
+ function X(e) {
9
+ q(e), h.push(e);
10
+ }
11
+ function L(e) {
12
+ q(e), h.length === 0 && c.length !== 0 && (c[c.length - 1](), c = []);
13
+ }
14
+ function ue(e) {
15
+ h.length === 0 ? e() : c.push(e);
16
+ }
17
+ function ce(e) {
18
+ c = c.filter((t) => t !== e);
19
+ }
20
+ const de = {
21
+ modelValue: {
22
+ type: Boolean,
23
+ default: null
24
+ },
25
+ "onUpdate:modelValue": [Function, Array]
26
+ }, fe = [
27
+ "beforeShow",
28
+ "show",
29
+ "beforeHide",
30
+ "hide"
31
+ ];
32
+ function pe({
33
+ showing: e,
34
+ canShow: t,
35
+ // optional
36
+ hideOnRouteChange: o,
37
+ // optional
38
+ handleShow: l,
39
+ // optional
40
+ handleHide: i,
41
+ // optional
42
+ processOnMount: m
43
+ // optional
44
+ }) {
45
+ const u = E(), { props: r, emit: s, proxy: v } = u;
46
+ let a;
47
+ function g(n) {
48
+ e.value === !0 ? b(n) : w(n);
49
+ }
50
+ function w(n) {
51
+ if (r.disable === !0 || (n == null ? void 0 : n.qAnchorHandled) === !0 || t !== void 0 && t(n) !== !0) return;
52
+ const f = r["onUpdate:modelValue"] !== void 0;
53
+ f === !0 && (s("update:modelValue", !0), a = n, x(() => {
54
+ a === n && (a = void 0);
55
+ })), (r.modelValue === null || f === !1) && C(n);
56
+ }
57
+ function C(n) {
58
+ e.value !== !0 && (e.value = !0, s("beforeShow", n), l !== void 0 ? l(n) : s("show", n));
59
+ }
60
+ function b(n) {
61
+ if (r.disable === !0) return;
62
+ const f = r["onUpdate:modelValue"] !== void 0;
63
+ f === !0 && (s("update:modelValue", !1), a = n, x(() => {
64
+ a === n && (a = void 0);
65
+ })), (r.modelValue === null || f === !1) && P(n);
66
+ }
67
+ function P(n) {
68
+ e.value !== !1 && (e.value = !1, s("beforeHide", n), i !== void 0 ? i(n) : s("hide", n));
69
+ }
70
+ function S(n) {
71
+ r.disable === !0 && n === !0 ? r["onUpdate:modelValue"] !== void 0 && s("update:modelValue", !1) : n === !0 !== e.value && (n === !0 ? C : P)(a);
72
+ }
73
+ V(() => r.modelValue, S), o !== void 0 && G(u) === !0 && V(() => v.$route.fullPath, () => {
74
+ o.value === !0 && e.value === !0 && b();
75
+ }), I(() => {
76
+ S(r.modelValue);
77
+ });
78
+ const F = { show: w, hide: b, toggle: g };
79
+ return Object.assign(v, F), F;
80
+ }
81
+ const M = {};
82
+ let Y = 1, J = document.body;
83
+ function R(e, t) {
84
+ const o = document.createElement("div");
85
+ if (o.id = t !== void 0 ? `q-portal--${t}--${Y++}` : e, M.globalNodes !== void 0) {
86
+ const l = M.globalNodes.class;
87
+ l !== void 0 && (o.className = l);
88
+ }
89
+ return J.appendChild(o), o;
90
+ }
91
+ function Z(e) {
92
+ e.remove();
93
+ }
94
+ const ee = Q({
95
+ name: "QPortal",
96
+ setup(e, { slots: t }) {
97
+ return () => t.default();
98
+ }
99
+ });
100
+ function te(e) {
101
+ for (e = e.parent; e != null; ) {
102
+ if (e.type.name === "QGlobalDialog")
103
+ return !0;
104
+ if (e.type.name === "QDialog" || e.type.name === "QMenu")
105
+ return !1;
106
+ e = e.parent;
107
+ }
108
+ return !1;
109
+ }
110
+ function me(e, t, o, l) {
111
+ const i = $(!1), m = $(!1);
112
+ let u = null;
113
+ const r = {}, s = l === "dialog" && te(e);
114
+ function v(g) {
115
+ if (g === !0) {
116
+ L(r), m.value = !0;
117
+ return;
118
+ }
119
+ m.value = !1, i.value === !1 && (s === !1 && u === null && (u = R(!1, l)), i.value = !0, T.push(e.proxy), X(r));
120
+ }
121
+ function a(g) {
122
+ if (m.value = !1, g !== !0) return;
123
+ L(r), i.value = !1;
124
+ const w = T.indexOf(e.proxy);
125
+ w !== -1 && T.splice(w, 1), u !== null && (Z(u), u = null);
126
+ }
127
+ return K(() => {
128
+ a(!0);
129
+ }), e.proxy.__qPortal = !0, z(e.proxy, "contentEl", () => t.value), {
130
+ showPortal: v,
131
+ hidePortal: a,
132
+ portalIsActive: i,
133
+ portalIsAccessible: m,
134
+ renderPortal: () => s === !0 ? o() : i.value === !0 ? [k(U, { to: u }, k(ee, o))] : void 0
135
+ };
136
+ }
137
+ const ge = {
138
+ transitionShow: {
139
+ type: String,
140
+ default: "fade"
141
+ },
142
+ transitionHide: {
143
+ type: String,
144
+ default: "fade"
145
+ },
146
+ transitionDuration: {
147
+ type: [String, Number],
148
+ default: 300
149
+ }
150
+ };
151
+ function we(e, t = () => {
152
+ }, o = () => {
153
+ }) {
154
+ return {
155
+ transitionProps: D(() => {
156
+ const l = `q-transition--${e.transitionShow || t()}`, i = `q-transition--${e.transitionHide || o()}`;
157
+ return {
158
+ appear: !0,
159
+ enterFromClass: `${l}-enter-from`,
160
+ enterActiveClass: `${l}-enter-active`,
161
+ enterToClass: `${l}-enter-to`,
162
+ leaveFromClass: `${i}-leave-from`,
163
+ leaveActiveClass: `${i}-leave-active`,
164
+ leaveToClass: `${i}-leave-to`
165
+ };
166
+ }),
167
+ transitionStyle: D(() => `--q-transition-duration: ${e.transitionDuration}ms`)
168
+ };
169
+ }
170
+ function he() {
171
+ let e;
172
+ const t = E();
173
+ function o() {
174
+ e = void 0;
175
+ }
176
+ return N(o), O(o), {
177
+ removeTick: o,
178
+ registerTick(l) {
179
+ e = l, x(() => {
180
+ e === l && (W(t) === !1 && e(), e = void 0);
181
+ });
182
+ }
183
+ };
184
+ }
185
+ function ve() {
186
+ let e = null;
187
+ const t = E();
188
+ function o() {
189
+ e !== null && (clearTimeout(e), e = null);
190
+ }
191
+ return N(o), O(o), {
192
+ removeTimeout: o,
193
+ registerTimeout(l, i) {
194
+ o(), W(t) === !1 && (e = setTimeout(() => {
195
+ e = null, l();
196
+ }, i));
197
+ }
198
+ };
199
+ }
200
+ const ye = [Element, String], oe = [null, document, document.body, document.scrollingElement, document.documentElement];
201
+ function be(e, t) {
202
+ let o = j(t);
203
+ if (o === void 0) {
204
+ if (e == null)
205
+ return window;
206
+ o = e.closest(".scroll,.scroll-y,.overflow-auto");
207
+ }
208
+ return oe.includes(o) ? window : o;
209
+ }
210
+ function Te(e) {
211
+ return e === window ? window.pageYOffset || window.scrollY || document.body.scrollTop || 0 : e.scrollTop;
212
+ }
213
+ function xe(e) {
214
+ return e === window ? window.pageXOffset || window.scrollX || document.body.scrollLeft || 0 : e.scrollLeft;
215
+ }
216
+ let y;
217
+ function Ee() {
218
+ if (y !== void 0)
219
+ return y;
220
+ const e = document.createElement("p"), t = document.createElement("div");
221
+ H(e, {
222
+ width: "100%",
223
+ height: "200px"
224
+ }), H(t, {
225
+ position: "absolute",
226
+ top: "0px",
227
+ left: "0px",
228
+ visibility: "hidden",
229
+ width: "200px",
230
+ height: "150px",
231
+ overflow: "hidden"
232
+ }), t.appendChild(e), document.body.appendChild(t);
233
+ const o = e.offsetWidth;
234
+ t.style.overflow = "scroll";
235
+ let l = e.offsetWidth;
236
+ return o === l && (l = t.clientWidth), t.remove(), y = o - l, y;
237
+ }
238
+ function Ce(e, t = !0) {
239
+ return !e || e.nodeType !== Node.ELEMENT_NODE ? !1 : t ? e.scrollHeight > e.clientHeight && (e.classList.contains("scroll") || e.classList.contains("overflow-auto") || ["auto", "scroll"].includes(window.getComputedStyle(e)["overflow-y"])) : e.scrollWidth > e.clientWidth && (e.classList.contains("scroll") || e.classList.contains("overflow-auto") || ["auto", "scroll"].includes(window.getComputedStyle(e)["overflow-x"]));
240
+ }
241
+ const d = [];
242
+ let p;
243
+ function ne(e) {
244
+ p = e.keyCode === 27;
245
+ }
246
+ function le() {
247
+ p === !0 && (p = !1);
248
+ }
249
+ function ie(e) {
250
+ p === !0 && (p = !1, _(e, 27) === !0 && d[d.length - 1](e));
251
+ }
252
+ function A(e) {
253
+ window[e]("keydown", ne), window[e]("blur", le), window[e]("keyup", ie), p = !1;
254
+ }
255
+ function Pe(e) {
256
+ B.is.desktop === !0 && (d.push(e), d.length === 1 && A("addEventListener"));
257
+ }
258
+ function Se(e) {
259
+ const t = d.indexOf(e);
260
+ t !== -1 && (d.splice(t, 1), d.length === 0 && A("removeEventListener"));
261
+ }
262
+ export {
263
+ ue as a,
264
+ fe as b,
265
+ de as c,
266
+ he as d,
267
+ ve as e,
268
+ we as f,
269
+ Ee as g,
270
+ pe as h,
271
+ me as i,
272
+ Se as j,
273
+ be as k,
274
+ Pe as l,
275
+ xe as m,
276
+ Te as n,
277
+ Ce as o,
278
+ ce as r,
279
+ ye as s,
280
+ ge as u
281
+ };
@@ -0,0 +1 @@
1
+ "use strict";const t=require("vue");const De=({app:e})=>{const n=e.config.globalProperties.$q;n.iconMapFn=o=>{if(o.startsWith("icon-kl:"))return{cls:`icon-kl icon-kl-${o.slice(8)}`}}},ne={PRIMARY:"primary",INFO:"info"},w={SM:"sm",MD:"md",LG:"lg",XL:"xl"},Oe={[w.SM]:"3px 9px",[w.MD]:"5px 12px",[w.LG]:"6px 15px",[w.XL]:"9px 20px"},te={xs:18,sm:24,md:32,lg:38,xl:46},Q={size:String};function U(e,n=te){return t.computed(()=>e.size!==void 0?{fontSize:e.size in n?`${n[e.size]}px`:e.size}:null)}function T(e){return t.markRaw(t.defineComponent(e))}function he(e){return t.markRaw(e)}function oe(e,n){return e!==void 0&&e()||n}function je(e,n){if(e!==void 0){const o=e();if(o!=null)return o.slice()}return n}function A(e,n){return e!==void 0?n.concat(e()):n}function Fe(e,n){return e===void 0?n:n!==void 0?n.concat(e()):e()}function Ke(e,n,o,l,i,r){n.key=l+i;const a=t.h(e,n,o);return i===!0?t.withDirectives(a,r()):a}const ie="0 0 24 24",J=e=>e,ee=e=>`ionicons ${e}`,be={"mdi-":e=>`mdi ${e}`,"icon-":J,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":ee,"ion-ios":ee,"ion-logo":ee,"iconfont ":J,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`,"i-":J},ke={o_:"-outlined",r_:"-round",s_:"-sharp"},ye={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},xe=new RegExp("^("+Object.keys(be).join("|")+")"),Qe=new RegExp("^("+Object.keys(ke).join("|")+")"),se=new RegExp("^("+Object.keys(ye).join("|")+")"),Ue=/^[Mm]\s?[-+]?\.?\d/,He=/^img:/,Xe=/^svguse:/,Ye=/^ion-/,We=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,W=T({name:"QIcon",props:{...Q,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:n}){const{proxy:{$q:o}}=t.getCurrentInstance(),l=U(e),i=t.computed(()=>"q-icon"+(e.left===!0?" on-left":"")+(e.right===!0?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),r=t.computed(()=>{let a,s=e.name;if(s==="none"||!s)return{none:!0};if(o.iconMapFn!==null){const m=o.iconMapFn(s);if(m!==void 0)if(m.icon!==void 0){if(s=m.icon,s==="none"||!s)return{none:!0}}else return{cls:m.cls,content:m.content!==void 0?m.content:" "}}if(Ue.test(s)===!0){const[m,y=ie]=s.split("|");return{svg:!0,viewBox:y,nodes:m.split("&&").map(d=>{const[b,u,p]=d.split("@@");return t.h("path",{style:u,d:b,transform:p})})}}if(He.test(s)===!0)return{img:!0,src:s.substring(4)};if(Xe.test(s)===!0){const[m,y=ie]=s.split("|");return{svguse:!0,src:m.substring(7),viewBox:y}}let k=" ";const B=s.match(xe);if(B!==null)a=be[B[1]](s);else if(We.test(s)===!0)a=s;else if(Ye.test(s)===!0)a=`ionicons ion-${o.platform.is.ios===!0?"ios":"md"}${s.substring(3)}`;else if(se.test(s)===!0){a="notranslate material-symbols";const m=s.match(se);m!==null&&(s=s.substring(6),a+=ye[m[1]]),k=s}else{a="notranslate material-icons";const m=s.match(Qe);m!==null&&(s=s.substring(2),a+=ke[m[1]]),k=s}return{cls:a,content:k}});return()=>{const a={class:i.value,style:l.value,"aria-hidden":"true"};return r.value.none===!0?t.h(e.tag,a,oe(n.default)):r.value.img===!0?t.h(e.tag,a,A(n.default,[t.h("img",{src:r.value.src})])):r.value.svg===!0?t.h(e.tag,a,A(n.default,[t.h("svg",{viewBox:r.value.viewBox||"0 0 24 24"},r.value.nodes)])):r.value.svguse===!0?t.h(e.tag,a,A(n.default,[t.h("svg",{viewBox:r.value.viewBox},[t.h("use",{"xlink:href":r.value.src})])])):(r.value.cls!==void 0&&(a.class+=" "+r.value.cls),t.h(e.tag,a,A(n.default,[r.value.content])))}}}),Ge={size:{type:[String,Number],default:"1em"},color:String};function Ze(e){return{cSize:t.computed(()=>e.size in te?`${te[e.size]}px`:e.size),classes:t.computed(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}const le=T({name:"QSpinner",props:{...Ge,thickness:{type:Number,default:5}},setup(e){const{cSize:n,classes:o}=Ze(e);return()=>t.h("svg",{class:o.value+" q-spinner-mat",width:n.value,height:n.value,viewBox:"25 25 50 50"},[t.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});function _e(e,n){const o=e.style;for(const l in n)o[l]=n[l]}function Je(e){if(e==null)return;if(typeof e=="string")try{return document.querySelector(e)||void 0}catch{return}const n=t.unref(e);if(n)return n.$el||n}function et(e,n){if(e==null||e.contains(n)===!0)return!0;for(let o=e.nextElementSibling;o!==null;o=o.nextElementSibling)if(o.contains(n))return!0;return!1}const H={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(H,{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 tt(){}function Be(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 nt(e){if(e.path)return e.path;if(e.composedPath)return e.composedPath();const n=[];let o=e.target;for(;o;){if(n.push(o),o.tagName==="HTML")return n.push(document),n.push(window),n;o=o.parentElement}}function ae(e){e.stopPropagation()}function Ce(e){e.cancelable!==!1&&e.preventDefault()}function I(e){e.cancelable!==!1&&e.preventDefault(),e.stopPropagation()}function $e(e,n,o){const l=`__q_${n}_evt`;e[l]=e[l]!==void 0?e[l].concat(o):o,o.forEach(i=>{i[0].addEventListener(i[1],e[i[2]],H[i[3]])})}function qe(e,n){const o=`__q_${n}_evt`;e[o]!==void 0&&(e[o].forEach(l=>{l[0].removeEventListener(l[1],e[l[2]],H[l[3]])}),e[o]=void 0)}function Ee(e){return e!==Object(e)||e.isComposing===!0||e.qKeyEvent===!0}function K(e,n){return Ee(e)===!0?!1:[].concat(n).includes(e.keyCode)}function ot(e,n=250){let o=!1,l;return function(){return o===!1&&(o=!0,setTimeout(()=>{o=!1},n),l=e.apply(this,arguments)),l}}function ue(e,n,o,l){o.modifiers.stop===!0&&ae(e);const i=o.modifiers.color;let r=o.modifiers.center;r=r===!0||l===!0;const a=document.createElement("span"),s=document.createElement("span"),k=Be(e),{left:B,top:m,width:y,height:d}=n.getBoundingClientRect(),b=Math.sqrt(y*y+d*d),u=b/2,p=`${(y-b)/2}px`,f=r?p:`${k.left-B-u}px`,h=`${(d-b)/2}px`,C=r?h:`${k.top-m-u}px`;s.className="q-ripple__inner",_e(s,{height:`${b}px`,width:`${b}px`,transform:`translate3d(${f},${C},0) scale3d(.2,.2,1)`,opacity:0}),a.className=`q-ripple${i?" text-"+i:""}`,a.setAttribute("dir","ltr"),a.appendChild(s),n.appendChild(a);const v=()=>{a.remove(),clearTimeout(q)};o.abort.push(v);let q=setTimeout(()=>{s.classList.add("q-ripple__inner--enter"),s.style.transform=`translate3d(${p},${h},0) scale3d(1,1,1)`,s.style.opacity=.2,q=setTimeout(()=>{s.classList.remove("q-ripple__inner--enter"),s.classList.add("q-ripple__inner--leave"),s.style.opacity=0,q=setTimeout(()=>{a.remove(),o.abort.splice(o.abort.indexOf(v),1)},275)},250)},50)}function ce(e,{modifiers:n,value:o,arg:l}){const i=Object.assign({},e.cfg.ripple,n,o);e.modifiers={early:i.early===!0,stop:i.stop===!0,center:i.center===!0,color:i.color||l,keyCodes:[].concat(i.keyCodes||13)}}const Se=he({name:"ripple",beforeMount(e,n){const o=n.instance.$.appContext.config.globalProperties.$q.config||{};if(o.ripple===!1)return;const l={cfg:o,enabled:n.value!==!1,modifiers:{},abort:[],start(i){l.enabled===!0&&i.qSkipRipple!==!0&&i.type===(l.modifiers.early===!0?"pointerdown":"click")&&ue(i,e,l,i.qKeyEvent===!0)},keystart:ot(i=>{l.enabled===!0&&i.qSkipRipple!==!0&&K(i,l.modifiers.keyCodes)===!0&&i.type===`key${l.modifiers.early===!0?"down":"up"}`&&ue(i,e,l,!0)},300)};ce(l,n),e.__qripple=l,$e(l,"main",[[e,"pointerdown","start","passive"],[e,"click","start","passive"],[e,"keydown","keystart","passive"],[e,"keyup","keystart","passive"]])},updated(e,n){if(n.oldValue!==n.value){const o=e.__qripple;o!==void 0&&(o.enabled=n.value!==!1,o.enabled===!0&&Object(n.value)===n.value&&ce(o,n))}},beforeUnmount(e){const n=e.__qripple;n!==void 0&&(n.abort.forEach(o=>{o()}),qe(n,"main"),delete e._qripple)}}),we={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},lt=Object.keys(we),at={align:{type:String,validator:e=>lt.includes(e)}};function rt(e){return t.computed(()=>{const n=e.align===void 0?e.vertical===!0?"stretch":"left":e.align;return`${e.vertical===!0?"items":"justify"}-${we[n]}`})}function X(e){if(Object(e.$parent)===e.$parent)return e.$parent;let{parent:n}=e.$;for(;Object(n)===n;){if(Object(n.proxy)===n.proxy)return n.proxy;n=n.parent}}function Ve(e){return e.appContext.config.globalProperties.$router!==void 0}function it(e){return e.isUnmounted===!0||e.isDeactivated===!0}function de(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function me(e,n){return(e.aliasOf||e)===(n.aliasOf||n)}function st(e,n){for(const o in n){const l=n[o],i=e[o];if(typeof l=="string"){if(l!==i)return!1}else if(Array.isArray(i)===!1||i.length!==l.length||l.some((r,a)=>r!==i[a]))return!1}return!0}function fe(e,n){return Array.isArray(n)===!0?e.length===n.length&&e.every((o,l)=>o===n[l]):e.length===1&&e[0]===n}function ut(e,n){return Array.isArray(e)===!0?fe(e,n):Array.isArray(n)===!0?fe(n,e):e===n}function ct(e,n){if(Object.keys(e).length!==Object.keys(n).length)return!1;for(const o in e)if(ut(e[o],n[o])===!1)return!1;return!0}const Pe={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},dt={...Pe,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function Me({fallbackTag:e,useDisableForRouterLinkProps:n=!0}={}){const o=t.getCurrentInstance(),{props:l,proxy:i,emit:r}=o,a=Ve(o),s=t.computed(()=>l.disable!==!0&&l.href!==void 0),k=n===!0?t.computed(()=>a===!0&&l.disable!==!0&&s.value!==!0&&l.to!==void 0&&l.to!==null&&l.to!==""):t.computed(()=>a===!0&&s.value!==!0&&l.to!==void 0&&l.to!==null&&l.to!==""),B=t.computed(()=>k.value===!0?C(l.to):null),m=t.computed(()=>B.value!==null),y=t.computed(()=>s.value===!0||m.value===!0),d=t.computed(()=>l.type==="a"||y.value===!0?"a":l.tag||e||"div"),b=t.computed(()=>s.value===!0?{href:l.href,target:l.target}:m.value===!0?{href:B.value.href,target:l.target}:{}),u=t.computed(()=>{if(m.value===!1)return-1;const{matched:_}=B.value,{length:E}=_,S=_[E-1];if(S===void 0)return-1;const R=i.$route.matched;if(R.length===0)return-1;const L=R.findIndex(me.bind(null,S));if(L!==-1)return L;const D=de(_[E-2]);return E>1&&de(S)===D&&R[R.length-1].path!==D?R.findIndex(me.bind(null,_[E-2])):L}),p=t.computed(()=>m.value===!0&&u.value!==-1&&st(i.$route.params,B.value.params)),f=t.computed(()=>p.value===!0&&u.value===i.$route.matched.length-1&&ct(i.$route.params,B.value.params)),h=t.computed(()=>m.value===!0?f.value===!0?` ${l.exactActiveClass} ${l.activeClass}`:l.exact===!0?"":p.value===!0?` ${l.activeClass}`:"":"");function C(_){try{return i.$router.resolve(_)}catch{}return null}function v(_,{returnRouterError:E,to:S=l.to,replace:R=l.replace}={}){if(l.disable===!0)return _.preventDefault(),Promise.resolve(!1);if(_.metaKey||_.altKey||_.ctrlKey||_.shiftKey||_.button!==void 0&&_.button!==0||l.target==="_blank")return Promise.resolve(!1);_.preventDefault();const L=i.$router[R===!0?"replace":"push"](S);return E===!0?L:L.then(()=>{}).catch(()=>{})}function q(_){if(m.value===!0){const E=S=>v(_,S);r("click",_,E),_.defaultPrevented!==!0&&E()}else r("click",_)}return{hasRouterLink:m,hasHrefLink:s,hasLink:y,linkTag:d,resolvedLink:B,linkIsActive:p,linkIsExactActive:f,linkClass:h,linkAttrs:b,getLink:C,navigateToRouterLink:v,navigateOnClick:q}}const pe={none:0,xs:4,sm:8,md:16,lg:24,xl:32},mt={xs:8,sm:10,md:14,lg:20,xl:24},ft=["button","submit","reset"],pt=/[^\s]\/[^\s]/,vt=["flat","outline","push","unelevated"];function Re(e,n){return e.flat===!0?"flat":e.outline===!0?"outline":e.push===!0?"push":e.unelevated===!0?"unelevated":n}function gt(e){const n=Re(e);return n!==void 0?{[n]:!0}:{}}const Le={...Q,...Pe,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...vt.reduce((e,n)=>(e[n]=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:{...at.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},ht={...Le,round:Boolean};function bt(e){const n=U(e,mt),o=rt(e),{hasRouterLink:l,hasLink:i,linkTag:r,linkAttrs:a,navigateOnClick:s}=Me({fallbackTag:"button"}),k=t.computed(()=>{const f=e.fab===!1&&e.fabMini===!1?n.value:{};return e.padding!==void 0?Object.assign({},f,{padding:e.padding.split(/\s+/).map(h=>h in pe?pe[h]+"px":h).join(" "),minWidth:"0",minHeight:"0"}):f}),B=t.computed(()=>e.rounded===!0||e.fab===!0||e.fabMini===!0),m=t.computed(()=>e.disable!==!0&&e.loading!==!0),y=t.computed(()=>m.value===!0?e.tabindex||0:-1),d=t.computed(()=>Re(e,"standard")),b=t.computed(()=>{const f={tabindex:y.value};return i.value===!0?Object.assign(f,a.value):ft.includes(e.type)===!0&&(f.type=e.type),r.value==="a"?(e.disable===!0?f["aria-disabled"]="true":f.href===void 0&&(f.role="button"),l.value!==!0&&pt.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}),u=t.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 h=e.round===!0?"round":`rectangle${B.value===!0?" q-btn--rounded":e.square===!0?" q-btn--square":""}`;return`q-btn--${d.value} q-btn--${h}`+(f!==void 0?" "+f:"")+(m.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":"")}),p=t.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:u,style:k,innerClasses:p,attributes:b,hasLink:i,linkTag:r,navigateOnClick:s,isActionable:m}}const{passiveCapture:M}=H;let O=null,j=null,F=null;const Ie=T({name:"QBtn",props:{...ht,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:n,emit:o}){const{proxy:l}=t.getCurrentInstance(),{classes:i,style:r,innerClasses:a,attributes:s,hasLink:k,linkTag:B,navigateOnClick:m,isActionable:y}=bt(e),d=t.ref(null),b=t.ref(null);let u=null,p,f=null;const h=t.computed(()=>e.label!==void 0&&e.label!==null&&e.label!==""),C=t.computed(()=>e.disable===!0||e.ripple===!1?!1:{keyCodes:k.value===!0?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),v=t.computed(()=>({center:e.round})),q=t.computed(()=>{const c=Math.max(0,Math.min(100,e.percentage));return c>0?{transition:"transform 0.6s",transform:`translateX(${c-100}%)`}:{}}),_=t.computed(()=>{if(e.loading===!0)return{onMousedown:V,onTouchstart:V,onClick:V,onKeydown:V,onKeyup:V};if(y.value===!0){const c={onClick:S,onKeydown:R,onMousedown:D};if(l.$q.platform.has.touch===!0){const $=e.onTouchstart!==void 0?"":"Passive";c[`onTouchstart${$}`]=L}return c}return{onClick:I}}),E=t.computed(()=>({ref:d,class:"q-btn q-btn-item non-selectable no-outline "+i.value,style:r.value,...s.value,..._.value}));function S(c){if(d.value!==null){if(c!==void 0){if(c.defaultPrevented===!0)return;const $=document.activeElement;if(e.type==="submit"&&$!==document.body&&d.value.contains($)===!1&&$.contains(d.value)===!1){c.qAvoidFocus!==!0&&d.value.focus();const N=()=>{var x;document.removeEventListener("keydown",I,!0),document.removeEventListener("keyup",N,M),(x=d.value)==null||x.removeEventListener("blur",N,M)};document.addEventListener("keydown",I,!0),document.addEventListener("keyup",N,M),d.value.addEventListener("blur",N,M)}}m(c)}}function R(c){d.value!==null&&(o("keydown",c),K(c,[13,32])===!0&&j!==d.value&&(j!==null&&g(),c.defaultPrevented!==!0&&(c.qAvoidFocus!==!0&&d.value.focus(),j=d.value,d.value.classList.add("q-btn--active"),document.addEventListener("keyup",P,!0),d.value.addEventListener("blur",P,M)),I(c)))}function L(c){d.value!==null&&(o("touchstart",c),c.defaultPrevented!==!0&&(O!==d.value&&(O!==null&&g(),O=d.value,u=c.target,u.addEventListener("touchcancel",P,M),u.addEventListener("touchend",P,M)),p=!0,f!==null&&clearTimeout(f),f=setTimeout(()=>{f=null,p=!1},200)))}function D(c){d.value!==null&&(c.qSkipRipple=p===!0,o("mousedown",c),c.defaultPrevented!==!0&&F!==d.value&&(F!==null&&g(),F=d.value,d.value.classList.add("q-btn--active"),document.addEventListener("mouseup",P,M)))}function P(c){if(d.value!==null&&!((c==null?void 0:c.type)==="blur"&&document.activeElement===d.value)){if((c==null?void 0:c.type)==="keyup"){if(j===d.value&&K(c,[13,32])===!0){const $=new MouseEvent("click",c);$.qKeyEvent=!0,c.defaultPrevented===!0&&Ce($),c.cancelBubble===!0&&ae($),d.value.dispatchEvent($),I(c),c.qKeyEvent=!0}o("keyup",c)}g()}}function g(c){var N,x;const $=b.value;c!==!0&&(O===d.value||F===d.value)&&$!==null&&$!==document.activeElement&&($.setAttribute("tabindex",-1),$.focus()),O===d.value&&(u!==null&&(u.removeEventListener("touchcancel",P,M),u.removeEventListener("touchend",P,M)),O=u=null),F===d.value&&(document.removeEventListener("mouseup",P,M),F=null),j===d.value&&(document.removeEventListener("keyup",P,!0),(N=d.value)==null||N.removeEventListener("blur",P,M),j=null),(x=d.value)==null||x.classList.remove("q-btn--active")}function V(c){I(c),c.qSkipRipple=!0}return t.onBeforeUnmount(()=>{g(!0)}),Object.assign(l,{click:c=>{y.value===!0&&S(c)}}),()=>{let c=[];e.icon!==void 0&&c.push(t.h(W,{name:e.icon,left:e.stack!==!0&&h.value===!0,role:"img"})),h.value===!0&&c.push(t.h("span",{class:"block"},[e.label])),c=A(n.default,c),e.iconRight!==void 0&&e.round===!1&&c.push(t.h(W,{name:e.iconRight,right:e.stack!==!0&&h.value===!0,role:"img"}));const $=[t.h("span",{class:"q-focus-helper",ref:b})];return e.loading===!0&&e.percentage!==void 0&&$.push(t.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(e.darkPercentage===!0?" q-btn__progress--dark":"")},[t.h("span",{class:"q-btn__progress-indicator fit block",style:q.value})])),$.push(t.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+a.value},c)),e.loading!==null&&$.push(t.h(t.Transition,{name:"q-transition--fade"},()=>e.loading===!0?[t.h("span",{key:"loading",class:"absolute-full flex flex-center"},n.loading!==void 0?n.loading():[t.h(le)])]:null)),t.withDirectives(t.h(B.value,E.value,$),[[Se,C.value,void 0,v.value]])}}}),kt=t.defineComponent({__name:"AppButton",props:{size:{default:w.MD},transparent:{type:Boolean},flat:{type:Boolean},rounded:{type:Boolean},color:{default:ne.PRIMARY},iconLeft:{},iconRight:{},iconMiddle:{},disabled:{type:Boolean},loading:{type:Boolean},to:{},href:{},target:{},submit:{type:Boolean},ariaLabel:{},label:{},download:{}},emits:["click"],setup(e){const n=e,o=t.computed(()=>["app-btn",{"app-btn_default":!n.transparent&&!n.flat,"app-btn_trans":n.transparent,"app-btn_flat":n.flat,"app-btn_rounded":n.rounded,"app-btn_icon-left":n.iconLeft,"app-btn_icon-right":n.iconRight,"app-btn_icon-middle":n.iconMiddle},`app-btn_${n.size}`,`app-btn_${n.color}`]);return(l,i)=>(t.openBlock(),t.createBlock(t.unref(Ie),{"no-caps":"",unelevated:"",class:t.normalizeClass(o.value),padding:t.unref(Oe)[l.size||t.unref(w).MD],loading:l.loading,disable:l.disabled||void 0,to:l.to,href:l.href,target:l.target,type:l.submit?"submit":void 0,"aria-label":l.ariaLabel,download:l.download,onClick:i[0]||(i[0]=r=>l.$emit("click",r))},{default:t.withCtx(()=>[l.iconLeft||l.iconMiddle?(t.openBlock(),t.createElementBlock("i",{key:0,class:t.normalizeClass(["icon-kl",l.iconLeft?"icon-kl_left":"icon-kl_middle",`icon-kl-${l.iconLeft||l.iconMiddle}`,l.transparent||l.flat?`text-${l.color}`:"text-secondary"])},null,2)):t.createCommentVNode("",!0),t.renderSlot(l.$slots,"default",{},void 0,!0),l.label?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(l.label),1)],64)):t.createCommentVNode("",!0),l.iconRight?(t.openBlock(),t.createElementBlock("i",{key:2,class:t.normalizeClass(["icon-kl","icon-kl_right",`icon-kl-${l.iconRight}`,l.transparent?`text-${l.color}`:"text-secondary"])},null,2)):t.createCommentVNode("",!0)]),_:3},8,["class","padding","loading","disable","to","href","target","type","aria-label","download"]))}}),z=(e,n)=>{const o=e.__vccOpts||e;for(const[l,i]of n)o[l]=i;return o},yt=z(kt,[["__scopeId","data-v-c9951ab6"]]),_t=t.defineComponent({__name:"CloseButton",props:{size:{default:w.MD}},setup(e){const n=e,o=t.computed(()=>["close-btn",`close-btn_${n.size}`]);return(l,i)=>(t.openBlock(),t.createElementBlock("button",{class:t.normalizeClass(o.value),type:"button","aria-label":"Close"},[...i[0]||(i[0]=[t.createElementVNode("i",{class:"icon-kl icon-kl-close"},null,-1)])],2))}}),Bt=z(_t,[["__scopeId","data-v-7cc56d51"]]),Ct={key:0,class:"app-toggle__label app-toggle__label_left"},$t={class:"app-toggle__container"},qt=["checked","disabled"],Et={class:"app-toggle__thumb"},St={key:1,class:"app-toggle__label"},wt=t.defineComponent({__name:"AppToggle",props:{modelValue:{type:Boolean},size:{default:w.MD},label:{},disabled:{type:Boolean},color:{default:ne.PRIMARY},iconColor:{},icon:{},iconActive:{},labelLeft:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:n}){const o=e,l=n,i=t.computed({get:()=>o.modelValue,set:a=>{l("update:modelValue",a)}}),r=t.computed(()=>["app-toggle",{"app-toggle_active":i.value,"app-toggle_disabled":o.disabled},`app-toggle_${o.size}`,`app-toggle_${o.color}`]);return(a,s)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(r.value),onClick:s[1]||(s[1]=t.withModifiers(()=>{},["stop"]))},[a.label&&a.labelLeft?(t.openBlock(),t.createElementBlock("span",Ct,t.toDisplayString(a.label),1)):t.createCommentVNode("",!0),t.createElementVNode("label",$t,[t.createElementVNode("input",{type:"checkbox",checked:i.value,onChange:s[0]||(s[0]=k=>i.value=!i.value),disabled:a.disabled,class:"app-toggle__input"},null,40,qt),t.createElementVNode("span",{class:t.normalizeClass(["app-toggle__slider",i.value?`bg-${a.color}`:""])},[t.createElementVNode("span",Et,[a.icon&&!a.modelValue?(t.openBlock(),t.createElementBlock("i",{key:0,class:t.normalizeClass(["icon-kl",`icon-kl-${a.icon}`,"app-toggle__icon"])},null,2)):t.createCommentVNode("",!0),a.modelValue&&(a.iconActive||a.icon)?(t.openBlock(),t.createElementBlock("i",{key:1,class:t.normalizeClass(["icon-kl",`icon-kl-${a.iconActive||a.icon}`,"app-toggle__icon",i.value?`text-${a.iconColor}`:""])},null,2)):t.createCommentVNode("",!0)])],2),t.renderSlot(a.$slots,"default",{},void 0,!0)]),a.label&&!a.labelLeft?(t.openBlock(),t.createElementBlock("span",St,t.toDisplayString(a.label),1)):t.createCommentVNode("",!0)],2))}}),re=z(wt,[["__scopeId","data-v-ba49356e"]]),G={dark:{type:Boolean,default:null}};function Z(e,n){return t.computed(()=>e.dark===null?n.dark.isActive:e.dark)}function Vt(e,n){const o=t.ref(null),l=t.computed(()=>e.disable===!0?null:t.h("span",{ref:o,class:"no-outline",tabindex:-1}));function i(r){const a=n.value;(r==null?void 0:r.qAvoidFocus)!==!0&&((r==null?void 0:r.type.indexOf("key"))===0?document.activeElement!==a&&(a==null?void 0:a.contains(document.activeElement))===!0&&a.focus():o.value!==null&&(r===void 0||(a==null?void 0:a.contains(r.target))===!0)&&o.value.focus())}return{refocusTargetEl:l,refocusTarget:i}}const ze={name:String};function Pt(e={}){return(n,o,l)=>{n[o](t.h("input",{class:"hidden"+(l||""),...e.value}))}}function Mt(e){return t.computed(()=>e.name||e.for)}const Rt={xs:30,sm:35,md:40,lg:50,xl:60},Lt={...G,...Q,...ze,modelValue:{required:!0,default:null},val:{},trueValue:{default:!0},falseValue:{default:!1},indeterminateValue:{default:null},checkedIcon:String,uncheckedIcon:String,indeterminateIcon:String,toggleOrder:{type:String,validator:e=>e==="tf"||e==="ft"},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},It=["update:modelValue"];function zt(e,n){const{props:o,slots:l,emit:i,proxy:r}=t.getCurrentInstance(),{$q:a}=r,s=Z(o,a),k=t.ref(null),{refocusTargetEl:B,refocusTarget:m}=Vt(o,k),y=U(o,Rt),d=t.computed(()=>o.val!==void 0&&Array.isArray(o.modelValue)),b=t.computed(()=>{const g=t.toRaw(o.val);return d.value===!0?o.modelValue.findIndex(V=>t.toRaw(V)===g):-1}),u=t.computed(()=>d.value===!0?b.value!==-1:t.toRaw(o.modelValue)===t.toRaw(o.trueValue)),p=t.computed(()=>d.value===!0?b.value===-1:t.toRaw(o.modelValue)===t.toRaw(o.falseValue)),f=t.computed(()=>u.value===!1&&p.value===!1),h=t.computed(()=>o.disable===!0?-1:o.tabindex||0),C=t.computed(()=>`q-${e} cursor-pointer no-outline row inline no-wrap items-center`+(o.disable===!0?" disabled":"")+(s.value===!0?` q-${e}--dark`:"")+(o.dense===!0?` q-${e}--dense`:"")+(o.leftLabel===!0?" reverse":"")),v=t.computed(()=>{const g=u.value===!0?"truthy":p.value===!0?"falsy":"indet",V=o.color!==void 0&&(o.keepColor===!0||p.value!==!0)?` text-${o.color}`:"";return`q-${e}__inner relative-position non-selectable q-${e}__inner--${g}${V}`}),q=t.computed(()=>{const g={type:"checkbox"};return o.name!==void 0&&Object.assign(g,{".checked":u.value,"^checked":u.value===!0?"checked":void 0,name:o.name,value:d.value===!0?o.val:o.trueValue}),g}),_=Pt(q),E=t.computed(()=>{const g={tabindex:h.value,role:"checkbox","aria-label":o.label,"aria-checked":f.value===!0?"mixed":u.value===!0?"true":"false"};return o.disable===!0&&(g["aria-disabled"]="true"),g});function S(g){g!==void 0&&(I(g),m(g)),o.disable!==!0&&i("update:modelValue",R(),g)}function R(){if(d.value===!0){if(u.value===!0){const g=o.modelValue.slice();return g.splice(b.value,1),g}return o.modelValue.concat([o.val])}if(u.value===!0){if(o.toggleOrder!=="ft"||o.toggleIndeterminate===!1)return o.falseValue}else if(p.value===!0){if(o.toggleOrder==="ft"||o.toggleIndeterminate===!1)return o.trueValue}else return o.toggleOrder!=="ft"?o.trueValue:o.falseValue;return o.indeterminateValue}function L(g){(g.keyCode===13||g.keyCode===32)&&I(g)}function D(g){(g.keyCode===13||g.keyCode===32)&&S(g)}const P=n(u,f);return Object.assign(r,{toggle:S}),()=>{const g=P();o.disable!==!0&&_(g,"unshift",` q-${e}__native absolute q-ma-none q-pa-none`);const V=[t.h("div",{class:v.value,style:y.value,"aria-hidden":"true"},g)];B.value!==null&&V.push(B.value);const c=o.label!==void 0?A(l.default,[o.label]):oe(l.default);return c!==void 0&&V.push(t.h("div",{class:`q-${e}__label q-anchor--skip`},c)),t.h("div",{ref:k,class:C.value,...E.value,onClick:S,onKeydown:L,onKeyup:D},V)}}const At=()=>t.h("div",{key:"svg",class:"q-checkbox__bg absolute"},[t.h("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[t.h("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),t.h("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),Nt=T({name:"QCheckbox",props:Lt,emits:It,setup(e){const n=At();function o(l,i){const r=t.computed(()=>(l.value===!0?e.checkedIcon:i.value===!0?e.indeterminateIcon:e.uncheckedIcon)||null);return()=>r.value!==null?[t.h("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[t.h(W,{class:"q-checkbox__icon",name:r.value})])]:[n]}return zt("checkbox",o)}}),Ae=[];function Tt(e){return Ae.find(n=>n.contentEl!==null&&n.contentEl.contains(e))}function Ne(e,n){do{if(e.$options.name==="QMenu"){if(e.hide(n),e.$props.separateClosePopup===!0)return X(e)}else if(e.__qPortal===!0){const o=X(e);return(o==null?void 0:o.$options.name)==="QPopupProxy"?(e.hide(n),o):e}e=X(e)}while(e!=null)}function Dt(e,n,o){for(;o!==0&&e!==void 0&&e!==null;){if(e.__qPortal===!0){if(o--,e.$options.name==="QMenu"){e=Ne(e,n);continue}e.hide(n)}e=X(e)}}function ve(e){if(e===!1)return 0;if(e===!0||e===void 0)return 1;const n=parseInt(e,10);return isNaN(n)?0:n}const Ot=he({name:"close-popup",beforeMount(e,{value:n}){const o={depth:ve(n),handler(l){o.depth!==0&&setTimeout(()=>{const i=Tt(e);i!==void 0&&Dt(i,l,o.depth)})},handlerKey(l){K(l,13)===!0&&o.handler(l)}};e.__qclosepopup=o,e.addEventListener("click",o.handler),e.addEventListener("keyup",o.handlerKey)},updated(e,{value:n,oldValue:o}){n!==o&&(e.__qclosepopup.depth=ve(n))},beforeUnmount(e){const n=e.__qclosepopup;e.removeEventListener("click",n.handler),e.removeEventListener("keyup",n.handlerKey),delete e.__qclosepopup}}),jt={key:0,class:"menu-item__loading"},Ft={key:0,class:"menu-item__checked"},Kt={key:2,class:"menu-item__icon"},xt={class:"menu-item__label"},Qt={key:3,class:"menu-item__icon-right icon-kl icon-kl-arrow-right"},Ut=t.defineComponent({__name:"PopupItem",props:{label:{},icon:{},iconSize:{},color:{},iconRight:{},arrow:{type:Boolean},toggle:{type:Boolean},checkbox:{type:Boolean},active:{type:Boolean},modelValue:{type:Boolean},persistent:{type:Boolean},loading:{type:Boolean},disabled:{type:Boolean},gap:{type:Boolean},checked:{type:Boolean},isMobile:{type:Boolean}},emits:["update:modelValue","closePopup"],setup(e,{emit:n}){const o=e,l=n,i=()=>{o.disabled||(o.toggle||o.checkbox?l("update:modelValue",!o.modelValue):o.persistent||l("closePopup"))};return(r,a)=>t.withDirectives((t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["menu-item",[{"menu-item_gap":r.gap},{"menu-item_disabled":r.disabled},{"menu-item_active":r.active},{"menu-item_mobile":r.isMobile}]]),onClick:i},[t.createElementVNode("div",{class:t.normalizeClass(["row items-center no-wrap",`text-${r.color?r.color:"dark"}`])},[r.loading?(t.openBlock(),t.createElementBlock("div",jt,[t.createVNode(t.unref(le),{size:"19px",color:r.color?r.color:"dark"},null,8,["color"])])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[r.checked?(t.openBlock(),t.createElementBlock("div",Ft,[...a[3]||(a[3]=[t.createElementVNode("i",{class:"icon-kl icon-kl-check"},null,-1)])])):t.createCommentVNode("",!0),r.checkbox?(t.openBlock(),t.createBlock(Nt,{key:1,class:"menu-item__checkbox",size:"34px","model-value":r.modelValue,"onUpdate:modelValue":a[0]||(a[0]=s=>l("update:modelValue",s)),onClick:a[1]||(a[1]=t.withModifiers(()=>{},["stop"]))},null,8,["model-value"])):t.createCommentVNode("",!0),r.icon?(t.openBlock(),t.createElementBlock("div",Kt,[t.createElementVNode("i",{class:t.normalizeClass(`icon-kl icon-kl-${r.icon}`),style:t.normalizeStyle({fontSize:r.iconSize||"27px"})},null,6)])):t.createCommentVNode("",!0)],64)),t.createElementVNode("span",xt,t.toDisplayString(r.label),1)],2),r.$slots.right?t.renderSlot(r.$slots,"right",{key:0},void 0,!0):r.toggle?(t.openBlock(),t.createBlock(re,{key:1,class:"menu-item__toggle","model-value":r.modelValue,disabled:r.disabled||r.loading,"onUpdate:modelValue":a[2]||(a[2]=s=>l("update:modelValue",s))},null,8,["model-value","disabled"])):r.iconRight?(t.openBlock(),t.createElementBlock("i",{key:2,class:t.normalizeClass(["menu-item__icon-right menu-item__icon-right_custom icon-kl",`icon-kl-${r.iconRight}`])},null,2)):r.arrow?(t.openBlock(),t.createElementBlock("i",Qt)):t.createCommentVNode("",!0)],2)),[[Ot,!r.toggle&&!r.checkbox&&!r.persistent&&!r.disabled]])}}),Ht=z(Ut,[["__scopeId","data-v-4b2a03b5"]]),Xt=t.defineComponent({__name:"AppIcon",props:{name:{},size:{},color:{}},setup(e){return(n,o)=>(t.openBlock(),t.createElementBlock("i",{class:t.normalizeClass(["icon-kl",`icon-kl-${n.name}`,n.color?`text-${n.color}`:""]),style:t.normalizeStyle(n.size?`font-size: ${n.size}`:void 0)},null,6))}}),Y=z(Xt,[["__scopeId","data-v-941765ee"]]),Yt={xs:2,sm:4,md:6,lg:10,xl:14};function ge(e,n,o){return{transform:n===!0?`translateX(${o.lang.rtl===!0?"-":""}100%) scale3d(${-e},1,1)`:`scale3d(${e},1,1)`}}const Wt=T({name:"QLinearProgress",props:{...G,...Q,value:{type:Number,default:0},buffer:Number,color:String,trackColor:String,reverse:Boolean,stripe:Boolean,indeterminate:Boolean,query:Boolean,rounded:Boolean,animationSpeed:{type:[String,Number],default:2100},instantFeedback:Boolean},setup(e,{slots:n}){const{proxy:o}=t.getCurrentInstance(),l=Z(e,o.$q),i=U(e,Yt),r=t.computed(()=>e.indeterminate===!0||e.query===!0),a=t.computed(()=>e.reverse!==e.query),s=t.computed(()=>({...i.value!==null?i.value:{},"--q-linear-progress-speed":`${e.animationSpeed}ms`})),k=t.computed(()=>"q-linear-progress"+(e.color!==void 0?` text-${e.color}`:"")+(e.reverse===!0||e.query===!0?" q-linear-progress--reverse":"")+(e.rounded===!0?" rounded-borders":"")),B=t.computed(()=>ge(e.buffer!==void 0?e.buffer:1,a.value,o.$q)),m=t.computed(()=>`with${e.instantFeedback===!0?"out":""}-transition`),y=t.computed(()=>`q-linear-progress__track absolute-full q-linear-progress__track--${m.value} q-linear-progress__track--${l.value===!0?"dark":"light"}`+(e.trackColor!==void 0?` bg-${e.trackColor}`:"")),d=t.computed(()=>ge(r.value===!0?1:e.value,a.value,o.$q)),b=t.computed(()=>`q-linear-progress__model absolute-full q-linear-progress__model--${m.value} q-linear-progress__model--${r.value===!0?"in":""}determinate`),u=t.computed(()=>({width:`${e.value*100}%`})),p=t.computed(()=>`q-linear-progress__stripe absolute-${e.reverse===!0?"right":"left"} q-linear-progress__stripe--${m.value}`);return()=>{const f=[t.h("div",{class:y.value,style:B.value}),t.h("div",{class:b.value,style:d.value})];return e.stripe===!0&&r.value===!1&&f.push(t.h("div",{class:p.value,style:u.value})),t.h("div",{class:k.value,style:s.value,role:"progressbar","aria-valuemin":0,"aria-valuemax":1,"aria-valuenow":e.indeterminate===!0?void 0:e.value},A(n.default,f))}}}),Gt={key:0,class:"code-field__label"},Zt={class:"code-field__inputs"},Jt=["onUpdate:modelValue","disabled","onInput","onKeydown","onPaste"],en=t.defineComponent({__name:"AppCodeInput",props:{length:{default:5},size:{default:w.MD},label:{},disabled:{type:Boolean},loading:{type:Boolean},autofocus:{type:Boolean},color:{}},emits:["update:modelValue","completed"],setup(e,{expose:n,emit:o}){const l=e,i=o,r=t.ref(Array(l.length).fill("")),a=t.ref([]),s=t.computed(()=>["code-field",{"code-field_disabled":l.disabled||l.loading},`code-field_${l.size}`,`code-field_${l.color}`]),k=t.computed(()=>{let u="";return l.size==w.SM&&(u+=`width: ${l.length*26+(l.length-1)*5}px`),l.size==w.MD&&(u+=`width: ${l.length*32+(l.length-1)*8}px`),l.size==w.LG&&(u+=`width: ${l.length*44+(l.length-1)*10}px`),u}),B=(u,p)=>{var C;const h=u.target.value;if(h.length===1)p<l.length-1&&a.value&&((C=a.value[p+1])==null||C.focus());else if(h.length>1){const v=h.slice(0,l.length-p).split("");v.forEach((q,_)=>{r.value[p+_]=q}),t.nextTick(()=>{var q;a.value&&((q=a.value[Math.min(p+v.length,l.length-1)])==null||q.focus())})}},m=u=>{var p;r.value[u]===""&&a.value&&u>0&&((p=a.value[u-1])==null||p.focus())},y=(u,p)=>{var C;u.preventDefault();const f=((C=u.clipboardData)==null?void 0:C.getData("text"))??"";if(!f)return;const h=f.slice(0,l.length-p).split("");h.forEach((v,q)=>{r.value[p+q]=v}),t.nextTick(()=>{var v;a.value&&((v=a.value[Math.min(p+h.length,l.length-1)])==null||v.focus())})};t.watch(r,u=>{const p=u.join("");d(p)},{deep:!0});const d=u=>{i("update:modelValue",u),u.length===l.length&&!u.includes(" ")&&i("completed",u)},b=u=>{u&&(r.value=u.split("").slice(0,l.length))};return t.onMounted(()=>{l.autofocus&&a.value&&a.value[0]&&a.value[0].focus()}),n({injectCode:b}),(u,p)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(s.value),style:t.normalizeStyle(k.value)},[u.label?(t.openBlock(),t.createElementBlock("label",Gt,t.toDisplayString(u.label),1)):t.createCommentVNode("",!0),t.createElementVNode("div",Zt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.length,(f,h)=>t.withDirectives((t.openBlock(),t.createElementBlock("input",{key:h,"onUpdate:modelValue":C=>r.value[h]=C,ref_for:!0,ref_key:"inputRefs",ref:a,type:"number",maxlength:"1",class:"code-field__input",disabled:u.disabled||u.loading,onInput:C=>B(C,h),onKeydown:t.withKeys(C=>m(h),["backspace"]),onPaste:C=>y(C,h)},null,40,Jt)),[[t.vModelText,r.value[h]]])),128))]),u.loading?(t.openBlock(),t.createBlock(Wt,{key:1,indeterminate:"",rounded:"",color:u.color,class:"code-field__loading"},null,8,["color"])):t.createCommentVNode("",!0)],6))}}),tn=z(en,[["__scopeId","data-v-4e11db87"]]),nn={class:"app-segment__track"},on={class:"app-segment__buttons"},ln=["onClick","disabled"],an=t.defineComponent({__name:"AppSegment",props:t.mergeModels({options:{},disabled:{type:Boolean},size:{default:w.MD}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const n=t.useModel(e,"modelValue"),o=e,l=t.computed(()=>o.options.findIndex(r=>r.value===n.value));function i(r){o.disabled||(n.value=r)}return(r,a)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["app-segment",[{"app-segment_disabled":r.disabled},`app-segment_${r.size}`]])},[t.createElementVNode("div",nn,[t.createElementVNode("div",{class:"app-segment__thumb",style:t.normalizeStyle({width:`${100/r.options.length}%`,transform:`translateX(${l.value*100}%)`})},null,4)]),t.createElementVNode("div",on,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.options,(s,k)=>(t.openBlock(),t.createElementBlock("button",{key:k,class:t.normalizeClass(["app-segment__btn",{active:n.value===s.value}]),onClick:B=>i(s.value),disabled:r.disabled},[t.renderSlot(r.$slots,"option",{option:s},()=>[t.createTextVNode(t.toDisplayString(s.label),1)],!0)],10,ln))),128))])],2))}}),rn=z(an,[["__scopeId","data-v-ff56abdf"]]),sn={},un={class:"system-menu"};function cn(e,n){return t.openBlock(),t.createElementBlock("div",un,[t.renderSlot(e.$slots,"default",{},void 0,!0)])}const dn=z(sn,[["render",cn],["__scopeId","data-v-5649b2f4"]]),Te=T({name:"QItem",props:{...G,...dt,tag:{type:String,default:"div"},active:{type:Boolean,default:null},clickable:Boolean,dense:Boolean,insetLevel:Number,tabindex:[String,Number],focused:Boolean,manualFocus:Boolean},emits:["click","keyup"],setup(e,{slots:n,emit:o}){const{proxy:{$q:l}}=t.getCurrentInstance(),i=Z(e,l),{hasLink:r,linkAttrs:a,linkClass:s,linkTag:k,navigateOnClick:B}=Me(),m=t.ref(null),y=t.ref(null),d=t.computed(()=>e.clickable===!0||r.value===!0||e.tag==="label"),b=t.computed(()=>e.disable!==!0&&d.value===!0),u=t.computed(()=>"q-item q-item-type row no-wrap"+(e.dense===!0?" q-item--dense":"")+(i.value===!0?" q-item--dark":"")+(r.value===!0&&e.active===null?s.value:e.active===!0?` q-item--active${e.activeClass!==void 0?` ${e.activeClass}`:""}`:"")+(e.disable===!0?" disabled":"")+(b.value===!0?" q-item--clickable q-link cursor-pointer "+(e.manualFocus===!0?"q-manual-focusable":"q-focusable q-hoverable")+(e.focused===!0?" q-manual-focusable--focused":""):"")),p=t.computed(()=>e.insetLevel===void 0?null:{["padding"+(l.lang.rtl===!0?"Right":"Left")]:16+e.insetLevel*56+"px"});function f(v){b.value===!0&&(y.value!==null&&v.qAvoidFocus!==!0&&(v.qKeyEvent!==!0&&document.activeElement===m.value?y.value.focus():document.activeElement===y.value&&m.value.focus()),B(v))}function h(v){if(b.value===!0&&K(v,[13,32])===!0){I(v),v.qKeyEvent=!0;const q=new MouseEvent("click",v);q.qKeyEvent=!0,m.value.dispatchEvent(q)}o("keyup",v)}function C(){const v=je(n.default,[]);return b.value===!0&&v.unshift(t.h("div",{class:"q-focus-helper",tabindex:-1,ref:y})),v}return()=>{const v={ref:m,class:u.value,style:p.value,role:"listitem",onClick:f,onKeyup:h};return b.value===!0?(v.tabindex=e.tabindex||"0",Object.assign(v,a.value)):d.value===!0&&(v["aria-disabled"]="true"),t.h(k.value,v,C())}}}),mn={class:"menu-item__content"},fn={key:0,class:"menu-item__value"},pn=t.defineComponent({__name:"MenuItem",props:t.mergeModels({label:{},icon:{},iconRight:{},arrow:{type:Boolean},color:{},to:{},href:{},target:{},disabled:{type:Boolean},toggle:{type:Boolean},isMobile:{type:Boolean}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:t.mergeModels(["click"],["update:modelValue"]),setup(e,{emit:n}){const o=e,l=n,i=t.useModel(e,"modelValue"),r=async()=>{o.toggle&&(i.value=!i.value),l("click")};return(a,s)=>(t.openBlock(),t.createBlock(t.unref(Te),{class:t.normalizeClass(["menu-item",{"menu-item_disabled":a.disabled,"menu-item_mobile":a.isMobile}]),to:a.to,href:a.href,target:a.target,disable:a.disabled,clickable:"",onClick:r},{default:t.withCtx(()=>[a.icon?(t.openBlock(),t.createBlock(t.unref(Y),{key:0,name:a.icon.name,class:t.normalizeClass(["menu-item__icon",`bg-${a.icon.color}`])},null,8,["name","class"])):t.createCommentVNode("",!0),t.createElementVNode("div",mn,[t.createElementVNode("span",{class:t.normalizeClass(["app-menu-item__label",a.color?`text-${a.color}`:""])},[t.createTextVNode(t.toDisplayString(a.label)+" ",1),t.renderSlot(a.$slots,"default",{},void 0,!0)],2),a.$slots.value?(t.openBlock(),t.createElementBlock("span",fn,[t.renderSlot(a.$slots,"value",{},void 0,!0)])):t.createCommentVNode("",!0),a.toggle?(t.openBlock(),t.createBlock(t.unref(re),{key:1,modelValue:i.value,"onUpdate:modelValue":s[0]||(s[0]=k=>i.value=k)},null,8,["modelValue"])):t.createCommentVNode("",!0),a.iconRight?(t.openBlock(),t.createBlock(t.unref(Y),{key:2,class:"menu-item__icon-right",name:a.iconRight.name,color:a.iconRight.color},null,8,["name","color"])):t.createCommentVNode("",!0),a.arrow?(t.openBlock(),t.createBlock(t.unref(Y),{key:3,class:"menu-item__icon-right menu-item__arrow",name:"arrow-right"})):t.createCommentVNode("",!0)])]),_:3},8,["class","to","href","target","disable"]))}}),vn=z(pn,[["__scopeId","data-v-b9907ab7"]]),gn=t.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./AppButtonCopy-C-ztdhMo.cjs"))),hn=t.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./AppSelect-BmeBIImq.cjs"))),bn=t.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./DropdownButton-0caxYIDd.cjs"))),kn=t.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./BottomSheet-DSqcRbL0.cjs")));exports.AppButton=yt;exports.AppButtonCopy=gn;exports.AppCodeInput=tn;exports.AppIcon=Y;exports.AppSegment=rn;exports.AppSelect=hn;exports.AppToggle=re;exports.BottomSheet=kn;exports.COLORS=ne;exports.CloseButton=Bt;exports.DropdownButton=bn;exports.MenuItem=vn;exports.PopupItem=Ht;exports.QBtn=Ie;exports.QIcon=W;exports.QItem=Te;exports.QSpinner=le;exports.Ripple=Se;exports.SIZES=w;exports.SystemMenu=dn;exports._export_sfc=z;exports.addEvt=$e;exports.childHasFocus=et;exports.cleanEvt=qe;exports.closePortalMenus=Ne;exports.createComponent=T;exports.css=_e;exports.getBtnDesignAttr=gt;exports.getElement=Je;exports.getEventPath=nt;exports.hDir=Ke;exports.hMergeSlot=A;exports.hMergeSlotSafely=Fe;exports.hSlot=oe;exports.iconSet=De;exports.isKeyCode=K;exports.listenOpts=H;exports.nonRoundBtnProps=Le;exports.noop=tt;exports.portalProxyList=Ae;exports.position=Be;exports.prevent=Ce;exports.shouldIgnoreKey=Ee;exports.stop=ae;exports.stopAndPrevent=I;exports.useDark=Z;exports.useDarkProps=G;exports.useFormInputNameAttr=Mt;exports.useFormProps=ze;exports.useSize=U;exports.useSizeProps=Q;exports.vmHasRouter=Ve;exports.vmIsDestroyed=it;