@validol4ik/uikit 0.7.5 → 0.7.7

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.
@@ -1,5 +1,5 @@
1
- import { computed as r, markRaw as Ce, defineComponent as F, h as g, withDirectives as ge, getCurrentInstance as ee, unref as Z, ref as W, onBeforeUnmount as De, Transition as Ne, createBlock as ne, openBlock as h, normalizeClass as L, withCtx as Fe, createElementBlock as _, createCommentVNode as A, renderSlot as ae, Fragment as le, createTextVNode as we, toDisplayString as Y, createElementVNode as T, toRaw as Q, createVNode as Ke, normalizeStyle as oe, watch as Qe, onMounted as Ue, renderList as Ee, withKeys as He, vModelText as Xe, nextTick as pe, mergeModels as We, useModel as Ye, defineAsyncComponent as me } from "vue";
2
- const gn = ({ app: e }) => {
1
+ import { computed as r, markRaw as Ee, defineComponent as K, h as m, withDirectives as oe, getCurrentInstance as ee, unref as Z, ref as W, onBeforeUnmount as Fe, Transition as Qe, createBlock as ae, openBlock as b, normalizeClass as P, withCtx as Ue, createElementBlock as _, createCommentVNode as A, renderSlot as se, Fragment as ie, createTextVNode as Pe, toDisplayString as Y, createElementVNode as T, toRaw as Q, createVNode as He, normalizeStyle as re, watch as Xe, onMounted as We, renderList as Le, withKeys as Ye, vModelText as Ge, nextTick as he, mergeModels as Je, useModel as Ze, defineAsyncComponent as ge } from "vue";
2
+ const _n = ({ app: e }) => {
3
3
  const t = e.config.globalProperties.$q;
4
4
  t.iconMapFn = (n) => {
5
5
  if (n.startsWith("icon-kl:"))
@@ -7,7 +7,7 @@ const gn = ({ app: e }) => {
7
7
  cls: `icon-kl icon-kl-${n.slice(8)}`
8
8
  };
9
9
  };
10
- }, Le = {
10
+ }, Re = {
11
11
  PRIMARY: "primary",
12
12
  INFO: "info"
13
13
  }, z = {
@@ -15,33 +15,33 @@ const gn = ({ app: e }) => {
15
15
  MD: "md",
16
16
  LG: "lg",
17
17
  XL: "xl"
18
- }, Ge = {
18
+ }, et = {
19
19
  [z.SM]: "3px 9px",
20
20
  [z.MD]: "5px 12px",
21
21
  [z.LG]: "6px 15px",
22
22
  [z.XL]: "9px 20px"
23
- }, de = {
23
+ }, me = {
24
24
  xs: 18,
25
25
  sm: 24,
26
26
  md: 32,
27
27
  lg: 38,
28
28
  xl: 46
29
- }, se = {
29
+ }, ue = {
30
30
  size: String
31
31
  };
32
- function ie(e, t = de) {
32
+ function ce(e, t = me) {
33
33
  return r(() => e.size !== void 0 ? { fontSize: e.size in t ? `${t[e.size]}px` : e.size } : null);
34
34
  }
35
35
  function te(e) {
36
- return Ce(F(e));
36
+ return Ee(K(e));
37
37
  }
38
- function Je(e) {
39
- return Ce(e);
38
+ function Me(e) {
39
+ return Ee(e);
40
40
  }
41
- function Re(e, t) {
41
+ function Ae(e, t) {
42
42
  return e !== void 0 && e() || t;
43
43
  }
44
- function mn(e, t) {
44
+ function $n(e, t) {
45
45
  if (e !== void 0) {
46
46
  const n = e();
47
47
  if (n != null)
@@ -52,40 +52,40 @@ function mn(e, t) {
52
52
  function N(e, t) {
53
53
  return e !== void 0 ? t.concat(e()) : t;
54
54
  }
55
- function pn(e, t) {
55
+ function qn(e, t) {
56
56
  return e === void 0 ? t : t !== void 0 ? t.concat(e()) : e();
57
57
  }
58
- function bn(e, t, n, a, s, l) {
58
+ function Sn(e, t, n, a, s, l) {
59
59
  t.key = a + s;
60
- const o = g(e, t, n);
61
- return s === !0 ? ge(o, l()) : o;
60
+ const o = m(e, t, n);
61
+ return s === !0 ? oe(o, l()) : o;
62
62
  }
63
- const be = "0 0 24 24", ue = (e) => e, ce = (e) => `ionicons ${e}`, Pe = {
63
+ const be = "0 0 24 24", fe = (e) => e, ve = (e) => `ionicons ${e}`, Ve = {
64
64
  "mdi-": (e) => `mdi ${e}`,
65
- "icon-": ue,
65
+ "icon-": fe,
66
66
  // fontawesome equiv
67
67
  "bt-": (e) => `bt ${e}`,
68
68
  "eva-": (e) => `eva ${e}`,
69
- "ion-md": ce,
70
- "ion-ios": ce,
71
- "ion-logo": ce,
72
- "iconfont ": ue,
69
+ "ion-md": ve,
70
+ "ion-ios": ve,
71
+ "ion-logo": ve,
72
+ "iconfont ": fe,
73
73
  "ti-": (e) => `themify-icon ${e}`,
74
74
  "bi-": (e) => `bootstrap-icons ${e}`,
75
- "i-": ue
75
+ "i-": fe
76
76
  // UnoCSS pure icons
77
- }, Me = {
77
+ }, Ie = {
78
78
  o_: "-outlined",
79
79
  r_: "-round",
80
80
  s_: "-sharp"
81
- }, Ae = {
81
+ }, Te = {
82
82
  sym_o_: "-outlined",
83
83
  sym_r_: "-rounded",
84
84
  sym_s_: "-sharp"
85
- }, Ze = new RegExp("^(" + Object.keys(Pe).join("|") + ")"), et = new RegExp("^(" + Object.keys(Me).join("|") + ")"), he = new RegExp("^(" + Object.keys(Ae).join("|") + ")"), tt = /^[Mm]\s?[-+]?\.?\d/, nt = /^img:/, at = /^svguse:/, lt = /^ion-/, ot = /^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /, fe = te({
85
+ }, tt = new RegExp("^(" + Object.keys(Ve).join("|") + ")"), nt = new RegExp("^(" + Object.keys(Ie).join("|") + ")"), ke = new RegExp("^(" + Object.keys(Te).join("|") + ")"), at = /^[Mm]\s?[-+]?\.?\d/, lt = /^img:/, ot = /^svguse:/, st = /^ion-/, it = /^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /, pe = te({
86
86
  name: "QIcon",
87
87
  props: {
88
- ...se,
88
+ ...ue,
89
89
  tag: {
90
90
  type: String,
91
91
  default: "i"
@@ -96,7 +96,7 @@ const be = "0 0 24 24", ue = (e) => e, ce = (e) => `ionicons ${e}`, Pe = {
96
96
  right: Boolean
97
97
  },
98
98
  setup(e, { slots: t }) {
99
- const { proxy: { $q: n } } = ee(), a = ie(e), s = r(
99
+ const { proxy: { $q: n } } = ee(), a = ce(e), s = r(
100
100
  () => "q-icon" + (e.left === !0 ? " on-left" : "") + (e.right === !0 ? " on-right" : "") + (e.color !== void 0 ? ` text-${e.color}` : "")
101
101
  ), l = r(() => {
102
102
  let o, i = e.name;
@@ -114,23 +114,23 @@ const be = "0 0 24 24", ue = (e) => e, ce = (e) => `ionicons ${e}`, Pe = {
114
114
  content: f.content !== void 0 ? f.content : " "
115
115
  };
116
116
  }
117
- if (tt.test(i) === !0) {
117
+ if (at.test(i) === !0) {
118
118
  const [f, S = be] = i.split("|");
119
119
  return {
120
120
  svg: !0,
121
121
  viewBox: S,
122
122
  nodes: f.split("&&").map((d) => {
123
- const [q, u, m] = d.split("@@");
124
- return g("path", { style: u, d: q, transform: m });
123
+ const [q, u, p] = d.split("@@");
124
+ return m("path", { style: u, d: q, transform: p });
125
125
  })
126
126
  };
127
127
  }
128
- if (nt.test(i) === !0)
128
+ if (lt.test(i) === !0)
129
129
  return {
130
130
  img: !0,
131
131
  src: i.substring(4)
132
132
  };
133
- if (at.test(i) === !0) {
133
+ if (ot.test(i) === !0) {
134
134
  const [f, S = be] = i.split("|");
135
135
  return {
136
136
  svguse: !0,
@@ -139,21 +139,21 @@ const be = "0 0 24 24", ue = (e) => e, ce = (e) => `ionicons ${e}`, Pe = {
139
139
  };
140
140
  }
141
141
  let $ = " ";
142
- const k = i.match(Ze);
143
- if (k !== null)
144
- o = Pe[k[1]](i);
145
- else if (ot.test(i) === !0)
142
+ const y = i.match(tt);
143
+ if (y !== null)
144
+ o = Ve[y[1]](i);
145
+ else if (it.test(i) === !0)
146
146
  o = i;
147
- else if (lt.test(i) === !0)
147
+ else if (st.test(i) === !0)
148
148
  o = `ionicons ion-${n.platform.is.ios === !0 ? "ios" : "md"}${i.substring(3)}`;
149
- else if (he.test(i) === !0) {
149
+ else if (ke.test(i) === !0) {
150
150
  o = "notranslate material-symbols";
151
- const f = i.match(he);
152
- f !== null && (i = i.substring(6), o += Ae[f[1]]), $ = i;
151
+ const f = i.match(ke);
152
+ f !== null && (i = i.substring(6), o += Te[f[1]]), $ = i;
153
153
  } else {
154
154
  o = "notranslate material-icons";
155
- const f = i.match(et);
156
- f !== null && (i = i.substring(2), o += Me[f[1]]), $ = i;
155
+ const f = i.match(nt);
156
+ f !== null && (i = i.substring(2), o += Ie[f[1]]), $ = i;
157
157
  }
158
158
  return {
159
159
  cls: o,
@@ -166,56 +166,56 @@ const be = "0 0 24 24", ue = (e) => e, ce = (e) => `ionicons ${e}`, Pe = {
166
166
  style: a.value,
167
167
  "aria-hidden": "true"
168
168
  };
169
- return l.value.none === !0 ? g(e.tag, o, Re(t.default)) : l.value.img === !0 ? g(e.tag, o, N(t.default, [
170
- g("img", { src: l.value.src })
171
- ])) : l.value.svg === !0 ? g(e.tag, o, N(t.default, [
172
- g("svg", {
169
+ return l.value.none === !0 ? m(e.tag, o, Ae(t.default)) : l.value.img === !0 ? m(e.tag, o, N(t.default, [
170
+ m("img", { src: l.value.src })
171
+ ])) : l.value.svg === !0 ? m(e.tag, o, N(t.default, [
172
+ m("svg", {
173
173
  viewBox: l.value.viewBox || "0 0 24 24"
174
174
  }, l.value.nodes)
175
- ])) : l.value.svguse === !0 ? g(e.tag, o, N(t.default, [
176
- g("svg", {
175
+ ])) : l.value.svguse === !0 ? m(e.tag, o, N(t.default, [
176
+ m("svg", {
177
177
  viewBox: l.value.viewBox
178
178
  }, [
179
- g("use", { "xlink:href": l.value.src })
179
+ m("use", { "xlink:href": l.value.src })
180
180
  ])
181
- ])) : (l.value.cls !== void 0 && (o.class += " " + l.value.cls), g(e.tag, o, N(t.default, [
181
+ ])) : (l.value.cls !== void 0 && (o.class += " " + l.value.cls), m(e.tag, o, N(t.default, [
182
182
  l.value.content
183
183
  ])));
184
184
  };
185
185
  }
186
- }), st = {
186
+ }), rt = {
187
187
  size: {
188
188
  type: [String, Number],
189
189
  default: "1em"
190
190
  },
191
191
  color: String
192
192
  };
193
- function it(e) {
193
+ function ut(e) {
194
194
  return {
195
- cSize: r(() => e.size in de ? `${de[e.size]}px` : e.size),
195
+ cSize: r(() => e.size in me ? `${me[e.size]}px` : e.size),
196
196
  classes: r(
197
197
  () => "q-spinner" + (e.color ? ` text-${e.color}` : "")
198
198
  )
199
199
  };
200
200
  }
201
- const Ve = te({
201
+ const ze = te({
202
202
  name: "QSpinner",
203
203
  props: {
204
- ...st,
204
+ ...rt,
205
205
  thickness: {
206
206
  type: Number,
207
207
  default: 5
208
208
  }
209
209
  },
210
210
  setup(e) {
211
- const { cSize: t, classes: n } = it(e);
212
- return () => g("svg", {
211
+ const { cSize: t, classes: n } = ut(e);
212
+ return () => m("svg", {
213
213
  class: n.value + " q-spinner-mat",
214
214
  width: t.value,
215
215
  height: t.value,
216
216
  viewBox: "25 25 50 50"
217
217
  }, [
218
- g("circle", {
218
+ m("circle", {
219
219
  class: "path",
220
220
  cx: "50",
221
221
  cy: "50",
@@ -228,12 +228,12 @@ const Ve = te({
228
228
  ]);
229
229
  }
230
230
  });
231
- function rt(e, t) {
231
+ function ct(e, t) {
232
232
  const n = e.style;
233
233
  for (const a in t)
234
234
  n[a] = t[a];
235
235
  }
236
- function hn(e) {
236
+ function Cn(e) {
237
237
  if (e == null)
238
238
  return;
239
239
  if (typeof e == "string")
@@ -246,7 +246,7 @@ function hn(e) {
246
246
  if (t)
247
247
  return t.$el || t;
248
248
  }
249
- function yn(e, t) {
249
+ function Bn(e, t) {
250
250
  if (e == null || e.contains(t) === !0)
251
251
  return !0;
252
252
  for (let n = e.nextElementSibling; n !== null; n = n.nextElementSibling)
@@ -254,7 +254,7 @@ function yn(e, t) {
254
254
  return !0;
255
255
  return !1;
256
256
  }
257
- const re = {
257
+ const de = {
258
258
  hasPassive: !1,
259
259
  passiveCapture: !0,
260
260
  notPassiveCapture: !0
@@ -262,7 +262,7 @@ const re = {
262
262
  try {
263
263
  const e = Object.defineProperty({}, "passive", {
264
264
  get() {
265
- Object.assign(re, {
265
+ Object.assign(de, {
266
266
  hasPassive: !0,
267
267
  passive: { passive: !0 },
268
268
  notPassive: { passive: !1 },
@@ -274,15 +274,15 @@ try {
274
274
  window.addEventListener("qtest", null, e), window.removeEventListener("qtest", null, e);
275
275
  } catch {
276
276
  }
277
- function kn() {
277
+ function wn() {
278
278
  }
279
- function ut(e) {
279
+ function dt(e) {
280
280
  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]), {
281
281
  top: e.clientY,
282
282
  left: e.clientX
283
283
  };
284
284
  }
285
- function _n(e) {
285
+ function En(e) {
286
286
  if (e.path)
287
287
  return e.path;
288
288
  if (e.composedPath)
@@ -295,32 +295,32 @@ function _n(e) {
295
295
  n = n.parentElement;
296
296
  }
297
297
  }
298
- function Ie(e) {
298
+ function Oe(e) {
299
299
  e.stopPropagation();
300
300
  }
301
- function ct(e) {
301
+ function ft(e) {
302
302
  e.cancelable !== !1 && e.preventDefault();
303
303
  }
304
- function j(e) {
304
+ function D(e) {
305
305
  e.cancelable !== !1 && e.preventDefault(), e.stopPropagation();
306
306
  }
307
- function dt(e, t, n) {
307
+ function vt(e, t, n) {
308
308
  const a = `__q_${t}_evt`;
309
309
  e[a] = e[a] !== void 0 ? e[a].concat(n) : n, n.forEach((s) => {
310
- s[0].addEventListener(s[1], e[s[2]], re[s[3]]);
310
+ s[0].addEventListener(s[1], e[s[2]], de[s[3]]);
311
311
  });
312
312
  }
313
- function ft(e, t) {
313
+ function mt(e, t) {
314
314
  const n = `__q_${t}_evt`;
315
315
  e[n] !== void 0 && (e[n].forEach((a) => {
316
- a[0].removeEventListener(a[1], e[a[2]], re[a[3]]);
316
+ a[0].removeEventListener(a[1], e[a[2]], de[a[3]]);
317
317
  }), e[n] = void 0);
318
318
  }
319
- function vt(e) {
319
+ function pt(e) {
320
320
  return e !== Object(e) || e.isComposing === !0 || e.qKeyEvent === !0;
321
321
  }
322
- function ve(e, t) {
323
- return vt(e) === !0 ? !1 : [].concat(t).includes(e.keyCode);
322
+ function le(e, t) {
323
+ return pt(e) === !0 ? !1 : [].concat(t).includes(e.keyCode);
324
324
  }
325
325
  function gt(e, t = 250) {
326
326
  let n = !1, a;
@@ -331,15 +331,15 @@ function gt(e, t = 250) {
331
331
  };
332
332
  }
333
333
  function ye(e, t, n, a) {
334
- n.modifiers.stop === !0 && Ie(e);
334
+ n.modifiers.stop === !0 && Oe(e);
335
335
  const s = n.modifiers.color;
336
336
  let l = n.modifiers.center;
337
337
  l = l === !0 || a === !0;
338
- const o = document.createElement("span"), i = document.createElement("span"), $ = ut(e), { left: k, top: f, width: S, height: d } = t.getBoundingClientRect(), q = Math.sqrt(S * S + d * d), u = q / 2, m = `${(S - q) / 2}px`, v = l ? m : `${$.left - k - u}px`, b = `${(d - q) / 2}px`, B = l ? b : `${$.top - f - u}px`;
339
- i.className = "q-ripple__inner", rt(i, {
338
+ const o = document.createElement("span"), i = document.createElement("span"), $ = dt(e), { left: y, top: f, width: S, height: d } = t.getBoundingClientRect(), q = Math.sqrt(S * S + d * d), u = q / 2, p = `${(S - q) / 2}px`, v = l ? p : `${$.left - y - u}px`, h = `${(d - q) / 2}px`, C = l ? h : `${$.top - f - u}px`;
339
+ i.className = "q-ripple__inner", ct(i, {
340
340
  height: `${q}px`,
341
341
  width: `${q}px`,
342
- transform: `translate3d(${v},${B},0) scale3d(.2,.2,1)`,
342
+ transform: `translate3d(${v},${C},0) scale3d(.2,.2,1)`,
343
343
  opacity: 0
344
344
  }), o.className = `q-ripple${s ? " text-" + s : ""}`, o.setAttribute("dir", "ltr"), o.appendChild(i), t.appendChild(o);
345
345
  const w = () => {
@@ -347,14 +347,14 @@ function ye(e, t, n, a) {
347
347
  };
348
348
  n.abort.push(w);
349
349
  let E = setTimeout(() => {
350
- i.classList.add("q-ripple__inner--enter"), i.style.transform = `translate3d(${m},${b},0) scale3d(1,1,1)`, i.style.opacity = 0.2, E = setTimeout(() => {
350
+ i.classList.add("q-ripple__inner--enter"), i.style.transform = `translate3d(${p},${h},0) scale3d(1,1,1)`, i.style.opacity = 0.2, E = setTimeout(() => {
351
351
  i.classList.remove("q-ripple__inner--enter"), i.classList.add("q-ripple__inner--leave"), i.style.opacity = 0, E = setTimeout(() => {
352
352
  o.remove(), n.abort.splice(n.abort.indexOf(w), 1);
353
353
  }, 275);
354
354
  }, 250);
355
355
  }, 50);
356
356
  }
357
- function ke(e, { modifiers: t, value: n, arg: a }) {
357
+ function _e(e, { modifiers: t, value: n, arg: a }) {
358
358
  const s = Object.assign({}, e.cfg.ripple, t, n);
359
359
  e.modifiers = {
360
360
  early: s.early === !0,
@@ -364,7 +364,7 @@ function ke(e, { modifiers: t, value: n, arg: a }) {
364
364
  keyCodes: [].concat(s.keyCodes || 13)
365
365
  };
366
366
  }
367
- const mt = Je(
367
+ const ht = Me(
368
368
  {
369
369
  name: "ripple",
370
370
  beforeMount(e, t) {
@@ -379,10 +379,10 @@ const mt = Je(
379
379
  a.enabled === !0 && s.qSkipRipple !== !0 && s.type === (a.modifiers.early === !0 ? "pointerdown" : "click") && ye(s, e, a, s.qKeyEvent === !0);
380
380
  },
381
381
  keystart: gt((s) => {
382
- a.enabled === !0 && s.qSkipRipple !== !0 && ve(s, a.modifiers.keyCodes) === !0 && s.type === `key${a.modifiers.early === !0 ? "down" : "up"}` && ye(s, e, a, !0);
382
+ a.enabled === !0 && s.qSkipRipple !== !0 && le(s, a.modifiers.keyCodes) === !0 && s.type === `key${a.modifiers.early === !0 ? "down" : "up"}` && ye(s, e, a, !0);
383
383
  }, 300)
384
384
  };
385
- ke(a, t), e.__qripple = a, dt(a, "main", [
385
+ _e(a, t), e.__qripple = a, vt(a, "main", [
386
386
  [e, "pointerdown", "start", "passive"],
387
387
  [e, "click", "start", "passive"],
388
388
  [e, "keydown", "keystart", "passive"],
@@ -392,17 +392,17 @@ const mt = Je(
392
392
  updated(e, t) {
393
393
  if (t.oldValue !== t.value) {
394
394
  const n = e.__qripple;
395
- n !== void 0 && (n.enabled = t.value !== !1, n.enabled === !0 && Object(t.value) === t.value && ke(n, t));
395
+ n !== void 0 && (n.enabled = t.value !== !1, n.enabled === !0 && Object(t.value) === t.value && _e(n, t));
396
396
  }
397
397
  },
398
398
  beforeUnmount(e) {
399
399
  const t = e.__qripple;
400
400
  t !== void 0 && (t.abort.forEach((n) => {
401
401
  n();
402
- }), ft(t, "main"), delete e._qripple);
402
+ }), mt(t, "main"), delete e._qripple);
403
403
  }
404
404
  }
405
- ), Te = {
405
+ ), je = {
406
406
  left: "start",
407
407
  center: "center",
408
408
  right: "end",
@@ -410,19 +410,19 @@ const mt = Je(
410
410
  around: "around",
411
411
  evenly: "evenly",
412
412
  stretch: "stretch"
413
- }, pt = Object.keys(Te), bt = {
413
+ }, bt = Object.keys(je), kt = {
414
414
  align: {
415
415
  type: String,
416
- validator: (e) => pt.includes(e)
416
+ validator: (e) => bt.includes(e)
417
417
  }
418
418
  };
419
- function ht(e) {
419
+ function yt(e) {
420
420
  return r(() => {
421
421
  const t = e.align === void 0 ? e.vertical === !0 ? "stretch" : "left" : e.align;
422
- return `${e.vertical === !0 ? "items" : "justify"}-${Te[t]}`;
422
+ return `${e.vertical === !0 ? "items" : "justify"}-${je[t]}`;
423
423
  });
424
424
  }
425
- function $n(e) {
425
+ function ne(e) {
426
426
  if (Object(e.$parent) === e.$parent)
427
427
  return e.$parent;
428
428
  let { parent: t } = e.$;
@@ -432,19 +432,19 @@ function $n(e) {
432
432
  t = t.parent;
433
433
  }
434
434
  }
435
- function yt(e) {
435
+ function _t(e) {
436
436
  return e.appContext.config.globalProperties.$router !== void 0;
437
437
  }
438
- function qn(e) {
438
+ function Pn(e) {
439
439
  return e.isUnmounted === !0 || e.isDeactivated === !0;
440
440
  }
441
- function _e(e) {
441
+ function $e(e) {
442
442
  return e ? e.aliasOf ? e.aliasOf.path : e.path : "";
443
443
  }
444
- function $e(e, t) {
444
+ function qe(e, t) {
445
445
  return (e.aliasOf || e) === (t.aliasOf || t);
446
446
  }
447
- function kt(e, t) {
447
+ function $t(e, t) {
448
448
  for (const n in t) {
449
449
  const a = t[n], s = e[n];
450
450
  if (typeof a == "string") {
@@ -455,21 +455,21 @@ function kt(e, t) {
455
455
  }
456
456
  return !0;
457
457
  }
458
- function qe(e, t) {
458
+ function Se(e, t) {
459
459
  return Array.isArray(t) === !0 ? e.length === t.length && e.every((n, a) => n === t[a]) : e.length === 1 && e[0] === t;
460
460
  }
461
- function _t(e, t) {
462
- return Array.isArray(e) === !0 ? qe(e, t) : Array.isArray(t) === !0 ? qe(t, e) : e === t;
461
+ function qt(e, t) {
462
+ return Array.isArray(e) === !0 ? Se(e, t) : Array.isArray(t) === !0 ? Se(t, e) : e === t;
463
463
  }
464
- function $t(e, t) {
464
+ function St(e, t) {
465
465
  if (Object.keys(e).length !== Object.keys(t).length)
466
466
  return !1;
467
467
  for (const n in e)
468
- if (_t(e[n], t[n]) === !1)
468
+ if (qt(e[n], t[n]) === !1)
469
469
  return !1;
470
470
  return !0;
471
471
  }
472
- const ze = {
472
+ const De = {
473
473
  // router-link
474
474
  to: [String, Object],
475
475
  replace: Boolean,
@@ -478,8 +478,8 @@ const ze = {
478
478
  target: String,
479
479
  // state
480
480
  disable: Boolean
481
- }, Sn = {
482
- ...ze,
481
+ }, Ln = {
482
+ ...De,
483
483
  // router-link
484
484
  exact: Boolean,
485
485
  activeClass: {
@@ -491,111 +491,111 @@ const ze = {
491
491
  default: "q-router-link--exact-active"
492
492
  }
493
493
  };
494
- function qt({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
495
- const n = ee(), { props: a, proxy: s, emit: l } = n, o = yt(n), i = r(() => a.disable !== !0 && a.href !== void 0), $ = t === !0 ? r(
494
+ function Ct({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
495
+ const n = ee(), { props: a, proxy: s, emit: l } = n, o = _t(n), i = r(() => a.disable !== !0 && a.href !== void 0), $ = t === !0 ? r(
496
496
  () => o === !0 && a.disable !== !0 && i.value !== !0 && a.to !== void 0 && a.to !== null && a.to !== ""
497
497
  ) : r(
498
498
  () => o === !0 && i.value !== !0 && a.to !== void 0 && a.to !== null && a.to !== ""
499
- ), k = r(() => $.value === !0 ? B(a.to) : null), f = r(() => k.value !== null), S = r(() => i.value === !0 || f.value === !0), d = r(() => a.type === "a" || S.value === !0 ? "a" : a.tag || e || "div"), q = r(() => i.value === !0 ? {
499
+ ), y = r(() => $.value === !0 ? C(a.to) : null), f = r(() => y.value !== null), S = r(() => i.value === !0 || f.value === !0), d = r(() => a.type === "a" || S.value === !0 ? "a" : a.tag || e || "div"), q = r(() => i.value === !0 ? {
500
500
  href: a.href,
501
501
  target: a.target
502
502
  } : f.value === !0 ? {
503
- href: k.value.href,
503
+ href: y.value.href,
504
504
  target: a.target
505
505
  } : {}), u = r(() => {
506
506
  if (f.value === !1)
507
507
  return -1;
508
- const { matched: y } = k.value, { length: R } = y, P = y[R - 1];
509
- if (P === void 0)
508
+ const { matched: k } = y.value, { length: L } = k, R = k[L - 1];
509
+ if (R === void 0)
510
510
  return -1;
511
- const x = s.$route.matched;
512
- if (x.length === 0)
511
+ const O = s.$route.matched;
512
+ if (O.length === 0)
513
513
  return -1;
514
- const O = x.findIndex(
515
- $e.bind(null, P)
514
+ const j = O.findIndex(
515
+ qe.bind(null, R)
516
516
  );
517
- if (O !== -1)
518
- return O;
519
- const K = _e(y[R - 2]);
517
+ if (j !== -1)
518
+ return j;
519
+ const F = $e(k[L - 2]);
520
520
  return (
521
521
  // we are dealing with nested routes
522
- R > 1 && _e(P) === K && x[x.length - 1].path !== K ? x.findIndex(
523
- $e.bind(null, y[R - 2])
524
- ) : O
522
+ L > 1 && $e(R) === F && O[O.length - 1].path !== F ? O.findIndex(
523
+ qe.bind(null, k[L - 2])
524
+ ) : j
525
525
  );
526
- }), m = r(
527
- () => f.value === !0 && u.value !== -1 && kt(s.$route.params, k.value.params)
526
+ }), p = r(
527
+ () => f.value === !0 && u.value !== -1 && $t(s.$route.params, y.value.params)
528
528
  ), v = r(
529
- () => m.value === !0 && u.value === s.$route.matched.length - 1 && $t(s.$route.params, k.value.params)
530
- ), b = r(() => f.value === !0 ? v.value === !0 ? ` ${a.exactActiveClass} ${a.activeClass}` : a.exact === !0 ? "" : m.value === !0 ? ` ${a.activeClass}` : "" : "");
531
- function B(y) {
529
+ () => p.value === !0 && u.value === s.$route.matched.length - 1 && St(s.$route.params, y.value.params)
530
+ ), h = r(() => f.value === !0 ? v.value === !0 ? ` ${a.exactActiveClass} ${a.activeClass}` : a.exact === !0 ? "" : p.value === !0 ? ` ${a.activeClass}` : "" : "");
531
+ function C(k) {
532
532
  try {
533
- return s.$router.resolve(y);
533
+ return s.$router.resolve(k);
534
534
  } catch {
535
535
  }
536
536
  return null;
537
537
  }
538
- function w(y, { returnRouterError: R, to: P = a.to, replace: x = a.replace } = {}) {
538
+ function w(k, { returnRouterError: L, to: R = a.to, replace: O = a.replace } = {}) {
539
539
  if (a.disable === !0)
540
- return y.preventDefault(), Promise.resolve(!1);
540
+ return k.preventDefault(), Promise.resolve(!1);
541
541
  if (
542
542
  // don't redirect with control keys;
543
543
  // should match RouterLink from Vue Router
544
- y.metaKey || y.altKey || y.ctrlKey || y.shiftKey || y.button !== void 0 && y.button !== 0 || a.target === "_blank"
544
+ k.metaKey || k.altKey || k.ctrlKey || k.shiftKey || k.button !== void 0 && k.button !== 0 || a.target === "_blank"
545
545
  )
546
546
  return Promise.resolve(!1);
547
- y.preventDefault();
548
- const O = s.$router[x === !0 ? "replace" : "push"](P);
549
- return R === !0 ? O : O.then(() => {
547
+ k.preventDefault();
548
+ const j = s.$router[O === !0 ? "replace" : "push"](R);
549
+ return L === !0 ? j : j.then(() => {
550
550
  }).catch(() => {
551
551
  });
552
552
  }
553
- function E(y) {
553
+ function E(k) {
554
554
  if (f.value === !0) {
555
- const R = (P) => w(y, P);
556
- l("click", y, R), y.defaultPrevented !== !0 && R();
555
+ const L = (R) => w(k, R);
556
+ l("click", k, L), k.defaultPrevented !== !0 && L();
557
557
  } else
558
- l("click", y);
558
+ l("click", k);
559
559
  }
560
560
  return {
561
561
  hasRouterLink: f,
562
562
  hasHrefLink: i,
563
563
  hasLink: S,
564
564
  linkTag: d,
565
- resolvedLink: k,
566
- linkIsActive: m,
565
+ resolvedLink: y,
566
+ linkIsActive: p,
567
567
  linkIsExactActive: v,
568
- linkClass: b,
568
+ linkClass: h,
569
569
  linkAttrs: q,
570
- getLink: B,
570
+ getLink: C,
571
571
  navigateToRouterLink: w,
572
572
  navigateOnClick: E
573
573
  };
574
574
  }
575
- const Se = {
575
+ const Ce = {
576
576
  none: 0,
577
577
  xs: 4,
578
578
  sm: 8,
579
579
  md: 16,
580
580
  lg: 24,
581
581
  xl: 32
582
- }, St = {
582
+ }, Bt = {
583
583
  xs: 8,
584
584
  sm: 10,
585
585
  md: 14,
586
586
  lg: 20,
587
587
  xl: 24
588
- }, Bt = ["button", "submit", "reset"], Ct = /[^\s]\/[^\s]/, wt = ["flat", "outline", "push", "unelevated"];
588
+ }, wt = ["button", "submit", "reset"], Et = /[^\s]\/[^\s]/, Pt = ["flat", "outline", "push", "unelevated"];
589
589
  function xe(e, t) {
590
590
  return e.flat === !0 ? "flat" : e.outline === !0 ? "outline" : e.push === !0 ? "push" : e.unelevated === !0 ? "unelevated" : t;
591
591
  }
592
- function Bn(e) {
592
+ function Rn(e) {
593
593
  const t = xe(e);
594
594
  return t !== void 0 ? { [t]: !0 } : {};
595
595
  }
596
- const Et = {
597
- ...se,
598
- ...ze,
596
+ const Lt = {
597
+ ...ue,
598
+ ...De,
599
599
  type: {
600
600
  type: String,
601
601
  default: "button"
@@ -603,7 +603,7 @@ const Et = {
603
603
  label: [Number, String],
604
604
  icon: String,
605
605
  iconRight: String,
606
- ...wt.reduce(
606
+ ...Pt.reduce(
607
607
  (e, t) => (e[t] = Boolean) && e,
608
608
  {}
609
609
  ),
@@ -625,7 +625,7 @@ const Et = {
625
625
  default: !0
626
626
  },
627
627
  align: {
628
- ...bt.align,
628
+ ...kt.align,
629
629
  default: "center"
630
630
  },
631
631
  stack: Boolean,
@@ -635,27 +635,27 @@ const Et = {
635
635
  default: null
636
636
  },
637
637
  disable: Boolean
638
- }, Lt = {
639
- ...Et,
638
+ }, Rt = {
639
+ ...Lt,
640
640
  round: Boolean
641
641
  };
642
- function Rt(e) {
643
- const t = ie(e, St), n = ht(e), { hasRouterLink: a, hasLink: s, linkTag: l, linkAttrs: o, navigateOnClick: i } = qt({
642
+ function Mt(e) {
643
+ const t = ce(e, Bt), n = yt(e), { hasRouterLink: a, hasLink: s, linkTag: l, linkAttrs: o, navigateOnClick: i } = Ct({
644
644
  fallbackTag: "button"
645
645
  }), $ = r(() => {
646
646
  const v = e.fab === !1 && e.fabMini === !1 ? t.value : {};
647
647
  return e.padding !== void 0 ? Object.assign({}, v, {
648
- padding: e.padding.split(/\s+/).map((b) => b in Se ? Se[b] + "px" : b).join(" "),
648
+ padding: e.padding.split(/\s+/).map((h) => h in Ce ? Ce[h] + "px" : h).join(" "),
649
649
  minWidth: "0",
650
650
  minHeight: "0"
651
651
  }) : v;
652
- }), k = r(
652
+ }), y = r(
653
653
  () => e.rounded === !0 || e.fab === !0 || e.fabMini === !0
654
654
  ), f = r(
655
655
  () => e.disable !== !0 && e.loading !== !0
656
656
  ), S = r(() => f.value === !0 ? e.tabindex || 0 : -1), d = r(() => xe(e, "standard")), q = r(() => {
657
657
  const v = { tabindex: S.value };
658
- return s.value === !0 ? Object.assign(v, o.value) : Bt.includes(e.type) === !0 && (v.type = e.type), l.value === "a" ? (e.disable === !0 ? v["aria-disabled"] = "true" : v.href === void 0 && (v.role = "button"), a.value !== !0 && Ct.test(e.type) === !0 && (v.type = e.type)) : e.disable === !0 && (v.disabled = "", v["aria-disabled"] = "true"), e.loading === !0 && e.percentage !== void 0 && Object.assign(v, {
658
+ return s.value === !0 ? Object.assign(v, o.value) : wt.includes(e.type) === !0 && (v.type = e.type), l.value === "a" ? (e.disable === !0 ? v["aria-disabled"] = "true" : v.href === void 0 && (v.role = "button"), a.value !== !0 && Et.test(e.type) === !0 && (v.type = e.type)) : e.disable === !0 && (v.disabled = "", v["aria-disabled"] = "true"), e.loading === !0 && e.percentage !== void 0 && Object.assign(v, {
659
659
  role: "progressbar",
660
660
  "aria-valuemin": 0,
661
661
  "aria-valuemax": 100,
@@ -664,15 +664,15 @@ function Rt(e) {
664
664
  }), u = r(() => {
665
665
  let v;
666
666
  e.color !== void 0 ? e.flat === !0 || e.outline === !0 ? v = `text-${e.textColor || e.color}` : v = `bg-${e.color} text-${e.textColor || "white"}` : e.textColor && (v = `text-${e.textColor}`);
667
- const b = e.round === !0 ? "round" : `rectangle${k.value === !0 ? " q-btn--rounded" : e.square === !0 ? " q-btn--square" : ""}`;
668
- return `q-btn--${d.value} q-btn--${b}` + (v !== void 0 ? " " + v : "") + (f.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" : "");
669
- }), m = r(
667
+ const h = e.round === !0 ? "round" : `rectangle${y.value === !0 ? " q-btn--rounded" : e.square === !0 ? " q-btn--square" : ""}`;
668
+ return `q-btn--${d.value} q-btn--${h}` + (v !== void 0 ? " " + v : "") + (f.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" : "");
669
+ }), p = r(
670
670
  () => n.value + (e.stack === !0 ? " column" : " row") + (e.noWrap === !0 ? " no-wrap text-no-wrap" : "") + (e.loading === !0 ? " q-btn__content--hidden" : "")
671
671
  );
672
672
  return {
673
673
  classes: u,
674
674
  style: $,
675
- innerClasses: m,
675
+ innerClasses: p,
676
676
  attributes: q,
677
677
  hasLink: s,
678
678
  linkTag: l,
@@ -680,12 +680,12 @@ function Rt(e) {
680
680
  isActionable: f
681
681
  };
682
682
  }
683
- const { passiveCapture: I } = re;
683
+ const { passiveCapture: I } = de;
684
684
  let U = null, H = null, X = null;
685
- const Pt = te({
685
+ const At = te({
686
686
  name: "QBtn",
687
687
  props: {
688
- ...Lt,
688
+ ...Rt,
689
689
  percentage: Number,
690
690
  darkPercentage: Boolean,
691
691
  onTouchstart: [Function, Array]
@@ -698,20 +698,20 @@ const Pt = te({
698
698
  innerClasses: o,
699
699
  attributes: i,
700
700
  hasLink: $,
701
- linkTag: k,
701
+ linkTag: y,
702
702
  navigateOnClick: f,
703
703
  isActionable: S
704
- } = Rt(e), d = W(null), q = W(null);
705
- let u = null, m, v = null;
706
- const b = r(
704
+ } = Mt(e), d = W(null), q = W(null);
705
+ let u = null, p, v = null;
706
+ const h = r(
707
707
  () => e.label !== void 0 && e.label !== null && e.label !== ""
708
- ), B = r(() => e.disable === !0 || e.ripple === !1 ? !1 : {
708
+ ), C = r(() => e.disable === !0 || e.ripple === !1 ? !1 : {
709
709
  keyCodes: $.value === !0 ? [13, 32] : [13],
710
710
  ...e.ripple === !0 ? {} : e.ripple
711
711
  }), w = r(() => ({ center: e.round })), E = r(() => {
712
712
  const c = Math.max(0, Math.min(100, e.percentage));
713
713
  return c > 0 ? { transition: "transform 0.6s", transform: `translateX(${c - 100}%)` } : {};
714
- }), y = r(() => {
714
+ }), k = r(() => {
715
715
  if (e.loading === !0)
716
716
  return {
717
717
  onMousedown: M,
@@ -722,149 +722,149 @@ const Pt = te({
722
722
  };
723
723
  if (S.value === !0) {
724
724
  const c = {
725
- onClick: P,
726
- onKeydown: x,
727
- onMousedown: K
725
+ onClick: R,
726
+ onKeydown: O,
727
+ onMousedown: F
728
728
  };
729
729
  if (a.$q.platform.has.touch === !0) {
730
- const C = e.onTouchstart !== void 0 ? "" : "Passive";
731
- c[`onTouchstart${C}`] = O;
730
+ const B = e.onTouchstart !== void 0 ? "" : "Passive";
731
+ c[`onTouchstart${B}`] = j;
732
732
  }
733
733
  return c;
734
734
  }
735
735
  return {
736
736
  // needed; especially for disabled <a> tags
737
- onClick: j
737
+ onClick: D
738
738
  };
739
- }), R = r(() => ({
739
+ }), L = r(() => ({
740
740
  ref: d,
741
741
  class: "q-btn q-btn-item non-selectable no-outline " + s.value,
742
742
  style: l.value,
743
743
  ...i.value,
744
- ...y.value
744
+ ...k.value
745
745
  }));
746
- function P(c) {
746
+ function R(c) {
747
747
  if (d.value !== null) {
748
748
  if (c !== void 0) {
749
749
  if (c.defaultPrevented === !0) return;
750
- const C = document.activeElement;
751
- if (e.type === "submit" && C !== document.body && d.value.contains(C) === !1 && C.contains(d.value) === !1) {
750
+ const B = document.activeElement;
751
+ if (e.type === "submit" && B !== document.body && d.value.contains(B) === !1 && B.contains(d.value) === !1) {
752
752
  c.qAvoidFocus !== !0 && d.value.focus();
753
- const D = () => {
753
+ const x = () => {
754
754
  var J;
755
- document.removeEventListener("keydown", j, !0), document.removeEventListener("keyup", D, I), (J = d.value) == null || J.removeEventListener("blur", D, I);
755
+ document.removeEventListener("keydown", D, !0), document.removeEventListener("keyup", x, I), (J = d.value) == null || J.removeEventListener("blur", x, I);
756
756
  };
757
- document.addEventListener("keydown", j, !0), document.addEventListener("keyup", D, I), d.value.addEventListener("blur", D, I);
757
+ document.addEventListener("keydown", D, !0), document.addEventListener("keyup", x, I), d.value.addEventListener("blur", x, I);
758
758
  }
759
759
  }
760
760
  f(c);
761
761
  }
762
762
  }
763
- function x(c) {
764
- d.value !== null && (n("keydown", c), ve(c, [13, 32]) === !0 && H !== d.value && (H !== null && p(), c.defaultPrevented !== !0 && (c.qAvoidFocus !== !0 && d.value.focus(), H = d.value, d.value.classList.add("q-btn--active"), document.addEventListener("keyup", V, !0), d.value.addEventListener("blur", V, I)), j(c)));
765
- }
766
763
  function O(c) {
767
- d.value !== null && (n("touchstart", c), c.defaultPrevented !== !0 && (U !== d.value && (U !== null && p(), U = d.value, u = c.target, u.addEventListener("touchcancel", V, I), u.addEventListener("touchend", V, I)), m = !0, v !== null && clearTimeout(v), v = setTimeout(() => {
768
- v = null, m = !1;
764
+ d.value !== null && (n("keydown", c), le(c, [13, 32]) === !0 && H !== d.value && (H !== null && g(), c.defaultPrevented !== !0 && (c.qAvoidFocus !== !0 && d.value.focus(), H = d.value, d.value.classList.add("q-btn--active"), document.addEventListener("keyup", V, !0), d.value.addEventListener("blur", V, I)), D(c)));
765
+ }
766
+ function j(c) {
767
+ d.value !== null && (n("touchstart", c), c.defaultPrevented !== !0 && (U !== d.value && (U !== null && g(), U = d.value, u = c.target, u.addEventListener("touchcancel", V, I), u.addEventListener("touchend", V, I)), p = !0, v !== null && clearTimeout(v), v = setTimeout(() => {
768
+ v = null, p = !1;
769
769
  }, 200)));
770
770
  }
771
- function K(c) {
772
- d.value !== null && (c.qSkipRipple = m === !0, n("mousedown", c), c.defaultPrevented !== !0 && X !== d.value && (X !== null && p(), X = d.value, d.value.classList.add("q-btn--active"), document.addEventListener("mouseup", V, I)));
771
+ function F(c) {
772
+ d.value !== null && (c.qSkipRipple = p === !0, n("mousedown", c), c.defaultPrevented !== !0 && X !== d.value && (X !== null && g(), X = d.value, d.value.classList.add("q-btn--active"), document.addEventListener("mouseup", V, I)));
773
773
  }
774
774
  function V(c) {
775
775
  if (d.value !== null && !((c == null ? void 0 : c.type) === "blur" && document.activeElement === d.value)) {
776
776
  if ((c == null ? void 0 : c.type) === "keyup") {
777
- if (H === d.value && ve(c, [13, 32]) === !0) {
778
- const C = new MouseEvent("click", c);
779
- C.qKeyEvent = !0, c.defaultPrevented === !0 && ct(C), c.cancelBubble === !0 && Ie(C), d.value.dispatchEvent(C), j(c), c.qKeyEvent = !0;
777
+ if (H === d.value && le(c, [13, 32]) === !0) {
778
+ const B = new MouseEvent("click", c);
779
+ B.qKeyEvent = !0, c.defaultPrevented === !0 && ft(B), c.cancelBubble === !0 && Oe(B), d.value.dispatchEvent(B), D(c), c.qKeyEvent = !0;
780
780
  }
781
781
  n("keyup", c);
782
782
  }
783
- p();
783
+ g();
784
784
  }
785
785
  }
786
- function p(c) {
787
- var D, J;
788
- const C = q.value;
789
- c !== !0 && (U === d.value || X === d.value) && C !== null && C !== document.activeElement && (C.setAttribute("tabindex", -1), C.focus()), U === d.value && (u !== null && (u.removeEventListener("touchcancel", V, I), u.removeEventListener("touchend", V, I)), U = u = null), X === d.value && (document.removeEventListener("mouseup", V, I), X = null), H === d.value && (document.removeEventListener("keyup", V, !0), (D = d.value) == null || D.removeEventListener("blur", V, I), H = null), (J = d.value) == null || J.classList.remove("q-btn--active");
786
+ function g(c) {
787
+ var x, J;
788
+ const B = q.value;
789
+ c !== !0 && (U === d.value || X === d.value) && B !== null && B !== document.activeElement && (B.setAttribute("tabindex", -1), B.focus()), U === d.value && (u !== null && (u.removeEventListener("touchcancel", V, I), u.removeEventListener("touchend", V, I)), U = u = null), X === d.value && (document.removeEventListener("mouseup", V, I), X = null), H === d.value && (document.removeEventListener("keyup", V, !0), (x = d.value) == null || x.removeEventListener("blur", V, I), H = null), (J = d.value) == null || J.classList.remove("q-btn--active");
790
790
  }
791
791
  function M(c) {
792
- j(c), c.qSkipRipple = !0;
792
+ D(c), c.qSkipRipple = !0;
793
793
  }
794
- return De(() => {
795
- p(!0);
794
+ return Fe(() => {
795
+ g(!0);
796
796
  }), Object.assign(a, {
797
797
  click: (c) => {
798
- S.value === !0 && P(c);
798
+ S.value === !0 && R(c);
799
799
  }
800
800
  }), () => {
801
801
  let c = [];
802
802
  e.icon !== void 0 && c.push(
803
- g(fe, {
803
+ m(pe, {
804
804
  name: e.icon,
805
- left: e.stack !== !0 && b.value === !0,
805
+ left: e.stack !== !0 && h.value === !0,
806
806
  role: "img"
807
807
  })
808
- ), b.value === !0 && c.push(
809
- g("span", { class: "block" }, [e.label])
808
+ ), h.value === !0 && c.push(
809
+ m("span", { class: "block" }, [e.label])
810
810
  ), c = N(t.default, c), e.iconRight !== void 0 && e.round === !1 && c.push(
811
- g(fe, {
811
+ m(pe, {
812
812
  name: e.iconRight,
813
- right: e.stack !== !0 && b.value === !0,
813
+ right: e.stack !== !0 && h.value === !0,
814
814
  role: "img"
815
815
  })
816
816
  );
817
- const C = [
818
- g("span", {
817
+ const B = [
818
+ m("span", {
819
819
  class: "q-focus-helper",
820
820
  ref: q
821
821
  })
822
822
  ];
823
- return e.loading === !0 && e.percentage !== void 0 && C.push(
824
- g("span", {
823
+ return e.loading === !0 && e.percentage !== void 0 && B.push(
824
+ m("span", {
825
825
  class: "q-btn__progress absolute-full overflow-hidden" + (e.darkPercentage === !0 ? " q-btn__progress--dark" : "")
826
826
  }, [
827
- g("span", {
827
+ m("span", {
828
828
  class: "q-btn__progress-indicator fit block",
829
829
  style: E.value
830
830
  })
831
831
  ])
832
- ), C.push(
833
- g("span", {
832
+ ), B.push(
833
+ m("span", {
834
834
  class: "q-btn__content text-center col items-center q-anchor--skip " + o.value
835
835
  }, c)
836
- ), e.loading !== null && C.push(
837
- g(Ne, {
836
+ ), e.loading !== null && B.push(
837
+ m(Qe, {
838
838
  name: "q-transition--fade"
839
839
  }, () => e.loading === !0 ? [
840
- g("span", {
840
+ m("span", {
841
841
  key: "loading",
842
842
  class: "absolute-full flex flex-center"
843
- }, t.loading !== void 0 ? t.loading() : [g(Ve)])
843
+ }, t.loading !== void 0 ? t.loading() : [m(ze)])
844
844
  ] : null)
845
- ), ge(
846
- g(
847
- k.value,
848
- R.value,
849
- C
845
+ ), oe(
846
+ m(
847
+ y.value,
848
+ L.value,
849
+ B
850
850
  ),
851
851
  [[
852
- mt,
853
- B.value,
852
+ ht,
853
+ C.value,
854
854
  void 0,
855
855
  w.value
856
856
  ]]
857
857
  );
858
858
  };
859
859
  }
860
- }), Mt = /* @__PURE__ */ F({
860
+ }), Vt = /* @__PURE__ */ K({
861
861
  __name: "AppButton",
862
862
  props: {
863
863
  size: { default: z.MD },
864
864
  transparent: { type: Boolean },
865
865
  flat: { type: Boolean },
866
866
  rounded: { type: Boolean },
867
- color: { default: Le.PRIMARY },
867
+ color: { default: Re.PRIMARY },
868
868
  iconLeft: {},
869
869
  iconRight: {},
870
870
  iconMiddle: {},
@@ -894,11 +894,11 @@ const Pt = te({
894
894
  `app-btn_${t.size}`,
895
895
  `app-btn_${t.color}`
896
896
  ]);
897
- return (a, s) => (h(), ne(Z(Pt), {
897
+ return (a, s) => (b(), ae(Z(At), {
898
898
  "no-caps": "",
899
899
  unelevated: "",
900
- class: L(n.value),
901
- padding: Z(Ge)[a.size || Z(z).MD],
900
+ class: P(n.value),
901
+ padding: Z(et)[a.size || Z(z).MD],
902
902
  loading: a.loading,
903
903
  disable: a.disabled || void 0,
904
904
  to: a.to,
@@ -909,23 +909,23 @@ const Pt = te({
909
909
  download: a.download,
910
910
  onClick: s[0] || (s[0] = (l) => a.$emit("click", l))
911
911
  }, {
912
- default: Fe(() => [
913
- a.iconLeft || a.iconMiddle ? (h(), _("i", {
912
+ default: Ue(() => [
913
+ a.iconLeft || a.iconMiddle ? (b(), _("i", {
914
914
  key: 0,
915
- class: L([
915
+ class: P([
916
916
  "icon-kl",
917
917
  a.iconLeft ? "icon-kl_left" : "icon-kl_middle",
918
918
  `icon-kl-${a.iconLeft || a.iconMiddle}`,
919
919
  a.transparent || a.flat ? `text-${a.color}` : "text-secondary"
920
920
  ])
921
921
  }, null, 2)) : A("", !0),
922
- ae(a.$slots, "default", {}, void 0, !0),
923
- a.label ? (h(), _(le, { key: 1 }, [
924
- we(Y(a.label), 1)
922
+ se(a.$slots, "default", {}, void 0, !0),
923
+ a.label ? (b(), _(ie, { key: 1 }, [
924
+ Pe(Y(a.label), 1)
925
925
  ], 64)) : A("", !0),
926
- a.iconRight ? (h(), _("i", {
926
+ a.iconRight ? (b(), _("i", {
927
927
  key: 2,
928
- class: L([
928
+ class: P([
929
929
  "icon-kl",
930
930
  "icon-kl_right",
931
931
  `icon-kl-${a.iconRight}`,
@@ -941,20 +941,20 @@ const Pt = te({
941
941
  for (const [a, s] of t)
942
942
  n[a] = s;
943
943
  return n;
944
- }, Cn = /* @__PURE__ */ G(Mt, [["__scopeId", "data-v-44d5548c"]]), At = {
944
+ }, Mn = /* @__PURE__ */ G(Vt, [["__scopeId", "data-v-44d5548c"]]), It = {
945
945
  key: 0,
946
946
  class: "app-toggle__label app-toggle__label_left"
947
- }, Vt = { class: "app-toggle__container" }, It = ["checked", "disabled"], Tt = { class: "app-toggle__thumb" }, zt = {
947
+ }, Tt = { class: "app-toggle__container" }, zt = ["checked", "disabled"], Ot = { class: "app-toggle__thumb" }, jt = {
948
948
  key: 1,
949
949
  class: "app-toggle__label"
950
- }, xt = /* @__PURE__ */ F({
950
+ }, Dt = /* @__PURE__ */ K({
951
951
  __name: "AppToggle",
952
952
  props: {
953
953
  modelValue: { type: Boolean },
954
954
  size: { default: z.MD },
955
955
  label: {},
956
956
  disabled: { type: Boolean },
957
- color: { default: Le.PRIMARY },
957
+ color: { default: Re.PRIMARY },
958
958
  iconColor: {},
959
959
  icon: {},
960
960
  iconActive: {},
@@ -976,29 +976,29 @@ const Pt = te({
976
976
  `app-toggle_${n.size}`,
977
977
  `app-toggle_${n.color}`
978
978
  ]);
979
- return (o, i) => (h(), _("div", {
980
- class: L(l.value)
979
+ return (o, i) => (b(), _("div", {
980
+ class: P(l.value)
981
981
  }, [
982
- o.label && o.labelLeft ? (h(), _("span", At, Y(o.label), 1)) : A("", !0),
983
- T("label", Vt, [
982
+ o.label && o.labelLeft ? (b(), _("span", It, Y(o.label), 1)) : A("", !0),
983
+ T("label", Tt, [
984
984
  T("input", {
985
985
  type: "checkbox",
986
986
  checked: s.value,
987
987
  onChange: i[0] || (i[0] = ($) => s.value = !s.value),
988
988
  disabled: o.disabled,
989
989
  class: "app-toggle__input"
990
- }, null, 40, It),
990
+ }, null, 40, zt),
991
991
  T("span", {
992
- class: L(["app-toggle__slider", s.value ? `bg-${o.color}` : ""])
992
+ class: P(["app-toggle__slider", s.value ? `bg-${o.color}` : ""])
993
993
  }, [
994
- T("span", Tt, [
995
- o.icon && !o.modelValue ? (h(), _("i", {
994
+ T("span", Ot, [
995
+ o.icon && !o.modelValue ? (b(), _("i", {
996
996
  key: 0,
997
- class: L(["icon-kl", `icon-kl-${o.icon}`, "app-toggle__icon"])
997
+ class: P(["icon-kl", `icon-kl-${o.icon}`, "app-toggle__icon"])
998
998
  }, null, 2)) : A("", !0),
999
- o.modelValue && (o.iconActive || o.icon) ? (h(), _("i", {
999
+ o.modelValue && (o.iconActive || o.icon) ? (b(), _("i", {
1000
1000
  key: 1,
1001
- class: L([
1001
+ class: P([
1002
1002
  "icon-kl",
1003
1003
  `icon-kl-${o.iconActive || o.icon}`,
1004
1004
  "app-toggle__icon",
@@ -1007,22 +1007,22 @@ const Pt = te({
1007
1007
  }, null, 2)) : A("", !0)
1008
1008
  ])
1009
1009
  ], 2),
1010
- ae(o.$slots, "default", {}, void 0, !0)
1010
+ se(o.$slots, "default", {}, void 0, !0)
1011
1011
  ]),
1012
- o.label && !o.labelLeft ? (h(), _("span", zt, Y(o.label), 1)) : A("", !0)
1012
+ o.label && !o.labelLeft ? (b(), _("span", jt, Y(o.label), 1)) : A("", !0)
1013
1013
  ], 2));
1014
1014
  }
1015
- }), Ot = /* @__PURE__ */ G(xt, [["__scopeId", "data-v-c6702cb0"]]), Oe = {
1015
+ }), xt = /* @__PURE__ */ G(Dt, [["__scopeId", "data-v-c6702cb0"]]), Ne = {
1016
1016
  dark: {
1017
1017
  type: Boolean,
1018
1018
  default: null
1019
1019
  }
1020
1020
  };
1021
- function je(e, t) {
1021
+ function Ke(e, t) {
1022
1022
  return r(() => e.dark === null ? t.dark.isActive : e.dark);
1023
1023
  }
1024
- function jt(e, t) {
1025
- const n = W(null), a = r(() => e.disable === !0 ? null : g("span", {
1024
+ function Nt(e, t) {
1025
+ const n = W(null), a = r(() => e.disable === !0 ? null : m("span", {
1026
1026
  ref: n,
1027
1027
  class: "no-outline",
1028
1028
  tabindex: -1
@@ -1036,32 +1036,32 @@ function jt(e, t) {
1036
1036
  refocusTarget: s
1037
1037
  };
1038
1038
  }
1039
- const Dt = {
1039
+ const Kt = {
1040
1040
  name: String
1041
1041
  };
1042
- function Nt(e = {}) {
1042
+ function Ft(e = {}) {
1043
1043
  return (t, n, a) => {
1044
1044
  t[n](
1045
- g("input", {
1045
+ m("input", {
1046
1046
  class: "hidden" + (a || ""),
1047
1047
  ...e.value
1048
1048
  })
1049
1049
  );
1050
1050
  };
1051
1051
  }
1052
- function wn(e) {
1052
+ function An(e) {
1053
1053
  return r(() => e.name || e.for);
1054
1054
  }
1055
- const Ft = {
1055
+ const Qt = {
1056
1056
  xs: 30,
1057
1057
  sm: 35,
1058
1058
  md: 40,
1059
1059
  lg: 50,
1060
1060
  xl: 60
1061
- }, Kt = {
1062
- ...Oe,
1063
- ...se,
1064
- ...Dt,
1061
+ }, Ut = {
1062
+ ...Ne,
1063
+ ...ue,
1064
+ ...Kt,
1065
1065
  modelValue: {
1066
1066
  required: !0,
1067
1067
  default: null
@@ -1085,151 +1085,215 @@ const Ft = {
1085
1085
  dense: Boolean,
1086
1086
  disable: Boolean,
1087
1087
  tabindex: [String, Number]
1088
- }, Qt = ["update:modelValue"];
1089
- function Ut(e, t) {
1090
- const { props: n, slots: a, emit: s, proxy: l } = ee(), { $q: o } = l, i = je(n, o), $ = W(null), { refocusTargetEl: k, refocusTarget: f } = jt(n, $), S = ie(n, Ft), d = r(
1088
+ }, Ht = ["update:modelValue"];
1089
+ function Xt(e, t) {
1090
+ const { props: n, slots: a, emit: s, proxy: l } = ee(), { $q: o } = l, i = Ke(n, o), $ = W(null), { refocusTargetEl: y, refocusTarget: f } = Nt(n, $), S = ce(n, Qt), d = r(
1091
1091
  () => n.val !== void 0 && Array.isArray(n.modelValue)
1092
1092
  ), q = r(() => {
1093
- const p = Q(n.val);
1094
- return d.value === !0 ? n.modelValue.findIndex((M) => Q(M) === p) : -1;
1095
- }), u = r(() => d.value === !0 ? q.value !== -1 : Q(n.modelValue) === Q(n.trueValue)), m = r(() => d.value === !0 ? q.value === -1 : Q(n.modelValue) === Q(n.falseValue)), v = r(
1096
- () => u.value === !1 && m.value === !1
1097
- ), b = r(() => n.disable === !0 ? -1 : n.tabindex || 0), B = r(
1093
+ const g = Q(n.val);
1094
+ return d.value === !0 ? n.modelValue.findIndex((M) => Q(M) === g) : -1;
1095
+ }), u = r(() => d.value === !0 ? q.value !== -1 : Q(n.modelValue) === Q(n.trueValue)), p = r(() => d.value === !0 ? q.value === -1 : Q(n.modelValue) === Q(n.falseValue)), v = r(
1096
+ () => u.value === !1 && p.value === !1
1097
+ ), h = r(() => n.disable === !0 ? -1 : n.tabindex || 0), C = r(
1098
1098
  () => `q-${e} cursor-pointer no-outline row inline no-wrap items-center` + (n.disable === !0 ? " disabled" : "") + (i.value === !0 ? ` q-${e}--dark` : "") + (n.dense === !0 ? ` q-${e}--dense` : "") + (n.leftLabel === !0 ? " reverse" : "")
1099
1099
  ), w = r(() => {
1100
- const p = u.value === !0 ? "truthy" : m.value === !0 ? "falsy" : "indet", M = n.color !== void 0 && (n.keepColor === !0 || m.value !== !0) ? ` text-${n.color}` : "";
1101
- return `q-${e}__inner relative-position non-selectable q-${e}__inner--${p}${M}`;
1100
+ const g = u.value === !0 ? "truthy" : p.value === !0 ? "falsy" : "indet", M = n.color !== void 0 && (n.keepColor === !0 || p.value !== !0) ? ` text-${n.color}` : "";
1101
+ return `q-${e}__inner relative-position non-selectable q-${e}__inner--${g}${M}`;
1102
1102
  }), E = r(() => {
1103
- const p = { type: "checkbox" };
1104
- return n.name !== void 0 && Object.assign(p, {
1103
+ const g = { type: "checkbox" };
1104
+ return n.name !== void 0 && Object.assign(g, {
1105
1105
  // see https://vuejs.org/guide/extras/render-function.html#creating-vnodes (.prop)
1106
1106
  ".checked": u.value,
1107
1107
  "^checked": u.value === !0 ? "checked" : void 0,
1108
1108
  name: n.name,
1109
1109
  value: d.value === !0 ? n.val : n.trueValue
1110
- }), p;
1111
- }), y = Nt(E), R = r(() => {
1112
- const p = {
1113
- tabindex: b.value,
1110
+ }), g;
1111
+ }), k = Ft(E), L = r(() => {
1112
+ const g = {
1113
+ tabindex: h.value,
1114
1114
  role: "checkbox",
1115
1115
  "aria-label": n.label,
1116
1116
  "aria-checked": v.value === !0 ? "mixed" : u.value === !0 ? "true" : "false"
1117
1117
  };
1118
- return n.disable === !0 && (p["aria-disabled"] = "true"), p;
1118
+ return n.disable === !0 && (g["aria-disabled"] = "true"), g;
1119
1119
  });
1120
- function P(p) {
1121
- p !== void 0 && (j(p), f(p)), n.disable !== !0 && s("update:modelValue", x(), p);
1120
+ function R(g) {
1121
+ g !== void 0 && (D(g), f(g)), n.disable !== !0 && s("update:modelValue", O(), g);
1122
1122
  }
1123
- function x() {
1123
+ function O() {
1124
1124
  if (d.value === !0) {
1125
1125
  if (u.value === !0) {
1126
- const p = n.modelValue.slice();
1127
- return p.splice(q.value, 1), p;
1126
+ const g = n.modelValue.slice();
1127
+ return g.splice(q.value, 1), g;
1128
1128
  }
1129
1129
  return n.modelValue.concat([n.val]);
1130
1130
  }
1131
1131
  if (u.value === !0) {
1132
1132
  if (n.toggleOrder !== "ft" || n.toggleIndeterminate === !1)
1133
1133
  return n.falseValue;
1134
- } else if (m.value === !0) {
1134
+ } else if (p.value === !0) {
1135
1135
  if (n.toggleOrder === "ft" || n.toggleIndeterminate === !1)
1136
1136
  return n.trueValue;
1137
1137
  } else
1138
1138
  return n.toggleOrder !== "ft" ? n.trueValue : n.falseValue;
1139
1139
  return n.indeterminateValue;
1140
1140
  }
1141
- function O(p) {
1142
- (p.keyCode === 13 || p.keyCode === 32) && j(p);
1141
+ function j(g) {
1142
+ (g.keyCode === 13 || g.keyCode === 32) && D(g);
1143
1143
  }
1144
- function K(p) {
1145
- (p.keyCode === 13 || p.keyCode === 32) && P(p);
1144
+ function F(g) {
1145
+ (g.keyCode === 13 || g.keyCode === 32) && R(g);
1146
1146
  }
1147
1147
  const V = t(u, v);
1148
- return Object.assign(l, { toggle: P }), () => {
1149
- const p = V();
1150
- n.disable !== !0 && y(
1151
- p,
1148
+ return Object.assign(l, { toggle: R }), () => {
1149
+ const g = V();
1150
+ n.disable !== !0 && k(
1151
+ g,
1152
1152
  "unshift",
1153
1153
  ` q-${e}__native absolute q-ma-none q-pa-none`
1154
1154
  );
1155
1155
  const M = [
1156
- g("div", {
1156
+ m("div", {
1157
1157
  class: w.value,
1158
1158
  style: S.value,
1159
1159
  "aria-hidden": "true"
1160
- }, p)
1160
+ }, g)
1161
1161
  ];
1162
- k.value !== null && M.push(k.value);
1163
- const c = n.label !== void 0 ? N(a.default, [n.label]) : Re(a.default);
1162
+ y.value !== null && M.push(y.value);
1163
+ const c = n.label !== void 0 ? N(a.default, [n.label]) : Ae(a.default);
1164
1164
  return c !== void 0 && M.push(
1165
- g("div", {
1165
+ m("div", {
1166
1166
  class: `q-${e}__label q-anchor--skip`
1167
1167
  }, c)
1168
- ), g("div", {
1168
+ ), m("div", {
1169
1169
  ref: $,
1170
- class: B.value,
1171
- ...R.value,
1172
- onClick: P,
1173
- onKeydown: O,
1174
- onKeyup: K
1170
+ class: C.value,
1171
+ ...L.value,
1172
+ onClick: R,
1173
+ onKeydown: j,
1174
+ onKeyup: F
1175
1175
  }, M);
1176
1176
  };
1177
1177
  }
1178
- const Ht = () => g("div", {
1178
+ const Wt = () => m("div", {
1179
1179
  key: "svg",
1180
1180
  class: "q-checkbox__bg absolute"
1181
1181
  }, [
1182
- g("svg", {
1182
+ m("svg", {
1183
1183
  class: "q-checkbox__svg fit absolute-full",
1184
1184
  viewBox: "0 0 24 24"
1185
1185
  }, [
1186
- g("path", {
1186
+ m("path", {
1187
1187
  class: "q-checkbox__truthy",
1188
1188
  fill: "none",
1189
1189
  d: "M1.73,12.91 8.1,19.28 22.79,4.59"
1190
1190
  }),
1191
- g("path", {
1191
+ m("path", {
1192
1192
  class: "q-checkbox__indet",
1193
1193
  d: "M4,14H20V10H4"
1194
1194
  })
1195
1195
  ])
1196
- ]), Xt = te({
1196
+ ]), Yt = te({
1197
1197
  name: "QCheckbox",
1198
- props: Kt,
1199
- emits: Qt,
1198
+ props: Ut,
1199
+ emits: Ht,
1200
1200
  setup(e) {
1201
- const t = Ht();
1201
+ const t = Wt();
1202
1202
  function n(a, s) {
1203
1203
  const l = r(
1204
1204
  () => (a.value === !0 ? e.checkedIcon : s.value === !0 ? e.indeterminateIcon : e.uncheckedIcon) || null
1205
1205
  );
1206
1206
  return () => l.value !== null ? [
1207
- g("div", {
1207
+ m("div", {
1208
1208
  key: "icon",
1209
1209
  class: "q-checkbox__icon-container absolute-full flex flex-center no-wrap"
1210
1210
  }, [
1211
- g(fe, {
1211
+ m(pe, {
1212
1212
  class: "q-checkbox__icon",
1213
1213
  name: l.value
1214
1214
  })
1215
1215
  ])
1216
1216
  ] : [t];
1217
1217
  }
1218
- return Ut("checkbox", n);
1218
+ return Xt("checkbox", n);
1219
1219
  }
1220
- }), Wt = {
1220
+ }), Gt = [];
1221
+ function Jt(e) {
1222
+ return Gt.find(
1223
+ (t) => t.contentEl !== null && t.contentEl.contains(e)
1224
+ );
1225
+ }
1226
+ function Zt(e, t) {
1227
+ do {
1228
+ if (e.$options.name === "QMenu") {
1229
+ if (e.hide(t), e.$props.separateClosePopup === !0)
1230
+ return ne(e);
1231
+ } else if (e.__qPortal === !0) {
1232
+ const n = ne(e);
1233
+ return (n == null ? void 0 : n.$options.name) === "QPopupProxy" ? (e.hide(t), n) : e;
1234
+ }
1235
+ e = ne(e);
1236
+ } while (e != null);
1237
+ }
1238
+ function en(e, t, n) {
1239
+ for (; n !== 0 && e !== void 0 && e !== null; ) {
1240
+ if (e.__qPortal === !0) {
1241
+ if (n--, e.$options.name === "QMenu") {
1242
+ e = Zt(e, t);
1243
+ continue;
1244
+ }
1245
+ e.hide(t);
1246
+ }
1247
+ e = ne(e);
1248
+ }
1249
+ }
1250
+ function Be(e) {
1251
+ if (e === !1)
1252
+ return 0;
1253
+ if (e === !0 || e === void 0)
1254
+ return 1;
1255
+ const t = parseInt(e, 10);
1256
+ return isNaN(t) ? 0 : t;
1257
+ }
1258
+ const tn = Me(
1259
+ {
1260
+ name: "close-popup",
1261
+ beforeMount(e, { value: t }) {
1262
+ const n = {
1263
+ depth: Be(t),
1264
+ handler(a) {
1265
+ n.depth !== 0 && setTimeout(() => {
1266
+ const s = Jt(e);
1267
+ s !== void 0 && en(s, a, n.depth);
1268
+ });
1269
+ },
1270
+ handlerKey(a) {
1271
+ le(a, 13) === !0 && n.handler(a);
1272
+ }
1273
+ };
1274
+ e.__qclosepopup = n, e.addEventListener("click", n.handler), e.addEventListener("keyup", n.handlerKey);
1275
+ },
1276
+ updated(e, { value: t, oldValue: n }) {
1277
+ t !== n && (e.__qclosepopup.depth = Be(t));
1278
+ },
1279
+ beforeUnmount(e) {
1280
+ const t = e.__qclosepopup;
1281
+ e.removeEventListener("click", t.handler), e.removeEventListener("keyup", t.handlerKey), delete e.__qclosepopup;
1282
+ }
1283
+ }
1284
+ ), nn = {
1221
1285
  key: 0,
1222
1286
  class: "menu-item__loading"
1223
- }, Yt = {
1287
+ }, an = {
1224
1288
  key: 0,
1225
1289
  class: "menu-item__checked"
1226
- }, Gt = {
1290
+ }, ln = {
1227
1291
  key: 2,
1228
1292
  class: "menu-item__icon"
1229
- }, Jt = { class: "menu-item__label" }, Zt = {
1293
+ }, on = { class: "menu-item__label" }, sn = {
1230
1294
  key: 3,
1231
1295
  class: "menu-item__icon-right icon-kl icon-kl-arrow-right"
1232
- }, en = /* @__PURE__ */ F({
1296
+ }, rn = /* @__PURE__ */ K({
1233
1297
  __name: "PopupItem",
1234
1298
  props: {
1235
1299
  label: {},
@@ -1249,13 +1313,13 @@ const Ht = () => g("div", {
1249
1313
  checked: { type: Boolean },
1250
1314
  isMobile: { type: Boolean }
1251
1315
  },
1252
- emits: ["update:modelValue"],
1316
+ emits: ["update:modelValue", "closePopup"],
1253
1317
  setup(e, { emit: t }) {
1254
1318
  const n = e, a = t, s = () => {
1255
- (n.toggle || n.checkbox) && !n.disabled && a("update:modelValue", !n.modelValue);
1319
+ n.disabled || (n.toggle || n.checkbox) && (a("closePopup"), a("update:modelValue", !n.modelValue));
1256
1320
  };
1257
- return (l, o) => (h(), _("div", {
1258
- class: L(["menu-item", [
1321
+ return (l, o) => oe((b(), _("div", {
1322
+ class: P(["menu-item", [
1259
1323
  { "menu-item_gap": l.gap },
1260
1324
  { "menu-item_disabled": l.disabled },
1261
1325
  { "menu-item_active": l.active },
@@ -1264,49 +1328,51 @@ const Ht = () => g("div", {
1264
1328
  onClick: s
1265
1329
  }, [
1266
1330
  T("div", {
1267
- class: L(["row items-center no-wrap", `text-${l.color ? l.color : "dark"}`])
1331
+ class: P(["row items-center no-wrap", `text-${l.color ? l.color : "dark"}`])
1268
1332
  }, [
1269
- l.loading ? (h(), _("div", Wt, [
1270
- Ke(Z(Ve), {
1333
+ l.loading ? (b(), _("div", nn, [
1334
+ He(Z(ze), {
1271
1335
  size: "19px",
1272
1336
  color: l.color ? l.color : "dark"
1273
1337
  }, null, 8, ["color"])
1274
- ])) : (h(), _(le, { key: 1 }, [
1275
- l.checked ? (h(), _("div", Yt, [...o[2] || (o[2] = [
1338
+ ])) : (b(), _(ie, { key: 1 }, [
1339
+ l.checked ? (b(), _("div", an, [...o[2] || (o[2] = [
1276
1340
  T("i", { class: "icon-kl icon-kl-check" }, null, -1)
1277
1341
  ])])) : A("", !0),
1278
- l.checkbox ? (h(), ne(Xt, {
1342
+ l.checkbox ? (b(), ae(Yt, {
1279
1343
  key: 1,
1280
1344
  class: "menu-item__checkbox",
1281
1345
  size: "34px",
1282
1346
  "model-value": l.modelValue,
1283
1347
  "onUpdate:modelValue": o[0] || (o[0] = (i) => a("update:modelValue", i))
1284
1348
  }, null, 8, ["model-value"])) : A("", !0),
1285
- l.icon ? (h(), _("div", Gt, [
1349
+ l.icon ? (b(), _("div", ln, [
1286
1350
  T("i", {
1287
- class: L(`icon-kl icon-kl-${l.icon}`),
1288
- style: oe({ fontSize: l.iconSize || "27px" })
1351
+ class: P(`icon-kl icon-kl-${l.icon}`),
1352
+ style: re({ fontSize: l.iconSize || "27px" })
1289
1353
  }, null, 6)
1290
1354
  ])) : A("", !0)
1291
1355
  ], 64)),
1292
- T("span", Jt, Y(l.label), 1)
1356
+ T("span", on, Y(l.label), 1)
1293
1357
  ], 2),
1294
- l.$slots.right ? ae(l.$slots, "right", { key: 0 }, void 0, !0) : l.toggle ? (h(), ne(Ot, {
1358
+ l.$slots.right ? se(l.$slots, "right", { key: 0 }, void 0, !0) : l.toggle ? (b(), ae(xt, {
1295
1359
  key: 1,
1296
1360
  class: "menu-item__toggle",
1297
1361
  "model-value": l.modelValue,
1298
1362
  disabled: l.disabled || l.loading,
1299
1363
  "onUpdate:modelValue": o[1] || (o[1] = (i) => a("update:modelValue", i))
1300
- }, null, 8, ["model-value", "disabled"])) : l.iconRight ? (h(), _("i", {
1364
+ }, null, 8, ["model-value", "disabled"])) : l.iconRight ? (b(), _("i", {
1301
1365
  key: 2,
1302
- class: L([
1366
+ class: P([
1303
1367
  "menu-item__icon-right menu-item__icon-right_custom icon-kl",
1304
1368
  `icon-kl-${l.iconRight}`
1305
1369
  ])
1306
- }, null, 2)) : !l.noArrow && !l.loading ? (h(), _("i", Zt)) : A("", !0)
1307
- ], 2));
1370
+ }, null, 2)) : !l.noArrow && !l.loading ? (b(), _("i", sn)) : A("", !0)
1371
+ ], 2)), [
1372
+ [tn, !l.toggle && !l.checkbox && !l.persistent && !l.disabled]
1373
+ ]);
1308
1374
  }
1309
- }), En = /* @__PURE__ */ G(en, [["__scopeId", "data-v-d4a152db"]]), tn = /* @__PURE__ */ F({
1375
+ }), Vn = /* @__PURE__ */ G(rn, [["__scopeId", "data-v-d4331433"]]), un = /* @__PURE__ */ K({
1310
1376
  __name: "AppIcon",
1311
1377
  props: {
1312
1378
  name: {},
@@ -1314,28 +1380,28 @@ const Ht = () => g("div", {
1314
1380
  color: {}
1315
1381
  },
1316
1382
  setup(e) {
1317
- return (t, n) => (h(), _("i", {
1318
- class: L(["icon-kl", `icon-kl-${t.name}`, t.color ? `text-${t.color}` : ""]),
1319
- style: oe(t.size ? `font-size: ${t.size}` : void 0)
1383
+ return (t, n) => (b(), _("i", {
1384
+ class: P(["icon-kl", `icon-kl-${t.name}`, t.color ? `text-${t.color}` : ""]),
1385
+ style: re(t.size ? `font-size: ${t.size}` : void 0)
1320
1386
  }, null, 6));
1321
1387
  }
1322
- }), Ln = /* @__PURE__ */ G(tn, [["__scopeId", "data-v-941765ee"]]), nn = {
1388
+ }), In = /* @__PURE__ */ G(un, [["__scopeId", "data-v-941765ee"]]), cn = {
1323
1389
  xs: 2,
1324
1390
  sm: 4,
1325
1391
  md: 6,
1326
1392
  lg: 10,
1327
1393
  xl: 14
1328
1394
  };
1329
- function Be(e, t, n) {
1395
+ function we(e, t, n) {
1330
1396
  return {
1331
1397
  transform: t === !0 ? `translateX(${n.lang.rtl === !0 ? "-" : ""}100%) scale3d(${-e},1,1)` : `scale3d(${e},1,1)`
1332
1398
  };
1333
1399
  }
1334
- const an = te({
1400
+ const dn = te({
1335
1401
  name: "QLinearProgress",
1336
1402
  props: {
1337
- ...Oe,
1338
- ...se,
1403
+ ...Ne,
1404
+ ...ue,
1339
1405
  value: {
1340
1406
  type: Number,
1341
1407
  default: 0
@@ -1355,35 +1421,35 @@ const an = te({
1355
1421
  instantFeedback: Boolean
1356
1422
  },
1357
1423
  setup(e, { slots: t }) {
1358
- const { proxy: n } = ee(), a = je(e, n.$q), s = ie(e, nn), l = r(() => e.indeterminate === !0 || e.query === !0), o = r(() => e.reverse !== e.query), i = r(() => ({
1424
+ const { proxy: n } = ee(), a = Ke(e, n.$q), s = ce(e, cn), l = r(() => e.indeterminate === !0 || e.query === !0), o = r(() => e.reverse !== e.query), i = r(() => ({
1359
1425
  ...s.value !== null ? s.value : {},
1360
1426
  "--q-linear-progress-speed": `${e.animationSpeed}ms`
1361
1427
  })), $ = r(
1362
1428
  () => "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" : "")
1363
- ), k = r(() => Be(e.buffer !== void 0 ? e.buffer : 1, o.value, n.$q)), f = r(() => `with${e.instantFeedback === !0 ? "out" : ""}-transition`), S = r(
1429
+ ), y = r(() => we(e.buffer !== void 0 ? e.buffer : 1, o.value, n.$q)), f = r(() => `with${e.instantFeedback === !0 ? "out" : ""}-transition`), S = r(
1364
1430
  () => `q-linear-progress__track absolute-full q-linear-progress__track--${f.value} q-linear-progress__track--${a.value === !0 ? "dark" : "light"}` + (e.trackColor !== void 0 ? ` bg-${e.trackColor}` : "")
1365
- ), d = r(() => Be(l.value === !0 ? 1 : e.value, o.value, n.$q)), q = r(
1431
+ ), d = r(() => we(l.value === !0 ? 1 : e.value, o.value, n.$q)), q = r(
1366
1432
  () => `q-linear-progress__model absolute-full q-linear-progress__model--${f.value} q-linear-progress__model--${l.value === !0 ? "in" : ""}determinate`
1367
- ), u = r(() => ({ width: `${e.value * 100}%` })), m = r(
1433
+ ), u = r(() => ({ width: `${e.value * 100}%` })), p = r(
1368
1434
  () => `q-linear-progress__stripe absolute-${e.reverse === !0 ? "right" : "left"} q-linear-progress__stripe--${f.value}`
1369
1435
  );
1370
1436
  return () => {
1371
1437
  const v = [
1372
- g("div", {
1438
+ m("div", {
1373
1439
  class: S.value,
1374
- style: k.value
1440
+ style: y.value
1375
1441
  }),
1376
- g("div", {
1442
+ m("div", {
1377
1443
  class: q.value,
1378
1444
  style: d.value
1379
1445
  })
1380
1446
  ];
1381
1447
  return e.stripe === !0 && l.value === !1 && v.push(
1382
- g("div", {
1383
- class: m.value,
1448
+ m("div", {
1449
+ class: p.value,
1384
1450
  style: u.value
1385
1451
  })
1386
- ), g("div", {
1452
+ ), m("div", {
1387
1453
  class: $.value,
1388
1454
  style: i.value,
1389
1455
  role: "progressbar",
@@ -1393,10 +1459,10 @@ const an = te({
1393
1459
  }, N(t.default, v));
1394
1460
  };
1395
1461
  }
1396
- }), ln = {
1462
+ }), fn = {
1397
1463
  key: 0,
1398
1464
  class: "code-field__label"
1399
- }, on = { class: "code-field__inputs" }, sn = ["onUpdate:modelValue", "disabled", "onInput", "onKeydown", "onPaste"], rn = /* @__PURE__ */ F({
1465
+ }, vn = { class: "code-field__inputs" }, mn = ["onUpdate:modelValue", "disabled", "onInput", "onKeydown", "onPaste"], pn = /* @__PURE__ */ K({
1400
1466
  __name: "AppCodeInput",
1401
1467
  props: {
1402
1468
  length: { default: 5 },
@@ -1419,41 +1485,41 @@ const an = te({
1419
1485
  ]), $ = r(() => {
1420
1486
  let u = "";
1421
1487
  return a.size == z.SM && (u += `width: ${a.length * 26 + (a.length - 1) * 5}px`), a.size == z.MD && (u += `width: ${a.length * 32 + (a.length - 1) * 8}px`), a.size == z.LG && (u += `width: ${a.length * 44 + (a.length - 1) * 10}px`), u;
1422
- }), k = (u, m) => {
1423
- var B;
1424
- const b = u.target.value;
1425
- if (b.length === 1)
1426
- m < a.length - 1 && o.value && ((B = o.value[m + 1]) == null || B.focus());
1427
- else if (b.length > 1) {
1428
- const w = b.slice(0, a.length - m).split("");
1429
- w.forEach((E, y) => {
1430
- l.value[m + y] = E;
1431
- }), pe(() => {
1488
+ }), y = (u, p) => {
1489
+ var C;
1490
+ const h = u.target.value;
1491
+ if (h.length === 1)
1492
+ p < a.length - 1 && o.value && ((C = o.value[p + 1]) == null || C.focus());
1493
+ else if (h.length > 1) {
1494
+ const w = h.slice(0, a.length - p).split("");
1495
+ w.forEach((E, k) => {
1496
+ l.value[p + k] = E;
1497
+ }), he(() => {
1432
1498
  var E;
1433
- o.value && ((E = o.value[Math.min(m + w.length, a.length - 1)]) == null || E.focus());
1499
+ o.value && ((E = o.value[Math.min(p + w.length, a.length - 1)]) == null || E.focus());
1434
1500
  });
1435
1501
  }
1436
1502
  }, f = (u) => {
1437
- var m;
1438
- l.value[u] === "" && o.value && u > 0 && ((m = o.value[u - 1]) == null || m.focus());
1439
- }, S = (u, m) => {
1440
- var B;
1503
+ var p;
1504
+ l.value[u] === "" && o.value && u > 0 && ((p = o.value[u - 1]) == null || p.focus());
1505
+ }, S = (u, p) => {
1506
+ var C;
1441
1507
  u.preventDefault();
1442
- const v = ((B = u.clipboardData) == null ? void 0 : B.getData("text")) ?? "";
1508
+ const v = ((C = u.clipboardData) == null ? void 0 : C.getData("text")) ?? "";
1443
1509
  if (!v) return;
1444
- const b = v.slice(0, a.length - m).split("");
1445
- b.forEach((w, E) => {
1446
- l.value[m + E] = w;
1447
- }), pe(() => {
1510
+ const h = v.slice(0, a.length - p).split("");
1511
+ h.forEach((w, E) => {
1512
+ l.value[p + E] = w;
1513
+ }), he(() => {
1448
1514
  var w;
1449
- o.value && ((w = o.value[Math.min(m + b.length, a.length - 1)]) == null || w.focus());
1515
+ o.value && ((w = o.value[Math.min(p + h.length, a.length - 1)]) == null || w.focus());
1450
1516
  });
1451
1517
  };
1452
- Qe(
1518
+ Xe(
1453
1519
  l,
1454
1520
  (u) => {
1455
- const m = u.join("");
1456
- d(m);
1521
+ const p = u.join("");
1522
+ d(p);
1457
1523
  },
1458
1524
  { deep: !0 }
1459
1525
  );
@@ -1462,19 +1528,19 @@ const an = te({
1462
1528
  }, q = (u) => {
1463
1529
  u && (l.value = u.split("").slice(0, a.length));
1464
1530
  };
1465
- return Ue(() => {
1531
+ return We(() => {
1466
1532
  a.autofocus && o.value && o.value[0] && o.value[0].focus();
1467
1533
  }), t({
1468
1534
  injectCode: q
1469
- }), (u, m) => (h(), _("div", {
1470
- class: L(i.value),
1471
- style: oe($.value)
1535
+ }), (u, p) => (b(), _("div", {
1536
+ class: P(i.value),
1537
+ style: re($.value)
1472
1538
  }, [
1473
- u.label ? (h(), _("label", ln, Y(u.label), 1)) : A("", !0),
1474
- T("div", on, [
1475
- (h(!0), _(le, null, Ee(u.length, (v, b) => ge((h(), _("input", {
1476
- key: b,
1477
- "onUpdate:modelValue": (B) => l.value[b] = B,
1539
+ u.label ? (b(), _("label", fn, Y(u.label), 1)) : A("", !0),
1540
+ T("div", vn, [
1541
+ (b(!0), _(ie, null, Le(u.length, (v, h) => oe((b(), _("input", {
1542
+ key: h,
1543
+ "onUpdate:modelValue": (C) => l.value[h] = C,
1478
1544
  ref_for: !0,
1479
1545
  ref_key: "inputRefs",
1480
1546
  ref: o,
@@ -1482,14 +1548,14 @@ const an = te({
1482
1548
  maxlength: "1",
1483
1549
  class: "code-field__input",
1484
1550
  disabled: u.disabled || u.loading,
1485
- onInput: (B) => k(B, b),
1486
- onKeydown: He((B) => f(b), ["backspace"]),
1487
- onPaste: (B) => S(B, b)
1488
- }, null, 40, sn)), [
1489
- [Xe, l.value[b]]
1551
+ onInput: (C) => y(C, h),
1552
+ onKeydown: Ye((C) => f(h), ["backspace"]),
1553
+ onPaste: (C) => S(C, h)
1554
+ }, null, 40, mn)), [
1555
+ [Ge, l.value[h]]
1490
1556
  ])), 128))
1491
1557
  ]),
1492
- u.loading ? (h(), ne(an, {
1558
+ u.loading ? (b(), ae(dn, {
1493
1559
  key: 1,
1494
1560
  indeterminate: "",
1495
1561
  rounded: "",
@@ -1498,9 +1564,9 @@ const an = te({
1498
1564
  }, null, 8, ["color"])) : A("", !0)
1499
1565
  ], 6));
1500
1566
  }
1501
- }), Rn = /* @__PURE__ */ G(rn, [["__scopeId", "data-v-4e11db87"]]), un = { class: "app-segment__track" }, cn = { class: "app-segment__buttons" }, dn = ["onClick", "disabled"], fn = /* @__PURE__ */ F({
1567
+ }), Tn = /* @__PURE__ */ G(pn, [["__scopeId", "data-v-4e11db87"]]), gn = { class: "app-segment__track" }, hn = { class: "app-segment__buttons" }, bn = ["onClick", "disabled"], kn = /* @__PURE__ */ K({
1502
1568
  __name: "AppSegment",
1503
- props: /* @__PURE__ */ We({
1569
+ props: /* @__PURE__ */ Je({
1504
1570
  options: {},
1505
1571
  disabled: { type: Boolean },
1506
1572
  size: { default: z.MD }
@@ -1510,94 +1576,95 @@ const an = te({
1510
1576
  }),
1511
1577
  emits: ["update:modelValue"],
1512
1578
  setup(e) {
1513
- const t = Ye(e, "modelValue"), n = e, a = r(
1579
+ const t = Ze(e, "modelValue"), n = e, a = r(
1514
1580
  () => n.options.findIndex((l) => l.value === t.value)
1515
1581
  );
1516
1582
  function s(l) {
1517
1583
  n.disabled || (t.value = l);
1518
1584
  }
1519
- return (l, o) => (h(), _("div", {
1520
- class: L(["app-segment", [{ "app-segment_disabled": l.disabled }, `app-segment_${l.size}`]])
1585
+ return (l, o) => (b(), _("div", {
1586
+ class: P(["app-segment", [{ "app-segment_disabled": l.disabled }, `app-segment_${l.size}`]])
1521
1587
  }, [
1522
- T("div", un, [
1588
+ T("div", gn, [
1523
1589
  T("div", {
1524
1590
  class: "app-segment__thumb",
1525
- style: oe({
1591
+ style: re({
1526
1592
  width: `${100 / l.options.length}%`,
1527
1593
  transform: `translateX(${a.value * 100}%)`
1528
1594
  })
1529
1595
  }, null, 4)
1530
1596
  ]),
1531
- T("div", cn, [
1532
- (h(!0), _(le, null, Ee(l.options, (i, $) => (h(), _("button", {
1597
+ T("div", hn, [
1598
+ (b(!0), _(ie, null, Le(l.options, (i, $) => (b(), _("button", {
1533
1599
  key: $,
1534
- class: L(["app-segment__btn", { active: t.value === i.value }]),
1535
- onClick: (k) => s(i.value),
1600
+ class: P(["app-segment__btn", { active: t.value === i.value }]),
1601
+ onClick: (y) => s(i.value),
1536
1602
  disabled: l.disabled
1537
1603
  }, [
1538
- ae(l.$slots, "option", { option: i }, () => [
1539
- we(Y(i.label), 1)
1604
+ se(l.$slots, "option", { option: i }, () => [
1605
+ Pe(Y(i.label), 1)
1540
1606
  ], !0)
1541
- ], 10, dn))), 128))
1607
+ ], 10, bn))), 128))
1542
1608
  ])
1543
1609
  ], 2));
1544
1610
  }
1545
- }), Pn = /* @__PURE__ */ G(fn, [["__scopeId", "data-v-ff56abdf"]]), Mn = me(
1546
- () => import("./AppButtonCopy-D1LXQMmX.js")
1547
- ), An = me(
1548
- () => import("./AppSelect-DVEWnVCH.js")
1549
- ), Vn = me(
1550
- () => import("./DropdownButton-TuZuD8GY.js")
1611
+ }), zn = /* @__PURE__ */ G(kn, [["__scopeId", "data-v-ff56abdf"]]), On = ge(
1612
+ () => import("./AppButtonCopy-CZMmxAOw.js")
1613
+ ), jn = ge(
1614
+ () => import("./AppSelect-CqpUcE2F.js")
1615
+ ), Dn = ge(
1616
+ () => import("./DropdownButton-DYMqQn3L.js")
1551
1617
  );
1552
1618
  export {
1553
- Cn as A,
1554
- Pt as B,
1555
- Le as C,
1556
- dt as D,
1557
- ft as E,
1558
- yt as F,
1559
- $n as G,
1560
- qn as H,
1561
- hn as I,
1562
- rt as J,
1563
- ut as K,
1564
- Vn as L,
1565
- Mn as M,
1566
- An as N,
1567
- Pn as O,
1568
- En as P,
1569
- fe as Q,
1570
- mt as R,
1619
+ Mn as A,
1620
+ At as B,
1621
+ Re as C,
1622
+ vt as D,
1623
+ mt as E,
1624
+ _t as F,
1625
+ Gt as G,
1626
+ Pn as H,
1627
+ Cn as I,
1628
+ ct as J,
1629
+ dt as K,
1630
+ Zt as L,
1631
+ Dn as M,
1632
+ On as N,
1633
+ jn as O,
1634
+ Vn as P,
1635
+ pe as Q,
1636
+ ht as R,
1571
1637
  z as S,
1572
- Rn as T,
1573
- Ot as U,
1574
- Ln as V,
1575
- gn as W,
1638
+ zn as T,
1639
+ Tn as U,
1640
+ xt as V,
1641
+ In as W,
1642
+ _n as X,
1576
1643
  G as _,
1577
- je as a,
1578
- Ve as b,
1644
+ Ke as a,
1645
+ ze as b,
1579
1646
  te as c,
1580
- se as d,
1581
- ie as e,
1582
- bn as f,
1583
- pn as g,
1584
- Re as h,
1585
- Sn as i,
1586
- qt as j,
1587
- ve as k,
1588
- mn as l,
1589
- re as m,
1590
- _n as n,
1591
- yn as o,
1592
- ct as p,
1593
- kn as q,
1594
- Dt as r,
1595
- j as s,
1596
- wn as t,
1597
- Oe as u,
1598
- vt as v,
1599
- Ie as w,
1647
+ ue as d,
1648
+ ce as e,
1649
+ Sn as f,
1650
+ qn as g,
1651
+ Ae as h,
1652
+ Ln as i,
1653
+ Ct as j,
1654
+ le as k,
1655
+ $n as l,
1656
+ de as m,
1657
+ En as n,
1658
+ Bn as o,
1659
+ ft as p,
1660
+ wn as q,
1661
+ Kt as r,
1662
+ D as s,
1663
+ An as t,
1664
+ Ne as u,
1665
+ pt as v,
1666
+ Oe as w,
1600
1667
  N as x,
1601
- Et as y,
1602
- Bn as z
1668
+ Lt as y,
1669
+ Rn as z
1603
1670
  };