@validol4ik/uikit 0.6.10 → 0.7.1

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