@wishbone-media/spark 0.51.0 → 0.52.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 +650 -637
- package/package.json +1 -1
- package/src/components/SparkModalContainer.vue +3 -1
- package/src/composables/sparkModalService.js +52 -35
package/dist/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as Ee, reactive as Ct, watch as nt, onMounted as Yt, nextTick as ha, onUnmounted as In, openBlock as E, createElementBlock as P, createElementVNode as T, Fragment as ze, renderList as rt, toDisplayString as we, createTextVNode as Ue, createCommentVNode as ye, withDirectives as en, vModelText as mo, vModelSelect as va, vShow as dr, computed as te, shallowRef as ya, getCurrentScope as ba, onScopeDispose as xa, shallowReadonly as dn, unref as oe, resolveComponent as Ze, normalizeClass as Le, createVNode as se, renderSlot as Qe, createBlock as Oe, resolveDynamicComponent as yt, markRaw as wn, Transition as fr, withCtx as Se, normalizeProps as wa, mergeProps as St, Teleport as pr, TransitionGroup as Cn, inject as io, onUpdated as mr, provide as Sa, resolveDirective as ka, useSlots as Wo, normalizeStyle as Mo, withModifiers as Je, toHandlers as gr, h as as } from "vue";
|
|
2
2
|
import { icon as Ut, library as hr } from "@fortawesome/fontawesome-svg-core";
|
|
3
3
|
import { FontAwesomeIcon as Gn } from "@fortawesome/vue-fontawesome";
|
|
4
|
-
import { faArrowUpRightFromSquare as
|
|
4
|
+
import { faArrowUpRightFromSquare as Ea, faCopy as Ca, faCircleDot as vr, faEyeDropper as yr, faAnglesLeft as br, faAnglesRight as xr, faStar as Ta, faSpinnerThird as wr, faCircle as _a, faFile as Oo, faCalendar as Sr, faArrowUp as kr, faArrowDown as Er, faPlus as Cr, faCircleCheck as $a, faInbox as La, faCloudArrowUp as Ma, faCloudDownload as Oa, faBolt as Pa, faUndo as Aa, faLock as Ra, faEyeSlash as Ia, faEye as Fa, faSignOut as Da, faXmark as Po, faTrash as Tr, faTimes as ja, faStreetView as Ha, faSortUp as Va, faSortDown as za, faSort as Ba, faScaleBalanced as Na, faSatelliteDish as qa, faLayerPlus as Wa, faLaptopMobile as Ua, faInfoCircle as Za, faGripDotsVertical as _r, faGearComplex as Ga, faFlag as Ya, faFaceSmileWink as Xa, faFaceSmileRelaxed as Ka, faExclamationTriangle as Ja, faEllipsisVertical as Qa, faEllipsis as ei, faEdit as ti, faComments as ni, faCircleXmark as oi, faCircleUser as si, faChevronUp as ri, faChevronRight as $r, faChevronLeft as Lr, faChevronDown as Mr, faCheckCircle as ai, faCheck as Ao, faBullhorn as ii, faBellRing as li, faBarsSort as ci, faArrowRightToLine as ui, faArrowLeftToLine as di } from "@fortawesome/pro-regular-svg-icons";
|
|
5
5
|
import { faSortUp as fi, faSortDown as pi, faSort as mi } from "@fortawesome/pro-duotone-svg-icons";
|
|
6
6
|
import { defineStore as Fn } from "pinia";
|
|
7
7
|
import { useRoute as jt, useRouter as Tt, onBeforeRouteLeave as gi } from "vue-router";
|
|
8
8
|
import { TransitionRoot as Or, Dialog as Pr, TransitionChild as Jn, DialogPanel as Ar } from "@headlessui/vue";
|
|
9
9
|
import go from "nprogress";
|
|
10
|
-
import { range as hi, get as
|
|
10
|
+
import { range as hi, get as Bt, has as vi, find as yi } from "lodash";
|
|
11
11
|
import { HotTable as bi } from "@handsontable/vue3";
|
|
12
12
|
import "handsontable/styles/handsontable.css";
|
|
13
13
|
import "handsontable/styles/ht-theme-classic.css";
|
|
14
14
|
import { registerPlugin as Vn, AutoColumnSize as xi, CopyPaste as wi, StretchColumns as Si, NestedHeaders as ki } from "handsontable/plugins";
|
|
15
|
-
import { registerAllCellTypes as
|
|
15
|
+
import { registerAllCellTypes as Ei } from "handsontable/cellTypes";
|
|
16
16
|
import { useDebounceFn as Rr, watchDebounced as is } from "@vueuse/core";
|
|
17
|
-
import { registerRenderer as
|
|
17
|
+
import { registerRenderer as Ci, baseRenderer as Ti } from "handsontable/renderers";
|
|
18
18
|
import vn from "axios";
|
|
19
19
|
function _i(e, t) {
|
|
20
20
|
e.src = t;
|
|
@@ -58,7 +58,7 @@ function ji() {
|
|
|
58
58
|
}
|
|
59
59
|
return { loadPlaces: e };
|
|
60
60
|
}
|
|
61
|
-
const Hi = { class: "spark-address-input" }, Vi = ["disabled"], zi = ["selected"],
|
|
61
|
+
const Hi = { class: "spark-address-input" }, Vi = ["disabled"], zi = ["selected"], Bi = ["value", "selected"], Ni = { class: "mt-2 flex items-center gap-2" }, qi = ["disabled"], Wi = {
|
|
62
62
|
class: "h-3.5 w-3.5",
|
|
63
63
|
fill: "none",
|
|
64
64
|
viewBox: "0 0 24 24",
|
|
@@ -74,7 +74,7 @@ const Hi = { class: "spark-address-input" }, Vi = ["disabled"], zi = ["selected"
|
|
|
74
74
|
"stroke-linecap": "round",
|
|
75
75
|
"stroke-linejoin": "round",
|
|
76
76
|
d: "M12 4v16m8-8H4"
|
|
77
|
-
}, Gi = ["disabled"], Yi = { class: "mt-3 grid grid-cols-2 gap-2" }, Xi = ["disabled"], Ki = ["disabled"], Ji = ["disabled"], Qi = ["value"], el = ["disabled"], tl = { class: "col-span-2 text-right" }, nl = ["disabled"],
|
|
77
|
+
}, Gi = ["disabled"], Yi = { class: "mt-3 grid grid-cols-2 gap-2" }, Xi = ["disabled"], Ki = ["disabled"], Ji = ["disabled"], Qi = ["value"], el = ["disabled"], tl = { class: "col-span-2 text-right" }, nl = ["disabled"], Np = {
|
|
78
78
|
__name: "SparkAddressInput",
|
|
79
79
|
props: {
|
|
80
80
|
modelValue: {
|
|
@@ -113,9 +113,9 @@ const Hi = { class: "spark-address-input" }, Vi = ["disabled"], zi = ["selected"
|
|
|
113
113
|
},
|
|
114
114
|
emits: ["update:modelValue", "error", "create-new"],
|
|
115
115
|
setup(e, { emit: t }) {
|
|
116
|
-
const n = e, o = t, r =
|
|
116
|
+
const n = e, o = t, r = Ee(n.mode), a = Ee(!1), s = Ee(null);
|
|
117
117
|
let c = null, l = !1;
|
|
118
|
-
const u =
|
|
118
|
+
const u = Ct({
|
|
119
119
|
id: null,
|
|
120
120
|
street: "",
|
|
121
121
|
city: "",
|
|
@@ -209,8 +209,8 @@ const Hi = { class: "spark-address-input" }, Vi = ["disabled"], zi = ["selected"
|
|
|
209
209
|
v === "autocomplete" && (await ha(), f());
|
|
210
210
|
}), In(() => {
|
|
211
211
|
l = !0, c && (c.removeEventListener("gmp-select", h), c = null);
|
|
212
|
-
}), (v, S) => (
|
|
213
|
-
r.value === "select" ? (
|
|
212
|
+
}), (v, S) => (E(), P("div", Hi, [
|
|
213
|
+
r.value === "select" ? (E(), P("select", {
|
|
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,
|
|
@@ -221,27 +221,27 @@ const Hi = { class: "spark-address-input" }, Vi = ["disabled"], zi = ["selected"
|
|
|
221
221
|
disabled: "",
|
|
222
222
|
selected: !e.modelValue?.id
|
|
223
223
|
}, "Select an address...", 8, zi),
|
|
224
|
-
(
|
|
224
|
+
(E(!0), P(ze, null, rt(e.existingAddresses, (x) => (E(), P("option", {
|
|
225
225
|
key: x.id,
|
|
226
226
|
value: x.id,
|
|
227
227
|
selected: x.id === e.modelValue?.id
|
|
228
|
-
}, we(x.formatted || b(x)), 9,
|
|
228
|
+
}, we(x.formatted || b(x)), 9, Bi))), 128)),
|
|
229
229
|
S[7] || (S[7] = T("option", { value: "__create_new__" }, ">>> Create a new address", -1))
|
|
230
|
-
], 40, Vi)) : (
|
|
230
|
+
], 40, Vi)) : (E(), P(ze, { key: 1 }, [
|
|
231
231
|
T("div", {
|
|
232
232
|
ref_key: "googleContainerRef",
|
|
233
233
|
ref: s,
|
|
234
234
|
class: "spark-address-google-container"
|
|
235
235
|
}, null, 512),
|
|
236
|
-
T("div",
|
|
236
|
+
T("div", Ni, [
|
|
237
237
|
T("button", {
|
|
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
241
|
onClick: S[1] || (S[1] = (x) => a.value = !a.value)
|
|
242
242
|
}, [
|
|
243
|
-
(
|
|
244
|
-
a.value ? (
|
|
243
|
+
(E(), P("svg", Wi, [
|
|
244
|
+
a.value ? (E(), P("path", Ui)) : (E(), P("path", Zi))
|
|
245
245
|
])),
|
|
246
246
|
Ue(" " + we(a.value ? "Hide manual entry" : "Manual entry"), 1)
|
|
247
247
|
], 8, qi),
|
|
@@ -266,7 +266,7 @@ const Hi = { class: "spark-address-input" }, Vi = ["disabled"], zi = ["selected"
|
|
|
266
266
|
], -1),
|
|
267
267
|
Ue(" Clear ", -1)
|
|
268
268
|
])], 8, Gi),
|
|
269
|
-
e.mode === "select" && r.value === "autocomplete" ? (
|
|
269
|
+
e.mode === "select" && r.value === "autocomplete" ? (E(), P("button", {
|
|
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",
|
|
@@ -311,7 +311,7 @@ const Hi = { class: "spark-address-input" }, Vi = ["disabled"], zi = ["selected"
|
|
|
311
311
|
onChange: p
|
|
312
312
|
}, [
|
|
313
313
|
S[9] || (S[9] = T("option", { value: "" }, "State", -1)),
|
|
314
|
-
(
|
|
314
|
+
(E(!0), P(ze, null, rt(e.states, (x) => (E(), P("option", {
|
|
315
315
|
key: x,
|
|
316
316
|
value: x
|
|
317
317
|
}, we(x), 9, Qi))), 128))
|
|
@@ -347,7 +347,7 @@ const Hi = { class: "spark-address-input" }, Vi = ["disabled"], zi = ["selected"
|
|
|
347
347
|
], 64))
|
|
348
348
|
]));
|
|
349
349
|
}
|
|
350
|
-
}, Sn = Math.min, nn = Math.max, Qn = Math.round,
|
|
350
|
+
}, Sn = Math.min, nn = Math.max, Qn = Math.round, Bn = Math.floor, Mt = (e) => ({
|
|
351
351
|
x: e,
|
|
352
352
|
y: e
|
|
353
353
|
}), ol = {
|
|
@@ -866,7 +866,7 @@ function Hn(e) {
|
|
|
866
866
|
overflowX: n,
|
|
867
867
|
overflowY: o,
|
|
868
868
|
display: r
|
|
869
|
-
} =
|
|
869
|
+
} = Et(e);
|
|
870
870
|
return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && r !== "inline" && r !== "contents";
|
|
871
871
|
}
|
|
872
872
|
function xl(e) {
|
|
@@ -887,7 +887,7 @@ function co(e) {
|
|
|
887
887
|
const wl = /transform|translate|scale|rotate|perspective|filter/, Sl = /paint|layout|strict|content/, Xt = (e) => !!e && e !== "none";
|
|
888
888
|
let ho;
|
|
889
889
|
function Xo(e) {
|
|
890
|
-
const t = kt(e) ?
|
|
890
|
+
const t = kt(e) ? Et(e) : e;
|
|
891
891
|
return Xt(t.transform) || Xt(t.translate) || Xt(t.scale) || Xt(t.rotate) || Xt(t.perspective) || !Ko() && (Xt(t.backdropFilter) || Xt(t.filter)) || wl.test(t.willChange || "") || Sl.test(t.contain || "");
|
|
892
892
|
}
|
|
893
893
|
function kl(e) {
|
|
@@ -907,7 +907,7 @@ function Ko() {
|
|
|
907
907
|
function kn(e) {
|
|
908
908
|
return /^(html|body|#document)$/.test(an(e));
|
|
909
909
|
}
|
|
910
|
-
function
|
|
910
|
+
function Et(e) {
|
|
911
911
|
return mt(e).getComputedStyle(e);
|
|
912
912
|
}
|
|
913
913
|
function uo(e) {
|
|
@@ -949,7 +949,7 @@ function Do(e) {
|
|
|
949
949
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
950
950
|
}
|
|
951
951
|
function Hr(e) {
|
|
952
|
-
const t =
|
|
952
|
+
const t = Et(e);
|
|
953
953
|
let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
|
|
954
954
|
const r = Ht(e), a = r ? e.offsetWidth : n, s = r ? e.offsetHeight : o, c = Qn(n) !== a || Qn(o) !== s;
|
|
955
955
|
return c && (n = a, o = s), {
|
|
@@ -976,15 +976,15 @@ function yn(e) {
|
|
|
976
976
|
y: c
|
|
977
977
|
};
|
|
978
978
|
}
|
|
979
|
-
const
|
|
979
|
+
const El = /* @__PURE__ */ Mt(0);
|
|
980
980
|
function Vr(e) {
|
|
981
981
|
const t = mt(e);
|
|
982
|
-
return !Ko() || !t.visualViewport ?
|
|
982
|
+
return !Ko() || !t.visualViewport ? El : {
|
|
983
983
|
x: t.visualViewport.offsetLeft,
|
|
984
984
|
y: t.visualViewport.offsetTop
|
|
985
985
|
};
|
|
986
986
|
}
|
|
987
|
-
function
|
|
987
|
+
function Cl(e, t, n) {
|
|
988
988
|
return t === void 0 && (t = !1), !n || t && n !== mt(e) ? !1 : t;
|
|
989
989
|
}
|
|
990
990
|
function rn(e, t, n, o) {
|
|
@@ -992,13 +992,13 @@ function rn(e, t, n, o) {
|
|
|
992
992
|
const r = e.getBoundingClientRect(), a = Jo(e);
|
|
993
993
|
let s = Mt(1);
|
|
994
994
|
t && (o ? kt(o) && (s = yn(o)) : s = yn(e));
|
|
995
|
-
const c =
|
|
995
|
+
const c = Cl(a, n, o) ? Vr(a) : Mt(0);
|
|
996
996
|
let l = (r.left + c.x) / s.x, u = (r.top + c.y) / s.y, d = r.width / s.x, g = r.height / s.y;
|
|
997
997
|
if (a) {
|
|
998
998
|
const i = mt(a), f = o && kt(o) ? mt(o) : o;
|
|
999
999
|
let h = i, p = Do(h);
|
|
1000
1000
|
for (; p && o && f !== h; ) {
|
|
1001
|
-
const b = yn(p), m = p.getBoundingClientRect(), y =
|
|
1001
|
+
const b = yn(p), m = p.getBoundingClientRect(), y = Et(p), v = m.left + (p.clientLeft + parseFloat(y.paddingLeft)) * b.x, S = m.top + (p.clientTop + parseFloat(y.paddingTop)) * b.y;
|
|
1002
1002
|
l *= b.x, u *= b.y, d *= b.x, g *= b.y, l += v, u += S, h = mt(p), p = Do(h);
|
|
1003
1003
|
}
|
|
1004
1004
|
}
|
|
@@ -1054,7 +1054,7 @@ function $l(e) {
|
|
|
1054
1054
|
const t = Ot(e), n = uo(e), o = e.ownerDocument.body, r = nn(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), a = nn(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
|
|
1055
1055
|
let s = -n.scrollLeft + fo(e);
|
|
1056
1056
|
const c = -n.scrollTop;
|
|
1057
|
-
return
|
|
1057
|
+
return Et(o).direction === "rtl" && (s += nn(t.clientWidth, o.clientWidth) - r), {
|
|
1058
1058
|
width: r,
|
|
1059
1059
|
height: a,
|
|
1060
1060
|
x: s,
|
|
@@ -1110,20 +1110,20 @@ function ms(e, t, n) {
|
|
|
1110
1110
|
}
|
|
1111
1111
|
return to(o);
|
|
1112
1112
|
}
|
|
1113
|
-
function
|
|
1113
|
+
function Br(e, t) {
|
|
1114
1114
|
const n = Zt(e);
|
|
1115
|
-
return n === t || !kt(n) || kn(n) ? !1 :
|
|
1115
|
+
return n === t || !kt(n) || kn(n) ? !1 : Et(n).position === "fixed" || Br(n, t);
|
|
1116
1116
|
}
|
|
1117
1117
|
function Ol(e, t) {
|
|
1118
1118
|
const n = t.get(e);
|
|
1119
1119
|
if (n)
|
|
1120
1120
|
return n;
|
|
1121
1121
|
let o = Pn(e, [], !1).filter((c) => kt(c) && an(c) !== "body"), r = null;
|
|
1122
|
-
const a =
|
|
1122
|
+
const a = Et(e).position === "fixed";
|
|
1123
1123
|
let s = a ? Zt(e) : e;
|
|
1124
1124
|
for (; kt(s) && !kn(s); ) {
|
|
1125
|
-
const c =
|
|
1126
|
-
!l && c.position === "fixed" && (r = null), (a ? !l && !r : !l && c.position === "static" && !!r && (r.position === "absolute" || r.position === "fixed") || Hn(s) && !l &&
|
|
1125
|
+
const c = Et(s), l = Xo(s);
|
|
1126
|
+
!l && c.position === "fixed" && (r = null), (a ? !l && !r : !l && c.position === "static" && !!r && (r.position === "absolute" || r.position === "fixed") || Hn(s) && !l && Br(e, s)) ? o = o.filter((d) => d !== s) : r = c, s = Zt(s);
|
|
1127
1127
|
}
|
|
1128
1128
|
return t.set(e, o), o;
|
|
1129
1129
|
}
|
|
@@ -1182,17 +1182,17 @@ function Rl(e, t, n) {
|
|
|
1182
1182
|
};
|
|
1183
1183
|
}
|
|
1184
1184
|
function vo(e) {
|
|
1185
|
-
return
|
|
1185
|
+
return Et(e).position === "static";
|
|
1186
1186
|
}
|
|
1187
1187
|
function gs(e, t) {
|
|
1188
|
-
if (!Ht(e) ||
|
|
1188
|
+
if (!Ht(e) || Et(e).position === "fixed")
|
|
1189
1189
|
return null;
|
|
1190
1190
|
if (t)
|
|
1191
1191
|
return t(e);
|
|
1192
1192
|
let n = e.offsetParent;
|
|
1193
1193
|
return Ot(e) === n && (n = n.ownerDocument.body), n;
|
|
1194
1194
|
}
|
|
1195
|
-
function
|
|
1195
|
+
function Nr(e, t) {
|
|
1196
1196
|
const n = mt(e);
|
|
1197
1197
|
if (co(e))
|
|
1198
1198
|
return n;
|
|
@@ -1211,7 +1211,7 @@ function Br(e, t) {
|
|
|
1211
1211
|
return o && kn(o) && vo(o) && !Xo(o) ? n : o || kl(e) || n;
|
|
1212
1212
|
}
|
|
1213
1213
|
const Il = async function(e) {
|
|
1214
|
-
const t = this.getOffsetParent ||
|
|
1214
|
+
const t = this.getOffsetParent || Nr, n = this.getDimensions, o = await n(e.floating);
|
|
1215
1215
|
return {
|
|
1216
1216
|
reference: Rl(e.reference, await t(e.floating), e.strategy),
|
|
1217
1217
|
floating: {
|
|
@@ -1223,13 +1223,13 @@ const Il = async function(e) {
|
|
|
1223
1223
|
};
|
|
1224
1224
|
};
|
|
1225
1225
|
function Fl(e) {
|
|
1226
|
-
return
|
|
1226
|
+
return Et(e).direction === "rtl";
|
|
1227
1227
|
}
|
|
1228
1228
|
const Dl = {
|
|
1229
1229
|
convertOffsetParentRelativeRectToViewportRelativeRect: Tl,
|
|
1230
1230
|
getDocumentElement: Ot,
|
|
1231
1231
|
getClippingRect: Pl,
|
|
1232
|
-
getOffsetParent:
|
|
1232
|
+
getOffsetParent: Nr,
|
|
1233
1233
|
getElementRects: Il,
|
|
1234
1234
|
getClientRects: _l,
|
|
1235
1235
|
getDimensions: Al,
|
|
@@ -1257,7 +1257,7 @@ function jl(e, t) {
|
|
|
1257
1257
|
} = u;
|
|
1258
1258
|
if (c || t(), !i || !f)
|
|
1259
1259
|
return;
|
|
1260
|
-
const h =
|
|
1260
|
+
const h = Bn(g), p = Bn(r.clientWidth - (d + i)), b = Bn(r.clientHeight - (g + f)), m = Bn(d), v = {
|
|
1261
1261
|
rootMargin: -h + "px " + -p + "px " + -b + "px " + -m + "px",
|
|
1262
1262
|
threshold: nn(0, Sn(1, l)) || 1
|
|
1263
1263
|
};
|
|
@@ -1368,7 +1368,7 @@ function hs(e, t) {
|
|
|
1368
1368
|
const n = Xr(e);
|
|
1369
1369
|
return Math.round(t * n) / n;
|
|
1370
1370
|
}
|
|
1371
|
-
function
|
|
1371
|
+
function Bl(e, t, n) {
|
|
1372
1372
|
n === void 0 && (n = {});
|
|
1373
1373
|
const o = n.whileElementsMounted, r = te(() => {
|
|
1374
1374
|
var M;
|
|
@@ -1382,7 +1382,7 @@ function Nl(e, t, n) {
|
|
|
1382
1382
|
}), l = te(() => {
|
|
1383
1383
|
var M;
|
|
1384
1384
|
return (M = fn(n.transform)) != null ? M : !0;
|
|
1385
|
-
}), u = te(() => jo(e.value)), d = te(() => jo(t.value)), g =
|
|
1385
|
+
}), u = te(() => jo(e.value)), d = te(() => jo(t.value)), g = Ee(0), i = Ee(0), f = Ee(c.value), h = Ee(s.value), p = ya({}), b = Ee(!1), m = te(() => {
|
|
1386
1386
|
const M = {
|
|
1387
1387
|
position: f.value,
|
|
1388
1388
|
left: "0",
|
|
@@ -1462,7 +1462,7 @@ function ys(e) {
|
|
|
1462
1462
|
...e
|
|
1463
1463
|
} : { content: "" };
|
|
1464
1464
|
}
|
|
1465
|
-
function
|
|
1465
|
+
function Nl(e) {
|
|
1466
1466
|
const t = document.createElement("div");
|
|
1467
1467
|
if (t.className = e.interactive ? `${vs} spark-tooltip-interactive` : vs, t.setAttribute("role", "tooltip"), e.html ? t.innerHTML = e.content : t.textContent = e.content, e.arrow) {
|
|
1468
1468
|
const n = document.createElement("div");
|
|
@@ -1499,7 +1499,7 @@ function ql(e) {
|
|
|
1499
1499
|
const n = typeof t.config.delay == "number" ? t.config.delay : t.config.delay?.show ?? 200;
|
|
1500
1500
|
t.showTimeout = setTimeout(() => {
|
|
1501
1501
|
if (t.tooltipEl) return;
|
|
1502
|
-
const o =
|
|
1502
|
+
const o = Nl(t.config);
|
|
1503
1503
|
o.style.position = "fixed", o.style.top = "0", o.style.left = "0", document.body.appendChild(o), t.tooltipEl = o, t.config.interactive && (o.addEventListener("mouseenter", () => {
|
|
1504
1504
|
clearTimeout(t.hideTimeout);
|
|
1505
1505
|
}), o.addEventListener("mouseleave", () => {
|
|
@@ -1592,8 +1592,8 @@ const Fe = {
|
|
|
1592
1592
|
farLaptopMobile: Ua,
|
|
1593
1593
|
farLayerPlus: Wa,
|
|
1594
1594
|
farSatelliteDish: qa,
|
|
1595
|
-
farScaleBalanced:
|
|
1596
|
-
farSort:
|
|
1595
|
+
farScaleBalanced: Na,
|
|
1596
|
+
farSort: Ba,
|
|
1597
1597
|
farSortDown: za,
|
|
1598
1598
|
farSortUp: Va,
|
|
1599
1599
|
farStreetView: Ha,
|
|
@@ -1614,8 +1614,8 @@ const Fe = {
|
|
|
1614
1614
|
fadSortDown: pi,
|
|
1615
1615
|
fadSortUp: fi,
|
|
1616
1616
|
// Additional icons for FormKit genesis replacement
|
|
1617
|
-
farPlus:
|
|
1618
|
-
farArrowDown:
|
|
1617
|
+
farPlus: Cr,
|
|
1618
|
+
farArrowDown: Er,
|
|
1619
1619
|
farArrowUp: kr,
|
|
1620
1620
|
farCalendar: Sr,
|
|
1621
1621
|
farFile: Oo,
|
|
@@ -1626,16 +1626,16 @@ const Fe = {
|
|
|
1626
1626
|
farAnglesLeft: br,
|
|
1627
1627
|
farEyeDropper: yr,
|
|
1628
1628
|
farCircleDot: vr,
|
|
1629
|
-
farCopy:
|
|
1630
|
-
farArrowUpRightFromSquare:
|
|
1629
|
+
farCopy: Ca,
|
|
1630
|
+
farArrowUpRightFromSquare: Ea
|
|
1631
1631
|
}, qp = Object.fromEntries(
|
|
1632
1632
|
Object.entries(Fe).map(([e, t]) => {
|
|
1633
1633
|
const n = Ut(t);
|
|
1634
1634
|
return [e, n?.html?.[0] || ""];
|
|
1635
1635
|
})
|
|
1636
1636
|
), Yl = {
|
|
1637
|
-
add:
|
|
1638
|
-
arrowDown:
|
|
1637
|
+
add: Cr,
|
|
1638
|
+
arrowDown: Er,
|
|
1639
1639
|
arrowUp: kr,
|
|
1640
1640
|
check: Ao,
|
|
1641
1641
|
close: Po,
|
|
@@ -1717,7 +1717,7 @@ const Xl = { class: "flex items-center" }, Kl = { class: "shrink-0 self-start" }
|
|
|
1717
1717
|
})[t.type]);
|
|
1718
1718
|
return (s, c) => {
|
|
1719
1719
|
const l = Ze("font-awesome-icon");
|
|
1720
|
-
return
|
|
1720
|
+
return E(), P("div", {
|
|
1721
1721
|
class: Le(["rounded-md border p-4", n.value])
|
|
1722
1722
|
}, [
|
|
1723
1723
|
T("div", Xl, [
|
|
@@ -1730,7 +1730,7 @@ const Xl = { class: "flex items-center" }, Kl = { class: "shrink-0 self-start" }
|
|
|
1730
1730
|
T("div", Jl, [
|
|
1731
1731
|
Qe(s.$slots, "default")
|
|
1732
1732
|
]),
|
|
1733
|
-
e.closeable ? (
|
|
1733
|
+
e.closeable ? (E(), P("div", Ql, [
|
|
1734
1734
|
T("div", ec, [
|
|
1735
1735
|
T("button", {
|
|
1736
1736
|
type: "button",
|
|
@@ -1797,7 +1797,7 @@ const Xl = { class: "flex items-center" }, Kl = { class: "shrink-0 self-start" }
|
|
|
1797
1797
|
icon: "farCompass"
|
|
1798
1798
|
}
|
|
1799
1799
|
], Qr = Fn("sparkAppSelector", () => {
|
|
1800
|
-
const e =
|
|
1800
|
+
const e = Ct({
|
|
1801
1801
|
apps: [...bo]
|
|
1802
1802
|
}), t = (a = {}) => {
|
|
1803
1803
|
if (a.apps && Array.isArray(a.apps)) {
|
|
@@ -1843,7 +1843,7 @@ const Xl = { class: "flex items-center" }, Kl = { class: "shrink-0 self-start" }
|
|
|
1843
1843
|
}
|
|
1844
1844
|
};
|
|
1845
1845
|
}), ea = Fn("sparkApp", () => {
|
|
1846
|
-
const e =
|
|
1846
|
+
const e = Ct({
|
|
1847
1847
|
app: "",
|
|
1848
1848
|
homeRoute: "dashboard",
|
|
1849
1849
|
showBrandSelector: !0,
|
|
@@ -1889,7 +1889,7 @@ const Xl = { class: "flex items-center" }, Kl = { class: "shrink-0 self-start" }
|
|
|
1889
1889
|
};
|
|
1890
1890
|
return (c, l) => {
|
|
1891
1891
|
const u = Ze("font-awesome-icon");
|
|
1892
|
-
return
|
|
1892
|
+
return E(), P("div", tc, [
|
|
1893
1893
|
T("div", nc, [
|
|
1894
1894
|
T("div", oc, [
|
|
1895
1895
|
T("div", sc, [
|
|
@@ -1902,7 +1902,7 @@ const Xl = { class: "flex items-center" }, Kl = { class: "shrink-0 self-start" }
|
|
|
1902
1902
|
}, null, 8, ["icon"])
|
|
1903
1903
|
])
|
|
1904
1904
|
]),
|
|
1905
|
-
(
|
|
1905
|
+
(E(!0), P(ze, null, rt(a.value, (d) => (E(), P("a", {
|
|
1906
1906
|
key: d.name,
|
|
1907
1907
|
href: d.href,
|
|
1908
1908
|
target: "_blank",
|
|
@@ -1912,7 +1912,7 @@ const Xl = { class: "flex items-center" }, Kl = { class: "shrink-0 self-start" }
|
|
|
1912
1912
|
T("div", ic, [
|
|
1913
1913
|
T("div", lc, [
|
|
1914
1914
|
T("div", cc, we(d.name), 1),
|
|
1915
|
-
d.current ? (
|
|
1915
|
+
d.current ? (E(), P("span", uc, " Active ")) : ye("", !0)
|
|
1916
1916
|
]),
|
|
1917
1917
|
T("div", dc, we(d.description), 1)
|
|
1918
1918
|
]),
|
|
@@ -1926,14 +1926,14 @@ const Xl = { class: "flex items-center" }, Kl = { class: "shrink-0 self-start" }
|
|
|
1926
1926
|
l[2] || (l[2] = T("div", null, null, -1))
|
|
1927
1927
|
]),
|
|
1928
1928
|
T("div", pc, [
|
|
1929
|
-
c.$slots.bottom || e.bottomSlot ? (
|
|
1929
|
+
c.$slots.bottom || e.bottomSlot ? (E(), P("div", mc, [
|
|
1930
1930
|
Qe(c.$slots, "bottom", {}, () => [
|
|
1931
|
-
e.bottomSlot ? (
|
|
1931
|
+
e.bottomSlot ? (E(), Oe(yt(e.bottomSlot), { key: 0 })) : ye("", !0)
|
|
1932
1932
|
])
|
|
1933
1933
|
])) : ye("", !0),
|
|
1934
|
-
c.$slots.footer || e.footerSlot ? (
|
|
1934
|
+
c.$slots.footer || e.footerSlot ? (E(), P("div", gc, [
|
|
1935
1935
|
Qe(c.$slots, "footer", {}, () => [
|
|
1936
|
-
e.footerSlot ? (
|
|
1936
|
+
e.footerSlot ? (E(), Oe(yt(e.footerSlot), { key: 0 })) : ye("", !0)
|
|
1937
1937
|
])
|
|
1938
1938
|
])) : ye("", !0)
|
|
1939
1939
|
])
|
|
@@ -1949,7 +1949,7 @@ const Xl = { class: "flex items-center" }, Kl = { class: "shrink-0 self-start" }
|
|
|
1949
1949
|
// sticky by default
|
|
1950
1950
|
}, bs = ["top-left", "top-right", "center", "bottom-left", "bottom-right"];
|
|
1951
1951
|
function vc() {
|
|
1952
|
-
const e =
|
|
1952
|
+
const e = Ct({
|
|
1953
1953
|
isVisible: !1,
|
|
1954
1954
|
type: "info",
|
|
1955
1955
|
message: null,
|
|
@@ -2006,7 +2006,7 @@ function vc() {
|
|
|
2006
2006
|
}
|
|
2007
2007
|
class yc {
|
|
2008
2008
|
constructor() {
|
|
2009
|
-
this.outlets = /* @__PURE__ */ new Map(), this.toastState =
|
|
2009
|
+
this.outlets = /* @__PURE__ */ new Map(), this.toastState = Ct({
|
|
2010
2010
|
toasts: [],
|
|
2011
2011
|
maxToasts: 3,
|
|
2012
2012
|
defaultPosition: "bottom-right",
|
|
@@ -2231,7 +2231,7 @@ const tt = new yc(), Yp = {
|
|
|
2231
2231
|
}
|
|
2232
2232
|
},
|
|
2233
2233
|
setup(e) {
|
|
2234
|
-
const t = e, n = jt(), o = te(() => tt.getOutlet(t.name)), r =
|
|
2234
|
+
const t = e, n = jt(), o = te(() => tt.getOutlet(t.name)), r = Ee(0);
|
|
2235
2235
|
nt(
|
|
2236
2236
|
() => [o.value.state.message, o.value.state.component, o.value.state.type],
|
|
2237
2237
|
() => {
|
|
@@ -2258,7 +2258,7 @@ const tt = new yc(), Yp = {
|
|
|
2258
2258
|
}, c = () => {
|
|
2259
2259
|
tt.resume(t.name);
|
|
2260
2260
|
};
|
|
2261
|
-
return (l, u) => (
|
|
2261
|
+
return (l, u) => (E(), Oe(fr, {
|
|
2262
2262
|
"enter-active-class": "transition-all duration-300 ease-out",
|
|
2263
2263
|
"enter-from-class": "opacity-0 -translate-y-2",
|
|
2264
2264
|
"enter-to-class": "opacity-100 translate-y-0",
|
|
@@ -2268,7 +2268,7 @@ const tt = new yc(), Yp = {
|
|
|
2268
2268
|
mode: "out-in"
|
|
2269
2269
|
}, {
|
|
2270
2270
|
default: Se(() => [
|
|
2271
|
-
o.value.state.isVisible ? (
|
|
2271
|
+
o.value.state.isVisible ? (E(), Oe(pn, {
|
|
2272
2272
|
key: r.value,
|
|
2273
2273
|
type: o.value.state.type,
|
|
2274
2274
|
closeable: o.value.state.closeable,
|
|
@@ -2277,7 +2277,7 @@ const tt = new yc(), Yp = {
|
|
|
2277
2277
|
onMouseleave: c
|
|
2278
2278
|
}, {
|
|
2279
2279
|
default: Se(() => [
|
|
2280
|
-
o.value.state.component ? (
|
|
2280
|
+
o.value.state.component ? (E(), Oe(yt(o.value.state.component), wa(St({ key: 0 }, o.value.state.props)), null, 16)) : (E(), P(ze, { key: 1 }, [
|
|
2281
2281
|
Ue(we(o.value.state.message), 1)
|
|
2282
2282
|
], 64))
|
|
2283
2283
|
]),
|
|
@@ -2301,9 +2301,9 @@ const tt = new yc(), Yp = {
|
|
|
2301
2301
|
}, u = (d) => {
|
|
2302
2302
|
tt.resumeToast(d);
|
|
2303
2303
|
};
|
|
2304
|
-
return (d, g) => (
|
|
2304
|
+
return (d, g) => (E(), Oe(pr, { to: "body" }, [
|
|
2305
2305
|
T("div", bc, [
|
|
2306
|
-
se(
|
|
2306
|
+
se(Cn, {
|
|
2307
2307
|
"enter-active-class": "transition-all duration-300 ease-out",
|
|
2308
2308
|
"enter-from-class": "opacity-0 -translate-x-4",
|
|
2309
2309
|
"enter-to-class": "opacity-100 translate-x-0",
|
|
@@ -2312,7 +2312,7 @@ const tt = new yc(), Yp = {
|
|
|
2312
2312
|
"leave-to-class": "opacity-0 -translate-x-4"
|
|
2313
2313
|
}, {
|
|
2314
2314
|
default: Se(() => [
|
|
2315
|
-
(
|
|
2315
|
+
(E(!0), P(ze, null, rt(n.value, (i) => (E(), P("div", {
|
|
2316
2316
|
key: i.id,
|
|
2317
2317
|
class: "pointer-events-auto"
|
|
2318
2318
|
}, [
|
|
@@ -2324,10 +2324,10 @@ const tt = new yc(), Yp = {
|
|
|
2324
2324
|
onMouseleave: (f) => u(i.id)
|
|
2325
2325
|
}, {
|
|
2326
2326
|
default: Se(() => [
|
|
2327
|
-
i.component ? (
|
|
2327
|
+
i.component ? (E(), Oe(yt(i.component), St({
|
|
2328
2328
|
key: 0,
|
|
2329
2329
|
ref_for: !0
|
|
2330
|
-
}, i.props), null, 16)) : (
|
|
2330
|
+
}, i.props), null, 16)) : (E(), P(ze, { key: 1 }, [
|
|
2331
2331
|
Ue(we(i.message), 1)
|
|
2332
2332
|
], 64))
|
|
2333
2333
|
]),
|
|
@@ -2339,7 +2339,7 @@ const tt = new yc(), Yp = {
|
|
|
2339
2339
|
})
|
|
2340
2340
|
]),
|
|
2341
2341
|
T("div", xc, [
|
|
2342
|
-
se(
|
|
2342
|
+
se(Cn, {
|
|
2343
2343
|
"enter-active-class": "transition-all duration-300 ease-out",
|
|
2344
2344
|
"enter-from-class": "opacity-0 translate-x-4",
|
|
2345
2345
|
"enter-to-class": "opacity-100 translate-x-0",
|
|
@@ -2348,7 +2348,7 @@ const tt = new yc(), Yp = {
|
|
|
2348
2348
|
"leave-to-class": "opacity-0 translate-x-4"
|
|
2349
2349
|
}, {
|
|
2350
2350
|
default: Se(() => [
|
|
2351
|
-
(
|
|
2351
|
+
(E(!0), P(ze, null, rt(o.value, (i) => (E(), P("div", {
|
|
2352
2352
|
key: i.id,
|
|
2353
2353
|
class: "pointer-events-auto"
|
|
2354
2354
|
}, [
|
|
@@ -2360,10 +2360,10 @@ const tt = new yc(), Yp = {
|
|
|
2360
2360
|
onMouseleave: (f) => u(i.id)
|
|
2361
2361
|
}, {
|
|
2362
2362
|
default: Se(() => [
|
|
2363
|
-
i.component ? (
|
|
2363
|
+
i.component ? (E(), Oe(yt(i.component), St({
|
|
2364
2364
|
key: 0,
|
|
2365
2365
|
ref_for: !0
|
|
2366
|
-
}, i.props), null, 16)) : (
|
|
2366
|
+
}, i.props), null, 16)) : (E(), P(ze, { key: 1 }, [
|
|
2367
2367
|
Ue(we(i.message), 1)
|
|
2368
2368
|
], 64))
|
|
2369
2369
|
]),
|
|
@@ -2375,7 +2375,7 @@ const tt = new yc(), Yp = {
|
|
|
2375
2375
|
})
|
|
2376
2376
|
]),
|
|
2377
2377
|
T("div", wc, [
|
|
2378
|
-
se(
|
|
2378
|
+
se(Cn, {
|
|
2379
2379
|
"enter-active-class": "transition-all duration-300 ease-out",
|
|
2380
2380
|
"enter-from-class": "opacity-0 scale-95",
|
|
2381
2381
|
"enter-to-class": "opacity-100 scale-100",
|
|
@@ -2384,7 +2384,7 @@ const tt = new yc(), Yp = {
|
|
|
2384
2384
|
"leave-to-class": "opacity-0 scale-95"
|
|
2385
2385
|
}, {
|
|
2386
2386
|
default: Se(() => [
|
|
2387
|
-
(
|
|
2387
|
+
(E(!0), P(ze, null, rt(r.value, (i) => (E(), P("div", {
|
|
2388
2388
|
key: i.id,
|
|
2389
2389
|
class: "pointer-events-auto"
|
|
2390
2390
|
}, [
|
|
@@ -2396,10 +2396,10 @@ const tt = new yc(), Yp = {
|
|
|
2396
2396
|
onMouseleave: (f) => u(i.id)
|
|
2397
2397
|
}, {
|
|
2398
2398
|
default: Se(() => [
|
|
2399
|
-
i.component ? (
|
|
2399
|
+
i.component ? (E(), Oe(yt(i.component), St({
|
|
2400
2400
|
key: 0,
|
|
2401
2401
|
ref_for: !0
|
|
2402
|
-
}, i.props), null, 16)) : (
|
|
2402
|
+
}, i.props), null, 16)) : (E(), P(ze, { key: 1 }, [
|
|
2403
2403
|
Ue(we(i.message), 1)
|
|
2404
2404
|
], 64))
|
|
2405
2405
|
]),
|
|
@@ -2411,7 +2411,7 @@ const tt = new yc(), Yp = {
|
|
|
2411
2411
|
})
|
|
2412
2412
|
]),
|
|
2413
2413
|
T("div", Sc, [
|
|
2414
|
-
se(
|
|
2414
|
+
se(Cn, {
|
|
2415
2415
|
"enter-active-class": "transition-all duration-300 ease-out",
|
|
2416
2416
|
"enter-from-class": "opacity-0 -translate-x-4",
|
|
2417
2417
|
"enter-to-class": "opacity-100 translate-x-0",
|
|
@@ -2420,7 +2420,7 @@ const tt = new yc(), Yp = {
|
|
|
2420
2420
|
"leave-to-class": "opacity-0 -translate-x-4"
|
|
2421
2421
|
}, {
|
|
2422
2422
|
default: Se(() => [
|
|
2423
|
-
(
|
|
2423
|
+
(E(!0), P(ze, null, rt(a.value, (i) => (E(), P("div", {
|
|
2424
2424
|
key: i.id,
|
|
2425
2425
|
class: "pointer-events-auto"
|
|
2426
2426
|
}, [
|
|
@@ -2432,10 +2432,10 @@ const tt = new yc(), Yp = {
|
|
|
2432
2432
|
onMouseleave: (f) => u(i.id)
|
|
2433
2433
|
}, {
|
|
2434
2434
|
default: Se(() => [
|
|
2435
|
-
i.component ? (
|
|
2435
|
+
i.component ? (E(), Oe(yt(i.component), St({
|
|
2436
2436
|
key: 0,
|
|
2437
2437
|
ref_for: !0
|
|
2438
|
-
}, i.props), null, 16)) : (
|
|
2438
|
+
}, i.props), null, 16)) : (E(), P(ze, { key: 1 }, [
|
|
2439
2439
|
Ue(we(i.message), 1)
|
|
2440
2440
|
], 64))
|
|
2441
2441
|
]),
|
|
@@ -2447,7 +2447,7 @@ const tt = new yc(), Yp = {
|
|
|
2447
2447
|
})
|
|
2448
2448
|
]),
|
|
2449
2449
|
T("div", kc, [
|
|
2450
|
-
se(
|
|
2450
|
+
se(Cn, {
|
|
2451
2451
|
"enter-active-class": "transition-all duration-300 ease-out",
|
|
2452
2452
|
"enter-from-class": "opacity-0 translate-x-4",
|
|
2453
2453
|
"enter-to-class": "opacity-100 translate-x-0",
|
|
@@ -2456,7 +2456,7 @@ const tt = new yc(), Yp = {
|
|
|
2456
2456
|
"leave-to-class": "opacity-0 translate-x-4"
|
|
2457
2457
|
}, {
|
|
2458
2458
|
default: Se(() => [
|
|
2459
|
-
(
|
|
2459
|
+
(E(!0), P(ze, null, rt(s.value, (i) => (E(), P("div", {
|
|
2460
2460
|
key: i.id,
|
|
2461
2461
|
class: "pointer-events-auto"
|
|
2462
2462
|
}, [
|
|
@@ -2468,10 +2468,10 @@ const tt = new yc(), Yp = {
|
|
|
2468
2468
|
onMouseleave: (f) => u(i.id)
|
|
2469
2469
|
}, {
|
|
2470
2470
|
default: Se(() => [
|
|
2471
|
-
i.component ? (
|
|
2471
|
+
i.component ? (E(), Oe(yt(i.component), St({
|
|
2472
2472
|
key: 0,
|
|
2473
2473
|
ref_for: !0
|
|
2474
|
-
}, i.props), null, 16)) : (
|
|
2474
|
+
}, i.props), null, 16)) : (E(), P(ze, { key: 1 }, [
|
|
2475
2475
|
Ue(we(i.message), 1)
|
|
2476
2476
|
], 64))
|
|
2477
2477
|
]),
|
|
@@ -2487,7 +2487,7 @@ const tt = new yc(), Yp = {
|
|
|
2487
2487
|
}, na = Fn(
|
|
2488
2488
|
"brandFilter",
|
|
2489
2489
|
() => {
|
|
2490
|
-
const e =
|
|
2490
|
+
const e = Ct({
|
|
2491
2491
|
brands: []
|
|
2492
2492
|
}), t = (a = {}) => {
|
|
2493
2493
|
if (!a.brands || !Array.isArray(a.brands)) {
|
|
@@ -2528,7 +2528,7 @@ const tt = new yc(), Yp = {
|
|
|
2528
2528
|
paths: ["state.brands"]
|
|
2529
2529
|
}
|
|
2530
2530
|
}
|
|
2531
|
-
),
|
|
2531
|
+
), Ec = { class: "flex grow flex-col gap-y-5 overflow-y-auto bg-white rounded-lg" }, Cc = { class: "flex flex-1 flex-col" }, Tc = { class: "divide-y divide-gray-200" }, _c = { class: "flex px-[22px] py-2.5 text-[12px] items-center" }, $c = { class: "ml-auto flex items-center" }, Lc = {
|
|
2532
2532
|
key: 0,
|
|
2533
2533
|
class: "flex px-[22px] py-[15px] text-gray-500 text-sm"
|
|
2534
2534
|
}, Mc = ["onClick"], Oc = { class: "w-full gap-y-1 flex justify-between" }, Pc = { class: "flex flex-col" }, Ac = { class: "flex items-center" }, Rc = { class: "font-medium text-base text-gray-900" }, Ic = {
|
|
@@ -2543,8 +2543,8 @@ const tt = new yc(), Yp = {
|
|
|
2543
2543
|
};
|
|
2544
2544
|
return (a, s) => {
|
|
2545
2545
|
const c = Ze("font-awesome-icon");
|
|
2546
|
-
return
|
|
2547
|
-
T("div",
|
|
2546
|
+
return E(), P("div", Ec, [
|
|
2547
|
+
T("div", Cc, [
|
|
2548
2548
|
T("div", Tc, [
|
|
2549
2549
|
T("div", _c, [
|
|
2550
2550
|
s[1] || (s[1] = T("div", null, "Filter by Brand", -1)),
|
|
@@ -2556,8 +2556,8 @@ const tt = new yc(), Yp = {
|
|
|
2556
2556
|
}, null, 8, ["icon"])
|
|
2557
2557
|
])
|
|
2558
2558
|
]),
|
|
2559
|
-
oe(o).allBrands.length === 0 ? (
|
|
2560
|
-
(
|
|
2559
|
+
oe(o).allBrands.length === 0 ? (E(), P("div", Lc, " No brands configured ")) : ye("", !0),
|
|
2560
|
+
(E(!0), P(ze, null, rt(oe(o).allBrands, (l) => (E(), P("div", {
|
|
2561
2561
|
key: l.id,
|
|
2562
2562
|
class: Le([l.current ? "bg-gray-50" : "hover:bg-gray-50", "flex px-[22px] py-[15px] cursor-pointer"]),
|
|
2563
2563
|
onClick: (u) => r(l)
|
|
@@ -2566,7 +2566,7 @@ const tt = new yc(), Yp = {
|
|
|
2566
2566
|
T("div", Pc, [
|
|
2567
2567
|
T("div", Ac, [
|
|
2568
2568
|
T("div", Rc, we(l.name), 1),
|
|
2569
|
-
l.current ? (
|
|
2569
|
+
l.current ? (E(), P("span", Ic, " Current ")) : ye("", !0)
|
|
2570
2570
|
]),
|
|
2571
2571
|
T("div", Fc, we(l.current ? "Current Brand" : "Change to"), 1)
|
|
2572
2572
|
]),
|
|
@@ -2609,7 +2609,7 @@ const tt = new yc(), Yp = {
|
|
|
2609
2609
|
},
|
|
2610
2610
|
emits: ["click"],
|
|
2611
2611
|
setup(e) {
|
|
2612
|
-
const t = e, n =
|
|
2612
|
+
const t = e, n = Ee(null), o = io("buttonGroup", null), r = te(() => {
|
|
2613
2613
|
if (!o?.isInGroup || !n.value) return null;
|
|
2614
2614
|
const l = o.getButtonIndex(n.value), u = o.getButtonCount();
|
|
2615
2615
|
return {
|
|
@@ -2690,7 +2690,7 @@ const tt = new yc(), Yp = {
|
|
|
2690
2690
|
}
|
|
2691
2691
|
return l = s(l, t.buttonClass), l;
|
|
2692
2692
|
});
|
|
2693
|
-
return (l, u) => (
|
|
2693
|
+
return (l, u) => (E(), P("button", {
|
|
2694
2694
|
ref_key: "buttonRef",
|
|
2695
2695
|
ref: n,
|
|
2696
2696
|
type: "button",
|
|
@@ -2704,7 +2704,7 @@ const tt = new yc(), Yp = {
|
|
|
2704
2704
|
}, oa = {
|
|
2705
2705
|
__name: "SparkButtonGroup",
|
|
2706
2706
|
setup(e) {
|
|
2707
|
-
const t =
|
|
2707
|
+
const t = Ee(null), n = Ee(0);
|
|
2708
2708
|
function o() {
|
|
2709
2709
|
n.value = t.value?.children.length || 0;
|
|
2710
2710
|
}
|
|
@@ -2712,7 +2712,7 @@ const tt = new yc(), Yp = {
|
|
|
2712
2712
|
isInGroup: !0,
|
|
2713
2713
|
getButtonIndex: (s) => t.value ? Array.from(t.value.children).indexOf(s) : -1,
|
|
2714
2714
|
getButtonCount: () => n.value
|
|
2715
|
-
}), (s, c) => (
|
|
2715
|
+
}), (s, c) => (E(), P("div", {
|
|
2716
2716
|
ref_key: "groupRef",
|
|
2717
2717
|
ref: t,
|
|
2718
2718
|
class: "inline-flex rounded-md shadow-xs"
|
|
@@ -2720,10 +2720,10 @@ const tt = new yc(), Yp = {
|
|
|
2720
2720
|
Qe(s.$slots, "default")
|
|
2721
2721
|
], 512));
|
|
2722
2722
|
}
|
|
2723
|
-
}, zc = { class: "flex flex-col divide-y divide-gray-300 rounded-lg border border-gray-300 text-gray-700 bg-gray-100" },
|
|
2723
|
+
}, zc = { class: "flex flex-col divide-y divide-gray-300 rounded-lg border border-gray-300 text-gray-700 bg-gray-100" }, Bc = {
|
|
2724
2724
|
key: 0,
|
|
2725
2725
|
class: "px-[30px] py-5"
|
|
2726
|
-
},
|
|
2726
|
+
}, Nc = {
|
|
2727
2727
|
key: 1,
|
|
2728
2728
|
class: "p-5"
|
|
2729
2729
|
}, Kp = {
|
|
@@ -2748,8 +2748,8 @@ const tt = new yc(), Yp = {
|
|
|
2748
2748
|
},
|
|
2749
2749
|
setup(e) {
|
|
2750
2750
|
const t = e;
|
|
2751
|
-
return (n, o) => (
|
|
2752
|
-
n.$slots.header ? (
|
|
2751
|
+
return (n, o) => (E(), P("div", zc, [
|
|
2752
|
+
n.$slots.header ? (E(), P("div", Bc, [
|
|
2753
2753
|
Qe(n.$slots, "header")
|
|
2754
2754
|
])) : ye("", !0),
|
|
2755
2755
|
T("div", {
|
|
@@ -2757,7 +2757,7 @@ const tt = new yc(), Yp = {
|
|
|
2757
2757
|
}, [
|
|
2758
2758
|
Qe(n.$slots, "default")
|
|
2759
2759
|
], 2),
|
|
2760
|
-
n.$slots.footer ? (
|
|
2760
|
+
n.$slots.footer ? (E(), P("div", Nc, [
|
|
2761
2761
|
Qe(n.$slots, "footer")
|
|
2762
2762
|
])) : ye("", !0)
|
|
2763
2763
|
]));
|
|
@@ -2867,7 +2867,7 @@ const tt = new yc(), Yp = {
|
|
|
2867
2867
|
}
|
|
2868
2868
|
return (p, b) => {
|
|
2869
2869
|
const m = Ze("font-awesome-icon"), y = ka("spark-tooltip");
|
|
2870
|
-
return en((
|
|
2870
|
+
return en((E(), Oe(yt(g.value ? "a" : "span"), {
|
|
2871
2871
|
href: i.value || void 0,
|
|
2872
2872
|
target: g.value && e.openNew ? "_blank" : void 0,
|
|
2873
2873
|
rel: g.value && e.openNew ? "noopener noreferrer" : void 0,
|
|
@@ -2875,18 +2875,18 @@ const tt = new yc(), Yp = {
|
|
|
2875
2875
|
onClick: h
|
|
2876
2876
|
}, {
|
|
2877
2877
|
default: Se(() => [
|
|
2878
|
-
e.icon ? (
|
|
2878
|
+
e.icon ? (E(), Oe(m, {
|
|
2879
2879
|
key: 0,
|
|
2880
2880
|
icon: e.icon
|
|
2881
2881
|
}, null, 8, ["icon"])) : ye("", !0),
|
|
2882
2882
|
Qe(p.$slots, "default", {}, () => [
|
|
2883
2883
|
Ue(we(e.label), 1)
|
|
2884
2884
|
]),
|
|
2885
|
-
e.copyToClipboard ? (
|
|
2885
|
+
e.copyToClipboard ? (E(), Oe(m, {
|
|
2886
2886
|
key: 1,
|
|
2887
2887
|
icon: oe(Fe).farCopy,
|
|
2888
2888
|
class: "opacity-60"
|
|
2889
|
-
}, null, 8, ["icon"])) : u.value && e.openNew ? (
|
|
2889
|
+
}, null, 8, ["icon"])) : u.value && e.openNew ? (E(), Oe(m, {
|
|
2890
2890
|
key: 2,
|
|
2891
2891
|
icon: oe(Fe).farArrowUpRightFromSquare,
|
|
2892
2892
|
class: "opacity-60 text-[0.6em]"
|
|
@@ -3075,9 +3075,9 @@ function Gt() {
|
|
|
3075
3075
|
ge = Pe(-1 * Math.abs(d), ge, Math.abs(d));
|
|
3076
3076
|
const ie = ge * c * u;
|
|
3077
3077
|
ge += ((be > W ? -1 : 1) * (Math.abs(W - be) * l) - ie) / c * ne, be += ge * ne;
|
|
3078
|
-
const
|
|
3078
|
+
const Ce = b[me] > W ? be < W : be > W;
|
|
3079
3079
|
let De = Math.abs(ge) < g && Math.abs(W - be) <= i;
|
|
3080
|
-
f &&
|
|
3080
|
+
f && Ce && (De = !0), De ? (be = W, ge = 0) : he++, b[me] = be, y[me] = ge;
|
|
3081
3081
|
}
|
|
3082
3082
|
q = !he;
|
|
3083
3083
|
}
|
|
@@ -3125,36 +3125,36 @@ function ks(e) {
|
|
|
3125
3125
|
function ra(e) {
|
|
3126
3126
|
return es(e, "changedTouches");
|
|
3127
3127
|
}
|
|
3128
|
-
function
|
|
3128
|
+
function Nt(e) {
|
|
3129
3129
|
const t = e[0], n = e[1] || t;
|
|
3130
3130
|
return { x: (t.x + n.x) / 2, y: (t.y + n.y) / 2, ts: n.ts };
|
|
3131
3131
|
}
|
|
3132
|
-
function
|
|
3132
|
+
function Nn(e) {
|
|
3133
3133
|
const t = e[0], n = e[1] || e[0];
|
|
3134
3134
|
return t && n ? -1 * Math.sqrt((n.x - t.x) * (n.x - t.x) + (n.y - t.y) * (n.y - t.y)) : 0;
|
|
3135
3135
|
}
|
|
3136
|
-
const
|
|
3136
|
+
const Es = (e) => {
|
|
3137
3137
|
e.cancelable && e.preventDefault();
|
|
3138
3138
|
}, zt = { passive: !1 }, Wc = { panThreshold: 5, swipeThreshold: 3, ignore: ["textarea", "input", "select", "[contenteditable]", "[data-selectable]", "[data-draggable]"] };
|
|
3139
3139
|
let qn = !1, _n = !0;
|
|
3140
|
-
const
|
|
3140
|
+
const En = (e, t) => {
|
|
3141
3141
|
let n, o, r, a, s, c = Object.assign(Object.assign({}, Wc), t), l = [], u = [], d = [], g = !1, i = !1, f = !1, h = !1, p = 0, b = 0, m = 0, y = 0, v = 0, S = 0, x = 0, _ = 0, M = 0, ee = [];
|
|
3142
3142
|
const ue = /* @__PURE__ */ new Map();
|
|
3143
3143
|
function J(W) {
|
|
3144
|
-
const be =
|
|
3144
|
+
const be = Nn(u), ge = Nn(d), ie = be && ge ? be / ge : 0, Ce = Math.abs(x) > Math.abs(_) ? x : _, De = { srcEvent: n, isPanRecognized: g, isSwipeRecognized: i, firstTouch: l, previousTouch: d, currentTouch: u, deltaX: m, deltaY: y, offsetX: v, offsetY: S, velocityX: x, velocityY: _, velocity: Ce, angle: M, axis: r, scale: ie, center: o };
|
|
3145
3145
|
for (const at of ue.get(W) || []) at(De);
|
|
3146
3146
|
}
|
|
3147
3147
|
function _e(W) {
|
|
3148
|
-
const be = W.target, ge = W.composedPath()[0], ie = c.ignore.join(","),
|
|
3149
|
-
if (
|
|
3148
|
+
const be = W.target, ge = W.composedPath()[0], ie = c.ignore.join(","), Ce = (De) => De && De instanceof HTMLElement && (De.matches(ie) || De.closest(ie));
|
|
3149
|
+
if (Ce(be) || Ce(ge)) return !1;
|
|
3150
3150
|
}
|
|
3151
3151
|
function ae(W) {
|
|
3152
3152
|
const be = Date.now();
|
|
3153
3153
|
if (ee = ee.filter((ge) => !ge.ts || ge.ts > be - 100), W && ee.push(W), x = 0, _ = 0, ee.length > 3) {
|
|
3154
3154
|
const ge = ee[0], ie = ee[ee.length - 1];
|
|
3155
3155
|
if (ge && ie) {
|
|
3156
|
-
const
|
|
3157
|
-
at > 0 && (x = Math.abs(
|
|
3156
|
+
const Ce = ie.x - ge.x, De = ie.y - ge.y, at = ge.ts && ie.ts ? ie.ts - ge.ts : 0;
|
|
3157
|
+
at > 0 && (x = Math.abs(Ce) > 3 ? Ce / (at / 30) : 0, _ = Math.abs(De) > 3 ? De / (at / 30) : 0);
|
|
3158
3158
|
}
|
|
3159
3159
|
}
|
|
3160
3160
|
}
|
|
@@ -3165,9 +3165,9 @@ const Cn = (e, t) => {
|
|
|
3165
3165
|
} else qn = !0;
|
|
3166
3166
|
if (typeof MouseEvent < "u" && W instanceof MouseEvent) {
|
|
3167
3167
|
if (!W.buttons || W.button !== 0) return;
|
|
3168
|
-
|
|
3168
|
+
Es(W);
|
|
3169
3169
|
}
|
|
3170
|
-
W instanceof MouseEvent && (window.addEventListener("mousemove", H), window.addEventListener("mouseup", q)), window.addEventListener("blur", I), n = W, u = ks(W), l = [...u], d = [], b = u.length, o =
|
|
3170
|
+
W instanceof MouseEvent && (window.addEventListener("mousemove", H), window.addEventListener("mouseup", q)), window.addEventListener("blur", I), n = W, u = ks(W), l = [...u], d = [], b = u.length, o = Nt(u), b === 1 && (g = !1, i = !1, f = !1), b && ae(Nt(u));
|
|
3171
3171
|
const be = Date.now(), ge = be - (p || be);
|
|
3172
3172
|
h = ge > 0 && ge <= 250 && b === 1, p = be, clearTimeout(a), J("start");
|
|
3173
3173
|
}
|
|
@@ -3175,21 +3175,21 @@ const Cn = (e, t) => {
|
|
|
3175
3175
|
var be;
|
|
3176
3176
|
if (!l.length || W.defaultPrevented || _e(W) === !1) return;
|
|
3177
3177
|
n = W, d = [...u], u = Ss(W);
|
|
3178
|
-
const ge =
|
|
3178
|
+
const ge = Nt(d), ie = Nt(Ss(W));
|
|
3179
3179
|
if (ae(ie), b = u.length, o = ie, d.length === u.length ? (m = ie.x - ge.x, y = ie.y - ge.y) : (m = 0, y = 0), l.length) {
|
|
3180
|
-
const
|
|
3181
|
-
v = ie.x -
|
|
3180
|
+
const Ce = Nt(l);
|
|
3181
|
+
v = ie.x - Ce.x, S = ie.y - Ce.y;
|
|
3182
3182
|
}
|
|
3183
3183
|
if (u.length > 1) {
|
|
3184
|
-
const
|
|
3185
|
-
Math.abs(
|
|
3184
|
+
const Ce = Nn(u), De = Nn(d);
|
|
3185
|
+
Math.abs(Ce - De) >= 0.1 && (f = !0, J("pinch"));
|
|
3186
3186
|
}
|
|
3187
3187
|
g || (g = Math.abs(v) >= c.panThreshold || Math.abs(S) >= c.panThreshold, g && (_n = !1, clearTimeout(s), s = void 0, M = Math.abs(180 * Math.atan2(S, v) / Math.PI), r = M > 45 && M < 135 ? "y" : "x", l = [...u], d = [...u], v = 0, S = 0, m = 0, y = 0, (be = window.getSelection()) === null || be === void 0 || be.removeAllRanges(), J("panstart"))), g && (m || y) && J("pan"), J("move");
|
|
3188
3188
|
}
|
|
3189
3189
|
function q(W) {
|
|
3190
3190
|
if (n = W, !l.length) return;
|
|
3191
3191
|
const be = ks(W), ge = ra(W);
|
|
3192
|
-
if (b = be.length, o =
|
|
3192
|
+
if (b = be.length, o = Nt(ge), ge.length && ae(Nt(ge)), d = [...u], u = [...be], l = [...be], b > 0) J("end"), g = !1, i = !1, ee = [];
|
|
3193
3193
|
else {
|
|
3194
3194
|
const ie = c.swipeThreshold;
|
|
3195
3195
|
(Math.abs(x) > ie || Math.abs(_) > ie) && (i = !0), g && J("panend"), i && J("swipe"), g || i || f || (J("tap"), h ? J("doubleTap") : a = setTimeout(function() {
|
|
@@ -3207,7 +3207,7 @@ const Cn = (e, t) => {
|
|
|
3207
3207
|
}
|
|
3208
3208
|
function he(W) {
|
|
3209
3209
|
const be = W.target;
|
|
3210
|
-
qn = !1, be && !W.defaultPrevented && (_n || (
|
|
3210
|
+
qn = !1, be && !W.defaultPrevented && (_n || (Es(W), W.stopPropagation()));
|
|
3211
3211
|
}
|
|
3212
3212
|
const me = { init: function() {
|
|
3213
3213
|
return e && (e.addEventListener("click", he, zt), e.addEventListener("mousedown", j, zt), e.addEventListener("touchstart", j, zt), e.addEventListener("touchmove", H, zt), e.addEventListener("touchend", q), e.addEventListener("touchcancel", q)), me;
|
|
@@ -3222,17 +3222,17 @@ const Cn = (e, t) => {
|
|
|
3222
3222
|
} };
|
|
3223
3223
|
return me;
|
|
3224
3224
|
};
|
|
3225
|
-
|
|
3225
|
+
En.isClickAllowed = () => _n;
|
|
3226
3226
|
const ts = { IMAGE_ERROR: "This image couldn't be loaded. <br /> Please try again later.", MOVE_UP: "Move up", MOVE_DOWN: "Move down", MOVE_LEFT: "Move left", MOVE_RIGHT: "Move right", ZOOM_IN: "Zoom in", ZOOM_OUT: "Zoom out", TOGGLE_FULL: "Toggle zoom level", TOGGLE_1TO1: "Toggle zoom level", ITERATE_ZOOM: "Toggle zoom level", ROTATE_CCW: "Rotate counterclockwise", ROTATE_CW: "Rotate clockwise", FLIP_X: "Flip horizontally", FLIP_Y: "Flip vertically", RESET: "Reset", TOGGLE_FS: "Toggle fullscreen" };
|
|
3227
3227
|
const Kt = (e) => {
|
|
3228
3228
|
e.cancelable && e.preventDefault();
|
|
3229
3229
|
}, ct = (e, t = 1e4) => (e = parseFloat(e + "") || 0, Math.round((e + Number.EPSILON) * t) / t), $t = (e) => e instanceof HTMLImageElement;
|
|
3230
|
-
var re,
|
|
3230
|
+
var re, Cs;
|
|
3231
3231
|
(function(e) {
|
|
3232
3232
|
e.Reset = "reset", e.Zoom = "zoom", e.ZoomIn = "zoomIn", e.ZoomOut = "zoomOut", e.ZoomTo = "zoomTo", e.ToggleCover = "toggleCover", e.ToggleFull = "toggleFull", e.ToggleMax = "toggleMax", e.IterateZoom = "iterateZoom", e.Pan = "pan", e.Swipe = "swipe", e.Move = "move", e.MoveLeft = "moveLeft", e.MoveRight = "moveRight", e.MoveUp = "moveUp", e.MoveDown = "moveDown", e.RotateCCW = "rotateCCW", e.RotateCW = "rotateCW", e.FlipX = "flipX", e.FlipY = "flipY", e.ToggleFS = "toggleFS";
|
|
3233
3233
|
})(re || (re = {})), (function(e) {
|
|
3234
3234
|
e.Cover = "cover", e.Full = "full", e.Max = "max";
|
|
3235
|
-
})(
|
|
3235
|
+
})(Cs || (Cs = {}));
|
|
3236
3236
|
const wt = { x: 0, y: 0, scale: 1, angle: 0, flipX: 1, flipY: 1 }, Ho = { bounds: !0, classes: { container: "f-panzoom", wrapper: "f-panzoom__wrapper", content: "f-panzoom__content", viewport: "f-panzoom__viewport" }, clickAction: re.ToggleFull, dblClickAction: !1, gestures: {}, height: "auto", l10n: ts, maxScale: 4, minScale: 1, mouseMoveFactor: 1, panMode: "drag", protected: !1, singleClickAction: !1, spinnerTpl: '<div class="f-spinner"></div>', wheelAction: re.Zoom, width: "auto" };
|
|
3237
3237
|
let Wn, Ts = 0, _s = 0, Un = 0;
|
|
3238
3238
|
const Vo = (e, t = {}, n = {}) => {
|
|
@@ -3247,75 +3247,75 @@ const Vo = (e, t = {}, n = {}) => {
|
|
|
3247
3247
|
}
|
|
3248
3248
|
const v = /* @__PURE__ */ new Map();
|
|
3249
3249
|
function S(w, ...$) {
|
|
3250
|
-
const
|
|
3251
|
-
i.on &&
|
|
3252
|
-
for (const D of
|
|
3250
|
+
const B = [...v.get(w) || []];
|
|
3251
|
+
i.on && B.push(i.on[w]);
|
|
3252
|
+
for (const D of B) D && typeof D == "function" && D(U, ...$);
|
|
3253
3253
|
w !== "*" && S("*", w, ...$);
|
|
3254
3254
|
}
|
|
3255
3255
|
function x(w) {
|
|
3256
3256
|
if (!y()) return;
|
|
3257
3257
|
const $ = w.target;
|
|
3258
3258
|
if (on($)) return;
|
|
3259
|
-
const
|
|
3259
|
+
const B = Date.now(), D = [-w.deltaX || 0, -w.deltaY || 0, -w.detail || 0].reduce(function(Q, de) {
|
|
3260
3260
|
return Math.abs(de) > Math.abs(Q) ? de : Q;
|
|
3261
|
-
}),
|
|
3262
|
-
S("wheel", w,
|
|
3261
|
+
}), C = Pe(-1, D, 1);
|
|
3262
|
+
S("wheel", w, C);
|
|
3263
3263
|
const O = m("wheelAction");
|
|
3264
3264
|
if (!O || w.defaultPrevented) return;
|
|
3265
3265
|
const G = p.scale;
|
|
3266
|
-
let K = G * (
|
|
3266
|
+
let K = G * (C > 0 ? 1.5 : 0.5);
|
|
3267
3267
|
if (O === re.Zoom) {
|
|
3268
3268
|
const Q = Math.abs(w.deltaY) < 100 && Math.abs(w.deltaX) < 100;
|
|
3269
|
-
if (
|
|
3270
|
-
_s =
|
|
3269
|
+
if (B - _s < (Q ? 200 : 45)) return void Kt(w);
|
|
3270
|
+
_s = B;
|
|
3271
3271
|
const de = ne(), ve = W();
|
|
3272
|
-
if (ct(K) < ct(de) && ct(G) <= ct(de) ? (Un += Math.abs(
|
|
3272
|
+
if (ct(K) < ct(de) && ct(G) <= ct(de) ? (Un += Math.abs(C), K = de) : ct(K) > ct(ve) && ct(G) >= ct(ve) ? (Un += Math.abs(C), K = ve) : (Un = 0, K = Pe(de, K, ve)), Un > 7) return;
|
|
3273
3273
|
}
|
|
3274
3274
|
switch (Kt(w), O) {
|
|
3275
3275
|
case re.Pan:
|
|
3276
|
-
|
|
3276
|
+
Ce(O, { srcEvent: w, deltaX: 2 * -w.deltaX, deltaY: 2 * -w.deltaY });
|
|
3277
3277
|
break;
|
|
3278
3278
|
case re.Zoom:
|
|
3279
|
-
|
|
3279
|
+
Ce(re.ZoomTo, { srcEvent: w, scale: K, center: { x: w.clientX, y: w.clientY } });
|
|
3280
3280
|
break;
|
|
3281
3281
|
default:
|
|
3282
|
-
|
|
3282
|
+
Ce(O, { srcEvent: w });
|
|
3283
3283
|
}
|
|
3284
3284
|
}
|
|
3285
3285
|
function _(w) {
|
|
3286
|
-
var $,
|
|
3286
|
+
var $, B;
|
|
3287
3287
|
const D = w.composedPath()[0];
|
|
3288
|
-
if (!
|
|
3289
|
-
const
|
|
3288
|
+
if (!En.isClickAllowed() || !mn(D) || w.defaultPrevented || !e?.contains(D) || D.hasAttribute("disabled") || D.hasAttribute("aria-disabled") || D.hasAttribute("data-carousel-go-prev") || D.hasAttribute("data-carousel-go-next")) return;
|
|
3289
|
+
const C = D.closest("[data-panzoom-action]"), O = ($ = C?.dataset) === null || $ === void 0 ? void 0 : $.panzoomAction, G = ((B = C?.dataset) === null || B === void 0 ? void 0 : B.panzoomValue) || "";
|
|
3290
3290
|
if (O) {
|
|
3291
3291
|
switch (Kt(w), O) {
|
|
3292
3292
|
case re.ZoomTo:
|
|
3293
3293
|
case re.ZoomIn:
|
|
3294
3294
|
case re.ZoomOut:
|
|
3295
|
-
|
|
3295
|
+
Ce(O, { scale: parseFloat(G || "") || void 0 });
|
|
3296
3296
|
break;
|
|
3297
3297
|
case re.MoveLeft:
|
|
3298
3298
|
case re.MoveRight:
|
|
3299
|
-
|
|
3299
|
+
Ce(O, { deltaX: parseFloat(G || "") || void 0 });
|
|
3300
3300
|
break;
|
|
3301
3301
|
case re.MoveUp:
|
|
3302
3302
|
case re.MoveDown:
|
|
3303
|
-
|
|
3303
|
+
Ce(O, { deltaY: parseFloat(G || "") || void 0 });
|
|
3304
3304
|
break;
|
|
3305
3305
|
case re.ToggleFS:
|
|
3306
3306
|
le();
|
|
3307
3307
|
break;
|
|
3308
3308
|
default:
|
|
3309
|
-
|
|
3309
|
+
Ce(O);
|
|
3310
3310
|
}
|
|
3311
3311
|
return;
|
|
3312
3312
|
}
|
|
3313
3313
|
if (!o?.contains(D)) return;
|
|
3314
3314
|
const K = { srcEvent: w };
|
|
3315
|
-
if (
|
|
3315
|
+
if (Ce(m("clickAction"), K), m("dblClickAction")) {
|
|
3316
3316
|
const Q = Date.now(), de = Q - (Ts || Q);
|
|
3317
|
-
Ts = Q, de > 0 && de <= 250 ? (Wn && (clearTimeout(Wn), Wn = void 0),
|
|
3318
|
-
|
|
3317
|
+
Ts = Q, de > 0 && de <= 250 ? (Wn && (clearTimeout(Wn), Wn = void 0), Ce(m("dblClickAction"), K)) : Wn = setTimeout(() => {
|
|
3318
|
+
Ce(m("singleClickAction"), K);
|
|
3319
3319
|
}, 250);
|
|
3320
3320
|
}
|
|
3321
3321
|
}
|
|
@@ -3323,8 +3323,8 @@ const Vo = (e, t = {}, n = {}) => {
|
|
|
3323
3323
|
if (d = w, !y() || !H() || h.scale <= 1 || p.scale <= 1 || (o?.dataset.animationName || "").indexOf("zoom") > -1) return;
|
|
3324
3324
|
const $ = q(p.scale);
|
|
3325
3325
|
if (!$) return;
|
|
3326
|
-
const { x:
|
|
3327
|
-
|
|
3326
|
+
const { x: B, y: D } = $;
|
|
3327
|
+
Ce(re.Pan, { deltaX: B - p.x, deltaY: D - p.y });
|
|
3328
3328
|
}
|
|
3329
3329
|
function ee() {
|
|
3330
3330
|
var w;
|
|
@@ -3335,39 +3335,39 @@ const Vo = (e, t = {}, n = {}) => {
|
|
|
3335
3335
|
if (ee(), $t(r) && (!r.complete || !r.naturalWidth)) return g = 2, o?.classList.add("has-error"), void S("error");
|
|
3336
3336
|
S("loaded");
|
|
3337
3337
|
const { width: w, height: $ } = ae();
|
|
3338
|
-
$t(r) && (r.setAttribute("width", w + ""), r.setAttribute("height", $ + "")), o && (et(o, "has-error"), $t(r) && (o.setAttribute("width", w + ""), o.setAttribute("height", $ + ""), o.style.aspectRatio = `${w / $ || ""}`)), l = Gt().on("start", (D,
|
|
3339
|
-
|
|
3338
|
+
$t(r) && (r.setAttribute("width", w + ""), r.setAttribute("height", $ + "")), o && (et(o, "has-error"), $t(r) && (o.setAttribute("width", w + ""), o.setAttribute("height", $ + ""), o.style.aspectRatio = `${w / $ || ""}`)), l = Gt().on("start", (D, C) => {
|
|
3339
|
+
C.angle !== void 0 && (C.angle = 90 * Math.round(C.angle / 90)), C.flipX !== void 0 && (C.flipX = C.flipX > 0 ? 1 : -1), C.flipY !== void 0 && (C.flipY = C.flipY > 0 ? 1 : -1), p = Object.assign(Object.assign({}, wt), C), ie(), S("animationStart");
|
|
3340
3340
|
}).on("pause", (D) => {
|
|
3341
3341
|
p = Object.assign(Object.assign({}, wt), D);
|
|
3342
3342
|
}).on("step", (D) => {
|
|
3343
3343
|
if (!y()) return void (l == null || l.end());
|
|
3344
|
-
if (h = Object.assign(Object.assign({}, wt), D), H() || !m("bounds") ||
|
|
3345
|
-
const
|
|
3344
|
+
if (h = Object.assign(Object.assign({}, wt), D), H() || !m("bounds") || Be() || p.scale > h.scale || p.scale < he()) return void De();
|
|
3345
|
+
const C = be(p.scale);
|
|
3346
3346
|
let O = !1, G = !1, K = !1, Q = !1;
|
|
3347
|
-
h.x <
|
|
3347
|
+
h.x < C.x[0] && (O = !0), h.x > C.x[1] && (G = !0), h.y < C.y[0] && (Q = !0), h.y > C.y[1] && (K = !0);
|
|
3348
3348
|
let de = !1, ve = !1, Te = !1, Me = !1;
|
|
3349
|
-
p.x <
|
|
3349
|
+
p.x < C.x[0] && (de = !0), p.x > C.x[1] && (ve = !0), p.y < C.y[0] && (Me = !0), p.y > C.y[1] && (Te = !0);
|
|
3350
3350
|
let $e = !1;
|
|
3351
|
-
(G && ve || O && de) && (p.x = Pe(
|
|
3351
|
+
(G && ve || O && de) && (p.x = Pe(C.x[0], p.x, C.x[1]), $e = !0), (K && Te || Q && Me) && (p.y = Pe(C.y[0], p.y, C.y[1]), $e = !0), $e && l && l.spring({ tension: 94, friction: 17, maxSpeed: 555 * p.scale, restDelta: 0.1, restSpeed: 0.1, velocity: l.getCurrentVelocities() }).from(h).to(p).start(), De();
|
|
3352
3352
|
}).on("end", () => {
|
|
3353
3353
|
c?.isPointerDown() || ge(), l?.isRunning() || (ie(), S("animationEnd"));
|
|
3354
3354
|
}), (function() {
|
|
3355
3355
|
const D = m("gestures");
|
|
3356
3356
|
if (!D || !s || !r) return;
|
|
3357
|
-
let
|
|
3358
|
-
c =
|
|
3357
|
+
let C = !1;
|
|
3358
|
+
c = En(s, D).on("start", (O) => {
|
|
3359
3359
|
if (!m("gestures") || !l || !y() || H()) return;
|
|
3360
3360
|
const G = O.srcEvent;
|
|
3361
|
-
(h.scale > 1 || Ye(h.angle) || O.currentTouch.length > 1) && (G?.stopPropagation(), l.pause(),
|
|
3361
|
+
(h.scale > 1 || Ye(h.angle) || O.currentTouch.length > 1) && (G?.stopPropagation(), l.pause(), C = !0), O.currentTouch.length === 1 && S("touchStart");
|
|
3362
3362
|
}).on("move", (O) => {
|
|
3363
3363
|
var G;
|
|
3364
|
-
|
|
3364
|
+
C && (p.scale !== 1 || Ye(p.angle) || O.currentTouch.length > 1) && (Kt(O.srcEvent), (G = O.srcEvent) === null || G === void 0 || G.stopPropagation());
|
|
3365
3365
|
}).on("pan", (O) => {
|
|
3366
|
-
if (!
|
|
3366
|
+
if (!C) return;
|
|
3367
3367
|
const G = O.srcEvent;
|
|
3368
|
-
(p.scale !== 1 || Ye(p.angle) || O.currentTouch.length > 1) && (Kt(G),
|
|
3368
|
+
(p.scale !== 1 || Ye(p.angle) || O.currentTouch.length > 1) && (Kt(G), Ce(re.Pan, O));
|
|
3369
3369
|
}).on("swipe", (O) => {
|
|
3370
|
-
|
|
3370
|
+
C && (p.scale > 1 || Ye(p.angle)) && Ce(re.Swipe, O);
|
|
3371
3371
|
}).on("tap", (O) => {
|
|
3372
3372
|
S("click", O);
|
|
3373
3373
|
}).on("singleTap", (O) => {
|
|
@@ -3375,27 +3375,27 @@ const Vo = (e, t = {}, n = {}) => {
|
|
|
3375
3375
|
}).on("doubleTap", (O) => {
|
|
3376
3376
|
S("dblClick", O);
|
|
3377
3377
|
}).on("pinch", (O) => {
|
|
3378
|
-
|
|
3378
|
+
C && (O.scale > he() ? Ce(re.ZoomIn, O) : O.scale < he() ? Ce(re.ZoomOut, O) : Ce(re.Pan, O));
|
|
3379
3379
|
}).on("end", (O) => {
|
|
3380
|
-
|
|
3380
|
+
C && (O.currentTouch.length ? (O.srcEvent.stopPropagation(), Kt(O.srcEvent), l?.end()) : (C = !1, ie(), ge(), S("touchEnd")));
|
|
3381
3381
|
}).init();
|
|
3382
3382
|
})(), s && (s.addEventListener("wheel", x, { passive: !1 }), b.push(() => {
|
|
3383
3383
|
s?.removeEventListener("wheel", x, { passive: !1 });
|
|
3384
3384
|
})), e?.addEventListener("click", _), document?.addEventListener("mousemove", M), b.push(() => {
|
|
3385
3385
|
e?.removeEventListener("click", _), document?.removeEventListener("mousemove", M);
|
|
3386
3386
|
});
|
|
3387
|
-
const
|
|
3388
|
-
h = Object.assign({},
|
|
3387
|
+
const B = J();
|
|
3388
|
+
h = Object.assign({}, B), p = Object.assign({}, B), g = 3, De(), ie(), S("ready"), requestAnimationFrame(() => {
|
|
3389
3389
|
g === 3 && (ee(), s && (s.style.visibility = ""));
|
|
3390
3390
|
});
|
|
3391
3391
|
}
|
|
3392
3392
|
function J() {
|
|
3393
3393
|
const w = Object.assign({}, m("startPos") || {});
|
|
3394
|
-
let $ = w.scale,
|
|
3395
|
-
|
|
3396
|
-
const D = Object.assign(Object.assign(Object.assign({}, wt), w), { scale:
|
|
3397
|
-
if (
|
|
3398
|
-
const { x: O, y: G } =
|
|
3394
|
+
let $ = w.scale, B = 1;
|
|
3395
|
+
B = typeof $ == "string" ? I($) : typeof $ == "number" ? $ : he();
|
|
3396
|
+
const D = Object.assign(Object.assign(Object.assign({}, wt), w), { scale: B }), C = H() ? q(B) : void 0;
|
|
3397
|
+
if (C) {
|
|
3398
|
+
const { x: O, y: G } = C;
|
|
3399
3399
|
D.x = O, D.y = G;
|
|
3400
3400
|
}
|
|
3401
3401
|
return D;
|
|
@@ -3411,12 +3411,12 @@ const Vo = (e, t = {}, n = {}) => {
|
|
|
3411
3411
|
function ae() {
|
|
3412
3412
|
let w = m("width"), $ = m("height");
|
|
3413
3413
|
if (r && w === "auto") {
|
|
3414
|
-
const
|
|
3415
|
-
w =
|
|
3414
|
+
const B = r.getAttribute("width");
|
|
3415
|
+
w = B ? parseFloat(B + "") : r.dataset.width !== void 0 ? parseFloat(r.dataset.width + "") : $t(s) ? s.naturalWidth : $t(r) ? r.naturalWidth : o?.getBoundingClientRect().width || 0;
|
|
3416
3416
|
} else w = Ie(w) ? parseFloat(w) : w;
|
|
3417
3417
|
if (r && $ === "auto") {
|
|
3418
|
-
const
|
|
3419
|
-
$ =
|
|
3418
|
+
const B = r.getAttribute("height");
|
|
3419
|
+
$ = B ? parseFloat(B + "") : r.dataset.height !== void 0 ? parseFloat(r.dataset.height + "") : $t(s) ? s.naturalHeight : $t(r) ? r.naturalHeight : o?.getBoundingClientRect().height || 0;
|
|
3420
3420
|
} else $ = Ie($) ? parseFloat($) : $;
|
|
3421
3421
|
return { width: w, height: $ };
|
|
3422
3422
|
}
|
|
@@ -3428,31 +3428,31 @@ const Vo = (e, t = {}, n = {}) => {
|
|
|
3428
3428
|
return m("panMode") === "mousemove" && matchMedia("(hover: hover)").matches;
|
|
3429
3429
|
}
|
|
3430
3430
|
function q(w) {
|
|
3431
|
-
const $ = d || m("event"),
|
|
3432
|
-
if (!$ || !
|
|
3433
|
-
const D = ($.clientX || 0) -
|
|
3431
|
+
const $ = d || m("event"), B = o?.getBoundingClientRect();
|
|
3432
|
+
if (!$ || !B || w <= 1) return { x: 0, y: 0 };
|
|
3433
|
+
const D = ($.clientX || 0) - B.left, C = ($.clientY || 0) - B.top, { width: O, height: G } = j(), K = be(w);
|
|
3434
3434
|
if (w > 1) {
|
|
3435
3435
|
const Me = m("mouseMoveFactor");
|
|
3436
3436
|
Me > 1 && (w *= Me);
|
|
3437
3437
|
}
|
|
3438
|
-
let Q = O * w, de = G * w, ve = 0.5 * (Q - O) - D / O * 100 / 100 * (Q - O), Te = 0.5 * (de - G) -
|
|
3438
|
+
let Q = O * w, de = G * w, ve = 0.5 * (Q - O) - D / O * 100 / 100 * (Q - O), Te = 0.5 * (de - G) - C / G * 100 / 100 * (de - G);
|
|
3439
3439
|
return ve = Pe(K.x[0], ve, K.x[1]), Te = Pe(K.y[0], Te, K.y[1]), { x: ve, y: Te };
|
|
3440
3440
|
}
|
|
3441
3441
|
function I(w) {
|
|
3442
3442
|
if (!w) return p.scale;
|
|
3443
3443
|
if (!e) return 1;
|
|
3444
|
-
const $ = e.getBoundingClientRect(),
|
|
3444
|
+
const $ = e.getBoundingClientRect(), B = _e(), { width: D, height: C } = ae(), O = (ve) => {
|
|
3445
3445
|
if (typeof ve == "number") return ve;
|
|
3446
3446
|
switch (ve) {
|
|
3447
3447
|
case "min":
|
|
3448
3448
|
case "base":
|
|
3449
3449
|
return 1;
|
|
3450
3450
|
case "cover":
|
|
3451
|
-
return Math.max($.height /
|
|
3451
|
+
return Math.max($.height / B.height, $.width / B.width) || 1;
|
|
3452
3452
|
case "full":
|
|
3453
3453
|
case "max": {
|
|
3454
|
-
const Te = Ye(p.angle) ?
|
|
3455
|
-
return Te &&
|
|
3454
|
+
const Te = Ye(p.angle) ? C : D;
|
|
3455
|
+
return Te && B.width ? Te / B.width : 1;
|
|
3456
3456
|
}
|
|
3457
3457
|
}
|
|
3458
3458
|
}, G = m("minScale"), K = m("maxScale"), Q = Math.min(O("full"), O(G)), de = typeof K == "number" ? O("full") * K : Math.min(O("full"), O(K));
|
|
@@ -3482,78 +3482,78 @@ const Vo = (e, t = {}, n = {}) => {
|
|
|
3482
3482
|
return I("max");
|
|
3483
3483
|
}
|
|
3484
3484
|
function be(w) {
|
|
3485
|
-
const $ = { x: [0, 0], y: [0, 0] },
|
|
3486
|
-
if (!
|
|
3487
|
-
const D = _e(),
|
|
3485
|
+
const $ = { x: [0, 0], y: [0, 0] }, B = e?.getBoundingClientRect();
|
|
3486
|
+
if (!B) return $;
|
|
3487
|
+
const D = _e(), C = B.width, O = B.height;
|
|
3488
3488
|
let G = D.width, K = D.height, Q = w = w === void 0 ? p.scale : w, de = w;
|
|
3489
3489
|
if (H() && w > 1) {
|
|
3490
3490
|
const ve = m("mouseMoveFactor");
|
|
3491
|
-
ve > 1 && (G * w >
|
|
3491
|
+
ve > 1 && (G * w > C + 0.01 && (Q *= ve), K * w > O + 0.01 && (de *= ve));
|
|
3492
3492
|
}
|
|
3493
|
-
if (G *= Q, K *= de, G >
|
|
3494
|
-
$.x[0] = 0.5 * (
|
|
3495
|
-
const ve = 0.5 * (D.left -
|
|
3493
|
+
if (G *= Q, K *= de, G > C) {
|
|
3494
|
+
$.x[0] = 0.5 * (C - G), $.x[1] = 0.5 * (G - C);
|
|
3495
|
+
const ve = 0.5 * (D.left - B.left), Te = 0.5 * (D.left + D.width - B.right);
|
|
3496
3496
|
$.x[0] -= ve + Te, $.x[1] -= ve + Te;
|
|
3497
3497
|
}
|
|
3498
3498
|
if (K > O) {
|
|
3499
3499
|
$.y[0] = 0.5 * (O - K), $.y[1] = 0.5 * (K - O);
|
|
3500
|
-
const ve = 0.5 * (D.top -
|
|
3500
|
+
const ve = 0.5 * (D.top - B.top), Te = 0.5 * (D.top + D.height - B.bottom);
|
|
3501
3501
|
$.y[0] -= ve + Te, $.y[1] -= ve + Te;
|
|
3502
3502
|
}
|
|
3503
3503
|
return $;
|
|
3504
3504
|
}
|
|
3505
3505
|
function ge() {
|
|
3506
3506
|
if (!y() || !m("bounds") || !l) return;
|
|
3507
|
-
const w = ne(), $ = W(),
|
|
3508
|
-
if (p.scale < w - 0.01 || p.scale > $ + 0.01) return void
|
|
3509
|
-
if (l.isRunning() ||
|
|
3510
|
-
const D = be(
|
|
3507
|
+
const w = ne(), $ = W(), B = Pe(w, p.scale, $);
|
|
3508
|
+
if (p.scale < w - 0.01 || p.scale > $ + 0.01) return void Ce(re.ZoomTo, { scale: B });
|
|
3509
|
+
if (l.isRunning() || Be()) return;
|
|
3510
|
+
const D = be(B);
|
|
3511
3511
|
p.x < D.x[0] || p.x > D.x[1] || p.y < D.y[0] || p.y > D.y[1] ? (p.x = Pe(D.x[0], p.x, D.x[1]), p.y = Pe(D.y[0], p.y, D.y[1]), l.spring({ tension: 170, friction: 17, restDelta: 1e-3, restSpeed: 1e-3, maxSpeed: 1 / 0, velocity: l.getCurrentVelocities() }), l.from(h).to(p).start()) : De();
|
|
3512
3512
|
}
|
|
3513
3513
|
function ie(w) {
|
|
3514
3514
|
var $;
|
|
3515
3515
|
if (!y()) return;
|
|
3516
|
-
const
|
|
3517
|
-
lt(o, "is-fullsize", O), lt(o, "is-expanded",
|
|
3516
|
+
const B = Vt(), D = Be(), C = A(), O = Z(), G = _t(), K = bt();
|
|
3517
|
+
lt(o, "is-fullsize", O), lt(o, "is-expanded", C), lt(o, "is-dragging", D), lt(o, "can-drag", B), lt(o, "will-zoom-in", G), lt(o, "will-zoom-out", K);
|
|
3518
3518
|
const Q = Pt(), de = dt(), ve = xt(), Te = !y();
|
|
3519
3519
|
for (const Me of (($ = w || e) === null || $ === void 0 ? void 0 : $.querySelectorAll("[data-panzoom-action]")) || []) {
|
|
3520
3520
|
const $e = Me.dataset.panzoomAction;
|
|
3521
|
-
let
|
|
3522
|
-
if (Te)
|
|
3521
|
+
let Ne = !1;
|
|
3522
|
+
if (Te) Ne = !0;
|
|
3523
3523
|
else switch ($e) {
|
|
3524
3524
|
case re.ZoomIn:
|
|
3525
|
-
Q || (
|
|
3525
|
+
Q || (Ne = !0);
|
|
3526
3526
|
break;
|
|
3527
3527
|
case re.ZoomOut:
|
|
3528
|
-
ve || (
|
|
3528
|
+
ve || (Ne = !0);
|
|
3529
3529
|
break;
|
|
3530
3530
|
case re.ToggleFull: {
|
|
3531
|
-
de || ve || (
|
|
3531
|
+
de || ve || (Ne = !0);
|
|
3532
3532
|
const Re = Me.querySelector("g");
|
|
3533
|
-
Re && (Re.style.display = O && !
|
|
3533
|
+
Re && (Re.style.display = O && !Ne ? "none" : "");
|
|
3534
3534
|
break;
|
|
3535
3535
|
}
|
|
3536
3536
|
case re.IterateZoom: {
|
|
3537
|
-
Q || ve || (
|
|
3537
|
+
Q || ve || (Ne = !0);
|
|
3538
3538
|
const Re = Me.querySelector("g");
|
|
3539
|
-
Re && (Re.style.display = Q ||
|
|
3539
|
+
Re && (Re.style.display = Q || Ne ? "" : "none");
|
|
3540
3540
|
break;
|
|
3541
3541
|
}
|
|
3542
3542
|
case re.ToggleCover:
|
|
3543
3543
|
case re.ToggleMax:
|
|
3544
|
-
Q || ve || (
|
|
3544
|
+
Q || ve || (Ne = !0);
|
|
3545
3545
|
}
|
|
3546
|
-
|
|
3546
|
+
Ne ? (Me.setAttribute("aria-disabled", ""), Me.setAttribute("tabindex", "-1")) : (Me.removeAttribute("aria-disabled"), Me.removeAttribute("tabindex"));
|
|
3547
3547
|
}
|
|
3548
3548
|
}
|
|
3549
|
-
function
|
|
3550
|
-
var
|
|
3549
|
+
function Ce(w, $) {
|
|
3550
|
+
var B;
|
|
3551
3551
|
if (!(w && e && r && l && y()) || w === re.Swipe && Math.abs(l.getCurrentVelocities().scale) > 0.01) return;
|
|
3552
3552
|
const D = Object.assign({}, p);
|
|
3553
|
-
let
|
|
3554
|
-
const G = l.getCurrentVelocities(), K = _e(), Q = (((
|
|
3553
|
+
let C = Object.assign({}, p), O = be(H() ? D.scale : h.scale);
|
|
3554
|
+
const G = l.getCurrentVelocities(), K = _e(), Q = (((B = ($ = $ || {}).currentTouch) === null || B === void 0 ? void 0 : B.length) || 0) > 1, de = $.velocityX || 0, ve = $.velocityY || 0;
|
|
3555
3555
|
let Te = $.center;
|
|
3556
|
-
$.srcEvent && (Te =
|
|
3556
|
+
$.srcEvent && (Te = Nt(ra($.srcEvent)));
|
|
3557
3557
|
let Me = $.deltaX || 0, $e = $.deltaY || 0;
|
|
3558
3558
|
switch (w) {
|
|
3559
3559
|
case re.MoveRight:
|
|
@@ -3568,11 +3568,11 @@ const Vo = (e, t = {}, n = {}) => {
|
|
|
3568
3568
|
case re.MoveDown:
|
|
3569
3569
|
$e = $.deltaY || 100;
|
|
3570
3570
|
}
|
|
3571
|
-
let
|
|
3572
|
-
if (typeof w == "number")
|
|
3571
|
+
let Ne = [];
|
|
3572
|
+
if (typeof w == "number") C.scale = w;
|
|
3573
3573
|
else switch (w) {
|
|
3574
3574
|
case re.Reset:
|
|
3575
|
-
|
|
3575
|
+
C = Object.assign({}, wt), C.scale = he();
|
|
3576
3576
|
break;
|
|
3577
3577
|
case re.ZoomTo:
|
|
3578
3578
|
case re.ZoomIn:
|
|
@@ -3582,7 +3582,7 @@ const Vo = (e, t = {}, n = {}) => {
|
|
|
3582
3582
|
case re.ToggleMax:
|
|
3583
3583
|
case re.IterateZoom:
|
|
3584
3584
|
case re.Zoom:
|
|
3585
|
-
|
|
3585
|
+
C.scale = at(w, $);
|
|
3586
3586
|
break;
|
|
3587
3587
|
case re.Pan:
|
|
3588
3588
|
case re.Move:
|
|
@@ -3590,38 +3590,38 @@ const Vo = (e, t = {}, n = {}) => {
|
|
|
3590
3590
|
case re.MoveRight:
|
|
3591
3591
|
case re.MoveUp:
|
|
3592
3592
|
case re.MoveDown:
|
|
3593
|
-
if (
|
|
3593
|
+
if (Be()) {
|
|
3594
3594
|
let je = 1, ke = 1;
|
|
3595
|
-
|
|
3596
|
-
} else
|
|
3595
|
+
C.x <= O.x[0] && de <= 0 && (je = Math.max(0.01, 1 - Math.abs(1 / K.width * Math.abs(C.x - O.x[0]))), je *= 0.2), C.x >= O.x[1] && de >= 0 && (je = Math.max(0.01, 1 - Math.abs(1 / K.width * Math.abs(C.x - O.x[1]))), je *= 0.2), C.y <= O.y[0] && ve <= 0 && (ke = Math.max(0.01, 1 - Math.abs(1 / K.height * Math.abs(C.y - O.y[0]))), ke *= 0.2), C.y >= O.y[1] && ve >= 0 && (ke = Math.max(0.01, 1 - Math.abs(1 / K.height * Math.abs(C.y - O.y[1]))), ke *= 0.2), C.x += Me * je, C.y += $e * ke;
|
|
3596
|
+
} else C.x = Pe(O.x[0], C.x + Me, O.x[1]), C.y = Pe(O.y[0], C.y + $e, O.y[1]);
|
|
3597
3597
|
break;
|
|
3598
3598
|
case re.Swipe:
|
|
3599
3599
|
const Re = (je = 0) => Math.sign(je) * Math.pow(Math.abs(je), 1.5);
|
|
3600
|
-
|
|
3600
|
+
C.x += Pe(-1e3, Re(de), 1e3), C.y += Pe(-1e3, Re(ve), 1e3), ve && !de && (C.x = Pe(O.x[0], C.x, O.x[1])), !ve && de && (C.y = Pe(O.y[0], C.y, O.y[1])), G.x = de, G.y = ve;
|
|
3601
3601
|
break;
|
|
3602
3602
|
case re.RotateCW:
|
|
3603
|
-
|
|
3603
|
+
C.angle += 90;
|
|
3604
3604
|
break;
|
|
3605
3605
|
case re.RotateCCW:
|
|
3606
|
-
|
|
3606
|
+
C.angle -= 90;
|
|
3607
3607
|
break;
|
|
3608
3608
|
case re.FlipX:
|
|
3609
|
-
|
|
3609
|
+
C.flipX *= -1;
|
|
3610
3610
|
break;
|
|
3611
3611
|
case re.FlipY:
|
|
3612
|
-
|
|
3612
|
+
C.flipY *= -1;
|
|
3613
3613
|
}
|
|
3614
|
-
if (h.angle !== void 0 && Math.abs(h.angle) >= 360 && (
|
|
3615
|
-
const Re =
|
|
3616
|
-
|
|
3614
|
+
if (h.angle !== void 0 && Math.abs(h.angle) >= 360 && (C.angle -= 360 * Math.floor(h.angle / 360), h.angle -= 360 * Math.floor(h.angle / 360)), Ne.length) {
|
|
3615
|
+
const Re = Ne.findIndex((je) => je > C.scale + 1e-4);
|
|
3616
|
+
C.scale = Ne[Re] || Ne[0];
|
|
3617
3617
|
}
|
|
3618
|
-
if (Q && (
|
|
3619
|
-
const Re = q(
|
|
3618
|
+
if (Q && (C.scale = Pe(ne() * (Q ? 0.8 : 1), C.scale, W() * (Q ? 1.6 : 1))), H()) {
|
|
3619
|
+
const Re = q(C.scale);
|
|
3620
3620
|
if (Re) {
|
|
3621
3621
|
const { x: je, y: ke } = Re;
|
|
3622
|
-
|
|
3622
|
+
C.x = je, C.y = ke;
|
|
3623
3623
|
}
|
|
3624
|
-
} else if (Math.abs(
|
|
3624
|
+
} else if (Math.abs(C.scale - D.scale) > 1e-4) {
|
|
3625
3625
|
let Re = 0, je = 0;
|
|
3626
3626
|
if (Te) Re = Te.x, je = Te.y;
|
|
3627
3627
|
else {
|
|
@@ -3631,16 +3631,16 @@ const Vo = (e, t = {}, n = {}) => {
|
|
|
3631
3631
|
let ke = Re - K.left, k = je - K.top;
|
|
3632
3632
|
ke -= 0.5 * K.width, k -= 0.5 * K.height;
|
|
3633
3633
|
const L = (ke - D.x) / D.scale, R = (k - D.y) / D.scale;
|
|
3634
|
-
|
|
3634
|
+
C.x = ke - L * C.scale, C.y = k - R * C.scale, !Q && m("bounds") && (O = be(C.scale), C.x = Pe(O.x[0], C.x, O.x[1]), C.y = Pe(O.y[0], C.y, O.y[1]));
|
|
3635
3635
|
}
|
|
3636
3636
|
if (w === re.Swipe) {
|
|
3637
|
-
let Re = 94, je = 17, ke = 500 *
|
|
3637
|
+
let Re = 94, je = 17, ke = 500 * C.scale, k = G;
|
|
3638
3638
|
l.spring({ tension: Re, friction: je, maxSpeed: ke, restDelta: 0.1, restSpeed: 0.1, velocity: k });
|
|
3639
3639
|
} else w === re.Pan || Q ? l.spring({ tension: 900, friction: 17, restDelta: 0.01, restSpeed: 0.01, maxSpeed: 1 }) : l.spring({ tension: 170, friction: 17, restDelta: 1e-3, restSpeed: 1e-3, maxSpeed: 1 / 0, velocity: G });
|
|
3640
|
-
if ($.velocity === 0 || An(h,
|
|
3640
|
+
if ($.velocity === 0 || An(h, C)) h = Object.assign({}, C), p = Object.assign({}, C), l.end(), De(), ie();
|
|
3641
3641
|
else {
|
|
3642
|
-
if (An(p,
|
|
3643
|
-
l.from(h).to(
|
|
3642
|
+
if (An(p, C)) return;
|
|
3643
|
+
l.from(h).to(C).start();
|
|
3644
3644
|
}
|
|
3645
3645
|
S("action", w);
|
|
3646
3646
|
}
|
|
@@ -3648,20 +3648,20 @@ const Vo = (e, t = {}, n = {}) => {
|
|
|
3648
3648
|
if (!r || !o || !s) return;
|
|
3649
3649
|
const { width: w, height: $ } = ae();
|
|
3650
3650
|
Object.assign(o.style, { maxWidth: `min(${w}px, 100%)`, maxHeight: `min(${$}px, 100%)` });
|
|
3651
|
-
const
|
|
3652
|
-
const { width: Me, height: $e } = ae(), { width:
|
|
3653
|
-
if (!e) return { x: 0, y: 0, width: 0, height: 0, scale: 0, flipX: 0, flipY: 0, angle: 0, fitWidth:
|
|
3651
|
+
const B = (function() {
|
|
3652
|
+
const { width: Me, height: $e } = ae(), { width: Ne, height: Re } = j();
|
|
3653
|
+
if (!e) return { x: 0, y: 0, width: 0, height: 0, scale: 0, flipX: 0, flipY: 0, angle: 0, fitWidth: Ne, fitHeight: Re, fullWidth: Me, fullHeight: $e };
|
|
3654
3654
|
let { x: je, y: ke, scale: k, angle: L, flipX: R, flipY: F } = h, X = 1 / me(), V = Me, z = $e, Y = h.scale * X, ce = p.scale * X;
|
|
3655
|
-
const fe = Math.max(
|
|
3655
|
+
const fe = Math.max(Ne, Re), xe = Math.min(Ne, Re);
|
|
3656
3656
|
Me > $e ? (V = fe, z = xe) : (V = xe, z = fe), Y = Me > $e ? fe * k / Me || 1 : fe * k / $e || 1;
|
|
3657
3657
|
let Ae = V ? Me * ce : 0, He = z ? $e * ce : 0, We = V && z ? Me * Y / Ae : 0;
|
|
3658
|
-
return je = je + 0.5 * V - 0.5 * Ae, ke = ke + 0.5 * z - 0.5 * He, { x: je, y: ke, width: Ae, height: He, scale: We, flipX: R, flipY: F, angle: L, fitWidth:
|
|
3659
|
-
})(), { x: D, y:
|
|
3660
|
-
let Te = `translate(${ct(D, 100)}px, ${ct(
|
|
3658
|
+
return je = je + 0.5 * V - 0.5 * Ae, ke = ke + 0.5 * z - 0.5 * He, { x: je, y: ke, width: Ae, height: He, scale: We, flipX: R, flipY: F, angle: L, fitWidth: Ne, fitHeight: Re, fullWidth: Me, fullHeight: $e };
|
|
3659
|
+
})(), { x: D, y: C, width: O, height: G, scale: K, angle: Q, flipX: de, flipY: ve } = B;
|
|
3660
|
+
let Te = `translate(${ct(D, 100)}px, ${ct(C, 100)}px)`;
|
|
3661
3661
|
Te += de !== 1 || ve !== 1 ? ` scaleX(${ct(K * de)}) scaleY(${ct(K * ve)})` : ` scale(${ct(K)})`, Q !== 0 && (Te += ` rotate(${Q}deg)`), s.style.width = `${ct(O)}px`, s.style.height = `${ct(G)}px`, s.style.transform = `${Te}`, S("render");
|
|
3662
3662
|
}
|
|
3663
3663
|
function at(w = m("clickAction"), $ = {}) {
|
|
3664
|
-
let
|
|
3664
|
+
let B = p.scale, D = he(), C = [];
|
|
3665
3665
|
if (typeof w == "number") D = w;
|
|
3666
3666
|
else if (w) {
|
|
3667
3667
|
switch (w) {
|
|
@@ -3669,31 +3669,31 @@ const Vo = (e, t = {}, n = {}) => {
|
|
|
3669
3669
|
D = $.scale || 1;
|
|
3670
3670
|
break;
|
|
3671
3671
|
case re.ZoomIn:
|
|
3672
|
-
D =
|
|
3672
|
+
D = B * ($.scale || 2);
|
|
3673
3673
|
break;
|
|
3674
3674
|
case re.ZoomOut:
|
|
3675
|
-
D =
|
|
3675
|
+
D = B * ($.scale || 0.5);
|
|
3676
3676
|
break;
|
|
3677
3677
|
case re.ToggleCover:
|
|
3678
|
-
|
|
3678
|
+
C = [he(), I("cover")];
|
|
3679
3679
|
break;
|
|
3680
3680
|
case re.ToggleFull:
|
|
3681
|
-
|
|
3681
|
+
C = [he(), me()];
|
|
3682
3682
|
break;
|
|
3683
3683
|
case re.ToggleMax:
|
|
3684
|
-
|
|
3684
|
+
C = [he(), W()];
|
|
3685
3685
|
break;
|
|
3686
3686
|
case re.IterateZoom:
|
|
3687
|
-
|
|
3687
|
+
C = [he(), me(), W()];
|
|
3688
3688
|
break;
|
|
3689
3689
|
case re.Zoom: {
|
|
3690
3690
|
const O = me();
|
|
3691
|
-
D =
|
|
3691
|
+
D = B >= O - 0.05 ? he() : Math.min(O, B * ($.scale || 2));
|
|
3692
3692
|
break;
|
|
3693
3693
|
}
|
|
3694
3694
|
}
|
|
3695
|
-
if (
|
|
3696
|
-
const O =
|
|
3695
|
+
if (C.length) {
|
|
3696
|
+
const O = C.find((G) => G > B + 1e-4);
|
|
3697
3697
|
D = O ?? he();
|
|
3698
3698
|
}
|
|
3699
3699
|
}
|
|
@@ -3720,7 +3720,7 @@ const Vo = (e, t = {}, n = {}) => {
|
|
|
3720
3720
|
function Ye(w) {
|
|
3721
3721
|
return Math.abs(w % 180) === 90;
|
|
3722
3722
|
}
|
|
3723
|
-
function
|
|
3723
|
+
function Be() {
|
|
3724
3724
|
return !(!y() || !c?.isPointerDown() || H());
|
|
3725
3725
|
}
|
|
3726
3726
|
function A() {
|
|
@@ -3732,10 +3732,10 @@ const Vo = (e, t = {}, n = {}) => {
|
|
|
3732
3732
|
function le() {
|
|
3733
3733
|
const w = "in-fullscreen", $ = "with-panzoom-in-fullscreen";
|
|
3734
3734
|
e?.classList.toggle(w);
|
|
3735
|
-
const
|
|
3736
|
-
|
|
3735
|
+
const B = e?.classList.contains(w);
|
|
3736
|
+
B ? (document.documentElement.classList.add($), document.addEventListener("keydown", N, !0)) : (document.documentElement.classList.remove($), document.removeEventListener("keydown", N, !0)), De(), S(B ? "enterFS" : "exitFS");
|
|
3737
3737
|
}
|
|
3738
|
-
function
|
|
3738
|
+
function N(w) {
|
|
3739
3739
|
w.key !== "Escape" || w.defaultPrevented || le();
|
|
3740
3740
|
}
|
|
3741
3741
|
const U = { canDrag: Vt, canZoomIn: Pt, canZoomOut: xt, canZoomToFull: dt, destroy: function() {
|
|
@@ -3743,7 +3743,7 @@ const Vo = (e, t = {}, n = {}) => {
|
|
|
3743
3743
|
for (const w of Object.values(f)) w?.destroy(U);
|
|
3744
3744
|
for (const w of b) w();
|
|
3745
3745
|
return o && (o.style.aspectRatio = "", o.style.maxWidth = "", o.style.maxHeight = ""), s && (s.style.width = "", s.style.height = "", s.style.transform = ""), o = void 0, r = void 0, s = void 0, h = Object.assign({}, wt), p = Object.assign({}, wt), l?.destroy(), l = void 0, c?.destroy(), c = void 0, g = 4, U;
|
|
3746
|
-
}, emit: S, execute:
|
|
3746
|
+
}, emit: S, execute: Ce, getBoundaries: be, getContainer: function() {
|
|
3747
3747
|
return e;
|
|
3748
3748
|
}, getContent: function() {
|
|
3749
3749
|
return r;
|
|
@@ -3766,15 +3766,15 @@ const Vo = (e, t = {}, n = {}) => {
|
|
|
3766
3766
|
}, init: function() {
|
|
3767
3767
|
return g = 0, S("init"), (function() {
|
|
3768
3768
|
for (const [w, $] of Object.entries(Object.assign(Object.assign({}, n), i.plugins || {}))) if (w && !f[w] && $ instanceof Function) {
|
|
3769
|
-
const
|
|
3770
|
-
|
|
3769
|
+
const B = $();
|
|
3770
|
+
B.init(U), f[w] = B;
|
|
3771
3771
|
}
|
|
3772
3772
|
S("initPlugins");
|
|
3773
3773
|
})(), (function() {
|
|
3774
|
-
var w, $,
|
|
3775
|
-
const D = Object.assign(Object.assign({}, Ho.classes), m("classes")),
|
|
3776
|
-
if (!(!
|
|
3777
|
-
if (r.setAttribute("draggable", "false"), o = e.querySelector(`.${O}`), o || (o = document.createElement("div"), pe(o, D.wrapper), r.insertAdjacentElement("beforebegin", o), o.insertAdjacentElement("afterbegin", r)), s = e.querySelector(`.${G}`), s || (s = document.createElement("div"), pe(s, D.viewport), o.insertAdjacentElement("beforeend", s)), s.contains(r) || s.insertAdjacentElement("afterbegin", r), a = e.querySelector(`.${
|
|
3774
|
+
var w, $, B;
|
|
3775
|
+
const D = Object.assign(Object.assign({}, Ho.classes), m("classes")), C = (w = D.content) === null || w === void 0 ? void 0 : w.split(" ").shift(), O = ($ = D.wrapper) === null || $ === void 0 ? void 0 : $.split(" ").shift(), G = (B = D.viewport) === null || B === void 0 ? void 0 : B.split(" ").shift();
|
|
3776
|
+
if (!(!C || !O || !G) && e && (pe(e, D.container), r = e.querySelector(`.${C}:not(.is-clone)`), !!r)) {
|
|
3777
|
+
if (r.setAttribute("draggable", "false"), o = e.querySelector(`.${O}`), o || (o = document.createElement("div"), pe(o, D.wrapper), r.insertAdjacentElement("beforebegin", o), o.insertAdjacentElement("afterbegin", r)), s = e.querySelector(`.${G}`), s || (s = document.createElement("div"), pe(s, D.viewport), o.insertAdjacentElement("beforeend", s)), s.contains(r) || s.insertAdjacentElement("afterbegin", r), a = e.querySelector(`.${C}.is-clone`), a || (a = r.cloneNode(!0), a.removeAttribute("id"), pe(a, "is-clone"), o.insertAdjacentElement("afterbegin", a)), r instanceof HTMLPictureElement && (r = r.querySelector("img")), a instanceof HTMLPictureElement && (a = a.querySelector("img")), s instanceof HTMLPictureElement && (s = s.querySelector("img")), s && (s.style.visibility = "hidden", m("protected"))) {
|
|
3778
3778
|
s.addEventListener("contextmenu", (Q) => {
|
|
3779
3779
|
Kt(Q);
|
|
3780
3780
|
});
|
|
@@ -3807,22 +3807,22 @@ const Vo = (e, t = {}, n = {}) => {
|
|
|
3807
3807
|
if (g = 1, e.classList.add("is-loading"), S("loading"), a.src && a.complete) return void w();
|
|
3808
3808
|
(function() {
|
|
3809
3809
|
if (!e || e?.querySelector(".f-spinner")) return;
|
|
3810
|
-
const $ = m("spinnerTpl"),
|
|
3811
|
-
|
|
3810
|
+
const $ = m("spinnerTpl"), B = Dt($);
|
|
3811
|
+
B && (B.classList.add("f-spinner"), e.classList.add("is-loading"), o?.insertAdjacentElement("afterbegin", B));
|
|
3812
3812
|
})(), a.addEventListener("load", w, !1), a.addEventListener("error", w, !1), b.push(() => {
|
|
3813
3813
|
a?.removeEventListener("load", w, !1), a?.removeEventListener("error", w, !1);
|
|
3814
3814
|
});
|
|
3815
3815
|
})(), U;
|
|
3816
|
-
}, isDragging:
|
|
3817
|
-
const
|
|
3818
|
-
w = String(w).replace(/\{\{(\w+)\}\}/g, (D,
|
|
3816
|
+
}, isDragging: Be, isExpanded: A, isFullsize: Z, isMousemoveMode: H, localize: function(w, $ = []) {
|
|
3817
|
+
const B = m("l10n") || {};
|
|
3818
|
+
w = String(w).replace(/\{\{(\w+)\}\}/g, (D, C) => B[C] || D);
|
|
3819
3819
|
for (let D = 0; D < $.length; D++) w = w.split($[D][0]).join($[D][1]);
|
|
3820
|
-
return w = w.replace(/\{\{(.*?)\}\}/g, (D,
|
|
3820
|
+
return w = w.replace(/\{\{(.*?)\}\}/g, (D, C) => C);
|
|
3821
3821
|
}, off: function(w, $) {
|
|
3822
|
-
for (const
|
|
3822
|
+
for (const B of w instanceof Array ? w : [w]) v.has(B) && v.set(B, v.get(B).filter((D) => D !== $));
|
|
3823
3823
|
return U;
|
|
3824
3824
|
}, on: function(w, $) {
|
|
3825
|
-
for (const
|
|
3825
|
+
for (const B of w instanceof Array ? w : [w]) v.set(B, [...v.get(B) || [], $]);
|
|
3826
3826
|
return U;
|
|
3827
3827
|
}, toggleFS: le, updateControls: ie, version: "6.1.14", willZoomIn: _t, willZoomOut: bt };
|
|
3828
3828
|
return U;
|
|
@@ -3861,7 +3861,7 @@ const ro = (e, t = {}, n = {}) => {
|
|
|
3861
3861
|
for (const F of R) F && F instanceof Function && F(ke, ...L);
|
|
3862
3862
|
k === "click" && K(L[0]), k !== "*" && ie("*", k, ...L);
|
|
3863
3863
|
}
|
|
3864
|
-
function
|
|
3864
|
+
function Ce() {
|
|
3865
3865
|
var k, L;
|
|
3866
3866
|
const R = pt({}, $n, u);
|
|
3867
3867
|
let F = "";
|
|
@@ -3873,7 +3873,7 @@ const ro = (e, t = {}, n = {}) => {
|
|
|
3873
3873
|
V === void 0 && (V = d.initialSlide), R.initialSlide = V, R.slides = [];
|
|
3874
3874
|
for (const z of ae) z.isVirtual && R.slides.push(z);
|
|
3875
3875
|
}
|
|
3876
|
-
|
|
3876
|
+
Ne(), d = R, W("enabled") !== !1 && (l = 0, ie("init"), (function() {
|
|
3877
3877
|
for (const [V, z] of Object.entries(Object.assign(Object.assign({}, n), d.plugins || {}))) if (V && !g[V] && z instanceof Function) {
|
|
3878
3878
|
const Y = z();
|
|
3879
3879
|
Y.init(ke, ro), g[V] = Y;
|
|
@@ -3902,7 +3902,7 @@ const ro = (e, t = {}, n = {}) => {
|
|
|
3902
3902
|
Y?.parentElement === f && (pe(Y, d.classes.slide), pe(Y, z.class), ve(z), ie("attachSlideEl", z));
|
|
3903
3903
|
}
|
|
3904
3904
|
ie("initSlides");
|
|
3905
|
-
})(),
|
|
3905
|
+
})(), B(), l = 1, pe(i, (W("classes") || {}).isEnabled || ""), $e(), xt(), r = Gt().on("start", () => {
|
|
3906
3906
|
o && o.isPointerDown() || (bt(), $e());
|
|
3907
3907
|
}).on("step", (V) => {
|
|
3908
3908
|
const z = x;
|
|
@@ -3927,7 +3927,7 @@ const ro = (e, t = {}, n = {}) => {
|
|
|
3927
3927
|
(function() {
|
|
3928
3928
|
if (l !== 1 || !f) return;
|
|
3929
3929
|
const Y = I.length, ce = f.getBoundingClientRect(), fe = ce.height, xe = ce.width;
|
|
3930
|
-
Y > 1 && (v && Math.abs(fe - ne) < 0.5 || !v && Math.abs(xe - he) < 0.5) || (
|
|
3930
|
+
Y > 1 && (v && Math.abs(fe - ne) < 0.5 || !v && Math.abs(xe - he) < 0.5) || (B(), at(), ne = fe, he = xe, v && !ne || !v && !he || i && f && (Y === I.length && o?.isPointerDown() || (W("dragFree") && (m || x > ue && x < J) ? (bt(), $e()) : Te(M, { transition: !1 }))));
|
|
3931
3931
|
})(), z = null;
|
|
3932
3932
|
}));
|
|
3933
3933
|
}), a.observe(f);
|
|
@@ -3941,7 +3941,7 @@ const ro = (e, t = {}, n = {}) => {
|
|
|
3941
3941
|
function at() {
|
|
3942
3942
|
W("gestures") === !1 ? o && (o.destroy(), o = void 0) : o || (function() {
|
|
3943
3943
|
const k = W("gestures");
|
|
3944
|
-
!o && k !== !1 && f && (o =
|
|
3944
|
+
!o && k !== !1 && f && (o = En(f, k).on("start", (L) => {
|
|
3945
3945
|
var R, F;
|
|
3946
3946
|
if (!r || W("gestures", L) === !1) return;
|
|
3947
3947
|
const { srcEvent: X } = L;
|
|
@@ -3950,7 +3950,7 @@ const ro = (e, t = {}, n = {}) => {
|
|
|
3950
3950
|
V && H.has(V.index) && z && (x = V.offset || 0, x += ((function(Y) {
|
|
3951
3951
|
const ce = window.getComputedStyle(Y), fe = new DOMMatrixReadOnly(ce.transform);
|
|
3952
3952
|
return { width: fe.m41 || 0, height: fe.m42 || 0 };
|
|
3953
|
-
})(z)[S] || 0) * (y && !v ? 1 : -1)),
|
|
3953
|
+
})(z)[S] || 0) * (y && !v ? 1 : -1)), C(), m || (x < ue || x > 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: x }).to({ pos: Pe(ue, x, J) }).start();
|
|
3954
3954
|
}).on("move", (L) => {
|
|
3955
3955
|
var R, F;
|
|
3956
3956
|
if (W("gestures", L) === !1) return;
|
|
@@ -4027,7 +4027,7 @@ const ro = (e, t = {}, n = {}) => {
|
|
|
4027
4027
|
function dt(k) {
|
|
4028
4028
|
var L, R, F;
|
|
4029
4029
|
if (!I.length) return 0;
|
|
4030
|
-
const X =
|
|
4030
|
+
const X = Be();
|
|
4031
4031
|
let V = k;
|
|
4032
4032
|
m ? V -= Math.floor((k - ((L = I[0]) === null || L === void 0 ? void 0 : L.pos)) / X) * X || 0 : V = Pe((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);
|
|
4033
4033
|
const z = /* @__PURE__ */ new Map();
|
|
@@ -4045,11 +4045,11 @@ const ro = (e, t = {}, n = {}) => {
|
|
|
4045
4045
|
function Ye() {
|
|
4046
4046
|
return h;
|
|
4047
4047
|
}
|
|
4048
|
-
function
|
|
4048
|
+
function Be(k = !0) {
|
|
4049
4049
|
return j.length ? j.reduce((L, R) => L + R.dim, 0) + (j.length - (m && k ? 0 : 1)) * me : 0;
|
|
4050
4050
|
}
|
|
4051
4051
|
function A(k) {
|
|
4052
|
-
const L =
|
|
4052
|
+
const L = Be(), R = Ye();
|
|
4053
4053
|
if (!L || !f || !R) return [];
|
|
4054
4054
|
const F = [];
|
|
4055
4055
|
k = k === void 0 ? x : k, m && (k -= Math.floor(k / L) * L || 0);
|
|
@@ -4069,13 +4069,13 @@ const ro = (e, t = {}, n = {}) => {
|
|
|
4069
4069
|
X.el || (X.el = document.createElement("div")), ie("createSlide", X), R.push(X);
|
|
4070
4070
|
}
|
|
4071
4071
|
ae.splice(L === void 0 ? ae.length : L, 0, ...R), $();
|
|
4072
|
-
for (const F of R) ie("addSlide", F),
|
|
4072
|
+
for (const F of R) ie("addSlide", F), N(F);
|
|
4073
4073
|
return _t(_e), R;
|
|
4074
4074
|
}
|
|
4075
4075
|
function le(k) {
|
|
4076
4076
|
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);
|
|
4077
4077
|
}
|
|
4078
|
-
function
|
|
4078
|
+
function N(k) {
|
|
4079
4079
|
let L = k.el;
|
|
4080
4080
|
if (!k || !L) return;
|
|
4081
4081
|
const R = k.html ? k.html instanceof HTMLElement ? k.html : Dt(k.html) : void 0;
|
|
@@ -4107,7 +4107,7 @@ const ro = (e, t = {}, n = {}) => {
|
|
|
4107
4107
|
R && (L.index !== k && D(R), R.setAttribute("index", `${k}`)), L.index = k;
|
|
4108
4108
|
}
|
|
4109
4109
|
}
|
|
4110
|
-
function
|
|
4110
|
+
function B() {
|
|
4111
4111
|
var k, L, R, F, X;
|
|
4112
4112
|
if (!i || !f) return;
|
|
4113
4113
|
y = W("rtl"), v = W("vertical"), S = v ? "height" : "width";
|
|
@@ -4139,7 +4139,7 @@ const ro = (e, t = {}, n = {}) => {
|
|
|
4139
4139
|
}
|
|
4140
4140
|
if (m = !1, W("infinite")) {
|
|
4141
4141
|
m = !0;
|
|
4142
|
-
const Y =
|
|
4142
|
+
const Y = Be();
|
|
4143
4143
|
let ce = h + p + b;
|
|
4144
4144
|
for (let fe = 0; fe < j.length; fe++) {
|
|
4145
4145
|
const xe = ((L = j[fe]) === null || L === void 0 ? void 0 : L.dim) + me;
|
|
@@ -4152,7 +4152,7 @@ const ro = (e, t = {}, n = {}) => {
|
|
|
4152
4152
|
(function() {
|
|
4153
4153
|
var Y;
|
|
4154
4154
|
if (!i) return;
|
|
4155
|
-
const ce = Ye(), fe =
|
|
4155
|
+
const ce = Ye(), fe = Be(!1);
|
|
4156
4156
|
let xe = W("slidesPerPage");
|
|
4157
4157
|
xe = xe === "auto" ? 1 / 0 : parseFloat(xe + ""), I = [];
|
|
4158
4158
|
let Ae = 0, He = 0;
|
|
@@ -4190,7 +4190,7 @@ const ro = (e, t = {}, n = {}) => {
|
|
|
4190
4190
|
const F = [`f-${R}Out`, `f-${R}In`, "to-prev", "to-next", "from-prev", "from-next"];
|
|
4191
4191
|
k.removeEventListener("animationend", O), et(k, F.join(" ")), H.delete(L);
|
|
4192
4192
|
}
|
|
4193
|
-
function
|
|
4193
|
+
function C() {
|
|
4194
4194
|
if (!f) return;
|
|
4195
4195
|
const k = H.size > 0;
|
|
4196
4196
|
for (const L of j) D(L.el);
|
|
@@ -4268,15 +4268,15 @@ const ro = (e, t = {}, n = {}) => {
|
|
|
4268
4268
|
fe = m ? (fe % Xe + Xe) % Xe : Pe(0, fe, Xe - 1), y && (Ke *= -1);
|
|
4269
4269
|
const it = (Ae = I[M]) === null || Ae === void 0 ? void 0 : Ae.slides[0], ft = it?.index, Ve = (He = I[fe]) === null || He === void 0 ? void 0 : He.slides[0], st = Ve?.index, rs = (We = I[fe]) === null || We === void 0 ? void 0 : We.pos;
|
|
4270
4270
|
if (st === void 0 || ft === void 0 || ft === st || x === rs || Math.abs(h - (Ve?.dim || 0)) > 1) return !1;
|
|
4271
|
-
_ = !1, r.pause(),
|
|
4271
|
+
_ = !1, r.pause(), C(), pe(i, "in-transition"), x = ee = rs;
|
|
4272
4272
|
const cn = U(it), un = U(Ve);
|
|
4273
4273
|
return bt(), cn && (H.add(ft), cn.style.transform = "", cn.addEventListener("animationend", O), et(cn, d.classes.isSelected), cn.inert = !1, pe(cn, `f-${xe}Out to-${Ke > 0 ? "next" : "prev"}`)), un && (H.add(st), un.style.transform = "", un.addEventListener("animationend", O), pe(un, d.classes.isSelected), un.inert = !1, pe(un, `f-${xe}In from-${Ke > 0 ? "prev" : "next"}`)), $e(), !0;
|
|
4274
4274
|
})(k, X)) return;
|
|
4275
4275
|
k = m ? (k % z + z) % z : Pe(0, k, z - 1), ee = ((R = I[k || 0]) === null || R === void 0 ? void 0 : R.pos) || 0;
|
|
4276
4276
|
const ce = r.isRunning() ? r.getEndValues().pos : x;
|
|
4277
4277
|
if (Math.abs(ee - ce) < 1) return x = ee, M !== k && (ve(), s = M, M = k, xt(), Pt(), ie("change", M, s)), $e(), void (_ || (_ = !0, ie("settle")));
|
|
4278
|
-
if (r.pause(),
|
|
4279
|
-
const fe =
|
|
4278
|
+
if (r.pause(), C(), m) {
|
|
4279
|
+
const fe = Be(), xe = Math.floor((ce - ((F = I[0]) === null || F === void 0 ? void 0 : F.pos)) / fe) || 0, Ae = ee + xe * fe;
|
|
4280
4280
|
ee = [Ae + fe, Ae, Ae - fe].reduce(function(He, We) {
|
|
4281
4281
|
return Math.abs(We - ce) < Math.abs(He - ce) ? We : He;
|
|
4282
4282
|
});
|
|
@@ -4287,7 +4287,7 @@ const ro = (e, t = {}, n = {}) => {
|
|
|
4287
4287
|
var L;
|
|
4288
4288
|
let R = x;
|
|
4289
4289
|
if (m && k !== !0) {
|
|
4290
|
-
const F =
|
|
4290
|
+
const F = Be();
|
|
4291
4291
|
R -= (Math.floor((x - ((L = I[0]) === null || L === void 0 ? void 0 : L.pos) || 0) / F) || 0) * F;
|
|
4292
4292
|
}
|
|
4293
4293
|
return R;
|
|
@@ -4318,7 +4318,7 @@ const ro = (e, t = {}, n = {}) => {
|
|
|
4318
4318
|
ce || (Ae = v ? 0 : y ? -1 * xe : xe, He = v ? xe : 0, We = oo(Ae, 0, Y.dim, 0, 100), Xe = oo(He, 0, Y.dim, 0, 100)), X instanceof Function && !ce ? X(ke, Y, { x: Ae, y: He, xPercent: We, yPercent: Xe }) : z.style.transform = Ae || He ? `translate3d(${We}%, ${Xe}%,0)` : "";
|
|
4319
4319
|
}), ie("render", R);
|
|
4320
4320
|
}
|
|
4321
|
-
function
|
|
4321
|
+
function Ne() {
|
|
4322
4322
|
i?.removeEventListener("click", G), document.removeEventListener("mousemove", De), H.clear(), a?.disconnect(), a = void 0;
|
|
4323
4323
|
for (const k of ae) {
|
|
4324
4324
|
let L = k.el;
|
|
@@ -4338,12 +4338,12 @@ const ro = (e, t = {}, n = {}) => {
|
|
|
4338
4338
|
const ke = { add: function(k, L) {
|
|
4339
4339
|
var R;
|
|
4340
4340
|
let F = x;
|
|
4341
|
-
const X = M, V =
|
|
4342
|
-
return Z(k, L), _t(_e),
|
|
4341
|
+
const X = M, V = Be(), z = r?.isRunning() ? r.getEndValues().pos : x, Y = V && Math.floor((z - (((R = I[0]) === null || R === void 0 ? void 0 : R.pos) || 0)) / V) || 0;
|
|
4342
|
+
return Z(k, L), _t(_e), B(), r && V && (X === M && (F -= Y * V), F === ee ? x = ee : r.spring({ clamp: !0, mass: 1, tension: 300, friction: 25, restDelta: 1, restSpeed: 1 }).from({ pos: F }).to({ pos: ee }).start()), $e(), ke;
|
|
4343
4343
|
}, canGoPrev: Re, canGoNext: je, destroy: function() {
|
|
4344
|
-
return ie("destroy"), window.removeEventListener("resize",
|
|
4344
|
+
return ie("destroy"), window.removeEventListener("resize", Ce), Ne(), ge.clear(), i = null, I = [], ae = [], d = Object.assign({}, $n), g = {}, j = [], c = void 0, _e = "*", l = 2, ke;
|
|
4345
4345
|
}, emit: ie, filter: function(k = "*") {
|
|
4346
|
-
return _t(k),
|
|
4346
|
+
return _t(k), B(), x = Pe(ue, x, J), $e(), ie("filter", k), ke;
|
|
4347
4347
|
}, getContainer: function() {
|
|
4348
4348
|
return i;
|
|
4349
4349
|
}, getGapDim: Vt, getGestures: function() {
|
|
@@ -4367,7 +4367,7 @@ const ro = (e, t = {}, n = {}) => {
|
|
|
4367
4367
|
k === void 0 && (k = M);
|
|
4368
4368
|
const F = I[k];
|
|
4369
4369
|
if (!F) return k > M ? -1 : 1;
|
|
4370
|
-
const X =
|
|
4370
|
+
const X = Be(), V = Vt();
|
|
4371
4371
|
let z = F.pos, Y = Me();
|
|
4372
4372
|
if (m && L !== !0) {
|
|
4373
4373
|
const ce = Math.floor((Y - ((R = I[0]) === null || R === void 0 ? void 0 : R.pos)) / X) || 0;
|
|
@@ -4384,7 +4384,7 @@ const ro = (e, t = {}, n = {}) => {
|
|
|
4384
4384
|
const F = Me(), X = Ye();
|
|
4385
4385
|
let V = R.pos;
|
|
4386
4386
|
if (m) {
|
|
4387
|
-
const z =
|
|
4387
|
+
const z = Be(), Y = V + (Math.floor((F - ((L = I[0]) === null || L === void 0 ? void 0 : L.pos)) / z) || 0) * z;
|
|
4388
4388
|
V = [Y + z, Y, Y - z].reduce(function(ce, fe) {
|
|
4389
4389
|
return Math.abs(fe - F) < Math.abs(ce - F) ? fe : ce;
|
|
4390
4390
|
});
|
|
@@ -4398,7 +4398,7 @@ const ro = (e, t = {}, n = {}) => {
|
|
|
4398
4398
|
return ae;
|
|
4399
4399
|
}, getState: function() {
|
|
4400
4400
|
return l;
|
|
4401
|
-
}, getTotalSlideDim:
|
|
4401
|
+
}, getTotalSlideDim: Be, getTween: function() {
|
|
4402
4402
|
return r;
|
|
4403
4403
|
}, getViewport: function() {
|
|
4404
4404
|
return f;
|
|
@@ -4408,7 +4408,7 @@ const ro = (e, t = {}, n = {}) => {
|
|
|
4408
4408
|
return s !== void 0;
|
|
4409
4409
|
}, hideError: de, hideLoading: Q, init: function() {
|
|
4410
4410
|
if (!e || !mn(e)) throw new Error("No Element found");
|
|
4411
|
-
return l !== 0 && (
|
|
4411
|
+
return l !== 0 && (Ne(), l = 0), i = e, u = t, window.removeEventListener("resize", Ce), u.breakpoints && window.addEventListener("resize", Ce), Ce(), ke;
|
|
4412
4412
|
}, isInfinite: function() {
|
|
4413
4413
|
return m;
|
|
4414
4414
|
}, isInTransition: function() {
|
|
@@ -4430,11 +4430,11 @@ const ro = (e, t = {}, n = {}) => {
|
|
|
4430
4430
|
}, prev: function(k = {}) {
|
|
4431
4431
|
return Te(M - 1, k), ke;
|
|
4432
4432
|
}, reInit: function(k = {}, L) {
|
|
4433
|
-
return
|
|
4433
|
+
return Ne(), l = 0, c = void 0, _e = "*", t = k, u = k, ot(L) && (n = L), Ce(), ke;
|
|
4434
4434
|
}, remove: function(k) {
|
|
4435
4435
|
k === void 0 && (k = ae.length - 1);
|
|
4436
4436
|
const L = ae[k];
|
|
4437
|
-
return L && (ie("removeSlide", L), L.el && (D(L.el), L.el.remove(), L.el = void 0), ae.splice(k, 1), _t(_e),
|
|
4437
|
+
return L && (ie("removeSlide", L), L.el && (D(L.el), L.el.remove(), L.el = void 0), ae.splice(k, 1), _t(_e), B(), x = Pe(ue, x, J), $e()), ke;
|
|
4438
4438
|
}, setPosition: function(k) {
|
|
4439
4439
|
x = k, bt(), $e();
|
|
4440
4440
|
}, showError: function(k, L) {
|
|
@@ -4747,11 +4747,11 @@ const Vs = Object.assign({ counter: { tpl: '<div class="f-counter"><span data-ca
|
|
|
4747
4747
|
return !!t;
|
|
4748
4748
|
} };
|
|
4749
4749
|
};
|
|
4750
|
-
const
|
|
4750
|
+
const Bs = { autoStart: !0, pauseOnHover: !0, showProgressbar: !0, timeout: 2e3 }, Gc = () => {
|
|
4751
4751
|
let e, t, n = !1, o = !1, r = !1, a = null;
|
|
4752
4752
|
function s(x) {
|
|
4753
4753
|
const _ = e?.getOptions().Autoplay;
|
|
4754
|
-
let M = (ot(_) ? Object.assign(Object.assign({},
|
|
4754
|
+
let M = (ot(_) ? Object.assign(Object.assign({}, Bs), _) : Bs)[x];
|
|
4755
4755
|
return M && typeof M == "function" && e ? M(e) : M;
|
|
4756
4756
|
}
|
|
4757
4757
|
function c() {
|
|
@@ -4846,13 +4846,13 @@ const Ns = { autoStart: !0, pauseOnHover: !0, showProgressbar: !0, timeout: 2e3
|
|
|
4846
4846
|
} };
|
|
4847
4847
|
return S;
|
|
4848
4848
|
};
|
|
4849
|
-
const
|
|
4850
|
-
let
|
|
4849
|
+
const Eo = { Carousel: { Lazyload: { showLoading: !1 } }, minCount: 2, showOnStart: !0, thumbTpl: '<button aria-label="Slide to #{{page}}"><img draggable="false" alt="{{alt}}" data-lazy-src="{{src}}" /></button>', type: "modern" };
|
|
4850
|
+
let Co;
|
|
4851
4851
|
const Yc = () => {
|
|
4852
4852
|
let e, t, n, o, r, a = 0, s = 0, c = !0;
|
|
4853
4853
|
function l(j) {
|
|
4854
4854
|
const H = e?.getOptions().Thumbs;
|
|
4855
|
-
let q = (ot(H) ? Object.assign(Object.assign({},
|
|
4855
|
+
let q = (ot(H) ? Object.assign(Object.assign({}, Eo), H) : Eo)[j];
|
|
4856
4856
|
return q && typeof q == "function" && e ? q(e) : q;
|
|
4857
4857
|
}
|
|
4858
4858
|
function u() {
|
|
@@ -4916,7 +4916,7 @@ const Yc = () => {
|
|
|
4916
4916
|
}
|
|
4917
4917
|
function m() {
|
|
4918
4918
|
var j;
|
|
4919
|
-
if (!
|
|
4919
|
+
if (!Co || !e || !n || g() || t) return;
|
|
4920
4920
|
const H = i();
|
|
4921
4921
|
if (!H.length) return;
|
|
4922
4922
|
const q = pt({}, { Sync: { target: e }, Lazyload: { preload: 1 }, slides: H, classes: { container: "f-thumbs", viewport: "f-thumbs__viewport", slide: "f-thumbs__slide" }, center: !0, fill: !d(), infinite: !1, dragFree: !0, rtl: e.getOptions().rtl || !1, slidesPerPage: (I) => {
|
|
@@ -4926,8 +4926,8 @@ const Yc = () => {
|
|
|
4926
4926
|
const he = (me) => n && parseFloat(getComputedStyle(n).getPropertyValue("--f-thumb-" + me)) || 0;
|
|
4927
4927
|
a = he("width"), s = he("clip-width");
|
|
4928
4928
|
})(), ne = 4 * (a - s)), I && I.getTotalSlideDim() <= I.getViewportDim() - ne ? 1 / 0 : 1;
|
|
4929
|
-
} },
|
|
4930
|
-
t =
|
|
4929
|
+
} }, Eo.Carousel || {}, l("Carousel") || {});
|
|
4930
|
+
t = Co(n, q, { Sync: aa, Lazyload: ia }), t.on("ready", () => {
|
|
4931
4931
|
pe(n, "is-syncing"), e?.emit("thumbs:ready"), d() && e?.on("render", x);
|
|
4932
4932
|
}), t.on("destroy", () => {
|
|
4933
4933
|
e?.emit("thumbs:destroy");
|
|
@@ -5016,7 +5016,7 @@ const Yc = () => {
|
|
|
5016
5016
|
}
|
|
5017
5017
|
}
|
|
5018
5018
|
return { init: function(j, H) {
|
|
5019
|
-
|
|
5019
|
+
Co = H, e = j, e.on("ready", v), e.on("initSlides", y), e.on("change", _);
|
|
5020
5020
|
}, destroy: function() {
|
|
5021
5021
|
var j, H;
|
|
5022
5022
|
g() && e?.emit("thumbs:destroy"), e?.off("ready", v), e?.off("initSlides", y), e?.off("change", _), e?.off("render", x), e?.off("addSlide", M), e?.off("click", ue), e?.off("refresh", J), (j = e?.getGestures()) === null || j === void 0 || j.off("start", S), (H = e?.getContainer()) === null || H === void 0 || H.classList.remove("has-thumbs"), e = void 0, t?.destroy(), t = void 0, n?.remove(), n = void 0;
|
|
@@ -5028,11 +5028,11 @@ const Yc = () => {
|
|
|
5028
5028
|
return l("type");
|
|
5029
5029
|
}, isEnabled: u };
|
|
5030
5030
|
};
|
|
5031
|
-
const
|
|
5031
|
+
const Ns = { autosize: !1, iframeAttr: { allow: "autoplay; fullscreen", scrolling: "auto" }, preload: !1 }, Xc = () => {
|
|
5032
5032
|
let e;
|
|
5033
5033
|
function t() {
|
|
5034
5034
|
const f = e?.getOptions().Html;
|
|
5035
|
-
return ot(f) ? pt({},
|
|
5035
|
+
return ot(f) ? pt({}, Ns, f) : Ns;
|
|
5036
5036
|
}
|
|
5037
5037
|
function n() {
|
|
5038
5038
|
return e?.getOptions().Html !== !1;
|
|
@@ -5344,7 +5344,7 @@ const Us = { autoStart: !1, btnTpl: '<button data-fullscreen-action="toggle" cla
|
|
|
5344
5344
|
e?.off("initPlugins", n), e?.off("ready", o), e?.off("click", r);
|
|
5345
5345
|
}, exit: l, inFullscreen: s, request: c, toggle: u };
|
|
5346
5346
|
};
|
|
5347
|
-
let ht, ua, zo = !1,
|
|
5347
|
+
let ht, ua, zo = !1, Bo = !1, Ln = !1, No = !1;
|
|
5348
5348
|
const po = () => {
|
|
5349
5349
|
const e = new URL(document.URL).hash, t = e.slice(1).split("-"), n = t[t.length - 1], o = n && /^\+?\d+$/.test(n) && parseInt(t.pop() || "1", 10) || 1;
|
|
5350
5350
|
return { urlHash: e, urlSlug: t.join("-"), urlIndex: o };
|
|
@@ -5372,8 +5372,8 @@ const po = () => {
|
|
|
5372
5372
|
if (r !== !1) {
|
|
5373
5373
|
if (e && e.getState() === 1 && t) {
|
|
5374
5374
|
const a = t.getSlides();
|
|
5375
|
-
for (const s of a || []) if (s.slug === n || (s.fancybox === n || ot(r) && r.slug === n) && s.index === o - 1) return
|
|
5376
|
-
|
|
5375
|
+
for (const s of a || []) if (s.slug === n || (s.fancybox === n || ot(r) && r.slug === n) && s.index === o - 1) return Bo = !1, void t.goTo(s.index);
|
|
5376
|
+
No = !0, e.close(), No = !1;
|
|
5377
5377
|
}
|
|
5378
5378
|
ss();
|
|
5379
5379
|
}
|
|
@@ -5403,7 +5403,7 @@ const Kn = () => {
|
|
|
5403
5403
|
l !== d && (t = l), history.scrollRestoration && !On && (On = history.scrollRestoration, history.scrollRestoration = "manual", window.addEventListener("beforeunload", _o)), s.on("change", o);
|
|
5404
5404
|
const g = c !== u;
|
|
5405
5405
|
try {
|
|
5406
|
-
window.history[g ? "pushState" : "replaceState"]({}, document.title, window.location.pathname + window.location.search + d), g && (
|
|
5406
|
+
window.history[g ? "pushState" : "replaceState"]({}, document.title, window.location.pathname + window.location.search + d), g && (Bo = !0);
|
|
5407
5407
|
} catch {
|
|
5408
5408
|
}
|
|
5409
5409
|
}
|
|
@@ -5419,10 +5419,10 @@ const Kn = () => {
|
|
|
5419
5419
|
}
|
|
5420
5420
|
function r() {
|
|
5421
5421
|
var a;
|
|
5422
|
-
if (!(!e || !e.isTopMost() || e.getOptions().Hash === !1 ||
|
|
5422
|
+
if (!(!e || !e.isTopMost() || e.getOptions().Hash === !1 || No) && Xn(e)) {
|
|
5423
5423
|
Ln = !0;
|
|
5424
5424
|
try {
|
|
5425
|
-
|
|
5425
|
+
Bo && !(function() {
|
|
5426
5426
|
if (window.parent === window) return !1;
|
|
5427
5427
|
try {
|
|
5428
5428
|
var s = window.frameElement;
|
|
@@ -5477,19 +5477,19 @@ const Ks = "with-fancybox", nu = () => {
|
|
|
5477
5477
|
let e, t, n, o, r, a, s, c = Ge.Init, l = Object.assign({}, Rn), u = -1, d = {}, g = [], i = !1, f = !0, h = 0;
|
|
5478
5478
|
function p(A, ...Z) {
|
|
5479
5479
|
let le = l[A];
|
|
5480
|
-
return le && typeof le == "function" ? le(
|
|
5480
|
+
return le && typeof le == "function" ? le(Be, ...Z) : le;
|
|
5481
5481
|
}
|
|
5482
5482
|
function b(A, Z = []) {
|
|
5483
5483
|
const le = p("l10n") || {};
|
|
5484
|
-
A = String(A).replace(/\{\{(\w+)\}\}/g, (
|
|
5485
|
-
for (let
|
|
5486
|
-
return A = A.replace(/\{\{(.*?)\}\}/g, (
|
|
5484
|
+
A = String(A).replace(/\{\{(\w+)\}\}/g, (N, U) => le[U] || N);
|
|
5485
|
+
for (let N = 0; N < Z.length; N++) A = A.split(Z[N][0]).join(Z[N][1]);
|
|
5486
|
+
return A = A.replace(/\{\{(.*?)\}\}/g, (N, U) => U);
|
|
5487
5487
|
}
|
|
5488
5488
|
const m = /* @__PURE__ */ new Map();
|
|
5489
5489
|
function y(A, ...Z) {
|
|
5490
5490
|
const le = [...m.get(A) || []];
|
|
5491
|
-
for (const [
|
|
5492
|
-
for (const
|
|
5491
|
+
for (const [N, U] of Object.entries(l.on || {})) (N === A || N.split(" ").indexOf(A) > -1) && le.push(U);
|
|
5492
|
+
for (const N of le) N && typeof N == "function" && N(Be, ...Z);
|
|
5493
5493
|
A !== "*" && y("*", A, ...Z);
|
|
5494
5494
|
}
|
|
5495
5495
|
function v() {
|
|
@@ -5501,56 +5501,56 @@ const Ks = "with-fancybox", nu = () => {
|
|
|
5501
5501
|
}
|
|
5502
5502
|
function S(A, Z) {
|
|
5503
5503
|
var le;
|
|
5504
|
-
he(Z), j(), (le = Z.el) === null || le === void 0 || le.addEventListener("click", _), Z.type !== "inline" && Z.type !== "clone" || (function(
|
|
5505
|
-
if (!o || !
|
|
5504
|
+
he(Z), j(), (le = Z.el) === null || le === void 0 || le.addEventListener("click", _), Z.type !== "inline" && Z.type !== "clone" || (function(N) {
|
|
5505
|
+
if (!o || !N || !N.el) return;
|
|
5506
5506
|
let U = null;
|
|
5507
|
-
if (Ie(
|
|
5508
|
-
const w =
|
|
5507
|
+
if (Ie(N.src)) {
|
|
5508
|
+
const w = N.src.split("#", 2).pop();
|
|
5509
5509
|
U = w ? document.getElementById(w) : null;
|
|
5510
5510
|
}
|
|
5511
5511
|
if (U) {
|
|
5512
|
-
if (pe(U, "f-html"),
|
|
5512
|
+
if (pe(U, "f-html"), N.type === "clone" || U.closest(".fancybox__carousel")) {
|
|
5513
5513
|
U = U.cloneNode(!0);
|
|
5514
5514
|
const w = U.dataset.animationName;
|
|
5515
5515
|
w && (U.classList.remove(w), delete U.dataset.animationName);
|
|
5516
5516
|
let $ = U.getAttribute("id");
|
|
5517
|
-
$ = $ ? `${$}--clone` : `clone-${u}-${
|
|
5517
|
+
$ = $ ? `${$}--clone` : `clone-${u}-${N.index}`, U.setAttribute("id", $);
|
|
5518
5518
|
} else if (U.parentNode) {
|
|
5519
5519
|
const w = document.createElement("div");
|
|
5520
|
-
w.inert = !0, U.parentNode.insertBefore(w, U),
|
|
5520
|
+
w.inert = !0, U.parentNode.insertBefore(w, U), N.placeholderEl = w;
|
|
5521
5521
|
}
|
|
5522
|
-
|
|
5523
|
-
} else o?.showError(
|
|
5524
|
-
})(Z), Z.type === "ajax" && (function(
|
|
5525
|
-
const U =
|
|
5526
|
-
if (!U ||
|
|
5527
|
-
o?.showLoading(
|
|
5522
|
+
N.htmlEl = U, pe(N.el, "has-html"), N.el.prepend(U), U.classList.remove("hidden"), U.style.display === "none" && (U.style.display = ""), getComputedStyle(U).getPropertyValue("display") === "none" && (U.style.display = U.dataset.display || "flex"), o?.emit("contentReady", N);
|
|
5523
|
+
} else o?.showError(N, "{{ELEMENT_NOT_FOUND}}");
|
|
5524
|
+
})(Z), Z.type === "ajax" && (function(N) {
|
|
5525
|
+
const U = N.el;
|
|
5526
|
+
if (!U || N.htmlEl || N.xhr) return;
|
|
5527
|
+
o?.showLoading(N), N.state = 0;
|
|
5528
5528
|
const w = new XMLHttpRequest();
|
|
5529
5529
|
w.onreadystatechange = function() {
|
|
5530
|
-
if (w.readyState === XMLHttpRequest.DONE && c === Ge.Ready) if (o?.hideLoading(
|
|
5531
|
-
let
|
|
5532
|
-
if (
|
|
5530
|
+
if (w.readyState === XMLHttpRequest.DONE && c === Ge.Ready) if (o?.hideLoading(N), N.state = 1, w.status === 200) {
|
|
5531
|
+
let B = w.responseText + "", D = null, C = null;
|
|
5532
|
+
if (N.filter) {
|
|
5533
5533
|
const O = document.createElement("div");
|
|
5534
|
-
O.innerHTML =
|
|
5534
|
+
O.innerHTML = B, C = O.querySelector(N.filter + "");
|
|
5535
5535
|
}
|
|
5536
|
-
|
|
5537
|
-
} else o?.showError(
|
|
5536
|
+
C && C instanceof HTMLElement ? D = C : (D = document.createElement("div"), D.innerHTML = B), D.classList.add("f-html"), N.htmlEl = D, U.classList.add("has-html"), U.classList.add("has-ajax"), U.prepend(D), o?.emit("contentReady", N);
|
|
5537
|
+
} else o?.showError(N);
|
|
5538
5538
|
};
|
|
5539
5539
|
const $ = p("ajax") || null;
|
|
5540
|
-
w.open($ ? "POST" : "GET",
|
|
5540
|
+
w.open($ ? "POST" : "GET", N.src + ""), w.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"), w.setRequestHeader("X-Requested-With", "XMLHttpRequest"), w.send($), N.xhr = w;
|
|
5541
5541
|
})(Z);
|
|
5542
5542
|
}
|
|
5543
5543
|
function x(A, Z) {
|
|
5544
5544
|
var le;
|
|
5545
|
-
me(Z), (le = Z.el) === null || le === void 0 || le.removeEventListener("click", _), Z.type !== "inline" && Z.type !== "clone" || (function(
|
|
5546
|
-
const U =
|
|
5547
|
-
U && (getComputedStyle(U).getPropertyValue("display") !== "none" && (U.style.display = "none"), U.offsetHeight), w && (U && w.parentNode && w.parentNode.insertBefore(U, w), w.remove()),
|
|
5545
|
+
me(Z), (le = Z.el) === null || le === void 0 || le.removeEventListener("click", _), Z.type !== "inline" && Z.type !== "clone" || (function(N) {
|
|
5546
|
+
const U = N.htmlEl, w = N.placeholderEl;
|
|
5547
|
+
U && (getComputedStyle(U).getPropertyValue("display") !== "none" && (U.style.display = "none"), U.offsetHeight), w && (U && w.parentNode && w.parentNode.insertBefore(U, w), w.remove()), N.htmlEl = void 0, N.placeholderEl = void 0;
|
|
5548
5548
|
})(Z), Z.xhr && (Z.xhr.abort(), Z.xhr = void 0);
|
|
5549
5549
|
}
|
|
5550
5550
|
function _(A) {
|
|
5551
5551
|
if (!be()) return;
|
|
5552
5552
|
if (c !== Ge.Ready) return Lt(A), void A.stopPropagation();
|
|
5553
|
-
if (A.defaultPrevented || !
|
|
5553
|
+
if (A.defaultPrevented || !En.isClickAllowed()) return;
|
|
5554
5554
|
const Z = A.composedPath()[0];
|
|
5555
5555
|
Z.closest(".fancybox__carousel") && Z.classList.contains("fancybox__slide") && H(A);
|
|
5556
5556
|
}
|
|
@@ -5566,19 +5566,19 @@ const Ks = "with-fancybox", nu = () => {
|
|
|
5566
5566
|
var A;
|
|
5567
5567
|
(function() {
|
|
5568
5568
|
const le = o?.getViewport();
|
|
5569
|
-
if (!p("dragToClose") || !o || !le || (r =
|
|
5570
|
-
let
|
|
5569
|
+
if (!p("dragToClose") || !o || !le || (r = En(le).init(), !r)) return;
|
|
5570
|
+
let N = !1, U = 0, w = 0, $ = {}, B = 1;
|
|
5571
5571
|
function D() {
|
|
5572
5572
|
var O, G;
|
|
5573
5573
|
a?.spring({ clamp: !0, mass: 1, tension: w === 0 ? 140 : 960, friction: 17, restDelta: 0.1, restSpeed: 0.1, maxSpeed: 1 / 0 }).from({ y: U }).to({ y: w }).start();
|
|
5574
5574
|
const K = ((O = o?.getViewport()) === null || O === void 0 ? void 0 : O.getBoundingClientRect().height) || 0, Q = (G = ge()) === null || G === void 0 ? void 0 : G.panzoomRef;
|
|
5575
5575
|
if (K && Q) if (w === 0) Q.execute(re.Reset);
|
|
5576
5576
|
else {
|
|
5577
|
-
const de = oo(Math.abs(U), 0, 0.33 * K,
|
|
5577
|
+
const de = oo(Math.abs(U), 0, 0.33 * K, B, 0.77 * B, !1);
|
|
5578
5578
|
Q.execute(re.ZoomTo, { scale: de });
|
|
5579
5579
|
}
|
|
5580
5580
|
}
|
|
5581
|
-
const
|
|
5581
|
+
const C = (O) => {
|
|
5582
5582
|
var G;
|
|
5583
5583
|
const K = O.srcEvent, Q = K.target;
|
|
5584
5584
|
return o && !(Mn(K) && ((G = K.touches) === null || G === void 0 ? void 0 : G.length) > 1) && Q && !on(Q);
|
|
@@ -5591,32 +5591,32 @@ const Ks = "with-fancybox", nu = () => {
|
|
|
5591
5591
|
t.style.setProperty("--f-drag-opacity", K + ""), t.style.setProperty("--f-drag-offset", U + "px");
|
|
5592
5592
|
}
|
|
5593
5593
|
}), r.on("start", function() {
|
|
5594
|
-
|
|
5594
|
+
N || (a?.pause(), w = U);
|
|
5595
5595
|
}).on("panstart", (O) => {
|
|
5596
5596
|
var G, K;
|
|
5597
|
-
if (!
|
|
5598
|
-
Lt(O.srcEvent),
|
|
5597
|
+
if (!N && C(O) && O.axis === "y") {
|
|
5598
|
+
Lt(O.srcEvent), N = !0, Pt(), (G = o?.getViewport()) === null || G === void 0 || G.classList.add("is-dragging");
|
|
5599
5599
|
const Q = (K = ge()) === null || K === void 0 ? void 0 : K.panzoomRef;
|
|
5600
5600
|
if (Q) {
|
|
5601
|
-
|
|
5601
|
+
B = Q.getTransform().scale || 1;
|
|
5602
5602
|
const de = Q.getOptions();
|
|
5603
5603
|
$ = Object.assign({}, de), de.bounds = !1, de.gestures = !1;
|
|
5604
5604
|
}
|
|
5605
|
-
} else
|
|
5605
|
+
} else N = !1;
|
|
5606
5606
|
}).on("pan", function(O) {
|
|
5607
|
-
|
|
5607
|
+
N && C(O) && (Lt(O.srcEvent), O.srcEvent.stopPropagation(), O.axis === "y" && (w += O.deltaY, D()));
|
|
5608
5608
|
}).on("end", (O) => {
|
|
5609
5609
|
var G, K, Q;
|
|
5610
|
-
if ((G = o?.getViewport()) === null || G === void 0 || G.classList.remove("is-dragging"),
|
|
5610
|
+
if ((G = o?.getViewport()) === null || G === void 0 || G.classList.remove("is-dragging"), N) {
|
|
5611
5611
|
const de = (K = ge()) === null || K === void 0 ? void 0 : K.panzoomRef;
|
|
5612
5612
|
if (de) {
|
|
5613
5613
|
(Q = de.getTween()) === null || Q === void 0 || Q.end();
|
|
5614
5614
|
const ve = de.getOptions();
|
|
5615
5615
|
ve.bounds = $.bounds || !1, ve.gestures = $.gestures || !1;
|
|
5616
5616
|
}
|
|
5617
|
-
|
|
5617
|
+
C(O) && O.axis === "y" && (Math.abs(O.velocityY) > 5 || Math.abs(U) > 50) && dt(O.srcEvent, "f-throwOut" + (O.velocityY > 0 ? "Down" : "Up"));
|
|
5618
5618
|
}
|
|
5619
|
-
|
|
5619
|
+
N = !1, c === Ge.Ready && U !== 0 && (w = 0, D());
|
|
5620
5620
|
});
|
|
5621
5621
|
})(), document.body.addEventListener("click", ne), document.body.addEventListener("keydown", I, { passive: !1, capture: !0 }), j(), at();
|
|
5622
5622
|
const Z = p("sync");
|
|
@@ -5639,7 +5639,7 @@ const Ks = "with-fancybox", nu = () => {
|
|
|
5639
5639
|
function j() {
|
|
5640
5640
|
if (!t) return;
|
|
5641
5641
|
const A = o?.getPages().length || 0, Z = o?.getPageIndex() || 0, le = t.querySelectorAll("[data-fancybox-index],[data-fancybox-page],[data-fancybox-pages]");
|
|
5642
|
-
for (const
|
|
5642
|
+
for (const N of le) N.hasAttribute("data-fancybox-index") ? N.textContent = String(Z) : N.hasAttribute("data-fancybox-page") ? N.textContent = String(Z + 1) : N.textContent = String(A);
|
|
5643
5643
|
}
|
|
5644
5644
|
function H(A) {
|
|
5645
5645
|
if (A.composedPath()[0].closest("[data-fancybox-close]")) return void dt(A);
|
|
@@ -5652,11 +5652,11 @@ const Ks = "with-fancybox", nu = () => {
|
|
|
5652
5652
|
if (!be() || c !== Ge.Ready) return;
|
|
5653
5653
|
const Z = A.key, le = p("keyboard");
|
|
5654
5654
|
if (!le || A.ctrlKey || A.altKey || A.shiftKey) return;
|
|
5655
|
-
const
|
|
5656
|
-
if (!mn(
|
|
5655
|
+
const N = A.composedPath()[0];
|
|
5656
|
+
if (!mn(N) || Z !== "Escape" && ((w) => {
|
|
5657
5657
|
const $ = ["input", "textarea", "select", "option", "video", "iframe", "[contenteditable]", "[data-selectable]", "[data-draggable]"].join(",");
|
|
5658
5658
|
return w.matches($) || w.closest($);
|
|
5659
|
-
})(
|
|
5659
|
+
})(N) || (y("keydown", A), A.defaultPrevented)) return;
|
|
5660
5660
|
const U = le[Z];
|
|
5661
5661
|
if (U) switch (U) {
|
|
5662
5662
|
case "close":
|
|
@@ -5671,15 +5671,15 @@ const Ks = "with-fancybox", nu = () => {
|
|
|
5671
5671
|
}
|
|
5672
5672
|
function ne(A) {
|
|
5673
5673
|
if (!be() || c !== Ge.Ready || (bt(), A.defaultPrevented)) return;
|
|
5674
|
-
const Z = A.composedPath()[0], le = !!Z.closest("[data-fancybox-close]"),
|
|
5675
|
-
(le ||
|
|
5674
|
+
const Z = A.composedPath()[0], le = !!Z.closest("[data-fancybox-close]"), N = Z.classList.contains("fancybox__backdrop");
|
|
5675
|
+
(le || N) && H(A);
|
|
5676
5676
|
}
|
|
5677
5677
|
function he(A) {
|
|
5678
5678
|
var Z;
|
|
5679
|
-
const { el: le, htmlEl:
|
|
5679
|
+
const { el: le, htmlEl: N, panzoomRef: U, closeButtonEl: w } = A, $ = U ? U.getWrapper() : N;
|
|
5680
5680
|
if (!le || !le.parentElement || !$) return;
|
|
5681
|
-
let
|
|
5682
|
-
if (
|
|
5681
|
+
let B = p("closeButton");
|
|
5682
|
+
if (B === "auto" && (B = ((Z = o?.getPlugins().Toolbar) === null || Z === void 0 ? void 0 : Z.isEnabled()) !== !0), B) {
|
|
5683
5683
|
if (!w) {
|
|
5684
5684
|
const D = Dt(b(p("closeButtonTpl")));
|
|
5685
5685
|
D && (pe(D, "is-close-button"), A.closeButtonEl = $.insertAdjacentElement("afterbegin", D), pe(le, "has-close-btn"));
|
|
@@ -5692,10 +5692,10 @@ const Ks = "with-fancybox", nu = () => {
|
|
|
5692
5692
|
function W(A) {
|
|
5693
5693
|
if (!(f && o && o.getState() === 1 && A && A.index === o.getOptions().initialPage && A.el && A.el.parentElement) || A.state !== void 0 && A.state !== 1) return;
|
|
5694
5694
|
f = !1;
|
|
5695
|
-
const Z = A.panzoomRef, le = Z?.getTween(),
|
|
5696
|
-
if (Z && le &&
|
|
5697
|
-
const { x: w, y: $, scale:
|
|
5698
|
-
return void le.spring({ tension: 215, friction: 25, restDelta: 1e-3, restSpeed: 1e-3, maxSpeed: 1 / 0 }).from(
|
|
5695
|
+
const Z = A.panzoomRef, le = Z?.getTween(), N = p("zoomEffect") && le ? Ce(A) : void 0;
|
|
5696
|
+
if (Z && le && N) {
|
|
5697
|
+
const { x: w, y: $, scale: B } = Z.getStartPosition();
|
|
5698
|
+
return void le.spring({ tension: 215, friction: 25, restDelta: 1e-3, restSpeed: 1e-3, maxSpeed: 1 / 0 }).from(N).to({ x: w, y: $, scale: B }).start();
|
|
5699
5699
|
}
|
|
5700
5700
|
const U = Z?.getContent() || A.htmlEl;
|
|
5701
5701
|
U && Xs(U, p("showClass", A));
|
|
@@ -5712,10 +5712,10 @@ const Ks = "with-fancybox", nu = () => {
|
|
|
5712
5712
|
const A = ge();
|
|
5713
5713
|
return A ? A.triggerEl || p("triggerEl") : void 0;
|
|
5714
5714
|
}
|
|
5715
|
-
function
|
|
5715
|
+
function Ce(A) {
|
|
5716
5716
|
var Z, le;
|
|
5717
|
-
const
|
|
5718
|
-
if (!
|
|
5717
|
+
const N = A.thumbEl;
|
|
5718
|
+
if (!N || !((K) => {
|
|
5719
5719
|
const Q = K.getBoundingClientRect(), de = K.closest("[style]"), ve = de?.parentElement;
|
|
5720
5720
|
if (de && de.style.transform && ve) {
|
|
5721
5721
|
const $e = ve.getBoundingClientRect();
|
|
@@ -5723,27 +5723,27 @@ const Ks = "with-fancybox", nu = () => {
|
|
|
5723
5723
|
}
|
|
5724
5724
|
const Te = Math.max(document.documentElement.clientHeight, window.innerHeight), Me = Math.max(document.documentElement.clientWidth, window.innerWidth);
|
|
5725
5725
|
return !(Q.bottom < 0 || Q.top - Te >= 0 || Q.right < 0 || Q.left - Me >= 0);
|
|
5726
|
-
})(
|
|
5726
|
+
})(N)) return;
|
|
5727
5727
|
const U = (le = (Z = A.panzoomRef) === null || Z === void 0 ? void 0 : Z.getWrapper()) === null || le === void 0 ? void 0 : le.getBoundingClientRect(), w = U?.width, $ = U?.height;
|
|
5728
5728
|
if (!w || !$) return;
|
|
5729
|
-
const
|
|
5730
|
-
let D =
|
|
5731
|
-
if (!(!
|
|
5732
|
-
if (
|
|
5733
|
-
const K = window.getComputedStyle(
|
|
5729
|
+
const B = N.getBoundingClientRect();
|
|
5730
|
+
let D = B.width, C = B.height, O = B.left, G = B.top;
|
|
5731
|
+
if (!(!B || !D || !C)) {
|
|
5732
|
+
if (N instanceof HTMLImageElement) {
|
|
5733
|
+
const K = window.getComputedStyle(N).getPropertyValue("object-fit");
|
|
5734
5734
|
if (K === "contain" || K === "scale-down") {
|
|
5735
|
-
const { width: Q, height: de } = ((ve, Te, Me, $e,
|
|
5736
|
-
if (
|
|
5735
|
+
const { width: Q, height: de } = ((ve, Te, Me, $e, Ne = "contain") => {
|
|
5736
|
+
if (Ne === "contain" || ve > Me || Te > $e) {
|
|
5737
5737
|
const Re = Me / ve, je = $e / Te, ke = Math.min(Re, je);
|
|
5738
5738
|
ve *= ke, Te *= ke;
|
|
5739
5739
|
}
|
|
5740
5740
|
return { width: ve, height: Te };
|
|
5741
|
-
})(
|
|
5742
|
-
O += 0.5 * (D - Q), G += 0.5 * (
|
|
5741
|
+
})(N.naturalWidth, N.naturalHeight, D, C, K);
|
|
5742
|
+
O += 0.5 * (D - Q), G += 0.5 * (C - de), D = Q, C = de;
|
|
5743
5743
|
}
|
|
5744
5744
|
}
|
|
5745
|
-
if (!(Math.abs(w / $ - D /
|
|
5746
|
-
return { x: O + 0.5 * D - (U.left + 0.5 * w), y: G + 0.5 *
|
|
5745
|
+
if (!(Math.abs(w / $ - D / C) > 0.1))
|
|
5746
|
+
return { x: O + 0.5 * D - (U.left + 0.5 * w), y: G + 0.5 * C - (U.top + 0.5 * $), scale: D / w };
|
|
5747
5747
|
}
|
|
5748
5748
|
}
|
|
5749
5749
|
function De() {
|
|
@@ -5769,16 +5769,16 @@ const Ks = "with-fancybox", nu = () => {
|
|
|
5769
5769
|
!A || (Z = A.getBoundingClientRect()).bottom > 0 && Z.right > 0 && Z.left < (window.innerWidth || document.documentElement.clientWidth) && Z.top < (window.innerHeight || document.documentElement.clientHeight) || A.closest("[inert]") || A.scrollIntoView({ behavior: "instant", block: "center", inline: "center" });
|
|
5770
5770
|
}
|
|
5771
5771
|
function dt(A, Z) {
|
|
5772
|
-
var le,
|
|
5772
|
+
var le, N, U, w, $;
|
|
5773
5773
|
if (c === Ge.Closing || c === Ge.Destroyed) return;
|
|
5774
|
-
const
|
|
5775
|
-
if (y("shouldClose",
|
|
5774
|
+
const B = new Event("shouldClose", { bubbles: !0, cancelable: !0 });
|
|
5775
|
+
if (y("shouldClose", B, A), B.defaultPrevented) return;
|
|
5776
5776
|
if (De(), A) {
|
|
5777
5777
|
if (A.defaultPrevented) return;
|
|
5778
5778
|
Lt(A), A.stopPropagation(), A.stopImmediatePropagation();
|
|
5779
5779
|
}
|
|
5780
5780
|
if (c = Ge.Closing, a?.pause(), r?.destroy(), o) {
|
|
5781
|
-
(le = o.getGestures()) === null || le === void 0 || le.destroy(), (
|
|
5781
|
+
(le = o.getGestures()) === null || le === void 0 || le.destroy(), (N = o.getTween()) === null || N === void 0 || N.pause();
|
|
5782
5782
|
for (const O of o.getSlides()) {
|
|
5783
5783
|
const G = O.panzoomRef;
|
|
5784
5784
|
G && (pt(G.getOptions(), { clickAction: !1, dblClickAction: !1, wheelAction: !1, bounds: !1, minScale: 0, maxScale: 1 / 0 }), (U = G.getGestures()) === null || U === void 0 || U.destroy(), (w = G.getTween()) === null || w === void 0 || w.pause());
|
|
@@ -5786,55 +5786,55 @@ const Ks = "with-fancybox", nu = () => {
|
|
|
5786
5786
|
}
|
|
5787
5787
|
const D = o?.getPlugins();
|
|
5788
5788
|
($ = D?.Autoplay) === null || $ === void 0 || $.stop();
|
|
5789
|
-
const
|
|
5790
|
-
|
|
5789
|
+
const C = D?.Fullscreen;
|
|
5790
|
+
C && C.inFullscreen() ? Promise.resolve(C.exit()).then(() => {
|
|
5791
5791
|
setTimeout(() => {
|
|
5792
5792
|
Vt(A, Z);
|
|
5793
5793
|
}, 150);
|
|
5794
5794
|
}) : Vt(A, Z);
|
|
5795
5795
|
}
|
|
5796
5796
|
function Vt(A, Z) {
|
|
5797
|
-
var le,
|
|
5797
|
+
var le, N;
|
|
5798
5798
|
if (c !== Ge.Closing) return;
|
|
5799
5799
|
y("close", A), f = !1, document.body.removeEventListener("click", ne), document.body.removeEventListener("keydown", I, { passive: !1, capture: !0 }), p("placeFocusBack") && Pt();
|
|
5800
5800
|
const U = document.activeElement;
|
|
5801
5801
|
U && e?.contains(U) && U.blur(), p("fadeEffect") && (t?.classList.remove("is-ready"), t?.classList.add("is-hiding")), t?.classList.add("is-closing");
|
|
5802
|
-
const w = ge(), $ = w?.el,
|
|
5802
|
+
const w = ge(), $ = w?.el, B = w?.panzoomRef, D = (le = w?.panzoomRef) === null || le === void 0 ? void 0 : le.getTween(), C = Z || p("hideClass");
|
|
5803
5803
|
let O = !1, G = !1;
|
|
5804
|
-
if (o && w && $ &&
|
|
5804
|
+
if (o && w && $ && B && D) {
|
|
5805
5805
|
let Q;
|
|
5806
|
-
if (p("zoomEffect") && w.state === 1 && (Q =
|
|
5806
|
+
if (p("zoomEffect") && w.state === 1 && (Q = Ce(w)), Q) {
|
|
5807
5807
|
O = !0;
|
|
5808
5808
|
const de = () => {
|
|
5809
|
-
Q =
|
|
5809
|
+
Q = Ce(w), Q ? D.to(Object.assign(Object.assign({}, wt), Q)) : Ye();
|
|
5810
5810
|
};
|
|
5811
|
-
|
|
5811
|
+
B.on("refresh", () => {
|
|
5812
5812
|
de();
|
|
5813
|
-
}), D.easing(Gt.Easings.EaseOut).duration(350).from(Object.assign({},
|
|
5813
|
+
}), D.easing(Gt.Easings.EaseOut).duration(350).from(Object.assign({}, B.getTransform())).to(Object.assign(Object.assign({}, wt), Q)).start(), $?.getAnimations() && ($.style.animationPlayState = "paused", requestAnimationFrame(() => {
|
|
5814
5814
|
de();
|
|
5815
5815
|
}));
|
|
5816
5816
|
}
|
|
5817
5817
|
}
|
|
5818
|
-
const K = w?.htmlEl || ((
|
|
5819
|
-
K && fa(K), !O &&
|
|
5818
|
+
const K = w?.htmlEl || ((N = w?.panzoomRef) === null || N === void 0 ? void 0 : N.getWrapper());
|
|
5819
|
+
K && fa(K), !O && C && K && (G = !0, Xs(K, C, () => {
|
|
5820
5820
|
Ye();
|
|
5821
5821
|
})), O || G ? setTimeout(() => {
|
|
5822
5822
|
Ye();
|
|
5823
5823
|
}, 350) : Ye();
|
|
5824
5824
|
}
|
|
5825
5825
|
function Ye() {
|
|
5826
|
-
var A, Z, le,
|
|
5826
|
+
var A, Z, le, N, U;
|
|
5827
5827
|
if (c === Ge.Destroyed) return;
|
|
5828
5828
|
c = Ge.Destroyed;
|
|
5829
5829
|
const w = ie();
|
|
5830
|
-
y("destroy"), (Z = (A = p("sync")) === null || A === void 0 ? void 0 : A.getPlugins().Autoplay) === null || Z === void 0 || Z.resume(), (
|
|
5830
|
+
y("destroy"), (Z = (A = p("sync")) === null || A === void 0 ? void 0 : A.getPlugins().Autoplay) === null || Z === void 0 || Z.resume(), (N = (le = p("sync")) === null || le === void 0 ? void 0 : le.getPlugins().Autoscroll) === null || N === void 0 || N.resume(), e instanceof HTMLDialogElement && e.close(), (U = o?.getContainer()) === null || U === void 0 || U.classList.remove("is-idle"), o?.destroy();
|
|
5831
5831
|
for (const $ of Object.values(d)) $?.destroy();
|
|
5832
5832
|
if (d = {}, e?.remove(), e = void 0, t = void 0, o = void 0, Rt.delete(u), !Rt.size && (xs(!1), document.documentElement.classList.remove(Ks), p("placeFocusBack") && w && !w.closest("[inert]"))) try {
|
|
5833
5833
|
w?.focus({ preventScroll: !0 });
|
|
5834
5834
|
} catch {
|
|
5835
5835
|
}
|
|
5836
5836
|
}
|
|
5837
|
-
const
|
|
5837
|
+
const Be = { close: dt, destroy: Ye, getCarousel: function() {
|
|
5838
5838
|
return o;
|
|
5839
5839
|
}, getContainer: function() {
|
|
5840
5840
|
return t;
|
|
@@ -5849,51 +5849,51 @@ const Ks = "with-fancybox", nu = () => {
|
|
|
5849
5849
|
}, getState: function() {
|
|
5850
5850
|
return c;
|
|
5851
5851
|
}, init: function(A = [], Z = {}) {
|
|
5852
|
-
c !== Ge.Init && (
|
|
5852
|
+
c !== Ge.Init && (Be.destroy(), c = Ge.Init), l = pt({}, Rn, Z), u = p("id") || "fancybox-" + ++tu;
|
|
5853
5853
|
const le = Rt.get(u);
|
|
5854
|
-
if (le && le.destroy(), Rt.set(u,
|
|
5855
|
-
for (const [
|
|
5854
|
+
if (le && le.destroy(), Rt.set(u, Be), y("init"), (function() {
|
|
5855
|
+
for (const [N, U] of Object.entries(Object.assign(Object.assign({}, qe.Plugins), l.plugins || {}))) if (N && !d[N] && U instanceof Function) {
|
|
5856
5856
|
const w = U();
|
|
5857
|
-
w.init(
|
|
5857
|
+
w.init(Be), d[N] = w;
|
|
5858
5858
|
}
|
|
5859
5859
|
y("initPlugins");
|
|
5860
|
-
})(), (function(
|
|
5861
|
-
y("initSlides",
|
|
5860
|
+
})(), (function(N = []) {
|
|
5861
|
+
y("initSlides", N), g = [...N];
|
|
5862
5862
|
})(A), (function() {
|
|
5863
|
-
const
|
|
5864
|
-
if (!(
|
|
5863
|
+
const N = p("parentEl") || document.body;
|
|
5864
|
+
if (!(N && N instanceof HTMLElement)) return;
|
|
5865
5865
|
const U = b(p("mainTpl") || "");
|
|
5866
5866
|
if (e = Dt(U) || void 0, !e || (t = e.querySelector(".fancybox__container"), !(t && t instanceof HTMLElement))) return;
|
|
5867
5867
|
const w = p("mainClass");
|
|
5868
5868
|
w && pe(t, w);
|
|
5869
5869
|
const $ = p("mainStyle");
|
|
5870
|
-
if ($ && ot($)) for (const [
|
|
5871
|
-
const
|
|
5872
|
-
t.setAttribute("theme", D ? "light" : "dark"), e.setAttribute("id", `${u}`), e.addEventListener("keydown", (
|
|
5873
|
-
|
|
5874
|
-
}), e.addEventListener("wheel", (
|
|
5875
|
-
const O =
|
|
5876
|
-
let G = p("wheel",
|
|
5870
|
+
if ($ && ot($)) for (const [C, O] of Object.entries($)) t.style.setProperty(C, O);
|
|
5871
|
+
const B = p("theme"), D = B === "auto" ? window.matchMedia("(prefers-color-scheme:light)").matches : B === "light";
|
|
5872
|
+
t.setAttribute("theme", D ? "light" : "dark"), e.setAttribute("id", `${u}`), e.addEventListener("keydown", (C) => {
|
|
5873
|
+
C.key === "Escape" && Lt(C);
|
|
5874
|
+
}), e.addEventListener("wheel", (C) => {
|
|
5875
|
+
const O = C.target;
|
|
5876
|
+
let G = p("wheel", C);
|
|
5877
5877
|
O.closest(".f-thumbs") && (G = "slide");
|
|
5878
|
-
const K = G === "slide", Q = [-
|
|
5878
|
+
const K = G === "slide", Q = [-C.deltaX || 0, -C.deltaY || 0, -C.detail || 0].reduce(function(Te, Me) {
|
|
5879
5879
|
return Math.abs(Me) > Math.abs(Te) ? Me : Te;
|
|
5880
5880
|
}), de = Math.max(-1, Math.min(1, Q)), ve = Date.now();
|
|
5881
|
-
h && ve - h < 300 ? K && Lt(
|
|
5882
|
-
}, { capture: !0, passive: !1 }), e.addEventListener("cancel", (
|
|
5883
|
-
dt(
|
|
5884
|
-
}),
|
|
5881
|
+
h && ve - h < 300 ? K && Lt(C) : (h = ve, y("wheel", C, de), C.defaultPrevented || (G === "close" ? dt(C) : G === "slide" && o && !on(O) && (Lt(C), o[de > 0 ? "prev" : "next"]())));
|
|
5882
|
+
}, { capture: !0, passive: !1 }), e.addEventListener("cancel", (C) => {
|
|
5883
|
+
dt(C);
|
|
5884
|
+
}), N.append(e), Rt.size === 1 && (p("hideScrollbar") && xs(!0), document.documentElement.classList.add(Ks)), y("initLayout"), e instanceof HTMLDialogElement && (p("modal") ? e.showModal() : e.show());
|
|
5885
5885
|
})(), (function() {
|
|
5886
5886
|
if (n = e?.querySelector(".fancybox__carousel") || void 0, !n) return;
|
|
5887
|
-
n.fancybox =
|
|
5888
|
-
const
|
|
5887
|
+
n.fancybox = Be;
|
|
5888
|
+
const N = pt({}, { Autoplay: { autoStart: !1, pauseOnHover: !1, progressbarParentEl: (U) => {
|
|
5889
5889
|
const w = U.getContainer();
|
|
5890
5890
|
return w?.querySelector(".f-carousel__toolbar [data-autoplay-action]") || w;
|
|
5891
5891
|
} }, 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: aa, Arrows: Zc, Lazyload: ia, Zoomable: Uc, Html: Xc, Video: Kc, Autoplay: Gc, Fullscreen: Jc, Thumbs: Yc, Toolbar: ca } }, p("Carousel") || {}, { slides: g, enabled: !0, initialPage: p("startIndex") || 0, l10n: p("l10n") });
|
|
5892
|
-
o = ro(n,
|
|
5892
|
+
o = ro(n, N), y("initCarousel", o), o.on("*", (U, w, ...$) => {
|
|
5893
5893
|
y(`Carousel.${w}`, U, ...$);
|
|
5894
5894
|
}), o.on("attachSlideEl", S), o.on("detachSlideEl", x), o.on("contentLoading", J), o.on("contentReady", _e), o.on("ready", ee), o.on("change", M), o.on("settle", ue), o.on("thumbs:ready", ae), o.on("thumbs:destroy", ae), o.init();
|
|
5895
5895
|
})(), e && t) {
|
|
5896
|
-
if (p("closeExisting")) for (const [
|
|
5896
|
+
if (p("closeExisting")) for (const [N, U] of Rt.entries()) N !== u && U.close();
|
|
5897
5897
|
p("fadeEffect") ? (setTimeout(() => {
|
|
5898
5898
|
v();
|
|
5899
5899
|
}, 500), pe(t, "is-revealing")) : v(), t.classList.add("is-ready"), c = Ge.Ready, y("ready");
|
|
@@ -5904,13 +5904,13 @@ const Ks = "with-fancybox", nu = () => {
|
|
|
5904
5904
|
}, isTopMost: function() {
|
|
5905
5905
|
return be();
|
|
5906
5906
|
}, localize: b, off: function(A, Z) {
|
|
5907
|
-
return m.has(A) && m.set(A, m.get(A).filter((le) => le !== Z)),
|
|
5907
|
+
return m.has(A) && m.set(A, m.get(A).filter((le) => le !== Z)), Be;
|
|
5908
5908
|
}, on: function(A, Z) {
|
|
5909
|
-
return m.set(A, [...m.get(A) || [], Z]),
|
|
5909
|
+
return m.set(A, [...m.get(A) || [], Z]), Be;
|
|
5910
5910
|
}, toggleIdle(A) {
|
|
5911
5911
|
(i || A === !0) && _t(), i && A !== !1 || xt();
|
|
5912
5912
|
} };
|
|
5913
|
-
return
|
|
5913
|
+
return Be;
|
|
5914
5914
|
};
|
|
5915
5915
|
function Js() {
|
|
5916
5916
|
for (const e of Object.values(qe.Plugins)) {
|
|
@@ -6056,7 +6056,7 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
|
|
|
6056
6056
|
}
|
|
6057
6057
|
},
|
|
6058
6058
|
setup(e) {
|
|
6059
|
-
const t = e, n =
|
|
6059
|
+
const t = e, n = Ee(null);
|
|
6060
6060
|
function o() {
|
|
6061
6061
|
n.value && qe.bind(n.value, t.selector, { ...t.options });
|
|
6062
6062
|
}
|
|
@@ -6067,7 +6067,7 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
|
|
|
6067
6067
|
r(), o();
|
|
6068
6068
|
}), In(() => {
|
|
6069
6069
|
r(), qe.close();
|
|
6070
|
-
}), (a, s) => (
|
|
6070
|
+
}), (a, s) => (E(), P("div", {
|
|
6071
6071
|
ref_key: "containerRef",
|
|
6072
6072
|
ref: n
|
|
6073
6073
|
}, [
|
|
@@ -6119,7 +6119,7 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
|
|
|
6119
6119
|
}
|
|
6120
6120
|
},
|
|
6121
6121
|
setup(e) {
|
|
6122
|
-
const t = e, n = Wo(), o =
|
|
6122
|
+
const t = e, n = Wo(), o = Ee(null), r = Ee(null), a = Ee(null), s = Ee(!1);
|
|
6123
6123
|
let c = null, l = null;
|
|
6124
6124
|
const u = te(() => t.interactive ? typeof t.delay == "number" ? 150 : Math.max(t.delay.hide ?? 0, 150) : typeof t.delay == "number" ? 0 : t.delay.hide ?? 0), d = te(() => {
|
|
6125
6125
|
const v = [Wr(t.offset), Zr(), Ur({ padding: 8 })];
|
|
@@ -6128,7 +6128,7 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
|
|
|
6128
6128
|
floatingStyles: g,
|
|
6129
6129
|
middlewareData: i,
|
|
6130
6130
|
placement: f
|
|
6131
|
-
} =
|
|
6131
|
+
} = Bl(o, r, {
|
|
6132
6132
|
placement: te(() => t.placement),
|
|
6133
6133
|
middleware: d,
|
|
6134
6134
|
whileElementsMounted: Hl
|
|
@@ -6163,7 +6163,7 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
|
|
|
6163
6163
|
}
|
|
6164
6164
|
return In(() => {
|
|
6165
6165
|
clearTimeout(c), clearTimeout(l);
|
|
6166
|
-
}), (v, S) => (
|
|
6166
|
+
}), (v, S) => (E(), P(ze, null, [
|
|
6167
6167
|
T("div", {
|
|
6168
6168
|
ref_key: "referenceRef",
|
|
6169
6169
|
ref: o,
|
|
@@ -6175,10 +6175,10 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
|
|
|
6175
6175
|
}, [
|
|
6176
6176
|
Qe(v.$slots, "default")
|
|
6177
6177
|
], 544),
|
|
6178
|
-
(
|
|
6178
|
+
(E(), Oe(pr, { to: "body" }, [
|
|
6179
6179
|
se(fr, { name: "spark-tooltip" }, {
|
|
6180
6180
|
default: Se(() => [
|
|
6181
|
-
s.value ? (
|
|
6181
|
+
s.value ? (E(), P("div", {
|
|
6182
6182
|
key: 0,
|
|
6183
6183
|
ref_key: "floatingRef",
|
|
6184
6184
|
ref: r,
|
|
@@ -6189,12 +6189,12 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
|
|
|
6189
6189
|
onMouseleave: y
|
|
6190
6190
|
}, [
|
|
6191
6191
|
Qe(v.$slots, "content", {}, () => [
|
|
6192
|
-
e.html ? (
|
|
6192
|
+
e.html ? (E(), P("span", {
|
|
6193
6193
|
key: 0,
|
|
6194
6194
|
innerHTML: e.content
|
|
6195
|
-
}, null, 8, su)) : (
|
|
6195
|
+
}, null, 8, su)) : (E(), P("span", ru, we(e.content), 1))
|
|
6196
6196
|
]),
|
|
6197
|
-
e.showArrow ? (
|
|
6197
|
+
e.showArrow ? (E(), P("div", {
|
|
6198
6198
|
key: 0,
|
|
6199
6199
|
ref_key: "arrowRef",
|
|
6200
6200
|
ref: a,
|
|
@@ -6300,7 +6300,7 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
|
|
|
6300
6300
|
"file-cleared"
|
|
6301
6301
|
],
|
|
6302
6302
|
setup(e, { expose: t, emit: n }) {
|
|
6303
|
-
const o = e, r = n, a = io("axios"), s =
|
|
6303
|
+
const o = e, r = n, a = io("axios"), s = Ee(null), c = Ee(!1), l = Ee(!1), u = Ee(null);
|
|
6304
6304
|
function d() {
|
|
6305
6305
|
o.disabled || c.value || (l.value = !0);
|
|
6306
6306
|
}
|
|
@@ -6378,9 +6378,9 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
|
|
|
6378
6378
|
uploading: c
|
|
6379
6379
|
}), (y, v) => {
|
|
6380
6380
|
const S = Ze("FormKit"), x = Ze("font-awesome-icon");
|
|
6381
|
-
return
|
|
6382
|
-
e.label ? (
|
|
6383
|
-
e.variant === "dashed" ? (
|
|
6381
|
+
return E(), P("div", null, [
|
|
6382
|
+
e.label ? (E(), P("label", au, we(e.label), 1)) : ye("", !0),
|
|
6383
|
+
e.variant === "dashed" ? (E(), P("div", {
|
|
6384
6384
|
key: 1,
|
|
6385
6385
|
class: Le(["border-2 border-dashed border-gray-300 rounded-lg p-8 text-center transition-colors", {
|
|
6386
6386
|
"border-blue-500 bg-blue-50": l.value,
|
|
@@ -6401,7 +6401,7 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
|
|
|
6401
6401
|
"outer-class": "hidden",
|
|
6402
6402
|
onInput: h
|
|
6403
6403
|
}, null, 8, ["name", "accept", "disabled"]),
|
|
6404
|
-
s.value ? (
|
|
6404
|
+
s.value ? (E(), P("div", cu, [
|
|
6405
6405
|
se(x, {
|
|
6406
6406
|
icon: oe(Fe).farFile,
|
|
6407
6407
|
class: "text-2xl text-gray-500"
|
|
@@ -6419,7 +6419,7 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
|
|
|
6419
6419
|
]),
|
|
6420
6420
|
_: 1
|
|
6421
6421
|
})
|
|
6422
|
-
])) : (
|
|
6422
|
+
])) : (E(), P("div", iu, [
|
|
6423
6423
|
se(x, {
|
|
6424
6424
|
icon: e.icon,
|
|
6425
6425
|
class: "text-4xl text-gray-400 mb-3"
|
|
@@ -6435,7 +6435,7 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
|
|
|
6435
6435
|
_: 1
|
|
6436
6436
|
})
|
|
6437
6437
|
]))
|
|
6438
|
-
], 34)) : (
|
|
6438
|
+
], 34)) : (E(), P("div", {
|
|
6439
6439
|
key: 2,
|
|
6440
6440
|
class: Le(["relative rounded-md transition-colors", {
|
|
6441
6441
|
"ring-2 ring-blue-500 ring-offset-2 bg-blue-50": l.value
|
|
@@ -6452,18 +6452,18 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
|
|
|
6452
6452
|
disabled: e.disabled || c.value,
|
|
6453
6453
|
onInput: h
|
|
6454
6454
|
}, null, 8, ["name", "accept", "disabled"]),
|
|
6455
|
-
l.value ? (
|
|
6455
|
+
l.value ? (E(), P("div", du, [...v[0] || (v[0] = [
|
|
6456
6456
|
T("span", { class: "text-sm text-blue-600 font-medium" }, "Drop file here", -1)
|
|
6457
6457
|
])])) : ye("", !0)
|
|
6458
6458
|
], 34)),
|
|
6459
|
-
e.showUploadButton ? (
|
|
6459
|
+
e.showUploadButton ? (E(), P("div", fu, [
|
|
6460
6460
|
se(gt, {
|
|
6461
6461
|
size: "lg",
|
|
6462
6462
|
disabled: !s.value || c.value,
|
|
6463
6463
|
onClick: m
|
|
6464
6464
|
}, {
|
|
6465
6465
|
default: Se(() => [
|
|
6466
|
-
c.value ? (
|
|
6466
|
+
c.value ? (E(), Oe(x, {
|
|
6467
6467
|
key: 0,
|
|
6468
6468
|
icon: oe(Fe).farSpinner,
|
|
6469
6469
|
class: "mr-2 animate-spin"
|
|
@@ -6473,7 +6473,7 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
|
|
|
6473
6473
|
_: 1
|
|
6474
6474
|
}, 8, ["disabled"])
|
|
6475
6475
|
])) : ye("", !0),
|
|
6476
|
-
c.value && !e.showUploadButton ? (
|
|
6476
|
+
c.value && !e.showUploadButton ? (E(), P("p", pu, we(e.uploadingText), 1)) : ye("", !0)
|
|
6477
6477
|
]);
|
|
6478
6478
|
};
|
|
6479
6479
|
}
|
|
@@ -6536,7 +6536,7 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
|
|
|
6536
6536
|
},
|
|
6537
6537
|
emits: ["update:modelValue", "upload-start", "upload-success", "upload-error"],
|
|
6538
6538
|
setup(e, { emit: t }) {
|
|
6539
|
-
const n = e, o = t, r = io("axios"), a =
|
|
6539
|
+
const n = e, o = t, r = io("axios"), a = Ee(!1), s = Ee(!1);
|
|
6540
6540
|
function c() {
|
|
6541
6541
|
o("update:modelValue", "");
|
|
6542
6542
|
}
|
|
@@ -6603,9 +6603,9 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
|
|
|
6603
6603
|
}
|
|
6604
6604
|
return (h, p) => {
|
|
6605
6605
|
const b = Ze("font-awesome-icon"), m = Ze("FormKit");
|
|
6606
|
-
return
|
|
6607
|
-
e.label ? (
|
|
6608
|
-
e.modelValue ? (
|
|
6606
|
+
return E(), P("div", null, [
|
|
6607
|
+
e.label ? (E(), P("label", mu, we(e.label), 1)) : ye("", !0),
|
|
6608
|
+
e.modelValue ? (E(), Oe(ou, {
|
|
6609
6609
|
key: 1,
|
|
6610
6610
|
class: "mb-2 relative inline-block"
|
|
6611
6611
|
}, {
|
|
@@ -6639,7 +6639,7 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
|
|
|
6639
6639
|
]),
|
|
6640
6640
|
_: 1
|
|
6641
6641
|
})) : ye("", !0),
|
|
6642
|
-
e.modelValue ? ye("", !0) : (
|
|
6642
|
+
e.modelValue ? ye("", !0) : (E(), P("div", {
|
|
6643
6643
|
key: 2,
|
|
6644
6644
|
class: Le(["relative rounded-md transition-colors", {
|
|
6645
6645
|
"ring-2 ring-blue-500 ring-offset-2 bg-blue-50": s.value
|
|
@@ -6656,11 +6656,11 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
|
|
|
6656
6656
|
disabled: e.disabled || a.value,
|
|
6657
6657
|
onInput: i
|
|
6658
6658
|
}, null, 8, ["name", "accept", "disabled"]),
|
|
6659
|
-
s.value ? (
|
|
6659
|
+
s.value ? (E(), P("div", yu, [...p[0] || (p[0] = [
|
|
6660
6660
|
T("span", { class: "text-sm text-blue-600 font-medium" }, "Drop image here", -1)
|
|
6661
6661
|
])])) : ye("", !0)
|
|
6662
6662
|
], 34)),
|
|
6663
|
-
a.value ? (
|
|
6663
|
+
a.value ? (E(), P("p", bu, "Uploading...")) : ye("", !0)
|
|
6664
6664
|
]);
|
|
6665
6665
|
};
|
|
6666
6666
|
}
|
|
@@ -6744,8 +6744,8 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
|
|
|
6744
6744
|
})[t.type]);
|
|
6745
6745
|
return (l, u) => {
|
|
6746
6746
|
const d = Ze("font-awesome-icon");
|
|
6747
|
-
return
|
|
6748
|
-
a.value ? (
|
|
6747
|
+
return E(), P("div", xu, [
|
|
6748
|
+
a.value ? (E(), P("div", {
|
|
6749
6749
|
key: 0,
|
|
6750
6750
|
class: Le(["mx-auto flex size-12 items-center justify-center rounded-full", s.value])
|
|
6751
6751
|
}, [
|
|
@@ -6757,8 +6757,8 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
|
|
|
6757
6757
|
T("div", {
|
|
6758
6758
|
class: Le(["text-center", { "mt-3 sm:mt-5": a.value }])
|
|
6759
6759
|
}, [
|
|
6760
|
-
e.title ? (
|
|
6761
|
-
e.message ? (
|
|
6760
|
+
e.title ? (E(), P("h3", wu, we(e.title), 1)) : ye("", !0),
|
|
6761
|
+
e.message ? (E(), P("div", {
|
|
6762
6762
|
key: 1,
|
|
6763
6763
|
class: Le([{ "mt-2": e.title }, "text-sm text-gray-500"])
|
|
6764
6764
|
}, we(e.message), 3)) : ye("", !0)
|
|
@@ -6766,7 +6766,7 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
|
|
|
6766
6766
|
T("div", {
|
|
6767
6767
|
class: Le(["mt-5 sm:mt-6", o.value])
|
|
6768
6768
|
}, [
|
|
6769
|
-
(
|
|
6769
|
+
(E(!0), P(ze, null, rt(n.value, (g, i) => (E(), Oe(oe(gt), {
|
|
6770
6770
|
key: i,
|
|
6771
6771
|
variant: g.variant,
|
|
6772
6772
|
onClick: (f) => l.$emit(g.event, g)
|
|
@@ -6783,18 +6783,34 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
|
|
|
6783
6783
|
};
|
|
6784
6784
|
class ku {
|
|
6785
6785
|
constructor() {
|
|
6786
|
-
this.state =
|
|
6786
|
+
this.state = Ct({
|
|
6787
6787
|
isVisible: !1,
|
|
6788
6788
|
content: null,
|
|
6789
6789
|
props: {},
|
|
6790
6790
|
eventHandlers: {}
|
|
6791
|
-
});
|
|
6791
|
+
}), this._resolveShow = null;
|
|
6792
6792
|
}
|
|
6793
|
-
|
|
6794
|
-
|
|
6795
|
-
|
|
6796
|
-
|
|
6793
|
+
/**
|
|
6794
|
+
* Show a modal with a custom component.
|
|
6795
|
+
*
|
|
6796
|
+
* @param {Object} component - Vue component to render inside the modal
|
|
6797
|
+
* @param {Object} [props] - Props passed to the component
|
|
6798
|
+
* @param {Object} [eventHandlers] - Event handlers bound to the component
|
|
6799
|
+
* @returns {Promise<any>} - Resolves when the modal closes: with the value
|
|
6800
|
+
* passed to hide(result), or null on a plain hide() / backdrop / ESC dismiss
|
|
6801
|
+
*/
|
|
6802
|
+
show = (t, n = {}, o = {}) => (this._resolveShow?.(null), this.state.content = wn(t), this.state.props = n, this.state.eventHandlers = o, this.state.isVisible = !0, new Promise((r) => {
|
|
6803
|
+
this._resolveShow = r;
|
|
6804
|
+
}));
|
|
6805
|
+
/**
|
|
6806
|
+
* Close the current modal, resolving the pending show() promise.
|
|
6807
|
+
*
|
|
6808
|
+
* @param {any} [result=null] - Value the show() promise resolves with
|
|
6809
|
+
*/
|
|
6810
|
+
hide = (t = null) => {
|
|
6797
6811
|
this.state.isVisible = !1, this.state.eventHandlers = {};
|
|
6812
|
+
const n = this._resolveShow;
|
|
6813
|
+
this._resolveShow = null, n?.(t);
|
|
6798
6814
|
};
|
|
6799
6815
|
/**
|
|
6800
6816
|
* Show a confirmation dialog and return a Promise
|
|
@@ -6806,50 +6822,47 @@ class ku {
|
|
|
6806
6822
|
* @param {string} [options.confirmText='Confirm'] - Confirm button text
|
|
6807
6823
|
* @param {string} [options.cancelText='Cancel'] - Cancel button text
|
|
6808
6824
|
* @param {string} [options.confirmVariant='primary'] - Confirm button variant
|
|
6809
|
-
* @returns {Promise<boolean>} - Resolves to true if confirmed, false if
|
|
6825
|
+
* @returns {Promise<boolean>} - Resolves to true if confirmed, false if
|
|
6826
|
+
* cancelled or dismissed (backdrop / ESC)
|
|
6810
6827
|
*/
|
|
6811
|
-
confirm = (t = {}) =>
|
|
6828
|
+
confirm = async (t = {}) => {
|
|
6812
6829
|
const {
|
|
6813
|
-
title:
|
|
6814
|
-
message:
|
|
6815
|
-
type:
|
|
6816
|
-
confirmText:
|
|
6817
|
-
cancelText:
|
|
6818
|
-
confirmVariant:
|
|
6830
|
+
title: n = "Confirm",
|
|
6831
|
+
message: o = "Are you sure?",
|
|
6832
|
+
type: r = "warning",
|
|
6833
|
+
confirmText: a = "Confirm",
|
|
6834
|
+
cancelText: s = "Cancel",
|
|
6835
|
+
confirmVariant: c = "primary"
|
|
6819
6836
|
} = t;
|
|
6820
|
-
this.show(
|
|
6837
|
+
return !!await this.show(
|
|
6821
6838
|
Su,
|
|
6822
6839
|
{
|
|
6823
|
-
title:
|
|
6824
|
-
message:
|
|
6825
|
-
type:
|
|
6840
|
+
title: n,
|
|
6841
|
+
message: o,
|
|
6842
|
+
type: r,
|
|
6826
6843
|
buttons: [
|
|
6827
|
-
{ text:
|
|
6828
|
-
{ text:
|
|
6844
|
+
{ text: a, variant: c, event: "confirm" },
|
|
6845
|
+
{ text: s, variant: "secondary", event: "cancel" }
|
|
6829
6846
|
]
|
|
6830
6847
|
},
|
|
6831
6848
|
{
|
|
6832
|
-
confirm: () =>
|
|
6833
|
-
|
|
6834
|
-
},
|
|
6835
|
-
cancel: () => {
|
|
6836
|
-
this.hide(), n(!1);
|
|
6837
|
-
}
|
|
6849
|
+
confirm: () => this.hide(!0),
|
|
6850
|
+
cancel: () => this.hide(!1)
|
|
6838
6851
|
}
|
|
6839
6852
|
);
|
|
6840
|
-
}
|
|
6853
|
+
};
|
|
6841
6854
|
}
|
|
6842
|
-
const It = new ku(),
|
|
6855
|
+
const It = new ku(), Eu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto" }, Cu = { class: "flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0" }, Tu = {
|
|
6843
6856
|
__name: "SparkModalContainer",
|
|
6844
6857
|
setup(e) {
|
|
6845
|
-
return (t, n) => (
|
|
6858
|
+
return (t, n) => (E(), Oe(oe(Or), {
|
|
6846
6859
|
as: "template",
|
|
6847
6860
|
show: oe(It).state.isVisible
|
|
6848
6861
|
}, {
|
|
6849
6862
|
default: Se(() => [
|
|
6850
6863
|
se(oe(Pr), {
|
|
6851
6864
|
class: "relative z-1000",
|
|
6852
|
-
onClose: oe(It).hide
|
|
6865
|
+
onClose: n[0] || (n[0] = () => oe(It).hide())
|
|
6853
6866
|
}, {
|
|
6854
6867
|
default: Se(() => [
|
|
6855
6868
|
se(oe(Jn), {
|
|
@@ -6861,13 +6874,13 @@ const It = new ku(), Cu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
6861
6874
|
"leave-from": "opacity-100",
|
|
6862
6875
|
"leave-to": "opacity-0"
|
|
6863
6876
|
}, {
|
|
6864
|
-
default: Se(() => [...n[
|
|
6877
|
+
default: Se(() => [...n[1] || (n[1] = [
|
|
6865
6878
|
T("div", { class: "fixed inset-0 bg-gray-500/75 transition-opacity" }, null, -1)
|
|
6866
6879
|
])]),
|
|
6867
6880
|
_: 1
|
|
6868
6881
|
}),
|
|
6869
|
-
T("div",
|
|
6870
|
-
T("div",
|
|
6882
|
+
T("div", Eu, [
|
|
6883
|
+
T("div", Cu, [
|
|
6871
6884
|
se(oe(Jn), {
|
|
6872
6885
|
as: "template",
|
|
6873
6886
|
enter: "ease-out duration-300",
|
|
@@ -6880,7 +6893,7 @@ const It = new ku(), Cu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
6880
6893
|
default: Se(() => [
|
|
6881
6894
|
se(oe(Ar), { class: "relative transform overflow-hidden rounded-lg bg-white text-left shadow-xl transition-all sm:my-8 sm:w-full sm:min-w-lg sm:max-w-max" }, {
|
|
6882
6895
|
default: Se(() => [
|
|
6883
|
-
(
|
|
6896
|
+
(E(), Oe(yt(oe(It).state.content), St(oe(It).state.props, gr(oe(It).state.eventHandlers)), null, 16))
|
|
6884
6897
|
]),
|
|
6885
6898
|
_: 1
|
|
6886
6899
|
})
|
|
@@ -6891,7 +6904,7 @@ const It = new ku(), Cu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
6891
6904
|
])
|
|
6892
6905
|
]),
|
|
6893
6906
|
_: 1
|
|
6894
|
-
}
|
|
6907
|
+
})
|
|
6895
6908
|
]),
|
|
6896
6909
|
_: 1
|
|
6897
6910
|
}, 8, ["show"]));
|
|
@@ -6911,7 +6924,7 @@ const It = new ku(), Cu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
6911
6924
|
},
|
|
6912
6925
|
emits: ["close"],
|
|
6913
6926
|
setup(e, { emit: t }) {
|
|
6914
|
-
const n =
|
|
6927
|
+
const n = Ee(null), o = {
|
|
6915
6928
|
xs: "w-[250px]",
|
|
6916
6929
|
sm: "w-[300px]",
|
|
6917
6930
|
md: "w-[450px]",
|
|
@@ -6920,7 +6933,7 @@ const It = new ku(), Cu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
6920
6933
|
}, r = e, a = t, s = te(() => o[r.overlayInstance.state.size] || o.md), c = () => {
|
|
6921
6934
|
r.overlayInstance.close(), a("close");
|
|
6922
6935
|
};
|
|
6923
|
-
return (l, u) => (
|
|
6936
|
+
return (l, u) => (E(), Oe(oe(Or), {
|
|
6924
6937
|
show: e.overlayInstance.state.isVisible,
|
|
6925
6938
|
as: "template"
|
|
6926
6939
|
}, {
|
|
@@ -6966,7 +6979,7 @@ const It = new ku(), Cu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
6966
6979
|
])
|
|
6967
6980
|
}, {
|
|
6968
6981
|
default: Se(() => [
|
|
6969
|
-
(
|
|
6982
|
+
(E(), Oe(yt(e.overlayInstance.state.content), St(e.overlayInstance.state.props, gr(e.overlayInstance.state.eventHandlers)), null, 16))
|
|
6970
6983
|
]),
|
|
6971
6984
|
_: 1
|
|
6972
6985
|
}, 8, ["class"])
|
|
@@ -7073,7 +7086,7 @@ const It = new ku(), Cu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
7073
7086
|
m[b] || m.primary
|
|
7074
7087
|
];
|
|
7075
7088
|
}
|
|
7076
|
-
return (p, b) => (
|
|
7089
|
+
return (p, b) => (E(), P("nav", {
|
|
7077
7090
|
class: Le(u.value)
|
|
7078
7091
|
}, [
|
|
7079
7092
|
n.layout === "custom" ? Qe(p.$slots, "default", {
|
|
@@ -7083,12 +7096,12 @@ const It = new ku(), Cu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
7083
7096
|
isActive: s,
|
|
7084
7097
|
isDisabled: c,
|
|
7085
7098
|
navigate: l
|
|
7086
|
-
}) : n.layout === "horizontal" ? (
|
|
7099
|
+
}) : n.layout === "horizontal" ? (E(), Oe(oa, {
|
|
7087
7100
|
key: 1,
|
|
7088
7101
|
class: "isolate"
|
|
7089
7102
|
}, {
|
|
7090
7103
|
default: Se(() => [
|
|
7091
|
-
(
|
|
7104
|
+
(E(!0), P(ze, null, rt(r.value, (m) => (E(), Oe(gt, {
|
|
7092
7105
|
key: m.id,
|
|
7093
7106
|
size: "xl",
|
|
7094
7107
|
variant: s(m) ? "gray" : "secondary",
|
|
@@ -7096,13 +7109,13 @@ const It = new ku(), Cu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
7096
7109
|
onClick: (y) => l(m)
|
|
7097
7110
|
}, {
|
|
7098
7111
|
default: Se(() => [
|
|
7099
|
-
m.icon ? (
|
|
7112
|
+
m.icon ? (E(), Oe(oe(Gn), {
|
|
7100
7113
|
key: 0,
|
|
7101
7114
|
icon: oe(Fe)[m.icon],
|
|
7102
7115
|
class: "mr-1.5 size-4"
|
|
7103
7116
|
}, null, 8, ["icon"])) : ye("", !0),
|
|
7104
7117
|
Ue(" " + we(m.label) + " ", 1),
|
|
7105
|
-
m.badge != null ? (
|
|
7118
|
+
m.badge != null ? (E(), P("span", {
|
|
7106
7119
|
key: 1,
|
|
7107
7120
|
class: Le(h(m))
|
|
7108
7121
|
}, we(m.badge), 3)) : ye("", !0)
|
|
@@ -7111,24 +7124,24 @@ const It = new ku(), Cu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
7111
7124
|
}, 1032, ["variant", "disabled", "onClick"]))), 128))
|
|
7112
7125
|
]),
|
|
7113
7126
|
_: 1
|
|
7114
|
-
})) : (
|
|
7127
|
+
})) : (E(!0), P(ze, { key: 2 }, rt(r.value, (m) => (E(), P("button", {
|
|
7115
7128
|
key: m.id,
|
|
7116
7129
|
class: Le(g(m)),
|
|
7117
7130
|
disabled: c(m) || void 0,
|
|
7118
7131
|
onClick: (y) => l(m)
|
|
7119
7132
|
}, [
|
|
7120
|
-
s(m) && n.layout === "vertical" ? (
|
|
7133
|
+
s(m) && n.layout === "vertical" ? (E(), Oe(oe(Gn), {
|
|
7121
7134
|
key: 0,
|
|
7122
7135
|
icon: oe(Fe).farCircleCheck,
|
|
7123
7136
|
class: "mr-2 size-4"
|
|
7124
7137
|
}, null, 8, ["icon"])) : ye("", !0),
|
|
7125
|
-
m.icon && !(s(m) && n.layout === "vertical") ? (
|
|
7138
|
+
m.icon && !(s(m) && n.layout === "vertical") ? (E(), Oe(oe(Gn), {
|
|
7126
7139
|
key: 1,
|
|
7127
7140
|
icon: oe(Fe)[m.icon],
|
|
7128
7141
|
class: Le(["text-gray-400 mr-2", d.value])
|
|
7129
7142
|
}, null, 8, ["icon", "class"])) : ye("", !0),
|
|
7130
7143
|
T("span", null, we(m.label), 1),
|
|
7131
|
-
m.badge != null ? (
|
|
7144
|
+
m.badge != null ? (E(), P("span", {
|
|
7132
7145
|
key: 2,
|
|
7133
7146
|
class: Le(h(m))
|
|
7134
7147
|
}, we(m.badge), 3)) : ye("", !0)
|
|
@@ -7323,7 +7336,7 @@ const It = new ku(), Cu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
7323
7336
|
sm: "h-6 w-6",
|
|
7324
7337
|
md: "h-8 w-8",
|
|
7325
7338
|
lg: "h-12 w-12"
|
|
7326
|
-
},
|
|
7339
|
+
}, Bu = (e) => (t, n, o, r, a, s, c) => {
|
|
7327
7340
|
if (n.innerHTML = "", n.classList.add("spark-table-cell-image"), !s)
|
|
7328
7341
|
return;
|
|
7329
7342
|
const l = c.rendererConfig || {}, u = t.getSourceDataAtRow(t.toPhysicalRow(o)), d = l.size || "md", g = or[d] || or.md, i = l.rounded !== !1, f = l.lightbox || !1, h = l.group || "table-images";
|
|
@@ -7335,7 +7348,7 @@ const It = new ku(), Cu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
7335
7348
|
m.href = s, m.setAttribute("data-fancybox", h), p && m.setAttribute("data-caption", p), b.classList.add("cursor-pointer", "hover:opacity-80", "transition-opacity"), m.appendChild(b), n.appendChild(m);
|
|
7336
7349
|
} else
|
|
7337
7350
|
n.appendChild(b);
|
|
7338
|
-
},
|
|
7351
|
+
}, Nu = (e) => (t, n, o, r, a, s, c) => {
|
|
7339
7352
|
if (n.innerHTML = "", n.classList.add("spark-table-cell-date"), !s)
|
|
7340
7353
|
return;
|
|
7341
7354
|
const l = c.rendererConfig || {}, u = l.format || "short", d = l.locale || "en-US";
|
|
@@ -7498,11 +7511,11 @@ const Wu = (e) => {
|
|
|
7498
7511
|
console.error("Error formatting datetime:", h, { value: s, format: u }), n.textContent = s;
|
|
7499
7512
|
}
|
|
7500
7513
|
}, Qu = /* @__PURE__ */ new Map(), At = (e, t) => {
|
|
7501
|
-
|
|
7514
|
+
Ci(e, (n, o, r, a, s, c, l) => {
|
|
7502
7515
|
Ti.apply(null, [n, o, r, a, s, c, l]), t(n, o, r, a, s, c, l);
|
|
7503
7516
|
}), Qu.set(e, t);
|
|
7504
7517
|
}, ed = (e) => {
|
|
7505
|
-
At("spark.actions", Iu(e)), At("spark.badge", Fu()), At("spark.boolean", ju()), At("spark.currency", Vu()), At("spark.link", zu()), At("spark.image",
|
|
7518
|
+
At("spark.actions", Iu(e)), At("spark.badge", Fu()), At("spark.boolean", ju()), At("spark.currency", Vu()), At("spark.link", zu()), At("spark.image", Bu()), At("spark.date", Nu()), At("spark.datetime", Ju()), At("style.capitalize", (t, n, o, r, a, s) => {
|
|
7506
7519
|
if (!s || s.length === 0) {
|
|
7507
7520
|
n.innerText = "";
|
|
7508
7521
|
return;
|
|
@@ -7629,7 +7642,7 @@ const Wu = (e) => {
|
|
|
7629
7642
|
},
|
|
7630
7643
|
setup(e) {
|
|
7631
7644
|
const t = e;
|
|
7632
|
-
return (n, o) => (
|
|
7645
|
+
return (n, o) => (E(), P("div", null, [
|
|
7633
7646
|
T("div", od, [
|
|
7634
7647
|
T("div", sd, [
|
|
7635
7648
|
T("div", rd, [
|
|
@@ -7671,13 +7684,13 @@ const Wu = (e) => {
|
|
|
7671
7684
|
Math.floor((s.value - 1) / 10) * 10 + 1,
|
|
7672
7685
|
s.value > n.sparkTable.response.meta.last_page ? n.sparkTable.response.meta.last_page + 1 : s.value + 1
|
|
7673
7686
|
) : []), l = te(
|
|
7674
|
-
() => n.sparkTable.params.page <
|
|
7687
|
+
() => n.sparkTable.params.page < Bt(n.sparkTable.response.meta, "last_page", 1)
|
|
7675
7688
|
), u = te(() => n.sparkTable.params.page > 1);
|
|
7676
7689
|
return (d, g) => {
|
|
7677
7690
|
const i = Ze("font-awesome-icon");
|
|
7678
|
-
return
|
|
7691
|
+
return E(), P("div", null, [
|
|
7679
7692
|
T("div", ud, [
|
|
7680
|
-
c.value.length > 1 ? (
|
|
7693
|
+
c.value.length > 1 ? (E(), P("div", dd, [
|
|
7681
7694
|
T("div", null, [
|
|
7682
7695
|
T("nav", fd, [
|
|
7683
7696
|
T("a", {
|
|
@@ -7690,7 +7703,7 @@ const Wu = (e) => {
|
|
|
7690
7703
|
class: "size-5"
|
|
7691
7704
|
}, null, 8, ["icon"])
|
|
7692
7705
|
], 2),
|
|
7693
|
-
(
|
|
7706
|
+
(E(!0), P(ze, null, rt(c.value, (f) => (E(), P("a", {
|
|
7694
7707
|
key: `page-${f}`,
|
|
7695
7708
|
href: "#",
|
|
7696
7709
|
class: Le([
|
|
@@ -7742,7 +7755,7 @@ const Wu = (e) => {
|
|
|
7742
7755
|
};
|
|
7743
7756
|
return (s, c) => {
|
|
7744
7757
|
const l = Ze("FormKit");
|
|
7745
|
-
return
|
|
7758
|
+
return E(), P("div", gd, [
|
|
7746
7759
|
se(l, {
|
|
7747
7760
|
"model-value": e.sparkTable.params.limit,
|
|
7748
7761
|
type: "select",
|
|
@@ -7769,7 +7782,7 @@ const Wu = (e) => {
|
|
|
7769
7782
|
const a = "spark-table-toolbar flex flex-wrap items-center gap-x-5 w-full";
|
|
7770
7783
|
return t.position === "footer" ? `${a} spark-table-toolbar-footer justify-between` : `${a} spark-table-toolbar-header gap-y-5 py-5`;
|
|
7771
7784
|
});
|
|
7772
|
-
return (a, s) => o.value ? (
|
|
7785
|
+
return (a, s) => o.value ? (E(), P("div", {
|
|
7773
7786
|
key: 0,
|
|
7774
7787
|
class: Le(r.value)
|
|
7775
7788
|
}, [
|
|
@@ -7795,7 +7808,7 @@ const Wu = (e) => {
|
|
|
7795
7808
|
}
|
|
7796
7809
|
},
|
|
7797
7810
|
setup(e) {
|
|
7798
|
-
const t = e, n =
|
|
7811
|
+
const t = e, n = Ee(""), o = t.config.param || "search";
|
|
7799
7812
|
t.sparkTable.params[o] ? n.value = t.sparkTable.params[o] : t.config.initialValue && (n.value = t.config.initialValue, t.sparkTable.methods.applyParams({
|
|
7800
7813
|
[o]: t.config.initialValue
|
|
7801
7814
|
}));
|
|
@@ -7816,7 +7829,7 @@ const Wu = (e) => {
|
|
|
7816
7829
|
}
|
|
7817
7830
|
), (s, c) => {
|
|
7818
7831
|
const l = Ze("FormKit");
|
|
7819
|
-
return
|
|
7832
|
+
return E(), P("div", yd, [
|
|
7820
7833
|
se(l, St({
|
|
7821
7834
|
modelValue: n.value,
|
|
7822
7835
|
"onUpdate:modelValue": c[0] || (c[0] = (u) => n.value = u),
|
|
@@ -7846,7 +7859,7 @@ const Wu = (e) => {
|
|
|
7846
7859
|
}
|
|
7847
7860
|
},
|
|
7848
7861
|
setup(e) {
|
|
7849
|
-
const t = e, n =
|
|
7862
|
+
const t = e, n = Ee(""), o = t.config.param || `filter[${t.config.key}]`;
|
|
7850
7863
|
t.sparkTable.params[o] ? n.value = t.sparkTable.params[o] : t.config.initialValue !== void 0 && t.config.initialValue !== null && (n.value = t.config.initialValue, t.sparkTable.methods.applyParams({
|
|
7851
7864
|
[o]: t.config.initialValue
|
|
7852
7865
|
}));
|
|
@@ -7863,7 +7876,7 @@ const Wu = (e) => {
|
|
|
7863
7876
|
}
|
|
7864
7877
|
), (s, c) => {
|
|
7865
7878
|
const l = Ze("FormKit");
|
|
7866
|
-
return
|
|
7879
|
+
return E(), P("div", wd, [
|
|
7867
7880
|
se(l, St({
|
|
7868
7881
|
modelValue: n.value,
|
|
7869
7882
|
"onUpdate:modelValue": c[0] || (c[0] = (u) => n.value = u),
|
|
@@ -7877,7 +7890,7 @@ const Wu = (e) => {
|
|
|
7877
7890
|
]);
|
|
7878
7891
|
};
|
|
7879
7892
|
}
|
|
7880
|
-
}, kd = /* @__PURE__ */ ln(Sd, [["__scopeId", "data-v-79c78a5b"]]),
|
|
7893
|
+
}, kd = /* @__PURE__ */ ln(Sd, [["__scopeId", "data-v-79c78a5b"]]), Ed = { class: "spark-table-filter-buttons" }, Cd = {
|
|
7881
7894
|
key: 0,
|
|
7882
7895
|
class: "spark-table-filter-buttons-label"
|
|
7883
7896
|
}, Td = {
|
|
@@ -7896,7 +7909,7 @@ const Wu = (e) => {
|
|
|
7896
7909
|
}
|
|
7897
7910
|
},
|
|
7898
7911
|
setup(e) {
|
|
7899
|
-
const t = e, n =
|
|
7912
|
+
const t = e, n = Ee(null), o = t.config.label || null, r = t.config.param || `filter[${t.config.key}]`;
|
|
7900
7913
|
t.sparkTable.params[r] !== void 0 ? n.value = t.sparkTable.params[r] : t.config.initialValue !== void 0 && (n.value = t.config.initialValue, t.config.initialValue !== null && t.sparkTable.methods.applyParams({
|
|
7901
7914
|
[r]: t.config.initialValue
|
|
7902
7915
|
}));
|
|
@@ -7911,11 +7924,11 @@ const Wu = (e) => {
|
|
|
7911
7924
|
(c) => {
|
|
7912
7925
|
(c == null || c === "") && n.value ? n.value = null : c !== n.value && (n.value = c);
|
|
7913
7926
|
}
|
|
7914
|
-
), (c, l) => (
|
|
7915
|
-
oe(o) ? (
|
|
7927
|
+
), (c, l) => (E(), P("div", Ed, [
|
|
7928
|
+
oe(o) ? (E(), P("span", Cd, we(oe(o)), 1)) : ye("", !0),
|
|
7916
7929
|
se(oa, { class: "isolate" }, {
|
|
7917
7930
|
default: Se(() => [
|
|
7918
|
-
(
|
|
7931
|
+
(E(!0), P(ze, null, rt(e.config.options, (u) => (E(), Oe(gt, {
|
|
7919
7932
|
key: u.value,
|
|
7920
7933
|
size: "xl",
|
|
7921
7934
|
"button-class": "px-3.5",
|
|
@@ -7948,7 +7961,7 @@ const Wu = (e) => {
|
|
|
7948
7961
|
}
|
|
7949
7962
|
},
|
|
7950
7963
|
setup(e) {
|
|
7951
|
-
const t = e, n =
|
|
7964
|
+
const t = e, n = Ee(null), o = t.config.label || null, r = t.config.param || `filter[${t.config.key}]`, a = Ee(`${r}-0`);
|
|
7952
7965
|
return t.sparkTable.params[r] ? n.value = t.sparkTable.params[r] : t.config.initialValue ? (n.value = t.config.initialValue, t.sparkTable.methods.applyParams({
|
|
7953
7966
|
[r]: t.config.initialValue
|
|
7954
7967
|
})) : n.value = null, nt(n, (s) => {
|
|
@@ -7967,8 +7980,8 @@ const Wu = (e) => {
|
|
|
7967
7980
|
}
|
|
7968
7981
|
), (s, c) => {
|
|
7969
7982
|
const l = Ze("FormKit");
|
|
7970
|
-
return
|
|
7971
|
-
(
|
|
7983
|
+
return E(), P("div", $d, [
|
|
7984
|
+
(E(), Oe(l, St({
|
|
7972
7985
|
key: a.value,
|
|
7973
7986
|
modelValue: n.value,
|
|
7974
7987
|
"onUpdate:modelValue": c[0] || (c[0] = (u) => n.value = u),
|
|
@@ -8023,7 +8036,7 @@ const Wu = (e) => {
|
|
|
8023
8036
|
};
|
|
8024
8037
|
return (o, r) => {
|
|
8025
8038
|
const a = Ze("font-awesome-icon");
|
|
8026
|
-
return
|
|
8039
|
+
return E(), P("div", Od, [
|
|
8027
8040
|
se(gt, {
|
|
8028
8041
|
variant: "secondary",
|
|
8029
8042
|
"button-class": "px-3.5",
|
|
@@ -8031,12 +8044,12 @@ const Wu = (e) => {
|
|
|
8031
8044
|
onClick: n
|
|
8032
8045
|
}, {
|
|
8033
8046
|
default: Se(() => [
|
|
8034
|
-
e.config.icon ? (
|
|
8047
|
+
e.config.icon ? (E(), Oe(a, {
|
|
8035
8048
|
key: 0,
|
|
8036
8049
|
icon: ["far", e.config.icon],
|
|
8037
8050
|
class: Le({ "mr-1.5": e.config.label })
|
|
8038
8051
|
}, null, 8, ["icon", "class"])) : ye("", !0),
|
|
8039
|
-
e.config.label ? (
|
|
8052
|
+
e.config.label ? (E(), P("span", Pd, we(e.config.label), 1)) : ye("", !0)
|
|
8040
8053
|
]),
|
|
8041
8054
|
_: 1
|
|
8042
8055
|
})
|
|
@@ -8083,7 +8096,7 @@ const Wu = (e) => {
|
|
|
8083
8096
|
dataTransformer: {
|
|
8084
8097
|
type: Function,
|
|
8085
8098
|
default: (e, t) => ({
|
|
8086
|
-
data:
|
|
8099
|
+
data: Bt(t.settings, "nestedHeaders") ? e.data.data.map((o) => (t.settings.columnKeys || []).map((a) => o[a])) : e.data.data,
|
|
8087
8100
|
meta: {
|
|
8088
8101
|
last_page: e.data.last_page,
|
|
8089
8102
|
from: e.data.from,
|
|
@@ -8146,8 +8159,8 @@ const Wu = (e) => {
|
|
|
8146
8159
|
const y = {};
|
|
8147
8160
|
return m.cellPx !== void 0 && (y["--spark-table-cell-px"] = `${m.cellPx}px`), m.cellPy !== void 0 && (y["--spark-table-cell-py"] = `${m.cellPy}px`), m.headerPx !== void 0 && (y["--spark-table-header-px"] = `${m.headerPx}px`), m.headerPy !== void 0 && (y["--spark-table-header-py"] = `${m.headerPy}px`), y;
|
|
8148
8161
|
});
|
|
8149
|
-
|
|
8150
|
-
const a = n, s = io("axios"), c =
|
|
8162
|
+
Ei(), Vn(xi), Vn(wi), Vn(Si), Bt(o, "settings.nestedHeaders") && Vn(ki);
|
|
8163
|
+
const a = n, s = io("axios"), c = Ee(null), l = Ee(!1), u = Ee(null);
|
|
8151
8164
|
let d = !1;
|
|
8152
8165
|
const g = {
|
|
8153
8166
|
search: xd,
|
|
@@ -8155,7 +8168,7 @@ const Wu = (e) => {
|
|
|
8155
8168
|
filterButtons: _d,
|
|
8156
8169
|
datePicker: Md,
|
|
8157
8170
|
reset: Rd
|
|
8158
|
-
}, i =
|
|
8171
|
+
}, i = Ct({
|
|
8159
8172
|
hotInstance: null,
|
|
8160
8173
|
url: te(() => o.url),
|
|
8161
8174
|
plugins: o.plugins,
|
|
@@ -8193,7 +8206,7 @@ const Wu = (e) => {
|
|
|
8193
8206
|
if (d) return;
|
|
8194
8207
|
i.hotInstance.updateData(i.response.data), i.options.callback && typeof i.options.callback == "function" && await i.options.callback();
|
|
8195
8208
|
const y = i.hotInstance.getPlugin("autoColumnSize");
|
|
8196
|
-
|
|
8209
|
+
Bt(o.settings, "columns", []).forEach((S, x) => {
|
|
8197
8210
|
S.width || y.calculateColumnsWidth(x, x, !0);
|
|
8198
8211
|
}), a("load", {
|
|
8199
8212
|
data: i.response.data,
|
|
@@ -8211,7 +8224,7 @@ const Wu = (e) => {
|
|
|
8211
8224
|
fireEvent: (m, y) => {
|
|
8212
8225
|
a(m, y);
|
|
8213
8226
|
},
|
|
8214
|
-
getSettingsForProp: (m) => yi(
|
|
8227
|
+
getSettingsForProp: (m) => yi(Bt(i.tableSettings, "columns"), { data: m }),
|
|
8215
8228
|
// Helper methods for easier param access
|
|
8216
8229
|
getParams: () => i.computed.params,
|
|
8217
8230
|
getParam: (m) => i.computed.params[m],
|
|
@@ -8237,7 +8250,7 @@ const Wu = (e) => {
|
|
|
8237
8250
|
...o.options
|
|
8238
8251
|
})),
|
|
8239
8252
|
tableSettings: te(() => {
|
|
8240
|
-
const m =
|
|
8253
|
+
const m = Bt(o.settings, "columns", []), y = m.map((x) => {
|
|
8241
8254
|
if (!x.wordWrap && !x.align) return x;
|
|
8242
8255
|
const _ = [x.className];
|
|
8243
8256
|
return x.wordWrap && _.push("spark-table-word-wrap"), x.align === "center" && _.push("spark-table-align-center"), x.align === "right" && _.push("spark-table-align-right"), { ...x, className: _.filter(Boolean).join(" ") };
|
|
@@ -8246,8 +8259,8 @@ const Wu = (e) => {
|
|
|
8246
8259
|
), S = o.settings.afterRenderer;
|
|
8247
8260
|
return {
|
|
8248
8261
|
...ar,
|
|
8249
|
-
nestedHeaders:
|
|
8250
|
-
...!
|
|
8262
|
+
nestedHeaders: Bt(o.settings, "nestedHeaders", []),
|
|
8263
|
+
...!Bt(o.settings, "nestedHeaders") && {
|
|
8251
8264
|
afterGetColHeader: (x, _) => Au(x, _, i)
|
|
8252
8265
|
},
|
|
8253
8266
|
afterChange: (x, _) => td(),
|
|
@@ -8353,16 +8366,16 @@ const Wu = (e) => {
|
|
|
8353
8366
|
table: c
|
|
8354
8367
|
}), (m, y) => {
|
|
8355
8368
|
const v = Ze("font-awesome-icon");
|
|
8356
|
-
return
|
|
8369
|
+
return E(), P("div", {
|
|
8357
8370
|
class: "spark-table",
|
|
8358
8371
|
style: Mo(r.value)
|
|
8359
8372
|
}, [
|
|
8360
|
-
i.computed.ready && b.value && b.value.length ? (
|
|
8373
|
+
i.computed.ready && b.value && b.value.length ? (E(), Oe(rr, {
|
|
8361
8374
|
key: 0,
|
|
8362
8375
|
position: "header"
|
|
8363
8376
|
}, {
|
|
8364
8377
|
default: Se(() => [
|
|
8365
|
-
(
|
|
8378
|
+
(E(!0), P(ze, null, rt(b.value, (S) => (E(), Oe(yt(g[S.config.type]), {
|
|
8366
8379
|
key: S.name,
|
|
8367
8380
|
class: Le(S.config.align ? `self-${S.config.align}` : ""),
|
|
8368
8381
|
"spark-table": i,
|
|
@@ -8375,7 +8388,7 @@ const Wu = (e) => {
|
|
|
8375
8388
|
})
|
|
8376
8389
|
]),
|
|
8377
8390
|
_: 3
|
|
8378
|
-
})) : (
|
|
8391
|
+
})) : (E(), P("div", Id)),
|
|
8379
8392
|
en(se(oe(bi), {
|
|
8380
8393
|
ref_key: "table",
|
|
8381
8394
|
ref: c,
|
|
@@ -8384,24 +8397,24 @@ const Wu = (e) => {
|
|
|
8384
8397
|
}, null, 8, ["settings"]), [
|
|
8385
8398
|
[dr, !f.value]
|
|
8386
8399
|
]),
|
|
8387
|
-
f.value ? (
|
|
8400
|
+
f.value ? (E(), P("div", Fd, [
|
|
8388
8401
|
se(v, {
|
|
8389
8402
|
icon: oe(Fe).farInbox,
|
|
8390
8403
|
class: "size-12 mb-4 text-gray-300"
|
|
8391
8404
|
}, null, 8, ["icon"]),
|
|
8392
8405
|
y[0] || (y[0] = T("p", { class: "text-sm" }, "No records found", -1))
|
|
8393
8406
|
])) : ye("", !0),
|
|
8394
|
-
i.computed.ready ? (
|
|
8407
|
+
i.computed.ready ? (E(), Oe(rr, {
|
|
8395
8408
|
key: 3,
|
|
8396
8409
|
position: "footer"
|
|
8397
8410
|
}, {
|
|
8398
8411
|
default: Se(() => [
|
|
8399
|
-
f.value ? ye("", !0) : (
|
|
8412
|
+
f.value ? ye("", !0) : (E(), Oe(cd, {
|
|
8400
8413
|
key: 0,
|
|
8401
8414
|
"spark-table": i
|
|
8402
8415
|
}, null, 8, ["spark-table"])),
|
|
8403
8416
|
T("div", Dd, [
|
|
8404
|
-
f.value ? ye("", !0) : (
|
|
8417
|
+
f.value ? ye("", !0) : (E(), Oe(md, {
|
|
8405
8418
|
key: 0,
|
|
8406
8419
|
"spark-table": i,
|
|
8407
8420
|
onPaginate: i.methods.applyParams
|
|
@@ -8424,7 +8437,7 @@ const Wu = (e) => {
|
|
|
8424
8437
|
}
|
|
8425
8438
|
};
|
|
8426
8439
|
function ir() {
|
|
8427
|
-
const e =
|
|
8440
|
+
const e = Ct({
|
|
8428
8441
|
isVisible: !1,
|
|
8429
8442
|
content: null,
|
|
8430
8443
|
props: {},
|
|
@@ -8485,7 +8498,7 @@ class Vd {
|
|
|
8485
8498
|
const Qt = new Vd(), zd = (e) => {
|
|
8486
8499
|
const t = document.cookie.match(new RegExp(`(^| )${e}=([^;]+)`));
|
|
8487
8500
|
return t ? t[2] : null;
|
|
8488
|
-
},
|
|
8501
|
+
}, Bd = (e, t, n = {}) => {
|
|
8489
8502
|
const {
|
|
8490
8503
|
maxAge: o = 31536e3,
|
|
8491
8504
|
// 365 days in seconds
|
|
@@ -8496,7 +8509,7 @@ const Qt = new Vd(), zd = (e) => {
|
|
|
8496
8509
|
} = n;
|
|
8497
8510
|
let l = `${e}=${t}; max-age=${o}; path=${c}; samesite=${s}`;
|
|
8498
8511
|
r && (l += `; domain=${r}`), a && (l += "; secure"), document.cookie = l;
|
|
8499
|
-
},
|
|
8512
|
+
}, Nd = (e, t = {}) => {
|
|
8500
8513
|
const { domain: n = pa(), path: o = "/" } = t;
|
|
8501
8514
|
let r = `${e}=; max-age=0; path=${o}`;
|
|
8502
8515
|
n && (r += `; domain=${n}`), document.cookie = r;
|
|
@@ -8526,7 +8539,7 @@ function sm(e) {
|
|
|
8526
8539
|
};
|
|
8527
8540
|
}
|
|
8528
8541
|
const Lo = "bolt-next-token", Ft = Fn("auth", () => {
|
|
8529
|
-
const e =
|
|
8542
|
+
const e = Ct({
|
|
8530
8543
|
user: null,
|
|
8531
8544
|
token: null,
|
|
8532
8545
|
ready: !1,
|
|
@@ -8561,9 +8574,9 @@ const Lo = "bolt-next-token", Ft = Fn("auth", () => {
|
|
|
8561
8574
|
}), t = (u = {}) => {
|
|
8562
8575
|
u.endpoints && Object.assign(e.endpoints, u.endpoints), u.routes && Object.assign(e.routes, u.routes), u.devCredentials && Object.assign(e.devCredentials, u.devCredentials), u.callbacks && Object.assign(e.callbacks, u.callbacks), u.overrideToken && (e.overrideToken = u.overrideToken);
|
|
8563
8576
|
}, n = (u) => {
|
|
8564
|
-
|
|
8577
|
+
Bd(Lo, u), e.token = u;
|
|
8565
8578
|
}, o = () => {
|
|
8566
|
-
|
|
8579
|
+
Nd(Lo), e.token = null;
|
|
8567
8580
|
}, r = () => zd(Lo), a = async (u) => {
|
|
8568
8581
|
const d = await vn.post(e.endpoints.login, u), g = d.headers.authorization;
|
|
8569
8582
|
return n(g), e.user = d.data, e.callbacks.onLoginSuccess && await e.callbacks.onLoginSuccess(d.data), d.data;
|
|
@@ -8682,7 +8695,7 @@ function am(e = {}) {
|
|
|
8682
8695
|
showNotification: l = !0,
|
|
8683
8696
|
setFieldErrors: u = !0,
|
|
8684
8697
|
setFormErrors: d = !0
|
|
8685
|
-
} = e, g = Tt(), i =
|
|
8698
|
+
} = e, g = Tt(), i = Ee(!1);
|
|
8686
8699
|
async function f(b) {
|
|
8687
8700
|
const { submitFn: m, method: y = "create", node: v = null, isEditMode: S = !1 } = b;
|
|
8688
8701
|
i.value = !0, v && v.clearErrors();
|
|
@@ -8741,7 +8754,7 @@ function am(e = {}) {
|
|
|
8741
8754
|
};
|
|
8742
8755
|
}
|
|
8743
8756
|
function im(e, t = {}) {
|
|
8744
|
-
const { queryParams: n = "", fetchFn: o = null, fetchOnCreate: r = !1 } = t, a = jt(), s =
|
|
8757
|
+
const { queryParams: n = "", fetchFn: o = null, fetchOnCreate: r = !1 } = t, a = jt(), s = Ee(null), c = Ee(null), l = te(() => a.params.id ?? null), u = te(() => l.value !== null);
|
|
8745
8758
|
async function d() {
|
|
8746
8759
|
if (!(!r && !u.value)) {
|
|
8747
8760
|
c.value = null;
|
|
@@ -8795,7 +8808,7 @@ function lm(e, t = {}) {
|
|
|
8795
8808
|
return { handleDelete: c };
|
|
8796
8809
|
}
|
|
8797
8810
|
function cm(e = {}) {
|
|
8798
|
-
const { items: t = [], defaultId: n = null, syncToQuery: o = !1 } = e, r = o === !0 ? "tab" : o || null, a = Tt(), s = jt(), c =
|
|
8811
|
+
const { items: t = [], defaultId: n = null, syncToQuery: o = !1 } = e, r = o === !0 ? "tab" : o || null, a = Tt(), s = jt(), c = Ee(t.map(l));
|
|
8799
8812
|
function l(y) {
|
|
8800
8813
|
return {
|
|
8801
8814
|
id: y.id,
|
|
@@ -8916,7 +8929,7 @@ function um(e = {}) {
|
|
|
8916
8929
|
confirmText: o = "Leave",
|
|
8917
8930
|
cancelText: r = "Stay",
|
|
8918
8931
|
useRouteGuard: a = !0
|
|
8919
|
-
} = e, s = `form-${++Yd}`, c =
|
|
8932
|
+
} = e, s = `form-${++Yd}`, c = Ee(!1);
|
|
8920
8933
|
xn.set(s, {
|
|
8921
8934
|
isDirty: !1,
|
|
8922
8935
|
message: t
|
|
@@ -9029,7 +9042,7 @@ const dm = [
|
|
|
9029
9042
|
}, p = te(() => n.mainNavStore.state.hidden ? ["w-0 overflow-hidden"] : [n.mainNavStore.state.collapsed ? "w-[80px]" : "w-[240px]"]), b = te(() => n.mainNavStore.state.hidden ? ["pl-2.5"] : [n.mainNavStore.state.collapsed ? "pl-[80px]" : "pl-[240px]"]);
|
|
9030
9043
|
return (m, y) => {
|
|
9031
9044
|
const v = Ze("font-awesome-icon"), S = Ze("router-view");
|
|
9032
|
-
return
|
|
9045
|
+
return E(), P(ze, null, [
|
|
9033
9046
|
T("div", {
|
|
9034
9047
|
class: Le([p.value, "fixed inset-y-0 flex transition-all z-100"])
|
|
9035
9048
|
}, [
|
|
@@ -9045,14 +9058,14 @@ const dm = [
|
|
|
9045
9058
|
class: "size-5"
|
|
9046
9059
|
}, null, 8, ["icon"])
|
|
9047
9060
|
]),
|
|
9048
|
-
e.mainNavStore.state.collapsed ? ye("", !0) : (
|
|
9061
|
+
e.mainNavStore.state.collapsed ? ye("", !0) : (E(), P("a", {
|
|
9049
9062
|
key: 0,
|
|
9050
9063
|
class: "font-medium text-gray-800 ml-[10px] cursor-pointer",
|
|
9051
9064
|
onClick: y[1] || (y[1] = Je((x) => e.mainNavStore.goto(e.appStore.state.homeRoute), ["prevent"]))
|
|
9052
9065
|
}, we(e.appStore.state.app), 1))
|
|
9053
9066
|
]),
|
|
9054
9067
|
T("ul", nf, [
|
|
9055
|
-
(
|
|
9068
|
+
(E(!0), P(ze, null, rt(c.value, (x) => (E(), P("li", {
|
|
9056
9069
|
key: x.name,
|
|
9057
9070
|
class: Le({ "mt-[10px]": x.children })
|
|
9058
9071
|
}, [
|
|
@@ -9064,14 +9077,14 @@ const dm = [
|
|
|
9064
9077
|
href: x?.href,
|
|
9065
9078
|
onClick: Je((_) => e.mainNavStore.goto(x.href), ["prevent"])
|
|
9066
9079
|
}, [
|
|
9067
|
-
x.icon ? (
|
|
9080
|
+
x.icon ? (E(), Oe(v, {
|
|
9068
9081
|
key: 0,
|
|
9069
9082
|
icon: oe(Fe)[x.icon],
|
|
9070
9083
|
class: Le([[(s(x), "text-gray-400")], "size-4"])
|
|
9071
9084
|
}, null, 8, ["icon", "class"])) : ye("", !0),
|
|
9072
|
-
e.mainNavStore.state.collapsed ? x?.children ? (
|
|
9085
|
+
e.mainNavStore.state.collapsed ? x?.children ? (E(), P("div", sf, [...y[6] || (y[6] = [
|
|
9073
9086
|
T("div", { class: "w-[10px] h-px bg-gray-400" }, null, -1)
|
|
9074
|
-
])])) : ye("", !0) : (
|
|
9087
|
+
])])) : ye("", !0) : (E(), P("span", {
|
|
9075
9088
|
key: 1,
|
|
9076
9089
|
class: Le({
|
|
9077
9090
|
"text-[11px]": x?.children,
|
|
@@ -9081,8 +9094,8 @@ const dm = [
|
|
|
9081
9094
|
})
|
|
9082
9095
|
}, we(x.name), 3))
|
|
9083
9096
|
], 10, of),
|
|
9084
|
-
x.children ? (
|
|
9085
|
-
(
|
|
9097
|
+
x.children ? (E(), P("ul", rf, [
|
|
9098
|
+
(E(!0), P(ze, null, rt(x.children, (_) => (E(), P("li", {
|
|
9086
9099
|
key: _.name
|
|
9087
9100
|
}, [
|
|
9088
9101
|
T("a", {
|
|
@@ -9090,20 +9103,20 @@ const dm = [
|
|
|
9090
9103
|
href: _.href,
|
|
9091
9104
|
onClick: Je((M) => e.mainNavStore.goto(_.href), ["prevent"])
|
|
9092
9105
|
}, [
|
|
9093
|
-
_.icon ? (
|
|
9106
|
+
_.icon ? (E(), Oe(v, {
|
|
9094
9107
|
key: 0,
|
|
9095
9108
|
icon: oe(Fe)[_.icon],
|
|
9096
9109
|
class: Le([[(s(_), "text-gray-400")], "size-4"])
|
|
9097
9110
|
}, null, 8, ["icon", "class"])) : ye("", !0),
|
|
9098
|
-
e.mainNavStore.state.collapsed ? ye("", !0) : (
|
|
9111
|
+
e.mainNavStore.state.collapsed ? ye("", !0) : (E(), P("span", lf, we(_.name), 1))
|
|
9099
9112
|
], 10, af)
|
|
9100
9113
|
]))), 128))
|
|
9101
9114
|
])) : ye("", !0)
|
|
9102
9115
|
], 2))), 128))
|
|
9103
9116
|
]),
|
|
9104
9117
|
T("div", cf, [
|
|
9105
|
-
l.value.length ? (
|
|
9106
|
-
(
|
|
9118
|
+
l.value.length ? (E(), P("ul", uf, [
|
|
9119
|
+
(E(!0), P(ze, null, rt(l.value, (x) => (E(), P("li", {
|
|
9107
9120
|
key: x.name
|
|
9108
9121
|
}, [
|
|
9109
9122
|
T("a", {
|
|
@@ -9111,12 +9124,12 @@ const dm = [
|
|
|
9111
9124
|
href: x.href,
|
|
9112
9125
|
onClick: Je((_) => e.mainNavStore.goto(x.href), ["prevent"])
|
|
9113
9126
|
}, [
|
|
9114
|
-
x.icon ? (
|
|
9127
|
+
x.icon ? (E(), Oe(v, {
|
|
9115
9128
|
key: 0,
|
|
9116
9129
|
icon: oe(Fe)[x.icon],
|
|
9117
9130
|
class: Le([[(s(x), "text-gray-400")], "size-4"])
|
|
9118
9131
|
}, null, 8, ["icon", "class"])) : ye("", !0),
|
|
9119
|
-
e.mainNavStore.state.collapsed ? ye("", !0) : (
|
|
9132
|
+
e.mainNavStore.state.collapsed ? ye("", !0) : (E(), P("span", ff, we(x.name), 1))
|
|
9120
9133
|
], 10, df)
|
|
9121
9134
|
]))), 128))
|
|
9122
9135
|
])) : ye("", !0),
|
|
@@ -9151,12 +9164,12 @@ const dm = [
|
|
|
9151
9164
|
])
|
|
9152
9165
|
]),
|
|
9153
9166
|
Qe(m.$slots, "header-center", {}, () => [
|
|
9154
|
-
i.value ? (
|
|
9167
|
+
i.value ? (E(), P("div", {
|
|
9155
9168
|
key: 0,
|
|
9156
9169
|
class: "absolute left-1/2 -translate-x-1/2 cursor-pointer h-9 flex items-center",
|
|
9157
9170
|
onClick: h
|
|
9158
9171
|
}, [
|
|
9159
|
-
oe(u).currentBrand ? (
|
|
9172
|
+
oe(u).currentBrand ? (E(), P("img", {
|
|
9160
9173
|
key: 0,
|
|
9161
9174
|
src: oe(u).currentBrand.logo,
|
|
9162
9175
|
alt: "",
|
|
@@ -9166,7 +9179,7 @@ const dm = [
|
|
|
9166
9179
|
]),
|
|
9167
9180
|
T("div", yf, [
|
|
9168
9181
|
Qe(m.$slots, "header-right", {}, () => [
|
|
9169
|
-
e.appStore.state.showAppSelector ? (
|
|
9182
|
+
e.appStore.state.showAppSelector ? (E(), P("button", {
|
|
9170
9183
|
key: 0,
|
|
9171
9184
|
class: "rounded-sm bg-white w-[42px] h-[42px] ring-1 ring-inset ring-gray-300",
|
|
9172
9185
|
type: "button",
|
|
@@ -9203,11 +9216,11 @@ const dm = [
|
|
|
9203
9216
|
}, xf = {}, wf = { class: "h-full" };
|
|
9204
9217
|
function Sf(e, t) {
|
|
9205
9218
|
const n = Ze("router-view");
|
|
9206
|
-
return
|
|
9219
|
+
return E(), P("main", wf, [
|
|
9207
9220
|
se(n)
|
|
9208
9221
|
]);
|
|
9209
9222
|
}
|
|
9210
|
-
const pm = /* @__PURE__ */ ln(xf, [["render", Sf]]), kf = { class: "h-full grid place-content-center relative" },
|
|
9223
|
+
const pm = /* @__PURE__ */ ln(xf, [["render", Sf]]), kf = { class: "h-full grid place-content-center relative" }, Ef = { class: "absolute top-8 left-8" }, Cf = ["src"], Tf = {
|
|
9211
9224
|
key: 1,
|
|
9212
9225
|
width: "59",
|
|
9213
9226
|
height: "23",
|
|
@@ -9234,7 +9247,7 @@ const pm = /* @__PURE__ */ ln(xf, [["render", Sf]]), kf = { class: "h-full grid
|
|
|
9234
9247
|
}
|
|
9235
9248
|
},
|
|
9236
9249
|
setup(e) {
|
|
9237
|
-
const t = Tt(), n = jt(), o = ea(), r = Ft(), a = e, s =
|
|
9250
|
+
const t = Tt(), n = jt(), o = ea(), r = Ft(), a = e, s = Ee(!1), c = Ee(""), l = async (u) => {
|
|
9238
9251
|
s.value = !0, c.value = "";
|
|
9239
9252
|
try {
|
|
9240
9253
|
await r.login(u);
|
|
@@ -9255,14 +9268,14 @@ const pm = /* @__PURE__ */ ln(xf, [["render", Sf]]), kf = { class: "h-full grid
|
|
|
9255
9268
|
};
|
|
9256
9269
|
return (u, d) => {
|
|
9257
9270
|
const g = Ze("FormKit"), i = Ze("router-link");
|
|
9258
|
-
return
|
|
9259
|
-
T("div",
|
|
9260
|
-
a.logo ? (
|
|
9271
|
+
return E(), P("div", kf, [
|
|
9272
|
+
T("div", Ef, [
|
|
9273
|
+
a.logo ? (E(), P("img", {
|
|
9261
9274
|
key: 0,
|
|
9262
9275
|
src: a.logo,
|
|
9263
9276
|
alt: "Logo",
|
|
9264
9277
|
class: "h-[23px] w-auto"
|
|
9265
|
-
}, null, 8,
|
|
9278
|
+
}, null, 8, Cf)) : (E(), P("svg", Tf, [...d[0] || (d[0] = [
|
|
9266
9279
|
T("path", {
|
|
9267
9280
|
d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
|
|
9268
9281
|
fill: "#1C64F2"
|
|
@@ -9322,7 +9335,7 @@ const pm = /* @__PURE__ */ ln(xf, [["render", Sf]]), kf = { class: "h-full grid
|
|
|
9322
9335
|
_: 1
|
|
9323
9336
|
}, 8, ["to"])
|
|
9324
9337
|
]),
|
|
9325
|
-
c.value ? (
|
|
9338
|
+
c.value ? (E(), P("div", Of, we(c.value), 1)) : ye("", !0),
|
|
9326
9339
|
se(oe(gt), {
|
|
9327
9340
|
type: "submit",
|
|
9328
9341
|
size: "xl",
|
|
@@ -9330,7 +9343,7 @@ const pm = /* @__PURE__ */ ln(xf, [["render", Sf]]), kf = { class: "h-full grid
|
|
|
9330
9343
|
"button-class": "w-full mb-2"
|
|
9331
9344
|
}, {
|
|
9332
9345
|
default: Se(() => [
|
|
9333
|
-
s.value ? (
|
|
9346
|
+
s.value ? (E(), P("span", Af, "Signing in...")) : (E(), P("span", Pf, "Sign in"))
|
|
9334
9347
|
]),
|
|
9335
9348
|
_: 1
|
|
9336
9349
|
}, 8, ["disabled"])
|
|
@@ -9355,7 +9368,7 @@ const pm = /* @__PURE__ */ ln(xf, [["render", Sf]]), kf = { class: "h-full grid
|
|
|
9355
9368
|
await o.logout();
|
|
9356
9369
|
const a = n.query.redirect;
|
|
9357
9370
|
a && a.startsWith("http") ? window.location.href = a : await t.push(a || r.defaultRedirect);
|
|
9358
|
-
}), (a, s) => (
|
|
9371
|
+
}), (a, s) => (E(), P("span"));
|
|
9359
9372
|
}
|
|
9360
9373
|
}, Ff = { class: "h-full grid place-content-center relative" }, Df = { class: "absolute top-8 left-8" }, jf = ["src"], Hf = {
|
|
9361
9374
|
key: 1,
|
|
@@ -9367,10 +9380,10 @@ const pm = /* @__PURE__ */ ln(xf, [["render", Sf]]), kf = { class: "h-full grid
|
|
|
9367
9380
|
}, Vf = { class: "max-w-sm grid gap-y-1 -mt-8" }, zf = {
|
|
9368
9381
|
key: 0,
|
|
9369
9382
|
class: "text-red-600 text-sm mb-2"
|
|
9370
|
-
},
|
|
9383
|
+
}, Bf = {
|
|
9371
9384
|
key: 1,
|
|
9372
9385
|
class: "text-green-600 text-sm mb-2"
|
|
9373
|
-
},
|
|
9386
|
+
}, Nf = { key: 0 }, qf = { key: 1 }, Wf = {
|
|
9374
9387
|
__name: "SparkForgotPasswordView",
|
|
9375
9388
|
props: {
|
|
9376
9389
|
logo: {
|
|
@@ -9383,7 +9396,7 @@ const pm = /* @__PURE__ */ ln(xf, [["render", Sf]]), kf = { class: "h-full grid
|
|
|
9383
9396
|
}
|
|
9384
9397
|
},
|
|
9385
9398
|
setup(e) {
|
|
9386
|
-
const t = Ft(), n = e, o =
|
|
9399
|
+
const t = Ft(), n = e, o = Ee(!1), r = Ee(""), a = Ee(""), s = async ({ email: c }) => {
|
|
9387
9400
|
o.value = !0, r.value = "", a.value = "";
|
|
9388
9401
|
try {
|
|
9389
9402
|
await vn.post(t.state.endpoints.passwordEmail, { email: c }), a.value = "Password reset link sent! Check your email.";
|
|
@@ -9395,14 +9408,14 @@ const pm = /* @__PURE__ */ ln(xf, [["render", Sf]]), kf = { class: "h-full grid
|
|
|
9395
9408
|
};
|
|
9396
9409
|
return (c, l) => {
|
|
9397
9410
|
const u = Ze("FormKit"), d = Ze("router-link");
|
|
9398
|
-
return
|
|
9411
|
+
return E(), P("div", Ff, [
|
|
9399
9412
|
T("div", Df, [
|
|
9400
|
-
n.logo ? (
|
|
9413
|
+
n.logo ? (E(), P("img", {
|
|
9401
9414
|
key: 0,
|
|
9402
9415
|
src: n.logo,
|
|
9403
9416
|
alt: "Logo",
|
|
9404
9417
|
class: "h-[23px] w-auto"
|
|
9405
|
-
}, null, 8, jf)) : (
|
|
9418
|
+
}, null, 8, jf)) : (E(), P("svg", Hf, [...l[0] || (l[0] = [
|
|
9406
9419
|
T("path", {
|
|
9407
9420
|
d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
|
|
9408
9421
|
fill: "#1C64F2"
|
|
@@ -9440,8 +9453,8 @@ const pm = /* @__PURE__ */ ln(xf, [["render", Sf]]), kf = { class: "h-full grid
|
|
|
9440
9453
|
validation: "required|email",
|
|
9441
9454
|
"outer-class": "max-w-full"
|
|
9442
9455
|
}),
|
|
9443
|
-
r.value ? (
|
|
9444
|
-
a.value ? (
|
|
9456
|
+
r.value ? (E(), P("div", zf, we(r.value), 1)) : ye("", !0),
|
|
9457
|
+
a.value ? (E(), P("div", Bf, we(a.value), 1)) : ye("", !0),
|
|
9445
9458
|
se(oe(gt), {
|
|
9446
9459
|
type: "submit",
|
|
9447
9460
|
size: "xl",
|
|
@@ -9449,7 +9462,7 @@ const pm = /* @__PURE__ */ ln(xf, [["render", Sf]]), kf = { class: "h-full grid
|
|
|
9449
9462
|
"button-class": "w-full mb-2"
|
|
9450
9463
|
}, {
|
|
9451
9464
|
default: Se(() => [
|
|
9452
|
-
o.value ? (
|
|
9465
|
+
o.value ? (E(), P("span", qf, "Sending...")) : (E(), P("span", Nf, "Send reset link"))
|
|
9453
9466
|
]),
|
|
9454
9467
|
_: 1
|
|
9455
9468
|
}, 8, ["disabled"]),
|
|
@@ -9492,7 +9505,7 @@ const pm = /* @__PURE__ */ ln(xf, [["render", Sf]]), kf = { class: "h-full grid
|
|
|
9492
9505
|
}
|
|
9493
9506
|
},
|
|
9494
9507
|
setup(e) {
|
|
9495
|
-
const t = Tt(), n = jt(), o = Ft(), r = e, a =
|
|
9508
|
+
const t = Tt(), n = jt(), o = Ft(), r = e, a = Ee(!1), s = Ee(""), c = async ({ password: l, password_confirmation: u }) => {
|
|
9496
9509
|
a.value = !0, s.value = "";
|
|
9497
9510
|
try {
|
|
9498
9511
|
await vn.post(o.state.endpoints.passwordReset, {
|
|
@@ -9509,14 +9522,14 @@ const pm = /* @__PURE__ */ ln(xf, [["render", Sf]]), kf = { class: "h-full grid
|
|
|
9509
9522
|
};
|
|
9510
9523
|
return (l, u) => {
|
|
9511
9524
|
const d = Ze("FormKit");
|
|
9512
|
-
return
|
|
9525
|
+
return E(), P("div", Uf, [
|
|
9513
9526
|
T("div", Zf, [
|
|
9514
|
-
r.logo ? (
|
|
9527
|
+
r.logo ? (E(), P("img", {
|
|
9515
9528
|
key: 0,
|
|
9516
9529
|
src: r.logo,
|
|
9517
9530
|
alt: "Logo",
|
|
9518
9531
|
class: "h-[23px] w-auto"
|
|
9519
|
-
}, null, 8, Gf)) : (
|
|
9532
|
+
}, null, 8, Gf)) : (E(), P("svg", Yf, [...u[0] || (u[0] = [
|
|
9520
9533
|
T("path", {
|
|
9521
9534
|
d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
|
|
9522
9535
|
fill: "#1C64F2"
|
|
@@ -9562,7 +9575,7 @@ const pm = /* @__PURE__ */ ln(xf, [["render", Sf]]), kf = { class: "h-full grid
|
|
|
9562
9575
|
validation: "required|confirm:password",
|
|
9563
9576
|
"outer-class": "max-w-full"
|
|
9564
9577
|
}),
|
|
9565
|
-
s.value ? (
|
|
9578
|
+
s.value ? (E(), P("div", Kf, we(s.value), 1)) : ye("", !0),
|
|
9566
9579
|
se(oe(gt), {
|
|
9567
9580
|
type: "submit",
|
|
9568
9581
|
size: "xl",
|
|
@@ -9570,7 +9583,7 @@ const pm = /* @__PURE__ */ ln(xf, [["render", Sf]]), kf = { class: "h-full grid
|
|
|
9570
9583
|
"button-class": "w-full mb-2"
|
|
9571
9584
|
}, {
|
|
9572
9585
|
default: Se(() => [
|
|
9573
|
-
a.value ? (
|
|
9586
|
+
a.value ? (E(), P("span", Qf, "Resetting...")) : (E(), P("span", Jf, "Reset password"))
|
|
9574
9587
|
]),
|
|
9575
9588
|
_: 1
|
|
9576
9589
|
}, 8, ["disabled"])
|
|
@@ -9604,14 +9617,14 @@ const pm = /* @__PURE__ */ ln(xf, [["render", Sf]]), kf = { class: "h-full grid
|
|
|
9604
9617
|
const t = Tt(), n = e, o = () => {
|
|
9605
9618
|
t.push(n.homeRoute);
|
|
9606
9619
|
};
|
|
9607
|
-
return (r, a) => (
|
|
9620
|
+
return (r, a) => (E(), P("div", tp, [
|
|
9608
9621
|
T("div", np, [
|
|
9609
|
-
n.logo ? (
|
|
9622
|
+
n.logo ? (E(), P("img", {
|
|
9610
9623
|
key: 0,
|
|
9611
9624
|
src: n.logo,
|
|
9612
9625
|
alt: "Logo",
|
|
9613
9626
|
class: "h-[23px] w-auto"
|
|
9614
|
-
}, null, 8, op)) : (
|
|
9627
|
+
}, null, 8, op)) : (E(), P("svg", sp, [...a[0] || (a[0] = [
|
|
9615
9628
|
T("path", {
|
|
9616
9629
|
d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
|
|
9617
9630
|
fill: "#1C64F2"
|
|
@@ -9677,14 +9690,14 @@ const pm = /* @__PURE__ */ ln(xf, [["render", Sf]]), kf = { class: "h-full grid
|
|
|
9677
9690
|
const t = Tt(), n = e, o = () => {
|
|
9678
9691
|
t.push(n.homeRoute);
|
|
9679
9692
|
};
|
|
9680
|
-
return (r, a) => (
|
|
9693
|
+
return (r, a) => (E(), P("div", lp, [
|
|
9681
9694
|
T("div", cp, [
|
|
9682
|
-
n.logo ? (
|
|
9695
|
+
n.logo ? (E(), P("img", {
|
|
9683
9696
|
key: 0,
|
|
9684
9697
|
src: n.logo,
|
|
9685
9698
|
alt: "Logo",
|
|
9686
9699
|
class: "h-[23px] w-auto"
|
|
9687
|
-
}, null, 8, up)) : (
|
|
9700
|
+
}, null, 8, up)) : (E(), P("svg", dp, [...a[0] || (a[0] = [
|
|
9688
9701
|
T("path", {
|
|
9689
9702
|
d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
|
|
9690
9703
|
fill: "#1C64F2"
|
|
@@ -9758,14 +9771,14 @@ const pm = /* @__PURE__ */ ln(xf, [["render", Sf]]), kf = { class: "h-full grid
|
|
|
9758
9771
|
const t = Tt(), n = e, o = () => {
|
|
9759
9772
|
t.push(n.homeRoute);
|
|
9760
9773
|
};
|
|
9761
|
-
return (r, a) => (
|
|
9774
|
+
return (r, a) => (E(), P("div", gp, [
|
|
9762
9775
|
T("div", hp, [
|
|
9763
|
-
n.logo ? (
|
|
9776
|
+
n.logo ? (E(), P("img", {
|
|
9764
9777
|
key: 0,
|
|
9765
9778
|
src: n.logo,
|
|
9766
9779
|
alt: "Logo",
|
|
9767
9780
|
class: "h-[23px] w-auto"
|
|
9768
|
-
}, null, 8, vp)) : (
|
|
9781
|
+
}, null, 8, vp)) : (E(), P("svg", yp, [...a[0] || (a[0] = [
|
|
9769
9782
|
T("path", {
|
|
9770
9783
|
d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
|
|
9771
9784
|
fill: "#1C64F2"
|
|
@@ -9849,10 +9862,10 @@ function hm(e, t = {}) {
|
|
|
9849
9862
|
const { defaultAuthenticatedRoute: n = "/dashboard" } = t;
|
|
9850
9863
|
e.beforeEach(async (o, r, a) => {
|
|
9851
9864
|
const s = Ft();
|
|
9852
|
-
s.state.ready || await s.fetchUser(),
|
|
9865
|
+
s.state.ready || await s.fetchUser(), Ep(o, a, s, n);
|
|
9853
9866
|
});
|
|
9854
9867
|
}
|
|
9855
|
-
function
|
|
9868
|
+
function Ep(e, t, n, o) {
|
|
9856
9869
|
const r = e.meta.auth !== !1, a = n.check;
|
|
9857
9870
|
if (n.state.overrideToken && e.path === "/logout") {
|
|
9858
9871
|
t({ path: o });
|
|
@@ -9969,7 +9982,7 @@ function wm() {
|
|
|
9969
9982
|
};
|
|
9970
9983
|
}
|
|
9971
9984
|
const Sm = Fn("sparkNav", () => {
|
|
9972
|
-
const e =
|
|
9985
|
+
const e = Ct({
|
|
9973
9986
|
menu: [],
|
|
9974
9987
|
collapsed: !1,
|
|
9975
9988
|
hidden: !1
|
|
@@ -10026,7 +10039,7 @@ const Sm = Fn("sparkNav", () => {
|
|
|
10026
10039
|
export {
|
|
10027
10040
|
dm as AUSTRALIAN_STATES,
|
|
10028
10041
|
Fe as Icons,
|
|
10029
|
-
|
|
10042
|
+
Np as SparkAddressInput,
|
|
10030
10043
|
pn as SparkAlert,
|
|
10031
10044
|
hc as SparkAppSelector,
|
|
10032
10045
|
Hc as SparkBrandSelector,
|
|
@@ -10072,7 +10085,7 @@ export {
|
|
|
10072
10085
|
sm as createBootstrapService,
|
|
10073
10086
|
wm as createPasswordTogglePlugin,
|
|
10074
10087
|
Au as customiseHeader,
|
|
10075
|
-
|
|
10088
|
+
Nd as deleteCookie,
|
|
10076
10089
|
Wp as formKitGenesisOverride,
|
|
10077
10090
|
Up as formKitIconLoader,
|
|
10078
10091
|
qp as formKitIcons,
|
|
@@ -10087,7 +10100,7 @@ export {
|
|
|
10087
10100
|
Ku as parseDatetime,
|
|
10088
10101
|
Zd as parseLaravelErrors,
|
|
10089
10102
|
Lu as renderHeaderTitle,
|
|
10090
|
-
|
|
10103
|
+
Bd as setCookie,
|
|
10091
10104
|
hm as setupAuthGuards,
|
|
10092
10105
|
rm as setupAxios,
|
|
10093
10106
|
bm as setupBootstrapGuard,
|