@win2win/shared-ui 0.1.20 → 0.1.21
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.
package/dist/w2w-shared-ui.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as ie, reactive as H_, markRaw as Tf, defineComponent as He, h as q, withDirectives as Bl, computed as
|
|
1
|
+
import { ref as ie, reactive as H_, markRaw as Tf, defineComponent as He, h as q, withDirectives as Bl, computed as A, Transition as yr, getCurrentInstance as et, onDeactivated as Hl, onBeforeUnmount as Lt, onMounted as Mn, watch as Te, mergeModels as Xn, useModel as Jn, toRefs as ki, resolveComponent as Rf, openBlock as K, createElementBlock as ce, Fragment as ze, unref as Me, createBlock as Ye, createCommentVNode as ct, createElementVNode as we, renderList as kt, normalizeClass as jr, createVNode as It, toDisplayString as Je, toRaw as Nr, onBeforeUpdate as kf, inject as Ku, nextTick as at, onActivated as If, normalizeStyle as nn, withCtx as dt, renderSlot as Pl, createSlots as Lf, pushScopeId as Mf, popScopeId as qf, onUnmounted as W_, Teleport as G_, onBeforeMount as K_, onUpdated as j_, resolveDynamicComponent as ju, createTextVNode as Tl, vShow as Cc, normalizeProps as Y_, guardReactiveProps as Q_, provide as Z_ } from "vue";
|
|
2
2
|
import { getActivePinia as X_, defineStore as J_ } from "pinia";
|
|
3
3
|
var ke = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Vl = { exports: {} };
|
|
4
4
|
/**
|
|
@@ -12,7 +12,7 @@ var ke = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
12
12
|
Vl.exports;
|
|
13
13
|
(function(t, l) {
|
|
14
14
|
(function() {
|
|
15
|
-
var i, u = "4.17.21", a = 200, s = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", d = "Expected a function", h = "Invalid `variable` option passed into `_.template`", y = "__lodash_hash_undefined__",
|
|
15
|
+
var i, u = "4.17.21", a = 200, s = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", d = "Expected a function", h = "Invalid `variable` option passed into `_.template`", y = "__lodash_hash_undefined__", x = 500, m = "__lodash_placeholder__", C = 1, O = 2, b = 4, R = 1, H = 2, I = 1, W = 2, U = 4, D = 8, X = 16, j = 32, Q = 64, Y = 128, ae = 256, V = 512, N = 30, J = "...", E = 800, re = 16, $ = 1, fe = 2, de = 3, ge = 1 / 0, G = 9007199254740991, ve = 17976931348623157e292, be = NaN, k = 4294967295, T = k - 1, ue = k >>> 1, Se = [
|
|
16
16
|
["ary", Y],
|
|
17
17
|
["bind", I],
|
|
18
18
|
["bindKey", W],
|
|
@@ -664,7 +664,7 @@ Vl.exports;
|
|
|
664
664
|
for (; S-- && te < se; ) {
|
|
665
665
|
P += n;
|
|
666
666
|
for (var Oe = -1, pe = e[P]; ++Oe < F; ) {
|
|
667
|
-
var Re = B[Oe],
|
|
667
|
+
var Re = B[Oe], Le = Re.iteratee, Ft = Re.type, xt = Le(pe);
|
|
668
668
|
if (Ft == fe)
|
|
669
669
|
pe = xt;
|
|
670
670
|
else if (!xt) {
|
|
@@ -868,7 +868,7 @@ Vl.exports;
|
|
|
868
868
|
return e === e && (r !== i && (e = e <= r ? e : r), n !== i && (e = e >= n ? e : n)), e;
|
|
869
869
|
}
|
|
870
870
|
function Qt(e, n, r, o, c, v) {
|
|
871
|
-
var g, _ = n &
|
|
871
|
+
var g, _ = n & C, S = n & O, P = n & b;
|
|
872
872
|
if (r && (g = c ? r(e, o, c, v) : r(e)), g !== i)
|
|
873
873
|
return g;
|
|
874
874
|
if (!je(e))
|
|
@@ -1666,19 +1666,19 @@ Vl.exports;
|
|
|
1666
1666
|
function vl(e, n, r, o, c, v, g, _, S, P) {
|
|
1667
1667
|
var B = n & Y, F = n & I, te = n & W, se = n & (D | X), me = n & V, Oe = te ? i : bi(e);
|
|
1668
1668
|
function pe() {
|
|
1669
|
-
for (var Re = arguments.length,
|
|
1670
|
-
|
|
1669
|
+
for (var Re = arguments.length, Le = L(Re), Ft = Re; Ft--; )
|
|
1670
|
+
Le[Ft] = arguments[Ft];
|
|
1671
1671
|
if (se)
|
|
1672
|
-
var xt = $r(pe), Nt = Sv(
|
|
1673
|
-
if (o && (
|
|
1674
|
-
var nt = Un(
|
|
1672
|
+
var xt = $r(pe), Nt = Sv(Le, xt);
|
|
1673
|
+
if (o && (Le = _s(Le, o, c, se)), v && (Le = bs(Le, v, g, se)), Re -= Nt, se && Re < P) {
|
|
1674
|
+
var nt = Un(Le, xt);
|
|
1675
1675
|
return Es(
|
|
1676
1676
|
e,
|
|
1677
1677
|
n,
|
|
1678
1678
|
vl,
|
|
1679
1679
|
pe.placeholder,
|
|
1680
1680
|
r,
|
|
1681
|
-
|
|
1681
|
+
Le,
|
|
1682
1682
|
nt,
|
|
1683
1683
|
_,
|
|
1684
1684
|
S,
|
|
@@ -1686,7 +1686,7 @@ Vl.exports;
|
|
|
1686
1686
|
);
|
|
1687
1687
|
}
|
|
1688
1688
|
var fn = F ? r : this, In = te ? fn[e] : e;
|
|
1689
|
-
return Re =
|
|
1689
|
+
return Re = Le.length, _ ? Le = kg(Le, _) : me && Re > 1 && Le.reverse(), B && S < Re && (Le.length = S), this && this !== ht && this instanceof pe && (In = Oe || bi(In)), In.apply(fn, Le);
|
|
1690
1690
|
}
|
|
1691
1691
|
return pe;
|
|
1692
1692
|
}
|
|
@@ -1838,9 +1838,9 @@ Vl.exports;
|
|
|
1838
1838
|
break;
|
|
1839
1839
|
}
|
|
1840
1840
|
if (se) {
|
|
1841
|
-
if (!Oo(n, function(Re,
|
|
1842
|
-
if (!ai(se,
|
|
1843
|
-
return se.push(
|
|
1841
|
+
if (!Oo(n, function(Re, Le) {
|
|
1842
|
+
if (!ai(se, Le) && (me === Re || c(me, Re, r, o, v)))
|
|
1843
|
+
return se.push(Le);
|
|
1844
1844
|
})) {
|
|
1845
1845
|
te = !1;
|
|
1846
1846
|
break;
|
|
@@ -1903,10 +1903,10 @@ Vl.exports;
|
|
|
1903
1903
|
v.set(e, n), v.set(n, e);
|
|
1904
1904
|
for (var pe = g; ++F < S; ) {
|
|
1905
1905
|
te = _[F];
|
|
1906
|
-
var Re = e[te],
|
|
1906
|
+
var Re = e[te], Le = n[te];
|
|
1907
1907
|
if (o)
|
|
1908
|
-
var Ft = g ? o(
|
|
1909
|
-
if (!(Ft === i ? Re ===
|
|
1908
|
+
var Ft = g ? o(Le, Re, te, n, e, v) : o(Re, Le, te, e, n, v);
|
|
1909
|
+
if (!(Ft === i ? Re === Le || c(Re, Le, r, o, v) : Ft)) {
|
|
1910
1910
|
Oe = !1;
|
|
1911
1911
|
break;
|
|
1912
1912
|
}
|
|
@@ -2130,7 +2130,7 @@ Vl.exports;
|
|
|
2130
2130
|
}
|
|
2131
2131
|
function Og(e) {
|
|
2132
2132
|
var n = xl(e, function(o) {
|
|
2133
|
-
return r.size ===
|
|
2133
|
+
return r.size === x && r.clear(), o;
|
|
2134
2134
|
}), r = n.cache;
|
|
2135
2135
|
return n;
|
|
2136
2136
|
}
|
|
@@ -2743,17 +2743,17 @@ Vl.exports;
|
|
|
2743
2743
|
function Re() {
|
|
2744
2744
|
var nt = Sl();
|
|
2745
2745
|
if (pe(nt))
|
|
2746
|
-
return
|
|
2746
|
+
return Le(nt);
|
|
2747
2747
|
_ = wi(Re, Oe(nt));
|
|
2748
2748
|
}
|
|
2749
|
-
function
|
|
2749
|
+
function Le(nt) {
|
|
2750
2750
|
return _ = i, te && o ? se(nt) : (o = c = i, g);
|
|
2751
2751
|
}
|
|
2752
2752
|
function Ft() {
|
|
2753
2753
|
_ !== i && hs(_), P = 0, o = S = c = _ = i;
|
|
2754
2754
|
}
|
|
2755
2755
|
function xt() {
|
|
2756
|
-
return _ === i ? g :
|
|
2756
|
+
return _ === i ? g : Le(Sl());
|
|
2757
2757
|
}
|
|
2758
2758
|
function Nt() {
|
|
2759
2759
|
var nt = Sl(), fn = pe(nt);
|
|
@@ -2868,10 +2868,10 @@ Vl.exports;
|
|
|
2868
2868
|
return n = typeof n == "function" ? n : i, Qt(e, b, n);
|
|
2869
2869
|
}
|
|
2870
2870
|
function Op(e) {
|
|
2871
|
-
return Qt(e,
|
|
2871
|
+
return Qt(e, C | b);
|
|
2872
2872
|
}
|
|
2873
2873
|
function Ep(e, n) {
|
|
2874
|
-
return n = typeof n == "function" ? n : i, Qt(e,
|
|
2874
|
+
return n = typeof n == "function" ? n : i, Qt(e, C | b, n);
|
|
2875
2875
|
}
|
|
2876
2876
|
function Tp(e, n) {
|
|
2877
2877
|
return n == null || Ga(e, n, ft(n));
|
|
@@ -3155,7 +3155,7 @@ Vl.exports;
|
|
|
3155
3155
|
var o = !1;
|
|
3156
3156
|
n = Ge(n, function(v) {
|
|
3157
3157
|
return v = Gn(v, e), o || (o = v.length > 1), v;
|
|
3158
|
-
}), mn(e, iu(e), r), o && (r = Qt(r,
|
|
3158
|
+
}), mn(e, iu(e), r), o && (r = Qt(r, C | O | b, vg));
|
|
3159
3159
|
for (var c = n.length; c--; )
|
|
3160
3160
|
Qo(r, n[c]);
|
|
3161
3161
|
return r;
|
|
@@ -3309,13 +3309,13 @@ Vl.exports;
|
|
|
3309
3309
|
"g"
|
|
3310
3310
|
), se = "//# sourceURL=" + ($e.call(n, "sourceURL") ? (n.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++lv + "]") + `
|
|
3311
3311
|
`;
|
|
3312
|
-
e.replace(te, function(pe, Re,
|
|
3313
|
-
return
|
|
3312
|
+
e.replace(te, function(pe, Re, Le, Ft, xt, Nt) {
|
|
3313
|
+
return Le || (Le = Ft), F += e.slice(P, Nt).replace(ne, Av), Re && (_ = !0, F += `' +
|
|
3314
3314
|
__e(` + Re + `) +
|
|
3315
3315
|
'`), xt && (S = !0, F += `';
|
|
3316
3316
|
` + xt + `;
|
|
3317
|
-
__p += '`),
|
|
3318
|
-
((__t = (` +
|
|
3317
|
+
__p += '`), Le && (F += `' +
|
|
3318
|
+
((__t = (` + Le + `)) == null ? '' : __t) +
|
|
3319
3319
|
'`), P = Nt + pe.length, pe;
|
|
3320
3320
|
}), F += `';
|
|
3321
3321
|
`;
|
|
@@ -3439,7 +3439,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
3439
3439
|
});
|
|
3440
3440
|
}
|
|
3441
3441
|
function u_(e) {
|
|
3442
|
-
return Lh(Qt(e,
|
|
3442
|
+
return Lh(Qt(e, C));
|
|
3443
3443
|
}
|
|
3444
3444
|
function wu(e) {
|
|
3445
3445
|
return function() {
|
|
@@ -3454,13 +3454,13 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
3454
3454
|
return e;
|
|
3455
3455
|
}
|
|
3456
3456
|
function Su(e) {
|
|
3457
|
-
return es(typeof e == "function" ? e : Qt(e,
|
|
3457
|
+
return es(typeof e == "function" ? e : Qt(e, C));
|
|
3458
3458
|
}
|
|
3459
3459
|
function f_(e) {
|
|
3460
|
-
return ns(Qt(e,
|
|
3460
|
+
return ns(Qt(e, C));
|
|
3461
3461
|
}
|
|
3462
3462
|
function d_(e, n) {
|
|
3463
|
-
return rs(e, Qt(n,
|
|
3463
|
+
return rs(e, Qt(n, C));
|
|
3464
3464
|
}
|
|
3465
3465
|
var v_ = Ee(function(e, n) {
|
|
3466
3466
|
return function(r) {
|
|
@@ -3633,8 +3633,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
3633
3633
|
var r = /^(?:filter|find|map|reject)|While$/.test(n), o = /^(?:head|last)$/.test(n), c = f[o ? "take" + (n == "last" ? "Right" : "") : n], v = o || /^find/.test(n);
|
|
3634
3634
|
c && (f.prototype[n] = function() {
|
|
3635
3635
|
var g = this.__wrapped__, _ = o ? [1] : arguments, S = g instanceof Ie, P = _[0], B = S || Ce(g), F = function(Re) {
|
|
3636
|
-
var
|
|
3637
|
-
return o && te ?
|
|
3636
|
+
var Le = c.apply(f, Nn([Re], _));
|
|
3637
|
+
return o && te ? Le[0] : Le;
|
|
3638
3638
|
};
|
|
3639
3639
|
B && r && typeof P == "function" && P.length != 1 && (S = B = !1);
|
|
3640
3640
|
var te = this.__chain__, se = !!this.__actions__.length, me = v && !te, Oe = S && !se;
|
|
@@ -4088,8 +4088,8 @@ function lb(t, l, i) {
|
|
|
4088
4088
|
{ ...l, value: (d = l.value) == null ? void 0 : d[h] },
|
|
4089
4089
|
i
|
|
4090
4090
|
);
|
|
4091
|
-
y.forEach((
|
|
4092
|
-
|
|
4091
|
+
y.forEach((x) => {
|
|
4092
|
+
x.controls.forEach((m) => {
|
|
4093
4093
|
m.code = `${h}.${m.code}`;
|
|
4094
4094
|
});
|
|
4095
4095
|
}), u.push(...y);
|
|
@@ -4246,10 +4246,10 @@ class Nc {
|
|
|
4246
4246
|
}
|
|
4247
4247
|
fromRaw(l) {
|
|
4248
4248
|
return Qe.orderBy(l, "ORDEN").filter((u) => u.PREGUNTAS.length && u.ESTADO === 1).map((u) => {
|
|
4249
|
-
const a = u.NOMBRE, s = u.ORDEN, d = u.DESCRIPCION, h = u.CLAVE, y = u.ID_CUESTIONARIO,
|
|
4249
|
+
const a = u.NOMBRE, s = u.ORDEN, d = u.DESCRIPCION, h = u.CLAVE, y = u.ID_CUESTIONARIO, x = u.PREGUNTAS.filter((m) => m.ESTADO === 1).map(
|
|
4250
4250
|
(m) => this.parseControl(m)
|
|
4251
4251
|
);
|
|
4252
|
-
return { title: a, order: s, text: d, controls:
|
|
4252
|
+
return { title: a, order: s, text: d, controls: x, name: h, id: y };
|
|
4253
4253
|
});
|
|
4254
4254
|
}
|
|
4255
4255
|
parseControl(l) {
|
|
@@ -4520,27 +4520,27 @@ const mb = vt({
|
|
|
4520
4520
|
onVisibility: Function
|
|
4521
4521
|
},
|
|
4522
4522
|
setup(t, { slots: l, emit: i }) {
|
|
4523
|
-
const u = ie(Zn.value === !0 ? t.ssrPrerender : !1), a =
|
|
4523
|
+
const u = ie(Zn.value === !0 ? t.ssrPrerender : !1), a = A(() => t.root !== void 0 || t.margin !== void 0 || t.threshold !== void 0 ? {
|
|
4524
4524
|
handler: y,
|
|
4525
4525
|
cfg: {
|
|
4526
4526
|
root: t.root,
|
|
4527
4527
|
rootMargin: t.margin,
|
|
4528
4528
|
threshold: t.threshold
|
|
4529
4529
|
}
|
|
4530
|
-
} : y), s =
|
|
4530
|
+
} : y), s = A(
|
|
4531
4531
|
() => t.disable !== !0 && (Zn.value !== !0 || t.once !== !0 || t.ssrPrerender !== !0)
|
|
4532
|
-
), d =
|
|
4532
|
+
), d = A(() => [[
|
|
4533
4533
|
vb,
|
|
4534
4534
|
a.value,
|
|
4535
4535
|
void 0,
|
|
4536
4536
|
{ once: t.once }
|
|
4537
|
-
]]), h =
|
|
4537
|
+
]]), h = A(
|
|
4538
4538
|
() => `--q-transition-duration: ${t.transitionDuration}ms`
|
|
4539
4539
|
);
|
|
4540
4540
|
function y(m) {
|
|
4541
4541
|
u.value !== m.isIntersecting && (u.value = m.isIntersecting, t.onVisibility !== void 0 && i("visibility", u.value));
|
|
4542
4542
|
}
|
|
4543
|
-
function
|
|
4543
|
+
function x() {
|
|
4544
4544
|
if (u.value === !0)
|
|
4545
4545
|
return [q("div", { key: "content", style: h.value }, Ht(l.default))];
|
|
4546
4546
|
if (l.hidden !== void 0)
|
|
@@ -4550,8 +4550,8 @@ const mb = vt({
|
|
|
4550
4550
|
const m = t.transition ? [
|
|
4551
4551
|
q(yr, {
|
|
4552
4552
|
name: "q-transition--" + t.transition
|
|
4553
|
-
},
|
|
4554
|
-
] :
|
|
4553
|
+
}, x)
|
|
4554
|
+
] : x();
|
|
4555
4555
|
return ed(
|
|
4556
4556
|
t.tag,
|
|
4557
4557
|
{ class: "q-intersection" },
|
|
@@ -4572,7 +4572,7 @@ const mb = vt({
|
|
|
4572
4572
|
size: String
|
|
4573
4573
|
};
|
|
4574
4574
|
function to(t, l = Nu) {
|
|
4575
|
-
return
|
|
4575
|
+
return A(() => t.size !== void 0 ? { fontSize: t.size in l ? `${l[t.size]}px` : t.size } : null);
|
|
4576
4576
|
}
|
|
4577
4577
|
const pb = {
|
|
4578
4578
|
size: {
|
|
@@ -4583,8 +4583,8 @@ const pb = {
|
|
|
4583
4583
|
};
|
|
4584
4584
|
function _b(t) {
|
|
4585
4585
|
return {
|
|
4586
|
-
cSize:
|
|
4587
|
-
classes:
|
|
4586
|
+
cSize: A(() => t.size in Nu ? `${Nu[t.size]}px` : t.size),
|
|
4587
|
+
classes: A(
|
|
4588
4588
|
() => "q-spinner" + (t.color ? ` text-${t.color}` : "")
|
|
4589
4589
|
)
|
|
4590
4590
|
};
|
|
@@ -4622,7 +4622,7 @@ const Yu = vt({
|
|
|
4622
4622
|
ratio: [String, Number]
|
|
4623
4623
|
};
|
|
4624
4624
|
function yb(t, l) {
|
|
4625
|
-
return
|
|
4625
|
+
return A(() => {
|
|
4626
4626
|
const i = Number(
|
|
4627
4627
|
t.ratio || (l !== void 0 ? l.value : void 0)
|
|
4628
4628
|
);
|
|
@@ -4710,23 +4710,23 @@ const wb = 1.7778, Sb = vt({
|
|
|
4710
4710
|
},
|
|
4711
4711
|
emits: ["load", "error"],
|
|
4712
4712
|
setup(t, { slots: l, emit: i }) {
|
|
4713
|
-
const u = ie(t.initialRatio), a = yb(t, u), s = et(), { registerTimeout: d, removeTimeout: h } = $l(), { registerTimeout: y, removeTimeout:
|
|
4713
|
+
const u = ie(t.initialRatio), a = yb(t, u), s = et(), { registerTimeout: d, removeTimeout: h } = $l(), { registerTimeout: y, removeTimeout: x } = $l(), m = A(() => t.placeholderSrc !== void 0 ? { src: t.placeholderSrc } : null), C = A(() => t.errorSrc !== void 0 ? { src: t.errorSrc, __qerror: !0 } : null), O = [
|
|
4714
4714
|
ie(null),
|
|
4715
4715
|
ie(m.value)
|
|
4716
|
-
], b = ie(0), R = ie(!1), H = ie(!1), I =
|
|
4716
|
+
], b = ie(0), R = ie(!1), H = ie(!1), I = A(
|
|
4717
4717
|
() => `q-img q-img--${t.noNativeMenu === !0 ? "no-" : ""}menu`
|
|
4718
|
-
), W =
|
|
4718
|
+
), W = A(() => ({
|
|
4719
4719
|
width: t.width,
|
|
4720
4720
|
height: t.height
|
|
4721
|
-
})), U =
|
|
4721
|
+
})), U = A(
|
|
4722
4722
|
() => `q-img__image ${t.imgClass !== void 0 ? t.imgClass + " " : ""}q-img__image--with${t.noTransition === !0 ? "out" : ""}-transition q-img__image--`
|
|
4723
|
-
), D =
|
|
4723
|
+
), D = A(() => ({
|
|
4724
4724
|
...t.imgStyle,
|
|
4725
4725
|
objectFit: t.fit,
|
|
4726
4726
|
objectPosition: t.position
|
|
4727
4727
|
}));
|
|
4728
4728
|
function X() {
|
|
4729
|
-
if (
|
|
4729
|
+
if (x(), t.loadingShowDelay === 0) {
|
|
4730
4730
|
R.value = !0;
|
|
4731
4731
|
return;
|
|
4732
4732
|
}
|
|
@@ -4735,7 +4735,7 @@ const wb = 1.7778, Sb = vt({
|
|
|
4735
4735
|
}, t.loadingShowDelay);
|
|
4736
4736
|
}
|
|
4737
4737
|
function j() {
|
|
4738
|
-
|
|
4738
|
+
x(), R.value = !1;
|
|
4739
4739
|
}
|
|
4740
4740
|
function Q({ target: E }) {
|
|
4741
4741
|
Oi(s) === !1 && (h(), u.value = E.naturalHeight === 0 ? 0.5 : E.naturalWidth / E.naturalHeight, Y(E, 1));
|
|
@@ -4749,7 +4749,7 @@ const wb = 1.7778, Sb = vt({
|
|
|
4749
4749
|
Oi(s) !== !0 && (b.value = b.value ^ 1, O[b.value].value = null, j(), E.getAttribute("__qerror") !== "true" && (H.value = !1), i("load", E.currentSrc || E.src));
|
|
4750
4750
|
}
|
|
4751
4751
|
function V(E) {
|
|
4752
|
-
h(), j(), H.value = !0, O[b.value].value =
|
|
4752
|
+
h(), j(), H.value = !0, O[b.value].value = C.value, O[b.value ^ 1].value = m.value, i("error", E);
|
|
4753
4753
|
}
|
|
4754
4754
|
function N(E) {
|
|
4755
4755
|
const re = O[E].value, $ = {
|
|
@@ -4861,9 +4861,9 @@ const wb = 1.7778, Sb = vt({
|
|
|
4861
4861
|
right: Boolean
|
|
4862
4862
|
},
|
|
4863
4863
|
setup(t, { slots: l }) {
|
|
4864
|
-
const { proxy: { $q: i } } = et(), u = to(t), a =
|
|
4864
|
+
const { proxy: { $q: i } } = et(), u = to(t), a = A(
|
|
4865
4865
|
() => "q-icon" + (t.left === !0 ? " on-left" : "") + (t.right === !0 ? " on-right" : "") + (t.color !== void 0 ? ` text-${t.color}` : "")
|
|
4866
|
-
), s =
|
|
4866
|
+
), s = A(() => {
|
|
4867
4867
|
let d, h = t.name;
|
|
4868
4868
|
if (h === "none" || !h)
|
|
4869
4869
|
return { none: !0 };
|
|
@@ -4880,10 +4880,10 @@ const wb = 1.7778, Sb = vt({
|
|
|
4880
4880
|
};
|
|
4881
4881
|
}
|
|
4882
4882
|
if (Ab.test(h) === !0) {
|
|
4883
|
-
const [m,
|
|
4883
|
+
const [m, C = Wc] = h.split("|");
|
|
4884
4884
|
return {
|
|
4885
4885
|
svg: !0,
|
|
4886
|
-
viewBox:
|
|
4886
|
+
viewBox: C,
|
|
4887
4887
|
nodes: m.split("&&").map((O) => {
|
|
4888
4888
|
const [b, R, H] = O.split("@@");
|
|
4889
4889
|
return q("path", { style: R, d: b, transform: H });
|
|
@@ -4896,17 +4896,17 @@ const wb = 1.7778, Sb = vt({
|
|
|
4896
4896
|
src: h.substring(4)
|
|
4897
4897
|
};
|
|
4898
4898
|
if (Eb.test(h) === !0) {
|
|
4899
|
-
const [m,
|
|
4899
|
+
const [m, C = Wc] = h.split("|");
|
|
4900
4900
|
return {
|
|
4901
4901
|
svguse: !0,
|
|
4902
4902
|
src: m.substring(7),
|
|
4903
|
-
viewBox:
|
|
4903
|
+
viewBox: C
|
|
4904
4904
|
};
|
|
4905
4905
|
}
|
|
4906
4906
|
let y = " ";
|
|
4907
|
-
const
|
|
4908
|
-
if (
|
|
4909
|
-
d = nd[
|
|
4907
|
+
const x = h.match(xb);
|
|
4908
|
+
if (x !== null)
|
|
4909
|
+
d = nd[x[1]](h);
|
|
4910
4910
|
else if (Rb.test(h) === !0)
|
|
4911
4911
|
d = h;
|
|
4912
4912
|
else if (Tb.test(h) === !0)
|
|
@@ -4967,11 +4967,11 @@ const wb = 1.7778, Sb = vt({
|
|
|
4967
4967
|
if (u.value.multiple) {
|
|
4968
4968
|
let y = Qe.cloneDeep(l.value);
|
|
4969
4969
|
h.exclusive ? y = [h.value] : (y = y.filter(
|
|
4970
|
-
(
|
|
4971
|
-
var m,
|
|
4972
|
-
return !((
|
|
4970
|
+
(x) => {
|
|
4971
|
+
var m, C;
|
|
4972
|
+
return !((C = (m = u.value.options) == null ? void 0 : m.find((O) => O.value === x)) != null && C.exclusive);
|
|
4973
4973
|
}
|
|
4974
|
-
), y.includes(h.value) ? y = y.filter((
|
|
4974
|
+
), y.includes(h.value) ? y = y.filter((x) => x !== h.value) : y.push(h.value)), l.value = y;
|
|
4975
4975
|
} else
|
|
4976
4976
|
l.value = h.value;
|
|
4977
4977
|
}
|
|
@@ -4985,14 +4985,14 @@ const wb = 1.7778, Sb = vt({
|
|
|
4985
4985
|
) : y = l.value === h.value, y;
|
|
4986
4986
|
}
|
|
4987
4987
|
return (h, y) => {
|
|
4988
|
-
const
|
|
4988
|
+
const x = Rf("ControlLabel");
|
|
4989
4989
|
return K(), ce(ze, null, [
|
|
4990
|
-
|
|
4990
|
+
Me(u).label ? (K(), Ye(x, {
|
|
4991
4991
|
key: 0,
|
|
4992
|
-
label:
|
|
4992
|
+
label: Me(u).label
|
|
4993
4993
|
}, null, 8, ["label"])) : ct("", !0),
|
|
4994
4994
|
we("div", kb, [
|
|
4995
|
-
(K(!0), ce(ze, null, kt(
|
|
4995
|
+
(K(!0), ce(ze, null, kt(Me(u).options, (m, C) => (K(), ce(ze, { key: C }, [
|
|
4996
4996
|
m.image ? (K(), ce("div", {
|
|
4997
4997
|
key: 0,
|
|
4998
4998
|
class: jr(`image-card ${s(m)}`),
|
|
@@ -5038,10 +5038,10 @@ const wb = 1.7778, Sb = vt({
|
|
|
5038
5038
|
}
|
|
5039
5039
|
};
|
|
5040
5040
|
function ti(t, l) {
|
|
5041
|
-
return
|
|
5041
|
+
return A(() => t.dark === null ? l.dark.isActive : t.dark);
|
|
5042
5042
|
}
|
|
5043
5043
|
function Vb(t, l) {
|
|
5044
|
-
const i = ie(null), u =
|
|
5044
|
+
const i = ie(null), u = A(() => t.disable === !0 ? null : q("span", {
|
|
5045
5045
|
ref: i,
|
|
5046
5046
|
class: "no-outline",
|
|
5047
5047
|
tabindex: -1
|
|
@@ -5069,7 +5069,7 @@ function $b(t = {}) {
|
|
|
5069
5069
|
};
|
|
5070
5070
|
}
|
|
5071
5071
|
function ld(t) {
|
|
5072
|
-
return
|
|
5072
|
+
return A(() => t.name || t.for);
|
|
5073
5073
|
}
|
|
5074
5074
|
const Db = {
|
|
5075
5075
|
xs: 30,
|
|
@@ -5168,19 +5168,19 @@ const ad = {
|
|
|
5168
5168
|
tabindex: [String, Number]
|
|
5169
5169
|
}, sd = ["update:modelValue"];
|
|
5170
5170
|
function cd(t, l) {
|
|
5171
|
-
const { props: i, slots: u, emit: a, proxy: s } = et(), { $q: d } = s, h = ti(i, d), y = ie(null), { refocusTargetEl:
|
|
5171
|
+
const { props: i, slots: u, emit: a, proxy: s } = et(), { $q: d } = s, h = ti(i, d), y = ie(null), { refocusTargetEl: x, refocusTarget: m } = Vb(i, y), C = to(i, Db), O = A(
|
|
5172
5172
|
() => i.val !== void 0 && Array.isArray(i.modelValue)
|
|
5173
|
-
), b =
|
|
5173
|
+
), b = A(() => {
|
|
5174
5174
|
const E = Nr(i.val);
|
|
5175
5175
|
return O.value === !0 ? i.modelValue.findIndex((re) => Nr(re) === E) : -1;
|
|
5176
|
-
}), R =
|
|
5176
|
+
}), R = A(() => O.value === !0 ? b.value !== -1 : Nr(i.modelValue) === Nr(i.trueValue)), H = A(() => O.value === !0 ? b.value === -1 : Nr(i.modelValue) === Nr(i.falseValue)), I = A(
|
|
5177
5177
|
() => R.value === !1 && H.value === !1
|
|
5178
|
-
), W =
|
|
5178
|
+
), W = A(() => i.disable === !0 ? -1 : i.tabindex || 0), U = A(
|
|
5179
5179
|
() => `q-${t} cursor-pointer no-outline row inline no-wrap items-center` + (i.disable === !0 ? " disabled" : "") + (h.value === !0 ? ` q-${t}--dark` : "") + (i.dense === !0 ? ` q-${t}--dense` : "") + (i.leftLabel === !0 ? " reverse" : "")
|
|
5180
|
-
), D =
|
|
5180
|
+
), D = A(() => {
|
|
5181
5181
|
const E = R.value === !0 ? "truthy" : H.value === !0 ? "falsy" : "indet", re = i.color !== void 0 && (i.keepColor === !0 || (t === "toggle" ? R.value === !0 : H.value !== !0)) ? ` text-${i.color}` : "";
|
|
5182
5182
|
return `q-${t}__inner relative-position non-selectable q-${t}__inner--${E}${re}`;
|
|
5183
|
-
}), X =
|
|
5183
|
+
}), X = A(() => {
|
|
5184
5184
|
const E = { type: "checkbox" };
|
|
5185
5185
|
return i.name !== void 0 && Object.assign(E, {
|
|
5186
5186
|
// see https://vuejs.org/guide/extras/render-function.html#creating-vnodes (.prop)
|
|
@@ -5189,7 +5189,7 @@ function cd(t, l) {
|
|
|
5189
5189
|
name: i.name,
|
|
5190
5190
|
value: O.value === !0 ? i.val : i.trueValue
|
|
5191
5191
|
}), E;
|
|
5192
|
-
}), j = $b(X), Q =
|
|
5192
|
+
}), j = $b(X), Q = A(() => {
|
|
5193
5193
|
const E = {
|
|
5194
5194
|
tabindex: W.value,
|
|
5195
5195
|
role: t === "toggle" ? "switch" : "checkbox",
|
|
@@ -5236,11 +5236,11 @@ function cd(t, l) {
|
|
|
5236
5236
|
const re = [
|
|
5237
5237
|
q("div", {
|
|
5238
5238
|
class: D.value,
|
|
5239
|
-
style:
|
|
5239
|
+
style: C.value,
|
|
5240
5240
|
"aria-hidden": "true"
|
|
5241
5241
|
}, E)
|
|
5242
5242
|
];
|
|
5243
|
-
|
|
5243
|
+
x.value !== null && re.push(x.value);
|
|
5244
5244
|
const $ = i.label !== void 0 ? gr(u.default, [i.label]) : Ht(u.default);
|
|
5245
5245
|
return $ !== void 0 && re.push(
|
|
5246
5246
|
q("div", {
|
|
@@ -5280,7 +5280,7 @@ const Ub = q("div", {
|
|
|
5280
5280
|
emits: sd,
|
|
5281
5281
|
setup(t) {
|
|
5282
5282
|
function l(i, u) {
|
|
5283
|
-
const a =
|
|
5283
|
+
const a = A(
|
|
5284
5284
|
() => (i.value === !0 ? t.checkedIcon : u.value === !0 ? t.indeterminateIcon : t.uncheckedIcon) || null
|
|
5285
5285
|
);
|
|
5286
5286
|
return () => a.value !== null ? [
|
|
@@ -5327,9 +5327,9 @@ const Ub = q("div", {
|
|
|
5327
5327
|
emits: sd,
|
|
5328
5328
|
setup(t) {
|
|
5329
5329
|
function l(i, u) {
|
|
5330
|
-
const a =
|
|
5330
|
+
const a = A(
|
|
5331
5331
|
() => (i.value === !0 ? t.checkedIcon : u.value === !0 ? t.indeterminateIcon : t.uncheckedIcon) || t.icon
|
|
5332
|
-
), s =
|
|
5332
|
+
), s = A(() => i.value === !0 ? t.iconColor : null);
|
|
5333
5333
|
return () => [
|
|
5334
5334
|
q("div", { class: "q-toggle__track" }),
|
|
5335
5335
|
q(
|
|
@@ -5414,7 +5414,7 @@ function Kb({ getValue: t, required: l = !0 } = {}) {
|
|
|
5414
5414
|
i.value = Yc(u, l);
|
|
5415
5415
|
}), i;
|
|
5416
5416
|
}
|
|
5417
|
-
return t !== void 0 ?
|
|
5417
|
+
return t !== void 0 ? A(() => Yc(t(), l)) : ie(`f_${zu()}`);
|
|
5418
5418
|
}
|
|
5419
5419
|
const Qc = /^on[A-Z]/;
|
|
5420
5420
|
function jb() {
|
|
@@ -5501,11 +5501,11 @@ function ey(t, l) {
|
|
|
5501
5501
|
const { props: i, proxy: u } = et(), a = ie(!1), s = ie(null), d = ie(!1);
|
|
5502
5502
|
Zb({ validate: H, resetValidation: R });
|
|
5503
5503
|
let h = 0, y;
|
|
5504
|
-
const
|
|
5504
|
+
const x = A(
|
|
5505
5505
|
() => i.rules !== void 0 && i.rules !== null && i.rules.length !== 0
|
|
5506
|
-
), m =
|
|
5506
|
+
), m = A(() => i.disable !== !0 && x.value === !0 && l.value === !1), C = A(
|
|
5507
5507
|
() => i.error === !0 || a.value === !0
|
|
5508
|
-
), O =
|
|
5508
|
+
), O = A(() => typeof i.errorMessage == "string" && i.errorMessage.length !== 0 ? i.errorMessage : s.value);
|
|
5509
5509
|
Te(() => i.modelValue, () => {
|
|
5510
5510
|
d.value = !0, m.value === !0 && i.lazyRules === !1 && I();
|
|
5511
5511
|
});
|
|
@@ -5521,7 +5521,7 @@ function ey(t, l) {
|
|
|
5521
5521
|
h++, l.value = !1, d.value = !1, a.value = !1, s.value = null, I.cancel();
|
|
5522
5522
|
}
|
|
5523
5523
|
function H(W = i.modelValue) {
|
|
5524
|
-
if (i.disable === !0 ||
|
|
5524
|
+
if (i.disable === !0 || x.value === !1)
|
|
5525
5525
|
return !0;
|
|
5526
5526
|
const U = ++h, D = l.value !== !0 ? () => {
|
|
5527
5527
|
d.value = !0;
|
|
@@ -5549,10 +5549,10 @@ function ey(t, l) {
|
|
|
5549
5549
|
const I = vd(H, 0);
|
|
5550
5550
|
return Lt(() => {
|
|
5551
5551
|
y !== void 0 && y(), I.cancel();
|
|
5552
|
-
}), Object.assign(u, { resetValidation: R, validate: H }), Jl(u, "hasError", () =>
|
|
5552
|
+
}), Object.assign(u, { resetValidation: R, validate: H }), Jl(u, "hasError", () => C.value), {
|
|
5553
5553
|
isDirtyModel: d,
|
|
5554
|
-
hasRules:
|
|
5555
|
-
hasError:
|
|
5554
|
+
hasRules: x,
|
|
5555
|
+
hasError: C,
|
|
5556
5556
|
errorMessage: O,
|
|
5557
5557
|
validate: H,
|
|
5558
5558
|
resetValidation: R
|
|
@@ -5620,9 +5620,9 @@ function Xu({ requiredForAttr: t = !0, tagProp: l, changeEvent: i = !1 } = {}) {
|
|
|
5620
5620
|
return {
|
|
5621
5621
|
requiredForAttr: t,
|
|
5622
5622
|
changeEvent: i,
|
|
5623
|
-
tag: l === !0 ?
|
|
5623
|
+
tag: l === !0 ? A(() => u.tag) : { value: "label" },
|
|
5624
5624
|
isDark: s,
|
|
5625
|
-
editable:
|
|
5625
|
+
editable: A(
|
|
5626
5626
|
() => u.disable !== !0 && u.readonly !== !0
|
|
5627
5627
|
),
|
|
5628
5628
|
innerLoading: ie(!1),
|
|
@@ -5656,7 +5656,7 @@ function Xu({ requiredForAttr: t = !0, tagProp: l, changeEvent: i = !1 } = {}) {
|
|
|
5656
5656
|
function Ju(t) {
|
|
5657
5657
|
const { props: l, emit: i, slots: u, attrs: a, proxy: s } = et(), { $q: d } = s;
|
|
5658
5658
|
let h = null;
|
|
5659
|
-
t.hasValue === void 0 && (t.hasValue =
|
|
5659
|
+
t.hasValue === void 0 && (t.hasValue = A(() => Ri(l.modelValue))), t.emitValue === void 0 && (t.emitValue = (G) => {
|
|
5660
5660
|
i("update:modelValue", G);
|
|
5661
5661
|
}), t.controlEvents === void 0 && (t.controlEvents = {
|
|
5662
5662
|
onFocusin: V,
|
|
@@ -5666,7 +5666,7 @@ function Ju(t) {
|
|
|
5666
5666
|
onControlFocusin: V,
|
|
5667
5667
|
onControlFocusout: N,
|
|
5668
5668
|
focus: Y
|
|
5669
|
-
}), t.computedCounter === void 0 && (t.computedCounter =
|
|
5669
|
+
}), t.computedCounter === void 0 && (t.computedCounter = A(() => {
|
|
5670
5670
|
if (l.counter !== !1) {
|
|
5671
5671
|
const G = typeof l.modelValue == "string" || typeof l.modelValue == "number" ? ("" + l.modelValue).length : Array.isArray(l.modelValue) === !0 ? l.modelValue.length : 0, ve = l.maxlength !== void 0 ? l.maxlength : l.maxValues;
|
|
5672
5672
|
return G + (ve !== void 0 ? " / " + ve : "");
|
|
@@ -5674,28 +5674,28 @@ function Ju(t) {
|
|
|
5674
5674
|
}));
|
|
5675
5675
|
const {
|
|
5676
5676
|
isDirtyModel: y,
|
|
5677
|
-
hasRules:
|
|
5677
|
+
hasRules: x,
|
|
5678
5678
|
hasError: m,
|
|
5679
|
-
errorMessage:
|
|
5679
|
+
errorMessage: C,
|
|
5680
5680
|
resetValidation: O
|
|
5681
|
-
} = ey(t.focused, t.innerLoading), b = t.floatingLabel !== void 0 ?
|
|
5682
|
-
() => l.bottomSlots === !0 || l.hint !== void 0 ||
|
|
5683
|
-
), H =
|
|
5681
|
+
} = ey(t.focused, t.innerLoading), b = t.floatingLabel !== void 0 ? A(() => l.stackLabel === !0 || t.focused.value === !0 || t.floatingLabel.value === !0) : A(() => l.stackLabel === !0 || t.focused.value === !0 || t.hasValue.value === !0), R = A(
|
|
5682
|
+
() => l.bottomSlots === !0 || l.hint !== void 0 || x.value === !0 || l.counter === !0 || l.error !== null
|
|
5683
|
+
), H = A(() => l.filled === !0 ? "filled" : l.outlined === !0 ? "outlined" : l.borderless === !0 ? "borderless" : l.standout ? "standout" : "standard"), I = A(
|
|
5684
5684
|
() => `q-field row no-wrap items-start q-field--${H.value}` + (t.fieldClass !== void 0 ? ` ${t.fieldClass.value}` : "") + (l.rounded === !0 ? " q-field--rounded" : "") + (l.square === !0 ? " q-field--square" : "") + (b.value === !0 ? " q-field--float" : "") + (U.value === !0 ? " q-field--labeled" : "") + (l.dense === !0 ? " q-field--dense" : "") + (l.itemAligned === !0 ? " q-field--item-aligned q-item-type" : "") + (t.isDark.value === !0 ? " q-field--dark" : "") + (t.getControl === void 0 ? " q-field--auto-height" : "") + (t.focused.value === !0 ? " q-field--focused" : "") + (m.value === !0 ? " q-field--error" : "") + (m.value === !0 || t.focused.value === !0 ? " q-field--highlighted" : "") + (l.hideBottomSpace !== !0 && R.value === !0 ? " q-field--with-bottom" : "") + (l.disable === !0 ? " q-field--disabled" : l.readonly === !0 ? " q-field--readonly" : "")
|
|
5685
|
-
), W =
|
|
5685
|
+
), W = A(
|
|
5686
5686
|
() => "q-field__control relative-position row no-wrap" + (l.bgColor !== void 0 ? ` bg-${l.bgColor}` : "") + (m.value === !0 ? " text-negative" : typeof l.standout == "string" && l.standout.length !== 0 && t.focused.value === !0 ? ` ${l.standout}` : l.color !== void 0 ? ` text-${l.color}` : "")
|
|
5687
|
-
), U =
|
|
5687
|
+
), U = A(
|
|
5688
5688
|
() => l.labelSlot === !0 || l.label !== void 0
|
|
5689
|
-
), D =
|
|
5689
|
+
), D = A(
|
|
5690
5690
|
() => "q-field__label no-pointer-events absolute ellipsis" + (l.labelColor !== void 0 && m.value !== !0 ? ` text-${l.labelColor}` : "")
|
|
5691
|
-
), X =
|
|
5691
|
+
), X = A(() => ({
|
|
5692
5692
|
id: t.targetUid.value,
|
|
5693
5693
|
editable: t.editable.value,
|
|
5694
5694
|
focused: t.focused.value,
|
|
5695
5695
|
floatingLabel: b.value,
|
|
5696
5696
|
modelValue: l.modelValue,
|
|
5697
5697
|
emitValue: t.emitValue
|
|
5698
|
-
})), j =
|
|
5698
|
+
})), j = A(() => {
|
|
5699
5699
|
const G = {};
|
|
5700
5700
|
return t.targetUid.value && (G.for = t.targetUid.value), l.disable === !0 && (G["aria-disabled"] = "true"), G;
|
|
5701
5701
|
});
|
|
@@ -5803,7 +5803,7 @@ function Ju(t) {
|
|
|
5803
5803
|
}
|
|
5804
5804
|
function fe() {
|
|
5805
5805
|
let G, ve;
|
|
5806
|
-
m.value === !0 ?
|
|
5806
|
+
m.value === !0 ? C.value !== null ? (G = [q("div", { role: "alert" }, C.value)], ve = `q--slot-error-${C.value}`) : (G = Ht(u.error), ve = "q--slot-error") : (l.hideHint !== !0 || t.focused.value === !0) && (l.hint !== void 0 ? (G = [q("div", l.hint)], ve = `q--slot-hint-${l.hint}`) : (G = Ht(u.hint), ve = "q--slot-hint"));
|
|
5807
5807
|
const be = l.counter === !0 || u.counter !== void 0;
|
|
5808
5808
|
if (l.hideBottomSpace === !0 && be === !1 && G === void 0)
|
|
5809
5809
|
return;
|
|
@@ -5905,22 +5905,22 @@ const iy = new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|([" + gd.jo
|
|
|
5905
5905
|
unmaskedValue: Boolean
|
|
5906
5906
|
};
|
|
5907
5907
|
function oy(t, l, i, u) {
|
|
5908
|
-
let a, s, d, h, y,
|
|
5909
|
-
const m = ie(null),
|
|
5908
|
+
let a, s, d, h, y, x;
|
|
5909
|
+
const m = ie(null), C = ie(b());
|
|
5910
5910
|
function O() {
|
|
5911
5911
|
return t.autogrow === !0 || ["textarea", "text", "search", "url", "tel", "password"].includes(t.type);
|
|
5912
5912
|
}
|
|
5913
5913
|
Te(() => t.type + t.autogrow, H), Te(() => t.mask, (V) => {
|
|
5914
5914
|
if (V !== void 0)
|
|
5915
|
-
I(
|
|
5915
|
+
I(C.value, !0);
|
|
5916
5916
|
else {
|
|
5917
|
-
const N = Y(
|
|
5917
|
+
const N = Y(C.value);
|
|
5918
5918
|
H(), t.modelValue !== N && l("update:modelValue", N);
|
|
5919
5919
|
}
|
|
5920
5920
|
}), Te(() => t.fillMask + t.reverseFillMask, () => {
|
|
5921
|
-
m.value === !0 && I(
|
|
5921
|
+
m.value === !0 && I(C.value, !0);
|
|
5922
5922
|
}), Te(() => t.unmaskedValue, () => {
|
|
5923
|
-
m.value === !0 && I(
|
|
5923
|
+
m.value === !0 && I(C.value);
|
|
5924
5924
|
});
|
|
5925
5925
|
function b() {
|
|
5926
5926
|
if (H(), m.value === !0) {
|
|
@@ -5980,8 +5980,8 @@ function oy(t, l, i, u) {
|
|
|
5980
5980
|
function I(V, N, J) {
|
|
5981
5981
|
const E = u.value, re = E.selectionEnd, $ = E.value.length - re, fe = Y(V);
|
|
5982
5982
|
N === !0 && H();
|
|
5983
|
-
const de = j(fe), ge = t.fillMask !== !1 ? ae(de) : de, G =
|
|
5984
|
-
E.value !== ge && (E.value = ge), G === !0 && (
|
|
5983
|
+
const de = j(fe), ge = t.fillMask !== !1 ? ae(de) : de, G = C.value !== ge;
|
|
5984
|
+
E.value !== ge && (E.value = ge), G === !0 && (C.value = ge), document.activeElement === E && at(() => {
|
|
5985
5985
|
if (ge === s) {
|
|
5986
5986
|
const be = t.reverseFillMask === !0 ? s.length : 0;
|
|
5987
5987
|
E.setSelectionRange(be, be, "forward");
|
|
@@ -6075,18 +6075,18 @@ function oy(t, l, i, u) {
|
|
|
6075
6075
|
}
|
|
6076
6076
|
};
|
|
6077
6077
|
function D(V) {
|
|
6078
|
-
l("click", V),
|
|
6078
|
+
l("click", V), x = void 0;
|
|
6079
6079
|
}
|
|
6080
6080
|
function X(V) {
|
|
6081
6081
|
if (l("keydown", V), ea(V) === !0 || V.altKey === !0)
|
|
6082
6082
|
return;
|
|
6083
6083
|
const N = u.value, J = N.selectionStart, E = N.selectionEnd;
|
|
6084
|
-
if (V.shiftKey || (
|
|
6085
|
-
V.shiftKey &&
|
|
6084
|
+
if (V.shiftKey || (x = void 0), V.keyCode === 37 || V.keyCode === 39) {
|
|
6085
|
+
V.shiftKey && x === void 0 && (x = N.selectionDirection === "forward" ? J : E);
|
|
6086
6086
|
const re = U[(V.keyCode === 39 ? "right" : "left") + (t.reverseFillMask === !0 ? "Reverse" : "")];
|
|
6087
|
-
if (V.preventDefault(), re(N,
|
|
6087
|
+
if (V.preventDefault(), re(N, x === J ? E : J), V.shiftKey) {
|
|
6088
6088
|
const $ = N.selectionStart;
|
|
6089
|
-
N.setSelectionRange(Math.min(
|
|
6089
|
+
N.setSelectionRange(Math.min(x, $), Math.max(x, $), "forward");
|
|
6090
6090
|
}
|
|
6091
6091
|
} else V.keyCode === 8 && t.reverseFillMask !== !0 && J === E ? (U.left(N, J), N.setSelectionRange(N.selectionStart, E, "backward")) : V.keyCode === 46 && t.reverseFillMask === !0 && J === E && (U.rightReverse(N, E), N.setSelectionRange(J, N.selectionEnd, "forward"));
|
|
6092
6092
|
}
|
|
@@ -6132,7 +6132,7 @@ function oy(t, l, i, u) {
|
|
|
6132
6132
|
return s.length - V.length <= 0 ? V : t.reverseFillMask === !0 && V.length !== 0 ? s.slice(0, -V.length) + V : V + s.slice(V.length);
|
|
6133
6133
|
}
|
|
6134
6134
|
return {
|
|
6135
|
-
innerValue:
|
|
6135
|
+
innerValue: C,
|
|
6136
6136
|
hasMask: m,
|
|
6137
6137
|
moveCursorForPaste: W,
|
|
6138
6138
|
updateMaskValue: I,
|
|
@@ -6156,7 +6156,7 @@ function uy(t, l) {
|
|
|
6156
6156
|
};
|
|
6157
6157
|
}
|
|
6158
6158
|
}
|
|
6159
|
-
return
|
|
6159
|
+
return A(() => {
|
|
6160
6160
|
if (t.type === "file")
|
|
6161
6161
|
return i();
|
|
6162
6162
|
});
|
|
@@ -6200,21 +6200,21 @@ const pd = vt({
|
|
|
6200
6200
|
],
|
|
6201
6201
|
setup(t, { emit: l, attrs: i }) {
|
|
6202
6202
|
const { proxy: u } = et(), { $q: a } = u, s = {};
|
|
6203
|
-
let d = NaN, h, y,
|
|
6204
|
-
const
|
|
6203
|
+
let d = NaN, h, y, x = null, m;
|
|
6204
|
+
const C = ie(null), O = ld(t), {
|
|
6205
6205
|
innerValue: b,
|
|
6206
6206
|
hasMask: R,
|
|
6207
6207
|
moveCursorForPaste: H,
|
|
6208
6208
|
updateMaskValue: I,
|
|
6209
6209
|
onMaskedKeydown: W,
|
|
6210
6210
|
onMaskedClick: U
|
|
6211
|
-
} = oy(t, l, de,
|
|
6211
|
+
} = oy(t, l, de, C), D = uy(
|
|
6212
6212
|
t
|
|
6213
|
-
), X =
|
|
6213
|
+
), X = A(() => Ri(b.value)), j = md($), Q = Xu({ changeEvent: !0 }), Y = A(
|
|
6214
6214
|
() => t.type === "textarea" || t.autogrow === !0
|
|
6215
|
-
), ae =
|
|
6215
|
+
), ae = A(
|
|
6216
6216
|
() => Y.value === !0 || ["text", "search", "url", "tel", "password"].includes(t.type)
|
|
6217
|
-
), V =
|
|
6217
|
+
), V = A(() => {
|
|
6218
6218
|
const T = {
|
|
6219
6219
|
...Q.splitAttrs.listeners.value,
|
|
6220
6220
|
onInput: $,
|
|
@@ -6228,7 +6228,7 @@ const pd = vt({
|
|
|
6228
6228
|
onFocus: _n
|
|
6229
6229
|
};
|
|
6230
6230
|
return T.onCompositionstart = T.onCompositionupdate = T.onCompositionend = j, R.value === !0 && (T.onKeydown = W, T.onClick = U), t.autogrow === !0 && (T.onAnimationend = fe), T;
|
|
6231
|
-
}), N =
|
|
6231
|
+
}), N = A(() => {
|
|
6232
6232
|
const T = {
|
|
6233
6233
|
tabindex: 0,
|
|
6234
6234
|
"data-autofocus": t.autofocus === !0 || void 0,
|
|
@@ -6244,7 +6244,7 @@ const pd = vt({
|
|
|
6244
6244
|
return Y.value === !1 && (T.type = t.type), t.autogrow === !0 && (T.rows = 1), T;
|
|
6245
6245
|
});
|
|
6246
6246
|
Te(() => t.type, () => {
|
|
6247
|
-
|
|
6247
|
+
C.value && (C.value.value = t.modelValue);
|
|
6248
6248
|
}), Te(() => t.modelValue, (T) => {
|
|
6249
6249
|
if (R.value === !0) {
|
|
6250
6250
|
if (y === !0 && (y = !1, String(T) === d))
|
|
@@ -6253,18 +6253,18 @@ const pd = vt({
|
|
|
6253
6253
|
} else b.value !== T && (b.value = T, t.type === "number" && s.hasOwnProperty("value") === !0 && (h === !0 ? h = !1 : delete s.value));
|
|
6254
6254
|
t.autogrow === !0 && at(ge);
|
|
6255
6255
|
}), Te(() => t.autogrow, (T) => {
|
|
6256
|
-
T === !0 ? at(ge) :
|
|
6256
|
+
T === !0 ? at(ge) : C.value !== null && i.rows > 0 && (C.value.style.height = "auto");
|
|
6257
6257
|
}), Te(() => t.dense, () => {
|
|
6258
6258
|
t.autogrow === !0 && at(ge);
|
|
6259
6259
|
});
|
|
6260
6260
|
function J() {
|
|
6261
6261
|
no(() => {
|
|
6262
6262
|
const T = document.activeElement;
|
|
6263
|
-
|
|
6263
|
+
C.value !== null && C.value !== T && (T === null || T.id !== Q.targetUid.value) && C.value.focus({ preventScroll: !0 });
|
|
6264
6264
|
});
|
|
6265
6265
|
}
|
|
6266
6266
|
function E() {
|
|
6267
|
-
|
|
6267
|
+
C.value !== null && C.value.select();
|
|
6268
6268
|
}
|
|
6269
6269
|
function re(T) {
|
|
6270
6270
|
if (R.value === !0 && t.reverseFillMask !== !0) {
|
|
@@ -6300,14 +6300,14 @@ const pd = vt({
|
|
|
6300
6300
|
}
|
|
6301
6301
|
function de(T, ue) {
|
|
6302
6302
|
m = () => {
|
|
6303
|
-
|
|
6303
|
+
x = null, t.type !== "number" && s.hasOwnProperty("value") === !0 && delete s.value, t.modelValue !== T && d !== T && (d = T, ue === !0 && (y = !0), l("update:modelValue", T), at(() => {
|
|
6304
6304
|
d === T && (d = NaN);
|
|
6305
6305
|
})), m = void 0;
|
|
6306
|
-
}, t.type === "number" && (h = !0, s.value = T), t.debounce !== void 0 ? (
|
|
6306
|
+
}, t.type === "number" && (h = !0, s.value = T), t.debounce !== void 0 ? (x !== null && clearTimeout(x), s.value = T, x = setTimeout(m, t.debounce)) : m();
|
|
6307
6307
|
}
|
|
6308
6308
|
function ge() {
|
|
6309
6309
|
requestAnimationFrame(() => {
|
|
6310
|
-
const T =
|
|
6310
|
+
const T = C.value;
|
|
6311
6311
|
if (T !== null) {
|
|
6312
6312
|
const ue = T.parentNode.style, { scrollTop: Se } = T, { overflowY: xe, maxHeight: z } = a.platform.is.firefox === !0 ? {} : window.getComputedStyle(T), le = xe !== void 0 && xe !== "scroll";
|
|
6313
6313
|
le === !0 && (T.style.overflowY = "hidden"), ue.marginBottom = T.scrollHeight - 1 + "px", T.style.height = "1px", T.style.height = T.scrollHeight + "px", le === !0 && (T.style.overflowY = parseInt(z, 10) < T.scrollHeight ? "auto" : "hidden"), ue.marginBottom = "", T.scrollTop = Se;
|
|
@@ -6315,11 +6315,11 @@ const pd = vt({
|
|
|
6315
6315
|
});
|
|
6316
6316
|
}
|
|
6317
6317
|
function G(T) {
|
|
6318
|
-
j(T),
|
|
6318
|
+
j(T), x !== null && (clearTimeout(x), x = null), m !== void 0 && m(), l("change", T.target.value);
|
|
6319
6319
|
}
|
|
6320
6320
|
function ve(T) {
|
|
6321
|
-
T !== void 0 && _n(T),
|
|
6322
|
-
|
|
6321
|
+
T !== void 0 && _n(T), x !== null && (clearTimeout(x), x = null), m !== void 0 && m(), h = !1, y = !1, delete s.value, t.type !== "file" && setTimeout(() => {
|
|
6322
|
+
C.value !== null && (C.value.value = b.value !== void 0 ? b.value : "");
|
|
6323
6323
|
});
|
|
6324
6324
|
}
|
|
6325
6325
|
function be() {
|
|
@@ -6331,20 +6331,20 @@ const pd = vt({
|
|
|
6331
6331
|
t.autogrow === !0 && ge();
|
|
6332
6332
|
}), Object.assign(Q, {
|
|
6333
6333
|
innerValue: b,
|
|
6334
|
-
fieldClass:
|
|
6334
|
+
fieldClass: A(
|
|
6335
6335
|
() => `q-${Y.value === !0 ? "textarea" : "input"}` + (t.autogrow === !0 ? " q-textarea--autogrow" : "")
|
|
6336
6336
|
),
|
|
6337
|
-
hasShadow:
|
|
6337
|
+
hasShadow: A(
|
|
6338
6338
|
() => t.type !== "file" && typeof t.shadowText == "string" && t.shadowText.length !== 0
|
|
6339
6339
|
),
|
|
6340
|
-
inputRef:
|
|
6340
|
+
inputRef: C,
|
|
6341
6341
|
emitValue: de,
|
|
6342
6342
|
hasValue: X,
|
|
6343
|
-
floatingLabel:
|
|
6343
|
+
floatingLabel: A(
|
|
6344
6344
|
() => X.value === !0 && (t.type !== "number" || isNaN(b.value) === !1) || Ri(t.displayValue)
|
|
6345
6345
|
),
|
|
6346
6346
|
getControl: () => q(Y.value === !0 ? "textarea" : "input", {
|
|
6347
|
-
ref:
|
|
6347
|
+
ref: C,
|
|
6348
6348
|
class: [
|
|
6349
6349
|
"q-field__native q-placeholder",
|
|
6350
6350
|
t.inputClass
|
|
@@ -6365,9 +6365,9 @@ const pd = vt({
|
|
|
6365
6365
|
return Object.assign(u, {
|
|
6366
6366
|
focus: J,
|
|
6367
6367
|
select: E,
|
|
6368
|
-
getNativeElement: () =>
|
|
6368
|
+
getNativeElement: () => C.value
|
|
6369
6369
|
// deprecated
|
|
6370
|
-
}), Jl(u, "nativeEl", () =>
|
|
6370
|
+
}), Jl(u, "nativeEl", () => C.value), k;
|
|
6371
6371
|
}
|
|
6372
6372
|
}), io = vt({
|
|
6373
6373
|
name: "QCard",
|
|
@@ -6382,7 +6382,7 @@ const pd = vt({
|
|
|
6382
6382
|
bordered: Boolean
|
|
6383
6383
|
},
|
|
6384
6384
|
setup(t, { slots: l }) {
|
|
6385
|
-
const { proxy: { $q: i } } = et(), u = ti(t, i), a =
|
|
6385
|
+
const { proxy: { $q: i } } = et(), u = ti(t, i), a = A(
|
|
6386
6386
|
() => "q-card" + (u.value === !0 ? " q-card--dark q-dark" : "") + (t.bordered === !0 ? " q-card--bordered" : "") + (t.square === !0 ? " q-card--square no-border-radius" : "") + (t.flat === !0 ? " q-card--flat no-shadow" : "")
|
|
6387
6387
|
);
|
|
6388
6388
|
return () => q(t.tag, { class: a.value }, Ht(l.default));
|
|
@@ -6419,14 +6419,14 @@ const pd = vt({
|
|
|
6419
6419
|
}),
|
|
6420
6420
|
emits: ["update:modelValue"],
|
|
6421
6421
|
setup(t, { expose: l }) {
|
|
6422
|
-
const i = Jn(t, "modelValue"), u = t, a = ie(!1), s =
|
|
6422
|
+
const i = Jn(t, "modelValue"), u = t, a = ie(!1), s = A(() => u.transparent ? "glass-card" : "win-card"), d = A(() => u.label === "" ? void 0 : u.label), h = A(() => {
|
|
6423
6423
|
let b = "width: 100%; padding-left: 10px; padding-right: 10px;";
|
|
6424
6424
|
return u.inputHeight && (b += "height: " + u.inputHeight), b;
|
|
6425
|
-
}), y =
|
|
6425
|
+
}), y = A(() => i.value || a.value ? "17.5px" : "15px"), x = ie(null);
|
|
6426
6426
|
function m() {
|
|
6427
|
-
|
|
6427
|
+
x.value.focus();
|
|
6428
6428
|
}
|
|
6429
|
-
function
|
|
6429
|
+
function C() {
|
|
6430
6430
|
a.value = !0;
|
|
6431
6431
|
}
|
|
6432
6432
|
function O() {
|
|
@@ -6452,7 +6452,7 @@ const pd = vt({
|
|
|
6452
6452
|
modelValue: i.value,
|
|
6453
6453
|
"onUpdate:modelValue": R[0] || (R[0] = (H) => i.value = H),
|
|
6454
6454
|
ref_key: "inputRef",
|
|
6455
|
-
ref:
|
|
6455
|
+
ref: x,
|
|
6456
6456
|
"label-color": "black",
|
|
6457
6457
|
"input-class": `text-black ${d.value ? "" : "text-center ww-title"}`,
|
|
6458
6458
|
"input-style": b.inputStyle,
|
|
@@ -6471,7 +6471,7 @@ const pd = vt({
|
|
|
6471
6471
|
"unmasked-value": "",
|
|
6472
6472
|
"reverse-fill-mask": "",
|
|
6473
6473
|
placeholder: b.placeholder,
|
|
6474
|
-
onFocus:
|
|
6474
|
+
onFocus: C,
|
|
6475
6475
|
onBlur: O
|
|
6476
6476
|
}, {
|
|
6477
6477
|
label: dt(() => [
|
|
@@ -6522,7 +6522,7 @@ const pd = vt({
|
|
|
6522
6522
|
}),
|
|
6523
6523
|
emits: ["update:modelValue"],
|
|
6524
6524
|
setup(t) {
|
|
6525
|
-
const l = t, i = ie(null), u =
|
|
6525
|
+
const l = t, i = ie(null), u = A(() => {
|
|
6526
6526
|
var s;
|
|
6527
6527
|
return (s = l.control.controlType) == null ? void 0 : s.split("_")[1];
|
|
6528
6528
|
}), a = Jn(t, "modelValue");
|
|
@@ -6576,7 +6576,7 @@ function by(t) {
|
|
|
6576
6576
|
} catch {
|
|
6577
6577
|
return;
|
|
6578
6578
|
}
|
|
6579
|
-
const l =
|
|
6579
|
+
const l = Me(t);
|
|
6580
6580
|
if (l)
|
|
6581
6581
|
return l.$el || l;
|
|
6582
6582
|
}
|
|
@@ -6601,7 +6601,7 @@ function rf(t, l, i, u) {
|
|
|
6601
6601
|
const a = i.modifiers.color;
|
|
6602
6602
|
let s = i.modifiers.center;
|
|
6603
6603
|
s = s === !0 || u === !0;
|
|
6604
|
-
const d = document.createElement("span"), h = document.createElement("span"), y = od(t), { left:
|
|
6604
|
+
const d = document.createElement("span"), h = document.createElement("span"), y = od(t), { left: x, top: m, width: C, height: O } = l.getBoundingClientRect(), b = Math.sqrt(C * C + O * O), R = b / 2, H = `${(C - b) / 2}px`, I = s ? H : `${y.left - x - R}px`, W = `${(O - b) / 2}px`, U = s ? W : `${y.top - m - R}px`;
|
|
6605
6605
|
h.className = "q-ripple__inner", Hu(h, {
|
|
6606
6606
|
height: `${b}px`,
|
|
6607
6607
|
width: `${b}px`,
|
|
@@ -6684,7 +6684,7 @@ const bd = Xf(
|
|
|
6684
6684
|
}
|
|
6685
6685
|
};
|
|
6686
6686
|
function xy(t) {
|
|
6687
|
-
return
|
|
6687
|
+
return A(() => {
|
|
6688
6688
|
const l = t.align === void 0 ? t.vertical === !0 ? "stretch" : "left" : t.align;
|
|
6689
6689
|
return `${t.vertical === !0 ? "items" : "justify"}-${yd[l]}`;
|
|
6690
6690
|
});
|
|
@@ -6743,20 +6743,20 @@ const wd = {
|
|
|
6743
6743
|
}
|
|
6744
6744
|
};
|
|
6745
6745
|
function Sd({ fallbackTag: t, useDisableForRouterLinkProps: l = !0 } = {}) {
|
|
6746
|
-
const i = et(), { props: u, proxy: a, emit: s } = i, d = td(i), h =
|
|
6746
|
+
const i = et(), { props: u, proxy: a, emit: s } = i, d = td(i), h = A(() => u.disable !== !0 && u.href !== void 0), y = l === !0 ? A(
|
|
6747
6747
|
() => d === !0 && u.disable !== !0 && h.value !== !0 && u.to !== void 0 && u.to !== null && u.to !== ""
|
|
6748
|
-
) :
|
|
6748
|
+
) : A(
|
|
6749
6749
|
() => d === !0 && h.value !== !0 && u.to !== void 0 && u.to !== null && u.to !== ""
|
|
6750
|
-
),
|
|
6750
|
+
), x = A(() => y.value === !0 ? U(u.to) : null), m = A(() => x.value !== null), C = A(() => h.value === !0 || m.value === !0), O = A(() => u.type === "a" || C.value === !0 ? "a" : u.tag || t || "div"), b = A(() => h.value === !0 ? {
|
|
6751
6751
|
href: u.href,
|
|
6752
6752
|
target: u.target
|
|
6753
6753
|
} : m.value === !0 ? {
|
|
6754
|
-
href:
|
|
6754
|
+
href: x.value.href,
|
|
6755
6755
|
target: u.target
|
|
6756
|
-
} : {}), R =
|
|
6756
|
+
} : {}), R = A(() => {
|
|
6757
6757
|
if (m.value === !1)
|
|
6758
6758
|
return -1;
|
|
6759
|
-
const { matched: j } =
|
|
6759
|
+
const { matched: j } = x.value, { length: Q } = j, Y = j[Q - 1];
|
|
6760
6760
|
if (Y === void 0)
|
|
6761
6761
|
return -1;
|
|
6762
6762
|
const ae = a.$route.matched;
|
|
@@ -6774,11 +6774,11 @@ function Sd({ fallbackTag: t, useDisableForRouterLinkProps: l = !0 } = {}) {
|
|
|
6774
6774
|
uf.bind(null, j[Q - 2])
|
|
6775
6775
|
) : V
|
|
6776
6776
|
);
|
|
6777
|
-
}), H =
|
|
6778
|
-
() => m.value === !0 && R.value !== -1 && Cy(a.$route.params,
|
|
6779
|
-
), I =
|
|
6780
|
-
() => H.value === !0 && R.value === a.$route.matched.length - 1 && Oy(a.$route.params,
|
|
6781
|
-
), W =
|
|
6777
|
+
}), H = A(
|
|
6778
|
+
() => m.value === !0 && R.value !== -1 && Cy(a.$route.params, x.value.params)
|
|
6779
|
+
), I = A(
|
|
6780
|
+
() => H.value === !0 && R.value === a.$route.matched.length - 1 && Oy(a.$route.params, x.value.params)
|
|
6781
|
+
), W = A(() => m.value === !0 ? I.value === !0 ? ` ${u.exactActiveClass} ${u.activeClass}` : u.exact === !0 ? "" : H.value === !0 ? ` ${u.activeClass}` : "" : "");
|
|
6782
6782
|
function U(j) {
|
|
6783
6783
|
try {
|
|
6784
6784
|
return a.$router.resolve(j);
|
|
@@ -6811,9 +6811,9 @@ function Sd({ fallbackTag: t, useDisableForRouterLinkProps: l = !0 } = {}) {
|
|
|
6811
6811
|
return {
|
|
6812
6812
|
hasRouterLink: m,
|
|
6813
6813
|
hasHrefLink: h,
|
|
6814
|
-
hasLink:
|
|
6814
|
+
hasLink: C,
|
|
6815
6815
|
linkTag: O,
|
|
6816
|
-
resolvedLink:
|
|
6816
|
+
resolvedLink: x,
|
|
6817
6817
|
linkIsActive: H,
|
|
6818
6818
|
linkIsExactActive: I,
|
|
6819
6819
|
linkClass: W,
|
|
@@ -6889,31 +6889,31 @@ const My = {
|
|
|
6889
6889
|
function Py(t) {
|
|
6890
6890
|
const l = to(t, Ty), i = xy(t), { hasRouterLink: u, hasLink: a, linkTag: s, linkAttrs: d, navigateOnClick: h } = Sd({
|
|
6891
6891
|
fallbackTag: "button"
|
|
6892
|
-
}), y =
|
|
6892
|
+
}), y = A(() => {
|
|
6893
6893
|
const I = t.fab === !1 && t.fabMini === !1 ? l.value : {};
|
|
6894
6894
|
return t.padding !== void 0 ? Object.assign({}, I, {
|
|
6895
6895
|
padding: t.padding.split(/\s+/).map((W) => W in sf ? sf[W] + "px" : W).join(" "),
|
|
6896
6896
|
minWidth: "0",
|
|
6897
6897
|
minHeight: "0"
|
|
6898
6898
|
}) : I;
|
|
6899
|
-
}),
|
|
6899
|
+
}), x = A(
|
|
6900
6900
|
() => t.rounded === !0 || t.fab === !0 || t.fabMini === !0
|
|
6901
|
-
), m =
|
|
6901
|
+
), m = A(
|
|
6902
6902
|
() => t.disable !== !0 && t.loading !== !0
|
|
6903
|
-
),
|
|
6904
|
-
const I = { tabindex:
|
|
6903
|
+
), C = A(() => m.value === !0 ? t.tabindex || 0 : -1), O = A(() => Ly(t, "standard")), b = A(() => {
|
|
6904
|
+
const I = { tabindex: C.value };
|
|
6905
6905
|
return a.value === !0 ? Object.assign(I, d.value) : Ry.includes(t.type) === !0 && (I.type = t.type), s.value === "a" ? (t.disable === !0 ? I["aria-disabled"] = "true" : I.href === void 0 && (I.role = "button"), u.value !== !0 && ky.test(t.type) === !0 && (I.type = t.type)) : t.disable === !0 && (I.disabled = "", I["aria-disabled"] = "true"), t.loading === !0 && t.percentage !== void 0 && Object.assign(I, {
|
|
6906
6906
|
role: "progressbar",
|
|
6907
6907
|
"aria-valuemin": 0,
|
|
6908
6908
|
"aria-valuemax": 100,
|
|
6909
6909
|
"aria-valuenow": t.percentage
|
|
6910
6910
|
}), I;
|
|
6911
|
-
}), R =
|
|
6911
|
+
}), R = A(() => {
|
|
6912
6912
|
let I;
|
|
6913
6913
|
t.color !== void 0 ? t.flat === !0 || t.outline === !0 ? I = `text-${t.textColor || t.color}` : I = `bg-${t.color} text-${t.textColor || "white"}` : t.textColor && (I = `text-${t.textColor}`);
|
|
6914
|
-
const W = t.round === !0 ? "round" : `rectangle${
|
|
6914
|
+
const W = t.round === !0 ? "round" : `rectangle${x.value === !0 ? " q-btn--rounded" : t.square === !0 ? " q-btn--square" : ""}`;
|
|
6915
6915
|
return `q-btn--${O.value} q-btn--${W}` + (I !== void 0 ? " " + I : "") + (m.value === !0 ? " q-btn--actionable q-focusable q-hoverable" : t.disable === !0 ? " disabled" : "") + (t.fab === !0 ? " q-btn--fab" : t.fabMini === !0 ? " q-btn--fab-mini" : "") + (t.noCaps === !0 ? " q-btn--no-uppercase" : "") + (t.dense === !0 ? " q-btn--dense" : "") + (t.stretch === !0 ? " no-border-radius self-stretch" : "") + (t.glossy === !0 ? " glossy" : "") + (t.square ? " q-btn--square" : "");
|
|
6916
|
-
}), H =
|
|
6916
|
+
}), H = A(
|
|
6917
6917
|
() => i.value + (t.stack === !0 ? " column" : " row") + (t.noWrap === !0 ? " no-wrap text-no-wrap" : "") + (t.loading === !0 ? " q-btn__content--hidden" : "")
|
|
6918
6918
|
);
|
|
6919
6919
|
return {
|
|
@@ -6945,20 +6945,20 @@ const Gr = vt({
|
|
|
6945
6945
|
innerClasses: d,
|
|
6946
6946
|
attributes: h,
|
|
6947
6947
|
hasLink: y,
|
|
6948
|
-
linkTag:
|
|
6948
|
+
linkTag: x,
|
|
6949
6949
|
navigateOnClick: m,
|
|
6950
|
-
isActionable:
|
|
6950
|
+
isActionable: C
|
|
6951
6951
|
} = Py(t), O = ie(null), b = ie(null);
|
|
6952
6952
|
let R = null, H, I = null;
|
|
6953
|
-
const W =
|
|
6953
|
+
const W = A(
|
|
6954
6954
|
() => t.label !== void 0 && t.label !== null && t.label !== ""
|
|
6955
|
-
), U =
|
|
6955
|
+
), U = A(() => t.disable === !0 || t.ripple === !1 ? !1 : {
|
|
6956
6956
|
keyCodes: y.value === !0 ? [13, 32] : [13],
|
|
6957
6957
|
...t.ripple === !0 ? {} : t.ripple
|
|
6958
|
-
}), D =
|
|
6958
|
+
}), D = A(() => ({ center: t.round })), X = A(() => {
|
|
6959
6959
|
const $ = Math.max(0, Math.min(100, t.percentage));
|
|
6960
6960
|
return $ > 0 ? { transition: "transform 0.6s", transform: `translateX(${$ - 100}%)` } : {};
|
|
6961
|
-
}), j =
|
|
6961
|
+
}), j = A(() => {
|
|
6962
6962
|
if (t.loading === !0)
|
|
6963
6963
|
return {
|
|
6964
6964
|
onMousedown: re,
|
|
@@ -6967,7 +6967,7 @@ const Gr = vt({
|
|
|
6967
6967
|
onKeydown: re,
|
|
6968
6968
|
onKeyup: re
|
|
6969
6969
|
};
|
|
6970
|
-
if (
|
|
6970
|
+
if (C.value === !0) {
|
|
6971
6971
|
const $ = {
|
|
6972
6972
|
onClick: Y,
|
|
6973
6973
|
onKeydown: ae,
|
|
@@ -6983,7 +6983,7 @@ const Gr = vt({
|
|
|
6983
6983
|
// needed; especially for disabled <a> tags
|
|
6984
6984
|
onClick: st
|
|
6985
6985
|
};
|
|
6986
|
-
}), Q =
|
|
6986
|
+
}), Q = A(() => ({
|
|
6987
6987
|
ref: O,
|
|
6988
6988
|
class: "q-btn q-btn-item non-selectable no-outline " + a.value,
|
|
6989
6989
|
style: s.value,
|
|
@@ -7041,7 +7041,7 @@ const Gr = vt({
|
|
|
7041
7041
|
E(!0);
|
|
7042
7042
|
}), Object.assign(u, {
|
|
7043
7043
|
click: ($) => {
|
|
7044
|
-
|
|
7044
|
+
C.value === !0 && Y($);
|
|
7045
7045
|
}
|
|
7046
7046
|
}), () => {
|
|
7047
7047
|
let $ = [];
|
|
@@ -7090,7 +7090,7 @@ const Gr = vt({
|
|
|
7090
7090
|
] : null)
|
|
7091
7091
|
), Bl(
|
|
7092
7092
|
q(
|
|
7093
|
-
|
|
7093
|
+
x.value,
|
|
7094
7094
|
Q.value,
|
|
7095
7095
|
fe
|
|
7096
7096
|
),
|
|
@@ -7112,7 +7112,7 @@ const Gr = vt({
|
|
|
7112
7112
|
},
|
|
7113
7113
|
emits: ["prev", "next"],
|
|
7114
7114
|
setup(t) {
|
|
7115
|
-
const l = t, i =
|
|
7115
|
+
const l = t, i = A(() => l.currentStep + 1);
|
|
7116
7116
|
return (u, a) => (K(), ce(ze, null, [
|
|
7117
7117
|
we("div", By, [
|
|
7118
7118
|
i.value > 1 ? (K(), Ye(Gr, {
|
|
@@ -7243,12 +7243,12 @@ const Gr = vt({
|
|
|
7243
7243
|
},
|
|
7244
7244
|
emits: ["update:modelValue", "update:selected", "remove", "click"],
|
|
7245
7245
|
setup(t, { slots: l, emit: i }) {
|
|
7246
|
-
const { proxy: { $q: u } } = et(), a = ti(t, u), s = to(t, Wy), d =
|
|
7246
|
+
const { proxy: { $q: u } } = et(), a = ti(t, u), s = to(t, Wy), d = A(() => t.selected === !0 || t.icon !== void 0), h = A(() => t.selected === !0 ? t.iconSelected || u.iconSet.chip.selected : t.icon), y = A(() => t.iconRemove || u.iconSet.chip.remove), x = A(
|
|
7247
7247
|
() => t.disable === !1 && (t.clickable === !0 || t.selected !== null)
|
|
7248
|
-
), m =
|
|
7248
|
+
), m = A(() => {
|
|
7249
7249
|
const I = t.outline === !0 && t.color || t.textColor;
|
|
7250
|
-
return "q-chip row inline no-wrap items-center" + (t.outline === !1 && t.color !== void 0 ? ` bg-${t.color}` : "") + (I ? ` text-${I} q-chip--colored` : "") + (t.disable === !0 ? " disabled" : "") + (t.dense === !0 ? " q-chip--dense" : "") + (t.outline === !0 ? " q-chip--outline" : "") + (t.selected === !0 ? " q-chip--selected" : "") + (
|
|
7251
|
-
}),
|
|
7250
|
+
return "q-chip row inline no-wrap items-center" + (t.outline === !1 && t.color !== void 0 ? ` bg-${t.color}` : "") + (I ? ` text-${I} q-chip--colored` : "") + (t.disable === !0 ? " disabled" : "") + (t.dense === !0 ? " q-chip--dense" : "") + (t.outline === !0 ? " q-chip--outline" : "") + (t.selected === !0 ? " q-chip--selected" : "") + (x.value === !0 ? " q-chip--clickable cursor-pointer non-selectable q-hoverable" : "") + (t.square === !0 ? " q-chip--square" : "") + (a.value === !0 ? " q-chip--dark q-dark" : "");
|
|
7251
|
+
}), C = A(() => {
|
|
7252
7252
|
const I = t.disable === !0 ? { tabindex: -1, "aria-disabled": "true" } : { tabindex: t.tabindex || 0 }, W = {
|
|
7253
7253
|
...I,
|
|
7254
7254
|
role: "button",
|
|
@@ -7268,7 +7268,7 @@ const Gr = vt({
|
|
|
7268
7268
|
}
|
|
7269
7269
|
function H() {
|
|
7270
7270
|
const I = [];
|
|
7271
|
-
|
|
7271
|
+
x.value === !0 && I.push(
|
|
7272
7272
|
q("div", { class: "q-focus-helper" })
|
|
7273
7273
|
), d.value === !0 && I.push(
|
|
7274
7274
|
q(Wt, {
|
|
@@ -7290,7 +7290,7 @@ const Gr = vt({
|
|
|
7290
7290
|
q(Wt, {
|
|
7291
7291
|
class: "q-chip__icon q-chip__icon--remove cursor-pointer",
|
|
7292
7292
|
name: y.value,
|
|
7293
|
-
...
|
|
7293
|
+
...C.value.remove,
|
|
7294
7294
|
onClick: R,
|
|
7295
7295
|
onKeyup: R
|
|
7296
7296
|
})
|
|
@@ -7302,9 +7302,9 @@ const Gr = vt({
|
|
|
7302
7302
|
class: m.value,
|
|
7303
7303
|
style: s.value
|
|
7304
7304
|
};
|
|
7305
|
-
return
|
|
7305
|
+
return x.value === !0 && Object.assign(
|
|
7306
7306
|
I,
|
|
7307
|
-
|
|
7307
|
+
C.value.chip,
|
|
7308
7308
|
{ onClick: b, onKeyup: O }
|
|
7309
7309
|
), ed(
|
|
7310
7310
|
"div",
|
|
@@ -7338,17 +7338,17 @@ const Gr = vt({
|
|
|
7338
7338
|
},
|
|
7339
7339
|
emits: ["click", "keyup"],
|
|
7340
7340
|
setup(t, { slots: l, emit: i }) {
|
|
7341
|
-
const { proxy: { $q: u } } = et(), a = ti(t, u), { hasLink: s, linkAttrs: d, linkClass: h, linkTag: y, navigateOnClick:
|
|
7341
|
+
const { proxy: { $q: u } } = et(), a = ti(t, u), { hasLink: s, linkAttrs: d, linkClass: h, linkTag: y, navigateOnClick: x } = Sd(), m = ie(null), C = ie(null), O = A(
|
|
7342
7342
|
() => t.clickable === !0 || s.value === !0 || t.tag === "label"
|
|
7343
|
-
), b =
|
|
7343
|
+
), b = A(
|
|
7344
7344
|
() => t.disable !== !0 && O.value === !0
|
|
7345
|
-
), R =
|
|
7345
|
+
), R = A(
|
|
7346
7346
|
() => "q-item q-item-type row no-wrap" + (t.dense === !0 ? " q-item--dense" : "") + (a.value === !0 ? " q-item--dark" : "") + (s.value === !0 && t.active === null ? h.value : t.active === !0 ? ` q-item--active${t.activeClass !== void 0 ? ` ${t.activeClass}` : ""}` : "") + (t.disable === !0 ? " disabled" : "") + (b.value === !0 ? " q-item--clickable q-link cursor-pointer " + (t.manualFocus === !0 ? "q-manual-focusable" : "q-focusable q-hoverable") + (t.focused === !0 ? " q-manual-focusable--focused" : "") : "")
|
|
7347
|
-
), H =
|
|
7347
|
+
), H = A(() => t.insetLevel === void 0 ? null : {
|
|
7348
7348
|
["padding" + (u.lang.rtl === !0 ? "Right" : "Left")]: 16 + t.insetLevel * 56 + "px"
|
|
7349
7349
|
});
|
|
7350
7350
|
function I(D) {
|
|
7351
|
-
b.value === !0 && (
|
|
7351
|
+
b.value === !0 && (C.value !== null && (D.qKeyEvent !== !0 && document.activeElement === m.value ? C.value.focus() : document.activeElement === C.value && m.value.focus()), x(D));
|
|
7352
7352
|
}
|
|
7353
7353
|
function W(D) {
|
|
7354
7354
|
if (b.value === !0 && wr(D, [13, 32]) === !0) {
|
|
@@ -7361,7 +7361,7 @@ const Gr = vt({
|
|
|
7361
7361
|
function U() {
|
|
7362
7362
|
const D = hb(l.default, []);
|
|
7363
7363
|
return b.value === !0 && D.unshift(
|
|
7364
|
-
q("div", { class: "q-focus-helper", tabindex: -1, ref:
|
|
7364
|
+
q("div", { class: "q-focus-helper", tabindex: -1, ref: C })
|
|
7365
7365
|
), D;
|
|
7366
7366
|
}
|
|
7367
7367
|
return () => {
|
|
@@ -7390,7 +7390,7 @@ const Gr = vt({
|
|
|
7390
7390
|
noWrap: Boolean
|
|
7391
7391
|
},
|
|
7392
7392
|
setup(t, { slots: l }) {
|
|
7393
|
-
const i =
|
|
7393
|
+
const i = A(
|
|
7394
7394
|
() => `q-item__section column q-item__section--${t.avatar === !0 || t.side === !0 || t.thumbnail === !0 ? "side" : "main"}` + (t.top === !0 ? " q-item__section--top justify-start" : " justify-center") + (t.avatar === !0 ? " q-item__section--avatar" : "") + (t.thumbnail === !0 ? " q-item__section--thumbnail" : "") + (t.noWrap === !0 ? " q-item__section--nowrap" : "")
|
|
7395
7395
|
);
|
|
7396
7396
|
return () => q("div", { class: i.value }, Ht(l.default));
|
|
@@ -7404,9 +7404,9 @@ const Gr = vt({
|
|
|
7404
7404
|
lines: [Number, String]
|
|
7405
7405
|
},
|
|
7406
7406
|
setup(t, { slots: l }) {
|
|
7407
|
-
const i =
|
|
7407
|
+
const i = A(() => parseInt(t.lines, 10)), u = A(
|
|
7408
7408
|
() => "q-item__label" + (t.overline === !0 ? " q-item__label--overline text-overline" : "") + (t.caption === !0 ? " q-item__label--caption text-caption" : "") + (t.header === !0 ? " q-item__label--header" : "") + (i.value === 1 ? " ellipsis" : "")
|
|
7409
|
-
), a =
|
|
7409
|
+
), a = A(() => t.lines !== void 0 && i.value > 1 ? {
|
|
7410
7410
|
overflow: "hidden",
|
|
7411
7411
|
display: "-webkit-box",
|
|
7412
7412
|
"-webkit-box-orient": "vertical",
|
|
@@ -7447,8 +7447,8 @@ function Jy({
|
|
|
7447
7447
|
function y(b) {
|
|
7448
7448
|
return d.value === null ? !1 : b === void 0 || b.touches === void 0 || b.touches.length <= 1;
|
|
7449
7449
|
}
|
|
7450
|
-
const
|
|
7451
|
-
i === void 0 && (Object.assign(
|
|
7450
|
+
const x = {};
|
|
7451
|
+
i === void 0 && (Object.assign(x, {
|
|
7452
7452
|
hide(b) {
|
|
7453
7453
|
a.hide(b);
|
|
7454
7454
|
},
|
|
@@ -7456,7 +7456,7 @@ function Jy({
|
|
|
7456
7456
|
a.toggle(b), b.qAnchorHandled = !0;
|
|
7457
7457
|
},
|
|
7458
7458
|
toggleKey(b) {
|
|
7459
|
-
wr(b, 13) === !0 &&
|
|
7459
|
+
wr(b, 13) === !0 && x.toggle(b);
|
|
7460
7460
|
},
|
|
7461
7461
|
contextClick(b) {
|
|
7462
7462
|
a.hide(b), vn(b), at(() => {
|
|
@@ -7465,11 +7465,11 @@ function Jy({
|
|
|
7465
7465
|
},
|
|
7466
7466
|
prevent: vn,
|
|
7467
7467
|
mobileTouch(b) {
|
|
7468
|
-
if (
|
|
7468
|
+
if (x.mobileCleanup(b), y(b) !== !0)
|
|
7469
7469
|
return;
|
|
7470
7470
|
a.hide(b), d.value.classList.add("non-selectable");
|
|
7471
7471
|
const R = b.target;
|
|
7472
|
-
Uu(
|
|
7472
|
+
Uu(x, "anchor", [
|
|
7473
7473
|
[R, "touchmove", "mobileCleanup", "passive"],
|
|
7474
7474
|
[R, "touchend", "mobileCleanup", "passive"],
|
|
7475
7475
|
[R, "touchcancel", "mobileCleanup", "passive"],
|
|
@@ -7492,12 +7492,12 @@ function Jy({
|
|
|
7492
7492
|
] : R = [
|
|
7493
7493
|
[d.value, "click", "toggle", "passive"],
|
|
7494
7494
|
[d.value, "keyup", "toggleKey", "passive"]
|
|
7495
|
-
], Uu(
|
|
7495
|
+
], Uu(x, "anchor", R);
|
|
7496
7496
|
});
|
|
7497
7497
|
function m() {
|
|
7498
|
-
ud(
|
|
7498
|
+
ud(x, "anchor");
|
|
7499
7499
|
}
|
|
7500
|
-
function
|
|
7500
|
+
function C(b) {
|
|
7501
7501
|
for (d.value = b; d.value.classList.contains("q-anchor--skip"); )
|
|
7502
7502
|
d.value = d.value.parentNode;
|
|
7503
7503
|
i();
|
|
@@ -7506,7 +7506,7 @@ function Jy({
|
|
|
7506
7506
|
if (u.target === !1 || u.target === "" || a.$el.parentNode === null)
|
|
7507
7507
|
d.value = null;
|
|
7508
7508
|
else if (u.target === !0)
|
|
7509
|
-
|
|
7509
|
+
C(a.$el.parentNode);
|
|
7510
7510
|
else {
|
|
7511
7511
|
let b = u.target;
|
|
7512
7512
|
if (typeof u.target == "string")
|
|
@@ -7531,15 +7531,15 @@ function Jy({
|
|
|
7531
7531
|
}), {
|
|
7532
7532
|
anchorEl: d,
|
|
7533
7533
|
canShow: y,
|
|
7534
|
-
anchorEvents:
|
|
7534
|
+
anchorEvents: x
|
|
7535
7535
|
};
|
|
7536
7536
|
}
|
|
7537
7537
|
function ew(t, l) {
|
|
7538
7538
|
const i = ie(null);
|
|
7539
7539
|
let u;
|
|
7540
7540
|
function a(h, y) {
|
|
7541
|
-
const
|
|
7542
|
-
h !== window && h[
|
|
7541
|
+
const x = `${y !== void 0 ? "add" : "remove"}EventListener`, m = y !== void 0 ? y : u;
|
|
7542
|
+
h !== window && h[x]("scroll", m, Rt.passive), window[x]("scroll", m, Rt.passive), u = y;
|
|
7543
7543
|
}
|
|
7544
7544
|
function s() {
|
|
7545
7545
|
i.value !== null && (a(i.value), i.value = null);
|
|
@@ -7578,9 +7578,9 @@ function Od({
|
|
|
7578
7578
|
processOnMount: s
|
|
7579
7579
|
// optional
|
|
7580
7580
|
}) {
|
|
7581
|
-
const d = et(), { props: h, emit: y, proxy:
|
|
7581
|
+
const d = et(), { props: h, emit: y, proxy: x } = d;
|
|
7582
7582
|
let m;
|
|
7583
|
-
function
|
|
7583
|
+
function C(U) {
|
|
7584
7584
|
t.value === !0 ? R(U) : O(U);
|
|
7585
7585
|
}
|
|
7586
7586
|
function O(U) {
|
|
@@ -7608,13 +7608,13 @@ function Od({
|
|
|
7608
7608
|
function I(U) {
|
|
7609
7609
|
h.disable === !0 && U === !0 ? h["onUpdate:modelValue"] !== void 0 && y("update:modelValue", !1) : U === !0 !== t.value && (U === !0 ? b : H)(m);
|
|
7610
7610
|
}
|
|
7611
|
-
Te(() => h.modelValue, I), i !== void 0 && td(d) === !0 && Te(() =>
|
|
7611
|
+
Te(() => h.modelValue, I), i !== void 0 && td(d) === !0 && Te(() => x.$route.fullPath, () => {
|
|
7612
7612
|
i.value === !0 && t.value === !0 && R();
|
|
7613
7613
|
}), s === !0 && Mn(() => {
|
|
7614
7614
|
I(h.modelValue);
|
|
7615
7615
|
});
|
|
7616
|
-
const W = { show: O, hide: R, toggle:
|
|
7617
|
-
return Object.assign(
|
|
7616
|
+
const W = { show: O, hide: R, toggle: C };
|
|
7617
|
+
return Object.assign(x, W), W;
|
|
7618
7618
|
}
|
|
7619
7619
|
const cf = {};
|
|
7620
7620
|
let tw = 1, nw = document.body;
|
|
@@ -7662,15 +7662,15 @@ function Ed(t, l, i, u) {
|
|
|
7662
7662
|
const a = ie(!1), s = ie(!1);
|
|
7663
7663
|
let d = null;
|
|
7664
7664
|
const h = {}, y = u === "dialog" && uw(t);
|
|
7665
|
-
function
|
|
7666
|
-
if (
|
|
7665
|
+
function x(C) {
|
|
7666
|
+
if (C === !0) {
|
|
7667
7667
|
ef(h), s.value = !0;
|
|
7668
7668
|
return;
|
|
7669
7669
|
}
|
|
7670
7670
|
s.value = !1, a.value === !1 && (y === !1 && d === null && (d = rw(!1, u)), a.value = !0, Ei.push(t.proxy), ty(h));
|
|
7671
7671
|
}
|
|
7672
|
-
function m(
|
|
7673
|
-
if (s.value = !1,
|
|
7672
|
+
function m(C) {
|
|
7673
|
+
if (s.value = !1, C !== !0) return;
|
|
7674
7674
|
ef(h), a.value = !1;
|
|
7675
7675
|
const O = Ei.indexOf(t.proxy);
|
|
7676
7676
|
O !== -1 && Ei.splice(O, 1), d !== null && (iw(d), d = null);
|
|
@@ -7678,7 +7678,7 @@ function Ed(t, l, i, u) {
|
|
|
7678
7678
|
return W_(() => {
|
|
7679
7679
|
m(!0);
|
|
7680
7680
|
}), t.proxy.__qPortal = !0, Jl(t.proxy, "contentEl", () => l.value), {
|
|
7681
|
-
showPortal:
|
|
7681
|
+
showPortal: x,
|
|
7682
7682
|
hidePortal: m,
|
|
7683
7683
|
portalIsActive: a,
|
|
7684
7684
|
portalIsAccessible: s,
|
|
@@ -7703,7 +7703,7 @@ function Rd(t, l = () => {
|
|
|
7703
7703
|
}, i = () => {
|
|
7704
7704
|
}) {
|
|
7705
7705
|
return {
|
|
7706
|
-
transitionProps:
|
|
7706
|
+
transitionProps: A(() => {
|
|
7707
7707
|
const u = `q-transition--${t.transitionShow || l()}`, a = `q-transition--${t.transitionHide || i()}`;
|
|
7708
7708
|
return {
|
|
7709
7709
|
appear: !0,
|
|
@@ -7715,7 +7715,7 @@ function Rd(t, l = () => {
|
|
|
7715
7715
|
leaveToClass: `${a}-leave-to`
|
|
7716
7716
|
};
|
|
7717
7717
|
}),
|
|
7718
|
-
transitionStyle:
|
|
7718
|
+
transitionStyle: A(() => `--q-transition-duration: ${t.transitionDuration}ms`)
|
|
7719
7719
|
};
|
|
7720
7720
|
}
|
|
7721
7721
|
function kd() {
|
|
@@ -7922,27 +7922,27 @@ function Pd(t, l = 0) {
|
|
|
7922
7922
|
selfOrigin: d,
|
|
7923
7923
|
absoluteOffset: h,
|
|
7924
7924
|
fit: y,
|
|
7925
|
-
cover:
|
|
7925
|
+
cover: x,
|
|
7926
7926
|
maxHeight: m,
|
|
7927
|
-
maxWidth:
|
|
7927
|
+
maxWidth: C
|
|
7928
7928
|
} = t;
|
|
7929
7929
|
if (zt.is.ios === !0 && window.visualViewport !== void 0) {
|
|
7930
7930
|
const Q = document.body.style, { offsetLeft: Y, offsetTop: ae } = window.visualViewport;
|
|
7931
7931
|
Y !== df && (Q.setProperty("--q-pe-left", Y + "px"), df = Y), ae !== vf && (Q.setProperty("--q-pe-top", ae + "px"), vf = ae);
|
|
7932
7932
|
}
|
|
7933
|
-
const { scrollLeft: O, scrollTop: b } = i, R = h === void 0 ? yw(a,
|
|
7933
|
+
const { scrollLeft: O, scrollTop: b } = i, R = h === void 0 ? yw(a, x === !0 ? [0, 0] : u) : ww(a, h, u);
|
|
7934
7934
|
Object.assign(i.style, {
|
|
7935
7935
|
top: 0,
|
|
7936
7936
|
left: 0,
|
|
7937
7937
|
minWidth: null,
|
|
7938
7938
|
minHeight: null,
|
|
7939
|
-
maxWidth:
|
|
7939
|
+
maxWidth: C || "100vw",
|
|
7940
7940
|
maxHeight: m || "100vh",
|
|
7941
7941
|
visibility: "visible"
|
|
7942
7942
|
});
|
|
7943
|
-
const { offsetWidth: H, offsetHeight: I } = i, { elWidth: W, elHeight: U } = y === !0 ||
|
|
7944
|
-
let D = { maxWidth:
|
|
7945
|
-
(y === !0 ||
|
|
7943
|
+
const { offsetWidth: H, offsetHeight: I } = i, { elWidth: W, elHeight: U } = y === !0 || x === !0 ? { elWidth: Math.max(R.width, H), elHeight: x === !0 ? Math.max(R.height, I) : I } : { elWidth: H, elHeight: I };
|
|
7944
|
+
let D = { maxWidth: C, maxHeight: m };
|
|
7945
|
+
(y === !0 || x === !0) && (D.minWidth = R.width + "px", x === !0 && (D.minHeight = R.height + "px")), Object.assign(i.style, D);
|
|
7946
7946
|
const X = Sw(W, U);
|
|
7947
7947
|
let j = mf(R, X, s, d);
|
|
7948
7948
|
if (h === void 0 || u === void 0)
|
|
@@ -7969,7 +7969,7 @@ function Pd(t, l = 0) {
|
|
|
7969
7969
|
}, j.maxHeight !== void 0 && (D.maxHeight = j.maxHeight + "px", R.height > j.maxHeight && (D.minHeight = D.maxHeight)), j.maxWidth !== void 0 && (D.maxWidth = j.maxWidth + "px", R.width > j.maxWidth && (D.minWidth = D.maxWidth)), Object.assign(i.style, D), i.scrollTop !== b && (i.scrollTop = b), i.scrollLeft !== O && (i.scrollLeft = O);
|
|
7970
7970
|
}
|
|
7971
7971
|
function Lu(t, l, i, u, a) {
|
|
7972
|
-
const s = i.bottom, d = i.right, h = vw(), y = window.innerHeight - h,
|
|
7972
|
+
const s = i.bottom, d = i.right, h = vw(), y = window.innerHeight - h, x = document.body.clientWidth;
|
|
7973
7973
|
if (t.top < 0 || t.top + s > y)
|
|
7974
7974
|
if (a.vertical === "center")
|
|
7975
7975
|
t.top = l[u.vertical] > y / 2 ? Math.max(0, y - s) : 0, t.maxHeight = Math.min(s, y);
|
|
@@ -7984,12 +7984,12 @@ function Lu(t, l, i, u, a) {
|
|
|
7984
7984
|
0,
|
|
7985
7985
|
u.vertical === "center" ? l.center : u.vertical === a.vertical ? l.top : l.bottom
|
|
7986
7986
|
), t.maxHeight = Math.min(s, y - t.top);
|
|
7987
|
-
if (t.left < 0 || t.left + d >
|
|
7988
|
-
if (t.maxWidth = Math.min(d,
|
|
7989
|
-
t.left = l[u.horizontal] >
|
|
7990
|
-
else if (l[u.horizontal] >
|
|
7987
|
+
if (t.left < 0 || t.left + d > x)
|
|
7988
|
+
if (t.maxWidth = Math.min(d, x), a.horizontal === "middle")
|
|
7989
|
+
t.left = l[u.horizontal] > x / 2 ? Math.max(0, x - d) : 0;
|
|
7990
|
+
else if (l[u.horizontal] > x / 2) {
|
|
7991
7991
|
const m = Math.min(
|
|
7992
|
-
|
|
7992
|
+
x,
|
|
7993
7993
|
u.horizontal === "middle" ? l.middle : u.horizontal === a.horizontal ? l.right : l.left
|
|
7994
7994
|
);
|
|
7995
7995
|
t.maxWidth = Math.min(d, m), t.left = Math.max(0, m - t.maxWidth);
|
|
@@ -7997,7 +7997,7 @@ function Lu(t, l, i, u, a) {
|
|
|
7997
7997
|
t.left = Math.max(
|
|
7998
7998
|
0,
|
|
7999
7999
|
u.horizontal === "middle" ? l.middle : u.horizontal === a.horizontal ? l.left : l.right
|
|
8000
|
-
), t.maxWidth = Math.min(d,
|
|
8000
|
+
), t.maxWidth = Math.min(d, x - t.left);
|
|
8001
8001
|
}
|
|
8002
8002
|
const xw = vt({
|
|
8003
8003
|
name: "QMenu",
|
|
@@ -8046,7 +8046,7 @@ const xw = vt({
|
|
|
8046
8046
|
],
|
|
8047
8047
|
setup(t, { slots: l, emit: i, attrs: u }) {
|
|
8048
8048
|
let a = null, s, d, h;
|
|
8049
|
-
const y = et(), { proxy:
|
|
8049
|
+
const y = et(), { proxy: x } = y, { $q: m } = x, C = ie(null), O = ie(!1), b = A(
|
|
8050
8050
|
() => t.persistent !== !0 && t.noRouteDismiss !== !0
|
|
8051
8051
|
), R = ti(t, m), { registerTick: H, removeTick: I } = kd(), { registerTimeout: W } = $l(), { transitionProps: U, transitionStyle: D } = Rd(t), { localScrollTarget: X, changeScrollEvent: j, unconfigureScrollTarget: Q } = ew(t, ue), { anchorEl: Y, canShow: ae } = Jy({ showing: O }), { hide: V } = Od({
|
|
8052
8052
|
showing: O,
|
|
@@ -8055,22 +8055,22 @@ const xw = vt({
|
|
|
8055
8055
|
handleHide: k,
|
|
8056
8056
|
hideOnRouteChange: b,
|
|
8057
8057
|
processOnMount: !0
|
|
8058
|
-
}), { showPortal: N, hidePortal: J, renderPortal: E } = Ed(y,
|
|
8058
|
+
}), { showPortal: N, hidePortal: J, renderPortal: E } = Ed(y, C, qe, "menu"), re = {
|
|
8059
8059
|
anchorEl: Y,
|
|
8060
|
-
innerRef:
|
|
8060
|
+
innerRef: C,
|
|
8061
8061
|
onClickOutside(Z) {
|
|
8062
8062
|
if (t.persistent !== !0 && O.value === !0)
|
|
8063
8063
|
return V(Z), // always prevent touch event
|
|
8064
8064
|
(Z.type === "touchstart" || Z.target.classList.contains("q-dialog__backdrop")) && st(Z), !0;
|
|
8065
8065
|
}
|
|
8066
|
-
}, $ =
|
|
8066
|
+
}, $ = A(
|
|
8067
8067
|
() => gf(
|
|
8068
8068
|
t.anchor || (t.cover === !0 ? "center middle" : "bottom start"),
|
|
8069
8069
|
m.lang.rtl
|
|
8070
8070
|
)
|
|
8071
|
-
), fe =
|
|
8071
|
+
), fe = A(() => t.cover === !0 ? $.value : gf(t.self || "top start", m.lang.rtl)), de = A(
|
|
8072
8072
|
() => (t.square === !0 ? " q-menu--square" : "") + (R.value === !0 ? " q-menu--dark q-dark" : "")
|
|
8073
|
-
), ge =
|
|
8073
|
+
), ge = A(() => t.autoClose === !0 ? { onClick: Se } : {}), G = A(
|
|
8074
8074
|
() => O.value === !0 && t.persistent !== !0
|
|
8075
8075
|
);
|
|
8076
8076
|
Te(G, (Z) => {
|
|
@@ -8078,7 +8078,7 @@ const xw = vt({
|
|
|
8078
8078
|
});
|
|
8079
8079
|
function ve() {
|
|
8080
8080
|
no(() => {
|
|
8081
|
-
let Z =
|
|
8081
|
+
let Z = C.value;
|
|
8082
8082
|
Z && Z.contains(document.activeElement) !== !0 && (Z = Z.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]") || Z.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]") || Z.querySelector("[autofocus], [data-autofocus]") || Z, Z.focus({ preventScroll: !0 }));
|
|
8083
8083
|
});
|
|
8084
8084
|
}
|
|
@@ -8096,7 +8096,7 @@ const xw = vt({
|
|
|
8096
8096
|
)), t.noFocus !== !0 && document.activeElement.blur(), H(() => {
|
|
8097
8097
|
le(), t.noFocus !== !0 && ve();
|
|
8098
8098
|
}), W(() => {
|
|
8099
|
-
m.platform.is.ios === !0 && (h = t.autoClose,
|
|
8099
|
+
m.platform.is.ios === !0 && (h = t.autoClose, C.value.click()), le(), N(!0), i("show", Z);
|
|
8100
8100
|
}, t.transitionDuration);
|
|
8101
8101
|
}
|
|
8102
8102
|
function k(Z) {
|
|
@@ -8112,17 +8112,17 @@ const xw = vt({
|
|
|
8112
8112
|
(Y.value !== null || t.scrollTarget !== void 0) && (X.value = cw(Y.value, t.scrollTarget), j(X.value, le));
|
|
8113
8113
|
}
|
|
8114
8114
|
function Se(Z) {
|
|
8115
|
-
h !== !0 ? (lw(
|
|
8115
|
+
h !== !0 ? (lw(x, Z), i("click", Z)) : h = !1;
|
|
8116
8116
|
}
|
|
8117
8117
|
function xe(Z) {
|
|
8118
|
-
G.value === !0 && t.noFocus !== !0 && _d(
|
|
8118
|
+
G.value === !0 && t.noFocus !== !0 && _d(C.value, Z.target) !== !0 && ve();
|
|
8119
8119
|
}
|
|
8120
8120
|
function z(Z) {
|
|
8121
8121
|
i("escapeKey"), V(Z);
|
|
8122
8122
|
}
|
|
8123
8123
|
function le() {
|
|
8124
8124
|
Pd({
|
|
8125
|
-
targetEl:
|
|
8125
|
+
targetEl: C.value,
|
|
8126
8126
|
offset: t.offset,
|
|
8127
8127
|
anchorEl: Y.value,
|
|
8128
8128
|
anchorOrigin: $.value,
|
|
@@ -8141,7 +8141,7 @@ const xw = vt({
|
|
|
8141
8141
|
() => O.value === !0 ? q("div", {
|
|
8142
8142
|
role: "menu",
|
|
8143
8143
|
...u,
|
|
8144
|
-
ref:
|
|
8144
|
+
ref: C,
|
|
8145
8145
|
tabindex: -1,
|
|
8146
8146
|
class: [
|
|
8147
8147
|
"q-menu q-position-engine scroll" + de.value,
|
|
@@ -8155,7 +8155,7 @@ const xw = vt({
|
|
|
8155
8155
|
}, Ht(l.default)) : null
|
|
8156
8156
|
);
|
|
8157
8157
|
}
|
|
8158
|
-
return Lt(T), Object.assign(
|
|
8158
|
+
return Lt(T), Object.assign(x, { focus: ve, updatePosition: le }), E;
|
|
8159
8159
|
}
|
|
8160
8160
|
});
|
|
8161
8161
|
function Cw(t, l, i) {
|
|
@@ -8283,14 +8283,14 @@ const Rw = {
|
|
|
8283
8283
|
],
|
|
8284
8284
|
setup(t, { slots: l, emit: i, attrs: u }) {
|
|
8285
8285
|
const a = et(), s = ie(null), d = ie(!1), h = ie(!1);
|
|
8286
|
-
let y = null,
|
|
8287
|
-
const O =
|
|
8286
|
+
let y = null, x = null, m, C;
|
|
8287
|
+
const O = A(
|
|
8288
8288
|
() => t.persistent !== !0 && t.noRouteDismiss !== !0 && t.seamless !== !0
|
|
8289
8289
|
), { preventBodyScroll: b } = Tw(), { registerTimeout: R } = $l(), { registerTick: H, removeTick: I } = kd(), { transitionProps: W, transitionStyle: U } = Rd(
|
|
8290
8290
|
t,
|
|
8291
8291
|
() => Sf[t.position][0],
|
|
8292
8292
|
() => Sf[t.position][1]
|
|
8293
|
-
), D =
|
|
8293
|
+
), D = A(() => U.value + (t.backdropFilter !== void 0 ? `;backdrop-filter:${t.backdropFilter};-webkit-backdrop-filter:${t.backdropFilter}` : "")), { showPortal: X, hidePortal: j, portalIsAccessible: Q, renderPortal: Y } = Ed(
|
|
8294
8294
|
a,
|
|
8295
8295
|
s,
|
|
8296
8296
|
xe,
|
|
@@ -8301,9 +8301,9 @@ const Rw = {
|
|
|
8301
8301
|
handleShow: fe,
|
|
8302
8302
|
handleHide: de,
|
|
8303
8303
|
processOnMount: !0
|
|
8304
|
-
}), { addToHistory: V, removeFromHistory: N } = Cw(d), J =
|
|
8304
|
+
}), { addToHistory: V, removeFromHistory: N } = Cw(d), J = A(
|
|
8305
8305
|
() => `q-dialog__inner flex no-pointer-events q-dialog__inner--${t.maximized === !0 ? "maximized" : "minimized"} q-dialog__inner--${t.position} ${Rw[t.position]}` + (h.value === !0 ? " q-dialog__inner--animating" : "") + (t.fullWidth === !0 ? " q-dialog__inner--fullwidth" : "") + (t.fullHeight === !0 ? " q-dialog__inner--fullheight" : "") + (t.square === !0 ? " q-dialog__inner--square" : "")
|
|
8306
|
-
), E =
|
|
8306
|
+
), E = A(() => d.value === !0 && t.seamless !== !0), re = A(() => t.autoClose === !0 ? { onClick: T } : {}), $ = A(() => [
|
|
8307
8307
|
`q-dialog fullscreen no-pointer-events q-dialog--${E.value === !0 ? "modal" : "seamless"}`,
|
|
8308
8308
|
u.class
|
|
8309
8309
|
]);
|
|
@@ -8313,7 +8313,7 @@ const Rw = {
|
|
|
8313
8313
|
b(z), z === !0 ? (qd(Se), Ld(ve)) : (Wu(Se), Fl(ve));
|
|
8314
8314
|
});
|
|
8315
8315
|
function fe(z) {
|
|
8316
|
-
V(),
|
|
8316
|
+
V(), x = t.noRefocus === !1 && document.activeElement !== null ? document.activeElement : null, k(t.maximized), X(), h.value = !0, t.noFocus !== !0 ? (document.activeElement !== null && document.activeElement.blur(), H(ge)) : I(), R(() => {
|
|
8317
8317
|
if (a.proxy.$q.platform.is.ios === !0) {
|
|
8318
8318
|
if (t.seamless !== !0 && document.activeElement) {
|
|
8319
8319
|
const { top: le, bottom: qe } = document.activeElement.getBoundingClientRect(), { innerHeight: Z } = window, Ke = window.visualViewport !== void 0 ? window.visualViewport.height : Z;
|
|
@@ -8322,13 +8322,13 @@ const Rw = {
|
|
|
8322
8322
|
qe >= Z ? 1 / 0 : Math.ceil(document.scrollingElement.scrollTop + qe - Ke / 2)
|
|
8323
8323
|
)), document.activeElement.scrollIntoView();
|
|
8324
8324
|
}
|
|
8325
|
-
|
|
8325
|
+
C = !0, s.value.click(), C = !1;
|
|
8326
8326
|
}
|
|
8327
8327
|
X(!0), h.value = !1, i("show", z);
|
|
8328
8328
|
}, t.transitionDuration);
|
|
8329
8329
|
}
|
|
8330
8330
|
function de(z) {
|
|
8331
|
-
I(), N(), be(!0), h.value = !0, j(),
|
|
8331
|
+
I(), N(), be(!0), h.value = !0, j(), x !== null && (((z && z.type.indexOf("key") === 0 ? x.closest('[tabindex]:not([tabindex^="-"])') : void 0) || x).focus(), x = null), R(() => {
|
|
8332
8332
|
j(!0), h.value = !1, i("hide", z);
|
|
8333
8333
|
}, t.transitionDuration);
|
|
8334
8334
|
}
|
|
@@ -8358,13 +8358,13 @@ const Rw = {
|
|
|
8358
8358
|
t.seamless !== !0 && (t.persistent === !0 || t.noEscDismiss === !0 ? t.maximized !== !0 && t.noShake !== !0 && G() : (i("escapeKey"), ae()));
|
|
8359
8359
|
}
|
|
8360
8360
|
function be(z) {
|
|
8361
|
-
y !== null && (clearTimeout(y), y = null), (z === !0 || d.value === !0) && (k(!1), t.seamless !== !0 && (b(!1), Wu(Se), Fl(ve))), z !== !0 && (
|
|
8361
|
+
y !== null && (clearTimeout(y), y = null), (z === !0 || d.value === !0) && (k(!1), t.seamless !== !0 && (b(!1), Wu(Se), Fl(ve))), z !== !0 && (x = null);
|
|
8362
8362
|
}
|
|
8363
8363
|
function k(z) {
|
|
8364
8364
|
z === !0 ? m !== !0 && (ql < 1 && document.body.classList.add("q-body--dialog"), ql++, m = !0) : m === !0 && (ql < 2 && document.body.classList.remove("q-body--dialog"), ql--, m = !1);
|
|
8365
8365
|
}
|
|
8366
8366
|
function T(z) {
|
|
8367
|
-
|
|
8367
|
+
C !== !0 && (ae(z), i("click", z));
|
|
8368
8368
|
}
|
|
8369
8369
|
function ue(z) {
|
|
8370
8370
|
t.persistent !== !0 && t.noBackdropDismiss !== !0 ? ae(z) : t.noShake !== !0 && G();
|
|
@@ -8378,7 +8378,7 @@ const Rw = {
|
|
|
8378
8378
|
shake: G,
|
|
8379
8379
|
// private but needed by QSelect
|
|
8380
8380
|
__updateRefocusTarget(z) {
|
|
8381
|
-
|
|
8381
|
+
x = z || null;
|
|
8382
8382
|
}
|
|
8383
8383
|
}), Lt(be);
|
|
8384
8384
|
function xe() {
|
|
@@ -8452,7 +8452,7 @@ function Kr(t, l) {
|
|
|
8452
8452
|
return t + l;
|
|
8453
8453
|
}
|
|
8454
8454
|
function Bu(t, l, i, u, a, s, d, h) {
|
|
8455
|
-
const y = t === window ? document.scrollingElement || document.documentElement : t,
|
|
8455
|
+
const y = t === window ? document.scrollingElement || document.documentElement : t, x = a === !0 ? "offsetWidth" : "offsetHeight", m = {
|
|
8456
8456
|
scrollStart: 0,
|
|
8457
8457
|
scrollViewSize: -d - h,
|
|
8458
8458
|
scrollMaxSize: 0,
|
|
@@ -8460,14 +8460,14 @@ function Bu(t, l, i, u, a, s, d, h) {
|
|
|
8460
8460
|
offsetEnd: -h
|
|
8461
8461
|
};
|
|
8462
8462
|
if (a === !0 ? (t === window ? (m.scrollStart = window.pageXOffset || window.scrollX || document.body.scrollLeft || 0, m.scrollViewSize += document.documentElement.clientWidth) : (m.scrollStart = y.scrollLeft, m.scrollViewSize += y.clientWidth), m.scrollMaxSize = y.scrollWidth, s === !0 && (m.scrollStart = (zl === !0 ? m.scrollMaxSize - m.scrollViewSize : 0) - m.scrollStart)) : (t === window ? (m.scrollStart = window.pageYOffset || window.scrollY || document.body.scrollTop || 0, m.scrollViewSize += document.documentElement.clientHeight) : (m.scrollStart = y.scrollTop, m.scrollViewSize += y.clientHeight), m.scrollMaxSize = y.scrollHeight), i !== null)
|
|
8463
|
-
for (let
|
|
8464
|
-
|
|
8463
|
+
for (let C = i.previousElementSibling; C !== null; C = C.previousElementSibling)
|
|
8464
|
+
C.classList.contains("q-virtual-scroll--skip") === !1 && (m.offsetStart += C[x]);
|
|
8465
8465
|
if (u !== null)
|
|
8466
|
-
for (let
|
|
8467
|
-
|
|
8466
|
+
for (let C = u.nextElementSibling; C !== null; C = C.nextElementSibling)
|
|
8467
|
+
C.classList.contains("q-virtual-scroll--skip") === !1 && (m.offsetEnd += C[x]);
|
|
8468
8468
|
if (l !== t) {
|
|
8469
|
-
const
|
|
8470
|
-
a === !0 ? (m.offsetStart += O.left -
|
|
8469
|
+
const C = y.getBoundingClientRect(), O = l.getBoundingClientRect();
|
|
8470
|
+
a === !0 ? (m.offsetStart += O.left - C.left, m.offsetEnd -= O.width) : (m.offsetStart += O.top - C.top, m.offsetEnd -= O.height), t !== window && (m.offsetStart += m.scrollStart), m.offsetEnd += m.scrollMaxSize - m.offsetStart;
|
|
8471
8471
|
}
|
|
8472
8472
|
return m;
|
|
8473
8473
|
}
|
|
@@ -8520,10 +8520,10 @@ function qw({
|
|
|
8520
8520
|
// optional
|
|
8521
8521
|
}) {
|
|
8522
8522
|
const a = et(), { props: s, emit: d, proxy: h } = a, { $q: y } = h;
|
|
8523
|
-
let
|
|
8524
|
-
const R = ie(0), H = ie(0), I = ie({}), W = ie(null), U = ie(null), D = ie(null), X = ie({ from: 0, to: 0 }), j =
|
|
8525
|
-
u === void 0 && (u =
|
|
8526
|
-
const Q =
|
|
8523
|
+
let x, m, C, O = [], b;
|
|
8524
|
+
const R = ie(0), H = ie(0), I = ie({}), W = ie(null), U = ie(null), D = ie(null), X = ie({ from: 0, to: 0 }), j = A(() => s.tableColspan !== void 0 ? s.tableColspan : 100);
|
|
8525
|
+
u === void 0 && (u = A(() => s.virtualScrollItemSize));
|
|
8526
|
+
const Q = A(() => u.value + ";" + s.virtualScrollHorizontal), Y = A(
|
|
8527
8527
|
() => Q.value + ";" + s.virtualScrollSliceRatioBefore + ";" + s.virtualScrollSliceRatioAfter
|
|
8528
8528
|
);
|
|
8529
8529
|
Te(Y, () => {
|
|
@@ -8549,7 +8549,7 @@ function qw({
|
|
|
8549
8549
|
s.virtualScrollStickySizeStart,
|
|
8550
8550
|
s.virtualScrollStickySizeEnd
|
|
8551
8551
|
);
|
|
8552
|
-
|
|
8552
|
+
C !== Se.scrollViewSize && de(Se.scrollViewSize), E(
|
|
8553
8553
|
ue,
|
|
8554
8554
|
Se,
|
|
8555
8555
|
Math.min(t.value - 1, Math.max(0, parseInt(k, 10) || 0)),
|
|
@@ -8571,13 +8571,13 @@ function qw({
|
|
|
8571
8571
|
s.virtualScrollStickySizeStart,
|
|
8572
8572
|
s.virtualScrollStickySizeEnd
|
|
8573
8573
|
), ue = t.value - 1, Se = T.scrollMaxSize - T.offsetStart - T.offsetEnd - H.value;
|
|
8574
|
-
if (
|
|
8574
|
+
if (x === T.scrollStart)
|
|
8575
8575
|
return;
|
|
8576
8576
|
if (T.scrollMaxSize <= 0) {
|
|
8577
8577
|
E(k, T, 0, 0);
|
|
8578
8578
|
return;
|
|
8579
8579
|
}
|
|
8580
|
-
|
|
8580
|
+
C !== T.scrollViewSize && de(T.scrollViewSize), re(X.value.from);
|
|
8581
8581
|
const xe = Math.floor(T.scrollMaxSize - Math.max(T.scrollViewSize, T.offsetEnd) - Math.min(b[ue], T.scrollViewSize / 2));
|
|
8582
8582
|
if (xe > 0 && Math.ceil(T.scrollStart) >= xe) {
|
|
8583
8583
|
E(
|
|
@@ -8606,7 +8606,7 @@ function qw({
|
|
|
8606
8606
|
function E(k, T, ue, Se, xe) {
|
|
8607
8607
|
const z = typeof xe == "string" && xe.indexOf("-force") !== -1, le = z === !0 ? xe.replace("-force", "") : xe, qe = le !== void 0 ? le : "start";
|
|
8608
8608
|
let Z = Math.max(0, ue - I.value[qe]), Ke = Z + I.value.total;
|
|
8609
|
-
Ke > t.value && (Ke = t.value, Z = Math.max(0, Ke - I.value.total)),
|
|
8609
|
+
Ke > t.value && (Ke = t.value, Z = Math.max(0, Ke - I.value.total)), x = T.scrollStart;
|
|
8610
8610
|
const yt = Z !== X.value.from || Ke !== X.value.to;
|
|
8611
8611
|
if (yt === !1 && le === void 0) {
|
|
8612
8612
|
G(ue);
|
|
@@ -8620,11 +8620,11 @@ function qw({
|
|
|
8620
8620
|
if (yt === !0) {
|
|
8621
8621
|
const Pt = Ke >= X.value.from && Z <= X.value.to ? X.value.to : Ke;
|
|
8622
8622
|
X.value = { from: Z, to: Pt }, R.value = Ci(O, b, 0, Z), H.value = Ci(O, b, Ke, t.value), requestAnimationFrame(() => {
|
|
8623
|
-
X.value.to !== Ke &&
|
|
8623
|
+
X.value.to !== Ke && x === T.scrollStart && (X.value = { from: X.value.from, to: Ke }, H.value = Ci(O, b, Ke, t.value));
|
|
8624
8624
|
});
|
|
8625
8625
|
}
|
|
8626
8626
|
requestAnimationFrame(() => {
|
|
8627
|
-
if (
|
|
8627
|
+
if (x !== T.scrollStart)
|
|
8628
8628
|
return;
|
|
8629
8629
|
yt === !0 && re(Z);
|
|
8630
8630
|
const Pt = b.slice(Z, ue).reduce(Kr, 0), bn = Pt + T.offsetStart + R.value, Ct = bn + b[ue];
|
|
@@ -8633,7 +8633,7 @@ function qw({
|
|
|
8633
8633
|
const ni = Pt - pt, ln = T.scrollStart + ni;
|
|
8634
8634
|
qn = z !== !0 && ln < bn && Ct < ln + T.scrollViewSize ? ln : le === "end" ? Ct - T.scrollViewSize : bn - (le === "start" ? 0 : Math.round((T.scrollViewSize - b[ue]) / 2));
|
|
8635
8635
|
}
|
|
8636
|
-
|
|
8636
|
+
x = qn, xf(
|
|
8637
8637
|
k,
|
|
8638
8638
|
qn,
|
|
8639
8639
|
s.virtualScrollHorizontal,
|
|
@@ -8675,7 +8675,7 @@ function qw({
|
|
|
8675
8675
|
le += b[Z];
|
|
8676
8676
|
O.push(le);
|
|
8677
8677
|
}
|
|
8678
|
-
m = -1,
|
|
8678
|
+
m = -1, x = void 0, R.value = Ci(O, b, 0, X.value.from), H.value = Ci(O, b, X.value.to, t.value), k >= 0 ? (re(X.value.from), at(() => {
|
|
8679
8679
|
N(k);
|
|
8680
8680
|
})) : ve();
|
|
8681
8681
|
}
|
|
@@ -8693,7 +8693,7 @@ function qw({
|
|
|
8693
8693
|
s.virtualScrollStickySizeEnd
|
|
8694
8694
|
).scrollViewSize);
|
|
8695
8695
|
}
|
|
8696
|
-
|
|
8696
|
+
C = k;
|
|
8697
8697
|
const T = parseFloat(s.virtualScrollSliceRatioBefore) || 0, ue = parseFloat(s.virtualScrollSliceRatioAfter) || 0, Se = 1 + T + ue, xe = k === void 0 || k <= 0 ? 1 : Math.ceil(k / u.value), z = Math.max(
|
|
8698
8698
|
1,
|
|
8699
8699
|
xe,
|
|
@@ -8777,9 +8777,9 @@ function qw({
|
|
|
8777
8777
|
}), If(() => {
|
|
8778
8778
|
if (be !== !0) return;
|
|
8779
8779
|
const k = l();
|
|
8780
|
-
|
|
8780
|
+
x !== void 0 && k !== void 0 && k !== null && k.nodeType !== 8 ? xf(
|
|
8781
8781
|
k,
|
|
8782
|
-
|
|
8782
|
+
x,
|
|
8783
8783
|
s.virtualScrollHorizontal,
|
|
8784
8784
|
y.lang.rtl
|
|
8785
8785
|
) : N(m);
|
|
@@ -8890,9 +8890,9 @@ const Of = (t) => ["add", "add-unique", "toggle"].includes(t), Pw = ".*+?^${}()|
|
|
|
8890
8890
|
"filterAbort"
|
|
8891
8891
|
],
|
|
8892
8892
|
setup(t, { slots: l, emit: i }) {
|
|
8893
|
-
const { proxy: u } = et(), { $q: a } = u, s = ie(!1), d = ie(!1), h = ie(-1), y = ie(""),
|
|
8894
|
-
let
|
|
8895
|
-
const j = ie(null), Q = ie(null), Y = ie(null), ae = ie(null), V = ie(null), N = ld(t), J = md(Vi), E =
|
|
8893
|
+
const { proxy: u } = et(), { $q: a } = u, s = ie(!1), d = ie(!1), h = ie(-1), y = ie(""), x = ie(!1), m = ie(!1);
|
|
8894
|
+
let C = null, O = null, b, R, H, I = null, W, U, D, X;
|
|
8895
|
+
const j = ie(null), Q = ie(null), Y = ie(null), ae = ie(null), V = ie(null), N = ld(t), J = md(Vi), E = A(() => Array.isArray(t.options) ? t.options.length : 0), re = A(() => t.virtualScrollItemSize === void 0 ? t.optionsDense === !0 ? 24 : 48 : t.virtualScrollItemSize), {
|
|
8896
8896
|
virtualScrollSliceRange: $,
|
|
8897
8897
|
virtualScrollSliceSizeComputed: fe,
|
|
8898
8898
|
localResetVirtualScroll: de,
|
|
@@ -8905,27 +8905,27 @@ const Of = (t) => ["add", "add-unique", "toggle"].includes(t), Pw = ".*+?^${}()|
|
|
|
8905
8905
|
getVirtualScrollTarget: Pi,
|
|
8906
8906
|
getVirtualScrollEl: ii,
|
|
8907
8907
|
virtualScrollItemSizeComputed: re
|
|
8908
|
-
}), k = Xu(), T =
|
|
8908
|
+
}), k = Xu(), T = A(() => {
|
|
8909
8909
|
const p = t.mapOptions === !0 && t.multiple !== !0, ne = t.modelValue !== void 0 && (t.modelValue !== null || p === !0) ? t.multiple === !0 && Array.isArray(t.modelValue) ? t.modelValue : [t.modelValue] : [];
|
|
8910
8910
|
if (t.mapOptions === !0 && Array.isArray(t.options) === !0) {
|
|
8911
8911
|
const ee = t.mapOptions === !0 && b !== void 0 ? b : [], _e = ne.map((De) => ri(De, ee));
|
|
8912
8912
|
return t.modelValue === null && p === !0 ? _e.filter((De) => De !== null) : _e;
|
|
8913
8913
|
}
|
|
8914
8914
|
return ne;
|
|
8915
|
-
}), ue =
|
|
8915
|
+
}), ue = A(() => {
|
|
8916
8916
|
const p = {};
|
|
8917
8917
|
return Bw.forEach((ne) => {
|
|
8918
8918
|
const ee = t[ne];
|
|
8919
8919
|
ee !== void 0 && (p[ne] = ee);
|
|
8920
8920
|
}), p;
|
|
8921
|
-
}), Se =
|
|
8921
|
+
}), Se = A(() => t.optionsDark === null ? k.isDark.value : t.optionsDark), xe = A(() => Ri(T.value)), z = A(() => {
|
|
8922
8922
|
let p = "q-field__input q-placeholder col";
|
|
8923
8923
|
return t.hideSelected === !0 || T.value.length === 0 ? [p, t.inputClass] : (p += " q-field__input--padding", t.inputClass === void 0 ? p : [p, t.inputClass]);
|
|
8924
|
-
}), le =
|
|
8924
|
+
}), le = A(
|
|
8925
8925
|
() => (t.virtualScrollHorizontal === !0 ? "q-virtual-scroll--horizontal" : "") + (t.popupContentClass ? " " + t.popupContentClass : "")
|
|
8926
|
-
), qe =
|
|
8926
|
+
), qe = A(() => E.value === 0), Z = A(
|
|
8927
8927
|
() => T.value.map((p) => lt.value(p)).join(", ")
|
|
8928
|
-
), Ke =
|
|
8928
|
+
), Ke = A(() => t.displayValue !== void 0 ? t.displayValue : Z.value), yt = A(() => t.optionsHtml === !0 ? () => !0 : (p) => p != null && p.html === !0), rn = A(() => t.displayValueHtml === !0 || t.displayValue === void 0 && (t.optionsHtml === !0 || T.value.some(yt.value))), qt = A(() => k.focused.value === !0 ? t.tabindex : -1), pt = A(() => {
|
|
8929
8929
|
const p = {
|
|
8930
8930
|
tabindex: t.tabindex,
|
|
8931
8931
|
role: "combobox",
|
|
@@ -8936,11 +8936,11 @@ const Of = (t) => ["add", "add-unique", "toggle"].includes(t), Pw = ".*+?^${}()|
|
|
|
8936
8936
|
"aria-controls": `${k.targetUid.value}_lb`
|
|
8937
8937
|
};
|
|
8938
8938
|
return h.value >= 0 && (p["aria-activedescendant"] = `${k.targetUid.value}_${h.value}`), p;
|
|
8939
|
-
}), Pt =
|
|
8939
|
+
}), Pt = A(() => ({
|
|
8940
8940
|
id: `${k.targetUid.value}_lb`,
|
|
8941
8941
|
role: "listbox",
|
|
8942
8942
|
"aria-multiselectable": t.multiple === !0 ? "true" : "false"
|
|
8943
|
-
})), bn =
|
|
8943
|
+
})), bn = A(() => T.value.map((p, ne) => ({
|
|
8944
8944
|
index: ne,
|
|
8945
8945
|
opt: p,
|
|
8946
8946
|
html: yt.value(p),
|
|
@@ -8948,7 +8948,7 @@ const Of = (t) => ["add", "add-unique", "toggle"].includes(t), Pw = ".*+?^${}()|
|
|
|
8948
8948
|
removeAtIndex: Pn,
|
|
8949
8949
|
toggleOption: un,
|
|
8950
8950
|
tabindex: qt.value
|
|
8951
|
-
}))), Ct =
|
|
8951
|
+
}))), Ct = A(() => {
|
|
8952
8952
|
if (E.value === 0)
|
|
8953
8953
|
return [];
|
|
8954
8954
|
const { from: p, to: ne } = $.value;
|
|
@@ -8984,9 +8984,9 @@ const Of = (t) => ["add", "add-unique", "toggle"].includes(t), Pw = ".*+?^${}()|
|
|
|
8984
8984
|
itemProps: We
|
|
8985
8985
|
};
|
|
8986
8986
|
});
|
|
8987
|
-
}), qn =
|
|
8987
|
+
}), qn = A(() => t.dropdownIcon !== void 0 ? t.dropdownIcon : a.iconSet.arrow.dropdown), ni = A(
|
|
8988
8988
|
() => t.optionsCover === !1 && t.outlined !== !0 && t.standout !== !0 && t.borderless !== !0 && t.rounded !== !0
|
|
8989
|
-
), ln =
|
|
8989
|
+
), ln = A(() => t.optionsSelectedClass !== void 0 ? t.optionsSelectedClass : t.color !== void 0 ? `text-${t.color}` : ""), Ze = A(() => tr(t.optionValue, "value")), lt = A(() => tr(t.optionLabel, "label")), on = A(() => tr(t.optionDisable, "disable")), Sr = A(() => T.value.map((p) => Ze.value(p))), er = A(() => {
|
|
8990
8990
|
const p = {
|
|
8991
8991
|
onInput: Vi,
|
|
8992
8992
|
// Safari < 10.2 & UIWebView doesn't fire compositionend when
|
|
@@ -9052,7 +9052,7 @@ const Of = (t) => ["add", "add-unique", "toggle"].includes(t), Pw = ".*+?^${}()|
|
|
|
9052
9052
|
), wn()), Q.value !== null && Q.value.focus(), (T.value.length === 0 || Ln(Ze.value(T.value[0]), ee) !== !0) && i("update:modelValue", t.emitValue === !0 ? ee : p);
|
|
9053
9053
|
return;
|
|
9054
9054
|
}
|
|
9055
|
-
if ((R !== !0 ||
|
|
9055
|
+
if ((R !== !0 || x.value === !0) && k.focus(), Cr(), T.value.length === 0) {
|
|
9056
9056
|
const Ve = t.emitValue === !0 ? ee : p;
|
|
9057
9057
|
i("add", { index: 0, value: Ve }), i("update:modelValue", t.multiple === !0 ? [Ve] : Ve);
|
|
9058
9058
|
return;
|
|
@@ -9113,7 +9113,7 @@ const Of = (t) => ["add", "add-unique", "toggle"].includes(t), Pw = ".*+?^${}()|
|
|
|
9113
9113
|
Ar(p);
|
|
9114
9114
|
return;
|
|
9115
9115
|
}
|
|
9116
|
-
if (p.target.value = "",
|
|
9116
|
+
if (p.target.value = "", C !== null && (clearTimeout(C), C = null), O !== null && (clearTimeout(O), O = null), Sn(), typeof ne == "string" && ne.length !== 0) {
|
|
9117
9117
|
const ee = ne.toLocaleLowerCase(), _e = (Ve) => {
|
|
9118
9118
|
const rt = t.options.find((We) => Ve.value(We).toLocaleLowerCase() === ee);
|
|
9119
9119
|
return rt === void 0 ? !1 : (T.value.indexOf(rt) === -1 ? un(rt) : wn(), !0);
|
|
@@ -9257,8 +9257,8 @@ const Of = (t) => ["add", "add-unique", "toggle"].includes(t), Pw = ".*+?^${}()|
|
|
|
9257
9257
|
return p !== !0 && R === !0 && (Array.isArray(_e.class) === !0 ? _e.class = [..._e.class, "no-pointer-events"] : _e.class += " no-pointer-events"), q("input", _e);
|
|
9258
9258
|
}
|
|
9259
9259
|
function Vi(p) {
|
|
9260
|
-
|
|
9261
|
-
|
|
9260
|
+
C !== null && (clearTimeout(C), C = null), O !== null && (clearTimeout(O), O = null), !(p && p.target && p.target.qComposing === !0) && (rr(p.target.value || ""), H = !0, W = y.value, k.focused.value !== !0 && (R !== !0 || x.value === !0) && k.focus(), t.onFilter !== void 0 && (C = setTimeout(() => {
|
|
9261
|
+
C = null, Vn(y.value);
|
|
9262
9262
|
}, t.inputDebounce)));
|
|
9263
9263
|
}
|
|
9264
9264
|
function rr(p, ne) {
|
|
@@ -9328,11 +9328,11 @@ const Of = (t) => ["add", "add-unique", "toggle"].includes(t), Pw = ".*+?^${}()|
|
|
|
9328
9328
|
be();
|
|
9329
9329
|
}
|
|
9330
9330
|
function oi(p) {
|
|
9331
|
-
_n(p), Q.value !== null && Q.value.focus(),
|
|
9331
|
+
_n(p), Q.value !== null && Q.value.focus(), x.value = !0, window.scrollTo(window.pageXOffset || window.scrollX || document.body.scrollLeft || 0, 0);
|
|
9332
9332
|
}
|
|
9333
9333
|
function co(p) {
|
|
9334
9334
|
_n(p), at(() => {
|
|
9335
|
-
|
|
9335
|
+
x.value = !1;
|
|
9336
9336
|
});
|
|
9337
9337
|
}
|
|
9338
9338
|
function fo() {
|
|
@@ -9379,7 +9379,7 @@ const Of = (t) => ["add", "add-unique", "toggle"].includes(t), Pw = ".*+?^${}()|
|
|
|
9379
9379
|
onHide: ho,
|
|
9380
9380
|
onShow: go
|
|
9381
9381
|
}, () => q("div", {
|
|
9382
|
-
class: "q-select__dialog" + (Se.value === !0 ? " q-select__dialog--dark q-dark" : "") + (
|
|
9382
|
+
class: "q-select__dialog" + (Se.value === !0 ? " q-select__dialog--dark q-dark" : "") + (x.value === !0 ? " q-select__dialog--focused" : "")
|
|
9383
9383
|
}, p));
|
|
9384
9384
|
}
|
|
9385
9385
|
function vo(p) {
|
|
@@ -9441,7 +9441,7 @@ const Of = (t) => ["add", "add-unique", "toggle"].includes(t), Pw = ".*+?^${}()|
|
|
|
9441
9441
|
R = a.platform.is.mobile !== !0 && t.behavior !== "dialog" ? !1 : t.behavior !== "menu" && (t.useInput === !0 ? l["no-option"] !== void 0 || t.onFilter !== void 0 || qe.value === !1 : !0), U = a.platform.is.ios === !0 && R === !0 && t.useInput === !0 ? "fade" : t.transitionShow;
|
|
9442
9442
|
}
|
|
9443
9443
|
return kf(Ni), j_($i), Ni(), Lt(() => {
|
|
9444
|
-
|
|
9444
|
+
C !== null && clearTimeout(C), O !== null && clearTimeout(O);
|
|
9445
9445
|
}), Object.assign(u, {
|
|
9446
9446
|
showPopup: Dn,
|
|
9447
9447
|
hidePopup: wn,
|
|
@@ -9461,14 +9461,14 @@ const Of = (t) => ["add", "add-unique", "toggle"].includes(t), Pw = ".*+?^${}()|
|
|
|
9461
9461
|
getOptionLabel: (...p) => lt.value.apply(null, p)
|
|
9462
9462
|
}), Object.assign(k, {
|
|
9463
9463
|
innerValue: T,
|
|
9464
|
-
fieldClass:
|
|
9464
|
+
fieldClass: A(
|
|
9465
9465
|
() => `q-select q-field--auto-height q-select--with${t.useInput !== !0 ? "out" : ""}-input q-select--with${t.useChips !== !0 ? "out" : ""}-chips q-select--${t.multiple === !0 ? "multiple" : "single"}`
|
|
9466
9466
|
),
|
|
9467
9467
|
inputRef: j,
|
|
9468
9468
|
targetRef: Q,
|
|
9469
9469
|
hasValue: xe,
|
|
9470
9470
|
showPopup: Dn,
|
|
9471
|
-
floatingLabel:
|
|
9471
|
+
floatingLabel: A(
|
|
9472
9472
|
() => t.hideSelected !== !0 && xe.value === !0 || typeof y.value == "number" || y.value.length !== 0 || Ri(t.displayValue)
|
|
9473
9473
|
),
|
|
9474
9474
|
getControlChild: () => {
|
|
@@ -9557,21 +9557,21 @@ const Of = (t) => ["add", "add-unique", "toggle"].includes(t), Pw = ".*+?^${}()|
|
|
|
9557
9557
|
}),
|
|
9558
9558
|
emits: ["update:modelValue"],
|
|
9559
9559
|
setup(t) {
|
|
9560
|
-
const l = ie([]), i = Jn(t, "modelValue"), u = t, a = ie(!1), s =
|
|
9560
|
+
const l = ie([]), i = Jn(t, "modelValue"), u = t, a = ie(!1), s = A(
|
|
9561
9561
|
() => u.control.customParams
|
|
9562
|
-
), d = ie([]), h =
|
|
9562
|
+
), d = ie([]), h = A(
|
|
9563
9563
|
() => {
|
|
9564
|
-
var
|
|
9565
|
-
return ((
|
|
9564
|
+
var C;
|
|
9565
|
+
return ((C = s.value) == null ? void 0 : C.collection) || null;
|
|
9566
9566
|
}
|
|
9567
|
-
), y =
|
|
9567
|
+
), y = A(
|
|
9568
9568
|
() => h.value ? d.value : u.control.options
|
|
9569
|
-
),
|
|
9569
|
+
), x = Jr();
|
|
9570
9570
|
Te(
|
|
9571
9571
|
h,
|
|
9572
|
-
(
|
|
9573
|
-
if (!
|
|
9574
|
-
const O =
|
|
9572
|
+
(C) => {
|
|
9573
|
+
if (!C) return;
|
|
9574
|
+
const O = x.getCollection(h.value);
|
|
9575
9575
|
if (O) {
|
|
9576
9576
|
d.value = O;
|
|
9577
9577
|
return;
|
|
@@ -9580,32 +9580,32 @@ const Of = (t) => ["add", "add-unique", "toggle"].includes(t), Pw = ".*+?^${}()|
|
|
|
9580
9580
|
},
|
|
9581
9581
|
{ immediate: !0 }
|
|
9582
9582
|
);
|
|
9583
|
-
function m(
|
|
9584
|
-
if (
|
|
9583
|
+
function m(C, O) {
|
|
9584
|
+
if (C === "") {
|
|
9585
9585
|
O(() => {
|
|
9586
9586
|
l.value = Qe.cloneDeep(y.value);
|
|
9587
9587
|
});
|
|
9588
9588
|
return;
|
|
9589
9589
|
}
|
|
9590
9590
|
O(() => {
|
|
9591
|
-
const b =
|
|
9591
|
+
const b = C.toLowerCase();
|
|
9592
9592
|
l.value = (y.value || []).filter(
|
|
9593
9593
|
(R) => R.toLowerCase().includes(b)
|
|
9594
9594
|
);
|
|
9595
9595
|
});
|
|
9596
9596
|
}
|
|
9597
|
-
return (
|
|
9597
|
+
return (C, O) => {
|
|
9598
9598
|
const b = Rf("ControlLabel");
|
|
9599
9599
|
return K(), ce(ze, null, [
|
|
9600
|
-
|
|
9600
|
+
C.control.label ? (K(), Ye(b, {
|
|
9601
9601
|
key: 0,
|
|
9602
|
-
label:
|
|
9602
|
+
label: C.control.label
|
|
9603
9603
|
}, null, 8, ["label"])) : ct("", !0),
|
|
9604
9604
|
It(io, { class: "q-card win-card row items-center q-px-md" }, {
|
|
9605
9605
|
default: dt(() => [
|
|
9606
9606
|
It(Vd, {
|
|
9607
9607
|
borderless: "",
|
|
9608
|
-
label:
|
|
9608
|
+
label: C.control.label,
|
|
9609
9609
|
modelValue: i.value,
|
|
9610
9610
|
"onUpdate:modelValue": O[0] || (O[0] = (R) => i.value = R),
|
|
9611
9611
|
"emit-value": "",
|
|
@@ -9650,16 +9650,16 @@ function $d(t, l) {
|
|
|
9650
9650
|
const { maxControlsPerGroup: i, notifyValidations: u } = {
|
|
9651
9651
|
...eb,
|
|
9652
9652
|
...l || {}
|
|
9653
|
-
}, a = Jr(), s =
|
|
9653
|
+
}, a = Jr(), s = A(
|
|
9654
9654
|
() => a.formSteps[t]
|
|
9655
9655
|
), d = ie([]), h = ie([]), y = (b, R) => {
|
|
9656
9656
|
a.setControlValue(t, b);
|
|
9657
9657
|
const H = d.value.find((U) => U.id === R);
|
|
9658
9658
|
H && (h.value = nb(H));
|
|
9659
|
-
const I = m(b), W =
|
|
9660
|
-
(I || W) &&
|
|
9659
|
+
const I = m(b), W = C(b);
|
|
9660
|
+
(I || W) && x();
|
|
9661
9661
|
};
|
|
9662
|
-
function
|
|
9662
|
+
function x() {
|
|
9663
9663
|
const b = s.value.controls, R = [];
|
|
9664
9664
|
ob(b).forEach((I) => {
|
|
9665
9665
|
const W = I.controls;
|
|
@@ -9712,7 +9712,7 @@ function $d(t, l) {
|
|
|
9712
9712
|
X !== j && (a.setControlVisibility(t, U, j), H = !0);
|
|
9713
9713
|
}), H;
|
|
9714
9714
|
}
|
|
9715
|
-
function
|
|
9715
|
+
function C({ id: b, value: R }) {
|
|
9716
9716
|
const H = Number(R || 0);
|
|
9717
9717
|
let I = !1;
|
|
9718
9718
|
const U = s.value.controls.filter(
|
|
@@ -9742,10 +9742,10 @@ function $d(t, l) {
|
|
|
9742
9742
|
), Te(
|
|
9743
9743
|
s,
|
|
9744
9744
|
() => {
|
|
9745
|
-
|
|
9745
|
+
x();
|
|
9746
9746
|
},
|
|
9747
9747
|
{ immediate: !0 }
|
|
9748
|
-
), { model: d, errorMessages: h, rebuildModel:
|
|
9748
|
+
), { model: d, errorMessages: h, rebuildModel: x, onControlValueUpdate: y };
|
|
9749
9749
|
}
|
|
9750
9750
|
const Hw = {
|
|
9751
9751
|
key: 0,
|
|
@@ -9765,11 +9765,11 @@ const Hw = {
|
|
|
9765
9765
|
index: {}
|
|
9766
9766
|
},
|
|
9767
9767
|
setup(t) {
|
|
9768
|
-
const l = t, i = Jr(), { model: u, onControlValueUpdate: a } = $d(l.index), s =
|
|
9768
|
+
const l = t, i = Jr(), { model: u, onControlValueUpdate: a } = $d(l.index), s = A(() => u.value.length), d = ie(0), h = A(
|
|
9769
9769
|
() => u.value[d.value]
|
|
9770
9770
|
), y = (m) => {
|
|
9771
|
-
const
|
|
9772
|
-
return Qe.orderBy(
|
|
9771
|
+
const C = Qe.toPairs(Qe.groupBy(m, "row"));
|
|
9772
|
+
return Qe.orderBy(C, ([O, b]) => Number(O), "asc").map(
|
|
9773
9773
|
([O, b]) => ({
|
|
9774
9774
|
controls: Qe.orderBy(b, "col", "asc")
|
|
9775
9775
|
})
|
|
@@ -9778,14 +9778,14 @@ const Hw = {
|
|
|
9778
9778
|
Te(
|
|
9779
9779
|
d,
|
|
9780
9780
|
(m) => {
|
|
9781
|
-
const
|
|
9782
|
-
i.setOnLastSubstep(
|
|
9781
|
+
const C = m + 1 === s.value;
|
|
9782
|
+
i.setOnLastSubstep(C);
|
|
9783
9783
|
},
|
|
9784
9784
|
{
|
|
9785
9785
|
immediate: !0
|
|
9786
9786
|
}
|
|
9787
9787
|
);
|
|
9788
|
-
function
|
|
9788
|
+
function x(m) {
|
|
9789
9789
|
return {
|
|
9790
9790
|
input_text: Iu,
|
|
9791
9791
|
input_number: Iu,
|
|
@@ -9799,7 +9799,7 @@ const Hw = {
|
|
|
9799
9799
|
// dynamic_array: DynamicArrayControl,
|
|
9800
9800
|
}[m] || Iu;
|
|
9801
9801
|
}
|
|
9802
|
-
return (m,
|
|
9802
|
+
return (m, C) => h.value ? (K(), ce("div", Hw, [
|
|
9803
9803
|
we("div", Ww, [
|
|
9804
9804
|
It(Uw, {
|
|
9805
9805
|
formGroup: h.value,
|
|
@@ -9809,7 +9809,7 @@ const Hw = {
|
|
|
9809
9809
|
we("div", Gw, [
|
|
9810
9810
|
we("div", Kw, [
|
|
9811
9811
|
we("div", jw, [
|
|
9812
|
-
(K(!0), ce(ze, null, kt(
|
|
9812
|
+
(K(!0), ce(ze, null, kt(Me(u), (O) => (K(), ce(ze, {
|
|
9813
9813
|
key: O.id
|
|
9814
9814
|
}, [
|
|
9815
9815
|
d.value === O.order ? (K(), Ye(mb, {
|
|
@@ -9825,10 +9825,10 @@ const Hw = {
|
|
|
9825
9825
|
key: R
|
|
9826
9826
|
}, [
|
|
9827
9827
|
(K(!0), ce(ze, null, kt(b.controls, (H, I) => (K(), ce("div", { key: I }, [
|
|
9828
|
-
(K(), Ye(ju(
|
|
9828
|
+
(K(), Ye(ju(x(H.controlType)), {
|
|
9829
9829
|
control: H,
|
|
9830
9830
|
modelValue: b.controls[I].value,
|
|
9831
|
-
"onUpdate:modelValue": [(W) => b.controls[I].value = W, (W) =>
|
|
9831
|
+
"onUpdate:modelValue": [(W) => b.controls[I].value = W, (W) => Me(a)(H, O.id)]
|
|
9832
9832
|
}, null, 8, ["control", "modelValue", "onUpdate:modelValue"]))
|
|
9833
9833
|
]))), 128))
|
|
9834
9834
|
]))), 128))
|
|
@@ -9841,8 +9841,8 @@ const Hw = {
|
|
|
9841
9841
|
currentStep: d.value,
|
|
9842
9842
|
stepsCount: s.value,
|
|
9843
9843
|
nextDisabled: !h.value.valid,
|
|
9844
|
-
onPrev:
|
|
9845
|
-
onNext:
|
|
9844
|
+
onPrev: C[0] || (C[0] = (O) => d.value--),
|
|
9845
|
+
onNext: C[1] || (C[1] = (O) => h.value.valid && d.value++)
|
|
9846
9846
|
}, null, 8, ["currentStep", "stepsCount", "nextDisabled"])
|
|
9847
9847
|
])
|
|
9848
9848
|
])
|
|
@@ -9860,7 +9860,7 @@ const Hw = {
|
|
|
9860
9860
|
}),
|
|
9861
9861
|
emits: ["update:modelValue"],
|
|
9862
9862
|
setup(t) {
|
|
9863
|
-
const l = Jn(t, "modelValue"), i = t, u =
|
|
9863
|
+
const l = Jn(t, "modelValue"), i = t, u = A(() => {
|
|
9864
9864
|
var a;
|
|
9865
9865
|
return (a = i.control.controlType) == null ? void 0 : a.split("_")[1];
|
|
9866
9866
|
});
|
|
@@ -9948,42 +9948,42 @@ const Hw = {
|
|
|
9948
9948
|
// location: MapLocation
|
|
9949
9949
|
}[y] || Vu;
|
|
9950
9950
|
}
|
|
9951
|
-
const s = (y) => Qe.orderBy(Qe.toPairs(Qe.groupBy(y, "row")), "row").map(([
|
|
9951
|
+
const s = (y) => Qe.orderBy(Qe.toPairs(Qe.groupBy(y, "row")), "row").map(([x, m]) => ({
|
|
9952
9952
|
controls: Qe.orderBy(m, "col")
|
|
9953
9953
|
}));
|
|
9954
9954
|
function d(y) {
|
|
9955
9955
|
return [
|
|
9956
|
-
(
|
|
9957
|
-
var
|
|
9956
|
+
(x) => {
|
|
9957
|
+
var C;
|
|
9958
9958
|
let m = "";
|
|
9959
|
-
return (
|
|
9959
|
+
return (C = y.validators) == null || C.some((O) => {
|
|
9960
9960
|
const { param: b, validator: R } = O, H = jf[R];
|
|
9961
|
-
return H.fn(Number(b))({ ...y, value:
|
|
9961
|
+
return H.fn(Number(b))({ ...y, value: x }) ? !1 : (m = H.message, !0);
|
|
9962
9962
|
}), !m.length || m;
|
|
9963
9963
|
}
|
|
9964
9964
|
];
|
|
9965
9965
|
}
|
|
9966
9966
|
const h = Jr();
|
|
9967
|
-
return Mn(() => h.setOnLastSubstep(!0)), (y,
|
|
9968
|
-
we("div", n1, Je(
|
|
9967
|
+
return Mn(() => h.setOnLastSubstep(!0)), (y, x) => Me(i) ? (K(), ce("div", t1, [
|
|
9968
|
+
we("div", n1, Je(Me(i)[0].title), 1),
|
|
9969
9969
|
we("div", r1, [
|
|
9970
9970
|
we("div", i1, [
|
|
9971
9971
|
we("div", l1, [
|
|
9972
9972
|
we("div", o1, [
|
|
9973
|
-
(K(!0), ce(ze, null, kt(s(
|
|
9973
|
+
(K(!0), ce(ze, null, kt(s(Me(i)[0].controls), (m, C) => (K(), ce("div", {
|
|
9974
9974
|
class: jr(
|
|
9975
|
-
s(
|
|
9975
|
+
s(Me(i)[0].controls).length > 1 ? "col-md-6 col-12" : "col-12"
|
|
9976
9976
|
),
|
|
9977
|
-
key:
|
|
9977
|
+
key: C
|
|
9978
9978
|
}, [
|
|
9979
9979
|
(K(!0), ce(ze, null, kt(m.controls, (O, b) => (K(), ce("div", {
|
|
9980
|
-
class: jr(`col-xs-12 col-sm q-pa-xs ${s(
|
|
9980
|
+
class: jr(`col-xs-12 col-sm q-pa-xs ${s(Me(i)[0].controls).length > 1 ? "col-md-6 col-12" : "col-12"}`),
|
|
9981
9981
|
key: b
|
|
9982
9982
|
}, [
|
|
9983
9983
|
(K(), Ye(ju(a(O.controlType)), {
|
|
9984
9984
|
control: O,
|
|
9985
9985
|
modelValue: O.value,
|
|
9986
|
-
"onUpdate:modelValue": [(R) => O.value = R, (R) =>
|
|
9986
|
+
"onUpdate:modelValue": [(R) => O.value = R, (R) => Me(u)(O, Me(i)[0].id)],
|
|
9987
9987
|
rules: d(O)
|
|
9988
9988
|
}, null, 8, ["control", "modelValue", "onUpdate:modelValue", "rules"]))
|
|
9989
9989
|
], 2))), 128))
|
|
@@ -10014,19 +10014,19 @@ const Hw = {
|
|
|
10014
10014
|
stepsCount: s,
|
|
10015
10015
|
nextDisabled: d,
|
|
10016
10016
|
onLastSubstep: h
|
|
10017
|
-
} = ki(Jr()), y = l,
|
|
10018
|
-
},
|
|
10017
|
+
} = ki(Jr()), y = l, x = ie(!1), m = (O) => {
|
|
10018
|
+
}, C = () => {
|
|
10019
10019
|
a.value === s.value ? y("submit") : i.value();
|
|
10020
10020
|
};
|
|
10021
10021
|
return (O, b) => (K(), ce("div", s1, [
|
|
10022
10022
|
we("div", c1, [
|
|
10023
|
-
|
|
10023
|
+
Me(a) === Me(s) ? (K(), ce("div", f1, [
|
|
10024
10024
|
we("div", d1, [
|
|
10025
10025
|
It(fd, {
|
|
10026
10026
|
color: "info",
|
|
10027
10027
|
class: "checkbox",
|
|
10028
|
-
modelValue:
|
|
10029
|
-
"onUpdate:modelValue": b[1] || (b[1] = (R) =>
|
|
10028
|
+
modelValue: x.value,
|
|
10029
|
+
"onUpdate:modelValue": b[1] || (b[1] = (R) => x.value = R)
|
|
10030
10030
|
}, {
|
|
10031
10031
|
default: dt(() => [
|
|
10032
10032
|
we("div", null, [
|
|
@@ -10045,11 +10045,11 @@ const Hw = {
|
|
|
10045
10045
|
])
|
|
10046
10046
|
])) : ct("", !0),
|
|
10047
10047
|
we("div", h1, [
|
|
10048
|
-
|
|
10048
|
+
Me(a) > 1 ? (K(), Ye(Gr, {
|
|
10049
10049
|
key: 0,
|
|
10050
10050
|
color: "info",
|
|
10051
10051
|
class: "q-px-xl q-py-sm q-mr-sm win-btn win-btn-primary bg-white",
|
|
10052
|
-
onClick:
|
|
10052
|
+
onClick: Me(u),
|
|
10053
10053
|
flat: "",
|
|
10054
10054
|
"no-caps": ""
|
|
10055
10055
|
}, {
|
|
@@ -10059,17 +10059,17 @@ const Hw = {
|
|
|
10059
10059
|
_: 1
|
|
10060
10060
|
}, 8, ["onClick"])) : (K(), ce("div", m1)),
|
|
10061
10061
|
we("div", null, [
|
|
10062
|
-
!
|
|
10062
|
+
!Me(d) && Me(h) ? (K(), Ye(Gr, {
|
|
10063
10063
|
key: 0,
|
|
10064
10064
|
color: "green",
|
|
10065
10065
|
class: "q-px-xl q-py-sm q-ml-sm win-btn win-btn-primary bg-white",
|
|
10066
|
-
onClick:
|
|
10067
|
-
disable:
|
|
10066
|
+
onClick: C,
|
|
10067
|
+
disable: Me(a) === Me(s) && !x.value,
|
|
10068
10068
|
flat: "",
|
|
10069
10069
|
"no-caps": ""
|
|
10070
10070
|
}, {
|
|
10071
10071
|
default: dt(() => [
|
|
10072
|
-
|
|
10072
|
+
Me(a) === Me(s) ? (K(), ce("span", p1, [
|
|
10073
10073
|
Tl(" Enviar "),
|
|
10074
10074
|
_1
|
|
10075
10075
|
])) : (K(), ce("span", b1, " Siguiente "))
|
|
@@ -10097,21 +10097,21 @@ const Hw = {
|
|
|
10097
10097
|
const y = Qe.cloneDeep(s.formSteps), m = new Nc().toRaw(y);
|
|
10098
10098
|
u("onSubmit", m);
|
|
10099
10099
|
}
|
|
10100
|
-
return (y,
|
|
10100
|
+
return (y, x) => (K(), ce(ze, null, [
|
|
10101
10101
|
we("div", null, [
|
|
10102
10102
|
Pl(y.$slots, "header"),
|
|
10103
|
-
(K(!0), ce(ze, null, kt(
|
|
10103
|
+
(K(!0), ce(ze, null, kt(Me(s).formSteps, (m, C) => (K(), ce(ze, { key: C }, [
|
|
10104
10104
|
d(m) ? Bl((K(), Ye(a1, {
|
|
10105
10105
|
key: 0,
|
|
10106
|
-
index:
|
|
10106
|
+
index: C
|
|
10107
10107
|
}, null, 8, ["index"])), [
|
|
10108
|
-
[Cc,
|
|
10108
|
+
[Cc, Me(s).currentStep === C + 1]
|
|
10109
10109
|
]) : Bl((K(), Ye(Zw, {
|
|
10110
10110
|
key: 1,
|
|
10111
|
-
index:
|
|
10112
|
-
onOnLastStep:
|
|
10111
|
+
index: C,
|
|
10112
|
+
onOnLastStep: x[0] || (x[0] = (O) => a.value = O)
|
|
10113
10113
|
}, null, 8, ["index"])), [
|
|
10114
|
-
[Cc,
|
|
10114
|
+
[Cc, Me(s).currentStep === C + 1]
|
|
10115
10115
|
])
|
|
10116
10116
|
], 64))), 128))
|
|
10117
10117
|
]),
|
|
@@ -10199,7 +10199,7 @@ const O1 = { class: "card" }, E1 = {
|
|
|
10199
10199
|
}
|
|
10200
10200
|
}), M1 = /* @__PURE__ */ Mt(L1, [["__scopeId", "data-v-758b9217"]]);
|
|
10201
10201
|
function lo(t, l = {}) {
|
|
10202
|
-
const i = Ku("data"), u =
|
|
10202
|
+
const i = Ku("data"), u = A(() => i.value[t] || l), a = A(() => i.value.global || {}), s = A(() => ({ ...a.value, ...u.value }));
|
|
10203
10203
|
return { sectionData: u, globalData: a, data: s };
|
|
10204
10204
|
}
|
|
10205
10205
|
const q1 = /* @__PURE__ */ He({
|
|
@@ -10211,18 +10211,21 @@ const q1 = /* @__PURE__ */ He({
|
|
|
10211
10211
|
},
|
|
10212
10212
|
setup(t) {
|
|
10213
10213
|
const l = t, { data: i } = lo(l.id, {});
|
|
10214
|
-
return (u, a) =>
|
|
10215
|
-
|
|
10216
|
-
|
|
10217
|
-
|
|
10218
|
-
|
|
10219
|
-
|
|
10220
|
-
|
|
10221
|
-
|
|
10222
|
-
|
|
10223
|
-
|
|
10214
|
+
return (u, a) => {
|
|
10215
|
+
var s;
|
|
10216
|
+
return K(), ce("div", {
|
|
10217
|
+
class: "card-section",
|
|
10218
|
+
style: nn(((s = u.styles) == null ? void 0 : s.cssRaw) || "")
|
|
10219
|
+
}, [
|
|
10220
|
+
(K(!0), ce(ze, null, kt(u.content.cards, (d, h) => (K(), Ye(M1, {
|
|
10221
|
+
key: h,
|
|
10222
|
+
card: d,
|
|
10223
|
+
data: Me(i)
|
|
10224
|
+
}, null, 8, ["card", "data"]))), 128))
|
|
10225
|
+
], 4);
|
|
10226
|
+
};
|
|
10224
10227
|
}
|
|
10225
|
-
}), P1 = /* @__PURE__ */ Mt(q1, [["__scopeId", "data-v-
|
|
10228
|
+
}), P1 = /* @__PURE__ */ Mt(q1, [["__scopeId", "data-v-1ef55d4c"]]), B1 = ["src", "alt"], V1 = /* @__PURE__ */ He({
|
|
10226
10229
|
__name: "ImageSection",
|
|
10227
10230
|
props: {
|
|
10228
10231
|
styles: {},
|
|
@@ -10232,17 +10235,17 @@ const q1 = /* @__PURE__ */ He({
|
|
|
10232
10235
|
setup(t) {
|
|
10233
10236
|
const l = t, { content: i, styles: u } = ki(l);
|
|
10234
10237
|
return lo(l.id, {}), (a, s) => (K(), ce("div", {
|
|
10235
|
-
style: nn({
|
|
10238
|
+
style: nn({ justifyContent: Me(i).align }),
|
|
10236
10239
|
class: "img-container"
|
|
10237
10240
|
}, [
|
|
10238
10241
|
we("img", {
|
|
10239
|
-
src:
|
|
10240
|
-
alt:
|
|
10241
|
-
style: nn({ width:
|
|
10242
|
+
src: Me(i).src,
|
|
10243
|
+
alt: Me(i).alt,
|
|
10244
|
+
style: nn({ width: Me(i).width, height: Me(i).height })
|
|
10242
10245
|
}, null, 12, B1)
|
|
10243
10246
|
], 4));
|
|
10244
10247
|
}
|
|
10245
|
-
}), $1 = /* @__PURE__ */ Mt(V1, [["__scopeId", "data-v-
|
|
10248
|
+
}), $1 = /* @__PURE__ */ Mt(V1, [["__scopeId", "data-v-16a52375"]]), D1 = "#f5f5f5", F1 = /* @__PURE__ */ He({
|
|
10246
10249
|
__name: "TableSection",
|
|
10247
10250
|
props: {
|
|
10248
10251
|
styles: {},
|
|
@@ -10250,39 +10253,42 @@ const q1 = /* @__PURE__ */ He({
|
|
|
10250
10253
|
content: {}
|
|
10251
10254
|
},
|
|
10252
10255
|
setup(t) {
|
|
10253
|
-
const l = t, { columns: i } = ki(l.content), { data: u } = lo(l.id, []), a =
|
|
10254
|
-
return (s, d) =>
|
|
10255
|
-
|
|
10256
|
-
|
|
10257
|
-
|
|
10258
|
-
|
|
10259
|
-
|
|
10260
|
-
|
|
10261
|
-
|
|
10262
|
-
|
|
10263
|
-
|
|
10264
|
-
|
|
10265
|
-
|
|
10266
|
-
|
|
10267
|
-
|
|
10268
|
-
|
|
10269
|
-
|
|
10270
|
-
|
|
10271
|
-
|
|
10272
|
-
})
|
|
10273
|
-
}, [
|
|
10274
|
-
(K(!0), ce(ze, null, kt(Le(i), (A) => (K(), ce("td", {
|
|
10275
|
-
key: A.key,
|
|
10256
|
+
const l = t, { columns: i } = ki(l.content), { data: u } = lo(l.id, []), a = A(() => [...u.value[l.content.rowsKey] || []]);
|
|
10257
|
+
return (s, d) => {
|
|
10258
|
+
var h;
|
|
10259
|
+
return K(), ce("table", {
|
|
10260
|
+
style: nn("width: 100%;" + ((h = s.styles) == null ? void 0 : h.cssRaw) || ""),
|
|
10261
|
+
class: "table-section"
|
|
10262
|
+
}, [
|
|
10263
|
+
we("thead", null, [
|
|
10264
|
+
we("tr", null, [
|
|
10265
|
+
(K(!0), ce(ze, null, kt(Me(i), (y) => (K(), ce("th", {
|
|
10266
|
+
key: y.key,
|
|
10267
|
+
style: nn({ textAlign: y.align || "left" }),
|
|
10268
|
+
contenteditable: ""
|
|
10269
|
+
}, Je(y.header), 5))), 128))
|
|
10270
|
+
])
|
|
10271
|
+
]),
|
|
10272
|
+
we("tbody", null, [
|
|
10273
|
+
(K(!0), ce(ze, null, kt(a.value, (y, x) => (K(), ce("tr", {
|
|
10274
|
+
key: x,
|
|
10276
10275
|
style: nn({
|
|
10277
|
-
|
|
10278
|
-
})
|
|
10279
|
-
|
|
10280
|
-
|
|
10281
|
-
|
|
10282
|
-
|
|
10283
|
-
|
|
10276
|
+
backgroundColor: x % 2 === 0 ? D1 : "transparent"
|
|
10277
|
+
})
|
|
10278
|
+
}, [
|
|
10279
|
+
(K(!0), ce(ze, null, kt(Me(i), (m) => (K(), ce("td", {
|
|
10280
|
+
key: m.key,
|
|
10281
|
+
style: nn({
|
|
10282
|
+
textAlign: m.align || "left"
|
|
10283
|
+
}),
|
|
10284
|
+
contenteditable: ""
|
|
10285
|
+
}, Je(y[m.key]), 5))), 128))
|
|
10286
|
+
], 4))), 128))
|
|
10287
|
+
])
|
|
10288
|
+
], 4);
|
|
10289
|
+
};
|
|
10284
10290
|
}
|
|
10285
|
-
}), N1 = /* @__PURE__ */ Mt(F1, [["__scopeId", "data-v-
|
|
10291
|
+
}), N1 = /* @__PURE__ */ Mt(F1, [["__scopeId", "data-v-cb58770d"]]), U1 = {
|
|
10286
10292
|
key: 0,
|
|
10287
10293
|
contenteditable: ""
|
|
10288
10294
|
}, z1 = {
|
|
@@ -10299,28 +10305,31 @@ const q1 = /* @__PURE__ */ He({
|
|
|
10299
10305
|
content: {}
|
|
10300
10306
|
},
|
|
10301
10307
|
setup(t) {
|
|
10302
|
-
const l = t, { data: i } = lo(l.id, {}), u =
|
|
10308
|
+
const l = t, { data: i } = lo(l.id, {}), u = A(() => {
|
|
10303
10309
|
var s, d;
|
|
10304
10310
|
return ((d = (s = l.content) == null ? void 0 : s.lines) == null ? void 0 : d.map(({ type: h, text: y }) => ({ type: h, text: a(i.value, y) }))) || [];
|
|
10305
10311
|
});
|
|
10306
10312
|
function a(s, d) {
|
|
10307
10313
|
const h = d.match(/{{(.*?)}}/g);
|
|
10308
|
-
return h ? h.reduce((y,
|
|
10309
|
-
const m =
|
|
10310
|
-
return y.replace(
|
|
10314
|
+
return h ? h.reduce((y, x) => {
|
|
10315
|
+
const m = x.replace(/{{|}}/g, ""), C = Dd(s, m);
|
|
10316
|
+
return y.replace(x, C ?? m);
|
|
10311
10317
|
}, d) : d;
|
|
10312
10318
|
}
|
|
10313
|
-
return (s, d) =>
|
|
10314
|
-
|
|
10315
|
-
|
|
10316
|
-
|
|
10317
|
-
|
|
10318
|
-
|
|
10319
|
-
|
|
10320
|
-
|
|
10321
|
-
|
|
10319
|
+
return (s, d) => {
|
|
10320
|
+
var h;
|
|
10321
|
+
return K(), ce("div", {
|
|
10322
|
+
style: nn(((h = s.styles) == null ? void 0 : h.cssRaw) || "")
|
|
10323
|
+
}, [
|
|
10324
|
+
(K(!0), ce(ze, null, kt(u.value, ({ type: y, text: x }) => (K(), ce(ze, null, [
|
|
10325
|
+
y === "title" ? (K(), ce("h1", U1, Je(x), 1)) : ct("", !0),
|
|
10326
|
+
y === "subtitle" ? (K(), ce("h2", z1, Je(x), 1)) : ct("", !0),
|
|
10327
|
+
y === "paragraph" ? (K(), ce("p", H1, Je(x), 1)) : ct("", !0)
|
|
10328
|
+
], 64))), 256))
|
|
10329
|
+
], 4);
|
|
10330
|
+
};
|
|
10322
10331
|
}
|
|
10323
|
-
}), G1 = /* @__PURE__ */ Mt(W1, [["__scopeId", "data-v-
|
|
10332
|
+
}), G1 = /* @__PURE__ */ Mt(W1, [["__scopeId", "data-v-7163c4d0"]]), K1 = /* @__PURE__ */ He({
|
|
10324
10333
|
__name: "SectionWrapper",
|
|
10325
10334
|
props: {
|
|
10326
10335
|
section: {}
|
|
@@ -10331,7 +10340,7 @@ const q1 = /* @__PURE__ */ He({
|
|
|
10331
10340
|
[Ut.LayoutSectionType.IMAGE]: $1,
|
|
10332
10341
|
[Ut.LayoutSectionType.TABLE]: N1,
|
|
10333
10342
|
[Ut.LayoutSectionType.CARDS_GRID]: P1
|
|
10334
|
-
}, u =
|
|
10343
|
+
}, u = A(() => l.section.type), a = A(() => ({
|
|
10335
10344
|
content: l.section.content,
|
|
10336
10345
|
styles: l.section.styles,
|
|
10337
10346
|
id: l.section.idDocLaySection
|
|
@@ -10349,20 +10358,20 @@ const q1 = /* @__PURE__ */ He({
|
|
|
10349
10358
|
var d;
|
|
10350
10359
|
const l = t, { layout: i, data: u } = ki(l);
|
|
10351
10360
|
Z_("data", u);
|
|
10352
|
-
const a =
|
|
10361
|
+
const a = A(() => {
|
|
10353
10362
|
var y;
|
|
10354
|
-
const h = i.value.sections.map((
|
|
10355
|
-
return (y = l.htmlNodes) == null || y.forEach(({ index:
|
|
10356
|
-
const
|
|
10357
|
-
h.splice(
|
|
10363
|
+
const h = i.value.sections.map((x) => ({ type: "default", section: x }));
|
|
10364
|
+
return (y = l.htmlNodes) == null || y.forEach(({ index: x, element: m }) => {
|
|
10365
|
+
const C = x > h.length ? h.length : x;
|
|
10366
|
+
h.splice(C, 0, { type: "html", section: m });
|
|
10358
10367
|
}), h;
|
|
10359
10368
|
}), s = ((d = i.value.styles) == null ? void 0 : d.cssRaw) || "";
|
|
10360
10369
|
return (h, y) => (K(), ce("div", {
|
|
10361
10370
|
class: "sections-container",
|
|
10362
|
-
style: nn(
|
|
10371
|
+
style: nn(Me(s))
|
|
10363
10372
|
}, [
|
|
10364
|
-
(K(!0), ce(ze, null, kt(a.value, ({ type:
|
|
10365
|
-
|
|
10373
|
+
(K(!0), ce(ze, null, kt(a.value, ({ type: x, section: m }) => (K(), ce(ze, null, [
|
|
10374
|
+
x === "default" ? (K(), Ye(K1, {
|
|
10366
10375
|
key: 0,
|
|
10367
10376
|
section: m
|
|
10368
10377
|
}, null, 8, ["section"])) : (K(), Ye(A1, {
|