@validol4ik/uikit 0.6.10 → 0.7.0

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,37 +1,45 @@
1
- import { computed as u, markRaw as _e, defineComponent as U, h as m, withDirectives as re, getCurrentInstance as J, unref as Y, ref as X, onBeforeUnmount as ze, Transition as Te, createBlock as $e, openBlock as B, normalizeClass as z, withCtx as Oe, createElementBlock as L, createCommentVNode as T, renderSlot as qe, Fragment as Se, createTextVNode as De, toDisplayString as W, createElementVNode as G, normalizeStyle as we, watch as xe, onMounted as je, renderList as Ie, withKeys as Ve, vModelText as Ne, nextTick as ce, defineAsyncComponent as ie } from "vue";
2
- const Be = {
1
+ import { computed as c, markRaw as Se, defineComponent as F, h as m, withDirectives as se, getCurrentInstance as Z, unref as W, ref as J, onBeforeUnmount as Oe, Transition as De, createBlock as Be, openBlock as B, normalizeClass as R, withCtx as Ie, createElementBlock as C, createCommentVNode as T, renderSlot as re, Fragment as ie, createTextVNode as Ce, toDisplayString as H, createElementVNode as D, normalizeStyle as ue, watch as je, onMounted as xe, renderList as we, withKeys as Ve, vModelText as Ke, nextTick as ve, mergeModels as Ne, useModel as Fe, defineAsyncComponent as ce } from "vue";
2
+ const Xt = ({ app: e }) => {
3
+ const t = e.config.globalProperties.$q;
4
+ t.iconMapFn = (a) => {
5
+ if (a.startsWith("icon-kl:"))
6
+ return {
7
+ cls: `icon-kl icon-kl-${a.slice(8)}`
8
+ };
9
+ };
10
+ }, Le = {
3
11
  PRIMARY: "primary",
4
12
  INFO: "info"
5
- }, $ = {
13
+ }, k = {
6
14
  SM: "sm",
7
15
  MD: "md",
8
16
  LG: "lg"
9
- }, Ke = {
10
- [$.SM]: "3px 9px",
11
- [$.MD]: "5px 12px",
12
- [$.LG]: "9px 20px"
17
+ }, Qe = {
18
+ [k.SM]: "3px 9px",
19
+ [k.MD]: "5px 12px",
20
+ [k.LG]: "9px 20px"
13
21
  }, le = {
14
22
  xs: 18,
15
23
  sm: 24,
16
24
  md: 32,
17
25
  lg: 38,
18
26
  xl: 46
19
- }, se = {
27
+ }, de = {
20
28
  size: String
21
29
  };
22
- function ue(e, t = le) {
23
- return u(() => e.size !== void 0 ? { fontSize: e.size in t ? `${t[e.size]}px` : e.size } : null);
30
+ function fe(e, t = le) {
31
+ return c(() => e.size !== void 0 ? { fontSize: e.size in t ? `${t[e.size]}px` : e.size } : null);
24
32
  }
25
- function Z(e) {
26
- return _e(U(e));
33
+ function ee(e) {
34
+ return Se(F(e));
27
35
  }
28
- function Fe(e) {
29
- return _e(e);
36
+ function Ge(e) {
37
+ return Se(e);
30
38
  }
31
- function Qe(e, t) {
39
+ function Ue(e, t) {
32
40
  return e !== void 0 && e() || t;
33
41
  }
34
- function Kt(e, t) {
42
+ function Yt(e, t) {
35
43
  if (e !== void 0) {
36
44
  const a = e();
37
45
  if (a != null)
@@ -42,15 +50,15 @@ function Kt(e, t) {
42
50
  function N(e, t) {
43
51
  return e !== void 0 ? t.concat(e()) : t;
44
52
  }
45
- function Ft(e, t) {
53
+ function Wt(e, t) {
46
54
  return e === void 0 ? t : t !== void 0 ? t.concat(e()) : e();
47
55
  }
48
- function Qt(e, t, a, n, o, c) {
56
+ function Jt(e, t, a, n, o, r) {
49
57
  t.key = n + o;
50
58
  const l = m(e, t, a);
51
- return o === !0 ? re(l, c()) : l;
59
+ return o === !0 ? se(l, r()) : l;
52
60
  }
53
- const de = "0 0 24 24", ne = (e) => e, ae = (e) => `ionicons ${e}`, Ce = {
61
+ const ge = "0 0 24 24", ne = (e) => e, ae = (e) => `ionicons ${e}`, Ee = {
54
62
  "mdi-": (e) => `mdi ${e}`,
55
63
  "icon-": ne,
56
64
  // fontawesome equiv
@@ -64,18 +72,18 @@ const de = "0 0 24 24", ne = (e) => e, ae = (e) => `ionicons ${e}`, Ce = {
64
72
  "bi-": (e) => `bootstrap-icons ${e}`,
65
73
  "i-": ne
66
74
  // UnoCSS pure icons
67
- }, Le = {
75
+ }, Me = {
68
76
  o_: "-outlined",
69
77
  r_: "-round",
70
78
  s_: "-sharp"
71
- }, Ee = {
79
+ }, Re = {
72
80
  sym_o_: "-outlined",
73
81
  sym_r_: "-rounded",
74
82
  sym_s_: "-sharp"
75
- }, Ge = new RegExp("^(" + Object.keys(Ce).join("|") + ")"), Ue = new RegExp("^(" + Object.keys(Le).join("|") + ")"), fe = new RegExp("^(" + Object.keys(Ee).join("|") + ")"), He = /^[Mm]\s?[-+]?\.?\d/, Ye = /^img:/, Xe = /^svguse:/, We = /^ion-/, Je = /^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /, ve = Z({
83
+ }, He = new RegExp("^(" + Object.keys(Ee).join("|") + ")"), Xe = new RegExp("^(" + Object.keys(Me).join("|") + ")"), pe = new RegExp("^(" + Object.keys(Re).join("|") + ")"), Ye = /^[Mm]\s?[-+]?\.?\d/, We = /^img:/, Je = /^svguse:/, Ze = /^ion-/, et = /^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /, me = ee({
76
84
  name: "QIcon",
77
85
  props: {
78
- ...se,
86
+ ...de,
79
87
  tag: {
80
88
  type: String,
81
89
  default: "i"
@@ -86,17 +94,17 @@ const de = "0 0 24 24", ne = (e) => e, ae = (e) => `ionicons ${e}`, Ce = {
86
94
  right: Boolean
87
95
  },
88
96
  setup(e, { slots: t }) {
89
- const { proxy: { $q: a } } = J(), n = ue(e), o = u(
97
+ const { proxy: { $q: a } } = Z(), n = fe(e), o = c(
90
98
  () => "q-icon" + (e.left === !0 ? " on-left" : "") + (e.right === !0 ? " on-right" : "") + (e.color !== void 0 ? ` text-${e.color}` : "")
91
- ), c = u(() => {
92
- let l, r = e.name;
93
- if (r === "none" || !r)
99
+ ), r = c(() => {
100
+ let l, s = e.name;
101
+ if (s === "none" || !s)
94
102
  return { none: !0 };
95
103
  if (a.iconMapFn !== null) {
96
- const f = a.iconMapFn(r);
104
+ const f = a.iconMapFn(s);
97
105
  if (f !== void 0)
98
106
  if (f.icon !== void 0) {
99
- if (r = f.icon, r === "none" || !r)
107
+ if (s = f.icon, s === "none" || !s)
100
108
  return { none: !0 };
101
109
  } else
102
110
  return {
@@ -104,50 +112,50 @@ const de = "0 0 24 24", ne = (e) => e, ae = (e) => `ionicons ${e}`, Ce = {
104
112
  content: f.content !== void 0 ? f.content : " "
105
113
  };
106
114
  }
107
- if (He.test(r) === !0) {
108
- const [f, k = de] = r.split("|");
115
+ if (Ye.test(s) === !0) {
116
+ const [f, $ = ge] = s.split("|");
109
117
  return {
110
118
  svg: !0,
111
- viewBox: k,
119
+ viewBox: $,
112
120
  nodes: f.split("&&").map((d) => {
113
- const [q, s, g] = d.split("@@");
114
- return m("path", { style: s, d: q, transform: g });
121
+ const [S, u, g] = d.split("@@");
122
+ return m("path", { style: u, d: S, transform: g });
115
123
  })
116
124
  };
117
125
  }
118
- if (Ye.test(r) === !0)
126
+ if (We.test(s) === !0)
119
127
  return {
120
128
  img: !0,
121
- src: r.substring(4)
129
+ src: s.substring(4)
122
130
  };
123
- if (Xe.test(r) === !0) {
124
- const [f, k = de] = r.split("|");
131
+ if (Je.test(s) === !0) {
132
+ const [f, $ = ge] = s.split("|");
125
133
  return {
126
134
  svguse: !0,
127
135
  src: f.substring(7),
128
- viewBox: k
136
+ viewBox: $
129
137
  };
130
138
  }
131
- let S = " ";
132
- const y = r.match(Ge);
133
- if (y !== null)
134
- l = Ce[y[1]](r);
135
- else if (Je.test(r) === !0)
136
- l = r;
137
- else if (We.test(r) === !0)
138
- l = `ionicons ion-${a.platform.is.ios === !0 ? "ios" : "md"}${r.substring(3)}`;
139
- else if (fe.test(r) === !0) {
139
+ let _ = " ";
140
+ const b = s.match(He);
141
+ if (b !== null)
142
+ l = Ee[b[1]](s);
143
+ else if (et.test(s) === !0)
144
+ l = s;
145
+ else if (Ze.test(s) === !0)
146
+ l = `ionicons ion-${a.platform.is.ios === !0 ? "ios" : "md"}${s.substring(3)}`;
147
+ else if (pe.test(s) === !0) {
140
148
  l = "notranslate material-symbols";
141
- const f = r.match(fe);
142
- f !== null && (r = r.substring(6), l += Ee[f[1]]), S = r;
149
+ const f = s.match(pe);
150
+ f !== null && (s = s.substring(6), l += Re[f[1]]), _ = s;
143
151
  } else {
144
152
  l = "notranslate material-icons";
145
- const f = r.match(Ue);
146
- f !== null && (r = r.substring(2), l += Le[f[1]]), S = r;
153
+ const f = s.match(Xe);
154
+ f !== null && (s = s.substring(2), l += Me[f[1]]), _ = s;
147
155
  }
148
156
  return {
149
157
  cls: l,
150
- content: S
158
+ content: _
151
159
  };
152
160
  });
153
161
  return () => {
@@ -156,49 +164,49 @@ const de = "0 0 24 24", ne = (e) => e, ae = (e) => `ionicons ${e}`, Ce = {
156
164
  style: n.value,
157
165
  "aria-hidden": "true"
158
166
  };
159
- return c.value.none === !0 ? m(e.tag, l, Qe(t.default)) : c.value.img === !0 ? m(e.tag, l, N(t.default, [
160
- m("img", { src: c.value.src })
161
- ])) : c.value.svg === !0 ? m(e.tag, l, N(t.default, [
167
+ return r.value.none === !0 ? m(e.tag, l, Ue(t.default)) : r.value.img === !0 ? m(e.tag, l, N(t.default, [
168
+ m("img", { src: r.value.src })
169
+ ])) : r.value.svg === !0 ? m(e.tag, l, N(t.default, [
162
170
  m("svg", {
163
- viewBox: c.value.viewBox || "0 0 24 24"
164
- }, c.value.nodes)
165
- ])) : c.value.svguse === !0 ? m(e.tag, l, N(t.default, [
171
+ viewBox: r.value.viewBox || "0 0 24 24"
172
+ }, r.value.nodes)
173
+ ])) : r.value.svguse === !0 ? m(e.tag, l, N(t.default, [
166
174
  m("svg", {
167
- viewBox: c.value.viewBox
175
+ viewBox: r.value.viewBox
168
176
  }, [
169
- m("use", { "xlink:href": c.value.src })
177
+ m("use", { "xlink:href": r.value.src })
170
178
  ])
171
- ])) : (c.value.cls !== void 0 && (l.class += " " + c.value.cls), m(e.tag, l, N(t.default, [
172
- c.value.content
179
+ ])) : (r.value.cls !== void 0 && (l.class += " " + r.value.cls), m(e.tag, l, N(t.default, [
180
+ r.value.content
173
181
  ])));
174
182
  };
175
183
  }
176
- }), Ze = {
184
+ }), tt = {
177
185
  size: {
178
186
  type: [String, Number],
179
187
  default: "1em"
180
188
  },
181
189
  color: String
182
190
  };
183
- function et(e) {
191
+ function nt(e) {
184
192
  return {
185
- cSize: u(() => e.size in le ? `${le[e.size]}px` : e.size),
186
- classes: u(
193
+ cSize: c(() => e.size in le ? `${le[e.size]}px` : e.size),
194
+ classes: c(
187
195
  () => "q-spinner" + (e.color ? ` text-${e.color}` : "")
188
196
  )
189
197
  };
190
198
  }
191
- const tt = Z({
199
+ const at = ee({
192
200
  name: "QSpinner",
193
201
  props: {
194
- ...Ze,
202
+ ...tt,
195
203
  thickness: {
196
204
  type: Number,
197
205
  default: 5
198
206
  }
199
207
  },
200
208
  setup(e) {
201
- const { cSize: t, classes: a } = et(e);
209
+ const { cSize: t, classes: a } = nt(e);
202
210
  return () => m("svg", {
203
211
  class: a.value + " q-spinner-mat",
204
212
  width: t.value,
@@ -218,12 +226,12 @@ const tt = Z({
218
226
  ]);
219
227
  }
220
228
  });
221
- function nt(e, t) {
229
+ function lt(e, t) {
222
230
  const a = e.style;
223
231
  for (const n in t)
224
232
  a[n] = t[n];
225
233
  }
226
- function Gt(e) {
234
+ function Zt(e) {
227
235
  if (e == null)
228
236
  return;
229
237
  if (typeof e == "string")
@@ -232,11 +240,11 @@ function Gt(e) {
232
240
  } catch {
233
241
  return;
234
242
  }
235
- const t = Y(e);
243
+ const t = W(e);
236
244
  if (t)
237
245
  return t.$el || t;
238
246
  }
239
- function Ut(e, t) {
247
+ function en(e, t) {
240
248
  if (e == null || e.contains(t) === !0)
241
249
  return !0;
242
250
  for (let a = e.nextElementSibling; a !== null; a = a.nextElementSibling)
@@ -244,7 +252,7 @@ function Ut(e, t) {
244
252
  return !0;
245
253
  return !1;
246
254
  }
247
- const ee = {
255
+ const te = {
248
256
  hasPassive: !1,
249
257
  passiveCapture: !0,
250
258
  notPassiveCapture: !0
@@ -252,7 +260,7 @@ const ee = {
252
260
  try {
253
261
  const e = Object.defineProperty({}, "passive", {
254
262
  get() {
255
- Object.assign(ee, {
263
+ Object.assign(te, {
256
264
  hasPassive: !0,
257
265
  passive: { passive: !0 },
258
266
  notPassive: { passive: !1 },
@@ -264,15 +272,15 @@ try {
264
272
  window.addEventListener("qtest", null, e), window.removeEventListener("qtest", null, e);
265
273
  } catch {
266
274
  }
267
- function Ht() {
275
+ function tn() {
268
276
  }
269
- function at(e) {
277
+ function ot(e) {
270
278
  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]), {
271
279
  top: e.clientY,
272
280
  left: e.clientX
273
281
  };
274
282
  }
275
- function Yt(e) {
283
+ function nn(e) {
276
284
  if (e.path)
277
285
  return e.path;
278
286
  if (e.composedPath)
@@ -285,34 +293,34 @@ function Yt(e) {
285
293
  a = a.parentElement;
286
294
  }
287
295
  }
288
- function Re(e) {
296
+ function Pe(e) {
289
297
  e.stopPropagation();
290
298
  }
291
- function lt(e) {
299
+ function st(e) {
292
300
  e.cancelable !== !1 && e.preventDefault();
293
301
  }
294
- function x(e) {
302
+ function j(e) {
295
303
  e.cancelable !== !1 && e.preventDefault(), e.stopPropagation();
296
304
  }
297
- function ot(e, t, a) {
305
+ function rt(e, t, a) {
298
306
  const n = `__q_${t}_evt`;
299
307
  e[n] = e[n] !== void 0 ? e[n].concat(a) : a, a.forEach((o) => {
300
- o[0].addEventListener(o[1], e[o[2]], ee[o[3]]);
308
+ o[0].addEventListener(o[1], e[o[2]], te[o[3]]);
301
309
  });
302
310
  }
303
- function rt(e, t) {
311
+ function it(e, t) {
304
312
  const a = `__q_${t}_evt`;
305
313
  e[a] !== void 0 && (e[a].forEach((n) => {
306
- n[0].removeEventListener(n[1], e[n[2]], ee[n[3]]);
314
+ n[0].removeEventListener(n[1], e[n[2]], te[n[3]]);
307
315
  }), e[a] = void 0);
308
316
  }
309
- function it(e) {
317
+ function ut(e) {
310
318
  return e !== Object(e) || e.isComposing === !0 || e.qKeyEvent === !0;
311
319
  }
312
320
  function oe(e, t) {
313
- return it(e) === !0 ? !1 : [].concat(t).includes(e.keyCode);
321
+ return ut(e) === !0 ? !1 : [].concat(t).includes(e.keyCode);
314
322
  }
315
- function st(e, t = 250) {
323
+ function ct(e, t = 250) {
316
324
  let a = !1, n;
317
325
  return function() {
318
326
  return a === !1 && (a = !0, setTimeout(() => {
@@ -320,31 +328,31 @@ function st(e, t = 250) {
320
328
  }, t), n = e.apply(this, arguments)), n;
321
329
  };
322
330
  }
323
- function ge(e, t, a, n) {
324
- a.modifiers.stop === !0 && Re(e);
331
+ function he(e, t, a, n) {
332
+ a.modifiers.stop === !0 && Pe(e);
325
333
  const o = a.modifiers.color;
326
- let c = a.modifiers.center;
327
- c = c === !0 || n === !0;
328
- const l = document.createElement("span"), r = document.createElement("span"), S = at(e), { left: y, top: f, width: k, height: d } = t.getBoundingClientRect(), q = Math.sqrt(k * k + d * d), s = q / 2, g = `${(k - q) / 2}px`, v = c ? g : `${S.left - y - s}px`, p = `${(d - q) / 2}px`, _ = c ? p : `${S.top - f - s}px`;
329
- r.className = "q-ripple__inner", nt(r, {
330
- height: `${q}px`,
331
- width: `${q}px`,
332
- transform: `translate3d(${v},${_},0) scale3d(.2,.2,1)`,
334
+ let r = a.modifiers.center;
335
+ r = r === !0 || n === !0;
336
+ const l = document.createElement("span"), s = document.createElement("span"), _ = ot(e), { left: b, top: f, width: $, height: d } = t.getBoundingClientRect(), S = Math.sqrt($ * $ + d * d), u = S / 2, g = `${($ - S) / 2}px`, v = r ? g : `${_.left - b - u}px`, p = `${(d - S) / 2}px`, q = r ? p : `${_.top - f - u}px`;
337
+ s.className = "q-ripple__inner", lt(s, {
338
+ height: `${S}px`,
339
+ width: `${S}px`,
340
+ transform: `translate3d(${v},${q},0) scale3d(.2,.2,1)`,
333
341
  opacity: 0
334
- }), l.className = `q-ripple${o ? " text-" + o : ""}`, l.setAttribute("dir", "ltr"), l.appendChild(r), t.appendChild(l);
342
+ }), l.className = `q-ripple${o ? " text-" + o : ""}`, l.setAttribute("dir", "ltr"), l.appendChild(s), t.appendChild(l);
335
343
  const w = () => {
336
- l.remove(), clearTimeout(C);
344
+ l.remove(), clearTimeout(L);
337
345
  };
338
346
  a.abort.push(w);
339
- let C = setTimeout(() => {
340
- r.classList.add("q-ripple__inner--enter"), r.style.transform = `translate3d(${g},${p},0) scale3d(1,1,1)`, r.style.opacity = 0.2, C = setTimeout(() => {
341
- r.classList.remove("q-ripple__inner--enter"), r.classList.add("q-ripple__inner--leave"), r.style.opacity = 0, C = setTimeout(() => {
347
+ let L = setTimeout(() => {
348
+ s.classList.add("q-ripple__inner--enter"), s.style.transform = `translate3d(${g},${p},0) scale3d(1,1,1)`, s.style.opacity = 0.2, L = setTimeout(() => {
349
+ s.classList.remove("q-ripple__inner--enter"), s.classList.add("q-ripple__inner--leave"), s.style.opacity = 0, L = setTimeout(() => {
342
350
  l.remove(), a.abort.splice(a.abort.indexOf(w), 1);
343
351
  }, 275);
344
352
  }, 250);
345
353
  }, 50);
346
354
  }
347
- function pe(e, { modifiers: t, value: a, arg: n }) {
355
+ function be(e, { modifiers: t, value: a, arg: n }) {
348
356
  const o = Object.assign({}, e.cfg.ripple, t, a);
349
357
  e.modifiers = {
350
358
  early: o.early === !0,
@@ -354,7 +362,7 @@ function pe(e, { modifiers: t, value: a, arg: n }) {
354
362
  keyCodes: [].concat(o.keyCodes || 13)
355
363
  };
356
364
  }
357
- const ut = Fe(
365
+ const dt = Ge(
358
366
  {
359
367
  name: "ripple",
360
368
  beforeMount(e, t) {
@@ -366,13 +374,13 @@ const ut = Fe(
366
374
  modifiers: {},
367
375
  abort: [],
368
376
  start(o) {
369
- n.enabled === !0 && o.qSkipRipple !== !0 && o.type === (n.modifiers.early === !0 ? "pointerdown" : "click") && ge(o, e, n, o.qKeyEvent === !0);
377
+ n.enabled === !0 && o.qSkipRipple !== !0 && o.type === (n.modifiers.early === !0 ? "pointerdown" : "click") && he(o, e, n, o.qKeyEvent === !0);
370
378
  },
371
- keystart: st((o) => {
372
- n.enabled === !0 && o.qSkipRipple !== !0 && oe(o, n.modifiers.keyCodes) === !0 && o.type === `key${n.modifiers.early === !0 ? "down" : "up"}` && ge(o, e, n, !0);
379
+ keystart: ct((o) => {
380
+ n.enabled === !0 && o.qSkipRipple !== !0 && oe(o, n.modifiers.keyCodes) === !0 && o.type === `key${n.modifiers.early === !0 ? "down" : "up"}` && he(o, e, n, !0);
373
381
  }, 300)
374
382
  };
375
- pe(n, t), e.__qripple = n, ot(n, "main", [
383
+ be(n, t), e.__qripple = n, rt(n, "main", [
376
384
  [e, "pointerdown", "start", "passive"],
377
385
  [e, "click", "start", "passive"],
378
386
  [e, "keydown", "keystart", "passive"],
@@ -382,17 +390,17 @@ const ut = Fe(
382
390
  updated(e, t) {
383
391
  if (t.oldValue !== t.value) {
384
392
  const a = e.__qripple;
385
- a !== void 0 && (a.enabled = t.value !== !1, a.enabled === !0 && Object(t.value) === t.value && pe(a, t));
393
+ a !== void 0 && (a.enabled = t.value !== !1, a.enabled === !0 && Object(t.value) === t.value && be(a, t));
386
394
  }
387
395
  },
388
396
  beforeUnmount(e) {
389
397
  const t = e.__qripple;
390
398
  t !== void 0 && (t.abort.forEach((a) => {
391
399
  a();
392
- }), rt(t, "main"), delete e._qripple);
400
+ }), it(t, "main"), delete e._qripple);
393
401
  }
394
402
  }
395
- ), Me = {
403
+ ), Ae = {
396
404
  left: "start",
397
405
  center: "center",
398
406
  right: "end",
@@ -400,19 +408,19 @@ const ut = Fe(
400
408
  around: "around",
401
409
  evenly: "evenly",
402
410
  stretch: "stretch"
403
- }, ct = Object.keys(Me), dt = {
411
+ }, ft = Object.keys(Ae), vt = {
404
412
  align: {
405
413
  type: String,
406
- validator: (e) => ct.includes(e)
414
+ validator: (e) => ft.includes(e)
407
415
  }
408
416
  };
409
- function ft(e) {
410
- return u(() => {
417
+ function gt(e) {
418
+ return c(() => {
411
419
  const t = e.align === void 0 ? e.vertical === !0 ? "stretch" : "left" : e.align;
412
- return `${e.vertical === !0 ? "items" : "justify"}-${Me[t]}`;
420
+ return `${e.vertical === !0 ? "items" : "justify"}-${Ae[t]}`;
413
421
  });
414
422
  }
415
- function Xt(e) {
423
+ function an(e) {
416
424
  if (Object(e.$parent) === e.$parent)
417
425
  return e.$parent;
418
426
  let { parent: t } = e.$;
@@ -422,44 +430,44 @@ function Xt(e) {
422
430
  t = t.parent;
423
431
  }
424
432
  }
425
- function vt(e) {
433
+ function pt(e) {
426
434
  return e.appContext.config.globalProperties.$router !== void 0;
427
435
  }
428
- function Wt(e) {
436
+ function ln(e) {
429
437
  return e.isUnmounted === !0 || e.isDeactivated === !0;
430
438
  }
431
- function me(e) {
439
+ function ye(e) {
432
440
  return e ? e.aliasOf ? e.aliasOf.path : e.path : "";
433
441
  }
434
- function he(e, t) {
442
+ function ke(e, t) {
435
443
  return (e.aliasOf || e) === (t.aliasOf || t);
436
444
  }
437
- function gt(e, t) {
445
+ function mt(e, t) {
438
446
  for (const a in t) {
439
447
  const n = t[a], o = e[a];
440
448
  if (typeof n == "string") {
441
449
  if (n !== o)
442
450
  return !1;
443
- } else if (Array.isArray(o) === !1 || o.length !== n.length || n.some((c, l) => c !== o[l]))
451
+ } else if (Array.isArray(o) === !1 || o.length !== n.length || n.some((r, l) => r !== o[l]))
444
452
  return !1;
445
453
  }
446
454
  return !0;
447
455
  }
448
- function be(e, t) {
456
+ function _e(e, t) {
449
457
  return Array.isArray(t) === !0 ? e.length === t.length && e.every((a, n) => a === t[n]) : e.length === 1 && e[0] === t;
450
458
  }
451
- function pt(e, t) {
452
- return Array.isArray(e) === !0 ? be(e, t) : Array.isArray(t) === !0 ? be(t, e) : e === t;
459
+ function ht(e, t) {
460
+ return Array.isArray(e) === !0 ? _e(e, t) : Array.isArray(t) === !0 ? _e(t, e) : e === t;
453
461
  }
454
- function mt(e, t) {
462
+ function bt(e, t) {
455
463
  if (Object.keys(e).length !== Object.keys(t).length)
456
464
  return !1;
457
465
  for (const a in e)
458
- if (pt(e[a], t[a]) === !1)
466
+ if (ht(e[a], t[a]) === !1)
459
467
  return !1;
460
468
  return !0;
461
469
  }
462
- const Pe = {
470
+ const ze = {
463
471
  // router-link
464
472
  to: [String, Object],
465
473
  replace: Boolean,
@@ -468,8 +476,8 @@ const Pe = {
468
476
  target: String,
469
477
  // state
470
478
  disable: Boolean
471
- }, Jt = {
472
- ...Pe,
479
+ }, on = {
480
+ ...ze,
473
481
  // router-link
474
482
  exact: Boolean,
475
483
  activeClass: {
@@ -481,51 +489,51 @@ const Pe = {
481
489
  default: "q-router-link--exact-active"
482
490
  }
483
491
  };
484
- function ht({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
485
- const a = J(), { props: n, proxy: o, emit: c } = a, l = vt(a), r = u(() => n.disable !== !0 && n.href !== void 0), S = t === !0 ? u(
486
- () => l === !0 && n.disable !== !0 && r.value !== !0 && n.to !== void 0 && n.to !== null && n.to !== ""
487
- ) : u(
488
- () => l === !0 && r.value !== !0 && n.to !== void 0 && n.to !== null && n.to !== ""
489
- ), y = u(() => S.value === !0 ? _(n.to) : null), f = u(() => y.value !== null), k = u(() => r.value === !0 || f.value === !0), d = u(() => n.type === "a" || k.value === !0 ? "a" : n.tag || e || "div"), q = u(() => r.value === !0 ? {
492
+ function yt({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
493
+ const a = Z(), { props: n, proxy: o, emit: r } = a, l = pt(a), s = c(() => n.disable !== !0 && n.href !== void 0), _ = t === !0 ? c(
494
+ () => l === !0 && n.disable !== !0 && s.value !== !0 && n.to !== void 0 && n.to !== null && n.to !== ""
495
+ ) : c(
496
+ () => l === !0 && s.value !== !0 && n.to !== void 0 && n.to !== null && n.to !== ""
497
+ ), b = c(() => _.value === !0 ? q(n.to) : null), f = c(() => b.value !== null), $ = c(() => s.value === !0 || f.value === !0), d = c(() => n.type === "a" || $.value === !0 ? "a" : n.tag || e || "div"), S = c(() => s.value === !0 ? {
490
498
  href: n.href,
491
499
  target: n.target
492
500
  } : f.value === !0 ? {
493
- href: y.value.href,
501
+ href: b.value.href,
494
502
  target: n.target
495
- } : {}), s = u(() => {
503
+ } : {}), u = c(() => {
496
504
  if (f.value === !1)
497
505
  return -1;
498
- const { matched: h } = y.value, { length: E } = h, M = h[E - 1];
499
- if (M === void 0)
506
+ const { matched: h } = b.value, { length: E } = h, P = h[E - 1];
507
+ if (P === void 0)
500
508
  return -1;
501
- const A = o.$route.matched;
502
- if (A.length === 0)
509
+ const z = o.$route.matched;
510
+ if (z.length === 0)
503
511
  return -1;
504
- const O = A.findIndex(
505
- he.bind(null, M)
512
+ const O = z.findIndex(
513
+ ke.bind(null, P)
506
514
  );
507
515
  if (O !== -1)
508
516
  return O;
509
- const H = me(h[E - 2]);
517
+ const Y = ye(h[E - 2]);
510
518
  return (
511
519
  // we are dealing with nested routes
512
- E > 1 && me(M) === H && A[A.length - 1].path !== H ? A.findIndex(
513
- he.bind(null, h[E - 2])
520
+ E > 1 && ye(P) === Y && z[z.length - 1].path !== Y ? z.findIndex(
521
+ ke.bind(null, h[E - 2])
514
522
  ) : O
515
523
  );
516
- }), g = u(
517
- () => f.value === !0 && s.value !== -1 && gt(o.$route.params, y.value.params)
518
- ), v = u(
519
- () => g.value === !0 && s.value === o.$route.matched.length - 1 && mt(o.$route.params, y.value.params)
520
- ), p = u(() => f.value === !0 ? v.value === !0 ? ` ${n.exactActiveClass} ${n.activeClass}` : n.exact === !0 ? "" : g.value === !0 ? ` ${n.activeClass}` : "" : "");
521
- function _(h) {
524
+ }), g = c(
525
+ () => f.value === !0 && u.value !== -1 && mt(o.$route.params, b.value.params)
526
+ ), v = c(
527
+ () => g.value === !0 && u.value === o.$route.matched.length - 1 && bt(o.$route.params, b.value.params)
528
+ ), p = c(() => f.value === !0 ? v.value === !0 ? ` ${n.exactActiveClass} ${n.activeClass}` : n.exact === !0 ? "" : g.value === !0 ? ` ${n.activeClass}` : "" : "");
529
+ function q(h) {
522
530
  try {
523
531
  return o.$router.resolve(h);
524
532
  } catch {
525
533
  }
526
534
  return null;
527
535
  }
528
- function w(h, { returnRouterError: E, to: M = n.to, replace: A = n.replace } = {}) {
536
+ function w(h, { returnRouterError: E, to: P = n.to, replace: z = n.replace } = {}) {
529
537
  if (n.disable === !0)
530
538
  return h.preventDefault(), Promise.resolve(!1);
531
539
  if (
@@ -535,57 +543,57 @@ function ht({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
535
543
  )
536
544
  return Promise.resolve(!1);
537
545
  h.preventDefault();
538
- const O = o.$router[A === !0 ? "replace" : "push"](M);
546
+ const O = o.$router[z === !0 ? "replace" : "push"](P);
539
547
  return E === !0 ? O : O.then(() => {
540
548
  }).catch(() => {
541
549
  });
542
550
  }
543
- function C(h) {
551
+ function L(h) {
544
552
  if (f.value === !0) {
545
- const E = (M) => w(h, M);
546
- c("click", h, E), h.defaultPrevented !== !0 && E();
553
+ const E = (P) => w(h, P);
554
+ r("click", h, E), h.defaultPrevented !== !0 && E();
547
555
  } else
548
- c("click", h);
556
+ r("click", h);
549
557
  }
550
558
  return {
551
559
  hasRouterLink: f,
552
- hasHrefLink: r,
553
- hasLink: k,
560
+ hasHrefLink: s,
561
+ hasLink: $,
554
562
  linkTag: d,
555
- resolvedLink: y,
563
+ resolvedLink: b,
556
564
  linkIsActive: g,
557
565
  linkIsExactActive: v,
558
566
  linkClass: p,
559
- linkAttrs: q,
560
- getLink: _,
567
+ linkAttrs: S,
568
+ getLink: q,
561
569
  navigateToRouterLink: w,
562
- navigateOnClick: C
570
+ navigateOnClick: L
563
571
  };
564
572
  }
565
- const ye = {
573
+ const $e = {
566
574
  none: 0,
567
575
  xs: 4,
568
576
  sm: 8,
569
577
  md: 16,
570
578
  lg: 24,
571
579
  xl: 32
572
- }, bt = {
580
+ }, kt = {
573
581
  xs: 8,
574
582
  sm: 10,
575
583
  md: 14,
576
584
  lg: 20,
577
585
  xl: 24
578
- }, yt = ["button", "submit", "reset"], kt = /[^\s]\/[^\s]/, _t = ["flat", "outline", "push", "unelevated"];
579
- function Ae(e, t) {
586
+ }, _t = ["button", "submit", "reset"], $t = /[^\s]\/[^\s]/, qt = ["flat", "outline", "push", "unelevated"];
587
+ function Te(e, t) {
580
588
  return e.flat === !0 ? "flat" : e.outline === !0 ? "outline" : e.push === !0 ? "push" : e.unelevated === !0 ? "unelevated" : t;
581
589
  }
582
- function Zt(e) {
583
- const t = Ae(e);
590
+ function sn(e) {
591
+ const t = Te(e);
584
592
  return t !== void 0 ? { [t]: !0 } : {};
585
593
  }
586
- const $t = {
587
- ...se,
588
- ...Pe,
594
+ const St = {
595
+ ...de,
596
+ ...ze,
589
597
  type: {
590
598
  type: String,
591
599
  default: "button"
@@ -593,7 +601,7 @@ const $t = {
593
601
  label: [Number, String],
594
602
  icon: String,
595
603
  iconRight: String,
596
- ..._t.reduce(
604
+ ...qt.reduce(
597
605
  (e, t) => (e[t] = Boolean) && e,
598
606
  {}
599
607
  ),
@@ -615,7 +623,7 @@ const $t = {
615
623
  default: !0
616
624
  },
617
625
  align: {
618
- ...dt.align,
626
+ ...vt.align,
619
627
  default: "center"
620
628
  },
621
629
  stack: Boolean,
@@ -625,172 +633,172 @@ const $t = {
625
633
  default: null
626
634
  },
627
635
  disable: Boolean
628
- }, qt = {
629
- ...$t,
636
+ }, Bt = {
637
+ ...St,
630
638
  round: Boolean
631
639
  };
632
- function St(e) {
633
- const t = ue(e, bt), a = ft(e), { hasRouterLink: n, hasLink: o, linkTag: c, linkAttrs: l, navigateOnClick: r } = ht({
640
+ function Ct(e) {
641
+ const t = fe(e, kt), a = gt(e), { hasRouterLink: n, hasLink: o, linkTag: r, linkAttrs: l, navigateOnClick: s } = yt({
634
642
  fallbackTag: "button"
635
- }), S = u(() => {
643
+ }), _ = c(() => {
636
644
  const v = e.fab === !1 && e.fabMini === !1 ? t.value : {};
637
645
  return e.padding !== void 0 ? Object.assign({}, v, {
638
- padding: e.padding.split(/\s+/).map((p) => p in ye ? ye[p] + "px" : p).join(" "),
646
+ padding: e.padding.split(/\s+/).map((p) => p in $e ? $e[p] + "px" : p).join(" "),
639
647
  minWidth: "0",
640
648
  minHeight: "0"
641
649
  }) : v;
642
- }), y = u(
650
+ }), b = c(
643
651
  () => e.rounded === !0 || e.fab === !0 || e.fabMini === !0
644
- ), f = u(
652
+ ), f = c(
645
653
  () => e.disable !== !0 && e.loading !== !0
646
- ), k = u(() => f.value === !0 ? e.tabindex || 0 : -1), d = u(() => Ae(e, "standard")), q = u(() => {
647
- const v = { tabindex: k.value };
648
- return o.value === !0 ? Object.assign(v, l.value) : yt.includes(e.type) === !0 && (v.type = e.type), c.value === "a" ? (e.disable === !0 ? v["aria-disabled"] = "true" : v.href === void 0 && (v.role = "button"), n.value !== !0 && kt.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, {
654
+ ), $ = c(() => f.value === !0 ? e.tabindex || 0 : -1), d = c(() => Te(e, "standard")), S = c(() => {
655
+ const v = { tabindex: $.value };
656
+ return o.value === !0 ? Object.assign(v, l.value) : _t.includes(e.type) === !0 && (v.type = e.type), r.value === "a" ? (e.disable === !0 ? v["aria-disabled"] = "true" : v.href === void 0 && (v.role = "button"), n.value !== !0 && $t.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, {
649
657
  role: "progressbar",
650
658
  "aria-valuemin": 0,
651
659
  "aria-valuemax": 100,
652
660
  "aria-valuenow": e.percentage
653
661
  }), v;
654
- }), s = u(() => {
662
+ }), u = c(() => {
655
663
  let v;
656
664
  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}`);
657
- const p = e.round === !0 ? "round" : `rectangle${y.value === !0 ? " q-btn--rounded" : e.square === !0 ? " q-btn--square" : ""}`;
665
+ const p = e.round === !0 ? "round" : `rectangle${b.value === !0 ? " q-btn--rounded" : e.square === !0 ? " q-btn--square" : ""}`;
658
666
  return `q-btn--${d.value} q-btn--${p}` + (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" : "");
659
- }), g = u(
667
+ }), g = c(
660
668
  () => a.value + (e.stack === !0 ? " column" : " row") + (e.noWrap === !0 ? " no-wrap text-no-wrap" : "") + (e.loading === !0 ? " q-btn__content--hidden" : "")
661
669
  );
662
670
  return {
663
- classes: s,
664
- style: S,
671
+ classes: u,
672
+ style: _,
665
673
  innerClasses: g,
666
- attributes: q,
674
+ attributes: S,
667
675
  hasLink: o,
668
- linkTag: c,
669
- navigateOnClick: r,
676
+ linkTag: r,
677
+ navigateOnClick: s,
670
678
  isActionable: f
671
679
  };
672
680
  }
673
- const { passiveCapture: R } = ee;
674
- let j = null, I = null, V = null;
675
- const wt = Z({
681
+ const { passiveCapture: M } = te;
682
+ let x = null, V = null, K = null;
683
+ const wt = ee({
676
684
  name: "QBtn",
677
685
  props: {
678
- ...qt,
686
+ ...Bt,
679
687
  percentage: Number,
680
688
  darkPercentage: Boolean,
681
689
  onTouchstart: [Function, Array]
682
690
  },
683
691
  emits: ["click", "keydown", "mousedown", "keyup"],
684
692
  setup(e, { slots: t, emit: a }) {
685
- const { proxy: n } = J(), {
693
+ const { proxy: n } = Z(), {
686
694
  classes: o,
687
- style: c,
695
+ style: r,
688
696
  innerClasses: l,
689
- attributes: r,
690
- hasLink: S,
691
- linkTag: y,
697
+ attributes: s,
698
+ hasLink: _,
699
+ linkTag: b,
692
700
  navigateOnClick: f,
693
- isActionable: k
694
- } = St(e), d = X(null), q = X(null);
695
- let s = null, g, v = null;
696
- const p = u(
701
+ isActionable: $
702
+ } = Ct(e), d = J(null), S = J(null);
703
+ let u = null, g, v = null;
704
+ const p = c(
697
705
  () => e.label !== void 0 && e.label !== null && e.label !== ""
698
- ), _ = u(() => e.disable === !0 || e.ripple === !1 ? !1 : {
699
- keyCodes: S.value === !0 ? [13, 32] : [13],
706
+ ), q = c(() => e.disable === !0 || e.ripple === !1 ? !1 : {
707
+ keyCodes: _.value === !0 ? [13, 32] : [13],
700
708
  ...e.ripple === !0 ? {} : e.ripple
701
- }), w = u(() => ({ center: e.round })), C = u(() => {
709
+ }), w = c(() => ({ center: e.round })), L = c(() => {
702
710
  const i = Math.max(0, Math.min(100, e.percentage));
703
711
  return i > 0 ? { transition: "transform 0.6s", transform: `translateX(${i - 100}%)` } : {};
704
- }), h = u(() => {
712
+ }), h = c(() => {
705
713
  if (e.loading === !0)
706
714
  return {
707
- onMousedown: F,
708
- onTouchstart: F,
709
- onClick: F,
710
- onKeydown: F,
711
- onKeyup: F
715
+ onMousedown: G,
716
+ onTouchstart: G,
717
+ onClick: G,
718
+ onKeydown: G,
719
+ onKeyup: G
712
720
  };
713
- if (k.value === !0) {
721
+ if ($.value === !0) {
714
722
  const i = {
715
- onClick: M,
716
- onKeydown: A,
717
- onMousedown: H
723
+ onClick: P,
724
+ onKeydown: z,
725
+ onMousedown: Y
718
726
  };
719
727
  if (n.$q.platform.has.touch === !0) {
720
- const b = e.onTouchstart !== void 0 ? "" : "Passive";
721
- i[`onTouchstart${b}`] = O;
728
+ const y = e.onTouchstart !== void 0 ? "" : "Passive";
729
+ i[`onTouchstart${y}`] = O;
722
730
  }
723
731
  return i;
724
732
  }
725
733
  return {
726
734
  // needed; especially for disabled <a> tags
727
- onClick: x
735
+ onClick: j
728
736
  };
729
- }), E = u(() => ({
737
+ }), E = c(() => ({
730
738
  ref: d,
731
739
  class: "q-btn q-btn-item non-selectable no-outline " + o.value,
732
- style: c.value,
733
- ...r.value,
740
+ style: r.value,
741
+ ...s.value,
734
742
  ...h.value
735
743
  }));
736
- function M(i) {
744
+ function P(i) {
737
745
  if (d.value !== null) {
738
746
  if (i !== void 0) {
739
747
  if (i.defaultPrevented === !0) return;
740
- const b = document.activeElement;
741
- if (e.type === "submit" && b !== document.body && d.value.contains(b) === !1 && b.contains(d.value) === !1) {
748
+ const y = document.activeElement;
749
+ if (e.type === "submit" && y !== document.body && d.value.contains(y) === !1 && y.contains(d.value) === !1) {
742
750
  i.qAvoidFocus !== !0 && d.value.focus();
743
- const D = () => {
744
- var Q;
745
- document.removeEventListener("keydown", x, !0), document.removeEventListener("keyup", D, R), (Q = d.value) == null || Q.removeEventListener("blur", D, R);
751
+ const I = () => {
752
+ var U;
753
+ document.removeEventListener("keydown", j, !0), document.removeEventListener("keyup", I, M), (U = d.value) == null || U.removeEventListener("blur", I, M);
746
754
  };
747
- document.addEventListener("keydown", x, !0), document.addEventListener("keyup", D, R), d.value.addEventListener("blur", D, R);
755
+ document.addEventListener("keydown", j, !0), document.addEventListener("keyup", I, M), d.value.addEventListener("blur", I, M);
748
756
  }
749
757
  }
750
758
  f(i);
751
759
  }
752
760
  }
753
- function A(i) {
754
- d.value !== null && (a("keydown", i), oe(i, [13, 32]) === !0 && I !== d.value && (I !== null && K(), i.defaultPrevented !== !0 && (i.qAvoidFocus !== !0 && d.value.focus(), I = d.value, d.value.classList.add("q-btn--active"), document.addEventListener("keyup", P, !0), d.value.addEventListener("blur", P, R)), x(i)));
761
+ function z(i) {
762
+ d.value !== null && (a("keydown", i), oe(i, [13, 32]) === !0 && V !== d.value && (V !== null && Q(), i.defaultPrevented !== !0 && (i.qAvoidFocus !== !0 && d.value.focus(), V = d.value, d.value.classList.add("q-btn--active"), document.addEventListener("keyup", A, !0), d.value.addEventListener("blur", A, M)), j(i)));
755
763
  }
756
764
  function O(i) {
757
- d.value !== null && (a("touchstart", i), i.defaultPrevented !== !0 && (j !== d.value && (j !== null && K(), j = d.value, s = i.target, s.addEventListener("touchcancel", P, R), s.addEventListener("touchend", P, R)), g = !0, v !== null && clearTimeout(v), v = setTimeout(() => {
765
+ d.value !== null && (a("touchstart", i), i.defaultPrevented !== !0 && (x !== d.value && (x !== null && Q(), x = d.value, u = i.target, u.addEventListener("touchcancel", A, M), u.addEventListener("touchend", A, M)), g = !0, v !== null && clearTimeout(v), v = setTimeout(() => {
758
766
  v = null, g = !1;
759
767
  }, 200)));
760
768
  }
761
- function H(i) {
762
- d.value !== null && (i.qSkipRipple = g === !0, a("mousedown", i), i.defaultPrevented !== !0 && V !== d.value && (V !== null && K(), V = d.value, d.value.classList.add("q-btn--active"), document.addEventListener("mouseup", P, R)));
769
+ function Y(i) {
770
+ d.value !== null && (i.qSkipRipple = g === !0, a("mousedown", i), i.defaultPrevented !== !0 && K !== d.value && (K !== null && Q(), K = d.value, d.value.classList.add("q-btn--active"), document.addEventListener("mouseup", A, M)));
763
771
  }
764
- function P(i) {
772
+ function A(i) {
765
773
  if (d.value !== null && !((i == null ? void 0 : i.type) === "blur" && document.activeElement === d.value)) {
766
774
  if ((i == null ? void 0 : i.type) === "keyup") {
767
- if (I === d.value && oe(i, [13, 32]) === !0) {
768
- const b = new MouseEvent("click", i);
769
- b.qKeyEvent = !0, i.defaultPrevented === !0 && lt(b), i.cancelBubble === !0 && Re(b), d.value.dispatchEvent(b), x(i), i.qKeyEvent = !0;
775
+ if (V === d.value && oe(i, [13, 32]) === !0) {
776
+ const y = new MouseEvent("click", i);
777
+ y.qKeyEvent = !0, i.defaultPrevented === !0 && st(y), i.cancelBubble === !0 && Pe(y), d.value.dispatchEvent(y), j(i), i.qKeyEvent = !0;
770
778
  }
771
779
  a("keyup", i);
772
780
  }
773
- K();
781
+ Q();
774
782
  }
775
783
  }
776
- function K(i) {
777
- var D, Q;
778
- const b = q.value;
779
- i !== !0 && (j === d.value || V === d.value) && b !== null && b !== document.activeElement && (b.setAttribute("tabindex", -1), b.focus()), j === d.value && (s !== null && (s.removeEventListener("touchcancel", P, R), s.removeEventListener("touchend", P, R)), j = s = null), V === d.value && (document.removeEventListener("mouseup", P, R), V = null), I === d.value && (document.removeEventListener("keyup", P, !0), (D = d.value) == null || D.removeEventListener("blur", P, R), I = null), (Q = d.value) == null || Q.classList.remove("q-btn--active");
784
+ function Q(i) {
785
+ var I, U;
786
+ const y = S.value;
787
+ i !== !0 && (x === d.value || K === d.value) && y !== null && y !== document.activeElement && (y.setAttribute("tabindex", -1), y.focus()), x === d.value && (u !== null && (u.removeEventListener("touchcancel", A, M), u.removeEventListener("touchend", A, M)), x = u = null), K === d.value && (document.removeEventListener("mouseup", A, M), K = null), V === d.value && (document.removeEventListener("keyup", A, !0), (I = d.value) == null || I.removeEventListener("blur", A, M), V = null), (U = d.value) == null || U.classList.remove("q-btn--active");
780
788
  }
781
- function F(i) {
782
- x(i), i.qSkipRipple = !0;
789
+ function G(i) {
790
+ j(i), i.qSkipRipple = !0;
783
791
  }
784
- return ze(() => {
785
- K(!0);
792
+ return Oe(() => {
793
+ Q(!0);
786
794
  }), Object.assign(n, {
787
795
  click: (i) => {
788
- k.value === !0 && M(i);
796
+ $.value === !0 && P(i);
789
797
  }
790
798
  }), () => {
791
799
  let i = [];
792
800
  e.icon !== void 0 && i.push(
793
- m(ve, {
801
+ m(me, {
794
802
  name: e.icon,
795
803
  left: e.stack !== !0 && p.value === !0,
796
804
  role: "img"
@@ -798,63 +806,63 @@ const wt = Z({
798
806
  ), p.value === !0 && i.push(
799
807
  m("span", { class: "block" }, [e.label])
800
808
  ), i = N(t.default, i), e.iconRight !== void 0 && e.round === !1 && i.push(
801
- m(ve, {
809
+ m(me, {
802
810
  name: e.iconRight,
803
811
  right: e.stack !== !0 && p.value === !0,
804
812
  role: "img"
805
813
  })
806
814
  );
807
- const b = [
815
+ const y = [
808
816
  m("span", {
809
817
  class: "q-focus-helper",
810
- ref: q
818
+ ref: S
811
819
  })
812
820
  ];
813
- return e.loading === !0 && e.percentage !== void 0 && b.push(
821
+ return e.loading === !0 && e.percentage !== void 0 && y.push(
814
822
  m("span", {
815
823
  class: "q-btn__progress absolute-full overflow-hidden" + (e.darkPercentage === !0 ? " q-btn__progress--dark" : "")
816
824
  }, [
817
825
  m("span", {
818
826
  class: "q-btn__progress-indicator fit block",
819
- style: C.value
827
+ style: L.value
820
828
  })
821
829
  ])
822
- ), b.push(
830
+ ), y.push(
823
831
  m("span", {
824
832
  class: "q-btn__content text-center col items-center q-anchor--skip " + l.value
825
833
  }, i)
826
- ), e.loading !== null && b.push(
827
- m(Te, {
834
+ ), e.loading !== null && y.push(
835
+ m(De, {
828
836
  name: "q-transition--fade"
829
837
  }, () => e.loading === !0 ? [
830
838
  m("span", {
831
839
  key: "loading",
832
840
  class: "absolute-full flex flex-center"
833
- }, t.loading !== void 0 ? t.loading() : [m(tt)])
841
+ }, t.loading !== void 0 ? t.loading() : [m(at)])
834
842
  ] : null)
835
- ), re(
843
+ ), se(
836
844
  m(
837
- y.value,
845
+ b.value,
838
846
  E.value,
839
- b
847
+ y
840
848
  ),
841
849
  [[
842
- ut,
843
- _.value,
850
+ dt,
851
+ q.value,
844
852
  void 0,
845
853
  w.value
846
854
  ]]
847
855
  );
848
856
  };
849
857
  }
850
- }), Bt = /* @__PURE__ */ U({
858
+ }), Lt = /* @__PURE__ */ F({
851
859
  __name: "AppButton",
852
860
  props: {
853
- size: { default: $.MD },
861
+ size: { default: k.MD },
854
862
  transparent: { type: Boolean },
855
863
  flat: { type: Boolean },
856
864
  rounded: { type: Boolean },
857
- color: { default: Be.PRIMARY },
865
+ color: { default: Le.PRIMARY },
858
866
  iconLeft: {},
859
867
  iconRight: {},
860
868
  iconMiddle: {},
@@ -870,27 +878,27 @@ const wt = Z({
870
878
  },
871
879
  emits: ["click"],
872
880
  setup(e) {
873
- const t = e, a = u(() => [
881
+ const t = e, a = c(() => [
874
882
  "app-btn",
875
883
  {
876
884
  "app-btn_default": !t.transparent && !t.flat,
877
885
  "app-btn_trans": t.transparent,
878
886
  "app-btn_flat": t.flat,
879
887
  "app-btn_rounded": t.rounded,
880
- "app-btn_sm": t.size === $.SM,
881
- "app-btn_md": t.size === $.MD,
882
- "app-btn_lg": t.size === $.LG,
888
+ "app-btn_sm": t.size === k.SM,
889
+ "app-btn_md": t.size === k.MD,
890
+ "app-btn_lg": t.size === k.LG,
883
891
  "app-btn_icon-left": t.iconLeft,
884
892
  "app-btn_icon-right": t.iconRight,
885
893
  "app-btn_icon-middle": t.iconMiddle
886
894
  },
887
895
  `app-btn_${t.color}`
888
896
  ]);
889
- return (n, o) => (B(), $e(Y(wt), {
897
+ return (n, o) => (B(), Be(W(wt), {
890
898
  "no-caps": "",
891
899
  unelevated: "",
892
- class: z(a.value),
893
- padding: Y(Ke)[n.size || Y($).MD],
900
+ class: R(a.value),
901
+ padding: W(Qe)[n.size || W(k).MD],
894
902
  loading: n.loading,
895
903
  disable: n.disabled || void 0,
896
904
  to: n.to,
@@ -899,25 +907,25 @@ const wt = Z({
899
907
  type: n.submit ? "submit" : void 0,
900
908
  "aria-label": n.ariaLabel,
901
909
  download: n.download,
902
- onClick: o[0] || (o[0] = (c) => n.$emit("click", c))
910
+ onClick: o[0] || (o[0] = (r) => n.$emit("click", r))
903
911
  }, {
904
- default: Oe(() => [
905
- n.iconLeft || n.iconMiddle ? (B(), L("i", {
912
+ default: Ie(() => [
913
+ n.iconLeft || n.iconMiddle ? (B(), C("i", {
906
914
  key: 0,
907
- class: z([
915
+ class: R([
908
916
  "icon-kl",
909
917
  n.iconLeft ? "icon-kl_left" : "icon-kl_middle",
910
918
  `icon-kl-${n.iconLeft || n.iconMiddle}`,
911
919
  n.transparent || n.flat ? `text-${n.color}` : "text-secondary"
912
920
  ])
913
921
  }, null, 2)) : T("", !0),
914
- qe(n.$slots, "default", {}, void 0, !0),
915
- n.label ? (B(), L(Se, { key: 1 }, [
916
- De(W(n.label), 1)
922
+ re(n.$slots, "default", {}, void 0, !0),
923
+ n.label ? (B(), C(ie, { key: 1 }, [
924
+ Ce(H(n.label), 1)
917
925
  ], 64)) : T("", !0),
918
- n.iconRight ? (B(), L("i", {
926
+ n.iconRight ? (B(), C("i", {
919
927
  key: 2,
920
- class: z([
928
+ class: R([
921
929
  "icon-kl",
922
930
  "icon-kl_right",
923
931
  `icon-kl-${n.iconRight}`,
@@ -928,25 +936,25 @@ const wt = Z({
928
936
  _: 3
929
937
  }, 8, ["class", "padding", "loading", "disable", "to", "href", "target", "type", "aria-label", "download"]));
930
938
  }
931
- }), te = (e, t) => {
939
+ }), X = (e, t) => {
932
940
  const a = e.__vccOpts || e;
933
941
  for (const [n, o] of t)
934
942
  a[n] = o;
935
943
  return a;
936
- }, en = /* @__PURE__ */ te(Bt, [["__scopeId", "data-v-99788ad1"]]), Ct = {
944
+ }, rn = /* @__PURE__ */ X(Lt, [["__scopeId", "data-v-99788ad1"]]), Et = {
937
945
  key: 0,
938
946
  class: "app-toggle__label app-toggle__label_left"
939
- }, Lt = { class: "app-toggle__container" }, Et = ["checked", "disabled"], Rt = { class: "app-toggle__thumb" }, Mt = {
947
+ }, Mt = { class: "app-toggle__container" }, Rt = ["checked", "disabled"], Pt = { class: "app-toggle__thumb" }, At = {
940
948
  key: 1,
941
949
  class: "app-toggle__label"
942
- }, Pt = /* @__PURE__ */ U({
950
+ }, zt = /* @__PURE__ */ F({
943
951
  __name: "AppToggle",
944
952
  props: {
945
953
  modelValue: { type: Boolean },
946
- size: { default: $.MD },
954
+ size: { default: k.MD },
947
955
  label: {},
948
956
  disabled: { type: Boolean },
949
- color: { default: Be.PRIMARY },
957
+ color: { default: Le.PRIMARY },
950
958
  iconColor: {},
951
959
  icon: {},
952
960
  iconActive: {},
@@ -954,45 +962,45 @@ const wt = Z({
954
962
  },
955
963
  emits: ["update:modelValue"],
956
964
  setup(e, { emit: t }) {
957
- const a = e, n = t, o = u({
965
+ const a = e, n = t, o = c({
958
966
  get: () => a.modelValue,
959
967
  set: (l) => {
960
968
  n("update:modelValue", l);
961
969
  }
962
- }), c = u(() => [
970
+ }), r = c(() => [
963
971
  "app-toggle",
964
972
  {
965
- "app-toggle_sm": a.size === $.SM,
966
- "app-toggle_md": a.size === $.MD,
967
- "app-toggle_lg": a.size === $.LG,
973
+ "app-toggle_sm": a.size === k.SM,
974
+ "app-toggle_md": a.size === k.MD,
975
+ "app-toggle_lg": a.size === k.LG,
968
976
  "app-toggle_active": o.value,
969
977
  "app-toggle_disabled": a.disabled
970
978
  },
971
979
  `app-toggle_${a.color}`
972
980
  ]);
973
- return (l, r) => (B(), L("div", {
974
- class: z(c.value)
981
+ return (l, s) => (B(), C("div", {
982
+ class: R(r.value)
975
983
  }, [
976
- l.label && l.labelLeft ? (B(), L("span", Ct, W(l.label), 1)) : T("", !0),
977
- G("label", Lt, [
978
- G("input", {
984
+ l.label && l.labelLeft ? (B(), C("span", Et, H(l.label), 1)) : T("", !0),
985
+ D("label", Mt, [
986
+ D("input", {
979
987
  type: "checkbox",
980
988
  checked: o.value,
981
- onChange: r[0] || (r[0] = (S) => o.value = !o.value),
989
+ onChange: s[0] || (s[0] = (_) => o.value = !o.value),
982
990
  disabled: l.disabled,
983
991
  class: "app-toggle__input"
984
- }, null, 40, Et),
985
- G("span", {
986
- class: z(["app-toggle__slider", o.value ? `bg-${l.color}` : ""])
992
+ }, null, 40, Rt),
993
+ D("span", {
994
+ class: R(["app-toggle__slider", o.value ? `bg-${l.color}` : ""])
987
995
  }, [
988
- G("span", Rt, [
989
- l.icon && !l.modelValue ? (B(), L("i", {
996
+ D("span", Pt, [
997
+ l.icon && !l.modelValue ? (B(), C("i", {
990
998
  key: 0,
991
- class: z(["icon-kl", `icon-kl-${l.icon}`, "app-toggle__icon"])
999
+ class: R(["icon-kl", `icon-kl-${l.icon}`, "app-toggle__icon"])
992
1000
  }, null, 2)) : T("", !0),
993
- l.modelValue && (l.iconActive || l.icon) ? (B(), L("i", {
1001
+ l.modelValue && (l.iconActive || l.icon) ? (B(), C("i", {
994
1002
  key: 1,
995
- class: z([
1003
+ class: R([
996
1004
  "icon-kl",
997
1005
  `icon-kl-${l.iconActive || l.icon}`,
998
1006
  "app-toggle__icon",
@@ -1001,12 +1009,12 @@ const wt = Z({
1001
1009
  }, null, 2)) : T("", !0)
1002
1010
  ])
1003
1011
  ], 2),
1004
- qe(l.$slots, "default", {}, void 0, !0)
1012
+ re(l.$slots, "default", {}, void 0, !0)
1005
1013
  ]),
1006
- l.label && !l.labelLeft ? (B(), L("span", Mt, W(l.label), 1)) : T("", !0)
1014
+ l.label && !l.labelLeft ? (B(), C("span", At, H(l.label), 1)) : T("", !0)
1007
1015
  ], 2));
1008
1016
  }
1009
- }), tn = /* @__PURE__ */ te(Pt, [["__scopeId", "data-v-e0e56123"]]), At = /* @__PURE__ */ U({
1017
+ }), un = /* @__PURE__ */ X(zt, [["__scopeId", "data-v-e0e56123"]]), Tt = /* @__PURE__ */ F({
1010
1018
  __name: "AppIcon",
1011
1019
  props: {
1012
1020
  name: {},
@@ -1014,37 +1022,37 @@ const wt = Z({
1014
1022
  color: {}
1015
1023
  },
1016
1024
  setup(e) {
1017
- return (t, a) => (B(), L("i", {
1018
- class: z(["icon-kl", `icon-kl-${t.name}`, t.color ? `text-${t.color}` : ""]),
1019
- style: we(t.size ? `font-size: ${t.size}` : void 0)
1025
+ return (t, a) => (B(), C("i", {
1026
+ class: R(["icon-kl", `icon-kl-${t.name}`, t.color ? `text-${t.color}` : ""]),
1027
+ style: ue(t.size ? `font-size: ${t.size}` : void 0)
1020
1028
  }, null, 6));
1021
1029
  }
1022
- }), nn = /* @__PURE__ */ te(At, [["__scopeId", "data-v-941765ee"]]), zt = {
1030
+ }), cn = /* @__PURE__ */ X(Tt, [["__scopeId", "data-v-941765ee"]]), Ot = {
1023
1031
  dark: {
1024
1032
  type: Boolean,
1025
1033
  default: null
1026
1034
  }
1027
1035
  };
1028
- function Tt(e, t) {
1029
- return u(() => e.dark === null ? t.dark.isActive : e.dark);
1036
+ function Dt(e, t) {
1037
+ return c(() => e.dark === null ? t.dark.isActive : e.dark);
1030
1038
  }
1031
- const Ot = {
1039
+ const It = {
1032
1040
  xs: 2,
1033
1041
  sm: 4,
1034
1042
  md: 6,
1035
1043
  lg: 10,
1036
1044
  xl: 14
1037
1045
  };
1038
- function ke(e, t, a) {
1046
+ function qe(e, t, a) {
1039
1047
  return {
1040
1048
  transform: t === !0 ? `translateX(${a.lang.rtl === !0 ? "-" : ""}100%) scale3d(${-e},1,1)` : `scale3d(${e},1,1)`
1041
1049
  };
1042
1050
  }
1043
- const Dt = Z({
1051
+ const jt = ee({
1044
1052
  name: "QLinearProgress",
1045
1053
  props: {
1046
- ...zt,
1047
- ...se,
1054
+ ...Ot,
1055
+ ...de,
1048
1056
  value: {
1049
1057
  type: Number,
1050
1058
  default: 0
@@ -1064,37 +1072,37 @@ const Dt = Z({
1064
1072
  instantFeedback: Boolean
1065
1073
  },
1066
1074
  setup(e, { slots: t }) {
1067
- const { proxy: a } = J(), n = Tt(e, a.$q), o = ue(e, Ot), c = u(() => e.indeterminate === !0 || e.query === !0), l = u(() => e.reverse !== e.query), r = u(() => ({
1075
+ const { proxy: a } = Z(), n = Dt(e, a.$q), o = fe(e, It), r = c(() => e.indeterminate === !0 || e.query === !0), l = c(() => e.reverse !== e.query), s = c(() => ({
1068
1076
  ...o.value !== null ? o.value : {},
1069
1077
  "--q-linear-progress-speed": `${e.animationSpeed}ms`
1070
- })), S = u(
1078
+ })), _ = c(
1071
1079
  () => "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" : "")
1072
- ), y = u(() => ke(e.buffer !== void 0 ? e.buffer : 1, l.value, a.$q)), f = u(() => `with${e.instantFeedback === !0 ? "out" : ""}-transition`), k = u(
1080
+ ), b = c(() => qe(e.buffer !== void 0 ? e.buffer : 1, l.value, a.$q)), f = c(() => `with${e.instantFeedback === !0 ? "out" : ""}-transition`), $ = c(
1073
1081
  () => `q-linear-progress__track absolute-full q-linear-progress__track--${f.value} q-linear-progress__track--${n.value === !0 ? "dark" : "light"}` + (e.trackColor !== void 0 ? ` bg-${e.trackColor}` : "")
1074
- ), d = u(() => ke(c.value === !0 ? 1 : e.value, l.value, a.$q)), q = u(
1075
- () => `q-linear-progress__model absolute-full q-linear-progress__model--${f.value} q-linear-progress__model--${c.value === !0 ? "in" : ""}determinate`
1076
- ), s = u(() => ({ width: `${e.value * 100}%` })), g = u(
1082
+ ), d = c(() => qe(r.value === !0 ? 1 : e.value, l.value, a.$q)), S = c(
1083
+ () => `q-linear-progress__model absolute-full q-linear-progress__model--${f.value} q-linear-progress__model--${r.value === !0 ? "in" : ""}determinate`
1084
+ ), u = c(() => ({ width: `${e.value * 100}%` })), g = c(
1077
1085
  () => `q-linear-progress__stripe absolute-${e.reverse === !0 ? "right" : "left"} q-linear-progress__stripe--${f.value}`
1078
1086
  );
1079
1087
  return () => {
1080
1088
  const v = [
1081
1089
  m("div", {
1082
- class: k.value,
1083
- style: y.value
1090
+ class: $.value,
1091
+ style: b.value
1084
1092
  }),
1085
1093
  m("div", {
1086
- class: q.value,
1094
+ class: S.value,
1087
1095
  style: d.value
1088
1096
  })
1089
1097
  ];
1090
- return e.stripe === !0 && c.value === !1 && v.push(
1098
+ return e.stripe === !0 && r.value === !1 && v.push(
1091
1099
  m("div", {
1092
1100
  class: g.value,
1093
- style: s.value
1101
+ style: u.value
1094
1102
  })
1095
1103
  ), m("div", {
1096
- class: S.value,
1097
- style: r.value,
1104
+ class: _.value,
1105
+ style: s.value,
1098
1106
  role: "progressbar",
1099
1107
  "aria-valuemin": 0,
1100
1108
  "aria-valuemax": 1,
@@ -1105,11 +1113,11 @@ const Dt = Z({
1105
1113
  }), xt = {
1106
1114
  key: 0,
1107
1115
  class: "code-field__label"
1108
- }, jt = { class: "code-field__inputs" }, It = ["onUpdate:modelValue", "disabled", "onInput", "onKeydown", "onPaste"], Vt = /* @__PURE__ */ U({
1116
+ }, Vt = { class: "code-field__inputs" }, Kt = ["onUpdate:modelValue", "disabled", "onInput", "onKeydown", "onPaste"], Nt = /* @__PURE__ */ F({
1109
1117
  __name: "AppCodeInput",
1110
1118
  props: {
1111
1119
  length: { default: 5 },
1112
- size: { default: $.MD },
1120
+ size: { default: k.MD },
1113
1121
  label: {},
1114
1122
  disabled: { type: Boolean },
1115
1123
  loading: { type: Boolean },
@@ -1118,148 +1126,194 @@ const Dt = Z({
1118
1126
  },
1119
1127
  emits: ["update:modelValue", "completed"],
1120
1128
  setup(e, { expose: t, emit: a }) {
1121
- const n = e, o = a, c = X(Array(n.length).fill("")), l = X([]), r = u(() => [
1129
+ const n = e, o = a, r = J(Array(n.length).fill("")), l = J([]), s = c(() => [
1122
1130
  "code-field",
1123
1131
  {
1124
- "code-field_sm": n.size === $.SM,
1125
- "code-field_md": n.size === $.MD,
1126
- "code-field_lg": n.size === $.LG,
1132
+ "code-field_sm": n.size === k.SM,
1133
+ "code-field_md": n.size === k.MD,
1134
+ "code-field_lg": n.size === k.LG,
1127
1135
  "code-field_disabled": n.disabled || n.loading
1128
1136
  },
1129
1137
  `code-field_${n.color}`
1130
- ]), S = u(() => {
1131
- let s = "";
1132
- return n.size == $.SM && (s += `width: ${n.length * 26 + (n.length - 1) * 5}px`), n.size == $.MD && (s += `width: ${n.length * 32 + (n.length - 1) * 8}px`), n.size == $.LG && (s += `width: ${n.length * 44 + (n.length - 1) * 10}px`), s;
1133
- }), y = (s, g) => {
1134
- var _;
1135
- const p = s.target.value;
1138
+ ]), _ = c(() => {
1139
+ let u = "";
1140
+ return n.size == k.SM && (u += `width: ${n.length * 26 + (n.length - 1) * 5}px`), n.size == k.MD && (u += `width: ${n.length * 32 + (n.length - 1) * 8}px`), n.size == k.LG && (u += `width: ${n.length * 44 + (n.length - 1) * 10}px`), u;
1141
+ }), b = (u, g) => {
1142
+ var q;
1143
+ const p = u.target.value;
1136
1144
  if (p.length === 1)
1137
- g < n.length - 1 && l.value && ((_ = l.value[g + 1]) == null || _.focus());
1145
+ g < n.length - 1 && l.value && ((q = l.value[g + 1]) == null || q.focus());
1138
1146
  else if (p.length > 1) {
1139
1147
  const w = p.slice(0, n.length - g).split("");
1140
- w.forEach((C, h) => {
1141
- c.value[g + h] = C;
1142
- }), ce(() => {
1143
- var C;
1144
- l.value && ((C = l.value[Math.min(g + w.length, n.length - 1)]) == null || C.focus());
1148
+ w.forEach((L, h) => {
1149
+ r.value[g + h] = L;
1150
+ }), ve(() => {
1151
+ var L;
1152
+ l.value && ((L = l.value[Math.min(g + w.length, n.length - 1)]) == null || L.focus());
1145
1153
  });
1146
1154
  }
1147
- }, f = (s) => {
1155
+ }, f = (u) => {
1148
1156
  var g;
1149
- c.value[s] === "" && l.value && s > 0 && ((g = l.value[s - 1]) == null || g.focus());
1150
- }, k = (s, g) => {
1151
- var _;
1152
- s.preventDefault();
1153
- const v = ((_ = s.clipboardData) == null ? void 0 : _.getData("text")) ?? "";
1157
+ r.value[u] === "" && l.value && u > 0 && ((g = l.value[u - 1]) == null || g.focus());
1158
+ }, $ = (u, g) => {
1159
+ var q;
1160
+ u.preventDefault();
1161
+ const v = ((q = u.clipboardData) == null ? void 0 : q.getData("text")) ?? "";
1154
1162
  if (!v) return;
1155
1163
  const p = v.slice(0, n.length - g).split("");
1156
- p.forEach((w, C) => {
1157
- c.value[g + C] = w;
1158
- }), ce(() => {
1164
+ p.forEach((w, L) => {
1165
+ r.value[g + L] = w;
1166
+ }), ve(() => {
1159
1167
  var w;
1160
1168
  l.value && ((w = l.value[Math.min(g + p.length, n.length - 1)]) == null || w.focus());
1161
1169
  });
1162
1170
  };
1163
- xe(
1164
- c,
1165
- (s) => {
1166
- const g = s.join("");
1171
+ je(
1172
+ r,
1173
+ (u) => {
1174
+ const g = u.join("");
1167
1175
  d(g);
1168
1176
  },
1169
1177
  { deep: !0 }
1170
1178
  );
1171
- const d = (s) => {
1172
- o("update:modelValue", s), s.length === n.length && !s.includes(" ") && o("completed", s);
1173
- }, q = (s) => {
1174
- s && (c.value = s.split("").slice(0, n.length));
1179
+ const d = (u) => {
1180
+ o("update:modelValue", u), u.length === n.length && !u.includes(" ") && o("completed", u);
1181
+ }, S = (u) => {
1182
+ u && (r.value = u.split("").slice(0, n.length));
1175
1183
  };
1176
- return je(() => {
1184
+ return xe(() => {
1177
1185
  n.autofocus && l.value && l.value[0] && l.value[0].focus();
1178
1186
  }), t({
1179
- injectCode: q
1180
- }), (s, g) => (B(), L("div", {
1181
- class: z(r.value),
1182
- style: we(S.value)
1187
+ injectCode: S
1188
+ }), (u, g) => (B(), C("div", {
1189
+ class: R(s.value),
1190
+ style: ue(_.value)
1183
1191
  }, [
1184
- s.label ? (B(), L("label", xt, W(s.label), 1)) : T("", !0),
1185
- G("div", jt, [
1186
- (B(!0), L(Se, null, Ie(s.length, (v, p) => re((B(), L("input", {
1192
+ u.label ? (B(), C("label", xt, H(u.label), 1)) : T("", !0),
1193
+ D("div", Vt, [
1194
+ (B(!0), C(ie, null, we(u.length, (v, p) => se((B(), C("input", {
1187
1195
  key: p,
1188
- "onUpdate:modelValue": (_) => c.value[p] = _,
1196
+ "onUpdate:modelValue": (q) => r.value[p] = q,
1189
1197
  ref_for: !0,
1190
1198
  ref_key: "inputRefs",
1191
1199
  ref: l,
1192
- type: "text",
1200
+ type: "number",
1193
1201
  maxlength: "1",
1194
1202
  class: "code-field__input",
1195
- disabled: s.disabled || s.loading,
1196
- onInput: (_) => y(_, p),
1197
- onKeydown: Ve((_) => f(p), ["backspace"]),
1198
- onPaste: (_) => k(_, p)
1199
- }, null, 40, It)), [
1200
- [Ne, c.value[p]]
1203
+ disabled: u.disabled || u.loading,
1204
+ onInput: (q) => b(q, p),
1205
+ onKeydown: Ve((q) => f(p), ["backspace"]),
1206
+ onPaste: (q) => $(q, p)
1207
+ }, null, 40, Kt)), [
1208
+ [Ke, r.value[p]]
1201
1209
  ])), 128))
1202
1210
  ]),
1203
- s.loading ? (B(), $e(Dt, {
1211
+ u.loading ? (B(), Be(jt, {
1204
1212
  key: 1,
1205
1213
  indeterminate: "",
1206
1214
  rounded: "",
1207
- color: s.color,
1215
+ color: u.color,
1208
1216
  class: "code-field__loading"
1209
1217
  }, null, 8, ["color"])) : T("", !0)
1210
1218
  ], 6));
1211
1219
  }
1212
- }), an = /* @__PURE__ */ te(Vt, [["__scopeId", "data-v-44914130"]]), ln = ie(
1213
- () => import("./AppButtonCopy-Cpoz6v02.js")
1214
- ), on = ie(
1215
- () => import("./AppSelect-JVVrifzF.js")
1216
- ), rn = ie(
1217
- () => import("./DropdownButton-pcp6W_7i.js")
1220
+ }), dn = /* @__PURE__ */ X(Nt, [["__scopeId", "data-v-8d579e24"]]), Ft = { class: "app-segment__track" }, Qt = { class: "app-segment__buttons" }, Gt = ["onClick", "disabled"], Ut = /* @__PURE__ */ F({
1221
+ __name: "AppSegment",
1222
+ props: /* @__PURE__ */ Ne({
1223
+ options: {},
1224
+ disabled: { type: Boolean },
1225
+ size: { default: k.MD }
1226
+ }, {
1227
+ modelValue: {},
1228
+ modelModifiers: {}
1229
+ }),
1230
+ emits: ["update:modelValue"],
1231
+ setup(e) {
1232
+ const t = Fe(e, "modelValue"), a = e, n = c(
1233
+ () => a.options.findIndex((r) => r.value === t.value)
1234
+ );
1235
+ function o(r) {
1236
+ a.disabled || (t.value = r);
1237
+ }
1238
+ return (r, l) => (B(), C("div", {
1239
+ class: R(["app-segment", [{ "app-segment_disabled": r.disabled }, `app-segment_${r.size}`]])
1240
+ }, [
1241
+ D("div", Ft, [
1242
+ D("div", {
1243
+ class: "app-segment__thumb",
1244
+ style: ue({
1245
+ width: `${100 / r.options.length}%`,
1246
+ transform: `translateX(${n.value * 100}%)`
1247
+ })
1248
+ }, null, 4)
1249
+ ]),
1250
+ D("div", Qt, [
1251
+ (B(!0), C(ie, null, we(r.options, (s, _) => (B(), C("button", {
1252
+ key: _,
1253
+ class: R(["app-segment__btn", { active: t.value === s.value }]),
1254
+ onClick: (b) => o(s.value),
1255
+ disabled: r.disabled
1256
+ }, [
1257
+ re(r.$slots, "option", { option: s }, () => [
1258
+ Ce(H(s.label), 1)
1259
+ ], !0)
1260
+ ], 10, Gt))), 128))
1261
+ ])
1262
+ ], 2));
1263
+ }
1264
+ }), fn = /* @__PURE__ */ X(Ut, [["__scopeId", "data-v-ff56abdf"]]), vn = ce(
1265
+ () => import("./AppButtonCopy-BAsaHaa4.js")
1266
+ ), gn = ce(
1267
+ () => import("./AppSelect-WIENN4a-.js")
1268
+ ), pn = ce(
1269
+ () => import("./DropdownButton-DUUK14vz.js")
1218
1270
  );
1219
1271
  export {
1220
- en as A,
1221
- rt as B,
1222
- Be as C,
1223
- vt as D,
1224
- Xt as E,
1225
- Wt as F,
1226
- Gt as G,
1227
- nt as H,
1228
- at as I,
1229
- rn as J,
1230
- ln as K,
1231
- on as L,
1232
- an as M,
1233
- tn as N,
1234
- nn as O,
1235
- ve as Q,
1236
- ut as R,
1237
- $ as S,
1238
- te as _,
1239
- zt as a,
1240
- Tt as b,
1241
- Z as c,
1242
- ue as d,
1272
+ rn as A,
1273
+ it as B,
1274
+ Le as C,
1275
+ pt as D,
1276
+ an as E,
1277
+ ln as F,
1278
+ Zt as G,
1279
+ lt as H,
1280
+ ot as I,
1281
+ pn as J,
1282
+ vn as K,
1283
+ gn as L,
1284
+ fn as M,
1285
+ dn as N,
1286
+ un as O,
1287
+ cn as P,
1288
+ me as Q,
1289
+ dt as R,
1290
+ k as S,
1291
+ Xt as T,
1292
+ X as _,
1293
+ Ot as a,
1294
+ Dt as b,
1295
+ ee as c,
1296
+ fe as d,
1243
1297
  N as e,
1244
- Jt as f,
1245
- ht as g,
1246
- Qe as h,
1298
+ on as f,
1299
+ yt as g,
1300
+ Ue as h,
1247
1301
  oe as i,
1248
- Kt as j,
1249
- tt as k,
1250
- Qt as l,
1251
- Ft as m,
1252
- ee as n,
1253
- Yt as o,
1254
- lt as p,
1255
- Ut as q,
1256
- Ht as r,
1257
- x as s,
1258
- it as t,
1259
- se as u,
1260
- Re as v,
1261
- $t as w,
1262
- Zt as x,
1302
+ Yt as j,
1303
+ at as k,
1304
+ Jt as l,
1305
+ Wt as m,
1306
+ te as n,
1307
+ nn as o,
1308
+ st as p,
1309
+ en as q,
1310
+ tn as r,
1311
+ j as s,
1312
+ ut as t,
1313
+ de as u,
1314
+ Pe as v,
1315
+ St as w,
1316
+ sn as x,
1263
1317
  wt as y,
1264
- ot as z
1318
+ rt as z
1265
1319
  };