@validol4ik/uikit 0.7.1 → 0.7.4

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