@wishbone-media/spark 0.47.0 → 0.48.0
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.js +557 -556
- package/package.json +1 -1
- package/src/assets/css/spark-table.css +8 -0
- package/src/components/SparkTable.vue +6 -5
package/dist/index.js
CHANGED
|
@@ -154,15 +154,15 @@ const Fi = { class: "spark-address-input" }, Di = ["disabled"], ji = ["selected"
|
|
|
154
154
|
async function v(h) {
|
|
155
155
|
const S = h.placePrediction;
|
|
156
156
|
if (!S) return;
|
|
157
|
-
const
|
|
158
|
-
await
|
|
157
|
+
const y = S.toPlace();
|
|
158
|
+
await y.fetchFields({
|
|
159
159
|
fields: ["addressComponents", "formattedAddress", "location", "types"]
|
|
160
160
|
});
|
|
161
|
-
const
|
|
161
|
+
const L = y.addressComponents || [];
|
|
162
162
|
let $ = "";
|
|
163
|
-
|
|
163
|
+
L.length > 0 && L[0].types.includes("subpremise") && ($ = L[0].longText || "", $.length > 0 && ($ += "/"));
|
|
164
164
|
let Q = "", ce = "", J = "", Ce = "", re = "";
|
|
165
|
-
for (const N of
|
|
165
|
+
for (const N of L)
|
|
166
166
|
N.types.includes("street_number") && !Q && (Q = N.longText || ""), N.types.includes("route") && !ce && (ce = N.longText || ""), N.types.includes("locality") && !J && (J = N.longText || ""), N.types.includes("administrative_area_level_1") && !Ce && (Ce = N.shortText || ""), N.types.includes("postal_code") && !re && (re = N.longText || "");
|
|
167
167
|
const D = {
|
|
168
168
|
id: u.id,
|
|
@@ -170,11 +170,11 @@ const Fi = { class: "spark-address-input" }, Di = ["disabled"], ji = ["selected"
|
|
|
170
170
|
city: J,
|
|
171
171
|
state: Ce,
|
|
172
172
|
postcode: re,
|
|
173
|
-
latitude:
|
|
174
|
-
longitude:
|
|
175
|
-
formatted:
|
|
176
|
-
}, V =
|
|
177
|
-
V.includes("route") && !V.includes("street_address") && (o("error",
|
|
173
|
+
latitude: y.location?.lat() ?? null,
|
|
174
|
+
longitude: y.location?.lng() ?? null,
|
|
175
|
+
formatted: y.formattedAddress || ""
|
|
176
|
+
}, V = y.types || [];
|
|
177
|
+
V.includes("route") && !V.includes("street_address") && (o("error", y), a.value = !0), Object.assign(u, D), o("update:modelValue", { ...D });
|
|
178
178
|
}
|
|
179
179
|
function m() {
|
|
180
180
|
u.latitude = null, u.longitude = null, u.formatted = x(u), o("update:modelValue", { ...u }), l && (l.value = u.formatted);
|
|
@@ -195,13 +195,13 @@ const Fi = { class: "spark-address-input" }, Di = ["disabled"], ji = ["selected"
|
|
|
195
195
|
};
|
|
196
196
|
Object.assign(u, h), o("update:modelValue", { ...h }), l && (l.value = "");
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function b(h) {
|
|
199
199
|
if (h === "__create_new__") {
|
|
200
200
|
r.value = "autocomplete", o("create-new");
|
|
201
201
|
return;
|
|
202
202
|
}
|
|
203
|
-
const S = parseInt(h, 10),
|
|
204
|
-
|
|
203
|
+
const S = parseInt(h, 10), y = n.existingAddresses.find((L) => L.id === S);
|
|
204
|
+
y && (g(y), o("update:modelValue", { ...y }));
|
|
205
205
|
}
|
|
206
206
|
return Gt(() => {
|
|
207
207
|
r.value === "autocomplete" && f();
|
|
@@ -214,18 +214,18 @@ const Fi = { class: "spark-address-input" }, Di = ["disabled"], ji = ["selected"
|
|
|
214
214
|
key: 0,
|
|
215
215
|
class: "w-full rounded border border-gray-300 px-2 py-1.5 text-sm focus:border-blue-500 focus:ring-1 focus:ring-blue-500 focus:outline-none",
|
|
216
216
|
disabled: e.disabled,
|
|
217
|
-
onChange: S[0] || (S[0] = (
|
|
217
|
+
onChange: S[0] || (S[0] = (y) => b(y.target.value))
|
|
218
218
|
}, [
|
|
219
219
|
_("option", {
|
|
220
220
|
value: "",
|
|
221
221
|
disabled: "",
|
|
222
222
|
selected: !e.modelValue?.id
|
|
223
223
|
}, "Select an address...", 8, ji),
|
|
224
|
-
(C(!0), P(ze, null, st(e.existingAddresses, (
|
|
225
|
-
key:
|
|
226
|
-
value:
|
|
227
|
-
selected:
|
|
228
|
-
}, xe(
|
|
224
|
+
(C(!0), P(ze, null, st(e.existingAddresses, (y) => (C(), P("option", {
|
|
225
|
+
key: y.id,
|
|
226
|
+
value: y.id,
|
|
227
|
+
selected: y.id === e.modelValue?.id
|
|
228
|
+
}, xe(y.formatted || x(y)), 9, Hi))), 128)),
|
|
229
229
|
S[7] || (S[7] = _("option", { value: "__create_new__" }, ">>> Create a new address", -1))
|
|
230
230
|
], 40, Di)) : (C(), P(ze, { key: 1 }, [
|
|
231
231
|
_("div", {
|
|
@@ -238,7 +238,7 @@ const Fi = { class: "spark-address-input" }, Di = ["disabled"], ji = ["selected"
|
|
|
238
238
|
type: "button",
|
|
239
239
|
class: "inline-flex items-center gap-1 rounded px-2 py-1 text-xs text-gray-500 hover:bg-gray-100 hover:text-gray-700",
|
|
240
240
|
disabled: e.disabled,
|
|
241
|
-
onClick: S[1] || (S[1] = (
|
|
241
|
+
onClick: S[1] || (S[1] = (y) => a.value = !a.value)
|
|
242
242
|
}, [
|
|
243
243
|
(C(), P("svg", Ni, [
|
|
244
244
|
a.value ? (C(), P("path", Bi)) : (C(), P("path", qi))
|
|
@@ -270,12 +270,12 @@ const Fi = { class: "spark-address-input" }, Di = ["disabled"], ji = ["selected"
|
|
|
270
270
|
key: 0,
|
|
271
271
|
type: "button",
|
|
272
272
|
class: "inline-flex items-center gap-1 rounded px-2 py-1 text-xs text-blue-600 hover:bg-blue-50",
|
|
273
|
-
onClick: S[2] || (S[2] = (
|
|
273
|
+
onClick: S[2] || (S[2] = (y) => r.value = "select")
|
|
274
274
|
}, " Back to existing ")) : ve("", !0)
|
|
275
275
|
]),
|
|
276
276
|
Qt(_("div", Ui, [
|
|
277
277
|
Qt(_("input", {
|
|
278
|
-
"onUpdate:modelValue": S[3] || (S[3] = (
|
|
278
|
+
"onUpdate:modelValue": S[3] || (S[3] = (y) => u.street = y),
|
|
279
279
|
type: "text",
|
|
280
280
|
placeholder: "Street",
|
|
281
281
|
class: "rounded border border-gray-300 px-2 py-1.5 text-sm focus:border-blue-500 focus:ring-1 focus:ring-blue-500 focus:outline-none",
|
|
@@ -290,7 +290,7 @@ const Fi = { class: "spark-address-input" }, Di = ["disabled"], ji = ["selected"
|
|
|
290
290
|
]
|
|
291
291
|
]),
|
|
292
292
|
Qt(_("input", {
|
|
293
|
-
"onUpdate:modelValue": S[4] || (S[4] = (
|
|
293
|
+
"onUpdate:modelValue": S[4] || (S[4] = (y) => u.city = y),
|
|
294
294
|
type: "text",
|
|
295
295
|
placeholder: "City",
|
|
296
296
|
class: "rounded border border-gray-300 px-2 py-1.5 text-sm focus:border-blue-500 focus:ring-1 focus:ring-blue-500 focus:outline-none",
|
|
@@ -305,21 +305,21 @@ const Fi = { class: "spark-address-input" }, Di = ["disabled"], ji = ["selected"
|
|
|
305
305
|
]
|
|
306
306
|
]),
|
|
307
307
|
Qt(_("select", {
|
|
308
|
-
"onUpdate:modelValue": S[5] || (S[5] = (
|
|
308
|
+
"onUpdate:modelValue": S[5] || (S[5] = (y) => u.state = y),
|
|
309
309
|
class: "rounded border border-gray-300 px-2 py-1.5 text-sm focus:border-blue-500 focus:ring-1 focus:ring-blue-500 focus:outline-none",
|
|
310
310
|
disabled: e.disabled,
|
|
311
311
|
onChange: m
|
|
312
312
|
}, [
|
|
313
313
|
S[9] || (S[9] = _("option", { value: "" }, "State", -1)),
|
|
314
|
-
(C(!0), P(ze, null, st(e.states, (
|
|
315
|
-
key:
|
|
316
|
-
value:
|
|
317
|
-
}, xe(
|
|
314
|
+
(C(!0), P(ze, null, st(e.states, (y) => (C(), P("option", {
|
|
315
|
+
key: y,
|
|
316
|
+
value: y
|
|
317
|
+
}, xe(y), 9, Xi))), 128))
|
|
318
318
|
], 40, Yi), [
|
|
319
319
|
[ma, u.state]
|
|
320
320
|
]),
|
|
321
321
|
Qt(_("input", {
|
|
322
|
-
"onUpdate:modelValue": S[6] || (S[6] = (
|
|
322
|
+
"onUpdate:modelValue": S[6] || (S[6] = (y) => u.postcode = y),
|
|
323
323
|
type: "text",
|
|
324
324
|
placeholder: "Postcode",
|
|
325
325
|
class: "rounded border border-gray-300 px-2 py-1.5 text-sm focus:border-blue-500 focus:ring-1 focus:ring-blue-500 focus:outline-none",
|
|
@@ -520,7 +520,7 @@ async function ll(e, t) {
|
|
|
520
520
|
boundary: u,
|
|
521
521
|
rootBoundary: d,
|
|
522
522
|
strategy: i
|
|
523
|
-
})),
|
|
523
|
+
})), b = g === "floating" ? {
|
|
524
524
|
x: o,
|
|
525
525
|
y: r,
|
|
526
526
|
width: s.floating.width,
|
|
@@ -531,17 +531,17 @@ async function ll(e, t) {
|
|
|
531
531
|
} : {
|
|
532
532
|
x: 1,
|
|
533
533
|
y: 1
|
|
534
|
-
},
|
|
534
|
+
}, y = eo(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
535
535
|
elements: l,
|
|
536
|
-
rect:
|
|
536
|
+
rect: b,
|
|
537
537
|
offsetParent: h,
|
|
538
538
|
strategy: i
|
|
539
|
-
}) :
|
|
539
|
+
}) : b);
|
|
540
540
|
return {
|
|
541
|
-
top: (p.top -
|
|
542
|
-
bottom: (
|
|
543
|
-
left: (p.left -
|
|
544
|
-
right: (
|
|
541
|
+
top: (p.top - y.top + v.top) / S.y,
|
|
542
|
+
bottom: (y.bottom - p.bottom + v.bottom) / S.y,
|
|
543
|
+
left: (p.left - y.left + v.left) / S.x,
|
|
544
|
+
right: (y.right - p.right + v.right) / S.x
|
|
545
545
|
};
|
|
546
546
|
}
|
|
547
547
|
const cl = 50, ul = async (e, t, n) => {
|
|
@@ -569,13 +569,13 @@ const cl = 50, ul = async (e, t, n) => {
|
|
|
569
569
|
continue;
|
|
570
570
|
const {
|
|
571
571
|
name: p,
|
|
572
|
-
fn:
|
|
572
|
+
fn: b
|
|
573
573
|
} = x, {
|
|
574
574
|
x: h,
|
|
575
575
|
y: S,
|
|
576
|
-
data:
|
|
577
|
-
reset:
|
|
578
|
-
} = await
|
|
576
|
+
data: y,
|
|
577
|
+
reset: L
|
|
578
|
+
} = await b({
|
|
579
579
|
x: d,
|
|
580
580
|
y: g,
|
|
581
581
|
initialPlacement: o,
|
|
@@ -591,12 +591,12 @@ const cl = 50, ul = async (e, t, n) => {
|
|
|
591
591
|
});
|
|
592
592
|
d = h ?? d, g = S ?? g, v[p] = {
|
|
593
593
|
...v[p],
|
|
594
|
-
...
|
|
595
|
-
},
|
|
594
|
+
...y
|
|
595
|
+
}, L && f < cl && (f++, typeof L == "object" && (L.placement && (c = L.placement), L.rects && (u = L.rects === !0 ? await s.getElementRects({
|
|
596
596
|
reference: e,
|
|
597
597
|
floating: t,
|
|
598
598
|
strategy: r
|
|
599
|
-
}) :
|
|
599
|
+
}) : L.rects), {
|
|
600
600
|
x: d,
|
|
601
601
|
y: g
|
|
602
602
|
} = us(u, c, i)), m = -1);
|
|
@@ -629,10 +629,10 @@ const cl = 50, ul = async (e, t, n) => {
|
|
|
629
629
|
const g = Rr(d), c = {
|
|
630
630
|
x: n,
|
|
631
631
|
y: o
|
|
632
|
-
}, f = Zo(r), v = Uo(f), m = await s.getDimensions(u), x = f === "y", p = x ? "top" : "left",
|
|
633
|
-
let $ =
|
|
634
|
-
(!$ || !await (s.isElement == null ? void 0 : s.isElement(
|
|
635
|
-
const Q = S / 2 -
|
|
632
|
+
}, f = Zo(r), v = Uo(f), m = await s.getDimensions(u), x = f === "y", p = x ? "top" : "left", b = x ? "bottom" : "right", h = x ? "clientHeight" : "clientWidth", S = a.reference[v] + a.reference[f] - c[f] - a.floating[v], y = c[f] - a.reference[f], L = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
|
|
633
|
+
let $ = L ? L[h] : 0;
|
|
634
|
+
(!$ || !await (s.isElement == null ? void 0 : s.isElement(L))) && ($ = l.floating[h] || a.floating[v]);
|
|
635
|
+
const Q = S / 2 - y / 2, ce = $ / 2 - m[v] / 2 - 1, J = Sn(g[p], ce), Ce = Sn(g[b], ce), re = J, D = $ - m[v] - Ce, V = $ / 2 - m[v] / 2 + Q, N = Ro(re, V, D), I = !i.arrow && jn(r) != null && V !== N && a.reference[v] / 2 - (V < re ? J : Ce) - m[v] / 2 < 0, te = I ? V < re ? V - re : V - D : 0;
|
|
636
636
|
return {
|
|
637
637
|
[f]: c[f] + te,
|
|
638
638
|
data: {
|
|
@@ -669,9 +669,9 @@ const cl = 50, ul = async (e, t, n) => {
|
|
|
669
669
|
} = Dn(e, t);
|
|
670
670
|
if ((n = a.arrow) != null && n.alignmentOffset)
|
|
671
671
|
return {};
|
|
672
|
-
const p = on(r),
|
|
673
|
-
!c &&
|
|
674
|
-
const $ = [l, ...
|
|
672
|
+
const p = on(r), b = qt(l), h = on(l) === l, S = await (i.isRTL == null ? void 0 : i.isRTL(u.floating)), y = c || (h || !m ? [Qn(l)] : nl(l)), L = v !== "none";
|
|
673
|
+
!c && L && y.push(...al(l, m, v, S));
|
|
674
|
+
const $ = [l, ...y], Q = await i.detectOverflow(t, x), ce = [];
|
|
675
675
|
let J = ((o = a.flip) == null ? void 0 : o.overflows) || [];
|
|
676
676
|
if (d && ce.push(Q[p]), g) {
|
|
677
677
|
const V = tl(r, s, S);
|
|
@@ -683,9 +683,9 @@ const cl = 50, ul = async (e, t, n) => {
|
|
|
683
683
|
}], !ce.every((V) => V <= 0)) {
|
|
684
684
|
var Ce, re;
|
|
685
685
|
const V = (((Ce = a.flip) == null ? void 0 : Ce.index) || 0) + 1, N = $[V];
|
|
686
|
-
if (N && (!(g === "alignment" ?
|
|
686
|
+
if (N && (!(g === "alignment" ? b !== qt(N) : !1) || // We leave the current main axis only if every placement on that axis
|
|
687
687
|
// overflows the main axis.
|
|
688
|
-
J.every((he) => qt(he.placement) ===
|
|
688
|
+
J.every((he) => qt(he.placement) === b ? he.overflows[0] > 0 : !0)))
|
|
689
689
|
return {
|
|
690
690
|
data: {
|
|
691
691
|
index: V,
|
|
@@ -701,9 +701,9 @@ const cl = 50, ul = async (e, t, n) => {
|
|
|
701
701
|
case "bestFit": {
|
|
702
702
|
var D;
|
|
703
703
|
const te = (D = J.filter((he) => {
|
|
704
|
-
if (
|
|
704
|
+
if (L) {
|
|
705
705
|
const pe = qt(he.placement);
|
|
706
|
-
return pe ===
|
|
706
|
+
return pe === b || // Create a bias to the `y` side axis due to horizontal
|
|
707
707
|
// reading directions favoring greater width.
|
|
708
708
|
pe === "y";
|
|
709
709
|
}
|
|
@@ -792,11 +792,11 @@ const gl = function(e) {
|
|
|
792
792
|
limiter: i = {
|
|
793
793
|
fn: (p) => {
|
|
794
794
|
let {
|
|
795
|
-
x:
|
|
795
|
+
x: b,
|
|
796
796
|
y: h
|
|
797
797
|
} = p;
|
|
798
798
|
return {
|
|
799
|
-
x:
|
|
799
|
+
x: b,
|
|
800
800
|
y: h
|
|
801
801
|
};
|
|
802
802
|
}
|
|
@@ -808,11 +808,11 @@ const gl = function(e) {
|
|
|
808
808
|
}, g = await a.detectOverflow(t, u), c = qt(on(r)), f = Ar(c);
|
|
809
809
|
let v = d[f], m = d[c];
|
|
810
810
|
if (s) {
|
|
811
|
-
const p = f === "y" ? "top" : "left",
|
|
811
|
+
const p = f === "y" ? "top" : "left", b = f === "y" ? "bottom" : "right", h = v + g[p], S = v - g[b];
|
|
812
812
|
v = Ro(h, v, S);
|
|
813
813
|
}
|
|
814
814
|
if (l) {
|
|
815
|
-
const p = c === "y" ? "top" : "left",
|
|
815
|
+
const p = c === "y" ? "top" : "left", b = c === "y" ? "bottom" : "right", h = m + g[p], S = m - g[b];
|
|
816
816
|
m = Ro(h, m, S);
|
|
817
817
|
}
|
|
818
818
|
const x = i.fn({
|
|
@@ -998,7 +998,7 @@ function sn(e, t, n, o) {
|
|
|
998
998
|
const c = pt(a), f = o && St(o) ? pt(o) : o;
|
|
999
999
|
let v = c, m = Fo(v);
|
|
1000
1000
|
for (; m && o && f !== v; ) {
|
|
1001
|
-
const x = yn(m), p = m.getBoundingClientRect(),
|
|
1001
|
+
const x = yn(m), p = m.getBoundingClientRect(), b = kt(m), h = p.left + (m.clientLeft + parseFloat(b.paddingLeft)) * x.x, S = p.top + (m.clientTop + parseFloat(b.paddingTop)) * x.y;
|
|
1002
1002
|
i *= x.x, u *= x.y, d *= x.x, g *= x.y, i += h, u += S, v = pt(m), m = Fo(v);
|
|
1003
1003
|
}
|
|
1004
1004
|
}
|
|
@@ -1262,8 +1262,8 @@ function Il(e, t) {
|
|
|
1262
1262
|
threshold: tn(0, Sn(1, i)) || 1
|
|
1263
1263
|
};
|
|
1264
1264
|
let S = !0;
|
|
1265
|
-
function
|
|
1266
|
-
const $ =
|
|
1265
|
+
function y(L) {
|
|
1266
|
+
const $ = L[0].intersectionRatio;
|
|
1267
1267
|
if ($ !== i) {
|
|
1268
1268
|
if (!S)
|
|
1269
1269
|
return s();
|
|
@@ -1274,13 +1274,13 @@ function Il(e, t) {
|
|
|
1274
1274
|
$ === 1 && !zr(u, e.getBoundingClientRect()) && s(), S = !1;
|
|
1275
1275
|
}
|
|
1276
1276
|
try {
|
|
1277
|
-
n = new IntersectionObserver(
|
|
1277
|
+
n = new IntersectionObserver(y, {
|
|
1278
1278
|
...h,
|
|
1279
1279
|
// Handle <iframe>s
|
|
1280
1280
|
root: r.ownerDocument
|
|
1281
1281
|
});
|
|
1282
1282
|
} catch {
|
|
1283
|
-
n = new IntersectionObserver(
|
|
1283
|
+
n = new IntersectionObserver(y, h);
|
|
1284
1284
|
}
|
|
1285
1285
|
n.observe(e);
|
|
1286
1286
|
}
|
|
@@ -1303,8 +1303,8 @@ function Fl(e, t, n, o) {
|
|
|
1303
1303
|
const g = u && l ? Il(u, n) : null;
|
|
1304
1304
|
let c = -1, f = null;
|
|
1305
1305
|
s && (f = new ResizeObserver((p) => {
|
|
1306
|
-
let [
|
|
1307
|
-
|
|
1306
|
+
let [b] = p;
|
|
1307
|
+
b && b.target === u && f && t && (f.unobserve(t), cancelAnimationFrame(c), c = requestAnimationFrame(() => {
|
|
1308
1308
|
var h;
|
|
1309
1309
|
(h = f) == null || h.observe(t);
|
|
1310
1310
|
})), n();
|
|
@@ -1317,8 +1317,8 @@ function Fl(e, t, n, o) {
|
|
|
1317
1317
|
}
|
|
1318
1318
|
return n(), () => {
|
|
1319
1319
|
var p;
|
|
1320
|
-
d.forEach((
|
|
1321
|
-
r &&
|
|
1320
|
+
d.forEach((b) => {
|
|
1321
|
+
r && b.removeEventListener("scroll", n), a && b.removeEventListener("resize", n);
|
|
1322
1322
|
}), g?.(), (p = f) == null || p.disconnect(), f = null, i && cancelAnimationFrame(v);
|
|
1323
1323
|
};
|
|
1324
1324
|
}
|
|
@@ -1403,7 +1403,7 @@ function Hl(e, t, n) {
|
|
|
1403
1403
|
top: ce + "px"
|
|
1404
1404
|
};
|
|
1405
1405
|
});
|
|
1406
|
-
let
|
|
1406
|
+
let b;
|
|
1407
1407
|
function h() {
|
|
1408
1408
|
if (u.value == null || d.value == null)
|
|
1409
1409
|
return;
|
|
@@ -1417,26 +1417,26 @@ function Hl(e, t, n) {
|
|
|
1417
1417
|
});
|
|
1418
1418
|
}
|
|
1419
1419
|
function S() {
|
|
1420
|
-
typeof
|
|
1420
|
+
typeof b == "function" && (b(), b = void 0);
|
|
1421
1421
|
}
|
|
1422
|
-
function
|
|
1422
|
+
function y() {
|
|
1423
1423
|
if (S(), o === void 0) {
|
|
1424
1424
|
h();
|
|
1425
1425
|
return;
|
|
1426
1426
|
}
|
|
1427
1427
|
if (u.value != null && d.value != null) {
|
|
1428
|
-
|
|
1428
|
+
b = o(u.value, d.value, h);
|
|
1429
1429
|
return;
|
|
1430
1430
|
}
|
|
1431
1431
|
}
|
|
1432
|
-
function
|
|
1432
|
+
function L() {
|
|
1433
1433
|
r.value || (x.value = !1);
|
|
1434
1434
|
}
|
|
1435
1435
|
return et([a, s, l, r], h, {
|
|
1436
1436
|
flush: "sync"
|
|
1437
|
-
}), et([u, d],
|
|
1437
|
+
}), et([u, d], y, {
|
|
1438
1438
|
flush: "sync"
|
|
1439
|
-
}), et(r,
|
|
1439
|
+
}), et(r, L, {
|
|
1440
1440
|
flush: "sync"
|
|
1441
1441
|
}), ha() && va(S), {
|
|
1442
1442
|
x: un(g),
|
|
@@ -1980,11 +1980,11 @@ function mc() {
|
|
|
1980
1980
|
component: m = null,
|
|
1981
1981
|
props: x = {},
|
|
1982
1982
|
closeable: p = !0,
|
|
1983
|
-
duration:
|
|
1983
|
+
duration: b = null,
|
|
1984
1984
|
persistent: h = !1
|
|
1985
1985
|
} = c;
|
|
1986
1986
|
e.type = f, e.message = v, e.component = m ? wn(m) : null, e.props = x, e.closeable = p, e.persistent = h, e.isVisible = !0;
|
|
1987
|
-
const S =
|
|
1987
|
+
const S = b !== null ? b : Jr[f];
|
|
1988
1988
|
e.duration = S, S > 0 && l(S);
|
|
1989
1989
|
},
|
|
1990
1990
|
hide: s,
|
|
@@ -2855,7 +2855,7 @@ const Qe = new gc(), Zp = {
|
|
|
2855
2855
|
}
|
|
2856
2856
|
}
|
|
2857
2857
|
return (m, x) => {
|
|
2858
|
-
const p = Ue("font-awesome-icon"),
|
|
2858
|
+
const p = Ue("font-awesome-icon"), b = xa("spark-tooltip");
|
|
2859
2859
|
return Qt((C(), Me(vt(g.value ? "a" : "span"), {
|
|
2860
2860
|
href: c.value || void 0,
|
|
2861
2861
|
target: g.value && e.openNew ? "_blank" : void 0,
|
|
@@ -2883,7 +2883,7 @@ const Qe = new gc(), Zp = {
|
|
|
2883
2883
|
]),
|
|
2884
2884
|
_: 3
|
|
2885
2885
|
}, 8, ["href", "target", "rel", "class"])), [
|
|
2886
|
-
[
|
|
2886
|
+
[b, e.tooltip]
|
|
2887
2887
|
]);
|
|
2888
2888
|
};
|
|
2889
2889
|
}
|
|
@@ -2986,7 +2986,7 @@ var ct, Bt, gn;
|
|
|
2986
2986
|
const oo = /* @__PURE__ */ new Set();
|
|
2987
2987
|
let bn = null, bo = 0;
|
|
2988
2988
|
function Zt() {
|
|
2989
|
-
let e = ct.Initializing, t = Bt.Ease, n = 0, o = 0, r = Zt.Easings.Linear, a = 500, s = 0, l = 0, i = 0, u = 0, d = 1 / 0, g = 0.01, c = 0.01, f = !1, v = {}, m = null, x = {}, p = {},
|
|
2989
|
+
let e = ct.Initializing, t = Bt.Ease, n = 0, o = 0, r = Zt.Easings.Linear, a = 500, s = 0, l = 0, i = 0, u = 0, d = 1 / 0, g = 0.01, c = 0.01, f = !1, v = {}, m = null, x = {}, p = {}, b = {}, h = 0, S = 0, y = gn.Loop, L = Zt.Easings.Linear;
|
|
2990
2990
|
const $ = /* @__PURE__ */ new Map();
|
|
2991
2991
|
function Q(D, ...V) {
|
|
2992
2992
|
for (const N of $.get(D) || []) N(...V);
|
|
@@ -3000,8 +3000,8 @@ function Zt() {
|
|
|
3000
3000
|
e = ct.Running, Q("start", x, p);
|
|
3001
3001
|
}
|
|
3002
3002
|
function Ce() {
|
|
3003
|
-
if (e = ct.Completed,
|
|
3004
|
-
if (n++,
|
|
3003
|
+
if (e = ct.Completed, b = {}, Q("end", x), e === ct.Completed) if (n < h) {
|
|
3004
|
+
if (n++, y === gn.Reverse) {
|
|
3005
3005
|
const D = Object.assign({}, v);
|
|
3006
3006
|
v = Object.assign({}, p), p = D;
|
|
3007
3007
|
}
|
|
@@ -3012,13 +3012,13 @@ function Zt() {
|
|
|
3012
3012
|
const re = { getState: function() {
|
|
3013
3013
|
return e;
|
|
3014
3014
|
}, easing: function(D) {
|
|
3015
|
-
return r = D, t = Bt.Ease,
|
|
3015
|
+
return r = D, t = Bt.Ease, b = {}, re;
|
|
3016
3016
|
}, duration: function(D) {
|
|
3017
3017
|
return a = D, re;
|
|
3018
3018
|
}, spring: function(D = {}) {
|
|
3019
3019
|
t = Bt.Spring;
|
|
3020
3020
|
const V = { velocity: 0, mass: 1, tension: 170, friction: 26, restDelta: 0.1, restSpeed: 0.1, maxSpeed: 1 / 0, clamp: !0 }, { velocity: N, mass: I, tension: te, friction: he, restDelta: pe, restSpeed: W, maxSpeed: ye, clamp: me } = Object.assign(Object.assign({}, V), D);
|
|
3021
|
-
return s = N, l = I, i = te, u = he, c = pe, g = W, d = ye, f = me,
|
|
3021
|
+
return s = N, l = I, i = te, u = he, c = pe, g = W, d = ye, f = me, b = {}, re;
|
|
3022
3022
|
}, isRunning: function() {
|
|
3023
3023
|
return e === ct.Running;
|
|
3024
3024
|
}, isSpring: function() {
|
|
@@ -3028,7 +3028,7 @@ function Zt() {
|
|
|
3028
3028
|
}, to: function(D) {
|
|
3029
3029
|
return p = D, re;
|
|
3030
3030
|
}, repeat: function(D, V = 0, N = gn.Loop, I) {
|
|
3031
|
-
return h = D, S = V,
|
|
3031
|
+
return h = D, S = V, y = N, L = I || r, re;
|
|
3032
3032
|
}, on: function(D, V) {
|
|
3033
3033
|
var N, I;
|
|
3034
3034
|
return N = D, I = V, $.set(N, [...$.get(N) || [], I]), re;
|
|
@@ -3045,7 +3045,7 @@ function Zt() {
|
|
|
3045
3045
|
if (e !== ct.Running) return re;
|
|
3046
3046
|
if (t === Bt.Ease) {
|
|
3047
3047
|
V = Oe(0, o / a, 1), N = V === 1;
|
|
3048
|
-
const te =
|
|
3048
|
+
const te = y === gn.Reverse ? L : r;
|
|
3049
3049
|
for (const he in x) x[he] = v[he] + (p[he] - v[he]) * te(V);
|
|
3050
3050
|
}
|
|
3051
3051
|
if (t === Bt.Spring) {
|
|
@@ -3056,17 +3056,17 @@ function Zt() {
|
|
|
3056
3056
|
let ye = x[pe];
|
|
3057
3057
|
if (typeof W != "number" || isNaN(W) || typeof ye != "number" || isNaN(ye)) continue;
|
|
3058
3058
|
if (Math.abs(W - ye) <= c) {
|
|
3059
|
-
x[pe] = W,
|
|
3059
|
+
x[pe] = W, b[pe] = 0;
|
|
3060
3060
|
continue;
|
|
3061
3061
|
}
|
|
3062
|
-
|
|
3063
|
-
let me =
|
|
3062
|
+
b[pe] || (typeof s == "object" && typeof s[pe] == "number" ? b[pe] = s[pe] : b[pe] = typeof s == "number" ? s : 0);
|
|
3063
|
+
let me = b[pe];
|
|
3064
3064
|
me = Oe(-1 * Math.abs(d), me, Math.abs(d));
|
|
3065
3065
|
const le = me * l * u;
|
|
3066
3066
|
me += ((ye > W ? -1 : 1) * (Math.abs(W - ye) * i) - le) / l * te, ye += me * te;
|
|
3067
3067
|
const Ee = x[pe] > W ? ye < W : ye > W;
|
|
3068
3068
|
let De = Math.abs(me) < g && Math.abs(W - ye) <= c;
|
|
3069
|
-
f && Ee && (De = !0), De ? (ye = W, me = 0) : he++, x[pe] = ye,
|
|
3069
|
+
f && Ee && (De = !0), De ? (ye = W, me = 0) : he++, x[pe] = ye, b[pe] = me;
|
|
3070
3070
|
}
|
|
3071
3071
|
N = !he;
|
|
3072
3072
|
}
|
|
@@ -3077,7 +3077,7 @@ function Zt() {
|
|
|
3077
3077
|
}, getCurrentValues: function() {
|
|
3078
3078
|
return x;
|
|
3079
3079
|
}, getCurrentVelocities: function() {
|
|
3080
|
-
return
|
|
3080
|
+
return b;
|
|
3081
3081
|
}, getEndValues: function() {
|
|
3082
3082
|
return p;
|
|
3083
3083
|
}, destroy: function() {
|
|
@@ -3127,10 +3127,10 @@ const ks = (e) => {
|
|
|
3127
3127
|
}, Vt = { passive: !1 }, Nc = { panThreshold: 5, swipeThreshold: 3, ignore: ["textarea", "input", "select", "[contenteditable]", "[data-selectable]", "[data-draggable]"] };
|
|
3128
3128
|
let qn = !1, $n = !0;
|
|
3129
3129
|
const En = (e, t) => {
|
|
3130
|
-
let n, o, r, a, s, l = Object.assign(Object.assign({}, Nc), t), i = [], u = [], d = [], g = !1, c = !1, f = !1, v = !1, m = 0, x = 0, p = 0,
|
|
3130
|
+
let n, o, r, a, s, l = Object.assign(Object.assign({}, Nc), t), i = [], u = [], d = [], g = !1, c = !1, f = !1, v = !1, m = 0, x = 0, p = 0, b = 0, h = 0, S = 0, y = 0, L = 0, $ = 0, Q = [];
|
|
3131
3131
|
const ce = /* @__PURE__ */ new Map();
|
|
3132
3132
|
function J(W) {
|
|
3133
|
-
const ye = Bn(u), me = Bn(d), le = ye && me ? ye / me : 0, Ee = Math.abs(
|
|
3133
|
+
const ye = Bn(u), me = Bn(d), le = ye && me ? ye / me : 0, Ee = Math.abs(y) > Math.abs(L) ? y : L, De = { srcEvent: n, isPanRecognized: g, isSwipeRecognized: c, firstTouch: i, previousTouch: d, currentTouch: u, deltaX: p, deltaY: b, offsetX: h, offsetY: S, velocityX: y, velocityY: L, velocity: Ee, angle: $, axis: r, scale: le, center: o };
|
|
3134
3134
|
for (const rt of ce.get(W) || []) rt(De);
|
|
3135
3135
|
}
|
|
3136
3136
|
function Ce(W) {
|
|
@@ -3139,11 +3139,11 @@ const En = (e, t) => {
|
|
|
3139
3139
|
}
|
|
3140
3140
|
function re(W) {
|
|
3141
3141
|
const ye = Date.now();
|
|
3142
|
-
if (Q = Q.filter((me) => !me.ts || me.ts > ye - 100), W && Q.push(W),
|
|
3142
|
+
if (Q = Q.filter((me) => !me.ts || me.ts > ye - 100), W && Q.push(W), y = 0, L = 0, Q.length > 3) {
|
|
3143
3143
|
const me = Q[0], le = Q[Q.length - 1];
|
|
3144
3144
|
if (me && le) {
|
|
3145
3145
|
const Ee = le.x - me.x, De = le.y - me.y, rt = me.ts && le.ts ? le.ts - me.ts : 0;
|
|
3146
|
-
rt > 0 && (
|
|
3146
|
+
rt > 0 && (y = Math.abs(Ee) > 3 ? Ee / (rt / 30) : 0, L = Math.abs(De) > 3 ? De / (rt / 30) : 0);
|
|
3147
3147
|
}
|
|
3148
3148
|
}
|
|
3149
3149
|
}
|
|
@@ -3165,7 +3165,7 @@ const En = (e, t) => {
|
|
|
3165
3165
|
if (!i.length || W.defaultPrevented || Ce(W) === !1) return;
|
|
3166
3166
|
n = W, d = [...u], u = ws(W);
|
|
3167
3167
|
const me = Nt(d), le = Nt(ws(W));
|
|
3168
|
-
if (re(le), x = u.length, o = le, d.length === u.length ? (p = le.x - me.x,
|
|
3168
|
+
if (re(le), x = u.length, o = le, d.length === u.length ? (p = le.x - me.x, b = le.y - me.y) : (p = 0, b = 0), i.length) {
|
|
3169
3169
|
const Ee = Nt(i);
|
|
3170
3170
|
h = le.x - Ee.x, S = le.y - Ee.y;
|
|
3171
3171
|
}
|
|
@@ -3173,7 +3173,7 @@ const En = (e, t) => {
|
|
|
3173
3173
|
const Ee = Bn(u), De = Bn(d);
|
|
3174
3174
|
Math.abs(Ee - De) >= 0.1 && (f = !0, J("pinch"));
|
|
3175
3175
|
}
|
|
3176
|
-
g || (g = Math.abs(h) >= l.panThreshold || Math.abs(S) >= l.panThreshold, g && ($n = !1, clearTimeout(s), s = void 0, $ = Math.abs(180 * Math.atan2(S, h) / Math.PI), r = $ > 45 && $ < 135 ? "y" : "x", i = [...u], d = [...u], h = 0, S = 0, p = 0,
|
|
3176
|
+
g || (g = Math.abs(h) >= l.panThreshold || Math.abs(S) >= l.panThreshold, g && ($n = !1, clearTimeout(s), s = void 0, $ = Math.abs(180 * Math.atan2(S, h) / Math.PI), r = $ > 45 && $ < 135 ? "y" : "x", i = [...u], d = [...u], h = 0, S = 0, p = 0, b = 0, (ye = window.getSelection()) === null || ye === void 0 || ye.removeAllRanges(), J("panstart"))), g && (p || b) && J("pan"), J("move");
|
|
3177
3177
|
}
|
|
3178
3178
|
function N(W) {
|
|
3179
3179
|
if (n = W, !i.length) return;
|
|
@@ -3181,7 +3181,7 @@ const En = (e, t) => {
|
|
|
3181
3181
|
if (x = ye.length, o = Nt(me), me.length && re(Nt(me)), d = [...u], u = [...ye], i = [...ye], x > 0) J("end"), g = !1, c = !1, Q = [];
|
|
3182
3182
|
else {
|
|
3183
3183
|
const le = l.swipeThreshold;
|
|
3184
|
-
(Math.abs(
|
|
3184
|
+
(Math.abs(y) > le || Math.abs(L) > le) && (c = !0), g && J("panend"), c && J("swipe"), g || c || f || (J("tap"), v ? J("doubleTap") : a = setTimeout(function() {
|
|
3185
3185
|
J("singleTap");
|
|
3186
3186
|
}, 250)), J("end"), te();
|
|
3187
3187
|
}
|
|
@@ -3190,7 +3190,7 @@ const En = (e, t) => {
|
|
|
3190
3190
|
clearTimeout(a), te(), g && J("panend"), J("end");
|
|
3191
3191
|
}
|
|
3192
3192
|
function te() {
|
|
3193
|
-
qn = !1, g = !1, c = !1, v = !1, x = 0, Q = [], u = [], d = [], i = [], p = 0,
|
|
3193
|
+
qn = !1, g = !1, c = !1, v = !1, x = 0, Q = [], u = [], d = [], i = [], p = 0, b = 0, h = 0, S = 0, y = 0, L = 0, $ = 0, r = void 0, window.removeEventListener("mousemove", V), window.removeEventListener("mouseup", N), window.removeEventListener("blur", I), $n || s || (s = setTimeout(() => {
|
|
3194
3194
|
$n = !0, s = void 0;
|
|
3195
3195
|
}, 100));
|
|
3196
3196
|
}
|
|
@@ -3231,7 +3231,7 @@ const Ho = (e, t = {}, n = {}) => {
|
|
|
3231
3231
|
let E = c[w];
|
|
3232
3232
|
return E && typeof E == "function" ? E(B) : E;
|
|
3233
3233
|
}
|
|
3234
|
-
function
|
|
3234
|
+
function b() {
|
|
3235
3235
|
return e && e.parentElement && o && g === 3;
|
|
3236
3236
|
}
|
|
3237
3237
|
const h = /* @__PURE__ */ new Map();
|
|
@@ -3241,8 +3241,8 @@ const Ho = (e, t = {}, n = {}) => {
|
|
|
3241
3241
|
for (const H of j) H && H instanceof Function && H(B, ...E);
|
|
3242
3242
|
w !== "*" && S("*", w, ...E);
|
|
3243
3243
|
}
|
|
3244
|
-
function
|
|
3245
|
-
if (!
|
|
3244
|
+
function y(w) {
|
|
3245
|
+
if (!b()) return;
|
|
3246
3246
|
const E = w.target;
|
|
3247
3247
|
if (nn(E)) return;
|
|
3248
3248
|
const j = Date.now(), H = [-w.deltaX || 0, -w.deltaY || 0, -w.detail || 0].reduce(function(ne, K) {
|
|
@@ -3271,7 +3271,7 @@ const Ho = (e, t = {}, n = {}) => {
|
|
|
3271
3271
|
Ee(O, { srcEvent: w });
|
|
3272
3272
|
}
|
|
3273
3273
|
}
|
|
3274
|
-
function
|
|
3274
|
+
function L(w) {
|
|
3275
3275
|
var E, j;
|
|
3276
3276
|
const H = w.composedPath()[0];
|
|
3277
3277
|
if (!En.isClickAllowed() || !mn(H) || w.defaultPrevented || !e?.contains(H) || H.hasAttribute("disabled") || H.hasAttribute("aria-disabled") || H.hasAttribute("data-carousel-go-prev") || H.hasAttribute("data-carousel-go-next")) return;
|
|
@@ -3309,7 +3309,7 @@ const Ho = (e, t = {}, n = {}) => {
|
|
|
3309
3309
|
}
|
|
3310
3310
|
}
|
|
3311
3311
|
function $(w) {
|
|
3312
|
-
if (d = w, !
|
|
3312
|
+
if (d = w, !b() || !V() || v.scale <= 1 || m.scale <= 1 || (o?.dataset.animationName || "").indexOf("zoom") > -1) return;
|
|
3313
3313
|
const E = N(m.scale);
|
|
3314
3314
|
if (!E) return;
|
|
3315
3315
|
const { x: j, y: H } = E;
|
|
@@ -3329,7 +3329,7 @@ const Ho = (e, t = {}, n = {}) => {
|
|
|
3329
3329
|
}).on("pause", (H) => {
|
|
3330
3330
|
m = Object.assign(Object.assign({}, xt), H);
|
|
3331
3331
|
}).on("step", (H) => {
|
|
3332
|
-
if (!
|
|
3332
|
+
if (!b()) return void (i == null || i.end());
|
|
3333
3333
|
if (v = Object.assign(Object.assign({}, xt), H), V() || !p("bounds") || Je() || m.scale > v.scale || m.scale < he()) return void De();
|
|
3334
3334
|
const T = ye(m.scale);
|
|
3335
3335
|
let O = !1, Z = !1, Y = !1, ne = !1;
|
|
@@ -3345,7 +3345,7 @@ const Ho = (e, t = {}, n = {}) => {
|
|
|
3345
3345
|
if (!H || !s || !r) return;
|
|
3346
3346
|
let T = !1;
|
|
3347
3347
|
l = En(s, H).on("start", (O) => {
|
|
3348
|
-
if (!p("gestures") || !i || !
|
|
3348
|
+
if (!p("gestures") || !i || !b() || V()) return;
|
|
3349
3349
|
const Z = O.srcEvent;
|
|
3350
3350
|
(v.scale > 1 || O.currentTouch.length > 1) && (Z?.stopPropagation(), i.pause(), T = !0), O.currentTouch.length === 1 && S("touchStart");
|
|
3351
3351
|
}).on("move", (O) => {
|
|
@@ -3368,10 +3368,10 @@ const Ho = (e, t = {}, n = {}) => {
|
|
|
3368
3368
|
}).on("end", (O) => {
|
|
3369
3369
|
T && (O.currentTouch.length ? (O.srcEvent.stopPropagation(), Xt(O.srcEvent), i?.end()) : (T = !1, le(), me(), S("touchEnd")));
|
|
3370
3370
|
}).init();
|
|
3371
|
-
})(), s && (s.addEventListener("wheel",
|
|
3372
|
-
s?.removeEventListener("wheel",
|
|
3373
|
-
})), e?.addEventListener("click",
|
|
3374
|
-
e?.removeEventListener("click",
|
|
3371
|
+
})(), s && (s.addEventListener("wheel", y, { passive: !1 }), x.push(() => {
|
|
3372
|
+
s?.removeEventListener("wheel", y, { passive: !1 });
|
|
3373
|
+
})), e?.addEventListener("click", L), document?.addEventListener("mousemove", $), x.push(() => {
|
|
3374
|
+
e?.removeEventListener("click", L), document?.removeEventListener("mousemove", $);
|
|
3375
3375
|
});
|
|
3376
3376
|
const j = J();
|
|
3377
3377
|
v = Object.assign({}, j), m = Object.assign({}, j), g = 3, De(), le(), S("ready"), requestAnimationFrame(() => {
|
|
@@ -3482,7 +3482,7 @@ const Ho = (e, t = {}, n = {}) => {
|
|
|
3482
3482
|
return Z *= ne, Y *= K, w > 1 && (Z > T && (E.x[0] = 0.5 * (T - Z), E.x[1] = 0.5 * (Z - T)), E.x[0] -= 0.5 * (H.left - j.left), E.x[1] -= 0.5 * (H.left - j.left), E.x[0] -= 0.5 * (H.left + H.width - j.right), E.x[1] -= 0.5 * (H.left + H.width - j.right), Y > O && (E.y[0] = 0.5 * (O - Y), E.y[1] = 0.5 * (Y - O)), E.y[0] -= 0.5 * (H.top - j.top), E.y[1] -= 0.5 * (H.top - j.top), E.y[0] -= 0.5 * (H.top + H.height - j.bottom), E.y[1] -= 0.5 * (H.top + H.height - j.bottom)), E;
|
|
3483
3483
|
}
|
|
3484
3484
|
function me() {
|
|
3485
|
-
if (!
|
|
3485
|
+
if (!b() || !p("bounds") || !i) return;
|
|
3486
3486
|
const w = te(), E = W(), j = Oe(w, m.scale, E);
|
|
3487
3487
|
if (m.scale < w - 0.01 || m.scale > E + 0.01) return void Ee(ae.ZoomTo, { scale: j });
|
|
3488
3488
|
if (i.isRunning() || Je()) return;
|
|
@@ -3491,10 +3491,10 @@ const Ho = (e, t = {}, n = {}) => {
|
|
|
3491
3491
|
}
|
|
3492
3492
|
function le(w) {
|
|
3493
3493
|
var E;
|
|
3494
|
-
if (!
|
|
3494
|
+
if (!b()) return;
|
|
3495
3495
|
const j = Ht(), H = Je(), T = We(), O = A(), Z = Tt(), Y = yt();
|
|
3496
3496
|
it(o, "is-fullsize", O), it(o, "is-expanded", T), it(o, "is-dragging", H), it(o, "can-drag", j), it(o, "will-zoom-in", Z), it(o, "will-zoom-out", Y);
|
|
3497
|
-
const ne = Ot(), K = ut(), ue = bt(), Te = !
|
|
3497
|
+
const ne = Ot(), K = ut(), ue = bt(), Te = !b();
|
|
3498
3498
|
for (const _e of ((E = w || e) === null || E === void 0 ? void 0 : E.querySelectorAll("[data-panzoom-action]")) || []) {
|
|
3499
3499
|
const Le = _e.dataset.panzoomAction;
|
|
3500
3500
|
let Pe = !1;
|
|
@@ -3527,7 +3527,7 @@ const Ho = (e, t = {}, n = {}) => {
|
|
|
3527
3527
|
}
|
|
3528
3528
|
function Ee(w, E) {
|
|
3529
3529
|
var j;
|
|
3530
|
-
if (!(w && e && r && i &&
|
|
3530
|
+
if (!(w && e && r && i && b()) || w === ae.Swipe && Math.abs(i.getCurrentVelocities().scale) > 0.01) return;
|
|
3531
3531
|
const H = Object.assign({}, m);
|
|
3532
3532
|
let T = Object.assign({}, m), O = ye(V() ? H.scale : v.scale);
|
|
3533
3533
|
const Z = i.getCurrentVelocities(), Y = Ce(), ne = (((j = (E = E || {}).currentTouch) === null || j === void 0 ? void 0 : j.length) || 0) > 1, K = E.velocityX || 0, ue = E.velocityY || 0;
|
|
@@ -3609,8 +3609,8 @@ const Ho = (e, t = {}, n = {}) => {
|
|
|
3609
3609
|
}
|
|
3610
3610
|
let Se = Re - Y.left, k = je - Y.top;
|
|
3611
3611
|
Se -= 0.5 * Y.width, k -= 0.5 * Y.height;
|
|
3612
|
-
const
|
|
3613
|
-
T.x = Se -
|
|
3612
|
+
const M = (Se - H.x) / H.scale, R = (k - H.y) / H.scale;
|
|
3613
|
+
T.x = Se - M * T.scale, T.y = k - R * T.scale, !ne && p("bounds") && (O = ye(T.scale), T.x = Oe(O.x[0], T.x, O.x[1]), T.y = Oe(O.y[0], T.y, O.y[1]));
|
|
3614
3614
|
}
|
|
3615
3615
|
if (w === ae.Swipe) {
|
|
3616
3616
|
let Re = 94, je = 17, Se = 500 * T.scale, k = Z;
|
|
@@ -3630,11 +3630,11 @@ const Ho = (e, t = {}, n = {}) => {
|
|
|
3630
3630
|
const j = (function() {
|
|
3631
3631
|
const { width: _e, height: Le } = re(), { width: Pe, height: Re } = D();
|
|
3632
3632
|
if (!e) return { x: 0, y: 0, width: 0, height: 0, scale: 0, flipX: 0, flipY: 0, angle: 0, fitWidth: Pe, fitHeight: Re, fullWidth: _e, fullHeight: Le };
|
|
3633
|
-
let { x: je, y: Se, scale: k, angle:
|
|
3633
|
+
let { x: je, y: Se, scale: k, angle: M, flipX: R, flipY: F } = v, q = 1 / pe(), z = _e, G = Le, X = v.scale * q, fe = m.scale * q;
|
|
3634
3634
|
const ge = Math.max(Pe, Re), be = Math.min(Pe, Re);
|
|
3635
3635
|
_e > Le ? (z = ge, G = be) : (z = be, G = ge), X = _e > Le ? ge * k / _e || 1 : ge * k / Le || 1;
|
|
3636
3636
|
let Ae = z ? _e * fe : 0, He = G ? Le * fe : 0, Be = z && G ? _e * X / Ae : 0;
|
|
3637
|
-
return je = je + 0.5 * z - 0.5 * Ae, Se = Se + 0.5 * G - 0.5 * He, { x: je, y: Se, width: Ae, height: He, scale: Be, flipX: R, flipY: F, angle:
|
|
3637
|
+
return je = je + 0.5 * z - 0.5 * Ae, Se = Se + 0.5 * G - 0.5 * He, { x: je, y: Se, width: Ae, height: He, scale: Be, flipX: R, flipY: F, angle: M, fitWidth: Pe, fitHeight: Re, fullWidth: _e, fullHeight: Le };
|
|
3638
3638
|
})(), { x: H, y: T, width: O, height: Z, scale: Y, angle: ne, flipX: K, flipY: ue } = j;
|
|
3639
3639
|
let Te = `translate(${lt(H)}px, ${lt(T)}px)`;
|
|
3640
3640
|
Te += K !== 1 || ue !== 1 ? ` scaleX(${lt(Y * K)}) scaleY(${lt(Y * ue)})` : ` scale(${lt(Y)})`, ne !== 0 && (Te += ` rotate(${ne}deg)`), s.style.width = `${lt(O)}px`, s.style.height = `${lt(Z)}px`, s.style.transform = `${Te}`, S("render");
|
|
@@ -3677,31 +3677,31 @@ const Ho = (e, t = {}, n = {}) => {
|
|
|
3677
3677
|
return w !== ae.ZoomTo && (H = Oe(te(), H, W())), H;
|
|
3678
3678
|
}
|
|
3679
3679
|
function Tt() {
|
|
3680
|
-
return !!(
|
|
3680
|
+
return !!(b() && rt() > m.scale);
|
|
3681
3681
|
}
|
|
3682
3682
|
function yt() {
|
|
3683
|
-
return !!(
|
|
3683
|
+
return !!(b() && rt() < m.scale);
|
|
3684
3684
|
}
|
|
3685
3685
|
function bt() {
|
|
3686
|
-
return !!(
|
|
3686
|
+
return !!(b() && m.scale > te());
|
|
3687
3687
|
}
|
|
3688
3688
|
function Ot() {
|
|
3689
|
-
return !!(
|
|
3689
|
+
return !!(b() && m.scale < W());
|
|
3690
3690
|
}
|
|
3691
3691
|
function ut() {
|
|
3692
|
-
return !!(
|
|
3692
|
+
return !!(b() && m.scale < pe());
|
|
3693
3693
|
}
|
|
3694
3694
|
function Ht() {
|
|
3695
|
-
return !(!(
|
|
3695
|
+
return !(!(b() && We() && l) || V());
|
|
3696
3696
|
}
|
|
3697
3697
|
function Je() {
|
|
3698
|
-
return !(!
|
|
3698
|
+
return !(!b() || !l?.isPointerDown() || V());
|
|
3699
3699
|
}
|
|
3700
3700
|
function We() {
|
|
3701
|
-
return !!(
|
|
3701
|
+
return !!(b() && m.scale > he());
|
|
3702
3702
|
}
|
|
3703
3703
|
function A() {
|
|
3704
|
-
return !!(
|
|
3704
|
+
return !!(b() && m.scale >= pe());
|
|
3705
3705
|
}
|
|
3706
3706
|
function U() {
|
|
3707
3707
|
const w = "in-fullscreen", E = "with-panzoom-in-fullscreen";
|
|
@@ -3761,8 +3761,8 @@ const Ho = (e, t = {}, n = {}) => {
|
|
|
3761
3761
|
if (e && o && !u) {
|
|
3762
3762
|
let w = null;
|
|
3763
3763
|
u = new ResizeObserver(() => {
|
|
3764
|
-
|
|
3765
|
-
|
|
3764
|
+
b() && (w = w || requestAnimationFrame(() => {
|
|
3765
|
+
b() && (le(), me(), S("refresh")), w = null;
|
|
3766
3766
|
}));
|
|
3767
3767
|
}), u.observe(o), x.push(() => {
|
|
3768
3768
|
u?.disconnect(), u = void 0, w && (cancelAnimationFrame(w), w = null);
|
|
@@ -3815,28 +3815,28 @@ const Kt = (e) => {
|
|
|
3815
3815
|
let _s, $s = 0;
|
|
3816
3816
|
const so = (e, t = {}, n = {}) => {
|
|
3817
3817
|
$s++;
|
|
3818
|
-
let o, r, a, s, l, i = 0, u = Object.assign({}, pn), d = Object.assign({}, pn), g = {}, c = null, f = null, v = 0, m = 0, x = 0, p = !1,
|
|
3818
|
+
let o, r, a, s, l, i = 0, u = Object.assign({}, pn), d = Object.assign({}, pn), g = {}, c = null, f = null, v = 0, m = 0, x = 0, p = !1, b = !1, h = !1, S = "height", y = 0, L = !0, $ = 0, Q = 0, ce = 0, J = 0, Ce = "*", re = [], D = [];
|
|
3819
3819
|
const V = /* @__PURE__ */ new Set();
|
|
3820
3820
|
let N = [], I = [], te = 0, he = 0, pe = 0;
|
|
3821
|
-
function W(k, ...
|
|
3821
|
+
function W(k, ...M) {
|
|
3822
3822
|
let R = d[k];
|
|
3823
|
-
return R && R instanceof Function ? R(Se, ...
|
|
3823
|
+
return R && R instanceof Function ? R(Se, ...M) : R;
|
|
3824
3824
|
}
|
|
3825
|
-
function ye(k,
|
|
3825
|
+
function ye(k, M = []) {
|
|
3826
3826
|
const R = W("l10n") || {};
|
|
3827
3827
|
k = String(k).replace(/\{\{(\w+)\}\}/g, (F, q) => R[q] || F);
|
|
3828
|
-
for (let F = 0; F <
|
|
3828
|
+
for (let F = 0; F < M.length; F++) k = k.split(M[F][0]).join(M[F][1]);
|
|
3829
3829
|
return k = k.replace(/\{\{(.*?)\}\}/g, (F, q) => q);
|
|
3830
3830
|
}
|
|
3831
3831
|
const me = /* @__PURE__ */ new Map();
|
|
3832
|
-
function le(k, ...
|
|
3832
|
+
function le(k, ...M) {
|
|
3833
3833
|
const R = [...me.get(k) || []];
|
|
3834
3834
|
d.on && R.push(d.on[k]);
|
|
3835
|
-
for (const F of R) F && F instanceof Function && F(Se, ...
|
|
3836
|
-
k !== "*" && le("*", k, ...
|
|
3835
|
+
for (const F of R) F && F instanceof Function && F(Se, ...M);
|
|
3836
|
+
k !== "*" && le("*", k, ...M);
|
|
3837
3837
|
}
|
|
3838
3838
|
function Ee() {
|
|
3839
|
-
var k,
|
|
3839
|
+
var k, M;
|
|
3840
3840
|
const R = ft({}, pn, u);
|
|
3841
3841
|
ft(R, pn, u);
|
|
3842
3842
|
let F = "";
|
|
@@ -3844,7 +3844,7 @@ const so = (e, t = {}, n = {}) => {
|
|
|
3844
3844
|
if (q) for (const [z, G] of Object.entries(q)) window.matchMedia(z).matches && (F += z, ft(R, G));
|
|
3845
3845
|
if (l === void 0 || F !== l) {
|
|
3846
3846
|
if (l = F, i !== 0) {
|
|
3847
|
-
let z = (
|
|
3847
|
+
let z = (M = (k = I[$]) === null || k === void 0 ? void 0 : k.slides[0]) === null || M === void 0 ? void 0 : M.index;
|
|
3848
3848
|
z === void 0 && (z = d.initialSlide), R.initialSlide = z, R.slides = [];
|
|
3849
3849
|
for (const G of re) G.isVirtual && R.slides.push(G);
|
|
3850
3850
|
}
|
|
@@ -3880,10 +3880,10 @@ const so = (e, t = {}, n = {}) => {
|
|
|
3880
3880
|
})(), H(), i = 1, de(c, (W("classes") || {}).isEnabled || ""), Le(), bt(), r = Zt().on("start", () => {
|
|
3881
3881
|
o && o.isPointerDown() || (yt(), Le());
|
|
3882
3882
|
}).on("step", (z) => {
|
|
3883
|
-
const G =
|
|
3884
|
-
|
|
3883
|
+
const G = y;
|
|
3884
|
+
y = z.pos, y !== G && (L = !1, Le());
|
|
3885
3885
|
}).on("end", (z) => {
|
|
3886
|
-
o?.isPointerDown() || (
|
|
3886
|
+
o?.isPointerDown() || (y = z.pos, r && !p && (y < ce || y > J) ? r.spring({ clamp: !0, mass: 1, tension: 200, friction: 25, velocity: 0, restDelta: 1, restSpeed: 1 }).from({ pos: y }).to({ pos: Oe(ce, y, J) }).start() : L || (L = !0, le("settle")));
|
|
3887
3887
|
}), rt(), (function() {
|
|
3888
3888
|
if (!c || !f) return;
|
|
3889
3889
|
c.addEventListener("click", Y), document.addEventListener("mousemove", De);
|
|
@@ -3895,7 +3895,7 @@ const so = (e, t = {}, n = {}) => {
|
|
|
3895
3895
|
(function() {
|
|
3896
3896
|
if (i !== 1 || !f) return;
|
|
3897
3897
|
const X = I.length, fe = f.getBoundingClientRect(), ge = fe.height, be = fe.width;
|
|
3898
|
-
X > 1 && (h && Math.abs(ge - te) < 0.5 || !h && Math.abs(be - he) < 0.5) || (H(), rt(), te = ge, he = be, h && !te || !h && !he || c && f && (X === I.length && o?.isPointerDown() || (W("dragFree") && (p ||
|
|
3898
|
+
X > 1 && (h && Math.abs(ge - te) < 0.5 || !h && Math.abs(be - he) < 0.5) || (H(), rt(), te = ge, he = be, h && !te || !h && !he || c && f && (X === I.length && o?.isPointerDown() || (W("dragFree") && (p || y > ce && y < J) ? (yt(), Le()) : Te($, { transition: !1 }))));
|
|
3899
3899
|
})(), G = null;
|
|
3900
3900
|
}));
|
|
3901
3901
|
}), a.observe(f);
|
|
@@ -3909,36 +3909,36 @@ const so = (e, t = {}, n = {}) => {
|
|
|
3909
3909
|
function rt() {
|
|
3910
3910
|
W("gestures") === !1 ? o && (o.destroy(), o = void 0) : o || (function() {
|
|
3911
3911
|
const k = W("gestures");
|
|
3912
|
-
!o && k !== !1 && f && (o = En(f, k).on("start", (
|
|
3912
|
+
!o && k !== !1 && f && (o = En(f, k).on("start", (M) => {
|
|
3913
3913
|
var R, F;
|
|
3914
|
-
if (!r || W("gestures",
|
|
3915
|
-
const { srcEvent: q } =
|
|
3914
|
+
if (!r || W("gestures", M) === !1) return;
|
|
3915
|
+
const { srcEvent: q } = M;
|
|
3916
3916
|
h && Mn(q) && !nn(q.target) && Kt(q), r.pause(), r.getCurrentVelocities().pos = 0;
|
|
3917
3917
|
const z = (R = I[$]) === null || R === void 0 ? void 0 : R.slides[0], G = z?.el;
|
|
3918
|
-
z && V.has(z.index) && G && (
|
|
3918
|
+
z && V.has(z.index) && G && (y = z.offset || 0, y += ((function(X) {
|
|
3919
3919
|
const fe = window.getComputedStyle(X), ge = new DOMMatrixReadOnly(fe.transform);
|
|
3920
3920
|
return { width: ge.m41 || 0, height: ge.m42 || 0 };
|
|
3921
|
-
})(G)[S] || 0) * (
|
|
3922
|
-
}).on("move", (
|
|
3921
|
+
})(G)[S] || 0) * (b && !h ? 1 : -1)), O(), p || (y < ce || y > J) && r.spring({ clamp: !0, mass: 1, tension: 500, friction: 25, velocity: ((F = r.getCurrentVelocities()) === null || F === void 0 ? void 0 : F.pos) || 0, restDelta: 1, restSpeed: 1 }).from({ pos: y }).to({ pos: Oe(ce, y, J) }).start();
|
|
3922
|
+
}).on("move", (M) => {
|
|
3923
3923
|
var R, F;
|
|
3924
|
-
if (W("gestures",
|
|
3925
|
-
const { srcEvent: q, axis: z, deltaX: G, deltaY: X } =
|
|
3924
|
+
if (W("gestures", M) === !1) return;
|
|
3925
|
+
const { srcEvent: q, axis: z, deltaX: G, deltaY: X } = M;
|
|
3926
3926
|
if (Mn(q) && ((R = q.touches) === null || R === void 0 ? void 0 : R.length) > 1) return;
|
|
3927
3927
|
const fe = q.target, ge = nn(fe), be = ge ? ge.scrollHeight > ge.clientHeight ? "y" : "x" : void 0;
|
|
3928
3928
|
if (ge && ge !== f && (!z || z === be)) return;
|
|
3929
3929
|
if (!z) return Kt(q), q.stopPropagation(), void q.stopImmediatePropagation();
|
|
3930
3930
|
if (z === "y" && !h || z === "x" && h || (Kt(q), q.stopPropagation(), !r)) return;
|
|
3931
|
-
const Ae =
|
|
3932
|
-
let Be = r?.isRunning() ? r.getEndValues().pos :
|
|
3933
|
-
p || (Be <= ce && He * Ae < 0 ? (Ge = Math.max(0.01, 1 - (Math.abs(1 / Je() * Math.abs(Be - ce)) || 0)), Ge *= 0.2) : Be >= J && He * Ae > 0 && (Ge = Math.max(0.01, 1 - (Math.abs(1 / Je() * Math.abs(Be - J)) || 0)), Ge *= 0.2)), Be += He * Ge * Ae, r.spring({ clamp: !0, mass: 1, tension: 700, friction: 25, velocity: ((F = r.getCurrentVelocities()) === null || F === void 0 ? void 0 : F.pos) || 0, restDelta: 1, restSpeed: 1 }).from({ pos:
|
|
3934
|
-
}).on("panstart", (
|
|
3935
|
-
W("gestures",
|
|
3936
|
-
}).on("panend", (
|
|
3937
|
-
W("gestures",
|
|
3938
|
-
}).on("end", (
|
|
3931
|
+
const Ae = b && !h ? 1 : -1, He = h ? X : G;
|
|
3932
|
+
let Be = r?.isRunning() ? r.getEndValues().pos : y, Ge = 1;
|
|
3933
|
+
p || (Be <= ce && He * Ae < 0 ? (Ge = Math.max(0.01, 1 - (Math.abs(1 / Je() * Math.abs(Be - ce)) || 0)), Ge *= 0.2) : Be >= J && He * Ae > 0 && (Ge = Math.max(0.01, 1 - (Math.abs(1 / Je() * Math.abs(Be - J)) || 0)), Ge *= 0.2)), Be += He * Ge * Ae, r.spring({ clamp: !0, mass: 1, tension: 700, friction: 25, velocity: ((F = r.getCurrentVelocities()) === null || F === void 0 ? void 0 : F.pos) || 0, restDelta: 1, restSpeed: 1 }).from({ pos: y }).to({ pos: Be }).start();
|
|
3934
|
+
}).on("panstart", (M) => {
|
|
3935
|
+
W("gestures", M) !== !1 && M?.axis === (h ? "y" : "x") && de(f, "is-dragging");
|
|
3936
|
+
}).on("panend", (M) => {
|
|
3937
|
+
W("gestures", M) !== !1 && ot(f, "is-dragging");
|
|
3938
|
+
}).on("end", (M) => {
|
|
3939
3939
|
var R, F;
|
|
3940
|
-
if (W("gestures",
|
|
3941
|
-
const { srcEvent: q, axis: z, velocityX: G, velocityY: X, currentTouch: fe } =
|
|
3940
|
+
if (W("gestures", M) === !1) return;
|
|
3941
|
+
const { srcEvent: q, axis: z, velocityX: G, velocityY: X, currentTouch: fe } = M;
|
|
3942
3942
|
if (fe.length > 0 || !r) return;
|
|
3943
3943
|
const ge = q.target, be = nn(ge), Ae = be ? be.scrollHeight > be.clientHeight ? "y" : "x" : void 0, He = be && (!z || z === Ae);
|
|
3944
3944
|
h && Mn(q) && !z && Y(q);
|
|
@@ -3946,32 +3946,32 @@ const so = (e, t = {}, n = {}) => {
|
|
|
3946
3946
|
if (!Be) return;
|
|
3947
3947
|
let Ye = He ? 0 : W("vertical") ? X : G;
|
|
3948
3948
|
z !== (h ? "y" : "x") && (Ye = 0);
|
|
3949
|
-
let at = r?.isRunning() ? r.getEndValues().pos :
|
|
3950
|
-
const dt =
|
|
3949
|
+
let at = r?.isRunning() ? r.getEndValues().pos : y;
|
|
3950
|
+
const dt = b && !h ? 1 : -1;
|
|
3951
3951
|
if (He || (at += Ye * (Ge ? 5 : 1) * dt), !p && (Ye * dt <= 0 && at < ce || Ye * dt >= 0 && at > J)) {
|
|
3952
3952
|
let nt = 0;
|
|
3953
|
-
return Math.abs(Ye) > 0 && (nt = 2 * Math.abs(Ye), nt = Math.min(0.3 * Je(), nt)), at = Oe(ce + -1 * nt, at, J + nt), void r.spring({ clamp: !0, mass: 1, tension: 380, friction: 25, velocity: -1 * Ye, restDelta: 1, restSpeed: 1 }).from({ pos:
|
|
3953
|
+
return Math.abs(Ye) > 0 && (nt = 2 * Math.abs(Ye), nt = Math.min(0.3 * Je(), nt)), at = Oe(ce + -1 * nt, at, J + nt), void r.spring({ clamp: !0, mass: 1, tension: 380, friction: 25, velocity: -1 * Ye, restDelta: 1, restSpeed: 1 }).from({ pos: y }).to({ pos: at }).start();
|
|
3954
3954
|
}
|
|
3955
|
-
if (Ge || !((R = g.Autoscroll) === null || R === void 0) && R.isEnabled()) return void (Math.abs(Ye) > 10 ? r.spring({ clamp: !0, mass: 1, tension: 150, friction: 25, velocity: -1 * Ye, restDelta: 1, restSpeed: 1 }).from({ pos:
|
|
3956
|
-
if (!Ge && !(!((F = g.Autoscroll) === null || F === void 0) && F.isEnabled()) && (!
|
|
3955
|
+
if (Ge || !((R = g.Autoscroll) === null || R === void 0) && R.isEnabled()) return void (Math.abs(Ye) > 10 ? r.spring({ clamp: !0, mass: 1, tension: 150, friction: 25, velocity: -1 * Ye, restDelta: 1, restSpeed: 1 }).from({ pos: y }).to({ pos: at }).start() : r.isRunning() || L || (L = !0, le("settle")));
|
|
3956
|
+
if (!Ge && !(!((F = g.Autoscroll) === null || F === void 0) && F.isEnabled()) && (!M.offsetX && !M.offsetY || z === "y" && !h || z === "x" && h)) return void Te($, { transition: "tween" });
|
|
3957
3957
|
let Ve = ut(at);
|
|
3958
|
-
Math.abs(Ye) > 10 && Ve === $ && (Ve += Ye > 0 ?
|
|
3958
|
+
Math.abs(Ye) > 10 && Ve === $ && (Ve += Ye > 0 ? b && !h ? 1 : -1 : b && !h ? -1 : 1), Te(Ve, { transition: "tween", tween: { velocity: -1 * Ye } });
|
|
3959
3959
|
}).init());
|
|
3960
3960
|
})(), it(f, "is-draggable", !!o && I.length > 0);
|
|
3961
3961
|
}
|
|
3962
3962
|
function Tt(k = "*") {
|
|
3963
|
-
var
|
|
3963
|
+
var M;
|
|
3964
3964
|
const R = [];
|
|
3965
|
-
for (const F of re) (k === "*" || F.class && F.class.includes(k) || F.el && (!((
|
|
3965
|
+
for (const F of re) (k === "*" || F.class && F.class.includes(k) || F.el && (!((M = F.el) === null || M === void 0) && M.classList.contains(k))) && R.push(F);
|
|
3966
3966
|
s = void 0, Ce = k, D = [...R];
|
|
3967
3967
|
}
|
|
3968
3968
|
function yt() {
|
|
3969
3969
|
if (!r) return;
|
|
3970
|
-
const k = ut(r?.isRunning() ? r.getEndValues().pos :
|
|
3970
|
+
const k = ut(r?.isRunning() ? r.getEndValues().pos : y);
|
|
3971
3971
|
k !== $ && (s = $, $ = k, ue(), bt(), Ot(), le("change", $, s));
|
|
3972
3972
|
}
|
|
3973
3973
|
function bt() {
|
|
3974
|
-
var k,
|
|
3974
|
+
var k, M;
|
|
3975
3975
|
if (!c) return;
|
|
3976
3976
|
for (const q of c.querySelectorAll("[data-carousel-index]")) q.innerHTML = $ + "";
|
|
3977
3977
|
for (const q of c.querySelectorAll("[data-carousel-page]")) q.innerHTML = $ + 1 + "";
|
|
@@ -3981,22 +3981,22 @@ const so = (e, t = {}, n = {}) => {
|
|
|
3981
3981
|
for (const q of c.querySelectorAll("[data-carousel-go-prev]")) q.toggleAttribute("aria-disabled", !Re()), Re() ? q.removeAttribute("tabindex") : q.setAttribute("tabindex", "-1");
|
|
3982
3982
|
for (const q of c.querySelectorAll("[data-carousel-go-next]")) q.toggleAttribute("aria-disabled", !je()), je() ? q.removeAttribute("tabindex") : q.setAttribute("tabindex", "-1");
|
|
3983
3983
|
let R = !1;
|
|
3984
|
-
const F = (
|
|
3984
|
+
const F = (M = I[$]) === null || M === void 0 ? void 0 : M.slides[0];
|
|
3985
3985
|
F && (F.downloadSrc || F.type === "image" && F.src) && (R = !0);
|
|
3986
3986
|
for (const q of c.querySelectorAll("[data-carousel-download]")) q.toggleAttribute("aria-disabled", !R);
|
|
3987
3987
|
}
|
|
3988
3988
|
function Ot(k) {
|
|
3989
|
-
var
|
|
3990
|
-
k || (k = (
|
|
3989
|
+
var M;
|
|
3990
|
+
k || (k = (M = I[$]) === null || M === void 0 ? void 0 : M.slides[0]);
|
|
3991
3991
|
const R = k?.el;
|
|
3992
3992
|
if (R) for (const F of R.querySelectorAll("[data-slide-index]")) F.innerHTML = k.index + 1 + "";
|
|
3993
3993
|
}
|
|
3994
3994
|
function ut(k) {
|
|
3995
|
-
var
|
|
3995
|
+
var M, R, F;
|
|
3996
3996
|
if (!I.length) return 0;
|
|
3997
3997
|
const q = We();
|
|
3998
3998
|
let z = k;
|
|
3999
|
-
p ? z -= Math.floor((k - ((
|
|
3999
|
+
p ? z -= Math.floor((k - ((M = I[0]) === null || M === void 0 ? void 0 : M.pos)) / q) * q || 0 : z = Oe((R = I[0]) === null || R === void 0 ? void 0 : R.pos, k, (F = I[I.length - 1]) === null || F === void 0 ? void 0 : F.pos);
|
|
4000
4000
|
const G = /* @__PURE__ */ new Map();
|
|
4001
4001
|
let X = 0;
|
|
4002
4002
|
for (const ge of I) {
|
|
@@ -4013,29 +4013,29 @@ const so = (e, t = {}, n = {}) => {
|
|
|
4013
4013
|
return v;
|
|
4014
4014
|
}
|
|
4015
4015
|
function We(k = !0) {
|
|
4016
|
-
return D.length ? D.reduce((
|
|
4016
|
+
return D.length ? D.reduce((M, R) => M + R.dim, 0) + (D.length - (p && k ? 0 : 1)) * pe : 0;
|
|
4017
4017
|
}
|
|
4018
4018
|
function A(k) {
|
|
4019
|
-
const
|
|
4020
|
-
if (!
|
|
4019
|
+
const M = We(), R = Je();
|
|
4020
|
+
if (!M || !f || !R) return [];
|
|
4021
4021
|
const F = [];
|
|
4022
|
-
k = k === void 0 ?
|
|
4022
|
+
k = k === void 0 ? y : k, p && (k -= Math.floor(k / M) * M || 0);
|
|
4023
4023
|
let q = 0;
|
|
4024
4024
|
for (let z of D) {
|
|
4025
4025
|
const G = (X = 0) => {
|
|
4026
4026
|
F.indexOf(z) > -1 || (z.pos = q - k + X || 0, z.offset + X > k - z.dim - m + 0.51 && z.offset + X < k + R + x - 0.51 && F.push(z));
|
|
4027
4027
|
};
|
|
4028
|
-
z.offset = q, p && (G(
|
|
4028
|
+
z.offset = q, p && (G(M), G(-1 * M)), G(), q += z.dim + pe;
|
|
4029
4029
|
}
|
|
4030
4030
|
return F;
|
|
4031
4031
|
}
|
|
4032
|
-
function U(k,
|
|
4032
|
+
function U(k, M) {
|
|
4033
4033
|
const R = [];
|
|
4034
4034
|
for (const F of Array.isArray(k) ? k : [k]) {
|
|
4035
4035
|
const q = ie(Object.assign(Object.assign({}, F), { isVirtual: !0 }));
|
|
4036
4036
|
q.el || (q.el = document.createElement("div")), le("createSlide", q), R.push(q);
|
|
4037
4037
|
}
|
|
4038
|
-
re.splice(
|
|
4038
|
+
re.splice(M === void 0 ? re.length : M, 0, ...R), j();
|
|
4039
4039
|
for (const F of R) le("addSlide", F), B(F);
|
|
4040
4040
|
return Tt(Ce), R;
|
|
4041
4041
|
}
|
|
@@ -4043,43 +4043,43 @@ const so = (e, t = {}, n = {}) => {
|
|
|
4043
4043
|
return (Ie(k) || k instanceof HTMLElement) && (k = { html: k }), Object.assign({ index: -1, el: void 0, class: "", isVirtual: !0, dim: 0, pos: 0, offset: 0, html: "", src: "" }, k);
|
|
4044
4044
|
}
|
|
4045
4045
|
function B(k) {
|
|
4046
|
-
let
|
|
4047
|
-
if (!k || !
|
|
4046
|
+
let M = k.el;
|
|
4047
|
+
if (!k || !M) return;
|
|
4048
4048
|
const R = k.html ? k.html instanceof HTMLElement ? k.html : Ft(k.html) : void 0;
|
|
4049
|
-
R && (de(R, "f-html"), k.htmlEl = R, de(
|
|
4049
|
+
R && (de(R, "f-html"), k.htmlEl = R, de(M, "has-html"), M.append(R), le("contentReady", k));
|
|
4050
4050
|
}
|
|
4051
4051
|
function w(k) {
|
|
4052
4052
|
if (!f || !k) return;
|
|
4053
|
-
let
|
|
4054
|
-
if (
|
|
4055
|
-
if (
|
|
4053
|
+
let M = k.el;
|
|
4054
|
+
if (M) {
|
|
4055
|
+
if (M.setAttribute("index", k.index + ""), M.parentElement !== f) {
|
|
4056
4056
|
let R;
|
|
4057
|
-
de(
|
|
4057
|
+
de(M, d.classes.slide), de(M, k.class), ue(k);
|
|
4058
4058
|
for (const F of re) if (F.index > k.index) {
|
|
4059
4059
|
R = F.el;
|
|
4060
4060
|
break;
|
|
4061
4061
|
}
|
|
4062
|
-
f.insertBefore(
|
|
4062
|
+
f.insertBefore(M, R && f.contains(R) ? R : null), le("attachSlideEl", k);
|
|
4063
4063
|
}
|
|
4064
|
-
return Ot(k),
|
|
4064
|
+
return Ot(k), M;
|
|
4065
4065
|
}
|
|
4066
4066
|
}
|
|
4067
4067
|
function E(k) {
|
|
4068
|
-
const
|
|
4069
|
-
|
|
4068
|
+
const M = k?.el;
|
|
4069
|
+
M && (M.remove(), T(M), le("detachSlideEl", k));
|
|
4070
4070
|
}
|
|
4071
4071
|
function j() {
|
|
4072
4072
|
for (let k = 0; k < re.length; k++) {
|
|
4073
|
-
const
|
|
4074
|
-
R && (
|
|
4073
|
+
const M = re[k], R = M.el;
|
|
4074
|
+
R && (M.index !== k && T(R), R.setAttribute("index", `${k}`)), M.index = k;
|
|
4075
4075
|
}
|
|
4076
4076
|
}
|
|
4077
4077
|
function H() {
|
|
4078
|
-
var k,
|
|
4078
|
+
var k, M, R, F, q;
|
|
4079
4079
|
if (!c || !f) return;
|
|
4080
|
-
|
|
4080
|
+
b = W("rtl"), h = W("vertical"), S = h ? "height" : "width";
|
|
4081
4081
|
const z = W("classes");
|
|
4082
|
-
if (it(c, z.isLTR, !
|
|
4082
|
+
if (it(c, z.isLTR, !b), it(c, z.isRTL, b), it(c, z.isHorizontal, !h), it(c, z.isVertical, h), it(c, z.hasAdaptiveHeight, W("adaptiveHeight")), v = 0, m = 0, x = 0, pe = 0, f) {
|
|
4083
4083
|
f.childElementCount || (f.style.display = "grid");
|
|
4084
4084
|
const X = f.getBoundingClientRect();
|
|
4085
4085
|
v = f.getBoundingClientRect()[S] || 0;
|
|
@@ -4109,7 +4109,7 @@ const so = (e, t = {}, n = {}) => {
|
|
|
4109
4109
|
const X = We();
|
|
4110
4110
|
let fe = v + m + x;
|
|
4111
4111
|
for (let ge = 0; ge < D.length; ge++) {
|
|
4112
|
-
const be = ((
|
|
4112
|
+
const be = ((M = D[ge]) === null || M === void 0 ? void 0 : M.dim) + pe;
|
|
4113
4113
|
if (X - be < fe && X - be - fe < be) {
|
|
4114
4114
|
p = !1;
|
|
4115
4115
|
break;
|
|
@@ -4142,12 +4142,12 @@ const so = (e, t = {}, n = {}) => {
|
|
|
4142
4142
|
var X;
|
|
4143
4143
|
s = void 0, $ = W("initialPage");
|
|
4144
4144
|
const fe = W("initialSlide") || void 0;
|
|
4145
|
-
fe !== void 0 && ($ = Se.getPageIndex(fe) || 0), $ = Oe(0, $, I.length - 1),
|
|
4145
|
+
fe !== void 0 && ($ = Se.getPageIndex(fe) || 0), $ = Oe(0, $, I.length - 1), y = ((X = I[$]) === null || X === void 0 ? void 0 : X.pos) || 0, Q = y;
|
|
4146
4146
|
})() : Q = ((q = I[$ || 0]) === null || q === void 0 ? void 0 : q.pos) || 0, le("refresh"), bt();
|
|
4147
4147
|
}
|
|
4148
4148
|
function T(k) {
|
|
4149
4149
|
if (!k || !mn(k)) return;
|
|
4150
|
-
const
|
|
4150
|
+
const M = parseInt(k.getAttribute("index") || "-1");
|
|
4151
4151
|
let R = "";
|
|
4152
4152
|
for (const q of Array.from(k.classList)) {
|
|
4153
4153
|
const z = q.match(/^f-(\w+)(Out|In)$/);
|
|
@@ -4155,20 +4155,20 @@ const so = (e, t = {}, n = {}) => {
|
|
|
4155
4155
|
}
|
|
4156
4156
|
if (!k || !R) return;
|
|
4157
4157
|
const F = [`f-${R}Out`, `f-${R}In`, "to-prev", "to-next", "from-prev", "from-next"];
|
|
4158
|
-
k.removeEventListener("animationend", Z), ot(k, F.join(" ")), V.delete(
|
|
4158
|
+
k.removeEventListener("animationend", Z), ot(k, F.join(" ")), V.delete(M);
|
|
4159
4159
|
}
|
|
4160
4160
|
function O() {
|
|
4161
4161
|
if (!f) return;
|
|
4162
4162
|
const k = V.size > 0;
|
|
4163
|
-
for (const
|
|
4163
|
+
for (const M of D) T(M.el);
|
|
4164
4164
|
V.clear(), k && Le();
|
|
4165
4165
|
}
|
|
4166
4166
|
function Z(k) {
|
|
4167
|
-
var
|
|
4168
|
-
((
|
|
4167
|
+
var M;
|
|
4168
|
+
((M = k.animationName) === null || M === void 0 ? void 0 : M.substring(0, 2)) === "f-" && (T(k.target), V.size || (ot(c, "in-transition"), !L && Math.abs(Se.getPosition(!0) - Q) < 0.5 && (L = !0, le("settle"))), Le());
|
|
4169
4169
|
}
|
|
4170
4170
|
function Y(k) {
|
|
4171
|
-
var
|
|
4171
|
+
var M;
|
|
4172
4172
|
if (k.defaultPrevented) return;
|
|
4173
4173
|
const R = k.composedPath()[0];
|
|
4174
4174
|
if (R.closest("[data-carousel-go-prev]")) return Kt(k), void Se.prev();
|
|
@@ -4177,7 +4177,7 @@ const so = (e, t = {}, n = {}) => {
|
|
|
4177
4177
|
if (F) return Kt(k), void Se.goTo(parseFloat(F.dataset.carouselGoTo || "") || 0);
|
|
4178
4178
|
if (R.closest("[data-carousel-download]")) {
|
|
4179
4179
|
Kt(k);
|
|
4180
|
-
const q = (
|
|
4180
|
+
const q = (M = I[$]) === null || M === void 0 ? void 0 : M.slides[0];
|
|
4181
4181
|
if (q && (q.downloadSrc || q.type === "image" && q.src)) {
|
|
4182
4182
|
const z = q.downloadFilename, G = document.createElement("a"), X = q.downloadSrc || q.src || "";
|
|
4183
4183
|
G.href = X, G.target = "_blank", G.download = z || X, G.click();
|
|
@@ -4187,18 +4187,18 @@ const so = (e, t = {}, n = {}) => {
|
|
|
4187
4187
|
le("click", k);
|
|
4188
4188
|
}
|
|
4189
4189
|
function ne(k) {
|
|
4190
|
-
var
|
|
4190
|
+
var M;
|
|
4191
4191
|
const R = k.el;
|
|
4192
|
-
R && ((
|
|
4192
|
+
R && ((M = R.querySelector(".f-spinner")) === null || M === void 0 || M.remove());
|
|
4193
4193
|
}
|
|
4194
4194
|
function K(k) {
|
|
4195
|
-
var
|
|
4195
|
+
var M;
|
|
4196
4196
|
const R = k.el;
|
|
4197
|
-
R && ((
|
|
4197
|
+
R && ((M = R.querySelector(".f-html.is-error")) === null || M === void 0 || M.remove(), ot(R, "has-error"));
|
|
4198
4198
|
}
|
|
4199
4199
|
function ue(k) {
|
|
4200
|
-
var
|
|
4201
|
-
k || (k = (
|
|
4200
|
+
var M;
|
|
4201
|
+
k || (k = (M = I[$]) === null || M === void 0 ? void 0 : M.slides[0]);
|
|
4202
4202
|
const R = k?.el;
|
|
4203
4203
|
if (!R) return;
|
|
4204
4204
|
let F = W("formatCaption", k);
|
|
@@ -4218,9 +4218,9 @@ const so = (e, t = {}, n = {}) => {
|
|
|
4218
4218
|
const G = `f-caption-${$s}_${k.index}`;
|
|
4219
4219
|
z.setAttribute("id", G), z.dataset.selectable = "true", de(R, "has-caption"), R.setAttribute("aria-labelledby", G), k.captionEl = z, R.insertAdjacentElement("beforeend", z);
|
|
4220
4220
|
}
|
|
4221
|
-
function Te(k,
|
|
4221
|
+
function Te(k, M = {}) {
|
|
4222
4222
|
var R, F;
|
|
4223
|
-
let { transition: q, tween: z } = Object.assign({ transition: d.transition, tween: d.tween },
|
|
4223
|
+
let { transition: q, tween: z } = Object.assign({ transition: d.transition, tween: d.tween }, M || {});
|
|
4224
4224
|
if (!c || !r) return;
|
|
4225
4225
|
const G = I.length;
|
|
4226
4226
|
if (!G || (function(ge, be) {
|
|
@@ -4230,30 +4230,30 @@ const so = (e, t = {}, n = {}) => {
|
|
|
4230
4230
|
if (m > 0.5 || x > 0.5) return;
|
|
4231
4231
|
const Ge = I.length;
|
|
4232
4232
|
let Ye = ge > $ ? 1 : -1;
|
|
4233
|
-
ge = p ? (ge % Ge + Ge) % Ge : Oe(0, ge, Ge - 1),
|
|
4233
|
+
ge = p ? (ge % Ge + Ge) % Ge : Oe(0, ge, Ge - 1), b && (Ye *= -1);
|
|
4234
4234
|
const at = (Ae = I[$]) === null || Ae === void 0 ? void 0 : Ae.slides[0], dt = at?.index, Ve = (He = I[ge]) === null || He === void 0 ? void 0 : He.slides[0], nt = Ve?.index, ss = (Be = I[ge]) === null || Be === void 0 ? void 0 : Be.pos;
|
|
4235
|
-
if (nt === void 0 || dt === void 0 || dt === nt ||
|
|
4236
|
-
|
|
4235
|
+
if (nt === void 0 || dt === void 0 || dt === nt || y === ss || Math.abs(v - (Ve?.dim || 0)) > 1) return !1;
|
|
4236
|
+
L = !1, r.pause(), O(), de(c, "in-transition"), y = Q = ss;
|
|
4237
4237
|
const ln = w(at), cn = w(Ve);
|
|
4238
4238
|
return yt(), ln && (V.add(dt), ln.style.transform = "", ln.addEventListener("animationend", Z), ot(ln, d.classes.isSelected), ln.inert = !1, de(ln, `f-${be}Out to-${Ye > 0 ? "next" : "prev"}`)), cn && (V.add(nt), cn.style.transform = "", cn.addEventListener("animationend", Z), de(cn, d.classes.isSelected), cn.inert = !1, de(cn, `f-${be}In from-${Ye > 0 ? "prev" : "next"}`)), Le(), !0;
|
|
4239
4239
|
})(k, q)) return;
|
|
4240
4240
|
k = p ? (k % G + G) % G : Oe(0, k, G - 1), Q = ((R = I[k || 0]) === null || R === void 0 ? void 0 : R.pos) || 0;
|
|
4241
|
-
const fe = r.isRunning() ? r.getEndValues().pos :
|
|
4242
|
-
if (Math.abs(Q - fe) < 1) return
|
|
4241
|
+
const fe = r.isRunning() ? r.getEndValues().pos : y;
|
|
4242
|
+
if (Math.abs(Q - fe) < 1) return y = Q, $ !== k && (ue(), s = $, $ = k, bt(), Ot(), le("change", $, s)), Le(), void (L || (L = !0, le("settle")));
|
|
4243
4243
|
if (r.pause(), O(), p) {
|
|
4244
4244
|
const ge = We(), be = Math.floor((fe - ((F = I[0]) === null || F === void 0 ? void 0 : F.pos)) / ge) || 0, Ae = Q + be * ge;
|
|
4245
4245
|
Q = [Ae + ge, Ae, Ae - ge].reduce(function(He, Be) {
|
|
4246
4246
|
return Math.abs(Be - fe) < Math.abs(He - fe) ? Be : He;
|
|
4247
4247
|
});
|
|
4248
4248
|
}
|
|
4249
|
-
q !== !1 && tt(z) ? r.spring(ft({}, d.tween, z)).from({ pos:
|
|
4249
|
+
q !== !1 && tt(z) ? r.spring(ft({}, d.tween, z)).from({ pos: y }).to({ pos: Q }).start() : (y = Q, yt(), Le(), L || (L = !0, le("settle")));
|
|
4250
4250
|
}
|
|
4251
4251
|
function _e(k) {
|
|
4252
|
-
var
|
|
4253
|
-
let R =
|
|
4252
|
+
var M;
|
|
4253
|
+
let R = y;
|
|
4254
4254
|
if (p && k !== !0) {
|
|
4255
4255
|
const F = We();
|
|
4256
|
-
R -= (Math.floor((
|
|
4256
|
+
R -= (Math.floor((y - ((M = I[0]) === null || M === void 0 ? void 0 : M.pos) || 0) / F) || 0) * F;
|
|
4257
4257
|
}
|
|
4258
4258
|
return R;
|
|
4259
4259
|
}
|
|
@@ -4261,37 +4261,37 @@ const so = (e, t = {}, n = {}) => {
|
|
|
4261
4261
|
var k;
|
|
4262
4262
|
if (!c || !f) return;
|
|
4263
4263
|
N = A();
|
|
4264
|
-
const
|
|
4264
|
+
const M = /* @__PURE__ */ new Set(), R = [], F = I[$], q = d.setTransform;
|
|
4265
4265
|
let z;
|
|
4266
4266
|
for (const G of D) {
|
|
4267
4267
|
const X = V.has(G.index), fe = N.indexOf(G) > -1, ge = ((k = F?.slides) === null || k === void 0 ? void 0 : k.indexOf(G)) > -1;
|
|
4268
4268
|
if (G.isVirtual && !X && !fe) continue;
|
|
4269
4269
|
let be = w(G);
|
|
4270
|
-
if (be && (R.push(G), ge &&
|
|
4270
|
+
if (be && (R.push(G), ge && M.add(be), W("adaptiveHeight") && ge)) {
|
|
4271
4271
|
const Ae = (be.lastElementChild || be).getBoundingClientRect().height;
|
|
4272
4272
|
z = z == null ? Ae : Math.max(z, Ae);
|
|
4273
4273
|
}
|
|
4274
4274
|
}
|
|
4275
4275
|
f && z && (f.style.height = `${z}px`), [...xo(f, `.${d.classes.slide}`)].forEach((G) => {
|
|
4276
|
-
it(G, d.classes.isSelected,
|
|
4276
|
+
it(G, d.classes.isSelected, M.has(G));
|
|
4277
4277
|
const X = re[parseInt(G.getAttribute("index") || "-1")];
|
|
4278
4278
|
if (!X) return G.remove(), void T(G);
|
|
4279
4279
|
const fe = V.has(X.index), ge = N.indexOf(X) > -1;
|
|
4280
4280
|
if (X.isVirtual && !fe && !ge) return void E(X);
|
|
4281
4281
|
if (G.inert = !ge, q === !1) return;
|
|
4282
4282
|
let be = X.pos ? Math.round(1e4 * X.pos) / 1e4 : 0, Ae = 0, He = 0, Be = 0, Ge = 0;
|
|
4283
|
-
fe || (Ae = h ? 0 :
|
|
4283
|
+
fe || (Ae = h ? 0 : b ? -1 * be : be, He = h ? be : 0, Be = no(Ae, 0, X.dim, 0, 100), Ge = no(He, 0, X.dim, 0, 100)), q instanceof Function && !fe ? q(Se, X, { x: Ae, y: He, xPercent: Be, yPercent: Ge }) : G.style.transform = Ae || He ? `translate3d(${Be}%, ${Ge}%,0)` : "";
|
|
4284
4284
|
}), le("render", R);
|
|
4285
4285
|
}
|
|
4286
4286
|
function Pe() {
|
|
4287
4287
|
c?.removeEventListener("click", Y), document.removeEventListener("mousemove", De), V.clear(), a?.disconnect(), a = void 0;
|
|
4288
4288
|
for (const k of re) {
|
|
4289
|
-
let
|
|
4290
|
-
|
|
4289
|
+
let M = k.el;
|
|
4290
|
+
M && mn(M) && (k.state = void 0, ne(k), K(k), k.isVirtual ? (E(k), k.el = void 0) : (T(M), M.style.transform = "", f && !f.contains(M) && f.appendChild(M)));
|
|
4291
4291
|
}
|
|
4292
4292
|
for (const k of Object.values(g)) k?.destroy();
|
|
4293
4293
|
g = {}, o?.destroy(), o = void 0, r?.destroy(), r = void 0;
|
|
4294
|
-
for (const [k,
|
|
4294
|
+
for (const [k, M] of Object.entries(d.classes || {})) k !== "container" && ot(c, M);
|
|
4295
4295
|
ot(f, "is-draggable");
|
|
4296
4296
|
}
|
|
4297
4297
|
function Re() {
|
|
@@ -4300,15 +4300,15 @@ const so = (e, t = {}, n = {}) => {
|
|
|
4300
4300
|
function je() {
|
|
4301
4301
|
return p || $ < I.length - 1;
|
|
4302
4302
|
}
|
|
4303
|
-
const Se = { add: function(k,
|
|
4303
|
+
const Se = { add: function(k, M) {
|
|
4304
4304
|
var R;
|
|
4305
|
-
let F =
|
|
4306
|
-
const q = $, z = We(), G = r?.isRunning() ? r.getEndValues().pos :
|
|
4307
|
-
return U(k,
|
|
4305
|
+
let F = y;
|
|
4306
|
+
const q = $, z = We(), G = r?.isRunning() ? r.getEndValues().pos : y, X = z && Math.floor((G - (((R = I[0]) === null || R === void 0 ? void 0 : R.pos) || 0)) / z) || 0;
|
|
4307
|
+
return U(k, M), Tt(Ce), H(), r && z && (q === $ && (F -= X * z), F === Q ? y = Q : r.spring({ clamp: !0, mass: 1, tension: 300, friction: 25, restDelta: 1, restSpeed: 1 }).from({ pos: F }).to({ pos: Q }).start()), Le(), Se;
|
|
4308
4308
|
}, canGoPrev: Re, canGoNext: je, destroy: function() {
|
|
4309
4309
|
return le("destroy"), window.removeEventListener("resize", Ee), Pe(), me.clear(), c = null, I = [], re = [], d = Object.assign({}, pn), g = {}, D = [], l = void 0, Ce = "*", i = 2, Se;
|
|
4310
4310
|
}, emit: le, filter: function(k = "*") {
|
|
4311
|
-
return Tt(k), H(),
|
|
4311
|
+
return Tt(k), H(), y = Oe(ce, y, J), Le(), le("filter", k), Se;
|
|
4312
4312
|
}, getContainer: function() {
|
|
4313
4313
|
return c;
|
|
4314
4314
|
}, getGapDim: Ht, getGestures: function() {
|
|
@@ -4323,18 +4323,18 @@ const so = (e, t = {}, n = {}) => {
|
|
|
4323
4323
|
return I[$];
|
|
4324
4324
|
}, getPageIndex: function(k) {
|
|
4325
4325
|
if (k !== void 0) {
|
|
4326
|
-
for (const
|
|
4326
|
+
for (const M of I || []) for (const R of M.slides) if (R.index === k) return M.index;
|
|
4327
4327
|
return -1;
|
|
4328
4328
|
}
|
|
4329
4329
|
return $;
|
|
4330
|
-
}, getPageIndexFromPosition: ut, getPageProgress: function(k,
|
|
4330
|
+
}, getPageIndexFromPosition: ut, getPageProgress: function(k, M) {
|
|
4331
4331
|
var R;
|
|
4332
4332
|
k === void 0 && (k = $);
|
|
4333
4333
|
const F = I[k];
|
|
4334
4334
|
if (!F) return k > $ ? -1 : 1;
|
|
4335
4335
|
const q = We(), z = Ht();
|
|
4336
4336
|
let G = F.pos, X = _e();
|
|
4337
|
-
if (p &&
|
|
4337
|
+
if (p && M !== !0) {
|
|
4338
4338
|
const fe = Math.floor((X - ((R = I[0]) === null || R === void 0 ? void 0 : R.pos)) / q) || 0;
|
|
4339
4339
|
X -= fe * q, G = [G + q, G, G - q].reduce(function(ge, be) {
|
|
4340
4340
|
return Math.abs(be - X) < Math.abs(ge - X) ? be : ge;
|
|
@@ -4342,14 +4342,14 @@ const so = (e, t = {}, n = {}) => {
|
|
|
4342
4342
|
}
|
|
4343
4343
|
return (X - G) / (F.dim + z) || 0;
|
|
4344
4344
|
}, getPageVisibility: function(k) {
|
|
4345
|
-
var
|
|
4345
|
+
var M;
|
|
4346
4346
|
k === void 0 && (k = $);
|
|
4347
4347
|
const R = I[k];
|
|
4348
4348
|
if (!R) return k > $ ? -1 : 1;
|
|
4349
4349
|
const F = _e(), q = Je();
|
|
4350
4350
|
let z = R.pos;
|
|
4351
4351
|
if (p) {
|
|
4352
|
-
const G = We(), X = z + (Math.floor((F - ((
|
|
4352
|
+
const G = We(), X = z + (Math.floor((F - ((M = I[0]) === null || M === void 0 ? void 0 : M.pos)) / G) || 0) * G;
|
|
4353
4353
|
z = [X + G, X, X - G].reduce(function(fe, ge) {
|
|
4354
4354
|
return Math.abs(ge - F) < Math.abs(fe - F) ? ge : fe;
|
|
4355
4355
|
});
|
|
@@ -4379,44 +4379,44 @@ const so = (e, t = {}, n = {}) => {
|
|
|
4379
4379
|
}, isInTransition: function() {
|
|
4380
4380
|
return V.size > 0;
|
|
4381
4381
|
}, isRTL: function() {
|
|
4382
|
-
return
|
|
4382
|
+
return b;
|
|
4383
4383
|
}, isSettled: function() {
|
|
4384
|
-
return
|
|
4384
|
+
return L;
|
|
4385
4385
|
}, isVertical: function() {
|
|
4386
4386
|
return h;
|
|
4387
4387
|
}, localize: ye, next: function(k = {}) {
|
|
4388
4388
|
return Te($ + 1, k), Se;
|
|
4389
|
-
}, off: function(k,
|
|
4390
|
-
for (const R of k instanceof Array ? k : [k]) me.has(R) && me.set(R, me.get(R).filter((F) => F !==
|
|
4389
|
+
}, off: function(k, M) {
|
|
4390
|
+
for (const R of k instanceof Array ? k : [k]) me.has(R) && me.set(R, me.get(R).filter((F) => F !== M));
|
|
4391
4391
|
return Se;
|
|
4392
|
-
}, on: function(k,
|
|
4393
|
-
for (const R of k instanceof Array ? k : [k]) me.set(R, [...me.get(R) || [],
|
|
4392
|
+
}, on: function(k, M) {
|
|
4393
|
+
for (const R of k instanceof Array ? k : [k]) me.set(R, [...me.get(R) || [], M]);
|
|
4394
4394
|
return Se;
|
|
4395
4395
|
}, prev: function(k = {}) {
|
|
4396
4396
|
return Te($ - 1, k), Se;
|
|
4397
|
-
}, reInit: function(k = {},
|
|
4398
|
-
return Pe(), i = 0, l = void 0, Ce = "*", t = k, u = k, tt(
|
|
4397
|
+
}, reInit: function(k = {}, M) {
|
|
4398
|
+
return Pe(), i = 0, l = void 0, Ce = "*", t = k, u = k, tt(M) && (n = M), Ee(), Se;
|
|
4399
4399
|
}, remove: function(k) {
|
|
4400
4400
|
k === void 0 && (k = re.length - 1);
|
|
4401
|
-
const
|
|
4402
|
-
return
|
|
4401
|
+
const M = re[k];
|
|
4402
|
+
return M && (le("removeSlide", M), M.el && (T(M.el), M.el.remove(), M.el = void 0), re.splice(k, 1), Tt(Ce), H(), y = Oe(ce, y, J), Le()), Se;
|
|
4403
4403
|
}, setPosition: function(k) {
|
|
4404
|
-
|
|
4405
|
-
}, showError: function(k,
|
|
4404
|
+
y = k, yt(), Le();
|
|
4405
|
+
}, showError: function(k, M) {
|
|
4406
4406
|
if (i === 1) {
|
|
4407
4407
|
ne(k), K(k);
|
|
4408
4408
|
const R = k.el;
|
|
4409
4409
|
if (R) {
|
|
4410
4410
|
const F = document.createElement("div");
|
|
4411
|
-
de(F, "f-html"), de(F, "is-error"), F.innerHTML = ye(
|
|
4411
|
+
de(F, "f-html"), de(F, "is-error"), F.innerHTML = ye(M || "<p>{{ERROR}}</p>"), k.htmlEl = F, de(R, "has-html has-error"), R.insertAdjacentElement("afterbegin", F), le("contentReady", k);
|
|
4412
4412
|
}
|
|
4413
4413
|
}
|
|
4414
4414
|
return Se;
|
|
4415
4415
|
}, showLoading: function(k) {
|
|
4416
|
-
const
|
|
4417
|
-
if (!
|
|
4416
|
+
const M = k.el, R = M?.querySelector(".f-spinner");
|
|
4417
|
+
if (!M || R) return Se;
|
|
4418
4418
|
const F = W("spinnerTpl"), q = Ft(F);
|
|
4419
|
-
return q && (de(q, "f-spinner"),
|
|
4419
|
+
return q && (de(q, "f-spinner"), M.insertAdjacentElement("beforeend", q)), Se;
|
|
4420
4420
|
}, version: "6.1.13" };
|
|
4421
4421
|
return Se;
|
|
4422
4422
|
};
|
|
@@ -4455,15 +4455,15 @@ const Ls = { tpl: (e) => `<img class="f-panzoom__content"
|
|
|
4455
4455
|
const f = g.src || g.lazySrc || "", v = g.alt || g.caption || `Image #${g.index}`, m = g.srcset || g.lazySrcset || "", x = g.sizes || g.lazySizes || "";
|
|
4456
4456
|
if (f && Ie(f) && !g.html && (!g.type || g.type === "image")) {
|
|
4457
4457
|
g.type = "image", g.thumbSrc = g.thumbSrc || f;
|
|
4458
|
-
let
|
|
4459
|
-
|
|
4458
|
+
let y = t("tpl", g);
|
|
4459
|
+
y = en(y, "{{src}}", f + ""), y = en(y, "{{srcset}}", m + ""), y = en(y, "{{sizes}}", x + ""), c.insertAdjacentHTML("afterbegin", y);
|
|
4460
4460
|
}
|
|
4461
4461
|
const p = c.querySelector(".f-panzoom__content");
|
|
4462
4462
|
if (!p) return;
|
|
4463
4463
|
p.setAttribute("alt", v + "");
|
|
4464
|
-
const
|
|
4465
|
-
S.on("*", (
|
|
4466
|
-
e && (
|
|
4464
|
+
const b = g.width && g.width !== "auto" ? parseFloat(g.width + "") : "auto", h = g.height && g.height !== "auto" ? parseFloat(g.height + "") : "auto", S = Ho(c, Object.assign({ width: b, height: h, classes: { container: "f-zoomable" }, event: () => e?.getLastMouseMove(), spinnerTpl: () => e?.getOption("spinnerTpl") || "" }, t("Panzoom")));
|
|
4465
|
+
S.on("*", (y, L, ...$) => {
|
|
4466
|
+
e && (L === "loading" && (g.state = 0), L === "loaded" && (g.state = 1), L === "error" && (g.state = 2, e?.showError(g, "{{IMAGE_ERROR}}")), e.emit(`panzoom:${L}`, g, ...$), L === "loading" && e.emit("contentLoading", g), L === "ready" && e.emit("contentReady", g), g.index === e?.getPageIndex() && i());
|
|
4467
4467
|
}), g.panzoomRef = S;
|
|
4468
4468
|
}
|
|
4469
4469
|
function s(d, g) {
|
|
@@ -4539,7 +4539,7 @@ const Ms = { syncOnChange: !1, syncOnClick: !0, syncOnHover: !1 }, oa = () => {
|
|
|
4539
4539
|
if (!x) return;
|
|
4540
4540
|
const p = x ? v.target.closest(`.${x}`) : null;
|
|
4541
4541
|
if (p) {
|
|
4542
|
-
const
|
|
4542
|
+
const b = parseInt(p.getAttribute("index") || "") || 0, h = t.getPageIndex(b);
|
|
4543
4543
|
t.goTo(h);
|
|
4544
4544
|
}
|
|
4545
4545
|
}
|
|
@@ -4675,8 +4675,8 @@ const Ds = Object.assign({ counter: { tpl: '<div class="f-counter"><span data-ca
|
|
|
4675
4675
|
t = a.querySelector(".f-carousel__toolbar") || void 0, t || (t = document.createElement("div"), de(t, "f-carousel__toolbar"));
|
|
4676
4676
|
const v = n("display"), m = ft({}, Ds, n("items"));
|
|
4677
4677
|
for (const x of ["left", "middle", "right"]) {
|
|
4678
|
-
const p = v[x] || [],
|
|
4679
|
-
de(
|
|
4678
|
+
const p = v[x] || [], b = document.createElement("div");
|
|
4679
|
+
de(b, `f-carousel__toolbar__column is-${x}`);
|
|
4680
4680
|
for (const h of p) {
|
|
4681
4681
|
let S;
|
|
4682
4682
|
if (Ie(h)) {
|
|
@@ -4684,15 +4684,15 @@ const Ds = Object.assign({ counter: { tpl: '<div class="f-counter"><span data-ca
|
|
|
4684
4684
|
S = m[h];
|
|
4685
4685
|
}
|
|
4686
4686
|
if (tt(h) && (S = h), S && S.tpl) {
|
|
4687
|
-
let
|
|
4688
|
-
|
|
4689
|
-
const
|
|
4690
|
-
|
|
4687
|
+
let y = e.localize(S.tpl);
|
|
4688
|
+
y = y.split("<svg>").join('<svg tabindex="-1" width="24" height="24" viewBox="0 0 24 24">');
|
|
4689
|
+
const L = Ft(y);
|
|
4690
|
+
L && (typeof S.click == "function" && e && L.addEventListener("click", ($) => {
|
|
4691
4691
|
$.preventDefault(), $.stopPropagation(), typeof S.click == "function" && e && S.click(e, $);
|
|
4692
|
-
}),
|
|
4692
|
+
}), b.append(L));
|
|
4693
4693
|
}
|
|
4694
4694
|
}
|
|
4695
|
-
t.append(
|
|
4695
|
+
t.append(b);
|
|
4696
4696
|
}
|
|
4697
4697
|
if (t.childElementCount) {
|
|
4698
4698
|
if (l && de(t, "is-absolute"), !t.parentElement) {
|
|
@@ -4714,9 +4714,9 @@ const Ds = Object.assign({ counter: { tpl: '<div class="f-counter"><span data-ca
|
|
|
4714
4714
|
};
|
|
4715
4715
|
const Hs = { autoStart: !0, pauseOnHover: !0, showProgressbar: !0, timeout: 2e3 }, Uc = () => {
|
|
4716
4716
|
let e, t, n = !1, o = !1, r = !1, a = null;
|
|
4717
|
-
function s(
|
|
4718
|
-
const
|
|
4719
|
-
let $ = (tt(
|
|
4717
|
+
function s(y) {
|
|
4718
|
+
const L = e?.getOptions().Autoplay;
|
|
4719
|
+
let $ = (tt(L) ? Object.assign(Object.assign({}, Hs), L) : Hs)[y];
|
|
4720
4720
|
return $ && typeof $ == "function" && e ? $(e) : $;
|
|
4721
4721
|
}
|
|
4722
4722
|
function l() {
|
|
@@ -4724,16 +4724,16 @@ const Hs = { autoStart: !0, pauseOnHover: !0, showProgressbar: !0, timeout: 2e3
|
|
|
4724
4724
|
}
|
|
4725
4725
|
function i() {
|
|
4726
4726
|
if (!e || !n || r || o || t || !e.isSettled() || (function() {
|
|
4727
|
-
var
|
|
4728
|
-
const $ = ((
|
|
4727
|
+
var L;
|
|
4728
|
+
const $ = ((L = e?.getPage()) === null || L === void 0 ? void 0 : L.slides) || [];
|
|
4729
4729
|
for (const Q of $) if (Q.state === 0) return !0;
|
|
4730
4730
|
return !1;
|
|
4731
4731
|
})()) return;
|
|
4732
4732
|
(function() {
|
|
4733
|
-
var
|
|
4733
|
+
var L, $, Q, ce;
|
|
4734
4734
|
if (!e || (g(), !s("showProgressbar"))) return;
|
|
4735
4735
|
let J = s("progressbarParentEl");
|
|
4736
|
-
if (!J && (!((
|
|
4736
|
+
if (!J && (!((L = e.getPlugins().Toolbar) === null || L === void 0) && L.isEnabled()) && (J = e.getContainer()), !J && (($ = e.getPlugins().Toolbar) === null || $ === void 0 ? void 0 : $.isEnabled()) !== !0) {
|
|
4737
4737
|
const re = ((Q = e.getPages()[0]) === null || Q === void 0 ? void 0 : Q.slides) || [], D = ((ce = e.getPage()) === null || ce === void 0 ? void 0 : ce.slides) || [];
|
|
4738
4738
|
re.length === 1 && D.length === 1 && (J = D[0].el);
|
|
4739
4739
|
}
|
|
@@ -4742,25 +4742,25 @@ const Hs = { autoStart: !0, pauseOnHover: !0, showProgressbar: !0, timeout: 2e3
|
|
|
4742
4742
|
const Ce = s("timeout") || 1e3;
|
|
4743
4743
|
a.style.animationDuration = `${Ce}ms`;
|
|
4744
4744
|
})();
|
|
4745
|
-
const
|
|
4745
|
+
const y = s("timeout");
|
|
4746
4746
|
t = setTimeout(() => {
|
|
4747
4747
|
e && n && !o && (e.isInfinite() || e.getPageIndex() !== e.getPages().length - 1 ? e.next() : e.goTo(0));
|
|
4748
|
-
},
|
|
4748
|
+
}, y);
|
|
4749
4749
|
}
|
|
4750
4750
|
function u() {
|
|
4751
|
-
var
|
|
4751
|
+
var y;
|
|
4752
4752
|
if (!e || e.getPages().length < 2 || e.getOptions().Autoplay === !1 || n) return;
|
|
4753
|
-
n = !0, e.emit("autoplay:start", s("timeout")), de(e.getContainer(), "has-autoplay"), (
|
|
4754
|
-
const
|
|
4755
|
-
|
|
4753
|
+
n = !0, e.emit("autoplay:start", s("timeout")), de(e.getContainer(), "has-autoplay"), (y = e.getTween()) === null || y === void 0 || y.on("start", p);
|
|
4754
|
+
const L = e?.getContainer();
|
|
4755
|
+
L && s("pauseOnHover") && matchMedia("(hover: hover)").matches && (L.addEventListener("mouseenter", b, !1), L.addEventListener("mouseleave", h, !1)), e.on("change", m), e.on("settle", x), e.on("contentReady", f), e.on("panzoom:touchStart", d), e.on("panzoom:wheel", d), e.isSettled() && i();
|
|
4756
4756
|
}
|
|
4757
4757
|
function d() {
|
|
4758
|
-
var
|
|
4758
|
+
var y;
|
|
4759
4759
|
if (l(), g(), e) {
|
|
4760
4760
|
if (n) {
|
|
4761
|
-
e.emit("autoplay:end"), (
|
|
4762
|
-
const
|
|
4763
|
-
|
|
4761
|
+
e.emit("autoplay:end"), (y = e.getTween()) === null || y === void 0 || y.off("start", p);
|
|
4762
|
+
const L = e.getContainer();
|
|
4763
|
+
L && (L.classList.remove("has-autoplay"), L.removeEventListener("mouseenter", b, !1), L.removeEventListener("mouseleave", h, !1));
|
|
4764
4764
|
}
|
|
4765
4765
|
e.off("change", m), e.off("settle", x), e.off("contentReady", f), e.off("panzoom:touchStart", d), e.off("panzoom:wheel", d);
|
|
4766
4766
|
}
|
|
@@ -4775,9 +4775,9 @@ const Hs = { autoStart: !0, pauseOnHover: !0, showProgressbar: !0, timeout: 2e3
|
|
|
4775
4775
|
function f() {
|
|
4776
4776
|
i();
|
|
4777
4777
|
}
|
|
4778
|
-
function v(
|
|
4779
|
-
const $ =
|
|
4780
|
-
$ && !
|
|
4778
|
+
function v(y, L) {
|
|
4779
|
+
const $ = L.target;
|
|
4780
|
+
$ && !L.defaultPrevented && $.dataset.autoplayAction === "toggle" && S.toggle();
|
|
4781
4781
|
}
|
|
4782
4782
|
function m() {
|
|
4783
4783
|
!e || !e?.isInfinite() && e.getPageIndex() === e.getPages().length - 1 ? d() : (g(), l());
|
|
@@ -4788,14 +4788,14 @@ const Hs = { autoStart: !0, pauseOnHover: !0, showProgressbar: !0, timeout: 2e3
|
|
|
4788
4788
|
function p() {
|
|
4789
4789
|
l(), g();
|
|
4790
4790
|
}
|
|
4791
|
-
function
|
|
4791
|
+
function b() {
|
|
4792
4792
|
r = !0, n && (g(), l());
|
|
4793
4793
|
}
|
|
4794
4794
|
function h() {
|
|
4795
4795
|
r = !1, n && !o && e?.isSettled() && i();
|
|
4796
4796
|
}
|
|
4797
|
-
const S = { init: function(
|
|
4798
|
-
e =
|
|
4797
|
+
const S = { init: function(y) {
|
|
4798
|
+
e = y, e.on("ready", c), e.on("click", v);
|
|
4799
4799
|
}, destroy: function() {
|
|
4800
4800
|
d(), e?.off("ready", c), e?.off("click", v), e = void 0;
|
|
4801
4801
|
}, isEnabled: () => n, pause: function() {
|
|
@@ -4893,7 +4893,7 @@ const Zc = () => {
|
|
|
4893
4893
|
})(), te = 4 * (a - s)), I && I.getTotalSlideDim() <= I.getViewportDim() - te ? 1 / 0 : 1;
|
|
4894
4894
|
} }, ko.Carousel || {}, i("Carousel") || {});
|
|
4895
4895
|
t = Eo(n, N, { Sync: oa, Lazyload: sa }), t.on("ready", () => {
|
|
4896
|
-
de(n, "is-syncing"), e?.emit("thumbs:ready"), d() && e?.on("render",
|
|
4896
|
+
de(n, "is-syncing"), e?.emit("thumbs:ready"), d() && e?.on("render", y);
|
|
4897
4897
|
}), t.on("destroy", () => {
|
|
4898
4898
|
e?.emit("thumbs:destroy");
|
|
4899
4899
|
}), t.init(), (D = t.getGestures()) === null || D === void 0 || D.on("start", () => {
|
|
@@ -4906,7 +4906,7 @@ const Zc = () => {
|
|
|
4906
4906
|
}
|
|
4907
4907
|
}), de(e.getContainer(), "has-thumbs"), re();
|
|
4908
4908
|
}
|
|
4909
|
-
function
|
|
4909
|
+
function b() {
|
|
4910
4910
|
u() && i("showOnStart") && (m(), x());
|
|
4911
4911
|
}
|
|
4912
4912
|
function h() {
|
|
@@ -4917,7 +4917,7 @@ const Zc = () => {
|
|
|
4917
4917
|
var D, V;
|
|
4918
4918
|
l = !0, !((D = document.activeElement) === null || D === void 0) && D.closest(".f-thumbs") && ((V = document.activeElement) === null || V === void 0 || V.blur());
|
|
4919
4919
|
}
|
|
4920
|
-
function
|
|
4920
|
+
function y() {
|
|
4921
4921
|
var D, V;
|
|
4922
4922
|
n?.classList.toggle("is-syncing", e?.hasNavigated() === !1 || ((D = e?.getTween()) === null || D === void 0 ? void 0 : D.isRunning())), re(), !((V = e?.getGestures()) === null || V === void 0) && V.isPointerDown() && (function() {
|
|
4923
4923
|
if (!d() || !e || !t || !l) return;
|
|
@@ -4929,7 +4929,7 @@ const Zc = () => {
|
|
|
4929
4929
|
W = Oe(I[0].pos, W, I[I.length - 1].pos), N.from({ pos: pe }).to({ pos: W }).start();
|
|
4930
4930
|
})();
|
|
4931
4931
|
}
|
|
4932
|
-
function
|
|
4932
|
+
function L() {
|
|
4933
4933
|
l = !0, Ce();
|
|
4934
4934
|
}
|
|
4935
4935
|
function $(D, V) {
|
|
@@ -4981,10 +4981,10 @@ const Zc = () => {
|
|
|
4981
4981
|
}
|
|
4982
4982
|
}
|
|
4983
4983
|
return { init: function(D, V) {
|
|
4984
|
-
Eo = V, e = D, e.on("ready", h), e.on("initSlides",
|
|
4984
|
+
Eo = V, e = D, e.on("ready", h), e.on("initSlides", b), e.on("change", L);
|
|
4985
4985
|
}, destroy: function() {
|
|
4986
4986
|
var D, V;
|
|
4987
|
-
g() && e?.emit("thumbs:destroy"), e?.off("ready", h), e?.off("initSlides",
|
|
4987
|
+
g() && e?.emit("thumbs:destroy"), e?.off("ready", h), e?.off("initSlides", b), e?.off("change", L), e?.off("render", y), e?.off("addSlide", $), e?.off("click", ce), e?.off("refresh", J), (D = e?.getGestures()) === null || D === void 0 || D.off("start", S), (V = e?.getContainer()) === null || V === void 0 || V.classList.remove("has-thumbs"), e = void 0, t?.destroy(), t = void 0, n?.remove(), n = void 0;
|
|
4988
4988
|
}, getCarousel: function() {
|
|
4989
4989
|
return t;
|
|
4990
4990
|
}, getContainer: function() {
|
|
@@ -5047,22 +5047,22 @@ const Vs = { autosize: !1, iframeAttr: { allow: "autoplay; fullscreen", scrollin
|
|
|
5047
5047
|
i.state = 1;
|
|
5048
5048
|
const m = g.dataset.ready !== "true";
|
|
5049
5049
|
g.dataset.ready = "true", (function(x) {
|
|
5050
|
-
const p = x.contentEl,
|
|
5051
|
-
let S = n(x, "autosize"),
|
|
5052
|
-
if (
|
|
5050
|
+
const p = x.contentEl, b = p?.parentElement, h = b?.style;
|
|
5051
|
+
let S = n(x, "autosize"), y = x.width || 0, L = x.height || 0;
|
|
5052
|
+
if (y && L && (S = !1), !!(p && b && h && S)) {
|
|
5053
5053
|
try {
|
|
5054
|
-
const $ = window.getComputedStyle(
|
|
5054
|
+
const $ = window.getComputedStyle(b), Q = parseFloat($.paddingLeft) + parseFloat($.paddingRight), ce = parseFloat($.paddingTop) + parseFloat($.paddingBottom), J = p.contentWindow;
|
|
5055
5055
|
if (J) {
|
|
5056
5056
|
const Ce = J.document, re = Ce.getElementsByTagName("html")[0], D = Ce.body;
|
|
5057
5057
|
h.width = "";
|
|
5058
5058
|
const V = window.getComputedStyle(D), N = parseFloat(V.marginLeft) + parseFloat(V.marginRight), I = D.style.overflow || "";
|
|
5059
|
-
D.style.overflow = "hidden",
|
|
5059
|
+
D.style.overflow = "hidden", y = y || D.scrollWidth + N + Q, h.flex = "0 0 auto", h.width = `${y}px`, h.height = `${D.scrollHeight}px`, D.style.overflow = I, L = Math.max(re.scrollHeight, Math.ceil(re.getBoundingClientRect().height)) + ce;
|
|
5060
5060
|
}
|
|
5061
5061
|
} catch {
|
|
5062
5062
|
}
|
|
5063
|
-
if (
|
|
5063
|
+
if (y || L) {
|
|
5064
5064
|
const $ = { flex: "0 1 auto", width: "", height: "" };
|
|
5065
|
-
|
|
5065
|
+
y && y !== "auto" && ($.width = `${y}px`), L && L !== "auto" && ($.height = `${L}px`), Object.assign(h, $);
|
|
5066
5066
|
}
|
|
5067
5067
|
}
|
|
5068
5068
|
})(i), e.hideLoading(i), m && e.emit("contentReady", i), ot(u, "is-loading");
|
|
@@ -5125,15 +5125,15 @@ const zs = (e, t = {}) => {
|
|
|
5125
5125
|
if (!m || m === "youtube") {
|
|
5126
5126
|
const x = v.match(/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(?:watch\?(?:.*&)?v=|v\/|u\/|shorts\/|embed\/?)?(videoseries\?list=(?:.*)|[\w-]{11}|\?listType=(?:.*)&list=(?:.*))(?:.*)/i);
|
|
5127
5127
|
if (x) {
|
|
5128
|
-
const p = Object.assign(Object.assign({}, n().youtube), f.youtube || {}),
|
|
5129
|
-
f.videoId = S, f.src = `https://${
|
|
5128
|
+
const p = Object.assign(Object.assign({}, n().youtube), f.youtube || {}), b = `www.youtube${p.nocookie ? "-nocookie" : ""}.com`, h = zs(v, p), S = encodeURIComponent(x[2]);
|
|
5129
|
+
f.videoId = S, f.src = `https://${b}/embed/${S}?${h}`, f.thumb = f.thumb || `https://i.ytimg.com/vi/${S}/mqdefault.jpg`, m = "youtube";
|
|
5130
5130
|
}
|
|
5131
5131
|
}
|
|
5132
5132
|
if (!m || m === "vimeo") {
|
|
5133
5133
|
const x = v.match(/^.+vimeo.com\/(?:\/)?(video\/)?([\d]+)((\/|\?h=)([a-z0-9]+))?(.*)?/);
|
|
5134
5134
|
if (x) {
|
|
5135
|
-
const p = Object.assign(Object.assign({}, n().vimeo), f.vimeo || {}),
|
|
5136
|
-
f.videoId = h, f.src = `https://player.vimeo.com/video/${h}?${S ? `h=${S}${
|
|
5135
|
+
const p = Object.assign(Object.assign({}, n().vimeo), f.vimeo || {}), b = zs(v, p), h = encodeURIComponent(x[2]), S = x[5] || "";
|
|
5136
|
+
f.videoId = h, f.src = `https://player.vimeo.com/video/${h}?${S ? `h=${S}${b ? "&" : ""}` : ""}${b}`, m = "vimeo";
|
|
5137
5137
|
}
|
|
5138
5138
|
}
|
|
5139
5139
|
f.type = m;
|
|
@@ -5142,12 +5142,12 @@ const zs = (e, t = {}) => {
|
|
|
5142
5142
|
f.type === "html5video" && (function(v) {
|
|
5143
5143
|
const m = v.el, x = v.src;
|
|
5144
5144
|
if (!e || !m || !x) return;
|
|
5145
|
-
const p = v.html5videoTpl || n().html5videoTpl,
|
|
5145
|
+
const p = v.html5videoTpl || n().html5videoTpl, b = v.html5videoFormat || n().html5videoFormat;
|
|
5146
5146
|
if (!p) return;
|
|
5147
|
-
const h = v.poster || (v.thumb && Ie(v.thumb) ? v.thumb : ""), S = Ft(p.replace(/\{\{src\}\}/gi, x + "").replace(/\{\{format\}\}/gi,
|
|
5147
|
+
const h = v.poster || (v.thumb && Ie(v.thumb) ? v.thumb : ""), S = Ft(p.replace(/\{\{src\}\}/gi, x + "").replace(/\{\{format\}\}/gi, b || "").replace(/\{\{poster\}\}/gi, h + ""));
|
|
5148
5148
|
if (!S) return;
|
|
5149
|
-
const
|
|
5150
|
-
de(
|
|
5149
|
+
const y = document.createElement("div");
|
|
5150
|
+
de(y, "f-html"), y.append(S), v.contentEl = S, v.htmlEl = y, de(m, `has-${v.type}`), m.prepend(y), d(v), e.emit("contentReady", v);
|
|
5151
5151
|
})(f), f.type !== "youtube" && f.type !== "vimeo" || (function(v) {
|
|
5152
5152
|
const m = v.el, x = v.src;
|
|
5153
5153
|
if (!e || !m || !x) return;
|
|
@@ -5160,8 +5160,8 @@ const zs = (e, t = {}) => {
|
|
|
5160
5160
|
}), p.onerror = () => {
|
|
5161
5161
|
e?.showError(v, "{{IFRAME_ERROR}}");
|
|
5162
5162
|
};
|
|
5163
|
-
const
|
|
5164
|
-
de(
|
|
5163
|
+
const b = document.createElement("div");
|
|
5164
|
+
de(b, "f-html"), b.append(p), v.contentEl = p, v.htmlEl = b, de(m, `has-html has-iframe has-${v.type}`), p.src = `${v.src}`, m.prepend(b), d(v), e.emit("contentReady", v);
|
|
5165
5165
|
})(f);
|
|
5166
5166
|
}
|
|
5167
5167
|
function l(c, f) {
|
|
@@ -5181,8 +5181,8 @@ const zs = (e, t = {}) => {
|
|
|
5181
5181
|
if (m && v?.type === "html5video") try {
|
|
5182
5182
|
const p = m.querySelector("video");
|
|
5183
5183
|
if (p) {
|
|
5184
|
-
const
|
|
5185
|
-
|
|
5184
|
+
const b = p.play();
|
|
5185
|
+
b !== void 0 && b.then(() => {
|
|
5186
5186
|
}).catch((h) => {
|
|
5187
5187
|
p.muted = !0, p.play();
|
|
5188
5188
|
});
|
|
@@ -5219,7 +5219,7 @@ const zs = (e, t = {}) => {
|
|
|
5219
5219
|
if (c.aspectRatio) {
|
|
5220
5220
|
const v = c.aspectRatio.split("/"), m = parseFloat(v[0].trim()), x = v[1] ? parseFloat(v[1].trim()) : 0, p = m && x ? m / x : m;
|
|
5221
5221
|
f.offsetHeight;
|
|
5222
|
-
const
|
|
5222
|
+
const b = f.getBoundingClientRect(), h = p < (b.width || 1) / (b.height || 1);
|
|
5223
5223
|
f.style.aspectRatio = `${c.aspectRatio}`, f.style.width = h ? "auto" : "", f.style.height = h ? "" : "auto";
|
|
5224
5224
|
}
|
|
5225
5225
|
}
|
|
@@ -5431,11 +5431,11 @@ const Gs = "with-fancybox", eu = () => {
|
|
|
5431
5431
|
return A = A.replace(/\{\{(.*?)\}\}/g, (B, w) => w);
|
|
5432
5432
|
}
|
|
5433
5433
|
const p = /* @__PURE__ */ new Map();
|
|
5434
|
-
function
|
|
5434
|
+
function b(A, ...U) {
|
|
5435
5435
|
const ie = [...p.get(A) || []];
|
|
5436
5436
|
for (const [B, w] of Object.entries(i.on || {})) (B === A || B.split(" ").indexOf(A) > -1) && ie.push(w);
|
|
5437
5437
|
for (const B of ie) B && typeof B == "function" && B(We, ...U);
|
|
5438
|
-
A !== "*" &&
|
|
5438
|
+
A !== "*" && b("*", A, ...U);
|
|
5439
5439
|
}
|
|
5440
5440
|
function h() {
|
|
5441
5441
|
ot(t, "is-revealing");
|
|
@@ -5446,7 +5446,7 @@ const Gs = "with-fancybox", eu = () => {
|
|
|
5446
5446
|
}
|
|
5447
5447
|
function S(A, U) {
|
|
5448
5448
|
var ie;
|
|
5449
|
-
he(U), D(), (ie = U.el) === null || ie === void 0 || ie.addEventListener("click",
|
|
5449
|
+
he(U), D(), (ie = U.el) === null || ie === void 0 || ie.addEventListener("click", L), U.type !== "inline" && U.type !== "clone" || (function(B) {
|
|
5450
5450
|
if (!o || !B || !B.el) return;
|
|
5451
5451
|
let w = null;
|
|
5452
5452
|
if (Ie(B.src)) {
|
|
@@ -5485,14 +5485,14 @@ const Gs = "with-fancybox", eu = () => {
|
|
|
5485
5485
|
E.open(j ? "POST" : "GET", B.src + ""), E.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"), E.setRequestHeader("X-Requested-With", "XMLHttpRequest"), E.send(j), B.xhr = E;
|
|
5486
5486
|
})(U);
|
|
5487
5487
|
}
|
|
5488
|
-
function
|
|
5488
|
+
function y(A, U) {
|
|
5489
5489
|
var ie;
|
|
5490
|
-
pe(U), (ie = U.el) === null || ie === void 0 || ie.removeEventListener("click",
|
|
5490
|
+
pe(U), (ie = U.el) === null || ie === void 0 || ie.removeEventListener("click", L), U.type !== "inline" && U.type !== "clone" || (function(B) {
|
|
5491
5491
|
const w = B.htmlEl, E = B.placeholderEl;
|
|
5492
5492
|
w && (getComputedStyle(w).getPropertyValue("display") !== "none" && (w.style.display = "none"), w.offsetHeight), E && (w && E.parentNode && E.parentNode.insertBefore(w, E), E.remove()), B.htmlEl = void 0, B.placeholderEl = void 0;
|
|
5493
5493
|
})(U), U.xhr && (U.xhr.abort(), U.xhr = void 0);
|
|
5494
5494
|
}
|
|
5495
|
-
function
|
|
5495
|
+
function L(A) {
|
|
5496
5496
|
if (!ye()) return;
|
|
5497
5497
|
if (l !== Ze.Ready) return $t(A), void A.stopPropagation();
|
|
5498
5498
|
if (A.defaultPrevented || !En.isClickAllowed()) return;
|
|
@@ -5591,7 +5591,7 @@ const Gs = "with-fancybox", eu = () => {
|
|
|
5591
5591
|
}
|
|
5592
5592
|
function V(A) {
|
|
5593
5593
|
if (A.composedPath()[0].closest("[data-fancybox-close]")) return void ut(A);
|
|
5594
|
-
|
|
5594
|
+
b("backdropClick", A), !A.defaultPrevented && m("backdropClick") && ut(A);
|
|
5595
5595
|
}
|
|
5596
5596
|
function N() {
|
|
5597
5597
|
yt();
|
|
@@ -5604,7 +5604,7 @@ const Gs = "with-fancybox", eu = () => {
|
|
|
5604
5604
|
if (!mn(B) || U !== "Escape" && ((E) => {
|
|
5605
5605
|
const j = ["input", "textarea", "select", "option", "video", "iframe", "[contenteditable]", "[data-selectable]", "[data-draggable]"].join(",");
|
|
5606
5606
|
return E.matches(j) || E.closest(j);
|
|
5607
|
-
})(B) || (
|
|
5607
|
+
})(B) || (b("keydown", A), A.defaultPrevented)) return;
|
|
5608
5608
|
const w = ie[U];
|
|
5609
5609
|
if (w) switch (w) {
|
|
5610
5610
|
case "close":
|
|
@@ -5720,7 +5720,7 @@ const Gs = "with-fancybox", eu = () => {
|
|
|
5720
5720
|
var ie, B, w, E, j;
|
|
5721
5721
|
if (l === Ze.Closing || l === Ze.Destroyed) return;
|
|
5722
5722
|
const H = new Event("shouldClose", { bubbles: !0, cancelable: !0 });
|
|
5723
|
-
if (
|
|
5723
|
+
if (b("shouldClose", H, A), H.defaultPrevented) return;
|
|
5724
5724
|
if (De(), A) {
|
|
5725
5725
|
if (A.defaultPrevented) return;
|
|
5726
5726
|
$t(A), A.stopPropagation(), A.stopImmediatePropagation();
|
|
@@ -5744,7 +5744,7 @@ const Gs = "with-fancybox", eu = () => {
|
|
|
5744
5744
|
function Ht(A, U) {
|
|
5745
5745
|
var ie, B;
|
|
5746
5746
|
if (l !== Ze.Closing) return;
|
|
5747
|
-
|
|
5747
|
+
b("close", A), f = !1, document.body.removeEventListener("click", te), document.body.removeEventListener("keydown", I, { passive: !1, capture: !0 }), m("placeFocusBack") && Ot();
|
|
5748
5748
|
const w = document.activeElement;
|
|
5749
5749
|
w && e?.contains(w) && w.blur(), m("fadeEffect") && (t?.classList.remove("is-ready"), t?.classList.add("is-hiding")), t?.classList.add("is-closing");
|
|
5750
5750
|
const E = me(), j = E?.el, H = E?.panzoomRef, T = (ie = E?.panzoomRef) === null || ie === void 0 ? void 0 : ie.getTween(), O = U || m("hideClass");
|
|
@@ -5775,7 +5775,7 @@ const Gs = "with-fancybox", eu = () => {
|
|
|
5775
5775
|
if (l === Ze.Destroyed) return;
|
|
5776
5776
|
l = Ze.Destroyed;
|
|
5777
5777
|
const E = le();
|
|
5778
|
-
|
|
5778
|
+
b("destroy"), (U = (A = m("sync")) === null || A === void 0 ? void 0 : A.getPlugins().Autoplay) === null || U === void 0 || U.resume(), (B = (ie = m("sync")) === null || ie === void 0 ? void 0 : ie.getPlugins().Autoscroll) === null || B === void 0 || B.resume(), e instanceof HTMLDialogElement && e.close(), (w = o?.getContainer()) === null || w === void 0 || w.classList.remove("is-idle"), o?.destroy();
|
|
5779
5779
|
for (const j of Object.values(d)) j?.destroy();
|
|
5780
5780
|
if (d = {}, e?.remove(), e = void 0, t = void 0, o = void 0, At.delete(u), !At.size && (bs(!1), document.documentElement.classList.remove(Gs), m("placeFocusBack") && E && !E.closest("[inert]"))) try {
|
|
5781
5781
|
E?.focus({ preventScroll: !0 });
|
|
@@ -5799,14 +5799,14 @@ const Gs = "with-fancybox", eu = () => {
|
|
|
5799
5799
|
}, init: function(A = [], U = {}) {
|
|
5800
5800
|
l !== Ze.Init && (We.destroy(), l = Ze.Init), i = ft({}, Rn, U), u = m("id") || "fancybox-" + ++Qc;
|
|
5801
5801
|
const ie = At.get(u);
|
|
5802
|
-
if (ie && ie.destroy(), At.set(u, We),
|
|
5802
|
+
if (ie && ie.destroy(), At.set(u, We), b("init"), (function() {
|
|
5803
5803
|
for (const [B, w] of Object.entries(Object.assign(Object.assign({}, Ne.Plugins), i.plugins || {}))) if (B && !d[B] && w instanceof Function) {
|
|
5804
5804
|
const E = w();
|
|
5805
5805
|
E.init(We), d[B] = E;
|
|
5806
5806
|
}
|
|
5807
|
-
|
|
5807
|
+
b("initPlugins");
|
|
5808
5808
|
})(), (function(B = []) {
|
|
5809
|
-
|
|
5809
|
+
b("initSlides", B), g = [...B];
|
|
5810
5810
|
})(A), (function() {
|
|
5811
5811
|
const B = m("parentEl") || document.body;
|
|
5812
5812
|
if (!(B && B instanceof HTMLElement)) return;
|
|
@@ -5826,10 +5826,10 @@ const Gs = "with-fancybox", eu = () => {
|
|
|
5826
5826
|
const ne = Y === "slide", K = [-O.deltaX || 0, -O.deltaY || 0, -O.detail || 0].reduce(function(_e, Le) {
|
|
5827
5827
|
return Math.abs(Le) > Math.abs(_e) ? Le : _e;
|
|
5828
5828
|
}), ue = Math.max(-1, Math.min(1, K)), Te = Date.now();
|
|
5829
|
-
v && Te - v < 300 ? ne && $t(O) : (v = Te,
|
|
5829
|
+
v && Te - v < 300 ? ne && $t(O) : (v = Te, b("wheel", O, ue), O.defaultPrevented || (Y === "close" ? ut(O) : Y === "slide" && o && !nn(Z) && ($t(O), o[ue > 0 ? "prev" : "next"]())));
|
|
5830
5830
|
}, { capture: !0, passive: !1 }), e.addEventListener("cancel", (O) => {
|
|
5831
5831
|
ut(O);
|
|
5832
|
-
}), B.append(e), At.size === 1 && (m("hideScrollbar") && bs(!0), document.documentElement.classList.add(Gs)),
|
|
5832
|
+
}), B.append(e), At.size === 1 && (m("hideScrollbar") && bs(!0), document.documentElement.classList.add(Gs)), b("initLayout"), e instanceof HTMLDialogElement && (m("modal") ? e.showModal() : e.show());
|
|
5833
5833
|
})(), (function() {
|
|
5834
5834
|
if (n = e?.querySelector(".fancybox__carousel") || void 0, !n) return;
|
|
5835
5835
|
n.fancybox = We;
|
|
@@ -5837,14 +5837,14 @@ const Gs = "with-fancybox", eu = () => {
|
|
|
5837
5837
|
const E = w.getContainer();
|
|
5838
5838
|
return E?.querySelector(".f-carousel__toolbar [data-autoplay-action]") || E;
|
|
5839
5839
|
} }, Fullscreen: { el: t }, Toolbar: { absolute: !0, items: { counter: { tpl: '<div class="f-counter"><span data-fancybox-page></span>/<span data-fancybox-pages></span></div>' } }, display: { left: ["counter"], right: ["toggleFull", "autoplay", "fullscreen", "thumbs", "close"] } }, Video: { autoplay: !0 }, Thumbs: { minCount: 2, Carousel: { classes: { container: "fancybox__thumbs" } } }, classes: { container: "fancybox__carousel", viewport: "fancybox__viewport", slide: "fancybox__slide" }, spinnerTpl: '<div class="f-spinner" data-fancybox-close></div>', dragFree: !1, slidesPerPage: 1, plugins: { Sync: oa, Arrows: qc, Lazyload: sa, Zoomable: Bc, Html: Gc, Video: Yc, Autoplay: Uc, Fullscreen: Xc, Thumbs: Zc, Toolbar: aa } }, m("Carousel") || {}, { slides: g, enabled: !0, initialPage: m("startIndex") || 0, l10n: m("l10n") });
|
|
5840
|
-
o = so(n, B),
|
|
5841
|
-
|
|
5842
|
-
}), o.on("attachSlideEl", S), o.on("detachSlideEl",
|
|
5840
|
+
o = so(n, B), b("initCarousel", o), o.on("*", (w, E, ...j) => {
|
|
5841
|
+
b(`Carousel.${E}`, w, ...j);
|
|
5842
|
+
}), o.on("attachSlideEl", S), o.on("detachSlideEl", y), o.on("contentLoading", J), o.on("contentReady", Ce), o.on("ready", Q), o.on("change", $), o.on("settle", ce), o.on("thumbs:ready", re), o.on("thumbs:destroy", re), o.init();
|
|
5843
5843
|
})(), e && t) {
|
|
5844
5844
|
if (m("closeExisting")) for (const [B, w] of At.entries()) B !== u && w.close();
|
|
5845
5845
|
m("fadeEffect") ? (setTimeout(() => {
|
|
5846
5846
|
h();
|
|
5847
|
-
}, 500), de(t, "is-revealing")) : h(), t.classList.add("is-ready"), l = Ze.Ready,
|
|
5847
|
+
}, 500), de(t, "is-revealing")) : h(), t.classList.add("is-ready"), l = Ze.Ready, b("ready");
|
|
5848
5848
|
}
|
|
5849
5849
|
}, isCurrentSlide: function(A) {
|
|
5850
5850
|
const U = me();
|
|
@@ -5870,22 +5870,22 @@ function Xs(e, t = {}) {
|
|
|
5870
5870
|
var n, o, r;
|
|
5871
5871
|
if (!(e && e instanceof Element)) return;
|
|
5872
5872
|
let a, s, l, i, u = {};
|
|
5873
|
-
for (const [x, p] of Ne.openers) if (x.contains(e)) for (const [
|
|
5873
|
+
for (const [x, p] of Ne.openers) if (x.contains(e)) for (const [b, h] of p) {
|
|
5874
5874
|
let S;
|
|
5875
|
-
if (
|
|
5876
|
-
for (const
|
|
5877
|
-
S =
|
|
5875
|
+
if (b) {
|
|
5876
|
+
for (const y of x.querySelectorAll(b)) if (y.contains(e)) {
|
|
5877
|
+
S = y;
|
|
5878
5878
|
break;
|
|
5879
5879
|
}
|
|
5880
5880
|
if (!S) continue;
|
|
5881
5881
|
}
|
|
5882
|
-
for (const [
|
|
5882
|
+
for (const [y, L] of h) {
|
|
5883
5883
|
let $ = null;
|
|
5884
5884
|
try {
|
|
5885
|
-
$ = e.closest(
|
|
5885
|
+
$ = e.closest(y);
|
|
5886
5886
|
} catch {
|
|
5887
5887
|
}
|
|
5888
|
-
$ && (s = x, l = S, a = $, i =
|
|
5888
|
+
$ && (s = x, l = S, a = $, i = y, ft(u, L || {}));
|
|
5889
5889
|
}
|
|
5890
5890
|
}
|
|
5891
5891
|
if (!s || !i || !a) return;
|
|
@@ -5895,14 +5895,14 @@ function Xs(e, t = {}) {
|
|
|
5895
5895
|
if (f && (!l || !c.contains(l))) {
|
|
5896
5896
|
const x = [];
|
|
5897
5897
|
for (const p of f?.getSlides()) {
|
|
5898
|
-
const
|
|
5899
|
-
|
|
5898
|
+
const b = p.el;
|
|
5899
|
+
b && (b.matches(i) ? x.push(b) : x.push(...[].slice.call(b.querySelectorAll(i))));
|
|
5900
5900
|
}
|
|
5901
5901
|
x.length && (g = [...x], (n = f.getPlugins().Autoplay) === null || n === void 0 || n.pause(), (o = f.getPlugins().Autoscroll) === null || o === void 0 || o.pause(), d.sync = f);
|
|
5902
5902
|
}
|
|
5903
5903
|
if (d.groupAll === !1) {
|
|
5904
5904
|
const x = d.groupAttr, p = x && a ? a.getAttribute(`${x}`) : "";
|
|
5905
|
-
g = x && p ? g.filter((
|
|
5905
|
+
g = x && p ? g.filter((b) => b.getAttribute(`${x}`) === p) : [a];
|
|
5906
5906
|
}
|
|
5907
5907
|
if (!g.length) return;
|
|
5908
5908
|
(r = d.triggerEvent) === null || r === void 0 || r.preventDefault();
|
|
@@ -6083,11 +6083,11 @@ const Ne = { Plugins: { Hash: Xn }, version: "6.1.13", openers: /* @__PURE__ */
|
|
|
6083
6083
|
}), v = ee(() => {
|
|
6084
6084
|
const h = c.value?.arrow;
|
|
6085
6085
|
if (!h) return {};
|
|
6086
|
-
const S = f.value.split("-")[0],
|
|
6086
|
+
const S = f.value.split("-")[0], y = { top: "bottom", right: "left", bottom: "top", left: "right" }[S];
|
|
6087
6087
|
return {
|
|
6088
6088
|
left: h.x != null ? `${h.x}px` : "",
|
|
6089
6089
|
top: h.y != null ? `${h.y}px` : "",
|
|
6090
|
-
[
|
|
6090
|
+
[y]: "-4px"
|
|
6091
6091
|
};
|
|
6092
6092
|
});
|
|
6093
6093
|
function m() {
|
|
@@ -6106,7 +6106,7 @@ const Ne = { Plugins: { Hash: Xn }, version: "6.1.13", openers: /* @__PURE__ */
|
|
|
6106
6106
|
function p() {
|
|
6107
6107
|
t.interactive && clearTimeout(i);
|
|
6108
6108
|
}
|
|
6109
|
-
function
|
|
6109
|
+
function b() {
|
|
6110
6110
|
t.interactive && x();
|
|
6111
6111
|
}
|
|
6112
6112
|
return In(() => {
|
|
@@ -6134,7 +6134,7 @@ const Ne = { Plugins: { Hash: Xn }, version: "6.1.13", openers: /* @__PURE__ */
|
|
|
6134
6134
|
class: $e(["spark-tooltip", { "spark-tooltip-interactive": e.interactive }]),
|
|
6135
6135
|
role: "tooltip",
|
|
6136
6136
|
onMouseenter: p,
|
|
6137
|
-
onMouseleave:
|
|
6137
|
+
onMouseleave: b
|
|
6138
6138
|
}, [
|
|
6139
6139
|
Ke(h.$slots, "content", {}, () => [
|
|
6140
6140
|
e.html ? (C(), P("span", {
|
|
@@ -6255,9 +6255,9 @@ const Ne = { Plugins: { Hash: Xn }, version: "6.1.13", openers: /* @__PURE__ */
|
|
|
6255
6255
|
function g() {
|
|
6256
6256
|
i.value = !1;
|
|
6257
6257
|
}
|
|
6258
|
-
function c(
|
|
6258
|
+
function c(b) {
|
|
6259
6259
|
if (i.value = !1, o.disabled || l.value) return;
|
|
6260
|
-
const h =
|
|
6260
|
+
const h = b.dataTransfer?.files?.[0];
|
|
6261
6261
|
if (h) {
|
|
6262
6262
|
if (!f(h)) {
|
|
6263
6263
|
Qe.show({
|
|
@@ -6269,28 +6269,28 @@ const Ne = { Plugins: { Hash: Xn }, version: "6.1.13", openers: /* @__PURE__ */
|
|
|
6269
6269
|
s.value = h, r("file-selected", h);
|
|
6270
6270
|
}
|
|
6271
6271
|
}
|
|
6272
|
-
function f(
|
|
6272
|
+
function f(b) {
|
|
6273
6273
|
const h = o.accept.split(",").map((S) => S.trim());
|
|
6274
6274
|
for (const S of h) {
|
|
6275
6275
|
if (S === "*/*") return !0;
|
|
6276
6276
|
if (S.endsWith("/*")) {
|
|
6277
|
-
const
|
|
6278
|
-
if (
|
|
6277
|
+
const y = S.slice(0, -2);
|
|
6278
|
+
if (b.type.startsWith(y + "/")) return !0;
|
|
6279
6279
|
} else if (S.startsWith(".")) {
|
|
6280
|
-
if (
|
|
6281
|
-
} else if (
|
|
6280
|
+
if (b.name.toLowerCase().endsWith(S.toLowerCase())) return !0;
|
|
6281
|
+
} else if (b.type === S) return !0;
|
|
6282
6282
|
}
|
|
6283
6283
|
return !1;
|
|
6284
6284
|
}
|
|
6285
|
-
function v(
|
|
6286
|
-
if (!
|
|
6287
|
-
const h =
|
|
6285
|
+
function v(b) {
|
|
6286
|
+
if (!b || b.length === 0) return;
|
|
6287
|
+
const h = b[0].file;
|
|
6288
6288
|
h && (s.value = h, r("file-selected", h));
|
|
6289
6289
|
}
|
|
6290
6290
|
function m() {
|
|
6291
|
-
const
|
|
6292
|
-
if (!
|
|
6293
|
-
const h =
|
|
6291
|
+
const b = u.value?.$el;
|
|
6292
|
+
if (!b) return;
|
|
6293
|
+
const h = b.querySelector('input[type="file"]') || b.parentElement?.querySelector('input[type="file"]');
|
|
6294
6294
|
h && h.click();
|
|
6295
6295
|
}
|
|
6296
6296
|
function x() {
|
|
@@ -6300,19 +6300,19 @@ const Ne = { Plugins: { Hash: Xn }, version: "6.1.13", openers: /* @__PURE__ */
|
|
|
6300
6300
|
if (s.value) {
|
|
6301
6301
|
l.value = !0, r("upload-start");
|
|
6302
6302
|
try {
|
|
6303
|
-
const
|
|
6304
|
-
|
|
6305
|
-
|
|
6303
|
+
const b = new FormData();
|
|
6304
|
+
b.append(o.fieldName, s.value), Object.entries(o.extraFields).forEach(([y, L]) => {
|
|
6305
|
+
b.append(y, L);
|
|
6306
6306
|
});
|
|
6307
|
-
const h = await a.post(o.uploadUrl,
|
|
6307
|
+
const h = await a.post(o.uploadUrl, b, {
|
|
6308
6308
|
headers: { "Content-Type": "multipart/form-data" },
|
|
6309
6309
|
params: o.extraParams
|
|
6310
6310
|
}), S = o.responseParser(h);
|
|
6311
6311
|
r("upload-success", S);
|
|
6312
|
-
} catch (
|
|
6313
|
-
r("upload-error",
|
|
6312
|
+
} catch (b) {
|
|
6313
|
+
r("upload-error", b), Qe.show({
|
|
6314
6314
|
type: "danger",
|
|
6315
|
-
message:
|
|
6315
|
+
message: b.response?.data?.message || "Failed to upload file."
|
|
6316
6316
|
});
|
|
6317
6317
|
} finally {
|
|
6318
6318
|
l.value = !1;
|
|
@@ -6324,8 +6324,8 @@ const Ne = { Plugins: { Hash: Xn }, version: "6.1.13", openers: /* @__PURE__ */
|
|
|
6324
6324
|
clear: x,
|
|
6325
6325
|
selectedFile: s,
|
|
6326
6326
|
uploading: l
|
|
6327
|
-
}), (
|
|
6328
|
-
const S = Ue("FormKit"),
|
|
6327
|
+
}), (b, h) => {
|
|
6328
|
+
const S = Ue("FormKit"), y = Ue("font-awesome-icon");
|
|
6329
6329
|
return C(), P("div", null, [
|
|
6330
6330
|
e.label ? (C(), P("label", su, xe(e.label), 1)) : ve("", !0),
|
|
6331
6331
|
e.variant === "dashed" ? (C(), P("div", {
|
|
@@ -6350,7 +6350,7 @@ const Ne = { Plugins: { Hash: Xn }, version: "6.1.13", openers: /* @__PURE__ */
|
|
|
6350
6350
|
onInput: v
|
|
6351
6351
|
}, null, 8, ["name", "accept", "disabled"]),
|
|
6352
6352
|
s.value ? (C(), P("div", iu, [
|
|
6353
|
-
se(
|
|
6353
|
+
se(y, {
|
|
6354
6354
|
icon: oe(Fe).farFile,
|
|
6355
6355
|
class: "text-2xl text-gray-500"
|
|
6356
6356
|
}, null, 8, ["icon"]),
|
|
@@ -6361,14 +6361,14 @@ const Ne = { Plugins: { Hash: Xn }, version: "6.1.13", openers: /* @__PURE__ */
|
|
|
6361
6361
|
onClick: x
|
|
6362
6362
|
}, {
|
|
6363
6363
|
default: we(() => [
|
|
6364
|
-
se(
|
|
6364
|
+
se(y, {
|
|
6365
6365
|
icon: oe(Fe).farXmark
|
|
6366
6366
|
}, null, 8, ["icon"])
|
|
6367
6367
|
]),
|
|
6368
6368
|
_: 1
|
|
6369
6369
|
})
|
|
6370
6370
|
])) : (C(), P("div", ru, [
|
|
6371
|
-
se(
|
|
6371
|
+
se(y, {
|
|
6372
6372
|
icon: e.icon,
|
|
6373
6373
|
class: "text-4xl text-gray-400 mb-3"
|
|
6374
6374
|
}, null, 8, ["icon"]),
|
|
@@ -6411,7 +6411,7 @@ const Ne = { Plugins: { Hash: Xn }, version: "6.1.13", openers: /* @__PURE__ */
|
|
|
6411
6411
|
onClick: p
|
|
6412
6412
|
}, {
|
|
6413
6413
|
default: we(() => [
|
|
6414
|
-
l.value ? (C(), Me(
|
|
6414
|
+
l.value ? (C(), Me(y, {
|
|
6415
6415
|
key: 0,
|
|
6416
6416
|
icon: oe(Fe).farSpinner,
|
|
6417
6417
|
class: "mr-2 animate-spin"
|
|
@@ -6530,8 +6530,8 @@ const Ne = { Plugins: { Hash: Xn }, version: "6.1.13", openers: /* @__PURE__ */
|
|
|
6530
6530
|
a.value = !0, o("upload-start");
|
|
6531
6531
|
try {
|
|
6532
6532
|
const m = new FormData();
|
|
6533
|
-
m.append(n.fieldName, v), Object.entries(n.extraFields).forEach(([
|
|
6534
|
-
m.append(
|
|
6533
|
+
m.append(n.fieldName, v), Object.entries(n.extraFields).forEach(([b, h]) => {
|
|
6534
|
+
m.append(b, h);
|
|
6535
6535
|
});
|
|
6536
6536
|
const x = await r.post(n.uploadUrl, m, {
|
|
6537
6537
|
headers: { "Content-Type": "multipart/form-data" }
|
|
@@ -6994,15 +6994,15 @@ const Rt = new wu(), Su = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
6994
6994
|
custom: ""
|
|
6995
6995
|
}[n.layout]]), d = ee(() => n.compact ? "text-sm" : "");
|
|
6996
6996
|
function g(m) {
|
|
6997
|
-
const x = s(m), p = l(m),
|
|
6997
|
+
const x = s(m), p = l(m), b = [
|
|
6998
6998
|
"inline-flex items-center transition-colors cursor-pointer",
|
|
6999
6999
|
"focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:ring-offset-1"
|
|
7000
7000
|
];
|
|
7001
|
-
return p &&
|
|
7001
|
+
return p && b.push("opacity-50 cursor-not-allowed"), n.layout === "tabs" ? b.push(...c(x, p)) : n.layout === "vertical" && b.push(...f(x, p)), b;
|
|
7002
7002
|
}
|
|
7003
7003
|
function c(m, x) {
|
|
7004
|
-
const p = ["border-b-2 -mb-px rounded-t font-medium"],
|
|
7005
|
-
return p.push(
|
|
7004
|
+
const p = ["border-b-2 -mb-px rounded-t font-medium"], b = n.compact ? "text-sm px-3 py-1.5" : "text-sm px-8 py-4";
|
|
7005
|
+
return p.push(b), m ? p.push("border-primary-600 text-primary-600") : x ? p.push("border-transparent text-gray-400") : p.push("border-transparent text-gray-600 hover:text-gray-900 hover:border-gray-300"), p;
|
|
7006
7006
|
}
|
|
7007
7007
|
function f(m, x) {
|
|
7008
7008
|
const p = ["font-medium text-sm py-1"];
|
|
@@ -7041,7 +7041,7 @@ const Rt = new wu(), Su = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
7041
7041
|
size: "xl",
|
|
7042
7042
|
variant: s(p) ? "primary" : "secondary",
|
|
7043
7043
|
disabled: l(p),
|
|
7044
|
-
onClick: (
|
|
7044
|
+
onClick: (b) => i(p)
|
|
7045
7045
|
}, {
|
|
7046
7046
|
default: we(() => [
|
|
7047
7047
|
p.icon ? (C(), Me(oe(Zn), {
|
|
@@ -7063,7 +7063,7 @@ const Rt = new wu(), Su = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
7063
7063
|
key: p.id,
|
|
7064
7064
|
class: $e(g(p)),
|
|
7065
7065
|
disabled: l(p) || void 0,
|
|
7066
|
-
onClick: (
|
|
7066
|
+
onClick: (b) => i(p)
|
|
7067
7067
|
}, [
|
|
7068
7068
|
s(p) && n.layout === "vertical" ? (C(), Me(oe(Zn), {
|
|
7069
7069
|
key: 0,
|
|
@@ -7461,11 +7461,11 @@ const Bu = (e) => {
|
|
|
7461
7461
|
}, Qu = () => {
|
|
7462
7462
|
}, ed = (e, t = {}) => {
|
|
7463
7463
|
const n = Ct(), o = Dt(), r = t.namespace, a = r === null, s = t.syncToRoute !== !1, l = t.persistToStorage === !0, i = t.restoreOnMount !== !1, u = t.storageTTL || 7, d = a ? `spark-table:${o.path}` : `spark-table:${r}`, g = (h, S = "") => {
|
|
7464
|
-
const
|
|
7465
|
-
return Object.keys(h).forEach((
|
|
7466
|
-
const $ = h[
|
|
7467
|
-
$ != null && (typeof $ == "object" && !Array.isArray($) ? Object.assign(
|
|
7468
|
-
}),
|
|
7464
|
+
const y = {};
|
|
7465
|
+
return Object.keys(h).forEach((L) => {
|
|
7466
|
+
const $ = h[L], Q = S ? `${S}[${L}]` : L;
|
|
7467
|
+
$ != null && (typeof $ == "object" && !Array.isArray($) ? Object.assign(y, g($, Q)) : y[Q] = String($));
|
|
7468
|
+
}), y;
|
|
7469
7469
|
}, c = () => {
|
|
7470
7470
|
if (l)
|
|
7471
7471
|
try {
|
|
@@ -7484,8 +7484,8 @@ const Bu = (e) => {
|
|
|
7484
7484
|
if (!h) return null;
|
|
7485
7485
|
const S = JSON.parse(h);
|
|
7486
7486
|
if (u > 0) {
|
|
7487
|
-
const
|
|
7488
|
-
if (
|
|
7487
|
+
const y = Date.now() - S.timestamp, L = u * 24 * 60 * 60 * 1e3;
|
|
7488
|
+
if (y > L)
|
|
7489
7489
|
return localStorage.removeItem(d), null;
|
|
7490
7490
|
}
|
|
7491
7491
|
return S.params;
|
|
@@ -7502,14 +7502,14 @@ const Bu = (e) => {
|
|
|
7502
7502
|
if (!s) return;
|
|
7503
7503
|
const h = { ...o.query };
|
|
7504
7504
|
if (a) {
|
|
7505
|
-
Object.keys(h).forEach((
|
|
7506
|
-
x(
|
|
7505
|
+
Object.keys(h).forEach((y) => {
|
|
7506
|
+
x(y) && delete h[y];
|
|
7507
7507
|
});
|
|
7508
7508
|
const S = g(e.params);
|
|
7509
7509
|
Object.assign(h, S);
|
|
7510
7510
|
} else {
|
|
7511
|
-
Object.keys(h).forEach((
|
|
7512
|
-
(
|
|
7511
|
+
Object.keys(h).forEach((y) => {
|
|
7512
|
+
(y.startsWith(`${r}[`) || y === r) && delete h[y];
|
|
7513
7513
|
});
|
|
7514
7514
|
const S = g(e.params, r);
|
|
7515
7515
|
Object.assign(h, S);
|
|
@@ -7517,11 +7517,11 @@ const Bu = (e) => {
|
|
|
7517
7517
|
n.replace({ query: h });
|
|
7518
7518
|
}, x = (h) => !!(["page", "limit", "search", "orderBy", "sortedBy"].includes(h) || h.includes("[")), p = (h, S) => {
|
|
7519
7519
|
if (["page", "limit"].includes(h) && S !== null && S !== void 0) {
|
|
7520
|
-
const
|
|
7521
|
-
return isNaN(
|
|
7520
|
+
const L = parseInt(S, 10);
|
|
7521
|
+
return isNaN(L) ? S : L;
|
|
7522
7522
|
}
|
|
7523
7523
|
return S;
|
|
7524
|
-
},
|
|
7524
|
+
}, b = () => {
|
|
7525
7525
|
if (a)
|
|
7526
7526
|
Object.keys(o.query).forEach((h) => {
|
|
7527
7527
|
x(h) && (e.params[h] = p(h, o.query[h]));
|
|
@@ -7530,8 +7530,8 @@ const Bu = (e) => {
|
|
|
7530
7530
|
const h = `${r}[`;
|
|
7531
7531
|
Object.keys(o.query).forEach((S) => {
|
|
7532
7532
|
if (S.startsWith(h)) {
|
|
7533
|
-
const
|
|
7534
|
-
e.params[
|
|
7533
|
+
const y = S.slice(h.length, -1);
|
|
7534
|
+
e.params[y] = p(y, o.query[S]);
|
|
7535
7535
|
}
|
|
7536
7536
|
});
|
|
7537
7537
|
}
|
|
@@ -7547,22 +7547,22 @@ const Bu = (e) => {
|
|
|
7547
7547
|
if (s) {
|
|
7548
7548
|
let S;
|
|
7549
7549
|
if (a)
|
|
7550
|
-
S = Object.keys(o.query).some((
|
|
7550
|
+
S = Object.keys(o.query).some((y) => x(y));
|
|
7551
7551
|
else {
|
|
7552
|
-
const
|
|
7553
|
-
S = Object.keys(o.query).some((
|
|
7552
|
+
const y = `${r}[`;
|
|
7553
|
+
S = Object.keys(o.query).some((L) => L.startsWith(y));
|
|
7554
7554
|
}
|
|
7555
|
-
S && (h = !0,
|
|
7555
|
+
S && (h = !0, b());
|
|
7556
7556
|
}
|
|
7557
7557
|
if (!h && l) {
|
|
7558
7558
|
const S = f();
|
|
7559
|
-
S && Object.keys(S).length > 0 && (Object.keys(S).forEach((
|
|
7560
|
-
S[
|
|
7559
|
+
S && Object.keys(S).length > 0 && (Object.keys(S).forEach((y) => {
|
|
7560
|
+
S[y] = p(y, S[y]);
|
|
7561
7561
|
}), Object.assign(e.params, S));
|
|
7562
7562
|
}
|
|
7563
7563
|
}), {
|
|
7564
7564
|
syncToRoute: m,
|
|
7565
|
-
restoreFromRoute:
|
|
7565
|
+
restoreFromRoute: b,
|
|
7566
7566
|
saveToStorage: c,
|
|
7567
7567
|
loadFromStorage: f,
|
|
7568
7568
|
clearStorage: v
|
|
@@ -8091,8 +8091,8 @@ const Bu = (e) => {
|
|
|
8091
8091
|
if (!o.spacing) return {};
|
|
8092
8092
|
const p = typeof o.spacing == "string" ? Dd[o.spacing] : o.spacing;
|
|
8093
8093
|
if (!p) return {};
|
|
8094
|
-
const
|
|
8095
|
-
return p.cellPx !== void 0 && (
|
|
8094
|
+
const b = {};
|
|
8095
|
+
return p.cellPx !== void 0 && (b["--spark-table-cell-px"] = `${p.cellPx}px`), p.cellPy !== void 0 && (b["--spark-table-cell-py"] = `${p.cellPy}px`), p.headerPx !== void 0 && (b["--spark-table-header-px"] = `${p.headerPx}px`), p.headerPy !== void 0 && (b["--spark-table-header-py"] = `${p.headerPy}px`), b;
|
|
8096
8096
|
});
|
|
8097
8097
|
wi(), Vn(vi), Vn(yi), Vn(bi), zt(o, "settings.nestedHeaders") && Vn(xi);
|
|
8098
8098
|
const a = n, s = ao("axios"), l = ke(null), i = ke(!1), u = ke(null);
|
|
@@ -8140,15 +8140,15 @@ const Bu = (e) => {
|
|
|
8140
8140
|
}
|
|
8141
8141
|
if (d) return;
|
|
8142
8142
|
c.hotInstance.updateData(c.response.data), c.options.callback && typeof c.options.callback == "function" && await c.options.callback();
|
|
8143
|
-
const
|
|
8144
|
-
zt(o.settings, "columns", []).forEach((S,
|
|
8145
|
-
S.width ||
|
|
8143
|
+
const b = c.hotInstance.getPlugin("autoColumnSize");
|
|
8144
|
+
zt(o.settings, "columns", []).forEach((S, y) => {
|
|
8145
|
+
S.width || b.calculateColumnsWidth(y, y, !0);
|
|
8146
8146
|
}), a("load", {
|
|
8147
8147
|
data: c.response.data,
|
|
8148
8148
|
meta: c.response.meta
|
|
8149
8149
|
}), p && typeof p == "function" && p();
|
|
8150
|
-
} catch (
|
|
8151
|
-
u.value =
|
|
8150
|
+
} catch (b) {
|
|
8151
|
+
u.value = b, a("error", b), console.error("Error loading table data:", b);
|
|
8152
8152
|
} finally {
|
|
8153
8153
|
i.value = !1, a("loading", !1), mo.done();
|
|
8154
8154
|
}
|
|
@@ -8156,15 +8156,15 @@ const Bu = (e) => {
|
|
|
8156
8156
|
},
|
|
8157
8157
|
// can't use sparkTable.hotInstance here because the ref isn't ready
|
|
8158
8158
|
colToProp: (p) => l.value.hotInstance.colToProp(p),
|
|
8159
|
-
fireEvent: (p,
|
|
8160
|
-
a(p,
|
|
8159
|
+
fireEvent: (p, b) => {
|
|
8160
|
+
a(p, b);
|
|
8161
8161
|
},
|
|
8162
8162
|
getSettingsForProp: (p) => mi(zt(c.tableSettings, "columns"), { data: p }),
|
|
8163
8163
|
// Helper methods for easier param access
|
|
8164
8164
|
getParams: () => c.computed.params,
|
|
8165
8165
|
getParam: (p) => c.computed.params[p],
|
|
8166
|
-
setParam: (p,
|
|
8167
|
-
c.methods.applyParams({ [p]:
|
|
8166
|
+
setParam: (p, b) => {
|
|
8167
|
+
c.methods.applyParams({ [p]: b });
|
|
8168
8168
|
},
|
|
8169
8169
|
clearParam: (p) => c.methods.removeParam(p),
|
|
8170
8170
|
clearParams: (p) => {
|
|
@@ -8185,47 +8185,48 @@ const Bu = (e) => {
|
|
|
8185
8185
|
...o.options
|
|
8186
8186
|
})),
|
|
8187
8187
|
tableSettings: ee(() => {
|
|
8188
|
-
const p = zt(o.settings, "columns", []),
|
|
8189
|
-
|
|
8190
|
-
|
|
8191
|
-
|
|
8192
|
-
|
|
8188
|
+
const p = zt(o.settings, "columns", []), b = p.map((y) => {
|
|
8189
|
+
if (!y.wordWrap && !y.align) return y;
|
|
8190
|
+
const L = [y.className];
|
|
8191
|
+
return y.wordWrap && L.push("spark-table-word-wrap"), y.align === "center" && L.push("spark-table-align-center"), y.align === "right" && L.push("spark-table-align-right"), { ...y, className: L.filter(Boolean).join(" ") };
|
|
8192
|
+
}), h = p.some(
|
|
8193
|
+
(y) => typeof y.wordWrap == "object" && y.wordWrap?.maxLines
|
|
8193
8194
|
), S = o.settings.afterRenderer;
|
|
8194
8195
|
return {
|
|
8195
8196
|
...or,
|
|
8196
8197
|
nestedHeaders: zt(o.settings, "nestedHeaders", []),
|
|
8197
8198
|
...!zt(o.settings, "nestedHeaders") && {
|
|
8198
|
-
afterGetColHeader: (
|
|
8199
|
+
afterGetColHeader: (y, L) => Ou(y, L, c)
|
|
8199
8200
|
},
|
|
8200
|
-
afterChange: (
|
|
8201
|
+
afterChange: (y, L) => Qu(),
|
|
8201
8202
|
afterRender: () => Pu(c),
|
|
8202
|
-
beforeStretchingColumnWidth: (
|
|
8203
|
-
const $ = p[
|
|
8204
|
-
return $ && $.width !== void 0 ? $.width :
|
|
8203
|
+
beforeStretchingColumnWidth: (y, L) => {
|
|
8204
|
+
const $ = p[L];
|
|
8205
|
+
return $ && $.width !== void 0 ? $.width : y;
|
|
8205
8206
|
},
|
|
8206
|
-
beforeCopy: (
|
|
8207
|
+
beforeCopy: (y, L) => {
|
|
8207
8208
|
const $ = l.value?.hotInstance;
|
|
8208
|
-
$ &&
|
|
8209
|
+
$ && L.forEach((Q) => {
|
|
8209
8210
|
for (let ce = Q.startRow; ce <= Q.endRow; ce++)
|
|
8210
8211
|
for (let J = Q.startCol; J <= Q.endCol; J++) {
|
|
8211
8212
|
const Ce = $.getCell(ce, J);
|
|
8212
8213
|
if (Ce) {
|
|
8213
|
-
const re = ce -
|
|
8214
|
-
|
|
8214
|
+
const re = ce - L[0].startRow, D = J - L[0].startCol;
|
|
8215
|
+
y[re][D] = Ce.dataset.copyValue ?? Ce.textContent ?? "";
|
|
8215
8216
|
}
|
|
8216
8217
|
}
|
|
8217
8218
|
});
|
|
8218
8219
|
},
|
|
8219
8220
|
...o.settings,
|
|
8220
|
-
columns:
|
|
8221
|
+
columns: b,
|
|
8221
8222
|
...h && {
|
|
8222
|
-
afterRenderer: (
|
|
8223
|
-
S?.(
|
|
8223
|
+
afterRenderer: (y, L, $) => {
|
|
8224
|
+
S?.(y, L, $);
|
|
8224
8225
|
const ce = p[$]?.wordWrap;
|
|
8225
8226
|
if (!ce || ce === !0 || !ce.maxLines) return;
|
|
8226
8227
|
const J = document.createElement("div");
|
|
8227
|
-
for (J.style.display = "-webkit-box", J.style.webkitBoxOrient = "vertical", J.style.webkitLineClamp = ce.maxLines, J.style.overflow = "hidden";
|
|
8228
|
-
|
|
8228
|
+
for (J.style.display = "-webkit-box", J.style.webkitBoxOrient = "vertical", J.style.webkitLineClamp = ce.maxLines, J.style.overflow = "hidden"; y.firstChild; ) J.appendChild(y.firstChild);
|
|
8229
|
+
y.appendChild(J);
|
|
8229
8230
|
}
|
|
8230
8231
|
}
|
|
8231
8232
|
};
|
|
@@ -8242,18 +8243,18 @@ const Bu = (e) => {
|
|
|
8242
8243
|
default:
|
|
8243
8244
|
return null;
|
|
8244
8245
|
}
|
|
8245
|
-
}, m = (p) => p ? typeof p.enabled == "function" ? p.enabled(c.params) : p.enabled : !1, x = ee(() => Object.entries(o.plugins).filter(([, p]) => m(p)).map(([p,
|
|
8246
|
+
}, m = (p) => p ? typeof p.enabled == "function" ? p.enabled(c.params) : p.enabled : !1, x = ee(() => Object.entries(o.plugins).filter(([, p]) => m(p)).map(([p, b]) => ({ name: p, config: b })));
|
|
8246
8247
|
if (et(
|
|
8247
8248
|
() => ({ ...c.params }),
|
|
8248
8249
|
() => {
|
|
8249
8250
|
const p = [];
|
|
8250
|
-
Object.values(o.plugins).forEach((
|
|
8251
|
-
const h = v(
|
|
8251
|
+
Object.values(o.plugins).forEach((b) => {
|
|
8252
|
+
const h = v(b);
|
|
8252
8253
|
if (!h) return;
|
|
8253
|
-
const S = m(
|
|
8254
|
-
!S &&
|
|
8255
|
-
}), p.length > 0 && p.forEach((
|
|
8256
|
-
delete c.params[
|
|
8254
|
+
const S = m(b), y = c.params[h] !== void 0;
|
|
8255
|
+
!S && y && p.push(h);
|
|
8256
|
+
}), p.length > 0 && p.forEach((b) => {
|
|
8257
|
+
delete c.params[b];
|
|
8257
8258
|
});
|
|
8258
8259
|
},
|
|
8259
8260
|
{ deep: !0, flush: "sync" }
|
|
@@ -8279,8 +8280,8 @@ const Bu = (e) => {
|
|
|
8279
8280
|
{ debounce: 50, maxWait: 1e3 }
|
|
8280
8281
|
), et(
|
|
8281
8282
|
() => o.url,
|
|
8282
|
-
async (p,
|
|
8283
|
-
p !==
|
|
8283
|
+
async (p, b) => {
|
|
8284
|
+
p !== b && (c.params.page = 1, await c.methods.loadTable());
|
|
8284
8285
|
}
|
|
8285
8286
|
), Gt(async () => {
|
|
8286
8287
|
await c.methods.loadTable(), a("ready");
|
|
@@ -8290,7 +8291,7 @@ const Bu = (e) => {
|
|
|
8290
8291
|
refresh: () => c.methods.loadTable(),
|
|
8291
8292
|
getParams: () => c.methods.getParams(),
|
|
8292
8293
|
getParam: (p) => c.methods.getParam(p),
|
|
8293
|
-
setParam: (p,
|
|
8294
|
+
setParam: (p, b) => c.methods.setParam(p, b),
|
|
8294
8295
|
clearParam: (p) => c.methods.clearParam(p),
|
|
8295
8296
|
clearParams: (p) => c.methods.clearParams(p),
|
|
8296
8297
|
applyParams: (p) => c.methods.applyParams(p),
|
|
@@ -8298,7 +8299,7 @@ const Bu = (e) => {
|
|
|
8298
8299
|
error: u,
|
|
8299
8300
|
sparkTable: c,
|
|
8300
8301
|
table: l
|
|
8301
|
-
}), (p,
|
|
8302
|
+
}), (p, b) => {
|
|
8302
8303
|
const h = Ue("font-awesome-icon");
|
|
8303
8304
|
return C(), P("div", {
|
|
8304
8305
|
class: "spark-table",
|
|
@@ -8336,7 +8337,7 @@ const Bu = (e) => {
|
|
|
8336
8337
|
icon: oe(Fe).farInbox,
|
|
8337
8338
|
class: "size-12 mb-4 text-gray-300"
|
|
8338
8339
|
}, null, 8, ["icon"]),
|
|
8339
|
-
|
|
8340
|
+
b[0] || (b[0] = _("p", { class: "text-sm" }, "No records found", -1))
|
|
8340
8341
|
])) : ve("", !0),
|
|
8341
8342
|
c.computed.ready ? (C(), Me(nr, {
|
|
8342
8343
|
key: 3,
|
|
@@ -8631,54 +8632,54 @@ function sm(e = {}) {
|
|
|
8631
8632
|
setFormErrors: d = !0
|
|
8632
8633
|
} = e, g = Ct(), c = ke(!1);
|
|
8633
8634
|
async function f(x) {
|
|
8634
|
-
const { submitFn: p, method:
|
|
8635
|
+
const { submitFn: p, method: b = "create", node: h = null, isEditMode: S = !1 } = x;
|
|
8635
8636
|
c.value = !0, h && h.clearErrors();
|
|
8636
8637
|
try {
|
|
8637
|
-
const
|
|
8638
|
-
if (s && await s(
|
|
8639
|
-
const $ = typeof a == "function" ? a(
|
|
8638
|
+
const L = (await p()).data;
|
|
8639
|
+
if (s && await s(L), !S && a) {
|
|
8640
|
+
const $ = typeof a == "function" ? a(L) : a;
|
|
8640
8641
|
await g.push($);
|
|
8641
8642
|
}
|
|
8642
8643
|
if (i) {
|
|
8643
|
-
const $ = S ? r :
|
|
8644
|
+
const $ = S ? r : b === "create" ? o : n;
|
|
8644
8645
|
Qe.toast({
|
|
8645
8646
|
type: "success",
|
|
8646
8647
|
message: $
|
|
8647
8648
|
});
|
|
8648
8649
|
}
|
|
8649
|
-
return { success: !0, data:
|
|
8650
|
-
} catch (
|
|
8651
|
-
const
|
|
8652
|
-
if (l && await l(
|
|
8653
|
-
return { success: !1, data: null, error:
|
|
8654
|
-
if (Ud(
|
|
8655
|
-
const $ = Wd(
|
|
8650
|
+
return { success: !0, data: L, error: null };
|
|
8651
|
+
} catch (y) {
|
|
8652
|
+
const L = y.response;
|
|
8653
|
+
if (l && await l(y) === !0)
|
|
8654
|
+
return { success: !1, data: null, error: y };
|
|
8655
|
+
if (Ud(L)) {
|
|
8656
|
+
const $ = Wd(L);
|
|
8656
8657
|
$ && h && u && h.setErrors([], $), d && (Qe.show({
|
|
8657
8658
|
type: "danger",
|
|
8658
|
-
message: rr(
|
|
8659
|
+
message: rr(L)
|
|
8659
8660
|
}), window.scrollTo({ top: 0, behavior: "smooth" }));
|
|
8660
8661
|
} else
|
|
8661
8662
|
Qe.show({
|
|
8662
8663
|
type: "danger",
|
|
8663
|
-
message: rr(
|
|
8664
|
+
message: rr(L)
|
|
8664
8665
|
}), window.scrollTo({ top: 0, behavior: "smooth" });
|
|
8665
|
-
return { success: !1, data: null, error:
|
|
8666
|
+
return { success: !1, data: null, error: y };
|
|
8666
8667
|
} finally {
|
|
8667
8668
|
c.value = !1;
|
|
8668
8669
|
}
|
|
8669
8670
|
}
|
|
8670
8671
|
async function v(x) {
|
|
8671
|
-
const { url: p, payload:
|
|
8672
|
+
const { url: p, payload: b, method: h = "post", node: S, isEditMode: y } = x, L = ro();
|
|
8672
8673
|
return f({
|
|
8673
|
-
submitFn: () =>
|
|
8674
|
-
method:
|
|
8674
|
+
submitFn: () => L[h](p, b),
|
|
8675
|
+
method: y ? "update" : "create",
|
|
8675
8676
|
node: S,
|
|
8676
|
-
isEditMode:
|
|
8677
|
+
isEditMode: y
|
|
8677
8678
|
});
|
|
8678
8679
|
}
|
|
8679
8680
|
async function m(x) {
|
|
8680
|
-
const { payload: p, node:
|
|
8681
|
-
return v({ url:
|
|
8681
|
+
const { payload: p, node: b, resourceId: h, isEditMode: S } = x, y = S ? `/${t}/${h}` : `/${t}`;
|
|
8682
|
+
return v({ url: y, payload: p, method: S ? "put" : "post", node: b, isEditMode: S });
|
|
8682
8683
|
}
|
|
8683
8684
|
return {
|
|
8684
8685
|
submitting: c,
|
|
@@ -8743,56 +8744,56 @@ function am(e, t = {}) {
|
|
|
8743
8744
|
}
|
|
8744
8745
|
function im(e = {}) {
|
|
8745
8746
|
const { items: t = [], defaultId: n = null, syncToQuery: o = !1 } = e, r = o === !0 ? "tab" : o || null, a = Ct(), s = Dt(), l = ke(t.map(i));
|
|
8746
|
-
function i(
|
|
8747
|
+
function i(b) {
|
|
8747
8748
|
return {
|
|
8748
|
-
id:
|
|
8749
|
-
label:
|
|
8750
|
-
icon:
|
|
8751
|
-
badge:
|
|
8752
|
-
badgeVariant:
|
|
8753
|
-
route:
|
|
8754
|
-
overlay:
|
|
8755
|
-
modal:
|
|
8756
|
-
action:
|
|
8757
|
-
disabled:
|
|
8758
|
-
hidden:
|
|
8749
|
+
id: b.id,
|
|
8750
|
+
label: b.label,
|
|
8751
|
+
icon: b.icon || null,
|
|
8752
|
+
badge: b.badge ?? null,
|
|
8753
|
+
badgeVariant: b.badgeVariant || "primary",
|
|
8754
|
+
route: b.route || null,
|
|
8755
|
+
overlay: b.overlay || null,
|
|
8756
|
+
modal: b.modal || null,
|
|
8757
|
+
action: b.action || null,
|
|
8758
|
+
disabled: b.disabled ?? !1,
|
|
8759
|
+
hidden: b.hidden ?? !1
|
|
8759
8760
|
};
|
|
8760
8761
|
}
|
|
8761
|
-
function u(
|
|
8762
|
-
return typeof
|
|
8762
|
+
function u(b) {
|
|
8763
|
+
return typeof b == "function" ? b() : b;
|
|
8763
8764
|
}
|
|
8764
|
-
const d = ee(() => l.value.filter((
|
|
8765
|
-
function g(
|
|
8766
|
-
const h = typeof
|
|
8765
|
+
const d = ee(() => l.value.filter((b) => !u(b.hidden)));
|
|
8766
|
+
function g(b) {
|
|
8767
|
+
const h = typeof b == "string" ? l.value.find((S) => S.id === b) : b;
|
|
8767
8768
|
return h ? u(h.disabled) : !1;
|
|
8768
8769
|
}
|
|
8769
|
-
function c(
|
|
8770
|
-
const h = typeof
|
|
8770
|
+
function c(b) {
|
|
8771
|
+
const h = typeof b == "string" ? l.value.find((y) => y.id === b) : b;
|
|
8771
8772
|
if (!h) return !1;
|
|
8772
8773
|
if (r && !h.route) {
|
|
8773
|
-
const
|
|
8774
|
-
if (
|
|
8775
|
-
const
|
|
8776
|
-
return h.id ===
|
|
8774
|
+
const y = s.query[r];
|
|
8775
|
+
if (y) return h.id === y;
|
|
8776
|
+
const L = n || d.value[0]?.id;
|
|
8777
|
+
return h.id === L;
|
|
8777
8778
|
}
|
|
8778
8779
|
if (!h.route) return !1;
|
|
8779
8780
|
const S = typeof h.route == "string" ? { name: h.route } : h.route;
|
|
8780
8781
|
if (S.name && s.name === S.name)
|
|
8781
8782
|
return !0;
|
|
8782
8783
|
if (S.path) {
|
|
8783
|
-
const
|
|
8784
|
-
return s.path ===
|
|
8784
|
+
const y = a.resolve(S);
|
|
8785
|
+
return s.path === y.path;
|
|
8785
8786
|
}
|
|
8786
8787
|
return !1;
|
|
8787
8788
|
}
|
|
8788
8789
|
const f = ee(() => {
|
|
8789
|
-
const
|
|
8790
|
-
return
|
|
8790
|
+
const b = d.value.find((h) => c(h));
|
|
8791
|
+
return b || (n ? d.value.find((h) => h.id === n) || d.value[0] : d.value[0] || null);
|
|
8791
8792
|
}), v = ee(() => f.value?.id || null);
|
|
8792
|
-
async function m(
|
|
8793
|
-
const h = typeof
|
|
8793
|
+
async function m(b) {
|
|
8794
|
+
const h = typeof b == "string" ? l.value.find((S) => S.id === b) : b;
|
|
8794
8795
|
if (!h)
|
|
8795
|
-
return console.warn(`[useSubNavigation] Item not found: ${
|
|
8796
|
+
return console.warn(`[useSubNavigation] Item not found: ${b}`), !1;
|
|
8796
8797
|
if (g(h))
|
|
8797
8798
|
return !1;
|
|
8798
8799
|
if (h.route) {
|
|
@@ -8802,16 +8803,16 @@ function im(e = {}) {
|
|
|
8802
8803
|
if (h.overlay) {
|
|
8803
8804
|
const {
|
|
8804
8805
|
component: S,
|
|
8805
|
-
props:
|
|
8806
|
-
eventHandlers:
|
|
8806
|
+
props: y = {},
|
|
8807
|
+
eventHandlers: L = {},
|
|
8807
8808
|
position: $ = "right",
|
|
8808
8809
|
size: Q
|
|
8809
8810
|
} = h.overlay;
|
|
8810
|
-
return Jt[$ === "left" ? "showLeft" : "showRight"](wn(S),
|
|
8811
|
+
return Jt[$ === "left" ? "showLeft" : "showRight"](wn(S), y, L, { size: Q }), !0;
|
|
8811
8812
|
}
|
|
8812
8813
|
if (h.modal) {
|
|
8813
|
-
const { component: S, props:
|
|
8814
|
-
return Rt.show(wn(S),
|
|
8814
|
+
const { component: S, props: y = {}, eventHandlers: L = {} } = h.modal;
|
|
8815
|
+
return Rt.show(wn(S), y, L), !0;
|
|
8815
8816
|
}
|
|
8816
8817
|
if (h.action) {
|
|
8817
8818
|
const S = h.action(h);
|
|
@@ -8819,11 +8820,11 @@ function im(e = {}) {
|
|
|
8819
8820
|
}
|
|
8820
8821
|
return r ? (await a.replace({ query: { ...s.query, [r]: h.id } }), !0) : !1;
|
|
8821
8822
|
}
|
|
8822
|
-
function x(
|
|
8823
|
-
l.value =
|
|
8823
|
+
function x(b) {
|
|
8824
|
+
l.value = b.map(i);
|
|
8824
8825
|
}
|
|
8825
|
-
function p(
|
|
8826
|
-
const S = l.value.findIndex((
|
|
8826
|
+
function p(b, h) {
|
|
8827
|
+
const S = l.value.findIndex((y) => y.id === b);
|
|
8827
8828
|
S !== -1 && (l.value[S] = i({ ...l.value[S], ...h }));
|
|
8828
8829
|
}
|
|
8829
8830
|
return {
|
|
@@ -8974,7 +8975,7 @@ const cm = [
|
|
|
8974
8975
|
}
|
|
8975
8976
|
);
|
|
8976
8977
|
}, m = ee(() => n.mainNavStore.state.hidden ? ["w-0 overflow-hidden"] : [n.mainNavStore.state.collapsed ? "w-[80px]" : "w-[240px]"]), x = ee(() => n.mainNavStore.state.hidden ? ["pl-2.5"] : [n.mainNavStore.state.collapsed ? "pl-[80px]" : "pl-[240px]"]);
|
|
8977
|
-
return (p,
|
|
8978
|
+
return (p, b) => {
|
|
8978
8979
|
const h = Ue("font-awesome-icon"), S = Ue("router-view");
|
|
8979
8980
|
return C(), P(ze, null, [
|
|
8980
8981
|
_("div", {
|
|
@@ -8985,7 +8986,7 @@ const cm = [
|
|
|
8985
8986
|
_("div", Qd, [
|
|
8986
8987
|
_("a", {
|
|
8987
8988
|
class: "grid w-[40px] h-[40px] place-items-center rounded-md bg-primary-600 text-white text-[13px] cursor-pointer",
|
|
8988
|
-
onClick:
|
|
8989
|
+
onClick: b[0] || (b[0] = Xe((y) => e.mainNavStore.goto(e.appStore.state.homeRoute), ["prevent"]))
|
|
8989
8990
|
}, [
|
|
8990
8991
|
se(h, {
|
|
8991
8992
|
icon: oe(Fe)[g.value],
|
|
@@ -8995,54 +8996,54 @@ const cm = [
|
|
|
8995
8996
|
e.mainNavStore.state.collapsed ? ve("", !0) : (C(), P("a", {
|
|
8996
8997
|
key: 0,
|
|
8997
8998
|
class: "font-medium text-gray-800 ml-[10px] cursor-pointer",
|
|
8998
|
-
onClick:
|
|
8999
|
+
onClick: b[1] || (b[1] = Xe((y) => e.mainNavStore.goto(e.appStore.state.homeRoute), ["prevent"]))
|
|
8999
9000
|
}, xe(e.appStore.state.app), 1))
|
|
9000
9001
|
]),
|
|
9001
9002
|
_("ul", ef, [
|
|
9002
|
-
(C(!0), P(ze, null, st(l.value, (
|
|
9003
|
-
key:
|
|
9004
|
-
class: $e({ "mt-[10px]":
|
|
9003
|
+
(C(!0), P(ze, null, st(l.value, (y) => (C(), P("li", {
|
|
9004
|
+
key: y.name,
|
|
9005
|
+
class: $e({ "mt-[10px]": y.children })
|
|
9005
9006
|
}, [
|
|
9006
9007
|
_("a", {
|
|
9007
9008
|
class: $e([{
|
|
9008
|
-
"bg-gray-100": s(
|
|
9009
|
-
"hover:bg-gray-100":
|
|
9009
|
+
"bg-gray-100": s(y),
|
|
9010
|
+
"hover:bg-gray-100": y?.href
|
|
9010
9011
|
}, "h-[37px] sgroup flex items-center gap-x-2 rounded-md p-3 text-gray-800 leading-5 transition-all duration-300 ease-in-out"]),
|
|
9011
|
-
href:
|
|
9012
|
-
onClick: Xe((
|
|
9012
|
+
href: y?.href,
|
|
9013
|
+
onClick: Xe((L) => e.mainNavStore.goto(y.href), ["prevent"])
|
|
9013
9014
|
}, [
|
|
9014
|
-
|
|
9015
|
+
y.icon ? (C(), Me(h, {
|
|
9015
9016
|
key: 0,
|
|
9016
|
-
icon: oe(Fe)[
|
|
9017
|
-
class: $e([[(s(
|
|
9017
|
+
icon: oe(Fe)[y.icon],
|
|
9018
|
+
class: $e([[(s(y), "text-gray-400")], "size-4"])
|
|
9018
9019
|
}, null, 8, ["icon", "class"])) : ve("", !0),
|
|
9019
|
-
e.mainNavStore.state.collapsed ?
|
|
9020
|
+
e.mainNavStore.state.collapsed ? y?.children ? (C(), P("div", nf, [...b[6] || (b[6] = [
|
|
9020
9021
|
_("div", { class: "w-[10px] h-px bg-gray-400" }, null, -1)
|
|
9021
9022
|
])])) : ve("", !0) : (C(), P("span", {
|
|
9022
9023
|
key: 1,
|
|
9023
9024
|
class: $e({
|
|
9024
|
-
"text-[11px]":
|
|
9025
|
-
"text-[13px]": !
|
|
9026
|
-
"font-semibold":
|
|
9027
|
-
"text-gray-500":
|
|
9025
|
+
"text-[11px]": y?.children,
|
|
9026
|
+
"text-[13px]": !y?.children,
|
|
9027
|
+
"font-semibold": y?.children,
|
|
9028
|
+
"text-gray-500": y?.children
|
|
9028
9029
|
})
|
|
9029
|
-
}, xe(
|
|
9030
|
+
}, xe(y.name), 3))
|
|
9030
9031
|
], 10, tf),
|
|
9031
|
-
|
|
9032
|
-
(C(!0), P(ze, null, st(
|
|
9033
|
-
key:
|
|
9032
|
+
y.children ? (C(), P("ul", of, [
|
|
9033
|
+
(C(!0), P(ze, null, st(y.children, (L) => (C(), P("li", {
|
|
9034
|
+
key: L.name
|
|
9034
9035
|
}, [
|
|
9035
9036
|
_("a", {
|
|
9036
|
-
class: $e([[s(
|
|
9037
|
-
href:
|
|
9038
|
-
onClick: Xe(($) => e.mainNavStore.goto(
|
|
9037
|
+
class: $e([[s(L) ? "bg-gray-100" : "", "hover:bg-gray-100"], "h-[37px] sgroup flex items-center gap-x-2 rounded-md p-3 text-gray-800 leading-5 transition-all duration-300 ease-in-out"]),
|
|
9038
|
+
href: L.href,
|
|
9039
|
+
onClick: Xe(($) => e.mainNavStore.goto(L.href), ["prevent"])
|
|
9039
9040
|
}, [
|
|
9040
|
-
|
|
9041
|
+
L.icon ? (C(), Me(h, {
|
|
9041
9042
|
key: 0,
|
|
9042
|
-
icon: oe(Fe)[
|
|
9043
|
-
class: $e([[(s(
|
|
9043
|
+
icon: oe(Fe)[L.icon],
|
|
9044
|
+
class: $e([[(s(L), "text-gray-400")], "size-4"])
|
|
9044
9045
|
}, null, 8, ["icon", "class"])) : ve("", !0),
|
|
9045
|
-
e.mainNavStore.state.collapsed ? ve("", !0) : (C(), P("span", rf, xe(
|
|
9046
|
+
e.mainNavStore.state.collapsed ? ve("", !0) : (C(), P("span", rf, xe(L.name), 1))
|
|
9046
9047
|
], 10, sf)
|
|
9047
9048
|
]))), 128))
|
|
9048
9049
|
])) : ve("", !0)
|
|
@@ -9050,20 +9051,20 @@ const cm = [
|
|
|
9050
9051
|
]),
|
|
9051
9052
|
_("div", af, [
|
|
9052
9053
|
i.value.length ? (C(), P("ul", lf, [
|
|
9053
|
-
(C(!0), P(ze, null, st(i.value, (
|
|
9054
|
-
key:
|
|
9054
|
+
(C(!0), P(ze, null, st(i.value, (y) => (C(), P("li", {
|
|
9055
|
+
key: y.name
|
|
9055
9056
|
}, [
|
|
9056
9057
|
_("a", {
|
|
9057
|
-
class: $e([[s(
|
|
9058
|
-
href:
|
|
9059
|
-
onClick: Xe((
|
|
9058
|
+
class: $e([[s(y) ? "bg-gray-100" : "", "hover:bg-gray-100"], "h-[37px] sgroup flex items-center gap-x-2 rounded-md p-3 text-gray-800 leading-5 transition-all duration-300 ease-in-out"]),
|
|
9059
|
+
href: y.href,
|
|
9060
|
+
onClick: Xe((L) => e.mainNavStore.goto(y.href), ["prevent"])
|
|
9060
9061
|
}, [
|
|
9061
|
-
|
|
9062
|
+
y.icon ? (C(), Me(h, {
|
|
9062
9063
|
key: 0,
|
|
9063
|
-
icon: oe(Fe)[
|
|
9064
|
-
class: $e([[(s(
|
|
9064
|
+
icon: oe(Fe)[y.icon],
|
|
9065
|
+
class: $e([[(s(y), "text-gray-400")], "size-4"])
|
|
9065
9066
|
}, null, 8, ["icon", "class"])) : ve("", !0),
|
|
9066
|
-
e.mainNavStore.state.collapsed ? ve("", !0) : (C(), P("span", uf, xe(
|
|
9067
|
+
e.mainNavStore.state.collapsed ? ve("", !0) : (C(), P("span", uf, xe(y.name), 1))
|
|
9067
9068
|
], 10, cf)
|
|
9068
9069
|
]))), 128))
|
|
9069
9070
|
])) : ve("", !0),
|
|
@@ -9071,7 +9072,7 @@ const cm = [
|
|
|
9071
9072
|
_("a", {
|
|
9072
9073
|
class: "font-medium grid place-content-center gap-x-3 rounded-md h-10 p-2.5 text-gray-800 text-[13px] hover:bg-gray-100 transition-all duration-300 ease-in-out",
|
|
9073
9074
|
href: "#",
|
|
9074
|
-
onClick:
|
|
9075
|
+
onClick: b[2] || (b[2] = Xe((y) => e.mainNavStore.toggleCollapsed(), ["prevent"]))
|
|
9075
9076
|
}, [
|
|
9076
9077
|
se(h, {
|
|
9077
9078
|
icon: oe(Fe)[e.mainNavStore.state.collapsed ? "farArrowRightToLine" : "farArrowLeftToLine"],
|
|
@@ -9093,7 +9094,7 @@ const cm = [
|
|
|
9093
9094
|
se(h, {
|
|
9094
9095
|
icon: oe(Fe).farBarsSort,
|
|
9095
9096
|
class: "size-5",
|
|
9096
|
-
onClick:
|
|
9097
|
+
onClick: b[3] || (b[3] = (y) => e.mainNavStore.toggleHidden())
|
|
9097
9098
|
}, null, 8, ["icon"])
|
|
9098
9099
|
])
|
|
9099
9100
|
]),
|
|
@@ -9136,12 +9137,12 @@ const cm = [
|
|
|
9136
9137
|
se(oe(Ks), {
|
|
9137
9138
|
position: "left",
|
|
9138
9139
|
"overlay-instance": oe(Jt).left,
|
|
9139
|
-
onClose:
|
|
9140
|
+
onClose: b[4] || (b[4] = (y) => o("overlayClose", "left"))
|
|
9140
9141
|
}, null, 8, ["overlay-instance"]),
|
|
9141
9142
|
se(oe(Ks), {
|
|
9142
9143
|
position: "right",
|
|
9143
9144
|
"overlay-instance": oe(Jt).right,
|
|
9144
|
-
onClose:
|
|
9145
|
+
onClose: b[5] || (b[5] = (y) => o("overlayClose", "right"))
|
|
9145
9146
|
}, null, 8, ["overlay-instance"]),
|
|
9146
9147
|
se(oe(Eu))
|
|
9147
9148
|
], 64);
|