@bagelink/vue 1.15.579 → 1.15.581
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/index.mjs
CHANGED
|
@@ -4503,7 +4503,7 @@ var c3 = /* @__PURE__ */ zl({
|
|
|
4503
4503
|
}), M = I(() => e.round || e.soft), T = I(() => {
|
|
4504
4504
|
if (!(!M.value || X.value))
|
|
4505
4505
|
return e.color ? `pair-${e.color}` : e.soft ? "pair-black" : void 0;
|
|
4506
|
-
}), x = I(() => M.value ? "bgl_icon-round" : void 0),
|
|
4506
|
+
}), x = I(() => M.value ? "bgl_icon-round" : void 0), w = I(() => e.soft ? "soft" : void 0), f = I(() => {
|
|
4507
4507
|
const z = {
|
|
4508
4508
|
fontSize: `${n.value}rem`,
|
|
4509
4509
|
visibility: G.value ? "visible" : "hidden",
|
|
@@ -4521,7 +4521,7 @@ var c3 = /* @__PURE__ */ zl({
|
|
|
4521
4521
|
h.value,
|
|
4522
4522
|
x.value,
|
|
4523
4523
|
T.value,
|
|
4524
|
-
|
|
4524
|
+
w.value,
|
|
4525
4525
|
{ "color-white keep-white": l.round && !l.soft && X.value }
|
|
4526
4526
|
]]),
|
|
4527
4527
|
style: Il(f.value),
|
|
@@ -4533,7 +4533,7 @@ var c3 = /* @__PURE__ */ zl({
|
|
|
4533
4533
|
h.value,
|
|
4534
4534
|
x.value,
|
|
4535
4535
|
T.value,
|
|
4536
|
-
|
|
4536
|
+
w.value,
|
|
4537
4537
|
{
|
|
4538
4538
|
"fa-brands": d.value,
|
|
4539
4539
|
"fa-solid": l.fill,
|
|
@@ -5788,7 +5788,7 @@ function xN(l, e = {}) {
|
|
|
5788
5788
|
const Ll = h(J.currentPeek());
|
|
5789
5789
|
return J.resetPeek(), Ll;
|
|
5790
5790
|
}
|
|
5791
|
-
function
|
|
5791
|
+
function w(J, H) {
|
|
5792
5792
|
const { currentType: Gl } = H;
|
|
5793
5793
|
if (!(Gl === 7 || Gl === 11)) return !1;
|
|
5794
5794
|
p(J);
|
|
@@ -5874,7 +5874,7 @@ function xN(l, e = {}) {
|
|
|
5874
5874
|
}
|
|
5875
5875
|
return H;
|
|
5876
5876
|
}
|
|
5877
|
-
function
|
|
5877
|
+
function g(J) {
|
|
5878
5878
|
G(J);
|
|
5879
5879
|
let H = "", Gl = "";
|
|
5880
5880
|
for (; H = _(J); ) Gl += H;
|
|
@@ -5969,7 +5969,7 @@ function xN(l, e = {}) {
|
|
|
5969
5969
|
if (H.braceNest > 0 && (H.currentType === 4 || H.currentType === 5 || H.currentType === 6))
|
|
5970
5970
|
return Z(le.UNTERMINATED_CLOSING_BRACE, i(), 0), H.braceNest = 0, tl(J, H);
|
|
5971
5971
|
if (Ll = Y(J, H))
|
|
5972
|
-
return Gl = u(H, 4,
|
|
5972
|
+
return Gl = u(H, 4, g(J)), G(J), Gl;
|
|
5973
5973
|
if (Ul = X(J, H))
|
|
5974
5974
|
return Gl = u(H, 5, V(J)), G(J), Gl;
|
|
5975
5975
|
if (de = M(J, H))
|
|
@@ -5993,7 +5993,7 @@ function xN(l, e = {}) {
|
|
|
5993
5993
|
case ":":
|
|
5994
5994
|
return G(J), J.next(), u(H, 9, ":");
|
|
5995
5995
|
default:
|
|
5996
|
-
return z(J) ? (Ll = u(H, 1, Rl(J)), H.braceNest = 0, H.inLinked = !1, Ll) : T(J, H) ||
|
|
5996
|
+
return z(J) ? (Ll = u(H, 1, Rl(J)), H.braceNest = 0, H.inLinked = !1, Ll) : T(J, H) || w(J, H) ? (G(J), U(J, H)) : x(J, H) ? (G(J), u(H, 11, Xl(J))) : f(J, H) ? (G(J), Ul === "{" ? xl(J, H) || Ll : u(H, 10, bl(J))) : (Gl === 7 && Z(le.INVALID_LINKED_FORMAT, i(), 0), H.braceNest = 0, H.inLinked = !1, tl(J, H));
|
|
5997
5997
|
}
|
|
5998
5998
|
}
|
|
5999
5999
|
function tl(J, H) {
|
|
@@ -6153,8 +6153,8 @@ function vN(l = {}) {
|
|
|
6153
6153
|
const x = n(1, W, Y);
|
|
6154
6154
|
x.cases = [], x.cases.push(X);
|
|
6155
6155
|
do {
|
|
6156
|
-
const
|
|
6157
|
-
T || (T =
|
|
6156
|
+
const w = b(h);
|
|
6157
|
+
T || (T = w.items.length === 0), x.cases.push(w);
|
|
6158
6158
|
} while (M.currentType !== 13);
|
|
6159
6159
|
return T && a(h, le.MUST_HAVE_MESSAGES_IN_PLURAL, Y, 0), i(x, h.currentOffset(), h.currentPosition()), x;
|
|
6160
6160
|
}
|
|
@@ -6844,7 +6844,7 @@ var k1 = null, Tu = /* @__NO_SIDE_EFFECTS__ */ (l) => {
|
|
|
6844
6844
|
function zY(l = {}) {
|
|
6845
6845
|
const e = Te(l.onWarn) ? l.onWarn : aN, t = kl(l.version) ? l.version : yY, a = kl(l.locale) || Te(l.locale) ? l.locale : ud, n = Te(a) ? ud : a, i = Ie(l.fallbackLocale) || Ge(l.fallbackLocale) || kl(l.fallbackLocale) || l.fallbackLocale === !1 ? l.fallbackLocale : n, d = Ge(l.messages) ? l.messages : Vo(n), c = Ge(l.datetimeFormats) ? l.datetimeFormats : Vo(n), s = Ge(l.numberFormats) ? l.numberFormats : Vo(n), o = Ce(Xe(), l.modifiers, MY()), m = l.pluralRules || Xe(), Z = Te(l.missing) ? l.missing : null, u = he(l.missingWarn) || ri(l.missingWarn) ? l.missingWarn : !0, b = he(l.fallbackWarn) || ri(l.fallbackWarn) ? l.fallbackWarn : !0, r = !!l.fallbackFormat, p = !!l.unresolving, G = Te(l.postTranslation) ? l.postTranslation : null, h = Ge(l.processor) ? l.processor : null, W = he(l.warnHtmlMessage) ? l.warnHtmlMessage : !0, Y = !!l.escapeParameter, X = Te(l.messageCompiler) ? l.messageCompiler : f1;
|
|
6846
6846
|
process.env.NODE_ENV !== "production" && Te(l.messageCompiler) && H2(ln(Ae.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
6847
|
-
const M = Te(l.messageResolver) ? l.messageResolver : j1 || YY, T = Te(l.localeFallbacker) ? l.localeFallbacker : J1 || ZY, x = se(l.fallbackContext) ? l.fallbackContext : void 0,
|
|
6847
|
+
const M = Te(l.messageResolver) ? l.messageResolver : j1 || YY, T = Te(l.localeFallbacker) ? l.localeFallbacker : J1 || ZY, x = se(l.fallbackContext) ? l.fallbackContext : void 0, w = l, f = se(w.__datetimeFormatters) ? w.__datetimeFormatters : /* @__PURE__ */ new Map(), z = se(w.__numberFormatters) ? w.__numberFormatters : /* @__PURE__ */ new Map(), E = se(w.__meta) ? w.__meta : {};
|
|
6848
6848
|
zu++;
|
|
6849
6849
|
const D = {
|
|
6850
6850
|
version: t,
|
|
@@ -6870,7 +6870,7 @@ function zY(l = {}) {
|
|
|
6870
6870
|
onWarn: e,
|
|
6871
6871
|
__meta: E
|
|
6872
6872
|
};
|
|
6873
|
-
return D.datetimeFormats = c, D.numberFormats = s, D.__datetimeFormatters = f, D.__numberFormatters = z, process.env.NODE_ENV !== "production" && (D.__v_emitter =
|
|
6873
|
+
return D.datetimeFormats = c, D.numberFormats = s, D.__datetimeFormatters = f, D.__numberFormatters = z, process.env.NODE_ENV !== "production" && (D.__v_emitter = w.__v_emitter != null ? w.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && cY(D, t, E), D;
|
|
6874
6874
|
}
|
|
6875
6875
|
var Vo = (l) => ({ [l]: Xe() });
|
|
6876
6876
|
function _2(l, e) {
|
|
@@ -7105,7 +7105,7 @@ function jY(l = {}) {
|
|
|
7105
7105
|
const [Y, X] = W;
|
|
7106
7106
|
let M = "text", T = "";
|
|
7107
7107
|
W.length === 1 ? se(Y) ? (T = Y.modifier || T, M = Y.type || M) : kl(Y) && (T = Y || T) : W.length === 2 && (kl(Y) && (T = Y || T), kl(X) && (M = X || M));
|
|
7108
|
-
const x = m(h, !0)(G),
|
|
7108
|
+
const x = m(h, !0)(G), w = x === "" || x === void 0 ? h : x, f = M === "vnode" && Ie(w) && T ? w[0] : w;
|
|
7109
7109
|
return T ? Z(T)(f, M) : f;
|
|
7110
7110
|
},
|
|
7111
7111
|
message: m,
|
|
@@ -7131,9 +7131,9 @@ function ju(l, ...e) {
|
|
|
7131
7131
|
let T = !1;
|
|
7132
7132
|
const x = () => {
|
|
7133
7133
|
T = !0;
|
|
7134
|
-
},
|
|
7134
|
+
}, w = Ct(X) ? X : $1(l, s, W, X, M, x);
|
|
7135
7135
|
if (T) return X;
|
|
7136
|
-
const f = kY(l,
|
|
7136
|
+
const f = kY(l, w, jY(UY(l, W, Y, o)));
|
|
7137
7137
|
let z = a ? a(f, s) : f;
|
|
7138
7138
|
if (u && kl(z) && (z = WN(z)), process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
7139
7139
|
const E = {
|
|
@@ -7615,7 +7615,7 @@ function $c(l = {}) {
|
|
|
7615
7615
|
function Q(...Tl) {
|
|
7616
7616
|
return $((yl) => Reflect.apply(ju, null, [yl, ...Tl]), () => Rm(...Tl), "translate", (yl) => Reflect.apply(yl.t, yl, [...Tl]), (yl) => yl, (yl) => kl(yl));
|
|
7617
7617
|
}
|
|
7618
|
-
function
|
|
7618
|
+
function g(...Tl) {
|
|
7619
7619
|
const [yl, Bl, Pl] = Tl;
|
|
7620
7620
|
if (Pl && !se(Pl)) throw rt(Me.INVALID_ARGUMENT);
|
|
7621
7621
|
return Q(yl, Bl, Ce({ resolvedMessage: !0 }, Pl || {}));
|
|
@@ -7796,7 +7796,7 @@ function $c(l = {}) {
|
|
|
7796
7796
|
setMissingHandler: pl,
|
|
7797
7797
|
[lh]: bl
|
|
7798
7798
|
};
|
|
7799
|
-
return pe.datetimeFormats = A, pe.numberFormats = sl, pe.rt =
|
|
7799
|
+
return pe.datetimeFormats = A, pe.numberFormats = sl, pe.rt = g, pe.te = Rl, pe.tm = U, pe.d = V, pe.n = F, pe.getDateTimeFormat = H, pe.setDateTimeFormat = Gl, pe.mergeDateTimeFormat = Ll, pe.getNumberFormat = Ul, pe.setNumberFormat = de, pe.mergeNumberFormat = ze, pe[eh] = t, pe[vm] = Yl, pe[Fm] = Xl, pe[fm] = Sl, process.env.NODE_ENV !== "production" && (pe[fa] = (Tl) => {
|
|
7800
7800
|
x.__v_emitter = Tl;
|
|
7801
7801
|
}, pe[In] = () => {
|
|
7802
7802
|
x.__v_emitter = void 0;
|
|
@@ -10955,7 +10955,7 @@ var eM = ["width", "height"], tM = { key: 0 }, aM = ["id", "y2"], nM = ["stop-co
|
|
|
10955
10955
|
areaPath: Xl
|
|
10956
10956
|
};
|
|
10957
10957
|
});
|
|
10958
|
-
}), x = I(() => e.area || p.value),
|
|
10958
|
+
}), x = I(() => e.area || p.value), w = I(() => x.value && e.gradient !== !1), f = Us(), z = (V) => `${f}-grad-${V}`, E = I(() => Math.max(1, Math.ceil(u.value.length / e.maxLabels))), D = I(() => (d.value + c.value) * 2), K = I(() => D.value * (1 - m.value)), A = k(null), sl = k(0);
|
|
10959
10959
|
function _(V) {
|
|
10960
10960
|
if (!u.value.length) return;
|
|
10961
10961
|
Ud(V, sl);
|
|
@@ -10978,7 +10978,7 @@ var eM = ["width", "height"], tM = { key: 0 }, aM = ["id", "y2"], nM = ["stop-co
|
|
|
10978
10978
|
name: V.name,
|
|
10979
10979
|
color: tt(V.color, F),
|
|
10980
10980
|
value: Ke(V.points[A.value]?.y ?? 0, b.value)
|
|
10981
|
-
}))), $ = I(() => A.value == null ? "" : ls(u.value[A.value])), Q = I(() => A.value == null || !p.value ? null : Ke(Z.value.reduce((V, F) => V + (F.points[A.value]?.y ?? 0), 0), b.value)),
|
|
10981
|
+
}))), $ = I(() => A.value == null ? "" : ls(u.value[A.value])), Q = I(() => A.value == null || !p.value ? null : Ke(Z.value.reduce((V, F) => V + (F.points[A.value]?.y ?? 0), 0), b.value)), g = bh(sl, a);
|
|
10982
10982
|
return (V, F) => (L(), y("div", {
|
|
10983
10983
|
ref_key: "el",
|
|
10984
10984
|
ref: t,
|
|
@@ -10991,7 +10991,7 @@ var eM = ["width", "height"], tM = { key: 0 }, aM = ["id", "y2"], nM = ["stop-co
|
|
|
10991
10991
|
width: N(a),
|
|
10992
10992
|
height: N(n),
|
|
10993
10993
|
class: "display-block overflow-hidden"
|
|
10994
|
-
}, [
|
|
10994
|
+
}, [w.value ? (L(), y("defs", tM, [(L(!0), y(Ml, null, vl(T.value, (v, el) => (L(), y("linearGradient", {
|
|
10995
10995
|
id: z(el),
|
|
10996
10996
|
key: el,
|
|
10997
10997
|
gradientUnits: "userSpaceOnUse",
|
|
@@ -11021,7 +11021,7 @@ var eM = ["width", "height"], tM = { key: 0 }, aM = ["id", "y2"], nM = ["stop-co
|
|
|
11021
11021
|
x.value ? (L(!0), y(Ml, { key: 1 }, vl(T.value, (v, el) => (L(), y("path", {
|
|
11022
11022
|
key: `a${el}`,
|
|
11023
11023
|
d: v.areaPath,
|
|
11024
|
-
fill:
|
|
11024
|
+
fill: w.value ? `url(#${z(el)})` : N(Ds)(v.color, p.value ? 78 : 14),
|
|
11025
11025
|
stroke: "none",
|
|
11026
11026
|
opacity: N(m)
|
|
11027
11027
|
}, null, 8, mM))), 128)) : C("", !0),
|
|
@@ -11068,7 +11068,7 @@ var eM = ["width", "height"], tM = { key: 0 }, aM = ["id", "y2"], nM = ["stop-co
|
|
|
11068
11068
|
], 8, dM)], 8, eM)) : C("", !0), A.value != null ? (L(), ol(Dd, {
|
|
11069
11069
|
key: 1,
|
|
11070
11070
|
prefer: "top",
|
|
11071
|
-
style: Il(N(
|
|
11071
|
+
style: Il(N(g)),
|
|
11072
11072
|
label: $.value,
|
|
11073
11073
|
rows: O.value,
|
|
11074
11074
|
total: Q.value
|
|
@@ -11145,8 +11145,8 @@ var eM = ["width", "height"], tM = { key: 0 }, aM = ["id", "y2"], nM = ["stop-co
|
|
|
11145
11145
|
return Z.value.forEach((pl, O) => {
|
|
11146
11146
|
const $ = Y.value.start(O);
|
|
11147
11147
|
let Q = c.value;
|
|
11148
|
-
m.value.forEach((
|
|
11149
|
-
const F =
|
|
11148
|
+
m.value.forEach((g, V) => {
|
|
11149
|
+
const F = g.points[O]?.y ?? 0, v = tt(g.color, V), el = c.value - h.value(F), ll = el * o.value, Yl = X.value.width, Sl = e.stacked ? $ : $ + X.value.at(V), Xl = e.stacked ? Q - ll : c.value - ll;
|
|
11150
11150
|
e.stacked && (Q -= el), il.push({
|
|
11151
11151
|
x: s(Sl + Yl / 2) - Yl / 2,
|
|
11152
11152
|
y: Xl,
|
|
@@ -11157,7 +11157,7 @@ var eM = ["width", "height"], tM = { key: 0 }, aM = ["id", "y2"], nM = ["stop-co
|
|
|
11157
11157
|
});
|
|
11158
11158
|
});
|
|
11159
11159
|
}), il;
|
|
11160
|
-
}), T = I(() => Math.max(1, Math.ceil(Z.value.length / e.maxLabels))), x = Us("bar"),
|
|
11160
|
+
}), T = I(() => Math.max(1, Math.ceil(Z.value.length / e.maxLabels))), x = Us("bar"), w = I(() => [...new Set(M.value.map((il) => il.color))]), f = (il) => `${x}-${w.value.indexOf(il)}`, z = k(null), E = k(0);
|
|
11161
11161
|
function D(il) {
|
|
11162
11162
|
if (!Z.value.length) return;
|
|
11163
11163
|
Ud(il, E);
|
|
@@ -11192,7 +11192,7 @@ var eM = ["width", "height"], tM = { key: 0 }, aM = ["id", "y2"], nM = ["stop-co
|
|
|
11192
11192
|
width: N(a),
|
|
11193
11193
|
height: N(n),
|
|
11194
11194
|
class: "display-block overflow-hidden"
|
|
11195
|
-
}, [l.gradient ? (L(), y("defs", LM, [(L(!0), y(Ml, null, vl(
|
|
11195
|
+
}, [l.gradient ? (L(), y("defs", LM, [(L(!0), y(Ml, null, vl(w.value, (O) => (L(), y("linearGradient", {
|
|
11196
11196
|
id: f(O),
|
|
11197
11197
|
key: O,
|
|
11198
11198
|
x1: "0",
|
|
@@ -11345,19 +11345,19 @@ var FM = [
|
|
|
11345
11345
|
});
|
|
11346
11346
|
}
|
|
11347
11347
|
const c = I(() => e.data.reduce((T, x) => T + Math.max(0, x.value), 0) || 1), s = I(() => e.size / 2), o = I(() => e.pie ? 0 : s.value * (1 - e.thickness)), m = I(() => {
|
|
11348
|
-
const T = s.value, x = o.value,
|
|
11348
|
+
const T = s.value, x = o.value, w = T, f = T, z = x + (T - x) * 0.68;
|
|
11349
11349
|
let E = -Math.PI / 2;
|
|
11350
11350
|
return e.data.map((D, K) => {
|
|
11351
11351
|
const A = Math.max(0, D.value) / c.value, sl = A * Math.PI * 2 * n.value, _ = E;
|
|
11352
11352
|
E += sl;
|
|
11353
11353
|
const B = _ + sl / 2, il = D.color ? tt(D.color) : e.mode === "multi" ? tt(void 0, K) : U2(e.color, e.data.length, K), pl = A * 100, O = !!e.labels && A >= e.labelMinShare;
|
|
11354
11354
|
return {
|
|
11355
|
-
d: vM(
|
|
11355
|
+
d: vM(w, f, T, x, _, sl),
|
|
11356
11356
|
color: il,
|
|
11357
11357
|
label: D.label,
|
|
11358
11358
|
value: D.value,
|
|
11359
11359
|
pct: pl,
|
|
11360
|
-
lx:
|
|
11360
|
+
lx: w + z * Math.cos(B),
|
|
11361
11361
|
ly: f + z * Math.sin(B),
|
|
11362
11362
|
tagged: O,
|
|
11363
11363
|
tagName: O && e.labels === "full" ? D.label : "",
|
|
@@ -11400,39 +11400,39 @@ var FM = [
|
|
|
11400
11400
|
width: l.size,
|
|
11401
11401
|
height: l.size,
|
|
11402
11402
|
viewBox: `0 0 ${l.size} ${l.size}`
|
|
11403
|
-
}, [(L(!0), y(Ml, null, vl(m.value, (
|
|
11403
|
+
}, [(L(!0), y(Ml, null, vl(m.value, (w, f) => (L(), y("path", {
|
|
11404
11404
|
key: f,
|
|
11405
|
-
d:
|
|
11406
|
-
fill:
|
|
11405
|
+
d: w.d,
|
|
11406
|
+
fill: w.color,
|
|
11407
11407
|
class: ml(["bgl-donut__slice cursor-pointer", { "opacity-5": u.value != null && u.value !== f }]),
|
|
11408
11408
|
onMouseenter: (z) => p(f)
|
|
11409
|
-
}, null, 42, fM))), 128)), (L(!0), y(Ml, null, vl(m.value, (
|
|
11409
|
+
}, null, 42, fM))), 128)), (L(!0), y(Ml, null, vl(m.value, (w, f) => Hl((L(), y("text", {
|
|
11410
11410
|
key: `t${f}`,
|
|
11411
|
-
x:
|
|
11412
|
-
y:
|
|
11411
|
+
x: w.lx,
|
|
11412
|
+
y: w.ly,
|
|
11413
11413
|
class: "bgl-donut__tag pointer-events-none",
|
|
11414
11414
|
"text-anchor": "middle",
|
|
11415
11415
|
"dominant-baseline": "central"
|
|
11416
11416
|
}, [
|
|
11417
|
-
|
|
11417
|
+
w.tagName ? (L(), y("tspan", {
|
|
11418
11418
|
key: 0,
|
|
11419
|
-
x:
|
|
11419
|
+
x: w.lx,
|
|
11420
11420
|
dy: "-0.7em",
|
|
11421
11421
|
class: "bgl-donut__tag-name opacity-9 txt-medium txt-0625rem"
|
|
11422
|
-
}, nl(
|
|
11423
|
-
|
|
11422
|
+
}, nl(w.tagName), 9, JM)) : C("", !0),
|
|
11423
|
+
w.tagValue ? (L(), y("tspan", {
|
|
11424
11424
|
key: 1,
|
|
11425
|
-
x:
|
|
11426
|
-
dy:
|
|
11425
|
+
x: w.lx,
|
|
11426
|
+
dy: w.tagName ? "1.15em" : "0",
|
|
11427
11427
|
class: "bgl-donut__tag-val txt-bold txt-0875rem"
|
|
11428
|
-
}, nl(
|
|
11429
|
-
|
|
11428
|
+
}, nl(w.tagValue), 9, kM)) : C("", !0),
|
|
11429
|
+
w.tagPct ? (L(), y("tspan", {
|
|
11430
11430
|
key: 2,
|
|
11431
|
-
x:
|
|
11432
|
-
dy:
|
|
11431
|
+
x: w.lx,
|
|
11432
|
+
dy: w.tagName || w.tagValue ? "1.5em" : "0",
|
|
11433
11433
|
class: "bgl-donut__tag-pct opacity-9 txt-05rem"
|
|
11434
|
-
}, nl(
|
|
11435
|
-
], 8, jM)), [[Vn,
|
|
11434
|
+
}, nl(w.tagPct), 9, CM)) : C("", !0)
|
|
11435
|
+
], 8, jM)), [[Vn, w.tagged]])), 128))], 8, FM)),
|
|
11436
11436
|
!l.pie && (Z.value || l.centerLabel) ? (L(), y("div", DM, [Z.value ? (L(), y("span", UM, nl(Z.value), 1)) : C("", !0), l.centerLabel ? (L(), y("span", OM, nl(l.centerLabel), 1)) : C("", !0)])) : C("", !0),
|
|
11437
11437
|
W.value ? (L(), ol(Dd, {
|
|
11438
11438
|
key: 1,
|
|
@@ -11447,17 +11447,17 @@ var FM = [
|
|
|
11447
11447
|
"rows",
|
|
11448
11448
|
"stats"
|
|
11449
11449
|
])) : C("", !0)
|
|
11450
|
-
], 36), l.legend ? (L(), y("ul", EM, [(L(!0), y(Ml, null, vl(m.value, (
|
|
11450
|
+
], 36), l.legend ? (L(), y("ul", EM, [(L(!0), y(Ml, null, vl(m.value, (w, f) => (L(), y("li", {
|
|
11451
11451
|
key: f,
|
|
11452
11452
|
class: "flex gap-05 txt13"
|
|
11453
11453
|
}, [
|
|
11454
11454
|
S("span", {
|
|
11455
11455
|
class: "bgl-donut__dot flex-shrink-0",
|
|
11456
|
-
style: Il({ background:
|
|
11456
|
+
style: Il({ background: w.color })
|
|
11457
11457
|
}, null, 4),
|
|
11458
|
-
S("span", KM, nl(
|
|
11459
|
-
l.legendValue ? (L(), y("span", HM, nl(d(
|
|
11460
|
-
l.legendPct ? (L(), y("span", PM, nl(
|
|
11458
|
+
S("span", KM, nl(w.label), 1),
|
|
11459
|
+
l.legendValue ? (L(), y("span", HM, nl(d(w.value)), 1)) : C("", !0),
|
|
11460
|
+
l.legendPct ? (L(), y("span", PM, nl(w.pct.toFixed(0)) + "%", 1)) : C("", !0)
|
|
11461
11461
|
]))), 128))])) : C("", !0)], 2));
|
|
11462
11462
|
}
|
|
11463
11463
|
}), uQ = /* @__PURE__ */ Jl(BM, [["__scopeId", "data-v-c79ba4e1"]]), QM = ["viewBox"], AM = { key: 0 }, _M = [
|
|
@@ -11525,16 +11525,16 @@ var FM = [
|
|
|
11525
11525
|
const K = s.value[0]?.value || 1;
|
|
11526
11526
|
return s.value.map((A, sl) => {
|
|
11527
11527
|
const _ = s.value[sl - 1]?.value, B = A.color ? tt(A.color) : e.mode === "multi" ? tt(void 0, sl) : U2(e.color, s.value.length, sl), il = A.value / K * 100, pl = _ ? A.value / _ * 100 : 100, O = sl === 0, $ = [`<b>${Ke(A.value, n.value)}</b>`];
|
|
11528
|
-
!O && e.fromTop && $.push(`${il.toFixed(1)}% of top`), !O && e.fromPrev && $.push(`${pl.toFixed(1)}% from previous`), d.value && (e.series ?? []).forEach((
|
|
11529
|
-
const V =
|
|
11530
|
-
V > 0 && $.push(`<span style="opacity:.7">${
|
|
11528
|
+
!O && e.fromTop && $.push(`${il.toFixed(1)}% of top`), !O && e.fromPrev && $.push(`${pl.toFixed(1)}% from previous`), d.value && (e.series ?? []).forEach((g) => {
|
|
11529
|
+
const V = g.data[sl] ?? 0;
|
|
11530
|
+
V > 0 && $.push(`<span style="opacity:.7">${g.name}:</span> ${Ke(V, n.value)}`);
|
|
11531
11531
|
});
|
|
11532
|
-
const Q = d.value ? (e.series ?? []).map((
|
|
11533
|
-
name:
|
|
11532
|
+
const Q = d.value ? (e.series ?? []).map((g, V) => ({
|
|
11533
|
+
name: g.name,
|
|
11534
11534
|
color: c.value[V].color,
|
|
11535
|
-
value: Ke(
|
|
11536
|
-
raw:
|
|
11537
|
-
})).filter((
|
|
11535
|
+
value: Ke(g.data[sl] ?? 0, n.value),
|
|
11536
|
+
raw: g.data[sl] ?? 0
|
|
11537
|
+
})).filter((g) => g.raw > 0) : [{
|
|
11538
11538
|
name: A.label,
|
|
11539
11539
|
color: B,
|
|
11540
11540
|
value: Ke(A.value, n.value),
|
|
@@ -11580,10 +11580,10 @@ var FM = [
|
|
|
11580
11580
|
if (!d.value) return [];
|
|
11581
11581
|
const K = e.bandHeight, A = e.series ?? [], sl = [];
|
|
11582
11582
|
return o.value.forEach((_, B) => {
|
|
11583
|
-
const il = B === o.value.length - 1, pl = o.value[B + 1] ?? _, O = B * K, $ = (B + 1) * K, Q = _.value || 1,
|
|
11583
|
+
const il = B === o.value.length - 1, pl = o.value[B + 1] ?? _, O = B * K, $ = (B + 1) * K, Q = _.value || 1, g = pl.value || 1, V = -p(_.frac), F = p(_.frac) * 2, v = -p(pl.frac), el = p(pl.frac) * 2;
|
|
11584
11584
|
let ll = 0, Yl = 0;
|
|
11585
11585
|
A.forEach((Sl, Xl) => {
|
|
11586
|
-
const bl = (Sl.data[B] ?? 0) / Q, Rl = il ? bl : (Sl.data[B + 1] ?? 0) /
|
|
11586
|
+
const bl = (Sl.data[B] ?? 0) / Q, Rl = il ? bl : (Sl.data[B + 1] ?? 0) / g, xl = V + ll * F, U = V + (ll + bl) * F, tl = v + Yl * el, dl = v + (Yl + Rl) * el;
|
|
11587
11587
|
ll += bl, Yl += Rl, sl.push({
|
|
11588
11588
|
path: G(O, $, xl, U, tl, dl),
|
|
11589
11589
|
color: c.value[Xl].color,
|
|
@@ -11598,7 +11598,7 @@ var FM = [
|
|
|
11598
11598
|
function x() {
|
|
11599
11599
|
Y.value = null;
|
|
11600
11600
|
}
|
|
11601
|
-
function
|
|
11601
|
+
function w(K) {
|
|
11602
11602
|
Ud(K, X, M);
|
|
11603
11603
|
}
|
|
11604
11604
|
const f = I(() => Y.value == null ? null : o.value[Y.value]), z = I(() => {
|
|
@@ -11626,7 +11626,7 @@ var FM = [
|
|
|
11626
11626
|
l.flow ? (L(), y("div", {
|
|
11627
11627
|
key: 0,
|
|
11628
11628
|
class: "bgl-funnel__flow relative",
|
|
11629
|
-
onMousemove:
|
|
11629
|
+
onMousemove: w,
|
|
11630
11630
|
onMouseleave: x
|
|
11631
11631
|
}, [
|
|
11632
11632
|
(L(), y("svg", {
|
|
@@ -12255,7 +12255,7 @@ var LV = ["transform"], XV = [
|
|
|
12255
12255
|
name: W.value.label,
|
|
12256
12256
|
color: W.value.fill,
|
|
12257
12257
|
value: Ke(W.value.value, d.value)
|
|
12258
|
-
}] : []), X = tZ(b, r), M = I(() => Ke(0, d.value)), T = I(() => Ke(s.value, d.value)), x = k(1),
|
|
12258
|
+
}] : []), X = tZ(b, r), M = I(() => Ke(0, d.value)), T = I(() => Ke(s.value, d.value)), x = k(1), w = k(0), f = k(0), z = k(!1), E = k(null), D = I(() => `translate(${w.value} ${f.value}) scale(${x.value})`), K = I(() => x.value > Dn + 1e-3);
|
|
12259
12259
|
function A(V, F, v) {
|
|
12260
12260
|
return Math.min(v, Math.max(F, V));
|
|
12261
12261
|
}
|
|
@@ -12282,7 +12282,7 @@ var LV = ["transform"], XV = [
|
|
|
12282
12282
|
const el = A(v, Dn, lb);
|
|
12283
12283
|
if (el === x.value) return;
|
|
12284
12284
|
const { x: ll, y: Yl } = sl(V, F), Sl = el / x.value;
|
|
12285
|
-
|
|
12285
|
+
w.value = ll - (ll - w.value) * Sl, f.value = Yl - (Yl - f.value) * Sl, x.value = el, el <= Dn && (w.value = 0, f.value = 0, x.value = Dn);
|
|
12286
12286
|
}
|
|
12287
12287
|
function B(V) {
|
|
12288
12288
|
if (!t.zoomable) return;
|
|
@@ -12297,7 +12297,7 @@ var LV = ["transform"], XV = [
|
|
|
12297
12297
|
_(v.left + v.width / 2, v.top + v.height / 2, x.value * V);
|
|
12298
12298
|
}
|
|
12299
12299
|
function pl() {
|
|
12300
|
-
x.value = Dn,
|
|
12300
|
+
x.value = Dn, w.value = 0, f.value = 0;
|
|
12301
12301
|
}
|
|
12302
12302
|
function O(V) {
|
|
12303
12303
|
if (!t.zoomable || !K.value || V.button !== 0) return;
|
|
@@ -12306,19 +12306,19 @@ var LV = ["transform"], XV = [
|
|
|
12306
12306
|
E.value = {
|
|
12307
12307
|
x: F.x,
|
|
12308
12308
|
y: F.y,
|
|
12309
|
-
tx:
|
|
12309
|
+
tx: w.value,
|
|
12310
12310
|
ty: f.value
|
|
12311
12311
|
}, V.currentTarget.setPointerCapture?.(V.pointerId);
|
|
12312
12312
|
}
|
|
12313
12313
|
function $(V) {
|
|
12314
12314
|
if (!z.value || !E.value) return;
|
|
12315
12315
|
const F = sl(V.clientX, V.clientY);
|
|
12316
|
-
|
|
12316
|
+
w.value = E.value.tx + (F.x - E.value.x), f.value = E.value.ty + (F.y - E.value.y);
|
|
12317
12317
|
}
|
|
12318
12318
|
function Q(V) {
|
|
12319
12319
|
z.value && (z.value = !1, E.value = null, V.currentTarget.releasePointerCapture?.(V.pointerId));
|
|
12320
12320
|
}
|
|
12321
|
-
const
|
|
12321
|
+
const g = `${e.x} ${e.y} ${e.width} ${e.height}`;
|
|
12322
12322
|
return (V, F) => (L(), y("div", {
|
|
12323
12323
|
ref_key: "el",
|
|
12324
12324
|
ref: a,
|
|
@@ -12343,7 +12343,7 @@ var LV = ["transform"], XV = [
|
|
|
12343
12343
|
ref: n,
|
|
12344
12344
|
class: "bgl-map__svg",
|
|
12345
12345
|
dir: "ltr",
|
|
12346
|
-
viewBox:
|
|
12346
|
+
viewBox: g,
|
|
12347
12347
|
preserveAspectRatio: "xMidYMid meet",
|
|
12348
12348
|
width: "100%",
|
|
12349
12349
|
height: "100%"
|
|
@@ -13755,18 +13755,18 @@ var KT = ["src", "title"], HT = [
|
|
|
13755
13755
|
const o = I(() => {
|
|
13756
13756
|
const W = c(), Y = (/* @__PURE__ */ new Date()).toDateString(), X = [...t.events].sort((T, x) => new Date(T.start_time).getTime() - new Date(x.start_time).getTime()), M = /* @__PURE__ */ new Map();
|
|
13757
13757
|
for (const T of X) {
|
|
13758
|
-
const x = new Date(T.start_time),
|
|
13759
|
-
M.has(
|
|
13760
|
-
dateKey:
|
|
13758
|
+
const x = new Date(T.start_time), w = x.toDateString();
|
|
13759
|
+
M.has(w) || M.set(w, {
|
|
13760
|
+
dateKey: w,
|
|
13761
13761
|
date: x,
|
|
13762
13762
|
dayNumber: x.toLocaleDateString(W, { day: "2-digit" }),
|
|
13763
13763
|
monthShort: x.toLocaleDateString(W, { month: "short" }),
|
|
13764
13764
|
weekdayLong: x.toLocaleDateString(W, { weekday: "long" }),
|
|
13765
|
-
isToday:
|
|
13765
|
+
isToday: w === Y,
|
|
13766
13766
|
events: []
|
|
13767
13767
|
});
|
|
13768
13768
|
const f = Math.round((new Date(T.end_time).getTime() - new Date(T.start_time).getTime()) / 6e4);
|
|
13769
|
-
M.get(
|
|
13769
|
+
M.get(w).events.push({
|
|
13770
13770
|
...T,
|
|
13771
13771
|
durationMin: f
|
|
13772
13772
|
});
|
|
@@ -13783,8 +13783,8 @@ var KT = ["src", "title"], HT = [
|
|
|
13783
13783
|
const Y = W.querySelectorAll(".agenda-day-group"), X = W.getBoundingClientRect().top;
|
|
13784
13784
|
let M = null, T = 1 / 0;
|
|
13785
13785
|
if (Y.forEach((x) => {
|
|
13786
|
-
const
|
|
13787
|
-
|
|
13786
|
+
const w = Math.abs(x.getBoundingClientRect().top - X);
|
|
13787
|
+
w < T && (T = w, M = x);
|
|
13788
13788
|
}), M) {
|
|
13789
13789
|
const x = M.dataset.date;
|
|
13790
13790
|
x && a("dateChange", new Date(x));
|
|
@@ -13817,24 +13817,24 @@ var KT = ["src", "title"], HT = [
|
|
|
13817
13817
|
const M = Array.from(d.value.querySelectorAll(".agenda-day-group"));
|
|
13818
13818
|
if (!M.length) return;
|
|
13819
13819
|
const T = G(W);
|
|
13820
|
-
let x = null,
|
|
13820
|
+
let x = null, w = 1 / 0;
|
|
13821
13821
|
if (X === "forward") for (const f of M) {
|
|
13822
13822
|
const z = f.dataset.date;
|
|
13823
13823
|
if (!z) continue;
|
|
13824
13824
|
const E = G(new Date(z));
|
|
13825
|
-
E >= T && E - T <
|
|
13825
|
+
E >= T && E - T < w && (w = E - T, x = f);
|
|
13826
13826
|
}
|
|
13827
13827
|
else if (X === "backward") for (const f of M) {
|
|
13828
13828
|
const z = f.dataset.date;
|
|
13829
13829
|
if (!z) continue;
|
|
13830
13830
|
const E = G(new Date(z));
|
|
13831
|
-
E <= T && T - E <
|
|
13831
|
+
E <= T && T - E < w && (w = T - E, x = f);
|
|
13832
13832
|
}
|
|
13833
13833
|
if (!x) for (const f of M) {
|
|
13834
13834
|
const z = f.dataset.date;
|
|
13835
13835
|
if (!z) continue;
|
|
13836
13836
|
const E = Math.abs(G(new Date(z)) - T);
|
|
13837
|
-
E <
|
|
13837
|
+
E < w && (w = E, x = f);
|
|
13838
13838
|
}
|
|
13839
13839
|
x?.scrollIntoView({
|
|
13840
13840
|
block: "start",
|
|
@@ -13915,11 +13915,11 @@ var KT = ["src", "title"], HT = [
|
|
|
13915
13915
|
});
|
|
13916
13916
|
return W;
|
|
13917
13917
|
}), Z = I(() => t.events.filter((W) => new Date(W.start_time).toDateString() === t.startDate.toDateString()).map((W) => {
|
|
13918
|
-
const Y = new Date(W.start_time), X = new Date(W.end_time), M = Y.getHours() * 60 + Y.getMinutes(), T = X.getHours() * 60 + X.getMinutes(), x = M / fi * Fi,
|
|
13918
|
+
const Y = new Date(W.start_time), X = new Date(W.end_time), M = Y.getHours() * 60 + Y.getMinutes(), T = X.getHours() * 60 + X.getMinutes(), x = M / fi * Fi, w = Math.max((T - M) / fi * Fi, 30);
|
|
13919
13919
|
return {
|
|
13920
13920
|
...W,
|
|
13921
13921
|
top: x,
|
|
13922
|
-
height:
|
|
13922
|
+
height: w
|
|
13923
13923
|
};
|
|
13924
13924
|
}));
|
|
13925
13925
|
function u() {
|
|
@@ -13955,8 +13955,8 @@ var KT = ["src", "title"], HT = [
|
|
|
13955
13955
|
function G(W) {
|
|
13956
13956
|
const Y = document.querySelector(".time-slots")?.getBoundingClientRect();
|
|
13957
13957
|
if (!Y) return /* @__PURE__ */ new Date();
|
|
13958
|
-
const X = W - Y.top, M = fi, T = X / Fi, x = Math.floor(T * M),
|
|
13959
|
-
return
|
|
13958
|
+
const X = W - Y.top, M = fi, T = X / Fi, x = Math.floor(T * M), w = new Date(t.startDate);
|
|
13959
|
+
return w.setHours(Math.floor(x / 60)), w.setMinutes(x % 60), w.setSeconds(0), w.setMilliseconds(0), w;
|
|
13960
13960
|
}
|
|
13961
13961
|
function h(W, Y) {
|
|
13962
13962
|
if (!n.eventContent) {
|
|
@@ -14142,17 +14142,17 @@ var KT = ["src", "title"], HT = [
|
|
|
14142
14142
|
currentMinute: 0
|
|
14143
14143
|
});
|
|
14144
14144
|
wl(() => t.availabilitySlots, (Q) => {
|
|
14145
|
-
s.value = Q.map((
|
|
14146
|
-
start_time: new Date(
|
|
14147
|
-
end_time: new Date(
|
|
14145
|
+
s.value = Q.map((g) => ({
|
|
14146
|
+
start_time: new Date(g.start_time),
|
|
14147
|
+
end_time: new Date(g.end_time)
|
|
14148
14148
|
}));
|
|
14149
14149
|
}, { immediate: !0 });
|
|
14150
14150
|
const m = I(() => {
|
|
14151
|
-
const Q = [],
|
|
14152
|
-
|
|
14151
|
+
const Q = [], g = new Date(t.startDate), V = t.weekStart === "Sunday" ? 0 : 1, F = g.getDay();
|
|
14152
|
+
g.setDate(g.getDate() - F + V), g.setHours(0, 0, 0, 0);
|
|
14153
14153
|
for (let v = 0; v < 7; v++) {
|
|
14154
|
-
const el = new Date(
|
|
14155
|
-
el.setDate(
|
|
14154
|
+
const el = new Date(g);
|
|
14155
|
+
el.setDate(g.getDate() + v), Q.push(el);
|
|
14156
14156
|
}
|
|
14157
14157
|
return Q;
|
|
14158
14158
|
});
|
|
@@ -14160,55 +14160,55 @@ var KT = ["src", "title"], HT = [
|
|
|
14160
14160
|
return Math.round(Q / oc) * oc;
|
|
14161
14161
|
}
|
|
14162
14162
|
function u(Q) {
|
|
14163
|
-
return s.value.filter((
|
|
14164
|
-
const V = new Date(
|
|
14163
|
+
return s.value.filter((g) => {
|
|
14164
|
+
const V = new Date(g.start_time);
|
|
14165
14165
|
return V.getFullYear() === Q.getFullYear() && V.getMonth() === Q.getMonth() && V.getDate() === Q.getDate();
|
|
14166
|
-
}).map((
|
|
14167
|
-
const V = new Date(
|
|
14166
|
+
}).map((g) => {
|
|
14167
|
+
const V = new Date(g.start_time).getHours() * 60 + new Date(g.start_time).getMinutes(), F = new Date(g.end_time).getHours() * 60 + new Date(g.end_time).getMinutes();
|
|
14168
14168
|
return {
|
|
14169
14169
|
top: V / jt * Qe,
|
|
14170
14170
|
height: (F - V) / jt * Qe,
|
|
14171
|
-
slot:
|
|
14171
|
+
slot: g
|
|
14172
14172
|
};
|
|
14173
14173
|
});
|
|
14174
14174
|
}
|
|
14175
14175
|
function b(Q) {
|
|
14176
14176
|
if (!o.value.isDragging || o.value.dayIndex !== Q) return null;
|
|
14177
|
-
const
|
|
14177
|
+
const g = Math.min(o.value.startMinute, o.value.currentMinute), V = Math.max(o.value.startMinute, o.value.currentMinute);
|
|
14178
14178
|
return {
|
|
14179
|
-
top:
|
|
14180
|
-
height: (V -
|
|
14179
|
+
top: g / jt * Qe,
|
|
14180
|
+
height: (V - g) / jt * Qe,
|
|
14181
14181
|
mode: o.value.mode
|
|
14182
14182
|
};
|
|
14183
14183
|
}
|
|
14184
|
-
function r(Q,
|
|
14184
|
+
function r(Q, g) {
|
|
14185
14185
|
return s.value.some((V) => {
|
|
14186
14186
|
const F = new Date(V.start_time);
|
|
14187
14187
|
if (F.getFullYear() !== Q.getFullYear() || F.getMonth() !== Q.getMonth() || F.getDate() !== Q.getDate()) return !1;
|
|
14188
14188
|
const v = F.getHours() * 60 + F.getMinutes(), el = new Date(V.end_time).getHours() * 60 + new Date(V.end_time).getMinutes();
|
|
14189
|
-
return
|
|
14189
|
+
return g >= v && g < el;
|
|
14190
14190
|
});
|
|
14191
14191
|
}
|
|
14192
|
-
function p(Q,
|
|
14192
|
+
function p(Q, g) {
|
|
14193
14193
|
if (!t.availabilityEditable) return;
|
|
14194
14194
|
Q.preventDefault(), Q.stopPropagation();
|
|
14195
|
-
const V = m.value[
|
|
14195
|
+
const V = m.value[g], F = Z(z(Q.clientY));
|
|
14196
14196
|
o.value = {
|
|
14197
14197
|
isDragging: !0,
|
|
14198
14198
|
mode: r(V, F) ? "remove" : "add",
|
|
14199
|
-
dayIndex:
|
|
14199
|
+
dayIndex: g,
|
|
14200
14200
|
startMinute: F,
|
|
14201
14201
|
currentMinute: F + oc
|
|
14202
14202
|
}, document.addEventListener("mousemove", G), document.addEventListener("mouseup", h);
|
|
14203
14203
|
}
|
|
14204
14204
|
function G(Q) {
|
|
14205
14205
|
if (!o.value.isDragging) return;
|
|
14206
|
-
const
|
|
14207
|
-
o.value.currentMinute =
|
|
14206
|
+
const g = Z(z(Q.clientY));
|
|
14207
|
+
o.value.currentMinute = g;
|
|
14208
14208
|
}
|
|
14209
14209
|
function h() {
|
|
14210
14210
|
if (!o.value.isDragging) return;
|
|
14211
|
-
const { dayIndex: Q, startMinute:
|
|
14211
|
+
const { dayIndex: Q, startMinute: g, currentMinute: V, mode: F } = o.value, v = m.value[Q], el = Math.min(g, V), ll = Math.max(g, V);
|
|
14212
14212
|
if (ll - el < oc) {
|
|
14213
14213
|
o.value.isDragging = !1, document.removeEventListener("mousemove", G), document.removeEventListener("mouseup", h);
|
|
14214
14214
|
return;
|
|
@@ -14266,29 +14266,29 @@ var KT = ["src", "title"], HT = [
|
|
|
14266
14266
|
}
|
|
14267
14267
|
a("availabilityChange", s.value), o.value.isDragging = !1, document.removeEventListener("mousemove", G), document.removeEventListener("mouseup", h);
|
|
14268
14268
|
}
|
|
14269
|
-
const W = k(0), Y = k(!1), X = k(), M = k(), T = k(), x = k([]),
|
|
14269
|
+
const W = k(0), Y = k(!1), X = k(), M = k(), T = k(), x = k([]), w = k(), f = k();
|
|
14270
14270
|
function z(Q) {
|
|
14271
|
-
if (!
|
|
14272
|
-
const
|
|
14273
|
-
return Math.max(0, Math.min(
|
|
14271
|
+
if (!w.value) return 0;
|
|
14272
|
+
const g = Q - w.value.getBoundingClientRect().top;
|
|
14273
|
+
return Math.max(0, Math.min(g / Qe * jt, 1440));
|
|
14274
14274
|
}
|
|
14275
14275
|
const E = I(() => {
|
|
14276
14276
|
const Q = [];
|
|
14277
|
-
for (let
|
|
14278
|
-
hour:
|
|
14277
|
+
for (let g = i.start; g < i.end; g++) for (let V = 0; V < 60; V += jt) Q.push({
|
|
14278
|
+
hour: g,
|
|
14279
14279
|
minute: V,
|
|
14280
|
-
time: `${
|
|
14280
|
+
time: `${g.toString().padStart(2, "0")}:${V.toString().padStart(2, "0")}`
|
|
14281
14281
|
});
|
|
14282
14282
|
return Q;
|
|
14283
14283
|
}), D = I(() => {
|
|
14284
14284
|
if (!c.value.isDragging || !c.value.startTime || !c.value.endTime) return null;
|
|
14285
|
-
const Q = c.value.startTime.getHours() * 60 + c.value.startTime.getMinutes(),
|
|
14285
|
+
const Q = c.value.startTime.getHours() * 60 + c.value.startTime.getMinutes(), g = c.value.endTime.getHours() * 60 + c.value.endTime.getMinutes();
|
|
14286
14286
|
return {
|
|
14287
14287
|
top: Q / jt * Qe,
|
|
14288
|
-
height: Math.max((
|
|
14288
|
+
height: Math.max((g - Q) / jt * Qe, 30)
|
|
14289
14289
|
};
|
|
14290
14290
|
}), K = I(() => {
|
|
14291
|
-
const Q = [],
|
|
14291
|
+
const Q = [], g = {};
|
|
14292
14292
|
return t.events.forEach((V) => {
|
|
14293
14293
|
const F = new Date(V.start_time), v = new Date(V.end_time), el = m.value.findIndex((Rl) => Rl.getDate() === F.getDate() && Rl.getMonth() === F.getMonth() && Rl.getFullYear() === F.getFullYear());
|
|
14294
14294
|
if (el === -1) return;
|
|
@@ -14301,8 +14301,8 @@ var KT = ["src", "title"], HT = [
|
|
|
14301
14301
|
overlappingEvents: 0,
|
|
14302
14302
|
position: 0
|
|
14303
14303
|
};
|
|
14304
|
-
|
|
14305
|
-
}), Object.entries(
|
|
14304
|
+
g[el] || (g[el] = []), g[el].push(bl);
|
|
14305
|
+
}), Object.entries(g).forEach(([V, F]) => {
|
|
14306
14306
|
F.sort((ll, Yl) => new Date(ll.start_time).getTime() - new Date(Yl.start_time).getTime());
|
|
14307
14307
|
const v = [];
|
|
14308
14308
|
let el = [];
|
|
@@ -14322,8 +14322,8 @@ var KT = ["src", "title"], HT = [
|
|
|
14322
14322
|
});
|
|
14323
14323
|
}), Q;
|
|
14324
14324
|
});
|
|
14325
|
-
function A(Q,
|
|
14326
|
-
if (!d.value || !T.value || !
|
|
14325
|
+
function A(Q, g) {
|
|
14326
|
+
if (!d.value || !T.value || !w.value) return;
|
|
14327
14327
|
let V = -1;
|
|
14328
14328
|
for (let ll = 0; ll < x.value.length; ll++) {
|
|
14329
14329
|
const Yl = x.value[ll];
|
|
@@ -14335,7 +14335,7 @@ var KT = ["src", "title"], HT = [
|
|
|
14335
14335
|
}
|
|
14336
14336
|
}
|
|
14337
14337
|
if (V === -1) return;
|
|
14338
|
-
const F = x.value[V].getBoundingClientRect(), v =
|
|
14338
|
+
const F = x.value[V].getBoundingClientRect(), v = w.value.getBoundingClientRect();
|
|
14339
14339
|
c.value.isDragging = !0, c.value.startDay = V, c.value.endDay = V, c.value.start = {
|
|
14340
14340
|
x: F.left - v.left,
|
|
14341
14341
|
y: Q.clientY - v.top
|
|
@@ -14343,25 +14343,25 @@ var KT = ["src", "title"], HT = [
|
|
|
14343
14343
|
x: F.right - v.left,
|
|
14344
14344
|
y: Q.clientY - v.top
|
|
14345
14345
|
};
|
|
14346
|
-
const el = B(Q.clientY,
|
|
14346
|
+
const el = B(Q.clientY, g);
|
|
14347
14347
|
c.value.startTime = el, document.addEventListener("mousemove", sl), document.addEventListener("mouseup", _);
|
|
14348
14348
|
}
|
|
14349
14349
|
function sl(Q) {
|
|
14350
|
-
if (!d.value || !c.value.isDragging || !c.value.start || !x.value.length || !T.value || !
|
|
14351
|
-
let
|
|
14350
|
+
if (!d.value || !c.value.isDragging || !c.value.start || !x.value.length || !T.value || !w.value) return;
|
|
14351
|
+
let g = -1;
|
|
14352
14352
|
for (let V = 0; V < x.value.length; V++) {
|
|
14353
14353
|
const F = x.value[V];
|
|
14354
14354
|
if (!F) continue;
|
|
14355
14355
|
const v = F.getBoundingClientRect();
|
|
14356
14356
|
if (Q.clientX >= v.left && Q.clientX <= v.right) {
|
|
14357
|
-
|
|
14357
|
+
g = V;
|
|
14358
14358
|
break;
|
|
14359
14359
|
}
|
|
14360
14360
|
}
|
|
14361
|
-
if (
|
|
14361
|
+
if (g !== -1 && (c.value.endDay = g, c.value.end = {
|
|
14362
14362
|
x: c.value.start.x,
|
|
14363
|
-
y: Q.clientY -
|
|
14364
|
-
},
|
|
14363
|
+
y: Q.clientY - w.value.getBoundingClientRect().top
|
|
14364
|
+
}, g >= 0 && g < m.value.length)) {
|
|
14365
14365
|
const V = new Date(m.value[c.value.startDay]);
|
|
14366
14366
|
V.setHours(0, 0, 0, 0);
|
|
14367
14367
|
const F = B(Q.clientY, V);
|
|
@@ -14370,10 +14370,10 @@ var KT = ["src", "title"], HT = [
|
|
|
14370
14370
|
}
|
|
14371
14371
|
function _() {
|
|
14372
14372
|
if (!d.value || !c.value.isDragging || !c.value.startTime || !c.value.endTime) return;
|
|
14373
|
-
let Q = new Date(c.value.startTime),
|
|
14374
|
-
|
|
14373
|
+
let Q = new Date(c.value.startTime), g = new Date(c.value.endTime);
|
|
14374
|
+
g < Q && ([Q, g] = [g, Q]), a("eventCreate", {
|
|
14375
14375
|
start_time: Q,
|
|
14376
|
-
end_time:
|
|
14376
|
+
end_time: g
|
|
14377
14377
|
}), c.value = {
|
|
14378
14378
|
isDragging: !1,
|
|
14379
14379
|
startDay: -1,
|
|
@@ -14384,33 +14384,33 @@ var KT = ["src", "title"], HT = [
|
|
|
14384
14384
|
endTime: void 0
|
|
14385
14385
|
}, document.removeEventListener("mousemove", sl), document.removeEventListener("mouseup", _);
|
|
14386
14386
|
}
|
|
14387
|
-
function B(Q,
|
|
14388
|
-
if (!
|
|
14389
|
-
const V = Q -
|
|
14387
|
+
function B(Q, g) {
|
|
14388
|
+
if (!w.value) return new Date(g);
|
|
14389
|
+
const V = Q - w.value.getBoundingClientRect().top, F = jt, v = V / Qe, el = Math.floor(v * F), ll = new Date(g);
|
|
14390
14390
|
ll.setHours(Math.floor(el / 60));
|
|
14391
14391
|
const Yl = Math.round(el % 60 / 5) * 5;
|
|
14392
14392
|
return ll.setMinutes(Yl), ll.setSeconds(0), ll.setMilliseconds(0), ll;
|
|
14393
14393
|
}
|
|
14394
14394
|
function il() {
|
|
14395
14395
|
const Q = /* @__PURE__ */ new Date();
|
|
14396
|
-
Y.value = m.value.some((
|
|
14396
|
+
Y.value = m.value.some((g) => g.getDate() === Q.getDate() && g.getMonth() === Q.getMonth() && g.getFullYear() === Q.getFullYear()), W.value = (Q.getHours() * 60 + Q.getMinutes()) / jt * Qe;
|
|
14397
14397
|
}
|
|
14398
|
-
function pl(Q,
|
|
14398
|
+
function pl(Q, g) {
|
|
14399
14399
|
if (!n.eventContent) {
|
|
14400
14400
|
a("eventClick", Q);
|
|
14401
14401
|
return;
|
|
14402
14402
|
}
|
|
14403
|
-
if (
|
|
14404
|
-
const V =
|
|
14403
|
+
if (g) {
|
|
14404
|
+
const V = g.currentTarget.getBoundingClientRect();
|
|
14405
14405
|
a("openPopover", Q, {
|
|
14406
14406
|
top: V.top + window.scrollY + V.height / 2,
|
|
14407
14407
|
left: V.left + window.scrollX + V.width + 10
|
|
14408
14408
|
});
|
|
14409
14409
|
} else a("openPopover", Q);
|
|
14410
14410
|
}
|
|
14411
|
-
function O(Q,
|
|
14412
|
-
for (; x.value.length <=
|
|
14413
|
-
Q ? x.value[
|
|
14411
|
+
function O(Q, g) {
|
|
14412
|
+
for (; x.value.length <= g; ) x.value.push(null);
|
|
14413
|
+
Q ? x.value[g] = Q instanceof Element ? Q : Q.$el : x.value[g] = null;
|
|
14414
14414
|
}
|
|
14415
14415
|
function $(Q) {
|
|
14416
14416
|
f.value && (f.value.scrollTop = Q * Qe);
|
|
@@ -14421,12 +14421,12 @@ var KT = ["src", "title"], HT = [
|
|
|
14421
14421
|
});
|
|
14422
14422
|
}), He(() => {
|
|
14423
14423
|
document.removeEventListener("mousemove", sl), document.removeEventListener("mouseup", _), document.removeEventListener("mousemove", G), document.removeEventListener("mouseup", h), X.value && clearInterval(X.value);
|
|
14424
|
-
}), (Q,
|
|
14424
|
+
}), (Q, g) => (L(), y("div", fI, [
|
|
14425
14425
|
S("div", {
|
|
14426
14426
|
ref_key: "calendarGrid",
|
|
14427
14427
|
ref: T,
|
|
14428
14428
|
class: "weekGrid border-bottom me-1"
|
|
14429
|
-
}, [
|
|
14429
|
+
}, [g[1] || (g[1] = S("div", null, null, -1)), (L(!0), y(Ml, null, vl(m.value, (V) => (L(), y("div", {
|
|
14430
14430
|
key: V.toISOString(),
|
|
14431
14431
|
class: "day-header p-05 txt-center m_txt12"
|
|
14432
14432
|
}, [Dl(nl(N(Fe)(V, { format: "DDD" })) + " ", 1), S("span", { class: ml(["txt-12 round p-025", {
|
|
@@ -14439,7 +14439,7 @@ var KT = ["src", "title"], HT = [
|
|
|
14439
14439
|
class: "overflow h-100p pe-05"
|
|
14440
14440
|
}, [S("div", {
|
|
14441
14441
|
ref_key: "dayColumnsContainer",
|
|
14442
|
-
ref:
|
|
14442
|
+
ref: w,
|
|
14443
14443
|
class: "weekGrid border-end relative"
|
|
14444
14444
|
}, [
|
|
14445
14445
|
S("div", {
|
|
@@ -14454,7 +14454,7 @@ var KT = ["src", "title"], HT = [
|
|
|
14454
14454
|
key: 0,
|
|
14455
14455
|
class: "absolute end w-100p z-2 flex pointer-events-none ps-4-5",
|
|
14456
14456
|
style: Il({ top: `${W.value}px` })
|
|
14457
|
-
}, [...
|
|
14457
|
+
}, [...g[2] || (g[2] = [S("div", { class: "current-time-dot h-10px aspect-ratio-1 round bg-primary" }, null, -1), S("div", { class: "current-time-line w-100p bg-primary" }, null, -1)])], 4)) : C("", !0),
|
|
14458
14458
|
(L(!0), y(Ml, null, vl(m.value, (V, F) => (L(), y("div", {
|
|
14459
14459
|
key: V.toISOString(),
|
|
14460
14460
|
ref_for: !0,
|
|
@@ -14501,7 +14501,7 @@ var KT = ["src", "title"], HT = [
|
|
|
14501
14501
|
width: `${v.width}%`,
|
|
14502
14502
|
backgroundColor: v.color || "var(--bgl-primary)"
|
|
14503
14503
|
}),
|
|
14504
|
-
onMousedown:
|
|
14504
|
+
onMousedown: g[0] || (g[0] = te(() => {
|
|
14505
14505
|
}, ["stop"])),
|
|
14506
14506
|
onClick: te((el) => pl(v, el), ["stop"])
|
|
14507
14507
|
}, [S("div", kI, [S("div", CI, nl(v.title), 1), S("div", DI, nl(N(Fe)(v.start_time, { format: "HH:mm" })) + " - " + nl(N(Fe)(v.end_time, { format: "HH:mm" })), 1)])], 44, JI))), 128))
|
|
@@ -14517,7 +14517,7 @@ var KT = ["src", "title"], HT = [
|
|
|
14517
14517
|
})
|
|
14518
14518
|
}, [S("div", UI, nl(c.value.startTime ? N(Fe)(c.value.startTime, { format: "HH:mm" }) : "") + " - " + nl(c.value.endTime ? N(Fe)(c.value.endTime, { format: "HH:mm" }) : ""), 1)], 4)) : C("", !0)
|
|
14519
14519
|
], 512)], 512),
|
|
14520
|
-
|
|
14520
|
+
g[3] || (g[3] = S("div", { class: "border-bottom me-1" }, null, -1))
|
|
14521
14521
|
]));
|
|
14522
14522
|
}
|
|
14523
14523
|
}), EI = /* @__PURE__ */ Jl(OI, [["__scopeId", "data-v-0850fe4c"]]), KI = { class: "calendar" }, HI = { class: "flex m_block p-1" }, PI = { class: "txt-light my-0 m_pb-05" }, BI = { class: "ms-auto flex gap-025 m_flex-wrap m_me-auto m_w-100p" }, QI = { class: "flex gap-025" }, AI = /* @__PURE__ */ zl({
|
|
@@ -14621,7 +14621,7 @@ var KT = ["src", "title"], HT = [
|
|
|
14621
14621
|
function x(f, z) {
|
|
14622
14622
|
s.value = f, m.value = z, o.value = !0;
|
|
14623
14623
|
}
|
|
14624
|
-
function
|
|
14624
|
+
function w() {
|
|
14625
14625
|
o.value = !1, s.value = void 0, m.value = void 0;
|
|
14626
14626
|
}
|
|
14627
14627
|
return e({
|
|
@@ -14629,7 +14629,7 @@ var KT = ["src", "title"], HT = [
|
|
|
14629
14629
|
currentView: c,
|
|
14630
14630
|
currentDate: d,
|
|
14631
14631
|
openPopover: x,
|
|
14632
|
-
closePopover:
|
|
14632
|
+
closePopover: w
|
|
14633
14633
|
}), _l(() => {
|
|
14634
14634
|
n("ready", p.value);
|
|
14635
14635
|
}), (f, z) => (L(), y("div", KI, [
|
|
@@ -14718,7 +14718,7 @@ var KT = ["src", "title"], HT = [
|
|
|
14718
14718
|
position: m.value,
|
|
14719
14719
|
show: o.value,
|
|
14720
14720
|
"has-event-content-slot": !!f.$slots.eventContent,
|
|
14721
|
-
onClose:
|
|
14721
|
+
onClose: w,
|
|
14722
14722
|
onEventClick: Y
|
|
14723
14723
|
}, cd({ _: 2 }, [f.$slots.eventContent ? {
|
|
14724
14724
|
name: "eventContent",
|
|
@@ -14803,11 +14803,11 @@ ${Z}}` : b.map(([r, p]) => `${r}: ${typeof p == "object" && p !== null ? i(p, m
|
|
|
14803
14803
|
if (!Pc(u, b)) return;
|
|
14804
14804
|
} else if (!b) return;
|
|
14805
14805
|
}
|
|
14806
|
-
const { $el: r, children: p, class: G, id: h, transform: W, validate: Y, onUpdate: X, slots: M, required: T, label: x, placeholder:
|
|
14806
|
+
const { $el: r, children: p, class: G, id: h, transform: W, validate: Y, onUpdate: X, slots: M, required: T, label: x, placeholder: w, disabled: f, defaultValue: z, ...E } = o, D = o.id ? "get" in (u || {}) ? u?.get(o.id) : Pc(u, o.id) : void 0, K = W ? h ? W(D, u) : W(u) : D, A = Y0(E, D, u), sl = typeof Z == "string" && _I.has(Z), _ = typeof Z == "string" && $I.has(Z), B = {
|
|
14807
14807
|
...A,
|
|
14808
14808
|
required: T,
|
|
14809
14809
|
label: x,
|
|
14810
|
-
placeholder:
|
|
14810
|
+
placeholder: w,
|
|
14811
14811
|
disabled: f,
|
|
14812
14812
|
validate: Y,
|
|
14813
14813
|
id: h,
|
|
@@ -14829,14 +14829,14 @@ ${Z}}` : b.map(([r, p]) => `${r}: ${typeof p == "object" && p !== null ? i(p, m
|
|
|
14829
14829
|
else if (typeof o.options == "function") {
|
|
14830
14830
|
const O = o.options;
|
|
14831
14831
|
Z === zt ? B.options = ($) => {
|
|
14832
|
-
const Q = t?.(),
|
|
14832
|
+
const Q = t?.(), g = D;
|
|
14833
14833
|
if (typeof O == "function" && O.length === 1) return O($);
|
|
14834
|
-
if (typeof O == "function" && O.length >= 3) return O($,
|
|
14835
|
-
const V = O(
|
|
14834
|
+
if (typeof O == "function" && O.length >= 3) return O($, g, Q);
|
|
14835
|
+
const V = O(g, Q);
|
|
14836
14836
|
return Array.isArray(V) ? V : typeof V == "function" ? V($) : V && typeof V.then == "function" ? V : [];
|
|
14837
14837
|
} : B.options = async () => {
|
|
14838
|
-
const $ = t?.(), Q = D,
|
|
14839
|
-
return Array.isArray(
|
|
14838
|
+
const $ = t?.(), Q = D, g = O(Q, $);
|
|
14839
|
+
return Array.isArray(g) ? g : typeof g == "function" ? await g("") : g && typeof g.then == "function" ? await g : O.length >= 3 ? await O("", Q, $) : [];
|
|
14840
14840
|
};
|
|
14841
14841
|
} else B.options = o.options;
|
|
14842
14842
|
if (o.attrs) {
|
|
@@ -14844,9 +14844,9 @@ ${Z}}` : b.map(([r, p]) => `${r}: ${typeof p == "object" && p !== null ? i(p, m
|
|
|
14844
14844
|
Object.entries(O).forEach(([$, Q]) => {
|
|
14845
14845
|
if ($ !== "$el")
|
|
14846
14846
|
if (typeof Q == "function") if ($ === "onClick") {
|
|
14847
|
-
const
|
|
14847
|
+
const g = Q;
|
|
14848
14848
|
B.onClick = () => {
|
|
14849
|
-
h ?
|
|
14849
|
+
h ? g(D, u) : g(u);
|
|
14850
14850
|
};
|
|
14851
14851
|
} else $.startsWith("on") ? B[$] = Q : B[$] = Q(D, u);
|
|
14852
14852
|
else B[$] = Q;
|
|
@@ -15058,7 +15058,7 @@ function iZ(l = {}) {
|
|
|
15058
15058
|
const el = F.getBoundingClientRect();
|
|
15059
15059
|
n.value.style.display = "block", n.value.style.width = `${el.width}px`, n.value.style.left = `${el.left}px`, v ? n.value.style.top = `${el.bottom}px` : n.value.style.top = `${el.top}px`;
|
|
15060
15060
|
}
|
|
15061
|
-
function
|
|
15061
|
+
function w(F) {
|
|
15062
15062
|
let v = F;
|
|
15063
15063
|
for (; v && (!("__drag_group" in v) || v.dataset.draggable === "false"); ) v = v.parentElement;
|
|
15064
15064
|
return v;
|
|
@@ -15098,7 +15098,7 @@ function iZ(l = {}) {
|
|
|
15098
15098
|
}
|
|
15099
15099
|
function sl(F) {
|
|
15100
15100
|
if (!d || e.value || c.value.disabled || F.button !== 0 || F.ctrlKey || F.metaKey || F.shiftKey || F.altKey) return;
|
|
15101
|
-
const v =
|
|
15101
|
+
const v = w(F.target);
|
|
15102
15102
|
if (!v || v.dataset.draggable === "false" || F.currentTarget !== v) return;
|
|
15103
15103
|
if (c.value.handle) {
|
|
15104
15104
|
const ll = F.target.closest(c.value.handle);
|
|
@@ -15129,7 +15129,7 @@ function iZ(l = {}) {
|
|
|
15129
15129
|
const Sl = F.clientX - s, Xl = F.clientY - o;
|
|
15130
15130
|
a.value.style.transform = `translate3d(${Sl}px, ${Xl}px, 0)`;
|
|
15131
15131
|
}
|
|
15132
|
-
const v = t.value.__drag_list.filter((Sl) => Sl.dataset.draggable !== "false"), el = v.indexOf(t.value), ll =
|
|
15132
|
+
const v = t.value.__drag_list.filter((Sl) => Sl.dataset.draggable !== "false"), el = v.indexOf(t.value), ll = w(document.elementFromPoint(F.clientX, F.clientY));
|
|
15133
15133
|
if (!ll || !v.includes(ll)) {
|
|
15134
15134
|
i.value = null, n.value && (n.value.style.display = "none");
|
|
15135
15135
|
return;
|
|
@@ -15181,7 +15181,7 @@ function iZ(l = {}) {
|
|
|
15181
15181
|
if (!d || c.value.disabled || !F.target) return;
|
|
15182
15182
|
const v = F.touches[0];
|
|
15183
15183
|
if (!v) return;
|
|
15184
|
-
const el = F.target, ll =
|
|
15184
|
+
const el = F.target, ll = w(el);
|
|
15185
15185
|
if (!ll || F.currentTarget !== ll || e.value) return;
|
|
15186
15186
|
const { handle: Yl } = c.value;
|
|
15187
15187
|
if (Yl && !el.closest(Yl)) return;
|
|
@@ -15208,7 +15208,7 @@ function iZ(l = {}) {
|
|
|
15208
15208
|
target: document.elementFromPoint(v.clientX, v.clientY)
|
|
15209
15209
|
}), document.removeEventListener("touchmove", $), document.removeEventListener("touchend", Q), document.removeEventListener("touchcancel", K));
|
|
15210
15210
|
}
|
|
15211
|
-
function
|
|
15211
|
+
function g(F) {
|
|
15212
15212
|
if (!d) return;
|
|
15213
15213
|
b?.(), e.value = !1, t.value = null, a.value = null, n.value = null, i.value = null;
|
|
15214
15214
|
const v = Array.from(F.children);
|
|
@@ -15230,7 +15230,7 @@ function iZ(l = {}) {
|
|
|
15230
15230
|
return tn() && He(V), {
|
|
15231
15231
|
isDragging: e,
|
|
15232
15232
|
dragElement: t,
|
|
15233
|
-
initDraggableContainer:
|
|
15233
|
+
initDraggableContainer: g,
|
|
15234
15234
|
destroy: V,
|
|
15235
15235
|
cancel: K
|
|
15236
15236
|
};
|
|
@@ -15351,7 +15351,7 @@ var ox = { class: "row first-row" }, mx = {
|
|
|
15351
15351
|
"update:selectedItems"
|
|
15352
15352
|
]),
|
|
15353
15353
|
setup(l, { emit: e }) {
|
|
15354
|
-
p1((
|
|
15354
|
+
p1((g) => ({
|
|
15355
15355
|
v7860c6d9: Q.value,
|
|
15356
15356
|
v54aa0b43: B.value,
|
|
15357
15357
|
v51aa17ee: $.value
|
|
@@ -15361,18 +15361,18 @@ var ox = { class: "row first-row" }, mx = {
|
|
|
15361
15361
|
schema: I(() => Ol(t.schema)),
|
|
15362
15362
|
columns: I(() => Ol(t.columns)),
|
|
15363
15363
|
useServerSort: I(() => Ol(t.useServerSort)),
|
|
15364
|
-
onSort: (
|
|
15365
|
-
a("orderBy", `${
|
|
15364
|
+
onSort: (g, V) => {
|
|
15365
|
+
a("orderBy", `${g.trim()} ${V.trim()}`);
|
|
15366
15366
|
}
|
|
15367
15367
|
}), { computedSelectedItems: p, isSelectable: G, allSelectorEl: h, updateAllSelectorState: W, toggleSelectItem: Y, toggleSelectAll: X } = cx({
|
|
15368
15368
|
data: m,
|
|
15369
15369
|
selectable: t.selectable,
|
|
15370
15370
|
selectedItems: s,
|
|
15371
15371
|
cleanData: r,
|
|
15372
|
-
onSelect: (
|
|
15373
|
-
a("select",
|
|
15372
|
+
onSelect: (g) => {
|
|
15373
|
+
a("select", g);
|
|
15374
15374
|
}
|
|
15375
|
-
}), { list: M, containerProps: T, wrapperProps: x, scrollTo:
|
|
15375
|
+
}), { list: M, containerProps: T, wrapperProps: x, scrollTo: w, lastItemEl: f, registerLastItemObserver: z } = sx({
|
|
15376
15376
|
data: m,
|
|
15377
15377
|
itemHeight: d.value,
|
|
15378
15378
|
onLastItemVisible: () => {
|
|
@@ -15387,11 +15387,11 @@ var ox = { class: "row first-row" }, mx = {
|
|
|
15387
15387
|
},
|
|
15388
15388
|
mode: "line",
|
|
15389
15389
|
get items() {
|
|
15390
|
-
return M.value.map((
|
|
15390
|
+
return M.value.map((g) => g.data);
|
|
15391
15391
|
},
|
|
15392
|
-
onEnd: (
|
|
15393
|
-
if (
|
|
15394
|
-
const V = M.value[
|
|
15392
|
+
onEnd: (g) => {
|
|
15393
|
+
if (g.oldIndex === g.newIndex) return;
|
|
15394
|
+
const V = M.value[g.oldIndex], F = M.value[g.newIndex];
|
|
15395
15395
|
if (!V || !F) return;
|
|
15396
15396
|
const v = r(V.data);
|
|
15397
15397
|
a("reorder", {
|
|
@@ -15406,33 +15406,33 @@ var ox = { class: "row first-row" }, mx = {
|
|
|
15406
15406
|
K.value && A(K.value);
|
|
15407
15407
|
});
|
|
15408
15408
|
}
|
|
15409
|
-
wl(M, sl, { flush: "post" }), wl(E, (
|
|
15410
|
-
|
|
15409
|
+
wl(M, sl, { flush: "post" }), wl(E, (g) => {
|
|
15410
|
+
g && ne(sl);
|
|
15411
15411
|
}), _l(sl);
|
|
15412
|
-
function _(
|
|
15412
|
+
function _(g, V) {
|
|
15413
15413
|
const { renderField: F } = xh({
|
|
15414
15414
|
mode: "table",
|
|
15415
15415
|
getFormData: () => V
|
|
15416
15416
|
});
|
|
15417
15417
|
return F({
|
|
15418
|
-
...
|
|
15418
|
+
...g,
|
|
15419
15419
|
label: ""
|
|
15420
15420
|
}, n);
|
|
15421
15421
|
}
|
|
15422
15422
|
const B = I(() => `${d.value}px`);
|
|
15423
|
-
wl(() => i.value, async (
|
|
15424
|
-
|
|
15423
|
+
wl(() => i.value, async (g, V) => {
|
|
15424
|
+
g !== V && (g || (z(), w(0), await ne(), w(0)));
|
|
15425
15425
|
}, { immediate: !0 }), wl(() => p.value.length, () => {
|
|
15426
15426
|
W();
|
|
15427
|
-
}), wl(() => m.value.length, async (
|
|
15427
|
+
}), wl(() => m.value.length, async (g, V) => {
|
|
15428
15428
|
const F = t.onLastItemVisible !== void 0 && (V ?? 0) > 0;
|
|
15429
|
-
|
|
15429
|
+
g === V || F || (w(0), await ne(), w(0));
|
|
15430
15430
|
});
|
|
15431
15431
|
const il = I(() => i.value), pl = I(() => !il.value && m.value.length === 0), O = I(() => {
|
|
15432
|
-
const
|
|
15433
|
-
return
|
|
15432
|
+
const g = c.value;
|
|
15433
|
+
return g == null || g === "" ? null : typeof g == "number" ? `${g}px` : String(g);
|
|
15434
15434
|
}), $ = I(() => O.value ?? "0.88em"), Q = I(() => O.value ? `calc(${O.value} * 0.9)` : "0.8rem");
|
|
15435
|
-
return (
|
|
15435
|
+
return (g, V) => (L(), y("div", Ze({ class: "table-list-wrap h-100p relative scrollbar-border scrollbar-border-bottom" }, N(T), { class: { overflowHiddenLoading: il.value } }), [
|
|
15436
15436
|
il.value ? (L(), ol(N(wn), {
|
|
15437
15437
|
key: 0,
|
|
15438
15438
|
class: "absolute inset-1"
|
|
@@ -15480,7 +15480,7 @@ var ox = { class: "row first-row" }, mx = {
|
|
|
15480
15480
|
(L(!0), y(Ml, null, vl(N(o), (v) => (L(), y("td", {
|
|
15481
15481
|
key: `${v.id}-${F?.id || Math.random()}`,
|
|
15482
15482
|
class: "col"
|
|
15483
|
-
}, [v.id && N(n)?.[v.id] ? Vl(
|
|
15483
|
+
}, [v.id && N(n)?.[v.id] ? Vl(g.$slots, v.id, {
|
|
15484
15484
|
row: F,
|
|
15485
15485
|
field: v
|
|
15486
15486
|
}, void 0, !0, 0) : (L(), y("div", Gx, [(L(), ol(fe(_(v, F))))]))]))), 128))
|
|
@@ -15491,7 +15491,7 @@ var ox = { class: "row first-row" }, mx = {
|
|
|
15491
15491
|
"data-draggable": "false",
|
|
15492
15492
|
style: { height: "1px" }
|
|
15493
15493
|
}, null, 512)) : C("", !0)], 512)], 2)], 16)),
|
|
15494
|
-
pl.value ? Vl(
|
|
15494
|
+
pl.value ? Vl(g.$slots, "empty", {}, () => [al(N(As), {
|
|
15495
15495
|
icon: t.emptyIcon ?? "inbox",
|
|
15496
15496
|
title: t.emptyTitle ?? "No results",
|
|
15497
15497
|
description: t.emptyDescription,
|
|
@@ -15879,7 +15879,7 @@ var Rx = 50, Sx = async (l, e, t) => {
|
|
|
15879
15879
|
}, b = cZ(n), r = dZ(b), p = await d.getDimensions(o), G = b === "y", h = G ? "top" : "left", W = G ? "bottom" : "right", Y = G ? "clientHeight" : "clientWidth", X = i.reference[r] + i.reference[b] - u[b] - i.floating[r], M = u[b] - i.reference[b], T = await (d.getOffsetParent == null ? void 0 : d.getOffsetParent(o));
|
|
15880
15880
|
let x = T ? T[Y] : 0;
|
|
15881
15881
|
(!x || !await (d.isElement == null ? void 0 : d.isElement(T))) && (x = c.floating[Y] || i.floating[r]);
|
|
15882
|
-
const
|
|
15882
|
+
const w = X / 2 - M / 2, f = x / 2 - p[r] / 2 - 1, z = zn(Z[h], f), E = zn(Z[W], f), D = x - p[r] - E, K = x / 2 - p[r] / 2 + w, A = wh(z, K, D), sl = !s.arrow && la(n) != null && K !== A && i.reference[r] / 2 - (K < z ? z : E) - p[r] / 2 < 0, _ = sl ? K < z ? K - z : K - D : 0;
|
|
15883
15883
|
return {
|
|
15884
15884
|
[b]: u[b] + _,
|
|
15885
15885
|
data: {
|
|
@@ -15925,13 +15925,13 @@ var fx = function(l) {
|
|
|
15925
15925
|
z && m ? f.overflows.slice(0, 2).reduce((E, D) => E + D, 0) : f.overflows[0],
|
|
15926
15926
|
f.overflows
|
|
15927
15927
|
];
|
|
15928
|
-
}).sort((f, z) => f[1] - z[1]),
|
|
15929
|
-
return
|
|
15928
|
+
}).sort((f, z) => f[1] - z[1]), w = ((n = x.filter((f) => f[2].slice(0, la(f[0]) ? 2 : 3).every((z) => z <= 0))[0]) == null ? void 0 : n[0]) || x[0][0];
|
|
15929
|
+
return w !== c ? {
|
|
15930
15930
|
data: {
|
|
15931
15931
|
index: G + 1,
|
|
15932
15932
|
overflows: M
|
|
15933
15933
|
},
|
|
15934
|
-
reset: { placement:
|
|
15934
|
+
reset: { placement: w }
|
|
15935
15935
|
} : {};
|
|
15936
15936
|
}
|
|
15937
15937
|
};
|
|
@@ -15945,11 +15945,11 @@ var fx = function(l) {
|
|
|
15945
15945
|
if ((t = i.arrow) != null && t.alignmentOffset) return {};
|
|
15946
15946
|
const h = ja(n), W = za(c), Y = ja(c) === c, X = await (s.isRTL == null ? void 0 : s.isRTL(o.floating)), M = u || (Y || !p ? [ns(c)] : Vx(c)), T = r !== "none";
|
|
15947
15947
|
!u && T && M.push(...zx(c, p, r, X));
|
|
15948
|
-
const x = [c, ...M],
|
|
15948
|
+
const x = [c, ...M], w = await s.detectOverflow(e, G), f = [];
|
|
15949
15949
|
let z = ((a = i.flip) == null ? void 0 : a.overflows) || [];
|
|
15950
|
-
if (m && f.push(
|
|
15950
|
+
if (m && f.push(w[h]), Z) {
|
|
15951
15951
|
const A = Sh(n, d, X);
|
|
15952
|
-
f.push(
|
|
15952
|
+
f.push(w[A[0]], w[A[1]]);
|
|
15953
15953
|
}
|
|
15954
15954
|
if (z = [...z, {
|
|
15955
15955
|
placement: n,
|
|
@@ -16077,8 +16077,8 @@ var Cx = function(l) {
|
|
|
16077
16077
|
availableWidth: x,
|
|
16078
16078
|
availableHeight: T
|
|
16079
16079
|
});
|
|
16080
|
-
const
|
|
16081
|
-
return u !==
|
|
16080
|
+
const w = await n.getDimensions(i.floating);
|
|
16081
|
+
return u !== w.width || b !== w.height ? { reset: { rects: !0 } } : {};
|
|
16082
16082
|
}
|
|
16083
16083
|
};
|
|
16084
16084
|
};
|
|
@@ -16529,7 +16529,7 @@ var cz = {
|
|
|
16529
16529
|
function x() {
|
|
16530
16530
|
return !!s.value?.matches(":popover-open");
|
|
16531
16531
|
}
|
|
16532
|
-
async function
|
|
16532
|
+
async function w() {
|
|
16533
16533
|
if (a.disabled || x() || (d.value = !0, Z.value = c.value?.closest("dialog[open]") ?? rb, a.showGroup && M.has(a.showGroup) && M.get(a.showGroup).forEach((U) => U()), await ne(), !s.value)) return;
|
|
16534
16534
|
s.value.dataset.bglId = m;
|
|
16535
16535
|
const xl = c.value?.closest("[data-bgl-id]");
|
|
@@ -16575,12 +16575,12 @@ var cz = {
|
|
|
16575
16575
|
break;
|
|
16576
16576
|
}
|
|
16577
16577
|
}
|
|
16578
|
-
const sl =
|
|
16578
|
+
const sl = w;
|
|
16579
16579
|
function _() {
|
|
16580
16580
|
f();
|
|
16581
16581
|
}
|
|
16582
16582
|
wl(i, (xl) => {
|
|
16583
|
-
xl && !x() ?
|
|
16583
|
+
xl && !x() ? w() : !xl && x() && f();
|
|
16584
16584
|
});
|
|
16585
16585
|
function B(xl) {
|
|
16586
16586
|
xl.newState === "open" ? (bl(), i.value = !0, ne(T), n("show")) : (Rl(), i.value = !1, n("hide"));
|
|
@@ -16601,12 +16601,12 @@ var cz = {
|
|
|
16601
16601
|
clearTimeout(pl), clearTimeout(O);
|
|
16602
16602
|
}
|
|
16603
16603
|
let Q = 0;
|
|
16604
|
-
function
|
|
16604
|
+
function g(xl) {
|
|
16605
16605
|
const U = Date.now();
|
|
16606
|
-
U - Q < 50 || (Q = U, o = xl, x() ? f() :
|
|
16606
|
+
U - Q < 50 || (Q = U, o = xl, x() ? f() : w());
|
|
16607
16607
|
}
|
|
16608
16608
|
function V(xl) {
|
|
16609
|
-
G.value &&
|
|
16609
|
+
G.value && g(!!xl && xl.detail === 0);
|
|
16610
16610
|
}
|
|
16611
16611
|
function F(xl) {
|
|
16612
16612
|
const U = xl.target;
|
|
@@ -16615,18 +16615,18 @@ var cz = {
|
|
|
16615
16615
|
case "Enter":
|
|
16616
16616
|
case " ":
|
|
16617
16617
|
case "Spacebar":
|
|
16618
|
-
xl.preventDefault(),
|
|
16618
|
+
xl.preventDefault(), g(!0);
|
|
16619
16619
|
break;
|
|
16620
16620
|
case "ArrowDown":
|
|
16621
|
-
xl.preventDefault(), o = !0, x() ? D(0) :
|
|
16621
|
+
xl.preventDefault(), o = !0, x() ? D(0) : w();
|
|
16622
16622
|
break;
|
|
16623
16623
|
case "ArrowUp":
|
|
16624
|
-
xl.preventDefault(), o = !0, x() ? D(-1) :
|
|
16624
|
+
xl.preventDefault(), o = !0, x() ? D(-1) : w();
|
|
16625
16625
|
break;
|
|
16626
16626
|
}
|
|
16627
16627
|
}
|
|
16628
16628
|
function v() {
|
|
16629
|
-
h.value && (clearTimeout(O), pl = setTimeout(
|
|
16629
|
+
h.value && (clearTimeout(O), pl = setTimeout(w, X.value.show));
|
|
16630
16630
|
}
|
|
16631
16631
|
function el() {
|
|
16632
16632
|
h.value && (clearTimeout(pl), O = setTimeout(() => f({ restoreFocus: !1 }), X.value.hide));
|
|
@@ -16651,7 +16651,7 @@ var cz = {
|
|
|
16651
16651
|
Xl && (document.removeEventListener("pointerdown", il, !0), document.removeEventListener("scroll", Sl, !0), Xl = !1);
|
|
16652
16652
|
}
|
|
16653
16653
|
return _l(() => {
|
|
16654
|
-
a.showGroup && (M.has(a.showGroup) || M.set(a.showGroup, /* @__PURE__ */ new Set()), M.get(a.showGroup).add(f)), i.value &&
|
|
16654
|
+
a.showGroup && (M.has(a.showGroup) || M.set(a.showGroup, /* @__PURE__ */ new Set()), M.get(a.showGroup).add(f)), i.value && w();
|
|
16655
16655
|
}), Bt(() => {
|
|
16656
16656
|
Rl(), $(), a.showGroup && M.get(a.showGroup)?.delete(f), x() && s.value?.hidePopover();
|
|
16657
16657
|
}), e({
|
|
@@ -16953,24 +16953,24 @@ var Yz = ["width", "height"], Lz = [
|
|
|
16953
16953
|
const T = t.itemKey;
|
|
16954
16954
|
return (T ? d(M, T) : M.id) ?? JSON.stringify(M);
|
|
16955
16955
|
}, s = I(() => {
|
|
16956
|
-
if (i.value) return (t.columns ?? []).map((
|
|
16957
|
-
...
|
|
16958
|
-
items:
|
|
16956
|
+
if (i.value) return (t.columns ?? []).map((w) => ({
|
|
16957
|
+
...w,
|
|
16958
|
+
items: w.items ?? []
|
|
16959
16959
|
}));
|
|
16960
|
-
const M = t.columnsDef ?? [], T = (
|
|
16961
|
-
for (const
|
|
16962
|
-
for (const
|
|
16963
|
-
const f = T(
|
|
16960
|
+
const M = t.columnsDef ?? [], T = (w) => String(d(w, t.groupBy) ?? ""), x = /* @__PURE__ */ new Map();
|
|
16961
|
+
for (const w of M) x.set(w.id, []);
|
|
16962
|
+
for (const w of t.data ?? []) {
|
|
16963
|
+
const f = T(w);
|
|
16964
16964
|
if (!x.has(f)) if (!M.length) x.set(f, []);
|
|
16965
16965
|
else continue;
|
|
16966
|
-
x.get(f).push(
|
|
16966
|
+
x.get(f).push(w);
|
|
16967
16967
|
}
|
|
16968
|
-
return M.length ? M.map((
|
|
16969
|
-
...
|
|
16970
|
-
items: x.get(
|
|
16971
|
-
})) : [...x.entries()].map(([
|
|
16972
|
-
id:
|
|
16973
|
-
title:
|
|
16968
|
+
return M.length ? M.map((w) => ({
|
|
16969
|
+
...w,
|
|
16970
|
+
items: x.get(w.id) ?? []
|
|
16971
|
+
})) : [...x.entries()].map(([w, f]) => ({
|
|
16972
|
+
id: w,
|
|
16973
|
+
title: w,
|
|
16974
16974
|
items: f
|
|
16975
16975
|
}));
|
|
16976
16976
|
}), o = Ti({});
|
|
@@ -16993,10 +16993,10 @@ var Yz = ["width", "height"], Lz = [
|
|
|
16993
16993
|
}
|
|
16994
16994
|
function G(M, T) {
|
|
16995
16995
|
if (!t.draggable || !u.value) return;
|
|
16996
|
-
const { item: x, from:
|
|
16996
|
+
const { item: x, from: w } = u.value, f = T ?? M.items.length;
|
|
16997
16997
|
a("move", {
|
|
16998
16998
|
item: x,
|
|
16999
|
-
fromColumn:
|
|
16999
|
+
fromColumn: w,
|
|
17000
17000
|
toColumn: M.id,
|
|
17001
17001
|
newIndex: f
|
|
17002
17002
|
}), p();
|
|
@@ -17013,17 +17013,17 @@ var Yz = ["width", "height"], Lz = [
|
|
|
17013
17013
|
function X(M) {
|
|
17014
17014
|
const T = [];
|
|
17015
17015
|
for (const x of t.cardSchema?.badges ?? []) {
|
|
17016
|
-
const
|
|
17017
|
-
|
|
17016
|
+
const w = d(M, x);
|
|
17017
|
+
w == null || w === "" || T.push(typeof w == "object" ? w : { label: String(w) });
|
|
17018
17018
|
}
|
|
17019
17019
|
return T;
|
|
17020
17020
|
}
|
|
17021
17021
|
return (M, T) => (L(), y("div", Vz, [(L(!0), y(Ml, null, vl(s.value, (x) => (L(), y("div", {
|
|
17022
17022
|
key: x.id,
|
|
17023
17023
|
class: ml(["bgl-kanban-col column display-flex", { "is-dragover": b.value === x.id }]),
|
|
17024
|
-
onDragover: te((
|
|
17025
|
-
onDragleave: (
|
|
17026
|
-
onDrop: (
|
|
17024
|
+
onDragover: te((w) => l.draggable && (b.value = x.id), ["prevent"]),
|
|
17025
|
+
onDragleave: (w) => b.value === x.id && (b.value = null),
|
|
17026
|
+
onDrop: (w) => G(x)
|
|
17027
17027
|
}, [S("div", Iz, [Vl(M.$slots, "column-header", {
|
|
17028
17028
|
column: x,
|
|
17029
17029
|
count: x.items.length
|
|
@@ -17047,28 +17047,28 @@ var Yz = ["width", "height"], Lz = [
|
|
|
17047
17047
|
value: String(typeof x.total == "number" ? x.total : x.items.length),
|
|
17048
17048
|
class: "ms-auto"
|
|
17049
17049
|
}, null, 8, ["value"])], !0)]), S("div", zz, [
|
|
17050
|
-
(L(!0), y(Ml, null, vl(x.items, (
|
|
17051
|
-
key: c(
|
|
17050
|
+
(L(!0), y(Ml, null, vl(x.items, (w, f) => (L(), y("div", {
|
|
17051
|
+
key: c(w),
|
|
17052
17052
|
class: "bgl-kanban-card-wrap",
|
|
17053
17053
|
draggable: l.draggable || void 0,
|
|
17054
|
-
onDragstart: (z) => r(
|
|
17054
|
+
onDragstart: (z) => r(w, x.id),
|
|
17055
17055
|
onDragend: p,
|
|
17056
17056
|
onDrop: te((z) => G(x, f), ["stop"]),
|
|
17057
|
-
onClick: (z) => a("card-click",
|
|
17057
|
+
onClick: (z) => a("card-click", w, x.id)
|
|
17058
17058
|
}, [Vl(M.$slots, "card", {
|
|
17059
|
-
item:
|
|
17059
|
+
item: w,
|
|
17060
17060
|
column: x
|
|
17061
17061
|
}, () => [S("div", wz, [
|
|
17062
|
-
h(
|
|
17063
|
-
W(
|
|
17064
|
-
X(
|
|
17062
|
+
h(w) ? (L(), y("div", Rz, nl(h(w)), 1)) : C("", !0),
|
|
17063
|
+
W(w) ? (L(), y("div", Sz, nl(W(w)), 1)) : C("", !0),
|
|
17064
|
+
X(w).length ? (L(), y("div", vz, [(L(!0), y(Ml, null, vl(X(w), (z, E) => (L(), ol(sc, {
|
|
17065
17065
|
key: E,
|
|
17066
17066
|
sm: "",
|
|
17067
17067
|
soft: "",
|
|
17068
17068
|
color: z.color || "gray",
|
|
17069
17069
|
value: z.label
|
|
17070
17070
|
}, null, 8, ["color", "value"]))), 128))])) : C("", !0),
|
|
17071
|
-
Y(
|
|
17071
|
+
Y(w) ? (L(), y("div", Fz, nl(Y(w)), 1)) : C("", !0)
|
|
17072
17072
|
])], !0)], 40, gz))), 128)),
|
|
17073
17073
|
!x.items.length && !x.loading ? (L(), ol(As, {
|
|
17074
17074
|
key: 0,
|
|
@@ -17090,7 +17090,7 @@ var Yz = ["width", "height"], Lz = [
|
|
|
17090
17090
|
icon: "expand_more",
|
|
17091
17091
|
value: "Load more",
|
|
17092
17092
|
disabled: x.loading,
|
|
17093
|
-
onClick: (
|
|
17093
|
+
onClick: (w) => Z(x)
|
|
17094
17094
|
}, null, 8, ["disabled", "onClick"])) : C("", !0)], !0)])) : C("", !0)
|
|
17095
17095
|
])], 42, Tz))), 128))]));
|
|
17096
17096
|
}
|
|
@@ -17565,7 +17565,7 @@ var Hz = { class: "p-025 bg-bg radius-1 mb-05 m_max-h-300px m_overflow m_border"
|
|
|
17565
17565
|
return !U.field || !U.op ? !1 : T(U.field) ? U.value !== "" && U.value != null : U.op === "pr" || U.op === "is_null" ? !0 : U.op === "in" || U.op === "nin" || U.op === "sw_any" ? Array.isArray(U.value) && U.value.length > 0 : U.op === "between" ? Array.isArray(U.value) && U.value.length === 2 && U.value[0] !== "" && U.value[0] != null && U.value[1] !== "" && U.value[1] != null : U.value !== "" && U.value !== null && U.value !== void 0;
|
|
17566
17566
|
}
|
|
17567
17567
|
const u = /* @__PURE__ */ pi(() => {
|
|
17568
|
-
const U =
|
|
17568
|
+
const U = w(i.value.filter(Z));
|
|
17569
17569
|
n.value = U, a("change", U);
|
|
17570
17570
|
}, 400);
|
|
17571
17571
|
let b = 0;
|
|
@@ -17748,7 +17748,7 @@ var Hz = { class: "p-025 bg-bg radius-1 mb-05 m_max-h-300px m_overflow m_border"
|
|
|
17748
17748
|
const tl = X(U);
|
|
17749
17749
|
return !!(tl?.multiple && tl?.options);
|
|
17750
17750
|
}
|
|
17751
|
-
function
|
|
17751
|
+
function w(U) {
|
|
17752
17752
|
const tl = [];
|
|
17753
17753
|
for (const dl of U) {
|
|
17754
17754
|
const J = X(dl.field)?.queryOptions?.find((H) => H.value === dl.value);
|
|
@@ -17858,7 +17858,7 @@ var Hz = { class: "p-025 bg-bg radius-1 mb-05 m_max-h-300px m_overflow m_border"
|
|
|
17858
17858
|
function Q(U) {
|
|
17859
17859
|
return U ?? void 0;
|
|
17860
17860
|
}
|
|
17861
|
-
function
|
|
17861
|
+
function g(U) {
|
|
17862
17862
|
return Array.isArray(U) ? U.filter((tl) => tl != null) : [];
|
|
17863
17863
|
}
|
|
17864
17864
|
function V(U) {
|
|
@@ -18037,7 +18037,7 @@ var Hz = { class: "p-025 bg-bg radius-1 mb-05 m_max-h-300px m_overflow m_border"
|
|
|
18037
18037
|
]))
|
|
18038
18038
|
])) : M(dl.field) && il(dl.operator) ? (L(), ol(N(zt), {
|
|
18039
18039
|
key: `${dl.id}-${dl.field}-multi`,
|
|
18040
|
-
"model-value":
|
|
18040
|
+
"model-value": g(dl.value),
|
|
18041
18041
|
options: M(dl.field),
|
|
18042
18042
|
placeholder: p.value.placeholders.selectOption,
|
|
18043
18043
|
class: "m-0 light-input borderHover",
|
|
@@ -18235,7 +18235,7 @@ var Hz = { class: "p-025 bg-bg radius-1 mb-05 m_max-h-300px m_overflow m_border"
|
|
|
18235
18235
|
const G = I(() => b.value.length ? b.value : t.pages), h = I(() => t.direction === "rtl" ? [...G.value].reverse() : G.value), W = I(() => h.value.length + (t.layout === "single" ? 1 : 0)), Y = I(() => d.value > 1), X = I(() => d.value < c.value), M = I(() => t.sizeMode === "manual" ? Math.max(0.01, t.pageWidth / t.pageHeight) : s.value), T = I(() => ({
|
|
18236
18236
|
aspectRatio: `${M.value * 2} / 1`,
|
|
18237
18237
|
maxWidth: `${720 * M.value * 2}px`
|
|
18238
|
-
})), x = I(() => ({ transform: `scale(${o.value})` })),
|
|
18238
|
+
})), x = I(() => ({ transform: `scale(${o.value})` })), w = I(() => t.navigation || t.pageCounter || t.zoomControls || t.fullscreen), f = I(() => {
|
|
18239
18239
|
const V = Math.max(1, M.value * 1e3), F = 1e3, v = Math.max(1, t.minPageWidth / V, t.minPageHeight / F);
|
|
18240
18240
|
return {
|
|
18241
18241
|
width: Math.round(V * v),
|
|
@@ -18350,7 +18350,7 @@ var Hz = { class: "p-025 bg-bg radius-1 mb-05 m_max-h-300px m_overflow m_border"
|
|
|
18350
18350
|
async function Q() {
|
|
18351
18351
|
await ne(), r?.update();
|
|
18352
18352
|
}
|
|
18353
|
-
function
|
|
18353
|
+
function g(V) {
|
|
18354
18354
|
V.key === "ArrowLeft" && B(), V.key === "ArrowRight" && il(), (V.key === "+" || V.key === "=") && pl(), V.key === "-" && O();
|
|
18355
18355
|
}
|
|
18356
18356
|
return wl(() => t.pages, async () => {
|
|
@@ -18377,7 +18377,7 @@ var Hz = { class: "p-025 bg-bg radius-1 mb-05 m_max-h-300px m_overflow m_border"
|
|
|
18377
18377
|
class: "bgl-flipbook grid gap-1",
|
|
18378
18378
|
tabindex: "0",
|
|
18379
18379
|
"aria-label": "Digital book viewer",
|
|
18380
|
-
onKeydown:
|
|
18380
|
+
onKeydown: g
|
|
18381
18381
|
}, [
|
|
18382
18382
|
Z.value ? (L(), ol(wn, {
|
|
18383
18383
|
key: 0,
|
|
@@ -18399,7 +18399,7 @@ var Hz = { class: "p-025 bg-bg radius-1 mb-05 m_max-h-300px m_overflow m_border"
|
|
|
18399
18399
|
class: "bgl-flipbook-pages transition mx-auto",
|
|
18400
18400
|
style: Il(x.value)
|
|
18401
18401
|
}, null, 4)])], 4), [[Vn, !u.value]]),
|
|
18402
|
-
m.value &&
|
|
18402
|
+
m.value && w.value ? (L(), y("div", ag, [
|
|
18403
18403
|
l.navigation ? Hl((L(), ol(Nl, {
|
|
18404
18404
|
key: 0,
|
|
18405
18405
|
icon: "arrow_back",
|
|
@@ -18643,7 +18643,7 @@ var Zg = {
|
|
|
18643
18643
|
function x(z, E) {
|
|
18644
18644
|
s.value[E] = z, T();
|
|
18645
18645
|
}
|
|
18646
|
-
const
|
|
18646
|
+
const w = I(() => {
|
|
18647
18647
|
if (t.simple) return !0;
|
|
18648
18648
|
if (!d.default) return !1;
|
|
18649
18649
|
const z = I({
|
|
@@ -18699,8 +18699,8 @@ var Zg = {
|
|
|
18699
18699
|
}, {
|
|
18700
18700
|
default: gl(({ index: K }) => [S("div", { class: ml(["array-input-row grid align-items-center", {
|
|
18701
18701
|
"array-input-row-reorder": l.allowReorder,
|
|
18702
|
-
"simpleArray mb-025":
|
|
18703
|
-
"pb-1": !
|
|
18702
|
+
"simpleArray mb-025": w.value,
|
|
18703
|
+
"pb-1": !w.value
|
|
18704
18704
|
}]) }, [
|
|
18705
18705
|
l.allowReorder ? Hl((L(), ol(N(Nl), {
|
|
18706
18706
|
key: 0,
|
|
@@ -19064,7 +19064,7 @@ var gg = {
|
|
|
19064
19064
|
const f = c(t.modelValue);
|
|
19065
19065
|
f !== s.value && (s.value = f);
|
|
19066
19066
|
}
|
|
19067
|
-
function
|
|
19067
|
+
function w() {
|
|
19068
19068
|
Z.value = !1, x();
|
|
19069
19069
|
}
|
|
19070
19070
|
return wl(() => t.modelValue, () => {
|
|
@@ -19095,7 +19095,7 @@ var gg = {
|
|
|
19095
19095
|
onInput: X,
|
|
19096
19096
|
onKeydown: M,
|
|
19097
19097
|
onFocus: z[0] || (z[0] = (E) => Z.value = !0),
|
|
19098
|
-
onBlur:
|
|
19098
|
+
onBlur: w
|
|
19099
19099
|
}, null, 40, Fg)) : C("", !0)
|
|
19100
19100
|
])], 2)) : C("", !0)], 6));
|
|
19101
19101
|
}
|
|
@@ -19664,19 +19664,19 @@ var $h = class Um {
|
|
|
19664
19664
|
handleHourInput: (H) => {
|
|
19665
19665
|
if (!h.value) return;
|
|
19666
19666
|
const Gl = new Date(h.value);
|
|
19667
|
-
Gl.setHours(H),
|
|
19667
|
+
Gl.setHours(H), w(Gl);
|
|
19668
19668
|
},
|
|
19669
19669
|
handleMinuteInput: (H) => {
|
|
19670
19670
|
if (!h.value) return;
|
|
19671
19671
|
const Gl = new Date(h.value);
|
|
19672
|
-
Gl.setMinutes(H),
|
|
19672
|
+
Gl.setMinutes(H), w(Gl);
|
|
19673
19673
|
}
|
|
19674
19674
|
};
|
|
19675
19675
|
}
|
|
19676
|
-
function
|
|
19676
|
+
function w(U) {
|
|
19677
19677
|
t.enableTime ? a("update:modelValue", U.toISOString()) : a("update:modelValue", nd.date(U));
|
|
19678
19678
|
}
|
|
19679
|
-
const { currentMonthDays: f, currentMonthValue: z, months: E, years: D, weekDays: K, isSelected: A, isRangeStart: sl, isRangeEnd: _, isInRange: B, isToday: il, isNotInMonth: pl, isHighlighted: O } = M(), { selectMonth: $, selectYear: Q, previousMonth:
|
|
19679
|
+
const { currentMonthDays: f, currentMonthValue: z, months: E, years: D, weekDays: K, isSelected: A, isRangeStart: sl, isRangeEnd: _, isInRange: B, isToday: il, isNotInMonth: pl, isHighlighted: O } = M(), { selectMonth: $, selectYear: Q, previousMonth: g, nextMonth: V, previousYear: F, nextYear: v } = T(), { hours: el, minutes: ll, handleHourInput: Yl, handleMinuteInput: Sl } = x();
|
|
19680
19680
|
function Xl(U) {
|
|
19681
19681
|
return nd.date(U);
|
|
19682
19682
|
}
|
|
@@ -19706,8 +19706,8 @@ var $h = class Um {
|
|
|
19706
19706
|
}
|
|
19707
19707
|
if (t.enableTime) {
|
|
19708
19708
|
const tl = new Date(U.getFullYear(), U.getMonth(), U.getDate()), dl = h.value?.getHours() ?? (/* @__PURE__ */ new Date()).getHours(), J = h.value?.getMinutes() ?? (/* @__PURE__ */ new Date()).getMinutes();
|
|
19709
|
-
tl.setHours(dl), tl.setMinutes(J),
|
|
19710
|
-
} else
|
|
19709
|
+
tl.setHours(dl), tl.setMinutes(J), w(tl);
|
|
19710
|
+
} else w(new Date(U.getFullYear(), U.getMonth(), U.getDate()));
|
|
19711
19711
|
}
|
|
19712
19712
|
}
|
|
19713
19713
|
return (U, tl) => (L(), y("div", { class: ml(["ltr gap-075 m_flex-wrap calendar-container justify-content-center h-100p", { flex: !l.autoSize }]) }, [S("div", Ug, [S("div", Og, [o.value === "days" ? (L(), y(Ml, { key: 0 }, [
|
|
@@ -19715,7 +19715,7 @@ var $h = class Um {
|
|
|
19715
19715
|
flat: "",
|
|
19716
19716
|
thin: "",
|
|
19717
19717
|
icon: "chevron_left",
|
|
19718
|
-
onClick: N(
|
|
19718
|
+
onClick: N(g)
|
|
19719
19719
|
}, null, 8, ["onClick"]),
|
|
19720
19720
|
S("div", Eg, [al(N(Nl), {
|
|
19721
19721
|
flat: "",
|
|
@@ -19956,22 +19956,22 @@ var $h = class Um {
|
|
|
19956
19956
|
function x(_) {
|
|
19957
19957
|
const [B = "", il = ""] = _.value.split(/\s*-\s*/, 2), pl = M(B), O = M(il), $ = /-/.test(_.value), Q = O || $ ? `${pl}${wo}${O}` : pl;
|
|
19958
19958
|
c.value = Q, _.value !== Q && (_.value = Q);
|
|
19959
|
-
const
|
|
19960
|
-
if (B && !
|
|
19959
|
+
const g = B ? G(pl) : null, V = il ? G(O) : null;
|
|
19960
|
+
if (B && !g || il && !V) {
|
|
19961
19961
|
s.value = !1;
|
|
19962
19962
|
return;
|
|
19963
19963
|
}
|
|
19964
|
-
if (s.value = !0, !
|
|
19964
|
+
if (s.value = !0, !g && !V) {
|
|
19965
19965
|
d.value = void 0;
|
|
19966
19966
|
return;
|
|
19967
19967
|
}
|
|
19968
|
-
let F =
|
|
19969
|
-
|
|
19968
|
+
let F = g, v = V;
|
|
19969
|
+
g && V && V < g && (F = V, v = g), d.value = {
|
|
19970
19970
|
start: F ? h(F) : void 0,
|
|
19971
19971
|
end: v ? h(v) : void 0
|
|
19972
19972
|
};
|
|
19973
19973
|
}
|
|
19974
|
-
function
|
|
19974
|
+
function w() {
|
|
19975
19975
|
Z || (m.value = !0);
|
|
19976
19976
|
}
|
|
19977
19977
|
function f() {
|
|
@@ -20060,7 +20060,7 @@ var $h = class Um {
|
|
|
20060
20060
|
"label-color": l.labelColor,
|
|
20061
20061
|
"label-active-color": l.labelActiveColor,
|
|
20062
20062
|
onInput: T,
|
|
20063
|
-
onFocus:
|
|
20063
|
+
onFocus: w,
|
|
20064
20064
|
onBlur: f,
|
|
20065
20065
|
onClick: B[1] || (B[1] = te(() => {
|
|
20066
20066
|
}, ["stop"])),
|
|
@@ -20346,7 +20346,7 @@ var dw = ["title"], cw = ["for"], sw = {
|
|
|
20346
20346
|
return _[A.length][sl.length];
|
|
20347
20347
|
}
|
|
20348
20348
|
const x = /* @__PURE__ */ pi(() => Y(m.value), 1e3);
|
|
20349
|
-
function
|
|
20349
|
+
function w() {
|
|
20350
20350
|
a.disabled || (Z.value = null, W(), a.serverValidate && x(), n("update:modelValue", m.value), h());
|
|
20351
20351
|
}
|
|
20352
20352
|
function f(A) {
|
|
@@ -20409,7 +20409,7 @@ var dw = ["title"], cw = ["for"], sw = {
|
|
|
20409
20409
|
}, l.nativeInputAttrs, {
|
|
20410
20410
|
onFocusout: f,
|
|
20411
20411
|
onFocus: sl[1] || (sl[1] = (...B) => l.onFocus && l.onFocus(...B)),
|
|
20412
|
-
onInput:
|
|
20412
|
+
onInput: w
|
|
20413
20413
|
}), null, 16, bw), [[sd, m.value], [
|
|
20414
20414
|
_,
|
|
20415
20415
|
void 0,
|
|
@@ -20606,8 +20606,8 @@ var dw = ["title"], cw = ["for"], sw = {
|
|
|
20606
20606
|
}
|
|
20607
20607
|
m.value = X + x + M, ne(() => {
|
|
20608
20608
|
if (G) {
|
|
20609
|
-
const
|
|
20610
|
-
G.setSelectionRange(
|
|
20609
|
+
const w = X.length + x.length;
|
|
20610
|
+
G.setSelectionRange(w, w), G.focus();
|
|
20611
20611
|
}
|
|
20612
20612
|
});
|
|
20613
20613
|
}
|
|
@@ -20775,11 +20775,11 @@ var dw = ["title"], cw = ["for"], sw = {
|
|
|
20775
20775
|
}
|
|
20776
20776
|
function m(...M) {
|
|
20777
20777
|
const T = M.map((x) => x || 0);
|
|
20778
|
-
return Number.parseFloat(T.reduce((x,
|
|
20778
|
+
return Number.parseFloat(T.reduce((x, w) => x + w, 0).toFixed(o()));
|
|
20779
20779
|
}
|
|
20780
20780
|
function Z(...M) {
|
|
20781
|
-
const T = M.map((
|
|
20782
|
-
return Number.parseFloat(T.reduce((
|
|
20781
|
+
const T = M.map((w) => w || 0), x = T.shift() || 0;
|
|
20782
|
+
return Number.parseFloat(T.reduce((w, f) => w - f, x).toFixed(o()));
|
|
20783
20783
|
}
|
|
20784
20784
|
const u = I(() => l.max === void 0 || m(i.value, l.step) <= l.max), b = I(() => l.min === void 0 || Z(i.value, l.step) >= l.min);
|
|
20785
20785
|
function r() {
|
|
@@ -20795,7 +20795,7 @@ var dw = ["title"], cw = ["for"], sw = {
|
|
|
20795
20795
|
}));
|
|
20796
20796
|
function h(M) {
|
|
20797
20797
|
if (Number.isNaN(M)) return "";
|
|
20798
|
-
const [T, x] = G.value.format(M).split("."),
|
|
20798
|
+
const [T, x] = G.value.format(M).split("."), w = T.replace(/,/g, "").length, f = l.padZero && l.padZero > w ? "0".repeat(l.padZero - w) : "";
|
|
20799
20799
|
return x ? `${f}${T}.${x}` : `${f}${T}`;
|
|
20800
20800
|
}
|
|
20801
20801
|
const W = k("");
|
|
@@ -20882,7 +20882,7 @@ var dw = ["title"], cw = ["for"], sw = {
|
|
|
20882
20882
|
}, null, 8, ["icon"])) : C("", !0),
|
|
20883
20883
|
Hl(S("input", {
|
|
20884
20884
|
id: l.id,
|
|
20885
|
-
"onUpdate:modelValue": T[0] || (T[0] = (
|
|
20885
|
+
"onUpdate:modelValue": T[0] || (T[0] = (w) => W.value = w),
|
|
20886
20886
|
type: "text",
|
|
20887
20887
|
class: ml({
|
|
20888
20888
|
"txt-center": l.center,
|
|
@@ -21207,8 +21207,8 @@ var l5 = /^[A-Z\xbf-\xdf][^A-Z\xbf-\xdf]+$/, Hw = /^[^A-Z\xbf-\xdf]+[A-Z\xbf-\xd
|
|
|
21207
21207
|
for (let W = G; W < h; W++) Ta[l.charCodeAt(W)] |= 1 << W;
|
|
21208
21208
|
for (let W = 0; W < t; W++) {
|
|
21209
21209
|
const Y = Ta[e.charCodeAt(W)], X = i[W / 32 | 0] >>> W & 1, M = n[W / 32 | 0] >>> W & 1, T = Y | r, x = ((Y | M) & p) + p ^ p | Y | M;
|
|
21210
|
-
let
|
|
21211
|
-
|
|
21210
|
+
let w = r | ~(x | p), f = p & x;
|
|
21211
|
+
w >>> 31 ^ X && (i[W / 32 | 0] ^= 1 << W), f >>> 31 ^ M && (n[W / 32 | 0] ^= 1 << W), w = w << 1 | X, f = f << 1 | M, p = f | ~(T | w), r = w & T;
|
|
21212
21212
|
}
|
|
21213
21213
|
for (let W = G; W < h; W++) Ta[l.charCodeAt(W)] = 0;
|
|
21214
21214
|
}
|
|
@@ -22454,16 +22454,16 @@ var sS = ["aria-labelledby", "aria-label"], oS = ["id"], mS = { key: 0 }, ZS = [
|
|
|
22454
22454
|
setup(l, { emit: e }) {
|
|
22455
22455
|
const t = l, a = e, { shellClass: n, shellStyle: i } = Pe(t);
|
|
22456
22456
|
function d(T, x) {
|
|
22457
|
-
const
|
|
22458
|
-
return m.value.some((f) => f.value === s.value) ?
|
|
22457
|
+
const w = s.value === T.value;
|
|
22458
|
+
return m.value.some((f) => f.value === s.value) ? w ? 0 : -1 : x === m.value.findIndex((f) => !(t.disabled || f.disabled)) ? 0 : -1;
|
|
22459
22459
|
}
|
|
22460
22460
|
const c = I(() => t.groupName || t.id || Math.random().toString(36).substring(2, 15)), s = ke(l, "modelValue"), o = k([]), m = I(() => (Array.isArray(t.options) ? t.options : o.value).map((T) => cS(T))), Z = k(null), u = k("90px");
|
|
22461
22461
|
let b;
|
|
22462
22462
|
function r() {
|
|
22463
22463
|
const T = Z.value, x = m.value.length;
|
|
22464
22464
|
if (!t.inline || !T || !x) return;
|
|
22465
|
-
const
|
|
22466
|
-
u.value = `calc((100% - ${
|
|
22465
|
+
const w = Number.parseFloat(getComputedStyle(T).columnGap) || 0, f = Math.max(1, Math.min(x, Math.floor((T.clientWidth + w) / (100 + w)))), z = Math.ceil(x / f), E = Math.ceil(x / z);
|
|
22466
|
+
u.value = `calc((100% - ${w * (E - 1)}px) / ${E})`;
|
|
22467
22467
|
}
|
|
22468
22468
|
_l(() => {
|
|
22469
22469
|
b = new ResizeObserver(r), Z.value && b.observe(Z.value), r();
|
|
@@ -22522,8 +22522,8 @@ var sS = ["aria-labelledby", "aria-label"], oS = ["id"], mS = { key: 0 }, ZS = [
|
|
|
22522
22522
|
ref: Z,
|
|
22523
22523
|
class: ml(["radio-group-wrap", [l.wrapperClass, { "radio-group-wrap--inline": l.inline }]]),
|
|
22524
22524
|
style: Il(l.inline ? { "--rg-item-basis": u.value } : void 0)
|
|
22525
|
-
}, [(L(!0), y(Ml, null, vl(m.value, (
|
|
22526
|
-
key:
|
|
22525
|
+
}, [(L(!0), y(Ml, null, vl(m.value, (w, f) => (L(), y("label", {
|
|
22526
|
+
key: w.id || `${c.value}-${f}`,
|
|
22527
22527
|
class: ml(["border rounded flex active-list-item hover mb-05", {
|
|
22528
22528
|
"p-05 gap-025": l.thin,
|
|
22529
22529
|
"py-1 gap-075": !l.thin,
|
|
@@ -22534,19 +22534,19 @@ var sS = ["aria-labelledby", "aria-label"], oS = ["id"], mS = { key: 0 }, ZS = [
|
|
|
22534
22534
|
"align-items-center": l.align === "center",
|
|
22535
22535
|
"align-items-end": l.align === "end" || l.align === "bottom",
|
|
22536
22536
|
invertedActive: l.invertedActive,
|
|
22537
|
-
"is-option-disabled": l.disabled ||
|
|
22537
|
+
"is-option-disabled": l.disabled || w.disabled
|
|
22538
22538
|
}]),
|
|
22539
|
-
for:
|
|
22539
|
+
for: w.id || `${c.value}-${f}`,
|
|
22540
22540
|
style: Il({
|
|
22541
22541
|
backgroundColor: l.bgColor,
|
|
22542
22542
|
borderColor: l.borderColor
|
|
22543
22543
|
})
|
|
22544
22544
|
}, [
|
|
22545
22545
|
Hl(S("input", {
|
|
22546
|
-
id:
|
|
22546
|
+
id: w.id || `${c.value}-${f}`,
|
|
22547
22547
|
"onUpdate:modelValue": x[0] || (x[0] = (z) => s.value = z),
|
|
22548
|
-
disabled: l.disabled ||
|
|
22549
|
-
tabindex: d(
|
|
22548
|
+
disabled: l.disabled || w.disabled,
|
|
22549
|
+
tabindex: d(w, f),
|
|
22550
22550
|
class: ml(["radio-input-list", {
|
|
22551
22551
|
"mt-025": l.align === "start" || l.align === "top",
|
|
22552
22552
|
"mb-025": l.align === "end" || l.align === "bottom",
|
|
@@ -22554,7 +22554,7 @@ var sS = ["aria-labelledby", "aria-label"], oS = ["id"], mS = { key: 0 }, ZS = [
|
|
|
22554
22554
|
}]),
|
|
22555
22555
|
type: "radio",
|
|
22556
22556
|
name: c.value,
|
|
22557
|
-
value:
|
|
22557
|
+
value: w.value,
|
|
22558
22558
|
required: l.required,
|
|
22559
22559
|
onFocus: Y,
|
|
22560
22560
|
onBlur: X,
|
|
@@ -22563,30 +22563,30 @@ var sS = ["aria-labelledby", "aria-label"], oS = ["id"], mS = { key: 0 }, ZS = [
|
|
|
22563
22563
|
S("div", {
|
|
22564
22564
|
class: ml(["flex w-100 gap-1 flex-wrap m_gap-05 m_gap-row-025", {
|
|
22565
22565
|
"txt-center justify-content-center mx-auto": l.textAlign === "center",
|
|
22566
|
-
"radio-option-content--centered-image": l.textAlign === "center" &&
|
|
22566
|
+
"radio-option-content--centered-image": l.textAlign === "center" && w.imgSrc,
|
|
22567
22567
|
"txt-end justify-content-end": l.textAlign === "right",
|
|
22568
22568
|
"txt-start justify-content-start": l.textAlign === "left"
|
|
22569
22569
|
}]),
|
|
22570
22570
|
style: Il({ color: l.textColor })
|
|
22571
22571
|
}, [
|
|
22572
|
-
|
|
22572
|
+
w.imgSrc ? (L(), y("img", {
|
|
22573
22573
|
key: 0,
|
|
22574
22574
|
class: "py-025 radius-05 m_w40 object-fit",
|
|
22575
22575
|
height: "40",
|
|
22576
22576
|
width: "40",
|
|
22577
|
-
src:
|
|
22578
|
-
alt: (l.hideLabelWhenImage ?
|
|
22579
|
-
}, null, 8, bS)) :
|
|
22577
|
+
src: w.imgSrc,
|
|
22578
|
+
alt: (l.hideLabelWhenImage ? w.label || w.imgAlt : w.imgAlt || w.label) || ""
|
|
22579
|
+
}, null, 8, bS)) : w.icon ? (L(), ol(N(fl), {
|
|
22580
22580
|
key: 1,
|
|
22581
|
-
icon:
|
|
22581
|
+
icon: w.icon,
|
|
22582
22582
|
size: 1
|
|
22583
22583
|
}, null, 8, ["icon"])) : C("", !0),
|
|
22584
|
-
|
|
22584
|
+
w.label && !(l.hideLabelWhenImage && w.imgSrc) || w.subLabel ? (L(), y("div", rS, [w.label && !(l.hideLabelWhenImage && w.imgSrc) ? (L(), y("div", {
|
|
22585
22585
|
key: 0,
|
|
22586
22586
|
class: "m-0 m_txt-14 line-height-14",
|
|
22587
|
-
innerHTML: N(OK)(
|
|
22588
|
-
}, null, 8, hS)) : C("", !0),
|
|
22589
|
-
Vl(T.$slots, "radioItem", Ze({ ref_for: !0 },
|
|
22587
|
+
innerHTML: N(OK)(w.label)
|
|
22588
|
+
}, null, 8, hS)) : C("", !0), w.subLabel ? (L(), y("p", WS, nl(w.subLabel), 1)) : C("", !0)])) : C("", !0),
|
|
22589
|
+
Vl(T.$slots, "radioItem", Ze({ ref_for: !0 }, w), void 0, !0)
|
|
22590
22590
|
], 6),
|
|
22591
22591
|
l.deletable ? (L(), ol(N(Nl), {
|
|
22592
22592
|
key: 0,
|
|
@@ -22594,7 +22594,7 @@ var sS = ["aria-labelledby", "aria-label"], oS = ["id"], mS = { key: 0 }, ZS = [
|
|
|
22594
22594
|
flat: "",
|
|
22595
22595
|
thin: "",
|
|
22596
22596
|
icon: "delete",
|
|
22597
|
-
onClick: (z) => T.$emit("delete",
|
|
22597
|
+
onClick: (z) => T.$emit("delete", w)
|
|
22598
22598
|
}, null, 8, ["onClick"])) : C("", !0)
|
|
22599
22599
|
], 14, ZS))), 128))], 6)], 14, sS));
|
|
22600
22600
|
}
|
|
@@ -22941,7 +22941,7 @@ var sS = ["aria-labelledby", "aria-label"], oS = ["id"], mS = { key: 0 }, ZS = [
|
|
|
22941
22941
|
"selectinput-btn--thin": t.thin,
|
|
22942
22942
|
outline: t.outline,
|
|
22943
22943
|
border: t.border
|
|
22944
|
-
})), M = I(() => r.value === 0 ? Y.value : r.value > 4 ? `${u.value.slice(0, 4).map((O) => ei(O)).join(", ")}... +${r.value - 4}` : u.value.map((O) => ei(O)).join(", ")), T = I(() => t.searchPlaceholder ?? M.value ?? n("select.search")), { results: x, isLoading:
|
|
22944
|
+
})), M = I(() => r.value === 0 ? Y.value : r.value > 4 ? `${u.value.slice(0, 4).map((O) => ei(O)).join(", ")}... +${r.value - 4}` : u.value.map((O) => ei(O)).join(", ")), T = I(() => t.searchPlaceholder ?? M.value ?? n("select.search")), { results: x, isLoading: w } = eQ({
|
|
22945
22945
|
searchTerm: () => p.value,
|
|
22946
22946
|
serverSearch: c(t.options) ? t.options : void 0,
|
|
22947
22947
|
items: () => Array.isArray(t.options) ? t.options : [],
|
|
@@ -22953,7 +22953,7 @@ var sS = ["aria-labelledby", "aria-label"], oS = ["id"], mS = { key: 0 }, ZS = [
|
|
|
22953
22953
|
minChars: c(t.options) ? 0 : 2
|
|
22954
22954
|
}), f = k(-1), z = I(() => f.value >= 0 ? `${m}-option-${f.value}` : void 0), E = (O, $) => {
|
|
22955
22955
|
if (f.value >= 0) return f.value === $ ? 0 : -1;
|
|
22956
|
-
const Q = x.value.findIndex((
|
|
22956
|
+
const Q = x.value.findIndex((g) => A(g));
|
|
22957
22957
|
return (Q >= 0 ? Q : 0) === $ ? 0 : -1;
|
|
22958
22958
|
}, D = k();
|
|
22959
22959
|
function K(O) {
|
|
@@ -22984,11 +22984,11 @@ var sS = ["aria-labelledby", "aria-label"], oS = ["id"], mS = { key: 0 }, ZS = [
|
|
|
22984
22984
|
}
|
|
22985
22985
|
function B(O) {
|
|
22986
22986
|
h.value = !0;
|
|
22987
|
-
const $ = u.value.findIndex((
|
|
22987
|
+
const $ = u.value.findIndex((g) => b(g) === b(O));
|
|
22988
22988
|
if ($ > -1) u.value.splice($, 1);
|
|
22989
22989
|
else if (t.multiselect) {
|
|
22990
|
-
const
|
|
22991
|
-
|
|
22990
|
+
const g = [...u.value];
|
|
22991
|
+
g.push(O), u.value = g;
|
|
22992
22992
|
} else u.value.splice(0, r.value, O);
|
|
22993
22993
|
const Q = document.activeElement;
|
|
22994
22994
|
Q && D.value?.contains(Q) && Q.blur(), t.multiselect || (W.value = !1, setTimeout(() => {
|
|
@@ -23004,8 +23004,8 @@ var sS = ["aria-labelledby", "aria-label"], oS = ["id"], mS = { key: 0 }, ZS = [
|
|
|
23004
23004
|
}
|
|
23005
23005
|
function pl(O, $) {
|
|
23006
23006
|
if (O.length !== $.length) return !1;
|
|
23007
|
-
const Q = O.map(b).filter((V) => V != null).map(String).sort(),
|
|
23008
|
-
return Q.every((V, F) => V ===
|
|
23007
|
+
const Q = O.map(b).filter((V) => V != null).map(String).sort(), g = $.map(b).filter((V) => V != null).map(String).sort();
|
|
23008
|
+
return Q.every((V, F) => V === g[F]);
|
|
23009
23009
|
}
|
|
23010
23010
|
return wl(() => t.modelValue, (O) => {
|
|
23011
23011
|
if (t.multiselect) {
|
|
@@ -23014,7 +23014,7 @@ var sS = ["aria-labelledby", "aria-label"], oS = ["id"], mS = { key: 0 }, ZS = [
|
|
|
23014
23014
|
} else if (O == null)
|
|
23015
23015
|
u.value.length > 0 && (u.value = []);
|
|
23016
23016
|
else {
|
|
23017
|
-
const $ = Array.isArray(O) ? O[0] : O, Q = Array.isArray(t.options) ? t.options.find((
|
|
23017
|
+
const $ = Array.isArray(O) ? O[0] : O, Q = Array.isArray(t.options) ? t.options.find((g) => b(g) === b($)) ?? $ : $;
|
|
23018
23018
|
Q != null && (!A(Q) || u.value[0] !== Q) && (u.value = [Q]);
|
|
23019
23019
|
}
|
|
23020
23020
|
}, { immediate: !0 }), wl(() => W.value, (O) => {
|
|
@@ -23024,17 +23024,17 @@ var sS = ["aria-labelledby", "aria-label"], oS = ["id"], mS = { key: 0 }, ZS = [
|
|
|
23024
23024
|
}), wl(() => t.options, () => {
|
|
23025
23025
|
const O = t.options;
|
|
23026
23026
|
Array.isArray(O) && u.value.forEach(($, Q) => {
|
|
23027
|
-
const
|
|
23028
|
-
|
|
23027
|
+
const g = O.find((V) => b(V) === b($));
|
|
23028
|
+
g === void 0 ? u.value.splice(Q, 1) : u.value.splice(Q, 1, g);
|
|
23029
23029
|
});
|
|
23030
23030
|
}, {
|
|
23031
23031
|
deep: !0,
|
|
23032
23032
|
immediate: !0
|
|
23033
23033
|
}), wl(() => x.value, (O) => {
|
|
23034
23034
|
c(t.options) && O.length > 0 && u.value.forEach(($, Q) => {
|
|
23035
|
-
const
|
|
23035
|
+
const g = b($);
|
|
23036
23036
|
if (typeof $ != "object" || !$.label) {
|
|
23037
|
-
const V = O.find((F) => b(F) ===
|
|
23037
|
+
const V = O.find((F) => b(F) === g);
|
|
23038
23038
|
V !== void 0 && u.value.splice(Q, 1, V);
|
|
23039
23039
|
}
|
|
23040
23040
|
});
|
|
@@ -23146,7 +23146,7 @@ var sS = ["aria-labelledby", "aria-label"], oS = ["id"], mS = { key: 0 }, ZS = [
|
|
|
23146
23146
|
}, null, 8, fS)) : C("", !0)]),
|
|
23147
23147
|
l.error ? (L(), y("div", jS, nl(l.error), 1)) : C("", !0)
|
|
23148
23148
|
]), l.helptext ? (L(), y("p", JS, nl(l.helptext), 1)) : C("", !0)]),
|
|
23149
|
-
default: gl(() => [N(
|
|
23149
|
+
default: gl(() => [N(w) ? (L(), ol(N(Ec), {
|
|
23150
23150
|
key: 0,
|
|
23151
23151
|
count: 6,
|
|
23152
23152
|
width: "200px",
|
|
@@ -23166,12 +23166,12 @@ var sS = ["aria-labelledby", "aria-label"], oS = ["id"], mS = { key: 0 }, ZS = [
|
|
|
23166
23166
|
class: ml(["selectinput-options", { multiselect: l.multiselect }]),
|
|
23167
23167
|
role: "listbox",
|
|
23168
23168
|
"aria-multiselectable": l.multiselect || void 0
|
|
23169
|
-
}, [(L(!0), y(Ml, null, vl(N(x), (Q,
|
|
23170
|
-
key: `${String(b(Q))}-${
|
|
23171
|
-
id: `${N(m)}-option-${
|
|
23169
|
+
}, [(L(!0), y(Ml, null, vl(N(x), (Q, g) => (L(), y("div", {
|
|
23170
|
+
key: `${String(b(Q))}-${g}`,
|
|
23171
|
+
id: `${N(m)}-option-${g}`,
|
|
23172
23172
|
class: ml(["selectinput-option hover gap-1 align-items-center", { selected: A(Q) }]),
|
|
23173
23173
|
role: "option",
|
|
23174
|
-
tabindex: E(Q,
|
|
23174
|
+
tabindex: E(Q, g),
|
|
23175
23175
|
"aria-label": N(ei)(Q),
|
|
23176
23176
|
"aria-selected": A(Q),
|
|
23177
23177
|
onClick: (V) => B(Q),
|
|
@@ -24172,8 +24172,8 @@ function hv(l, e, t) {
|
|
|
24172
24172
|
if (ul.endsWith(Y, "{}"))
|
|
24173
24173
|
Y = n ? Y : Y.slice(0, -2), W = r(W, 1);
|
|
24174
24174
|
else if (ul.isArray(W) && bv(W) || (ul.isFileList(W) || ul.endsWith(Y, "[]")) && (M = ul.toArray(W)))
|
|
24175
|
-
return Y = M5(Y), M.forEach(function(x,
|
|
24176
|
-
!(ul.isUndefined(x) || x === null) && e.append(c === !0 ? fo([Y],
|
|
24175
|
+
return Y = M5(Y), M.forEach(function(x, w) {
|
|
24176
|
+
!(ul.isUndefined(x) || x === null) && e.append(c === !0 ? fo([Y], w, d) : c === null ? Y : Y + "[]", u(x));
|
|
24177
24177
|
}), !1;
|
|
24178
24178
|
}
|
|
24179
24179
|
return Qm(W) ? !0 : (e.append(fo(X, Y, d), u(W)), !1);
|
|
@@ -25029,12 +25029,12 @@ var Kb = 64 * 1024, mF = {
|
|
|
25029
25029
|
return Y ?? p(W);
|
|
25030
25030
|
};
|
|
25031
25031
|
return async (h) => {
|
|
25032
|
-
let { url: W, method: Y, data: X, signal: M, cancelToken: T, timeout: x, onDownloadProgress:
|
|
25032
|
+
let { url: W, method: Y, data: X, signal: M, cancelToken: T, timeout: x, onDownloadProgress: w, onUploadProgress: f, responseType: z, headers: E, withCredentials: D = "same-origin", fetchOptions: K, maxContentLength: A, maxBodyLength: sl, maxRedirects: _ } = j5(h);
|
|
25033
25033
|
const B = ul.isNumber(A) && A > -1, il = ul.isNumber(sl) && sl > -1, pl = (el) => ul.hasOwnProp(h, el) ? h[el] : void 0;
|
|
25034
25034
|
let O = n || fetch;
|
|
25035
25035
|
z = z ? (z + "").toLowerCase() : "text";
|
|
25036
25036
|
let $ = qv([M, T && T.toAbortSignal()], x), Q = null;
|
|
25037
|
-
const
|
|
25037
|
+
const g = $ && $.unsubscribe && (() => {
|
|
25038
25038
|
$.unsubscribe();
|
|
25039
25039
|
});
|
|
25040
25040
|
let V, F = null;
|
|
@@ -25104,7 +25104,7 @@ var Kb = 64 * 1024, mF = {
|
|
|
25104
25104
|
if (J != null && J > A) throw new El("maxContentLength size of " + A + " exceeded", El.ERR_BAD_RESPONSE, h, Q);
|
|
25105
25105
|
}
|
|
25106
25106
|
const tl = b && (z === "stream" || z === "response");
|
|
25107
|
-
if (b && xl.body && (
|
|
25107
|
+
if (b && xl.body && (w || B || tl && g)) {
|
|
25108
25108
|
const J = {};
|
|
25109
25109
|
[
|
|
25110
25110
|
"status",
|
|
@@ -25113,7 +25113,7 @@ var Kb = 64 * 1024, mF = {
|
|
|
25113
25113
|
].forEach((ze) => {
|
|
25114
25114
|
J[ze] = xl[ze];
|
|
25115
25115
|
});
|
|
25116
|
-
const H = ul.toFiniteNumber(U.getContentLength()), [Gl, Ll] =
|
|
25116
|
+
const H = ul.toFiniteNumber(U.getContentLength()), [Gl, Ll] = w && Jb(H, os(kb(w), !0)) || [];
|
|
25117
25117
|
let Ul = 0;
|
|
25118
25118
|
const de = (ze) => {
|
|
25119
25119
|
if (B && (Ul = ze, Ul > A))
|
|
@@ -25121,7 +25121,7 @@ var Kb = 64 * 1024, mF = {
|
|
|
25121
25121
|
Gl && Gl(ze);
|
|
25122
25122
|
};
|
|
25123
25123
|
xl = new d(Ub(xl.body, Kb, de, () => {
|
|
25124
|
-
Ll && Ll(),
|
|
25124
|
+
Ll && Ll(), g && g();
|
|
25125
25125
|
}), J);
|
|
25126
25126
|
}
|
|
25127
25127
|
z = z || "text";
|
|
@@ -25130,7 +25130,7 @@ var Kb = 64 * 1024, mF = {
|
|
|
25130
25130
|
let J;
|
|
25131
25131
|
if (dl != null && (typeof dl.byteLength == "number" ? J = dl.byteLength : typeof dl.size == "number" ? J = dl.size : typeof dl == "string" && (J = typeof a == "function" ? new a().encode(dl).byteLength : dl.length)), typeof J == "number" && J > A) throw new El("maxContentLength size of " + A + " exceeded", El.ERR_BAD_RESPONSE, h, Q);
|
|
25132
25132
|
}
|
|
25133
|
-
return !tl &&
|
|
25133
|
+
return !tl && g && g(), await new Promise((J, H) => {
|
|
25134
25134
|
v5(J, H, {
|
|
25135
25135
|
data: dl,
|
|
25136
25136
|
headers: ft.from(xl.headers),
|
|
@@ -25141,7 +25141,7 @@ var Kb = 64 * 1024, mF = {
|
|
|
25141
25141
|
});
|
|
25142
25142
|
});
|
|
25143
25143
|
} catch (el) {
|
|
25144
|
-
if (
|
|
25144
|
+
if (g && g(), $ && $.aborted && $.reason instanceof El) {
|
|
25145
25145
|
const ll = $.reason;
|
|
25146
25146
|
throw ll.config = h, Q && (ll.request = Q), el !== ll && Object.defineProperty(ll, "cause", {
|
|
25147
25147
|
__proto__: null,
|
|
@@ -25880,7 +25880,7 @@ var MF = ["data-field"], VF = { key: 0 }, TF = { key: 0 }, IF = ["name"], xF = {
|
|
|
25880
25880
|
}, K.src = kt(D) ?? D;
|
|
25881
25881
|
}
|
|
25882
25882
|
wl(c, (D) => D.forEach(x), { immediate: !0 });
|
|
25883
|
-
const { isDragging:
|
|
25883
|
+
const { isDragging: w, handlers: f } = gh({
|
|
25884
25884
|
disabled: () => t.disabled,
|
|
25885
25885
|
onDrop: (D) => {
|
|
25886
25886
|
a("addFileStart"), m(D);
|
|
@@ -25968,7 +25968,7 @@ var MF = ["data-field"], VF = { key: 0 }, TF = { key: 0 }, IF = ["name"], xF = {
|
|
|
25968
25968
|
key: 3,
|
|
25969
25969
|
class: ["fileUploadWrap", {
|
|
25970
25970
|
fileDropZone: !N(c).length && !N(d).length,
|
|
25971
|
-
dragover: N(
|
|
25971
|
+
dragover: N(w),
|
|
25972
25972
|
"bgl_oval-upload": l.oval,
|
|
25973
25973
|
"border overflow-hidden": t.uploadFrame
|
|
25974
25974
|
}],
|
|
@@ -27199,7 +27199,7 @@ function Gf(l) {
|
|
|
27199
27199
|
if (!p) return;
|
|
27200
27200
|
const { range: G, selection: h } = p, W = Di(G.commonAncestorContainer);
|
|
27201
27201
|
if (!W) return;
|
|
27202
|
-
const { startContainer: Y } = G, { endContainer: X } = G, { startOffset: M } = G, { endOffset: T } = G, x = G.collapsed,
|
|
27202
|
+
const { startContainer: Y } = G, { endContainer: X } = G, { startOffset: M } = G, { endOffset: T } = G, x = G.collapsed, w = W.tagName.toLowerCase() === b.toLowerCase(), f = w ? "p" : b;
|
|
27203
27203
|
try {
|
|
27204
27204
|
const z = r.doc.createElement(f);
|
|
27205
27205
|
for (; W.firstChild; ) z.appendChild(W.firstChild);
|
|
@@ -27214,9 +27214,9 @@ function Gf(l) {
|
|
|
27214
27214
|
let $ = O.nextNode();
|
|
27215
27215
|
for (; $ && $ !== sl; )
|
|
27216
27216
|
pl++, $ = O.nextNode();
|
|
27217
|
-
let Q = il.nextNode(),
|
|
27218
|
-
for (; Q &&
|
|
27219
|
-
|
|
27217
|
+
let Q = il.nextNode(), g = 0;
|
|
27218
|
+
for (; Q && g < pl; )
|
|
27219
|
+
g++, Q = il.nextNode();
|
|
27220
27220
|
return Q;
|
|
27221
27221
|
}
|
|
27222
27222
|
return B.firstChild;
|
|
@@ -27238,7 +27238,7 @@ function Gf(l) {
|
|
|
27238
27238
|
const D = r.doc.createRange();
|
|
27239
27239
|
D.selectNodeContents(z), D.collapse(!0), h.removeAllRanges(), h.addRange(D);
|
|
27240
27240
|
}
|
|
27241
|
-
if (!
|
|
27241
|
+
if (!w && !z.nextElementSibling) {
|
|
27242
27242
|
const E = r.doc.createElement("p");
|
|
27243
27243
|
E.dir = z.dir || r.doc.body.dir, z.parentNode?.insertBefore(E, z.nextSibling);
|
|
27244
27244
|
}
|
|
@@ -27417,8 +27417,8 @@ function Gf(l) {
|
|
|
27417
27417
|
if (M.includes(X)) {
|
|
27418
27418
|
const T = u.doc.createElement(X);
|
|
27419
27419
|
return X === "a" && Y.hasAttribute("href") ? (T.setAttribute("href", Y.getAttribute("href") || ""), Y.hasAttribute("target") && T.setAttribute("target", Y.getAttribute("target") || ""), Y.hasAttribute("rel") && T.setAttribute("rel", Y.getAttribute("rel") || "")) : X === "img" ? (Y.hasAttribute("src") && T.setAttribute("src", Y.getAttribute("src") || ""), Y.hasAttribute("alt") && T.setAttribute("alt", Y.getAttribute("alt") || ""), Y.hasAttribute("width") && T.setAttribute("width", Y.getAttribute("width") || ""), Y.hasAttribute("height") && T.setAttribute("height", Y.getAttribute("height") || "")) : X === "iframe" ? (Y.hasAttribute("src") && T.setAttribute("src", Y.getAttribute("src") || ""), Y.hasAttribute("width") && T.setAttribute("width", Y.getAttribute("width") || ""), Y.hasAttribute("height") && T.setAttribute("height", Y.getAttribute("height") || ""), Y.hasAttribute("frameborder") && T.setAttribute("frameborder", Y.getAttribute("frameborder") || ""), Y.hasAttribute("allowfullscreen") && T.setAttribute("allowfullscreen", Y.getAttribute("allowfullscreen") || "")) : (X === "video" || X === "audio") && (Y.hasAttribute("src") && T.setAttribute("src", Y.getAttribute("src") || ""), Y.hasAttribute("controls") && T.setAttribute("controls", Y.getAttribute("controls") || ""), Y.hasAttribute("width") && T.setAttribute("width", Y.getAttribute("width") || ""), Y.hasAttribute("height") && T.setAttribute("height", Y.getAttribute("height") || "")), Array.from(Y.childNodes).forEach((x) => {
|
|
27420
|
-
const
|
|
27421
|
-
(
|
|
27420
|
+
const w = h(x);
|
|
27421
|
+
(w.textContent?.trim() || w.nodeType === Node.ELEMENT_NODE) && T.appendChild(w);
|
|
27422
27422
|
}), T;
|
|
27423
27423
|
}
|
|
27424
27424
|
}
|
|
@@ -28281,9 +28281,9 @@ var If = { key: 0 }, xf = {
|
|
|
28281
28281
|
const T = {
|
|
28282
28282
|
execute: X.execute,
|
|
28283
28283
|
setBlock: M
|
|
28284
|
-
}, x = k(0),
|
|
28284
|
+
}, x = k(0), w = I(() => (x.value, typeof document < "u" && getComputedStyle(document.documentElement).getPropertyValue("--bgl-input-color").trim() || "#000")), f = I(() => (x.value, typeof document < "u" ? document.documentElement.classList.contains("bgl-dark-mode") : !1)), z = I(() => {
|
|
28285
28285
|
if (f.value) return a.textColor || "#1a1a1a";
|
|
28286
|
-
const j =
|
|
28286
|
+
const j = w.value;
|
|
28287
28287
|
return a.textColor || (j && j.length > 0 && j !== "#000" ? j : "inherit");
|
|
28288
28288
|
}), E = I(() => (x.value, typeof document < "u" && getComputedStyle(document.documentElement).getPropertyValue("--bgl-font").trim() || "sans-serif"));
|
|
28289
28289
|
let D = null;
|
|
@@ -28345,7 +28345,7 @@ var If = { key: 0 }, xf = {
|
|
|
28345
28345
|
y: 0
|
|
28346
28346
|
});
|
|
28347
28347
|
let $ = null;
|
|
28348
|
-
const Q = k(!1),
|
|
28348
|
+
const Q = k(!1), g = k({
|
|
28349
28349
|
src: "",
|
|
28350
28350
|
alt: "",
|
|
28351
28351
|
width: "",
|
|
@@ -28646,7 +28646,7 @@ var If = { key: 0 }, xf = {
|
|
|
28646
28646
|
}
|
|
28647
28647
|
if (j) {
|
|
28648
28648
|
const P = j.tagName === "IMG" ? j : j.querySelector("img"), q = j.querySelector("figcaption"), Zl = j.getAttribute("data-credit") || P?.getAttribute("data-credit") || "", rl = (j.tagName === "IMG" ? P : j)?.getAttribute("data-align") || "full", hl = P?.closest("a"), Wl = hl?.getAttribute("href") || "", Fl = hl?.getAttribute("target") === "_blank";
|
|
28649
|
-
|
|
28649
|
+
g.value = {
|
|
28650
28650
|
src: P?.src || "",
|
|
28651
28651
|
alt: P?.alt || "",
|
|
28652
28652
|
width: P?.getAttribute("data-width") || P?.style.width || "",
|
|
@@ -28657,7 +28657,7 @@ var If = { key: 0 }, xf = {
|
|
|
28657
28657
|
link: Wl,
|
|
28658
28658
|
linkNewTab: Fl
|
|
28659
28659
|
};
|
|
28660
|
-
} else
|
|
28660
|
+
} else g.value = {
|
|
28661
28661
|
src: "",
|
|
28662
28662
|
alt: "",
|
|
28663
28663
|
width: "",
|
|
@@ -28672,35 +28672,35 @@ var If = { key: 0 }, xf = {
|
|
|
28672
28672
|
}
|
|
28673
28673
|
}
|
|
28674
28674
|
function Go() {
|
|
28675
|
-
if (!
|
|
28675
|
+
if (!g.value.src || !V) return;
|
|
28676
28676
|
const { doc: j } = h.state;
|
|
28677
28677
|
if (!j) return;
|
|
28678
28678
|
const { existingImage: R } = V, P = j.createElement("img");
|
|
28679
|
-
P.src =
|
|
28679
|
+
P.src = g.value.src, P.alt = g.value.alt || "", g.value.width ? (P.setAttribute("data-width", g.value.width), g.value.width.includes("%") || g.value.width.includes("px") || g.value.width.includes("vw") || g.value.width.includes("rem") || g.value.width.includes("em") ? P.style.width = g.value.width : P.style.width = `${g.value.width}px`) : P.style.width = g.value.align === "start" || g.value.align === "end" ? "45%" : "100%", g.value.height ? (P.setAttribute("data-height", g.value.height), g.value.height.includes("%") || g.value.height.includes("px") || g.value.height.includes("vh") || g.value.height.includes("rem") || g.value.height.includes("em") || g.value.height === "auto" ? P.style.height = g.value.height : P.style.height = `${g.value.height}px`) : P.style.height = "auto";
|
|
28680
28680
|
function q() {
|
|
28681
28681
|
const Wl = j.createElement("figcaption");
|
|
28682
28682
|
let Fl = "";
|
|
28683
|
-
return
|
|
28683
|
+
return g.value.figcaption && g.value.alt && (Fl = `<strong class="alt-text">${g.value.alt}</strong>`), g.value.credit && (Fl += `${Fl ? " • " : ""}<span class="photo-credit">${g.value.credit}</span>`), Wl.innerHTML = Fl, Wl;
|
|
28684
28684
|
}
|
|
28685
28685
|
function Zl() {
|
|
28686
|
-
const Wl =
|
|
28686
|
+
const Wl = g.value.link?.trim();
|
|
28687
28687
|
if (!Wl) return P;
|
|
28688
28688
|
const Fl = j.createElement("a");
|
|
28689
|
-
return Fl.setAttribute("href", Wl),
|
|
28689
|
+
return Fl.setAttribute("href", Wl), g.value.linkNewTab && (Fl.setAttribute("target", "_blank"), Fl.setAttribute("rel", "noopener noreferrer")), Fl.appendChild(P), Fl;
|
|
28690
28690
|
}
|
|
28691
28691
|
let rl;
|
|
28692
28692
|
if (R) if (R.tagName.toLowerCase() === "img") {
|
|
28693
28693
|
const Wl = j.createElement("figure");
|
|
28694
|
-
Wl.className = "image-figure",
|
|
28694
|
+
Wl.className = "image-figure", g.value.credit && Wl.setAttribute("data-credit", g.value.credit), Wl.appendChild(Zl()), (g.value.figcaption && g.value.alt || g.value.credit) && Wl.appendChild(q()), R.parentNode?.replaceChild(Wl, R), rl = Wl;
|
|
28695
28695
|
} else
|
|
28696
|
-
R.innerHTML = "",
|
|
28696
|
+
R.innerHTML = "", g.value.credit && R.setAttribute("data-credit", g.value.credit), R.appendChild(Zl()), (g.value.figcaption && g.value.alt || g.value.credit) && R.appendChild(q()), rl = R;
|
|
28697
28697
|
else {
|
|
28698
28698
|
const Wl = j.createElement("figure");
|
|
28699
|
-
Wl.className = "image-figure",
|
|
28699
|
+
Wl.className = "image-figure", g.value.credit && Wl.setAttribute("data-credit", g.value.credit), Wl.appendChild(Zl()), (g.value.figcaption && g.value.alt || g.value.credit) && Wl.appendChild(q()), rl = Wl;
|
|
28700
28700
|
const { selection: Fl, range: Cl } = V;
|
|
28701
28701
|
Cl.collapse(!1), Cl.insertNode(rl), Cl.setStartAfter(rl), Cl.collapse(!0), Fl.removeAllRanges(), Fl.addRange(Cl);
|
|
28702
28702
|
}
|
|
28703
|
-
const hl =
|
|
28703
|
+
const hl = g.value.align || "full";
|
|
28704
28704
|
rl.classList.remove("align-full", "align-start", "align-end"), rl.classList.add(`align-${hl}`), rl.setAttribute("data-align", hl), Ql(j), Q.value = !1, V = null;
|
|
28705
28705
|
}
|
|
28706
28706
|
function AZ(j = null) {
|
|
@@ -29515,7 +29515,7 @@ var If = { key: 0 }, xf = {
|
|
|
29515
29515
|
${`
|
|
29516
29516
|
${j}
|
|
29517
29517
|
:root {
|
|
29518
|
-
--bgl-input-color: ${
|
|
29518
|
+
--bgl-input-color: ${w.value || "#000"};
|
|
29519
29519
|
}
|
|
29520
29520
|
/* Scrollbar styles */
|
|
29521
29521
|
::-webkit-scrollbar {
|
|
@@ -29857,7 +29857,7 @@ var If = { key: 0 }, xf = {
|
|
|
29857
29857
|
R || (R = j.createElement("style"), R.id = "editor-theme-styles", j.head.appendChild(R));
|
|
29858
29858
|
const P = a.fontSize ? typeof a.fontSize == "number" ? `${a.fontSize}px` : a.fontSize : "16px", q = `
|
|
29859
29859
|
:root {
|
|
29860
|
-
--bgl-input-color: ${
|
|
29860
|
+
--bgl-input-color: ${w.value || "#000"};
|
|
29861
29861
|
--richtext-font-size: ${P};
|
|
29862
29862
|
}
|
|
29863
29863
|
body {
|
|
@@ -29876,7 +29876,7 @@ var If = { key: 0 }, xf = {
|
|
|
29876
29876
|
R.textContent = q;
|
|
29877
29877
|
}
|
|
29878
29878
|
wl([
|
|
29879
|
-
|
|
29879
|
+
w,
|
|
29880
29880
|
z,
|
|
29881
29881
|
E,
|
|
29882
29882
|
b
|
|
@@ -29906,9 +29906,9 @@ var If = { key: 0 }, xf = {
|
|
|
29906
29906
|
commands: X
|
|
29907
29907
|
});
|
|
29908
29908
|
const du = I({
|
|
29909
|
-
get: () =>
|
|
29909
|
+
get: () => g.value.src,
|
|
29910
29910
|
set: (j) => {
|
|
29911
|
-
!j ||
|
|
29911
|
+
!j || g.value.src === j || (g.value.src = kt(j) ?? j);
|
|
29912
29912
|
}
|
|
29913
29913
|
});
|
|
29914
29914
|
return (j, R) => {
|
|
@@ -30319,7 +30319,7 @@ var If = { key: 0 }, xf = {
|
|
|
30319
30319
|
al(N(Nl), {
|
|
30320
30320
|
class: "ms-auto",
|
|
30321
30321
|
value: N(V)?.existingImage ? "Save Changes" : "Insert Image",
|
|
30322
|
-
disabled: !
|
|
30322
|
+
disabled: !g.value.src,
|
|
30323
30323
|
onClick: Go
|
|
30324
30324
|
}, null, 8, ["value", "disabled"])
|
|
30325
30325
|
])]),
|
|
@@ -30331,35 +30331,35 @@ var If = { key: 0 }, xf = {
|
|
|
30331
30331
|
onKeydown: Ee(Go, ["enter"])
|
|
30332
30332
|
}, null, 8, ["modelValue"]), S("div", Ff, [
|
|
30333
30333
|
al(ce, {
|
|
30334
|
-
modelValue:
|
|
30335
|
-
"onUpdate:modelValue": R[26] || (R[26] = (q) =>
|
|
30334
|
+
modelValue: g.value.src,
|
|
30335
|
+
"onUpdate:modelValue": R[26] || (R[26] = (q) => g.value.src = q),
|
|
30336
30336
|
label: "Image URL",
|
|
30337
30337
|
type: "url",
|
|
30338
30338
|
placeholder: "https://example.com/image.jpg",
|
|
30339
30339
|
onKeydown: Ee(Go, ["enter"])
|
|
30340
30340
|
}, null, 8, ["modelValue"]),
|
|
30341
30341
|
al(ce, {
|
|
30342
|
-
modelValue:
|
|
30343
|
-
"onUpdate:modelValue": R[27] || (R[27] = (q) =>
|
|
30342
|
+
modelValue: g.value.alt,
|
|
30343
|
+
"onUpdate:modelValue": R[27] || (R[27] = (q) => g.value.alt = q),
|
|
30344
30344
|
label: "Alt Text",
|
|
30345
30345
|
placeholder: "Describe the image"
|
|
30346
30346
|
}, null, 8, ["modelValue"]),
|
|
30347
30347
|
S("div", ff, [al(ce, {
|
|
30348
|
-
modelValue:
|
|
30349
|
-
"onUpdate:modelValue": R[28] || (R[28] = (q) =>
|
|
30348
|
+
modelValue: g.value.width,
|
|
30349
|
+
"onUpdate:modelValue": R[28] || (R[28] = (q) => g.value.width = q),
|
|
30350
30350
|
label: "Width",
|
|
30351
30351
|
placeholder: "100% or 500px or auto",
|
|
30352
30352
|
help: "Examples: 100%, 500px, auto"
|
|
30353
30353
|
}, null, 8, ["modelValue"]), al(ce, {
|
|
30354
|
-
modelValue:
|
|
30355
|
-
"onUpdate:modelValue": R[29] || (R[29] = (q) =>
|
|
30354
|
+
modelValue: g.value.height,
|
|
30355
|
+
"onUpdate:modelValue": R[29] || (R[29] = (q) => g.value.height = q),
|
|
30356
30356
|
label: "Height",
|
|
30357
30357
|
placeholder: "auto or 300px",
|
|
30358
30358
|
help: "Examples: auto, 300px"
|
|
30359
30359
|
}, null, 8, ["modelValue"])]),
|
|
30360
30360
|
al(m5, {
|
|
30361
|
-
modelValue:
|
|
30362
|
-
"onUpdate:modelValue": R[30] || (R[30] = (q) =>
|
|
30361
|
+
modelValue: g.value.align,
|
|
30362
|
+
"onUpdate:modelValue": R[30] || (R[30] = (q) => g.value.align = q),
|
|
30363
30363
|
label: "Alignment",
|
|
30364
30364
|
options: [
|
|
30365
30365
|
{
|
|
@@ -30381,28 +30381,28 @@ var If = { key: 0 }, xf = {
|
|
|
30381
30381
|
"icon-only": ""
|
|
30382
30382
|
}, null, 8, ["modelValue"]),
|
|
30383
30383
|
al(ce, {
|
|
30384
|
-
modelValue:
|
|
30385
|
-
"onUpdate:modelValue": R[31] || (R[31] = (q) =>
|
|
30384
|
+
modelValue: g.value.credit,
|
|
30385
|
+
"onUpdate:modelValue": R[31] || (R[31] = (q) => g.value.credit = q),
|
|
30386
30386
|
label: "Photo Credit",
|
|
30387
30387
|
placeholder: "Photographer name (optional)"
|
|
30388
30388
|
}, null, 8, ["modelValue"]),
|
|
30389
30389
|
al(ce, {
|
|
30390
|
-
modelValue:
|
|
30391
|
-
"onUpdate:modelValue": R[32] || (R[32] = (q) =>
|
|
30390
|
+
modelValue: g.value.link,
|
|
30391
|
+
"onUpdate:modelValue": R[32] || (R[32] = (q) => g.value.link = q),
|
|
30392
30392
|
label: "Link URL",
|
|
30393
30393
|
type: "url",
|
|
30394
30394
|
placeholder: "https://example.com (optional)",
|
|
30395
30395
|
help: "Make the image clickable by linking it to a URL"
|
|
30396
30396
|
}, null, 8, ["modelValue"]),
|
|
30397
|
-
|
|
30397
|
+
g.value.link ? (L(), ol(bt, {
|
|
30398
30398
|
key: 0,
|
|
30399
|
-
modelValue:
|
|
30400
|
-
"onUpdate:modelValue": R[33] || (R[33] = (q) =>
|
|
30399
|
+
modelValue: g.value.linkNewTab,
|
|
30400
|
+
"onUpdate:modelValue": R[33] || (R[33] = (q) => g.value.linkNewTab = q),
|
|
30401
30401
|
label: "Open link in new tab"
|
|
30402
30402
|
}, null, 8, ["modelValue"])) : C("", !0),
|
|
30403
30403
|
al(bt, {
|
|
30404
|
-
modelValue:
|
|
30405
|
-
"onUpdate:modelValue": R[34] || (R[34] = (q) =>
|
|
30404
|
+
modelValue: g.value.figcaption,
|
|
30405
|
+
"onUpdate:modelValue": R[34] || (R[34] = (q) => g.value.figcaption = q),
|
|
30406
30406
|
label: "Show alt text as caption",
|
|
30407
30407
|
help: "Photo credit will always be shown if provided"
|
|
30408
30408
|
}, null, 8, ["modelValue"])
|
|
@@ -31394,11 +31394,11 @@ var sj = {
|
|
|
31394
31394
|
height: "auto"
|
|
31395
31395
|
}
|
|
31396
31396
|
}));
|
|
31397
|
-
async function
|
|
31397
|
+
async function w() {
|
|
31398
31398
|
s.value = new dj(c.value, W.value), t.disabled && s.value.off(), o.value = s.value.isEmpty(), d.value && M(d.value), await ne(), requestAnimationFrame(() => requestAnimationFrame(T));
|
|
31399
31399
|
}
|
|
31400
31400
|
return _l(() => {
|
|
31401
|
-
|
|
31401
|
+
w();
|
|
31402
31402
|
}), ph(() => c.value, T), si(() => s.value, "endStroke", X), e({
|
|
31403
31403
|
save: u,
|
|
31404
31404
|
clear: Z,
|
|
@@ -32210,8 +32210,8 @@ ql.prototype = /** @lends Sortable.prototype */
|
|
|
32210
32210
|
return h(), t.insertBefore(jl, M), Se = t, Y(), W(!0);
|
|
32211
32211
|
} else if (a.parentNode === t) {
|
|
32212
32212
|
i = Oe(a);
|
|
32213
|
-
var T = 0, x,
|
|
32214
|
-
En !== a && (x = i[z], ad = !1, rc = !f && c.invertSwap ||
|
|
32213
|
+
var T = 0, x, w = jl.parentNode !== t, f = !Rj(jl.animated && jl.toRect || n, a.animated && a.toRect || i, b), z = b ? "top" : "left", E = or(a, "top", "top") || or(jl, "top", "top"), D = E ? E.scrollTop : void 0;
|
|
32214
|
+
En !== a && (x = i[z], ad = !1, rc = !f && c.invertSwap || w), T = kj(e, a, i, b, f ? 1 : c.swapThreshold, c.invertedSwapThreshold == null ? c.swapThreshold : c.invertedSwapThreshold, rc, En === a);
|
|
32215
32215
|
var K;
|
|
32216
32216
|
if (T !== 0) {
|
|
32217
32217
|
var A = Jt(jl);
|
|
@@ -32519,9 +32519,9 @@ var _o = A5(function(l, e, t, a) {
|
|
|
32519
32519
|
t2 !== t && (t2 = t, Uc(), Qi = e.scroll, m = e.scrollFn, Qi === !0 && (Qi = Qa(t, !0)));
|
|
32520
32520
|
var Z = 0, u = Qi;
|
|
32521
32521
|
do {
|
|
32522
|
-
var b = u, r = Oe(b), p = r.top, G = r.bottom, h = r.left, W = r.right, Y = r.width, X = r.height, M = void 0, T = void 0, x = b.scrollWidth,
|
|
32523
|
-
b === s ? (M = Y < x && (f.overflowX === "auto" || f.overflowX === "scroll" || f.overflowX === "visible"), T = X <
|
|
32524
|
-
var D = M && (Math.abs(W - n) <= d && z + Y < x) - (Math.abs(h - n) <= d && !!z), K = T && (Math.abs(G - i) <= d && E + X <
|
|
32522
|
+
var b = u, r = Oe(b), p = r.top, G = r.bottom, h = r.left, W = r.right, Y = r.width, X = r.height, M = void 0, T = void 0, x = b.scrollWidth, w = b.scrollHeight, f = $l(b), z = b.scrollLeft, E = b.scrollTop;
|
|
32523
|
+
b === s ? (M = Y < x && (f.overflowX === "auto" || f.overflowX === "scroll" || f.overflowX === "visible"), T = X < w && (f.overflowY === "auto" || f.overflowY === "scroll" || f.overflowY === "visible")) : (M = Y < x && (f.overflowX === "auto" || f.overflowX === "scroll"), T = X < w && (f.overflowY === "auto" || f.overflowY === "scroll"));
|
|
32524
|
+
var D = M && (Math.abs(W - n) <= d && z + Y < x) - (Math.abs(h - n) <= d && !!z), K = T && (Math.abs(G - i) <= d && E + X < w) - (Math.abs(p - i) <= d && !!E);
|
|
32525
32525
|
if (!Je[Z])
|
|
32526
32526
|
for (var A = 0; A <= Z; A++) Je[A] || (Je[A] = {});
|
|
32527
32527
|
(Je[Z].vx != D || Je[Z].vy != K || Je[Z].el !== b) && (Je[Z].el = b, Je[Z].vx = D, Je[Z].vy = K, clearInterval(Je[Z].pid), (D != 0 || K != 0) && (o = !0, Je[Z].pid = setInterval((function() {
|
|
@@ -32663,11 +32663,11 @@ var n2 = [
|
|
|
32663
32663
|
function b() {
|
|
32664
32664
|
return l.component ? ha(l.component) : l.tag;
|
|
32665
32665
|
}
|
|
32666
|
-
function r(
|
|
32666
|
+
function r(g) {
|
|
32667
32667
|
if (m.value)
|
|
32668
|
-
for (const V in
|
|
32668
|
+
for (const V in g) {
|
|
32669
32669
|
const F = nr(V);
|
|
32670
|
-
Bj.indexOf(F) === -1 && m.value.option(F,
|
|
32670
|
+
Bj.indexOf(F) === -1 && m.value.option(F, g[V]);
|
|
32671
32671
|
}
|
|
32672
32672
|
}
|
|
32673
32673
|
function p() {
|
|
@@ -32676,132 +32676,132 @@ var n2 = [
|
|
|
32676
32676
|
async function G() {
|
|
32677
32677
|
await ne(), s.value = Kj(p(), u?.proxy?.$el.children || [], n.value, c.value);
|
|
32678
32678
|
}
|
|
32679
|
-
function h(
|
|
32680
|
-
const V = Ej(p() || [],
|
|
32679
|
+
function h(g) {
|
|
32680
|
+
const V = Ej(p() || [], g);
|
|
32681
32681
|
return V === -1 ? null : {
|
|
32682
32682
|
index: V,
|
|
32683
32683
|
element: Z.value ? Z.value[V] : null
|
|
32684
32684
|
};
|
|
32685
32685
|
}
|
|
32686
|
-
function W(
|
|
32687
|
-
ne(() => e("change",
|
|
32686
|
+
function W(g) {
|
|
32687
|
+
ne(() => e("change", g));
|
|
32688
32688
|
}
|
|
32689
|
-
function Y(
|
|
32689
|
+
function Y(g) {
|
|
32690
32690
|
if (l.list) {
|
|
32691
|
-
|
|
32691
|
+
g(l.list);
|
|
32692
32692
|
return;
|
|
32693
32693
|
}
|
|
32694
32694
|
const V = [...l.modelValue || []];
|
|
32695
|
-
|
|
32695
|
+
g(V), e("update:modelValue", V);
|
|
32696
32696
|
}
|
|
32697
|
-
function X(...
|
|
32698
|
-
Y((F) => F.splice(...
|
|
32697
|
+
function X(...g) {
|
|
32698
|
+
Y((F) => F.splice(...g));
|
|
32699
32699
|
}
|
|
32700
|
-
function M(
|
|
32701
|
-
Y((v) => v.splice(V, 0, v.splice(
|
|
32700
|
+
function M(g, V) {
|
|
32701
|
+
Y((v) => v.splice(V, 0, v.splice(g, 1)[0]));
|
|
32702
32702
|
}
|
|
32703
|
-
function T(
|
|
32703
|
+
function T(g) {
|
|
32704
32704
|
const V = s.value, F = V.length;
|
|
32705
|
-
return
|
|
32705
|
+
return g > F - 1 ? F : V[g];
|
|
32706
32706
|
}
|
|
32707
32707
|
function x() {
|
|
32708
32708
|
return t.default && t.default()[0]?.component?.proxy || null;
|
|
32709
32709
|
}
|
|
32710
|
-
function g
|
|
32710
|
+
function w(g) {
|
|
32711
32711
|
if (!l.noTransitionOnDrag || !n.value) return;
|
|
32712
32712
|
const V = p();
|
|
32713
|
-
V[
|
|
32713
|
+
V[g] && (V[g].data = null);
|
|
32714
32714
|
const F = x();
|
|
32715
32715
|
F && (F.children = [], F.kept = void 0);
|
|
32716
32716
|
}
|
|
32717
|
-
function f(
|
|
32718
|
-
G(), o.value = h(
|
|
32717
|
+
function f(g) {
|
|
32718
|
+
G(), o.value = h(g.item), o.value && (g.item._underlying_vm_ = l.clone(o.value.element), $o = g.item);
|
|
32719
32719
|
}
|
|
32720
|
-
function z(
|
|
32721
|
-
const V =
|
|
32720
|
+
function z(g) {
|
|
32721
|
+
const V = g.item._underlying_vm_;
|
|
32722
32722
|
if (V === void 0) return;
|
|
32723
|
-
Uo(
|
|
32724
|
-
const F = T(
|
|
32723
|
+
Uo(g.item);
|
|
32724
|
+
const F = T(g.newIndex);
|
|
32725
32725
|
X(F, 0, V), G(), W({ added: {
|
|
32726
32726
|
element: V,
|
|
32727
32727
|
newIndex: F
|
|
32728
32728
|
} });
|
|
32729
32729
|
}
|
|
32730
|
-
function E(
|
|
32731
|
-
if (ir(u?.proxy?.$el,
|
|
32732
|
-
Uo(
|
|
32730
|
+
function E(g) {
|
|
32731
|
+
if (ir(u?.proxy?.$el, g.item, g.oldIndex), g.pullMode === "clone") {
|
|
32732
|
+
Uo(g.clone);
|
|
32733
32733
|
return;
|
|
32734
32734
|
}
|
|
32735
32735
|
if (!o.value) return;
|
|
32736
32736
|
const V = o.value.index;
|
|
32737
|
-
X(V, 1),
|
|
32737
|
+
X(V, 1), w(V), W({ removed: {
|
|
32738
32738
|
element: o.value.element,
|
|
32739
32739
|
oldIndex: V
|
|
32740
32740
|
} });
|
|
32741
32741
|
}
|
|
32742
|
-
function D(
|
|
32743
|
-
Uo(
|
|
32744
|
-
const V = o.value?.index, F = T(
|
|
32742
|
+
function D(g) {
|
|
32743
|
+
Uo(g.item), ir(g.from, g.item, g.oldIndex);
|
|
32744
|
+
const V = o.value?.index, F = T(g.newIndex);
|
|
32745
32745
|
M(V, F), W({ moved: {
|
|
32746
32746
|
element: o.value?.element,
|
|
32747
32747
|
oldIndex: V,
|
|
32748
32748
|
newIndex: F
|
|
32749
32749
|
} });
|
|
32750
32750
|
}
|
|
32751
|
-
function K(
|
|
32752
|
-
Object.prototype.hasOwnProperty.call(
|
|
32751
|
+
function K(g, V) {
|
|
32752
|
+
Object.prototype.hasOwnProperty.call(g, V) && (g[V] += d.value);
|
|
32753
32753
|
}
|
|
32754
|
-
function A(
|
|
32755
|
-
return
|
|
32754
|
+
function A(g) {
|
|
32755
|
+
return g.__draggable_component__;
|
|
32756
32756
|
}
|
|
32757
|
-
function sl({ to:
|
|
32758
|
-
const F = A(
|
|
32757
|
+
function sl({ to: g, related: V }) {
|
|
32758
|
+
const F = A(g);
|
|
32759
32759
|
if (!F) return { component: F };
|
|
32760
32760
|
const v = F.realList, el = {
|
|
32761
32761
|
list: v,
|
|
32762
32762
|
component: F
|
|
32763
32763
|
};
|
|
32764
|
-
if (
|
|
32764
|
+
if (g !== V && v && F.getUnderlyingVm) {
|
|
32765
32765
|
const ll = F.getUnderlyingVm(V);
|
|
32766
32766
|
if (ll) return Object.assign(ll, el);
|
|
32767
32767
|
}
|
|
32768
32768
|
return el;
|
|
32769
32769
|
}
|
|
32770
|
-
function _(
|
|
32770
|
+
function _(g, V) {
|
|
32771
32771
|
const F = [...V.to.children].filter((ll) => ll.style.display !== "none");
|
|
32772
32772
|
if (F.length === 0) return 0;
|
|
32773
|
-
const v = F.indexOf(V.related), el =
|
|
32773
|
+
const v = F.indexOf(V.related), el = g.component.getVmIndex(v);
|
|
32774
32774
|
return F.indexOf($o) !== -1 || !V.willInsertAfter ? el : el + 1;
|
|
32775
32775
|
}
|
|
32776
32776
|
const B = () => {
|
|
32777
|
-
const
|
|
32777
|
+
const g = {};
|
|
32778
32778
|
n2.forEach((el) => {
|
|
32779
|
-
|
|
32779
|
+
g["on" + el] = pl(el);
|
|
32780
32780
|
}), i2.forEach((el) => {
|
|
32781
|
-
|
|
32781
|
+
g["on" + el] = il.bind(null, el);
|
|
32782
32782
|
});
|
|
32783
|
-
const V = Object.keys(a).reduce((el, ll) => (el[nr(ll)] = a[ll], el), {}), F = Object.assign({}, V,
|
|
32783
|
+
const V = Object.keys(a).reduce((el, ll) => (el[nr(ll)] = a[ll], el), {}), F = Object.assign({}, V, g, { onMove: (el, ll) => O(el, ll) });
|
|
32784
32784
|
"draggable" in F || (F.draggable = ">*");
|
|
32785
32785
|
const v = u?.proxy?.$el.nodeType === 1 ? u.proxy.$el : u?.proxy?.$el.parentElement || null;
|
|
32786
32786
|
v && (m.value = new ql(v, F), v.__draggable_component__ = u?.proxy, G());
|
|
32787
32787
|
};
|
|
32788
|
-
function il(
|
|
32789
|
-
ne(() => e(
|
|
32788
|
+
function il(g, V) {
|
|
32789
|
+
ne(() => e(g.toLowerCase(), V));
|
|
32790
32790
|
}
|
|
32791
|
-
function pl(
|
|
32791
|
+
function pl(g) {
|
|
32792
32792
|
return (V) => {
|
|
32793
32793
|
if (Z.value !== null) {
|
|
32794
|
-
const F = Q["onDrag" +
|
|
32794
|
+
const F = Q["onDrag" + g];
|
|
32795
32795
|
F && F(V);
|
|
32796
32796
|
}
|
|
32797
|
-
il(
|
|
32797
|
+
il(g, V);
|
|
32798
32798
|
};
|
|
32799
32799
|
}
|
|
32800
|
-
function O(
|
|
32800
|
+
function O(g, V) {
|
|
32801
32801
|
const F = l.move;
|
|
32802
32802
|
if (!F || !Z.value) return !0;
|
|
32803
|
-
const v = sl(
|
|
32804
|
-
return el && Object.assign(el, { futureIndex: ll }), F(Object.assign({},
|
|
32803
|
+
const v = sl(g), el = o.value, ll = _(v, g);
|
|
32804
|
+
return el && Object.assign(el, { futureIndex: ll }), F(Object.assign({}, g, {
|
|
32805
32805
|
relatedContext: v,
|
|
32806
32806
|
draggedContext: el
|
|
32807
32807
|
}), V);
|
|
@@ -32837,7 +32837,7 @@ var n2 = [
|
|
|
32837
32837
|
updatePosition: M,
|
|
32838
32838
|
getVmIndex: T,
|
|
32839
32839
|
getComponent: x,
|
|
32840
|
-
resetTransitionData:
|
|
32840
|
+
resetTransitionData: w,
|
|
32841
32841
|
onDragStart: f,
|
|
32842
32842
|
onDragAdd: z,
|
|
32843
32843
|
onDragRemove: E,
|
|
@@ -43692,8 +43692,8 @@ var LC = {
|
|
|
43692
43692
|
SJ: "NO",
|
|
43693
43693
|
VI: "US"
|
|
43694
43694
|
};
|
|
43695
|
-
function s(
|
|
43696
|
-
const V =
|
|
43695
|
+
function s(g) {
|
|
43696
|
+
const V = g.toUpperCase();
|
|
43697
43697
|
return c[V] ?? V;
|
|
43698
43698
|
}
|
|
43699
43699
|
const o = k(""), m = k(""), Z = k(), u = k(), b = k(!1), r = k(null), p = k(!0), G = k(!1);
|
|
@@ -43701,16 +43701,16 @@ var LC = {
|
|
|
43701
43701
|
return o.value.replace(/\D/g, "").replace(/^0+/, "");
|
|
43702
43702
|
}
|
|
43703
43703
|
function W() {
|
|
43704
|
-
const
|
|
43705
|
-
return
|
|
43704
|
+
const g = h();
|
|
43705
|
+
return g ? Z.value ? `+${Z.value.dialCode}${g}` : `+${g}` : "";
|
|
43706
43706
|
}
|
|
43707
|
-
function Y(
|
|
43708
|
-
const V = A(), F =
|
|
43707
|
+
function Y(g) {
|
|
43708
|
+
const V = A(), F = g.replace(/\D/g, "");
|
|
43709
43709
|
return F ? V ? (F.startsWith("0") ? "0" : "") + new Xs(V).input(F.replace(/^0+/, "")) : F : "";
|
|
43710
43710
|
}
|
|
43711
43711
|
wl([o, Z], () => i("update:modelValue", W()));
|
|
43712
|
-
function X(
|
|
43713
|
-
const V =
|
|
43712
|
+
function X(g) {
|
|
43713
|
+
const V = g ?? "";
|
|
43714
43714
|
if (!V) {
|
|
43715
43715
|
o.value = "";
|
|
43716
43716
|
return;
|
|
@@ -43724,73 +43724,73 @@ var LC = {
|
|
|
43724
43724
|
const v = V.replace(/\D/g, "");
|
|
43725
43725
|
Z.value && v.startsWith(Z.value.dialCode) ? o.value = Y(v.slice(Z.value.dialCode.length)) : o.value = Y(v);
|
|
43726
43726
|
}
|
|
43727
|
-
wl(() => t.modelValue, (
|
|
43728
|
-
|
|
43727
|
+
wl(() => t.modelValue, (g) => {
|
|
43728
|
+
g !== W() && X(g);
|
|
43729
43729
|
});
|
|
43730
43730
|
const M = I(() => {
|
|
43731
|
-
let
|
|
43731
|
+
let g = g8.filter((V) => !c[V.iso2]);
|
|
43732
43732
|
if (t.excludeCountries && t.excludeCountries.length) {
|
|
43733
43733
|
const V = t.excludeCountries.map((F) => F.toLowerCase());
|
|
43734
|
-
|
|
43734
|
+
g = g.filter((F) => !V.includes(F.iso2.toLowerCase()));
|
|
43735
43735
|
}
|
|
43736
43736
|
if (t.onlyCountries && t.onlyCountries.length) {
|
|
43737
43737
|
const V = t.onlyCountries.map(s);
|
|
43738
|
-
|
|
43738
|
+
g = g.filter((F) => V.includes(F.iso2));
|
|
43739
43739
|
}
|
|
43740
43740
|
if (m.value.length) {
|
|
43741
43741
|
const V = m.value.toLowerCase();
|
|
43742
|
-
|
|
43742
|
+
g = g.filter((F) => F.name.toLowerCase().includes(V) || F.iso2.toLowerCase().includes(V) || F.dialCode.includes(m.value.replace("+", "")));
|
|
43743
43743
|
}
|
|
43744
|
-
return
|
|
43744
|
+
return g;
|
|
43745
43745
|
}), T = I(() => Z.value?.iso2), x = I(() => {
|
|
43746
|
-
const
|
|
43747
|
-
if (!
|
|
43746
|
+
const g = A();
|
|
43747
|
+
if (!g) return "";
|
|
43748
43748
|
try {
|
|
43749
|
-
const V = YC(
|
|
43749
|
+
const V = YC(g, LC);
|
|
43750
43750
|
return V ? V.formatNational() : "";
|
|
43751
43751
|
} catch {
|
|
43752
43752
|
return "";
|
|
43753
43753
|
}
|
|
43754
|
-
}),
|
|
43755
|
-
function f(
|
|
43756
|
-
Z.value =
|
|
43754
|
+
}), w = I(() => t.placeholder ? Kl(t.placeholder) : x.value ? x.value : Kl(t.label) || d("tel.phoneNumber"));
|
|
43755
|
+
function f(g) {
|
|
43756
|
+
Z.value = g, b.value = !1, m.value = "", o.value = Y(o.value);
|
|
43757
43757
|
}
|
|
43758
|
-
function z(
|
|
43759
|
-
if (!
|
|
43760
|
-
const V = s(
|
|
43758
|
+
function z(g) {
|
|
43759
|
+
if (!g) return;
|
|
43760
|
+
const V = s(g);
|
|
43761
43761
|
return M.value.find((F) => F.iso2 === V);
|
|
43762
43762
|
}
|
|
43763
43763
|
function E() {
|
|
43764
|
-
const
|
|
43764
|
+
const g = [
|
|
43765
43765
|
t.defaultCountry,
|
|
43766
43766
|
typeof navigator < "u" ? navigator.language?.split("-")[1] : void 0,
|
|
43767
43767
|
typeof navigator < "u" ? navigator.languages?.[0]?.split("-")[1] : void 0
|
|
43768
43768
|
];
|
|
43769
|
-
for (const V of
|
|
43769
|
+
for (const V of g) {
|
|
43770
43770
|
const F = z(V);
|
|
43771
43771
|
if (F) return F;
|
|
43772
43772
|
}
|
|
43773
43773
|
}
|
|
43774
43774
|
async function D() {
|
|
43775
|
-
const { country_code:
|
|
43775
|
+
const { country_code: g } = await Q8(), V = z(g) ?? E();
|
|
43776
43776
|
V && f(V);
|
|
43777
43777
|
}
|
|
43778
43778
|
function K() {
|
|
43779
|
-
const
|
|
43780
|
-
|
|
43779
|
+
const g = E();
|
|
43780
|
+
g && f(g);
|
|
43781
43781
|
}
|
|
43782
43782
|
function A() {
|
|
43783
43783
|
return Z.value?.iso2 ? Z.value.iso2.toUpperCase() : void 0;
|
|
43784
43784
|
}
|
|
43785
43785
|
function sl() {
|
|
43786
43786
|
if (!r.value) return;
|
|
43787
|
-
const
|
|
43787
|
+
const g = W();
|
|
43788
43788
|
if (!t.required && !h()) {
|
|
43789
43789
|
r.value.setCustomValidity(""), p.value = !0;
|
|
43790
43790
|
return;
|
|
43791
43791
|
}
|
|
43792
43792
|
try {
|
|
43793
|
-
const V = n0(
|
|
43793
|
+
const V = n0(g, A()), F = !!(V && V.isValid());
|
|
43794
43794
|
r.value.setCustomValidity(F ? "" : d("tel.invalidPhone")), p.value = F || !G.value;
|
|
43795
43795
|
} catch {
|
|
43796
43796
|
r.value.setCustomValidity(d("tel.invalidPhone")), p.value = !G.value;
|
|
@@ -43805,18 +43805,18 @@ var LC = {
|
|
|
43805
43805
|
}
|
|
43806
43806
|
sl();
|
|
43807
43807
|
}
|
|
43808
|
-
function B(
|
|
43809
|
-
const V =
|
|
43810
|
-
V.value.trim().startsWith("+") ? X(V.value) : o.value = Y(V.value), V.value = o.value, i("input",
|
|
43808
|
+
function B(g) {
|
|
43809
|
+
const V = g.target;
|
|
43810
|
+
V.value.trim().startsWith("+") ? X(V.value) : o.value = Y(V.value), V.value = o.value, i("input", g), G.value && sl();
|
|
43811
43811
|
}
|
|
43812
|
-
function il(
|
|
43813
|
-
G.value = !0, sl(), i("blur",
|
|
43812
|
+
function il(g) {
|
|
43813
|
+
G.value = !0, sl(), i("blur", g);
|
|
43814
43814
|
}
|
|
43815
43815
|
const pl = I(() => M.value.length === 1 && !m.value), O = I(() => M.value.length > 7 || m.value), $ = I(() => !!o.value);
|
|
43816
43816
|
function Q() {
|
|
43817
43817
|
setTimeout(() => u.value?.focus(), 100);
|
|
43818
43818
|
}
|
|
43819
|
-
return _l(_), (
|
|
43819
|
+
return _l(_), (g, V) => {
|
|
43820
43820
|
const F = qe("pattern");
|
|
43821
43821
|
return L(), y("div", {
|
|
43822
43822
|
class: ml(["bagel-input text-input", [N(a), {
|
|
@@ -43884,7 +43884,7 @@ var LC = {
|
|
|
43884
43884
|
ref: r,
|
|
43885
43885
|
value: o.value,
|
|
43886
43886
|
required: l.required,
|
|
43887
|
-
placeholder: l.underlined ? " " :
|
|
43887
|
+
placeholder: l.underlined ? " " : w.value,
|
|
43888
43888
|
disabled: l.disabled,
|
|
43889
43889
|
type: "tel",
|
|
43890
43890
|
inputmode: "tel",
|
|
@@ -44439,7 +44439,7 @@ var BC = {
|
|
|
44439
44439
|
Z.value.top.open = !Z.value.top.open;
|
|
44440
44440
|
}, x = () => {
|
|
44441
44441
|
Z.value.bottom.open = !Z.value.bottom.open;
|
|
44442
|
-
},
|
|
44442
|
+
}, w = X;
|
|
44443
44443
|
gZ(() => {
|
|
44444
44444
|
u.value = !1;
|
|
44445
44445
|
}, () => d.value && u.value);
|
|
@@ -44491,7 +44491,7 @@ var BC = {
|
|
|
44491
44491
|
function Q(ll, Yl) {
|
|
44492
44492
|
return (getComputedStyle(Yl).direction === "rtl" ? -1 : 1) * (ll === "start" ? 1 : -1);
|
|
44493
44493
|
}
|
|
44494
|
-
function
|
|
44494
|
+
function g(ll, Yl) {
|
|
44495
44495
|
if (Yl.button !== 0 || Yl.isPrimary === !1 || !il(ll)) return;
|
|
44496
44496
|
pl.cancel();
|
|
44497
44497
|
const Sl = Yl.currentTarget, Xl = Z.value[ll].size, bl = Sl.parentElement?.getBoundingClientRect().width ?? B(Xl, 0), Rl = Q(ll, Sl), xl = (U) => $(ll, bl + (U.clientX - Yl.clientX) * Rl);
|
|
@@ -44534,7 +44534,7 @@ var BC = {
|
|
|
44534
44534
|
Vi(VW, {
|
|
44535
44535
|
isOpen: u,
|
|
44536
44536
|
isMobile: d,
|
|
44537
|
-
toggleMenu:
|
|
44537
|
+
toggleMenu: w,
|
|
44538
44538
|
closeOnMobile: f,
|
|
44539
44539
|
sidebarWidth: t.sidebarWidth,
|
|
44540
44540
|
sidebarCollapsedWidth: o,
|
|
@@ -44556,7 +44556,7 @@ var BC = {
|
|
|
44556
44556
|
const el = I(() => ({
|
|
44557
44557
|
isOpen: u,
|
|
44558
44558
|
isMobile: d,
|
|
44559
|
-
toggleMenu:
|
|
44559
|
+
toggleMenu: w,
|
|
44560
44560
|
closeOnMobile: f
|
|
44561
44561
|
}));
|
|
44562
44562
|
return (ll, Yl) => (L(), y("div", {
|
|
@@ -44591,7 +44591,7 @@ var BC = {
|
|
|
44591
44591
|
"aria-valuemin": B(Z.value.start.minSize, 0),
|
|
44592
44592
|
"aria-valuemax": Z.value.start.maxSize ? B(Z.value.start.maxSize, 0) : void 0,
|
|
44593
44593
|
onKeydown: Yl[0] || (Yl[0] = (Sl) => V("start", Sl)),
|
|
44594
|
-
onPointerdown: Yl[1] || (Yl[1] = te((Sl) =>
|
|
44594
|
+
onPointerdown: Yl[1] || (Yl[1] = te((Sl) => g("start", Sl), ["prevent"]))
|
|
44595
44595
|
}, [...Yl[4] || (Yl[4] = [S("div", { class: "region-resize-bar" }, null, -1)])], 40, QC), [[Vn, il("start")]])], 2),
|
|
44596
44596
|
S("main", AC, [Vl(ll.$slots, "header", xt(It(el.value)), void 0, !0), S("div", _C, [Vl(ll.$slots, "default", xt(It(el.value)), void 0, !0)])]),
|
|
44597
44597
|
S("div", { class: ml(["region-box region-box--end", { "region-box--flow": A("end") }]) }, [Vl(ll.$slots, "end", xt(It({
|
|
@@ -44608,7 +44608,7 @@ var BC = {
|
|
|
44608
44608
|
"aria-valuemin": B(Z.value.end.minSize, 0),
|
|
44609
44609
|
"aria-valuemax": Z.value.end.maxSize ? B(Z.value.end.maxSize, 0) : void 0,
|
|
44610
44610
|
onKeydown: Yl[2] || (Yl[2] = (Sl) => V("end", Sl)),
|
|
44611
|
-
onPointerdown: Yl[3] || (Yl[3] = te((Sl) =>
|
|
44611
|
+
onPointerdown: Yl[3] || (Yl[3] = te((Sl) => g("end", Sl), ["prevent"]))
|
|
44612
44612
|
}, [...Yl[5] || (Yl[5] = [S("div", { class: "region-resize-bar" }, null, -1)])], 40, $C), [[Vn, il("end")]])], 2)
|
|
44613
44613
|
], 6),
|
|
44614
44614
|
Z.value.bottom.present ? (L(), y("div", qC, [Vl(ll.$slots, "bottom", xt(It({
|
|
@@ -45170,13 +45170,13 @@ function wD(l) {
|
|
|
45170
45170
|
const u = wZ();
|
|
45171
45171
|
wl(d, () => u.cancel(), { flush: "sync" }), wl(() => i.value.map((G) => `${G.id}:${G.collapsed.value}`).join("|"), () => u.cancel(), { flush: "sync" }), wl(n, () => u.cancel(), { flush: "sync" });
|
|
45172
45172
|
function b(G, h) {
|
|
45173
|
-
const W = h - G.startPos, Y = G.isRtl ? -W : W, X = i.value[G.indexA], M = i.value[G.indexB], T = X.config.min, x = X.config.max,
|
|
45173
|
+
const W = h - G.startPos, Y = G.isRtl ? -W : W, X = i.value[G.indexA], M = i.value[G.indexB], T = X.config.min, x = X.config.max, w = M.config.min, f = M.config.max;
|
|
45174
45174
|
let z = G.currentSizeA, E = G.currentSizeB;
|
|
45175
45175
|
if (G.isFlexB) z = Math.max(T, Math.min(x, G.startSizeA + Y));
|
|
45176
|
-
else if (G.isFlexA) E = Math.max(
|
|
45176
|
+
else if (G.isFlexA) E = Math.max(w, Math.min(f, G.startSizeB - Y));
|
|
45177
45177
|
else {
|
|
45178
45178
|
const K = Math.max(T, Math.min(x, G.startSizeA + Y)) - G.startSizeA;
|
|
45179
|
-
E = Math.max(
|
|
45179
|
+
E = Math.max(w, Math.min(f, G.startSizeB - K)), z = G.startSizeA + (G.startSizeB - E);
|
|
45180
45180
|
}
|
|
45181
45181
|
G.currentSizeA = z, G.currentSizeB = E;
|
|
45182
45182
|
const D = G.isHorizontal ? "width" : "height";
|
|
@@ -45190,7 +45190,7 @@ function wD(l) {
|
|
|
45190
45190
|
const Y = i.value[W], X = i.value[W + 1];
|
|
45191
45191
|
if (Y.collapsed.value || X.collapsed.value || n.value && (Y.config.hideOnMobile || X.config.hideOnMobile)) return;
|
|
45192
45192
|
h.preventDefault();
|
|
45193
|
-
const M = d.value === "horizontal", T = M ? h.clientX : h.clientY, x = M && !!e.value && getComputedStyle(e.value).direction === "rtl",
|
|
45193
|
+
const M = d.value === "horizontal", T = M ? h.clientX : h.clientY, x = M && !!e.value && getComputedStyle(e.value).direction === "rtl", w = {
|
|
45194
45194
|
panelId: G,
|
|
45195
45195
|
pointerId: h.pointerId,
|
|
45196
45196
|
isHorizontal: M,
|
|
@@ -45206,21 +45206,21 @@ function wD(l) {
|
|
|
45206
45206
|
isFlexB: X.config.flex,
|
|
45207
45207
|
elA: Y.el.value,
|
|
45208
45208
|
elB: X.el.value
|
|
45209
|
-
}, f = e.value, z = M ? "width" : "height", E =
|
|
45210
|
-
flex:
|
|
45211
|
-
size:
|
|
45212
|
-
}, D =
|
|
45213
|
-
flex:
|
|
45214
|
-
size:
|
|
45209
|
+
}, f = e.value, z = M ? "width" : "height", E = w.elA && {
|
|
45210
|
+
flex: w.elA.style.flex,
|
|
45211
|
+
size: w.elA.style[z]
|
|
45212
|
+
}, D = w.elB && {
|
|
45213
|
+
flex: w.elB.style.flex,
|
|
45214
|
+
size: w.elB.style[z]
|
|
45215
45215
|
};
|
|
45216
45216
|
f?.setAttribute("data-resizing", ""), u.start(h, {
|
|
45217
45217
|
cursor: M ? "ew-resize" : "ns-resize",
|
|
45218
|
-
onMove: (K) => b(
|
|
45218
|
+
onMove: (K) => b(w, M ? K.clientX : K.clientY),
|
|
45219
45219
|
onEnd(K) {
|
|
45220
|
-
b(
|
|
45220
|
+
b(w, M ? K.clientX : K.clientY), Y.size.value = w.currentSizeA, X.size.value = w.currentSizeB, f?.removeAttribute("data-resizing");
|
|
45221
45221
|
},
|
|
45222
45222
|
onCancel() {
|
|
45223
|
-
|
|
45223
|
+
w.elA && E && (w.elA.style.flex = E.flex, w.elA.style[z] = E.size), w.elB && D && (w.elB.style.flex = D.flex, w.elB.style[z] = D.size), f?.removeAttribute("data-resizing");
|
|
45224
45224
|
}
|
|
45225
45225
|
});
|
|
45226
45226
|
}
|
|
@@ -45230,7 +45230,7 @@ function wD(l) {
|
|
|
45230
45230
|
const M = Z(G), T = i.value[M], x = i.value[M + 1];
|
|
45231
45231
|
if (!T || !x || T.collapsed.value || x.collapsed.value || n.value && (T.config.hideOnMobile || x.config.hideOnMobile)) return;
|
|
45232
45232
|
h.preventDefault(), u.cancel();
|
|
45233
|
-
const
|
|
45233
|
+
const w = {
|
|
45234
45234
|
panelId: G,
|
|
45235
45235
|
pointerId: 0,
|
|
45236
45236
|
isHorizontal: W,
|
|
@@ -45247,7 +45247,7 @@ function wD(l) {
|
|
|
45247
45247
|
elA: T.el.value,
|
|
45248
45248
|
elB: x.el.value
|
|
45249
45249
|
};
|
|
45250
|
-
b(
|
|
45250
|
+
b(w, (h.key === Y ? -1 : 1) * (h.shiftKey ? 50 : 10)), T.size.value = w.currentSizeA, x.size.value = w.currentSizeB;
|
|
45251
45251
|
}
|
|
45252
45252
|
return { context: {
|
|
45253
45253
|
direction: d,
|
|
@@ -45929,8 +45929,8 @@ var OD = { class: "bgl_tabs" }, ED = { key: 0 }, KD = /* @__PURE__ */ zl({
|
|
|
45929
45929
|
e.color && (T["--bgl-list-item-accent"] = `var(--bgl-${e.color})`), e.iconColor && (T["--bgl-list-item-icon-color"] = r(e.iconColor));
|
|
45930
45930
|
const x = m(e.titleSize ?? e.fontSize);
|
|
45931
45931
|
x && (T["--bgl-list-item-title-size"] = x);
|
|
45932
|
-
const
|
|
45933
|
-
|
|
45932
|
+
const w = m(e.subtitleSize);
|
|
45933
|
+
w && (T["--bgl-list-item-subtitle-size"] = w);
|
|
45934
45934
|
const f = m(e.leadSize);
|
|
45935
45935
|
f && (T["--bgl-list-item-lead-size"] = f);
|
|
45936
45936
|
const z = Z(e.iconChipSize);
|
|
@@ -45945,7 +45945,7 @@ var OD = { class: "bgl_tabs" }, ED = { key: 0 }, KD = /* @__PURE__ */ zl({
|
|
|
45945
45945
|
}, e.disabled && (T.disabled = !0), T;
|
|
45946
45946
|
});
|
|
45947
45947
|
return (T, x) => {
|
|
45948
|
-
const
|
|
45948
|
+
const w = qe("ripple");
|
|
45949
45949
|
return L(), y("div", Ze(d.value, {
|
|
45950
45950
|
class: ["flex space-between list-item-row", [{
|
|
45951
45951
|
"no-border-list": e.flat || l.rounded,
|
|
@@ -45990,7 +45990,7 @@ var OD = { class: "bgl_tabs" }, ED = { key: 0 }, KD = /* @__PURE__ */ zl({
|
|
|
45990
45990
|
}, [Dl(nl(l.subtitle) + " ", 1), Vl(T.$slots, "subtitle")], 2)) : C("", !0)
|
|
45991
45991
|
])]),
|
|
45992
45992
|
_: 3
|
|
45993
|
-
}, 16, ["class"])), [[
|
|
45993
|
+
}, 16, ["class"])), [[w, l.ripple && Y.value]]),
|
|
45994
45994
|
S("div", sU, [Vl(T.$slots, "end", {}, () => [l.end ? (L(), y("span", {
|
|
45995
45995
|
key: 0,
|
|
45996
45996
|
class: ml(["list-item-endtext", { "ellipsis-1": l.ellipsis }]),
|
|
@@ -46285,9 +46285,9 @@ var WU = /* @__PURE__ */ Jl(ZU, [["render", hU]]), pU = ["id"], GU = '<svg width
|
|
|
46285
46285
|
X.add(a.value), a.value > 1 && X.add(a.value - 1), a.value < m.value && X.add(a.value + 1), X.add(1), X.add(m.value);
|
|
46286
46286
|
const M = Array.from(X).sort((T, x) => T - x);
|
|
46287
46287
|
if (M.length < Y + 2) for (let T = 0; T < M.length - 1; T++) {
|
|
46288
|
-
const x = M[T],
|
|
46289
|
-
if (
|
|
46290
|
-
const f = Math.min(
|
|
46288
|
+
const x = M[T], w = M[T + 1];
|
|
46289
|
+
if (w - x > 1) {
|
|
46290
|
+
const f = Math.min(w - x - 1, Y + 2 - M.length), z = Array.from({ length: f }, (E, D) => x + D + 1);
|
|
46291
46291
|
M.splice(T + 1, 0, ...z), T += z.length;
|
|
46292
46292
|
}
|
|
46293
46293
|
}
|
|
@@ -46991,7 +46991,7 @@ var dO = ["value"], cO = { class: "spreadsheet-cell spreadsheetCellPlaceHolder"
|
|
|
46991
46991
|
function d() {
|
|
46992
46992
|
t("update:modelValue", i.value.map((Xl) => lO({ ...Xl })));
|
|
46993
46993
|
}
|
|
46994
|
-
const { columns: c, fixedColumns: s, scrollableColumns: o, columnOptions: m, visibleColumns: Z, columnWidths: u, isCellEditable: b, createEmptyRow: r, handleResizeStart: p } = tO(i, () => l.columnConfig), { sortColumn: G, sortDirection: h, sortByColumn: W } = nO(i, c, Z, d), { selectionStart: Y, selectionEnd: X, handleMouseDown: M, handleMouseOver: T, handleMouseUp: x, selectEntireRow:
|
|
46994
|
+
const { columns: c, fixedColumns: s, scrollableColumns: o, columnOptions: m, visibleColumns: Z, columnWidths: u, isCellEditable: b, createEmptyRow: r, handleResizeStart: p } = tO(i, () => l.columnConfig), { sortColumn: G, sortDirection: h, sortByColumn: W } = nO(i, c, Z, d), { selectionStart: Y, selectionEnd: X, handleMouseDown: M, handleMouseOver: T, handleMouseUp: x, selectEntireRow: w } = aO(c), { canUndo: f, canRedo: z, saveState: E, undo: D, redo: K } = iO(i, Y, X, d), { copySelection: A, pasteSelection: sl } = eO(i, c, Y, X, E, b, r, d), _ = k(null), B = k(null), il = k(/* @__PURE__ */ new Map());
|
|
46995
46995
|
function pl(Xl, bl) {
|
|
46996
46996
|
Xl?.$el instanceof HTMLInputElement ? il.value.set(bl, Xl.$el) : Xl instanceof HTMLInputElement ? il.value.set(bl, Xl) : il.value.delete(bl);
|
|
46997
46997
|
}
|
|
@@ -47000,7 +47000,7 @@ var dO = ["value"], cO = { class: "spreadsheet-cell spreadsheetCellPlaceHolder"
|
|
|
47000
47000
|
xl && (Rl !== void 0 && !b(xl) || (_.value = {
|
|
47001
47001
|
row: Xl,
|
|
47002
47002
|
col: bl
|
|
47003
|
-
}, B.value = i.value[Xl][xl]?.toString() ?? "", Rl !== void 0 &&
|
|
47003
|
+
}, B.value = i.value[Xl][xl]?.toString() ?? "", Rl !== void 0 && g(Xl, xl, Rl), ne(() => {
|
|
47004
47004
|
const U = il.value.get(`cell-${Xl}-${bl}`);
|
|
47005
47005
|
U && (U.focus(), Rl !== void 0 && (U.value = Rl));
|
|
47006
47006
|
})));
|
|
@@ -47019,7 +47019,7 @@ var dO = ["value"], cO = { class: "spreadsheet-cell spreadsheetCellPlaceHolder"
|
|
|
47019
47019
|
});
|
|
47020
47020
|
});
|
|
47021
47021
|
}
|
|
47022
|
-
function
|
|
47022
|
+
function g(Xl, bl, Rl) {
|
|
47023
47023
|
const xl = c.value.find((tl) => tl.key === bl);
|
|
47024
47024
|
if (xl?.locked) return;
|
|
47025
47025
|
E("cell");
|
|
@@ -47157,12 +47157,12 @@ var dO = ["value"], cO = { class: "spreadsheet-cell spreadsheetCellPlaceHolder"
|
|
|
47157
47157
|
class: "sticky z-2 start-0 bg-white",
|
|
47158
47158
|
onSortColumn: N(W),
|
|
47159
47159
|
onResizeStart: N(p),
|
|
47160
|
-
onSelectRow: N(
|
|
47160
|
+
onSelectRow: N(w),
|
|
47161
47161
|
onCellMouseDown: N(M),
|
|
47162
47162
|
onCellMouseOver: N(T),
|
|
47163
47163
|
onCellEditStart: O,
|
|
47164
47164
|
onCellKeyDown: Yl,
|
|
47165
|
-
onUpdateCell:
|
|
47165
|
+
onUpdateCell: g,
|
|
47166
47166
|
onStopEditing: Q,
|
|
47167
47167
|
onSetInputRef: pl
|
|
47168
47168
|
}, null, 8, [
|
|
@@ -47196,12 +47196,12 @@ var dO = ["value"], cO = { class: "spreadsheet-cell spreadsheetCellPlaceHolder"
|
|
|
47196
47196
|
"wrap-text": N(n),
|
|
47197
47197
|
onSortColumn: N(W),
|
|
47198
47198
|
onResizeStart: N(p),
|
|
47199
|
-
onSelectRow: N(
|
|
47199
|
+
onSelectRow: N(w),
|
|
47200
47200
|
onCellMouseDown: N(M),
|
|
47201
47201
|
onCellMouseOver: N(T),
|
|
47202
47202
|
onCellEditStart: O,
|
|
47203
47203
|
onCellKeyDown: Yl,
|
|
47204
|
-
onUpdateCell:
|
|
47204
|
+
onUpdateCell: g,
|
|
47205
47205
|
onStopEditing: Q,
|
|
47206
47206
|
onSetInputRef: pl
|
|
47207
47207
|
}, null, 8, [
|
|
@@ -47707,11 +47707,11 @@ function OO({ swiper: l, extendParams: e, on: t, emit: a }) {
|
|
|
47707
47707
|
let X, M;
|
|
47708
47708
|
const T = l.virtual && l.params.virtual.enabled ? l.virtual.slides.length : l.slides.length, x = l.params.loop ? Math.ceil(T / l.params.slidesPerGroup) : l.snapGrid.length;
|
|
47709
47709
|
if (l.params.loop ? (M = l.previousRealIndex || 0, X = l.params.slidesPerGroup > 1 ? Math.floor(l.realIndex / l.params.slidesPerGroup) : l.realIndex) : typeof l.snapIndex < "u" ? (X = l.snapIndex, M = l.previousSnapIndex) : (M = l.previousIndex || 0, X = l.activeIndex || 0), W.type === "bullets" && l.pagination.bullets && l.pagination.bullets.length > 0) {
|
|
47710
|
-
const
|
|
47710
|
+
const w = l.pagination.bullets;
|
|
47711
47711
|
let f, z, E;
|
|
47712
|
-
if (W.dynamicBullets && (i = h2(
|
|
47712
|
+
if (W.dynamicBullets && (i = h2(w[0], l.isHorizontal() ? "width" : "height", !0), Y.forEach((D) => {
|
|
47713
47713
|
D.style[l.isHorizontal() ? "width" : "height"] = `${i * (W.dynamicMainBullets + 4)}px`;
|
|
47714
|
-
}), W.dynamicMainBullets > 1 && M !== void 0 && (d += X - (M || 0), d > W.dynamicMainBullets - 1 ? d = W.dynamicMainBullets - 1 : d < 0 && (d = 0)), f = Math.max(X - d, 0), z = f + (Math.min(
|
|
47714
|
+
}), W.dynamicMainBullets > 1 && M !== void 0 && (d += X - (M || 0), d > W.dynamicMainBullets - 1 ? d = W.dynamicMainBullets - 1 : d < 0 && (d = 0)), f = Math.max(X - d, 0), z = f + (Math.min(w.length, W.dynamicMainBullets) - 1), E = (z + f) / 2), w.forEach((D) => {
|
|
47715
47715
|
const K = [...[
|
|
47716
47716
|
"",
|
|
47717
47717
|
"-next",
|
|
@@ -47721,42 +47721,42 @@ function OO({ swiper: l, extendParams: e, on: t, emit: a }) {
|
|
|
47721
47721
|
"-main"
|
|
47722
47722
|
].map((A) => `${W.bulletActiveClass}${A}`)].map((A) => typeof A == "string" && A.includes(" ") ? A.split(" ") : A).flat();
|
|
47723
47723
|
D.classList.remove(...K);
|
|
47724
|
-
}), Y.length > 1)
|
|
47724
|
+
}), Y.length > 1) w.forEach((D) => {
|
|
47725
47725
|
const K = Vs(D);
|
|
47726
47726
|
K === X ? D.classList.add(...W.bulletActiveClass.split(" ")) : l.isElement && D.setAttribute("part", "bullet"), W.dynamicBullets && (K >= f && K <= z && D.classList.add(...`${W.bulletActiveClass}-main`.split(" ")), K === f && s(D, "prev"), K === z && s(D, "next"));
|
|
47727
47727
|
});
|
|
47728
47728
|
else {
|
|
47729
|
-
const D =
|
|
47730
|
-
if (D && D.classList.add(...W.bulletActiveClass.split(" ")), l.isElement &&
|
|
47729
|
+
const D = w[X];
|
|
47730
|
+
if (D && D.classList.add(...W.bulletActiveClass.split(" ")), l.isElement && w.forEach((K, A) => {
|
|
47731
47731
|
K.setAttribute("part", A === X ? "bullet-active" : "bullet");
|
|
47732
47732
|
}), W.dynamicBullets) {
|
|
47733
|
-
const K =
|
|
47734
|
-
for (let sl = f; sl <= z; sl += 1)
|
|
47733
|
+
const K = w[f], A = w[z];
|
|
47734
|
+
for (let sl = f; sl <= z; sl += 1) w[sl] && w[sl].classList.add(...`${W.bulletActiveClass}-main`.split(" "));
|
|
47735
47735
|
s(K, "prev"), s(A, "next");
|
|
47736
47736
|
}
|
|
47737
47737
|
}
|
|
47738
47738
|
if (W.dynamicBullets) {
|
|
47739
|
-
const D = Math.min(
|
|
47740
|
-
|
|
47739
|
+
const D = Math.min(w.length, W.dynamicMainBullets + 4), K = (i * D - i) / 2 - E * i, A = h ? "right" : "left";
|
|
47740
|
+
w.forEach((sl) => {
|
|
47741
47741
|
sl.style[l.isHorizontal() ? A : "top"] = `${K}px`;
|
|
47742
47742
|
});
|
|
47743
47743
|
}
|
|
47744
47744
|
}
|
|
47745
|
-
Y.forEach((
|
|
47746
|
-
if (W.type === "fraction" && (
|
|
47745
|
+
Y.forEach((w, f) => {
|
|
47746
|
+
if (W.type === "fraction" && (w.querySelectorAll(Ui(W.currentClass)).forEach((z) => {
|
|
47747
47747
|
z.textContent = W.formatFractionCurrent(X + 1);
|
|
47748
|
-
}),
|
|
47748
|
+
}), w.querySelectorAll(Ui(W.totalClass)).forEach((z) => {
|
|
47749
47749
|
z.textContent = W.formatFractionTotal(x);
|
|
47750
47750
|
})), W.type === "progressbar") {
|
|
47751
47751
|
let z;
|
|
47752
47752
|
W.progressbarOpposite ? z = l.isHorizontal() ? "vertical" : "horizontal" : z = l.isHorizontal() ? "horizontal" : "vertical";
|
|
47753
47753
|
const E = (X + 1) / x;
|
|
47754
47754
|
let D = 1, K = 1;
|
|
47755
|
-
z === "horizontal" ? D = E : K = E,
|
|
47755
|
+
z === "horizontal" ? D = E : K = E, w.querySelectorAll(Ui(W.progressbarFillClass)).forEach((A) => {
|
|
47756
47756
|
A.style.transform = `translate3d(0,0,0) scaleX(${D}) scaleY(${K})`, A.style.transitionDuration = `${l.params.speed}ms`;
|
|
47757
47757
|
});
|
|
47758
47758
|
}
|
|
47759
|
-
W.type === "custom" && W.renderCustom ? (wd(
|
|
47759
|
+
W.type === "custom" && W.renderCustom ? (wd(w, W.renderCustom(l, X + 1, x)), f === 0 && a("paginationRender", w)) : (f === 0 && a("paginationRender", w), a("paginationUpdate", w)), l.params.watchOverflow && l.enabled && w.classList[l.isLocked ? "add" : "remove"](W.lockClass);
|
|
47760
47760
|
});
|
|
47761
47761
|
}
|
|
47762
47762
|
function u() {
|
|
@@ -47891,7 +47891,7 @@ function EO({ swiper: l, extendParams: e, on: t, emit: a, params: n }) {
|
|
|
47891
47891
|
m = (/* @__PURE__ */ new Date()).getTime(), l.autoplay.running = !0, M(), a("autoplayStart");
|
|
47892
47892
|
}, x = () => {
|
|
47893
47893
|
l.autoplay.running = !1, clearTimeout(i), cancelAnimationFrame(d), a("autoplayStop");
|
|
47894
|
-
},
|
|
47894
|
+
}, w = (B, il) => {
|
|
47895
47895
|
if (l.destroyed || !l.autoplay.running) return;
|
|
47896
47896
|
clearTimeout(i), B || (p = !0);
|
|
47897
47897
|
const pl = () => {
|
|
@@ -47907,9 +47907,9 @@ function EO({ swiper: l, extendParams: e, on: t, emit: a, params: n }) {
|
|
|
47907
47907
|
}, z = () => {
|
|
47908
47908
|
if (l.destroyed || !l.autoplay.running) return;
|
|
47909
47909
|
const B = pa();
|
|
47910
|
-
B.visibilityState === "hidden" && (p = !0,
|
|
47910
|
+
B.visibilityState === "hidden" && (p = !0, w(!0)), B.visibilityState === "visible" && f();
|
|
47911
47911
|
}, E = (B) => {
|
|
47912
|
-
B.pointerType === "mouse" && (p = !0, G = !0, !(l.animating || l.autoplay.paused) &&
|
|
47912
|
+
B.pointerType === "mouse" && (p = !0, G = !0, !(l.animating || l.autoplay.paused) && w(!0));
|
|
47913
47913
|
}, D = (B) => {
|
|
47914
47914
|
B.pointerType === "mouse" && (G = !1, l.autoplay.paused && f());
|
|
47915
47915
|
}, K = () => {
|
|
@@ -47928,9 +47928,9 @@ function EO({ swiper: l, extendParams: e, on: t, emit: a, params: n }) {
|
|
|
47928
47928
|
}), t("_freeModeStaticRelease", () => {
|
|
47929
47929
|
(b || p) && f();
|
|
47930
47930
|
}), t("_freeModeNoMomentumRelease", () => {
|
|
47931
|
-
l.params.autoplay.disableOnInteraction ? x() :
|
|
47931
|
+
l.params.autoplay.disableOnInteraction ? x() : w(!0, !0);
|
|
47932
47932
|
}), t("beforeTransitionStart", (B, il, pl) => {
|
|
47933
|
-
l.destroyed || !l.autoplay.running || (pl || !l.params.autoplay.disableOnInteraction ?
|
|
47933
|
+
l.destroyed || !l.autoplay.running || (pl || !l.params.autoplay.disableOnInteraction ? w(!0, !0) : x());
|
|
47934
47934
|
}), t("sliderFirstMove", () => {
|
|
47935
47935
|
if (!(l.destroyed || !l.autoplay.running)) {
|
|
47936
47936
|
if (l.params.autoplay.disableOnInteraction) {
|
|
@@ -47938,7 +47938,7 @@ function EO({ swiper: l, extendParams: e, on: t, emit: a, params: n }) {
|
|
|
47938
47938
|
return;
|
|
47939
47939
|
}
|
|
47940
47940
|
u = !0, b = !1, p = !1, r = setTimeout(() => {
|
|
47941
|
-
p = !0, b = !0,
|
|
47941
|
+
p = !0, b = !0, w(!0);
|
|
47942
47942
|
}, 200);
|
|
47943
47943
|
}
|
|
47944
47944
|
}), t("touchEnd", () => {
|
|
@@ -47954,7 +47954,7 @@ function EO({ swiper: l, extendParams: e, on: t, emit: a, params: n }) {
|
|
|
47954
47954
|
}), Object.assign(l.autoplay, {
|
|
47955
47955
|
start: T,
|
|
47956
47956
|
stop: x,
|
|
47957
|
-
pause:
|
|
47957
|
+
pause: w,
|
|
47958
47958
|
resume: f
|
|
47959
47959
|
});
|
|
47960
47960
|
}
|
|
@@ -48066,20 +48066,20 @@ function HO({ swiper: l, extendParams: e, on: t }) {
|
|
|
48066
48066
|
G.shadow && (h ? (X = l.wrapperEl.querySelector(".swiper-cube-shadow"), X || (X = ga("div", "swiper-cube-shadow"), l.wrapperEl.append(X)), X.style.height = `${m}px`) : (X = c.querySelector(".swiper-cube-shadow"), X || (X = ga("div", "swiper-cube-shadow"), c.append(X))));
|
|
48067
48067
|
for (let T = 0; T < o.length; T += 1) {
|
|
48068
48068
|
const x = o[T];
|
|
48069
|
-
let
|
|
48070
|
-
W && (
|
|
48071
|
-
let f =
|
|
48069
|
+
let w = T;
|
|
48070
|
+
W && (w = parseInt(x.getAttribute("data-swiper-slide-index"), 10));
|
|
48071
|
+
let f = w * 90, z = Math.floor(f / 360);
|
|
48072
48072
|
u && (f = -f, z = Math.floor(-f / 360));
|
|
48073
48073
|
const E = Math.max(Math.min(x.progress, 1), -1);
|
|
48074
48074
|
let D = 0, K = 0, A = 0;
|
|
48075
|
-
|
|
48075
|
+
w % 4 === 0 ? (D = -z * 4 * b, A = 0) : (w - 1) % 4 === 0 ? (D = 0, A = -z * 4 * b) : (w - 2) % 4 === 0 ? (D = b + z * 4 * b, A = b) : (w - 3) % 4 === 0 && (D = -b, A = 3 * b + b * 4 * z), u && (D = -D), h || (K = D, D = 0);
|
|
48076
48076
|
const sl = `rotateX(${p(h ? 0 : -f)}deg) rotateY(${p(h ? f : 0)}deg) translate3d(${D}px, ${K}px, ${A}px)`;
|
|
48077
|
-
E <= 1 && E > -1 && (Y =
|
|
48077
|
+
E <= 1 && E > -1 && (Y = w * 90 + E * 90, u && (Y = -w * 90 - E * 90)), x.style.transform = sl, G.slideShadows && a(x, E, h);
|
|
48078
48078
|
}
|
|
48079
48079
|
if (s.style.transformOrigin = `50% 50% -${b / 2}px`, s.style["-webkit-transform-origin"] = `50% 50% -${b / 2}px`, G.shadow) if (h) X.style.transform = `translate3d(0px, ${m / 2 + G.shadowOffset}px, ${-m / 2}px) rotateX(89.99deg) rotateZ(0deg) scale(${G.shadowScale})`;
|
|
48080
48080
|
else {
|
|
48081
|
-
const T = Math.abs(Y) - Math.floor(Math.abs(Y) / 90) * 90, x = 1.5 - (Math.sin(T * 2 * Math.PI / 360) / 2 + Math.cos(T * 2 * Math.PI / 360) / 2),
|
|
48082
|
-
X.style.transform = `scale3d(${
|
|
48081
|
+
const T = Math.abs(Y) - Math.floor(Math.abs(Y) / 90) * 90, x = 1.5 - (Math.sin(T * 2 * Math.PI / 360) / 2 + Math.cos(T * 2 * Math.PI / 360) / 2), w = G.shadowScale, f = G.shadowScale / x, z = G.shadowOffset;
|
|
48082
|
+
X.style.transform = `scale3d(${w}, 1, ${f}) translate3d(0px, ${Z / 2 + z}px, ${-Z / 2 / f}px) rotateX(-89.99deg)`;
|
|
48083
48083
|
}
|
|
48084
48084
|
const M = (r.isSafari || r.isWebView) && r.needPerspectiveFix ? -b / 2 : 0;
|
|
48085
48085
|
s.style.transform = `translate3d(0px,0,${M}px) rotateX(${p(l.isHorizontal() ? 0 : Y)}deg) rotateY(${p(l.isHorizontal() ? -Y : 0)}deg)`, s.style.setProperty("--swiper-cube-translate-z", `${M}px`);
|
|
@@ -48190,11 +48190,11 @@ function BO({ swiper: l, extendParams: e, on: t }) {
|
|
|
48190
48190
|
const { width: i, height: d, slides: c, slidesSizesGrid: s } = l, o = l.params.coverflowEffect, m = l.isHorizontal(), Z = l.translate, u = m ? -Z + i / 2 : -Z + d / 2, b = m ? o.rotate : -o.rotate, r = o.depth, p = vZ(l);
|
|
48191
48191
|
for (let G = 0, h = c.length; G < h; G += 1) {
|
|
48192
48192
|
const W = c[G], Y = s[G], X = (u - W.swiperSlideOffset - Y / 2) / Y, M = typeof o.modifier == "function" ? o.modifier(X) : X * o.modifier;
|
|
48193
|
-
let T = m ? b * M : 0, x = m ? 0 : b * M,
|
|
48193
|
+
let T = m ? b * M : 0, x = m ? 0 : b * M, w = -r * Math.abs(M), f = o.stretch;
|
|
48194
48194
|
typeof f == "string" && f.indexOf("%") !== -1 && (f = parseFloat(o.stretch) / 100 * Y);
|
|
48195
48195
|
let z = m ? 0 : f * M, E = m ? f * M : 0, D = 1 - (1 - o.scale) * Math.abs(M);
|
|
48196
|
-
Math.abs(E) < 1e-3 && (E = 0), Math.abs(z) < 1e-3 && (z = 0), Math.abs(
|
|
48197
|
-
const K = `translate3d(${E}px,${z}px,${
|
|
48196
|
+
Math.abs(E) < 1e-3 && (E = 0), Math.abs(z) < 1e-3 && (z = 0), Math.abs(w) < 1e-3 && (w = 0), Math.abs(T) < 1e-3 && (T = 0), Math.abs(x) < 1e-3 && (x = 0), Math.abs(D) < 1e-3 && (D = 0);
|
|
48197
|
+
const K = `translate3d(${E}px,${z}px,${w}px) rotateX(${p(x)}deg) rotateY(${p(T)}deg) scale(${D})`, A = so(o, W);
|
|
48198
48198
|
if (A.style.transform = K, W.style.zIndex = -Math.abs(Math.round(M)) + 1, o.slideShadows) {
|
|
48199
48199
|
let sl = m ? W.querySelector(".swiper-slide-shadow-left") : W.querySelector(".swiper-slide-shadow-top"), _ = m ? W.querySelector(".swiper-slide-shadow-right") : W.querySelector(".swiper-slide-shadow-bottom");
|
|
48200
48200
|
sl || (sl = Rd("coverflow", W, m ? "left" : "top")), _ || (_ = Rd("coverflow", W, m ? "right" : "bottom")), sl && (sl.style.opacity = M > 0 ? M : 0), _ && (_.style.opacity = -M > 0 ? -M : 0);
|
|
@@ -48231,8 +48231,8 @@ function QO({ swiper: l, extendParams: e, on: t }) {
|
|
|
48231
48231
|
let h = l.params.cssMode ? -G - l.translate : -G, W = 0;
|
|
48232
48232
|
const Y = -100 * Math.abs(p);
|
|
48233
48233
|
let X = 1, M = -s.perSlideRotate * p, T = s.perSlideOffset - Math.abs(p) * 0.75;
|
|
48234
|
-
const x = l.virtual && l.params.virtual.enabled ? l.virtual.from + u : u,
|
|
48235
|
-
if (
|
|
48234
|
+
const x = l.virtual && l.params.virtual.enabled ? l.virtual.from + u : u, w = (x === d || x === d - 1) && p > 0 && p < 1 && (m || l.params.cssMode) && Z < o, f = (x === d || x === d + 1) && p < 0 && p > -1 && (m || l.params.cssMode) && Z > o;
|
|
48235
|
+
if (w || f) {
|
|
48236
48236
|
const K = (1 - Math.abs((Math.abs(p) - 0.5) / 0.5)) ** 0.5;
|
|
48237
48237
|
M += -28 * p * K, X += -0.5 * K, T += 96 * K, W = `${(s.rotate || l.isHorizontal() ? -25 : 0) * K * Math.abs(p)}%`;
|
|
48238
48238
|
}
|
|
@@ -48491,33 +48491,33 @@ function aE() {
|
|
|
48491
48491
|
}), t.centeredSlides && t.cssMode && (Hn(a, "--swiper-centered-offset-before", ""), Hn(a, "--swiper-centered-offset-after", "")), t.cssMode && (Hn(a, "--swiper-slides-offset-before", `${r}px`), Hn(a, "--swiper-slides-offset-after", `${p}px`));
|
|
48492
48492
|
const x = t.grid && t.grid.rows > 1 && l.grid;
|
|
48493
48493
|
x ? l.grid.initSlides(o) : l.grid && l.grid.unsetSlides();
|
|
48494
|
-
let
|
|
48494
|
+
let w;
|
|
48495
48495
|
const f = t.slidesPerView === "auto" && t.breakpoints && Object.keys(t.breakpoints).filter((z) => typeof t.breakpoints[z].slidesPerView < "u").length > 0;
|
|
48496
48496
|
for (let z = 0; z < m; z += 1) {
|
|
48497
|
-
|
|
48497
|
+
w = 0;
|
|
48498
48498
|
const E = o[z];
|
|
48499
48499
|
if (!(E && (x && l.grid.updateSlide(z, E, o), Aa(E, "display") === "none"))) {
|
|
48500
48500
|
if (c && t.slidesPerView === "auto")
|
|
48501
|
-
t.virtual.slidesPerViewAutoSlideSize && (
|
|
48501
|
+
t.virtual.slidesPerViewAutoSlideSize && (w = t.virtual.slidesPerViewAutoSlideSize), w && E && (t.roundLengths && (w = Math.floor(w)), E.style[l.getDirectionLabel("width")] = `${w}px`);
|
|
48502
48502
|
else if (t.slidesPerView === "auto") {
|
|
48503
48503
|
f && (E.style[l.getDirectionLabel("width")] = "");
|
|
48504
48504
|
const D = getComputedStyle(E), K = E.style.transform, A = E.style.webkitTransform;
|
|
48505
|
-
if (K && (E.style.transform = "none"), A && (E.style.webkitTransform = "none"), t.roundLengths)
|
|
48505
|
+
if (K && (E.style.transform = "none"), A && (E.style.webkitTransform = "none"), t.roundLengths) w = l.isHorizontal() ? h2(E, "width", !0) : h2(E, "height", !0);
|
|
48506
48506
|
else {
|
|
48507
48507
|
const sl = e(D, "width"), _ = e(D, "padding-left"), B = e(D, "padding-right"), il = e(D, "margin-left"), pl = e(D, "margin-right"), O = D.getPropertyValue("box-sizing");
|
|
48508
|
-
if (O && O === "border-box")
|
|
48508
|
+
if (O && O === "border-box") w = sl + il + pl;
|
|
48509
48509
|
else {
|
|
48510
48510
|
const { clientWidth: $, offsetWidth: Q } = E;
|
|
48511
|
-
|
|
48511
|
+
w = sl + _ + B + il + pl + (Q - $);
|
|
48512
48512
|
}
|
|
48513
48513
|
}
|
|
48514
|
-
K && (E.style.transform = K), A && (E.style.webkitTransform = A), t.roundLengths && (
|
|
48514
|
+
K && (E.style.transform = K), A && (E.style.webkitTransform = A), t.roundLengths && (w = Math.floor(w));
|
|
48515
48515
|
} else
|
|
48516
|
-
|
|
48517
|
-
E && (E.swiperSlideSize =
|
|
48516
|
+
w = (W - (t.slidesPerView - 1) * Y) / t.slidesPerView, t.roundLengths && (w = Math.floor(w)), E && (E.style[l.getDirectionLabel("width")] = `${w}px`);
|
|
48517
|
+
E && (E.swiperSlideSize = w), b.push(w), t.centeredSlides ? (X = X + w / 2 + M / 2 + Y, M === 0 && z !== 0 && (X = X - W / 2 - Y), z === 0 && (X = X - W / 2 - Y), Math.abs(X) < 1 / 1e3 && (X = 0), t.roundLengths && (X = Math.floor(X)), T % t.slidesPerGroup === 0 && Z.push(X), u.push(X)) : (t.roundLengths && (X = Math.floor(X)), (T - Math.min(l.params.slidesPerGroupSkip, T)) % l.params.slidesPerGroup === 0 && Z.push(X), u.push(X), X = X + w + Y), l.virtualSize += w + Y, M = w, T += 1;
|
|
48518
48518
|
}
|
|
48519
48519
|
}
|
|
48520
|
-
if (l.virtualSize = Math.max(l.virtualSize, W) + p, i && d && (t.effect === "slide" || t.effect === "coverflow") && (a.style.width = `${l.virtualSize + Y}px`), t.setWrapperSize && (a.style[l.getDirectionLabel("width")] = `${l.virtualSize + Y}px`), x && l.grid.updateWrapperSize(
|
|
48520
|
+
if (l.virtualSize = Math.max(l.virtualSize, W) + p, i && d && (t.effect === "slide" || t.effect === "coverflow") && (a.style.width = `${l.virtualSize + Y}px`), t.setWrapperSize && (a.style[l.getDirectionLabel("width")] = `${l.virtualSize + Y}px`), x && l.grid.updateWrapperSize(w, Z), !t.centeredSlides) {
|
|
48521
48521
|
const z = t.slidesPerView !== "auto" && t.slidesPerView % 1 !== 0, E = t.snapToSlideEdge && !t.loop && (t.slidesPerView === "auto" || z);
|
|
48522
48522
|
let D = Z.length;
|
|
48523
48523
|
if (E) {
|
|
@@ -48885,8 +48885,8 @@ function yE(l = 0, e, t = !0, a, n) {
|
|
|
48885
48885
|
G >= s.length && (G = s.length - 1);
|
|
48886
48886
|
const h = -s[G];
|
|
48887
48887
|
if (c.normalizeSlideIndex) for (let M = 0; M < o.length; M += 1) {
|
|
48888
|
-
const T = -Math.floor(h * 100), x = Math.floor(o[M] * 100),
|
|
48889
|
-
typeof o[M + 1] < "u" ? T >= x && T <
|
|
48888
|
+
const T = -Math.floor(h * 100), x = Math.floor(o[M] * 100), w = Math.floor(o[M + 1] * 100);
|
|
48889
|
+
typeof o[M + 1] < "u" ? T >= x && T < w - (w - x) / 2 ? d = M : T >= x && T < w && (d = M + 1) : T >= x && (d = M);
|
|
48890
48890
|
}
|
|
48891
48891
|
if (i.initialized && d !== Z && (!i.allowSlideNext && (u ? h > i.translate && h > i.minTranslate() : h < i.translate && h < i.minTranslate()) || !i.allowSlidePrev && h > i.translate && h > i.maxTranslate() && (Z || 0) !== d))
|
|
48892
48892
|
return !1;
|
|
@@ -49092,7 +49092,7 @@ function RE({ slideRealIndex: l, slideTo: e = !0, direction: t, setTranslate: a,
|
|
|
49092
49092
|
M % X !== 0 && (M += X - M % X), M += b.loopAdditionalSlides, s.loopedSlides = M;
|
|
49093
49093
|
const T = s.grid && b.grid && b.grid.rows > 1;
|
|
49094
49094
|
o.length < Y + M || s.params.effect === "cards" && o.length < Y + M * 2 ? Ms("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters") : T && b.grid.fill === "row" && Ms("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");
|
|
49095
|
-
const x = [],
|
|
49095
|
+
const x = [], w = [], f = T ? Math.ceil(o.length / b.grid.rows) : o.length, z = i && f - h < Y && !W;
|
|
49096
49096
|
let E = z ? h : s.activeIndex;
|
|
49097
49097
|
typeof n > "u" ? n = s.getSlideIndex(o.find((B) => B.classList.contains(b.slideActiveClass))) : E = n;
|
|
49098
49098
|
const D = t === "next" || !t, K = t === "prev" || !t;
|
|
@@ -49112,17 +49112,17 @@ function RE({ slideRealIndex: l, slideTo: e = !0, direction: t, setTranslate: a,
|
|
|
49112
49112
|
for (let B = 0; B < sl; B += 1) {
|
|
49113
49113
|
const il = B - Math.floor(B / f) * f;
|
|
49114
49114
|
T ? o.forEach((pl, O) => {
|
|
49115
|
-
pl.column === il &&
|
|
49116
|
-
}) :
|
|
49115
|
+
pl.column === il && w.push(O);
|
|
49116
|
+
}) : w.push(il);
|
|
49117
49117
|
}
|
|
49118
49118
|
}
|
|
49119
49119
|
if (s.__preventObserver__ = !0, requestAnimationFrame(() => {
|
|
49120
49120
|
s.__preventObserver__ = !1;
|
|
49121
|
-
}), s.params.effect === "cards" && o.length < Y + M * 2 && (
|
|
49121
|
+
}), s.params.effect === "cards" && o.length < Y + M * 2 && (w.includes(n) && w.splice(w.indexOf(n), 1), x.includes(n) && x.splice(x.indexOf(n), 1)), K && x.forEach((B) => {
|
|
49122
49122
|
o[B].swiperLoopMoveDOM = !0, u.prepend(o[B]), o[B].swiperLoopMoveDOM = !1;
|
|
49123
|
-
}), D &&
|
|
49123
|
+
}), D && w.forEach((B) => {
|
|
49124
49124
|
o[B].swiperLoopMoveDOM = !0, u.append(o[B]), o[B].swiperLoopMoveDOM = !1;
|
|
49125
|
-
}), s.recalcSlides(), b.slidesPerView === "auto" ? s.updateSlides() : T && (x.length > 0 && K ||
|
|
49125
|
+
}), s.recalcSlides(), b.slidesPerView === "auto" ? s.updateSlides() : T && (x.length > 0 && K || w.length > 0 && D) && s.slides.forEach((B, il) => {
|
|
49126
49126
|
s.grid.updateSlide(il, B, s.slides);
|
|
49127
49127
|
}), b.watchSlidesProgress && s.updateSlidesOffset(), e) {
|
|
49128
49128
|
if (x.length > 0 && K) {
|
|
@@ -49133,11 +49133,11 @@ function RE({ slideRealIndex: l, slideTo: e = !0, direction: t, setTranslate: a,
|
|
|
49133
49133
|
const B = T ? x.length / b.grid.rows : x.length;
|
|
49134
49134
|
s.slideTo(s.activeIndex + B, 0, !1, !0), s.touchEventsData.currentTranslate = s.translate;
|
|
49135
49135
|
}
|
|
49136
|
-
} else if (
|
|
49136
|
+
} else if (w.length > 0 && D) if (typeof l > "u") {
|
|
49137
49137
|
const B = s.slidesGrid[E], il = s.slidesGrid[E - sl] - B;
|
|
49138
49138
|
c ? s.setTranslate(s.translate - il) : (s.slideTo(E - sl, 0, !1, !0), a && (s.touchEventsData.startTranslate = s.touchEventsData.startTranslate - il, s.touchEventsData.currentTranslate = s.touchEventsData.currentTranslate - il));
|
|
49139
49139
|
} else {
|
|
49140
|
-
const B = T ?
|
|
49140
|
+
const B = T ? w.length / b.grid.rows : w.length;
|
|
49141
49141
|
s.slideTo(s.activeIndex - B, 0, !1, !0);
|
|
49142
49142
|
}
|
|
49143
49143
|
}
|
|
@@ -50104,18 +50104,18 @@ function iK(l = "") {
|
|
|
50104
50104
|
return l ? l.includes("swiper-wrapper") ? l : `swiper-wrapper ${l}` : "swiper-wrapper";
|
|
50105
50105
|
}
|
|
50106
50106
|
function dK({ swiper: l, slides: e, passedParams: t, changedParams: a, nextEl: n, prevEl: i, scrollbarEl: d, paginationEl: c }) {
|
|
50107
|
-
const s = a.filter((
|
|
50107
|
+
const s = a.filter((w) => w !== "children" && w !== "direction" && w !== "wrapperClass"), { params: o, pagination: m, navigation: Z, scrollbar: u, virtual: b, thumbs: r } = l;
|
|
50108
50108
|
let p, G, h, W, Y, X, M, T;
|
|
50109
50109
|
a.includes("thumbs") && t.thumbs && t.thumbs.swiper && !t.thumbs.swiper.destroyed && o.thumbs && (!o.thumbs.swiper || o.thumbs.swiper.destroyed) && (p = !0), a.includes("controller") && t.controller && t.controller.control && o.controller && !o.controller.control && (G = !0), a.includes("pagination") && t.pagination && (t.pagination.el || c) && (o.pagination || o.pagination === !1) && m && !m.el && (h = !0), a.includes("scrollbar") && t.scrollbar && (t.scrollbar.el || d) && (o.scrollbar || o.scrollbar === !1) && u && !u.el && (W = !0), a.includes("navigation") && t.navigation && (t.navigation.prevEl || i) && (t.navigation.nextEl || n) && (o.navigation || o.navigation === !1) && Z && !Z.prevEl && !Z.nextEl && (Y = !0);
|
|
50110
|
-
const x = (
|
|
50111
|
-
l[
|
|
50110
|
+
const x = (w) => {
|
|
50111
|
+
l[w] && (l[w].destroy(), w === "navigation" ? (l.isElement && (l[w].prevEl.remove(), l[w].nextEl.remove()), o[w].prevEl = void 0, o[w].nextEl = void 0, l[w].prevEl = void 0, l[w].nextEl = void 0) : (l.isElement && l[w].el.remove(), o[w].el = void 0, l[w].el = void 0));
|
|
50112
50112
|
};
|
|
50113
|
-
a.includes("loop") && l.isElement && (o.loop && !t.loop ? X = !0 : !o.loop && t.loop ? M = !0 : T = !0), s.forEach((
|
|
50114
|
-
if (Fn(o[
|
|
50115
|
-
Object.assign(o[
|
|
50113
|
+
a.includes("loop") && l.isElement && (o.loop && !t.loop ? X = !0 : !o.loop && t.loop ? M = !0 : T = !0), s.forEach((w) => {
|
|
50114
|
+
if (Fn(o[w]) && Fn(t[w]))
|
|
50115
|
+
Object.assign(o[w], t[w]), (w === "navigation" || w === "pagination" || w === "scrollbar") && "enabled" in t[w] && !t[w].enabled && x(w);
|
|
50116
50116
|
else {
|
|
50117
|
-
const f = t[
|
|
50118
|
-
(f === !0 || f === !1) && (
|
|
50117
|
+
const f = t[w];
|
|
50118
|
+
(f === !0 || f === !1) && (w === "navigation" || w === "pagination" || w === "scrollbar") ? f === !1 && x(w) : o[w] = t[w];
|
|
50119
50119
|
}
|
|
50120
50120
|
}), s.includes("controller") && !G && l.controller && l.controller.control && o.controller && o.controller.control && (l.controller.control = o.controller.control), a.includes("children") && e && b && o.virtual.enabled ? (b.slides = e, b.update(!0)) : a.includes("virtual") && b && o.virtual.enabled && (e && (b.slides = e), b.update(!0)), a.includes("children") && e && o.loop && (T = !0), p && r.init() && r.update(!0), G && (l.controller.control = o.controller.control), h && (l.isElement && (!c || typeof c == "string") && (c = document.createElement("div"), c.classList.add("swiper-pagination"), c.part.add("pagination"), l.el.appendChild(c)), c && (o.pagination.el = c), m.init(), m.render(), m.update()), W && (l.isElement && (!d || typeof d == "string") && (d = document.createElement("div"), d.classList.add("swiper-scrollbar"), d.part.add("scrollbar"), l.el.appendChild(d)), d && (o.scrollbar.el = d), u.init(), u.updateSize(), u.setTranslate()), Y && (l.isElement && ((!n || typeof n == "string") && (n = document.createElement("div"), n.classList.add("swiper-button-next"), wd(n, l.navigation.arrowSvg), n.part.add("button-next"), l.el.appendChild(n)), (!i || typeof i == "string") && (i = document.createElement("div"), i.classList.add("swiper-button-prev"), wd(i, l.navigation.arrowSvg), i.part.add("button-prev"), l.el.appendChild(i))), n && (o.navigation.nextEl = n), i && (o.navigation.prevEl = i), Z.init(), Z.update()), a.includes("allowSlideNext") && (l.allowSlideNext = t.allowSlideNext), a.includes("allowSlidePrev") && (l.allowSlidePrev = t.allowSlidePrev), a.includes("direction") && l.changeDirection(t.direction, !1), (X || T) && l.loopDestroy(), (M || T) && l.loopCreate(), l.update();
|
|
50121
50121
|
}
|
|
@@ -50756,12 +50756,12 @@ var ZK = {
|
|
|
50756
50756
|
const X = () => {
|
|
50757
50757
|
mm(e, u, b), c.value = !0;
|
|
50758
50758
|
};
|
|
50759
|
-
W.onAny = (x, ...
|
|
50760
|
-
t(x, ...
|
|
50759
|
+
W.onAny = (x, ...w) => {
|
|
50760
|
+
t(x, ...w);
|
|
50761
50761
|
}, Object.assign(W.on, {
|
|
50762
50762
|
_beforeBreakpoint: X,
|
|
50763
|
-
_containerClasses(x,
|
|
50764
|
-
i.value =
|
|
50763
|
+
_containerClasses(x, w) {
|
|
50764
|
+
i.value = w;
|
|
50765
50765
|
}
|
|
50766
50766
|
});
|
|
50767
50767
|
const M = { ...W };
|
|
@@ -50770,8 +50770,8 @@ var ZK = {
|
|
|
50770
50770
|
const x = {
|
|
50771
50771
|
cache: !1,
|
|
50772
50772
|
slides: u.value,
|
|
50773
|
-
renderExternal: (
|
|
50774
|
-
d.value =
|
|
50773
|
+
renderExternal: (w) => {
|
|
50774
|
+
d.value = w;
|
|
50775
50775
|
},
|
|
50776
50776
|
renderExternalUpdate: !1
|
|
50777
50777
|
};
|
|
@@ -50779,12 +50779,12 @@ var ZK = {
|
|
|
50779
50779
|
}
|
|
50780
50780
|
k2(() => {
|
|
50781
50781
|
!s.value && m.value && (m.value.emitSlidesClasses(), s.value = !0);
|
|
50782
|
-
const { passedParams: x } = W0(l, !1),
|
|
50783
|
-
Z.value = x, (
|
|
50782
|
+
const { passedParams: x } = W0(l, !1), w = sK(x, Z.value, u.value, b.value, (f) => f.props && f.props.key);
|
|
50783
|
+
Z.value = x, (w.length || c.value) && m.value && !m.value.destroyed && dK({
|
|
50784
50784
|
swiper: m.value,
|
|
50785
50785
|
slides: u.value,
|
|
50786
50786
|
passedParams: x,
|
|
50787
|
-
changedParams:
|
|
50787
|
+
changedParams: w,
|
|
50788
50788
|
nextEl: r.value,
|
|
50789
50789
|
prevEl: p.value,
|
|
50790
50790
|
scrollbarEl: h.value,
|
|
@@ -50807,21 +50807,21 @@ var ZK = {
|
|
|
50807
50807
|
m.value && !m.value.destroyed && m.value.destroy(!0, !1);
|
|
50808
50808
|
});
|
|
50809
50809
|
function T(x) {
|
|
50810
|
-
return W.virtual ? mK(m, x, d.value) : (x.forEach((
|
|
50811
|
-
|
|
50810
|
+
return W.virtual ? mK(m, x, d.value) : (x.forEach((w, f) => {
|
|
50811
|
+
w.props || (w.props = {}), w.props.swiperRef = m, w.props.swiperSlideIndex = f;
|
|
50812
50812
|
}), x);
|
|
50813
50813
|
}
|
|
50814
50814
|
return () => {
|
|
50815
|
-
const { slides: x, slots:
|
|
50815
|
+
const { slides: x, slots: w } = mm(e, u, b);
|
|
50816
50816
|
return ee(a, {
|
|
50817
50817
|
ref: o,
|
|
50818
50818
|
class: OW(i.value)
|
|
50819
50819
|
}, [
|
|
50820
|
-
|
|
50820
|
+
w["container-start"],
|
|
50821
50821
|
ee(n, { class: iK(W.wrapperClass) }, [
|
|
50822
|
-
|
|
50822
|
+
w["wrapper-start"],
|
|
50823
50823
|
T(x),
|
|
50824
|
-
|
|
50824
|
+
w["wrapper-end"]
|
|
50825
50825
|
]),
|
|
50826
50826
|
CW(l) && [ee("div", {
|
|
50827
50827
|
ref: p,
|
|
@@ -50838,7 +50838,7 @@ var ZK = {
|
|
|
50838
50838
|
ref: G,
|
|
50839
50839
|
class: "swiper-pagination"
|
|
50840
50840
|
}),
|
|
50841
|
-
|
|
50841
|
+
w["container-end"]
|
|
50842
50842
|
]);
|
|
50843
50843
|
};
|
|
50844
50844
|
}
|
|
@@ -51137,7 +51137,7 @@ var ZK = {
|
|
|
51137
51137
|
function x(z) {
|
|
51138
51138
|
!Z || Z.id !== z.pointerId || Z.dragged || (Z.dragged = Math.hypot(z.clientX - Z.startX, z.clientY - Z.startY) > 6);
|
|
51139
51139
|
}
|
|
51140
|
-
function
|
|
51140
|
+
function w(z) {
|
|
51141
51141
|
if (!Z || Z.id !== z.pointerId) return;
|
|
51142
51142
|
const { index: E, startX: D, startY: K } = Z, A = Z.dragged || Math.hypot(z.clientX - D, z.clientY - K) > 6;
|
|
51143
51143
|
Z = null;
|
|
@@ -51182,7 +51182,7 @@ var ZK = {
|
|
|
51182
51182
|
}]),
|
|
51183
51183
|
onPointerdownCapture: T,
|
|
51184
51184
|
onPointermoveCapture: x,
|
|
51185
|
-
onPointerupCapture:
|
|
51185
|
+
onPointerupCapture: w,
|
|
51186
51186
|
onPointercancelCapture: f
|
|
51187
51187
|
}, [
|
|
51188
51188
|
al(N(ZK), Ze(G.value, {
|
|
@@ -51335,7 +51335,7 @@ var N6 = /* @__PURE__ */ Jl(WK, [["render", GK]]), NK = class {
|
|
|
51335
51335
|
set: (tl) => {
|
|
51336
51336
|
b.value = tl, a("update:zoom", b.value);
|
|
51337
51337
|
}
|
|
51338
|
-
}), p = k(1), G = k(0), h = k(0), W = k("y"), Y = k(!1), X = k(-1), M = k(-1), T = k(0), x = k(!0),
|
|
51338
|
+
}), p = k(1), G = k(0), h = k(0), W = k("y"), Y = k(!1), X = k(-1), M = k(-1), T = k(0), x = k(!0), w = k(), f = k(), z = k(0), E = k(0), D = k(0), K = k(), A = I(() => ({
|
|
51339
51339
|
transform: [`translate(${i.value * m.value}px, ${d.value * u.value}px)`, `scale(${p.value})`].join(" "),
|
|
51340
51340
|
transformOrigin: "50% 50%"
|
|
51341
51341
|
}));
|
|
@@ -51400,7 +51400,7 @@ var N6 = /* @__PURE__ */ Jl(WK, [["render", GK]]), NK = class {
|
|
|
51400
51400
|
y: tl
|
|
51401
51401
|
};
|
|
51402
51402
|
}
|
|
51403
|
-
function
|
|
51403
|
+
function g(tl) {
|
|
51404
51404
|
if (!l.mouseWheelToZoom) return;
|
|
51405
51405
|
tl.preventDefault();
|
|
51406
51406
|
const dl = Date.now();
|
|
@@ -51447,7 +51447,7 @@ var N6 = /* @__PURE__ */ Jl(WK, [["render", GK]]), NK = class {
|
|
|
51447
51447
|
}
|
|
51448
51448
|
}
|
|
51449
51449
|
function bl() {
|
|
51450
|
-
p.value = Rl(p.value, r.value), m.value = Rl(m.value, o.value), u.value = Rl(u.value, Z.value),
|
|
51450
|
+
p.value = Rl(p.value, r.value), m.value = Rl(m.value, o.value), u.value = Rl(u.value, Z.value), w.value = window.requestAnimationFrame(bl);
|
|
51451
51451
|
}
|
|
51452
51452
|
function Rl(tl, dl) {
|
|
51453
51453
|
const J = (dl - tl) * 0.4;
|
|
@@ -51456,7 +51456,7 @@ var N6 = /* @__PURE__ */ Jl(WK, [["render", GK]]), NK = class {
|
|
|
51456
51456
|
_l(() => {
|
|
51457
51457
|
f.value = new NK(), n.value && f.value.attach(n.value), l.doubleClickToZoom && (f.value.onDoubleTap(xl), n.value && n.value.addEventListener("dblclick", xl)), window.addEventListener("resize", U), U(), Xl(), bl();
|
|
51458
51458
|
}), He(() => {
|
|
51459
|
-
n.value && (f.value?.detach(n.value), l.doubleClickToZoom && n.value.removeEventListener("dblclick", xl)), window.removeEventListener("resize", U),
|
|
51459
|
+
n.value && (f.value?.detach(n.value), l.doubleClickToZoom && n.value.removeEventListener("dblclick", xl)), window.removeEventListener("resize", U), w.value && window.cancelAnimationFrame(w.value), K.value && window.cancelAnimationFrame(K.value);
|
|
51460
51460
|
});
|
|
51461
51461
|
function xl(tl) {
|
|
51462
51462
|
tl.clientX > 0 && (X.value = tl.clientX, M.value = tl.clientY);
|
|
@@ -51474,8 +51474,8 @@ var N6 = /* @__PURE__ */ Jl(WK, [["render", GK]]), NK = class {
|
|
|
51474
51474
|
ref: n,
|
|
51475
51475
|
class: "vue-zoomer",
|
|
51476
51476
|
style: Il({ backgroundColor: l.backgroundColor }),
|
|
51477
|
-
onMousewheel:
|
|
51478
|
-
"on:DOMMouseScroll":
|
|
51477
|
+
onMousewheel: g,
|
|
51478
|
+
"on:DOMMouseScroll": g,
|
|
51479
51479
|
onMousedown: F,
|
|
51480
51480
|
onMouseout: B,
|
|
51481
51481
|
onFocusout: B,
|
|
@@ -53987,23 +53987,23 @@ var zH = /* @__PURE__ */ zl({
|
|
|
53987
53987
|
errors: {},
|
|
53988
53988
|
onSubmit: { type: Function }
|
|
53989
53989
|
},
|
|
53990
|
-
emits: ["update:modelValue"],
|
|
53990
|
+
emits: ["update:modelValue", "change"],
|
|
53991
53991
|
setup(l, { expose: e, emit: t }) {
|
|
53992
53992
|
const a = l, n = t, { $t: i } = we();
|
|
53993
53993
|
function d(O, $) {
|
|
53994
53994
|
const Q = $.split(".");
|
|
53995
|
-
let
|
|
53996
|
-
for (const V of Q)
|
|
53997
|
-
return
|
|
53995
|
+
let g = O;
|
|
53996
|
+
for (const V of Q) g = g?.[V];
|
|
53997
|
+
return g;
|
|
53998
53998
|
}
|
|
53999
53999
|
function c(O, $, Q) {
|
|
54000
|
-
const
|
|
54000
|
+
const g = $.split(".");
|
|
54001
54001
|
let V = O;
|
|
54002
|
-
for (let F = 0; F <
|
|
54003
|
-
const v =
|
|
54002
|
+
for (let F = 0; F < g.length - 1; F++) {
|
|
54003
|
+
const v = g[F];
|
|
54004
54004
|
(V[v] == null || typeof V[v] != "object") && (V[v] = {}), V = V[v];
|
|
54005
54005
|
}
|
|
54006
|
-
V[
|
|
54006
|
+
V[g[g.length - 1]] = Q;
|
|
54007
54007
|
}
|
|
54008
54008
|
function s(O) {
|
|
54009
54009
|
if (O == null || typeof O != "object") return O;
|
|
@@ -54013,12 +54013,12 @@ var zH = /* @__PURE__ */ zl({
|
|
|
54013
54013
|
return JSON.parse(JSON.stringify(O));
|
|
54014
54014
|
}
|
|
54015
54015
|
}
|
|
54016
|
-
function o(O, $, Q,
|
|
54016
|
+
function o(O, $, Q, g) {
|
|
54017
54017
|
const V = ba(O._type);
|
|
54018
54018
|
if (V?.coerce) return V.coerce($, {
|
|
54019
54019
|
key: Q,
|
|
54020
54020
|
config: O._config,
|
|
54021
|
-
formData:
|
|
54021
|
+
formData: g
|
|
54022
54022
|
});
|
|
54023
54023
|
if (typeof $ != "string") return $;
|
|
54024
54024
|
const F = $.trim();
|
|
@@ -54038,22 +54038,22 @@ var zH = /* @__PURE__ */ zl({
|
|
|
54038
54038
|
}
|
|
54039
54039
|
function m(O) {
|
|
54040
54040
|
const $ = { ...O ?? {} };
|
|
54041
|
-
for (const [Q,
|
|
54041
|
+
for (const [Q, g] of Object.entries(a.schema._fields)) {
|
|
54042
54042
|
const V = d($, Q);
|
|
54043
54043
|
if (V !== void 0) {
|
|
54044
|
-
c($, Q, o(
|
|
54044
|
+
c($, Q, o(g, V, Q, $));
|
|
54045
54045
|
continue;
|
|
54046
54046
|
}
|
|
54047
|
-
const F =
|
|
54048
|
-
F !== void 0 && c($, Q, o(
|
|
54047
|
+
const F = g._config.default;
|
|
54048
|
+
F !== void 0 && c($, Q, o(g, s(F), Q, $));
|
|
54049
54049
|
}
|
|
54050
54050
|
return $;
|
|
54051
54051
|
}
|
|
54052
54052
|
function Z(O) {
|
|
54053
54053
|
const $ = O._config.schema;
|
|
54054
54054
|
if ($ && typeof $.getDefaults == "function") {
|
|
54055
|
-
const
|
|
54056
|
-
if (
|
|
54055
|
+
const g = s($.getDefaults());
|
|
54056
|
+
if (g && Object.keys(g).length > 0) return g;
|
|
54057
54057
|
}
|
|
54058
54058
|
const Q = O._config.default;
|
|
54059
54059
|
return Array.isArray(Q) && Q.length > 0 && Q[0] != null && typeof Q[0] == "object" ? s(u(Q[0])) : {};
|
|
@@ -54081,8 +54081,8 @@ var zH = /* @__PURE__ */ zl({
|
|
|
54081
54081
|
if ($._condition == null) return O;
|
|
54082
54082
|
const Q = $._condition.trim().split(/\s+/)[0];
|
|
54083
54083
|
if (!Q) return O;
|
|
54084
|
-
const
|
|
54085
|
-
return
|
|
54084
|
+
const g = d(b.value, Q);
|
|
54085
|
+
return g == null ? O : `${O}:${String(g)}`;
|
|
54086
54086
|
}
|
|
54087
54087
|
const M = I(() => {
|
|
54088
54088
|
const O = [];
|
|
@@ -54094,21 +54094,22 @@ var zH = /* @__PURE__ */ zl({
|
|
|
54094
54094
|
});
|
|
54095
54095
|
function T(O) {
|
|
54096
54096
|
if (!a.schema._class?.split(/\s+/).includes("free-grid")) return;
|
|
54097
|
-
const { rowStart: $, rowSpan: Q, mRowStart:
|
|
54098
|
-
if (!(!$ && !
|
|
54097
|
+
const { rowStart: $, rowSpan: Q, mRowStart: g, mRowSpan: V } = xH(O._class);
|
|
54098
|
+
if (!(!$ && !g && !Q && !V))
|
|
54099
54099
|
return {
|
|
54100
54100
|
...$ ? { "--bgl-grid-row-start": String($) } : {},
|
|
54101
|
-
...
|
|
54101
|
+
...g ? { "--bgl-mobile-grid-row-start": String(g) } : {},
|
|
54102
54102
|
...Q ? { "--bgl-grid-row-span": String(Q) } : {},
|
|
54103
54103
|
...V ? { "--bgl-mobile-grid-row-span": String(V) } : {}
|
|
54104
54104
|
};
|
|
54105
54105
|
}
|
|
54106
54106
|
function x(O, $, Q) {
|
|
54107
|
-
|
|
54107
|
+
const g = s(b.value);
|
|
54108
|
+
c(b.value, O, $), n("change", s(b.value), g), (G.value === "success" || G.value === "error") && (G.value = "idle"), p.value && f(O, Q);
|
|
54108
54109
|
}
|
|
54109
|
-
function
|
|
54110
|
-
const
|
|
54111
|
-
return
|
|
54110
|
+
function w(O, $, Q) {
|
|
54111
|
+
const g = ba($._type);
|
|
54112
|
+
return g?.isEmpty ? g.isEmpty(O, {
|
|
54112
54113
|
key: Q,
|
|
54113
54114
|
config: $._config,
|
|
54114
54115
|
formData: b.value
|
|
@@ -54116,7 +54117,7 @@ var zH = /* @__PURE__ */ zl({
|
|
|
54116
54117
|
}
|
|
54117
54118
|
function f(O, $) {
|
|
54118
54119
|
const Q = z(O);
|
|
54119
|
-
if ($._config.required === !0 &&
|
|
54120
|
+
if ($._config.required === !0 && w(Q, $, O))
|
|
54120
54121
|
return r.value = {
|
|
54121
54122
|
...r.value,
|
|
54122
54123
|
[O]: $._config.requiredMessage ?? i("form.required")
|
|
@@ -54126,15 +54127,15 @@ var zH = /* @__PURE__ */ zl({
|
|
|
54126
54127
|
...r.value,
|
|
54127
54128
|
[O]: i("form.invalidEmail")
|
|
54128
54129
|
}, !1;
|
|
54129
|
-
const
|
|
54130
|
+
const g = ba($._type)?.validate?.(Q, {
|
|
54130
54131
|
key: O,
|
|
54131
54132
|
config: $._config,
|
|
54132
54133
|
formData: b.value
|
|
54133
54134
|
});
|
|
54134
|
-
if (
|
|
54135
|
+
if (g !== void 0 && g !== !0)
|
|
54135
54136
|
return r.value = {
|
|
54136
54137
|
...r.value,
|
|
54137
|
-
[O]:
|
|
54138
|
+
[O]: g
|
|
54138
54139
|
}, !1;
|
|
54139
54140
|
if ($._validations != null) for (const V of $._validations) {
|
|
54140
54141
|
const F = V(Q);
|
|
@@ -54189,11 +54190,11 @@ var zH = /* @__PURE__ */ zl({
|
|
|
54189
54190
|
...r.value,
|
|
54190
54191
|
...a.errors || {}
|
|
54191
54192
|
}, $ = {};
|
|
54192
|
-
for (const [Q,
|
|
54193
|
+
for (const [Q, g] of Object.entries(O)) $[Q] = Kl(g) ?? g;
|
|
54193
54194
|
return $;
|
|
54194
54195
|
});
|
|
54195
54196
|
function A(O, $) {
|
|
54196
|
-
const Q = E($, O), { helpText:
|
|
54197
|
+
const Q = E($, O), { helpText: g, ...V } = O._config, F = a.schema._class?.split(/\s+/).includes("free-grid") ?? !1, v = {
|
|
54197
54198
|
label: Q,
|
|
54198
54199
|
modelValue: z($),
|
|
54199
54200
|
"onUpdate:modelValue": (el) => {
|
|
@@ -54202,7 +54203,7 @@ var zH = /* @__PURE__ */ zl({
|
|
|
54202
54203
|
error: K.value[$],
|
|
54203
54204
|
...V,
|
|
54204
54205
|
formData: b.value,
|
|
54205
|
-
...
|
|
54206
|
+
...g != null ? { helptext: g } : {},
|
|
54206
54207
|
name: O._config.name ?? $
|
|
54207
54208
|
};
|
|
54208
54209
|
if (O._type === "textarea" && (v.multiline = !0), O._type === "multiselect" && (v.multiselect = !0), F && O._type === "richtext" && (v.fullHeight = !0), F && (O._type === "upload" || O._type === "file") && (v.height = O._config.hideLabel ? "100%" : "calc(100% - 1.75rem)"), (O._type === "select" || O._type === "multiselect") && typeof v.options == "function") {
|
|
@@ -54233,26 +54234,26 @@ var zH = /* @__PURE__ */ zl({
|
|
|
54233
54234
|
function il() {
|
|
54234
54235
|
let O = !0;
|
|
54235
54236
|
const $ = {};
|
|
54236
|
-
for (const { key: Q, field:
|
|
54237
|
+
for (const { key: Q, field: g } of M.value) {
|
|
54237
54238
|
const V = z(Q);
|
|
54238
|
-
if (
|
|
54239
|
-
$[Q] =
|
|
54239
|
+
if (g._config.required === !0 && w(V, g, Q)) {
|
|
54240
|
+
$[Q] = g._config.requiredMessage ?? i("form.required"), O = !1;
|
|
54240
54241
|
continue;
|
|
54241
54242
|
}
|
|
54242
|
-
if (
|
|
54243
|
+
if (g._type === "email" && V && !li.test(V)) {
|
|
54243
54244
|
$[Q] = i("form.invalidEmail"), O = !1;
|
|
54244
54245
|
continue;
|
|
54245
54246
|
}
|
|
54246
|
-
const F = ba(
|
|
54247
|
+
const F = ba(g._type)?.validate?.(V, {
|
|
54247
54248
|
key: Q,
|
|
54248
|
-
config:
|
|
54249
|
+
config: g._config,
|
|
54249
54250
|
formData: b.value
|
|
54250
54251
|
});
|
|
54251
54252
|
if (F !== void 0 && F !== !0) {
|
|
54252
54253
|
$[Q] = F, O = !1;
|
|
54253
54254
|
continue;
|
|
54254
54255
|
}
|
|
54255
|
-
if (
|
|
54256
|
+
if (g._validations != null) for (const v of g._validations) {
|
|
54256
54257
|
const el = v(V);
|
|
54257
54258
|
if (el !== !0) {
|
|
54258
54259
|
$[Q] = el, O = !1;
|
|
@@ -54276,14 +54277,14 @@ var zH = /* @__PURE__ */ zl({
|
|
|
54276
54277
|
}
|
|
54277
54278
|
} else {
|
|
54278
54279
|
O?.stopPropagation(), h.value?.reportValidity();
|
|
54279
|
-
const Q = M.value.find(({ key:
|
|
54280
|
+
const Q = M.value.find(({ key: g }) => r.value[g])?.key;
|
|
54280
54281
|
if (Q != null && h.value) {
|
|
54281
|
-
const
|
|
54282
|
-
|
|
54282
|
+
const g = h.value.querySelector(`[name="${Q}"]`) || h.value.querySelector(`[id="${Q}"]`) || h.value.querySelector(`[data-field="${Q}"]`) || h.value.querySelector("input, select, textarea");
|
|
54283
|
+
g && (g.scrollIntoView({
|
|
54283
54284
|
behavior: "smooth",
|
|
54284
54285
|
block: "center"
|
|
54285
54286
|
}), setTimeout(() => {
|
|
54286
|
-
|
|
54287
|
+
g instanceof HTMLElement && g.focus();
|
|
54287
54288
|
}, 300));
|
|
54288
54289
|
}
|
|
54289
54290
|
}
|
|
@@ -54301,22 +54302,22 @@ var zH = /* @__PURE__ */ zl({
|
|
|
54301
54302
|
class: ml(["grid-form", l.schema._class]),
|
|
54302
54303
|
onSubmit: pl
|
|
54303
54304
|
}, [G.value === "success" ? Vl(O.$slots, "success", { formData: b.value }, void 0, void 0, 0) : (L(), y(Ml, { key: 1 }, [
|
|
54304
|
-
(L(!0), y(Ml, null, vl(M.value, ({ key:
|
|
54305
|
-
key: X(
|
|
54305
|
+
(L(!0), y(Ml, null, vl(M.value, ({ key: g, field: V }) => (L(), y("div", {
|
|
54306
|
+
key: X(g, V),
|
|
54306
54307
|
class: ml([V._class, V._config.class]),
|
|
54307
54308
|
style: Il(T(V))
|
|
54308
|
-
}, [Vl(O.$slots, `field:${
|
|
54309
|
-
value: z(
|
|
54309
|
+
}, [Vl(O.$slots, `field:${g}`, {
|
|
54310
|
+
value: z(g),
|
|
54310
54311
|
field: V,
|
|
54311
54312
|
formData: b.value,
|
|
54312
|
-
error: r.value[
|
|
54313
|
+
error: r.value[g],
|
|
54313
54314
|
onChange: (F) => {
|
|
54314
|
-
x(
|
|
54315
|
+
x(g, F, V);
|
|
54315
54316
|
}
|
|
54316
54317
|
}, () => [V._type === "array" && V._config.schema?._isSchema ? (L(), ol(ji, Ze({
|
|
54317
54318
|
key: 0,
|
|
54318
54319
|
ref_for: !0
|
|
54319
|
-
}, A(V,
|
|
54320
|
+
}, A(V, g), { "create-item": () => Z(V) }), {
|
|
54320
54321
|
default: gl(({ item: F }) => [al(Q, {
|
|
54321
54322
|
"model-value": F.value,
|
|
54322
54323
|
schema: V._config.schema,
|
|
@@ -54334,7 +54335,7 @@ var zH = /* @__PURE__ */ zl({
|
|
|
54334
54335
|
}, 1040, ["create-item"])) : V._type === "array" && typeof V._config.schema == "string" ? (L(), ol(ji, Ze({
|
|
54335
54336
|
key: 1,
|
|
54336
54337
|
ref_for: !0
|
|
54337
|
-
}, A(V,
|
|
54338
|
+
}, A(V, g), { "create-item": () => "" }), {
|
|
54338
54339
|
default: gl(({ item: F }) => [(L(), ol(fe(D(V._config.schema)), {
|
|
54339
54340
|
"model-value": F.value,
|
|
54340
54341
|
"onUpdate:modelValue": (v) => {
|
|
@@ -54345,7 +54346,7 @@ var zH = /* @__PURE__ */ zl({
|
|
|
54345
54346
|
}, 1040)) : V._type === "array" && V._config.schema ? (L(), ol(ji, Ze({
|
|
54346
54347
|
key: 2,
|
|
54347
54348
|
ref_for: !0
|
|
54348
|
-
}, A(V,
|
|
54349
|
+
}, A(V, g), { "create-item": () => Z(V) }), {
|
|
54349
54350
|
default: gl(({ item: F }) => [(L(), ol(fe(_(V._config.schema)), {
|
|
54350
54351
|
modelValue: F.value,
|
|
54351
54352
|
"onUpdate:modelValue": (v) => F.value = v
|
|
@@ -54354,7 +54355,7 @@ var zH = /* @__PURE__ */ zl({
|
|
|
54354
54355
|
}, 1040, ["create-item"])) : V._type === "array" && V._config.itemType ? (L(), ol(ji, Ze({
|
|
54355
54356
|
key: 3,
|
|
54356
54357
|
ref_for: !0
|
|
54357
|
-
}, A(V,
|
|
54358
|
+
}, A(V, g), { "create-item": () => "" }), {
|
|
54358
54359
|
default: gl(({ item: F }) => [(L(), ol(fe(D(V._config.itemType)), {
|
|
54359
54360
|
"model-value": F.value,
|
|
54360
54361
|
"onUpdate:modelValue": (v) => {
|
|
@@ -54365,13 +54366,13 @@ var zH = /* @__PURE__ */ zl({
|
|
|
54365
54366
|
}, 1040)) : B(V) ? (L(), ol(fe(_(V._component.component)), Ze({
|
|
54366
54367
|
key: 4,
|
|
54367
54368
|
ref_for: !0
|
|
54368
|
-
}, sl(V,
|
|
54369
|
+
}, sl(V, g)), null, 16)) : (L(), ol(fe(D(V)), Ze({
|
|
54369
54370
|
key: 5,
|
|
54370
54371
|
ref_for: !0
|
|
54371
|
-
}, A(V,
|
|
54372
|
+
}, A(V, g)), null, 16))])], 6))), 128)),
|
|
54372
54373
|
Vl(O.$slots, "errors", {
|
|
54373
54374
|
errors: K.value,
|
|
54374
|
-
errorCount: Object.keys(K.value).filter((
|
|
54375
|
+
errorCount: Object.keys(K.value).filter((g) => K.value[g]).length,
|
|
54375
54376
|
visibleFields: M.value
|
|
54376
54377
|
}),
|
|
54377
54378
|
G.value === "error" ? Vl(O.$slots, "error", { formData: b.value }, void 0, void 0, 0) : C("", !0),
|
|
@@ -55778,42 +55779,42 @@ var eP = { class: "multi-step-form" }, tP = { class: "step-progress" }, aP = ["o
|
|
|
55778
55779
|
let sl = !0, _ = null;
|
|
55779
55780
|
for (let B = 0; B < A.length; B++) {
|
|
55780
55781
|
const il = A[B], pl = Z(K, il.field), { op: O, value: $, connector: Q } = il;
|
|
55781
|
-
let
|
|
55782
|
+
let g = !1;
|
|
55782
55783
|
switch (O) {
|
|
55783
55784
|
case "eq":
|
|
55784
|
-
|
|
55785
|
+
g = pl === $;
|
|
55785
55786
|
break;
|
|
55786
55787
|
case "ne":
|
|
55787
|
-
|
|
55788
|
+
g = pl !== $;
|
|
55788
55789
|
break;
|
|
55789
55790
|
case "gt":
|
|
55790
|
-
|
|
55791
|
+
g = $ != null && pl > $;
|
|
55791
55792
|
break;
|
|
55792
55793
|
case "ge":
|
|
55793
|
-
|
|
55794
|
+
g = $ != null && pl >= $;
|
|
55794
55795
|
break;
|
|
55795
55796
|
case "lt":
|
|
55796
|
-
|
|
55797
|
+
g = $ != null && pl < $;
|
|
55797
55798
|
break;
|
|
55798
55799
|
case "le":
|
|
55799
|
-
|
|
55800
|
+
g = $ != null && pl <= $;
|
|
55800
55801
|
break;
|
|
55801
55802
|
case "co":
|
|
55802
|
-
|
|
55803
|
+
g = $ != null && String(pl).includes(String($));
|
|
55803
55804
|
break;
|
|
55804
55805
|
case "sw":
|
|
55805
|
-
|
|
55806
|
+
g = $ != null && String(pl).startsWith(String($));
|
|
55806
55807
|
break;
|
|
55807
55808
|
case "ew":
|
|
55808
|
-
|
|
55809
|
+
g = $ != null && String(pl).endsWith(String($));
|
|
55809
55810
|
break;
|
|
55810
55811
|
case "pr":
|
|
55811
|
-
|
|
55812
|
+
g = pl != null;
|
|
55812
55813
|
break;
|
|
55813
55814
|
default:
|
|
55814
|
-
|
|
55815
|
+
g = !1;
|
|
55815
55816
|
}
|
|
55816
|
-
B === 0 ? (sl =
|
|
55817
|
+
B === 0 ? (sl = g, _ = g) : (Q === "or" ? sl = (_ ?? !1) || g : Q === "and" && (sl = (_ ?? !1) && g), _ = sl);
|
|
55817
55818
|
}
|
|
55818
55819
|
return sl;
|
|
55819
55820
|
} catch {
|
|
@@ -55857,7 +55858,7 @@ var eP = { class: "multi-step-form" }, tP = { class: "step-progress" }, aP = ["o
|
|
|
55857
55858
|
}
|
|
55858
55859
|
return Y.value = D, Object.keys(D).length > 0 ? (n("validationError", D), !1) : !0;
|
|
55859
55860
|
}
|
|
55860
|
-
function
|
|
55861
|
+
function w(D, K) {
|
|
55861
55862
|
return K._label != null ? K._label : D.split(/[._-]/).map((A) => A.charAt(0).toUpperCase() + A.slice(1)).join(" ");
|
|
55862
55863
|
}
|
|
55863
55864
|
function f(D) {
|
|
@@ -55904,7 +55905,7 @@ var eP = { class: "multi-step-form" }, tP = { class: "step-progress" }, aP = ["o
|
|
|
55904
55905
|
completed: sl < p.value
|
|
55905
55906
|
}]),
|
|
55906
55907
|
onClick: (_) => f(A.key)
|
|
55907
|
-
}, [S("div", nP, nl(sl + 1), 1), S("div", iP, nl(
|
|
55908
|
+
}, [S("div", nP, nl(sl + 1), 1), S("div", iP, nl(w(A.key, A.schema)), 1)], 10, aP))), 128))]),
|
|
55908
55909
|
W.value != null ? (L(), y("div", dP, [
|
|
55909
55910
|
W.value._label ? (L(), y("h2", cP, nl(W.value._label), 1)) : C("", !0),
|
|
55910
55911
|
Object.keys(Y.value).length > 0 ? (L(), y("div", sP, [S("ul", null, [(L(!0), y(Ml, null, vl(Y.value, (A, sl) => (L(), y("li", { key: sl }, nl(A), 1))), 128))])])) : C("", !0),
|
|
@@ -56119,8 +56120,8 @@ var pP = {
|
|
|
56119
56120
|
V.push(el), v = ws(a.structure, v, m.value) ?? void 0;
|
|
56120
56121
|
}
|
|
56121
56122
|
return V;
|
|
56122
|
-
}),
|
|
56123
|
-
wl([x,
|
|
56123
|
+
}), w = I(() => x.value.findIndex((V) => V.key === u.value));
|
|
56124
|
+
wl([x, w], ([V, F]) => {
|
|
56124
56125
|
F <= 0 || (b.value.length === 0 && (b.value = V.slice(0, F).map((v) => v.key)), r.value = /* @__PURE__ */ new Set([...r.value, ...V.slice(0, F).map((v) => v.key)]));
|
|
56125
56126
|
}, { immediate: !0 });
|
|
56126
56127
|
const f = k(null), z = k(!1);
|
|
@@ -56185,7 +56186,7 @@ var pP = {
|
|
|
56185
56186
|
}
|
|
56186
56187
|
async function Q(V) {
|
|
56187
56188
|
if (V === u.value || !$(V)) return;
|
|
56188
|
-
const F = x.value.findIndex((el) => el.key === V), v =
|
|
56189
|
+
const F = x.value.findIndex((el) => el.key === V), v = w.value;
|
|
56189
56190
|
if (!(F < 0 || v < 0)) {
|
|
56190
56191
|
if (V === Y.value) {
|
|
56191
56192
|
await K();
|
|
@@ -56194,7 +56195,7 @@ var pP = {
|
|
|
56194
56195
|
s.value = F < v ? "prev" : "next", b.value = x.value.slice(0, F).map((el) => el.key), u.value = V;
|
|
56195
56196
|
}
|
|
56196
56197
|
}
|
|
56197
|
-
const
|
|
56198
|
+
const g = I(() => b.value.length + 1);
|
|
56198
56199
|
return e({
|
|
56199
56200
|
formData: m,
|
|
56200
56201
|
currentKey: u,
|
|
@@ -56227,7 +56228,7 @@ var pP = {
|
|
|
56227
56228
|
"onClick"
|
|
56228
56229
|
])]))), 128))]), S("div", NP, [
|
|
56229
56230
|
S("span", null, nl(p.value?.title), 1),
|
|
56230
|
-
S("span", null, nl(
|
|
56231
|
+
S("span", null, nl(w.value + 1) + " / " + nl(x.value.length), 1),
|
|
56231
56232
|
al(QU, {
|
|
56232
56233
|
class: "w-100p mt-05",
|
|
56233
56234
|
value: T.value,
|
|
@@ -56272,7 +56273,7 @@ var pP = {
|
|
|
56272
56273
|
submitting: z.value,
|
|
56273
56274
|
goBack: O,
|
|
56274
56275
|
goPrimary: K,
|
|
56275
|
-
stepPosition:
|
|
56276
|
+
stepPosition: g.value,
|
|
56276
56277
|
progress: T.value,
|
|
56277
56278
|
currentKey: u.value,
|
|
56278
56279
|
primaryLabel: p.value?.primaryLabel,
|
|
@@ -56286,7 +56287,7 @@ var pP = {
|
|
|
56286
56287
|
disabled: !M.value,
|
|
56287
56288
|
onClick: O
|
|
56288
56289
|
}, null, 8, ["value", "disabled"]),
|
|
56289
|
-
l.hideCounter ? C("", !0) : (L(), y("span", VP, nl(
|
|
56290
|
+
l.hideCounter ? C("", !0) : (L(), y("span", VP, nl(g.value), 1)),
|
|
56290
56291
|
X.value ? (L(), ol(Nl, {
|
|
56291
56292
|
key: 1,
|
|
56292
56293
|
class: "ffp-nav-btn",
|
|
@@ -61480,8 +61481,8 @@ function lQ(l) {
|
|
|
61480
61481
|
if (Y == null) continue;
|
|
61481
61482
|
if (Array.isArray(Y)) {
|
|
61482
61483
|
for (const T of Y) if (zc(T)) {
|
|
61483
|
-
const x = xc(Hi(VG(String(T))), s),
|
|
61484
|
-
G += x *
|
|
61484
|
+
const x = xc(Hi(VG(String(T))), s), w = m(String(W));
|
|
61485
|
+
G += x * w;
|
|
61485
61486
|
}
|
|
61486
61487
|
continue;
|
|
61487
61488
|
}
|