@wishbone-media/spark 0.43.0 → 0.44.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 +570 -565
- package/package.json +2 -1
- package/src/plugins/fontawesome.js +3 -1
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ref as ke, reactive as Et, watch as et, onMounted as Gt, nextTick as
|
|
1
|
+
import { ref as ke, reactive as Et, watch as et, onMounted as Gt, nextTick as da, onUnmounted as Fn, createElementBlock as P, openBlock as T, createElementVNode as _, Fragment as ze, renderList as st, toDisplayString as xe, withDirectives as Qt, createCommentVNode as he, createTextVNode as qe, vModelText as po, vModelSelect as fa, vShow as ar, computed as Q, shallowRef as pa, getCurrentScope as ma, onScopeDispose as ga, shallowReadonly as un, unref as ne, resolveComponent as Ue, normalizeClass as _e, createVNode as oe, renderSlot as Ke, createBlock as Me, resolveDynamicComponent as vt, markRaw as wn, Transition as ir, withCtx as we, normalizeProps as ha, mergeProps as wt, Teleport as lr, TransitionGroup as Tn, inject as ao, onUpdated as cr, provide as va, resolveDirective as ya, useSlots as Bo, normalizeStyle as ss, withModifiers as Xe, toHandlers as ur, h as rs } from "vue";
|
|
2
2
|
import { icon as Wt, library as dr } from "@fortawesome/fontawesome-svg-core";
|
|
3
3
|
import { FontAwesomeIcon as Zn } from "@fortawesome/vue-fontawesome";
|
|
4
|
-
import { faArrowUpRightFromSquare as
|
|
4
|
+
import { faArrowUpRightFromSquare as ba, faCopy as xa, faCircleDot as fr, faEyeDropper as pr, faAnglesLeft as mr, faAnglesRight as gr, faStar as wa, faSpinnerThird as hr, faCircle as Sa, faFile as Mo, faCalendar as vr, faArrowUp as yr, faArrowDown as br, faPlus as xr, faCircleCheck as ka, faInbox as Ea, faCloudArrowUp as Ta, faCloudDownload as Ca, faBolt as _a, faUndo as $a, faEye as Ma, faSignOut as La, faXmark as Lo, faTrash as wr, faTimes as Oa, faStreetView as Pa, faSortUp as Aa, faSortDown as Ra, faSort as Fa, faScaleBalanced as Ia, faSatelliteDish as Da, faLayerPlus as ja, faLaptopMobile as Ha, faInfoCircle as Va, faGripDotsVertical as Sr, faGearComplex as za, faFlag as Na, faFaceSmileWink as Ba, faFaceSmileRelaxed as qa, faExclamationTriangle as Wa, faEllipsisVertical as Ua, faEllipsis as Za, faEdit as Ga, faComments as Ya, faCircleXmark as Xa, faCircleUser as Ka, faChevronUp as Ja, faChevronRight as kr, faChevronLeft as Er, faChevronDown as Tr, faCheckCircle as Qa, faCheck as Oo, faBullhorn as ei, faBellRing as ti, faBarsSort as ni, faArrowRightToLine as oi, faArrowLeftToLine as si } from "@fortawesome/pro-regular-svg-icons";
|
|
5
5
|
import { faSortUp as ri, faSortDown as ai, faSort as ii } from "@fortawesome/pro-duotone-svg-icons";
|
|
6
6
|
import { defineStore as In } from "pinia";
|
|
7
7
|
import { useRoute as Dt, useRouter as Tt, onBeforeRouteLeave as li } from "vue-router";
|
|
8
|
-
import { TransitionRoot as
|
|
8
|
+
import { TransitionRoot as Cr, Dialog as _r, TransitionChild as Kn, DialogPanel as $r } from "@headlessui/vue";
|
|
9
9
|
import mo from "nprogress";
|
|
10
10
|
import { range as ci, get as zt, find as ui, has as di } from "lodash";
|
|
11
11
|
import { HotTable as fi } from "@handsontable/vue3";
|
|
@@ -13,7 +13,7 @@ import "handsontable/styles/handsontable.css";
|
|
|
13
13
|
import "handsontable/styles/ht-theme-classic.css";
|
|
14
14
|
import { registerPlugin as Vn, AutoColumnSize as pi, CopyPaste as mi, StretchColumns as gi, NestedHeaders as hi } from "handsontable/plugins";
|
|
15
15
|
import { registerAllCellTypes as vi } from "handsontable/cellTypes";
|
|
16
|
-
import { useDebounceFn as
|
|
16
|
+
import { useDebounceFn as Mr, watchDebounced as as } from "@vueuse/core";
|
|
17
17
|
import { registerRenderer as yi, baseRenderer as bi } from "handsontable/renderers";
|
|
18
18
|
import vn from "axios";
|
|
19
19
|
function xi(e, t) {
|
|
@@ -27,10 +27,10 @@ const wi = (e) => {
|
|
|
27
27
|
p.set("callback", a + ".maps." + l), xi(n, "https://maps.googleapis.com/maps/api/js?" + p), d[l] = m, n.onerror = () => t = g(Error(r + " could not load.")), n.nonce = i.querySelector("script[nonce]")?.nonce || "", i.head.append(n);
|
|
28
28
|
}));
|
|
29
29
|
d[s] ? console.warn(r + " only loads once. Ignoring:", e) : d[s] = (m, ...g) => u.add(m) && y().then(() => d[s](m, ...g));
|
|
30
|
-
}, Si = (e) => `The setOptions() function should only be called once. The options passed to the additional call (${JSON.stringify(e)}) will be ignored.`, ki = (e) => `The google.maps.importLibrary() function is already defined, and @googlemaps/js-api-loader will use the existing function instead of overwriting it. The options passed to setOptions (${JSON.stringify(e)}) will be ignored.`, Ei = "No options were set before calling importLibrary. Make sure to configure the loader using setOptions().", Ti = "There already is a script loading the Google Maps JavaScript API, and no google.maps.importLibrary function is defined. @googlemaps/js-api-loader will proceed to bootstrap the API with the specified options, but the existing script might cause problems using the API. Make sure to remove the script loading the API.",
|
|
30
|
+
}, Si = (e) => `The setOptions() function should only be called once. The options passed to the additional call (${JSON.stringify(e)}) will be ignored.`, ki = (e) => `The google.maps.importLibrary() function is already defined, and @googlemaps/js-api-loader will use the existing function instead of overwriting it. The options passed to setOptions (${JSON.stringify(e)}) will be ignored.`, Ei = "No options were set before calling importLibrary. Make sure to configure the loader using setOptions().", Ti = "There already is a script loading the Google Maps JavaScript API, and no google.maps.importLibrary function is defined. @googlemaps/js-api-loader will proceed to bootstrap the API with the specified options, but the existing script might cause problems using the API. Make sure to remove the script loading the API.", Lr = process.env.NODE_ENV !== "production", qo = Lr ? (e) => {
|
|
31
31
|
console.warn(`[@googlemaps/js-api-loader] ${e}`);
|
|
32
32
|
} : () => {
|
|
33
|
-
}, Ci =
|
|
33
|
+
}, Ci = Lr ? (e) => {
|
|
34
34
|
console.info(`[@googlemaps/js-api-loader] ${e}`);
|
|
35
35
|
} : () => {
|
|
36
36
|
}, _i = process.env.NODE_ENV !== "production";
|
|
@@ -74,7 +74,7 @@ const Pi = { class: "spark-address-input" }, Ai = ["disabled"], Ri = ["selected"
|
|
|
74
74
|
"stroke-linecap": "round",
|
|
75
75
|
"stroke-linejoin": "round",
|
|
76
76
|
d: "M12 4v16m8-8H4"
|
|
77
|
-
}, zi = ["disabled"], Ni = { class: "mt-3 grid grid-cols-2 gap-2" }, Bi = ["disabled"], qi = ["disabled"], Wi = ["disabled"], Ui = ["value"], Zi = ["disabled"], Gi = { class: "col-span-2 text-right" }, Yi = ["disabled"],
|
|
77
|
+
}, zi = ["disabled"], Ni = { class: "mt-3 grid grid-cols-2 gap-2" }, Bi = ["disabled"], qi = ["disabled"], Wi = ["disabled"], Ui = ["value"], Zi = ["disabled"], Gi = { class: "col-span-2 text-right" }, Yi = ["disabled"], Dp = {
|
|
78
78
|
__name: "SparkAddressInput",
|
|
79
79
|
props: {
|
|
80
80
|
modelValue: {
|
|
@@ -206,7 +206,7 @@ const Pi = { class: "spark-address-input" }, Ai = ["disabled"], Ri = ["selected"
|
|
|
206
206
|
return Gt(() => {
|
|
207
207
|
r.value === "autocomplete" && p();
|
|
208
208
|
}), et(r, async (v) => {
|
|
209
|
-
v === "autocomplete" && (await
|
|
209
|
+
v === "autocomplete" && (await da(), p());
|
|
210
210
|
}), Fn(() => {
|
|
211
211
|
i = !0, l && (l.removeEventListener("gmp-select", y), l = null);
|
|
212
212
|
}), (v, k) => (T(), P("div", Pi, [
|
|
@@ -316,7 +316,7 @@ const Pi = { class: "spark-address-input" }, Ai = ["disabled"], Ri = ["selected"
|
|
|
316
316
|
value: x
|
|
317
317
|
}, xe(x), 9, Ui))), 128))
|
|
318
318
|
], 40, Wi), [
|
|
319
|
-
[
|
|
319
|
+
[fa, c.state]
|
|
320
320
|
]),
|
|
321
321
|
Qt(_("input", {
|
|
322
322
|
"onUpdate:modelValue": k[6] || (k[6] = (x) => c.postcode = x),
|
|
@@ -368,7 +368,7 @@ function on(e) {
|
|
|
368
368
|
function jn(e) {
|
|
369
369
|
return e.split("-")[1];
|
|
370
370
|
}
|
|
371
|
-
function
|
|
371
|
+
function Or(e) {
|
|
372
372
|
return e === "x" ? "y" : "x";
|
|
373
373
|
}
|
|
374
374
|
function Wo(e) {
|
|
@@ -379,7 +379,7 @@ function qt(e) {
|
|
|
379
379
|
return t === "t" || t === "b" ? "y" : "x";
|
|
380
380
|
}
|
|
381
381
|
function Uo(e) {
|
|
382
|
-
return
|
|
382
|
+
return Or(qt(e));
|
|
383
383
|
}
|
|
384
384
|
function Ki(e, t, n) {
|
|
385
385
|
n === void 0 && (n = !1);
|
|
@@ -425,7 +425,7 @@ function ol(e) {
|
|
|
425
425
|
...e
|
|
426
426
|
};
|
|
427
427
|
}
|
|
428
|
-
function
|
|
428
|
+
function Pr(e) {
|
|
429
429
|
return typeof e != "number" ? ol(e) : {
|
|
430
430
|
top: e,
|
|
431
431
|
right: e,
|
|
@@ -515,7 +515,7 @@ async function sl(e, t) {
|
|
|
515
515
|
elementContext: d = "floating",
|
|
516
516
|
altBoundary: u = !1,
|
|
517
517
|
padding: p = 0
|
|
518
|
-
} = Dn(t, e), y =
|
|
518
|
+
} = Dn(t, e), y = Pr(p), g = l[u ? d === "floating" ? "reference" : "floating" : d], h = eo(await a.getClippingRect({
|
|
519
519
|
element: (n = await (a.isElement == null ? void 0 : a.isElement(g))) == null || n ? g : g.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(l.floating)),
|
|
520
520
|
boundary: c,
|
|
521
521
|
rootBoundary: f,
|
|
@@ -626,7 +626,7 @@ const rl = 50, al = async (e, t, n) => {
|
|
|
626
626
|
} = Dn(e, t) || {};
|
|
627
627
|
if (c == null)
|
|
628
628
|
return {};
|
|
629
|
-
const d =
|
|
629
|
+
const d = Pr(f), u = {
|
|
630
630
|
x: n,
|
|
631
631
|
y: o
|
|
632
632
|
}, p = Uo(r), y = Wo(p), m = await s.getDimensions(c), g = p === "y", h = g ? "top" : "left", b = g ? "bottom" : "right", v = g ? "clientHeight" : "clientWidth", k = a.reference[y] + a.reference[p] - u[p] - a.floating[y], x = u[p] - a.reference[p], L = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
|
|
@@ -805,7 +805,7 @@ const dl = function(e) {
|
|
|
805
805
|
} = Dn(e, t), f = {
|
|
806
806
|
x: n,
|
|
807
807
|
y: o
|
|
808
|
-
}, d = await a.detectOverflow(t, c), u = qt(on(r)), p =
|
|
808
|
+
}, d = await a.detectOverflow(t, c), u = qt(on(r)), p = Or(u);
|
|
809
809
|
let y = f[p], m = f[u];
|
|
810
810
|
if (s) {
|
|
811
811
|
const h = p === "y" ? "top" : "left", b = p === "y" ? "bottom" : "right", v = y + d[h], k = y - d[b];
|
|
@@ -931,14 +931,14 @@ function Ut(e) {
|
|
|
931
931
|
);
|
|
932
932
|
return ds(t) ? t.host : t;
|
|
933
933
|
}
|
|
934
|
-
function
|
|
934
|
+
function Ar(e) {
|
|
935
935
|
const t = Ut(e);
|
|
936
|
-
return kn(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : jt(t) && Hn(t) ? t :
|
|
936
|
+
return kn(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : jt(t) && Hn(t) ? t : Ar(t);
|
|
937
937
|
}
|
|
938
938
|
function Pn(e, t, n) {
|
|
939
939
|
var o;
|
|
940
940
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
941
|
-
const r =
|
|
941
|
+
const r = Ar(e), a = r === ((o = e.ownerDocument) == null ? void 0 : o.body), s = pt(r);
|
|
942
942
|
if (a) {
|
|
943
943
|
const l = Fo(s);
|
|
944
944
|
return t.concat(s, s.visualViewport || [], Hn(r) ? r : [], l && n ? Pn(l) : []);
|
|
@@ -948,7 +948,7 @@ function Pn(e, t, n) {
|
|
|
948
948
|
function Fo(e) {
|
|
949
949
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
950
950
|
}
|
|
951
|
-
function
|
|
951
|
+
function Rr(e) {
|
|
952
952
|
const t = kt(e);
|
|
953
953
|
let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
|
|
954
954
|
const r = jt(e), a = r ? e.offsetWidth : n, s = r ? e.offsetHeight : o, l = Jn(n) !== a || Jn(o) !== s;
|
|
@@ -969,7 +969,7 @@ function yn(e) {
|
|
|
969
969
|
width: o,
|
|
970
970
|
height: r,
|
|
971
971
|
$: a
|
|
972
|
-
} =
|
|
972
|
+
} = Rr(t);
|
|
973
973
|
let s = (a ? Jn(n.width) : n.width) / o, l = (a ? Jn(n.height) : n.height) / r;
|
|
974
974
|
return (!s || !Number.isFinite(s)) && (s = 1), (!l || !Number.isFinite(l)) && (l = 1), {
|
|
975
975
|
x: s,
|
|
@@ -977,7 +977,7 @@ function yn(e) {
|
|
|
977
977
|
};
|
|
978
978
|
}
|
|
979
979
|
const vl = /* @__PURE__ */ Mt(0);
|
|
980
|
-
function
|
|
980
|
+
function Fr(e) {
|
|
981
981
|
const t = pt(e);
|
|
982
982
|
return !Yo() || !t.visualViewport ? vl : {
|
|
983
983
|
x: t.visualViewport.offsetLeft,
|
|
@@ -992,7 +992,7 @@ function sn(e, t, n, o) {
|
|
|
992
992
|
const r = e.getBoundingClientRect(), a = Xo(e);
|
|
993
993
|
let s = Mt(1);
|
|
994
994
|
t && (o ? St(o) && (s = yn(o)) : s = yn(e));
|
|
995
|
-
const l = yl(a, n, o) ?
|
|
995
|
+
const l = yl(a, n, o) ? Fr(a) : Mt(0);
|
|
996
996
|
let i = (r.left + l.x) / s.x, c = (r.top + l.y) / s.y, f = r.width / s.x, d = r.height / s.y;
|
|
997
997
|
if (a) {
|
|
998
998
|
const u = pt(a), p = o && St(o) ? pt(o) : o;
|
|
@@ -1013,7 +1013,7 @@ function uo(e, t) {
|
|
|
1013
1013
|
const n = co(e).scrollLeft;
|
|
1014
1014
|
return t ? t.left + n : sn(Lt(e)).left + n;
|
|
1015
1015
|
}
|
|
1016
|
-
function
|
|
1016
|
+
function Ir(e, t) {
|
|
1017
1017
|
const n = e.getBoundingClientRect(), o = n.left + t.scrollLeft - uo(e, n), r = n.top + t.scrollTop;
|
|
1018
1018
|
return {
|
|
1019
1019
|
x: o,
|
|
@@ -1039,7 +1039,7 @@ function bl(e) {
|
|
|
1039
1039
|
const p = sn(o);
|
|
1040
1040
|
c = yn(o), f.x = p.x + o.clientLeft, f.y = p.y + o.clientTop;
|
|
1041
1041
|
}
|
|
1042
|
-
const u = s && !d && !a ?
|
|
1042
|
+
const u = s && !d && !a ? Ir(s, i) : Mt(0);
|
|
1043
1043
|
return {
|
|
1044
1044
|
width: n.width * c.x,
|
|
1045
1045
|
height: n.height * c.y,
|
|
@@ -1100,7 +1100,7 @@ function ps(e, t, n) {
|
|
|
1100
1100
|
else if (St(t))
|
|
1101
1101
|
o = kl(t, n);
|
|
1102
1102
|
else {
|
|
1103
|
-
const r =
|
|
1103
|
+
const r = Fr(e);
|
|
1104
1104
|
o = {
|
|
1105
1105
|
x: t.x - r.x,
|
|
1106
1106
|
y: t.y - r.y,
|
|
@@ -1110,9 +1110,9 @@ function ps(e, t, n) {
|
|
|
1110
1110
|
}
|
|
1111
1111
|
return eo(o);
|
|
1112
1112
|
}
|
|
1113
|
-
function
|
|
1113
|
+
function Dr(e, t) {
|
|
1114
1114
|
const n = Ut(e);
|
|
1115
|
-
return n === t || !St(n) || kn(n) ? !1 : kt(n).position === "fixed" ||
|
|
1115
|
+
return n === t || !St(n) || kn(n) ? !1 : kt(n).position === "fixed" || Dr(n, t);
|
|
1116
1116
|
}
|
|
1117
1117
|
function El(e, t) {
|
|
1118
1118
|
const n = t.get(e);
|
|
@@ -1123,7 +1123,7 @@ function El(e, t) {
|
|
|
1123
1123
|
let s = a ? Ut(e) : e;
|
|
1124
1124
|
for (; St(s) && !kn(s); ) {
|
|
1125
1125
|
const l = kt(s), i = Go(s);
|
|
1126
|
-
!i && l.position === "fixed" && (r = null), (a ? !i && !r : !i && l.position === "static" && !!r && (r.position === "absolute" || r.position === "fixed") || Hn(s) && !i &&
|
|
1126
|
+
!i && l.position === "fixed" && (r = null), (a ? !i && !r : !i && l.position === "static" && !!r && (r.position === "absolute" || r.position === "fixed") || Hn(s) && !i && Dr(e, s)) ? o = o.filter((f) => f !== s) : r = l, s = Ut(s);
|
|
1127
1127
|
}
|
|
1128
1128
|
return t.set(e, o), o;
|
|
1129
1129
|
}
|
|
@@ -1151,7 +1151,7 @@ function Cl(e) {
|
|
|
1151
1151
|
const {
|
|
1152
1152
|
width: t,
|
|
1153
1153
|
height: n
|
|
1154
|
-
} =
|
|
1154
|
+
} = Rr(e);
|
|
1155
1155
|
return {
|
|
1156
1156
|
width: t,
|
|
1157
1157
|
height: n
|
|
@@ -1173,7 +1173,7 @@ function _l(e, t, n) {
|
|
|
1173
1173
|
i.x = p.x + t.clientLeft, i.y = p.y + t.clientTop;
|
|
1174
1174
|
} else r && c();
|
|
1175
1175
|
a && !o && r && c();
|
|
1176
|
-
const f = r && !o && !a ?
|
|
1176
|
+
const f = r && !o && !a ? Ir(r, l) : Mt(0), d = s.left + l.scrollLeft - i.x - f.x, u = s.top + l.scrollTop - i.y - f.y;
|
|
1177
1177
|
return {
|
|
1178
1178
|
x: d,
|
|
1179
1179
|
y: u,
|
|
@@ -1192,7 +1192,7 @@ function ms(e, t) {
|
|
|
1192
1192
|
let n = e.offsetParent;
|
|
1193
1193
|
return Lt(e) === n && (n = n.ownerDocument.body), n;
|
|
1194
1194
|
}
|
|
1195
|
-
function
|
|
1195
|
+
function jr(e, t) {
|
|
1196
1196
|
const n = pt(e);
|
|
1197
1197
|
if (lo(e))
|
|
1198
1198
|
return n;
|
|
@@ -1211,7 +1211,7 @@ function Hr(e, t) {
|
|
|
1211
1211
|
return o && kn(o) && ho(o) && !Go(o) ? n : o || hl(e) || n;
|
|
1212
1212
|
}
|
|
1213
1213
|
const $l = async function(e) {
|
|
1214
|
-
const t = this.getOffsetParent ||
|
|
1214
|
+
const t = this.getOffsetParent || jr, n = this.getDimensions, o = await n(e.floating);
|
|
1215
1215
|
return {
|
|
1216
1216
|
reference: _l(e.reference, await t(e.floating), e.strategy),
|
|
1217
1217
|
floating: {
|
|
@@ -1229,7 +1229,7 @@ const Ll = {
|
|
|
1229
1229
|
convertOffsetParentRelativeRectToViewportRelativeRect: bl,
|
|
1230
1230
|
getDocumentElement: Lt,
|
|
1231
1231
|
getClippingRect: Tl,
|
|
1232
|
-
getOffsetParent:
|
|
1232
|
+
getOffsetParent: jr,
|
|
1233
1233
|
getElementRects: $l,
|
|
1234
1234
|
getClientRects: xl,
|
|
1235
1235
|
getDimensions: Cl,
|
|
@@ -1237,7 +1237,7 @@ const Ll = {
|
|
|
1237
1237
|
isElement: St,
|
|
1238
1238
|
isRTL: Ml
|
|
1239
1239
|
};
|
|
1240
|
-
function
|
|
1240
|
+
function Hr(e, t) {
|
|
1241
1241
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
1242
1242
|
}
|
|
1243
1243
|
function Ol(e, t) {
|
|
@@ -1271,7 +1271,7 @@ function Ol(e, t) {
|
|
|
1271
1271
|
s(!1, 1e-7);
|
|
1272
1272
|
}, 1e3);
|
|
1273
1273
|
}
|
|
1274
|
-
M === 1 && !
|
|
1274
|
+
M === 1 && !Hr(c, e.getBoundingClientRect()) && s(), k = !1;
|
|
1275
1275
|
}
|
|
1276
1276
|
try {
|
|
1277
1277
|
n = new IntersectionObserver(x, {
|
|
@@ -1313,7 +1313,7 @@ function Pl(e, t, n, o) {
|
|
|
1313
1313
|
i && g();
|
|
1314
1314
|
function g() {
|
|
1315
1315
|
const h = sn(e);
|
|
1316
|
-
m && !
|
|
1316
|
+
m && !Hr(m, h) && n(), m = h, y = requestAnimationFrame(g);
|
|
1317
1317
|
}
|
|
1318
1318
|
return n(), () => {
|
|
1319
1319
|
var h;
|
|
@@ -1322,7 +1322,7 @@ function Pl(e, t, n, o) {
|
|
|
1322
1322
|
}), d?.(), (h = p) == null || h.disconnect(), p = null, i && cancelAnimationFrame(y);
|
|
1323
1323
|
};
|
|
1324
1324
|
}
|
|
1325
|
-
const
|
|
1325
|
+
const Vr = dl, zr = fl, Nr = ll, Al = il, Br = (e, t, n) => {
|
|
1326
1326
|
const o = /* @__PURE__ */ new Map(), r = {
|
|
1327
1327
|
platform: Ll,
|
|
1328
1328
|
...n
|
|
@@ -1348,7 +1348,7 @@ function Io(e) {
|
|
|
1348
1348
|
function dn(e) {
|
|
1349
1349
|
return typeof e == "function" ? e() : ne(e);
|
|
1350
1350
|
}
|
|
1351
|
-
function
|
|
1351
|
+
function qr(e) {
|
|
1352
1352
|
return {
|
|
1353
1353
|
name: "arrow",
|
|
1354
1354
|
options: e,
|
|
@@ -1361,11 +1361,11 @@ function Wr(e) {
|
|
|
1361
1361
|
}
|
|
1362
1362
|
};
|
|
1363
1363
|
}
|
|
1364
|
-
function
|
|
1364
|
+
function Wr(e) {
|
|
1365
1365
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
1366
1366
|
}
|
|
1367
1367
|
function gs(e, t) {
|
|
1368
|
-
const n =
|
|
1368
|
+
const n = Wr(e);
|
|
1369
1369
|
return Math.round(t * n) / n;
|
|
1370
1370
|
}
|
|
1371
1371
|
function Fl(e, t, n) {
|
|
@@ -1382,7 +1382,7 @@ function Fl(e, t, n) {
|
|
|
1382
1382
|
}), i = Q(() => {
|
|
1383
1383
|
var M;
|
|
1384
1384
|
return (M = dn(n.transform)) != null ? M : !0;
|
|
1385
|
-
}), c = Q(() => Io(e.value)), f = Q(() => Io(t.value)), d = ke(0), u = ke(0), p = ke(l.value), y = ke(s.value), m =
|
|
1385
|
+
}), c = Q(() => Io(e.value)), f = Q(() => Io(t.value)), d = ke(0), u = ke(0), p = ke(l.value), y = ke(s.value), m = pa({}), g = ke(!1), h = Q(() => {
|
|
1386
1386
|
const M = {
|
|
1387
1387
|
position: p.value,
|
|
1388
1388
|
left: "0",
|
|
@@ -1394,7 +1394,7 @@ function Fl(e, t, n) {
|
|
|
1394
1394
|
return i.value ? {
|
|
1395
1395
|
...M,
|
|
1396
1396
|
transform: "translate(" + ee + "px, " + ye + "px)",
|
|
1397
|
-
...
|
|
1397
|
+
...Wr(f.value) >= 1.5 && {
|
|
1398
1398
|
willChange: "transform"
|
|
1399
1399
|
}
|
|
1400
1400
|
} : {
|
|
@@ -1408,7 +1408,7 @@ function Fl(e, t, n) {
|
|
|
1408
1408
|
if (c.value == null || f.value == null)
|
|
1409
1409
|
return;
|
|
1410
1410
|
const M = r.value;
|
|
1411
|
-
|
|
1411
|
+
Br(c.value, f.value, {
|
|
1412
1412
|
middleware: a.value,
|
|
1413
1413
|
placement: s.value,
|
|
1414
1414
|
strategy: l.value
|
|
@@ -1438,7 +1438,7 @@ function Fl(e, t, n) {
|
|
|
1438
1438
|
flush: "sync"
|
|
1439
1439
|
}), et(r, L, {
|
|
1440
1440
|
flush: "sync"
|
|
1441
|
-
}),
|
|
1441
|
+
}), ma() && ga(k), {
|
|
1442
1442
|
x: un(d),
|
|
1443
1443
|
y: un(u),
|
|
1444
1444
|
strategy: un(p),
|
|
@@ -1470,10 +1470,10 @@ function Il(e) {
|
|
|
1470
1470
|
}
|
|
1471
1471
|
return t;
|
|
1472
1472
|
}
|
|
1473
|
-
async function
|
|
1474
|
-
const o = t.querySelector(`.${to}`), r = [
|
|
1475
|
-
o && r.push(
|
|
1476
|
-
const { x: a, y: s, placement: l, middlewareData: i } = await
|
|
1473
|
+
async function Ur(e, t, n) {
|
|
1474
|
+
const o = t.querySelector(`.${to}`), r = [Vr(n.offset ?? 8), Nr(), zr({ padding: 8 })];
|
|
1475
|
+
o && r.push(qr({ element: o, padding: 5 }));
|
|
1476
|
+
const { x: a, y: s, placement: l, middlewareData: i } = await Br(e, t, {
|
|
1477
1477
|
placement: n.placement || "top",
|
|
1478
1478
|
strategy: "fixed",
|
|
1479
1479
|
middleware: r
|
|
@@ -1504,7 +1504,7 @@ function Dl(e) {
|
|
|
1504
1504
|
clearTimeout(t.hideTimeout);
|
|
1505
1505
|
}), o.addEventListener("mouseleave", () => {
|
|
1506
1506
|
Ko(e);
|
|
1507
|
-
})),
|
|
1507
|
+
})), Ur(e, o, t.config);
|
|
1508
1508
|
}, n);
|
|
1509
1509
|
}
|
|
1510
1510
|
function Ko(e) {
|
|
@@ -1520,13 +1520,13 @@ function vo(e) {
|
|
|
1520
1520
|
const t = () => Dl(e), n = () => Ko(e);
|
|
1521
1521
|
e.addEventListener("mouseenter", t), e.addEventListener("mouseleave", n), e.addEventListener("focus", t), e.addEventListener("blur", n), e.__sparkTooltip.listeners = { onShow: t, onHide: n };
|
|
1522
1522
|
}
|
|
1523
|
-
function
|
|
1523
|
+
function Zr(e) {
|
|
1524
1524
|
const t = e.__sparkTooltip;
|
|
1525
1525
|
t?.listeners && (e.removeEventListener("mouseenter", t.listeners.onShow), e.removeEventListener("mouseleave", t.listeners.onHide), e.removeEventListener("focus", t.listeners.onShow), e.removeEventListener("blur", t.listeners.onHide));
|
|
1526
1526
|
}
|
|
1527
1527
|
function jl(e) {
|
|
1528
1528
|
const t = e.__sparkTooltip;
|
|
1529
|
-
t && (clearTimeout(t.showTimeout), clearTimeout(t.hideTimeout),
|
|
1529
|
+
t && (clearTimeout(t.showTimeout), clearTimeout(t.hideTimeout), Zr(e), t.tooltipEl && (t.tooltipEl.remove(), t.tooltipEl = null), delete e.__sparkTooltip);
|
|
1530
1530
|
}
|
|
1531
1531
|
const Hl = {
|
|
1532
1532
|
mounted(e, t) {
|
|
@@ -1548,9 +1548,9 @@ const Hl = {
|
|
|
1548
1548
|
const a = document.createElement("div");
|
|
1549
1549
|
a.className = to, o.tooltipEl.appendChild(a);
|
|
1550
1550
|
}
|
|
1551
|
-
|
|
1551
|
+
Ur(e, o.tooltipEl, n);
|
|
1552
1552
|
}
|
|
1553
|
-
n.content && !o.listeners ? vo(e) : !n.content && o.listeners && (Ko(e),
|
|
1553
|
+
n.content && !o.listeners ? vo(e) : !n.content && o.listeners && (Ko(e), Zr(e), o.listeners = null);
|
|
1554
1554
|
},
|
|
1555
1555
|
unmounted(e) {
|
|
1556
1556
|
jl(e);
|
|
@@ -1559,6 +1559,11 @@ const Hl = {
|
|
|
1559
1559
|
function Vl(e) {
|
|
1560
1560
|
e.directive("spark-tooltip", Hl);
|
|
1561
1561
|
}
|
|
1562
|
+
var zl = {
|
|
1563
|
+
prefix: "fas",
|
|
1564
|
+
iconName: "star",
|
|
1565
|
+
icon: [576, 512, [11088, 61446], "f005", "M309.5-18.9c-4.1-8-12.4-13.1-21.4-13.1s-17.3 5.1-21.4 13.1L193.1 125.3 33.2 150.7c-8.9 1.4-16.3 7.7-19.1 16.3s-.5 18 5.8 24.4l114.4 114.5-25.2 159.9c-1.4 8.9 2.3 17.9 9.6 23.2s16.9 6.1 25 2L288.1 417.6 432.4 491c8 4.1 17.7 3.3 25-2s11-14.2 9.6-23.2L441.7 305.9 556.1 191.4c6.4-6.4 8.6-15.8 5.8-24.4s-10.1-14.9-19.1-16.3L383 125.3 309.5-18.9z"]
|
|
1566
|
+
};
|
|
1562
1567
|
const Ie = {
|
|
1563
1568
|
farArrowLeftToLine: si,
|
|
1564
1569
|
farArrowRightToLine: oi,
|
|
@@ -1567,9 +1572,9 @@ const Ie = {
|
|
|
1567
1572
|
farBullhorn: ei,
|
|
1568
1573
|
farCheck: Oo,
|
|
1569
1574
|
farCheckCircle: Qa,
|
|
1570
|
-
farChevronDown:
|
|
1571
|
-
farChevronLeft:
|
|
1572
|
-
farChevronRight:
|
|
1575
|
+
farChevronDown: Tr,
|
|
1576
|
+
farChevronLeft: Er,
|
|
1577
|
+
farChevronRight: kr,
|
|
1573
1578
|
farChevronUp: Ja,
|
|
1574
1579
|
farCircleUser: Ka,
|
|
1575
1580
|
farCircleXmark: Xa,
|
|
@@ -1582,7 +1587,7 @@ const Ie = {
|
|
|
1582
1587
|
farFaceSmileWink: Ba,
|
|
1583
1588
|
farFlag: Na,
|
|
1584
1589
|
farGearComplex: za,
|
|
1585
|
-
farGripDotsVertical:
|
|
1590
|
+
farGripDotsVertical: Sr,
|
|
1586
1591
|
farInfoCircle: Va,
|
|
1587
1592
|
farLaptopMobile: Ha,
|
|
1588
1593
|
farLayerPlus: ja,
|
|
@@ -1593,7 +1598,7 @@ const Ie = {
|
|
|
1593
1598
|
farSortUp: Aa,
|
|
1594
1599
|
farStreetView: Pa,
|
|
1595
1600
|
farTimes: Oa,
|
|
1596
|
-
farTrash:
|
|
1601
|
+
farTrash: wr,
|
|
1597
1602
|
farXmark: Lo,
|
|
1598
1603
|
farSignOut: La,
|
|
1599
1604
|
farEye: Ma,
|
|
@@ -1607,55 +1612,55 @@ const Ie = {
|
|
|
1607
1612
|
fadSortDown: ai,
|
|
1608
1613
|
fadSortUp: ri,
|
|
1609
1614
|
// Additional icons for FormKit genesis replacement
|
|
1610
|
-
farPlus:
|
|
1611
|
-
farArrowDown:
|
|
1612
|
-
farArrowUp:
|
|
1613
|
-
farCalendar:
|
|
1615
|
+
farPlus: xr,
|
|
1616
|
+
farArrowDown: br,
|
|
1617
|
+
farArrowUp: yr,
|
|
1618
|
+
farCalendar: vr,
|
|
1614
1619
|
farFile: Mo,
|
|
1615
1620
|
farCircle: Sa,
|
|
1616
|
-
farSpinner:
|
|
1617
|
-
farStar:
|
|
1621
|
+
farSpinner: hr,
|
|
1622
|
+
farStar: wa,
|
|
1618
1623
|
farAnglesRight: gr,
|
|
1619
1624
|
farAnglesLeft: mr,
|
|
1620
1625
|
farEyeDropper: pr,
|
|
1621
1626
|
farCircleDot: fr,
|
|
1622
|
-
farCopy:
|
|
1623
|
-
farArrowUpRightFromSquare:
|
|
1624
|
-
},
|
|
1627
|
+
farCopy: xa,
|
|
1628
|
+
farArrowUpRightFromSquare: ba
|
|
1629
|
+
}, jp = Object.fromEntries(
|
|
1625
1630
|
Object.entries(Ie).map(([e, t]) => {
|
|
1626
1631
|
const n = Wt(t);
|
|
1627
1632
|
return [e, n?.html?.[0] || ""];
|
|
1628
1633
|
})
|
|
1629
|
-
),
|
|
1630
|
-
add:
|
|
1631
|
-
arrowDown:
|
|
1632
|
-
arrowUp:
|
|
1634
|
+
), Nl = {
|
|
1635
|
+
add: xr,
|
|
1636
|
+
arrowDown: br,
|
|
1637
|
+
arrowUp: yr,
|
|
1633
1638
|
check: Oo,
|
|
1634
1639
|
close: Lo,
|
|
1635
1640
|
checkboxDecorator: Oo,
|
|
1636
|
-
date:
|
|
1637
|
-
dragHandle:
|
|
1641
|
+
date: vr,
|
|
1642
|
+
dragHandle: Sr,
|
|
1638
1643
|
fileItem: Mo,
|
|
1639
1644
|
fileRemove: Lo,
|
|
1640
1645
|
noFiles: Mo,
|
|
1641
1646
|
radioDecorator: fr,
|
|
1642
1647
|
// Circle with dot for radio indicator
|
|
1643
|
-
select:
|
|
1644
|
-
spinner:
|
|
1645
|
-
star:
|
|
1646
|
-
trash:
|
|
1648
|
+
select: Tr,
|
|
1649
|
+
spinner: hr,
|
|
1650
|
+
star: zl,
|
|
1651
|
+
trash: wr,
|
|
1647
1652
|
fastForward: gr,
|
|
1648
|
-
right:
|
|
1649
|
-
left:
|
|
1653
|
+
right: kr,
|
|
1654
|
+
left: Er,
|
|
1650
1655
|
rewind: mr,
|
|
1651
1656
|
color: pr
|
|
1652
|
-
},
|
|
1653
|
-
Object.entries(
|
|
1657
|
+
}, Hp = Object.fromEntries(
|
|
1658
|
+
Object.entries(Nl).map(([e, t]) => {
|
|
1654
1659
|
const n = Wt(t);
|
|
1655
1660
|
return [e, n?.html?.[0] || ""];
|
|
1656
1661
|
})
|
|
1657
1662
|
);
|
|
1658
|
-
function
|
|
1663
|
+
function Vp(e) {
|
|
1659
1664
|
const t = Ie[e];
|
|
1660
1665
|
if (t) {
|
|
1661
1666
|
const n = Wt(t);
|
|
@@ -1663,16 +1668,16 @@ function Hp(e) {
|
|
|
1663
1668
|
}
|
|
1664
1669
|
return Promise.resolve(void 0);
|
|
1665
1670
|
}
|
|
1666
|
-
function
|
|
1671
|
+
function zp(e) {
|
|
1667
1672
|
Object.assign(Ie, e), dr.add(...Object.values(e));
|
|
1668
1673
|
}
|
|
1669
|
-
function
|
|
1674
|
+
function Np(e) {
|
|
1670
1675
|
dr.add(...Object.values(Ie)), e.component("FontAwesomeIcon", Zn), Vl(e);
|
|
1671
1676
|
}
|
|
1672
|
-
const
|
|
1677
|
+
const Bl = { class: "flex items-center" }, ql = { class: "shrink-0 self-start" }, Wl = { class: "ml-3" }, Ul = {
|
|
1673
1678
|
key: 0,
|
|
1674
1679
|
class: "ml-auto pl-3 pt-1 self-start"
|
|
1675
|
-
},
|
|
1680
|
+
}, Zl = { class: "-mx-1.5 -my-1.5" }, fn = {
|
|
1676
1681
|
__name: "SparkAlert",
|
|
1677
1682
|
props: {
|
|
1678
1683
|
type: {
|
|
@@ -1713,18 +1718,18 @@ const Nl = { class: "flex items-center" }, Bl = { class: "shrink-0 self-start" }
|
|
|
1713
1718
|
return T(), P("div", {
|
|
1714
1719
|
class: _e(["rounded-md border p-4", n.value])
|
|
1715
1720
|
}, [
|
|
1716
|
-
_("div",
|
|
1717
|
-
_("div",
|
|
1721
|
+
_("div", Bl, [
|
|
1722
|
+
_("div", ql, [
|
|
1718
1723
|
oe(i, {
|
|
1719
1724
|
icon: ne(Ie)[r.value],
|
|
1720
1725
|
class: _e(o.value)
|
|
1721
1726
|
}, null, 8, ["icon", "class"])
|
|
1722
1727
|
]),
|
|
1723
|
-
_("div",
|
|
1728
|
+
_("div", Wl, [
|
|
1724
1729
|
Ke(s.$slots, "default")
|
|
1725
1730
|
]),
|
|
1726
|
-
e.closeable ? (T(), P("div",
|
|
1727
|
-
_("div",
|
|
1731
|
+
e.closeable ? (T(), P("div", Ul, [
|
|
1732
|
+
_("div", Zl, [
|
|
1728
1733
|
_("button", {
|
|
1729
1734
|
type: "button",
|
|
1730
1735
|
class: _e(["inline-flex rounded-md px-2 py-1.5", a.value]),
|
|
@@ -1789,7 +1794,7 @@ const Nl = { class: "flex items-center" }, Bl = { class: "shrink-0 self-start" }
|
|
|
1789
1794
|
href: "https://tabula.letsbolt.io",
|
|
1790
1795
|
icon: "farCompass"
|
|
1791
1796
|
}
|
|
1792
|
-
],
|
|
1797
|
+
], Gr = In("sparkAppSelector", () => {
|
|
1793
1798
|
const e = Et({
|
|
1794
1799
|
apps: [...yo]
|
|
1795
1800
|
}), t = (a = {}) => {
|
|
@@ -1835,7 +1840,7 @@ const Nl = { class: "flex items-center" }, Bl = { class: "shrink-0 self-start" }
|
|
|
1835
1840
|
return s ? s.icon : "";
|
|
1836
1841
|
}
|
|
1837
1842
|
};
|
|
1838
|
-
}),
|
|
1843
|
+
}), Yr = In("sparkApp", () => {
|
|
1839
1844
|
const e = Et({
|
|
1840
1845
|
app: "",
|
|
1841
1846
|
homeRoute: "dashboard",
|
|
@@ -1848,16 +1853,16 @@ const Nl = { class: "flex items-center" }, Bl = { class: "shrink-0 self-start" }
|
|
|
1848
1853
|
e.app = n.app || "", e.homeRoute = n.homeRoute ?? "dashboard", e.showBrandSelector = n.showBrandSelector ?? !0, e.showAppSelector = n.showAppSelector ?? !0;
|
|
1849
1854
|
}
|
|
1850
1855
|
};
|
|
1851
|
-
}),
|
|
1856
|
+
}), Gl = { class: "flex grow flex-col gap-y-5 overflow-y-auto bg-white rounded-lg" }, Yl = { class: "flex flex-1 flex-col" }, Xl = { class: "divide-y divide-gray-200" }, Kl = { class: "flex px-[22px] py-2.5 text-[12px] items-center" }, Jl = { class: "ml-auto flex items-center" }, Ql = ["href", "onClick"], ec = { class: "gap-y-1" }, tc = { class: "text-base text-gray-800 flex items-center" }, nc = { class: "font-medium" }, oc = {
|
|
1852
1857
|
key: 0,
|
|
1853
1858
|
class: "inline-flex items-center rounded-full bg-green-100 px-1.5 py-0.5 text-xs font-medium text-green-700 ml-1"
|
|
1854
|
-
},
|
|
1859
|
+
}, sc = { class: "text-sm text-gray-500" }, rc = { class: "ml-auto flex items-center" }, ac = { class: "mt-auto" }, ic = {
|
|
1855
1860
|
key: 0,
|
|
1856
1861
|
class: "p-6"
|
|
1857
|
-
},
|
|
1862
|
+
}, lc = {
|
|
1858
1863
|
key: 1,
|
|
1859
1864
|
class: "bg-gray-50 p-6"
|
|
1860
|
-
},
|
|
1865
|
+
}, cc = {
|
|
1861
1866
|
__name: "SparkAppSelector",
|
|
1862
1867
|
props: {
|
|
1863
1868
|
bottomSlot: {
|
|
@@ -1871,7 +1876,7 @@ const Nl = { class: "flex items-center" }, Bl = { class: "shrink-0 self-start" }
|
|
|
1871
1876
|
},
|
|
1872
1877
|
emits: ["close", "select"],
|
|
1873
1878
|
setup(e, { emit: t }) {
|
|
1874
|
-
const n = t, o =
|
|
1879
|
+
const n = t, o = Gr(), r = Yr(), a = Q(() => {
|
|
1875
1880
|
const l = r.state.app;
|
|
1876
1881
|
return o.state.apps.map((i) => ({
|
|
1877
1882
|
...i,
|
|
@@ -1882,12 +1887,12 @@ const Nl = { class: "flex items-center" }, Bl = { class: "shrink-0 self-start" }
|
|
|
1882
1887
|
};
|
|
1883
1888
|
return (l, i) => {
|
|
1884
1889
|
const c = Ue("font-awesome-icon");
|
|
1885
|
-
return T(), P("div",
|
|
1886
|
-
_("div",
|
|
1887
|
-
_("div",
|
|
1888
|
-
_("div",
|
|
1890
|
+
return T(), P("div", Gl, [
|
|
1891
|
+
_("div", Yl, [
|
|
1892
|
+
_("div", Xl, [
|
|
1893
|
+
_("div", Kl, [
|
|
1889
1894
|
i[1] || (i[1] = _("div", null, "Mr Group Network", -1)),
|
|
1890
|
-
_("div",
|
|
1895
|
+
_("div", Jl, [
|
|
1891
1896
|
oe(c, {
|
|
1892
1897
|
icon: ne(Ie).farTimes,
|
|
1893
1898
|
class: "h-[15px] w-[15px] shrink-0 text-gray-400 cursor-pointer",
|
|
@@ -1902,29 +1907,29 @@ const Nl = { class: "flex items-center" }, Bl = { class: "shrink-0 self-start" }
|
|
|
1902
1907
|
class: _e([f.current ? "bg-gray-50" : "hover:bg-gray-50", "flex px-[22px] py-[15px] cursor-pointer"]),
|
|
1903
1908
|
onClick: (d) => f.current ? d.preventDefault() : s(f)
|
|
1904
1909
|
}, [
|
|
1905
|
-
_("div",
|
|
1906
|
-
_("div",
|
|
1907
|
-
_("div",
|
|
1908
|
-
f.current ? (T(), P("span",
|
|
1910
|
+
_("div", ec, [
|
|
1911
|
+
_("div", tc, [
|
|
1912
|
+
_("div", nc, xe(f.name), 1),
|
|
1913
|
+
f.current ? (T(), P("span", oc, " Active ")) : he("", !0)
|
|
1909
1914
|
]),
|
|
1910
|
-
_("div",
|
|
1915
|
+
_("div", sc, xe(f.description), 1)
|
|
1911
1916
|
]),
|
|
1912
|
-
_("div",
|
|
1917
|
+
_("div", rc, [
|
|
1913
1918
|
oe(c, {
|
|
1914
1919
|
class: _e([f.current ? "text-gray-700" : "text-gray-400", "h-5 w-5 shrink-0"]),
|
|
1915
1920
|
icon: ne(Ie)[f.icon]
|
|
1916
1921
|
}, null, 8, ["class", "icon"])
|
|
1917
1922
|
])
|
|
1918
|
-
], 10,
|
|
1923
|
+
], 10, Ql))), 128)),
|
|
1919
1924
|
i[2] || (i[2] = _("div", null, null, -1))
|
|
1920
1925
|
]),
|
|
1921
|
-
_("div",
|
|
1922
|
-
l.$slots.bottom || e.bottomSlot ? (T(), P("div",
|
|
1926
|
+
_("div", ac, [
|
|
1927
|
+
l.$slots.bottom || e.bottomSlot ? (T(), P("div", ic, [
|
|
1923
1928
|
Ke(l.$slots, "bottom", {}, () => [
|
|
1924
1929
|
e.bottomSlot ? (T(), Me(vt(e.bottomSlot), { key: 0 })) : he("", !0)
|
|
1925
1930
|
])
|
|
1926
1931
|
])) : he("", !0),
|
|
1927
|
-
l.$slots.footer || e.footerSlot ? (T(), P("div",
|
|
1932
|
+
l.$slots.footer || e.footerSlot ? (T(), P("div", lc, [
|
|
1928
1933
|
Ke(l.$slots, "footer", {}, () => [
|
|
1929
1934
|
e.footerSlot ? (T(), Me(vt(e.footerSlot), { key: 0 })) : he("", !0)
|
|
1930
1935
|
])
|
|
@@ -1934,14 +1939,14 @@ const Nl = { class: "flex items-center" }, Bl = { class: "shrink-0 self-start" }
|
|
|
1934
1939
|
]);
|
|
1935
1940
|
};
|
|
1936
1941
|
}
|
|
1937
|
-
},
|
|
1942
|
+
}, Xr = {
|
|
1938
1943
|
success: 5e3,
|
|
1939
1944
|
info: 5e3,
|
|
1940
1945
|
warning: 5e3,
|
|
1941
1946
|
danger: 0
|
|
1942
1947
|
// sticky by default
|
|
1943
1948
|
}, ys = ["top-left", "top-right", "center", "bottom-left", "bottom-right"];
|
|
1944
|
-
function
|
|
1949
|
+
function uc() {
|
|
1945
1950
|
const e = Et({
|
|
1946
1951
|
isVisible: !1,
|
|
1947
1952
|
type: "info",
|
|
@@ -1977,7 +1982,7 @@ function cc() {
|
|
|
1977
1982
|
persistent: v = !1
|
|
1978
1983
|
} = u;
|
|
1979
1984
|
e.type = p, e.message = y, e.component = m ? wn(m) : null, e.props = g, e.closeable = h, e.persistent = v, e.isVisible = !0;
|
|
1980
|
-
const k = b !== null ? b :
|
|
1985
|
+
const k = b !== null ? b : Xr[p];
|
|
1981
1986
|
e.duration = k, k > 0 && l(k);
|
|
1982
1987
|
},
|
|
1983
1988
|
hide: s,
|
|
@@ -1997,7 +2002,7 @@ function cc() {
|
|
|
1997
2002
|
}
|
|
1998
2003
|
};
|
|
1999
2004
|
}
|
|
2000
|
-
class
|
|
2005
|
+
class dc {
|
|
2001
2006
|
constructor() {
|
|
2002
2007
|
this.outlets = /* @__PURE__ */ new Map(), this.toastState = Et({
|
|
2003
2008
|
toasts: [],
|
|
@@ -2015,7 +2020,7 @@ class uc {
|
|
|
2015
2020
|
* @returns {Object} Notification outlet instance
|
|
2016
2021
|
*/
|
|
2017
2022
|
getOutlet(t = "default") {
|
|
2018
|
-
return this.outlets.has(t) || this.outlets.set(t,
|
|
2023
|
+
return this.outlets.has(t) || this.outlets.set(t, uc()), this.outlets.get(t);
|
|
2019
2024
|
}
|
|
2020
2025
|
/**
|
|
2021
2026
|
* Show a banner notification in the specified outlet
|
|
@@ -2118,7 +2123,7 @@ class uc {
|
|
|
2118
2123
|
closeable: s = !0,
|
|
2119
2124
|
duration: l = null,
|
|
2120
2125
|
position: i = null
|
|
2121
|
-
} = t, c = ++this._toastIdCounter, f = i && ys.includes(i) ? i : this.toastState.defaultPosition, d = l !== null ? l :
|
|
2126
|
+
} = t, c = ++this._toastIdCounter, f = i && ys.includes(i) ? i : this.toastState.defaultPosition, d = l !== null ? l : Xr[n], u = {
|
|
2122
2127
|
id: c,
|
|
2123
2128
|
type: n,
|
|
2124
2129
|
message: o,
|
|
@@ -2211,7 +2216,7 @@ class uc {
|
|
|
2211
2216
|
n && (n.timeout && clearTimeout(n.timeout), this._toastTimers.delete(t));
|
|
2212
2217
|
}
|
|
2213
2218
|
}
|
|
2214
|
-
const Qe = new
|
|
2219
|
+
const Qe = new dc(), Bp = {
|
|
2215
2220
|
__name: "SparkNotificationOutlet",
|
|
2216
2221
|
props: {
|
|
2217
2222
|
name: {
|
|
@@ -2270,7 +2275,7 @@ const Qe = new uc(), Np = {
|
|
|
2270
2275
|
onMouseleave: l
|
|
2271
2276
|
}, {
|
|
2272
2277
|
default: we(() => [
|
|
2273
|
-
o.value.state.component ? (T(), Me(vt(o.value.state.component),
|
|
2278
|
+
o.value.state.component ? (T(), Me(vt(o.value.state.component), ha(wt({ key: 0 }, o.value.state.props)), null, 16)) : (T(), P(ze, { key: 1 }, [
|
|
2274
2279
|
qe(xe(o.value.state.message), 1)
|
|
2275
2280
|
], 64))
|
|
2276
2281
|
]),
|
|
@@ -2280,7 +2285,7 @@ const Qe = new uc(), Np = {
|
|
|
2280
2285
|
_: 1
|
|
2281
2286
|
}));
|
|
2282
2287
|
}
|
|
2283
|
-
},
|
|
2288
|
+
}, fc = { class: "fixed top-4 left-4 z-[2000] flex flex-col gap-3 max-w-sm w-full pointer-events-none" }, pc = { class: "fixed top-4 right-4 z-[2000] flex flex-col gap-3 max-w-sm w-full pointer-events-none" }, mc = { class: "fixed top-[40%] left-1/2 -translate-x-1/2 -translate-y-1/2 z-[2000] flex flex-col gap-3 max-w-sm w-full pointer-events-none" }, gc = { class: "fixed bottom-4 left-4 z-[2000] flex flex-col-reverse gap-3 max-w-sm w-full pointer-events-none" }, hc = { class: "fixed bottom-4 right-4 z-[2000] flex flex-col-reverse gap-3 max-w-sm w-full pointer-events-none" }, qp = {
|
|
2284
2289
|
__name: "SparkToastContainer",
|
|
2285
2290
|
setup(e) {
|
|
2286
2291
|
const t = Qe.toastState, n = Q(() => t.toasts.filter((f) => f.position === "top-left")), o = Q(() => t.toasts.filter((f) => f.position === "top-right")), r = Q(() => t.toasts.filter((f) => f.position === "center")), a = Q(
|
|
@@ -2295,7 +2300,7 @@ const Qe = new uc(), Np = {
|
|
|
2295
2300
|
Qe.resumeToast(f);
|
|
2296
2301
|
};
|
|
2297
2302
|
return (f, d) => (T(), Me(lr, { to: "body" }, [
|
|
2298
|
-
_("div",
|
|
2303
|
+
_("div", fc, [
|
|
2299
2304
|
oe(Tn, {
|
|
2300
2305
|
"enter-active-class": "transition-all duration-300 ease-out",
|
|
2301
2306
|
"enter-from-class": "opacity-0 -translate-x-4",
|
|
@@ -2331,7 +2336,7 @@ const Qe = new uc(), Np = {
|
|
|
2331
2336
|
_: 1
|
|
2332
2337
|
})
|
|
2333
2338
|
]),
|
|
2334
|
-
_("div",
|
|
2339
|
+
_("div", pc, [
|
|
2335
2340
|
oe(Tn, {
|
|
2336
2341
|
"enter-active-class": "transition-all duration-300 ease-out",
|
|
2337
2342
|
"enter-from-class": "opacity-0 translate-x-4",
|
|
@@ -2367,7 +2372,7 @@ const Qe = new uc(), Np = {
|
|
|
2367
2372
|
_: 1
|
|
2368
2373
|
})
|
|
2369
2374
|
]),
|
|
2370
|
-
_("div",
|
|
2375
|
+
_("div", mc, [
|
|
2371
2376
|
oe(Tn, {
|
|
2372
2377
|
"enter-active-class": "transition-all duration-300 ease-out",
|
|
2373
2378
|
"enter-from-class": "opacity-0 scale-95",
|
|
@@ -2403,7 +2408,7 @@ const Qe = new uc(), Np = {
|
|
|
2403
2408
|
_: 1
|
|
2404
2409
|
})
|
|
2405
2410
|
]),
|
|
2406
|
-
_("div",
|
|
2411
|
+
_("div", gc, [
|
|
2407
2412
|
oe(Tn, {
|
|
2408
2413
|
"enter-active-class": "transition-all duration-300 ease-out",
|
|
2409
2414
|
"enter-from-class": "opacity-0 -translate-x-4",
|
|
@@ -2439,7 +2444,7 @@ const Qe = new uc(), Np = {
|
|
|
2439
2444
|
_: 1
|
|
2440
2445
|
})
|
|
2441
2446
|
]),
|
|
2442
|
-
_("div",
|
|
2447
|
+
_("div", hc, [
|
|
2443
2448
|
oe(Tn, {
|
|
2444
2449
|
"enter-active-class": "transition-all duration-300 ease-out",
|
|
2445
2450
|
"enter-from-class": "opacity-0 translate-x-4",
|
|
@@ -2477,7 +2482,7 @@ const Qe = new uc(), Np = {
|
|
|
2477
2482
|
])
|
|
2478
2483
|
]));
|
|
2479
2484
|
}
|
|
2480
|
-
},
|
|
2485
|
+
}, Kr = In(
|
|
2481
2486
|
"brandFilter",
|
|
2482
2487
|
() => {
|
|
2483
2488
|
const e = Et({
|
|
@@ -2521,27 +2526,27 @@ const Qe = new uc(), Np = {
|
|
|
2521
2526
|
paths: ["state.brands"]
|
|
2522
2527
|
}
|
|
2523
2528
|
}
|
|
2524
|
-
),
|
|
2529
|
+
), vc = { class: "flex grow flex-col gap-y-5 overflow-y-auto bg-white rounded-lg" }, yc = { class: "flex flex-1 flex-col" }, bc = { class: "divide-y divide-gray-200" }, xc = { class: "flex px-[22px] py-2.5 text-[12px] items-center" }, wc = { class: "ml-auto flex items-center" }, Sc = {
|
|
2525
2530
|
key: 0,
|
|
2526
2531
|
class: "flex px-[22px] py-[15px] text-gray-500 text-sm"
|
|
2527
|
-
},
|
|
2532
|
+
}, kc = ["onClick"], Ec = { class: "w-full gap-y-1 flex justify-between" }, Tc = { class: "flex flex-col" }, Cc = { class: "flex items-center" }, _c = { class: "font-medium text-base text-gray-900" }, $c = {
|
|
2528
2533
|
key: 0,
|
|
2529
2534
|
class: "inline-flex items-center rounded-full bg-green-100 px-1.5 py-0.5 text-xs font-medium text-green-800 ml-1"
|
|
2530
|
-
},
|
|
2535
|
+
}, Mc = { class: "text-sm text-gray-500 font-normal" }, Lc = { class: "flex items-center" }, Oc = ["src", "alt"], Pc = {
|
|
2531
2536
|
__name: "SparkBrandSelector",
|
|
2532
2537
|
emits: ["close", "select"],
|
|
2533
2538
|
setup(e, { emit: t }) {
|
|
2534
|
-
const n = t, o =
|
|
2539
|
+
const n = t, o = Kr(), r = (a) => {
|
|
2535
2540
|
n("select", a);
|
|
2536
2541
|
};
|
|
2537
2542
|
return (a, s) => {
|
|
2538
2543
|
const l = Ue("font-awesome-icon");
|
|
2539
|
-
return T(), P("div",
|
|
2540
|
-
_("div",
|
|
2541
|
-
_("div",
|
|
2542
|
-
_("div",
|
|
2544
|
+
return T(), P("div", vc, [
|
|
2545
|
+
_("div", yc, [
|
|
2546
|
+
_("div", bc, [
|
|
2547
|
+
_("div", xc, [
|
|
2543
2548
|
s[1] || (s[1] = _("div", null, "Filter by Brand", -1)),
|
|
2544
|
-
_("div",
|
|
2549
|
+
_("div", wc, [
|
|
2545
2550
|
oe(l, {
|
|
2546
2551
|
icon: ne(Ie).farTimes,
|
|
2547
2552
|
class: "size-4 text-gray-400 cursor-pointer",
|
|
@@ -2549,29 +2554,29 @@ const Qe = new uc(), Np = {
|
|
|
2549
2554
|
}, null, 8, ["icon"])
|
|
2550
2555
|
])
|
|
2551
2556
|
]),
|
|
2552
|
-
ne(o).allBrands.length === 0 ? (T(), P("div",
|
|
2557
|
+
ne(o).allBrands.length === 0 ? (T(), P("div", Sc, " No brands configured ")) : he("", !0),
|
|
2553
2558
|
(T(!0), P(ze, null, st(ne(o).allBrands, (i) => (T(), P("div", {
|
|
2554
2559
|
key: i.id,
|
|
2555
2560
|
class: _e([i.current ? "bg-gray-50" : "hover:bg-gray-50", "flex px-[22px] py-[15px] cursor-pointer"]),
|
|
2556
2561
|
onClick: (c) => r(i)
|
|
2557
2562
|
}, [
|
|
2558
|
-
_("div",
|
|
2559
|
-
_("div",
|
|
2560
|
-
_("div",
|
|
2561
|
-
_("div",
|
|
2562
|
-
i.current ? (T(), P("span",
|
|
2563
|
+
_("div", Ec, [
|
|
2564
|
+
_("div", Tc, [
|
|
2565
|
+
_("div", Cc, [
|
|
2566
|
+
_("div", _c, xe(i.name), 1),
|
|
2567
|
+
i.current ? (T(), P("span", $c, " Current ")) : he("", !0)
|
|
2563
2568
|
]),
|
|
2564
|
-
_("div",
|
|
2569
|
+
_("div", Mc, xe(i.current ? "Current Brand" : "Change to"), 1)
|
|
2565
2570
|
]),
|
|
2566
|
-
_("div",
|
|
2571
|
+
_("div", Lc, [
|
|
2567
2572
|
_("img", {
|
|
2568
2573
|
src: i.logo,
|
|
2569
2574
|
alt: `${i.name} logo`,
|
|
2570
2575
|
class: "h-8 w-auto"
|
|
2571
|
-
}, null, 8,
|
|
2576
|
+
}, null, 8, Oc)
|
|
2572
2577
|
])
|
|
2573
2578
|
])
|
|
2574
|
-
], 10,
|
|
2579
|
+
], 10, kc))), 128)),
|
|
2575
2580
|
s[2] || (s[2] = _("div", null, null, -1))
|
|
2576
2581
|
]),
|
|
2577
2582
|
s[3] || (s[3] = _("div", { class: "mt-auto" }, null, -1))
|
|
@@ -2579,7 +2584,7 @@ const Qe = new uc(), Np = {
|
|
|
2579
2584
|
]);
|
|
2580
2585
|
};
|
|
2581
2586
|
}
|
|
2582
|
-
},
|
|
2587
|
+
}, Ac = ["disabled"], mt = {
|
|
2583
2588
|
__name: "SparkButton",
|
|
2584
2589
|
props: {
|
|
2585
2590
|
size: {
|
|
@@ -2689,16 +2694,16 @@ const Qe = new uc(), Np = {
|
|
|
2689
2694
|
onClick: c[0] || (c[0] = (f) => i.$emit("click"))
|
|
2690
2695
|
}, [
|
|
2691
2696
|
Ke(i.$slots, "default")
|
|
2692
|
-
], 10,
|
|
2697
|
+
], 10, Ac));
|
|
2693
2698
|
}
|
|
2694
|
-
},
|
|
2699
|
+
}, Jr = {
|
|
2695
2700
|
__name: "SparkButtonGroup",
|
|
2696
2701
|
setup(e) {
|
|
2697
2702
|
const t = ke(null), n = ke(0);
|
|
2698
2703
|
function o() {
|
|
2699
2704
|
n.value = t.value?.children.length || 0;
|
|
2700
2705
|
}
|
|
2701
|
-
return Gt(o), cr(o),
|
|
2706
|
+
return Gt(o), cr(o), va("buttonGroup", {
|
|
2702
2707
|
isInGroup: !0,
|
|
2703
2708
|
getButtonIndex: (s) => t.value ? Array.from(t.value.children).indexOf(s) : -1,
|
|
2704
2709
|
getButtonCount: () => n.value
|
|
@@ -2710,13 +2715,13 @@ const Qe = new uc(), Np = {
|
|
|
2710
2715
|
Ke(s.$slots, "default")
|
|
2711
2716
|
], 512));
|
|
2712
2717
|
}
|
|
2713
|
-
},
|
|
2718
|
+
}, Rc = { class: "flex flex-col divide-y divide-gray-300 rounded-lg border border-gray-300 text-gray-700 bg-gray-100" }, Fc = {
|
|
2714
2719
|
key: 0,
|
|
2715
2720
|
class: "px-[30px] py-5"
|
|
2716
|
-
},
|
|
2721
|
+
}, Ic = {
|
|
2717
2722
|
key: 1,
|
|
2718
2723
|
class: "p-5"
|
|
2719
|
-
},
|
|
2724
|
+
}, Wp = {
|
|
2720
2725
|
__name: "SparkCard",
|
|
2721
2726
|
props: {
|
|
2722
2727
|
padded: {
|
|
@@ -2730,8 +2735,8 @@ const Qe = new uc(), Np = {
|
|
|
2730
2735
|
},
|
|
2731
2736
|
setup(e) {
|
|
2732
2737
|
const t = e;
|
|
2733
|
-
return (n, o) => (T(), P("div",
|
|
2734
|
-
n.$slots.header ? (T(), P("div",
|
|
2738
|
+
return (n, o) => (T(), P("div", Rc, [
|
|
2739
|
+
n.$slots.header ? (T(), P("div", Fc, [
|
|
2735
2740
|
Ke(n.$slots, "header")
|
|
2736
2741
|
])) : he("", !0),
|
|
2737
2742
|
_("div", {
|
|
@@ -2739,12 +2744,12 @@ const Qe = new uc(), Np = {
|
|
|
2739
2744
|
}, [
|
|
2740
2745
|
Ke(n.$slots, "default")
|
|
2741
2746
|
], 2),
|
|
2742
|
-
n.$slots.footer ? (T(), P("div",
|
|
2747
|
+
n.$slots.footer ? (T(), P("div", Ic, [
|
|
2743
2748
|
Ke(n.$slots, "footer")
|
|
2744
2749
|
])) : he("", !0)
|
|
2745
2750
|
]));
|
|
2746
2751
|
}
|
|
2747
|
-
},
|
|
2752
|
+
}, Up = {
|
|
2748
2753
|
__name: "SparkEntityBadge",
|
|
2749
2754
|
props: {
|
|
2750
2755
|
/** Display text */
|
|
@@ -2848,7 +2853,7 @@ const Qe = new uc(), Np = {
|
|
|
2848
2853
|
}
|
|
2849
2854
|
}
|
|
2850
2855
|
return (m, g) => {
|
|
2851
|
-
const h = Ue("font-awesome-icon"), b =
|
|
2856
|
+
const h = Ue("font-awesome-icon"), b = ya("spark-tooltip");
|
|
2852
2857
|
return Qt((T(), Me(vt(d.value ? "a" : "span"), {
|
|
2853
2858
|
href: u.value || void 0,
|
|
2854
2859
|
target: d.value && e.openNew ? "_blank" : void 0,
|
|
@@ -2893,7 +2898,7 @@ const It = function(e) {
|
|
|
2893
2898
|
let o = t.firstChild;
|
|
2894
2899
|
return !o || o instanceof HTMLElement ? o : ((n = document.createElement("div")).appendChild(o), n);
|
|
2895
2900
|
};
|
|
2896
|
-
const
|
|
2901
|
+
const Dc = function(e) {
|
|
2897
2902
|
if (!(e && e instanceof Element && e.offsetParent)) return !1;
|
|
2898
2903
|
let t = !1, n = !1;
|
|
2899
2904
|
if (e.scrollWidth > e.clientWidth) {
|
|
@@ -2906,7 +2911,7 @@ const Ic = function(e) {
|
|
|
2906
2911
|
}
|
|
2907
2912
|
return t || n;
|
|
2908
2913
|
}, nn = function(e, t = void 0) {
|
|
2909
|
-
return !e || e === document.body || t && e === t ? null :
|
|
2914
|
+
return !e || e === document.body || t && e === t ? null : Dc(e) ? e : nn(e.parentElement, t);
|
|
2910
2915
|
};
|
|
2911
2916
|
const bs = (e = !0, t = "--f-scrollbar-compensate", n = "--f-body-margin", o = "hide-scrollbar") => {
|
|
2912
2917
|
const r = document, a = r.body, s = r.documentElement;
|
|
@@ -2964,9 +2969,9 @@ function An(e, t) {
|
|
|
2964
2969
|
return typeof a == "function" ? `${a}` == `${s}` : xs(a) && xs(s) ? An(a, s) : a === s;
|
|
2965
2970
|
});
|
|
2966
2971
|
}
|
|
2967
|
-
const
|
|
2972
|
+
const Qr = function(e) {
|
|
2968
2973
|
for (const t of oo) t.getState() === ct.Running && t.tick(bo ? e - bo : 0);
|
|
2969
|
-
bo = e, bn = window.requestAnimationFrame(
|
|
2974
|
+
bo = e, bn = window.requestAnimationFrame(Qr);
|
|
2970
2975
|
};
|
|
2971
2976
|
var ct, Bt, gn;
|
|
2972
2977
|
(function(e) {
|
|
@@ -3029,7 +3034,7 @@ function Zt() {
|
|
|
3029
3034
|
var N, F;
|
|
3030
3035
|
return N = j, F = V, M.has(N) && M.set(N, M.get(N).filter((J) => J !== F)), ae;
|
|
3031
3036
|
}, start: function(j) {
|
|
3032
|
-
return An(g, h) || (e = ct.Initializing, y = Object.assign({}, g), oo.add(this), bn || (bn = window.requestAnimationFrame(
|
|
3037
|
+
return An(g, h) || (e = ct.Initializing, y = Object.assign({}, g), oo.add(this), bn || (bn = window.requestAnimationFrame(Qr)), ye(j)), ae;
|
|
3033
3038
|
}, pause: function() {
|
|
3034
3039
|
return m && (clearTimeout(m), m = null), e === ct.Running && (e = ct.Paused, ee("pause", g)), ae;
|
|
3035
3040
|
}, end: Le, tick: function(j) {
|
|
@@ -3104,7 +3109,7 @@ function ws(e) {
|
|
|
3104
3109
|
function Ss(e) {
|
|
3105
3110
|
return Jo(e, "targetTouches");
|
|
3106
3111
|
}
|
|
3107
|
-
function
|
|
3112
|
+
function ea(e) {
|
|
3108
3113
|
return Jo(e, "changedTouches");
|
|
3109
3114
|
}
|
|
3110
3115
|
function Nt(e) {
|
|
@@ -3117,10 +3122,10 @@ function Bn(e) {
|
|
|
3117
3122
|
}
|
|
3118
3123
|
const ks = (e) => {
|
|
3119
3124
|
e.cancelable && e.preventDefault();
|
|
3120
|
-
}, Vt = { passive: !1 },
|
|
3125
|
+
}, Vt = { passive: !1 }, jc = { panThreshold: 5, swipeThreshold: 3, ignore: ["textarea", "input", "select", "[contenteditable]", "[data-selectable]", "[data-draggable]"] };
|
|
3121
3126
|
let qn = !1, $n = !0;
|
|
3122
3127
|
const En = (e, t) => {
|
|
3123
|
-
let n, o, r, a, s, l = Object.assign(Object.assign({},
|
|
3128
|
+
let n, o, r, a, s, l = Object.assign(Object.assign({}, jc), t), i = [], c = [], f = [], d = !1, u = !1, p = !1, y = !1, m = 0, g = 0, h = 0, b = 0, v = 0, k = 0, x = 0, L = 0, M = 0, ee = [];
|
|
3124
3129
|
const ye = /* @__PURE__ */ new Map();
|
|
3125
3130
|
function le(W) {
|
|
3126
3131
|
const ve = Bn(c), pe = Bn(f), ie = ve && pe ? ve / pe : 0, Ee = Math.abs(x) > Math.abs(L) ? x : L, De = { srcEvent: n, isPanRecognized: d, isSwipeRecognized: u, firstTouch: i, previousTouch: f, currentTouch: c, deltaX: h, deltaY: b, offsetX: v, offsetY: k, velocityX: x, velocityY: L, velocity: Ee, angle: M, axis: r, scale: ie, center: o };
|
|
@@ -3170,7 +3175,7 @@ const En = (e, t) => {
|
|
|
3170
3175
|
}
|
|
3171
3176
|
function N(W) {
|
|
3172
3177
|
if (n = W, !i.length) return;
|
|
3173
|
-
const ve = Ss(W), pe =
|
|
3178
|
+
const ve = Ss(W), pe = ea(W);
|
|
3174
3179
|
if (g = ve.length, o = Nt(pe), pe.length && ae(Nt(pe)), f = [...c], c = [...ve], i = [...ve], g > 0) le("end"), d = !1, u = !1, ee = [];
|
|
3175
3180
|
else {
|
|
3176
3181
|
const ie = l.swipeThreshold;
|
|
@@ -3525,7 +3530,7 @@ const jo = (e, t = {}, n = {}) => {
|
|
|
3525
3530
|
let C = Object.assign({}, m), O = ve(V() ? H.scale : y.scale);
|
|
3526
3531
|
const Z = i.getCurrentVelocities(), Y = Le(), te = (((D = (E = E || {}).currentTouch) === null || D === void 0 ? void 0 : D.length) || 0) > 1, K = E.velocityX || 0, ce = E.velocityY || 0;
|
|
3527
3532
|
let Te = E.center;
|
|
3528
|
-
E.srcEvent && (Te = Nt(
|
|
3533
|
+
E.srcEvent && (Te = Nt(ea(E.srcEvent)));
|
|
3529
3534
|
let Ce = E.deltaX || 0, $e = E.deltaY || 0;
|
|
3530
3535
|
switch (w) {
|
|
3531
3536
|
case se.MoveRight:
|
|
@@ -4219,7 +4224,7 @@ const so = (e, t = {}, n = {}) => {
|
|
|
4219
4224
|
if (!G || (function(me, be) {
|
|
4220
4225
|
var Ae, He, Be;
|
|
4221
4226
|
if (!(u && y && r && be && Fe(be) && be !== "tween")) return !1;
|
|
4222
|
-
for (const
|
|
4227
|
+
for (const ua of N) if (y - ua.dim > 0.5) return !1;
|
|
4223
4228
|
if (m > 0.5 || g > 0.5) return;
|
|
4224
4229
|
const Ge = F.length;
|
|
4225
4230
|
let Ye = me > M ? 1 : -1;
|
|
@@ -4420,7 +4425,7 @@ const en = function(e = "", t = "", n = "") {
|
|
|
4420
4425
|
const Ms = { tpl: (e) => `<img class="f-panzoom__content"
|
|
4421
4426
|
${e.srcset ? 'data-lazy-srcset="{{srcset}}"' : ""}
|
|
4422
4427
|
${e.sizes ? 'data-lazy-sizes="{{sizes}}"' : ""}
|
|
4423
|
-
data-lazy-src="{{src}}" alt="{{alt}}" />` },
|
|
4428
|
+
data-lazy-src="{{src}}" alt="{{alt}}" />` }, Hc = () => {
|
|
4424
4429
|
let e;
|
|
4425
4430
|
function t(f, d) {
|
|
4426
4431
|
const u = e?.getOptions().Zoomable;
|
|
@@ -4492,7 +4497,7 @@ const Ms = { tpl: (e) => `<img class="f-panzoom__content"
|
|
|
4492
4497
|
e = void 0;
|
|
4493
4498
|
}, execute: c };
|
|
4494
4499
|
};
|
|
4495
|
-
const Ls = { syncOnChange: !1, syncOnClick: !0, syncOnHover: !1 },
|
|
4500
|
+
const Ls = { syncOnChange: !1, syncOnClick: !0, syncOnHover: !1 }, ta = () => {
|
|
4496
4501
|
let e, t;
|
|
4497
4502
|
function n() {
|
|
4498
4503
|
const p = e?.getOptions().Sync;
|
|
@@ -4564,7 +4569,7 @@ const Ls = { syncOnChange: !1, syncOnClick: !0, syncOnHover: !1 }, na = () => {
|
|
|
4564
4569
|
return t;
|
|
4565
4570
|
} };
|
|
4566
4571
|
};
|
|
4567
|
-
const Os = { showLoading: !0, preload: 1 }, Cn = "is-lazyloading", wo = "is-lazyloaded", Ps = "has-lazyerror",
|
|
4572
|
+
const Os = { showLoading: !0, preload: 1 }, Cn = "is-lazyloading", wo = "is-lazyloaded", Ps = "has-lazyerror", na = () => {
|
|
4568
4573
|
let e;
|
|
4569
4574
|
function t() {
|
|
4570
4575
|
const r = e?.getOptions().Lazyload;
|
|
@@ -4612,7 +4617,7 @@ const Os = { showLoading: !0, preload: 1 }, Cn = "is-lazyloading", wo = "is-lazy
|
|
|
4612
4617
|
e?.off("render", o), e = void 0;
|
|
4613
4618
|
} };
|
|
4614
4619
|
};
|
|
4615
|
-
const As = '<svg width="24" height="24" viewBox="0 0 24 24" tabindex="-1">', Rs = "</svg>", Fs = { prevTpl: As + '<path d="M15 3l-9 9 9 9"></path>' + Rs, nextTpl: As + '<path d="M9 3l9 9-9 9"></path>' + Rs },
|
|
4620
|
+
const As = '<svg width="24" height="24" viewBox="0 0 24 24" tabindex="-1">', Rs = "</svg>", Fs = { prevTpl: As + '<path d="M15 3l-9 9 9 9"></path>' + Rs, nextTpl: As + '<path d="M9 3l9 9-9 9"></path>' + Rs }, Vc = () => {
|
|
4616
4621
|
let e, t, n;
|
|
4617
4622
|
function o() {
|
|
4618
4623
|
const l = e?.getOptions().Arrows;
|
|
@@ -4640,13 +4645,13 @@ const As = '<svg width="24" height="24" viewBox="0 0 24 24" tabindex="-1">', Rs
|
|
|
4640
4645
|
a(), e?.off(["change", "refresh"], s), e = void 0;
|
|
4641
4646
|
} };
|
|
4642
4647
|
};
|
|
4643
|
-
const
|
|
4644
|
-
for (const [e, t] of Object.entries(
|
|
4648
|
+
const oa = '<circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/>', So = '<g><line x1="11" y1="8" x2="11" y2="14"></line></g>' + oa, zc = { moveLeft: ["moveLeft", "MOVE_LEFT", '<path d="M5 12h14M5 12l6 6M5 12l6-6"/>'], moveRight: ["moveRight", "MOVE_RIGHT", '<path d="M5 12h14M13 18l6-6M13 6l6 6"/>'], moveUp: ["moveUp", "MOVE_UP", '<path d="M12 5v14M18 11l-6-6M6 11l6-6"/>'], moveDown: ["moveDown", "MOVE_DOWN", '<path d="M12 5v14M18 13l-6 6M6 13l6 6"/>'], zoomOut: ["zoomOut", "ZOOM_OUT", oa], zoomIn: ["zoomIn", "ZOOM_IN", So], toggleFull: ["toggleFull", "TOGGLE_FULL", So], iterateZoom: ["iterateZoom", "ITERATE_ZOOM", So], toggle1to1: ["toggleFull", "TOGGLE_FULL", '<path d="M3.51 3.07c5.74.02 11.48-.02 17.22.02 1.37.1 2.34 1.64 2.18 3.13 0 4.08.02 8.16 0 12.23-.1 1.54-1.47 2.64-2.79 2.46-5.61-.01-11.24.02-16.86-.01-1.36-.12-2.33-1.65-2.17-3.14 0-4.07-.02-8.16 0-12.23.1-1.36 1.22-2.48 2.42-2.46Z"/><path d="M5.65 8.54h1.49v6.92m8.94-6.92h1.49v6.92M11.5 9.4v.02m0 5.18v0"/>'], rotateCCW: ["rotateCCW", "ROTATE_CCW", '<path d="M15 4.55a8 8 0 0 0-6 14.9M9 15v5H4M18.37 7.16v.01M13 19.94v.01M16.84 18.37v.01M19.37 15.1v.01M19.94 11v.01"/>'], rotateCW: ["rotateCW", "ROTATE_CW", '<path d="M9 4.55a8 8 0 0 1 6 14.9M15 15v5h5M5.63 7.16v.01M4.06 11v.01M4.63 15.1v.01M7.16 18.37v.01M11 19.94v.01"/>'], flipX: ["flipX", "FLIP_X", '<path d="M12 3v18M16 7v10h5L16 7M8 7v10H3L8 7"/>'], flipY: ["flipY", "FLIP_Y", '<path d="M3 12h18M7 16h10L7 21v-5M7 8h10L7 3v5"/>'], reset: ["reset", "RESET", '<path d="M20 11A8.1 8.1 0 0 0 4.5 9M4 5v4h4M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"/>'], toggleFS: ["toggleFS", "TOGGLE_FS", '<g><path d="M14.5 9.5 21 3m0 0h-6m6 0v6M3 21l6.5-6.5M3 21v-6m0 6h6"/></g><g><path d="m14 10 7-7m-7 7h6m-6 0V4M3 21l7-7m0 0v6m0-6H4"/></g>'] }, ts = {};
|
|
4649
|
+
for (const [e, t] of Object.entries(zc)) ts[e] = { tpl: `<button data-panzoom-action="${t[0]}" class="f-button" title="{{${t[1]}}}"><svg>${t[2]}</svg></button>` };
|
|
4645
4650
|
var Is;
|
|
4646
4651
|
(function(e) {
|
|
4647
4652
|
e.Left = "left", e.middle = "middle", e.right = "right";
|
|
4648
4653
|
})(Is || (Is = {}));
|
|
4649
|
-
const Ds = Object.assign({ counter: { tpl: '<div class="f-counter"><span data-carousel-page></span>/<span data-carousel-pages></span></div>' }, download: { tpl: '<button data-carousel-download class="f-button" title="{{DOWNLOAD}}"><svg><path d="M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2M7 11l5 5 5-5M12 4v12"/></svg></button>' }, autoplay: { tpl: '<button data-autoplay-action="toggle" class="f-button" title="{{TOGGLE_AUTOPLAY}}"><svg><g><path d="M5 3.5 19 12 5 20.5Z"/></g><g><path d="M8 4v15M17 4v15"/></g></svg></button>' }, thumbs: { tpl: '<button data-thumbs-action="toggle" class="f-button" title="{{TOGGLE_THUMBS}}"><svg><rect width="18" height="14" x="3" y="3" rx="2"/><path d="M4 21h1M9 21h1M14 21h1M19 21h1"/></svg></button>' } }, ts), js = { absolute: !1, display: { left: [], middle: ["zoomIn", "zoomOut", "toggle1to1", "rotateCCW", "rotateCW", "flipX", "flipY", "reset"], right: [] }, enabled: "auto", items: {} },
|
|
4654
|
+
const Ds = Object.assign({ counter: { tpl: '<div class="f-counter"><span data-carousel-page></span>/<span data-carousel-pages></span></div>' }, download: { tpl: '<button data-carousel-download class="f-button" title="{{DOWNLOAD}}"><svg><path d="M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2M7 11l5 5 5-5M12 4v12"/></svg></button>' }, autoplay: { tpl: '<button data-autoplay-action="toggle" class="f-button" title="{{TOGGLE_AUTOPLAY}}"><svg><g><path d="M5 3.5 19 12 5 20.5Z"/></g><g><path d="M8 4v15M17 4v15"/></g></svg></button>' }, thumbs: { tpl: '<button data-thumbs-action="toggle" class="f-button" title="{{TOGGLE_THUMBS}}"><svg><rect width="18" height="14" x="3" y="3" rx="2"/><path d="M4 21h1M9 21h1M14 21h1M19 21h1"/></svg></button>' } }, ts), js = { absolute: !1, display: { left: [], middle: ["zoomIn", "zoomOut", "toggle1to1", "rotateCCW", "rotateCW", "flipX", "flipY", "reset"], right: [] }, enabled: "auto", items: {} }, sa = () => {
|
|
4650
4655
|
let e, t;
|
|
4651
4656
|
function n(r) {
|
|
4652
4657
|
const a = e?.getOptions().Toolbar;
|
|
@@ -4705,7 +4710,7 @@ const Ds = Object.assign({ counter: { tpl: '<div class="f-counter"><span data-ca
|
|
|
4705
4710
|
return !!t;
|
|
4706
4711
|
} };
|
|
4707
4712
|
};
|
|
4708
|
-
const Hs = { autoStart: !0, pauseOnHover: !0, showProgressbar: !0, timeout: 2e3 },
|
|
4713
|
+
const Hs = { autoStart: !0, pauseOnHover: !0, showProgressbar: !0, timeout: 2e3 }, Nc = () => {
|
|
4709
4714
|
let e, t, n = !1, o = !1, r = !1, a = null;
|
|
4710
4715
|
function s(x) {
|
|
4711
4716
|
const L = e?.getOptions().Autoplay;
|
|
@@ -4806,7 +4811,7 @@ const Hs = { autoStart: !0, pauseOnHover: !0, showProgressbar: !0, timeout: 2e3
|
|
|
4806
4811
|
};
|
|
4807
4812
|
const ko = { 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" };
|
|
4808
4813
|
let Eo;
|
|
4809
|
-
const
|
|
4814
|
+
const Bc = () => {
|
|
4810
4815
|
let e, t, n, o, r, a = 0, s = 0, l = !0;
|
|
4811
4816
|
function i(j) {
|
|
4812
4817
|
const V = e?.getOptions().Thumbs;
|
|
@@ -4885,7 +4890,7 @@ const Nc = () => {
|
|
|
4885
4890
|
a = ge("width"), s = ge("clip-width");
|
|
4886
4891
|
})(), J = 4 * (a - s)), F && F.getTotalSlideDim() <= F.getViewportDim() - J ? 1 / 0 : 1;
|
|
4887
4892
|
} }, ko.Carousel || {}, i("Carousel") || {});
|
|
4888
|
-
t = Eo(n, N, { Sync:
|
|
4893
|
+
t = Eo(n, N, { Sync: ta, Lazyload: na }), t.on("ready", () => {
|
|
4889
4894
|
ue(n, "is-syncing"), e?.emit("thumbs:ready"), f() && e?.on("render", x);
|
|
4890
4895
|
}), t.on("destroy", () => {
|
|
4891
4896
|
e?.emit("thumbs:destroy");
|
|
@@ -4986,7 +4991,7 @@ const Nc = () => {
|
|
|
4986
4991
|
return i("type");
|
|
4987
4992
|
}, isEnabled: c };
|
|
4988
4993
|
};
|
|
4989
|
-
const Vs = { autosize: !1, iframeAttr: { allow: "autoplay; fullscreen", scrolling: "auto" }, preload: !1 },
|
|
4994
|
+
const Vs = { autosize: !1, iframeAttr: { allow: "autoplay; fullscreen", scrolling: "auto" }, preload: !1 }, qc = () => {
|
|
4990
4995
|
let e;
|
|
4991
4996
|
function t() {
|
|
4992
4997
|
const s = e?.getOptions().Html;
|
|
@@ -5084,7 +5089,7 @@ const zs = (e, t = {}) => {
|
|
|
5084
5089
|
let a = r + "", s = e.match(/#t=((.*)?\d+s)/);
|
|
5085
5090
|
return s && (a += `#t=${s[1]}`), a;
|
|
5086
5091
|
}, Ns = { autoplay: !1, html5videoTpl: `<video class="f-html5video" playsinline controls controlsList="nodownload" poster="{{poster}}">
|
|
5087
|
-
<source src="{{src}}" type="{{format}}" />Sorry, your browser doesn't support embedded videos.</video>`, iframeAttr: { allow: "autoplay; fullscreen", scrolling: "no", referrerPolicy: "strict-origin-when-cross-origin", credentialless: "" }, vimeo: { byline: 1, color: "00adef", controls: 1, dnt: 1, muted: 0 }, youtube: { controls: 1, enablejsapi: 1, nocookie: 1, rel: 0, fs: 1 } },
|
|
5092
|
+
<source src="{{src}}" type="{{format}}" />Sorry, your browser doesn't support embedded videos.</video>`, iframeAttr: { allow: "autoplay; fullscreen", scrolling: "no", referrerPolicy: "strict-origin-when-cross-origin", credentialless: "" }, vimeo: { byline: 1, color: "00adef", controls: 1, dnt: 1, muted: 0 }, youtube: { controls: 1, enablejsapi: 1, nocookie: 1, rel: 0, fs: 1 } }, Wc = () => {
|
|
5088
5093
|
let e, t = !1;
|
|
5089
5094
|
function n() {
|
|
5090
5095
|
const u = e?.getOptions().Video;
|
|
@@ -5226,7 +5231,7 @@ const zs = (e, t = {}) => {
|
|
|
5226
5231
|
e?.off("addSlide", a), e?.off("attachSlideEl", s), e?.off("detachSlideEl", l), e?.off("ready", c), e?.off("change", i), e?.off("settle", c), e?.off("refresh", d), window.removeEventListener("message", r), e = void 0;
|
|
5227
5232
|
} };
|
|
5228
5233
|
};
|
|
5229
|
-
const Bs = { autoStart: !1, btnTpl: '<button data-fullscreen-action="toggle" class="f-button" title="{{TOGGLE_FULLSCREEN}}"><svg><g><path d="M8 3H5a2 2 0 0 0-2 2v3M21 8V5a2 2 0 0 0-2-2h-3M3 16v3a2 2 0 0 0 2 2h3M16 21h3a2 2 0 0 0 2-2v-3"/></g><g><path d="M15 19v-2a2 2 0 0 1 2-2h2M15 5v2a2 2 0 0 0 2 2h2M5 15h2a2 2 0 0 1 2 2v2M5 9h2a2 2 0 0 0 2-2V5"/></g></svg></button>' }, qs = "in-fullscreen-mode",
|
|
5234
|
+
const Bs = { autoStart: !1, btnTpl: '<button data-fullscreen-action="toggle" class="f-button" title="{{TOGGLE_FULLSCREEN}}"><svg><g><path d="M8 3H5a2 2 0 0 0-2 2v3M21 8V5a2 2 0 0 0-2-2h-3M3 16v3a2 2 0 0 0 2 2h3M16 21h3a2 2 0 0 0 2-2v-3"/></g><g><path d="M15 19v-2a2 2 0 0 1 2-2h2M15 5v2a2 2 0 0 0 2 2h2M5 15h2a2 2 0 0 1 2 2v2M5 9h2a2 2 0 0 0 2-2V5"/></g></svg></button>' }, qs = "in-fullscreen-mode", Uc = () => {
|
|
5230
5235
|
let e;
|
|
5231
5236
|
function t(f) {
|
|
5232
5237
|
const d = e?.getOptions().Fullscreen;
|
|
@@ -5282,7 +5287,7 @@ const Bs = { autoStart: !1, btnTpl: '<button data-fullscreen-action="toggle" cla
|
|
|
5282
5287
|
e?.off("initPlugins", n), e?.off("ready", o), e?.off("click", r);
|
|
5283
5288
|
}, exit: i, inFullscreen: s, request: l, toggle: c };
|
|
5284
5289
|
};
|
|
5285
|
-
let gt,
|
|
5290
|
+
let gt, ra, Ho = !1, Vo = !1, Mn = !1, zo = !1;
|
|
5286
5291
|
const fo = () => {
|
|
5287
5292
|
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;
|
|
5288
5293
|
return { urlHash: e, urlSlug: t.join("-"), urlIndex: o };
|
|
@@ -5304,7 +5309,7 @@ const fo = () => {
|
|
|
5304
5309
|
if (!r || !o) return "";
|
|
5305
5310
|
let a = parseInt(r.index + "", 10) + 1, s = r.slug ? `#${r.slug}` : `#${o}-${a}`;
|
|
5306
5311
|
return (((n = (t = e.getCarousel()) === null || t === void 0 ? void 0 : t.getPages()) === null || n === void 0 ? void 0 : n.length) || 0) < 2 && (s = `#${o}`), s;
|
|
5307
|
-
},
|
|
5312
|
+
}, Zc = () => {
|
|
5308
5313
|
if (!gt || Mn) return;
|
|
5309
5314
|
const e = gt?.getInstance(), t = e?.getCarousel(), { urlSlug: n, urlIndex: o } = fo(), r = e?.getOptions().Hash;
|
|
5310
5315
|
if (r !== !1) {
|
|
@@ -5316,9 +5321,9 @@ const fo = () => {
|
|
|
5316
5321
|
ns();
|
|
5317
5322
|
}
|
|
5318
5323
|
}, Us = () => {
|
|
5319
|
-
gt && (
|
|
5324
|
+
gt && (ra = setTimeout(() => {
|
|
5320
5325
|
Ho = !0, ns(), Ho = !1;
|
|
5321
|
-
}, 300), window.addEventListener("hashchange",
|
|
5326
|
+
}, 300), window.addEventListener("hashchange", Zc, !1));
|
|
5322
5327
|
};
|
|
5323
5328
|
let On;
|
|
5324
5329
|
function Co() {
|
|
@@ -5375,7 +5380,7 @@ const Xn = () => {
|
|
|
5375
5380
|
}
|
|
5376
5381
|
}
|
|
5377
5382
|
return { init: function(a) {
|
|
5378
|
-
clearTimeout(
|
|
5383
|
+
clearTimeout(ra), e = a, e.on("ready", n), e.on("close", r);
|
|
5379
5384
|
}, destroy: function() {
|
|
5380
5385
|
e?.off("ready", n), e?.off("close", r);
|
|
5381
5386
|
const a = e?.getCarousel();
|
|
@@ -5385,33 +5390,33 @@ const Xn = () => {
|
|
|
5385
5390
|
Xn.getInfoFromURL = fo, Xn.startFromUrl = ns, Xn.setup = function(e) {
|
|
5386
5391
|
gt || (gt = e, Gn() && (/complete|interactive|loaded/.test(document.readyState) ? Us() : document.addEventListener("DOMContentLoaded", Us)));
|
|
5387
5392
|
};
|
|
5388
|
-
const
|
|
5389
|
-
const
|
|
5390
|
-
|
|
5393
|
+
const Gc = Object.assign(Object.assign({}, es), { CLOSE: "Close", NEXT: "Next", PREV: "Previous", MODAL: "You can close this modal content with the ESC key", ELEMENT_NOT_FOUND: "HTML Element Not Found", IFRAME_ERROR: "Error Loading Page", NO_CAPTION: "No Caption", TOGGLE_SIDEBAR: "Toggle sidebar" });
|
|
5394
|
+
const aa = '<button class="f-button" title="{{CLOSE}}" data-fancybox-close><svg tabindex="-1" width="24" height="24" viewBox="0 0 24 24"><path d="M19.286 4.714 4.714 19.286M4.714 4.714l14.572 14.572" /></svg></button>';
|
|
5395
|
+
sa().add("close", { tpl: aa });
|
|
5391
5396
|
const $t = (e) => {
|
|
5392
5397
|
e.cancelable && e.preventDefault();
|
|
5393
5398
|
}, Zs = (e = null, t = "", n) => {
|
|
5394
5399
|
if (!e || !e.parentElement || !t) return void (n && n());
|
|
5395
|
-
|
|
5400
|
+
ia(e);
|
|
5396
5401
|
const o = (r) => {
|
|
5397
5402
|
r.target === e && e.dataset.animationName && (e.removeEventListener("animationend", o), delete e.dataset.animationName, n && n(), e.classList.remove(t));
|
|
5398
5403
|
};
|
|
5399
5404
|
e.dataset.animationName = t, e.addEventListener("animationend", o), ue(e, t);
|
|
5400
|
-
},
|
|
5405
|
+
}, ia = (e) => {
|
|
5401
5406
|
e && e.dispatchEvent(new CustomEvent("animationend", { bubbles: !1, cancelable: !0, currentTarget: e }));
|
|
5402
5407
|
};
|
|
5403
5408
|
var Ze;
|
|
5404
5409
|
(function(e) {
|
|
5405
5410
|
e[e.Init = 0] = "Init", e[e.Ready = 1] = "Ready", e[e.Closing = 2] = "Closing", e[e.Destroyed = 3] = "Destroyed";
|
|
5406
5411
|
})(Ze || (Ze = {}));
|
|
5407
|
-
const Rn = { ajax: null, backdropClick: "close", Carousel: {}, closeButton: "auto", closeButtonTpl:
|
|
5412
|
+
const Rn = { ajax: null, backdropClick: "close", Carousel: {}, closeButton: "auto", closeButtonTpl: aa, closeExisting: !1, delegateEl: void 0, dragToClose: !0, fadeEffect: !0, groupAll: !1, groupAttr: "data-fancybox", hideClass: "f-fadeOut", hideScrollbar: !0, id: void 0, idle: !1, keyboard: { Escape: "close", Delete: "close", Backspace: "close", PageUp: "next", PageDown: "prev", ArrowUp: "prev", ArrowDown: "next", ArrowRight: "next", ArrowLeft: "prev" }, l10n: Gc, mainClass: "", mainStyle: {}, mainTpl: `<dialog class="fancybox__dialog">
|
|
5408
5413
|
<div class="fancybox__container" tabindex="0" aria-label="{{MODAL}}">
|
|
5409
5414
|
<div class="fancybox__backdrop"></div>
|
|
5410
5415
|
<div class="fancybox__carousel"></div>
|
|
5411
5416
|
</div>
|
|
5412
5417
|
</dialog>`, modal: !0, on: {}, parentEl: void 0, placeFocusBack: !0, showClass: "f-zoomInUp", startIndex: 0, sync: void 0, theme: "dark", triggerEl: void 0, triggerEvent: void 0, zoomEffect: !0 }, At = /* @__PURE__ */ new Map();
|
|
5413
|
-
let
|
|
5414
|
-
const Gs = "with-fancybox",
|
|
5418
|
+
let Yc = 0;
|
|
5419
|
+
const Gs = "with-fancybox", Xc = () => {
|
|
5415
5420
|
let e, t, n, o, r, a, s, l = Ze.Init, i = Object.assign({}, Rn), c = -1, f = {}, d = [], u = !1, p = !0, y = 0;
|
|
5416
5421
|
function m(A, ...U) {
|
|
5417
5422
|
let re = i[A];
|
|
@@ -5757,7 +5762,7 @@ const Gs = "with-fancybox", Yc = () => {
|
|
|
5757
5762
|
}
|
|
5758
5763
|
}
|
|
5759
5764
|
const te = E?.htmlEl || ((B = E?.panzoomRef) === null || B === void 0 ? void 0 : B.getWrapper());
|
|
5760
|
-
te &&
|
|
5765
|
+
te && ia(te), !Z && O && te && (Y = !0, Zs(te, O, () => {
|
|
5761
5766
|
Je();
|
|
5762
5767
|
})), Z || Y ? setTimeout(() => {
|
|
5763
5768
|
Je();
|
|
@@ -5790,7 +5795,7 @@ const Gs = "with-fancybox", Yc = () => {
|
|
|
5790
5795
|
}, getState: function() {
|
|
5791
5796
|
return l;
|
|
5792
5797
|
}, init: function(A = [], U = {}) {
|
|
5793
|
-
l !== Ze.Init && (We.destroy(), l = Ze.Init), i = ft({}, Rn, U), c = m("id") || "fancybox-" + ++
|
|
5798
|
+
l !== Ze.Init && (We.destroy(), l = Ze.Init), i = ft({}, Rn, U), c = m("id") || "fancybox-" + ++Yc;
|
|
5794
5799
|
const re = At.get(c);
|
|
5795
5800
|
if (re && re.destroy(), At.set(c, We), b("init"), (function() {
|
|
5796
5801
|
for (const [B, w] of Object.entries(Object.assign(Object.assign({}, Ne.Plugins), i.plugins || {}))) if (B && !f[B] && w instanceof Function) {
|
|
@@ -5829,7 +5834,7 @@ const Gs = "with-fancybox", Yc = () => {
|
|
|
5829
5834
|
const B = ft({}, { Autoplay: { autoStart: !1, pauseOnHover: !1, progressbarParentEl: (w) => {
|
|
5830
5835
|
const E = w.getContainer();
|
|
5831
5836
|
return E?.querySelector(".f-carousel__toolbar [data-autoplay-action]") || E;
|
|
5832
|
-
} }, 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:
|
|
5837
|
+
} }, 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: ta, Arrows: Vc, Lazyload: na, Zoomable: Hc, Html: qc, Video: Wc, Autoplay: Nc, Fullscreen: Uc, Thumbs: Bc, Toolbar: sa } }, m("Carousel") || {}, { slides: d, enabled: !0, initialPage: m("startIndex") || 0, l10n: m("l10n") });
|
|
5833
5838
|
o = so(n, B), b("initCarousel", o), o.on("*", (w, E, ...D) => {
|
|
5834
5839
|
b(`Carousel.${E}`, w, ...D);
|
|
5835
5840
|
}), o.on("attachSlideEl", k), o.on("detachSlideEl", x), o.on("contentLoading", le), o.on("contentReady", Le), o.on("ready", ee), o.on("change", M), o.on("settle", ye), o.on("thumbs:ready", ae), o.on("thumbs:destroy", ae), o.init();
|
|
@@ -5973,7 +5978,7 @@ const Ne = { Plugins: { Hash: Xn }, version: "6.1.13", openers: /* @__PURE__ */
|
|
|
5973
5978
|
var e;
|
|
5974
5979
|
return ((e = Ne.getInstance()) === null || e === void 0 ? void 0 : e.getSlide()) || void 0;
|
|
5975
5980
|
}, show: function(e = [], t = {}) {
|
|
5976
|
-
return Ys(),
|
|
5981
|
+
return Ys(), Xc().init(e, t);
|
|
5977
5982
|
}, unbind: function(e, t, n) {
|
|
5978
5983
|
if (!Gn()) return;
|
|
5979
5984
|
let o = document.body, r = null, a = "[data-fancybox]";
|
|
@@ -5982,7 +5987,7 @@ const Ne = { Plugins: { Hash: Xn }, version: "6.1.13", openers: /* @__PURE__ */
|
|
|
5982
5987
|
const c = Ne.openers.get(s) || /* @__PURE__ */ new Map(), f = c.get(l) || /* @__PURE__ */ new Map();
|
|
5983
5988
|
f && i && f.delete(i), f.size && i || c.delete(l), c.size || (Ne.openers.delete(s), s.removeEventListener("click", Ne.fromEvent));
|
|
5984
5989
|
})(o, r, a);
|
|
5985
|
-
} },
|
|
5990
|
+
} }, Kc = {
|
|
5986
5991
|
__name: "SparkFancybox",
|
|
5987
5992
|
props: {
|
|
5988
5993
|
/** Fancybox configuration options */
|
|
@@ -6015,7 +6020,7 @@ const Ne = { Plugins: { Hash: Xn }, version: "6.1.13", openers: /* @__PURE__ */
|
|
|
6015
6020
|
Ke(a.$slots, "default")
|
|
6016
6021
|
], 512));
|
|
6017
6022
|
}
|
|
6018
|
-
},
|
|
6023
|
+
}, Jc = ["innerHTML"], Qc = { key: 1 }, Zp = {
|
|
6019
6024
|
__name: "SparkTooltip",
|
|
6020
6025
|
props: {
|
|
6021
6026
|
/** Tooltip text (alternative to #content slot) */
|
|
@@ -6063,8 +6068,8 @@ const Ne = { Plugins: { Hash: Xn }, version: "6.1.13", openers: /* @__PURE__ */
|
|
|
6063
6068
|
const t = e, n = Bo(), o = ke(null), r = ke(null), a = ke(null), s = ke(!1);
|
|
6064
6069
|
let l = null, i = null;
|
|
6065
6070
|
const c = Q(() => t.interactive ? typeof t.delay == "number" ? 150 : Math.max(t.delay.hide ?? 0, 150) : typeof t.delay == "number" ? 0 : t.delay.hide ?? 0), f = Q(() => {
|
|
6066
|
-
const v = [
|
|
6067
|
-
return t.showArrow && v.push(
|
|
6071
|
+
const v = [Vr(t.offset), Nr(), zr({ padding: 8 })];
|
|
6072
|
+
return t.showArrow && v.push(qr({ element: a, padding: 5 })), v;
|
|
6068
6073
|
}), {
|
|
6069
6074
|
floatingStyles: d,
|
|
6070
6075
|
middlewareData: u,
|
|
@@ -6133,7 +6138,7 @@ const Ne = { Plugins: { Hash: Xn }, version: "6.1.13", openers: /* @__PURE__ */
|
|
|
6133
6138
|
e.html ? (T(), P("span", {
|
|
6134
6139
|
key: 0,
|
|
6135
6140
|
innerHTML: e.content
|
|
6136
|
-
}, null, 8,
|
|
6141
|
+
}, null, 8, Jc)) : (T(), P("span", Qc, xe(e.content), 1))
|
|
6137
6142
|
]),
|
|
6138
6143
|
e.showArrow ? (T(), P("div", {
|
|
6139
6144
|
key: 0,
|
|
@@ -6149,22 +6154,22 @@ const Ne = { Plugins: { Hash: Xn }, version: "6.1.13", openers: /* @__PURE__ */
|
|
|
6149
6154
|
]))
|
|
6150
6155
|
], 64));
|
|
6151
6156
|
}
|
|
6152
|
-
},
|
|
6157
|
+
}, eu = {
|
|
6153
6158
|
key: 0,
|
|
6154
6159
|
class: "block text-sm font-medium text-gray-700 mb-2"
|
|
6155
|
-
},
|
|
6160
|
+
}, tu = { key: 0 }, nu = { class: "text-sm text-gray-600 mb-2" }, ou = {
|
|
6156
6161
|
key: 1,
|
|
6157
6162
|
class: "flex items-center justify-center gap-3"
|
|
6158
|
-
},
|
|
6163
|
+
}, su = { class: "text-gray-700" }, ru = {
|
|
6159
6164
|
key: 0,
|
|
6160
6165
|
class: "absolute inset-0 flex items-center justify-center bg-blue-50/80 rounded-md pointer-events-none"
|
|
6161
|
-
},
|
|
6166
|
+
}, au = {
|
|
6162
6167
|
key: 3,
|
|
6163
6168
|
class: "flex justify-end mt-4"
|
|
6164
|
-
},
|
|
6169
|
+
}, iu = {
|
|
6165
6170
|
key: 4,
|
|
6166
6171
|
class: "text-sm text-gray-500 mt-1"
|
|
6167
|
-
},
|
|
6172
|
+
}, Gp = {
|
|
6168
6173
|
__name: "SparkFileDragUpload",
|
|
6169
6174
|
props: {
|
|
6170
6175
|
uploadUrl: {
|
|
@@ -6320,7 +6325,7 @@ const Ne = { Plugins: { Hash: Xn }, version: "6.1.13", openers: /* @__PURE__ */
|
|
|
6320
6325
|
}), (b, v) => {
|
|
6321
6326
|
const k = Ue("FormKit"), x = Ue("font-awesome-icon");
|
|
6322
6327
|
return T(), P("div", null, [
|
|
6323
|
-
e.label ? (T(), P("label",
|
|
6328
|
+
e.label ? (T(), P("label", eu, xe(e.label), 1)) : he("", !0),
|
|
6324
6329
|
e.variant === "dashed" ? (T(), P("div", {
|
|
6325
6330
|
key: 1,
|
|
6326
6331
|
class: _e(["border-2 border-dashed border-gray-300 rounded-lg p-8 text-center transition-colors", {
|
|
@@ -6342,12 +6347,12 @@ const Ne = { Plugins: { Hash: Xn }, version: "6.1.13", openers: /* @__PURE__ */
|
|
|
6342
6347
|
"outer-class": "hidden",
|
|
6343
6348
|
onInput: y
|
|
6344
6349
|
}, null, 8, ["name", "accept", "disabled"]),
|
|
6345
|
-
s.value ? (T(), P("div",
|
|
6350
|
+
s.value ? (T(), P("div", ou, [
|
|
6346
6351
|
oe(x, {
|
|
6347
6352
|
icon: ne(Ie).farFile,
|
|
6348
6353
|
class: "text-2xl text-gray-500"
|
|
6349
6354
|
}, null, 8, ["icon"]),
|
|
6350
|
-
_("span",
|
|
6355
|
+
_("span", su, xe(s.value.name), 1),
|
|
6351
6356
|
oe(mt, {
|
|
6352
6357
|
variant: "secondary",
|
|
6353
6358
|
size: "sm",
|
|
@@ -6360,12 +6365,12 @@ const Ne = { Plugins: { Hash: Xn }, version: "6.1.13", openers: /* @__PURE__ */
|
|
|
6360
6365
|
]),
|
|
6361
6366
|
_: 1
|
|
6362
6367
|
})
|
|
6363
|
-
])) : (T(), P("div",
|
|
6368
|
+
])) : (T(), P("div", tu, [
|
|
6364
6369
|
oe(x, {
|
|
6365
6370
|
icon: e.icon,
|
|
6366
6371
|
class: "text-4xl text-gray-400 mb-3"
|
|
6367
6372
|
}, null, 8, ["icon"]),
|
|
6368
|
-
_("p",
|
|
6373
|
+
_("p", nu, xe(e.dropText), 1),
|
|
6369
6374
|
oe(mt, {
|
|
6370
6375
|
variant: "secondary",
|
|
6371
6376
|
onClick: m
|
|
@@ -6393,11 +6398,11 @@ const Ne = { Plugins: { Hash: Xn }, version: "6.1.13", openers: /* @__PURE__ */
|
|
|
6393
6398
|
disabled: e.disabled || l.value,
|
|
6394
6399
|
onInput: y
|
|
6395
6400
|
}, null, 8, ["name", "accept", "disabled"]),
|
|
6396
|
-
i.value ? (T(), P("div",
|
|
6401
|
+
i.value ? (T(), P("div", ru, [...v[0] || (v[0] = [
|
|
6397
6402
|
_("span", { class: "text-sm text-blue-600 font-medium" }, "Drop file here", -1)
|
|
6398
6403
|
])])) : he("", !0)
|
|
6399
6404
|
], 34)),
|
|
6400
|
-
e.showUploadButton ? (T(), P("div",
|
|
6405
|
+
e.showUploadButton ? (T(), P("div", au, [
|
|
6401
6406
|
oe(mt, {
|
|
6402
6407
|
size: "lg",
|
|
6403
6408
|
disabled: !s.value || l.value,
|
|
@@ -6414,20 +6419,20 @@ const Ne = { Plugins: { Hash: Xn }, version: "6.1.13", openers: /* @__PURE__ */
|
|
|
6414
6419
|
_: 1
|
|
6415
6420
|
}, 8, ["disabled"])
|
|
6416
6421
|
])) : he("", !0),
|
|
6417
|
-
l.value && !e.showUploadButton ? (T(), P("p",
|
|
6422
|
+
l.value && !e.showUploadButton ? (T(), P("p", iu, xe(e.uploadingText), 1)) : he("", !0)
|
|
6418
6423
|
]);
|
|
6419
6424
|
};
|
|
6420
6425
|
}
|
|
6421
|
-
},
|
|
6426
|
+
}, lu = {
|
|
6422
6427
|
key: 0,
|
|
6423
6428
|
class: "block text-sm font-medium text-gray-700 mb-2"
|
|
6424
|
-
},
|
|
6429
|
+
}, cu = ["href", "data-caption"], uu = ["src", "alt"], du = ["disabled"], fu = {
|
|
6425
6430
|
key: 0,
|
|
6426
6431
|
class: "absolute inset-0 flex items-center justify-center bg-blue-50/80 rounded-md pointer-events-none"
|
|
6427
|
-
},
|
|
6432
|
+
}, pu = {
|
|
6428
6433
|
key: 3,
|
|
6429
6434
|
class: "text-sm text-gray-500 mt-1"
|
|
6430
|
-
},
|
|
6435
|
+
}, Yp = {
|
|
6431
6436
|
__name: "SparkImageUpload",
|
|
6432
6437
|
props: {
|
|
6433
6438
|
modelValue: {
|
|
@@ -6541,8 +6546,8 @@ const Ne = { Plugins: { Hash: Xn }, version: "6.1.13", openers: /* @__PURE__ */
|
|
|
6541
6546
|
return (y, m) => {
|
|
6542
6547
|
const g = Ue("font-awesome-icon"), h = Ue("FormKit");
|
|
6543
6548
|
return T(), P("div", null, [
|
|
6544
|
-
e.label ? (T(), P("label",
|
|
6545
|
-
e.modelValue ? (T(), Me(
|
|
6549
|
+
e.label ? (T(), P("label", lu, xe(e.label), 1)) : he("", !0),
|
|
6550
|
+
e.modelValue ? (T(), Me(Kc, {
|
|
6546
6551
|
key: 1,
|
|
6547
6552
|
class: "mb-2 relative inline-block"
|
|
6548
6553
|
}, {
|
|
@@ -6559,8 +6564,8 @@ const Ne = { Plugins: { Hash: Xn }, version: "6.1.13", openers: /* @__PURE__ */
|
|
|
6559
6564
|
e.height,
|
|
6560
6565
|
"w-auto object-contain border border-gray-300 rounded-md cursor-pointer hover:opacity-80 transition-opacity"
|
|
6561
6566
|
])
|
|
6562
|
-
}, null, 10,
|
|
6563
|
-
], 8,
|
|
6567
|
+
}, null, 10, uu)
|
|
6568
|
+
], 8, cu),
|
|
6564
6569
|
_("button", {
|
|
6565
6570
|
type: "button",
|
|
6566
6571
|
class: "absolute -top-2 -right-2 w-5 h-5 bg-white/80 hover:bg-white text-gray-500 hover:text-gray-700 rounded-full flex items-center justify-center shadow-sm border border-gray-200",
|
|
@@ -6571,7 +6576,7 @@ const Ne = { Plugins: { Hash: Xn }, version: "6.1.13", openers: /* @__PURE__ */
|
|
|
6571
6576
|
icon: ne(Ie).farXmark,
|
|
6572
6577
|
class: "text-xs"
|
|
6573
6578
|
}, null, 8, ["icon"])
|
|
6574
|
-
], 8,
|
|
6579
|
+
], 8, du)
|
|
6575
6580
|
]),
|
|
6576
6581
|
_: 1
|
|
6577
6582
|
})) : he("", !0),
|
|
@@ -6592,18 +6597,18 @@ const Ne = { Plugins: { Hash: Xn }, version: "6.1.13", openers: /* @__PURE__ */
|
|
|
6592
6597
|
disabled: e.disabled || a.value,
|
|
6593
6598
|
onInput: u
|
|
6594
6599
|
}, null, 8, ["name", "accept", "disabled"]),
|
|
6595
|
-
s.value ? (T(), P("div",
|
|
6600
|
+
s.value ? (T(), P("div", fu, [...m[0] || (m[0] = [
|
|
6596
6601
|
_("span", { class: "text-sm text-blue-600 font-medium" }, "Drop image here", -1)
|
|
6597
6602
|
])])) : he("", !0)
|
|
6598
6603
|
], 34)),
|
|
6599
|
-
a.value ? (T(), P("p",
|
|
6604
|
+
a.value ? (T(), P("p", pu, "Uploading...")) : he("", !0)
|
|
6600
6605
|
]);
|
|
6601
6606
|
};
|
|
6602
6607
|
}
|
|
6603
|
-
},
|
|
6608
|
+
}, mu = { class: "px-4 pt-5 pb-4 sm:p-6" }, gu = {
|
|
6604
6609
|
key: 0,
|
|
6605
6610
|
class: "text-lg font-medium text-gray-900"
|
|
6606
|
-
},
|
|
6611
|
+
}, hu = {
|
|
6607
6612
|
__name: "SparkModalDialog",
|
|
6608
6613
|
props: {
|
|
6609
6614
|
title: {
|
|
@@ -6680,7 +6685,7 @@ const Ne = { Plugins: { Hash: Xn }, version: "6.1.13", openers: /* @__PURE__ */
|
|
|
6680
6685
|
})[t.type]);
|
|
6681
6686
|
return (i, c) => {
|
|
6682
6687
|
const f = Ue("font-awesome-icon");
|
|
6683
|
-
return T(), P("div",
|
|
6688
|
+
return T(), P("div", mu, [
|
|
6684
6689
|
a.value ? (T(), P("div", {
|
|
6685
6690
|
key: 0,
|
|
6686
6691
|
class: _e(["mx-auto flex size-12 items-center justify-center rounded-full", s.value])
|
|
@@ -6693,7 +6698,7 @@ const Ne = { Plugins: { Hash: Xn }, version: "6.1.13", openers: /* @__PURE__ */
|
|
|
6693
6698
|
_("div", {
|
|
6694
6699
|
class: _e(["text-center", { "mt-3 sm:mt-5": a.value }])
|
|
6695
6700
|
}, [
|
|
6696
|
-
e.title ? (T(), P("h3",
|
|
6701
|
+
e.title ? (T(), P("h3", gu, xe(e.title), 1)) : he("", !0),
|
|
6697
6702
|
e.message ? (T(), P("div", {
|
|
6698
6703
|
key: 1,
|
|
6699
6704
|
class: _e([{ "mt-2": e.title }, "text-sm text-gray-500"])
|
|
@@ -6717,7 +6722,7 @@ const Ne = { Plugins: { Hash: Xn }, version: "6.1.13", openers: /* @__PURE__ */
|
|
|
6717
6722
|
};
|
|
6718
6723
|
}
|
|
6719
6724
|
};
|
|
6720
|
-
class
|
|
6725
|
+
class vu {
|
|
6721
6726
|
constructor() {
|
|
6722
6727
|
this.state = Et({
|
|
6723
6728
|
isVisible: !1,
|
|
@@ -6754,7 +6759,7 @@ class hu {
|
|
|
6754
6759
|
confirmVariant: i = "primary"
|
|
6755
6760
|
} = t;
|
|
6756
6761
|
this.show(
|
|
6757
|
-
|
|
6762
|
+
hu,
|
|
6758
6763
|
{
|
|
6759
6764
|
title: o,
|
|
6760
6765
|
message: r,
|
|
@@ -6775,15 +6780,15 @@ class hu {
|
|
|
6775
6780
|
);
|
|
6776
6781
|
});
|
|
6777
6782
|
}
|
|
6778
|
-
const Rt = new
|
|
6783
|
+
const Rt = new vu(), yu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto" }, bu = { class: "flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0" }, xu = {
|
|
6779
6784
|
__name: "SparkModalContainer",
|
|
6780
6785
|
setup(e) {
|
|
6781
|
-
return (t, n) => (T(), Me(ne(
|
|
6786
|
+
return (t, n) => (T(), Me(ne(Cr), {
|
|
6782
6787
|
as: "template",
|
|
6783
6788
|
show: ne(Rt).state.isVisible
|
|
6784
6789
|
}, {
|
|
6785
6790
|
default: we(() => [
|
|
6786
|
-
oe(ne(
|
|
6791
|
+
oe(ne(_r), {
|
|
6787
6792
|
class: "relative z-1000",
|
|
6788
6793
|
onClose: ne(Rt).hide
|
|
6789
6794
|
}, {
|
|
@@ -6802,8 +6807,8 @@ const Rt = new hu(), vu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
6802
6807
|
])]),
|
|
6803
6808
|
_: 1
|
|
6804
6809
|
}),
|
|
6805
|
-
_("div",
|
|
6806
|
-
_("div",
|
|
6810
|
+
_("div", yu, [
|
|
6811
|
+
_("div", bu, [
|
|
6807
6812
|
oe(ne(Kn), {
|
|
6808
6813
|
as: "template",
|
|
6809
6814
|
enter: "ease-out duration-300",
|
|
@@ -6814,7 +6819,7 @@ const Rt = new hu(), vu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
6814
6819
|
"leave-to": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
|
|
6815
6820
|
}, {
|
|
6816
6821
|
default: we(() => [
|
|
6817
|
-
oe(ne(
|
|
6822
|
+
oe(ne($r), { 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" }, {
|
|
6818
6823
|
default: we(() => [
|
|
6819
6824
|
(T(), Me(vt(ne(Rt).state.content), wt(ne(Rt).state.props, ur(ne(Rt).state.eventHandlers)), null, 16))
|
|
6820
6825
|
]),
|
|
@@ -6832,7 +6837,7 @@ const Rt = new hu(), vu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
6832
6837
|
_: 1
|
|
6833
6838
|
}, 8, ["show"]));
|
|
6834
6839
|
}
|
|
6835
|
-
},
|
|
6840
|
+
}, wu = { class: "fixed inset-0 flex" }, Ks = {
|
|
6836
6841
|
__name: "SparkOverlay",
|
|
6837
6842
|
props: {
|
|
6838
6843
|
position: {
|
|
@@ -6856,12 +6861,12 @@ const Rt = new hu(), vu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
6856
6861
|
}, r = e, a = t, s = Q(() => o[r.overlayInstance.state.size] || o.md), l = () => {
|
|
6857
6862
|
r.overlayInstance.close(), a("close");
|
|
6858
6863
|
};
|
|
6859
|
-
return (i, c) => (T(), Me(ne(
|
|
6864
|
+
return (i, c) => (T(), Me(ne(Cr), {
|
|
6860
6865
|
show: e.overlayInstance.state.isVisible,
|
|
6861
6866
|
as: "template"
|
|
6862
6867
|
}, {
|
|
6863
6868
|
default: we(() => [
|
|
6864
|
-
oe(ne(
|
|
6869
|
+
oe(ne(_r), {
|
|
6865
6870
|
"initial-focus": n.value,
|
|
6866
6871
|
class: "relative z-1000",
|
|
6867
6872
|
onClose: l
|
|
@@ -6881,7 +6886,7 @@ const Rt = new hu(), vu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
6881
6886
|
])]),
|
|
6882
6887
|
_: 1
|
|
6883
6888
|
}),
|
|
6884
|
-
_("div",
|
|
6889
|
+
_("div", wu, [
|
|
6885
6890
|
oe(ne(Kn), {
|
|
6886
6891
|
as: "template",
|
|
6887
6892
|
enter: "transition ease-in-out duration-150 transform",
|
|
@@ -6892,7 +6897,7 @@ const Rt = new hu(), vu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
6892
6897
|
"leave-to": e.position === "left" ? "-translate-x-full opacity-0" : "translate-x-full opacity-0"
|
|
6893
6898
|
}, {
|
|
6894
6899
|
default: we(() => [
|
|
6895
|
-
oe(ne(
|
|
6900
|
+
oe(ne($r), {
|
|
6896
6901
|
ref_key: "panelRef",
|
|
6897
6902
|
ref: n,
|
|
6898
6903
|
class: _e([
|
|
@@ -6917,7 +6922,7 @@ const Rt = new hu(), vu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
6917
6922
|
_: 1
|
|
6918
6923
|
}, 8, ["show"]));
|
|
6919
6924
|
}
|
|
6920
|
-
},
|
|
6925
|
+
}, Su = ["disabled", "onClick"], Xp = {
|
|
6921
6926
|
__name: "SparkSubNav",
|
|
6922
6927
|
props: {
|
|
6923
6928
|
/**
|
|
@@ -7019,7 +7024,7 @@ const Rt = new hu(), vu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
7019
7024
|
isActive: s,
|
|
7020
7025
|
isDisabled: l,
|
|
7021
7026
|
navigate: i
|
|
7022
|
-
}) : n.layout === "horizontal" ? (T(), Me(
|
|
7027
|
+
}) : n.layout === "horizontal" ? (T(), Me(Jr, {
|
|
7023
7028
|
key: 1,
|
|
7024
7029
|
class: "isolate"
|
|
7025
7030
|
}, {
|
|
@@ -7068,16 +7073,16 @@ const Rt = new hu(), vu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
7068
7073
|
key: 2,
|
|
7069
7074
|
class: _e(y(h))
|
|
7070
7075
|
}, xe(h.badge), 3)) : he("", !0)
|
|
7071
|
-
], 10,
|
|
7076
|
+
], 10, Su))), 128))
|
|
7072
7077
|
], 2));
|
|
7073
7078
|
}
|
|
7074
|
-
},
|
|
7079
|
+
}, ku = (e) => {
|
|
7075
7080
|
if (e.includes(".")) {
|
|
7076
7081
|
const t = e.split(".");
|
|
7077
7082
|
e = t[t.length - 1];
|
|
7078
7083
|
}
|
|
7079
7084
|
return e.replace(/_/g, " ");
|
|
7080
|
-
},
|
|
7085
|
+
}, Eu = (e, t, n) => {
|
|
7081
7086
|
const o = t.querySelector(".relative");
|
|
7082
7087
|
if (!o || o.querySelector(".spark-table-head-sorting"))
|
|
7083
7088
|
return;
|
|
@@ -7092,12 +7097,12 @@ const Rt = new hu(), vu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
7092
7097
|
sortedBy: "asc"
|
|
7093
7098
|
}));
|
|
7094
7099
|
});
|
|
7095
|
-
},
|
|
7100
|
+
}, Tu = (e, t, n) => {
|
|
7096
7101
|
if (t.querySelector(".spark-table-head-filter"))
|
|
7097
7102
|
return;
|
|
7098
7103
|
const o = document.createElement("div"), r = document.createElement("input");
|
|
7099
7104
|
r.type = "text", r.placeholder = "Filter...", o.className = "spark-table-head-filter", o.appendChild(r);
|
|
7100
|
-
const a =
|
|
7105
|
+
const a = Mr(async (s, l) => {
|
|
7101
7106
|
const i = l.target.value, c = `filter[${s}]`;
|
|
7102
7107
|
if (i)
|
|
7103
7108
|
return n.params[c] && n.params[c] === i ? void 0 : n.methods.applyParams({
|
|
@@ -7107,19 +7112,19 @@ const Rt = new hu(), vu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
7107
7112
|
await n.methods.removeParam(c);
|
|
7108
7113
|
}, 200);
|
|
7109
7114
|
r.addEventListener("keyup", (s) => a(e, s)), t.appendChild(o);
|
|
7110
|
-
},
|
|
7115
|
+
}, Cu = (e, t, n) => {
|
|
7111
7116
|
e.classList.add("spark-table-head"), n && n.columnSort && e.classList.add("can-sort"), n && n.columnFilter && e.classList.add("can-filter"), e.querySelector(".relative").classList.add("spark-table-head-title-wrapper");
|
|
7112
7117
|
const r = e.querySelector(".colHeader");
|
|
7113
|
-
r.classList.add("spark-table-head-title"), r.innerHTML =
|
|
7114
|
-
},
|
|
7118
|
+
r.classList.add("spark-table-head-title"), r.innerHTML = ku(t);
|
|
7119
|
+
}, _u = (e, t, n) => {
|
|
7115
7120
|
if (typeof e != "number")
|
|
7116
7121
|
return e;
|
|
7117
7122
|
if (e < 0)
|
|
7118
7123
|
return;
|
|
7119
7124
|
let o = 2;
|
|
7120
7125
|
const r = n.methods.colToProp(e), a = n.methods.getSettingsForProp(r);
|
|
7121
|
-
t.childElementCount === 1 && ((!a || !a.columnSort) && o--, (!a || !a.columnFilter) && o--, a && a.columnSort &&
|
|
7122
|
-
},
|
|
7126
|
+
t.childElementCount === 1 && ((!a || !a.columnSort) && o--, (!a || !a.columnFilter) && o--, a && a.columnSort && Eu(r, t, n), a && a.columnFilter && Tu(r, t, n)), (t.childElementCount === o || o === 0) && Cu(t, r, a);
|
|
7127
|
+
}, $u = (e) => {
|
|
7123
7128
|
if (!e.hotInstance || !e.hotInstance.rootElement)
|
|
7124
7129
|
return;
|
|
7125
7130
|
const t = e.params.orderBy, n = e.params.sortedBy, o = e.hotInstance.rootElement.querySelectorAll("thead th.can-sort .relative");
|
|
@@ -7129,7 +7134,7 @@ const Rt = new hu(), vu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
7129
7134
|
const a = r.closest("th"), s = Array.from(a.parentElement.children).indexOf(a);
|
|
7130
7135
|
e.methods.colToProp(s) === t && r.classList.add(n);
|
|
7131
7136
|
});
|
|
7132
|
-
},
|
|
7137
|
+
}, Mu = (e) => (t, n, o, r, a, s, l) => {
|
|
7133
7138
|
n.innerHTML = "", n.classList.add("spark-table-cell-actions");
|
|
7134
7139
|
const c = (l.rendererConfig || {}).actions || [];
|
|
7135
7140
|
if (c.length === 0)
|
|
@@ -7172,7 +7177,7 @@ const Rt = new hu(), vu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
7172
7177
|
purple: "bg-purple-100 text-purple-800",
|
|
7173
7178
|
pink: "bg-pink-100 text-pink-800",
|
|
7174
7179
|
indigo: "bg-indigo-100 text-indigo-800"
|
|
7175
|
-
},
|
|
7180
|
+
}, Lu = (e) => (t, n, o, r, a, s, l) => {
|
|
7176
7181
|
if (n.innerHTML = "", n.classList.add("spark-table-cell-badge"), !s)
|
|
7177
7182
|
return;
|
|
7178
7183
|
const c = (l.rendererConfig || {}).colorMap || {}, f = c[s] || c[s?.toLowerCase()] || "gray", d = Js[f] || Js.gray, u = document.createElement("span");
|
|
@@ -7194,7 +7199,7 @@ const Rt = new hu(), vu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
7194
7199
|
blue: { bg: "bg-blue-100", text: "text-blue-500" },
|
|
7195
7200
|
gray: { bg: "bg-gray-100", text: "text-gray-500" },
|
|
7196
7201
|
purple: { bg: "bg-purple-100", text: "text-purple-500" }
|
|
7197
|
-
},
|
|
7202
|
+
}, Ou = (e) => {
|
|
7198
7203
|
if (e == null || e === "")
|
|
7199
7204
|
return !1;
|
|
7200
7205
|
if (typeof e == "boolean")
|
|
@@ -7206,9 +7211,9 @@ const Rt = new hu(), vu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
7206
7211
|
return t === "1" || t === "yes" || t === "true";
|
|
7207
7212
|
}
|
|
7208
7213
|
return !1;
|
|
7209
|
-
},
|
|
7214
|
+
}, Pu = (e) => (t, n, o, r, a, s, l) => {
|
|
7210
7215
|
n.innerHTML = "", n.classList.add("spark-table-cell-boolean");
|
|
7211
|
-
const i = l.rendererConfig || {}, c =
|
|
7216
|
+
const i = l.rendererConfig || {}, c = Ou(s), f = c ? i.trueIcon || "check" : i.falseIcon || "xmark", d = c ? i.trueColor || "green" : i.falseColor || "red", u = i.size || 32, p = i.iconPrefix || "far", y = Qs[d] || Qs.gray;
|
|
7212
7217
|
n.dataset.copyValue = c ? "true" : "false";
|
|
7213
7218
|
const m = document.createElement("div");
|
|
7214
7219
|
m.classList.add(
|
|
@@ -7223,7 +7228,7 @@ const Rt = new hu(), vu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
7223
7228
|
g.innerHTML = Wt({ prefix: p, iconName: f }).html, g.classList.add("flex", "items-center", "justify-center");
|
|
7224
7229
|
const h = Math.round(u * 0.5);
|
|
7225
7230
|
g.style.fontSize = `${h}px`, m.appendChild(g), n.appendChild(m);
|
|
7226
|
-
},
|
|
7231
|
+
}, Au = (e, t = 2) => {
|
|
7227
7232
|
const n = Number(e);
|
|
7228
7233
|
if (isNaN(n)) return null;
|
|
7229
7234
|
const o = n < 0, a = Math.abs(n).toLocaleString("en-AU", {
|
|
@@ -7231,21 +7236,21 @@ const Rt = new hu(), vu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
7231
7236
|
maximumFractionDigits: t
|
|
7232
7237
|
});
|
|
7233
7238
|
return o ? `-$${a}` : `$${a}`;
|
|
7234
|
-
},
|
|
7239
|
+
}, Ru = (e) => (t, n, o, r, a, s, l) => {
|
|
7235
7240
|
n.innerHTML = "", n.classList.add("spark-table-cell-currency");
|
|
7236
7241
|
const i = l.rendererConfig || {}, { decimals: c = 2, emptyText: f = "" } = i;
|
|
7237
7242
|
if (s == null || s === "") {
|
|
7238
7243
|
n.textContent = f;
|
|
7239
7244
|
return;
|
|
7240
7245
|
}
|
|
7241
|
-
const d =
|
|
7246
|
+
const d = Au(s, c);
|
|
7242
7247
|
if (d === null) {
|
|
7243
7248
|
n.textContent = f;
|
|
7244
7249
|
return;
|
|
7245
7250
|
}
|
|
7246
7251
|
const u = document.createElement("span");
|
|
7247
7252
|
u.textContent = d, n.appendChild(u);
|
|
7248
|
-
},
|
|
7253
|
+
}, Fu = (e) => (t, n, o, r, a, s, l) => {
|
|
7249
7254
|
if (n.innerHTML = "", n.classList.add("spark-table-cell-link"), !s)
|
|
7250
7255
|
return;
|
|
7251
7256
|
const i = l.rendererConfig || {}, c = t.getSourceDataAtRow(t.toPhysicalRow(o));
|
|
@@ -7259,7 +7264,7 @@ const Rt = new hu(), vu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
7259
7264
|
sm: "h-6 w-6",
|
|
7260
7265
|
md: "h-8 w-8",
|
|
7261
7266
|
lg: "h-12 w-12"
|
|
7262
|
-
},
|
|
7267
|
+
}, Iu = (e) => (t, n, o, r, a, s, l) => {
|
|
7263
7268
|
if (n.innerHTML = "", n.classList.add("spark-table-cell-image"), !s)
|
|
7264
7269
|
return;
|
|
7265
7270
|
const i = l.rendererConfig || {}, c = t.getSourceDataAtRow(t.toPhysicalRow(o)), f = i.size || "md", d = er[f] || er.md, u = i.rounded !== !1, p = i.lightbox || !1, y = i.group || "table-images";
|
|
@@ -7271,7 +7276,7 @@ const Rt = new hu(), vu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
7271
7276
|
h.href = s, h.setAttribute("data-fancybox", y), m && h.setAttribute("data-caption", m), g.classList.add("cursor-pointer", "hover:opacity-80", "transition-opacity"), h.appendChild(g), n.appendChild(h);
|
|
7272
7277
|
} else
|
|
7273
7278
|
n.appendChild(g);
|
|
7274
|
-
},
|
|
7279
|
+
}, Du = (e) => (t, n, o, r, a, s, l) => {
|
|
7275
7280
|
if (n.innerHTML = "", n.classList.add("spark-table-cell-date"), !s)
|
|
7276
7281
|
return;
|
|
7277
7282
|
const i = l.rendererConfig || {}, c = i.format || "short", f = i.locale || "en-US";
|
|
@@ -7282,27 +7287,27 @@ const Rt = new hu(), vu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
7282
7287
|
year: "numeric",
|
|
7283
7288
|
month: "long",
|
|
7284
7289
|
day: "numeric"
|
|
7285
|
-
}) : c === "relative" ? d =
|
|
7290
|
+
}) : c === "relative" ? d = ju(p) : c === "datetime" ? d = p.toLocaleString(f) : d = p.toLocaleDateString(f);
|
|
7286
7291
|
} catch (p) {
|
|
7287
7292
|
console.error("Error formatting date:", p), d = s;
|
|
7288
7293
|
}
|
|
7289
7294
|
const u = document.createElement("span");
|
|
7290
7295
|
u.textContent = d, n.appendChild(u);
|
|
7291
7296
|
};
|
|
7292
|
-
function
|
|
7297
|
+
function ju(e) {
|
|
7293
7298
|
const n = /* @__PURE__ */ new Date() - e, o = Math.floor(Math.abs(n) / 1e3), r = Math.floor(o / 60), a = Math.floor(r / 60), s = Math.floor(a / 24), l = Math.floor(s / 30), i = Math.floor(s / 365), c = n > 0;
|
|
7294
7299
|
return o < 60 ? c ? "just now" : "in a moment" : r < 60 ? c ? `${r} minute${r > 1 ? "s" : ""} ago` : `in ${r} minute${r > 1 ? "s" : ""}` : a < 24 ? c ? `${a} hour${a > 1 ? "s" : ""} ago` : `in ${a} hour${a > 1 ? "s" : ""}` : s < 30 ? c ? `${s} day${s > 1 ? "s" : ""} ago` : `in ${s} day${s > 1 ? "s" : ""}` : l < 12 ? c ? `${l} month${l > 1 ? "s" : ""} ago` : `in ${l} month${l > 1 ? "s" : ""}` : c ? `${i} year${i > 1 ? "s" : ""} ago` : `in ${i} year${i > 1 ? "s" : ""}`;
|
|
7295
7300
|
}
|
|
7296
|
-
const
|
|
7301
|
+
const Hu = (e) => {
|
|
7297
7302
|
const t = ["th", "st", "nd", "rd"], n = e % 100;
|
|
7298
7303
|
return e + (t[(n - 20) % 10] || t[n] || t[0]);
|
|
7299
|
-
}, ht = (e, t = 2) => String(e).padStart(t, "0"), _o = /* @__PURE__ */ new Map(),
|
|
7304
|
+
}, ht = (e, t = 2) => String(e).padStart(t, "0"), _o = /* @__PURE__ */ new Map(), Vu = (e, t) => {
|
|
7300
7305
|
const n = `${e}:${JSON.stringify(t)}`;
|
|
7301
7306
|
return _o.has(n) || _o.set(n, new Intl.DateTimeFormat(e, t)), _o.get(n);
|
|
7302
7307
|
}, _n = (e, t, n, o) => {
|
|
7303
|
-
const s =
|
|
7308
|
+
const s = Vu(t, n).formatToParts(e).find((l) => l.type === o);
|
|
7304
7309
|
return s ? s.value : "";
|
|
7305
|
-
},
|
|
7310
|
+
}, zu = (e) => e.epochMilliseconds !== void 0 ? new Date(e.epochMilliseconds) : new Date(
|
|
7306
7311
|
e.year,
|
|
7307
7312
|
e.month - 1,
|
|
7308
7313
|
e.day,
|
|
@@ -7310,7 +7315,7 @@ const ju = (e) => {
|
|
|
7310
7315
|
e.minute || 0,
|
|
7311
7316
|
e.second || 0,
|
|
7312
7317
|
e.millisecond || 0
|
|
7313
|
-
),
|
|
7318
|
+
), Nu = (e) => {
|
|
7314
7319
|
const t = e.hour || 0, n = t % 12 || 12, o = t >= 12;
|
|
7315
7320
|
return {
|
|
7316
7321
|
year: e.year,
|
|
@@ -7333,8 +7338,8 @@ const ju = (e) => {
|
|
|
7333
7338
|
return "";
|
|
7334
7339
|
const n = Math.round(e.offsetNanoseconds / 6e10), o = n >= 0 ? "+" : "-", r = Math.abs(n), a = Math.floor(r / 60), s = r % 60;
|
|
7335
7340
|
return t ? `${o}${ht(a)}:${ht(s)}` : `${o}${ht(a)}${ht(s)}`;
|
|
7336
|
-
},
|
|
7337
|
-
const n =
|
|
7341
|
+
}, Bu = (e, t) => {
|
|
7342
|
+
const n = Nu(e), o = zu(e), r = n.dayOfWeek === 7 ? 0 : n.dayOfWeek;
|
|
7338
7343
|
return [
|
|
7339
7344
|
// Year
|
|
7340
7345
|
["YYYY", () => String(n.year)],
|
|
@@ -7346,7 +7351,7 @@ const ju = (e) => {
|
|
|
7346
7351
|
["M", () => String(n.month)],
|
|
7347
7352
|
// Day of month
|
|
7348
7353
|
["DD", () => ht(n.day)],
|
|
7349
|
-
["Do", () =>
|
|
7354
|
+
["Do", () => Hu(n.day)],
|
|
7350
7355
|
["D", () => String(n.day)],
|
|
7351
7356
|
// Day of week
|
|
7352
7357
|
["dddd", () => _n(o, t, { weekday: "long" }, "weekday")],
|
|
@@ -7380,7 +7385,7 @@ const ju = (e) => {
|
|
|
7380
7385
|
["x", () => String(e.epochMilliseconds ?? o.getTime())],
|
|
7381
7386
|
["X", () => String(Math.floor((e.epochMilliseconds ?? o.getTime()) / 1e3))]
|
|
7382
7387
|
];
|
|
7383
|
-
},
|
|
7388
|
+
}, qu = (e, t, n = {}) => {
|
|
7384
7389
|
const { locale: o = "en-US" } = n;
|
|
7385
7390
|
if (!e)
|
|
7386
7391
|
return "";
|
|
@@ -7396,20 +7401,20 @@ const ju = (e) => {
|
|
|
7396
7401
|
} catch (i) {
|
|
7397
7402
|
return console.error("Failed to parse date string:", e, i), e;
|
|
7398
7403
|
}
|
|
7399
|
-
const a =
|
|
7404
|
+
const a = Bu(r, o), s = a.map(([i]) => i).join("|"), l = new RegExp(`\\[([^\\]]+)\\]|(${s})`, "g");
|
|
7400
7405
|
return t.replace(l, (i, c, f) => {
|
|
7401
7406
|
if (c !== void 0)
|
|
7402
7407
|
return c;
|
|
7403
7408
|
const d = a.find(([u]) => u === f);
|
|
7404
7409
|
return d ? d[1]() : i;
|
|
7405
7410
|
});
|
|
7406
|
-
},
|
|
7411
|
+
}, Wu = (e, t = {}) => {
|
|
7407
7412
|
const { fromTimezone: n, toTimezone: o } = t;
|
|
7408
7413
|
if (!e)
|
|
7409
7414
|
return null;
|
|
7410
7415
|
const r = e.replace(" ", "T");
|
|
7411
7416
|
return n && o ? Temporal.PlainDateTime.from(r).toZonedDateTime(n).withTimeZone(o) : n ? Temporal.PlainDateTime.from(r).toZonedDateTime(n) : Temporal.PlainDateTime.from(r);
|
|
7412
|
-
},
|
|
7417
|
+
}, Uu = (e) => (t, n, o, r, a, s, l) => {
|
|
7413
7418
|
n.innerHTML = "", n.classList.add("spark-table-cell-datetime");
|
|
7414
7419
|
const i = l.rendererConfig || {}, {
|
|
7415
7420
|
format: c = "DD MMM YYYY, HH:mm",
|
|
@@ -7423,22 +7428,22 @@ const ju = (e) => {
|
|
|
7423
7428
|
return;
|
|
7424
7429
|
}
|
|
7425
7430
|
try {
|
|
7426
|
-
const y =
|
|
7431
|
+
const y = Wu(s, { fromTimezone: f, toTimezone: d });
|
|
7427
7432
|
if (!y) {
|
|
7428
7433
|
n.textContent = p;
|
|
7429
7434
|
return;
|
|
7430
7435
|
}
|
|
7431
|
-
const m =
|
|
7436
|
+
const m = qu(y, c, { locale: u }), g = document.createElement("span");
|
|
7432
7437
|
g.textContent = m, n.appendChild(g);
|
|
7433
7438
|
} catch (y) {
|
|
7434
7439
|
console.error("Error formatting datetime:", y, { value: s, format: c }), n.textContent = s;
|
|
7435
7440
|
}
|
|
7436
|
-
},
|
|
7441
|
+
}, Zu = /* @__PURE__ */ new Map(), Pt = (e, t) => {
|
|
7437
7442
|
yi(e, (n, o, r, a, s, l, i) => {
|
|
7438
7443
|
bi.apply(null, [n, o, r, a, s, l, i]), t(n, o, r, a, s, l, i);
|
|
7439
|
-
}),
|
|
7440
|
-
},
|
|
7441
|
-
Pt("spark.actions",
|
|
7444
|
+
}), Zu.set(e, t);
|
|
7445
|
+
}, Gu = (e) => {
|
|
7446
|
+
Pt("spark.actions", Mu(e)), Pt("spark.badge", Lu()), Pt("spark.boolean", Pu()), Pt("spark.currency", Ru()), Pt("spark.link", Fu()), Pt("spark.image", Iu()), Pt("spark.date", Du()), Pt("spark.datetime", Uu()), Pt("style.capitalize", (t, n, o, r, a, s) => {
|
|
7442
7447
|
if (!s || s.length === 0) {
|
|
7443
7448
|
n.innerText = "";
|
|
7444
7449
|
return;
|
|
@@ -7446,8 +7451,8 @@ const ju = (e) => {
|
|
|
7446
7451
|
const l = document.createElement("span");
|
|
7447
7452
|
l.innerHTML = s, l.classList.add("capitalize"), n.replaceChildren(l);
|
|
7448
7453
|
});
|
|
7449
|
-
},
|
|
7450
|
-
},
|
|
7454
|
+
}, Yu = () => {
|
|
7455
|
+
}, Xu = (e, t = {}) => {
|
|
7451
7456
|
const n = Tt(), o = Dt(), r = t.namespace, a = r === null, s = t.syncToRoute !== !1, l = t.persistToStorage === !0, i = t.restoreOnMount !== !1, c = t.storageTTL || 7, f = a ? `spark-table:${o.path}` : `spark-table:${r}`, d = (v, k = "") => {
|
|
7452
7457
|
const x = {};
|
|
7453
7458
|
return Object.keys(v).forEach((L) => {
|
|
@@ -7555,7 +7560,7 @@ const ju = (e) => {
|
|
|
7555
7560
|
loadFromStorage: p,
|
|
7556
7561
|
clearStorage: y
|
|
7557
7562
|
};
|
|
7558
|
-
},
|
|
7563
|
+
}, Ku = { class: "flex items-center gap-4 py-3" }, Ju = { class: "shrink-0" }, Qu = { class: "text-sm text-gray-700" }, ed = { class: "font-medium" }, td = { class: "font-medium" }, nd = { class: "font-medium" }, od = {
|
|
7559
7564
|
__name: "SparkTablePaginationDetails",
|
|
7560
7565
|
props: {
|
|
7561
7566
|
sparkTable: {
|
|
@@ -7566,28 +7571,28 @@ const ju = (e) => {
|
|
|
7566
7571
|
setup(e) {
|
|
7567
7572
|
const t = e;
|
|
7568
7573
|
return (n, o) => (T(), P("div", null, [
|
|
7569
|
-
_("div",
|
|
7570
|
-
_("div",
|
|
7571
|
-
_("div",
|
|
7574
|
+
_("div", Ku, [
|
|
7575
|
+
_("div", Ju, [
|
|
7576
|
+
_("div", Qu, [
|
|
7572
7577
|
o[0] || (o[0] = qe(" Showing ", -1)),
|
|
7573
|
-
_("span",
|
|
7578
|
+
_("span", ed, xe(t.sparkTable.response.meta.from), 1),
|
|
7574
7579
|
o[1] || (o[1] = qe(" to ", -1)),
|
|
7575
|
-
_("span",
|
|
7580
|
+
_("span", td, xe(t.sparkTable.response.meta.to), 1),
|
|
7576
7581
|
o[2] || (o[2] = qe(" of ", -1)),
|
|
7577
|
-
_("span",
|
|
7582
|
+
_("span", nd, xe(t.sparkTable.response.meta.total), 1),
|
|
7578
7583
|
o[3] || (o[3] = qe(" results ", -1))
|
|
7579
7584
|
])
|
|
7580
7585
|
])
|
|
7581
7586
|
])
|
|
7582
7587
|
]));
|
|
7583
7588
|
}
|
|
7584
|
-
},
|
|
7589
|
+
}, sd = { class: "flex items-center gap-4 px-4 py-3" }, rd = {
|
|
7585
7590
|
key: 0,
|
|
7586
7591
|
class: "shrink-0 ml-auto"
|
|
7587
|
-
},
|
|
7592
|
+
}, ad = {
|
|
7588
7593
|
class: "isolate inline-flex -space-x-px rounded-md shadow-xs bg-white",
|
|
7589
7594
|
"aria-label": "Pagination"
|
|
7590
|
-
},
|
|
7595
|
+
}, id = ["onClick"], ld = {
|
|
7591
7596
|
__name: "SparkTablePaginationPaging",
|
|
7592
7597
|
props: {
|
|
7593
7598
|
sparkTable: {
|
|
@@ -7612,10 +7617,10 @@ const ju = (e) => {
|
|
|
7612
7617
|
return (f, d) => {
|
|
7613
7618
|
const u = Ue("font-awesome-icon");
|
|
7614
7619
|
return T(), P("div", null, [
|
|
7615
|
-
_("div",
|
|
7616
|
-
l.value.length > 1 ? (T(), P("div",
|
|
7620
|
+
_("div", sd, [
|
|
7621
|
+
l.value.length > 1 ? (T(), P("div", rd, [
|
|
7617
7622
|
_("div", null, [
|
|
7618
|
-
_("nav",
|
|
7623
|
+
_("nav", ad, [
|
|
7619
7624
|
_("a", {
|
|
7620
7625
|
class: _e([c.value ? "" : "disabled", "relative inline-flex items-center rounded-l-md px-2 py-[9px] text-gray-400 ring-1 ring-gray-300 ring-inset hover:bg-gray-50 focus:z-20 focus:outline-offset-0"]),
|
|
7621
7626
|
href: "#",
|
|
@@ -7634,7 +7639,7 @@ const ju = (e) => {
|
|
|
7634
7639
|
e.sparkTable.params.page === p ? "z-10 text-white bg-primary-600 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600 hover:bg-primary-600" : "text-gray-900 hover:bg-gray-50 ring-gray-300 focus:z-20 focus:outline-offset-0"
|
|
7635
7640
|
]),
|
|
7636
7641
|
onClick: (y) => a(p)
|
|
7637
|
-
}, xe(p), 11,
|
|
7642
|
+
}, xe(p), 11, id))), 128)),
|
|
7638
7643
|
_("a", {
|
|
7639
7644
|
class: _e([i.value ? "" : "disabled", "relative inline-flex items-center rounded-r-md px-2 py-[9px] text-gray-400 ring-1 ring-gray-300 ring-inset hover:bg-gray-50 focus:z-20 focus:outline-offset-0"]),
|
|
7640
7645
|
href: "#",
|
|
@@ -7657,7 +7662,7 @@ const ju = (e) => {
|
|
|
7657
7662
|
for (const [o, r] of t)
|
|
7658
7663
|
n[o] = r;
|
|
7659
7664
|
return n;
|
|
7660
|
-
},
|
|
7665
|
+
}, cd = { class: "spark-table-pagination-per-page" }, ud = {
|
|
7661
7666
|
__name: "SparkTablePaginationPerPage",
|
|
7662
7667
|
props: {
|
|
7663
7668
|
sparkTable: {
|
|
@@ -7678,7 +7683,7 @@ const ju = (e) => {
|
|
|
7678
7683
|
};
|
|
7679
7684
|
return (s, l) => {
|
|
7680
7685
|
const i = Ue("FormKit");
|
|
7681
|
-
return T(), P("div",
|
|
7686
|
+
return T(), P("div", cd, [
|
|
7682
7687
|
oe(i, {
|
|
7683
7688
|
"model-value": e.sparkTable.params.limit,
|
|
7684
7689
|
type: "select",
|
|
@@ -7691,7 +7696,7 @@ const ju = (e) => {
|
|
|
7691
7696
|
]);
|
|
7692
7697
|
};
|
|
7693
7698
|
}
|
|
7694
|
-
},
|
|
7699
|
+
}, dd = /* @__PURE__ */ an(ud, [["__scopeId", "data-v-9ef8544b"]]), nr = {
|
|
7695
7700
|
__name: "SparkTableToolbar",
|
|
7696
7701
|
props: {
|
|
7697
7702
|
position: {
|
|
@@ -7712,7 +7717,7 @@ const ju = (e) => {
|
|
|
7712
7717
|
Ke(a.$slots, "default")
|
|
7713
7718
|
], 2)) : he("", !0);
|
|
7714
7719
|
}
|
|
7715
|
-
},
|
|
7720
|
+
}, fd = { class: "spark-table-search" }, pd = {
|
|
7716
7721
|
__name: "SparkTableSearch",
|
|
7717
7722
|
props: {
|
|
7718
7723
|
/** SparkTable instance object */
|
|
@@ -7735,7 +7740,7 @@ const ju = (e) => {
|
|
|
7735
7740
|
t.sparkTable.params[o] ? n.value = t.sparkTable.params[o] : t.config.initialValue && (n.value = t.config.initialValue, t.sparkTable.methods.applyParams({
|
|
7736
7741
|
[o]: t.config.initialValue
|
|
7737
7742
|
}));
|
|
7738
|
-
const r =
|
|
7743
|
+
const r = Mr((s) => {
|
|
7739
7744
|
s ? t.sparkTable.methods.applyParams({
|
|
7740
7745
|
page: 1,
|
|
7741
7746
|
[o]: s
|
|
@@ -7752,7 +7757,7 @@ const ju = (e) => {
|
|
|
7752
7757
|
}
|
|
7753
7758
|
), (s, l) => {
|
|
7754
7759
|
const i = Ue("FormKit");
|
|
7755
|
-
return T(), P("div",
|
|
7760
|
+
return T(), P("div", fd, [
|
|
7756
7761
|
oe(i, wt({
|
|
7757
7762
|
modelValue: n.value,
|
|
7758
7763
|
"onUpdate:modelValue": l[0] || (l[0] = (c) => n.value = c),
|
|
@@ -7766,7 +7771,7 @@ const ju = (e) => {
|
|
|
7766
7771
|
]);
|
|
7767
7772
|
};
|
|
7768
7773
|
}
|
|
7769
|
-
},
|
|
7774
|
+
}, md = /* @__PURE__ */ an(pd, [["__scopeId", "data-v-18795b8f"]]), gd = { class: "spark-table-filter-select" }, hd = {
|
|
7770
7775
|
__name: "SparkTableFilterSelect",
|
|
7771
7776
|
props: {
|
|
7772
7777
|
/** SparkTable instance object */
|
|
@@ -7799,7 +7804,7 @@ const ju = (e) => {
|
|
|
7799
7804
|
}
|
|
7800
7805
|
), (s, l) => {
|
|
7801
7806
|
const i = Ue("FormKit");
|
|
7802
|
-
return T(), P("div",
|
|
7807
|
+
return T(), P("div", gd, [
|
|
7803
7808
|
oe(i, wt({
|
|
7804
7809
|
modelValue: n.value,
|
|
7805
7810
|
"onUpdate:modelValue": l[0] || (l[0] = (c) => n.value = c),
|
|
@@ -7813,10 +7818,10 @@ const ju = (e) => {
|
|
|
7813
7818
|
]);
|
|
7814
7819
|
};
|
|
7815
7820
|
}
|
|
7816
|
-
},
|
|
7821
|
+
}, vd = /* @__PURE__ */ an(hd, [["__scopeId", "data-v-79c78a5b"]]), yd = { class: "spark-table-filter-buttons" }, bd = {
|
|
7817
7822
|
key: 0,
|
|
7818
7823
|
class: "spark-table-filter-buttons-label"
|
|
7819
|
-
},
|
|
7824
|
+
}, xd = {
|
|
7820
7825
|
__name: "SparkTableFilterButtons",
|
|
7821
7826
|
props: {
|
|
7822
7827
|
/** SparkTable instance object */
|
|
@@ -7847,9 +7852,9 @@ const ju = (e) => {
|
|
|
7847
7852
|
(l) => {
|
|
7848
7853
|
(l == null || l === "") && n.value ? n.value = null : l !== n.value && (n.value = l);
|
|
7849
7854
|
}
|
|
7850
|
-
), (l, i) => (T(), P("div",
|
|
7851
|
-
ne(o) ? (T(), P("span",
|
|
7852
|
-
oe(
|
|
7855
|
+
), (l, i) => (T(), P("div", yd, [
|
|
7856
|
+
ne(o) ? (T(), P("span", bd, xe(ne(o)), 1)) : he("", !0),
|
|
7857
|
+
oe(Jr, { class: "isolate" }, {
|
|
7853
7858
|
default: we(() => [
|
|
7854
7859
|
(T(!0), P(ze, null, st(e.config.options, (c) => (T(), Me(mt, {
|
|
7855
7860
|
key: c.value,
|
|
@@ -7868,7 +7873,7 @@ const ju = (e) => {
|
|
|
7868
7873
|
})
|
|
7869
7874
|
]));
|
|
7870
7875
|
}
|
|
7871
|
-
},
|
|
7876
|
+
}, wd = /* @__PURE__ */ an(xd, [["__scopeId", "data-v-0eb19c63"]]), Sd = { class: "spark-table-date-picker" }, kd = {
|
|
7872
7877
|
__name: "SparkTableDatePicker",
|
|
7873
7878
|
props: {
|
|
7874
7879
|
/** SparkTable instance object */
|
|
@@ -7903,7 +7908,7 @@ const ju = (e) => {
|
|
|
7903
7908
|
}
|
|
7904
7909
|
), (s, l) => {
|
|
7905
7910
|
const i = Ue("FormKit");
|
|
7906
|
-
return T(), P("div",
|
|
7911
|
+
return T(), P("div", Sd, [
|
|
7907
7912
|
(T(), Me(i, wt({
|
|
7908
7913
|
key: a.value,
|
|
7909
7914
|
modelValue: n.value,
|
|
@@ -7921,7 +7926,7 @@ const ju = (e) => {
|
|
|
7921
7926
|
]);
|
|
7922
7927
|
};
|
|
7923
7928
|
}
|
|
7924
|
-
},
|
|
7929
|
+
}, Ed = /* @__PURE__ */ an(kd, [["__scopeId", "data-v-44ef9cb8"]]), Td = { class: "spark-table-reset" }, Cd = { key: 1 }, _d = {
|
|
7925
7930
|
__name: "SparkTableReset",
|
|
7926
7931
|
props: {
|
|
7927
7932
|
/** SparkTable instance object */
|
|
@@ -7959,7 +7964,7 @@ const ju = (e) => {
|
|
|
7959
7964
|
};
|
|
7960
7965
|
return (o, r) => {
|
|
7961
7966
|
const a = Ue("font-awesome-icon");
|
|
7962
|
-
return T(), P("div",
|
|
7967
|
+
return T(), P("div", Td, [
|
|
7963
7968
|
oe(mt, {
|
|
7964
7969
|
variant: "secondary",
|
|
7965
7970
|
"button-class": "px-3.5",
|
|
@@ -7972,23 +7977,23 @@ const ju = (e) => {
|
|
|
7972
7977
|
icon: ["far", e.config.icon],
|
|
7973
7978
|
class: _e({ "mr-1.5": e.config.label })
|
|
7974
7979
|
}, null, 8, ["icon", "class"])) : he("", !0),
|
|
7975
|
-
e.config.label ? (T(), P("span",
|
|
7980
|
+
e.config.label ? (T(), P("span", Cd, xe(e.config.label), 1)) : he("", !0)
|
|
7976
7981
|
]),
|
|
7977
7982
|
_: 1
|
|
7978
7983
|
})
|
|
7979
7984
|
]);
|
|
7980
7985
|
};
|
|
7981
7986
|
}
|
|
7982
|
-
},
|
|
7987
|
+
}, $d = /* @__PURE__ */ an(_d, [["__scopeId", "data-v-6df5499a"]]), Md = { class: "spark-table" }, Ld = {
|
|
7983
7988
|
key: 1,
|
|
7984
7989
|
class: "pt-5"
|
|
7985
|
-
},
|
|
7990
|
+
}, Od = {
|
|
7986
7991
|
key: 2,
|
|
7987
7992
|
class: "flex flex-col items-center justify-center py-16 text-gray-500 rounded-md border border-gray-300 bg-white"
|
|
7988
|
-
},
|
|
7993
|
+
}, Pd = { class: "flex items-center gap-x-3 ml-auto" }, No = {
|
|
7989
7994
|
perPages: [15, 30, 50, 100, 200, 500],
|
|
7990
7995
|
limit: 15
|
|
7991
|
-
},
|
|
7996
|
+
}, Ad = {
|
|
7992
7997
|
page: 1,
|
|
7993
7998
|
limit: No.limit
|
|
7994
7999
|
}, or = {
|
|
@@ -8001,7 +8006,7 @@ const ju = (e) => {
|
|
|
8001
8006
|
tableClassName: "spark-table-table",
|
|
8002
8007
|
readOnlyCellClassName: "read-only",
|
|
8003
8008
|
licenseKey: "non-commercial-and-evaluation"
|
|
8004
|
-
},
|
|
8009
|
+
}, Kp = {
|
|
8005
8010
|
__name: "SparkTable",
|
|
8006
8011
|
props: {
|
|
8007
8012
|
url: {
|
|
@@ -8027,7 +8032,7 @@ const ju = (e) => {
|
|
|
8027
8032
|
params: {
|
|
8028
8033
|
type: Object,
|
|
8029
8034
|
default() {
|
|
8030
|
-
return
|
|
8035
|
+
return Ad;
|
|
8031
8036
|
}
|
|
8032
8037
|
},
|
|
8033
8038
|
options: {
|
|
@@ -8072,11 +8077,11 @@ const ju = (e) => {
|
|
|
8072
8077
|
const r = n, a = ao("axios"), s = ke(null), l = ke(!1), i = ke(null);
|
|
8073
8078
|
let c = !1;
|
|
8074
8079
|
const f = {
|
|
8075
|
-
search:
|
|
8076
|
-
filterSelect:
|
|
8077
|
-
filterButtons:
|
|
8078
|
-
datePicker:
|
|
8079
|
-
reset:
|
|
8080
|
+
search: md,
|
|
8081
|
+
filterSelect: vd,
|
|
8082
|
+
filterButtons: wd,
|
|
8083
|
+
datePicker: Ed,
|
|
8084
|
+
reset: $d
|
|
8080
8085
|
}, d = Et({
|
|
8081
8086
|
hotInstance: null,
|
|
8082
8087
|
url: Q(() => o.url),
|
|
@@ -8162,10 +8167,10 @@ const ju = (e) => {
|
|
|
8162
8167
|
...or,
|
|
8163
8168
|
nestedHeaders: zt(o.settings, "nestedHeaders", []),
|
|
8164
8169
|
...!zt(o.settings, "nestedHeaders") && {
|
|
8165
|
-
afterGetColHeader: (g, h) =>
|
|
8170
|
+
afterGetColHeader: (g, h) => _u(g, h, d)
|
|
8166
8171
|
},
|
|
8167
|
-
afterChange: (g, h) =>
|
|
8168
|
-
afterRender: () =>
|
|
8172
|
+
afterChange: (g, h) => Yu(),
|
|
8173
|
+
afterRender: () => $u(d),
|
|
8169
8174
|
beforeStretchingColumnWidth: (g, h) => {
|
|
8170
8175
|
const v = zt(o.settings, "columns", [])[h];
|
|
8171
8176
|
return v && v.width !== void 0 ? v.width : g;
|
|
@@ -8214,7 +8219,7 @@ const ju = (e) => {
|
|
|
8214
8219
|
{ deep: !0, flush: "sync" }
|
|
8215
8220
|
), o.syncToRoute || o.persistToStorage) {
|
|
8216
8221
|
const g = typeof o.syncToRoute == "string";
|
|
8217
|
-
|
|
8222
|
+
Xu(d, {
|
|
8218
8223
|
namespace: g ? o.syncToRoute : null,
|
|
8219
8224
|
syncToRoute: !!o.syncToRoute,
|
|
8220
8225
|
persistToStorage: o.persistToStorage
|
|
@@ -8241,7 +8246,7 @@ const ju = (e) => {
|
|
|
8241
8246
|
await d.methods.loadTable(), r("ready");
|
|
8242
8247
|
}), Fn(() => {
|
|
8243
8248
|
c = !0;
|
|
8244
|
-
}),
|
|
8249
|
+
}), Gu(d), t({
|
|
8245
8250
|
refresh: () => d.methods.loadTable(),
|
|
8246
8251
|
getParams: () => d.methods.getParams(),
|
|
8247
8252
|
getParam: (g) => d.methods.getParam(g),
|
|
@@ -8255,7 +8260,7 @@ const ju = (e) => {
|
|
|
8255
8260
|
table: s
|
|
8256
8261
|
}), (g, h) => {
|
|
8257
8262
|
const b = Ue("font-awesome-icon");
|
|
8258
|
-
return T(), P("div",
|
|
8263
|
+
return T(), P("div", Md, [
|
|
8259
8264
|
d.computed.ready && m.value && m.value.length ? (T(), Me(nr, {
|
|
8260
8265
|
key: 0,
|
|
8261
8266
|
position: "header"
|
|
@@ -8274,7 +8279,7 @@ const ju = (e) => {
|
|
|
8274
8279
|
})
|
|
8275
8280
|
]),
|
|
8276
8281
|
_: 3
|
|
8277
|
-
})) : (T(), P("div",
|
|
8282
|
+
})) : (T(), P("div", Ld)),
|
|
8278
8283
|
Qt(oe(ne(fi), {
|
|
8279
8284
|
ref_key: "table",
|
|
8280
8285
|
ref: s,
|
|
@@ -8283,7 +8288,7 @@ const ju = (e) => {
|
|
|
8283
8288
|
}, null, 8, ["settings"]), [
|
|
8284
8289
|
[ar, !u.value]
|
|
8285
8290
|
]),
|
|
8286
|
-
u.value ? (T(), P("div",
|
|
8291
|
+
u.value ? (T(), P("div", Od, [
|
|
8287
8292
|
oe(b, {
|
|
8288
8293
|
icon: ne(Ie).farInbox,
|
|
8289
8294
|
class: "size-12 mb-4 text-gray-300"
|
|
@@ -8295,17 +8300,17 @@ const ju = (e) => {
|
|
|
8295
8300
|
position: "footer"
|
|
8296
8301
|
}, {
|
|
8297
8302
|
default: we(() => [
|
|
8298
|
-
u.value ? he("", !0) : (T(), Me(
|
|
8303
|
+
u.value ? he("", !0) : (T(), Me(od, {
|
|
8299
8304
|
key: 0,
|
|
8300
8305
|
"spark-table": d
|
|
8301
8306
|
}, null, 8, ["spark-table"])),
|
|
8302
|
-
_("div",
|
|
8303
|
-
u.value ? he("", !0) : (T(), Me(
|
|
8307
|
+
_("div", Pd, [
|
|
8308
|
+
u.value ? he("", !0) : (T(), Me(ld, {
|
|
8304
8309
|
key: 0,
|
|
8305
8310
|
"spark-table": d,
|
|
8306
8311
|
onPaginate: d.methods.applyParams
|
|
8307
8312
|
}, null, 8, ["spark-table", "onPaginate"])),
|
|
8308
|
-
oe(
|
|
8313
|
+
oe(dd, {
|
|
8309
8314
|
"spark-table": d,
|
|
8310
8315
|
onPaginate: d.methods.applyParams
|
|
8311
8316
|
}, null, 8, ["spark-table", "onPaginate"]),
|
|
@@ -8349,7 +8354,7 @@ function sr() {
|
|
|
8349
8354
|
}
|
|
8350
8355
|
};
|
|
8351
8356
|
}
|
|
8352
|
-
class
|
|
8357
|
+
class Rd {
|
|
8353
8358
|
constructor() {
|
|
8354
8359
|
this.left = sr(), this.right = sr();
|
|
8355
8360
|
}
|
|
@@ -8381,37 +8386,37 @@ class Ad {
|
|
|
8381
8386
|
this.left.close(), this.right.close();
|
|
8382
8387
|
};
|
|
8383
8388
|
}
|
|
8384
|
-
const Jt = new
|
|
8389
|
+
const Jt = new Rd(), Fd = (e) => {
|
|
8385
8390
|
const t = document.cookie.match(new RegExp(`(^| )${e}=([^;]+)`));
|
|
8386
8391
|
return t ? t[2] : null;
|
|
8387
|
-
},
|
|
8392
|
+
}, Id = (e, t, n = {}) => {
|
|
8388
8393
|
const {
|
|
8389
8394
|
maxAge: o = 31536e3,
|
|
8390
8395
|
// 365 days in seconds
|
|
8391
|
-
domain: r =
|
|
8396
|
+
domain: r = la(),
|
|
8392
8397
|
secure: a = !0,
|
|
8393
8398
|
sameSite: s = "Lax",
|
|
8394
8399
|
path: l = "/"
|
|
8395
8400
|
} = n;
|
|
8396
8401
|
let i = `${e}=${t}; max-age=${o}; path=${l}; samesite=${s}`;
|
|
8397
8402
|
r && (i += `; domain=${r}`), a && (i += "; secure"), document.cookie = i;
|
|
8398
|
-
},
|
|
8399
|
-
const { domain: n =
|
|
8403
|
+
}, Dd = (e, t = {}) => {
|
|
8404
|
+
const { domain: n = la(), path: o = "/" } = t;
|
|
8400
8405
|
let r = `${e}=; max-age=0; path=${o}`;
|
|
8401
8406
|
n && (r += `; domain=${n}`), document.cookie = r;
|
|
8402
|
-
},
|
|
8407
|
+
}, la = () => {
|
|
8403
8408
|
const e = window.location.hostname;
|
|
8404
8409
|
return e === "localhost" ? "localhost" : e.endsWith(".test") || e.endsWith(".io") ? "." + e.split(".").slice(-2).join(".") : e.endsWith(".com.au") ? "." + e.split(".").slice(-3).join(".") : e;
|
|
8405
|
-
},
|
|
8406
|
-
function
|
|
8407
|
-
|
|
8410
|
+
}, ca = [];
|
|
8411
|
+
function jd(e) {
|
|
8412
|
+
ca.push(e);
|
|
8408
8413
|
}
|
|
8409
|
-
function
|
|
8410
|
-
|
|
8414
|
+
function Hd() {
|
|
8415
|
+
ca.forEach((e) => e());
|
|
8411
8416
|
}
|
|
8412
|
-
function
|
|
8417
|
+
function Jp(e) {
|
|
8413
8418
|
let t = !1;
|
|
8414
|
-
return
|
|
8419
|
+
return jd(() => {
|
|
8415
8420
|
t = !1;
|
|
8416
8421
|
}), {
|
|
8417
8422
|
bootstrapApp: async () => {
|
|
@@ -8460,10 +8465,10 @@ const $o = "bolt-next-token", Ft = In("auth", () => {
|
|
|
8460
8465
|
}), t = (c = {}) => {
|
|
8461
8466
|
c.endpoints && Object.assign(e.endpoints, c.endpoints), c.routes && Object.assign(e.routes, c.routes), c.devCredentials && Object.assign(e.devCredentials, c.devCredentials), c.callbacks && Object.assign(e.callbacks, c.callbacks), c.overrideToken && (e.overrideToken = c.overrideToken);
|
|
8462
8467
|
}, n = (c) => {
|
|
8463
|
-
|
|
8468
|
+
Id($o, c), e.token = c;
|
|
8464
8469
|
}, o = () => {
|
|
8465
|
-
|
|
8466
|
-
}, r = () =>
|
|
8470
|
+
Dd($o), e.token = null;
|
|
8471
|
+
}, r = () => Fd($o), a = async (c) => {
|
|
8467
8472
|
const f = await vn.post(e.endpoints.login, c), d = f.headers.authorization;
|
|
8468
8473
|
return n(d), e.user = f.data, e.callbacks.onLoginSuccess && await e.callbacks.onLoginSuccess(f.data), f.data;
|
|
8469
8474
|
}, s = async () => {
|
|
@@ -8480,7 +8485,7 @@ const $o = "bolt-next-token", Ft = In("auth", () => {
|
|
|
8480
8485
|
} catch (c) {
|
|
8481
8486
|
throw e.callbacks.onLogoutError && await e.callbacks.onLogoutError(c), c;
|
|
8482
8487
|
} finally {
|
|
8483
|
-
o(), e.user = null,
|
|
8488
|
+
o(), e.user = null, Hd();
|
|
8484
8489
|
}
|
|
8485
8490
|
}, l = async () => {
|
|
8486
8491
|
const c = e.overrideToken || r();
|
|
@@ -8511,7 +8516,7 @@ const $o = "bolt-next-token", Ft = In("auth", () => {
|
|
|
8511
8516
|
getTokenCookie: r
|
|
8512
8517
|
};
|
|
8513
8518
|
});
|
|
8514
|
-
function
|
|
8519
|
+
function Vd(e = {}) {
|
|
8515
8520
|
const t = vn.create({
|
|
8516
8521
|
baseURL: e.baseURL || "",
|
|
8517
8522
|
timeout: e.timeout || 3e4,
|
|
@@ -8552,24 +8557,24 @@ function Hd(e = {}) {
|
|
|
8552
8557
|
), t;
|
|
8553
8558
|
}
|
|
8554
8559
|
let hn = null;
|
|
8555
|
-
function
|
|
8556
|
-
return hn =
|
|
8560
|
+
function Qp(e, t = {}) {
|
|
8561
|
+
return hn = Vd(t), e.provide("axios", hn), e.config.globalProperties.$axios = hn, hn;
|
|
8557
8562
|
}
|
|
8558
8563
|
function ro() {
|
|
8559
8564
|
if (!hn)
|
|
8560
8565
|
throw new Error("Axios instance not initialized. Call setupAxios() first.");
|
|
8561
8566
|
return hn;
|
|
8562
8567
|
}
|
|
8563
|
-
function
|
|
8568
|
+
function zd(e) {
|
|
8564
8569
|
return e?.status !== 422 ? null : e.data?.errors || null;
|
|
8565
8570
|
}
|
|
8566
8571
|
function rr(e) {
|
|
8567
8572
|
return e?.status === 422 ? e.data?.message || "Please fix the validation errors." : e?.data?.message || "An error occurred.";
|
|
8568
8573
|
}
|
|
8569
|
-
function
|
|
8574
|
+
function Nd(e) {
|
|
8570
8575
|
return e?.status === 422;
|
|
8571
8576
|
}
|
|
8572
|
-
function
|
|
8577
|
+
function em(e = {}) {
|
|
8573
8578
|
const {
|
|
8574
8579
|
endpoint: t = null,
|
|
8575
8580
|
successMessage: n = "Saved successfully!",
|
|
@@ -8603,8 +8608,8 @@ function Qp(e = {}) {
|
|
|
8603
8608
|
const L = x.response;
|
|
8604
8609
|
if (l && await l(x) === !0)
|
|
8605
8610
|
return { success: !1, data: null, error: x };
|
|
8606
|
-
if (
|
|
8607
|
-
const M =
|
|
8611
|
+
if (Nd(L)) {
|
|
8612
|
+
const M = zd(L);
|
|
8608
8613
|
M && v && c && v.setErrors([], M), f && (Qe.show({
|
|
8609
8614
|
type: "danger",
|
|
8610
8615
|
message: rr(L)
|
|
@@ -8639,7 +8644,7 @@ function Qp(e = {}) {
|
|
|
8639
8644
|
...t ? { submitCrud: m } : {}
|
|
8640
8645
|
};
|
|
8641
8646
|
}
|
|
8642
|
-
function
|
|
8647
|
+
function tm(e, t = {}) {
|
|
8643
8648
|
const { queryParams: n = "", fetchFn: o = null, fetchOnCreate: r = !1 } = t, a = Dt(), s = ke(null), l = ke(null), i = Q(() => a.params.id ?? null), c = Q(() => i.value !== null);
|
|
8644
8649
|
async function f() {
|
|
8645
8650
|
if (!(!r && !c.value)) {
|
|
@@ -8672,7 +8677,7 @@ function em(e, t = {}) {
|
|
|
8672
8677
|
(r || c.value) && f();
|
|
8673
8678
|
}), { data: s, error: l, resourceId: i, isEditMode: c, fetch: f, handleSuccess: d };
|
|
8674
8679
|
}
|
|
8675
|
-
function
|
|
8680
|
+
function nm(e, t = {}) {
|
|
8676
8681
|
const { endpoint: n, successMessage: o, errorMessage: r, onSuccess: a, onError: s } = t;
|
|
8677
8682
|
async function l(i) {
|
|
8678
8683
|
try {
|
|
@@ -8693,7 +8698,7 @@ function tm(e, t = {}) {
|
|
|
8693
8698
|
}
|
|
8694
8699
|
return { handleDelete: l };
|
|
8695
8700
|
}
|
|
8696
|
-
function
|
|
8701
|
+
function om(e = {}) {
|
|
8697
8702
|
const { items: t = [], defaultId: n = null, syncToQuery: o = !1 } = e, r = o === !0 ? "tab" : o || null, a = Tt(), s = Dt(), l = ke(t.map(i));
|
|
8698
8703
|
function i(b) {
|
|
8699
8704
|
return {
|
|
@@ -8791,31 +8796,31 @@ function nm(e = {}) {
|
|
|
8791
8796
|
};
|
|
8792
8797
|
}
|
|
8793
8798
|
const xn = /* @__PURE__ */ new Map();
|
|
8794
|
-
let
|
|
8795
|
-
function
|
|
8799
|
+
let Bd = 0;
|
|
8800
|
+
function qd() {
|
|
8796
8801
|
for (const e of xn.values())
|
|
8797
8802
|
if (e.isDirty)
|
|
8798
8803
|
return !0;
|
|
8799
8804
|
return !1;
|
|
8800
8805
|
}
|
|
8801
|
-
function
|
|
8806
|
+
function Wd() {
|
|
8802
8807
|
for (const e of xn.values())
|
|
8803
8808
|
if (e.isDirty && e.message)
|
|
8804
8809
|
return e.message;
|
|
8805
8810
|
return null;
|
|
8806
8811
|
}
|
|
8807
|
-
function
|
|
8812
|
+
function Ud() {
|
|
8808
8813
|
for (const e of xn.values())
|
|
8809
8814
|
e.isDirty = !1;
|
|
8810
8815
|
}
|
|
8811
|
-
function
|
|
8816
|
+
function sm(e = {}) {
|
|
8812
8817
|
const {
|
|
8813
8818
|
message: t = "You have unsaved changes. Leave anyway?",
|
|
8814
8819
|
title: n = "Unsaved Changes",
|
|
8815
8820
|
confirmText: o = "Leave",
|
|
8816
8821
|
cancelText: r = "Stay",
|
|
8817
8822
|
useRouteGuard: a = !0
|
|
8818
|
-
} = e, s = `form-${++
|
|
8823
|
+
} = e, s = `form-${++Bd}`, l = ke(!1);
|
|
8819
8824
|
xn.set(s, {
|
|
8820
8825
|
isDirty: !1,
|
|
8821
8826
|
message: t
|
|
@@ -8858,7 +8863,7 @@ function om(e = {}) {
|
|
|
8858
8863
|
disableBrowserWarning: y
|
|
8859
8864
|
};
|
|
8860
8865
|
}
|
|
8861
|
-
const
|
|
8866
|
+
const rm = [
|
|
8862
8867
|
{ label: "Australian Capital Territory", value: "ACT" },
|
|
8863
8868
|
{ label: "New South Wales", value: "NSW" },
|
|
8864
8869
|
{ label: "Northern Territory", value: "NT" },
|
|
@@ -8867,26 +8872,26 @@ const sm = [
|
|
|
8867
8872
|
{ label: "Tasmania", value: "TAS" },
|
|
8868
8873
|
{ label: "Victoria", value: "VIC" },
|
|
8869
8874
|
{ label: "Western Australia", value: "WA" }
|
|
8870
|
-
],
|
|
8875
|
+
], Zd = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, Gd = { class: "flex flex-1 flex-col min-h-0" }, Yd = { class: "flex-shrink-0 flex items-center pb-8" }, Xd = {
|
|
8871
8876
|
role: "list",
|
|
8872
8877
|
class: "flex-1 overflow-y-auto"
|
|
8873
|
-
},
|
|
8878
|
+
}, Kd = ["href", "onClick"], Jd = {
|
|
8874
8879
|
key: 2,
|
|
8875
8880
|
class: "w-full flex justify-center"
|
|
8876
|
-
},
|
|
8881
|
+
}, Qd = {
|
|
8877
8882
|
key: 0,
|
|
8878
8883
|
class: "mt-[5px] flex flex-col gap-[5px]"
|
|
8879
|
-
},
|
|
8884
|
+
}, ef = ["href", "onClick"], tf = {
|
|
8880
8885
|
key: 1,
|
|
8881
8886
|
class: "text-[13px]"
|
|
8882
|
-
},
|
|
8887
|
+
}, nf = { class: "flex-shrink-0 mt-auto" }, of = {
|
|
8883
8888
|
key: 0,
|
|
8884
8889
|
role: "list",
|
|
8885
8890
|
class: "flex flex-col gap-[5px]"
|
|
8886
|
-
},
|
|
8891
|
+
}, sf = ["href", "onClick"], rf = {
|
|
8887
8892
|
key: 1,
|
|
8888
8893
|
class: "text-[13px]"
|
|
8889
|
-
},
|
|
8894
|
+
}, af = { class: "p-[10px] flex-shrink-0" }, lf = { class: "flex flex-1 items-center gap-x-6" }, cf = { class: "relative flex flex-1 items-center gap-4" }, uf = { class: "cursor-pointer" }, df = ["src"], ff = { class: "ml-auto" }, pf = { class: "mr-[10px] pb-[10px] flex-1 flex flex-col" }, am = {
|
|
8890
8895
|
__name: "SparkDefaultContainer",
|
|
8891
8896
|
props: {
|
|
8892
8897
|
appStore: {
|
|
@@ -8908,16 +8913,16 @@ const sm = [
|
|
|
8908
8913
|
() => n.mainNavStore.state.menu.filter((h) => !h.footerSection)
|
|
8909
8914
|
), i = Q(
|
|
8910
8915
|
() => n.mainNavStore.state.menu.filter((h) => h.footerSection).flatMap((h) => h.children || [])
|
|
8911
|
-
), c =
|
|
8916
|
+
), c = Kr(), f = Gr(), d = Q(() => f.getAppIcon(n.appStore.state.app)), u = Q(() => a.meta.hideBrandSelector === !0 ? !1 : n.appStore.state.showBrandSelector), p = () => {
|
|
8912
8917
|
const h = {};
|
|
8913
|
-
r["app-selector-bottom"] ? h.bottomSlot = () => rs("div", {}, r["app-selector-bottom"]()) : n.appSelectorSlots.bottomSlot && (h.bottomSlot = n.appSelectorSlots.bottomSlot), r["app-selector-footer"] ? h.footerSlot = () => rs("div", {}, r["app-selector-footer"]()) : n.appSelectorSlots.footerSlot && (h.footerSlot = n.appSelectorSlots.footerSlot), Jt.showRight(
|
|
8918
|
+
r["app-selector-bottom"] ? h.bottomSlot = () => rs("div", {}, r["app-selector-bottom"]()) : n.appSelectorSlots.bottomSlot && (h.bottomSlot = n.appSelectorSlots.bottomSlot), r["app-selector-footer"] ? h.footerSlot = () => rs("div", {}, r["app-selector-footer"]()) : n.appSelectorSlots.footerSlot && (h.footerSlot = n.appSelectorSlots.footerSlot), Jt.showRight(cc, h, {
|
|
8914
8919
|
select: () => {
|
|
8915
8920
|
Jt.closeRight();
|
|
8916
8921
|
}
|
|
8917
8922
|
});
|
|
8918
8923
|
}, y = () => {
|
|
8919
8924
|
Jt.showLeft(
|
|
8920
|
-
|
|
8925
|
+
Pc,
|
|
8921
8926
|
{},
|
|
8922
8927
|
{
|
|
8923
8928
|
select: (h) => {
|
|
@@ -8932,9 +8937,9 @@ const sm = [
|
|
|
8932
8937
|
_("div", {
|
|
8933
8938
|
class: _e([m.value, "fixed inset-y-0 flex transition-all z-100"])
|
|
8934
8939
|
}, [
|
|
8935
|
-
_("div",
|
|
8936
|
-
_("nav",
|
|
8937
|
-
_("div",
|
|
8940
|
+
_("div", Zd, [
|
|
8941
|
+
_("nav", Gd, [
|
|
8942
|
+
_("div", Yd, [
|
|
8938
8943
|
_("a", {
|
|
8939
8944
|
class: "grid w-[40px] h-[40px] place-items-center rounded-md bg-primary-600 text-white text-[13px] cursor-pointer",
|
|
8940
8945
|
onClick: b[0] || (b[0] = Xe((x) => e.mainNavStore.goto(e.appStore.state.homeRoute), ["prevent"]))
|
|
@@ -8950,7 +8955,7 @@ const sm = [
|
|
|
8950
8955
|
onClick: b[1] || (b[1] = Xe((x) => e.mainNavStore.goto(e.appStore.state.homeRoute), ["prevent"]))
|
|
8951
8956
|
}, xe(e.appStore.state.app), 1))
|
|
8952
8957
|
]),
|
|
8953
|
-
_("ul",
|
|
8958
|
+
_("ul", Xd, [
|
|
8954
8959
|
(T(!0), P(ze, null, st(l.value, (x) => (T(), P("li", {
|
|
8955
8960
|
key: x.name,
|
|
8956
8961
|
class: _e({ "mt-[10px]": x.children })
|
|
@@ -8968,7 +8973,7 @@ const sm = [
|
|
|
8968
8973
|
icon: ne(Ie)[x.icon],
|
|
8969
8974
|
class: _e([[(s(x), "text-gray-400")], "size-4"])
|
|
8970
8975
|
}, null, 8, ["icon", "class"])) : he("", !0),
|
|
8971
|
-
e.mainNavStore.state.collapsed ? x?.children ? (T(), P("div",
|
|
8976
|
+
e.mainNavStore.state.collapsed ? x?.children ? (T(), P("div", Jd, [...b[6] || (b[6] = [
|
|
8972
8977
|
_("div", { class: "w-[10px] h-px bg-gray-400" }, null, -1)
|
|
8973
8978
|
])])) : he("", !0) : (T(), P("span", {
|
|
8974
8979
|
key: 1,
|
|
@@ -8979,8 +8984,8 @@ const sm = [
|
|
|
8979
8984
|
"text-gray-500": x?.children
|
|
8980
8985
|
})
|
|
8981
8986
|
}, xe(x.name), 3))
|
|
8982
|
-
], 10,
|
|
8983
|
-
x.children ? (T(), P("ul",
|
|
8987
|
+
], 10, Kd),
|
|
8988
|
+
x.children ? (T(), P("ul", Qd, [
|
|
8984
8989
|
(T(!0), P(ze, null, st(x.children, (L) => (T(), P("li", {
|
|
8985
8990
|
key: L.name
|
|
8986
8991
|
}, [
|
|
@@ -8994,14 +8999,14 @@ const sm = [
|
|
|
8994
8999
|
icon: ne(Ie)[L.icon],
|
|
8995
9000
|
class: _e([[(s(L), "text-gray-400")], "size-4"])
|
|
8996
9001
|
}, null, 8, ["icon", "class"])) : he("", !0),
|
|
8997
|
-
e.mainNavStore.state.collapsed ? he("", !0) : (T(), P("span",
|
|
8998
|
-
], 10,
|
|
9002
|
+
e.mainNavStore.state.collapsed ? he("", !0) : (T(), P("span", tf, xe(L.name), 1))
|
|
9003
|
+
], 10, ef)
|
|
8999
9004
|
]))), 128))
|
|
9000
9005
|
])) : he("", !0)
|
|
9001
9006
|
], 2))), 128))
|
|
9002
9007
|
]),
|
|
9003
|
-
_("div",
|
|
9004
|
-
i.value.length ? (T(), P("ul",
|
|
9008
|
+
_("div", nf, [
|
|
9009
|
+
i.value.length ? (T(), P("ul", of, [
|
|
9005
9010
|
(T(!0), P(ze, null, st(i.value, (x) => (T(), P("li", {
|
|
9006
9011
|
key: x.name
|
|
9007
9012
|
}, [
|
|
@@ -9015,8 +9020,8 @@ const sm = [
|
|
|
9015
9020
|
icon: ne(Ie)[x.icon],
|
|
9016
9021
|
class: _e([[(s(x), "text-gray-400")], "size-4"])
|
|
9017
9022
|
}, null, 8, ["icon", "class"])) : he("", !0),
|
|
9018
|
-
e.mainNavStore.state.collapsed ? he("", !0) : (T(), P("span",
|
|
9019
|
-
], 10,
|
|
9023
|
+
e.mainNavStore.state.collapsed ? he("", !0) : (T(), P("span", rf, xe(x.name), 1))
|
|
9024
|
+
], 10, sf)
|
|
9020
9025
|
]))), 128))
|
|
9021
9026
|
])) : he("", !0),
|
|
9022
9027
|
Ke(h.$slots, "sidebar-footer"),
|
|
@@ -9037,11 +9042,11 @@ const sm = [
|
|
|
9037
9042
|
_("div", {
|
|
9038
9043
|
class: _e([g.value, "h-full transition-all flex flex-col"])
|
|
9039
9044
|
}, [
|
|
9040
|
-
_("div",
|
|
9041
|
-
_("div",
|
|
9042
|
-
_("div",
|
|
9045
|
+
_("div", af, [
|
|
9046
|
+
_("div", lf, [
|
|
9047
|
+
_("div", cf, [
|
|
9043
9048
|
Ke(h.$slots, "header-left", {}, () => [
|
|
9044
|
-
_("div",
|
|
9049
|
+
_("div", uf, [
|
|
9045
9050
|
oe(v, {
|
|
9046
9051
|
icon: ne(Ie).farBarsSort,
|
|
9047
9052
|
class: "size-5",
|
|
@@ -9060,10 +9065,10 @@ const sm = [
|
|
|
9060
9065
|
src: ne(c).currentBrand.logo,
|
|
9061
9066
|
alt: "",
|
|
9062
9067
|
class: "h-[30px] w-auto"
|
|
9063
|
-
}, null, 8,
|
|
9068
|
+
}, null, 8, df)) : he("", !0)
|
|
9064
9069
|
])) : he("", !0)
|
|
9065
9070
|
]),
|
|
9066
|
-
_("div",
|
|
9071
|
+
_("div", ff, [
|
|
9067
9072
|
Ke(h.$slots, "header-right", {}, () => [
|
|
9068
9073
|
e.appStore.state.showAppSelector ? (T(), P("button", {
|
|
9069
9074
|
key: 0,
|
|
@@ -9081,7 +9086,7 @@ const sm = [
|
|
|
9081
9086
|
])
|
|
9082
9087
|
])
|
|
9083
9088
|
]),
|
|
9084
|
-
_("main",
|
|
9089
|
+
_("main", pf, [
|
|
9085
9090
|
oe(k)
|
|
9086
9091
|
])
|
|
9087
9092
|
], 2),
|
|
@@ -9095,28 +9100,28 @@ const sm = [
|
|
|
9095
9100
|
"overlay-instance": ne(Jt).right,
|
|
9096
9101
|
onClose: b[5] || (b[5] = (x) => o("overlayClose", "right"))
|
|
9097
9102
|
}, null, 8, ["overlay-instance"]),
|
|
9098
|
-
oe(ne(
|
|
9103
|
+
oe(ne(xu))
|
|
9099
9104
|
], 64);
|
|
9100
9105
|
};
|
|
9101
9106
|
}
|
|
9102
|
-
},
|
|
9103
|
-
function
|
|
9107
|
+
}, mf = {}, gf = { class: "h-full" };
|
|
9108
|
+
function hf(e, t) {
|
|
9104
9109
|
const n = Ue("router-view");
|
|
9105
|
-
return T(), P("main",
|
|
9110
|
+
return T(), P("main", gf, [
|
|
9106
9111
|
oe(n)
|
|
9107
9112
|
]);
|
|
9108
9113
|
}
|
|
9109
|
-
const
|
|
9114
|
+
const im = /* @__PURE__ */ an(mf, [["render", hf]]), vf = { class: "h-full grid place-content-center relative" }, yf = { class: "absolute top-8 left-8" }, bf = ["src"], xf = {
|
|
9110
9115
|
key: 1,
|
|
9111
9116
|
width: "59",
|
|
9112
9117
|
height: "23",
|
|
9113
9118
|
viewBox: "0 0 59 23",
|
|
9114
9119
|
fill: "none",
|
|
9115
9120
|
xmlns: "http://www.w3.org/2000/svg"
|
|
9116
|
-
},
|
|
9121
|
+
}, wf = { class: "max-w-sm grid gap-y-1 -mt-8" }, Sf = { class: "mb-7" }, kf = { class: "text-gray-600" }, Ef = { class: "grid grid-flow-col justify-between mt-1 mb-4" }, Tf = {
|
|
9117
9122
|
key: 0,
|
|
9118
9123
|
class: "text-red-600 text-sm mb-2"
|
|
9119
|
-
},
|
|
9124
|
+
}, Cf = { key: 0 }, _f = { key: 1 }, $f = {
|
|
9120
9125
|
__name: "SparkLoginView",
|
|
9121
9126
|
props: {
|
|
9122
9127
|
logo: {
|
|
@@ -9133,7 +9138,7 @@ const am = /* @__PURE__ */ an(pf, [["render", gf]]), hf = { class: "h-full grid
|
|
|
9133
9138
|
}
|
|
9134
9139
|
},
|
|
9135
9140
|
setup(e) {
|
|
9136
|
-
const t = Tt(), n = Dt(), o =
|
|
9141
|
+
const t = Tt(), n = Dt(), o = Yr(), r = Ft(), a = e, s = ke(!1), l = ke(""), i = async (c) => {
|
|
9137
9142
|
s.value = !0, l.value = "";
|
|
9138
9143
|
try {
|
|
9139
9144
|
await r.login(c);
|
|
@@ -9154,14 +9159,14 @@ const am = /* @__PURE__ */ an(pf, [["render", gf]]), hf = { class: "h-full grid
|
|
|
9154
9159
|
};
|
|
9155
9160
|
return (c, f) => {
|
|
9156
9161
|
const d = Ue("FormKit"), u = Ue("router-link");
|
|
9157
|
-
return T(), P("div",
|
|
9158
|
-
_("div",
|
|
9162
|
+
return T(), P("div", vf, [
|
|
9163
|
+
_("div", yf, [
|
|
9159
9164
|
a.logo ? (T(), P("img", {
|
|
9160
9165
|
key: 0,
|
|
9161
9166
|
src: a.logo,
|
|
9162
9167
|
alt: "Logo",
|
|
9163
9168
|
class: "h-[23px] w-auto"
|
|
9164
|
-
}, null, 8,
|
|
9169
|
+
}, null, 8, bf)) : (T(), P("svg", xf, [...f[0] || (f[0] = [
|
|
9165
9170
|
_("path", {
|
|
9166
9171
|
d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
|
|
9167
9172
|
fill: "#1C64F2"
|
|
@@ -9180,10 +9185,10 @@ const am = /* @__PURE__ */ an(pf, [["render", gf]]), hf = { class: "h-full grid
|
|
|
9180
9185
|
}, null, -1)
|
|
9181
9186
|
])]))
|
|
9182
9187
|
]),
|
|
9183
|
-
_("div",
|
|
9184
|
-
_("div",
|
|
9188
|
+
_("div", wf, [
|
|
9189
|
+
_("div", Sf, [
|
|
9185
9190
|
f[1] || (f[1] = _("h1", { class: "text-4xl text-gray-900 semibold tracking-tight mb-3" }, "Log in", -1)),
|
|
9186
|
-
_("p",
|
|
9191
|
+
_("p", kf, " Welcome back" + xe(ne(o).state.app ? ` to ${ne(o).state.app}` : "") + "! Please enter your details. ", 1)
|
|
9187
9192
|
]),
|
|
9188
9193
|
oe(d, {
|
|
9189
9194
|
type: "form",
|
|
@@ -9209,7 +9214,7 @@ const am = /* @__PURE__ */ an(pf, [["render", gf]]), hf = { class: "h-full grid
|
|
|
9209
9214
|
"outer-class": "max-w-full",
|
|
9210
9215
|
value: ne(r).state.devCredentials.password
|
|
9211
9216
|
}, null, 8, ["value"]),
|
|
9212
|
-
_("div",
|
|
9217
|
+
_("div", Ef, [
|
|
9213
9218
|
f[3] || (f[3] = _("span", null, null, -1)),
|
|
9214
9219
|
oe(u, {
|
|
9215
9220
|
to: a.forgotPasswordRoute,
|
|
@@ -9221,7 +9226,7 @@ const am = /* @__PURE__ */ an(pf, [["render", gf]]), hf = { class: "h-full grid
|
|
|
9221
9226
|
_: 1
|
|
9222
9227
|
}, 8, ["to"])
|
|
9223
9228
|
]),
|
|
9224
|
-
l.value ? (T(), P("div",
|
|
9229
|
+
l.value ? (T(), P("div", Tf, xe(l.value), 1)) : he("", !0),
|
|
9225
9230
|
oe(ne(mt), {
|
|
9226
9231
|
type: "submit",
|
|
9227
9232
|
size: "xl",
|
|
@@ -9229,7 +9234,7 @@ const am = /* @__PURE__ */ an(pf, [["render", gf]]), hf = { class: "h-full grid
|
|
|
9229
9234
|
"button-class": "w-full mb-2"
|
|
9230
9235
|
}, {
|
|
9231
9236
|
default: we(() => [
|
|
9232
|
-
s.value ? (T(), P("span",
|
|
9237
|
+
s.value ? (T(), P("span", _f, "Signing in...")) : (T(), P("span", Cf, "Sign in"))
|
|
9233
9238
|
]),
|
|
9234
9239
|
_: 1
|
|
9235
9240
|
}, 8, ["disabled"])
|
|
@@ -9240,7 +9245,7 @@ const am = /* @__PURE__ */ an(pf, [["render", gf]]), hf = { class: "h-full grid
|
|
|
9240
9245
|
]);
|
|
9241
9246
|
};
|
|
9242
9247
|
}
|
|
9243
|
-
},
|
|
9248
|
+
}, Mf = {
|
|
9244
9249
|
__name: "SparkLogoutView",
|
|
9245
9250
|
props: {
|
|
9246
9251
|
defaultRedirect: {
|
|
@@ -9256,20 +9261,20 @@ const am = /* @__PURE__ */ an(pf, [["render", gf]]), hf = { class: "h-full grid
|
|
|
9256
9261
|
a && a.startsWith("http") ? window.location.href = a : await t.push(a || r.defaultRedirect);
|
|
9257
9262
|
}), (a, s) => (T(), P("span"));
|
|
9258
9263
|
}
|
|
9259
|
-
},
|
|
9264
|
+
}, Lf = { class: "h-full grid place-content-center relative" }, Of = { class: "absolute top-8 left-8" }, Pf = ["src"], Af = {
|
|
9260
9265
|
key: 1,
|
|
9261
9266
|
width: "59",
|
|
9262
9267
|
height: "23",
|
|
9263
9268
|
viewBox: "0 0 59 23",
|
|
9264
9269
|
fill: "none",
|
|
9265
9270
|
xmlns: "http://www.w3.org/2000/svg"
|
|
9266
|
-
},
|
|
9271
|
+
}, Rf = { class: "max-w-sm grid gap-y-1 -mt-8" }, Ff = {
|
|
9267
9272
|
key: 0,
|
|
9268
9273
|
class: "text-red-600 text-sm mb-2"
|
|
9269
|
-
},
|
|
9274
|
+
}, If = {
|
|
9270
9275
|
key: 1,
|
|
9271
9276
|
class: "text-green-600 text-sm mb-2"
|
|
9272
|
-
},
|
|
9277
|
+
}, Df = { key: 0 }, jf = { key: 1 }, Hf = {
|
|
9273
9278
|
__name: "SparkForgotPasswordView",
|
|
9274
9279
|
props: {
|
|
9275
9280
|
logo: {
|
|
@@ -9294,14 +9299,14 @@ const am = /* @__PURE__ */ an(pf, [["render", gf]]), hf = { class: "h-full grid
|
|
|
9294
9299
|
};
|
|
9295
9300
|
return (l, i) => {
|
|
9296
9301
|
const c = Ue("FormKit"), f = Ue("router-link");
|
|
9297
|
-
return T(), P("div",
|
|
9298
|
-
_("div",
|
|
9302
|
+
return T(), P("div", Lf, [
|
|
9303
|
+
_("div", Of, [
|
|
9299
9304
|
n.logo ? (T(), P("img", {
|
|
9300
9305
|
key: 0,
|
|
9301
9306
|
src: n.logo,
|
|
9302
9307
|
alt: "Logo",
|
|
9303
9308
|
class: "h-[23px] w-auto"
|
|
9304
|
-
}, null, 8,
|
|
9309
|
+
}, null, 8, Pf)) : (T(), P("svg", Af, [...i[0] || (i[0] = [
|
|
9305
9310
|
_("path", {
|
|
9306
9311
|
d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
|
|
9307
9312
|
fill: "#1C64F2"
|
|
@@ -9320,7 +9325,7 @@ const am = /* @__PURE__ */ an(pf, [["render", gf]]), hf = { class: "h-full grid
|
|
|
9320
9325
|
}, null, -1)
|
|
9321
9326
|
])]))
|
|
9322
9327
|
]),
|
|
9323
|
-
_("div",
|
|
9328
|
+
_("div", Rf, [
|
|
9324
9329
|
i[2] || (i[2] = _("div", { class: "mb-7" }, [
|
|
9325
9330
|
_("h1", { class: "text-4xl text-gray-900 semibold tracking-tight mb-3" }, "Reset password"),
|
|
9326
9331
|
_("p", { class: "text-gray-600" }, " Enter your email and we'll send you a link to reset your password. ")
|
|
@@ -9339,8 +9344,8 @@ const am = /* @__PURE__ */ an(pf, [["render", gf]]), hf = { class: "h-full grid
|
|
|
9339
9344
|
validation: "required|email",
|
|
9340
9345
|
"outer-class": "max-w-full"
|
|
9341
9346
|
}),
|
|
9342
|
-
r.value ? (T(), P("div",
|
|
9343
|
-
a.value ? (T(), P("div",
|
|
9347
|
+
r.value ? (T(), P("div", Ff, xe(r.value), 1)) : he("", !0),
|
|
9348
|
+
a.value ? (T(), P("div", If, xe(a.value), 1)) : he("", !0),
|
|
9344
9349
|
oe(ne(mt), {
|
|
9345
9350
|
type: "submit",
|
|
9346
9351
|
size: "xl",
|
|
@@ -9348,7 +9353,7 @@ const am = /* @__PURE__ */ an(pf, [["render", gf]]), hf = { class: "h-full grid
|
|
|
9348
9353
|
"button-class": "w-full mb-2"
|
|
9349
9354
|
}, {
|
|
9350
9355
|
default: we(() => [
|
|
9351
|
-
o.value ? (T(), P("span",
|
|
9356
|
+
o.value ? (T(), P("span", jf, "Sending...")) : (T(), P("span", Df, "Send reset link"))
|
|
9352
9357
|
]),
|
|
9353
9358
|
_: 1
|
|
9354
9359
|
}, 8, ["disabled"]),
|
|
@@ -9368,17 +9373,17 @@ const am = /* @__PURE__ */ an(pf, [["render", gf]]), hf = { class: "h-full grid
|
|
|
9368
9373
|
]);
|
|
9369
9374
|
};
|
|
9370
9375
|
}
|
|
9371
|
-
},
|
|
9376
|
+
}, Vf = { class: "h-full grid place-content-center relative" }, zf = { class: "absolute top-8 left-8" }, Nf = ["src"], Bf = {
|
|
9372
9377
|
key: 1,
|
|
9373
9378
|
width: "59",
|
|
9374
9379
|
height: "23",
|
|
9375
9380
|
viewBox: "0 0 59 23",
|
|
9376
9381
|
fill: "none",
|
|
9377
9382
|
xmlns: "http://www.w3.org/2000/svg"
|
|
9378
|
-
},
|
|
9383
|
+
}, qf = { class: "max-w-sm grid gap-y-1 -mt-8" }, Wf = {
|
|
9379
9384
|
key: 0,
|
|
9380
9385
|
class: "text-red-600 text-sm mb-2"
|
|
9381
|
-
},
|
|
9386
|
+
}, Uf = { key: 0 }, Zf = { key: 1 }, Gf = {
|
|
9382
9387
|
__name: "SparkResetPasswordView",
|
|
9383
9388
|
props: {
|
|
9384
9389
|
logo: {
|
|
@@ -9408,14 +9413,14 @@ const am = /* @__PURE__ */ an(pf, [["render", gf]]), hf = { class: "h-full grid
|
|
|
9408
9413
|
};
|
|
9409
9414
|
return (i, c) => {
|
|
9410
9415
|
const f = Ue("FormKit");
|
|
9411
|
-
return T(), P("div",
|
|
9412
|
-
_("div",
|
|
9416
|
+
return T(), P("div", Vf, [
|
|
9417
|
+
_("div", zf, [
|
|
9413
9418
|
r.logo ? (T(), P("img", {
|
|
9414
9419
|
key: 0,
|
|
9415
9420
|
src: r.logo,
|
|
9416
9421
|
alt: "Logo",
|
|
9417
9422
|
class: "h-[23px] w-auto"
|
|
9418
|
-
}, null, 8,
|
|
9423
|
+
}, null, 8, Nf)) : (T(), P("svg", Bf, [...c[0] || (c[0] = [
|
|
9419
9424
|
_("path", {
|
|
9420
9425
|
d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
|
|
9421
9426
|
fill: "#1C64F2"
|
|
@@ -9434,7 +9439,7 @@ const am = /* @__PURE__ */ an(pf, [["render", gf]]), hf = { class: "h-full grid
|
|
|
9434
9439
|
}, null, -1)
|
|
9435
9440
|
])]))
|
|
9436
9441
|
]),
|
|
9437
|
-
_("div",
|
|
9442
|
+
_("div", qf, [
|
|
9438
9443
|
c[1] || (c[1] = _("div", { class: "mb-7" }, [
|
|
9439
9444
|
_("h1", { class: "text-4xl text-gray-900 semibold tracking-tight mb-3" }, "Set new password"),
|
|
9440
9445
|
_("p", { class: "text-gray-600" }, "Enter your new password below.")
|
|
@@ -9461,7 +9466,7 @@ const am = /* @__PURE__ */ an(pf, [["render", gf]]), hf = { class: "h-full grid
|
|
|
9461
9466
|
validation: "required|confirm:password",
|
|
9462
9467
|
"outer-class": "max-w-full"
|
|
9463
9468
|
}),
|
|
9464
|
-
s.value ? (T(), P("div",
|
|
9469
|
+
s.value ? (T(), P("div", Wf, xe(s.value), 1)) : he("", !0),
|
|
9465
9470
|
oe(ne(mt), {
|
|
9466
9471
|
type: "submit",
|
|
9467
9472
|
size: "xl",
|
|
@@ -9469,7 +9474,7 @@ const am = /* @__PURE__ */ an(pf, [["render", gf]]), hf = { class: "h-full grid
|
|
|
9469
9474
|
"button-class": "w-full mb-2"
|
|
9470
9475
|
}, {
|
|
9471
9476
|
default: we(() => [
|
|
9472
|
-
a.value ? (T(), P("span",
|
|
9477
|
+
a.value ? (T(), P("span", Zf, "Resetting...")) : (T(), P("span", Uf, "Reset password"))
|
|
9473
9478
|
]),
|
|
9474
9479
|
_: 1
|
|
9475
9480
|
}, 8, ["disabled"])
|
|
@@ -9480,14 +9485,14 @@ const am = /* @__PURE__ */ an(pf, [["render", gf]]), hf = { class: "h-full grid
|
|
|
9480
9485
|
]);
|
|
9481
9486
|
};
|
|
9482
9487
|
}
|
|
9483
|
-
},
|
|
9488
|
+
}, Yf = { class: "h-full grid place-content-center relative" }, Xf = { class: "absolute top-8 left-8" }, Kf = ["src"], Jf = {
|
|
9484
9489
|
key: 1,
|
|
9485
9490
|
width: "59",
|
|
9486
9491
|
height: "23",
|
|
9487
9492
|
viewBox: "0 0 59 23",
|
|
9488
9493
|
fill: "none",
|
|
9489
9494
|
xmlns: "http://www.w3.org/2000/svg"
|
|
9490
|
-
},
|
|
9495
|
+
}, Qf = { class: "max-w-lg grid gap-y-6 text-center -mt-8" }, ep = { class: "flex gap-4 justify-center" }, tp = {
|
|
9491
9496
|
__name: "SparkError403View",
|
|
9492
9497
|
props: {
|
|
9493
9498
|
logo: {
|
|
@@ -9503,14 +9508,14 @@ const am = /* @__PURE__ */ an(pf, [["render", gf]]), hf = { class: "h-full grid
|
|
|
9503
9508
|
const t = Tt(), n = e, o = () => {
|
|
9504
9509
|
t.push(n.homeRoute);
|
|
9505
9510
|
};
|
|
9506
|
-
return (r, a) => (T(), P("div",
|
|
9507
|
-
_("div",
|
|
9511
|
+
return (r, a) => (T(), P("div", Yf, [
|
|
9512
|
+
_("div", Xf, [
|
|
9508
9513
|
n.logo ? (T(), P("img", {
|
|
9509
9514
|
key: 0,
|
|
9510
9515
|
src: n.logo,
|
|
9511
9516
|
alt: "Logo",
|
|
9512
9517
|
class: "h-[23px] w-auto"
|
|
9513
|
-
}, null, 8,
|
|
9518
|
+
}, null, 8, Kf)) : (T(), P("svg", Jf, [...a[0] || (a[0] = [
|
|
9514
9519
|
_("path", {
|
|
9515
9520
|
d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
|
|
9516
9521
|
fill: "#1C64F2"
|
|
@@ -9529,7 +9534,7 @@ const am = /* @__PURE__ */ an(pf, [["render", gf]]), hf = { class: "h-full grid
|
|
|
9529
9534
|
}, null, -1)
|
|
9530
9535
|
])]))
|
|
9531
9536
|
]),
|
|
9532
|
-
_("div",
|
|
9537
|
+
_("div", Qf, [
|
|
9533
9538
|
a[2] || (a[2] = _("div", null, [
|
|
9534
9539
|
_("div", { class: "text-primary-600 text-7xl font-bold mb-4" }, "403"),
|
|
9535
9540
|
_("h1", { class: "text-3xl text-gray-900 font-semibold tracking-tight mb-3" }, "Access Forbidden"),
|
|
@@ -9539,7 +9544,7 @@ const am = /* @__PURE__ */ an(pf, [["render", gf]]), hf = { class: "h-full grid
|
|
|
9539
9544
|
qe(" If you believe this is an error, please contact your administrator. ")
|
|
9540
9545
|
])
|
|
9541
9546
|
], -1)),
|
|
9542
|
-
_("div",
|
|
9547
|
+
_("div", ep, [
|
|
9543
9548
|
oe(ne(mt), {
|
|
9544
9549
|
size: "lg",
|
|
9545
9550
|
onClick: o
|
|
@@ -9553,14 +9558,14 @@ const am = /* @__PURE__ */ an(pf, [["render", gf]]), hf = { class: "h-full grid
|
|
|
9553
9558
|
])
|
|
9554
9559
|
]));
|
|
9555
9560
|
}
|
|
9556
|
-
},
|
|
9561
|
+
}, np = { class: "h-full grid place-content-center relative" }, op = { class: "absolute top-8 left-8" }, sp = ["src"], rp = {
|
|
9557
9562
|
key: 1,
|
|
9558
9563
|
width: "59",
|
|
9559
9564
|
height: "23",
|
|
9560
9565
|
viewBox: "0 0 59 23",
|
|
9561
9566
|
fill: "none",
|
|
9562
9567
|
xmlns: "http://www.w3.org/2000/svg"
|
|
9563
|
-
},
|
|
9568
|
+
}, ap = { class: "max-w-lg grid gap-y-6 text-center -mt-8" }, ip = { class: "flex gap-4 justify-center" }, lp = {
|
|
9564
9569
|
__name: "SparkError404View",
|
|
9565
9570
|
props: {
|
|
9566
9571
|
logo: {
|
|
@@ -9576,14 +9581,14 @@ const am = /* @__PURE__ */ an(pf, [["render", gf]]), hf = { class: "h-full grid
|
|
|
9576
9581
|
const t = Tt(), n = e, o = () => {
|
|
9577
9582
|
t.push(n.homeRoute);
|
|
9578
9583
|
};
|
|
9579
|
-
return (r, a) => (T(), P("div",
|
|
9580
|
-
_("div",
|
|
9584
|
+
return (r, a) => (T(), P("div", np, [
|
|
9585
|
+
_("div", op, [
|
|
9581
9586
|
n.logo ? (T(), P("img", {
|
|
9582
9587
|
key: 0,
|
|
9583
9588
|
src: n.logo,
|
|
9584
9589
|
alt: "Logo",
|
|
9585
9590
|
class: "h-[23px] w-auto"
|
|
9586
|
-
}, null, 8,
|
|
9591
|
+
}, null, 8, sp)) : (T(), P("svg", rp, [...a[0] || (a[0] = [
|
|
9587
9592
|
_("path", {
|
|
9588
9593
|
d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
|
|
9589
9594
|
fill: "#1C64F2"
|
|
@@ -9602,13 +9607,13 @@ const am = /* @__PURE__ */ an(pf, [["render", gf]]), hf = { class: "h-full grid
|
|
|
9602
9607
|
}, null, -1)
|
|
9603
9608
|
])]))
|
|
9604
9609
|
]),
|
|
9605
|
-
_("div",
|
|
9610
|
+
_("div", ap, [
|
|
9606
9611
|
a[2] || (a[2] = _("div", null, [
|
|
9607
9612
|
_("div", { class: "text-primary-600 text-7xl font-bold mb-4" }, "404"),
|
|
9608
9613
|
_("h1", { class: "text-3xl text-gray-900 font-semibold tracking-tight mb-3" }, "Page Not Found"),
|
|
9609
9614
|
_("p", { class: "text-gray-600" }, "The page you're looking for doesn't exist or has been moved.")
|
|
9610
9615
|
], -1)),
|
|
9611
|
-
_("div",
|
|
9616
|
+
_("div", ip, [
|
|
9612
9617
|
oe(ne(mt), {
|
|
9613
9618
|
size: "lg",
|
|
9614
9619
|
onClick: o
|
|
@@ -9622,14 +9627,14 @@ const am = /* @__PURE__ */ an(pf, [["render", gf]]), hf = { class: "h-full grid
|
|
|
9622
9627
|
])
|
|
9623
9628
|
]));
|
|
9624
9629
|
}
|
|
9625
|
-
},
|
|
9630
|
+
}, cp = { class: "h-full grid place-content-center relative" }, up = { class: "absolute top-8 left-8" }, dp = ["src"], fp = {
|
|
9626
9631
|
key: 1,
|
|
9627
9632
|
width: "59",
|
|
9628
9633
|
height: "23",
|
|
9629
9634
|
viewBox: "0 0 59 23",
|
|
9630
9635
|
fill: "none",
|
|
9631
9636
|
xmlns: "http://www.w3.org/2000/svg"
|
|
9632
|
-
},
|
|
9637
|
+
}, pp = { class: "max-w-lg grid gap-y-6 text-center -mt-8" }, mp = { class: "text-primary-600 text-7xl font-bold mb-4" }, gp = { class: "text-3xl text-gray-900 font-semibold tracking-tight mb-3" }, hp = { class: "text-gray-600" }, vp = { class: "flex gap-4 justify-center" }, lm = {
|
|
9633
9638
|
__name: "SparkErrorGeneralView",
|
|
9634
9639
|
props: {
|
|
9635
9640
|
logo: {
|
|
@@ -9657,14 +9662,14 @@ const am = /* @__PURE__ */ an(pf, [["render", gf]]), hf = { class: "h-full grid
|
|
|
9657
9662
|
const t = Tt(), n = e, o = () => {
|
|
9658
9663
|
t.push(n.homeRoute);
|
|
9659
9664
|
};
|
|
9660
|
-
return (r, a) => (T(), P("div",
|
|
9661
|
-
_("div",
|
|
9665
|
+
return (r, a) => (T(), P("div", cp, [
|
|
9666
|
+
_("div", up, [
|
|
9662
9667
|
n.logo ? (T(), P("img", {
|
|
9663
9668
|
key: 0,
|
|
9664
9669
|
src: n.logo,
|
|
9665
9670
|
alt: "Logo",
|
|
9666
9671
|
class: "h-[23px] w-auto"
|
|
9667
|
-
}, null, 8,
|
|
9672
|
+
}, null, 8, dp)) : (T(), P("svg", fp, [...a[0] || (a[0] = [
|
|
9668
9673
|
_("path", {
|
|
9669
9674
|
d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
|
|
9670
9675
|
fill: "#1C64F2"
|
|
@@ -9683,13 +9688,13 @@ const am = /* @__PURE__ */ an(pf, [["render", gf]]), hf = { class: "h-full grid
|
|
|
9683
9688
|
}, null, -1)
|
|
9684
9689
|
])]))
|
|
9685
9690
|
]),
|
|
9686
|
-
_("div",
|
|
9691
|
+
_("div", pp, [
|
|
9687
9692
|
_("div", null, [
|
|
9688
|
-
_("div",
|
|
9689
|
-
_("h1",
|
|
9690
|
-
_("p",
|
|
9693
|
+
_("div", mp, xe(n.errorCode || "Error"), 1),
|
|
9694
|
+
_("h1", gp, xe(n.title || "Something went wrong"), 1),
|
|
9695
|
+
_("p", hp, xe(n.message || "An unexpected error occurred. Please try again later."), 1)
|
|
9691
9696
|
]),
|
|
9692
|
-
_("div",
|
|
9697
|
+
_("div", vp, [
|
|
9693
9698
|
oe(ne(mt), {
|
|
9694
9699
|
size: "lg",
|
|
9695
9700
|
onClick: o
|
|
@@ -9704,7 +9709,7 @@ const am = /* @__PURE__ */ an(pf, [["render", gf]]), hf = { class: "h-full grid
|
|
|
9704
9709
|
]));
|
|
9705
9710
|
}
|
|
9706
9711
|
};
|
|
9707
|
-
function
|
|
9712
|
+
function cm(e = {}) {
|
|
9708
9713
|
const {
|
|
9709
9714
|
loginPath: t = "/login",
|
|
9710
9715
|
logoutPath: n = "/logout",
|
|
@@ -9717,41 +9722,41 @@ function lm(e = {}) {
|
|
|
9717
9722
|
{
|
|
9718
9723
|
path: t,
|
|
9719
9724
|
name: "login",
|
|
9720
|
-
component:
|
|
9725
|
+
component: $f,
|
|
9721
9726
|
props: { logo: a, defaultRedirect: s },
|
|
9722
9727
|
meta: { auth: !1 }
|
|
9723
9728
|
},
|
|
9724
9729
|
{
|
|
9725
9730
|
path: n,
|
|
9726
9731
|
name: "logout",
|
|
9727
|
-
component:
|
|
9732
|
+
component: Mf,
|
|
9728
9733
|
props: { defaultRedirect: t },
|
|
9729
9734
|
meta: { auth: !1 }
|
|
9730
9735
|
},
|
|
9731
9736
|
{
|
|
9732
9737
|
path: o,
|
|
9733
9738
|
name: "forgot-password",
|
|
9734
|
-
component:
|
|
9739
|
+
component: Hf,
|
|
9735
9740
|
props: { logo: a, loginRoute: t },
|
|
9736
9741
|
meta: { auth: !1 }
|
|
9737
9742
|
},
|
|
9738
9743
|
{
|
|
9739
9744
|
path: r,
|
|
9740
9745
|
name: "password-reset",
|
|
9741
|
-
component:
|
|
9746
|
+
component: Gf,
|
|
9742
9747
|
props: { logo: a, loginRoute: t },
|
|
9743
9748
|
meta: { auth: !1 }
|
|
9744
9749
|
}
|
|
9745
9750
|
];
|
|
9746
9751
|
}
|
|
9747
|
-
function
|
|
9752
|
+
function um(e, t = {}) {
|
|
9748
9753
|
const { defaultAuthenticatedRoute: n = "/dashboard" } = t;
|
|
9749
9754
|
e.beforeEach(async (o, r, a) => {
|
|
9750
9755
|
const s = Ft();
|
|
9751
|
-
s.state.ready || await s.fetchUser(),
|
|
9756
|
+
s.state.ready || await s.fetchUser(), yp(o, a, s, n);
|
|
9752
9757
|
});
|
|
9753
9758
|
}
|
|
9754
|
-
function
|
|
9759
|
+
function yp(e, t, n, o) {
|
|
9755
9760
|
const r = e.meta.auth !== !1, a = n.check;
|
|
9756
9761
|
if (n.state.overrideToken && e.path === "/logout") {
|
|
9757
9762
|
t({ path: o });
|
|
@@ -9789,27 +9794,27 @@ function vp(e, t, n, o) {
|
|
|
9789
9794
|
t();
|
|
9790
9795
|
}
|
|
9791
9796
|
}
|
|
9792
|
-
function
|
|
9797
|
+
function dm(e = {}) {
|
|
9793
9798
|
const { forbiddenPath: t = "/error/403", logo: n = "", homeRoute: o = "/dashboard" } = e;
|
|
9794
9799
|
return {
|
|
9795
9800
|
path: t,
|
|
9796
9801
|
name: "error-403",
|
|
9797
|
-
component:
|
|
9802
|
+
component: tp,
|
|
9798
9803
|
props: { logo: n, homeRoute: o },
|
|
9799
9804
|
meta: { auth: !1 }
|
|
9800
9805
|
};
|
|
9801
9806
|
}
|
|
9802
|
-
function
|
|
9807
|
+
function fm(e = {}) {
|
|
9803
9808
|
const { logo: t = "", homeRoute: n = "/dashboard" } = e;
|
|
9804
9809
|
return {
|
|
9805
9810
|
path: "/:pathMatch(.*)*",
|
|
9806
9811
|
name: "error-404",
|
|
9807
|
-
component:
|
|
9812
|
+
component: lp,
|
|
9808
9813
|
props: { logo: t, homeRoute: n },
|
|
9809
9814
|
meta: { auth: !1 }
|
|
9810
9815
|
};
|
|
9811
9816
|
}
|
|
9812
|
-
function
|
|
9817
|
+
function pm(e, t) {
|
|
9813
9818
|
e.beforeResolve(async (n) => {
|
|
9814
9819
|
if (n.meta.auth !== !1) {
|
|
9815
9820
|
const o = Ft();
|
|
@@ -9817,7 +9822,7 @@ function fm(e, t) {
|
|
|
9817
9822
|
}
|
|
9818
9823
|
});
|
|
9819
9824
|
}
|
|
9820
|
-
function
|
|
9825
|
+
function mm(e, t = {}) {
|
|
9821
9826
|
const {
|
|
9822
9827
|
title: n = "Unsaved Changes",
|
|
9823
9828
|
message: o = "You have unsaved changes. Leave anyway?",
|
|
@@ -9825,21 +9830,21 @@ function pm(e, t = {}) {
|
|
|
9825
9830
|
cancelText: a = "Stay"
|
|
9826
9831
|
} = t;
|
|
9827
9832
|
e.beforeEach(async (s, l, i) => {
|
|
9828
|
-
if (!
|
|
9833
|
+
if (!qd()) {
|
|
9829
9834
|
i();
|
|
9830
9835
|
return;
|
|
9831
9836
|
}
|
|
9832
|
-
const c =
|
|
9837
|
+
const c = Wd() || o;
|
|
9833
9838
|
await Rt.confirm({
|
|
9834
9839
|
title: n,
|
|
9835
9840
|
message: c,
|
|
9836
9841
|
confirmText: r,
|
|
9837
9842
|
cancelText: a,
|
|
9838
9843
|
type: "warning"
|
|
9839
|
-
}) ? (
|
|
9844
|
+
}) ? (Ud(), i()) : i(!1);
|
|
9840
9845
|
});
|
|
9841
9846
|
}
|
|
9842
|
-
const
|
|
9847
|
+
const gm = In("sparkNav", () => {
|
|
9843
9848
|
const e = Et({
|
|
9844
9849
|
menu: [],
|
|
9845
9850
|
collapsed: !1,
|
|
@@ -9895,90 +9900,90 @@ const mm = In("sparkNav", () => {
|
|
|
9895
9900
|
};
|
|
9896
9901
|
});
|
|
9897
9902
|
export {
|
|
9898
|
-
|
|
9903
|
+
rm as AUSTRALIAN_STATES,
|
|
9899
9904
|
Ie as Icons,
|
|
9900
|
-
|
|
9905
|
+
Dp as SparkAddressInput,
|
|
9901
9906
|
fn as SparkAlert,
|
|
9902
|
-
|
|
9903
|
-
|
|
9907
|
+
cc as SparkAppSelector,
|
|
9908
|
+
Pc as SparkBrandSelector,
|
|
9904
9909
|
mt as SparkButton,
|
|
9905
|
-
|
|
9906
|
-
|
|
9907
|
-
|
|
9908
|
-
|
|
9909
|
-
|
|
9910
|
-
|
|
9911
|
-
|
|
9912
|
-
|
|
9913
|
-
|
|
9914
|
-
|
|
9915
|
-
|
|
9916
|
-
|
|
9917
|
-
|
|
9918
|
-
|
|
9919
|
-
|
|
9920
|
-
|
|
9910
|
+
Jr as SparkButtonGroup,
|
|
9911
|
+
Wp as SparkCard,
|
|
9912
|
+
am as SparkDefaultContainer,
|
|
9913
|
+
Up as SparkEntityBadge,
|
|
9914
|
+
tp as SparkError403View,
|
|
9915
|
+
lp as SparkError404View,
|
|
9916
|
+
lm as SparkErrorGeneralView,
|
|
9917
|
+
Kc as SparkFancybox,
|
|
9918
|
+
Gp as SparkFileDragUpload,
|
|
9919
|
+
Hf as SparkForgotPasswordView,
|
|
9920
|
+
Yp as SparkImageUpload,
|
|
9921
|
+
$f as SparkLoginView,
|
|
9922
|
+
Mf as SparkLogoutView,
|
|
9923
|
+
xu as SparkModalContainer,
|
|
9924
|
+
hu as SparkModalDialog,
|
|
9925
|
+
Bp as SparkNotificationOutlet,
|
|
9921
9926
|
Ks as SparkOverlay,
|
|
9922
|
-
|
|
9923
|
-
|
|
9924
|
-
|
|
9925
|
-
|
|
9926
|
-
|
|
9927
|
-
|
|
9928
|
-
|
|
9929
|
-
|
|
9930
|
-
|
|
9931
|
-
|
|
9932
|
-
|
|
9933
|
-
|
|
9927
|
+
im as SparkPublicContainer,
|
|
9928
|
+
Gf as SparkResetPasswordView,
|
|
9929
|
+
Xp as SparkSubNav,
|
|
9930
|
+
Kp as SparkTable,
|
|
9931
|
+
Ed as SparkTableDatePicker,
|
|
9932
|
+
wd as SparkTableFilterButtons,
|
|
9933
|
+
vd as SparkTableFilterSelect,
|
|
9934
|
+
od as SparkTablePaginationDetails,
|
|
9935
|
+
ld as SparkTablePaginationPaging,
|
|
9936
|
+
dd as SparkTablePaginationPerPage,
|
|
9937
|
+
$d as SparkTableReset,
|
|
9938
|
+
md as SparkTableSearch,
|
|
9934
9939
|
nr as SparkTableToolbar,
|
|
9935
|
-
|
|
9936
|
-
|
|
9937
|
-
|
|
9938
|
-
|
|
9939
|
-
|
|
9940
|
-
|
|
9941
|
-
|
|
9942
|
-
|
|
9943
|
-
|
|
9944
|
-
|
|
9945
|
-
|
|
9946
|
-
|
|
9947
|
-
|
|
9948
|
-
|
|
9949
|
-
|
|
9940
|
+
qp as SparkToastContainer,
|
|
9941
|
+
Zp as SparkTooltip,
|
|
9942
|
+
zp as addIcons,
|
|
9943
|
+
Ud as clearAllDirtyForms,
|
|
9944
|
+
dm as create403Route,
|
|
9945
|
+
fm as create404Route,
|
|
9946
|
+
cm as createAuthRoutes,
|
|
9947
|
+
Vd as createAxiosInstance,
|
|
9948
|
+
Jp as createBootstrapService,
|
|
9949
|
+
_u as customiseHeader,
|
|
9950
|
+
Dd as deleteCookie,
|
|
9951
|
+
Hp as formKitGenesisOverride,
|
|
9952
|
+
Vp as formKitIconLoader,
|
|
9953
|
+
jp as formKitIcons,
|
|
9954
|
+
qu as formatTemporal,
|
|
9950
9955
|
ro as getAxiosInstance,
|
|
9951
|
-
|
|
9952
|
-
|
|
9953
|
-
|
|
9956
|
+
Fd as getCookie,
|
|
9957
|
+
Wd as getDirtyFormMessage,
|
|
9958
|
+
la as getDomain,
|
|
9954
9959
|
rr as getFormLevelMessage,
|
|
9955
|
-
|
|
9956
|
-
|
|
9957
|
-
|
|
9958
|
-
|
|
9959
|
-
|
|
9960
|
-
|
|
9961
|
-
|
|
9962
|
-
|
|
9963
|
-
|
|
9964
|
-
|
|
9965
|
-
|
|
9960
|
+
qd as hasAnyDirtyForm,
|
|
9961
|
+
Nd as isValidationError,
|
|
9962
|
+
Wu as parseDatetime,
|
|
9963
|
+
zd as parseLaravelErrors,
|
|
9964
|
+
ku as renderHeaderTitle,
|
|
9965
|
+
Id as setCookie,
|
|
9966
|
+
um as setupAuthGuards,
|
|
9967
|
+
Qp as setupAxios,
|
|
9968
|
+
pm as setupBootstrapGuard,
|
|
9969
|
+
mm as setupDirtyFormGuard,
|
|
9970
|
+
Np as setupFontAwesome,
|
|
9966
9971
|
Vl as setupTooltip,
|
|
9967
9972
|
Rt as sparkModalService,
|
|
9968
9973
|
Qe as sparkNotificationService,
|
|
9969
9974
|
Jt as sparkOverlayService,
|
|
9970
|
-
|
|
9971
|
-
|
|
9972
|
-
|
|
9973
|
-
|
|
9975
|
+
Yu as updateRow,
|
|
9976
|
+
tm as useCrudResource,
|
|
9977
|
+
sm as useFormDirtyGuard,
|
|
9978
|
+
em as useFormSubmission,
|
|
9974
9979
|
Oi as useGooglePlaces,
|
|
9975
|
-
|
|
9976
|
-
|
|
9980
|
+
Gr as useSparkAppSelectorStore,
|
|
9981
|
+
Yr as useSparkAppStore,
|
|
9977
9982
|
Ft as useSparkAuthStore,
|
|
9978
|
-
|
|
9979
|
-
|
|
9983
|
+
Kr as useSparkBrandFilterStore,
|
|
9984
|
+
gm as useSparkNavStore,
|
|
9980
9985
|
sr as useSparkOverlay,
|
|
9981
|
-
|
|
9982
|
-
|
|
9983
|
-
|
|
9986
|
+
Xu as useSparkTableRouteSync,
|
|
9987
|
+
om as useSubNavigation,
|
|
9988
|
+
nm as useTableDelete
|
|
9984
9989
|
};
|