@wishbone-media/spark 0.30.1 → 0.31.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 +474 -473
- package/package.json +1 -1
- package/src/plugins/fontawesome.js +2 -0
package/dist/index.js
CHANGED
|
@@ -1,67 +1,68 @@
|
|
|
1
|
-
import { computed as $, resolveComponent as
|
|
1
|
+
import { computed as $, resolveComponent as A, createElementBlock as y, openBlock as h, normalizeClass as V, createElementVNode as m, createCommentVNode as T, createVNode as S, unref as C, renderSlot as O, reactive as K, Fragment as D, renderList as B, toDisplayString as M, createBlock as H, resolveDynamicComponent as Z, markRaw as ce, ref as R, watch as j, onMounted as ye, Transition as ht, withCtx as L, normalizeProps as gt, mergeProps as q, createTextVNode as E, Teleport as yt, TransitionGroup as ue, inject as $e, provide as vt, withModifiers as U, toHandlers as Oe, useSlots as Be, onUnmounted as ze, withDirectives as bt, vShow as xt, h as Te } from "vue";
|
|
2
2
|
import { icon as te, library as je } from "@fortawesome/fontawesome-svg-core";
|
|
3
3
|
import { FontAwesomeIcon as he } from "@fortawesome/vue-fontawesome";
|
|
4
|
-
import { faCircleDot as Ne, faEyeDropper as Ze, faAnglesLeft as qe, faAnglesRight as Ue, faStar as Ke, faSpinnerThird as We, faCircle as kt, faFile as we, faCalendar as Ge, faArrowUp as Ye, faArrowDown as Xe, faPlus as Je, faCircleCheck as wt, faInbox as _t,
|
|
5
|
-
import { faSortUp as
|
|
4
|
+
import { faCircleDot as Ne, faEyeDropper as Ze, faAnglesLeft as qe, faAnglesRight as Ue, faStar as Ke, faSpinnerThird as We, faCircle as kt, faFile as we, faCalendar as Ge, faArrowUp as Ye, faArrowDown as Xe, faPlus as Je, faCircleCheck as wt, faInbox as _t, faCloudArrowUp as Ct, faCloudDownload as St, faBolt as $t, faUndo as Tt, faEye as Lt, faSignOut as Pt, faXmark as _e, faTrash as Qe, faTimes as Mt, faStreetView as Vt, faSortUp as Ht, faSortDown as Rt, faSort as Ft, faScaleBalanced as Dt, faSatelliteDish as At, faLayerPlus as Et, faLaptopMobile as It, faInfoCircle as Ot, faGripDotsVertical as et, faGearComplex as Bt, faFlag as zt, faFaceSmileWink as jt, faFaceSmileRelaxed as Nt, faExclamationTriangle as Zt, faEllipsisVertical as qt, faEllipsis as Ut, faEdit as Kt, faComments as Wt, faCircleXmark as Gt, faCircleUser as Yt, faChevronUp as Xt, faChevronRight as tt, faChevronLeft as st, faChevronDown as at, faCheckCircle as Jt, faCheck as Ce, faBullhorn as Qt, faBellRing as es, faBarsSort as ts, faArrowRightToLine as ss, faArrowLeftToLine as as } from "@fortawesome/pro-regular-svg-icons";
|
|
5
|
+
import { faSortUp as os, faSortDown as rs, faSort as ns } from "@fortawesome/pro-duotone-svg-icons";
|
|
6
6
|
import { defineStore as pe } from "pinia";
|
|
7
|
-
import { useRoute as se, useRouter as W, onBeforeRouteLeave as
|
|
7
|
+
import { useRoute as se, useRouter as W, onBeforeRouteLeave as ls } from "vue-router";
|
|
8
8
|
import { TransitionRoot as ot, Dialog as rt, TransitionChild as ge, DialogPanel as nt } from "@headlessui/vue";
|
|
9
9
|
import ve from "nprogress";
|
|
10
|
-
import { range as
|
|
11
|
-
import { HotTable as
|
|
10
|
+
import { range as is, get as ee, find as cs, has as us } from "lodash";
|
|
11
|
+
import { HotTable as ds } from "@handsontable/vue3";
|
|
12
12
|
import "handsontable/styles/handsontable.css";
|
|
13
13
|
import "handsontable/styles/ht-theme-classic.css";
|
|
14
|
-
import { registerPlugin as me, AutoColumnSize as
|
|
15
|
-
import { registerAllCellTypes as
|
|
14
|
+
import { registerPlugin as me, AutoColumnSize as ps, CopyPaste as fs, StretchColumns as ms, NestedHeaders as hs } from "handsontable/plugins";
|
|
15
|
+
import { registerAllCellTypes as gs } from "handsontable/cellTypes";
|
|
16
16
|
import { useDebounceFn as lt, watchDebounced as Le } from "@vueuse/core";
|
|
17
|
-
import { registerRenderer as
|
|
17
|
+
import { registerRenderer as ys, baseRenderer as vs } from "handsontable/renderers";
|
|
18
18
|
import le from "axios";
|
|
19
19
|
const F = {
|
|
20
|
-
farArrowLeftToLine:
|
|
21
|
-
farArrowRightToLine:
|
|
22
|
-
farBarsSort:
|
|
23
|
-
farBellRing:
|
|
24
|
-
farBullhorn:
|
|
20
|
+
farArrowLeftToLine: as,
|
|
21
|
+
farArrowRightToLine: ss,
|
|
22
|
+
farBarsSort: ts,
|
|
23
|
+
farBellRing: es,
|
|
24
|
+
farBullhorn: Qt,
|
|
25
25
|
farCheck: Ce,
|
|
26
|
-
farCheckCircle:
|
|
26
|
+
farCheckCircle: Jt,
|
|
27
27
|
farChevronDown: at,
|
|
28
28
|
farChevronLeft: st,
|
|
29
29
|
farChevronRight: tt,
|
|
30
|
-
farChevronUp:
|
|
31
|
-
farCircleUser:
|
|
32
|
-
farCircleXmark:
|
|
33
|
-
farComments:
|
|
34
|
-
farEdit:
|
|
35
|
-
farEllipsis:
|
|
36
|
-
farEllipsisVertical:
|
|
37
|
-
farExclamationTriangle:
|
|
38
|
-
farFaceSmileRelaxed:
|
|
39
|
-
farFaceSmileWink:
|
|
40
|
-
farFlag:
|
|
41
|
-
farGearComplex:
|
|
30
|
+
farChevronUp: Xt,
|
|
31
|
+
farCircleUser: Yt,
|
|
32
|
+
farCircleXmark: Gt,
|
|
33
|
+
farComments: Wt,
|
|
34
|
+
farEdit: Kt,
|
|
35
|
+
farEllipsis: Ut,
|
|
36
|
+
farEllipsisVertical: qt,
|
|
37
|
+
farExclamationTriangle: Zt,
|
|
38
|
+
farFaceSmileRelaxed: Nt,
|
|
39
|
+
farFaceSmileWink: jt,
|
|
40
|
+
farFlag: zt,
|
|
41
|
+
farGearComplex: Bt,
|
|
42
42
|
farGripDotsVertical: et,
|
|
43
|
-
farInfoCircle:
|
|
44
|
-
farLaptopMobile:
|
|
43
|
+
farInfoCircle: Ot,
|
|
44
|
+
farLaptopMobile: It,
|
|
45
45
|
farLayerPlus: Et,
|
|
46
|
-
farSatelliteDish:
|
|
47
|
-
farScaleBalanced:
|
|
48
|
-
farSort:
|
|
49
|
-
farSortDown:
|
|
50
|
-
farSortUp:
|
|
51
|
-
farStreetView:
|
|
52
|
-
farTimes:
|
|
46
|
+
farSatelliteDish: At,
|
|
47
|
+
farScaleBalanced: Dt,
|
|
48
|
+
farSort: Ft,
|
|
49
|
+
farSortDown: Rt,
|
|
50
|
+
farSortUp: Ht,
|
|
51
|
+
farStreetView: Vt,
|
|
52
|
+
farTimes: Mt,
|
|
53
53
|
farTrash: Qe,
|
|
54
54
|
farXmark: _e,
|
|
55
|
-
farSignOut:
|
|
56
|
-
farEye:
|
|
57
|
-
farUndo:
|
|
58
|
-
farBolt:
|
|
59
|
-
farCloudDownload:
|
|
55
|
+
farSignOut: Pt,
|
|
56
|
+
farEye: Lt,
|
|
57
|
+
farUndo: Tt,
|
|
58
|
+
farBolt: $t,
|
|
59
|
+
farCloudDownload: St,
|
|
60
|
+
farCloudArrowUp: Ct,
|
|
60
61
|
farInbox: _t,
|
|
61
62
|
farCircleCheck: wt,
|
|
62
|
-
fadSort:
|
|
63
|
-
fadSortDown:
|
|
64
|
-
fadSortUp:
|
|
63
|
+
fadSort: ns,
|
|
64
|
+
fadSortDown: rs,
|
|
65
|
+
fadSortUp: os,
|
|
65
66
|
// Additional icons for FormKit genesis replacement
|
|
66
67
|
farPlus: Je,
|
|
67
68
|
farArrowDown: Xe,
|
|
@@ -75,12 +76,12 @@ const F = {
|
|
|
75
76
|
farAnglesLeft: qe,
|
|
76
77
|
farEyeDropper: Ze,
|
|
77
78
|
farCircleDot: Ne
|
|
78
|
-
},
|
|
79
|
+
}, qn = Object.fromEntries(
|
|
79
80
|
Object.entries(F).map(([e, s]) => {
|
|
80
81
|
const t = te(s);
|
|
81
82
|
return [e, t?.html?.[0] || ""];
|
|
82
83
|
})
|
|
83
|
-
),
|
|
84
|
+
), bs = {
|
|
84
85
|
add: Je,
|
|
85
86
|
arrowDown: Xe,
|
|
86
87
|
arrowUp: Ye,
|
|
@@ -103,13 +104,13 @@ const F = {
|
|
|
103
104
|
left: st,
|
|
104
105
|
rewind: qe,
|
|
105
106
|
color: Ze
|
|
106
|
-
},
|
|
107
|
-
Object.entries(
|
|
107
|
+
}, Un = Object.fromEntries(
|
|
108
|
+
Object.entries(bs).map(([e, s]) => {
|
|
108
109
|
const t = te(s);
|
|
109
110
|
return [e, t?.html?.[0] || ""];
|
|
110
111
|
})
|
|
111
112
|
);
|
|
112
|
-
function
|
|
113
|
+
function Kn(e) {
|
|
113
114
|
const s = F[e];
|
|
114
115
|
if (s) {
|
|
115
116
|
const t = te(s);
|
|
@@ -117,16 +118,16 @@ function Un(e) {
|
|
|
117
118
|
}
|
|
118
119
|
return Promise.resolve(void 0);
|
|
119
120
|
}
|
|
120
|
-
function
|
|
121
|
+
function Wn(e) {
|
|
121
122
|
Object.assign(F, e), je.add(...Object.values(e));
|
|
122
123
|
}
|
|
123
|
-
function
|
|
124
|
+
function Gn(e) {
|
|
124
125
|
je.add(...Object.values(F)), e.component("FontAwesomeIcon", he);
|
|
125
126
|
}
|
|
126
|
-
const
|
|
127
|
+
const xs = { class: "flex items-center" }, ks = { class: "shrink-0 self-start" }, ws = { class: "ml-3" }, _s = {
|
|
127
128
|
key: 0,
|
|
128
129
|
class: "ml-auto pl-3 pt-1 self-start"
|
|
129
|
-
},
|
|
130
|
+
}, Cs = { class: "-mx-1.5 -my-1.5" }, re = {
|
|
130
131
|
__name: "SparkAlert",
|
|
131
132
|
props: {
|
|
132
133
|
type: {
|
|
@@ -163,22 +164,22 @@ const bs = { class: "flex items-center" }, xs = { class: "shrink-0 self-start" }
|
|
|
163
164
|
info: "text-blue-400 hover:bg-blue-100"
|
|
164
165
|
})[s.type]);
|
|
165
166
|
return (o, i) => {
|
|
166
|
-
const n =
|
|
167
|
+
const n = A("font-awesome-icon");
|
|
167
168
|
return h(), y("div", {
|
|
168
169
|
class: V(["rounded-md border p-4", t.value])
|
|
169
170
|
}, [
|
|
170
|
-
m("div",
|
|
171
|
-
m("div",
|
|
171
|
+
m("div", xs, [
|
|
172
|
+
m("div", ks, [
|
|
172
173
|
S(n, {
|
|
173
174
|
icon: C(F)[l.value],
|
|
174
175
|
class: V(a.value)
|
|
175
176
|
}, null, 8, ["icon", "class"])
|
|
176
177
|
]),
|
|
177
|
-
m("div",
|
|
178
|
+
m("div", ws, [
|
|
178
179
|
O(o.$slots, "default")
|
|
179
180
|
]),
|
|
180
|
-
e.closeable ? (h(), y("div",
|
|
181
|
-
m("div",
|
|
181
|
+
e.closeable ? (h(), y("div", _s, [
|
|
182
|
+
m("div", Cs, [
|
|
182
183
|
m("button", {
|
|
183
184
|
type: "button",
|
|
184
185
|
class: V(["inline-flex rounded-md px-2 py-1.5", r.value]),
|
|
@@ -302,16 +303,16 @@ const bs = { class: "flex items-center" }, xs = { class: "shrink-0 self-start" }
|
|
|
302
303
|
e.app = t.app || "", e.homeRoute = t.homeRoute ?? "dashboard", e.showBrandSelector = t.showBrandSelector ?? !0, e.showAppSelector = t.showAppSelector ?? !0;
|
|
303
304
|
}
|
|
304
305
|
};
|
|
305
|
-
}),
|
|
306
|
+
}), Ss = { class: "flex grow flex-col gap-y-5 overflow-y-auto bg-white rounded-lg" }, $s = { class: "flex flex-1 flex-col" }, Ts = { class: "divide-y divide-gray-200" }, Ls = { class: "flex px-[22px] py-2.5 text-[12px] items-center" }, Ps = { class: "ml-auto flex items-center" }, Ms = ["href", "onClick"], Vs = { class: "gap-y-1" }, Hs = { class: "text-base text-gray-800 flex items-center" }, Rs = { class: "font-medium" }, Fs = {
|
|
306
307
|
key: 0,
|
|
307
308
|
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"
|
|
308
|
-
},
|
|
309
|
+
}, Ds = { class: "text-sm text-gray-500" }, As = { class: "ml-auto flex items-center" }, Es = { class: "mt-auto" }, Is = {
|
|
309
310
|
key: 0,
|
|
310
311
|
class: "p-6"
|
|
311
|
-
},
|
|
312
|
+
}, Os = {
|
|
312
313
|
key: 1,
|
|
313
314
|
class: "bg-gray-50 p-6"
|
|
314
|
-
},
|
|
315
|
+
}, Bs = {
|
|
315
316
|
__name: "SparkAppSelector",
|
|
316
317
|
props: {
|
|
317
318
|
bottomSlot: {
|
|
@@ -335,13 +336,13 @@ const bs = { class: "flex items-center" }, xs = { class: "shrink-0 self-start" }
|
|
|
335
336
|
t("select", i);
|
|
336
337
|
};
|
|
337
338
|
return (i, n) => {
|
|
338
|
-
const c =
|
|
339
|
-
return h(), y("div",
|
|
340
|
-
m("div",
|
|
341
|
-
m("div",
|
|
342
|
-
m("div",
|
|
339
|
+
const c = A("font-awesome-icon");
|
|
340
|
+
return h(), y("div", Ss, [
|
|
341
|
+
m("div", $s, [
|
|
342
|
+
m("div", Ts, [
|
|
343
|
+
m("div", Ls, [
|
|
343
344
|
n[1] || (n[1] = m("div", null, "Mr Group Network", -1)),
|
|
344
|
-
m("div",
|
|
345
|
+
m("div", Ps, [
|
|
345
346
|
S(c, {
|
|
346
347
|
icon: C(F).farTimes,
|
|
347
348
|
class: "h-[15px] w-[15px] shrink-0 text-gray-400 cursor-pointer",
|
|
@@ -356,29 +357,29 @@ const bs = { class: "flex items-center" }, xs = { class: "shrink-0 self-start" }
|
|
|
356
357
|
class: V([d.current ? "bg-gray-50" : "hover:bg-gray-50", "flex px-[22px] py-[15px] cursor-pointer"]),
|
|
357
358
|
onClick: (p) => d.current ? p.preventDefault() : o(d)
|
|
358
359
|
}, [
|
|
359
|
-
m("div",
|
|
360
|
-
m("div",
|
|
361
|
-
m("div",
|
|
362
|
-
d.current ? (h(), y("span",
|
|
360
|
+
m("div", Vs, [
|
|
361
|
+
m("div", Hs, [
|
|
362
|
+
m("div", Rs, M(d.name), 1),
|
|
363
|
+
d.current ? (h(), y("span", Fs, " Active ")) : T("", !0)
|
|
363
364
|
]),
|
|
364
|
-
m("div",
|
|
365
|
+
m("div", Ds, M(d.description), 1)
|
|
365
366
|
]),
|
|
366
|
-
m("div",
|
|
367
|
+
m("div", As, [
|
|
367
368
|
S(c, {
|
|
368
369
|
class: V([d.current ? "text-gray-700" : "text-gray-400", "h-5 w-5 shrink-0"]),
|
|
369
370
|
icon: C(F)[d.icon]
|
|
370
371
|
}, null, 8, ["class", "icon"])
|
|
371
372
|
])
|
|
372
|
-
], 10,
|
|
373
|
+
], 10, Ms))), 128)),
|
|
373
374
|
n[2] || (n[2] = m("div", null, null, -1))
|
|
374
375
|
]),
|
|
375
376
|
m("div", Es, [
|
|
376
|
-
i.$slots.bottom || e.bottomSlot ? (h(), y("div",
|
|
377
|
+
i.$slots.bottom || e.bottomSlot ? (h(), y("div", Is, [
|
|
377
378
|
O(i.$slots, "bottom", {}, () => [
|
|
378
379
|
e.bottomSlot ? (h(), H(Z(e.bottomSlot), { key: 0 })) : T("", !0)
|
|
379
380
|
])
|
|
380
381
|
])) : T("", !0),
|
|
381
|
-
i.$slots.footer || e.footerSlot ? (h(), y("div",
|
|
382
|
+
i.$slots.footer || e.footerSlot ? (h(), y("div", Os, [
|
|
382
383
|
O(i.$slots, "footer", {}, () => [
|
|
383
384
|
e.footerSlot ? (h(), H(Z(e.footerSlot), { key: 0 })) : T("", !0)
|
|
384
385
|
])
|
|
@@ -395,7 +396,7 @@ const bs = { class: "flex items-center" }, xs = { class: "shrink-0 self-start" }
|
|
|
395
396
|
danger: 0
|
|
396
397
|
// sticky by default
|
|
397
398
|
}, Pe = ["top-left", "top-right", "center", "bottom-left", "bottom-right"];
|
|
398
|
-
function
|
|
399
|
+
function zs() {
|
|
399
400
|
const e = K({
|
|
400
401
|
isVisible: !1,
|
|
401
402
|
type: "info",
|
|
@@ -451,7 +452,7 @@ function Bs() {
|
|
|
451
452
|
}
|
|
452
453
|
};
|
|
453
454
|
}
|
|
454
|
-
class
|
|
455
|
+
class js {
|
|
455
456
|
constructor() {
|
|
456
457
|
this.outlets = /* @__PURE__ */ new Map(), this.toastState = K({
|
|
457
458
|
toasts: [],
|
|
@@ -469,7 +470,7 @@ class zs {
|
|
|
469
470
|
* @returns {Object} Notification outlet instance
|
|
470
471
|
*/
|
|
471
472
|
getOutlet(s = "default") {
|
|
472
|
-
return this.outlets.has(s) || this.outlets.set(s,
|
|
473
|
+
return this.outlets.has(s) || this.outlets.set(s, zs()), this.outlets.get(s);
|
|
473
474
|
}
|
|
474
475
|
/**
|
|
475
476
|
* Show a banner notification in the specified outlet
|
|
@@ -665,7 +666,7 @@ class zs {
|
|
|
665
666
|
t && (t.timeout && clearTimeout(t.timeout), this._toastTimers.delete(s));
|
|
666
667
|
}
|
|
667
668
|
}
|
|
668
|
-
const z = new
|
|
669
|
+
const z = new js(), Yn = {
|
|
669
670
|
__name: "SparkNotificationOutlet",
|
|
670
671
|
props: {
|
|
671
672
|
name: {
|
|
@@ -725,7 +726,7 @@ const z = new zs(), Gn = {
|
|
|
725
726
|
}, {
|
|
726
727
|
default: L(() => [
|
|
727
728
|
a.value.state.component ? (h(), H(Z(a.value.state.component), gt(q({ key: 0 }, a.value.state.props)), null, 16)) : (h(), y(D, { key: 1 }, [
|
|
728
|
-
|
|
729
|
+
E(M(a.value.state.message), 1)
|
|
729
730
|
], 64))
|
|
730
731
|
]),
|
|
731
732
|
_: 1
|
|
@@ -734,7 +735,7 @@ const z = new zs(), Gn = {
|
|
|
734
735
|
_: 1
|
|
735
736
|
}));
|
|
736
737
|
}
|
|
737
|
-
},
|
|
738
|
+
}, Ns = { class: "fixed top-4 left-4 z-[2000] flex flex-col gap-3 max-w-sm w-full pointer-events-none" }, Zs = { class: "fixed top-4 right-4 z-[2000] flex flex-col gap-3 max-w-sm w-full pointer-events-none" }, qs = { 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" }, Us = { class: "fixed bottom-4 left-4 z-[2000] flex flex-col-reverse gap-3 max-w-sm w-full pointer-events-none" }, Ks = { class: "fixed bottom-4 right-4 z-[2000] flex flex-col-reverse gap-3 max-w-sm w-full pointer-events-none" }, Xn = {
|
|
738
739
|
__name: "SparkToastContainer",
|
|
739
740
|
setup(e) {
|
|
740
741
|
const s = z.toastState, t = $(
|
|
@@ -755,7 +756,7 @@ const z = new zs(), Gn = {
|
|
|
755
756
|
z.resumeToast(d);
|
|
756
757
|
};
|
|
757
758
|
return (d, p) => (h(), H(yt, { to: "body" }, [
|
|
758
|
-
m("div",
|
|
759
|
+
m("div", Ns, [
|
|
759
760
|
S(ue, {
|
|
760
761
|
"enter-active-class": "transition-all duration-300 ease-out",
|
|
761
762
|
"enter-from-class": "opacity-0 -translate-x-4",
|
|
@@ -781,7 +782,7 @@ const z = new zs(), Gn = {
|
|
|
781
782
|
key: 0,
|
|
782
783
|
ref_for: !0
|
|
783
784
|
}, f.props), null, 16)) : (h(), y(D, { key: 1 }, [
|
|
784
|
-
|
|
785
|
+
E(M(f.message), 1)
|
|
785
786
|
], 64))
|
|
786
787
|
]),
|
|
787
788
|
_: 2
|
|
@@ -791,7 +792,7 @@ const z = new zs(), Gn = {
|
|
|
791
792
|
_: 1
|
|
792
793
|
})
|
|
793
794
|
]),
|
|
794
|
-
m("div",
|
|
795
|
+
m("div", Zs, [
|
|
795
796
|
S(ue, {
|
|
796
797
|
"enter-active-class": "transition-all duration-300 ease-out",
|
|
797
798
|
"enter-from-class": "opacity-0 translate-x-4",
|
|
@@ -817,7 +818,7 @@ const z = new zs(), Gn = {
|
|
|
817
818
|
key: 0,
|
|
818
819
|
ref_for: !0
|
|
819
820
|
}, f.props), null, 16)) : (h(), y(D, { key: 1 }, [
|
|
820
|
-
|
|
821
|
+
E(M(f.message), 1)
|
|
821
822
|
], 64))
|
|
822
823
|
]),
|
|
823
824
|
_: 2
|
|
@@ -827,7 +828,7 @@ const z = new zs(), Gn = {
|
|
|
827
828
|
_: 1
|
|
828
829
|
})
|
|
829
830
|
]),
|
|
830
|
-
m("div",
|
|
831
|
+
m("div", qs, [
|
|
831
832
|
S(ue, {
|
|
832
833
|
"enter-active-class": "transition-all duration-300 ease-out",
|
|
833
834
|
"enter-from-class": "opacity-0 scale-95",
|
|
@@ -853,7 +854,7 @@ const z = new zs(), Gn = {
|
|
|
853
854
|
key: 0,
|
|
854
855
|
ref_for: !0
|
|
855
856
|
}, f.props), null, 16)) : (h(), y(D, { key: 1 }, [
|
|
856
|
-
|
|
857
|
+
E(M(f.message), 1)
|
|
857
858
|
], 64))
|
|
858
859
|
]),
|
|
859
860
|
_: 2
|
|
@@ -863,7 +864,7 @@ const z = new zs(), Gn = {
|
|
|
863
864
|
_: 1
|
|
864
865
|
})
|
|
865
866
|
]),
|
|
866
|
-
m("div",
|
|
867
|
+
m("div", Us, [
|
|
867
868
|
S(ue, {
|
|
868
869
|
"enter-active-class": "transition-all duration-300 ease-out",
|
|
869
870
|
"enter-from-class": "opacity-0 -translate-x-4",
|
|
@@ -889,7 +890,7 @@ const z = new zs(), Gn = {
|
|
|
889
890
|
key: 0,
|
|
890
891
|
ref_for: !0
|
|
891
892
|
}, f.props), null, 16)) : (h(), y(D, { key: 1 }, [
|
|
892
|
-
|
|
893
|
+
E(M(f.message), 1)
|
|
893
894
|
], 64))
|
|
894
895
|
]),
|
|
895
896
|
_: 2
|
|
@@ -899,7 +900,7 @@ const z = new zs(), Gn = {
|
|
|
899
900
|
_: 1
|
|
900
901
|
})
|
|
901
902
|
]),
|
|
902
|
-
m("div",
|
|
903
|
+
m("div", Ks, [
|
|
903
904
|
S(ue, {
|
|
904
905
|
"enter-active-class": "transition-all duration-300 ease-out",
|
|
905
906
|
"enter-from-class": "opacity-0 translate-x-4",
|
|
@@ -925,7 +926,7 @@ const z = new zs(), Gn = {
|
|
|
925
926
|
key: 0,
|
|
926
927
|
ref_for: !0
|
|
927
928
|
}, f.props), null, 16)) : (h(), y(D, { key: 1 }, [
|
|
928
|
-
|
|
929
|
+
E(M(f.message), 1)
|
|
929
930
|
], 64))
|
|
930
931
|
]),
|
|
931
932
|
_: 2
|
|
@@ -981,13 +982,13 @@ const z = new zs(), Gn = {
|
|
|
981
982
|
paths: ["state.brands"]
|
|
982
983
|
}
|
|
983
984
|
}
|
|
984
|
-
),
|
|
985
|
+
), Ws = { class: "flex grow flex-col gap-y-5 overflow-y-auto bg-white rounded-lg" }, Gs = { class: "flex flex-1 flex-col" }, Ys = { class: "divide-y divide-gray-200" }, Xs = { class: "flex px-[22px] py-2.5 text-[12px] items-center" }, Js = { class: "ml-auto flex items-center" }, Qs = {
|
|
985
986
|
key: 0,
|
|
986
987
|
class: "flex px-[22px] py-[15px] text-gray-500 text-sm"
|
|
987
|
-
},
|
|
988
|
+
}, ea = ["onClick"], ta = { class: "w-full gap-y-1 flex justify-between" }, sa = { class: "flex flex-col" }, aa = { class: "flex items-center" }, oa = { class: "font-medium text-base text-gray-900" }, ra = {
|
|
988
989
|
key: 0,
|
|
989
990
|
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"
|
|
990
|
-
},
|
|
991
|
+
}, na = { class: "text-sm text-gray-500 font-normal" }, la = { class: "flex items-center" }, ia = ["src", "alt"], ca = {
|
|
991
992
|
__name: "SparkBrandSelector",
|
|
992
993
|
emits: ["close", "select"],
|
|
993
994
|
setup(e, { emit: s }) {
|
|
@@ -995,13 +996,13 @@ const z = new zs(), Gn = {
|
|
|
995
996
|
t("select", r);
|
|
996
997
|
};
|
|
997
998
|
return (r, o) => {
|
|
998
|
-
const i =
|
|
999
|
-
return h(), y("div",
|
|
1000
|
-
m("div",
|
|
1001
|
-
m("div",
|
|
1002
|
-
m("div",
|
|
999
|
+
const i = A("font-awesome-icon");
|
|
1000
|
+
return h(), y("div", Ws, [
|
|
1001
|
+
m("div", Gs, [
|
|
1002
|
+
m("div", Ys, [
|
|
1003
|
+
m("div", Xs, [
|
|
1003
1004
|
o[1] || (o[1] = m("div", null, "Filter by Brand", -1)),
|
|
1004
|
-
m("div",
|
|
1005
|
+
m("div", Js, [
|
|
1005
1006
|
S(i, {
|
|
1006
1007
|
icon: C(F).farTimes,
|
|
1007
1008
|
class: "size-4 text-gray-400 cursor-pointer",
|
|
@@ -1009,29 +1010,29 @@ const z = new zs(), Gn = {
|
|
|
1009
1010
|
}, null, 8, ["icon"])
|
|
1010
1011
|
])
|
|
1011
1012
|
]),
|
|
1012
|
-
C(a).allBrands.length === 0 ? (h(), y("div",
|
|
1013
|
+
C(a).allBrands.length === 0 ? (h(), y("div", Qs, " No brands configured ")) : T("", !0),
|
|
1013
1014
|
(h(!0), y(D, null, B(C(a).allBrands, (n) => (h(), y("div", {
|
|
1014
1015
|
key: n.id,
|
|
1015
1016
|
class: V([n.current ? "bg-gray-50" : "hover:bg-gray-50", "flex px-[22px] py-[15px] cursor-pointer"]),
|
|
1016
1017
|
onClick: (c) => l(n)
|
|
1017
1018
|
}, [
|
|
1018
|
-
m("div",
|
|
1019
|
-
m("div",
|
|
1020
|
-
m("div",
|
|
1021
|
-
m("div",
|
|
1022
|
-
n.current ? (h(), y("span",
|
|
1019
|
+
m("div", ta, [
|
|
1020
|
+
m("div", sa, [
|
|
1021
|
+
m("div", aa, [
|
|
1022
|
+
m("div", oa, M(n.name), 1),
|
|
1023
|
+
n.current ? (h(), y("span", ra, " Current ")) : T("", !0)
|
|
1023
1024
|
]),
|
|
1024
|
-
m("div",
|
|
1025
|
+
m("div", na, M(n.current ? "Current Brand" : "Change to"), 1)
|
|
1025
1026
|
]),
|
|
1026
|
-
m("div",
|
|
1027
|
+
m("div", la, [
|
|
1027
1028
|
m("img", {
|
|
1028
1029
|
src: n.logo,
|
|
1029
1030
|
alt: `${n.name} logo`,
|
|
1030
1031
|
class: "h-8 w-auto"
|
|
1031
|
-
}, null, 8,
|
|
1032
|
+
}, null, 8, ia)
|
|
1032
1033
|
])
|
|
1033
1034
|
])
|
|
1034
|
-
], 10,
|
|
1035
|
+
], 10, ea))), 128)),
|
|
1035
1036
|
o[2] || (o[2] = m("div", null, null, -1))
|
|
1036
1037
|
]),
|
|
1037
1038
|
o[3] || (o[3] = m("div", { class: "mt-auto" }, null, -1))
|
|
@@ -1039,7 +1040,7 @@ const z = new zs(), Gn = {
|
|
|
1039
1040
|
]);
|
|
1040
1041
|
};
|
|
1041
1042
|
}
|
|
1042
|
-
},
|
|
1043
|
+
}, ua = ["disabled"], G = {
|
|
1043
1044
|
__name: "SparkButton",
|
|
1044
1045
|
props: {
|
|
1045
1046
|
size: {
|
|
@@ -1149,7 +1150,7 @@ const z = new zs(), Gn = {
|
|
|
1149
1150
|
onClick: c[0] || (c[0] = (d) => n.$emit("click"))
|
|
1150
1151
|
}, [
|
|
1151
1152
|
O(n.$slots, "default")
|
|
1152
|
-
], 10,
|
|
1153
|
+
], 10, ua));
|
|
1153
1154
|
}
|
|
1154
1155
|
}, pt = {
|
|
1155
1156
|
__name: "SparkButtonGroup",
|
|
@@ -1167,13 +1168,13 @@ const z = new zs(), Gn = {
|
|
|
1167
1168
|
O(l.$slots, "default")
|
|
1168
1169
|
], 512));
|
|
1169
1170
|
}
|
|
1170
|
-
},
|
|
1171
|
+
}, da = { class: "divide-y divide-gray-300 rounded-lg border border-gray-300 text-gray-700 bg-gray-100" }, pa = {
|
|
1171
1172
|
key: 0,
|
|
1172
1173
|
class: "px-[30px] py-5"
|
|
1173
|
-
},
|
|
1174
|
+
}, fa = {
|
|
1174
1175
|
key: 1,
|
|
1175
1176
|
class: "p-5"
|
|
1176
|
-
},
|
|
1177
|
+
}, Jn = {
|
|
1177
1178
|
__name: "SparkCard",
|
|
1178
1179
|
props: {
|
|
1179
1180
|
padded: {
|
|
@@ -1187,8 +1188,8 @@ const z = new zs(), Gn = {
|
|
|
1187
1188
|
},
|
|
1188
1189
|
setup(e) {
|
|
1189
1190
|
const s = e;
|
|
1190
|
-
return (t, a) => (h(), y("div",
|
|
1191
|
-
t.$slots.header ? (h(), y("div",
|
|
1191
|
+
return (t, a) => (h(), y("div", da, [
|
|
1192
|
+
t.$slots.header ? (h(), y("div", pa, [
|
|
1192
1193
|
O(t.$slots, "header")
|
|
1193
1194
|
])) : T("", !0),
|
|
1194
1195
|
m("div", {
|
|
@@ -1196,24 +1197,24 @@ const z = new zs(), Gn = {
|
|
|
1196
1197
|
}, [
|
|
1197
1198
|
O(t.$slots, "default")
|
|
1198
1199
|
], 2),
|
|
1199
|
-
t.$slots.footer ? (h(), y("div",
|
|
1200
|
+
t.$slots.footer ? (h(), y("div", fa, [
|
|
1200
1201
|
O(t.$slots, "footer")
|
|
1201
1202
|
])) : T("", !0)
|
|
1202
1203
|
]));
|
|
1203
1204
|
}
|
|
1204
|
-
},
|
|
1205
|
+
}, ma = {
|
|
1205
1206
|
key: 0,
|
|
1206
1207
|
class: "block text-sm font-medium text-gray-700 mb-2"
|
|
1207
|
-
},
|
|
1208
|
+
}, ha = {
|
|
1208
1209
|
key: 1,
|
|
1209
1210
|
class: "mb-2 relative inline-block"
|
|
1210
|
-
},
|
|
1211
|
+
}, ga = ["href"], ya = ["src", "alt"], va = ["disabled"], ba = {
|
|
1211
1212
|
key: 0,
|
|
1212
1213
|
class: "absolute inset-0 flex items-center justify-center bg-blue-50/80 rounded-md pointer-events-none"
|
|
1213
|
-
},
|
|
1214
|
+
}, xa = {
|
|
1214
1215
|
key: 3,
|
|
1215
1216
|
class: "text-sm text-gray-500 mt-1"
|
|
1216
|
-
},
|
|
1217
|
+
}, Qn = {
|
|
1217
1218
|
__name: "SparkImageUpload",
|
|
1218
1219
|
props: {
|
|
1219
1220
|
modelValue: {
|
|
@@ -1325,10 +1326,10 @@ const z = new zs(), Gn = {
|
|
|
1325
1326
|
}
|
|
1326
1327
|
}
|
|
1327
1328
|
return (w, v) => {
|
|
1328
|
-
const u =
|
|
1329
|
+
const u = A("font-awesome-icon"), g = A("FormKit");
|
|
1329
1330
|
return h(), y("div", null, [
|
|
1330
|
-
e.label ? (h(), y("label",
|
|
1331
|
-
e.modelValue ? (h(), y("div",
|
|
1331
|
+
e.label ? (h(), y("label", ma, M(e.label), 1)) : T("", !0),
|
|
1332
|
+
e.modelValue ? (h(), y("div", ha, [
|
|
1332
1333
|
m("a", {
|
|
1333
1334
|
href: e.modelValue,
|
|
1334
1335
|
target: "_blank",
|
|
@@ -1338,8 +1339,8 @@ const z = new zs(), Gn = {
|
|
|
1338
1339
|
src: e.modelValue,
|
|
1339
1340
|
alt: e.label || "Image preview",
|
|
1340
1341
|
class: V([e.height, "w-auto object-contain border border-gray-300 rounded-md cursor-pointer hover:opacity-80 transition-opacity"])
|
|
1341
|
-
}, null, 10,
|
|
1342
|
-
], 8,
|
|
1342
|
+
}, null, 10, ya)
|
|
1343
|
+
], 8, ga),
|
|
1343
1344
|
m("button", {
|
|
1344
1345
|
type: "button",
|
|
1345
1346
|
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",
|
|
@@ -1350,7 +1351,7 @@ const z = new zs(), Gn = {
|
|
|
1350
1351
|
icon: C(F).farXmark,
|
|
1351
1352
|
class: "text-xs"
|
|
1352
1353
|
}, null, 8, ["icon"])
|
|
1353
|
-
], 8,
|
|
1354
|
+
], 8, va)
|
|
1354
1355
|
])) : T("", !0),
|
|
1355
1356
|
e.modelValue ? T("", !0) : (h(), y("div", {
|
|
1356
1357
|
key: 2,
|
|
@@ -1369,18 +1370,18 @@ const z = new zs(), Gn = {
|
|
|
1369
1370
|
disabled: e.disabled || r.value,
|
|
1370
1371
|
onInput: f
|
|
1371
1372
|
}, null, 8, ["name", "accept", "disabled"]),
|
|
1372
|
-
o.value ? (h(), y("div",
|
|
1373
|
+
o.value ? (h(), y("div", ba, [...v[0] || (v[0] = [
|
|
1373
1374
|
m("span", { class: "text-sm text-blue-600 font-medium" }, "Drop image here", -1)
|
|
1374
1375
|
])])) : T("", !0)
|
|
1375
1376
|
], 34)),
|
|
1376
|
-
r.value ? (h(), y("p",
|
|
1377
|
+
r.value ? (h(), y("p", xa, "Uploading...")) : T("", !0)
|
|
1377
1378
|
]);
|
|
1378
1379
|
};
|
|
1379
1380
|
}
|
|
1380
|
-
},
|
|
1381
|
+
}, ka = { class: "px-4 pt-5 pb-4 sm:p-6" }, wa = {
|
|
1381
1382
|
key: 0,
|
|
1382
1383
|
class: "text-lg font-medium text-gray-900"
|
|
1383
|
-
},
|
|
1384
|
+
}, _a = {
|
|
1384
1385
|
__name: "SparkModalDialog",
|
|
1385
1386
|
props: {
|
|
1386
1387
|
title: {
|
|
@@ -1458,8 +1459,8 @@ const z = new zs(), Gn = {
|
|
|
1458
1459
|
danger: "text-red-400"
|
|
1459
1460
|
})[s.type]);
|
|
1460
1461
|
return (n, c) => {
|
|
1461
|
-
const d =
|
|
1462
|
-
return h(), y("div",
|
|
1462
|
+
const d = A("font-awesome-icon");
|
|
1463
|
+
return h(), y("div", ka, [
|
|
1463
1464
|
r.value ? (h(), y("div", {
|
|
1464
1465
|
key: 0,
|
|
1465
1466
|
class: V(["mx-auto flex size-12 items-center justify-center rounded-full", o.value])
|
|
@@ -1472,7 +1473,7 @@ const z = new zs(), Gn = {
|
|
|
1472
1473
|
m("div", {
|
|
1473
1474
|
class: V(["text-center", { "mt-3 sm:mt-5": r.value }])
|
|
1474
1475
|
}, [
|
|
1475
|
-
e.title ? (h(), y("h3",
|
|
1476
|
+
e.title ? (h(), y("h3", wa, M(e.title), 1)) : T("", !0),
|
|
1476
1477
|
e.message ? (h(), y("div", {
|
|
1477
1478
|
key: 1,
|
|
1478
1479
|
class: V([{ "mt-2": e.title }, "text-sm text-gray-500"])
|
|
@@ -1487,7 +1488,7 @@ const z = new zs(), Gn = {
|
|
|
1487
1488
|
onClick: (x) => n.$emit(p.event, p)
|
|
1488
1489
|
}, {
|
|
1489
1490
|
default: L(() => [
|
|
1490
|
-
|
|
1491
|
+
E(M(p.text), 1)
|
|
1491
1492
|
]),
|
|
1492
1493
|
_: 2
|
|
1493
1494
|
}, 1032, ["variant", "onClick"]))), 128))
|
|
@@ -1496,7 +1497,7 @@ const z = new zs(), Gn = {
|
|
|
1496
1497
|
};
|
|
1497
1498
|
}
|
|
1498
1499
|
};
|
|
1499
|
-
class
|
|
1500
|
+
class Ca {
|
|
1500
1501
|
constructor() {
|
|
1501
1502
|
this.state = K({
|
|
1502
1503
|
isVisible: !1,
|
|
@@ -1533,7 +1534,7 @@ class _a {
|
|
|
1533
1534
|
confirmVariant: n = "primary"
|
|
1534
1535
|
} = s;
|
|
1535
1536
|
this.show(
|
|
1536
|
-
|
|
1537
|
+
_a,
|
|
1537
1538
|
{
|
|
1538
1539
|
title: a,
|
|
1539
1540
|
message: l,
|
|
@@ -1554,7 +1555,7 @@ class _a {
|
|
|
1554
1555
|
);
|
|
1555
1556
|
});
|
|
1556
1557
|
}
|
|
1557
|
-
const J = new
|
|
1558
|
+
const J = new Ca(), Sa = { class: "fixed inset-0 z-10 w-screen overflow-y-auto" }, $a = { class: "flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0" }, Ta = {
|
|
1558
1559
|
__name: "SparkModalContainer",
|
|
1559
1560
|
setup(e) {
|
|
1560
1561
|
return (s, t) => (h(), H(C(ot), {
|
|
@@ -1581,8 +1582,8 @@ const J = new _a(), Ca = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
1581
1582
|
])]),
|
|
1582
1583
|
_: 1
|
|
1583
1584
|
}),
|
|
1584
|
-
m("div",
|
|
1585
|
-
m("div",
|
|
1585
|
+
m("div", Sa, [
|
|
1586
|
+
m("div", $a, [
|
|
1586
1587
|
S(C(ge), {
|
|
1587
1588
|
as: "template",
|
|
1588
1589
|
enter: "ease-out duration-300",
|
|
@@ -1611,7 +1612,7 @@ const J = new _a(), Ca = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
1611
1612
|
_: 1
|
|
1612
1613
|
}, 8, ["show"]));
|
|
1613
1614
|
}
|
|
1614
|
-
},
|
|
1615
|
+
}, La = { class: "fixed inset-0 flex" }, Me = {
|
|
1615
1616
|
__name: "SparkOverlay",
|
|
1616
1617
|
props: {
|
|
1617
1618
|
position: {
|
|
@@ -1660,7 +1661,7 @@ const J = new _a(), Ca = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
1660
1661
|
])]),
|
|
1661
1662
|
_: 1
|
|
1662
1663
|
}),
|
|
1663
|
-
m("div",
|
|
1664
|
+
m("div", La, [
|
|
1664
1665
|
S(C(ge), {
|
|
1665
1666
|
as: "template",
|
|
1666
1667
|
enter: "transition ease-in-out duration-150 transform",
|
|
@@ -1696,7 +1697,7 @@ const J = new _a(), Ca = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
1696
1697
|
_: 1
|
|
1697
1698
|
}, 8, ["show"]));
|
|
1698
1699
|
}
|
|
1699
|
-
},
|
|
1700
|
+
}, Pa = ["disabled", "onClick"], el = {
|
|
1700
1701
|
__name: "SparkSubNav",
|
|
1701
1702
|
props: {
|
|
1702
1703
|
/**
|
|
@@ -1813,7 +1814,7 @@ const J = new _a(), Ca = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
1813
1814
|
icon: C(F)[g.icon],
|
|
1814
1815
|
class: "mr-1.5 size-4"
|
|
1815
1816
|
}, null, 8, ["icon"])) : T("", !0),
|
|
1816
|
-
|
|
1817
|
+
E(" " + M(g.label) + " ", 1),
|
|
1817
1818
|
g.badge != null ? (h(), y("span", {
|
|
1818
1819
|
key: 1,
|
|
1819
1820
|
class: V(w(g))
|
|
@@ -1844,16 +1845,16 @@ const J = new _a(), Ca = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
1844
1845
|
key: 2,
|
|
1845
1846
|
class: V(w(g))
|
|
1846
1847
|
}, M(g.badge), 3)) : T("", !0)
|
|
1847
|
-
], 10,
|
|
1848
|
+
], 10, Pa))), 128))
|
|
1848
1849
|
], 2));
|
|
1849
1850
|
}
|
|
1850
|
-
},
|
|
1851
|
+
}, Ma = (e) => {
|
|
1851
1852
|
if (e.includes(".")) {
|
|
1852
1853
|
const s = e.split(".");
|
|
1853
1854
|
e = s[s.length - 1];
|
|
1854
1855
|
}
|
|
1855
1856
|
return e.replace(/_/g, " ");
|
|
1856
|
-
},
|
|
1857
|
+
}, Va = (e, s, t) => {
|
|
1857
1858
|
const a = s.querySelector(".relative");
|
|
1858
1859
|
if (!a || a.querySelector(".spark-table-head-sorting"))
|
|
1859
1860
|
return;
|
|
@@ -1868,7 +1869,7 @@ const J = new _a(), Ca = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
1868
1869
|
sortedBy: "asc"
|
|
1869
1870
|
}));
|
|
1870
1871
|
});
|
|
1871
|
-
},
|
|
1872
|
+
}, Ha = (e, s, t) => {
|
|
1872
1873
|
if (s.querySelector(".spark-table-head-filter"))
|
|
1873
1874
|
return;
|
|
1874
1875
|
const a = document.createElement("div"), l = document.createElement("input");
|
|
@@ -1883,19 +1884,19 @@ const J = new _a(), Ca = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
1883
1884
|
await t.methods.removeParam(c);
|
|
1884
1885
|
}, 200);
|
|
1885
1886
|
l.addEventListener("keyup", (o) => r(e, o)), s.appendChild(a);
|
|
1886
|
-
},
|
|
1887
|
+
}, Ra = (e, s, t) => {
|
|
1887
1888
|
e.classList.add("spark-table-head"), t && t.columnSort && e.classList.add("can-sort"), t && t.columnFilter && e.classList.add("can-filter"), e.querySelector(".relative").classList.add("spark-table-head-title-wrapper");
|
|
1888
1889
|
const l = e.querySelector(".colHeader");
|
|
1889
|
-
l.classList.add("spark-table-head-title"), l.innerHTML =
|
|
1890
|
-
},
|
|
1890
|
+
l.classList.add("spark-table-head-title"), l.innerHTML = Ma(s);
|
|
1891
|
+
}, Fa = (e, s, t) => {
|
|
1891
1892
|
if (typeof e != "number")
|
|
1892
1893
|
return e;
|
|
1893
1894
|
if (e < 0)
|
|
1894
1895
|
return;
|
|
1895
1896
|
let a = 2;
|
|
1896
1897
|
const l = t.methods.colToProp(e), r = t.methods.getSettingsForProp(l);
|
|
1897
|
-
s.childElementCount === 1 && ((!r || !r.columnSort) && a--, (!r || !r.columnFilter) && a--, r && r.columnSort &&
|
|
1898
|
-
},
|
|
1898
|
+
s.childElementCount === 1 && ((!r || !r.columnSort) && a--, (!r || !r.columnFilter) && a--, r && r.columnSort && Va(l, s, t), r && r.columnFilter && Ha(l, s, t)), (s.childElementCount === a || a === 0) && Ra(s, l, r);
|
|
1899
|
+
}, Da = (e) => {
|
|
1899
1900
|
if (!e.hotInstance || !e.hotInstance.rootElement)
|
|
1900
1901
|
return;
|
|
1901
1902
|
const s = e.params.orderBy, t = e.params.sortedBy, a = e.hotInstance.rootElement.querySelectorAll("thead th.can-sort .relative");
|
|
@@ -1905,7 +1906,7 @@ const J = new _a(), Ca = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
1905
1906
|
const r = l.closest("th"), o = Array.from(r.parentElement.children).indexOf(r);
|
|
1906
1907
|
e.methods.colToProp(o) === s && l.classList.add(t);
|
|
1907
1908
|
});
|
|
1908
|
-
},
|
|
1909
|
+
}, Aa = (e) => (s, t, a, l, r, o, i) => {
|
|
1909
1910
|
t.innerHTML = "", t.classList.add("spark-table-cell-actions");
|
|
1910
1911
|
const c = (i.rendererConfig || {}).actions || [];
|
|
1911
1912
|
if (c.length === 0)
|
|
@@ -1970,7 +1971,7 @@ const J = new _a(), Ca = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
1970
1971
|
blue: { bg: "bg-blue-100", text: "text-blue-500" },
|
|
1971
1972
|
gray: { bg: "bg-gray-100", text: "text-gray-500" },
|
|
1972
1973
|
purple: { bg: "bg-purple-100", text: "text-purple-500" }
|
|
1973
|
-
},
|
|
1974
|
+
}, Ia = (e) => {
|
|
1974
1975
|
if (e == null || e === "")
|
|
1975
1976
|
return !1;
|
|
1976
1977
|
if (typeof e == "boolean")
|
|
@@ -1982,9 +1983,9 @@ const J = new _a(), Ca = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
1982
1983
|
return s === "1" || s === "yes" || s === "true";
|
|
1983
1984
|
}
|
|
1984
1985
|
return !1;
|
|
1985
|
-
},
|
|
1986
|
+
}, Oa = (e) => (s, t, a, l, r, o, i) => {
|
|
1986
1987
|
t.innerHTML = "", t.classList.add("spark-table-cell-boolean");
|
|
1987
|
-
const n = i.rendererConfig || {}, c =
|
|
1988
|
+
const n = i.rendererConfig || {}, c = Ia(o), d = c ? n.trueIcon || "check" : n.falseIcon || "xmark", p = c ? n.trueColor || "green" : n.falseColor || "red", f = n.size || 32, x = n.iconPrefix || "far", w = He[p] || He.gray;
|
|
1988
1989
|
t.dataset.copyValue = c ? "true" : "false";
|
|
1989
1990
|
const v = document.createElement("div");
|
|
1990
1991
|
v.classList.add(
|
|
@@ -1999,7 +2000,7 @@ const J = new _a(), Ca = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
1999
2000
|
u.innerHTML = te({ prefix: x, iconName: d }).html, u.classList.add("flex", "items-center", "justify-center");
|
|
2000
2001
|
const g = Math.round(f * 0.5);
|
|
2001
2002
|
u.style.fontSize = `${g}px`, v.appendChild(u), t.appendChild(v);
|
|
2002
|
-
},
|
|
2003
|
+
}, Ba = (e, s = 2) => {
|
|
2003
2004
|
const t = Number(e);
|
|
2004
2005
|
if (isNaN(t)) return null;
|
|
2005
2006
|
const a = t < 0, r = Math.abs(t).toLocaleString("en-AU", {
|
|
@@ -2007,21 +2008,21 @@ const J = new _a(), Ca = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
2007
2008
|
maximumFractionDigits: s
|
|
2008
2009
|
});
|
|
2009
2010
|
return a ? `-$${r}` : `$${r}`;
|
|
2010
|
-
},
|
|
2011
|
+
}, za = (e) => (s, t, a, l, r, o, i) => {
|
|
2011
2012
|
t.innerHTML = "", t.classList.add("spark-table-cell-currency");
|
|
2012
2013
|
const n = i.rendererConfig || {}, { decimals: c = 2, emptyText: d = "" } = n;
|
|
2013
2014
|
if (o == null || o === "") {
|
|
2014
2015
|
t.textContent = d;
|
|
2015
2016
|
return;
|
|
2016
2017
|
}
|
|
2017
|
-
const p =
|
|
2018
|
+
const p = Ba(o, c);
|
|
2018
2019
|
if (p === null) {
|
|
2019
2020
|
t.textContent = d;
|
|
2020
2021
|
return;
|
|
2021
2022
|
}
|
|
2022
2023
|
const f = document.createElement("span");
|
|
2023
2024
|
f.textContent = p, t.appendChild(f);
|
|
2024
|
-
},
|
|
2025
|
+
}, ja = (e) => (s, t, a, l, r, o, i) => {
|
|
2025
2026
|
if (t.innerHTML = "", t.classList.add("spark-table-cell-link"), !o)
|
|
2026
2027
|
return;
|
|
2027
2028
|
const n = i.rendererConfig || {}, c = s.getSourceDataAtRow(s.toPhysicalRow(a));
|
|
@@ -2035,7 +2036,7 @@ const J = new _a(), Ca = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
2035
2036
|
sm: "h-6 w-6",
|
|
2036
2037
|
md: "h-8 w-8",
|
|
2037
2038
|
lg: "h-12 w-12"
|
|
2038
|
-
},
|
|
2039
|
+
}, Na = (e) => (s, t, a, l, r, o, i) => {
|
|
2039
2040
|
if (t.innerHTML = "", t.classList.add("spark-table-cell-image"), !o)
|
|
2040
2041
|
return;
|
|
2041
2042
|
const n = i.rendererConfig || {}, c = s.getSourceDataAtRow(s.toPhysicalRow(a)), d = n.size || "md", p = Re[d] || Re.md, f = n.rounded !== !1;
|
|
@@ -2043,7 +2044,7 @@ const J = new _a(), Ca = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
2043
2044
|
typeof n.alt == "string" && c[n.alt] && (x = c[n.alt]);
|
|
2044
2045
|
const w = document.createElement("img");
|
|
2045
2046
|
w.src = o, w.alt = x, w.classList.add(...p.split(" "), "object-cover"), f ? w.classList.add("rounded-full") : w.classList.add("rounded"), t.appendChild(w);
|
|
2046
|
-
},
|
|
2047
|
+
}, Za = (e) => (s, t, a, l, r, o, i) => {
|
|
2047
2048
|
if (t.innerHTML = "", t.classList.add("spark-table-cell-date"), !o)
|
|
2048
2049
|
return;
|
|
2049
2050
|
const n = i.rendererConfig || {}, c = n.format || "short", d = n.locale || "en-US";
|
|
@@ -2054,27 +2055,27 @@ const J = new _a(), Ca = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
2054
2055
|
year: "numeric",
|
|
2055
2056
|
month: "long",
|
|
2056
2057
|
day: "numeric"
|
|
2057
|
-
}) : c === "relative" ? p =
|
|
2058
|
+
}) : c === "relative" ? p = qa(x) : c === "datetime" ? p = x.toLocaleString(d) : p = x.toLocaleDateString(d);
|
|
2058
2059
|
} catch (x) {
|
|
2059
2060
|
console.error("Error formatting date:", x), p = o;
|
|
2060
2061
|
}
|
|
2061
2062
|
const f = document.createElement("span");
|
|
2062
2063
|
f.textContent = p, t.appendChild(f);
|
|
2063
2064
|
};
|
|
2064
|
-
function
|
|
2065
|
+
function qa(e) {
|
|
2065
2066
|
const t = /* @__PURE__ */ new Date() - e, a = Math.floor(Math.abs(t) / 1e3), l = Math.floor(a / 60), r = Math.floor(l / 60), o = Math.floor(r / 24), i = Math.floor(o / 30), n = Math.floor(o / 365), c = t > 0;
|
|
2066
2067
|
return a < 60 ? c ? "just now" : "in a moment" : l < 60 ? c ? `${l} minute${l > 1 ? "s" : ""} ago` : `in ${l} minute${l > 1 ? "s" : ""}` : r < 24 ? c ? `${r} hour${r > 1 ? "s" : ""} ago` : `in ${r} hour${r > 1 ? "s" : ""}` : o < 30 ? c ? `${o} day${o > 1 ? "s" : ""} ago` : `in ${o} day${o > 1 ? "s" : ""}` : i < 12 ? c ? `${i} month${i > 1 ? "s" : ""} ago` : `in ${i} month${i > 1 ? "s" : ""}` : c ? `${n} year${n > 1 ? "s" : ""} ago` : `in ${n} year${n > 1 ? "s" : ""}`;
|
|
2067
2068
|
}
|
|
2068
|
-
const
|
|
2069
|
+
const Ua = (e) => {
|
|
2069
2070
|
const s = ["th", "st", "nd", "rd"], t = e % 100;
|
|
2070
2071
|
return e + (s[(t - 20) % 10] || s[t] || s[0]);
|
|
2071
|
-
}, N = (e, s = 2) => String(e).padStart(s, "0"), xe = /* @__PURE__ */ new Map(),
|
|
2072
|
+
}, N = (e, s = 2) => String(e).padStart(s, "0"), xe = /* @__PURE__ */ new Map(), Ka = (e, s) => {
|
|
2072
2073
|
const t = `${e}:${JSON.stringify(s)}`;
|
|
2073
2074
|
return xe.has(t) || xe.set(t, new Intl.DateTimeFormat(e, s)), xe.get(t);
|
|
2074
2075
|
}, de = (e, s, t, a) => {
|
|
2075
|
-
const o =
|
|
2076
|
+
const o = Ka(s, t).formatToParts(e).find((i) => i.type === a);
|
|
2076
2077
|
return o ? o.value : "";
|
|
2077
|
-
},
|
|
2078
|
+
}, Wa = (e) => e.epochMilliseconds !== void 0 ? new Date(e.epochMilliseconds) : new Date(
|
|
2078
2079
|
e.year,
|
|
2079
2080
|
e.month - 1,
|
|
2080
2081
|
e.day,
|
|
@@ -2082,7 +2083,7 @@ const qa = (e) => {
|
|
|
2082
2083
|
e.minute || 0,
|
|
2083
2084
|
e.second || 0,
|
|
2084
2085
|
e.millisecond || 0
|
|
2085
|
-
),
|
|
2086
|
+
), Ga = (e) => {
|
|
2086
2087
|
const s = e.hour || 0, t = s % 12 || 12, a = s >= 12;
|
|
2087
2088
|
return {
|
|
2088
2089
|
year: e.year,
|
|
@@ -2105,8 +2106,8 @@ const qa = (e) => {
|
|
|
2105
2106
|
return "";
|
|
2106
2107
|
const t = Math.round(e.offsetNanoseconds / 6e10), a = t >= 0 ? "+" : "-", l = Math.abs(t), r = Math.floor(l / 60), o = l % 60;
|
|
2107
2108
|
return s ? `${a}${N(r)}:${N(o)}` : `${a}${N(r)}${N(o)}`;
|
|
2108
|
-
},
|
|
2109
|
-
const t =
|
|
2109
|
+
}, Ya = (e, s) => {
|
|
2110
|
+
const t = Ga(e), a = Wa(e), l = t.dayOfWeek === 7 ? 0 : t.dayOfWeek;
|
|
2110
2111
|
return [
|
|
2111
2112
|
// Year
|
|
2112
2113
|
["YYYY", () => String(t.year)],
|
|
@@ -2118,7 +2119,7 @@ const qa = (e) => {
|
|
|
2118
2119
|
["M", () => String(t.month)],
|
|
2119
2120
|
// Day of month
|
|
2120
2121
|
["DD", () => N(t.day)],
|
|
2121
|
-
["Do", () =>
|
|
2122
|
+
["Do", () => Ua(t.day)],
|
|
2122
2123
|
["D", () => String(t.day)],
|
|
2123
2124
|
// Day of week
|
|
2124
2125
|
["dddd", () => de(a, s, { weekday: "long" }, "weekday")],
|
|
@@ -2152,7 +2153,7 @@ const qa = (e) => {
|
|
|
2152
2153
|
["x", () => String(e.epochMilliseconds ?? a.getTime())],
|
|
2153
2154
|
["X", () => String(Math.floor((e.epochMilliseconds ?? a.getTime()) / 1e3))]
|
|
2154
2155
|
];
|
|
2155
|
-
},
|
|
2156
|
+
}, Xa = (e, s, t = {}) => {
|
|
2156
2157
|
const { locale: a = "en-US" } = t;
|
|
2157
2158
|
if (!e)
|
|
2158
2159
|
return "";
|
|
@@ -2168,20 +2169,20 @@ const qa = (e) => {
|
|
|
2168
2169
|
} catch (n) {
|
|
2169
2170
|
return console.error("Failed to parse date string:", e, n), e;
|
|
2170
2171
|
}
|
|
2171
|
-
const r =
|
|
2172
|
+
const r = Ya(l, a), o = r.map(([n]) => n).join("|"), i = new RegExp(`\\[([^\\]]+)\\]|(${o})`, "g");
|
|
2172
2173
|
return s.replace(i, (n, c, d) => {
|
|
2173
2174
|
if (c !== void 0)
|
|
2174
2175
|
return c;
|
|
2175
2176
|
const p = r.find(([f]) => f === d);
|
|
2176
2177
|
return p ? p[1]() : n;
|
|
2177
2178
|
});
|
|
2178
|
-
},
|
|
2179
|
+
}, Ja = (e, s = {}) => {
|
|
2179
2180
|
const { fromTimezone: t, toTimezone: a } = s;
|
|
2180
2181
|
if (!e)
|
|
2181
2182
|
return null;
|
|
2182
2183
|
const l = e.replace(" ", "T");
|
|
2183
2184
|
return t && a ? Temporal.PlainDateTime.from(l).toZonedDateTime(t).withTimeZone(a) : t ? Temporal.PlainDateTime.from(l).toZonedDateTime(t) : Temporal.PlainDateTime.from(l);
|
|
2184
|
-
},
|
|
2185
|
+
}, Qa = (e) => (s, t, a, l, r, o, i) => {
|
|
2185
2186
|
t.innerHTML = "", t.classList.add("spark-table-cell-datetime");
|
|
2186
2187
|
const n = i.rendererConfig || {}, {
|
|
2187
2188
|
format: c = "DD MMM YYYY, HH:mm",
|
|
@@ -2195,22 +2196,22 @@ const qa = (e) => {
|
|
|
2195
2196
|
return;
|
|
2196
2197
|
}
|
|
2197
2198
|
try {
|
|
2198
|
-
const w =
|
|
2199
|
+
const w = Ja(o, { fromTimezone: d, toTimezone: p });
|
|
2199
2200
|
if (!w) {
|
|
2200
2201
|
t.textContent = x;
|
|
2201
2202
|
return;
|
|
2202
2203
|
}
|
|
2203
|
-
const v =
|
|
2204
|
+
const v = Xa(w, c, { locale: f }), u = document.createElement("span");
|
|
2204
2205
|
u.textContent = v, t.appendChild(u);
|
|
2205
2206
|
} catch (w) {
|
|
2206
2207
|
console.error("Error formatting datetime:", w, { value: o, format: c }), t.textContent = o;
|
|
2207
2208
|
}
|
|
2208
|
-
},
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
}),
|
|
2212
|
-
},
|
|
2213
|
-
X("spark.actions",
|
|
2209
|
+
}, eo = /* @__PURE__ */ new Map(), X = (e, s) => {
|
|
2210
|
+
ys(e, (t, a, l, r, o, i, n) => {
|
|
2211
|
+
vs.apply(null, [t, a, l, r, o, i, n]), s(t, a, l, r, o, i, n);
|
|
2212
|
+
}), eo.set(e, s);
|
|
2213
|
+
}, to = (e) => {
|
|
2214
|
+
X("spark.actions", Aa(e)), X("spark.badge", Ea()), X("spark.boolean", Oa()), X("spark.currency", za()), X("spark.link", ja()), X("spark.image", Na()), X("spark.date", Za()), X("spark.datetime", Qa()), X("style.capitalize", (s, t, a, l, r, o) => {
|
|
2214
2215
|
if (!o || o.length === 0) {
|
|
2215
2216
|
t.innerText = "";
|
|
2216
2217
|
return;
|
|
@@ -2218,8 +2219,8 @@ const qa = (e) => {
|
|
|
2218
2219
|
const i = document.createElement("span");
|
|
2219
2220
|
i.innerHTML = o, i.classList.add("capitalize"), t.replaceChildren(i);
|
|
2220
2221
|
});
|
|
2221
|
-
},
|
|
2222
|
-
},
|
|
2222
|
+
}, so = () => {
|
|
2223
|
+
}, ao = (e, s = {}) => {
|
|
2223
2224
|
const t = W(), a = se(), l = s.namespace, r = l === null, o = s.syncToRoute !== !1, i = s.persistToStorage === !0, n = s.restoreOnMount !== !1, c = s.storageTTL || 7, d = r ? `spark-table:${a.path}` : `spark-table:${l}`, p = (b, k = "") => {
|
|
2224
2225
|
const P = {};
|
|
2225
2226
|
return Object.keys(b).forEach((I) => {
|
|
@@ -2329,7 +2330,7 @@ const qa = (e) => {
|
|
|
2329
2330
|
loadFromStorage: x,
|
|
2330
2331
|
clearStorage: w
|
|
2331
2332
|
};
|
|
2332
|
-
},
|
|
2333
|
+
}, oo = { class: "flex items-center gap-4 py-3" }, ro = { class: "shrink-0" }, no = { class: "text-sm text-gray-700" }, lo = { class: "font-medium" }, io = { class: "font-medium" }, co = { class: "font-medium" }, uo = {
|
|
2333
2334
|
__name: "SparkTablePaginationDetails",
|
|
2334
2335
|
props: {
|
|
2335
2336
|
sparkTable: {
|
|
@@ -2340,28 +2341,28 @@ const qa = (e) => {
|
|
|
2340
2341
|
setup(e) {
|
|
2341
2342
|
const s = e;
|
|
2342
2343
|
return (t, a) => (h(), y("div", null, [
|
|
2343
|
-
m("div",
|
|
2344
|
-
m("div",
|
|
2345
|
-
m("div",
|
|
2346
|
-
a[0] || (a[0] =
|
|
2347
|
-
m("span",
|
|
2348
|
-
a[1] || (a[1] =
|
|
2349
|
-
m("span",
|
|
2350
|
-
a[2] || (a[2] =
|
|
2351
|
-
m("span",
|
|
2352
|
-
a[3] || (a[3] =
|
|
2344
|
+
m("div", oo, [
|
|
2345
|
+
m("div", ro, [
|
|
2346
|
+
m("div", no, [
|
|
2347
|
+
a[0] || (a[0] = E(" Showing ", -1)),
|
|
2348
|
+
m("span", lo, M(s.sparkTable.response.meta.from), 1),
|
|
2349
|
+
a[1] || (a[1] = E(" to ", -1)),
|
|
2350
|
+
m("span", io, M(s.sparkTable.response.meta.to), 1),
|
|
2351
|
+
a[2] || (a[2] = E(" of ", -1)),
|
|
2352
|
+
m("span", co, M(s.sparkTable.response.meta.total), 1),
|
|
2353
|
+
a[3] || (a[3] = E(" results ", -1))
|
|
2353
2354
|
])
|
|
2354
2355
|
])
|
|
2355
2356
|
])
|
|
2356
2357
|
]));
|
|
2357
2358
|
}
|
|
2358
|
-
},
|
|
2359
|
+
}, po = { class: "flex items-center gap-4 px-4 py-3" }, fo = {
|
|
2359
2360
|
key: 0,
|
|
2360
2361
|
class: "shrink-0 ml-auto"
|
|
2361
|
-
},
|
|
2362
|
+
}, mo = {
|
|
2362
2363
|
class: "isolate inline-flex -space-x-px rounded-md shadow-xs bg-white",
|
|
2363
2364
|
"aria-label": "Pagination"
|
|
2364
|
-
},
|
|
2365
|
+
}, ho = ["onClick"], go = {
|
|
2365
2366
|
__name: "SparkTablePaginationPaging",
|
|
2366
2367
|
props: {
|
|
2367
2368
|
sparkTable: {
|
|
@@ -2377,19 +2378,19 @@ const qa = (e) => {
|
|
|
2377
2378
|
d < 1 || d > t.sparkTable.response.meta.last_page || a("paginate", {
|
|
2378
2379
|
page: d
|
|
2379
2380
|
});
|
|
2380
|
-
}, o = $(() => t.sparkTable.params.page ? Math.ceil(t.sparkTable.params.page / 10) * 10 : 1), i = $(() => t.sparkTable.computed.ready ?
|
|
2381
|
+
}, o = $(() => t.sparkTable.params.page ? Math.ceil(t.sparkTable.params.page / 10) * 10 : 1), i = $(() => t.sparkTable.computed.ready ? is(
|
|
2381
2382
|
Math.floor((o.value - 1) / 10) * 10 + 1,
|
|
2382
2383
|
o.value > t.sparkTable.response.meta.last_page ? t.sparkTable.response.meta.last_page + 1 : o.value + 1
|
|
2383
2384
|
) : []), n = $(
|
|
2384
2385
|
() => t.sparkTable.params.page < ee(t.sparkTable.response.meta, "last_page", 1)
|
|
2385
2386
|
), c = $(() => t.sparkTable.params.page > 1);
|
|
2386
2387
|
return (d, p) => {
|
|
2387
|
-
const f =
|
|
2388
|
+
const f = A("font-awesome-icon");
|
|
2388
2389
|
return h(), y("div", null, [
|
|
2389
|
-
m("div",
|
|
2390
|
-
i.value.length > 1 ? (h(), y("div",
|
|
2390
|
+
m("div", po, [
|
|
2391
|
+
i.value.length > 1 ? (h(), y("div", fo, [
|
|
2391
2392
|
m("div", null, [
|
|
2392
|
-
m("nav",
|
|
2393
|
+
m("nav", mo, [
|
|
2393
2394
|
m("a", {
|
|
2394
2395
|
class: V([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"]),
|
|
2395
2396
|
href: "#",
|
|
@@ -2408,7 +2409,7 @@ const qa = (e) => {
|
|
|
2408
2409
|
e.sparkTable.params.page === x ? "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"
|
|
2409
2410
|
]),
|
|
2410
2411
|
onClick: (w) => r(x)
|
|
2411
|
-
}, M(x), 11,
|
|
2412
|
+
}, M(x), 11, ho))), 128)),
|
|
2412
2413
|
m("a", {
|
|
2413
2414
|
class: V([n.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"]),
|
|
2414
2415
|
onClick: p[1] || (p[1] = U((x) => l(1), ["prevent"])),
|
|
@@ -2431,7 +2432,7 @@ const qa = (e) => {
|
|
|
2431
2432
|
for (const [a, l] of s)
|
|
2432
2433
|
t[a] = l;
|
|
2433
2434
|
return t;
|
|
2434
|
-
},
|
|
2435
|
+
}, yo = { class: "spark-table-pagination-per-page" }, vo = {
|
|
2435
2436
|
__name: "SparkTablePaginationPerPage",
|
|
2436
2437
|
props: {
|
|
2437
2438
|
sparkTable: {
|
|
@@ -2451,8 +2452,8 @@ const qa = (e) => {
|
|
|
2451
2452
|
});
|
|
2452
2453
|
};
|
|
2453
2454
|
return (o, i) => {
|
|
2454
|
-
const n =
|
|
2455
|
-
return h(), y("div",
|
|
2455
|
+
const n = A("FormKit");
|
|
2456
|
+
return h(), y("div", yo, [
|
|
2456
2457
|
S(n, {
|
|
2457
2458
|
"model-value": e.sparkTable.params.limit,
|
|
2458
2459
|
type: "select",
|
|
@@ -2465,7 +2466,7 @@ const qa = (e) => {
|
|
|
2465
2466
|
]);
|
|
2466
2467
|
};
|
|
2467
2468
|
}
|
|
2468
|
-
},
|
|
2469
|
+
}, bo = /* @__PURE__ */ oe(vo, [["__scopeId", "data-v-9ef8544b"]]), De = {
|
|
2469
2470
|
__name: "SparkTableToolbar",
|
|
2470
2471
|
props: {
|
|
2471
2472
|
position: {
|
|
@@ -2486,7 +2487,7 @@ const qa = (e) => {
|
|
|
2486
2487
|
O(r.$slots, "default")
|
|
2487
2488
|
], 2)) : T("", !0);
|
|
2488
2489
|
}
|
|
2489
|
-
},
|
|
2490
|
+
}, xo = { class: "spark-table-search" }, ko = {
|
|
2490
2491
|
__name: "SparkTableSearch",
|
|
2491
2492
|
props: {
|
|
2492
2493
|
/** SparkTable instance object */
|
|
@@ -2525,8 +2526,8 @@ const qa = (e) => {
|
|
|
2525
2526
|
o && o !== t.value ? t.value = o : !o && t.value && (t.value = "");
|
|
2526
2527
|
}
|
|
2527
2528
|
), (o, i) => {
|
|
2528
|
-
const n =
|
|
2529
|
-
return h(), y("div",
|
|
2529
|
+
const n = A("FormKit");
|
|
2530
|
+
return h(), y("div", xo, [
|
|
2530
2531
|
S(n, q({
|
|
2531
2532
|
modelValue: t.value,
|
|
2532
2533
|
"onUpdate:modelValue": i[0] || (i[0] = (c) => t.value = c),
|
|
@@ -2540,7 +2541,7 @@ const qa = (e) => {
|
|
|
2540
2541
|
]);
|
|
2541
2542
|
};
|
|
2542
2543
|
}
|
|
2543
|
-
},
|
|
2544
|
+
}, wo = /* @__PURE__ */ oe(ko, [["__scopeId", "data-v-976170dc"]]), _o = { class: "spark-table-filter-select" }, Co = {
|
|
2544
2545
|
__name: "SparkTableFilterSelect",
|
|
2545
2546
|
props: {
|
|
2546
2547
|
/** SparkTable instance object */
|
|
@@ -2575,8 +2576,8 @@ const qa = (e) => {
|
|
|
2575
2576
|
o != null && o !== "" ? t.value !== o && (t.value = o) : t.value && (t.value = "");
|
|
2576
2577
|
}
|
|
2577
2578
|
), (o, i) => {
|
|
2578
|
-
const n =
|
|
2579
|
-
return h(), y("div",
|
|
2579
|
+
const n = A("FormKit");
|
|
2580
|
+
return h(), y("div", _o, [
|
|
2580
2581
|
S(n, q({
|
|
2581
2582
|
modelValue: t.value,
|
|
2582
2583
|
"onUpdate:modelValue": i[0] || (i[0] = (c) => t.value = c),
|
|
@@ -2590,10 +2591,10 @@ const qa = (e) => {
|
|
|
2590
2591
|
]);
|
|
2591
2592
|
};
|
|
2592
2593
|
}
|
|
2593
|
-
},
|
|
2594
|
+
}, So = /* @__PURE__ */ oe(Co, [["__scopeId", "data-v-642dbc69"]]), $o = { class: "spark-table-filter-buttons" }, To = {
|
|
2594
2595
|
key: 0,
|
|
2595
2596
|
class: "spark-table-filter-buttons-label"
|
|
2596
|
-
},
|
|
2597
|
+
}, Lo = {
|
|
2597
2598
|
__name: "SparkTableFilterButtons",
|
|
2598
2599
|
props: {
|
|
2599
2600
|
/** SparkTable instance object */
|
|
@@ -2624,8 +2625,8 @@ const qa = (e) => {
|
|
|
2624
2625
|
(i) => {
|
|
2625
2626
|
(i == null || i === "") && t.value ? t.value = null : i !== t.value && (t.value = i);
|
|
2626
2627
|
}
|
|
2627
|
-
), (i, n) => (h(), y("div",
|
|
2628
|
-
C(a) ? (h(), y("span",
|
|
2628
|
+
), (i, n) => (h(), y("div", $o, [
|
|
2629
|
+
C(a) ? (h(), y("span", To, M(C(a)), 1)) : T("", !0),
|
|
2629
2630
|
S(pt, { class: "isolate" }, {
|
|
2630
2631
|
default: L(() => [
|
|
2631
2632
|
(h(!0), y(D, null, B(e.config.options, (c) => (h(), H(G, {
|
|
@@ -2636,7 +2637,7 @@ const qa = (e) => {
|
|
|
2636
2637
|
onClick: (d) => o(c.value)
|
|
2637
2638
|
}, {
|
|
2638
2639
|
default: L(() => [
|
|
2639
|
-
|
|
2640
|
+
E(M(c.label), 1)
|
|
2640
2641
|
]),
|
|
2641
2642
|
_: 2
|
|
2642
2643
|
}, 1032, ["variant", "onClick"]))), 128))
|
|
@@ -2645,7 +2646,7 @@ const qa = (e) => {
|
|
|
2645
2646
|
})
|
|
2646
2647
|
]));
|
|
2647
2648
|
}
|
|
2648
|
-
},
|
|
2649
|
+
}, Po = /* @__PURE__ */ oe(Lo, [["__scopeId", "data-v-01a49899"]]), Mo = { class: "spark-table-date-picker" }, Vo = {
|
|
2649
2650
|
__name: "SparkTableDatePicker",
|
|
2650
2651
|
props: {
|
|
2651
2652
|
/** SparkTable instance object */
|
|
@@ -2679,8 +2680,8 @@ const qa = (e) => {
|
|
|
2679
2680
|
} else o && o !== t.value && (t.value = o);
|
|
2680
2681
|
}
|
|
2681
2682
|
), (o, i) => {
|
|
2682
|
-
const n =
|
|
2683
|
-
return h(), y("div",
|
|
2683
|
+
const n = A("FormKit");
|
|
2684
|
+
return h(), y("div", Mo, [
|
|
2684
2685
|
(h(), H(n, q({
|
|
2685
2686
|
key: r.value,
|
|
2686
2687
|
modelValue: t.value,
|
|
@@ -2698,7 +2699,7 @@ const qa = (e) => {
|
|
|
2698
2699
|
]);
|
|
2699
2700
|
};
|
|
2700
2701
|
}
|
|
2701
|
-
},
|
|
2702
|
+
}, Ho = /* @__PURE__ */ oe(Vo, [["__scopeId", "data-v-44ef9cb8"]]), Ro = { class: "spark-table-reset" }, Fo = { key: 1 }, Do = {
|
|
2702
2703
|
__name: "SparkTableReset",
|
|
2703
2704
|
props: {
|
|
2704
2705
|
/** SparkTable instance object */
|
|
@@ -2735,8 +2736,8 @@ const qa = (e) => {
|
|
|
2735
2736
|
s.sparkTable.methods.applyParams({ ...n, page: 1 });
|
|
2736
2737
|
};
|
|
2737
2738
|
return (a, l) => {
|
|
2738
|
-
const r =
|
|
2739
|
-
return h(), y("div",
|
|
2739
|
+
const r = A("font-awesome-icon");
|
|
2740
|
+
return h(), y("div", Ro, [
|
|
2740
2741
|
S(G, {
|
|
2741
2742
|
onClick: t,
|
|
2742
2743
|
variant: "secondary",
|
|
@@ -2749,26 +2750,26 @@ const qa = (e) => {
|
|
|
2749
2750
|
icon: ["far", e.config.icon],
|
|
2750
2751
|
class: V({ "mr-1.5": e.config.label })
|
|
2751
2752
|
}, null, 8, ["icon", "class"])) : T("", !0),
|
|
2752
|
-
e.config.label ? (h(), y("span",
|
|
2753
|
+
e.config.label ? (h(), y("span", Fo, M(e.config.label), 1)) : T("", !0)
|
|
2753
2754
|
]),
|
|
2754
2755
|
_: 1
|
|
2755
2756
|
})
|
|
2756
2757
|
]);
|
|
2757
2758
|
};
|
|
2758
2759
|
}
|
|
2759
|
-
},
|
|
2760
|
+
}, Ao = /* @__PURE__ */ oe(Do, [["__scopeId", "data-v-0894e3bf"]]), Eo = { class: "spark-table" }, Io = {
|
|
2760
2761
|
key: 1,
|
|
2761
2762
|
class: "pt-5"
|
|
2762
|
-
},
|
|
2763
|
+
}, Oo = {
|
|
2763
2764
|
key: 2,
|
|
2764
2765
|
class: "flex flex-col items-center justify-center py-16 text-gray-500 rounded-md border border-gray-300 bg-white"
|
|
2765
|
-
},
|
|
2766
|
+
}, Bo = { class: "flex items-center gap-x-3 ml-auto" }, Se = {
|
|
2766
2767
|
perPages: [15, 30, 50, 100, 200, 500],
|
|
2767
2768
|
limit: 15
|
|
2768
|
-
},
|
|
2769
|
+
}, zo = {
|
|
2769
2770
|
page: 1,
|
|
2770
2771
|
limit: Se.limit
|
|
2771
|
-
},
|
|
2772
|
+
}, Ae = {
|
|
2772
2773
|
colHeaders: !0,
|
|
2773
2774
|
filters: !1,
|
|
2774
2775
|
stretchH: "all",
|
|
@@ -2778,7 +2779,7 @@ const qa = (e) => {
|
|
|
2778
2779
|
tableClassName: "spark-table-table",
|
|
2779
2780
|
readOnlyCellClassName: "read-only",
|
|
2780
2781
|
licenseKey: "non-commercial-and-evaluation"
|
|
2781
|
-
},
|
|
2782
|
+
}, tl = {
|
|
2782
2783
|
__name: "SparkTable",
|
|
2783
2784
|
props: {
|
|
2784
2785
|
url: {
|
|
@@ -2802,7 +2803,7 @@ const qa = (e) => {
|
|
|
2802
2803
|
params: {
|
|
2803
2804
|
type: Object,
|
|
2804
2805
|
default() {
|
|
2805
|
-
return
|
|
2806
|
+
return zo;
|
|
2806
2807
|
}
|
|
2807
2808
|
},
|
|
2808
2809
|
options: {
|
|
@@ -2814,7 +2815,7 @@ const qa = (e) => {
|
|
|
2814
2815
|
settings: {
|
|
2815
2816
|
type: Object,
|
|
2816
2817
|
default() {
|
|
2817
|
-
return
|
|
2818
|
+
return Ae;
|
|
2818
2819
|
}
|
|
2819
2820
|
},
|
|
2820
2821
|
plugins: {
|
|
@@ -2843,15 +2844,15 @@ const qa = (e) => {
|
|
|
2843
2844
|
],
|
|
2844
2845
|
setup(e, { expose: s, emit: t }) {
|
|
2845
2846
|
const a = e;
|
|
2846
|
-
|
|
2847
|
+
gs(), me(ps), me(fs), me(ms), ee(a, "settings.nestedHeaders") && me(hs);
|
|
2847
2848
|
const l = t, r = $e("axios"), o = R(null), i = R(!1), n = R(null);
|
|
2848
2849
|
let c = !1;
|
|
2849
2850
|
const d = {
|
|
2850
|
-
search:
|
|
2851
|
-
filterSelect:
|
|
2852
|
-
filterButtons:
|
|
2853
|
-
datePicker:
|
|
2854
|
-
reset:
|
|
2851
|
+
search: wo,
|
|
2852
|
+
filterSelect: So,
|
|
2853
|
+
filterButtons: Po,
|
|
2854
|
+
datePicker: Ho,
|
|
2855
|
+
reset: Ao
|
|
2855
2856
|
}, p = K({
|
|
2856
2857
|
hotInstance: null,
|
|
2857
2858
|
url: $(() => a.url),
|
|
@@ -2908,7 +2909,7 @@ const qa = (e) => {
|
|
|
2908
2909
|
fireEvent: (u, g) => {
|
|
2909
2910
|
l(u, g);
|
|
2910
2911
|
},
|
|
2911
|
-
getSettingsForProp: (u) =>
|
|
2912
|
+
getSettingsForProp: (u) => cs(ee(p.tableSettings, "columns"), { data: u }),
|
|
2912
2913
|
// Helper methods for easier param access
|
|
2913
2914
|
getParams: () => p.computed.params,
|
|
2914
2915
|
getParam: (u) => p.computed.params[u],
|
|
@@ -2927,20 +2928,20 @@ const qa = (e) => {
|
|
|
2927
2928
|
...a.params,
|
|
2928
2929
|
...p.params
|
|
2929
2930
|
})),
|
|
2930
|
-
ready: $(() =>
|
|
2931
|
+
ready: $(() => us(p, "response.meta.last_page"))
|
|
2931
2932
|
},
|
|
2932
2933
|
options: $(() => ({
|
|
2933
2934
|
...Se,
|
|
2934
2935
|
...a.options
|
|
2935
2936
|
})),
|
|
2936
2937
|
tableSettings: $(() => ({
|
|
2937
|
-
...
|
|
2938
|
+
...Ae,
|
|
2938
2939
|
nestedHeaders: ee(a.settings, "nestedHeaders", []),
|
|
2939
2940
|
...!ee(a.settings, "nestedHeaders") && {
|
|
2940
|
-
afterGetColHeader: (u, g) =>
|
|
2941
|
+
afterGetColHeader: (u, g) => Fa(u, g, p)
|
|
2941
2942
|
},
|
|
2942
|
-
afterChange: (u, g) =>
|
|
2943
|
-
afterRender: () =>
|
|
2943
|
+
afterChange: (u, g) => so(),
|
|
2944
|
+
afterRender: () => Da(p),
|
|
2944
2945
|
/**
|
|
2945
2946
|
* Prevent columns with explicit width from being stretched
|
|
2946
2947
|
* This hook fires BEFORE stretchH is applied, allowing us to cap specific columns
|
|
@@ -3000,7 +3001,7 @@ const qa = (e) => {
|
|
|
3000
3001
|
{ deep: !0, flush: "sync" }
|
|
3001
3002
|
), a.syncToRoute || a.persistToStorage) {
|
|
3002
3003
|
const u = typeof a.syncToRoute == "string";
|
|
3003
|
-
|
|
3004
|
+
ao(p, {
|
|
3004
3005
|
namespace: u ? a.syncToRoute : null,
|
|
3005
3006
|
syncToRoute: !!a.syncToRoute,
|
|
3006
3007
|
persistToStorage: a.persistToStorage
|
|
@@ -3027,7 +3028,7 @@ const qa = (e) => {
|
|
|
3027
3028
|
await p.methods.loadTable(), l("ready");
|
|
3028
3029
|
}), ze(() => {
|
|
3029
3030
|
c = !0;
|
|
3030
|
-
}),
|
|
3031
|
+
}), to(p), s({
|
|
3031
3032
|
refresh: () => p.methods.loadTable(),
|
|
3032
3033
|
getParams: () => p.methods.getParams(),
|
|
3033
3034
|
getParam: (u) => p.methods.getParam(u),
|
|
@@ -3040,7 +3041,7 @@ const qa = (e) => {
|
|
|
3040
3041
|
sparkTable: p,
|
|
3041
3042
|
table: o
|
|
3042
3043
|
}), (u, g) => {
|
|
3043
|
-
const _ =
|
|
3044
|
+
const _ = A("font-awesome-icon");
|
|
3044
3045
|
return h(), y("div", Eo, [
|
|
3045
3046
|
p.computed.ready && v.value && v.value.length ? (h(), H(De, {
|
|
3046
3047
|
key: 0,
|
|
@@ -3060,8 +3061,8 @@ const qa = (e) => {
|
|
|
3060
3061
|
})
|
|
3061
3062
|
]),
|
|
3062
3063
|
_: 3
|
|
3063
|
-
})) : (h(), y("div",
|
|
3064
|
-
bt(S(C(
|
|
3064
|
+
})) : (h(), y("div", Io)),
|
|
3065
|
+
bt(S(C(ds), {
|
|
3065
3066
|
"theme-name": "ht-theme-classic",
|
|
3066
3067
|
ref_key: "table",
|
|
3067
3068
|
ref: o,
|
|
@@ -3069,7 +3070,7 @@ const qa = (e) => {
|
|
|
3069
3070
|
}, null, 8, ["settings"]), [
|
|
3070
3071
|
[xt, !f.value]
|
|
3071
3072
|
]),
|
|
3072
|
-
f.value ? (h(), y("div",
|
|
3073
|
+
f.value ? (h(), y("div", Oo, [
|
|
3073
3074
|
S(_, {
|
|
3074
3075
|
icon: C(F).farInbox,
|
|
3075
3076
|
class: "size-12 mb-4 text-gray-300"
|
|
@@ -3081,17 +3082,17 @@ const qa = (e) => {
|
|
|
3081
3082
|
position: "footer"
|
|
3082
3083
|
}, {
|
|
3083
3084
|
default: L(() => [
|
|
3084
|
-
f.value ? T("", !0) : (h(), H(
|
|
3085
|
+
f.value ? T("", !0) : (h(), H(uo, {
|
|
3085
3086
|
key: 0,
|
|
3086
3087
|
"spark-table": p
|
|
3087
3088
|
}, null, 8, ["spark-table"])),
|
|
3088
|
-
m("div",
|
|
3089
|
-
f.value ? T("", !0) : (h(), H(
|
|
3089
|
+
m("div", Bo, [
|
|
3090
|
+
f.value ? T("", !0) : (h(), H(go, {
|
|
3090
3091
|
key: 0,
|
|
3091
3092
|
"spark-table": p,
|
|
3092
3093
|
onPaginate: p.methods.applyParams
|
|
3093
3094
|
}, null, 8, ["spark-table", "onPaginate"])),
|
|
3094
|
-
S(
|
|
3095
|
+
S(bo, {
|
|
3095
3096
|
"spark-table": p,
|
|
3096
3097
|
onPaginate: p.methods.applyParams
|
|
3097
3098
|
}, null, 8, ["spark-table", "onPaginate"]),
|
|
@@ -3108,7 +3109,7 @@ const qa = (e) => {
|
|
|
3108
3109
|
};
|
|
3109
3110
|
}
|
|
3110
3111
|
};
|
|
3111
|
-
function
|
|
3112
|
+
function Ee() {
|
|
3112
3113
|
const e = K({
|
|
3113
3114
|
isVisible: !1,
|
|
3114
3115
|
content: null,
|
|
@@ -3135,9 +3136,9 @@ function Ae() {
|
|
|
3135
3136
|
}
|
|
3136
3137
|
};
|
|
3137
3138
|
}
|
|
3138
|
-
class
|
|
3139
|
+
class jo {
|
|
3139
3140
|
constructor() {
|
|
3140
|
-
this.left =
|
|
3141
|
+
this.left = Ee(), this.right = Ee();
|
|
3141
3142
|
}
|
|
3142
3143
|
showLeft = (s, t = {}, a = {}, l = {}) => {
|
|
3143
3144
|
const r = {
|
|
@@ -3167,10 +3168,10 @@ class zo {
|
|
|
3167
3168
|
this.left.close(), this.right.close();
|
|
3168
3169
|
};
|
|
3169
3170
|
}
|
|
3170
|
-
const ae = new
|
|
3171
|
+
const ae = new jo(), No = (e) => {
|
|
3171
3172
|
const s = document.cookie.match(new RegExp(`(^| )${e}=([^;]+)`));
|
|
3172
3173
|
return s ? s[2] : null;
|
|
3173
|
-
},
|
|
3174
|
+
}, Zo = (e, s, t = {}) => {
|
|
3174
3175
|
const {
|
|
3175
3176
|
maxAge: a = 31536e3,
|
|
3176
3177
|
// 365 days in seconds
|
|
@@ -3181,7 +3182,7 @@ const ae = new zo(), jo = (e) => {
|
|
|
3181
3182
|
} = t;
|
|
3182
3183
|
let n = `${e}=${s}; max-age=${a}; path=${i}; samesite=${o}`;
|
|
3183
3184
|
l && (n += `; domain=${l}`), r && (n += "; secure"), document.cookie = n;
|
|
3184
|
-
},
|
|
3185
|
+
}, qo = (e, s = {}) => {
|
|
3185
3186
|
const { domain: t = ft(), path: a = "/" } = s;
|
|
3186
3187
|
let l = `${e}=; max-age=0; path=${a}`;
|
|
3187
3188
|
t && (l += `; domain=${t}`), document.cookie = l;
|
|
@@ -3189,15 +3190,15 @@ const ae = new zo(), jo = (e) => {
|
|
|
3189
3190
|
const e = window.location.hostname;
|
|
3190
3191
|
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;
|
|
3191
3192
|
}, mt = [];
|
|
3192
|
-
function
|
|
3193
|
+
function Uo(e) {
|
|
3193
3194
|
mt.push(e);
|
|
3194
3195
|
}
|
|
3195
|
-
function
|
|
3196
|
+
function Ko() {
|
|
3196
3197
|
mt.forEach((e) => e());
|
|
3197
3198
|
}
|
|
3198
|
-
function
|
|
3199
|
+
function sl(e) {
|
|
3199
3200
|
let s = !1;
|
|
3200
|
-
return
|
|
3201
|
+
return Uo(() => {
|
|
3201
3202
|
s = !1;
|
|
3202
3203
|
}), {
|
|
3203
3204
|
bootstrapApp: async () => {
|
|
@@ -3246,10 +3247,10 @@ const ke = "bolt-next-token", Q = pe("auth", () => {
|
|
|
3246
3247
|
}), s = (c = {}) => {
|
|
3247
3248
|
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);
|
|
3248
3249
|
}, t = (c) => {
|
|
3249
|
-
|
|
3250
|
+
Zo(ke, c), e.token = c;
|
|
3250
3251
|
}, a = () => {
|
|
3251
|
-
|
|
3252
|
-
}, l = () =>
|
|
3252
|
+
qo(ke), e.token = null;
|
|
3253
|
+
}, l = () => No(ke), r = async (c) => {
|
|
3253
3254
|
const d = await le.post(e.endpoints.login, c), p = d.headers.authorization;
|
|
3254
3255
|
return t(p), e.user = d.data, e.callbacks.onLoginSuccess && await e.callbacks.onLoginSuccess(d.data), d.data;
|
|
3255
3256
|
}, o = async () => {
|
|
@@ -3266,7 +3267,7 @@ const ke = "bolt-next-token", Q = pe("auth", () => {
|
|
|
3266
3267
|
} catch (c) {
|
|
3267
3268
|
throw e.callbacks.onLogoutError && await e.callbacks.onLogoutError(c), c;
|
|
3268
3269
|
} finally {
|
|
3269
|
-
a(), e.user = null,
|
|
3270
|
+
a(), e.user = null, Ko();
|
|
3270
3271
|
}
|
|
3271
3272
|
}, i = async () => {
|
|
3272
3273
|
const c = e.overrideToken || l();
|
|
@@ -3297,7 +3298,7 @@ const ke = "bolt-next-token", Q = pe("auth", () => {
|
|
|
3297
3298
|
getTokenCookie: l
|
|
3298
3299
|
};
|
|
3299
3300
|
});
|
|
3300
|
-
function
|
|
3301
|
+
function Wo(e = {}) {
|
|
3301
3302
|
const s = le.create({
|
|
3302
3303
|
baseURL: e.baseURL || "",
|
|
3303
3304
|
timeout: e.timeout || 3e4,
|
|
@@ -3338,24 +3339,24 @@ function Ko(e = {}) {
|
|
|
3338
3339
|
), s;
|
|
3339
3340
|
}
|
|
3340
3341
|
let ne = null;
|
|
3341
|
-
function
|
|
3342
|
-
return ne =
|
|
3342
|
+
function al(e, s = {}) {
|
|
3343
|
+
return ne = Wo(s), e.provide("axios", ne), e.config.globalProperties.$axios = ne, ne;
|
|
3343
3344
|
}
|
|
3344
|
-
function
|
|
3345
|
+
function Go() {
|
|
3345
3346
|
if (!ne)
|
|
3346
3347
|
throw new Error("Axios instance not initialized. Call setupAxios() first.");
|
|
3347
3348
|
return ne;
|
|
3348
3349
|
}
|
|
3349
|
-
function
|
|
3350
|
+
function Yo(e) {
|
|
3350
3351
|
return e?.status !== 422 ? null : e.data?.errors || null;
|
|
3351
3352
|
}
|
|
3352
3353
|
function Ie(e) {
|
|
3353
3354
|
return e?.status === 422 ? e.data?.message || "Please fix the validation errors." : e?.data?.message || "An error occurred.";
|
|
3354
3355
|
}
|
|
3355
|
-
function
|
|
3356
|
+
function Xo(e) {
|
|
3356
3357
|
return e?.status === 422;
|
|
3357
3358
|
}
|
|
3358
|
-
function
|
|
3359
|
+
function ol(e = {}) {
|
|
3359
3360
|
const {
|
|
3360
3361
|
successMessage: s = "Saved successfully!",
|
|
3361
3362
|
createMessage: t = "Created successfully!",
|
|
@@ -3388,8 +3389,8 @@ function al(e = {}) {
|
|
|
3388
3389
|
const k = b.response;
|
|
3389
3390
|
if (o && await o(b) === !0)
|
|
3390
3391
|
return { success: !1, data: null, error: b };
|
|
3391
|
-
if (
|
|
3392
|
-
const P =
|
|
3392
|
+
if (Xo(k)) {
|
|
3393
|
+
const P = Yo(k);
|
|
3393
3394
|
P && g && n && g.setErrors([], P), c && z.show({
|
|
3394
3395
|
type: "danger",
|
|
3395
3396
|
message: Ie(k)
|
|
@@ -3405,7 +3406,7 @@ function al(e = {}) {
|
|
|
3405
3406
|
}
|
|
3406
3407
|
}
|
|
3407
3408
|
async function x(w) {
|
|
3408
|
-
const { url: v, payload: u, method: g = "post", node: _, isEditMode: b } = w, k =
|
|
3409
|
+
const { url: v, payload: u, method: g = "post", node: _, isEditMode: b } = w, k = Go();
|
|
3409
3410
|
return f({
|
|
3410
3411
|
submitFn: () => k[g](v, u),
|
|
3411
3412
|
method: b ? "update" : "create",
|
|
@@ -3419,7 +3420,7 @@ function al(e = {}) {
|
|
|
3419
3420
|
submitToApi: x
|
|
3420
3421
|
};
|
|
3421
3422
|
}
|
|
3422
|
-
function
|
|
3423
|
+
function rl(e = {}) {
|
|
3423
3424
|
const { items: s = [], defaultId: t = null } = e, a = W(), l = se(), r = R(s.map(o));
|
|
3424
3425
|
function o(u) {
|
|
3425
3426
|
return {
|
|
@@ -3504,31 +3505,31 @@ function ol(e = {}) {
|
|
|
3504
3505
|
};
|
|
3505
3506
|
}
|
|
3506
3507
|
const ie = /* @__PURE__ */ new Map();
|
|
3507
|
-
let
|
|
3508
|
-
function
|
|
3508
|
+
let Jo = 0;
|
|
3509
|
+
function Qo() {
|
|
3509
3510
|
for (const e of ie.values())
|
|
3510
3511
|
if (e.isDirty)
|
|
3511
3512
|
return !0;
|
|
3512
3513
|
return !1;
|
|
3513
3514
|
}
|
|
3514
|
-
function
|
|
3515
|
+
function er() {
|
|
3515
3516
|
for (const e of ie.values())
|
|
3516
3517
|
if (e.isDirty && e.message)
|
|
3517
3518
|
return e.message;
|
|
3518
3519
|
return null;
|
|
3519
3520
|
}
|
|
3520
|
-
function
|
|
3521
|
+
function tr() {
|
|
3521
3522
|
for (const e of ie.values())
|
|
3522
3523
|
e.isDirty = !1;
|
|
3523
3524
|
}
|
|
3524
|
-
function
|
|
3525
|
+
function nl(e = {}) {
|
|
3525
3526
|
const {
|
|
3526
3527
|
message: s = "You have unsaved changes. Leave anyway?",
|
|
3527
3528
|
title: t = "Unsaved Changes",
|
|
3528
3529
|
confirmText: a = "Leave",
|
|
3529
3530
|
cancelText: l = "Stay",
|
|
3530
3531
|
useRouteGuard: r = !0
|
|
3531
|
-
} = e, o = `form-${++
|
|
3532
|
+
} = e, o = `form-${++Jo}`, i = R(!1);
|
|
3532
3533
|
ie.set(o, {
|
|
3533
3534
|
isDirty: !1,
|
|
3534
3535
|
message: s
|
|
@@ -3560,7 +3561,7 @@ function rl(e = {}) {
|
|
|
3560
3561
|
}, w = () => {
|
|
3561
3562
|
p && (window.removeEventListener("beforeunload", f), p = !1);
|
|
3562
3563
|
};
|
|
3563
|
-
return r &&
|
|
3564
|
+
return r && ls(async () => await d()), ze(() => {
|
|
3564
3565
|
ie.delete(o), w();
|
|
3565
3566
|
}), {
|
|
3566
3567
|
isDirty: i,
|
|
@@ -3571,22 +3572,22 @@ function rl(e = {}) {
|
|
|
3571
3572
|
disableBrowserWarning: w
|
|
3572
3573
|
};
|
|
3573
3574
|
}
|
|
3574
|
-
const
|
|
3575
|
+
const sr = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, ar = { class: "flex flex-1 flex-col" }, or = {
|
|
3575
3576
|
class: "flex flex-1 flex-col gap-y-7",
|
|
3576
3577
|
role: "list"
|
|
3577
|
-
},
|
|
3578
|
+
}, rr = { class: "flex flex-1 flex-col" }, nr = {
|
|
3578
3579
|
role: "list",
|
|
3579
3580
|
class: "flex flex-1 flex-col"
|
|
3580
|
-
},
|
|
3581
|
+
}, lr = { class: "flex items-center pb-8" }, ir = ["href", "onClick"], cr = {
|
|
3581
3582
|
key: 2,
|
|
3582
3583
|
class: "w-full flex justify-center"
|
|
3583
|
-
},
|
|
3584
|
+
}, ur = {
|
|
3584
3585
|
key: 0,
|
|
3585
3586
|
class: "mt-[5px] flex flex-col gap-[5px]"
|
|
3586
|
-
},
|
|
3587
|
+
}, dr = ["href", "onClick"], pr = {
|
|
3587
3588
|
key: 1,
|
|
3588
3589
|
class: "text-[13px]"
|
|
3589
|
-
},
|
|
3590
|
+
}, fr = { class: "mt-auto" }, mr = { class: "p-[10px] flex-shrink-0" }, hr = { class: "flex flex-1 items-center gap-x-6" }, gr = { class: "relative flex flex-1 items-center gap-4" }, yr = { class: "cursor-pointer" }, vr = ["src"], br = { class: "ml-auto" }, xr = { class: "mr-[10px] pb-[10px] flex-1 flex flex-col" }, ll = {
|
|
3590
3591
|
__name: "SparkDefaultContainer",
|
|
3591
3592
|
props: {
|
|
3592
3593
|
appStore: {
|
|
@@ -3606,14 +3607,14 @@ const tr = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, sr = { class: "flex
|
|
|
3606
3607
|
setup(e, { emit: s }) {
|
|
3607
3608
|
const t = e, a = s, l = Be(), r = se(), o = (v) => v.href ? !!(v.href === r.name || v.href === r.path || r.path.startsWith(v.href + "/")) : !1, i = dt(), n = it(), c = $(() => n.getAppIcon(t.appStore.state.app)), d = $(() => r.meta.hideBrandSelector === !0 ? !1 : t.appStore.state.showBrandSelector), p = () => {
|
|
3608
3609
|
const v = {};
|
|
3609
|
-
l["app-selector-bottom"] ? v.bottomSlot = () => Te("div", {}, l["app-selector-bottom"]()) : t.appSelectorSlots.bottomSlot && (v.bottomSlot = t.appSelectorSlots.bottomSlot), l["app-selector-footer"] ? v.footerSlot = () => Te("div", {}, l["app-selector-footer"]()) : t.appSelectorSlots.footerSlot && (v.footerSlot = t.appSelectorSlots.footerSlot), ae.showRight(
|
|
3610
|
+
l["app-selector-bottom"] ? v.bottomSlot = () => Te("div", {}, l["app-selector-bottom"]()) : t.appSelectorSlots.bottomSlot && (v.bottomSlot = t.appSelectorSlots.bottomSlot), l["app-selector-footer"] ? v.footerSlot = () => Te("div", {}, l["app-selector-footer"]()) : t.appSelectorSlots.footerSlot && (v.footerSlot = t.appSelectorSlots.footerSlot), ae.showRight(Bs, v, {
|
|
3610
3611
|
select: (u) => {
|
|
3611
3612
|
ae.closeRight();
|
|
3612
3613
|
}
|
|
3613
3614
|
});
|
|
3614
3615
|
}, f = () => {
|
|
3615
3616
|
ae.showLeft(
|
|
3616
|
-
|
|
3617
|
+
ca,
|
|
3617
3618
|
{},
|
|
3618
3619
|
{
|
|
3619
3620
|
select: (v) => {
|
|
@@ -3623,17 +3624,17 @@ const tr = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, sr = { class: "flex
|
|
|
3623
3624
|
);
|
|
3624
3625
|
}, x = $(() => t.mainNavStore.state.hidden ? ["w-0 overflow-hidden"] : [t.mainNavStore.state.collapsed ? "w-[80px]" : "w-[240px]"]), w = $(() => t.mainNavStore.state.hidden ? ["pl-2.5"] : [t.mainNavStore.state.collapsed ? "pl-[80px]" : "pl-[240px]"]);
|
|
3625
3626
|
return (v, u) => {
|
|
3626
|
-
const g =
|
|
3627
|
+
const g = A("font-awesome-icon"), _ = A("router-view");
|
|
3627
3628
|
return h(), y(D, null, [
|
|
3628
3629
|
m("div", {
|
|
3629
3630
|
class: V([x.value, "fixed inset-y-0 flex transition-all z-100"])
|
|
3630
3631
|
}, [
|
|
3631
|
-
m("div",
|
|
3632
|
-
m("nav",
|
|
3633
|
-
m("ul",
|
|
3634
|
-
m("li",
|
|
3635
|
-
m("ul",
|
|
3636
|
-
m("li",
|
|
3632
|
+
m("div", sr, [
|
|
3633
|
+
m("nav", ar, [
|
|
3634
|
+
m("ul", or, [
|
|
3635
|
+
m("li", rr, [
|
|
3636
|
+
m("ul", nr, [
|
|
3637
|
+
m("li", lr, [
|
|
3637
3638
|
m("a", {
|
|
3638
3639
|
class: "grid w-[40px] h-[40px] place-items-center rounded-md bg-primary-600 text-white text-[13px] cursor-pointer",
|
|
3639
3640
|
onClick: u[0] || (u[0] = U((b) => e.mainNavStore.goto(e.appStore.state.homeRoute), ["prevent"]))
|
|
@@ -3669,7 +3670,7 @@ const tr = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, sr = { class: "flex
|
|
|
3669
3670
|
icon: C(F)[b.icon],
|
|
3670
3671
|
class: V([[(o(b), "text-gray-400")], "size-4"])
|
|
3671
3672
|
}, null, 8, ["icon", "class"])) : T("", !0),
|
|
3672
|
-
e.mainNavStore.state.collapsed ? b?.children ? (h(), y("div",
|
|
3673
|
+
e.mainNavStore.state.collapsed ? b?.children ? (h(), y("div", cr, [...u[6] || (u[6] = [
|
|
3673
3674
|
m("div", { class: "w-[10px] h-px bg-gray-400" }, null, -1)
|
|
3674
3675
|
])])) : T("", !0) : (h(), y("span", {
|
|
3675
3676
|
key: 1,
|
|
@@ -3680,8 +3681,8 @@ const tr = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, sr = { class: "flex
|
|
|
3680
3681
|
"text-gray-500": b?.children
|
|
3681
3682
|
})
|
|
3682
3683
|
}, M(b.name), 3))
|
|
3683
|
-
], 10,
|
|
3684
|
-
b.children ? (h(), y("ul",
|
|
3684
|
+
], 10, ir),
|
|
3685
|
+
b.children ? (h(), y("ul", ur, [
|
|
3685
3686
|
(h(!0), y(D, null, B(b.children, (k) => (h(), y("li", {
|
|
3686
3687
|
key: k.name
|
|
3687
3688
|
}, [
|
|
@@ -3695,14 +3696,14 @@ const tr = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, sr = { class: "flex
|
|
|
3695
3696
|
icon: C(F)[k.icon],
|
|
3696
3697
|
class: V([[(o(k), "text-gray-400")], "size-4"])
|
|
3697
3698
|
}, null, 8, ["icon", "class"])) : T("", !0),
|
|
3698
|
-
e.mainNavStore.state.collapsed ? T("", !0) : (h(), y("span",
|
|
3699
|
-
], 10,
|
|
3699
|
+
e.mainNavStore.state.collapsed ? T("", !0) : (h(), y("span", pr, M(k.name), 1))
|
|
3700
|
+
], 10, dr)
|
|
3700
3701
|
]))), 128))
|
|
3701
3702
|
])) : T("", !0)
|
|
3702
3703
|
], 2))), 128))
|
|
3703
3704
|
])
|
|
3704
3705
|
]),
|
|
3705
|
-
m("li",
|
|
3706
|
+
m("li", fr, [
|
|
3706
3707
|
O(v.$slots, "sidebar-footer"),
|
|
3707
3708
|
m("a", {
|
|
3708
3709
|
class: "font-medium grid place-content-center gap-x-3 rounded-md h-10 p-2.5 text-gray-800 text-[13px] hover:bg-gray-100 transition-all duration-300 ease-in-out",
|
|
@@ -3722,11 +3723,11 @@ const tr = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, sr = { class: "flex
|
|
|
3722
3723
|
m("div", {
|
|
3723
3724
|
class: V([w.value, "h-full transition-all flex flex-col"])
|
|
3724
3725
|
}, [
|
|
3725
|
-
m("div",
|
|
3726
|
-
m("div",
|
|
3727
|
-
m("div",
|
|
3726
|
+
m("div", mr, [
|
|
3727
|
+
m("div", hr, [
|
|
3728
|
+
m("div", gr, [
|
|
3728
3729
|
O(v.$slots, "header-left", {}, () => [
|
|
3729
|
-
m("div",
|
|
3730
|
+
m("div", yr, [
|
|
3730
3731
|
S(g, {
|
|
3731
3732
|
icon: C(F).farBarsSort,
|
|
3732
3733
|
class: "size-5",
|
|
@@ -3745,10 +3746,10 @@ const tr = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, sr = { class: "flex
|
|
|
3745
3746
|
src: C(i).currentBrand.logo,
|
|
3746
3747
|
alt: "",
|
|
3747
3748
|
class: "h-[30px] w-auto"
|
|
3748
|
-
}, null, 8,
|
|
3749
|
+
}, null, 8, vr)) : T("", !0)
|
|
3749
3750
|
])) : T("", !0)
|
|
3750
3751
|
]),
|
|
3751
|
-
m("div",
|
|
3752
|
+
m("div", br, [
|
|
3752
3753
|
O(v.$slots, "header-right", {}, () => [
|
|
3753
3754
|
e.appStore.state.showAppSelector ? (h(), y("button", {
|
|
3754
3755
|
key: 0,
|
|
@@ -3766,7 +3767,7 @@ const tr = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, sr = { class: "flex
|
|
|
3766
3767
|
])
|
|
3767
3768
|
])
|
|
3768
3769
|
]),
|
|
3769
|
-
m("main",
|
|
3770
|
+
m("main", xr, [
|
|
3770
3771
|
S(_)
|
|
3771
3772
|
])
|
|
3772
3773
|
], 2),
|
|
@@ -3780,28 +3781,28 @@ const tr = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, sr = { class: "flex
|
|
|
3780
3781
|
"overlay-instance": C(ae).right,
|
|
3781
3782
|
onClose: u[5] || (u[5] = (b) => a("overlayClose", "right"))
|
|
3782
3783
|
}, null, 8, ["overlay-instance"]),
|
|
3783
|
-
S(C(
|
|
3784
|
+
S(C(Ta))
|
|
3784
3785
|
], 64);
|
|
3785
3786
|
};
|
|
3786
3787
|
}
|
|
3787
|
-
},
|
|
3788
|
-
function
|
|
3789
|
-
const t =
|
|
3790
|
-
return h(), y("main",
|
|
3788
|
+
}, kr = {}, wr = { class: "h-full" };
|
|
3789
|
+
function _r(e, s) {
|
|
3790
|
+
const t = A("router-view");
|
|
3791
|
+
return h(), y("main", wr, [
|
|
3791
3792
|
S(t)
|
|
3792
3793
|
]);
|
|
3793
3794
|
}
|
|
3794
|
-
const
|
|
3795
|
+
const il = /* @__PURE__ */ oe(kr, [["render", _r]]), Cr = { class: "h-full grid place-content-center relative" }, Sr = { class: "absolute top-8 left-8" }, $r = ["src"], Tr = {
|
|
3795
3796
|
key: 1,
|
|
3796
3797
|
width: "59",
|
|
3797
3798
|
height: "23",
|
|
3798
3799
|
viewBox: "0 0 59 23",
|
|
3799
3800
|
fill: "none",
|
|
3800
3801
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3801
|
-
},
|
|
3802
|
+
}, Lr = { class: "max-w-sm grid gap-y-1 -mt-8" }, Pr = { class: "mb-7" }, Mr = { class: "text-gray-600" }, Vr = { class: "grid grid-flow-col justify-between mt-1 mb-4" }, Hr = {
|
|
3802
3803
|
key: 0,
|
|
3803
3804
|
class: "text-red-600 text-sm mb-2"
|
|
3804
|
-
},
|
|
3805
|
+
}, Rr = { key: 0 }, Fr = { key: 1 }, Dr = {
|
|
3805
3806
|
__name: "SparkLoginView",
|
|
3806
3807
|
props: {
|
|
3807
3808
|
logo: {
|
|
@@ -3838,15 +3839,15 @@ const ll = /* @__PURE__ */ oe(xr, [["render", wr]]), _r = { class: "h-full grid
|
|
|
3838
3839
|
}
|
|
3839
3840
|
};
|
|
3840
3841
|
return (c, d) => {
|
|
3841
|
-
const p =
|
|
3842
|
-
return h(), y("div",
|
|
3843
|
-
m("div",
|
|
3842
|
+
const p = A("FormKit"), f = A("router-link");
|
|
3843
|
+
return h(), y("div", Cr, [
|
|
3844
|
+
m("div", Sr, [
|
|
3844
3845
|
r.logo ? (h(), y("img", {
|
|
3845
3846
|
key: 0,
|
|
3846
3847
|
src: r.logo,
|
|
3847
3848
|
alt: "Logo",
|
|
3848
3849
|
class: "h-[23px] w-auto"
|
|
3849
|
-
}, null, 8,
|
|
3850
|
+
}, null, 8, $r)) : (h(), y("svg", Tr, [...d[0] || (d[0] = [
|
|
3850
3851
|
m("path", {
|
|
3851
3852
|
d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
|
|
3852
3853
|
fill: "#1C64F2"
|
|
@@ -3865,10 +3866,10 @@ const ll = /* @__PURE__ */ oe(xr, [["render", wr]]), _r = { class: "h-full grid
|
|
|
3865
3866
|
}, null, -1)
|
|
3866
3867
|
])]))
|
|
3867
3868
|
]),
|
|
3868
|
-
m("div",
|
|
3869
|
-
m("div",
|
|
3869
|
+
m("div", Lr, [
|
|
3870
|
+
m("div", Pr, [
|
|
3870
3871
|
d[1] || (d[1] = m("h1", { class: "text-4xl text-gray-900 semibold tracking-tight mb-3" }, "Log in", -1)),
|
|
3871
|
-
m("p",
|
|
3872
|
+
m("p", Mr, " Welcome back" + M(C(a).state.app ? ` to ${C(a).state.app}` : "") + "! Please enter your details. ", 1)
|
|
3872
3873
|
]),
|
|
3873
3874
|
S(p, {
|
|
3874
3875
|
type: "form",
|
|
@@ -3894,19 +3895,19 @@ const ll = /* @__PURE__ */ oe(xr, [["render", wr]]), _r = { class: "h-full grid
|
|
|
3894
3895
|
"outer-class": "max-w-full",
|
|
3895
3896
|
value: C(l).state.devCredentials.password
|
|
3896
3897
|
}, null, 8, ["value"]),
|
|
3897
|
-
m("div",
|
|
3898
|
+
m("div", Vr, [
|
|
3898
3899
|
d[3] || (d[3] = m("span", null, null, -1)),
|
|
3899
3900
|
S(f, {
|
|
3900
3901
|
to: r.forgotPasswordRoute,
|
|
3901
3902
|
class: "text-sm text-primary-600 font-semibold"
|
|
3902
3903
|
}, {
|
|
3903
3904
|
default: L(() => [...d[2] || (d[2] = [
|
|
3904
|
-
|
|
3905
|
+
E(" Forgot password ", -1)
|
|
3905
3906
|
])]),
|
|
3906
3907
|
_: 1
|
|
3907
3908
|
}, 8, ["to"])
|
|
3908
3909
|
]),
|
|
3909
|
-
i.value ? (h(), y("div",
|
|
3910
|
+
i.value ? (h(), y("div", Hr, M(i.value), 1)) : T("", !0),
|
|
3910
3911
|
S(C(G), {
|
|
3911
3912
|
type: "submit",
|
|
3912
3913
|
size: "xl",
|
|
@@ -3914,7 +3915,7 @@ const ll = /* @__PURE__ */ oe(xr, [["render", wr]]), _r = { class: "h-full grid
|
|
|
3914
3915
|
"button-class": "w-full mb-2"
|
|
3915
3916
|
}, {
|
|
3916
3917
|
default: L(() => [
|
|
3917
|
-
o.value ? (h(), y("span",
|
|
3918
|
+
o.value ? (h(), y("span", Fr, "Signing in...")) : (h(), y("span", Rr, "Sign in"))
|
|
3918
3919
|
]),
|
|
3919
3920
|
_: 1
|
|
3920
3921
|
}, 8, ["disabled"])
|
|
@@ -3925,7 +3926,7 @@ const ll = /* @__PURE__ */ oe(xr, [["render", wr]]), _r = { class: "h-full grid
|
|
|
3925
3926
|
]);
|
|
3926
3927
|
};
|
|
3927
3928
|
}
|
|
3928
|
-
},
|
|
3929
|
+
}, Ar = {
|
|
3929
3930
|
__name: "SparkLogoutView",
|
|
3930
3931
|
props: {
|
|
3931
3932
|
defaultRedirect: {
|
|
@@ -3941,20 +3942,20 @@ const ll = /* @__PURE__ */ oe(xr, [["render", wr]]), _r = { class: "h-full grid
|
|
|
3941
3942
|
r && r.startsWith("http") ? window.location.href = r : await s.push(r || l.defaultRedirect);
|
|
3942
3943
|
}), (r, o) => null;
|
|
3943
3944
|
}
|
|
3944
|
-
}, Er = { class: "h-full grid place-content-center relative" },
|
|
3945
|
+
}, Er = { class: "h-full grid place-content-center relative" }, Ir = { class: "absolute top-8 left-8" }, Or = ["src"], Br = {
|
|
3945
3946
|
key: 1,
|
|
3946
3947
|
width: "59",
|
|
3947
3948
|
height: "23",
|
|
3948
3949
|
viewBox: "0 0 59 23",
|
|
3949
3950
|
fill: "none",
|
|
3950
3951
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3951
|
-
},
|
|
3952
|
+
}, zr = { class: "max-w-sm grid gap-y-1 -mt-8" }, jr = {
|
|
3952
3953
|
key: 0,
|
|
3953
3954
|
class: "text-red-600 text-sm mb-2"
|
|
3954
|
-
},
|
|
3955
|
+
}, Nr = {
|
|
3955
3956
|
key: 1,
|
|
3956
3957
|
class: "text-green-600 text-sm mb-2"
|
|
3957
|
-
},
|
|
3958
|
+
}, Zr = { key: 0 }, qr = { key: 1 }, Ur = {
|
|
3958
3959
|
__name: "SparkForgotPasswordView",
|
|
3959
3960
|
props: {
|
|
3960
3961
|
logo: {
|
|
@@ -3978,15 +3979,15 @@ const ll = /* @__PURE__ */ oe(xr, [["render", wr]]), _r = { class: "h-full grid
|
|
|
3978
3979
|
}
|
|
3979
3980
|
};
|
|
3980
3981
|
return (i, n) => {
|
|
3981
|
-
const c =
|
|
3982
|
+
const c = A("FormKit"), d = A("router-link");
|
|
3982
3983
|
return h(), y("div", Er, [
|
|
3983
|
-
m("div",
|
|
3984
|
+
m("div", Ir, [
|
|
3984
3985
|
t.logo ? (h(), y("img", {
|
|
3985
3986
|
key: 0,
|
|
3986
3987
|
src: t.logo,
|
|
3987
3988
|
alt: "Logo",
|
|
3988
3989
|
class: "h-[23px] w-auto"
|
|
3989
|
-
}, null, 8,
|
|
3990
|
+
}, null, 8, Or)) : (h(), y("svg", Br, [...n[0] || (n[0] = [
|
|
3990
3991
|
m("path", {
|
|
3991
3992
|
d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
|
|
3992
3993
|
fill: "#1C64F2"
|
|
@@ -4005,7 +4006,7 @@ const ll = /* @__PURE__ */ oe(xr, [["render", wr]]), _r = { class: "h-full grid
|
|
|
4005
4006
|
}, null, -1)
|
|
4006
4007
|
])]))
|
|
4007
4008
|
]),
|
|
4008
|
-
m("div",
|
|
4009
|
+
m("div", zr, [
|
|
4009
4010
|
n[2] || (n[2] = m("div", { class: "mb-7" }, [
|
|
4010
4011
|
m("h1", { class: "text-4xl text-gray-900 semibold tracking-tight mb-3" }, "Reset password"),
|
|
4011
4012
|
m("p", { class: "text-gray-600" }, " Enter your email and we'll send you a link to reset your password. ")
|
|
@@ -4024,8 +4025,8 @@ const ll = /* @__PURE__ */ oe(xr, [["render", wr]]), _r = { class: "h-full grid
|
|
|
4024
4025
|
validation: "required|email",
|
|
4025
4026
|
"outer-class": "max-w-full"
|
|
4026
4027
|
}),
|
|
4027
|
-
l.value ? (h(), y("div",
|
|
4028
|
-
r.value ? (h(), y("div",
|
|
4028
|
+
l.value ? (h(), y("div", jr, M(l.value), 1)) : T("", !0),
|
|
4029
|
+
r.value ? (h(), y("div", Nr, M(r.value), 1)) : T("", !0),
|
|
4029
4030
|
S(C(G), {
|
|
4030
4031
|
type: "submit",
|
|
4031
4032
|
size: "xl",
|
|
@@ -4033,7 +4034,7 @@ const ll = /* @__PURE__ */ oe(xr, [["render", wr]]), _r = { class: "h-full grid
|
|
|
4033
4034
|
"button-class": "w-full mb-2"
|
|
4034
4035
|
}, {
|
|
4035
4036
|
default: L(() => [
|
|
4036
|
-
a.value ? (h(), y("span",
|
|
4037
|
+
a.value ? (h(), y("span", qr, "Sending...")) : (h(), y("span", Zr, "Send reset link"))
|
|
4037
4038
|
]),
|
|
4038
4039
|
_: 1
|
|
4039
4040
|
}, 8, ["disabled"]),
|
|
@@ -4042,7 +4043,7 @@ const ll = /* @__PURE__ */ oe(xr, [["render", wr]]), _r = { class: "h-full grid
|
|
|
4042
4043
|
class: "text-sm text-center text-primary-600 font-semibold block"
|
|
4043
4044
|
}, {
|
|
4044
4045
|
default: L(() => [...n[1] || (n[1] = [
|
|
4045
|
-
|
|
4046
|
+
E(" Back to login ", -1)
|
|
4046
4047
|
])]),
|
|
4047
4048
|
_: 1
|
|
4048
4049
|
}, 8, ["to"])
|
|
@@ -4053,17 +4054,17 @@ const ll = /* @__PURE__ */ oe(xr, [["render", wr]]), _r = { class: "h-full grid
|
|
|
4053
4054
|
]);
|
|
4054
4055
|
};
|
|
4055
4056
|
}
|
|
4056
|
-
},
|
|
4057
|
+
}, Kr = { class: "h-full grid place-content-center relative" }, Wr = { class: "absolute top-8 left-8" }, Gr = ["src"], Yr = {
|
|
4057
4058
|
key: 1,
|
|
4058
4059
|
width: "59",
|
|
4059
4060
|
height: "23",
|
|
4060
4061
|
viewBox: "0 0 59 23",
|
|
4061
4062
|
fill: "none",
|
|
4062
4063
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4063
|
-
},
|
|
4064
|
+
}, Xr = { class: "max-w-sm grid gap-y-1 -mt-8" }, Jr = {
|
|
4064
4065
|
key: 0,
|
|
4065
4066
|
class: "text-red-600 text-sm mb-2"
|
|
4066
|
-
},
|
|
4067
|
+
}, Qr = { key: 0 }, en = { key: 1 }, tn = {
|
|
4067
4068
|
__name: "SparkResetPasswordView",
|
|
4068
4069
|
props: {
|
|
4069
4070
|
logo: {
|
|
@@ -4092,15 +4093,15 @@ const ll = /* @__PURE__ */ oe(xr, [["render", wr]]), _r = { class: "h-full grid
|
|
|
4092
4093
|
}
|
|
4093
4094
|
};
|
|
4094
4095
|
return (n, c) => {
|
|
4095
|
-
const d =
|
|
4096
|
-
return h(), y("div",
|
|
4097
|
-
m("div",
|
|
4096
|
+
const d = A("FormKit");
|
|
4097
|
+
return h(), y("div", Kr, [
|
|
4098
|
+
m("div", Wr, [
|
|
4098
4099
|
l.logo ? (h(), y("img", {
|
|
4099
4100
|
key: 0,
|
|
4100
4101
|
src: l.logo,
|
|
4101
4102
|
alt: "Logo",
|
|
4102
4103
|
class: "h-[23px] w-auto"
|
|
4103
|
-
}, null, 8,
|
|
4104
|
+
}, null, 8, Gr)) : (h(), y("svg", Yr, [...c[0] || (c[0] = [
|
|
4104
4105
|
m("path", {
|
|
4105
4106
|
d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
|
|
4106
4107
|
fill: "#1C64F2"
|
|
@@ -4119,7 +4120,7 @@ const ll = /* @__PURE__ */ oe(xr, [["render", wr]]), _r = { class: "h-full grid
|
|
|
4119
4120
|
}, null, -1)
|
|
4120
4121
|
])]))
|
|
4121
4122
|
]),
|
|
4122
|
-
m("div",
|
|
4123
|
+
m("div", Xr, [
|
|
4123
4124
|
c[1] || (c[1] = m("div", { class: "mb-7" }, [
|
|
4124
4125
|
m("h1", { class: "text-4xl text-gray-900 semibold tracking-tight mb-3" }, "Set new password"),
|
|
4125
4126
|
m("p", { class: "text-gray-600" }, " Enter your new password below. ")
|
|
@@ -4146,7 +4147,7 @@ const ll = /* @__PURE__ */ oe(xr, [["render", wr]]), _r = { class: "h-full grid
|
|
|
4146
4147
|
validation: "required|confirm:password",
|
|
4147
4148
|
"outer-class": "max-w-full"
|
|
4148
4149
|
}),
|
|
4149
|
-
o.value ? (h(), y("div",
|
|
4150
|
+
o.value ? (h(), y("div", Jr, M(o.value), 1)) : T("", !0),
|
|
4150
4151
|
S(C(G), {
|
|
4151
4152
|
type: "submit",
|
|
4152
4153
|
size: "xl",
|
|
@@ -4154,7 +4155,7 @@ const ll = /* @__PURE__ */ oe(xr, [["render", wr]]), _r = { class: "h-full grid
|
|
|
4154
4155
|
"button-class": "w-full mb-2"
|
|
4155
4156
|
}, {
|
|
4156
4157
|
default: L(() => [
|
|
4157
|
-
r.value ? (h(), y("span",
|
|
4158
|
+
r.value ? (h(), y("span", en, "Resetting...")) : (h(), y("span", Qr, "Reset password"))
|
|
4158
4159
|
]),
|
|
4159
4160
|
_: 1
|
|
4160
4161
|
}, 8, ["disabled"])
|
|
@@ -4165,14 +4166,14 @@ const ll = /* @__PURE__ */ oe(xr, [["render", wr]]), _r = { class: "h-full grid
|
|
|
4165
4166
|
]);
|
|
4166
4167
|
};
|
|
4167
4168
|
}
|
|
4168
|
-
},
|
|
4169
|
+
}, sn = { class: "h-full grid place-content-center relative" }, an = { class: "absolute top-8 left-8" }, on = ["src"], rn = {
|
|
4169
4170
|
key: 1,
|
|
4170
4171
|
width: "59",
|
|
4171
4172
|
height: "23",
|
|
4172
4173
|
viewBox: "0 0 59 23",
|
|
4173
4174
|
fill: "none",
|
|
4174
4175
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4175
|
-
},
|
|
4176
|
+
}, nn = { class: "max-w-lg grid gap-y-6 text-center -mt-8" }, ln = { class: "flex gap-4 justify-center" }, cn = {
|
|
4176
4177
|
__name: "SparkError403View",
|
|
4177
4178
|
props: {
|
|
4178
4179
|
logo: {
|
|
@@ -4188,14 +4189,14 @@ const ll = /* @__PURE__ */ oe(xr, [["render", wr]]), _r = { class: "h-full grid
|
|
|
4188
4189
|
const s = W(), t = e, a = () => {
|
|
4189
4190
|
s.push(t.homeRoute);
|
|
4190
4191
|
};
|
|
4191
|
-
return (l, r) => (h(), y("div",
|
|
4192
|
-
m("div",
|
|
4192
|
+
return (l, r) => (h(), y("div", sn, [
|
|
4193
|
+
m("div", an, [
|
|
4193
4194
|
t.logo ? (h(), y("img", {
|
|
4194
4195
|
key: 0,
|
|
4195
4196
|
src: t.logo,
|
|
4196
4197
|
alt: "Logo",
|
|
4197
4198
|
class: "h-[23px] w-auto"
|
|
4198
|
-
}, null, 8,
|
|
4199
|
+
}, null, 8, on)) : (h(), y("svg", rn, [...r[0] || (r[0] = [
|
|
4199
4200
|
m("path", {
|
|
4200
4201
|
d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
|
|
4201
4202
|
fill: "#1C64F2"
|
|
@@ -4214,23 +4215,23 @@ const ll = /* @__PURE__ */ oe(xr, [["render", wr]]), _r = { class: "h-full grid
|
|
|
4214
4215
|
}, null, -1)
|
|
4215
4216
|
])]))
|
|
4216
4217
|
]),
|
|
4217
|
-
m("div",
|
|
4218
|
+
m("div", nn, [
|
|
4218
4219
|
r[2] || (r[2] = m("div", null, [
|
|
4219
4220
|
m("div", { class: "text-primary-600 text-7xl font-bold mb-4" }, "403"),
|
|
4220
4221
|
m("h1", { class: "text-3xl text-gray-900 font-semibold tracking-tight mb-3" }, " Access Forbidden "),
|
|
4221
4222
|
m("p", { class: "text-gray-600" }, [
|
|
4222
|
-
|
|
4223
|
+
E(" You don't have permission to access this resource."),
|
|
4223
4224
|
m("br"),
|
|
4224
|
-
|
|
4225
|
+
E(" If you believe this is an error, please contact your administrator. ")
|
|
4225
4226
|
])
|
|
4226
4227
|
], -1)),
|
|
4227
|
-
m("div",
|
|
4228
|
+
m("div", ln, [
|
|
4228
4229
|
S(C(G), {
|
|
4229
4230
|
onClick: a,
|
|
4230
4231
|
size: "lg"
|
|
4231
4232
|
}, {
|
|
4232
4233
|
default: L(() => [...r[1] || (r[1] = [
|
|
4233
|
-
|
|
4234
|
+
E(" Go to Home ", -1)
|
|
4234
4235
|
])]),
|
|
4235
4236
|
_: 1
|
|
4236
4237
|
})
|
|
@@ -4238,14 +4239,14 @@ const ll = /* @__PURE__ */ oe(xr, [["render", wr]]), _r = { class: "h-full grid
|
|
|
4238
4239
|
])
|
|
4239
4240
|
]));
|
|
4240
4241
|
}
|
|
4241
|
-
},
|
|
4242
|
+
}, un = { class: "h-full grid place-content-center relative" }, dn = { class: "absolute top-8 left-8" }, pn = ["src"], fn = {
|
|
4242
4243
|
key: 1,
|
|
4243
4244
|
width: "59",
|
|
4244
4245
|
height: "23",
|
|
4245
4246
|
viewBox: "0 0 59 23",
|
|
4246
4247
|
fill: "none",
|
|
4247
4248
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4248
|
-
},
|
|
4249
|
+
}, mn = { class: "max-w-lg grid gap-y-6 text-center -mt-8" }, hn = { class: "flex gap-4 justify-center" }, gn = {
|
|
4249
4250
|
__name: "SparkError404View",
|
|
4250
4251
|
props: {
|
|
4251
4252
|
logo: {
|
|
@@ -4261,14 +4262,14 @@ const ll = /* @__PURE__ */ oe(xr, [["render", wr]]), _r = { class: "h-full grid
|
|
|
4261
4262
|
const s = W(), t = e, a = () => {
|
|
4262
4263
|
s.push(t.homeRoute);
|
|
4263
4264
|
};
|
|
4264
|
-
return (l, r) => (h(), y("div",
|
|
4265
|
-
m("div",
|
|
4265
|
+
return (l, r) => (h(), y("div", un, [
|
|
4266
|
+
m("div", dn, [
|
|
4266
4267
|
t.logo ? (h(), y("img", {
|
|
4267
4268
|
key: 0,
|
|
4268
4269
|
src: t.logo,
|
|
4269
4270
|
alt: "Logo",
|
|
4270
4271
|
class: "h-[23px] w-auto"
|
|
4271
|
-
}, null, 8,
|
|
4272
|
+
}, null, 8, pn)) : (h(), y("svg", fn, [...r[0] || (r[0] = [
|
|
4272
4273
|
m("path", {
|
|
4273
4274
|
d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
|
|
4274
4275
|
fill: "#1C64F2"
|
|
@@ -4287,19 +4288,19 @@ const ll = /* @__PURE__ */ oe(xr, [["render", wr]]), _r = { class: "h-full grid
|
|
|
4287
4288
|
}, null, -1)
|
|
4288
4289
|
])]))
|
|
4289
4290
|
]),
|
|
4290
|
-
m("div",
|
|
4291
|
+
m("div", mn, [
|
|
4291
4292
|
r[2] || (r[2] = m("div", null, [
|
|
4292
4293
|
m("div", { class: "text-primary-600 text-7xl font-bold mb-4" }, "404"),
|
|
4293
4294
|
m("h1", { class: "text-3xl text-gray-900 font-semibold tracking-tight mb-3" }, " Page Not Found "),
|
|
4294
4295
|
m("p", { class: "text-gray-600" }, " The page you're looking for doesn't exist or has been moved. ")
|
|
4295
4296
|
], -1)),
|
|
4296
|
-
m("div",
|
|
4297
|
+
m("div", hn, [
|
|
4297
4298
|
S(C(G), {
|
|
4298
4299
|
onClick: a,
|
|
4299
4300
|
size: "lg"
|
|
4300
4301
|
}, {
|
|
4301
4302
|
default: L(() => [...r[1] || (r[1] = [
|
|
4302
|
-
|
|
4303
|
+
E(" Go to Home ", -1)
|
|
4303
4304
|
])]),
|
|
4304
4305
|
_: 1
|
|
4305
4306
|
})
|
|
@@ -4307,14 +4308,14 @@ const ll = /* @__PURE__ */ oe(xr, [["render", wr]]), _r = { class: "h-full grid
|
|
|
4307
4308
|
])
|
|
4308
4309
|
]));
|
|
4309
4310
|
}
|
|
4310
|
-
},
|
|
4311
|
+
}, yn = { class: "h-full grid place-content-center relative" }, vn = { class: "absolute top-8 left-8" }, bn = ["src"], xn = {
|
|
4311
4312
|
key: 1,
|
|
4312
4313
|
width: "59",
|
|
4313
4314
|
height: "23",
|
|
4314
4315
|
viewBox: "0 0 59 23",
|
|
4315
4316
|
fill: "none",
|
|
4316
4317
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4317
|
-
},
|
|
4318
|
+
}, kn = { class: "max-w-lg grid gap-y-6 text-center -mt-8" }, wn = { class: "text-primary-600 text-7xl font-bold mb-4" }, _n = { class: "text-3xl text-gray-900 font-semibold tracking-tight mb-3" }, Cn = { class: "text-gray-600" }, Sn = { class: "flex gap-4 justify-center" }, cl = {
|
|
4318
4319
|
__name: "SparkErrorGeneralView",
|
|
4319
4320
|
props: {
|
|
4320
4321
|
logo: {
|
|
@@ -4342,14 +4343,14 @@ const ll = /* @__PURE__ */ oe(xr, [["render", wr]]), _r = { class: "h-full grid
|
|
|
4342
4343
|
const s = W(), t = e, a = () => {
|
|
4343
4344
|
s.push(t.homeRoute);
|
|
4344
4345
|
};
|
|
4345
|
-
return (l, r) => (h(), y("div",
|
|
4346
|
-
m("div",
|
|
4346
|
+
return (l, r) => (h(), y("div", yn, [
|
|
4347
|
+
m("div", vn, [
|
|
4347
4348
|
t.logo ? (h(), y("img", {
|
|
4348
4349
|
key: 0,
|
|
4349
4350
|
src: t.logo,
|
|
4350
4351
|
alt: "Logo",
|
|
4351
4352
|
class: "h-[23px] w-auto"
|
|
4352
|
-
}, null, 8,
|
|
4353
|
+
}, null, 8, bn)) : (h(), y("svg", xn, [...r[0] || (r[0] = [
|
|
4353
4354
|
m("path", {
|
|
4354
4355
|
d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
|
|
4355
4356
|
fill: "#1C64F2"
|
|
@@ -4368,19 +4369,19 @@ const ll = /* @__PURE__ */ oe(xr, [["render", wr]]), _r = { class: "h-full grid
|
|
|
4368
4369
|
}, null, -1)
|
|
4369
4370
|
])]))
|
|
4370
4371
|
]),
|
|
4371
|
-
m("div",
|
|
4372
|
+
m("div", kn, [
|
|
4372
4373
|
m("div", null, [
|
|
4373
|
-
m("div",
|
|
4374
|
-
m("h1",
|
|
4375
|
-
m("p",
|
|
4374
|
+
m("div", wn, M(t.errorCode || "Error"), 1),
|
|
4375
|
+
m("h1", _n, M(t.title || "Something went wrong"), 1),
|
|
4376
|
+
m("p", Cn, M(t.message || "An unexpected error occurred. Please try again later."), 1)
|
|
4376
4377
|
]),
|
|
4377
|
-
m("div",
|
|
4378
|
+
m("div", Sn, [
|
|
4378
4379
|
S(C(G), {
|
|
4379
4380
|
onClick: a,
|
|
4380
4381
|
size: "lg"
|
|
4381
4382
|
}, {
|
|
4382
4383
|
default: L(() => [...r[1] || (r[1] = [
|
|
4383
|
-
|
|
4384
|
+
E(" Go to Home ", -1)
|
|
4384
4385
|
])]),
|
|
4385
4386
|
_: 1
|
|
4386
4387
|
})
|
|
@@ -4389,7 +4390,7 @@ const ll = /* @__PURE__ */ oe(xr, [["render", wr]]), _r = { class: "h-full grid
|
|
|
4389
4390
|
]));
|
|
4390
4391
|
}
|
|
4391
4392
|
};
|
|
4392
|
-
function
|
|
4393
|
+
function ul(e = {}) {
|
|
4393
4394
|
const {
|
|
4394
4395
|
loginPath: s = "/login",
|
|
4395
4396
|
logoutPath: t = "/logout",
|
|
@@ -4402,41 +4403,41 @@ function cl(e = {}) {
|
|
|
4402
4403
|
{
|
|
4403
4404
|
path: s,
|
|
4404
4405
|
name: "login",
|
|
4405
|
-
component:
|
|
4406
|
+
component: Dr,
|
|
4406
4407
|
props: { logo: r, defaultRedirect: o },
|
|
4407
4408
|
meta: { auth: !1 }
|
|
4408
4409
|
},
|
|
4409
4410
|
{
|
|
4410
4411
|
path: t,
|
|
4411
4412
|
name: "logout",
|
|
4412
|
-
component:
|
|
4413
|
+
component: Ar,
|
|
4413
4414
|
props: { defaultRedirect: s },
|
|
4414
4415
|
meta: { auth: !1 }
|
|
4415
4416
|
},
|
|
4416
4417
|
{
|
|
4417
4418
|
path: a,
|
|
4418
4419
|
name: "forgot-password",
|
|
4419
|
-
component:
|
|
4420
|
+
component: Ur,
|
|
4420
4421
|
props: { logo: r, loginRoute: s },
|
|
4421
4422
|
meta: { auth: !1 }
|
|
4422
4423
|
},
|
|
4423
4424
|
{
|
|
4424
4425
|
path: l,
|
|
4425
4426
|
name: "password-reset",
|
|
4426
|
-
component:
|
|
4427
|
+
component: tn,
|
|
4427
4428
|
props: { logo: r, loginRoute: s },
|
|
4428
4429
|
meta: { auth: !1 }
|
|
4429
4430
|
}
|
|
4430
4431
|
];
|
|
4431
4432
|
}
|
|
4432
|
-
function
|
|
4433
|
+
function dl(e, s = {}) {
|
|
4433
4434
|
const { defaultAuthenticatedRoute: t = "/dashboard" } = s;
|
|
4434
4435
|
e.beforeEach(async (a, l, r) => {
|
|
4435
4436
|
const o = Q();
|
|
4436
|
-
o.state.ready || await o.fetchUser(),
|
|
4437
|
+
o.state.ready || await o.fetchUser(), $n(a, r, o, t);
|
|
4437
4438
|
});
|
|
4438
4439
|
}
|
|
4439
|
-
function
|
|
4440
|
+
function $n(e, s, t, a) {
|
|
4440
4441
|
const l = e.meta.auth !== !1, r = t.check;
|
|
4441
4442
|
if (t.state.overrideToken && e.path === "/logout") {
|
|
4442
4443
|
s({ path: a });
|
|
@@ -4474,7 +4475,7 @@ function Sn(e, s, t, a) {
|
|
|
4474
4475
|
s();
|
|
4475
4476
|
}
|
|
4476
4477
|
}
|
|
4477
|
-
function
|
|
4478
|
+
function pl(e = {}) {
|
|
4478
4479
|
const {
|
|
4479
4480
|
forbiddenPath: s = "/error/403",
|
|
4480
4481
|
logo: t = "",
|
|
@@ -4483,12 +4484,12 @@ function dl(e = {}) {
|
|
|
4483
4484
|
return {
|
|
4484
4485
|
path: s,
|
|
4485
4486
|
name: "error-403",
|
|
4486
|
-
component:
|
|
4487
|
+
component: cn,
|
|
4487
4488
|
props: { logo: t, homeRoute: a },
|
|
4488
4489
|
meta: { auth: !1 }
|
|
4489
4490
|
};
|
|
4490
4491
|
}
|
|
4491
|
-
function
|
|
4492
|
+
function fl(e = {}) {
|
|
4492
4493
|
const {
|
|
4493
4494
|
logo: s = "",
|
|
4494
4495
|
homeRoute: t = "/dashboard"
|
|
@@ -4496,12 +4497,12 @@ function pl(e = {}) {
|
|
|
4496
4497
|
return {
|
|
4497
4498
|
path: "/:pathMatch(.*)*",
|
|
4498
4499
|
name: "error-404",
|
|
4499
|
-
component:
|
|
4500
|
+
component: gn,
|
|
4500
4501
|
props: { logo: s, homeRoute: t },
|
|
4501
4502
|
meta: { auth: !1 }
|
|
4502
4503
|
};
|
|
4503
4504
|
}
|
|
4504
|
-
function
|
|
4505
|
+
function ml(e, s) {
|
|
4505
4506
|
e.beforeResolve(async (t) => {
|
|
4506
4507
|
if (t.meta.auth !== !1) {
|
|
4507
4508
|
const a = Q();
|
|
@@ -4509,7 +4510,7 @@ function fl(e, s) {
|
|
|
4509
4510
|
}
|
|
4510
4511
|
});
|
|
4511
4512
|
}
|
|
4512
|
-
function
|
|
4513
|
+
function hl(e, s = {}) {
|
|
4513
4514
|
const {
|
|
4514
4515
|
title: t = "Unsaved Changes",
|
|
4515
4516
|
message: a = "You have unsaved changes. Leave anyway?",
|
|
@@ -4517,21 +4518,21 @@ function ml(e, s = {}) {
|
|
|
4517
4518
|
cancelText: r = "Stay"
|
|
4518
4519
|
} = s;
|
|
4519
4520
|
e.beforeEach(async (o, i, n) => {
|
|
4520
|
-
if (!
|
|
4521
|
+
if (!Qo()) {
|
|
4521
4522
|
n();
|
|
4522
4523
|
return;
|
|
4523
4524
|
}
|
|
4524
|
-
const c =
|
|
4525
|
+
const c = er() || a;
|
|
4525
4526
|
await J.confirm({
|
|
4526
4527
|
title: t,
|
|
4527
4528
|
message: c,
|
|
4528
4529
|
confirmText: l,
|
|
4529
4530
|
cancelText: r,
|
|
4530
4531
|
type: "warning"
|
|
4531
|
-
}) ? (
|
|
4532
|
+
}) ? (tr(), n()) : n(!1);
|
|
4532
4533
|
});
|
|
4533
4534
|
}
|
|
4534
|
-
const
|
|
4535
|
+
const gl = pe("sparkNav", () => {
|
|
4535
4536
|
const e = K({
|
|
4536
4537
|
menu: [],
|
|
4537
4538
|
collapsed: !1,
|
|
@@ -4589,77 +4590,77 @@ const hl = pe("sparkNav", () => {
|
|
|
4589
4590
|
export {
|
|
4590
4591
|
F as Icons,
|
|
4591
4592
|
re as SparkAlert,
|
|
4592
|
-
|
|
4593
|
-
|
|
4593
|
+
Bs as SparkAppSelector,
|
|
4594
|
+
ca as SparkBrandSelector,
|
|
4594
4595
|
G as SparkButton,
|
|
4595
4596
|
pt as SparkButtonGroup,
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4597
|
+
Jn as SparkCard,
|
|
4598
|
+
ll as SparkDefaultContainer,
|
|
4599
|
+
cn as SparkError403View,
|
|
4600
|
+
gn as SparkError404View,
|
|
4601
|
+
cl as SparkErrorGeneralView,
|
|
4602
|
+
Ur as SparkForgotPasswordView,
|
|
4603
|
+
Qn as SparkImageUpload,
|
|
4604
|
+
Dr as SparkLoginView,
|
|
4605
|
+
Ar as SparkLogoutView,
|
|
4606
|
+
Ta as SparkModalContainer,
|
|
4607
|
+
_a as SparkModalDialog,
|
|
4608
|
+
Yn as SparkNotificationOutlet,
|
|
4608
4609
|
Me as SparkOverlay,
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4610
|
+
il as SparkPublicContainer,
|
|
4611
|
+
tn as SparkResetPasswordView,
|
|
4612
|
+
el as SparkSubNav,
|
|
4613
|
+
tl as SparkTable,
|
|
4614
|
+
Ho as SparkTableDatePicker,
|
|
4615
|
+
Po as SparkTableFilterButtons,
|
|
4616
|
+
So as SparkTableFilterSelect,
|
|
4617
|
+
go as SparkTablePaginationPaging,
|
|
4618
|
+
bo as SparkTablePaginationPerPage,
|
|
4619
|
+
Ao as SparkTableReset,
|
|
4620
|
+
wo as SparkTableSearch,
|
|
4620
4621
|
De as SparkTableToolbar,
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
|
|
4626
|
-
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
|
|
4632
|
-
|
|
4633
|
-
|
|
4634
|
-
|
|
4635
|
-
|
|
4636
|
-
|
|
4637
|
-
|
|
4622
|
+
Xn as SparkToastContainer,
|
|
4623
|
+
Wn as addIcons,
|
|
4624
|
+
tr as clearAllDirtyForms,
|
|
4625
|
+
pl as create403Route,
|
|
4626
|
+
fl as create404Route,
|
|
4627
|
+
ul as createAuthRoutes,
|
|
4628
|
+
Wo as createAxiosInstance,
|
|
4629
|
+
sl as createBootstrapService,
|
|
4630
|
+
Fa as customiseHeader,
|
|
4631
|
+
qo as deleteCookie,
|
|
4632
|
+
Un as formKitGenesisOverride,
|
|
4633
|
+
Kn as formKitIconLoader,
|
|
4634
|
+
qn as formKitIcons,
|
|
4635
|
+
Xa as formatTemporal,
|
|
4636
|
+
Go as getAxiosInstance,
|
|
4637
|
+
No as getCookie,
|
|
4638
|
+
er as getDirtyFormMessage,
|
|
4638
4639
|
ft as getDomain,
|
|
4639
4640
|
Ie as getFormLevelMessage,
|
|
4640
|
-
|
|
4641
|
-
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
|
|
4646
|
-
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
|
|
4641
|
+
Qo as hasAnyDirtyForm,
|
|
4642
|
+
Xo as isValidationError,
|
|
4643
|
+
Ja as parseDatetime,
|
|
4644
|
+
Yo as parseLaravelErrors,
|
|
4645
|
+
Ma as renderHeaderTitle,
|
|
4646
|
+
Zo as setCookie,
|
|
4647
|
+
dl as setupAuthGuards,
|
|
4648
|
+
al as setupAxios,
|
|
4649
|
+
ml as setupBootstrapGuard,
|
|
4650
|
+
hl as setupDirtyFormGuard,
|
|
4651
|
+
Gn as setupFontAwesome,
|
|
4651
4652
|
J as sparkModalService,
|
|
4652
4653
|
z as sparkNotificationService,
|
|
4653
4654
|
ae as sparkOverlayService,
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
|
|
4655
|
+
so as updateRow,
|
|
4656
|
+
nl as useFormDirtyGuard,
|
|
4657
|
+
ol as useFormSubmission,
|
|
4657
4658
|
it as useSparkAppSelectorStore,
|
|
4658
4659
|
ct as useSparkAppStore,
|
|
4659
4660
|
Q as useSparkAuthStore,
|
|
4660
4661
|
dt as useSparkBrandFilterStore,
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
|
|
4662
|
+
gl as useSparkNavStore,
|
|
4663
|
+
Ee as useSparkOverlay,
|
|
4664
|
+
ao as useSparkTableRouteSync,
|
|
4665
|
+
rl as useSubNavigation
|
|
4665
4666
|
};
|