@validol4ik/uikit 0.3.40 → 0.3.42

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,1880 +0,0 @@
1
- import { computed as p, markRaw as Ze, defineComponent as Te, h as k, withDirectives as Je, getCurrentInstance as z, unref as X, ref as _, onBeforeUnmount as F, Transition as et, reactive as Tt, nextTick as re, watch as H, onMounted as tt, onUnmounted as Ct, Teleport as Pt, onDeactivated as nt, openBlock as Y, createBlock as qe, normalizeClass as le, withCtx as Le, createElementBlock as ae, createCommentVNode as oe, renderSlot as qt, Fragment as Lt, createTextVNode as Me, toDisplayString as Re, normalizeStyle as Mt, defineAsyncComponent as ot } from "vue";
2
- const Rt = {
3
- PRIMARY: "primary",
4
- INFO: "info"
5
- }, O = {
6
- SM: "sm",
7
- MD: "md",
8
- LG: "lg"
9
- }, Bt = {
10
- [O.SM]: "3px 9px",
11
- [O.MD]: "5px 12px",
12
- [O.LG]: "9px 20px"
13
- }, ye = {
14
- xs: 18,
15
- sm: 24,
16
- md: 32,
17
- lg: 38,
18
- xl: 46
19
- }, it = {
20
- size: String
21
- };
22
- function lt(e, t = ye) {
23
- return p(() => e.size !== void 0 ? { fontSize: e.size in t ? `${t[e.size]}px` : e.size } : null);
24
- }
25
- function at(e, t, i, n) {
26
- return Object.defineProperty(e, t, {
27
- get: i,
28
- set: n,
29
- enumerable: !0
30
- }), e;
31
- }
32
- function ne(e) {
33
- return Ze(Te(e));
34
- }
35
- function _t(e) {
36
- return Ze(e);
37
- }
38
- function rt(e, t) {
39
- return e !== void 0 && e() || t;
40
- }
41
- function Qn(e, t) {
42
- if (e !== void 0) {
43
- const i = e();
44
- if (i != null)
45
- return i.slice();
46
- }
47
- return t;
48
- }
49
- function Z(e, t) {
50
- return e !== void 0 ? t.concat(e()) : t;
51
- }
52
- function Kn(e, t) {
53
- return e === void 0 ? t : t !== void 0 ? t.concat(e()) : e();
54
- }
55
- function Un(e, t, i, n, o, r) {
56
- t.key = n + o;
57
- const a = k(e, t, i);
58
- return o === !0 ? Je(a, r()) : a;
59
- }
60
- const Be = "0 0 24 24", _e = (e) => e, he = (e) => `ionicons ${e}`, st = {
61
- "mdi-": (e) => `mdi ${e}`,
62
- "icon-": _e,
63
- // fontawesome equiv
64
- "bt-": (e) => `bt ${e}`,
65
- "eva-": (e) => `eva ${e}`,
66
- "ion-md": he,
67
- "ion-ios": he,
68
- "ion-logo": he,
69
- "iconfont ": _e,
70
- "ti-": (e) => `themify-icon ${e}`,
71
- "bi-": (e) => `bootstrap-icons ${e}`
72
- }, ut = {
73
- o_: "-outlined",
74
- r_: "-round",
75
- s_: "-sharp"
76
- }, ct = {
77
- sym_o_: "-outlined",
78
- sym_r_: "-rounded",
79
- sym_s_: "-sharp"
80
- }, Ot = new RegExp("^(" + Object.keys(st).join("|") + ")"), Ht = new RegExp("^(" + Object.keys(ut).join("|") + ")"), Oe = new RegExp("^(" + Object.keys(ct).join("|") + ")"), zt = /^[Mm]\s?[-+]?\.?\d/, jt = /^img:/, Wt = /^svguse:/, At = /^ion-/, Dt = /^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /, He = ne({
81
- name: "QIcon",
82
- props: {
83
- ...it,
84
- tag: {
85
- type: String,
86
- default: "i"
87
- },
88
- name: String,
89
- color: String,
90
- left: Boolean,
91
- right: Boolean
92
- },
93
- setup(e, { slots: t }) {
94
- const { proxy: { $q: i } } = z(), n = lt(e), o = p(
95
- () => "q-icon" + (e.left === !0 ? " on-left" : "") + (e.right === !0 ? " on-right" : "") + (e.color !== void 0 ? ` text-${e.color}` : "")
96
- ), r = p(() => {
97
- let a, l = e.name;
98
- if (l === "none" || !l)
99
- return { none: !0 };
100
- if (i.iconMapFn !== null) {
101
- const u = i.iconMapFn(l);
102
- if (u !== void 0)
103
- if (u.icon !== void 0) {
104
- if (l = u.icon, l === "none" || !l)
105
- return { none: !0 };
106
- } else
107
- return {
108
- cls: u.cls,
109
- content: u.content !== void 0 ? u.content : " "
110
- };
111
- }
112
- if (zt.test(l) === !0) {
113
- const [u, y = Be] = l.split("|");
114
- return {
115
- svg: !0,
116
- viewBox: y,
117
- nodes: u.split("&&").map((c) => {
118
- const [s, d, x] = c.split("@@");
119
- return k("path", { style: d, d: s, transform: x });
120
- })
121
- };
122
- }
123
- if (jt.test(l) === !0)
124
- return {
125
- img: !0,
126
- src: l.substring(4)
127
- };
128
- if (Wt.test(l) === !0) {
129
- const [u, y = Be] = l.split("|");
130
- return {
131
- svguse: !0,
132
- src: u.substring(7),
133
- viewBox: y
134
- };
135
- }
136
- let m = " ";
137
- const f = l.match(Ot);
138
- if (f !== null)
139
- a = st[f[1]](l);
140
- else if (Dt.test(l) === !0)
141
- a = l;
142
- else if (At.test(l) === !0)
143
- a = `ionicons ion-${i.platform.is.ios === !0 ? "ios" : "md"}${l.substring(3)}`;
144
- else if (Oe.test(l) === !0) {
145
- a = "notranslate material-symbols";
146
- const u = l.match(Oe);
147
- u !== null && (l = l.substring(6), a += ct[u[1]]), m = l;
148
- } else {
149
- a = "notranslate material-icons";
150
- const u = l.match(Ht);
151
- u !== null && (l = l.substring(2), a += ut[u[1]]), m = l;
152
- }
153
- return {
154
- cls: a,
155
- content: m
156
- };
157
- });
158
- return () => {
159
- const a = {
160
- class: o.value,
161
- style: n.value,
162
- "aria-hidden": "true",
163
- role: "presentation"
164
- };
165
- return r.value.none === !0 ? k(e.tag, a, rt(t.default)) : r.value.img === !0 ? k(e.tag, a, Z(t.default, [
166
- k("img", { src: r.value.src })
167
- ])) : r.value.svg === !0 ? k(e.tag, a, Z(t.default, [
168
- k("svg", {
169
- viewBox: r.value.viewBox || "0 0 24 24"
170
- }, r.value.nodes)
171
- ])) : r.value.svguse === !0 ? k(e.tag, a, Z(t.default, [
172
- k("svg", {
173
- viewBox: r.value.viewBox
174
- }, [
175
- k("use", { "xlink:href": r.value.src })
176
- ])
177
- ])) : (r.value.cls !== void 0 && (a.class += " " + r.value.cls), k(e.tag, a, Z(t.default, [
178
- r.value.content
179
- ])));
180
- };
181
- }
182
- }), Nt = {
183
- size: {
184
- type: [String, Number],
185
- default: "1em"
186
- },
187
- color: String
188
- };
189
- function Vt(e) {
190
- return {
191
- cSize: p(() => e.size in ye ? `${ye[e.size]}px` : e.size),
192
- classes: p(
193
- () => "q-spinner" + (e.color ? ` text-${e.color}` : "")
194
- )
195
- };
196
- }
197
- const It = ne({
198
- name: "QSpinner",
199
- props: {
200
- ...Nt,
201
- thickness: {
202
- type: Number,
203
- default: 5
204
- }
205
- },
206
- setup(e) {
207
- const { cSize: t, classes: i } = Vt(e);
208
- return () => k("svg", {
209
- class: i.value + " q-spinner-mat",
210
- width: t.value,
211
- height: t.value,
212
- viewBox: "25 25 50 50"
213
- }, [
214
- k("circle", {
215
- class: "path",
216
- cx: "50",
217
- cy: "50",
218
- r: "20",
219
- fill: "none",
220
- stroke: "currentColor",
221
- "stroke-width": e.thickness,
222
- "stroke-miterlimit": "10"
223
- })
224
- ]);
225
- }
226
- });
227
- function we(e, t) {
228
- const i = e.style;
229
- for (const n in t)
230
- i[n] = t[n];
231
- }
232
- function Ft(e) {
233
- if (e == null)
234
- return;
235
- if (typeof e == "string")
236
- try {
237
- return document.querySelector(e) || void 0;
238
- } catch {
239
- return;
240
- }
241
- const t = X(e);
242
- if (t)
243
- return t.$el || t;
244
- }
245
- function Gn(e, t) {
246
- if (e == null || e.contains(t) === !0)
247
- return !0;
248
- for (let i = e.nextElementSibling; i !== null; i = i.nextElementSibling)
249
- if (i.contains(t))
250
- return !0;
251
- return !1;
252
- }
253
- const Q = {
254
- hasPassive: !1,
255
- passiveCapture: !0,
256
- notPassiveCapture: !0
257
- };
258
- try {
259
- const e = Object.defineProperty({}, "passive", {
260
- get() {
261
- Object.assign(Q, {
262
- hasPassive: !0,
263
- passive: { passive: !0 },
264
- notPassive: { passive: !1 },
265
- passiveCapture: { passive: !0, capture: !0 },
266
- notPassiveCapture: { passive: !1, capture: !0 }
267
- });
268
- }
269
- });
270
- window.addEventListener("qtest", null, e), window.removeEventListener("qtest", null, e);
271
- } catch {
272
- }
273
- function Yn() {
274
- }
275
- function Qt(e) {
276
- 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]), {
277
- top: e.clientY,
278
- left: e.clientX
279
- };
280
- }
281
- function Xn(e) {
282
- if (e.path)
283
- return e.path;
284
- if (e.composedPath)
285
- return e.composedPath();
286
- const t = [];
287
- let i = e.target;
288
- for (; i; ) {
289
- if (t.push(i), i.tagName === "HTML")
290
- return t.push(document), t.push(window), t;
291
- i = i.parentElement;
292
- }
293
- }
294
- function dt(e) {
295
- e.stopPropagation();
296
- }
297
- function ke(e) {
298
- e.cancelable !== !1 && e.preventDefault();
299
- }
300
- function N(e) {
301
- e.cancelable !== !1 && e.preventDefault(), e.stopPropagation();
302
- }
303
- function ee(e, t, i) {
304
- const n = `__q_${t}_evt`;
305
- e[n] = e[n] !== void 0 ? e[n].concat(i) : i, i.forEach((o) => {
306
- o[0].addEventListener(o[1], e[o[2]], Q[o[3]]);
307
- });
308
- }
309
- function se(e, t) {
310
- const i = `__q_${t}_evt`;
311
- e[i] !== void 0 && (e[i].forEach((n) => {
312
- n[0].removeEventListener(n[1], e[n[2]], Q[n[3]]);
313
- }), e[i] = void 0);
314
- }
315
- function Kt(e) {
316
- return e !== Object(e) || e.isComposing === !0 || e.qKeyEvent === !0;
317
- }
318
- function ue(e, t) {
319
- return Kt(e) === !0 ? !1 : [].concat(t).includes(e.keyCode);
320
- }
321
- function Ut(e, t = 250) {
322
- let i = !1, n;
323
- return function() {
324
- return i === !1 && (i = !0, setTimeout(() => {
325
- i = !1;
326
- }, t), n = e.apply(this, arguments)), n;
327
- };
328
- }
329
- function ze(e, t, i, n) {
330
- i.modifiers.stop === !0 && dt(e);
331
- const o = i.modifiers.color;
332
- let r = i.modifiers.center;
333
- r = r === !0 || n === !0;
334
- const a = document.createElement("span"), l = document.createElement("span"), m = Qt(e), { left: f, top: u, width: y, height: c } = t.getBoundingClientRect(), s = Math.sqrt(y * y + c * c), d = s / 2, x = `${(y - s) / 2}px`, g = r ? x : `${m.left - f - d}px`, $ = `${(c - s) / 2}px`, b = r ? $ : `${m.top - u - d}px`;
335
- l.className = "q-ripple__inner", we(l, {
336
- height: `${s}px`,
337
- width: `${s}px`,
338
- transform: `translate3d(${g},${b},0) scale3d(.2,.2,1)`,
339
- opacity: 0
340
- }), a.className = `q-ripple${o ? " text-" + o : ""}`, a.setAttribute("dir", "ltr"), a.appendChild(l), t.appendChild(a);
341
- const w = () => {
342
- a.remove(), clearTimeout(q);
343
- };
344
- i.abort.push(w);
345
- let q = setTimeout(() => {
346
- l.classList.add("q-ripple__inner--enter"), l.style.transform = `translate3d(${x},${$},0) scale3d(1,1,1)`, l.style.opacity = 0.2, q = setTimeout(() => {
347
- l.classList.remove("q-ripple__inner--enter"), l.classList.add("q-ripple__inner--leave"), l.style.opacity = 0, q = setTimeout(() => {
348
- a.remove(), i.abort.splice(i.abort.indexOf(w), 1);
349
- }, 275);
350
- }, 250);
351
- }, 50);
352
- }
353
- function je(e, { modifiers: t, value: i, arg: n }) {
354
- const o = Object.assign({}, e.cfg.ripple, t, i);
355
- e.modifiers = {
356
- early: o.early === !0,
357
- stop: o.stop === !0,
358
- center: o.center === !0,
359
- color: o.color || n,
360
- keyCodes: [].concat(o.keyCodes || 13)
361
- };
362
- }
363
- const Gt = _t(
364
- {
365
- name: "ripple",
366
- beforeMount(e, t) {
367
- const i = t.instance.$.appContext.config.globalProperties.$q.config || {};
368
- if (i.ripple === !1)
369
- return;
370
- const n = {
371
- cfg: i,
372
- enabled: t.value !== !1,
373
- modifiers: {},
374
- abort: [],
375
- start(o) {
376
- n.enabled === !0 && o.qSkipRipple !== !0 && o.type === (n.modifiers.early === !0 ? "pointerdown" : "click") && ze(o, e, n, o.qKeyEvent === !0);
377
- },
378
- keystart: Ut((o) => {
379
- n.enabled === !0 && o.qSkipRipple !== !0 && ue(o, n.modifiers.keyCodes) === !0 && o.type === `key${n.modifiers.early === !0 ? "down" : "up"}` && ze(o, e, n, !0);
380
- }, 300)
381
- };
382
- je(n, t), e.__qripple = n, ee(n, "main", [
383
- [e, "pointerdown", "start", "passive"],
384
- [e, "click", "start", "passive"],
385
- [e, "keydown", "keystart", "passive"],
386
- [e, "keyup", "keystart", "passive"]
387
- ]);
388
- },
389
- updated(e, t) {
390
- if (t.oldValue !== t.value) {
391
- const i = e.__qripple;
392
- i !== void 0 && (i.enabled = t.value !== !1, i.enabled === !0 && Object(t.value) === t.value && je(i, t));
393
- }
394
- },
395
- beforeUnmount(e) {
396
- const t = e.__qripple;
397
- t !== void 0 && (t.abort.forEach((i) => {
398
- i();
399
- }), se(t, "main"), delete e._qripple);
400
- }
401
- }
402
- ), ft = {
403
- left: "start",
404
- center: "center",
405
- right: "end",
406
- between: "between",
407
- around: "around",
408
- evenly: "evenly",
409
- stretch: "stretch"
410
- }, Yt = Object.keys(ft), Xt = {
411
- align: {
412
- type: String,
413
- validator: (e) => Yt.includes(e)
414
- }
415
- };
416
- function Zt(e) {
417
- return p(() => {
418
- const t = e.align === void 0 ? e.vertical === !0 ? "stretch" : "left" : e.align;
419
- return `${e.vertical === !0 ? "items" : "justify"}-${ft[t]}`;
420
- });
421
- }
422
- function pe(e) {
423
- if (Object(e.$parent) === e.$parent)
424
- return e.$parent;
425
- let { parent: t } = e.$;
426
- for (; Object(t) === t; ) {
427
- if (Object(t.proxy) === t.proxy)
428
- return t.proxy;
429
- t = t.parent;
430
- }
431
- }
432
- function vt(e) {
433
- return e.appContext.config.globalProperties.$router !== void 0;
434
- }
435
- function mt(e) {
436
- return e.isUnmounted === !0 || e.isDeactivated === !0;
437
- }
438
- function We(e) {
439
- return e ? e.aliasOf ? e.aliasOf.path : e.path : "";
440
- }
441
- function Ae(e, t) {
442
- return (e.aliasOf || e) === (t.aliasOf || t);
443
- }
444
- function Jt(e, t) {
445
- for (const i in t) {
446
- const n = t[i], o = e[i];
447
- if (typeof n == "string") {
448
- if (n !== o)
449
- return !1;
450
- } else if (Array.isArray(o) === !1 || o.length !== n.length || n.some((r, a) => r !== o[a]))
451
- return !1;
452
- }
453
- return !0;
454
- }
455
- function De(e, t) {
456
- return Array.isArray(t) === !0 ? e.length === t.length && e.every((i, n) => i === t[n]) : e.length === 1 && e[0] === t;
457
- }
458
- function en(e, t) {
459
- return Array.isArray(e) === !0 ? De(e, t) : Array.isArray(t) === !0 ? De(t, e) : e === t;
460
- }
461
- function tn(e, t) {
462
- if (Object.keys(e).length !== Object.keys(t).length)
463
- return !1;
464
- for (const i in e)
465
- if (en(e[i], t[i]) === !1)
466
- return !1;
467
- return !0;
468
- }
469
- const ht = {
470
- // router-link
471
- to: [String, Object],
472
- replace: Boolean,
473
- // regular <a> link
474
- href: String,
475
- target: String,
476
- // state
477
- disable: Boolean
478
- }, Zn = {
479
- ...ht,
480
- // router-link
481
- exact: Boolean,
482
- activeClass: {
483
- type: String,
484
- default: "q-router-link--active"
485
- },
486
- exactActiveClass: {
487
- type: String,
488
- default: "q-router-link--exact-active"
489
- }
490
- };
491
- function nn({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
492
- const i = z(), { props: n, proxy: o, emit: r } = i, a = vt(i), l = p(() => n.disable !== !0 && n.href !== void 0), m = t === !0 ? p(
493
- () => a === !0 && n.disable !== !0 && l.value !== !0 && n.to !== void 0 && n.to !== null && n.to !== ""
494
- ) : p(
495
- () => a === !0 && l.value !== !0 && n.to !== void 0 && n.to !== null && n.to !== ""
496
- ), f = p(() => m.value === !0 ? b(n.to) : null), u = p(() => f.value !== null), y = p(() => l.value === !0 || u.value === !0), c = p(() => n.type === "a" || y.value === !0 ? "a" : n.tag || e || "div"), s = p(() => l.value === !0 ? {
497
- href: n.href,
498
- target: n.target
499
- } : u.value === !0 ? {
500
- href: f.value.href,
501
- target: n.target
502
- } : {}), d = p(() => {
503
- if (u.value === !1)
504
- return -1;
505
- const { matched: h } = f.value, { length: T } = h, E = h[T - 1];
506
- if (E === void 0)
507
- return -1;
508
- const C = o.$route.matched;
509
- if (C.length === 0)
510
- return -1;
511
- const P = C.findIndex(
512
- Ae.bind(null, E)
513
- );
514
- if (P !== -1)
515
- return P;
516
- const j = We(h[T - 2]);
517
- return (
518
- // we are dealing with nested routes
519
- T > 1 && We(E) === j && C[C.length - 1].path !== j ? C.findIndex(
520
- Ae.bind(null, h[T - 2])
521
- ) : P
522
- );
523
- }), x = p(
524
- () => u.value === !0 && d.value !== -1 && Jt(o.$route.params, f.value.params)
525
- ), g = p(
526
- () => x.value === !0 && d.value === o.$route.matched.length - 1 && tn(o.$route.params, f.value.params)
527
- ), $ = p(() => u.value === !0 ? g.value === !0 ? ` ${n.exactActiveClass} ${n.activeClass}` : n.exact === !0 ? "" : x.value === !0 ? ` ${n.activeClass}` : "" : "");
528
- function b(h) {
529
- try {
530
- return o.$router.resolve(h);
531
- } catch {
532
- }
533
- return null;
534
- }
535
- function w(h, { returnRouterError: T, to: E = n.to, replace: C = n.replace } = {}) {
536
- if (n.disable === !0)
537
- return h.preventDefault(), Promise.resolve(!1);
538
- if (
539
- // don't redirect with control keys;
540
- // should match RouterLink from Vue Router
541
- h.metaKey || h.altKey || h.ctrlKey || h.shiftKey || h.button !== void 0 && h.button !== 0 || n.target === "_blank"
542
- )
543
- return Promise.resolve(!1);
544
- h.preventDefault();
545
- const P = o.$router[C === !0 ? "replace" : "push"](E);
546
- return T === !0 ? P : P.then(() => {
547
- }).catch(() => {
548
- });
549
- }
550
- function q(h) {
551
- if (u.value === !0) {
552
- const T = (E) => w(h, E);
553
- r("click", h, T), h.defaultPrevented !== !0 && T();
554
- } else
555
- r("click", h);
556
- }
557
- return {
558
- hasRouterLink: u,
559
- hasHrefLink: l,
560
- hasLink: y,
561
- linkTag: c,
562
- resolvedLink: f,
563
- linkIsActive: x,
564
- linkIsExactActive: g,
565
- linkClass: $,
566
- linkAttrs: s,
567
- getLink: b,
568
- navigateToRouterLink: w,
569
- navigateOnClick: q
570
- };
571
- }
572
- const Ne = {
573
- none: 0,
574
- xs: 4,
575
- sm: 8,
576
- md: 16,
577
- lg: 24,
578
- xl: 32
579
- }, on = {
580
- xs: 8,
581
- sm: 10,
582
- md: 14,
583
- lg: 20,
584
- xl: 24
585
- }, ln = ["button", "submit", "reset"], an = /[^\s]\/[^\s]/, rn = ["flat", "outline", "push", "unelevated"];
586
- function sn(e, t) {
587
- return e.flat === !0 ? "flat" : e.outline === !0 ? "outline" : e.push === !0 ? "push" : e.unelevated === !0 ? "unelevated" : t;
588
- }
589
- const un = {
590
- ...it,
591
- ...ht,
592
- type: {
593
- type: String,
594
- default: "button"
595
- },
596
- label: [Number, String],
597
- icon: String,
598
- iconRight: String,
599
- ...rn.reduce(
600
- (e, t) => (e[t] = Boolean) && e,
601
- {}
602
- ),
603
- square: Boolean,
604
- rounded: Boolean,
605
- glossy: Boolean,
606
- size: String,
607
- fab: Boolean,
608
- fabMini: Boolean,
609
- padding: String,
610
- color: String,
611
- textColor: String,
612
- noCaps: Boolean,
613
- noWrap: Boolean,
614
- dense: Boolean,
615
- tabindex: [Number, String],
616
- ripple: {
617
- type: [Boolean, Object],
618
- default: !0
619
- },
620
- align: {
621
- ...Xt.align,
622
- default: "center"
623
- },
624
- stack: Boolean,
625
- stretch: Boolean,
626
- loading: {
627
- type: Boolean,
628
- default: null
629
- },
630
- disable: Boolean
631
- }, cn = {
632
- ...un,
633
- round: Boolean
634
- };
635
- function dn(e) {
636
- const t = lt(e, on), i = Zt(e), { hasRouterLink: n, hasLink: o, linkTag: r, linkAttrs: a, navigateOnClick: l } = nn({
637
- fallbackTag: "button"
638
- }), m = p(() => {
639
- const g = e.fab === !1 && e.fabMini === !1 ? t.value : {};
640
- return e.padding !== void 0 ? Object.assign({}, g, {
641
- padding: e.padding.split(/\s+/).map(($) => $ in Ne ? Ne[$] + "px" : $).join(" "),
642
- minWidth: "0",
643
- minHeight: "0"
644
- }) : g;
645
- }), f = p(
646
- () => e.rounded === !0 || e.fab === !0 || e.fabMini === !0
647
- ), u = p(
648
- () => e.disable !== !0 && e.loading !== !0
649
- ), y = p(() => u.value === !0 ? e.tabindex || 0 : -1), c = p(() => sn(e, "standard")), s = p(() => {
650
- const g = { tabindex: y.value };
651
- return o.value === !0 ? Object.assign(g, a.value) : ln.includes(e.type) === !0 && (g.type = e.type), r.value === "a" ? (e.disable === !0 ? g["aria-disabled"] = "true" : g.href === void 0 && (g.role = "button"), n.value !== !0 && an.test(e.type) === !0 && (g.type = e.type)) : e.disable === !0 && (g.disabled = "", g["aria-disabled"] = "true"), e.loading === !0 && e.percentage !== void 0 && Object.assign(g, {
652
- role: "progressbar",
653
- "aria-valuemin": 0,
654
- "aria-valuemax": 100,
655
- "aria-valuenow": e.percentage
656
- }), g;
657
- }), d = p(() => {
658
- let g;
659
- e.color !== void 0 ? e.flat === !0 || e.outline === !0 ? g = `text-${e.textColor || e.color}` : g = `bg-${e.color} text-${e.textColor || "white"}` : e.textColor && (g = `text-${e.textColor}`);
660
- const $ = e.round === !0 ? "round" : `rectangle${f.value === !0 ? " q-btn--rounded" : e.square === !0 ? " q-btn--square" : ""}`;
661
- return `q-btn--${c.value} q-btn--${$}` + (g !== void 0 ? " " + g : "") + (u.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" : "");
662
- }), x = p(
663
- () => i.value + (e.stack === !0 ? " column" : " row") + (e.noWrap === !0 ? " no-wrap text-no-wrap" : "") + (e.loading === !0 ? " q-btn__content--hidden" : "")
664
- );
665
- return {
666
- classes: d,
667
- style: m,
668
- innerClasses: x,
669
- attributes: s,
670
- hasLink: o,
671
- linkTag: r,
672
- navigateOnClick: l,
673
- isActionable: u
674
- };
675
- }
676
- const { passiveCapture: R } = Q;
677
- let K = null, U = null, G = null;
678
- const fn = ne({
679
- name: "QBtn",
680
- props: {
681
- ...cn,
682
- percentage: Number,
683
- darkPercentage: Boolean,
684
- onTouchstart: [Function, Array]
685
- },
686
- emits: ["click", "keydown", "mousedown", "keyup"],
687
- setup(e, { slots: t, emit: i }) {
688
- const { proxy: n } = z(), {
689
- classes: o,
690
- style: r,
691
- innerClasses: a,
692
- attributes: l,
693
- hasLink: m,
694
- linkTag: f,
695
- navigateOnClick: u,
696
- isActionable: y
697
- } = dn(e), c = _(null), s = _(null);
698
- let d = null, x, g = null;
699
- const $ = p(
700
- () => e.label !== void 0 && e.label !== null && e.label !== ""
701
- ), b = p(() => e.disable === !0 || e.ripple === !1 ? !1 : {
702
- keyCodes: m.value === !0 ? [13, 32] : [13],
703
- ...e.ripple === !0 ? {} : e.ripple
704
- }), w = p(() => ({ center: e.round })), q = p(() => {
705
- const v = Math.max(0, Math.min(100, e.percentage));
706
- return v > 0 ? { transition: "transform 0.6s", transform: `translateX(${v - 100}%)` } : {};
707
- }), h = p(() => {
708
- if (e.loading === !0)
709
- return {
710
- onMousedown: A,
711
- onTouchstart: A,
712
- onClick: A,
713
- onKeydown: A,
714
- onKeyup: A
715
- };
716
- if (y.value === !0) {
717
- const v = {
718
- onClick: E,
719
- onKeydown: C,
720
- onMousedown: j
721
- };
722
- if (n.$q.platform.has.touch === !0) {
723
- const S = e.onTouchstart !== void 0 ? "" : "Passive";
724
- v[`onTouchstart${S}`] = P;
725
- }
726
- return v;
727
- }
728
- return {
729
- // needed; especially for disabled <a> tags
730
- onClick: N
731
- };
732
- }), T = p(() => ({
733
- ref: c,
734
- class: "q-btn q-btn-item non-selectable no-outline " + o.value,
735
- style: r.value,
736
- ...l.value,
737
- ...h.value
738
- }));
739
- function E(v) {
740
- if (c.value !== null) {
741
- if (v !== void 0) {
742
- if (v.defaultPrevented === !0)
743
- return;
744
- const S = document.activeElement;
745
- if (e.type === "submit" && S !== document.body && c.value.contains(S) === !1 && S.contains(c.value) === !1) {
746
- c.value.focus();
747
- const B = () => {
748
- document.removeEventListener("keydown", N, !0), document.removeEventListener("keyup", B, R), c.value !== null && c.value.removeEventListener("blur", B, R);
749
- };
750
- document.addEventListener("keydown", N, !0), document.addEventListener("keyup", B, R), c.value.addEventListener("blur", B, R);
751
- }
752
- }
753
- u(v);
754
- }
755
- }
756
- function C(v) {
757
- c.value !== null && (i("keydown", v), ue(v, [13, 32]) === !0 && U !== c.value && (U !== null && W(), v.defaultPrevented !== !0 && (c.value.focus(), U = c.value, c.value.classList.add("q-btn--active"), document.addEventListener("keyup", M, !0), c.value.addEventListener("blur", M, R)), N(v)));
758
- }
759
- function P(v) {
760
- c.value !== null && (i("touchstart", v), v.defaultPrevented !== !0 && (K !== c.value && (K !== null && W(), K = c.value, d = v.target, d.addEventListener("touchcancel", M, R), d.addEventListener("touchend", M, R)), x = !0, g !== null && clearTimeout(g), g = setTimeout(() => {
761
- g = null, x = !1;
762
- }, 200)));
763
- }
764
- function j(v) {
765
- c.value !== null && (v.qSkipRipple = x === !0, i("mousedown", v), v.defaultPrevented !== !0 && G !== c.value && (G !== null && W(), G = c.value, c.value.classList.add("q-btn--active"), document.addEventListener("mouseup", M, R)));
766
- }
767
- function M(v) {
768
- if (c.value !== null && !(v !== void 0 && v.type === "blur" && document.activeElement === c.value)) {
769
- if (v !== void 0 && v.type === "keyup") {
770
- if (U === c.value && ue(v, [13, 32]) === !0) {
771
- const S = new MouseEvent("click", v);
772
- S.qKeyEvent = !0, v.defaultPrevented === !0 && ke(S), v.cancelBubble === !0 && dt(S), c.value.dispatchEvent(S), N(v), v.qKeyEvent = !0;
773
- }
774
- i("keyup", v);
775
- }
776
- W();
777
- }
778
- }
779
- function W(v) {
780
- const S = s.value;
781
- v !== !0 && (K === c.value || G === c.value) && S !== null && S !== document.activeElement && (S.setAttribute("tabindex", -1), S.focus()), K === c.value && (d !== null && (d.removeEventListener("touchcancel", M, R), d.removeEventListener("touchend", M, R)), K = d = null), G === c.value && (document.removeEventListener("mouseup", M, R), G = null), U === c.value && (document.removeEventListener("keyup", M, !0), c.value !== null && c.value.removeEventListener("blur", M, R), U = null), c.value !== null && c.value.classList.remove("q-btn--active");
782
- }
783
- function A(v) {
784
- N(v), v.qSkipRipple = !0;
785
- }
786
- return F(() => {
787
- W(!0);
788
- }), Object.assign(n, {
789
- click: (v) => {
790
- y.value === !0 && E(v);
791
- }
792
- }), () => {
793
- let v = [];
794
- e.icon !== void 0 && v.push(
795
- k(He, {
796
- name: e.icon,
797
- left: e.stack !== !0 && $.value === !0,
798
- role: "img"
799
- })
800
- ), $.value === !0 && v.push(
801
- k("span", { class: "block" }, [e.label])
802
- ), v = Z(t.default, v), e.iconRight !== void 0 && e.round === !1 && v.push(
803
- k(He, {
804
- name: e.iconRight,
805
- right: e.stack !== !0 && $.value === !0,
806
- role: "img"
807
- })
808
- );
809
- const S = [
810
- k("span", {
811
- class: "q-focus-helper",
812
- ref: s
813
- })
814
- ];
815
- return e.loading === !0 && e.percentage !== void 0 && S.push(
816
- k("span", {
817
- class: "q-btn__progress absolute-full overflow-hidden" + (e.darkPercentage === !0 ? " q-btn__progress--dark" : "")
818
- }, [
819
- k("span", {
820
- class: "q-btn__progress-indicator fit block",
821
- style: q.value
822
- })
823
- ])
824
- ), S.push(
825
- k("span", {
826
- class: "q-btn__content text-center col items-center q-anchor--skip " + a.value
827
- }, v)
828
- ), e.loading !== null && S.push(
829
- k(et, {
830
- name: "q-transition--fade"
831
- }, () => e.loading === !0 ? [
832
- k("span", {
833
- key: "loading",
834
- class: "absolute-full flex flex-center"
835
- }, t.loading !== void 0 ? t.loading() : [k(It)])
836
- ] : null)
837
- ), Je(
838
- k(
839
- f.value,
840
- T.value,
841
- S
842
- ),
843
- [[
844
- Gt,
845
- b.value,
846
- void 0,
847
- w.value
848
- ]]
849
- );
850
- };
851
- }
852
- }), ce = _(
853
- !1
854
- );
855
- let xe;
856
- function vn(e, t) {
857
- const i = /(edg|edge|edga|edgios)\/([\w.]+)/.exec(e) || /(opr)[\/]([\w.]+)/.exec(e) || /(vivaldi)[\/]([\w.]+)/.exec(e) || /(chrome|crios)[\/]([\w.]+)/.exec(e) || /(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e) || /(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e) || /(firefox|fxios)[\/]([\w.]+)/.exec(e) || /(webkit)[\/]([\w.]+)/.exec(e) || /(opera)(?:.*version|)[\/]([\w.]+)/.exec(e) || [];
858
- return {
859
- browser: i[5] || i[3] || i[1] || "",
860
- version: i[4] || i[2] || "0",
861
- platform: t[0] || ""
862
- };
863
- }
864
- function mn(e) {
865
- return /(ipad)/.exec(e) || /(ipod)/.exec(e) || /(windows phone)/.exec(e) || /(iphone)/.exec(e) || /(kindle)/.exec(e) || /(silk)/.exec(e) || /(android)/.exec(e) || /(win)/.exec(e) || /(mac)/.exec(e) || /(linux)/.exec(e) || /(cros)/.exec(e) || /(playbook)/.exec(e) || /(bb)/.exec(e) || /(blackberry)/.exec(e) || [];
866
- }
867
- const pt = "ontouchstart" in window || window.navigator.maxTouchPoints > 0;
868
- function hn(e) {
869
- const t = e.toLowerCase(), i = mn(t), n = vn(t, i), o = {
870
- mobile: !1,
871
- desktop: !1,
872
- cordova: !1,
873
- capacitor: !1,
874
- nativeMobile: !1,
875
- // nativeMobileWrapper: void 0,
876
- electron: !1,
877
- bex: !1,
878
- linux: !1,
879
- mac: !1,
880
- win: !1,
881
- cros: !1,
882
- chrome: !1,
883
- firefox: !1,
884
- opera: !1,
885
- safari: !1,
886
- vivaldi: !1,
887
- edge: !1,
888
- edgeChromium: !1,
889
- ie: !1,
890
- webkit: !1,
891
- android: !1,
892
- ios: !1,
893
- ipad: !1,
894
- iphone: !1,
895
- ipod: !1,
896
- kindle: !1,
897
- winphone: !1,
898
- blackberry: !1,
899
- playbook: !1,
900
- silk: !1
901
- };
902
- n.browser && (o[n.browser] = !0, o.version = n.version, o.versionNumber = parseInt(n.version, 10)), n.platform && (o[n.platform] = !0);
903
- const r = o.android || o.ios || o.bb || o.blackberry || o.ipad || o.iphone || o.ipod || o.kindle || o.playbook || o.silk || o["windows phone"];
904
- if (r === !0 || t.indexOf("mobile") !== -1 ? o.mobile = !0 : o.desktop = !0, o["windows phone"] && (o.winphone = !0, delete o["windows phone"]), o.edga || o.edgios || o.edg ? (o.edge = !0, n.browser = "edge") : o.crios ? (o.chrome = !0, n.browser = "chrome") : o.fxios && (o.firefox = !0, n.browser = "firefox"), (o.ipod || o.ipad || o.iphone) && (o.ios = !0), o.vivaldi && (n.browser = "vivaldi", o.vivaldi = !0), // Chrome, Opera 15+, Vivaldi and Safari are webkit based browsers
905
- (o.chrome || o.opr || o.safari || o.vivaldi || o.mobile === !0 && o.ios !== !0 && r !== !0) && (o.webkit = !0), o.opr && (n.browser = "opera", o.opera = !0), o.safari && (o.blackberry || o.bb ? (n.browser = "blackberry", o.blackberry = !0) : o.playbook ? (n.browser = "playbook", o.playbook = !0) : o.android ? (n.browser = "android", o.android = !0) : o.kindle ? (n.browser = "kindle", o.kindle = !0) : o.silk && (n.browser = "silk", o.silk = !0)), o.name = n.browser, o.platform = n.platform, t.indexOf("electron") !== -1)
906
- o.electron = !0;
907
- else if (document.location.href.indexOf("-extension://") !== -1)
908
- o.bex = !0;
909
- else {
910
- if (window.Capacitor !== void 0 ? (o.capacitor = !0, o.nativeMobile = !0, o.nativeMobileWrapper = "capacitor") : (window._cordovaNative !== void 0 || window.cordova !== void 0) && (o.cordova = !0, o.nativeMobile = !0, o.nativeMobileWrapper = "cordova"), ce.value === !0 && (xe = { is: { ...o } }), pt === !0 && o.mac === !0 && (o.desktop === !0 && o.safari === !0 || o.nativeMobile === !0 && o.android !== !0 && o.ios !== !0 && o.ipad !== !0)) {
911
- delete o.mac, delete o.desktop;
912
- const a = Math.min(window.innerHeight, window.innerWidth) > 414 ? "ipad" : "iphone";
913
- Object.assign(o, {
914
- mobile: !0,
915
- ios: !0,
916
- platform: a,
917
- [a]: !0
918
- });
919
- }
920
- o.mobile !== !0 && window.navigator.userAgentData && window.navigator.userAgentData.mobile && (delete o.desktop, o.mobile = !0);
921
- }
922
- return o;
923
- }
924
- const Ve = navigator.userAgent || navigator.vendor || window.opera, pn = {
925
- has: {
926
- touch: !1,
927
- webStorage: !1
928
- },
929
- within: { iframe: !1 }
930
- }, de = {
931
- userAgent: Ve,
932
- is: hn(Ve),
933
- has: {
934
- touch: pt
935
- },
936
- within: {
937
- iframe: window.self !== window.top
938
- }
939
- }, Se = {
940
- install(e) {
941
- const { $q: t } = e;
942
- ce.value === !0 ? (e.onSSRHydrated.push(() => {
943
- Object.assign(t.platform, de), ce.value = !1;
944
- }), t.platform = Tt(this)) : t.platform = this;
945
- }
946
- };
947
- {
948
- let e;
949
- at(de.has, "webStorage", () => {
950
- if (e !== void 0)
951
- return e;
952
- try {
953
- if (window.localStorage)
954
- return e = !0, !0;
955
- } catch {
956
- }
957
- return e = !1, !1;
958
- }), Object.assign(Se, de), ce.value === !0 && (Object.assign(Se, xe, pn), xe = null);
959
- }
960
- function Ee() {
961
- if (window.getSelection !== void 0) {
962
- const e = window.getSelection();
963
- e.empty !== void 0 ? e.empty() : e.removeAllRanges !== void 0 && (e.removeAllRanges(), Se.is.mobile !== !0 && e.addRange(document.createRange()));
964
- } else document.selection !== void 0 && document.selection.empty();
965
- }
966
- const gt = {
967
- /* SSR does not know about Element */
968
- target: {
969
- type: [Boolean, String, Element],
970
- default: !0
971
- },
972
- noParentEvent: Boolean
973
- }, Jn = {
974
- ...gt,
975
- contextMenu: Boolean
976
- };
977
- function gn({
978
- showing: e,
979
- avoidEmit: t,
980
- // required for QPopupProxy (true)
981
- configureAnchorEl: i
982
- // optional
983
- }) {
984
- const { props: n, proxy: o, emit: r } = z(), a = _(null);
985
- let l = null;
986
- function m(s) {
987
- return a.value === null ? !1 : s === void 0 || s.touches === void 0 || s.touches.length <= 1;
988
- }
989
- const f = {};
990
- i === void 0 && (Object.assign(f, {
991
- hide(s) {
992
- o.hide(s);
993
- },
994
- toggle(s) {
995
- o.toggle(s), s.qAnchorHandled = !0;
996
- },
997
- toggleKey(s) {
998
- ue(s, 13) === !0 && f.toggle(s);
999
- },
1000
- contextClick(s) {
1001
- o.hide(s), ke(s), re(() => {
1002
- o.show(s), s.qAnchorHandled = !0;
1003
- });
1004
- },
1005
- prevent: ke,
1006
- mobileTouch(s) {
1007
- if (f.mobileCleanup(s), m(s) !== !0)
1008
- return;
1009
- o.hide(s), a.value.classList.add("non-selectable");
1010
- const d = s.target;
1011
- ee(f, "anchor", [
1012
- [d, "touchmove", "mobileCleanup", "passive"],
1013
- [d, "touchend", "mobileCleanup", "passive"],
1014
- [d, "touchcancel", "mobileCleanup", "passive"],
1015
- [a.value, "contextmenu", "prevent", "notPassive"]
1016
- ]), l = setTimeout(() => {
1017
- l = null, o.show(s), s.qAnchorHandled = !0;
1018
- }, 300);
1019
- },
1020
- mobileCleanup(s) {
1021
- a.value.classList.remove("non-selectable"), l !== null && (clearTimeout(l), l = null), e.value === !0 && s !== void 0 && Ee();
1022
- }
1023
- }), i = function(s = n.contextMenu) {
1024
- if (n.noParentEvent === !0 || a.value === null) return;
1025
- let d;
1026
- s === !0 ? o.$q.platform.is.mobile === !0 ? d = [
1027
- [a.value, "touchstart", "mobileTouch", "passive"]
1028
- ] : d = [
1029
- [a.value, "mousedown", "hide", "passive"],
1030
- [a.value, "contextmenu", "contextClick", "notPassive"]
1031
- ] : d = [
1032
- [a.value, "click", "toggle", "passive"],
1033
- [a.value, "keyup", "toggleKey", "passive"]
1034
- ], ee(f, "anchor", d);
1035
- });
1036
- function u() {
1037
- se(f, "anchor");
1038
- }
1039
- function y(s) {
1040
- for (a.value = s; a.value.classList.contains("q-anchor--skip"); )
1041
- a.value = a.value.parentNode;
1042
- i();
1043
- }
1044
- function c() {
1045
- if (n.target === !1 || n.target === "" || o.$el.parentNode === null)
1046
- a.value = null;
1047
- else if (n.target === !0)
1048
- y(o.$el.parentNode);
1049
- else {
1050
- let s = n.target;
1051
- if (typeof n.target == "string")
1052
- try {
1053
- s = document.querySelector(n.target);
1054
- } catch {
1055
- s = void 0;
1056
- }
1057
- s != null ? (a.value = s.$el || s, i()) : (a.value = null, console.error(`Anchor: target "${n.target}" not found`));
1058
- }
1059
- }
1060
- return H(() => n.contextMenu, (s) => {
1061
- a.value !== null && (u(), i(s));
1062
- }), H(() => n.target, () => {
1063
- a.value !== null && u(), c();
1064
- }), H(() => n.noParentEvent, (s) => {
1065
- a.value !== null && (s === !0 ? u() : i());
1066
- }), tt(() => {
1067
- c(), t !== !0 && n.modelValue === !0 && a.value === null && r("update:modelValue", !1);
1068
- }), F(() => {
1069
- l !== null && clearTimeout(l), u();
1070
- }), {
1071
- anchorEl: a,
1072
- canShow: m,
1073
- anchorEvents: f
1074
- };
1075
- }
1076
- function bn(e, t) {
1077
- const i = _(null);
1078
- let n;
1079
- function o(l, m) {
1080
- const f = `${m !== void 0 ? "add" : "remove"}EventListener`, u = m !== void 0 ? m : n;
1081
- l !== window && l[f]("scroll", u, Q.passive), window[f]("scroll", u, Q.passive), n = m;
1082
- }
1083
- function r() {
1084
- i.value !== null && (o(i.value), i.value = null);
1085
- }
1086
- const a = H(() => e.noParentEvent, () => {
1087
- i.value !== null && (r(), t());
1088
- });
1089
- return F(a), {
1090
- localScrollTarget: i,
1091
- unconfigureScrollTarget: r,
1092
- changeScrollEvent: o
1093
- };
1094
- }
1095
- const yn = {
1096
- modelValue: {
1097
- type: Boolean,
1098
- default: null
1099
- },
1100
- "onUpdate:modelValue": [Function, Array]
1101
- }, wn = [
1102
- "beforeShow",
1103
- "show",
1104
- "beforeHide",
1105
- "hide"
1106
- ];
1107
- function kn({
1108
- showing: e,
1109
- canShow: t,
1110
- // optional
1111
- hideOnRouteChange: i,
1112
- // optional
1113
- handleShow: n,
1114
- // optional
1115
- handleHide: o,
1116
- // optional
1117
- processOnMount: r
1118
- // optional
1119
- }) {
1120
- const a = z(), { props: l, emit: m, proxy: f } = a;
1121
- let u;
1122
- function y(b) {
1123
- e.value === !0 ? d(b) : c(b);
1124
- }
1125
- function c(b) {
1126
- if (l.disable === !0 || b !== void 0 && b.qAnchorHandled === !0 || t !== void 0 && t(b) !== !0)
1127
- return;
1128
- const w = l["onUpdate:modelValue"] !== void 0;
1129
- w === !0 && (m("update:modelValue", !0), u = b, re(() => {
1130
- u === b && (u = void 0);
1131
- })), (l.modelValue === null || w === !1) && s(b);
1132
- }
1133
- function s(b) {
1134
- e.value !== !0 && (e.value = !0, m("beforeShow", b), n !== void 0 ? n(b) : m("show", b));
1135
- }
1136
- function d(b) {
1137
- if (l.disable === !0)
1138
- return;
1139
- const w = l["onUpdate:modelValue"] !== void 0;
1140
- w === !0 && (m("update:modelValue", !1), u = b, re(() => {
1141
- u === b && (u = void 0);
1142
- })), (l.modelValue === null || w === !1) && x(b);
1143
- }
1144
- function x(b) {
1145
- e.value !== !1 && (e.value = !1, m("beforeHide", b), o !== void 0 ? o(b) : m("hide", b));
1146
- }
1147
- function g(b) {
1148
- l.disable === !0 && b === !0 ? l["onUpdate:modelValue"] !== void 0 && m("update:modelValue", !1) : b === !0 !== e.value && (b === !0 ? s : x)(u);
1149
- }
1150
- H(() => l.modelValue, g), i !== void 0 && vt(a) === !0 && H(() => f.$route.fullPath, () => {
1151
- i.value === !0 && e.value === !0 && d();
1152
- }), tt(() => {
1153
- g(l.modelValue);
1154
- });
1155
- const $ = { show: c, hide: d, toggle: y };
1156
- return Object.assign(f, $), $;
1157
- }
1158
- let V = [], te = [];
1159
- function bt(e) {
1160
- te = te.filter((t) => t !== e);
1161
- }
1162
- function xn(e) {
1163
- bt(e), te.push(e);
1164
- }
1165
- function Ie(e) {
1166
- bt(e), te.length === 0 && V.length !== 0 && (V[V.length - 1](), V = []);
1167
- }
1168
- function eo(e) {
1169
- te.length === 0 ? e() : V.push(e);
1170
- }
1171
- function to(e) {
1172
- V = V.filter((t) => t !== e);
1173
- }
1174
- const Fe = {};
1175
- let Sn = 1, En = document.body;
1176
- function $n(e, t) {
1177
- const i = document.createElement("div");
1178
- if (i.id = t !== void 0 ? `q-portal--${t}--${Sn++}` : e, Fe.globalNodes !== void 0) {
1179
- const n = Fe.globalNodes.class;
1180
- n !== void 0 && (i.className = n);
1181
- }
1182
- return En.appendChild(i), i;
1183
- }
1184
- function Tn(e) {
1185
- e.remove();
1186
- }
1187
- const J = [];
1188
- function no(e, t) {
1189
- do {
1190
- if (e.$options.name === "QMenu") {
1191
- if (e.hide(t), e.$props.separateClosePopup === !0)
1192
- return pe(e);
1193
- } else if (e.__qPortal === !0) {
1194
- const i = pe(e);
1195
- return i !== void 0 && i.$options.name === "QPopupProxy" ? (e.hide(t), i) : e;
1196
- }
1197
- e = pe(e);
1198
- } while (e != null);
1199
- }
1200
- const Cn = ne({
1201
- name: "QPortal",
1202
- setup(e, { slots: t }) {
1203
- return () => t.default();
1204
- }
1205
- });
1206
- function Pn(e) {
1207
- for (e = e.parent; e != null; ) {
1208
- if (e.type.name === "QGlobalDialog")
1209
- return !0;
1210
- if (e.type.name === "QDialog" || e.type.name === "QMenu")
1211
- return !1;
1212
- e = e.parent;
1213
- }
1214
- return !1;
1215
- }
1216
- function qn(e, t, i, n) {
1217
- const o = _(!1), r = _(!1);
1218
- let a = null;
1219
- const l = {}, m = n === "dialog" && Pn(e);
1220
- function f(y) {
1221
- if (y === !0) {
1222
- Ie(l), r.value = !0;
1223
- return;
1224
- }
1225
- r.value = !1, o.value === !1 && (m === !1 && a === null && (a = $n(!1, n)), o.value = !0, J.push(e.proxy), xn(l));
1226
- }
1227
- function u(y) {
1228
- if (r.value = !1, y !== !0) return;
1229
- Ie(l), o.value = !1;
1230
- const c = J.indexOf(e.proxy);
1231
- c !== -1 && J.splice(c, 1), a !== null && (Tn(a), a = null);
1232
- }
1233
- return Ct(() => {
1234
- u(!0);
1235
- }), e.proxy.__qPortal = !0, at(e.proxy, "contentEl", () => t.value), {
1236
- showPortal: f,
1237
- hidePortal: u,
1238
- portalIsActive: o,
1239
- portalIsAccessible: r,
1240
- renderPortal: () => m === !0 ? i() : o.value === !0 ? [k(Pt, { to: a }, k(Cn, i))] : void 0
1241
- };
1242
- }
1243
- const ge = {
1244
- transitionShow: {
1245
- type: String,
1246
- default: "fade"
1247
- },
1248
- transitionHide: {
1249
- type: String,
1250
- default: "fade"
1251
- },
1252
- transitionDuration: {
1253
- type: [String, Number],
1254
- default: 300
1255
- }
1256
- };
1257
- function Ln(e, t = () => {
1258
- }, i = () => {
1259
- }) {
1260
- return {
1261
- transitionProps: p(() => {
1262
- const n = `q-transition--${e.transitionShow || t()}`, o = `q-transition--${e.transitionHide || i()}`;
1263
- return {
1264
- appear: !0,
1265
- enterFromClass: `${n}-enter-from`,
1266
- enterActiveClass: `${n}-enter-active`,
1267
- enterToClass: `${n}-enter-to`,
1268
- leaveFromClass: `${o}-leave-from`,
1269
- leaveActiveClass: `${o}-leave-active`,
1270
- leaveToClass: `${o}-leave-to`
1271
- };
1272
- }),
1273
- transitionStyle: p(() => `--q-transition-duration: ${e.transitionDuration}ms`)
1274
- };
1275
- }
1276
- function Mn() {
1277
- let e;
1278
- const t = z();
1279
- function i() {
1280
- e = void 0;
1281
- }
1282
- return nt(i), F(i), {
1283
- removeTick: i,
1284
- registerTick(n) {
1285
- e = n, re(() => {
1286
- e === n && (mt(t) === !1 && e(), e = void 0);
1287
- });
1288
- }
1289
- };
1290
- }
1291
- function Rn() {
1292
- let e = null;
1293
- const t = z();
1294
- function i() {
1295
- e !== null && (clearTimeout(e), e = null);
1296
- }
1297
- return nt(i), F(i), {
1298
- removeTimeout: i,
1299
- registerTimeout(n, o) {
1300
- i(), mt(t) === !1 && (e = setTimeout(() => {
1301
- e = null, n();
1302
- }, o));
1303
- }
1304
- };
1305
- }
1306
- const Bn = [Element, String], _n = [null, document, document.body, document.scrollingElement, document.documentElement];
1307
- function On(e, t) {
1308
- let i = Ft(t);
1309
- if (i === void 0) {
1310
- if (e == null)
1311
- return window;
1312
- i = e.closest(".scroll,.scroll-y,.overflow-auto");
1313
- }
1314
- return _n.includes(i) ? window : i;
1315
- }
1316
- function oo(e) {
1317
- return e === window ? window.pageYOffset || window.scrollY || document.body.scrollTop || 0 : e.scrollTop;
1318
- }
1319
- function io(e) {
1320
- return e === window ? window.pageXOffset || window.scrollX || document.body.scrollLeft || 0 : e.scrollLeft;
1321
- }
1322
- let ie;
1323
- function Hn() {
1324
- if (ie !== void 0)
1325
- return ie;
1326
- const e = document.createElement("p"), t = document.createElement("div");
1327
- we(e, {
1328
- width: "100%",
1329
- height: "200px"
1330
- }), we(t, {
1331
- position: "absolute",
1332
- top: "0px",
1333
- left: "0px",
1334
- visibility: "hidden",
1335
- width: "200px",
1336
- height: "150px",
1337
- overflow: "hidden"
1338
- }), t.appendChild(e), document.body.appendChild(t);
1339
- const i = e.offsetWidth;
1340
- t.style.overflow = "scroll";
1341
- let n = e.offsetWidth;
1342
- return i === n && (n = t.clientWidth), t.remove(), ie = i - n, ie;
1343
- }
1344
- function lo(e, t = !0) {
1345
- return !e || e.nodeType !== Node.ELEMENT_NODE ? !1 : t ? e.scrollHeight > e.clientHeight && (e.classList.contains("scroll") || e.classList.contains("overflow-auto") || ["auto", "scroll"].includes(window.getComputedStyle(e)["overflow-y"])) : e.scrollWidth > e.clientWidth && (e.classList.contains("scroll") || e.classList.contains("overflow-auto") || ["auto", "scroll"].includes(window.getComputedStyle(e)["overflow-x"]));
1346
- }
1347
- const { notPassiveCapture: fe } = Q, I = [];
1348
- function ve(e) {
1349
- const t = e.target;
1350
- if (t === void 0 || t.nodeType === 8 || t.classList.contains("no-pointer-events") === !0)
1351
- return;
1352
- let i = J.length - 1;
1353
- for (; i >= 0; ) {
1354
- const n = J[i].$;
1355
- if (n.type.name === "QTooltip") {
1356
- i--;
1357
- continue;
1358
- }
1359
- if (n.type.name !== "QDialog")
1360
- break;
1361
- if (n.props.seamless !== !0)
1362
- return;
1363
- i--;
1364
- }
1365
- for (let n = I.length - 1; n >= 0; n--) {
1366
- const o = I[n];
1367
- if ((o.anchorEl.value === null || o.anchorEl.value.contains(t) === !1) && (t === document.body || o.innerRef.value !== null && o.innerRef.value.contains(t) === !1))
1368
- e.qClickOutside = !0, o.onClickOutside(e);
1369
- else
1370
- return;
1371
- }
1372
- }
1373
- function zn(e) {
1374
- I.push(e), I.length === 1 && (document.addEventListener("mousedown", ve, fe), document.addEventListener("touchstart", ve, fe));
1375
- }
1376
- function Qe(e) {
1377
- const t = I.findIndex((i) => i === e);
1378
- t !== -1 && (I.splice(t, 1), I.length === 0 && (document.removeEventListener("mousedown", ve, fe), document.removeEventListener("touchstart", ve, fe)));
1379
- }
1380
- let Ke, Ue;
1381
- function Ge(e) {
1382
- const t = e.split(" ");
1383
- return t.length !== 2 ? !1 : ["top", "center", "bottom"].includes(t[0]) !== !0 ? (console.error("Anchor/Self position must start with one of top/center/bottom"), !1) : ["left", "middle", "right", "start", "end"].includes(t[1]) !== !0 ? (console.error("Anchor/Self position must end with one of left/middle/right/start/end"), !1) : !0;
1384
- }
1385
- function jn(e) {
1386
- return e ? !(e.length !== 2 || typeof e[0] != "number" || typeof e[1] != "number") : !0;
1387
- }
1388
- const $e = {
1389
- "start#ltr": "left",
1390
- "start#rtl": "right",
1391
- "end#ltr": "right",
1392
- "end#rtl": "left"
1393
- };
1394
- ["left", "middle", "right"].forEach((e) => {
1395
- $e[`${e}#ltr`] = e, $e[`${e}#rtl`] = e;
1396
- });
1397
- function Ye(e, t) {
1398
- const i = e.split(" ");
1399
- return {
1400
- vertical: i[0],
1401
- horizontal: $e[`${i[1]}#${t === !0 ? "rtl" : "ltr"}`]
1402
- };
1403
- }
1404
- function Wn(e, t) {
1405
- let { top: i, left: n, right: o, bottom: r, width: a, height: l } = e.getBoundingClientRect();
1406
- return t !== void 0 && (i -= t[1], n -= t[0], r += t[1], o += t[0], a += t[0], l += t[1]), {
1407
- top: i,
1408
- bottom: r,
1409
- height: l,
1410
- left: n,
1411
- right: o,
1412
- width: a,
1413
- middle: n + (o - n) / 2,
1414
- center: i + (r - i) / 2
1415
- };
1416
- }
1417
- function An(e, t, i) {
1418
- let { top: n, left: o } = e.getBoundingClientRect();
1419
- return n += t.top, o += t.left, i !== void 0 && (n += i[1], o += i[0]), {
1420
- top: n,
1421
- bottom: n + 1,
1422
- height: 1,
1423
- left: o,
1424
- right: o + 1,
1425
- width: 1,
1426
- middle: o,
1427
- center: n
1428
- };
1429
- }
1430
- function Dn(e, t) {
1431
- return {
1432
- top: 0,
1433
- center: t / 2,
1434
- bottom: t,
1435
- left: 0,
1436
- middle: e / 2,
1437
- right: e
1438
- };
1439
- }
1440
- function Xe(e, t, i, n) {
1441
- return {
1442
- top: e[i.vertical] - t[n.vertical],
1443
- left: e[i.horizontal] - t[n.horizontal]
1444
- };
1445
- }
1446
- function yt(e, t = 0) {
1447
- if (e.targetEl === null || e.anchorEl === null || t > 5)
1448
- return;
1449
- if (e.targetEl.offsetHeight === 0 || e.targetEl.offsetWidth === 0) {
1450
- setTimeout(() => {
1451
- yt(e, t + 1);
1452
- }, 10);
1453
- return;
1454
- }
1455
- const {
1456
- targetEl: i,
1457
- offset: n,
1458
- anchorEl: o,
1459
- anchorOrigin: r,
1460
- selfOrigin: a,
1461
- absoluteOffset: l,
1462
- fit: m,
1463
- cover: f,
1464
- maxHeight: u,
1465
- maxWidth: y
1466
- } = e;
1467
- if (de.is.ios === !0 && window.visualViewport !== void 0) {
1468
- const T = document.body.style, { offsetLeft: E, offsetTop: C } = window.visualViewport;
1469
- E !== Ke && (T.setProperty("--q-pe-left", E + "px"), Ke = E), C !== Ue && (T.setProperty("--q-pe-top", C + "px"), Ue = C);
1470
- }
1471
- const { scrollLeft: c, scrollTop: s } = i, d = l === void 0 ? Wn(o, f === !0 ? [0, 0] : n) : An(o, l, n);
1472
- Object.assign(i.style, {
1473
- top: 0,
1474
- left: 0,
1475
- minWidth: null,
1476
- minHeight: null,
1477
- maxWidth: y,
1478
- maxHeight: u,
1479
- visibility: "visible"
1480
- });
1481
- const { offsetWidth: x, offsetHeight: g } = i, { elWidth: $, elHeight: b } = m === !0 || f === !0 ? { elWidth: Math.max(d.width, x), elHeight: f === !0 ? Math.max(d.height, g) : g } : { elWidth: x, elHeight: g };
1482
- let w = { maxWidth: y, maxHeight: u };
1483
- (m === !0 || f === !0) && (w.minWidth = d.width + "px", f === !0 && (w.minHeight = d.height + "px")), Object.assign(i.style, w);
1484
- const q = Dn($, b);
1485
- let h = Xe(d, q, r, a);
1486
- if (l === void 0 || n === void 0)
1487
- be(h, d, q, r, a);
1488
- else {
1489
- const { top: T, left: E } = h;
1490
- be(h, d, q, r, a);
1491
- let C = !1;
1492
- if (h.top !== T) {
1493
- C = !0;
1494
- const P = 2 * n[1];
1495
- d.center = d.top -= P, d.bottom -= P + 2;
1496
- }
1497
- if (h.left !== E) {
1498
- C = !0;
1499
- const P = 2 * n[0];
1500
- d.middle = d.left -= P, d.right -= P + 2;
1501
- }
1502
- C === !0 && (h = Xe(d, q, r, a), be(h, d, q, r, a));
1503
- }
1504
- w = {
1505
- top: h.top + "px",
1506
- left: h.left + "px"
1507
- }, h.maxHeight !== void 0 && (w.maxHeight = h.maxHeight + "px", d.height > h.maxHeight && (w.minHeight = w.maxHeight)), h.maxWidth !== void 0 && (w.maxWidth = h.maxWidth + "px", d.width > h.maxWidth && (w.minWidth = w.maxWidth)), Object.assign(i.style, w), i.scrollTop !== s && (i.scrollTop = s), i.scrollLeft !== c && (i.scrollLeft = c);
1508
- }
1509
- function be(e, t, i, n, o) {
1510
- const r = i.bottom, a = i.right, l = Hn(), m = window.innerHeight - l, f = document.body.clientWidth;
1511
- if (e.top < 0 || e.top + r > m)
1512
- if (o.vertical === "center")
1513
- e.top = t[n.vertical] > m / 2 ? Math.max(0, m - r) : 0, e.maxHeight = Math.min(r, m);
1514
- else if (t[n.vertical] > m / 2) {
1515
- const u = Math.min(
1516
- m,
1517
- n.vertical === "center" ? t.center : n.vertical === o.vertical ? t.bottom : t.top
1518
- );
1519
- e.maxHeight = Math.min(r, u), e.top = Math.max(0, u - r);
1520
- } else
1521
- e.top = Math.max(
1522
- 0,
1523
- n.vertical === "center" ? t.center : n.vertical === o.vertical ? t.top : t.bottom
1524
- ), e.maxHeight = Math.min(r, m - e.top);
1525
- if (e.left < 0 || e.left + a > f)
1526
- if (e.maxWidth = Math.min(a, f), o.horizontal === "middle")
1527
- e.left = t[n.horizontal] > f / 2 ? Math.max(0, f - a) : 0;
1528
- else if (t[n.horizontal] > f / 2) {
1529
- const u = Math.min(
1530
- f,
1531
- n.horizontal === "middle" ? t.middle : n.horizontal === o.horizontal ? t.right : t.left
1532
- );
1533
- e.maxWidth = Math.min(a, u), e.left = Math.max(0, u - e.maxWidth);
1534
- } else
1535
- e.left = Math.max(
1536
- 0,
1537
- n.horizontal === "middle" ? t.middle : n.horizontal === o.horizontal ? t.left : t.right
1538
- ), e.maxWidth = Math.min(a, f - e.left);
1539
- }
1540
- const Nn = ne({
1541
- name: "QTooltip",
1542
- inheritAttrs: !1,
1543
- props: {
1544
- ...gt,
1545
- ...yn,
1546
- ...ge,
1547
- maxHeight: {
1548
- type: String,
1549
- default: null
1550
- },
1551
- maxWidth: {
1552
- type: String,
1553
- default: null
1554
- },
1555
- transitionShow: {
1556
- ...ge.transitionShow,
1557
- default: "jump-down"
1558
- },
1559
- transitionHide: {
1560
- ...ge.transitionHide,
1561
- default: "jump-up"
1562
- },
1563
- anchor: {
1564
- type: String,
1565
- default: "bottom middle",
1566
- validator: Ge
1567
- },
1568
- self: {
1569
- type: String,
1570
- default: "top middle",
1571
- validator: Ge
1572
- },
1573
- offset: {
1574
- type: Array,
1575
- default: () => [14, 14],
1576
- validator: jn
1577
- },
1578
- scrollTarget: Bn,
1579
- delay: {
1580
- type: Number,
1581
- default: 0
1582
- },
1583
- hideDelay: {
1584
- type: Number,
1585
- default: 0
1586
- },
1587
- persistent: Boolean
1588
- },
1589
- emits: [
1590
- ...wn
1591
- ],
1592
- setup(e, { slots: t, emit: i, attrs: n }) {
1593
- let o, r;
1594
- const a = z(), { proxy: { $q: l } } = a, m = _(null), f = _(!1), u = p(() => Ye(e.anchor, l.lang.rtl)), y = p(() => Ye(e.self, l.lang.rtl)), c = p(() => e.persistent !== !0), { registerTick: s, removeTick: d } = Mn(), { registerTimeout: x } = Rn(), { transitionProps: g, transitionStyle: $ } = Ln(e), { localScrollTarget: b, changeScrollEvent: w, unconfigureScrollTarget: q } = bn(e, Ce), { anchorEl: h, canShow: T, anchorEvents: E } = gn({ showing: f, configureAnchorEl: St }), { show: C, hide: P } = kn({
1595
- showing: f,
1596
- canShow: T,
1597
- handleShow: A,
1598
- handleHide: v,
1599
- hideOnRouteChange: c,
1600
- processOnMount: !0
1601
- });
1602
- Object.assign(E, { delayShow: kt, delayHide: xt });
1603
- const { showPortal: j, hidePortal: M, renderPortal: W } = qn(a, m, $t, "tooltip");
1604
- if (l.platform.is.mobile === !0) {
1605
- const L = {
1606
- anchorEl: h,
1607
- innerRef: m,
1608
- onClickOutside(D) {
1609
- return P(D), D.target.classList.contains("q-dialog__backdrop") && N(D), !0;
1610
- }
1611
- }, me = p(
1612
- () => (
1613
- // it doesn't has external model
1614
- // (null is the default value)
1615
- e.modelValue === null && e.persistent !== !0 && f.value === !0
1616
- )
1617
- );
1618
- H(me, (D) => {
1619
- (D === !0 ? zn : Qe)(L);
1620
- }), F(() => {
1621
- Qe(L);
1622
- });
1623
- }
1624
- function A(L) {
1625
- j(), s(() => {
1626
- r = new MutationObserver(() => B()), r.observe(m.value, { attributes: !1, childList: !0, characterData: !0, subtree: !0 }), B(), Ce();
1627
- }), o === void 0 && (o = H(
1628
- () => l.screen.width + "|" + l.screen.height + "|" + e.self + "|" + e.anchor + "|" + l.lang.rtl,
1629
- B
1630
- )), x(() => {
1631
- j(!0), i("show", L);
1632
- }, e.transitionDuration);
1633
- }
1634
- function v(L) {
1635
- d(), M(), S(), x(() => {
1636
- M(!0), i("hide", L);
1637
- }, e.transitionDuration);
1638
- }
1639
- function S() {
1640
- r !== void 0 && (r.disconnect(), r = void 0), o !== void 0 && (o(), o = void 0), q(), se(E, "tooltipTemp");
1641
- }
1642
- function B() {
1643
- yt({
1644
- targetEl: m.value,
1645
- offset: e.offset,
1646
- anchorEl: h.value,
1647
- anchorOrigin: u.value,
1648
- selfOrigin: y.value,
1649
- maxHeight: e.maxHeight,
1650
- maxWidth: e.maxWidth
1651
- });
1652
- }
1653
- function kt(L) {
1654
- if (l.platform.is.mobile === !0) {
1655
- Ee(), document.body.classList.add("non-selectable");
1656
- const me = h.value, D = ["touchmove", "touchcancel", "touchend", "click"].map((Pe) => [me, Pe, "delayHide", "passiveCapture"]);
1657
- ee(E, "tooltipTemp", D);
1658
- }
1659
- x(() => {
1660
- C(L);
1661
- }, e.delay);
1662
- }
1663
- function xt(L) {
1664
- l.platform.is.mobile === !0 && (se(E, "tooltipTemp"), Ee(), setTimeout(() => {
1665
- document.body.classList.remove("non-selectable");
1666
- }, 10)), x(() => {
1667
- P(L);
1668
- }, e.hideDelay);
1669
- }
1670
- function St() {
1671
- if (e.noParentEvent === !0 || h.value === null) return;
1672
- const L = l.platform.is.mobile === !0 ? [
1673
- [h.value, "touchstart", "delayShow", "passive"]
1674
- ] : [
1675
- [h.value, "mouseenter", "delayShow", "passive"],
1676
- [h.value, "mouseleave", "delayHide", "passive"]
1677
- ];
1678
- ee(E, "anchor", L);
1679
- }
1680
- function Ce() {
1681
- if (h.value !== null || e.scrollTarget !== void 0) {
1682
- b.value = On(h.value, e.scrollTarget);
1683
- const L = e.noParentEvent === !0 ? B : P;
1684
- w(b.value, L);
1685
- }
1686
- }
1687
- function Et() {
1688
- return f.value === !0 ? k("div", {
1689
- ...n,
1690
- ref: m,
1691
- class: [
1692
- "q-tooltip q-tooltip--style q-position-engine no-pointer-events",
1693
- n.class
1694
- ],
1695
- style: [
1696
- n.style,
1697
- $.value
1698
- ],
1699
- role: "tooltip"
1700
- }, rt(t.default)) : null;
1701
- }
1702
- function $t() {
1703
- return k(et, g.value, Et);
1704
- }
1705
- return F(S), Object.assign(a.proxy, { updatePosition: B }), W;
1706
- }
1707
- }), Vn = /* @__PURE__ */ Te({
1708
- __name: "AppButton",
1709
- props: {
1710
- size: { default: O.MD },
1711
- transparent: { type: Boolean },
1712
- flat: { type: Boolean },
1713
- rounded: { type: Boolean },
1714
- color: { default: Rt.PRIMARY },
1715
- iconLeft: {},
1716
- iconRight: {},
1717
- iconMiddle: {},
1718
- disabled: { type: Boolean },
1719
- loading: { type: Boolean },
1720
- to: {},
1721
- href: {},
1722
- target: {},
1723
- submit: { type: Boolean },
1724
- ariaLabel: {},
1725
- label: {},
1726
- tooltip: {}
1727
- },
1728
- emits: ["click"],
1729
- setup(e) {
1730
- const t = e, i = p(() => [
1731
- "app-btn",
1732
- {
1733
- "app-btn_default": !t.transparent && !t.flat,
1734
- "app-btn_trans": t.transparent,
1735
- "app-btn_flat": t.flat,
1736
- "app-btn_rounded": t.rounded,
1737
- "app-btn_sm": t.size === O.SM,
1738
- "app-btn_md": t.size === O.MD,
1739
- "app-btn_lg": t.size === O.LG,
1740
- "app-btn_icon-left": t.iconLeft,
1741
- "app-btn_icon-right": t.iconRight,
1742
- "app-btn_icon-middle": t.iconMiddle
1743
- },
1744
- `app-btn_${t.color}`
1745
- ]);
1746
- return (n, o) => (Y(), qe(X(fn), {
1747
- "no-caps": "",
1748
- unelevated: "",
1749
- class: le(i.value),
1750
- padding: X(Bt)[n.size || X(O).MD],
1751
- loading: n.loading,
1752
- disable: n.disabled || void 0,
1753
- to: n.to,
1754
- href: n.href,
1755
- target: n.target,
1756
- type: n.submit ? "submit" : void 0,
1757
- "aria-label": n.ariaLabel,
1758
- onClick: o[0] || (o[0] = (r) => n.$emit("click", r))
1759
- }, {
1760
- default: Le(() => [
1761
- n.iconLeft || n.iconMiddle ? (Y(), ae("i", {
1762
- key: 0,
1763
- class: le([
1764
- "icon-kl",
1765
- n.iconLeft ? "icon-kl_left" : "icon-kl_middle",
1766
- `icon-kl-${n.iconLeft || n.iconMiddle}`,
1767
- n.transparent || n.flat ? `text-${n.color}` : "text-secondary"
1768
- ])
1769
- }, null, 2)) : oe("", !0),
1770
- qt(n.$slots, "default", {}, void 0, !0),
1771
- n.label ? (Y(), ae(Lt, { key: 1 }, [
1772
- Me(Re(n.label), 1)
1773
- ], 64)) : oe("", !0),
1774
- n.iconRight ? (Y(), ae("i", {
1775
- key: 2,
1776
- class: le([
1777
- "icon-kl",
1778
- "icon-kl_right",
1779
- `icon-kl-${n.iconRight}`,
1780
- n.transparent ? `text-${n.color}` : "text-secondary"
1781
- ])
1782
- }, null, 2)) : oe("", !0),
1783
- n.tooltip ? (Y(), qe(X(Nn), {
1784
- key: 3,
1785
- class: "glass-tooltip",
1786
- anchor: "top middle",
1787
- self: "center right"
1788
- }, {
1789
- default: Le(() => [
1790
- Me(Re(n.tooltip), 1)
1791
- ]),
1792
- _: 1
1793
- })) : oe("", !0)
1794
- ]),
1795
- _: 3
1796
- }, 8, ["class", "padding", "loading", "disable", "to", "href", "target", "type", "aria-label"]));
1797
- }
1798
- }), wt = (e, t) => {
1799
- const i = e.__vccOpts || e;
1800
- for (const [n, o] of t)
1801
- i[n] = o;
1802
- return i;
1803
- }, ao = /* @__PURE__ */ wt(Vn, [["__scopeId", "data-v-be2678e0"]]), In = /* @__PURE__ */ Te({
1804
- __name: "AppIcon",
1805
- props: {
1806
- name: {},
1807
- size: {},
1808
- color: {}
1809
- },
1810
- setup(e) {
1811
- return (t, i) => (Y(), ae("i", {
1812
- class: le(["icon-kl", `icon-kl-${t.name}`, t.color ? `text-${t.color}` : ""]),
1813
- style: Mt(t.size ? `font-size: ${t.size}` : void 0)
1814
- }, null, 6));
1815
- }
1816
- }), ro = /* @__PURE__ */ wt(In, [["__scopeId", "data-v-941765ee"]]), so = ot(
1817
- () => import("./AppButtonCopy-CD5izPIQ.js")
1818
- ), uo = ot(
1819
- () => import("./AppSelect-9PNb7C2e.js")
1820
- );
1821
- export {
1822
- O as $,
1823
- ao as A,
1824
- Ye as B,
1825
- Rt as C,
1826
- kn as D,
1827
- qn as E,
1828
- no as F,
1829
- Qt as G,
1830
- Gn as H,
1831
- Qe as I,
1832
- zn as J,
1833
- wn as K,
1834
- Bn as L,
1835
- jn as M,
1836
- Ge as N,
1837
- ge as O,
1838
- yn as P,
1839
- He as Q,
1840
- Gt as R,
1841
- Jn as S,
1842
- io as T,
1843
- oo as U,
1844
- Q as V,
1845
- Xn as W,
1846
- lo as X,
1847
- Yn as Y,
1848
- dt as Z,
1849
- Kt as _,
1850
- Z as a,
1851
- wt as a0,
1852
- ro as a1,
1853
- so as a2,
1854
- uo as a3,
1855
- it as b,
1856
- ne as c,
1857
- nn as d,
1858
- ue as e,
1859
- Qn as f,
1860
- Zn as g,
1861
- rt as h,
1862
- ce as i,
1863
- at as j,
1864
- eo as k,
1865
- It as l,
1866
- Un as m,
1867
- Kn as n,
1868
- de as o,
1869
- ke as p,
1870
- Mn as q,
1871
- to as r,
1872
- N as s,
1873
- Rn as t,
1874
- lt as u,
1875
- Ln as v,
1876
- bn as w,
1877
- gn as x,
1878
- On as y,
1879
- yt as z
1880
- };