@wishbone-media/spark 0.13.1 → 0.14.1
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 +795 -753
- package/package.json +1 -1
- package/src/containers/SparkDefaultContainer.vue +6 -1
- package/src/plugins/app-bootstrap.js +91 -0
- package/src/plugins/axios.js +42 -1
- package/src/plugins/index.js +3 -2
- package/src/plugins/router.js +34 -0
- package/src/stores/auth.js +4 -0
package/dist/index.js
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import { library as
|
|
3
|
-
import { FontAwesomeIcon as
|
|
4
|
-
import { faSignOut as
|
|
5
|
-
import { defineStore as
|
|
6
|
-
import { TransitionRoot as
|
|
7
|
-
import { useRouter as se, useRoute as
|
|
1
|
+
import { computed as $, resolveComponent as U, createElementBlock as y, openBlock as g, normalizeClass as E, createElementVNode as f, createVNode as C, unref as x, renderSlot as M, reactive as ne, Fragment as le, renderList as ge, createCommentVNode as R, toDisplayString as O, createBlock as W, resolveDynamicComponent as $e, ref as q, inject as ln, provide as cn, markRaw as _t, withCtx as A, mergeProps as kt, toHandlers as Rt, createTextVNode as K, useSlots as un, withModifiers as pe, h as ot, onMounted as dn, watch as fn } from "vue";
|
|
2
|
+
import { library as Et } from "@fortawesome/fontawesome-svg-core";
|
|
3
|
+
import { FontAwesomeIcon as pn } from "@fortawesome/vue-fontawesome";
|
|
4
|
+
import { faSignOut as hn, faXmark as mn, faTimes as gn, faStreetView as yn, faSortUp as wn, faSortDown as bn, faSort as xn, faScaleBalanced as Sn, faSatelliteDish as Cn, faLayerPlus as vn, faLaptopMobile as _n, faInfoCircle as kn, faGripDotsVertical as Rn, faGearComplex as En, faFlag as An, faFaceSmileWink as $n, faFaceSmileRelaxed as Ln, faExclamationTriangle as On, faEllipsisVertical as Tn, faEllipsis as Hn, faEdit as Fn, faComments as Bn, faCircleXmark as Vn, faCircleUser as Nn, faChevronUp as Pn, faChevronRight as Mn, faChevronLeft as Un, faChevronDown as jn, faCheckCircle as Dn, faCheck as In, faBullhorn as zn, faBellRing as qn, faBarsSort as Zn, faArrowRightToLine as Wn, faArrowLeftToLine as Gn } from "@fortawesome/pro-regular-svg-icons";
|
|
5
|
+
import { defineStore as ye } from "pinia";
|
|
6
|
+
import { TransitionRoot as At, Dialog as $t, TransitionChild as Le, DialogPanel as Lt } from "@headlessui/vue";
|
|
7
|
+
import { useRouter as se, useRoute as Te } from "vue-router";
|
|
8
8
|
const B = {
|
|
9
|
-
farArrowLeftToLine:
|
|
10
|
-
farArrowRightToLine:
|
|
11
|
-
farBarsSort:
|
|
12
|
-
farBellRing:
|
|
13
|
-
farBullhorn:
|
|
14
|
-
farCheck:
|
|
15
|
-
farCheckCircle:
|
|
16
|
-
farChevronDown:
|
|
17
|
-
farChevronLeft:
|
|
18
|
-
farChevronRight:
|
|
19
|
-
farChevronUp:
|
|
20
|
-
farCircleUser:
|
|
21
|
-
farCircleXmark:
|
|
22
|
-
farComments:
|
|
23
|
-
farEdit:
|
|
24
|
-
farEllipsis:
|
|
25
|
-
farEllipsisVertical:
|
|
26
|
-
farExclamationTriangle:
|
|
27
|
-
farFaceSmileRelaxed:
|
|
28
|
-
farFaceSmileWink:
|
|
29
|
-
farFlag:
|
|
30
|
-
farGearComplex:
|
|
31
|
-
farGripDotsVertical:
|
|
32
|
-
farInfoCircle:
|
|
33
|
-
farLaptopMobile:
|
|
34
|
-
farLayerPlus:
|
|
35
|
-
farSatelliteDish:
|
|
36
|
-
farScaleBalanced:
|
|
37
|
-
farSort:
|
|
38
|
-
farSortDown:
|
|
39
|
-
farSortUp:
|
|
40
|
-
farStreetView:
|
|
41
|
-
farTimes:
|
|
42
|
-
farXmark:
|
|
43
|
-
farSignOut:
|
|
9
|
+
farArrowLeftToLine: Gn,
|
|
10
|
+
farArrowRightToLine: Wn,
|
|
11
|
+
farBarsSort: Zn,
|
|
12
|
+
farBellRing: qn,
|
|
13
|
+
farBullhorn: zn,
|
|
14
|
+
farCheck: In,
|
|
15
|
+
farCheckCircle: Dn,
|
|
16
|
+
farChevronDown: jn,
|
|
17
|
+
farChevronLeft: Un,
|
|
18
|
+
farChevronRight: Mn,
|
|
19
|
+
farChevronUp: Pn,
|
|
20
|
+
farCircleUser: Nn,
|
|
21
|
+
farCircleXmark: Vn,
|
|
22
|
+
farComments: Bn,
|
|
23
|
+
farEdit: Fn,
|
|
24
|
+
farEllipsis: Hn,
|
|
25
|
+
farEllipsisVertical: Tn,
|
|
26
|
+
farExclamationTriangle: On,
|
|
27
|
+
farFaceSmileRelaxed: Ln,
|
|
28
|
+
farFaceSmileWink: $n,
|
|
29
|
+
farFlag: An,
|
|
30
|
+
farGearComplex: En,
|
|
31
|
+
farGripDotsVertical: Rn,
|
|
32
|
+
farInfoCircle: kn,
|
|
33
|
+
farLaptopMobile: _n,
|
|
34
|
+
farLayerPlus: vn,
|
|
35
|
+
farSatelliteDish: Cn,
|
|
36
|
+
farScaleBalanced: Sn,
|
|
37
|
+
farSort: xn,
|
|
38
|
+
farSortDown: bn,
|
|
39
|
+
farSortUp: wn,
|
|
40
|
+
farStreetView: yn,
|
|
41
|
+
farTimes: gn,
|
|
42
|
+
farXmark: mn,
|
|
43
|
+
farSignOut: hn
|
|
44
44
|
};
|
|
45
|
-
function
|
|
46
|
-
Object.assign(B, e),
|
|
45
|
+
function ri(e) {
|
|
46
|
+
Object.assign(B, e), Et.add(...Object.values(e));
|
|
47
47
|
}
|
|
48
|
-
function
|
|
49
|
-
|
|
48
|
+
function oi(e) {
|
|
49
|
+
Et.add(...Object.values(B)), e.component("FontAwesomeIcon", pn);
|
|
50
50
|
}
|
|
51
|
-
const
|
|
51
|
+
const Jn = { class: "flex items-center" }, Kn = { class: "shrink-0 self-start" }, Xn = { class: "ml-3" }, Yn = { class: "ml-auto pl-3 pt-1 self-start" }, Qn = { class: "-mx-1.5 -my-1.5" }, ai = {
|
|
52
52
|
__name: "SparkAlert",
|
|
53
53
|
props: {
|
|
54
54
|
type: {
|
|
@@ -59,22 +59,22 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
|
|
|
59
59
|
},
|
|
60
60
|
emits: ["close"],
|
|
61
61
|
setup(e) {
|
|
62
|
-
const t = e, n =
|
|
62
|
+
const t = e, n = $(() => ({
|
|
63
63
|
success: "bg-green-50 border-green-200 text-green-700",
|
|
64
64
|
warning: "bg-yellow-50 border-yellow-200 text-yellow-700",
|
|
65
65
|
danger: "bg-red-50 border-red-200 text-red-700",
|
|
66
66
|
info: "bg-blue-50 border-blue-200 text-blue-700"
|
|
67
|
-
})[t.type]), s =
|
|
67
|
+
})[t.type]), s = $(() => ({
|
|
68
68
|
success: "text-green-400",
|
|
69
69
|
warning: "text-yellow-400",
|
|
70
70
|
danger: "text-red-400",
|
|
71
71
|
info: "text-blue-400"
|
|
72
|
-
})[t.type]), r =
|
|
72
|
+
})[t.type]), r = $(() => ({
|
|
73
73
|
success: "farCheckCircle",
|
|
74
74
|
warning: "farExclamationTriangle",
|
|
75
75
|
danger: "farCircleXmark",
|
|
76
76
|
info: "farInfoCircle"
|
|
77
|
-
})[t.type]), o =
|
|
77
|
+
})[t.type]), o = $(() => ({
|
|
78
78
|
success: "text-green-400 hover:bg-green-100",
|
|
79
79
|
warning: "text-yellow-400 hover:bg-yellow-100",
|
|
80
80
|
danger: "text-red-400 hover:bg-red-100",
|
|
@@ -85,18 +85,18 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
|
|
|
85
85
|
return g(), y("div", {
|
|
86
86
|
class: E(["rounded-md border p-4", n.value])
|
|
87
87
|
}, [
|
|
88
|
-
f("div",
|
|
89
|
-
f("div",
|
|
88
|
+
f("div", Jn, [
|
|
89
|
+
f("div", Kn, [
|
|
90
90
|
C(l, {
|
|
91
91
|
icon: x(B)[r.value],
|
|
92
92
|
class: E(s.value)
|
|
93
93
|
}, null, 8, ["icon", "class"])
|
|
94
94
|
]),
|
|
95
|
-
f("div",
|
|
95
|
+
f("div", Xn, [
|
|
96
96
|
M(a.$slots, "default")
|
|
97
97
|
]),
|
|
98
|
-
f("div",
|
|
99
|
-
f("div",
|
|
98
|
+
f("div", Yn, [
|
|
99
|
+
f("div", Qn, [
|
|
100
100
|
f("button", {
|
|
101
101
|
type: "button",
|
|
102
102
|
class: E(["inline-flex rounded-md px-2 py-1.5", o.value]),
|
|
@@ -112,7 +112,7 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
|
|
|
112
112
|
], 2);
|
|
113
113
|
};
|
|
114
114
|
}
|
|
115
|
-
},
|
|
115
|
+
}, Ue = [
|
|
116
116
|
{
|
|
117
117
|
name: "3CX",
|
|
118
118
|
description: "VOIP Phone",
|
|
@@ -155,9 +155,9 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
|
|
|
155
155
|
href: "https://tabula.letsbolt.io",
|
|
156
156
|
icon: "farCompass"
|
|
157
157
|
}
|
|
158
|
-
], Ot =
|
|
158
|
+
], Ot = ye("sparkAppSelector", () => {
|
|
159
159
|
const e = ne({
|
|
160
|
-
apps: [...
|
|
160
|
+
apps: [...Ue]
|
|
161
161
|
}), t = (o = {}) => {
|
|
162
162
|
if (o.apps && Array.isArray(o.apps)) {
|
|
163
163
|
const a = o.apps.filter((i) => {
|
|
@@ -176,7 +176,7 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
|
|
|
176
176
|
const a = /* @__PURE__ */ new Map();
|
|
177
177
|
Object.keys(o.appHrefs).forEach((i) => {
|
|
178
178
|
a.set(i.toLowerCase(), o.appHrefs[i]);
|
|
179
|
-
}), e.apps =
|
|
179
|
+
}), e.apps = Ue.map((i) => {
|
|
180
180
|
const l = a.get(i.name.toLowerCase());
|
|
181
181
|
return {
|
|
182
182
|
...i,
|
|
@@ -185,8 +185,8 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
|
|
|
185
185
|
});
|
|
186
186
|
return;
|
|
187
187
|
}
|
|
188
|
-
e.apps = [...
|
|
189
|
-
}, n =
|
|
188
|
+
e.apps = [...Ue];
|
|
189
|
+
}, n = $(() => e.apps), s = (o) => {
|
|
190
190
|
if (!o) return null;
|
|
191
191
|
const a = o.toLowerCase();
|
|
192
192
|
return e.apps.find((i) => i.name.toLowerCase() === a) || null;
|
|
@@ -201,7 +201,7 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
|
|
|
201
201
|
return a ? a.icon : "";
|
|
202
202
|
}
|
|
203
203
|
};
|
|
204
|
-
}),
|
|
204
|
+
}), Tt = ye("sparkApp", () => {
|
|
205
205
|
const e = ne({
|
|
206
206
|
app: "",
|
|
207
207
|
homeRoute: "dashboard",
|
|
@@ -214,16 +214,16 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
|
|
|
214
214
|
e.app = n.app || "", e.homeRoute = n.homeRoute ?? "dashboard", e.showBrandSelector = n.showBrandSelector ?? !0, e.showAppSelector = n.showAppSelector ?? !0;
|
|
215
215
|
}
|
|
216
216
|
};
|
|
217
|
-
}),
|
|
217
|
+
}), es = { class: "flex grow flex-col gap-y-5 overflow-y-auto bg-white rounded-lg" }, ts = { class: "flex flex-1 flex-col" }, ns = { class: "divide-y divide-gray-200" }, ss = { class: "flex px-[22px] py-2.5 text-[12px] items-center" }, rs = { class: "ml-auto flex items-center" }, os = ["href", "onClick"], as = { class: "gap-y-1" }, is = { class: "text-base text-gray-800 flex items-center" }, ls = { class: "font-medium" }, cs = {
|
|
218
218
|
key: 0,
|
|
219
219
|
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"
|
|
220
|
-
},
|
|
220
|
+
}, us = { class: "text-sm text-gray-500" }, ds = { class: "ml-auto flex items-center" }, fs = { class: "mt-auto" }, ps = {
|
|
221
221
|
key: 0,
|
|
222
222
|
class: "p-6"
|
|
223
|
-
},
|
|
223
|
+
}, hs = {
|
|
224
224
|
key: 1,
|
|
225
225
|
class: "bg-gray-50 p-6"
|
|
226
|
-
},
|
|
226
|
+
}, ms = {
|
|
227
227
|
__name: "SparkAppSelector",
|
|
228
228
|
props: {
|
|
229
229
|
bottomSlot: {
|
|
@@ -237,7 +237,7 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
|
|
|
237
237
|
},
|
|
238
238
|
emits: ["close", "select"],
|
|
239
239
|
setup(e, { emit: t }) {
|
|
240
|
-
const n = t, s = Ot(), r =
|
|
240
|
+
const n = t, s = Ot(), r = Tt(), o = $(() => {
|
|
241
241
|
const i = r.state.app;
|
|
242
242
|
return s.state.apps.map((l) => ({
|
|
243
243
|
...l,
|
|
@@ -248,12 +248,12 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
|
|
|
248
248
|
};
|
|
249
249
|
return (i, l) => {
|
|
250
250
|
const c = U("font-awesome-icon");
|
|
251
|
-
return g(), y("div",
|
|
252
|
-
f("div",
|
|
253
|
-
f("div",
|
|
254
|
-
f("div",
|
|
251
|
+
return g(), y("div", es, [
|
|
252
|
+
f("div", ts, [
|
|
253
|
+
f("div", ns, [
|
|
254
|
+
f("div", ss, [
|
|
255
255
|
l[1] || (l[1] = f("div", null, "Mr Group Network", -1)),
|
|
256
|
-
f("div",
|
|
256
|
+
f("div", rs, [
|
|
257
257
|
C(c, {
|
|
258
258
|
icon: x(B).farTimes,
|
|
259
259
|
class: "h-[15px] w-[15px] shrink-0 text-gray-400 cursor-pointer",
|
|
@@ -261,38 +261,38 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
|
|
|
261
261
|
}, null, 8, ["icon"])
|
|
262
262
|
])
|
|
263
263
|
]),
|
|
264
|
-
(g(!0), y(
|
|
264
|
+
(g(!0), y(le, null, ge(o.value, (u) => (g(), y("a", {
|
|
265
265
|
key: u.name,
|
|
266
266
|
href: u.href,
|
|
267
267
|
target: "_blank",
|
|
268
268
|
class: E([u.current ? "bg-gray-50" : "hover:bg-gray-50", "flex px-[22px] py-[15px] cursor-pointer"]),
|
|
269
269
|
onClick: (m) => u.current ? m.preventDefault() : a(u)
|
|
270
270
|
}, [
|
|
271
|
-
f("div",
|
|
272
|
-
f("div",
|
|
273
|
-
f("div",
|
|
274
|
-
u.current ? (g(), y("span",
|
|
271
|
+
f("div", as, [
|
|
272
|
+
f("div", is, [
|
|
273
|
+
f("div", ls, O(u.name), 1),
|
|
274
|
+
u.current ? (g(), y("span", cs, " Active ")) : R("", !0)
|
|
275
275
|
]),
|
|
276
|
-
f("div",
|
|
276
|
+
f("div", us, O(u.description), 1)
|
|
277
277
|
]),
|
|
278
|
-
f("div",
|
|
278
|
+
f("div", ds, [
|
|
279
279
|
C(c, {
|
|
280
280
|
class: E([u.current ? "text-gray-700" : "text-gray-400", "h-5 w-5 shrink-0"]),
|
|
281
281
|
icon: x(B)[u.icon]
|
|
282
282
|
}, null, 8, ["class", "icon"])
|
|
283
283
|
])
|
|
284
|
-
], 10,
|
|
284
|
+
], 10, os))), 128)),
|
|
285
285
|
l[2] || (l[2] = f("div", null, null, -1))
|
|
286
286
|
]),
|
|
287
|
-
f("div",
|
|
288
|
-
i.$slots.bottom || e.bottomSlot ? (g(), y("div",
|
|
287
|
+
f("div", fs, [
|
|
288
|
+
i.$slots.bottom || e.bottomSlot ? (g(), y("div", ps, [
|
|
289
289
|
M(i.$slots, "bottom", {}, () => [
|
|
290
|
-
e.bottomSlot ? (g(),
|
|
290
|
+
e.bottomSlot ? (g(), W($e(e.bottomSlot), { key: 0 })) : R("", !0)
|
|
291
291
|
])
|
|
292
292
|
])) : R("", !0),
|
|
293
|
-
i.$slots.footer || e.footerSlot ? (g(), y("div",
|
|
293
|
+
i.$slots.footer || e.footerSlot ? (g(), y("div", hs, [
|
|
294
294
|
M(i.$slots, "footer", {}, () => [
|
|
295
|
-
e.footerSlot ? (g(),
|
|
295
|
+
e.footerSlot ? (g(), W($e(e.footerSlot), { key: 0 })) : R("", !0)
|
|
296
296
|
])
|
|
297
297
|
])) : R("", !0)
|
|
298
298
|
])
|
|
@@ -300,7 +300,7 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
|
|
|
300
300
|
]);
|
|
301
301
|
};
|
|
302
302
|
}
|
|
303
|
-
},
|
|
303
|
+
}, Ht = ye(
|
|
304
304
|
"brandFilter",
|
|
305
305
|
() => {
|
|
306
306
|
const e = ne({
|
|
@@ -322,7 +322,7 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
|
|
|
322
322
|
logo: l.logo,
|
|
323
323
|
current: l.current || !1
|
|
324
324
|
}));
|
|
325
|
-
}, n =
|
|
325
|
+
}, n = $(() => e.brands.find((o) => o.current) || null), s = $(() => e.brands);
|
|
326
326
|
return {
|
|
327
327
|
state: e,
|
|
328
328
|
initialize: t,
|
|
@@ -344,27 +344,27 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
|
|
|
344
344
|
paths: ["state.brands"]
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
|
-
),
|
|
347
|
+
), gs = { class: "flex grow flex-col gap-y-5 overflow-y-auto bg-white rounded-lg" }, ys = { class: "flex flex-1 flex-col" }, ws = { class: "divide-y divide-gray-200" }, bs = { class: "flex px-[22px] py-2.5 text-[12px] items-center" }, xs = { class: "ml-auto flex items-center" }, Ss = {
|
|
348
348
|
key: 0,
|
|
349
349
|
class: "flex px-[22px] py-[15px] text-gray-500 text-sm"
|
|
350
|
-
},
|
|
350
|
+
}, Cs = ["onClick"], vs = { class: "gap-y-1 flex" }, _s = { class: "flex items-center mr-4" }, ks = ["src", "alt"], Rs = { class: "ml-auto flex flex-col" }, Es = { class: "text-base text-gray-800 flex items-center" }, As = { class: "font-medium" }, $s = {
|
|
351
351
|
key: 0,
|
|
352
352
|
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"
|
|
353
|
-
},
|
|
353
|
+
}, Ls = { class: "text-sm text-gray-500" }, Os = {
|
|
354
354
|
__name: "SparkBrandSelector",
|
|
355
355
|
emits: ["close", "select"],
|
|
356
356
|
setup(e, { emit: t }) {
|
|
357
|
-
const n = t, s =
|
|
357
|
+
const n = t, s = Ht(), r = (o) => {
|
|
358
358
|
n("select", o);
|
|
359
359
|
};
|
|
360
360
|
return (o, a) => {
|
|
361
361
|
const i = U("font-awesome-icon");
|
|
362
|
-
return g(), y("div",
|
|
363
|
-
f("div",
|
|
364
|
-
f("div",
|
|
365
|
-
f("div",
|
|
362
|
+
return g(), y("div", gs, [
|
|
363
|
+
f("div", ys, [
|
|
364
|
+
f("div", ws, [
|
|
365
|
+
f("div", bs, [
|
|
366
366
|
a[1] || (a[1] = f("div", null, "Filter by Brand", -1)),
|
|
367
|
-
f("div",
|
|
367
|
+
f("div", xs, [
|
|
368
368
|
C(i, {
|
|
369
369
|
icon: x(B).farTimes,
|
|
370
370
|
class: "size-4 text-gray-400 cursor-pointer",
|
|
@@ -372,29 +372,29 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
|
|
|
372
372
|
}, null, 8, ["icon"])
|
|
373
373
|
])
|
|
374
374
|
]),
|
|
375
|
-
x(s).allBrands.length === 0 ? (g(), y("div",
|
|
376
|
-
(g(!0), y(
|
|
375
|
+
x(s).allBrands.length === 0 ? (g(), y("div", Ss, " No brands configured ")) : R("", !0),
|
|
376
|
+
(g(!0), y(le, null, ge(x(s).allBrands, (l) => (g(), y("div", {
|
|
377
377
|
key: l.id,
|
|
378
378
|
class: E([l.current ? "bg-gray-50" : "hover:bg-gray-50", "flex px-[22px] py-[15px] cursor-pointer"]),
|
|
379
379
|
onClick: (c) => r(l)
|
|
380
380
|
}, [
|
|
381
|
-
f("div",
|
|
382
|
-
f("div",
|
|
381
|
+
f("div", vs, [
|
|
382
|
+
f("div", _s, [
|
|
383
383
|
f("img", {
|
|
384
384
|
src: l.logo,
|
|
385
385
|
alt: `${l.name} logo`,
|
|
386
386
|
class: "h-8 w-auto"
|
|
387
|
-
}, null, 8,
|
|
387
|
+
}, null, 8, ks)
|
|
388
388
|
]),
|
|
389
|
-
f("div",
|
|
390
|
-
f("div",
|
|
391
|
-
f("div",
|
|
392
|
-
l.current ? (g(), y("span",
|
|
389
|
+
f("div", Rs, [
|
|
390
|
+
f("div", Es, [
|
|
391
|
+
f("div", As, O(l.name), 1),
|
|
392
|
+
l.current ? (g(), y("span", $s, " Current ")) : R("", !0)
|
|
393
393
|
]),
|
|
394
|
-
f("div",
|
|
394
|
+
f("div", Ls, O(l.current ? "Current Brand" : "Change to"), 1)
|
|
395
395
|
])
|
|
396
396
|
])
|
|
397
|
-
], 10,
|
|
397
|
+
], 10, Cs))), 128)),
|
|
398
398
|
a[2] || (a[2] = f("div", null, null, -1))
|
|
399
399
|
]),
|
|
400
400
|
a[3] || (a[3] = f("div", { class: "mt-auto" }, null, -1))
|
|
@@ -402,7 +402,7 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
|
|
|
402
402
|
]);
|
|
403
403
|
};
|
|
404
404
|
}
|
|
405
|
-
},
|
|
405
|
+
}, Ts = ["disabled"], re = {
|
|
406
406
|
__name: "SparkButton",
|
|
407
407
|
props: {
|
|
408
408
|
size: {
|
|
@@ -424,7 +424,7 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
|
|
|
424
424
|
}
|
|
425
425
|
},
|
|
426
426
|
setup(e) {
|
|
427
|
-
const t = e, n = q(null), s =
|
|
427
|
+
const t = e, n = q(null), s = ln("buttonGroup", null), r = $(() => {
|
|
428
428
|
if (!s?.isInGroup || !n.value) return null;
|
|
429
429
|
const l = s.getButtonIndex(n.value), c = s.getButtonCount();
|
|
430
430
|
return {
|
|
@@ -454,7 +454,7 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
|
|
|
454
454
|
)?.[0];
|
|
455
455
|
return b && b === h;
|
|
456
456
|
})), ...m].join(" ");
|
|
457
|
-
}, i =
|
|
457
|
+
}, i = $(() => {
|
|
458
458
|
let l = "", c = "";
|
|
459
459
|
switch (t.size) {
|
|
460
460
|
case "xs":
|
|
@@ -511,13 +511,13 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
|
|
|
511
511
|
onClick: c[0] || (c[0] = (u) => l.$emit("click"))
|
|
512
512
|
}, [
|
|
513
513
|
M(l.$slots, "default")
|
|
514
|
-
], 10,
|
|
514
|
+
], 10, Ts));
|
|
515
515
|
}
|
|
516
|
-
},
|
|
516
|
+
}, ii = {
|
|
517
517
|
__name: "SparkButtonGroup",
|
|
518
518
|
setup(e) {
|
|
519
519
|
const t = q(null);
|
|
520
|
-
return
|
|
520
|
+
return cn("buttonGroup", {
|
|
521
521
|
isInGroup: !0,
|
|
522
522
|
getButtonIndex: (r) => t.value ? Array.from(t.value.children).indexOf(r) : -1,
|
|
523
523
|
getButtonCount: () => t.value?.children.length || 0
|
|
@@ -529,13 +529,13 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
|
|
|
529
529
|
M(r.$slots, "default")
|
|
530
530
|
], 512));
|
|
531
531
|
}
|
|
532
|
-
},
|
|
532
|
+
}, Hs = { class: "divide-y divide-gray-300 rounded-lg border border-gray-300 text-gray-700 bg-gray-100" }, Fs = {
|
|
533
533
|
key: 0,
|
|
534
534
|
class: "p-5"
|
|
535
|
-
},
|
|
535
|
+
}, Bs = {
|
|
536
536
|
key: 1,
|
|
537
537
|
class: "p-5"
|
|
538
|
-
},
|
|
538
|
+
}, li = {
|
|
539
539
|
__name: "SparkCard",
|
|
540
540
|
props: {
|
|
541
541
|
padded: {
|
|
@@ -549,8 +549,8 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
|
|
|
549
549
|
},
|
|
550
550
|
setup(e) {
|
|
551
551
|
const t = e;
|
|
552
|
-
return (n, s) => (g(), y("div",
|
|
553
|
-
n.$slots.header ? (g(), y("div",
|
|
552
|
+
return (n, s) => (g(), y("div", Hs, [
|
|
553
|
+
n.$slots.header ? (g(), y("div", Fs, [
|
|
554
554
|
M(n.$slots, "header")
|
|
555
555
|
])) : R("", !0),
|
|
556
556
|
f("div", {
|
|
@@ -558,13 +558,13 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
|
|
|
558
558
|
}, [
|
|
559
559
|
M(n.$slots, "default")
|
|
560
560
|
], 2),
|
|
561
|
-
n.$slots.footer ? (g(), y("div",
|
|
561
|
+
n.$slots.footer ? (g(), y("div", Bs, [
|
|
562
562
|
M(n.$slots, "footer")
|
|
563
563
|
])) : R("", !0)
|
|
564
564
|
]));
|
|
565
565
|
}
|
|
566
566
|
};
|
|
567
|
-
class
|
|
567
|
+
class Vs {
|
|
568
568
|
constructor() {
|
|
569
569
|
this.state = ne({
|
|
570
570
|
isVisible: !1,
|
|
@@ -574,26 +574,26 @@ class Fs {
|
|
|
574
574
|
});
|
|
575
575
|
}
|
|
576
576
|
show = (t, n = {}, s = {}) => {
|
|
577
|
-
this.state.content =
|
|
577
|
+
this.state.content = _t(t), this.state.props = n, this.state.eventHandlers = s, this.state.isVisible = !0;
|
|
578
578
|
};
|
|
579
579
|
hide = () => {
|
|
580
580
|
this.state.isVisible = !1, this.state.eventHandlers = {};
|
|
581
581
|
};
|
|
582
582
|
}
|
|
583
|
-
const
|
|
583
|
+
const he = new Vs(), Ns = { class: "fixed inset-0 z-10 w-screen overflow-y-auto" }, Ps = { class: "flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0" }, Ms = {
|
|
584
584
|
__name: "SparkModalContainer",
|
|
585
585
|
setup(e) {
|
|
586
|
-
return (t, n) => (g(),
|
|
586
|
+
return (t, n) => (g(), W(x(At), {
|
|
587
587
|
as: "template",
|
|
588
|
-
show: x(
|
|
588
|
+
show: x(he).state.isVisible
|
|
589
589
|
}, {
|
|
590
|
-
default:
|
|
590
|
+
default: A(() => [
|
|
591
591
|
C(x($t), {
|
|
592
592
|
class: "relative z-200",
|
|
593
|
-
onClose: x(
|
|
593
|
+
onClose: x(he).hide
|
|
594
594
|
}, {
|
|
595
|
-
default:
|
|
596
|
-
C(x(
|
|
595
|
+
default: A(() => [
|
|
596
|
+
C(x(Le), {
|
|
597
597
|
as: "template",
|
|
598
598
|
enter: "ease-out duration-300",
|
|
599
599
|
"enter-from": "opacity-0",
|
|
@@ -602,14 +602,14 @@ const fe = new Fs(), Bs = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
602
602
|
"leave-from": "opacity-100",
|
|
603
603
|
"leave-to": "opacity-0"
|
|
604
604
|
}, {
|
|
605
|
-
default:
|
|
605
|
+
default: A(() => [...n[0] || (n[0] = [
|
|
606
606
|
f("div", { class: "fixed inset-0 bg-gray-500/75 transition-opacity" }, null, -1)
|
|
607
607
|
])]),
|
|
608
608
|
_: 1
|
|
609
609
|
}),
|
|
610
|
-
f("div",
|
|
611
|
-
f("div",
|
|
612
|
-
C(x(
|
|
610
|
+
f("div", Ns, [
|
|
611
|
+
f("div", Ps, [
|
|
612
|
+
C(x(Le), {
|
|
613
613
|
as: "template",
|
|
614
614
|
enter: "ease-out duration-300",
|
|
615
615
|
"enter-from": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
|
|
@@ -618,10 +618,10 @@ const fe = new Fs(), Bs = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
618
618
|
"leave-from": "opacity-100 translate-y-0 sm:scale-100",
|
|
619
619
|
"leave-to": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
|
|
620
620
|
}, {
|
|
621
|
-
default:
|
|
622
|
-
C(x(
|
|
623
|
-
default:
|
|
624
|
-
(g(),
|
|
621
|
+
default: A(() => [
|
|
622
|
+
C(x(Lt), { class: "relative transform overflow-hidden rounded-lg bg-white text-left shadow-xl transition-all sm:my-8 sm:w-full sm:min-w-lg sm:max-w-max" }, {
|
|
623
|
+
default: A(() => [
|
|
624
|
+
(g(), W($e(x(he).state.content), kt(x(he).state.props, Rt(x(he).state.eventHandlers)), null, 16))
|
|
625
625
|
]),
|
|
626
626
|
_: 1
|
|
627
627
|
})
|
|
@@ -637,10 +637,10 @@ const fe = new Fs(), Bs = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
637
637
|
_: 1
|
|
638
638
|
}, 8, ["show"]));
|
|
639
639
|
}
|
|
640
|
-
},
|
|
640
|
+
}, Us = { class: "px-4 pt-5 pb-4 sm:p-6" }, js = {
|
|
641
641
|
key: 0,
|
|
642
642
|
class: "text-lg font-medium text-gray-900"
|
|
643
|
-
},
|
|
643
|
+
}, ci = {
|
|
644
644
|
__name: "SparkModalDialog",
|
|
645
645
|
props: {
|
|
646
646
|
title: {
|
|
@@ -690,7 +690,7 @@ const fe = new Fs(), Bs = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
690
690
|
"input"
|
|
691
691
|
],
|
|
692
692
|
setup(e) {
|
|
693
|
-
const t = e, n =
|
|
693
|
+
const t = e, n = $(() => !t.buttons || t.buttons.length === 0 ? [{ text: "OK", variant: "primary", event: "ok" }] : t.buttons), s = $(() => {
|
|
694
694
|
switch (n.value.length) {
|
|
695
695
|
case 1:
|
|
696
696
|
return "sm:grid sm:grid-flow-row-dense";
|
|
@@ -706,12 +706,12 @@ const fe = new Fs(), Bs = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
706
706
|
success: "farCheckCircle",
|
|
707
707
|
warning: "farExclamationTriangle",
|
|
708
708
|
danger: "farCircleXmark"
|
|
709
|
-
}, o =
|
|
709
|
+
}, o = $(() => t.icon || r[t.type]), a = $(() => ({
|
|
710
710
|
info: "bg-blue-100",
|
|
711
711
|
success: "bg-green-100",
|
|
712
712
|
warning: "bg-yellow-100",
|
|
713
713
|
danger: "bg-red-100"
|
|
714
|
-
})[t.type]), i =
|
|
714
|
+
})[t.type]), i = $(() => ({
|
|
715
715
|
info: "text-blue-400",
|
|
716
716
|
success: "text-green-400",
|
|
717
717
|
warning: "text-yellow-400",
|
|
@@ -719,7 +719,7 @@ const fe = new Fs(), Bs = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
719
719
|
})[t.type]);
|
|
720
720
|
return (l, c) => {
|
|
721
721
|
const u = U("font-awesome-icon");
|
|
722
|
-
return g(), y("div",
|
|
722
|
+
return g(), y("div", Us, [
|
|
723
723
|
o.value ? (g(), y("div", {
|
|
724
724
|
key: 0,
|
|
725
725
|
class: E(["mx-auto flex size-12 items-center justify-center rounded-full", a.value])
|
|
@@ -732,22 +732,22 @@ const fe = new Fs(), Bs = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
732
732
|
f("div", {
|
|
733
733
|
class: E(["text-center", { "mt-3 sm:mt-5": o.value }])
|
|
734
734
|
}, [
|
|
735
|
-
e.title ? (g(), y("h3",
|
|
735
|
+
e.title ? (g(), y("h3", js, O(e.title), 1)) : R("", !0),
|
|
736
736
|
e.message ? (g(), y("div", {
|
|
737
737
|
key: 1,
|
|
738
738
|
class: E([{ "mt-2": e.title }, "text-sm text-gray-500"])
|
|
739
|
-
},
|
|
739
|
+
}, O(e.message), 3)) : R("", !0)
|
|
740
740
|
], 2),
|
|
741
741
|
f("div", {
|
|
742
742
|
class: E(["mt-5 sm:mt-6", s.value])
|
|
743
743
|
}, [
|
|
744
|
-
(g(!0), y(
|
|
744
|
+
(g(!0), y(le, null, ge(n.value, (m, w) => (g(), W(x(re), {
|
|
745
745
|
key: w,
|
|
746
746
|
variant: m.variant,
|
|
747
747
|
onClick: (v) => l.$emit(m.event, m)
|
|
748
748
|
}, {
|
|
749
|
-
default:
|
|
750
|
-
|
|
749
|
+
default: A(() => [
|
|
750
|
+
K(O(m.text), 1)
|
|
751
751
|
]),
|
|
752
752
|
_: 2
|
|
753
753
|
}, 1032, ["variant", "onClick"]))), 128))
|
|
@@ -755,7 +755,7 @@ const fe = new Fs(), Bs = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
755
755
|
]);
|
|
756
756
|
};
|
|
757
757
|
}
|
|
758
|
-
},
|
|
758
|
+
}, Ds = { class: "fixed inset-0 flex" }, at = {
|
|
759
759
|
__name: "SparkOverlay",
|
|
760
760
|
props: {
|
|
761
761
|
position: {
|
|
@@ -773,18 +773,18 @@ const fe = new Fs(), Bs = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
773
773
|
const n = q(null), s = e, r = t, o = () => {
|
|
774
774
|
s.overlayInstance.close(), r("close");
|
|
775
775
|
};
|
|
776
|
-
return (a, i) => (g(),
|
|
776
|
+
return (a, i) => (g(), W(x(At), {
|
|
777
777
|
show: e.overlayInstance.state.isVisible,
|
|
778
778
|
as: "template"
|
|
779
779
|
}, {
|
|
780
|
-
default:
|
|
780
|
+
default: A(() => [
|
|
781
781
|
C(x($t), {
|
|
782
782
|
initialFocus: n.value,
|
|
783
783
|
class: "relative z-200",
|
|
784
784
|
onClose: o
|
|
785
785
|
}, {
|
|
786
|
-
default:
|
|
787
|
-
C(x(
|
|
786
|
+
default: A(() => [
|
|
787
|
+
C(x(Le), {
|
|
788
788
|
as: "template",
|
|
789
789
|
enter: "transition-opacity ease-linear duration-150",
|
|
790
790
|
"enter-from": "opacity-0",
|
|
@@ -793,13 +793,13 @@ const fe = new Fs(), Bs = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
793
793
|
"leave-from": "opacity-100",
|
|
794
794
|
"leave-to": "opacity-0"
|
|
795
795
|
}, {
|
|
796
|
-
default:
|
|
796
|
+
default: A(() => [...i[0] || (i[0] = [
|
|
797
797
|
f("div", { class: "fixed inset-0 bg-gray-600/30" }, null, -1)
|
|
798
798
|
])]),
|
|
799
799
|
_: 1
|
|
800
800
|
}),
|
|
801
|
-
f("div",
|
|
802
|
-
C(x(
|
|
801
|
+
f("div", Ds, [
|
|
802
|
+
C(x(Le), {
|
|
803
803
|
as: "template",
|
|
804
804
|
enter: "transition ease-in-out duration-150 transform",
|
|
805
805
|
"enter-from": e.position === "left" ? "-translate-x-full opacity-0" : "translate-x-full opacity-0",
|
|
@@ -808,8 +808,8 @@ const fe = new Fs(), Bs = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
808
808
|
"leave-from": "translate-x-0 opacity-100",
|
|
809
809
|
"leave-to": e.position === "left" ? "-translate-x-full opacity-0" : "translate-x-full opacity-0"
|
|
810
810
|
}, {
|
|
811
|
-
default:
|
|
812
|
-
C(x(
|
|
811
|
+
default: A(() => [
|
|
812
|
+
C(x(Lt), {
|
|
813
813
|
ref_key: "panelRef",
|
|
814
814
|
ref: n,
|
|
815
815
|
class: E([
|
|
@@ -817,8 +817,8 @@ const fe = new Fs(), Bs = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
817
817
|
e.position === "left" ? "relative left-[10px]" : "absolute right-[10px] h-full"
|
|
818
818
|
])
|
|
819
819
|
}, {
|
|
820
|
-
default:
|
|
821
|
-
(g(),
|
|
820
|
+
default: A(() => [
|
|
821
|
+
(g(), W($e(e.overlayInstance.state.content), kt(e.overlayInstance.state.props, Rt(e.overlayInstance.state.eventHandlers)), null, 16))
|
|
822
822
|
]),
|
|
823
823
|
_: 1
|
|
824
824
|
}, 8, ["class"])
|
|
@@ -834,7 +834,7 @@ const fe = new Fs(), Bs = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
834
834
|
}, 8, ["show"]));
|
|
835
835
|
}
|
|
836
836
|
};
|
|
837
|
-
function
|
|
837
|
+
function it() {
|
|
838
838
|
const e = ne({
|
|
839
839
|
isVisible: !1,
|
|
840
840
|
content: null,
|
|
@@ -847,7 +847,7 @@ function at() {
|
|
|
847
847
|
}, s = () => {
|
|
848
848
|
e.isVisible = !0;
|
|
849
849
|
}, r = (a, i = {}, l = {}) => {
|
|
850
|
-
e.content =
|
|
850
|
+
e.content = _t(a), e.props = i, e.eventHandlers = l;
|
|
851
851
|
};
|
|
852
852
|
return {
|
|
853
853
|
state: e,
|
|
@@ -860,9 +860,9 @@ function at() {
|
|
|
860
860
|
}
|
|
861
861
|
};
|
|
862
862
|
}
|
|
863
|
-
class
|
|
863
|
+
class Is {
|
|
864
864
|
constructor() {
|
|
865
|
-
this.left =
|
|
865
|
+
this.left = it(), this.right = it();
|
|
866
866
|
}
|
|
867
867
|
showLeft = (t, n = {}, s = {}) => {
|
|
868
868
|
const r = {
|
|
@@ -892,22 +892,22 @@ class js {
|
|
|
892
892
|
this.left.close(), this.right.close();
|
|
893
893
|
};
|
|
894
894
|
}
|
|
895
|
-
const
|
|
895
|
+
const ae = new Is(), zs = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, qs = { class: "flex flex-1 flex-col" }, Zs = {
|
|
896
896
|
class: "flex flex-1 flex-col gap-y-7",
|
|
897
897
|
role: "list"
|
|
898
|
-
},
|
|
898
|
+
}, Ws = { class: "flex flex-1 flex-col" }, Gs = {
|
|
899
899
|
role: "list",
|
|
900
900
|
class: "flex flex-1 flex-col"
|
|
901
|
-
},
|
|
901
|
+
}, Js = { class: "flex items-center pb-8" }, Ks = ["href", "onClick"], Xs = {
|
|
902
902
|
key: 2,
|
|
903
903
|
class: "w-full flex justify-center"
|
|
904
|
-
},
|
|
904
|
+
}, Ys = {
|
|
905
905
|
key: 0,
|
|
906
906
|
class: "mt-[5px] flex flex-col gap-[5px]"
|
|
907
|
-
},
|
|
907
|
+
}, Qs = ["href", "onClick"], er = {
|
|
908
908
|
key: 1,
|
|
909
909
|
class: "text-[13px]"
|
|
910
|
-
},
|
|
910
|
+
}, tr = { class: "mt-auto" }, nr = { class: "p-[10px] flex-shrink-0" }, sr = { class: "flex flex-1 items-center gap-x-6" }, rr = { class: "relative flex flex-1 items-center gap-4" }, or = { class: "cursor-pointer" }, ar = ["src"], ir = { class: "ml-auto" }, lr = { class: "mr-[10px] pb-[10px] flex-1 flex flex-col" }, ui = {
|
|
911
911
|
__name: "SparkDefaultContainer",
|
|
912
912
|
props: {
|
|
913
913
|
appStore: {
|
|
@@ -925,35 +925,39 @@ const ve = new js(), Ds = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, Is =
|
|
|
925
925
|
},
|
|
926
926
|
emits: ["overlayClose"],
|
|
927
927
|
setup(e, { emit: t }) {
|
|
928
|
-
const n = e, s = t, r =
|
|
928
|
+
const n = e, s = t, r = un(), o = Ht(), a = Ot(), i = $(() => a.getAppIcon(n.appStore.state.app)), l = () => {
|
|
929
929
|
const w = {};
|
|
930
|
-
r["app-selector-bottom"] ? w.bottomSlot = () =>
|
|
930
|
+
r["app-selector-bottom"] ? w.bottomSlot = () => ot("div", {}, r["app-selector-bottom"]()) : n.appSelectorSlots.bottomSlot && (w.bottomSlot = n.appSelectorSlots.bottomSlot), r["app-selector-footer"] ? w.footerSlot = () => ot("div", {}, r["app-selector-footer"]()) : n.appSelectorSlots.footerSlot && (w.footerSlot = n.appSelectorSlots.footerSlot), ae.showRight(ms, w, {
|
|
931
|
+
select: (v) => {
|
|
932
|
+
ae.closeRight();
|
|
933
|
+
}
|
|
934
|
+
});
|
|
931
935
|
}, c = () => {
|
|
932
|
-
|
|
933
|
-
|
|
936
|
+
ae.showLeft(
|
|
937
|
+
Os,
|
|
934
938
|
{},
|
|
935
939
|
{
|
|
936
940
|
select: (w) => {
|
|
937
|
-
o.toggleBrand(w);
|
|
941
|
+
o.toggleBrand(w), ae.closeLeft();
|
|
938
942
|
}
|
|
939
943
|
}
|
|
940
944
|
);
|
|
941
|
-
}, u =
|
|
945
|
+
}, u = $(() => n.mainNavStore.state.hidden ? ["w-0 overflow-hidden"] : [n.mainNavStore.state.collapsed ? "w-[80px]" : "w-[240px]"]), m = $(() => n.mainNavStore.state.hidden ? ["pl-2.5"] : [n.mainNavStore.state.collapsed ? "pl-[80px]" : "pl-[240px]"]);
|
|
942
946
|
return (w, v) => {
|
|
943
947
|
const p = U("font-awesome-icon"), b = U("router-view");
|
|
944
|
-
return g(), y(
|
|
948
|
+
return g(), y(le, null, [
|
|
945
949
|
f("div", {
|
|
946
950
|
class: E([u.value, "fixed inset-y-0 flex transition-all z-100"])
|
|
947
951
|
}, [
|
|
948
|
-
f("div",
|
|
949
|
-
f("nav",
|
|
950
|
-
f("ul",
|
|
951
|
-
f("li",
|
|
952
|
-
f("ul",
|
|
953
|
-
f("li",
|
|
952
|
+
f("div", zs, [
|
|
953
|
+
f("nav", qs, [
|
|
954
|
+
f("ul", Zs, [
|
|
955
|
+
f("li", Ws, [
|
|
956
|
+
f("ul", Gs, [
|
|
957
|
+
f("li", Js, [
|
|
954
958
|
f("a", {
|
|
955
959
|
class: "grid w-[40px] h-[40px] place-items-center rounded-md bg-primary-600 text-white text-[13px] cursor-pointer",
|
|
956
|
-
onClick: v[0] || (v[0] =
|
|
960
|
+
onClick: v[0] || (v[0] = pe((h) => e.mainNavStore.goto(e.appStore.state.homeRoute), ["prevent"]))
|
|
957
961
|
}, [
|
|
958
962
|
C(p, {
|
|
959
963
|
icon: x(B)[i.value],
|
|
@@ -962,11 +966,11 @@ const ve = new js(), Ds = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, Is =
|
|
|
962
966
|
]),
|
|
963
967
|
e.mainNavStore.state.collapsed ? R("", !0) : (g(), y("a", {
|
|
964
968
|
key: 0,
|
|
965
|
-
onClick: v[1] || (v[1] =
|
|
969
|
+
onClick: v[1] || (v[1] = pe((h) => e.mainNavStore.goto(e.appStore.state.homeRoute), ["prevent"])),
|
|
966
970
|
class: "font-medium text-gray-800 ml-[10px] cursor-pointer"
|
|
967
|
-
},
|
|
971
|
+
}, O(e.appStore.state.app), 1))
|
|
968
972
|
]),
|
|
969
|
-
(g(!0), y(
|
|
973
|
+
(g(!0), y(le, null, ge(e.mainNavStore.state.menu, (h) => (g(), y("li", {
|
|
970
974
|
key: h.name,
|
|
971
975
|
class: E({
|
|
972
976
|
"mt-[10px]": h.children,
|
|
@@ -979,14 +983,14 @@ const ve = new js(), Ds = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, Is =
|
|
|
979
983
|
"hover:bg-gray-100": h?.href
|
|
980
984
|
}, "h-[37px] sgroup flex items-center gap-x-2 rounded-md p-3 text-gray-800 leading-5 transition-all duration-300 ease-in-out"]),
|
|
981
985
|
href: h?.href,
|
|
982
|
-
onClick:
|
|
986
|
+
onClick: pe((_) => e.mainNavStore.goto(h.href), ["prevent"])
|
|
983
987
|
}, [
|
|
984
|
-
h.icon ? (g(),
|
|
988
|
+
h.icon ? (g(), W(p, {
|
|
985
989
|
key: 0,
|
|
986
990
|
icon: x(B)[h.icon],
|
|
987
991
|
class: E([[(h.current, "text-gray-400")], "size-4"])
|
|
988
992
|
}, null, 8, ["icon", "class"])) : R("", !0),
|
|
989
|
-
e.mainNavStore.state.collapsed ? h?.children ? (g(), y("div",
|
|
993
|
+
e.mainNavStore.state.collapsed ? h?.children ? (g(), y("div", Xs, [...v[6] || (v[6] = [
|
|
990
994
|
f("div", { class: "w-[10px] h-px bg-gray-400" }, null, -1)
|
|
991
995
|
])])) : R("", !0) : (g(), y("span", {
|
|
992
996
|
key: 1,
|
|
@@ -996,35 +1000,35 @@ const ve = new js(), Ds = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, Is =
|
|
|
996
1000
|
"font-semibold": h?.children,
|
|
997
1001
|
"text-gray-500": h?.children
|
|
998
1002
|
})
|
|
999
|
-
},
|
|
1000
|
-
], 10,
|
|
1001
|
-
h.children ? (g(), y("ul",
|
|
1002
|
-
(g(!0), y(
|
|
1003
|
+
}, O(h.name), 3))
|
|
1004
|
+
], 10, Ks),
|
|
1005
|
+
h.children ? (g(), y("ul", Ys, [
|
|
1006
|
+
(g(!0), y(le, null, ge(h.children, (_) => (g(), y("li", {
|
|
1003
1007
|
key: _.name
|
|
1004
1008
|
}, [
|
|
1005
1009
|
f("a", {
|
|
1006
1010
|
class: E([[_.current ? "bg-gray-100" : "", "hover:bg-gray-100"], "h-[37px] sgroup flex items-center gap-x-2 rounded-md p-3 text-gray-800 leading-5 transition-all duration-300 ease-in-out"]),
|
|
1007
1011
|
href: _.href,
|
|
1008
|
-
onClick:
|
|
1012
|
+
onClick: pe((T) => e.mainNavStore.goto(_.href), ["prevent"])
|
|
1009
1013
|
}, [
|
|
1010
|
-
_.icon ? (g(),
|
|
1014
|
+
_.icon ? (g(), W(p, {
|
|
1011
1015
|
key: 0,
|
|
1012
1016
|
icon: x(B)[_.icon],
|
|
1013
1017
|
class: E([[(_.current, "text-gray-400")], "size-4"])
|
|
1014
1018
|
}, null, 8, ["icon", "class"])) : R("", !0),
|
|
1015
|
-
e.mainNavStore.state.collapsed ? R("", !0) : (g(), y("span",
|
|
1016
|
-
], 10,
|
|
1019
|
+
e.mainNavStore.state.collapsed ? R("", !0) : (g(), y("span", er, O(_.name), 1))
|
|
1020
|
+
], 10, Qs)
|
|
1017
1021
|
]))), 128))
|
|
1018
1022
|
])) : R("", !0)
|
|
1019
1023
|
], 2))), 128))
|
|
1020
1024
|
])
|
|
1021
1025
|
]),
|
|
1022
|
-
f("li",
|
|
1026
|
+
f("li", tr, [
|
|
1023
1027
|
M(w.$slots, "sidebar-footer"),
|
|
1024
1028
|
f("a", {
|
|
1025
1029
|
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",
|
|
1026
1030
|
href: "#",
|
|
1027
|
-
onClick: v[2] || (v[2] =
|
|
1031
|
+
onClick: v[2] || (v[2] = pe((h) => e.mainNavStore.toggleCollapsed(), ["prevent"]))
|
|
1028
1032
|
}, [
|
|
1029
1033
|
C(p, {
|
|
1030
1034
|
icon: x(B)[e.mainNavStore.state.collapsed ? "farArrowRightToLine" : "farArrowLeftToLine"],
|
|
@@ -1039,11 +1043,11 @@ const ve = new js(), Ds = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, Is =
|
|
|
1039
1043
|
f("div", {
|
|
1040
1044
|
class: E([m.value, "h-full transition-all flex flex-col"])
|
|
1041
1045
|
}, [
|
|
1042
|
-
f("div",
|
|
1043
|
-
f("div",
|
|
1044
|
-
f("div",
|
|
1046
|
+
f("div", nr, [
|
|
1047
|
+
f("div", sr, [
|
|
1048
|
+
f("div", rr, [
|
|
1045
1049
|
M(w.$slots, "header-left", {}, () => [
|
|
1046
|
-
f("div",
|
|
1050
|
+
f("div", or, [
|
|
1047
1051
|
C(p, {
|
|
1048
1052
|
icon: x(B).farBarsSort,
|
|
1049
1053
|
class: "size-5",
|
|
@@ -1062,10 +1066,10 @@ const ve = new js(), Ds = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, Is =
|
|
|
1062
1066
|
src: x(o).currentBrand.logo,
|
|
1063
1067
|
alt: "",
|
|
1064
1068
|
class: "h-[30px] w-auto"
|
|
1065
|
-
}, null, 8,
|
|
1069
|
+
}, null, 8, ar)) : R("", !0)
|
|
1066
1070
|
])) : R("", !0)
|
|
1067
1071
|
]),
|
|
1068
|
-
f("div",
|
|
1072
|
+
f("div", ir, [
|
|
1069
1073
|
M(w.$slots, "header-right", {}, () => [
|
|
1070
1074
|
e.appStore.state.showAppSelector ? (g(), y("button", {
|
|
1071
1075
|
key: 0,
|
|
@@ -1083,81 +1087,81 @@ const ve = new js(), Ds = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, Is =
|
|
|
1083
1087
|
])
|
|
1084
1088
|
])
|
|
1085
1089
|
]),
|
|
1086
|
-
f("main",
|
|
1090
|
+
f("main", lr, [
|
|
1087
1091
|
C(b)
|
|
1088
1092
|
])
|
|
1089
1093
|
], 2),
|
|
1090
|
-
C(x(
|
|
1094
|
+
C(x(at), {
|
|
1091
1095
|
position: "left",
|
|
1092
|
-
"overlay-instance": x(
|
|
1096
|
+
"overlay-instance": x(ae).left,
|
|
1093
1097
|
onClose: v[4] || (v[4] = (h) => s("overlayClose", "left"))
|
|
1094
1098
|
}, null, 8, ["overlay-instance"]),
|
|
1095
|
-
C(x(
|
|
1099
|
+
C(x(at), {
|
|
1096
1100
|
position: "right",
|
|
1097
|
-
"overlay-instance": x(
|
|
1101
|
+
"overlay-instance": x(ae).right,
|
|
1098
1102
|
onClose: v[5] || (v[5] = (h) => s("overlayClose", "right"))
|
|
1099
1103
|
}, null, 8, ["overlay-instance"]),
|
|
1100
|
-
C(x(
|
|
1104
|
+
C(x(Ms))
|
|
1101
1105
|
], 64);
|
|
1102
1106
|
};
|
|
1103
1107
|
}
|
|
1104
|
-
},
|
|
1108
|
+
}, cr = (e, t) => {
|
|
1105
1109
|
const n = e.__vccOpts || e;
|
|
1106
1110
|
for (const [s, r] of t)
|
|
1107
1111
|
n[s] = r;
|
|
1108
1112
|
return n;
|
|
1109
|
-
},
|
|
1110
|
-
function
|
|
1113
|
+
}, ur = {}, dr = { class: "h-full" };
|
|
1114
|
+
function fr(e, t) {
|
|
1111
1115
|
const n = U("router-view");
|
|
1112
|
-
return g(), y("main",
|
|
1116
|
+
return g(), y("main", dr, [
|
|
1113
1117
|
C(n)
|
|
1114
1118
|
]);
|
|
1115
1119
|
}
|
|
1116
|
-
const
|
|
1117
|
-
function
|
|
1120
|
+
const di = /* @__PURE__ */ cr(ur, [["render", fr]]);
|
|
1121
|
+
function Ft(e, t) {
|
|
1118
1122
|
return function() {
|
|
1119
1123
|
return e.apply(t, arguments);
|
|
1120
1124
|
};
|
|
1121
1125
|
}
|
|
1122
|
-
const { toString:
|
|
1123
|
-
const n =
|
|
1126
|
+
const { toString: pr } = Object.prototype, { getPrototypeOf: Je } = Object, { iterator: He, toStringTag: Bt } = Symbol, Fe = /* @__PURE__ */ ((e) => (t) => {
|
|
1127
|
+
const n = pr.call(t);
|
|
1124
1128
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
1125
|
-
})(/* @__PURE__ */ Object.create(null)), D = (e) => (e = e.toLowerCase(), (t) =>
|
|
1126
|
-
function
|
|
1127
|
-
return e !== null && !
|
|
1129
|
+
})(/* @__PURE__ */ Object.create(null)), D = (e) => (e = e.toLowerCase(), (t) => Fe(t) === e), Be = (e) => (t) => typeof t === e, { isArray: ue } = Array, ce = Be("undefined");
|
|
1130
|
+
function we(e) {
|
|
1131
|
+
return e !== null && !ce(e) && e.constructor !== null && !ce(e.constructor) && V(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
1128
1132
|
}
|
|
1129
|
-
const
|
|
1130
|
-
function
|
|
1133
|
+
const Vt = D("ArrayBuffer");
|
|
1134
|
+
function hr(e) {
|
|
1131
1135
|
let t;
|
|
1132
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer &&
|
|
1136
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Vt(e.buffer), t;
|
|
1133
1137
|
}
|
|
1134
|
-
const
|
|
1135
|
-
if (
|
|
1138
|
+
const mr = Be("string"), V = Be("function"), Nt = Be("number"), be = (e) => e !== null && typeof e == "object", gr = (e) => e === !0 || e === !1, Re = (e) => {
|
|
1139
|
+
if (Fe(e) !== "object")
|
|
1136
1140
|
return !1;
|
|
1137
|
-
const t =
|
|
1138
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(
|
|
1139
|
-
},
|
|
1140
|
-
if (!
|
|
1141
|
+
const t = Je(e);
|
|
1142
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Bt in e) && !(He in e);
|
|
1143
|
+
}, yr = (e) => {
|
|
1144
|
+
if (!be(e) || we(e))
|
|
1141
1145
|
return !1;
|
|
1142
1146
|
try {
|
|
1143
1147
|
return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
|
|
1144
1148
|
} catch {
|
|
1145
1149
|
return !1;
|
|
1146
1150
|
}
|
|
1147
|
-
},
|
|
1151
|
+
}, wr = D("Date"), br = D("File"), xr = D("Blob"), Sr = D("FileList"), Cr = (e) => be(e) && V(e.pipe), vr = (e) => {
|
|
1148
1152
|
let t;
|
|
1149
|
-
return e && (typeof FormData == "function" && e instanceof FormData || V(e.append) && ((t =
|
|
1153
|
+
return e && (typeof FormData == "function" && e instanceof FormData || V(e.append) && ((t = Fe(e)) === "formdata" || // detect form-data instance
|
|
1150
1154
|
t === "object" && V(e.toString) && e.toString() === "[object FormData]"));
|
|
1151
|
-
},
|
|
1152
|
-
function
|
|
1155
|
+
}, _r = D("URLSearchParams"), [kr, Rr, Er, Ar] = ["ReadableStream", "Request", "Response", "Headers"].map(D), $r = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
1156
|
+
function xe(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
1153
1157
|
if (e === null || typeof e > "u")
|
|
1154
1158
|
return;
|
|
1155
1159
|
let s, r;
|
|
1156
|
-
if (typeof e != "object" && (e = [e]),
|
|
1160
|
+
if (typeof e != "object" && (e = [e]), ue(e))
|
|
1157
1161
|
for (s = 0, r = e.length; s < r; s++)
|
|
1158
1162
|
t.call(null, e[s], s, e);
|
|
1159
1163
|
else {
|
|
1160
|
-
if (
|
|
1164
|
+
if (we(e))
|
|
1161
1165
|
return;
|
|
1162
1166
|
const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), a = o.length;
|
|
1163
1167
|
let i;
|
|
@@ -1165,8 +1169,8 @@ function we(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
|
1165
1169
|
i = o[s], t.call(null, e[i], i, e);
|
|
1166
1170
|
}
|
|
1167
1171
|
}
|
|
1168
|
-
function
|
|
1169
|
-
if (
|
|
1172
|
+
function Pt(e, t) {
|
|
1173
|
+
if (we(e))
|
|
1170
1174
|
return null;
|
|
1171
1175
|
t = t.toLowerCase();
|
|
1172
1176
|
const n = Object.keys(e);
|
|
@@ -1176,71 +1180,71 @@ function Nt(e, t) {
|
|
|
1176
1180
|
return r;
|
|
1177
1181
|
return null;
|
|
1178
1182
|
}
|
|
1179
|
-
const Q = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global,
|
|
1180
|
-
function
|
|
1181
|
-
const { caseless: e, skipUndefined: t } =
|
|
1182
|
-
const a = e &&
|
|
1183
|
-
|
|
1183
|
+
const Q = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Mt = (e) => !ce(e) && e !== Q;
|
|
1184
|
+
function qe() {
|
|
1185
|
+
const { caseless: e, skipUndefined: t } = Mt(this) && this || {}, n = {}, s = (r, o) => {
|
|
1186
|
+
const a = e && Pt(n, o) || o;
|
|
1187
|
+
Re(n[a]) && Re(r) ? n[a] = qe(n[a], r) : Re(r) ? n[a] = qe({}, r) : ue(r) ? n[a] = r.slice() : (!t || !ce(r)) && (n[a] = r);
|
|
1184
1188
|
};
|
|
1185
1189
|
for (let r = 0, o = arguments.length; r < o; r++)
|
|
1186
|
-
arguments[r] &&
|
|
1190
|
+
arguments[r] && xe(arguments[r], s);
|
|
1187
1191
|
return n;
|
|
1188
1192
|
}
|
|
1189
|
-
const
|
|
1190
|
-
n && V(r) ? e[o] =
|
|
1191
|
-
}, { allOwnKeys: s }), e),
|
|
1193
|
+
const Lr = (e, t, n, { allOwnKeys: s } = {}) => (xe(t, (r, o) => {
|
|
1194
|
+
n && V(r) ? e[o] = Ft(r, n) : e[o] = r;
|
|
1195
|
+
}, { allOwnKeys: s }), e), Or = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Tr = (e, t, n, s) => {
|
|
1192
1196
|
e.prototype = Object.create(t.prototype, s), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
1193
1197
|
value: t.prototype
|
|
1194
1198
|
}), n && Object.assign(e.prototype, n);
|
|
1195
|
-
},
|
|
1199
|
+
}, Hr = (e, t, n, s) => {
|
|
1196
1200
|
let r, o, a;
|
|
1197
1201
|
const i = {};
|
|
1198
1202
|
if (t = t || {}, e == null) return t;
|
|
1199
1203
|
do {
|
|
1200
1204
|
for (r = Object.getOwnPropertyNames(e), o = r.length; o-- > 0; )
|
|
1201
1205
|
a = r[o], (!s || s(a, e, t)) && !i[a] && (t[a] = e[a], i[a] = !0);
|
|
1202
|
-
e = n !== !1 &&
|
|
1206
|
+
e = n !== !1 && Je(e);
|
|
1203
1207
|
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
1204
1208
|
return t;
|
|
1205
|
-
},
|
|
1209
|
+
}, Fr = (e, t, n) => {
|
|
1206
1210
|
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
1207
1211
|
const s = e.indexOf(t, n);
|
|
1208
1212
|
return s !== -1 && s === n;
|
|
1209
|
-
},
|
|
1213
|
+
}, Br = (e) => {
|
|
1210
1214
|
if (!e) return null;
|
|
1211
|
-
if (
|
|
1215
|
+
if (ue(e)) return e;
|
|
1212
1216
|
let t = e.length;
|
|
1213
|
-
if (!
|
|
1217
|
+
if (!Nt(t)) return null;
|
|
1214
1218
|
const n = new Array(t);
|
|
1215
1219
|
for (; t-- > 0; )
|
|
1216
1220
|
n[t] = e[t];
|
|
1217
1221
|
return n;
|
|
1218
|
-
},
|
|
1219
|
-
const s = (e && e[
|
|
1222
|
+
}, Vr = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Je(Uint8Array)), Nr = (e, t) => {
|
|
1223
|
+
const s = (e && e[He]).call(e);
|
|
1220
1224
|
let r;
|
|
1221
1225
|
for (; (r = s.next()) && !r.done; ) {
|
|
1222
1226
|
const o = r.value;
|
|
1223
1227
|
t.call(e, o[0], o[1]);
|
|
1224
1228
|
}
|
|
1225
|
-
},
|
|
1229
|
+
}, Pr = (e, t) => {
|
|
1226
1230
|
let n;
|
|
1227
1231
|
const s = [];
|
|
1228
1232
|
for (; (n = e.exec(t)) !== null; )
|
|
1229
1233
|
s.push(n);
|
|
1230
1234
|
return s;
|
|
1231
|
-
},
|
|
1235
|
+
}, Mr = D("HTMLFormElement"), Ur = (e) => e.toLowerCase().replace(
|
|
1232
1236
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
1233
1237
|
function(n, s, r) {
|
|
1234
1238
|
return s.toUpperCase() + r;
|
|
1235
1239
|
}
|
|
1236
|
-
),
|
|
1240
|
+
), lt = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), jr = D("RegExp"), Ut = (e, t) => {
|
|
1237
1241
|
const n = Object.getOwnPropertyDescriptors(e), s = {};
|
|
1238
|
-
|
|
1242
|
+
xe(n, (r, o) => {
|
|
1239
1243
|
let a;
|
|
1240
1244
|
(a = t(r, o, e)) !== !1 && (s[o] = a || r);
|
|
1241
1245
|
}), Object.defineProperties(e, s);
|
|
1242
|
-
},
|
|
1243
|
-
|
|
1246
|
+
}, Dr = (e) => {
|
|
1247
|
+
Ut(e, (t, n) => {
|
|
1244
1248
|
if (V(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
1245
1249
|
return !1;
|
|
1246
1250
|
const s = e[n];
|
|
@@ -1254,103 +1258,103 @@ const $r = (e, t, n, { allOwnKeys: s } = {}) => (we(t, (r, o) => {
|
|
|
1254
1258
|
});
|
|
1255
1259
|
}
|
|
1256
1260
|
});
|
|
1257
|
-
},
|
|
1261
|
+
}, Ir = (e, t) => {
|
|
1258
1262
|
const n = {}, s = (r) => {
|
|
1259
1263
|
r.forEach((o) => {
|
|
1260
1264
|
n[o] = !0;
|
|
1261
1265
|
});
|
|
1262
1266
|
};
|
|
1263
|
-
return
|
|
1264
|
-
},
|
|
1265
|
-
},
|
|
1266
|
-
function
|
|
1267
|
-
return !!(e && V(e.append) && e[
|
|
1267
|
+
return ue(e) ? s(e) : s(String(e).split(t)), n;
|
|
1268
|
+
}, zr = () => {
|
|
1269
|
+
}, qr = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
1270
|
+
function Zr(e) {
|
|
1271
|
+
return !!(e && V(e.append) && e[Bt] === "FormData" && e[He]);
|
|
1268
1272
|
}
|
|
1269
|
-
const
|
|
1273
|
+
const Wr = (e) => {
|
|
1270
1274
|
const t = new Array(10), n = (s, r) => {
|
|
1271
|
-
if (
|
|
1275
|
+
if (be(s)) {
|
|
1272
1276
|
if (t.indexOf(s) >= 0)
|
|
1273
1277
|
return;
|
|
1274
|
-
if (
|
|
1278
|
+
if (we(s))
|
|
1275
1279
|
return s;
|
|
1276
1280
|
if (!("toJSON" in s)) {
|
|
1277
1281
|
t[r] = s;
|
|
1278
|
-
const o =
|
|
1279
|
-
return
|
|
1282
|
+
const o = ue(s) ? [] : {};
|
|
1283
|
+
return xe(s, (a, i) => {
|
|
1280
1284
|
const l = n(a, r + 1);
|
|
1281
|
-
!
|
|
1285
|
+
!ce(l) && (o[i] = l);
|
|
1282
1286
|
}), t[r] = void 0, o;
|
|
1283
1287
|
}
|
|
1284
1288
|
}
|
|
1285
1289
|
return s;
|
|
1286
1290
|
};
|
|
1287
1291
|
return n(e, 0);
|
|
1288
|
-
},
|
|
1292
|
+
}, Gr = D("AsyncFunction"), Jr = (e) => e && (be(e) || V(e)) && V(e.then) && V(e.catch), jt = ((e, t) => e ? setImmediate : t ? ((n, s) => (Q.addEventListener("message", ({ source: r, data: o }) => {
|
|
1289
1293
|
r === Q && o === n && s.length && s.shift()();
|
|
1290
1294
|
}, !1), (r) => {
|
|
1291
1295
|
s.push(r), Q.postMessage(n, "*");
|
|
1292
1296
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
1293
1297
|
typeof setImmediate == "function",
|
|
1294
1298
|
V(Q.postMessage)
|
|
1295
|
-
),
|
|
1296
|
-
isArray:
|
|
1297
|
-
isArrayBuffer:
|
|
1298
|
-
isBuffer:
|
|
1299
|
-
isFormData:
|
|
1300
|
-
isArrayBufferView:
|
|
1301
|
-
isString:
|
|
1302
|
-
isNumber:
|
|
1303
|
-
isBoolean:
|
|
1304
|
-
isObject:
|
|
1305
|
-
isPlainObject:
|
|
1306
|
-
isEmptyObject:
|
|
1307
|
-
isReadableStream:
|
|
1308
|
-
isRequest:
|
|
1309
|
-
isResponse:
|
|
1310
|
-
isHeaders:
|
|
1311
|
-
isUndefined:
|
|
1312
|
-
isDate:
|
|
1313
|
-
isFile:
|
|
1314
|
-
isBlob:
|
|
1315
|
-
isRegExp:
|
|
1299
|
+
), Kr = typeof queueMicrotask < "u" ? queueMicrotask.bind(Q) : typeof process < "u" && process.nextTick || jt, Xr = (e) => e != null && V(e[He]), d = {
|
|
1300
|
+
isArray: ue,
|
|
1301
|
+
isArrayBuffer: Vt,
|
|
1302
|
+
isBuffer: we,
|
|
1303
|
+
isFormData: vr,
|
|
1304
|
+
isArrayBufferView: hr,
|
|
1305
|
+
isString: mr,
|
|
1306
|
+
isNumber: Nt,
|
|
1307
|
+
isBoolean: gr,
|
|
1308
|
+
isObject: be,
|
|
1309
|
+
isPlainObject: Re,
|
|
1310
|
+
isEmptyObject: yr,
|
|
1311
|
+
isReadableStream: kr,
|
|
1312
|
+
isRequest: Rr,
|
|
1313
|
+
isResponse: Er,
|
|
1314
|
+
isHeaders: Ar,
|
|
1315
|
+
isUndefined: ce,
|
|
1316
|
+
isDate: wr,
|
|
1317
|
+
isFile: br,
|
|
1318
|
+
isBlob: xr,
|
|
1319
|
+
isRegExp: jr,
|
|
1316
1320
|
isFunction: V,
|
|
1317
|
-
isStream:
|
|
1318
|
-
isURLSearchParams:
|
|
1319
|
-
isTypedArray:
|
|
1320
|
-
isFileList:
|
|
1321
|
-
forEach:
|
|
1322
|
-
merge:
|
|
1323
|
-
extend:
|
|
1324
|
-
trim:
|
|
1325
|
-
stripBOM:
|
|
1326
|
-
inherits:
|
|
1327
|
-
toFlatObject:
|
|
1328
|
-
kindOf:
|
|
1321
|
+
isStream: Cr,
|
|
1322
|
+
isURLSearchParams: _r,
|
|
1323
|
+
isTypedArray: Vr,
|
|
1324
|
+
isFileList: Sr,
|
|
1325
|
+
forEach: xe,
|
|
1326
|
+
merge: qe,
|
|
1327
|
+
extend: Lr,
|
|
1328
|
+
trim: $r,
|
|
1329
|
+
stripBOM: Or,
|
|
1330
|
+
inherits: Tr,
|
|
1331
|
+
toFlatObject: Hr,
|
|
1332
|
+
kindOf: Fe,
|
|
1329
1333
|
kindOfTest: D,
|
|
1330
|
-
endsWith:
|
|
1331
|
-
toArray:
|
|
1332
|
-
forEachEntry:
|
|
1333
|
-
matchAll:
|
|
1334
|
-
isHTMLForm:
|
|
1335
|
-
hasOwnProperty:
|
|
1336
|
-
hasOwnProp:
|
|
1334
|
+
endsWith: Fr,
|
|
1335
|
+
toArray: Br,
|
|
1336
|
+
forEachEntry: Nr,
|
|
1337
|
+
matchAll: Pr,
|
|
1338
|
+
isHTMLForm: Mr,
|
|
1339
|
+
hasOwnProperty: lt,
|
|
1340
|
+
hasOwnProp: lt,
|
|
1337
1341
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
1338
|
-
reduceDescriptors:
|
|
1339
|
-
freezeMethods:
|
|
1340
|
-
toObjectSet:
|
|
1341
|
-
toCamelCase:
|
|
1342
|
-
noop:
|
|
1343
|
-
toFiniteNumber:
|
|
1344
|
-
findKey:
|
|
1342
|
+
reduceDescriptors: Ut,
|
|
1343
|
+
freezeMethods: Dr,
|
|
1344
|
+
toObjectSet: Ir,
|
|
1345
|
+
toCamelCase: Ur,
|
|
1346
|
+
noop: zr,
|
|
1347
|
+
toFiniteNumber: qr,
|
|
1348
|
+
findKey: Pt,
|
|
1345
1349
|
global: Q,
|
|
1346
|
-
isContextDefined:
|
|
1347
|
-
isSpecCompliantForm:
|
|
1348
|
-
toJSONObject:
|
|
1349
|
-
isAsyncFn:
|
|
1350
|
-
isThenable:
|
|
1351
|
-
setImmediate:
|
|
1352
|
-
asap:
|
|
1353
|
-
isIterable:
|
|
1350
|
+
isContextDefined: Mt,
|
|
1351
|
+
isSpecCompliantForm: Zr,
|
|
1352
|
+
toJSONObject: Wr,
|
|
1353
|
+
isAsyncFn: Gr,
|
|
1354
|
+
isThenable: Jr,
|
|
1355
|
+
setImmediate: jt,
|
|
1356
|
+
asap: Kr,
|
|
1357
|
+
isIterable: Xr
|
|
1354
1358
|
};
|
|
1355
1359
|
function S(e, t, n, s, r) {
|
|
1356
1360
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), s && (this.request = s), r && (this.response = r, this.status = r.status ? r.status : null);
|
|
@@ -1376,7 +1380,7 @@ d.inherits(S, Error, {
|
|
|
1376
1380
|
};
|
|
1377
1381
|
}
|
|
1378
1382
|
});
|
|
1379
|
-
const
|
|
1383
|
+
const Dt = S.prototype, It = {};
|
|
1380
1384
|
[
|
|
1381
1385
|
"ERR_BAD_OPTION_VALUE",
|
|
1382
1386
|
"ERR_BAD_OPTION",
|
|
@@ -1392,37 +1396,37 @@ const jt = S.prototype, Dt = {};
|
|
|
1392
1396
|
"ERR_INVALID_URL"
|
|
1393
1397
|
// eslint-disable-next-line func-names
|
|
1394
1398
|
].forEach((e) => {
|
|
1395
|
-
|
|
1399
|
+
It[e] = { value: e };
|
|
1396
1400
|
});
|
|
1397
|
-
Object.defineProperties(S,
|
|
1398
|
-
Object.defineProperty(
|
|
1401
|
+
Object.defineProperties(S, It);
|
|
1402
|
+
Object.defineProperty(Dt, "isAxiosError", { value: !0 });
|
|
1399
1403
|
S.from = (e, t, n, s, r, o) => {
|
|
1400
|
-
const a = Object.create(
|
|
1404
|
+
const a = Object.create(Dt);
|
|
1401
1405
|
d.toFlatObject(e, a, function(u) {
|
|
1402
1406
|
return u !== Error.prototype;
|
|
1403
1407
|
}, (c) => c !== "isAxiosError");
|
|
1404
1408
|
const i = e && e.message ? e.message : "Error", l = t == null && e ? e.code : t;
|
|
1405
1409
|
return S.call(a, i, l, n, s, r), e && a.cause == null && Object.defineProperty(a, "cause", { value: e, configurable: !0 }), a.name = e && e.name || "Error", o && Object.assign(a, o), a;
|
|
1406
1410
|
};
|
|
1407
|
-
const
|
|
1408
|
-
function
|
|
1411
|
+
const Yr = null;
|
|
1412
|
+
function Ze(e) {
|
|
1409
1413
|
return d.isPlainObject(e) || d.isArray(e);
|
|
1410
1414
|
}
|
|
1411
|
-
function
|
|
1415
|
+
function zt(e) {
|
|
1412
1416
|
return d.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
1413
1417
|
}
|
|
1414
|
-
function
|
|
1418
|
+
function ct(e, t, n) {
|
|
1415
1419
|
return e ? e.concat(t).map(function(r, o) {
|
|
1416
|
-
return r =
|
|
1420
|
+
return r = zt(r), !n && o ? "[" + r + "]" : r;
|
|
1417
1421
|
}).join(n ? "." : "") : t;
|
|
1418
1422
|
}
|
|
1419
|
-
function
|
|
1420
|
-
return d.isArray(e) && !e.some(
|
|
1423
|
+
function Qr(e) {
|
|
1424
|
+
return d.isArray(e) && !e.some(Ze);
|
|
1421
1425
|
}
|
|
1422
|
-
const
|
|
1426
|
+
const eo = d.toFlatObject(d, {}, null, function(t) {
|
|
1423
1427
|
return /^is[A-Z]/.test(t);
|
|
1424
1428
|
});
|
|
1425
|
-
function
|
|
1429
|
+
function Ve(e, t, n) {
|
|
1426
1430
|
if (!d.isObject(e))
|
|
1427
1431
|
throw new TypeError("target must be an object");
|
|
1428
1432
|
t = t || new FormData(), n = d.toFlatObject(n, {
|
|
@@ -1450,21 +1454,21 @@ function Be(e, t, n) {
|
|
|
1450
1454
|
if (p && !h && typeof p == "object") {
|
|
1451
1455
|
if (d.endsWith(b, "{}"))
|
|
1452
1456
|
b = s ? b : b.slice(0, -2), p = JSON.stringify(p);
|
|
1453
|
-
else if (d.isArray(p) &&
|
|
1454
|
-
return b =
|
|
1455
|
-
!(d.isUndefined(
|
|
1457
|
+
else if (d.isArray(p) && Qr(p) || (d.isFileList(p) || d.endsWith(b, "[]")) && (_ = d.toArray(p)))
|
|
1458
|
+
return b = zt(b), _.forEach(function(L, F) {
|
|
1459
|
+
!(d.isUndefined(L) || L === null) && t.append(
|
|
1456
1460
|
// eslint-disable-next-line no-nested-ternary
|
|
1457
|
-
a === !0 ?
|
|
1458
|
-
c(
|
|
1461
|
+
a === !0 ? ct([b], F, o) : a === null ? b : b + "[]",
|
|
1462
|
+
c(L)
|
|
1459
1463
|
);
|
|
1460
1464
|
}), !1;
|
|
1461
1465
|
}
|
|
1462
|
-
return
|
|
1466
|
+
return Ze(p) ? !0 : (t.append(ct(h, b, o), c(p)), !1);
|
|
1463
1467
|
}
|
|
1464
|
-
const m = [], w = Object.assign(
|
|
1468
|
+
const m = [], w = Object.assign(eo, {
|
|
1465
1469
|
defaultVisitor: u,
|
|
1466
1470
|
convertValue: c,
|
|
1467
|
-
isVisitable:
|
|
1471
|
+
isVisitable: Ze
|
|
1468
1472
|
});
|
|
1469
1473
|
function v(p, b) {
|
|
1470
1474
|
if (!d.isUndefined(p)) {
|
|
@@ -1485,7 +1489,7 @@ function Be(e, t, n) {
|
|
|
1485
1489
|
throw new TypeError("data must be an object");
|
|
1486
1490
|
return v(e), t;
|
|
1487
1491
|
}
|
|
1488
|
-
function
|
|
1492
|
+
function ut(e) {
|
|
1489
1493
|
const t = {
|
|
1490
1494
|
"!": "%21",
|
|
1491
1495
|
"'": "%27",
|
|
@@ -1499,40 +1503,40 @@ function ct(e) {
|
|
|
1499
1503
|
return t[s];
|
|
1500
1504
|
});
|
|
1501
1505
|
}
|
|
1502
|
-
function
|
|
1503
|
-
this._pairs = [], e &&
|
|
1506
|
+
function Ke(e, t) {
|
|
1507
|
+
this._pairs = [], e && Ve(e, this, t);
|
|
1504
1508
|
}
|
|
1505
|
-
const
|
|
1506
|
-
|
|
1509
|
+
const qt = Ke.prototype;
|
|
1510
|
+
qt.append = function(t, n) {
|
|
1507
1511
|
this._pairs.push([t, n]);
|
|
1508
1512
|
};
|
|
1509
|
-
|
|
1513
|
+
qt.toString = function(t) {
|
|
1510
1514
|
const n = t ? function(s) {
|
|
1511
|
-
return t.call(this, s,
|
|
1512
|
-
} :
|
|
1515
|
+
return t.call(this, s, ut);
|
|
1516
|
+
} : ut;
|
|
1513
1517
|
return this._pairs.map(function(r) {
|
|
1514
1518
|
return n(r[0]) + "=" + n(r[1]);
|
|
1515
1519
|
}, "").join("&");
|
|
1516
1520
|
};
|
|
1517
|
-
function
|
|
1521
|
+
function to(e) {
|
|
1518
1522
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
1519
1523
|
}
|
|
1520
|
-
function
|
|
1524
|
+
function Zt(e, t, n) {
|
|
1521
1525
|
if (!t)
|
|
1522
1526
|
return e;
|
|
1523
|
-
const s = n && n.encode ||
|
|
1527
|
+
const s = n && n.encode || to;
|
|
1524
1528
|
d.isFunction(n) && (n = {
|
|
1525
1529
|
serialize: n
|
|
1526
1530
|
});
|
|
1527
1531
|
const r = n && n.serialize;
|
|
1528
1532
|
let o;
|
|
1529
|
-
if (r ? o = r(t, n) : o = d.isURLSearchParams(t) ? t.toString() : new
|
|
1533
|
+
if (r ? o = r(t, n) : o = d.isURLSearchParams(t) ? t.toString() : new Ke(t, n).toString(s), o) {
|
|
1530
1534
|
const a = e.indexOf("#");
|
|
1531
1535
|
a !== -1 && (e = e.slice(0, a)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
|
|
1532
1536
|
}
|
|
1533
1537
|
return e;
|
|
1534
1538
|
}
|
|
1535
|
-
class
|
|
1539
|
+
class dt {
|
|
1536
1540
|
constructor() {
|
|
1537
1541
|
this.handlers = [];
|
|
1538
1542
|
}
|
|
@@ -1586,42 +1590,42 @@ class ut {
|
|
|
1586
1590
|
});
|
|
1587
1591
|
}
|
|
1588
1592
|
}
|
|
1589
|
-
const
|
|
1593
|
+
const Wt = {
|
|
1590
1594
|
silentJSONParsing: !0,
|
|
1591
1595
|
forcedJSONParsing: !0,
|
|
1592
1596
|
clarifyTimeoutError: !1
|
|
1593
|
-
},
|
|
1597
|
+
}, no = typeof URLSearchParams < "u" ? URLSearchParams : Ke, so = typeof FormData < "u" ? FormData : null, ro = typeof Blob < "u" ? Blob : null, oo = {
|
|
1594
1598
|
isBrowser: !0,
|
|
1595
1599
|
classes: {
|
|
1596
|
-
URLSearchParams:
|
|
1597
|
-
FormData:
|
|
1598
|
-
Blob:
|
|
1600
|
+
URLSearchParams: no,
|
|
1601
|
+
FormData: so,
|
|
1602
|
+
Blob: ro
|
|
1599
1603
|
},
|
|
1600
1604
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
1601
|
-
},
|
|
1602
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
1605
|
+
}, Xe = typeof window < "u" && typeof document < "u", We = typeof navigator == "object" && navigator || void 0, ao = Xe && (!We || ["ReactNative", "NativeScript", "NS"].indexOf(We.product) < 0), io = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
1606
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", lo = Xe && window.location.href || "http://localhost", co = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1603
1607
|
__proto__: null,
|
|
1604
|
-
hasBrowserEnv:
|
|
1605
|
-
hasStandardBrowserEnv:
|
|
1606
|
-
hasStandardBrowserWebWorkerEnv:
|
|
1607
|
-
navigator:
|
|
1608
|
-
origin:
|
|
1608
|
+
hasBrowserEnv: Xe,
|
|
1609
|
+
hasStandardBrowserEnv: ao,
|
|
1610
|
+
hasStandardBrowserWebWorkerEnv: io,
|
|
1611
|
+
navigator: We,
|
|
1612
|
+
origin: lo
|
|
1609
1613
|
}, Symbol.toStringTag, { value: "Module" })), H = {
|
|
1610
|
-
...
|
|
1611
|
-
...
|
|
1614
|
+
...co,
|
|
1615
|
+
...oo
|
|
1612
1616
|
};
|
|
1613
|
-
function
|
|
1614
|
-
return
|
|
1617
|
+
function uo(e, t) {
|
|
1618
|
+
return Ve(e, new H.classes.URLSearchParams(), {
|
|
1615
1619
|
visitor: function(n, s, r, o) {
|
|
1616
1620
|
return H.isNode && d.isBuffer(n) ? (this.append(s, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
1617
1621
|
},
|
|
1618
1622
|
...t
|
|
1619
1623
|
});
|
|
1620
1624
|
}
|
|
1621
|
-
function
|
|
1625
|
+
function fo(e) {
|
|
1622
1626
|
return d.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
1623
1627
|
}
|
|
1624
|
-
function
|
|
1628
|
+
function po(e) {
|
|
1625
1629
|
const t = {}, n = Object.keys(e);
|
|
1626
1630
|
let s;
|
|
1627
1631
|
const r = n.length;
|
|
@@ -1630,22 +1634,22 @@ function uo(e) {
|
|
|
1630
1634
|
o = n[s], t[o] = e[o];
|
|
1631
1635
|
return t;
|
|
1632
1636
|
}
|
|
1633
|
-
function
|
|
1637
|
+
function Gt(e) {
|
|
1634
1638
|
function t(n, s, r, o) {
|
|
1635
1639
|
let a = n[o++];
|
|
1636
1640
|
if (a === "__proto__") return !0;
|
|
1637
1641
|
const i = Number.isFinite(+a), l = o >= n.length;
|
|
1638
|
-
return a = !a && d.isArray(r) ? r.length : a, l ? (d.hasOwnProp(r, a) ? r[a] = [r[a], s] : r[a] = s, !i) : ((!r[a] || !d.isObject(r[a])) && (r[a] = []), t(n, s, r[a], o) && d.isArray(r[a]) && (r[a] =
|
|
1642
|
+
return a = !a && d.isArray(r) ? r.length : a, l ? (d.hasOwnProp(r, a) ? r[a] = [r[a], s] : r[a] = s, !i) : ((!r[a] || !d.isObject(r[a])) && (r[a] = []), t(n, s, r[a], o) && d.isArray(r[a]) && (r[a] = po(r[a])), !i);
|
|
1639
1643
|
}
|
|
1640
1644
|
if (d.isFormData(e) && d.isFunction(e.entries)) {
|
|
1641
1645
|
const n = {};
|
|
1642
1646
|
return d.forEachEntry(e, (s, r) => {
|
|
1643
|
-
t(
|
|
1647
|
+
t(fo(s), r, n, 0);
|
|
1644
1648
|
}), n;
|
|
1645
1649
|
}
|
|
1646
1650
|
return null;
|
|
1647
1651
|
}
|
|
1648
|
-
function
|
|
1652
|
+
function ho(e, t, n) {
|
|
1649
1653
|
if (d.isString(e))
|
|
1650
1654
|
try {
|
|
1651
1655
|
return (t || JSON.parse)(e), d.trim(e);
|
|
@@ -1655,13 +1659,13 @@ function fo(e, t, n) {
|
|
|
1655
1659
|
}
|
|
1656
1660
|
return (n || JSON.stringify)(e);
|
|
1657
1661
|
}
|
|
1658
|
-
const
|
|
1659
|
-
transitional:
|
|
1662
|
+
const Se = {
|
|
1663
|
+
transitional: Wt,
|
|
1660
1664
|
adapter: ["xhr", "http", "fetch"],
|
|
1661
1665
|
transformRequest: [function(t, n) {
|
|
1662
1666
|
const s = n.getContentType() || "", r = s.indexOf("application/json") > -1, o = d.isObject(t);
|
|
1663
1667
|
if (o && d.isHTMLForm(t) && (t = new FormData(t)), d.isFormData(t))
|
|
1664
|
-
return r ? JSON.stringify(
|
|
1668
|
+
return r ? JSON.stringify(Gt(t)) : t;
|
|
1665
1669
|
if (d.isArrayBuffer(t) || d.isBuffer(t) || d.isStream(t) || d.isFile(t) || d.isBlob(t) || d.isReadableStream(t))
|
|
1666
1670
|
return t;
|
|
1667
1671
|
if (d.isArrayBufferView(t))
|
|
@@ -1671,20 +1675,20 @@ const be = {
|
|
|
1671
1675
|
let i;
|
|
1672
1676
|
if (o) {
|
|
1673
1677
|
if (s.indexOf("application/x-www-form-urlencoded") > -1)
|
|
1674
|
-
return
|
|
1678
|
+
return uo(t, this.formSerializer).toString();
|
|
1675
1679
|
if ((i = d.isFileList(t)) || s.indexOf("multipart/form-data") > -1) {
|
|
1676
1680
|
const l = this.env && this.env.FormData;
|
|
1677
|
-
return
|
|
1681
|
+
return Ve(
|
|
1678
1682
|
i ? { "files[]": t } : t,
|
|
1679
1683
|
l && new l(),
|
|
1680
1684
|
this.formSerializer
|
|
1681
1685
|
);
|
|
1682
1686
|
}
|
|
1683
1687
|
}
|
|
1684
|
-
return o || r ? (n.setContentType("application/json", !1),
|
|
1688
|
+
return o || r ? (n.setContentType("application/json", !1), ho(t)) : t;
|
|
1685
1689
|
}],
|
|
1686
1690
|
transformResponse: [function(t) {
|
|
1687
|
-
const n = this.transitional ||
|
|
1691
|
+
const n = this.transitional || Se.transitional, s = n && n.forcedJSONParsing, r = this.responseType === "json";
|
|
1688
1692
|
if (d.isResponse(t) || d.isReadableStream(t))
|
|
1689
1693
|
return t;
|
|
1690
1694
|
if (t && d.isString(t) && (s && !this.responseType || r)) {
|
|
@@ -1722,9 +1726,9 @@ const be = {
|
|
|
1722
1726
|
}
|
|
1723
1727
|
};
|
|
1724
1728
|
d.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
1725
|
-
|
|
1729
|
+
Se.headers[e] = {};
|
|
1726
1730
|
});
|
|
1727
|
-
const
|
|
1731
|
+
const mo = d.toObjectSet([
|
|
1728
1732
|
"age",
|
|
1729
1733
|
"authorization",
|
|
1730
1734
|
"content-length",
|
|
@@ -1742,29 +1746,29 @@ const po = d.toObjectSet([
|
|
|
1742
1746
|
"referer",
|
|
1743
1747
|
"retry-after",
|
|
1744
1748
|
"user-agent"
|
|
1745
|
-
]),
|
|
1749
|
+
]), go = (e) => {
|
|
1746
1750
|
const t = {};
|
|
1747
1751
|
let n, s, r;
|
|
1748
1752
|
return e && e.split(`
|
|
1749
1753
|
`).forEach(function(a) {
|
|
1750
|
-
r = a.indexOf(":"), n = a.substring(0, r).trim().toLowerCase(), s = a.substring(r + 1).trim(), !(!n || t[n] &&
|
|
1754
|
+
r = a.indexOf(":"), n = a.substring(0, r).trim().toLowerCase(), s = a.substring(r + 1).trim(), !(!n || t[n] && mo[n]) && (n === "set-cookie" ? t[n] ? t[n].push(s) : t[n] = [s] : t[n] = t[n] ? t[n] + ", " + s : s);
|
|
1751
1755
|
}), t;
|
|
1752
|
-
},
|
|
1753
|
-
function
|
|
1756
|
+
}, ft = Symbol("internals");
|
|
1757
|
+
function me(e) {
|
|
1754
1758
|
return e && String(e).trim().toLowerCase();
|
|
1755
1759
|
}
|
|
1756
|
-
function
|
|
1757
|
-
return e === !1 || e == null ? e : d.isArray(e) ? e.map(
|
|
1760
|
+
function Ee(e) {
|
|
1761
|
+
return e === !1 || e == null ? e : d.isArray(e) ? e.map(Ee) : String(e);
|
|
1758
1762
|
}
|
|
1759
|
-
function
|
|
1763
|
+
function yo(e) {
|
|
1760
1764
|
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
1761
1765
|
let s;
|
|
1762
1766
|
for (; s = n.exec(e); )
|
|
1763
1767
|
t[s[1]] = s[2];
|
|
1764
1768
|
return t;
|
|
1765
1769
|
}
|
|
1766
|
-
const
|
|
1767
|
-
function
|
|
1770
|
+
const wo = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
1771
|
+
function je(e, t, n, s, r) {
|
|
1768
1772
|
if (d.isFunction(s))
|
|
1769
1773
|
return s.call(this, t, n);
|
|
1770
1774
|
if (r && (t = n), !!d.isString(t)) {
|
|
@@ -1774,10 +1778,10 @@ function Ue(e, t, n, s, r) {
|
|
|
1774
1778
|
return s.test(t);
|
|
1775
1779
|
}
|
|
1776
1780
|
}
|
|
1777
|
-
function
|
|
1781
|
+
function bo(e) {
|
|
1778
1782
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, s) => n.toUpperCase() + s);
|
|
1779
1783
|
}
|
|
1780
|
-
function
|
|
1784
|
+
function xo(e, t) {
|
|
1781
1785
|
const n = d.toCamelCase(" " + t);
|
|
1782
1786
|
["get", "set", "has"].forEach((s) => {
|
|
1783
1787
|
Object.defineProperty(e, s + n, {
|
|
@@ -1795,17 +1799,17 @@ let N = class {
|
|
|
1795
1799
|
set(t, n, s) {
|
|
1796
1800
|
const r = this;
|
|
1797
1801
|
function o(i, l, c) {
|
|
1798
|
-
const u =
|
|
1802
|
+
const u = me(l);
|
|
1799
1803
|
if (!u)
|
|
1800
1804
|
throw new Error("header name must be a non-empty string");
|
|
1801
1805
|
const m = d.findKey(r, u);
|
|
1802
|
-
(!m || r[m] === void 0 || c === !0 || c === void 0 && r[m] !== !1) && (r[m || l] =
|
|
1806
|
+
(!m || r[m] === void 0 || c === !0 || c === void 0 && r[m] !== !1) && (r[m || l] = Ee(i));
|
|
1803
1807
|
}
|
|
1804
1808
|
const a = (i, l) => d.forEach(i, (c, u) => o(c, u, l));
|
|
1805
1809
|
if (d.isPlainObject(t) || t instanceof this.constructor)
|
|
1806
1810
|
a(t, n);
|
|
1807
|
-
else if (d.isString(t) && (t = t.trim()) && !
|
|
1808
|
-
a(
|
|
1811
|
+
else if (d.isString(t) && (t = t.trim()) && !wo(t))
|
|
1812
|
+
a(go(t), n);
|
|
1809
1813
|
else if (d.isObject(t) && d.isIterable(t)) {
|
|
1810
1814
|
let i = {}, l, c;
|
|
1811
1815
|
for (const u of t) {
|
|
@@ -1819,14 +1823,14 @@ let N = class {
|
|
|
1819
1823
|
return this;
|
|
1820
1824
|
}
|
|
1821
1825
|
get(t, n) {
|
|
1822
|
-
if (t =
|
|
1826
|
+
if (t = me(t), t) {
|
|
1823
1827
|
const s = d.findKey(this, t);
|
|
1824
1828
|
if (s) {
|
|
1825
1829
|
const r = this[s];
|
|
1826
1830
|
if (!n)
|
|
1827
1831
|
return r;
|
|
1828
1832
|
if (n === !0)
|
|
1829
|
-
return
|
|
1833
|
+
return yo(r);
|
|
1830
1834
|
if (d.isFunction(n))
|
|
1831
1835
|
return n.call(this, r, s);
|
|
1832
1836
|
if (d.isRegExp(n))
|
|
@@ -1836,9 +1840,9 @@ let N = class {
|
|
|
1836
1840
|
}
|
|
1837
1841
|
}
|
|
1838
1842
|
has(t, n) {
|
|
1839
|
-
if (t =
|
|
1843
|
+
if (t = me(t), t) {
|
|
1840
1844
|
const s = d.findKey(this, t);
|
|
1841
|
-
return !!(s && this[s] !== void 0 && (!n ||
|
|
1845
|
+
return !!(s && this[s] !== void 0 && (!n || je(this, this[s], s, n)));
|
|
1842
1846
|
}
|
|
1843
1847
|
return !1;
|
|
1844
1848
|
}
|
|
@@ -1846,9 +1850,9 @@ let N = class {
|
|
|
1846
1850
|
const s = this;
|
|
1847
1851
|
let r = !1;
|
|
1848
1852
|
function o(a) {
|
|
1849
|
-
if (a =
|
|
1853
|
+
if (a = me(a), a) {
|
|
1850
1854
|
const i = d.findKey(s, a);
|
|
1851
|
-
i && (!n ||
|
|
1855
|
+
i && (!n || je(s, s[i], i, n)) && (delete s[i], r = !0);
|
|
1852
1856
|
}
|
|
1853
1857
|
}
|
|
1854
1858
|
return d.isArray(t) ? t.forEach(o) : o(t), r;
|
|
@@ -1858,7 +1862,7 @@ let N = class {
|
|
|
1858
1862
|
let s = n.length, r = !1;
|
|
1859
1863
|
for (; s--; ) {
|
|
1860
1864
|
const o = n[s];
|
|
1861
|
-
(!t ||
|
|
1865
|
+
(!t || je(this, this[o], o, t, !0)) && (delete this[o], r = !0);
|
|
1862
1866
|
}
|
|
1863
1867
|
return r;
|
|
1864
1868
|
}
|
|
@@ -1867,11 +1871,11 @@ let N = class {
|
|
|
1867
1871
|
return d.forEach(this, (r, o) => {
|
|
1868
1872
|
const a = d.findKey(s, o);
|
|
1869
1873
|
if (a) {
|
|
1870
|
-
n[a] =
|
|
1874
|
+
n[a] = Ee(r), delete n[o];
|
|
1871
1875
|
return;
|
|
1872
1876
|
}
|
|
1873
|
-
const i = t ?
|
|
1874
|
-
i !== o && delete n[o], n[i] =
|
|
1877
|
+
const i = t ? bo(o) : String(o).trim();
|
|
1878
|
+
i !== o && delete n[o], n[i] = Ee(r), s[i] = !0;
|
|
1875
1879
|
}), this;
|
|
1876
1880
|
}
|
|
1877
1881
|
concat(...t) {
|
|
@@ -1904,12 +1908,12 @@ let N = class {
|
|
|
1904
1908
|
return n.forEach((r) => s.set(r)), s;
|
|
1905
1909
|
}
|
|
1906
1910
|
static accessor(t) {
|
|
1907
|
-
const s = (this[
|
|
1911
|
+
const s = (this[ft] = this[ft] = {
|
|
1908
1912
|
accessors: {}
|
|
1909
1913
|
}).accessors, r = this.prototype;
|
|
1910
1914
|
function o(a) {
|
|
1911
|
-
const i =
|
|
1912
|
-
s[i] || (
|
|
1915
|
+
const i = me(a);
|
|
1916
|
+
s[i] || (xo(r, a), s[i] = !0);
|
|
1913
1917
|
}
|
|
1914
1918
|
return d.isArray(t) ? t.forEach(o) : o(t), this;
|
|
1915
1919
|
}
|
|
@@ -1925,23 +1929,23 @@ d.reduceDescriptors(N.prototype, ({ value: e }, t) => {
|
|
|
1925
1929
|
};
|
|
1926
1930
|
});
|
|
1927
1931
|
d.freezeMethods(N);
|
|
1928
|
-
function
|
|
1929
|
-
const n = this ||
|
|
1932
|
+
function De(e, t) {
|
|
1933
|
+
const n = this || Se, s = t || n, r = N.from(s.headers);
|
|
1930
1934
|
let o = s.data;
|
|
1931
1935
|
return d.forEach(e, function(i) {
|
|
1932
1936
|
o = i.call(n, o, r.normalize(), t ? t.status : void 0);
|
|
1933
1937
|
}), r.normalize(), o;
|
|
1934
1938
|
}
|
|
1935
|
-
function
|
|
1939
|
+
function Jt(e) {
|
|
1936
1940
|
return !!(e && e.__CANCEL__);
|
|
1937
1941
|
}
|
|
1938
|
-
function
|
|
1942
|
+
function de(e, t, n) {
|
|
1939
1943
|
S.call(this, e ?? "canceled", S.ERR_CANCELED, t, n), this.name = "CanceledError";
|
|
1940
1944
|
}
|
|
1941
|
-
d.inherits(
|
|
1945
|
+
d.inherits(de, S, {
|
|
1942
1946
|
__CANCEL__: !0
|
|
1943
1947
|
});
|
|
1944
|
-
function
|
|
1948
|
+
function Kt(e, t, n) {
|
|
1945
1949
|
const s = n.config.validateStatus;
|
|
1946
1950
|
!n.status || !s || s(n.status) ? e(n) : t(new S(
|
|
1947
1951
|
"Request failed with status code " + n.status,
|
|
@@ -1951,11 +1955,11 @@ function Jt(e, t, n) {
|
|
|
1951
1955
|
n
|
|
1952
1956
|
));
|
|
1953
1957
|
}
|
|
1954
|
-
function
|
|
1958
|
+
function So(e) {
|
|
1955
1959
|
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
1956
1960
|
return t && t[1] || "";
|
|
1957
1961
|
}
|
|
1958
|
-
function
|
|
1962
|
+
function Co(e, t) {
|
|
1959
1963
|
e = e || 10;
|
|
1960
1964
|
const n = new Array(e), s = new Array(e);
|
|
1961
1965
|
let r = 0, o = 0, a;
|
|
@@ -1971,7 +1975,7 @@ function xo(e, t) {
|
|
|
1971
1975
|
return v ? Math.round(w * 1e3 / v) : void 0;
|
|
1972
1976
|
};
|
|
1973
1977
|
}
|
|
1974
|
-
function
|
|
1978
|
+
function vo(e, t) {
|
|
1975
1979
|
let n = 0, s = 1e3 / t, r, o;
|
|
1976
1980
|
const a = (c, u = Date.now()) => {
|
|
1977
1981
|
n = u, r = null, o && (clearTimeout(o), o = null), e(...c);
|
|
@@ -1985,8 +1989,8 @@ function So(e, t) {
|
|
|
1985
1989
|
}
|
|
1986
1990
|
const Oe = (e, t, n = 3) => {
|
|
1987
1991
|
let s = 0;
|
|
1988
|
-
const r =
|
|
1989
|
-
return
|
|
1992
|
+
const r = Co(50, 250);
|
|
1993
|
+
return vo((o) => {
|
|
1990
1994
|
const a = o.loaded, i = o.lengthComputable ? o.total : void 0, l = a - s, c = r(l), u = a <= i;
|
|
1991
1995
|
s = a;
|
|
1992
1996
|
const m = {
|
|
@@ -2002,17 +2006,17 @@ const Oe = (e, t, n = 3) => {
|
|
|
2002
2006
|
};
|
|
2003
2007
|
e(m);
|
|
2004
2008
|
}, n);
|
|
2005
|
-
},
|
|
2009
|
+
}, pt = (e, t) => {
|
|
2006
2010
|
const n = e != null;
|
|
2007
2011
|
return [(s) => t[0]({
|
|
2008
2012
|
lengthComputable: n,
|
|
2009
2013
|
total: e,
|
|
2010
2014
|
loaded: s
|
|
2011
2015
|
}), t[1]];
|
|
2012
|
-
},
|
|
2016
|
+
}, ht = (e) => (...t) => d.asap(() => e(...t)), _o = H.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, H.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
|
|
2013
2017
|
new URL(H.origin),
|
|
2014
2018
|
H.navigator && /(msie|trident)/i.test(H.navigator.userAgent)
|
|
2015
|
-
) : () => !0,
|
|
2019
|
+
) : () => !0, ko = H.hasStandardBrowserEnv ? (
|
|
2016
2020
|
// Standard browser envs support document.cookie
|
|
2017
2021
|
{
|
|
2018
2022
|
write(e, t, n, s, r, o, a) {
|
|
@@ -2041,17 +2045,17 @@ const Oe = (e, t, n = 3) => {
|
|
|
2041
2045
|
}
|
|
2042
2046
|
}
|
|
2043
2047
|
);
|
|
2044
|
-
function
|
|
2048
|
+
function Ro(e) {
|
|
2045
2049
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
2046
2050
|
}
|
|
2047
|
-
function
|
|
2051
|
+
function Eo(e, t) {
|
|
2048
2052
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
2049
2053
|
}
|
|
2050
|
-
function
|
|
2051
|
-
let s = !
|
|
2052
|
-
return e && (s || n == !1) ?
|
|
2054
|
+
function Xt(e, t, n) {
|
|
2055
|
+
let s = !Ro(t);
|
|
2056
|
+
return e && (s || n == !1) ? Eo(e, t) : t;
|
|
2053
2057
|
}
|
|
2054
|
-
const
|
|
2058
|
+
const mt = (e) => e instanceof N ? { ...e } : e;
|
|
2055
2059
|
function te(e, t) {
|
|
2056
2060
|
t = t || {};
|
|
2057
2061
|
const n = {};
|
|
@@ -2109,17 +2113,17 @@ function te(e, t) {
|
|
|
2109
2113
|
socketPath: a,
|
|
2110
2114
|
responseEncoding: a,
|
|
2111
2115
|
validateStatus: i,
|
|
2112
|
-
headers: (c, u, m) => r(
|
|
2116
|
+
headers: (c, u, m) => r(mt(c), mt(u), m, !0)
|
|
2113
2117
|
};
|
|
2114
2118
|
return d.forEach(Object.keys({ ...e, ...t }), function(u) {
|
|
2115
2119
|
const m = l[u] || r, w = m(e[u], t[u], u);
|
|
2116
2120
|
d.isUndefined(w) && m !== i || (n[u] = w);
|
|
2117
2121
|
}), n;
|
|
2118
2122
|
}
|
|
2119
|
-
const
|
|
2123
|
+
const Yt = (e) => {
|
|
2120
2124
|
const t = te({}, e);
|
|
2121
2125
|
let { data: n, withXSRFToken: s, xsrfHeaderName: r, xsrfCookieName: o, headers: a, auth: i } = t;
|
|
2122
|
-
if (t.headers = a = N.from(a), t.url =
|
|
2126
|
+
if (t.headers = a = N.from(a), t.url = Zt(Xt(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), i && a.set(
|
|
2123
2127
|
"Authorization",
|
|
2124
2128
|
"Basic " + btoa((i.username || "") + ":" + (i.password ? unescape(encodeURIComponent(i.password)) : ""))
|
|
2125
2129
|
), d.isFormData(n)) {
|
|
@@ -2132,14 +2136,14 @@ const Xt = (e) => {
|
|
|
2132
2136
|
});
|
|
2133
2137
|
}
|
|
2134
2138
|
}
|
|
2135
|
-
if (H.hasStandardBrowserEnv && (s && d.isFunction(s) && (s = s(t)), s || s !== !1 &&
|
|
2136
|
-
const l = r && o &&
|
|
2139
|
+
if (H.hasStandardBrowserEnv && (s && d.isFunction(s) && (s = s(t)), s || s !== !1 && _o(t.url))) {
|
|
2140
|
+
const l = r && o && ko.read(o);
|
|
2137
2141
|
l && a.set(r, l);
|
|
2138
2142
|
}
|
|
2139
2143
|
return t;
|
|
2140
|
-
},
|
|
2144
|
+
}, Ao = typeof XMLHttpRequest < "u", $o = Ao && function(e) {
|
|
2141
2145
|
return new Promise(function(n, s) {
|
|
2142
|
-
const r =
|
|
2146
|
+
const r = Yt(e);
|
|
2143
2147
|
let o = r.data;
|
|
2144
2148
|
const a = N.from(r.headers).normalize();
|
|
2145
2149
|
let { responseType: i, onUploadProgress: l, onDownloadProgress: c } = r, u, m, w, v, p;
|
|
@@ -2151,17 +2155,17 @@ const Xt = (e) => {
|
|
|
2151
2155
|
function _() {
|
|
2152
2156
|
if (!h)
|
|
2153
2157
|
return;
|
|
2154
|
-
const
|
|
2158
|
+
const L = N.from(
|
|
2155
2159
|
"getAllResponseHeaders" in h && h.getAllResponseHeaders()
|
|
2156
2160
|
), j = {
|
|
2157
2161
|
data: !i || i === "text" || i === "json" ? h.responseText : h.response,
|
|
2158
2162
|
status: h.status,
|
|
2159
2163
|
statusText: h.statusText,
|
|
2160
|
-
headers:
|
|
2164
|
+
headers: L,
|
|
2161
2165
|
config: e,
|
|
2162
2166
|
request: h
|
|
2163
2167
|
};
|
|
2164
|
-
|
|
2168
|
+
Kt(function(P) {
|
|
2165
2169
|
n(P), b();
|
|
2166
2170
|
}, function(P) {
|
|
2167
2171
|
s(P), b();
|
|
@@ -2176,7 +2180,7 @@ const Xt = (e) => {
|
|
|
2176
2180
|
X.event = F || null, s(X), h = null;
|
|
2177
2181
|
}, h.ontimeout = function() {
|
|
2178
2182
|
let F = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded";
|
|
2179
|
-
const j = r.transitional ||
|
|
2183
|
+
const j = r.transitional || Wt;
|
|
2180
2184
|
r.timeoutErrorMessage && (F = r.timeoutErrorMessage), s(new S(
|
|
2181
2185
|
F,
|
|
2182
2186
|
j.clarifyTimeoutError ? S.ETIMEDOUT : S.ECONNABORTED,
|
|
@@ -2185,17 +2189,17 @@ const Xt = (e) => {
|
|
|
2185
2189
|
)), h = null;
|
|
2186
2190
|
}, o === void 0 && a.setContentType(null), "setRequestHeader" in h && d.forEach(a.toJSON(), function(F, j) {
|
|
2187
2191
|
h.setRequestHeader(j, F);
|
|
2188
|
-
}), d.isUndefined(r.withCredentials) || (h.withCredentials = !!r.withCredentials), i && i !== "json" && (h.responseType = r.responseType), c && ([w, p] = Oe(c, !0), h.addEventListener("progress", w)), l && h.upload && ([m, v] = Oe(l), h.upload.addEventListener("progress", m), h.upload.addEventListener("loadend", v)), (r.cancelToken || r.signal) && (u = (
|
|
2189
|
-
h && (s(!
|
|
2192
|
+
}), d.isUndefined(r.withCredentials) || (h.withCredentials = !!r.withCredentials), i && i !== "json" && (h.responseType = r.responseType), c && ([w, p] = Oe(c, !0), h.addEventListener("progress", w)), l && h.upload && ([m, v] = Oe(l), h.upload.addEventListener("progress", m), h.upload.addEventListener("loadend", v)), (r.cancelToken || r.signal) && (u = (L) => {
|
|
2193
|
+
h && (s(!L || L.type ? new de(null, e, h) : L), h.abort(), h = null);
|
|
2190
2194
|
}, r.cancelToken && r.cancelToken.subscribe(u), r.signal && (r.signal.aborted ? u() : r.signal.addEventListener("abort", u)));
|
|
2191
|
-
const T =
|
|
2195
|
+
const T = So(r.url);
|
|
2192
2196
|
if (T && H.protocols.indexOf(T) === -1) {
|
|
2193
2197
|
s(new S("Unsupported protocol " + T + ":", S.ERR_BAD_REQUEST, e));
|
|
2194
2198
|
return;
|
|
2195
2199
|
}
|
|
2196
2200
|
h.send(o || null);
|
|
2197
2201
|
});
|
|
2198
|
-
},
|
|
2202
|
+
}, Lo = (e, t) => {
|
|
2199
2203
|
const { length: n } = e = e ? e.filter(Boolean) : [];
|
|
2200
2204
|
if (t || n) {
|
|
2201
2205
|
let s = new AbortController(), r;
|
|
@@ -2203,7 +2207,7 @@ const Xt = (e) => {
|
|
|
2203
2207
|
if (!r) {
|
|
2204
2208
|
r = !0, i();
|
|
2205
2209
|
const u = c instanceof Error ? c : this.reason;
|
|
2206
|
-
s.abort(u instanceof S ? u : new
|
|
2210
|
+
s.abort(u instanceof S ? u : new de(u instanceof Error ? u.message : u));
|
|
2207
2211
|
}
|
|
2208
2212
|
};
|
|
2209
2213
|
let a = t && setTimeout(() => {
|
|
@@ -2218,7 +2222,7 @@ const Xt = (e) => {
|
|
|
2218
2222
|
const { signal: l } = s;
|
|
2219
2223
|
return l.unsubscribe = () => d.asap(i), l;
|
|
2220
2224
|
}
|
|
2221
|
-
},
|
|
2225
|
+
}, Oo = function* (e, t) {
|
|
2222
2226
|
let n = e.byteLength;
|
|
2223
2227
|
if (n < t) {
|
|
2224
2228
|
yield e;
|
|
@@ -2227,10 +2231,10 @@ const Xt = (e) => {
|
|
|
2227
2231
|
let s = 0, r;
|
|
2228
2232
|
for (; s < n; )
|
|
2229
2233
|
r = s + t, yield e.slice(s, r), s = r;
|
|
2230
|
-
},
|
|
2231
|
-
for await (const n of
|
|
2232
|
-
yield*
|
|
2233
|
-
},
|
|
2234
|
+
}, To = async function* (e, t) {
|
|
2235
|
+
for await (const n of Ho(e))
|
|
2236
|
+
yield* Oo(n, t);
|
|
2237
|
+
}, Ho = async function* (e) {
|
|
2234
2238
|
if (e[Symbol.asyncIterator]) {
|
|
2235
2239
|
yield* e;
|
|
2236
2240
|
return;
|
|
@@ -2246,8 +2250,8 @@ const Xt = (e) => {
|
|
|
2246
2250
|
} finally {
|
|
2247
2251
|
await t.cancel();
|
|
2248
2252
|
}
|
|
2249
|
-
},
|
|
2250
|
-
const r =
|
|
2253
|
+
}, gt = (e, t, n, s) => {
|
|
2254
|
+
const r = To(e, t);
|
|
2251
2255
|
let o = 0, a, i = (l) => {
|
|
2252
2256
|
a || (a = !0, s && s(l));
|
|
2253
2257
|
};
|
|
@@ -2275,36 +2279,36 @@ const Xt = (e) => {
|
|
|
2275
2279
|
}, {
|
|
2276
2280
|
highWaterMark: 2
|
|
2277
2281
|
});
|
|
2278
|
-
},
|
|
2282
|
+
}, yt = 64 * 1024, { isFunction: ke } = d, Fo = (({ Request: e, Response: t }) => ({
|
|
2279
2283
|
Request: e,
|
|
2280
2284
|
Response: t
|
|
2281
2285
|
}))(d.global), {
|
|
2282
|
-
ReadableStream:
|
|
2283
|
-
TextEncoder:
|
|
2284
|
-
} = d.global,
|
|
2286
|
+
ReadableStream: wt,
|
|
2287
|
+
TextEncoder: bt
|
|
2288
|
+
} = d.global, xt = (e, ...t) => {
|
|
2285
2289
|
try {
|
|
2286
2290
|
return !!e(...t);
|
|
2287
2291
|
} catch {
|
|
2288
2292
|
return !1;
|
|
2289
2293
|
}
|
|
2290
|
-
},
|
|
2294
|
+
}, Bo = (e) => {
|
|
2291
2295
|
e = d.merge.call({
|
|
2292
2296
|
skipUndefined: !0
|
|
2293
|
-
},
|
|
2294
|
-
const { fetch: t, Request: n, Response: s } = e, r = t ?
|
|
2297
|
+
}, Fo, e);
|
|
2298
|
+
const { fetch: t, Request: n, Response: s } = e, r = t ? ke(t) : typeof fetch == "function", o = ke(n), a = ke(s);
|
|
2295
2299
|
if (!r)
|
|
2296
2300
|
return !1;
|
|
2297
|
-
const i = r &&
|
|
2301
|
+
const i = r && ke(wt), l = r && (typeof bt == "function" ? /* @__PURE__ */ ((p) => (b) => p.encode(b))(new bt()) : async (p) => new Uint8Array(await new n(p).arrayBuffer())), c = o && i && xt(() => {
|
|
2298
2302
|
let p = !1;
|
|
2299
2303
|
const b = new n(H.origin, {
|
|
2300
|
-
body: new
|
|
2304
|
+
body: new wt(),
|
|
2301
2305
|
method: "POST",
|
|
2302
2306
|
get duplex() {
|
|
2303
2307
|
return p = !0, "half";
|
|
2304
2308
|
}
|
|
2305
2309
|
}).headers.has("Content-Type");
|
|
2306
2310
|
return p && !b;
|
|
2307
|
-
}), u = a && i &&
|
|
2311
|
+
}), u = a && i && xt(() => d.isReadableStream(new s("").body)), m = {
|
|
2308
2312
|
stream: u && ((p) => p.body)
|
|
2309
2313
|
};
|
|
2310
2314
|
r && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((p) => {
|
|
@@ -2339,107 +2343,107 @@ const Xt = (e) => {
|
|
|
2339
2343
|
method: h,
|
|
2340
2344
|
data: _,
|
|
2341
2345
|
signal: T,
|
|
2342
|
-
cancelToken:
|
|
2346
|
+
cancelToken: L,
|
|
2343
2347
|
timeout: F,
|
|
2344
2348
|
onDownloadProgress: j,
|
|
2345
2349
|
onUploadProgress: X,
|
|
2346
2350
|
responseType: P,
|
|
2347
|
-
headers:
|
|
2348
|
-
withCredentials:
|
|
2349
|
-
fetchOptions:
|
|
2350
|
-
} =
|
|
2351
|
+
headers: Pe,
|
|
2352
|
+
withCredentials: Ce = "same-origin",
|
|
2353
|
+
fetchOptions: Qe
|
|
2354
|
+
} = Yt(p), et = t || fetch;
|
|
2351
2355
|
P = P ? (P + "").toLowerCase() : "text";
|
|
2352
|
-
let
|
|
2353
|
-
const Y =
|
|
2354
|
-
|
|
2356
|
+
let ve = Lo([T, L && L.toAbortSignal()], F), fe = null;
|
|
2357
|
+
const Y = ve && ve.unsubscribe && (() => {
|
|
2358
|
+
ve.unsubscribe();
|
|
2355
2359
|
});
|
|
2356
|
-
let
|
|
2360
|
+
let tt;
|
|
2357
2361
|
try {
|
|
2358
|
-
if (X && c && h !== "get" && h !== "head" && (
|
|
2359
|
-
let
|
|
2362
|
+
if (X && c && h !== "get" && h !== "head" && (tt = await v(Pe, _)) !== 0) {
|
|
2363
|
+
let J = new n(b, {
|
|
2360
2364
|
method: "POST",
|
|
2361
2365
|
body: _,
|
|
2362
2366
|
duplex: "half"
|
|
2363
2367
|
}), oe;
|
|
2364
|
-
if (d.isFormData(_) && (oe =
|
|
2365
|
-
const [
|
|
2366
|
-
|
|
2367
|
-
Oe(
|
|
2368
|
+
if (d.isFormData(_) && (oe = J.headers.get("content-type")) && Pe.setContentType(oe), J.body) {
|
|
2369
|
+
const [Me, _e] = pt(
|
|
2370
|
+
tt,
|
|
2371
|
+
Oe(ht(X))
|
|
2368
2372
|
);
|
|
2369
|
-
_ =
|
|
2373
|
+
_ = gt(J.body, yt, Me, _e);
|
|
2370
2374
|
}
|
|
2371
2375
|
}
|
|
2372
|
-
d.isString(
|
|
2373
|
-
const I = o && "credentials" in n.prototype,
|
|
2374
|
-
...
|
|
2375
|
-
signal:
|
|
2376
|
+
d.isString(Ce) || (Ce = Ce ? "include" : "omit");
|
|
2377
|
+
const I = o && "credentials" in n.prototype, nt = {
|
|
2378
|
+
...Qe,
|
|
2379
|
+
signal: ve,
|
|
2376
2380
|
method: h.toUpperCase(),
|
|
2377
|
-
headers:
|
|
2381
|
+
headers: Pe.normalize().toJSON(),
|
|
2378
2382
|
body: _,
|
|
2379
2383
|
duplex: "half",
|
|
2380
|
-
credentials: I ?
|
|
2384
|
+
credentials: I ? Ce : void 0
|
|
2381
2385
|
};
|
|
2382
|
-
|
|
2383
|
-
let
|
|
2384
|
-
const
|
|
2385
|
-
if (u && (j ||
|
|
2386
|
-
const
|
|
2387
|
-
["status", "statusText", "headers"].forEach((
|
|
2388
|
-
|
|
2386
|
+
fe = o && new n(b, nt);
|
|
2387
|
+
let G = await (o ? et(fe, Qe) : et(b, nt));
|
|
2388
|
+
const st = u && (P === "stream" || P === "response");
|
|
2389
|
+
if (u && (j || st && Y)) {
|
|
2390
|
+
const J = {};
|
|
2391
|
+
["status", "statusText", "headers"].forEach((rt) => {
|
|
2392
|
+
J[rt] = G[rt];
|
|
2389
2393
|
});
|
|
2390
|
-
const oe = d.toFiniteNumber(
|
|
2394
|
+
const oe = d.toFiniteNumber(G.headers.get("content-length")), [Me, _e] = j && pt(
|
|
2391
2395
|
oe,
|
|
2392
|
-
Oe(
|
|
2396
|
+
Oe(ht(j), !0)
|
|
2393
2397
|
) || [];
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2398
|
+
G = new s(
|
|
2399
|
+
gt(G.body, yt, Me, () => {
|
|
2400
|
+
_e && _e(), Y && Y();
|
|
2397
2401
|
}),
|
|
2398
|
-
|
|
2402
|
+
J
|
|
2399
2403
|
);
|
|
2400
2404
|
}
|
|
2401
2405
|
P = P || "text";
|
|
2402
|
-
let
|
|
2403
|
-
return !
|
|
2404
|
-
|
|
2405
|
-
data:
|
|
2406
|
-
headers: N.from(
|
|
2407
|
-
status:
|
|
2408
|
-
statusText:
|
|
2406
|
+
let an = await m[d.findKey(m, P) || "text"](G, p);
|
|
2407
|
+
return !st && Y && Y(), await new Promise((J, oe) => {
|
|
2408
|
+
Kt(J, oe, {
|
|
2409
|
+
data: an,
|
|
2410
|
+
headers: N.from(G.headers),
|
|
2411
|
+
status: G.status,
|
|
2412
|
+
statusText: G.statusText,
|
|
2409
2413
|
config: p,
|
|
2410
|
-
request:
|
|
2414
|
+
request: fe
|
|
2411
2415
|
});
|
|
2412
2416
|
});
|
|
2413
2417
|
} catch (I) {
|
|
2414
2418
|
throw Y && Y(), I && I.name === "TypeError" && /Load failed|fetch/i.test(I.message) ? Object.assign(
|
|
2415
|
-
new S("Network Error", S.ERR_NETWORK, p,
|
|
2419
|
+
new S("Network Error", S.ERR_NETWORK, p, fe),
|
|
2416
2420
|
{
|
|
2417
2421
|
cause: I.cause || I
|
|
2418
2422
|
}
|
|
2419
|
-
) : S.from(I, I && I.code, p,
|
|
2423
|
+
) : S.from(I, I && I.code, p, fe);
|
|
2420
2424
|
}
|
|
2421
2425
|
};
|
|
2422
|
-
},
|
|
2426
|
+
}, Vo = /* @__PURE__ */ new Map(), Qt = (e) => {
|
|
2423
2427
|
let t = e && e.env || {};
|
|
2424
2428
|
const { fetch: n, Request: s, Response: r } = t, o = [
|
|
2425
2429
|
s,
|
|
2426
2430
|
r,
|
|
2427
2431
|
n
|
|
2428
2432
|
];
|
|
2429
|
-
let a = o.length, i = a, l, c, u =
|
|
2433
|
+
let a = o.length, i = a, l, c, u = Vo;
|
|
2430
2434
|
for (; i--; )
|
|
2431
|
-
l = o[i], c = u.get(l), c === void 0 && u.set(l, c = i ? /* @__PURE__ */ new Map() :
|
|
2435
|
+
l = o[i], c = u.get(l), c === void 0 && u.set(l, c = i ? /* @__PURE__ */ new Map() : Bo(t)), u = c;
|
|
2432
2436
|
return c;
|
|
2433
2437
|
};
|
|
2434
|
-
|
|
2435
|
-
const
|
|
2436
|
-
http:
|
|
2437
|
-
xhr:
|
|
2438
|
+
Qt();
|
|
2439
|
+
const Ye = {
|
|
2440
|
+
http: Yr,
|
|
2441
|
+
xhr: $o,
|
|
2438
2442
|
fetch: {
|
|
2439
|
-
get:
|
|
2443
|
+
get: Qt
|
|
2440
2444
|
}
|
|
2441
2445
|
};
|
|
2442
|
-
d.forEach(
|
|
2446
|
+
d.forEach(Ye, (e, t) => {
|
|
2443
2447
|
if (e) {
|
|
2444
2448
|
try {
|
|
2445
2449
|
Object.defineProperty(e, "name", { value: t });
|
|
@@ -2448,8 +2452,8 @@ d.forEach(Xe, (e, t) => {
|
|
|
2448
2452
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
2449
2453
|
}
|
|
2450
2454
|
});
|
|
2451
|
-
const
|
|
2452
|
-
function
|
|
2455
|
+
const St = (e) => `- ${e}`, No = (e) => d.isFunction(e) || e === null || e === !1;
|
|
2456
|
+
function Po(e, t) {
|
|
2453
2457
|
e = d.isArray(e) ? e : [e];
|
|
2454
2458
|
const { length: n } = e;
|
|
2455
2459
|
let s, r;
|
|
@@ -2457,7 +2461,7 @@ function Vo(e, t) {
|
|
|
2457
2461
|
for (let a = 0; a < n; a++) {
|
|
2458
2462
|
s = e[a];
|
|
2459
2463
|
let i;
|
|
2460
|
-
if (r = s, !
|
|
2464
|
+
if (r = s, !No(s) && (r = Ye[(i = String(s)).toLowerCase()], r === void 0))
|
|
2461
2465
|
throw new S(`Unknown adapter '${i}'`);
|
|
2462
2466
|
if (r && (d.isFunction(r) || (r = r.get(t))))
|
|
2463
2467
|
break;
|
|
@@ -2468,8 +2472,8 @@ function Vo(e, t) {
|
|
|
2468
2472
|
([l, c]) => `adapter ${l} ` + (c === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
2469
2473
|
);
|
|
2470
2474
|
let i = n ? a.length > 1 ? `since :
|
|
2471
|
-
` + a.map(
|
|
2472
|
-
`) : " " +
|
|
2475
|
+
` + a.map(St).join(`
|
|
2476
|
+
`) : " " + St(a[0]) : "as no adapter specified";
|
|
2473
2477
|
throw new S(
|
|
2474
2478
|
"There is no suitable adapter to dispatch the request " + i,
|
|
2475
2479
|
"ERR_NOT_SUPPORT"
|
|
@@ -2477,50 +2481,50 @@ function Vo(e, t) {
|
|
|
2477
2481
|
}
|
|
2478
2482
|
return r;
|
|
2479
2483
|
}
|
|
2480
|
-
const
|
|
2484
|
+
const en = {
|
|
2481
2485
|
/**
|
|
2482
2486
|
* Resolve an adapter from a list of adapter names or functions.
|
|
2483
2487
|
* @type {Function}
|
|
2484
2488
|
*/
|
|
2485
|
-
getAdapter:
|
|
2489
|
+
getAdapter: Po,
|
|
2486
2490
|
/**
|
|
2487
2491
|
* Exposes all known adapters
|
|
2488
2492
|
* @type {Object<string, Function|Object>}
|
|
2489
2493
|
*/
|
|
2490
|
-
adapters:
|
|
2494
|
+
adapters: Ye
|
|
2491
2495
|
};
|
|
2492
|
-
function
|
|
2496
|
+
function Ie(e) {
|
|
2493
2497
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
2494
|
-
throw new
|
|
2498
|
+
throw new de(null, e);
|
|
2495
2499
|
}
|
|
2496
|
-
function
|
|
2497
|
-
return
|
|
2500
|
+
function Ct(e) {
|
|
2501
|
+
return Ie(e), e.headers = N.from(e.headers), e.data = De.call(
|
|
2498
2502
|
e,
|
|
2499
2503
|
e.transformRequest
|
|
2500
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
2501
|
-
return
|
|
2504
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), en.getAdapter(e.adapter || Se.adapter, e)(e).then(function(s) {
|
|
2505
|
+
return Ie(e), s.data = De.call(
|
|
2502
2506
|
e,
|
|
2503
2507
|
e.transformResponse,
|
|
2504
2508
|
s
|
|
2505
2509
|
), s.headers = N.from(s.headers), s;
|
|
2506
2510
|
}, function(s) {
|
|
2507
|
-
return
|
|
2511
|
+
return Jt(s) || (Ie(e), s && s.response && (s.response.data = De.call(
|
|
2508
2512
|
e,
|
|
2509
2513
|
e.transformResponse,
|
|
2510
2514
|
s.response
|
|
2511
2515
|
), s.response.headers = N.from(s.response.headers))), Promise.reject(s);
|
|
2512
2516
|
});
|
|
2513
2517
|
}
|
|
2514
|
-
const
|
|
2518
|
+
const tn = "1.13.2", Ne = {};
|
|
2515
2519
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
2516
|
-
|
|
2520
|
+
Ne[e] = function(s) {
|
|
2517
2521
|
return typeof s === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
2518
2522
|
};
|
|
2519
2523
|
});
|
|
2520
|
-
const
|
|
2521
|
-
|
|
2524
|
+
const vt = {};
|
|
2525
|
+
Ne.transitional = function(t, n, s) {
|
|
2522
2526
|
function r(o, a) {
|
|
2523
|
-
return "[Axios v" +
|
|
2527
|
+
return "[Axios v" + tn + "] Transitional option '" + o + "'" + a + (s ? ". " + s : "");
|
|
2524
2528
|
}
|
|
2525
2529
|
return (o, a, i) => {
|
|
2526
2530
|
if (t === !1)
|
|
@@ -2528,7 +2532,7 @@ Ve.transitional = function(t, n, s) {
|
|
|
2528
2532
|
r(a, " has been removed" + (n ? " in " + n : "")),
|
|
2529
2533
|
S.ERR_DEPRECATED
|
|
2530
2534
|
);
|
|
2531
|
-
return n && !
|
|
2535
|
+
return n && !vt[a] && (vt[a] = !0, console.warn(
|
|
2532
2536
|
r(
|
|
2533
2537
|
a,
|
|
2534
2538
|
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
@@ -2536,10 +2540,10 @@ Ve.transitional = function(t, n, s) {
|
|
|
2536
2540
|
)), t ? t(o, a, i) : !0;
|
|
2537
2541
|
};
|
|
2538
2542
|
};
|
|
2539
|
-
|
|
2543
|
+
Ne.spelling = function(t) {
|
|
2540
2544
|
return (n, s) => (console.warn(`${s} is likely a misspelling of ${t}`), !0);
|
|
2541
2545
|
};
|
|
2542
|
-
function
|
|
2546
|
+
function Mo(e, t, n) {
|
|
2543
2547
|
if (typeof e != "object")
|
|
2544
2548
|
throw new S("options must be an object", S.ERR_BAD_OPTION_VALUE);
|
|
2545
2549
|
const s = Object.keys(e);
|
|
@@ -2556,15 +2560,15 @@ function No(e, t, n) {
|
|
|
2556
2560
|
throw new S("Unknown option " + o, S.ERR_BAD_OPTION);
|
|
2557
2561
|
}
|
|
2558
2562
|
}
|
|
2559
|
-
const
|
|
2560
|
-
assertOptions:
|
|
2561
|
-
validators:
|
|
2562
|
-
}, z =
|
|
2563
|
+
const Ae = {
|
|
2564
|
+
assertOptions: Mo,
|
|
2565
|
+
validators: Ne
|
|
2566
|
+
}, z = Ae.validators;
|
|
2563
2567
|
let ee = class {
|
|
2564
2568
|
constructor(t) {
|
|
2565
2569
|
this.defaults = t || {}, this.interceptors = {
|
|
2566
|
-
request: new
|
|
2567
|
-
response: new
|
|
2570
|
+
request: new dt(),
|
|
2571
|
+
response: new dt()
|
|
2568
2572
|
};
|
|
2569
2573
|
}
|
|
2570
2574
|
/**
|
|
@@ -2595,16 +2599,16 @@ let ee = class {
|
|
|
2595
2599
|
_request(t, n) {
|
|
2596
2600
|
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = te(this.defaults, n);
|
|
2597
2601
|
const { transitional: s, paramsSerializer: r, headers: o } = n;
|
|
2598
|
-
s !== void 0 &&
|
|
2602
|
+
s !== void 0 && Ae.assertOptions(s, {
|
|
2599
2603
|
silentJSONParsing: z.transitional(z.boolean),
|
|
2600
2604
|
forcedJSONParsing: z.transitional(z.boolean),
|
|
2601
2605
|
clarifyTimeoutError: z.transitional(z.boolean)
|
|
2602
2606
|
}, !1), r != null && (d.isFunction(r) ? n.paramsSerializer = {
|
|
2603
2607
|
serialize: r
|
|
2604
|
-
} :
|
|
2608
|
+
} : Ae.assertOptions(r, {
|
|
2605
2609
|
encode: z.function,
|
|
2606
2610
|
serialize: z.function
|
|
2607
|
-
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0),
|
|
2611
|
+
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), Ae.assertOptions(n, {
|
|
2608
2612
|
baseUrl: z.spelling("baseURL"),
|
|
2609
2613
|
withXsrfToken: z.spelling("withXSRFToken")
|
|
2610
2614
|
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
@@ -2629,7 +2633,7 @@ let ee = class {
|
|
|
2629
2633
|
});
|
|
2630
2634
|
let u, m = 0, w;
|
|
2631
2635
|
if (!l) {
|
|
2632
|
-
const p = [
|
|
2636
|
+
const p = [Ct.bind(this), void 0];
|
|
2633
2637
|
for (p.unshift(...i), p.push(...c), w = p.length, u = Promise.resolve(n); m < w; )
|
|
2634
2638
|
u = u.then(p[m++], p[m++]);
|
|
2635
2639
|
return u;
|
|
@@ -2646,7 +2650,7 @@ let ee = class {
|
|
|
2646
2650
|
}
|
|
2647
2651
|
}
|
|
2648
2652
|
try {
|
|
2649
|
-
u =
|
|
2653
|
+
u = Ct.call(this, v);
|
|
2650
2654
|
} catch (p) {
|
|
2651
2655
|
return Promise.reject(p);
|
|
2652
2656
|
}
|
|
@@ -2656,8 +2660,8 @@ let ee = class {
|
|
|
2656
2660
|
}
|
|
2657
2661
|
getUri(t) {
|
|
2658
2662
|
t = te(this.defaults, t);
|
|
2659
|
-
const n =
|
|
2660
|
-
return
|
|
2663
|
+
const n = Xt(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
2664
|
+
return Zt(n, t.params, t.paramsSerializer);
|
|
2661
2665
|
}
|
|
2662
2666
|
};
|
|
2663
2667
|
d.forEach(["delete", "get", "head", "options"], function(t) {
|
|
@@ -2684,7 +2688,7 @@ d.forEach(["post", "put", "patch"], function(t) {
|
|
|
2684
2688
|
}
|
|
2685
2689
|
ee.prototype[t] = n(), ee.prototype[t + "Form"] = n(!0);
|
|
2686
2690
|
});
|
|
2687
|
-
let
|
|
2691
|
+
let Uo = class nn {
|
|
2688
2692
|
constructor(t) {
|
|
2689
2693
|
if (typeof t != "function")
|
|
2690
2694
|
throw new TypeError("executor must be a function.");
|
|
@@ -2708,7 +2712,7 @@ let Po = class tn {
|
|
|
2708
2712
|
s.unsubscribe(o);
|
|
2709
2713
|
}, a;
|
|
2710
2714
|
}, t(function(o, a, i) {
|
|
2711
|
-
s.reason || (s.reason = new
|
|
2715
|
+
s.reason || (s.reason = new de(o, a, i), n(s.reason));
|
|
2712
2716
|
});
|
|
2713
2717
|
}
|
|
2714
2718
|
/**
|
|
@@ -2750,22 +2754,22 @@ let Po = class tn {
|
|
|
2750
2754
|
static source() {
|
|
2751
2755
|
let t;
|
|
2752
2756
|
return {
|
|
2753
|
-
token: new
|
|
2757
|
+
token: new nn(function(r) {
|
|
2754
2758
|
t = r;
|
|
2755
2759
|
}),
|
|
2756
2760
|
cancel: t
|
|
2757
2761
|
};
|
|
2758
2762
|
}
|
|
2759
2763
|
};
|
|
2760
|
-
function
|
|
2764
|
+
function jo(e) {
|
|
2761
2765
|
return function(n) {
|
|
2762
2766
|
return e.apply(null, n);
|
|
2763
2767
|
};
|
|
2764
2768
|
}
|
|
2765
|
-
function
|
|
2769
|
+
function Do(e) {
|
|
2766
2770
|
return d.isObject(e) && e.isAxiosError === !0;
|
|
2767
2771
|
}
|
|
2768
|
-
const
|
|
2772
|
+
const Ge = {
|
|
2769
2773
|
Continue: 100,
|
|
2770
2774
|
SwitchingProtocols: 101,
|
|
2771
2775
|
Processing: 102,
|
|
@@ -2836,74 +2840,96 @@ const We = {
|
|
|
2836
2840
|
SslHandshakeFailed: 525,
|
|
2837
2841
|
InvalidSslCertificate: 526
|
|
2838
2842
|
};
|
|
2839
|
-
Object.entries(
|
|
2840
|
-
|
|
2843
|
+
Object.entries(Ge).forEach(([e, t]) => {
|
|
2844
|
+
Ge[t] = e;
|
|
2841
2845
|
});
|
|
2842
|
-
function
|
|
2843
|
-
const t = new ee(e), n =
|
|
2846
|
+
function sn(e) {
|
|
2847
|
+
const t = new ee(e), n = Ft(ee.prototype.request, t);
|
|
2844
2848
|
return d.extend(n, ee.prototype, t, { allOwnKeys: !0 }), d.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(r) {
|
|
2845
|
-
return
|
|
2849
|
+
return sn(te(e, r));
|
|
2846
2850
|
}, n;
|
|
2847
2851
|
}
|
|
2848
|
-
const k =
|
|
2852
|
+
const k = sn(Se);
|
|
2849
2853
|
k.Axios = ee;
|
|
2850
|
-
k.CanceledError =
|
|
2851
|
-
k.CancelToken =
|
|
2852
|
-
k.isCancel =
|
|
2853
|
-
k.VERSION =
|
|
2854
|
-
k.toFormData =
|
|
2854
|
+
k.CanceledError = de;
|
|
2855
|
+
k.CancelToken = Uo;
|
|
2856
|
+
k.isCancel = Jt;
|
|
2857
|
+
k.VERSION = tn;
|
|
2858
|
+
k.toFormData = Ve;
|
|
2855
2859
|
k.AxiosError = S;
|
|
2856
2860
|
k.Cancel = k.CanceledError;
|
|
2857
2861
|
k.all = function(t) {
|
|
2858
2862
|
return Promise.all(t);
|
|
2859
2863
|
};
|
|
2860
|
-
k.spread =
|
|
2861
|
-
k.isAxiosError =
|
|
2864
|
+
k.spread = jo;
|
|
2865
|
+
k.isAxiosError = Do;
|
|
2862
2866
|
k.mergeConfig = te;
|
|
2863
2867
|
k.AxiosHeaders = N;
|
|
2864
|
-
k.formToJSON = (e) =>
|
|
2865
|
-
k.getAdapter =
|
|
2866
|
-
k.HttpStatusCode =
|
|
2868
|
+
k.formToJSON = (e) => Gt(d.isHTMLForm(e) ? new FormData(e) : e);
|
|
2869
|
+
k.getAdapter = en.getAdapter;
|
|
2870
|
+
k.HttpStatusCode = Ge;
|
|
2867
2871
|
k.default = k;
|
|
2868
2872
|
const {
|
|
2869
|
-
Axios:
|
|
2870
|
-
AxiosError:
|
|
2871
|
-
CanceledError:
|
|
2872
|
-
isCancel:
|
|
2873
|
-
CancelToken:
|
|
2874
|
-
VERSION:
|
|
2875
|
-
all:
|
|
2876
|
-
Cancel:
|
|
2877
|
-
isAxiosError:
|
|
2878
|
-
spread:
|
|
2879
|
-
toFormData:
|
|
2880
|
-
AxiosHeaders:
|
|
2881
|
-
HttpStatusCode:
|
|
2882
|
-
formToJSON:
|
|
2883
|
-
getAdapter:
|
|
2884
|
-
mergeConfig:
|
|
2885
|
-
} = k,
|
|
2873
|
+
Axios: hi,
|
|
2874
|
+
AxiosError: mi,
|
|
2875
|
+
CanceledError: gi,
|
|
2876
|
+
isCancel: yi,
|
|
2877
|
+
CancelToken: wi,
|
|
2878
|
+
VERSION: bi,
|
|
2879
|
+
all: xi,
|
|
2880
|
+
Cancel: Si,
|
|
2881
|
+
isAxiosError: Ci,
|
|
2882
|
+
spread: vi,
|
|
2883
|
+
toFormData: _i,
|
|
2884
|
+
AxiosHeaders: ki,
|
|
2885
|
+
HttpStatusCode: Ri,
|
|
2886
|
+
formToJSON: Ei,
|
|
2887
|
+
getAdapter: Ai,
|
|
2888
|
+
mergeConfig: $i
|
|
2889
|
+
} = k, Io = (e) => {
|
|
2886
2890
|
const t = document.cookie.match(new RegExp(`(^| )${e}=([^;]+)`));
|
|
2887
2891
|
return t ? t[2] : null;
|
|
2888
|
-
},
|
|
2892
|
+
}, zo = (e, t, n = {}) => {
|
|
2889
2893
|
const {
|
|
2890
2894
|
maxAge: s = 31536e3,
|
|
2891
2895
|
// 365 days in seconds
|
|
2892
|
-
domain: r =
|
|
2896
|
+
domain: r = rn(),
|
|
2893
2897
|
secure: o = !0,
|
|
2894
2898
|
sameSite: a = "Lax",
|
|
2895
2899
|
path: i = "/"
|
|
2896
2900
|
} = n;
|
|
2897
2901
|
let l = `${e}=${t}; max-age=${s}; path=${i}; samesite=${a}`;
|
|
2898
2902
|
r && (l += `; domain=${r}`), o && (l += "; secure"), document.cookie = l;
|
|
2899
|
-
},
|
|
2900
|
-
const { domain: n =
|
|
2903
|
+
}, qo = (e, t = {}) => {
|
|
2904
|
+
const { domain: n = rn(), path: s = "/" } = t;
|
|
2901
2905
|
let r = `${e}=; max-age=0; path=${s}`;
|
|
2902
2906
|
n && (r += `; domain=${n}`), document.cookie = r;
|
|
2903
|
-
},
|
|
2907
|
+
}, rn = () => {
|
|
2904
2908
|
const e = window.location.hostname;
|
|
2905
2909
|
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;
|
|
2906
|
-
},
|
|
2910
|
+
}, on = [];
|
|
2911
|
+
function Zo(e) {
|
|
2912
|
+
on.push(e);
|
|
2913
|
+
}
|
|
2914
|
+
function Wo() {
|
|
2915
|
+
on.forEach((e) => e());
|
|
2916
|
+
}
|
|
2917
|
+
function Li(e) {
|
|
2918
|
+
let t = !1;
|
|
2919
|
+
return Zo(() => {
|
|
2920
|
+
t = !1;
|
|
2921
|
+
}), {
|
|
2922
|
+
bootstrapApp: async () => {
|
|
2923
|
+
if (!t)
|
|
2924
|
+
try {
|
|
2925
|
+
await e(), t = !0;
|
|
2926
|
+
} catch (r) {
|
|
2927
|
+
throw console.error("Error during app bootstrap:", r), r;
|
|
2928
|
+
}
|
|
2929
|
+
}
|
|
2930
|
+
};
|
|
2931
|
+
}
|
|
2932
|
+
const ze = "bolt-next-token", Z = ye("auth", () => {
|
|
2907
2933
|
const e = ne({
|
|
2908
2934
|
user: null,
|
|
2909
2935
|
token: null,
|
|
@@ -2939,10 +2965,10 @@ const {
|
|
|
2939
2965
|
}), t = (c = {}) => {
|
|
2940
2966
|
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);
|
|
2941
2967
|
}, n = (c) => {
|
|
2942
|
-
|
|
2968
|
+
zo(ze, c), e.token = c;
|
|
2943
2969
|
}, s = () => {
|
|
2944
|
-
|
|
2945
|
-
}, r = () =>
|
|
2970
|
+
qo(ze), e.token = null;
|
|
2971
|
+
}, r = () => Io(ze), o = async (c) => {
|
|
2946
2972
|
const u = await k.post(e.endpoints.login, c), m = u.headers.authorization;
|
|
2947
2973
|
return n(m), e.user = u.data, e.callbacks.onLoginSuccess && await e.callbacks.onLoginSuccess(u.data), u.data;
|
|
2948
2974
|
}, a = async () => {
|
|
@@ -2959,7 +2985,7 @@ const {
|
|
|
2959
2985
|
} catch (c) {
|
|
2960
2986
|
throw e.callbacks.onLogoutError && await e.callbacks.onLogoutError(c), c;
|
|
2961
2987
|
} finally {
|
|
2962
|
-
s(), e.user = null;
|
|
2988
|
+
s(), e.user = null, Wo();
|
|
2963
2989
|
}
|
|
2964
2990
|
}, i = async () => {
|
|
2965
2991
|
const c = e.overrideToken || r();
|
|
@@ -2977,7 +3003,7 @@ const {
|
|
|
2977
3003
|
} finally {
|
|
2978
3004
|
e.ready = !0;
|
|
2979
3005
|
}
|
|
2980
|
-
}, l =
|
|
3006
|
+
}, l = $(() => e.overrideToken ? !0 : !!e.token && !!e.user);
|
|
2981
3007
|
return {
|
|
2982
3008
|
state: e,
|
|
2983
3009
|
initialize: t,
|
|
@@ -2989,17 +3015,17 @@ const {
|
|
|
2989
3015
|
clearTokenCookie: s,
|
|
2990
3016
|
getTokenCookie: r
|
|
2991
3017
|
};
|
|
2992
|
-
}),
|
|
3018
|
+
}), Go = { class: "h-full grid place-content-center relative" }, Jo = { class: "absolute top-8 left-8" }, Ko = ["src"], Xo = {
|
|
2993
3019
|
key: 1,
|
|
2994
3020
|
width: "59",
|
|
2995
3021
|
height: "23",
|
|
2996
3022
|
viewBox: "0 0 59 23",
|
|
2997
3023
|
fill: "none",
|
|
2998
3024
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2999
|
-
},
|
|
3025
|
+
}, Yo = { class: "max-w-sm grid gap-y-1 -mt-8" }, Qo = { class: "mb-7" }, ea = { class: "text-gray-600" }, ta = { class: "grid grid-flow-col justify-between mt-1 mb-4" }, na = {
|
|
3000
3026
|
key: 0,
|
|
3001
3027
|
class: "text-red-600 text-sm mb-2"
|
|
3002
|
-
},
|
|
3028
|
+
}, sa = { key: 0 }, ra = { key: 1 }, oa = {
|
|
3003
3029
|
__name: "SparkLoginView",
|
|
3004
3030
|
props: {
|
|
3005
3031
|
logo: {
|
|
@@ -3016,7 +3042,7 @@ const {
|
|
|
3016
3042
|
}
|
|
3017
3043
|
},
|
|
3018
3044
|
setup(e) {
|
|
3019
|
-
const t = se(), n =
|
|
3045
|
+
const t = se(), n = Te(), s = Tt(), r = Z(), o = e, a = q(!1), i = q(""), l = async (c) => {
|
|
3020
3046
|
a.value = !0, i.value = "";
|
|
3021
3047
|
try {
|
|
3022
3048
|
await r.login(c);
|
|
@@ -3037,14 +3063,14 @@ const {
|
|
|
3037
3063
|
};
|
|
3038
3064
|
return (c, u) => {
|
|
3039
3065
|
const m = U("FormKit"), w = U("router-link");
|
|
3040
|
-
return g(), y("div",
|
|
3041
|
-
f("div",
|
|
3066
|
+
return g(), y("div", Go, [
|
|
3067
|
+
f("div", Jo, [
|
|
3042
3068
|
o.logo ? (g(), y("img", {
|
|
3043
3069
|
key: 0,
|
|
3044
3070
|
src: o.logo,
|
|
3045
3071
|
alt: "Logo",
|
|
3046
3072
|
class: "h-[23px] w-auto"
|
|
3047
|
-
}, null, 8,
|
|
3073
|
+
}, null, 8, Ko)) : (g(), y("svg", Xo, [...u[0] || (u[0] = [
|
|
3048
3074
|
f("path", {
|
|
3049
3075
|
d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
|
|
3050
3076
|
fill: "#1C64F2"
|
|
@@ -3063,17 +3089,17 @@ const {
|
|
|
3063
3089
|
}, null, -1)
|
|
3064
3090
|
])]))
|
|
3065
3091
|
]),
|
|
3066
|
-
f("div",
|
|
3067
|
-
f("div",
|
|
3092
|
+
f("div", Yo, [
|
|
3093
|
+
f("div", Qo, [
|
|
3068
3094
|
u[1] || (u[1] = f("h1", { class: "text-4xl text-gray-900 semibold tracking-tight mb-3" }, "Log in", -1)),
|
|
3069
|
-
f("p",
|
|
3095
|
+
f("p", ea, " Welcome back" + O(x(s).state.app ? ` to ${x(s).state.app}` : "") + "! Please enter your details. ", 1)
|
|
3070
3096
|
]),
|
|
3071
3097
|
C(m, {
|
|
3072
3098
|
type: "form",
|
|
3073
3099
|
onSubmit: l,
|
|
3074
3100
|
actions: !1
|
|
3075
3101
|
}, {
|
|
3076
|
-
default:
|
|
3102
|
+
default: A(() => [
|
|
3077
3103
|
C(m, {
|
|
3078
3104
|
label: "Email",
|
|
3079
3105
|
name: "email",
|
|
@@ -3092,27 +3118,27 @@ const {
|
|
|
3092
3118
|
"outer-class": "max-w-full",
|
|
3093
3119
|
value: x(r).state.devCredentials.password
|
|
3094
3120
|
}, null, 8, ["value"]),
|
|
3095
|
-
f("div",
|
|
3121
|
+
f("div", ta, [
|
|
3096
3122
|
u[3] || (u[3] = f("span", null, null, -1)),
|
|
3097
3123
|
C(w, {
|
|
3098
3124
|
to: o.forgotPasswordRoute,
|
|
3099
3125
|
class: "text-sm text-primary-600 font-semibold"
|
|
3100
3126
|
}, {
|
|
3101
|
-
default:
|
|
3102
|
-
|
|
3127
|
+
default: A(() => [...u[2] || (u[2] = [
|
|
3128
|
+
K(" Forgot password ", -1)
|
|
3103
3129
|
])]),
|
|
3104
3130
|
_: 1
|
|
3105
3131
|
}, 8, ["to"])
|
|
3106
3132
|
]),
|
|
3107
|
-
i.value ? (g(), y("div",
|
|
3133
|
+
i.value ? (g(), y("div", na, O(i.value), 1)) : R("", !0),
|
|
3108
3134
|
C(x(re), {
|
|
3109
3135
|
type: "submit",
|
|
3110
3136
|
size: "xl",
|
|
3111
3137
|
disabled: a.value,
|
|
3112
3138
|
"button-class": "w-full mb-2"
|
|
3113
3139
|
}, {
|
|
3114
|
-
default:
|
|
3115
|
-
a.value ? (g(), y("span",
|
|
3140
|
+
default: A(() => [
|
|
3141
|
+
a.value ? (g(), y("span", ra, "Signing in...")) : (g(), y("span", sa, "Sign in"))
|
|
3116
3142
|
]),
|
|
3117
3143
|
_: 1
|
|
3118
3144
|
}, 8, ["disabled"])
|
|
@@ -3123,7 +3149,7 @@ const {
|
|
|
3123
3149
|
]);
|
|
3124
3150
|
};
|
|
3125
3151
|
}
|
|
3126
|
-
},
|
|
3152
|
+
}, aa = {
|
|
3127
3153
|
__name: "SparkLogoutView",
|
|
3128
3154
|
props: {
|
|
3129
3155
|
defaultRedirect: {
|
|
@@ -3132,27 +3158,27 @@ const {
|
|
|
3132
3158
|
}
|
|
3133
3159
|
},
|
|
3134
3160
|
setup(e) {
|
|
3135
|
-
const t = se(), n =
|
|
3136
|
-
return
|
|
3161
|
+
const t = se(), n = Te(), s = Z(), r = e;
|
|
3162
|
+
return dn(async () => {
|
|
3137
3163
|
await s.logout();
|
|
3138
3164
|
const o = n.query.redirect;
|
|
3139
3165
|
o && o.startsWith("http") ? window.location.href = o : await t.push(o || r.defaultRedirect);
|
|
3140
3166
|
}), (o, a) => null;
|
|
3141
3167
|
}
|
|
3142
|
-
},
|
|
3168
|
+
}, ia = { class: "h-full grid place-content-center relative" }, la = { class: "absolute top-8 left-8" }, ca = ["src"], ua = {
|
|
3143
3169
|
key: 1,
|
|
3144
3170
|
width: "59",
|
|
3145
3171
|
height: "23",
|
|
3146
3172
|
viewBox: "0 0 59 23",
|
|
3147
3173
|
fill: "none",
|
|
3148
3174
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3149
|
-
},
|
|
3175
|
+
}, da = { class: "max-w-sm grid gap-y-1 -mt-8" }, fa = {
|
|
3150
3176
|
key: 0,
|
|
3151
3177
|
class: "text-red-600 text-sm mb-2"
|
|
3152
|
-
},
|
|
3178
|
+
}, pa = {
|
|
3153
3179
|
key: 1,
|
|
3154
3180
|
class: "text-green-600 text-sm mb-2"
|
|
3155
|
-
},
|
|
3181
|
+
}, ha = { key: 0 }, ma = { key: 1 }, ga = {
|
|
3156
3182
|
__name: "SparkForgotPasswordView",
|
|
3157
3183
|
props: {
|
|
3158
3184
|
logo: {
|
|
@@ -3165,7 +3191,7 @@ const {
|
|
|
3165
3191
|
}
|
|
3166
3192
|
},
|
|
3167
3193
|
setup(e) {
|
|
3168
|
-
const t =
|
|
3194
|
+
const t = Z(), n = e, s = q(!1), r = q(""), o = q(""), a = async ({ email: i }) => {
|
|
3169
3195
|
s.value = !0, r.value = "", o.value = "";
|
|
3170
3196
|
try {
|
|
3171
3197
|
await k.post(t.state.endpoints.passwordEmail, { email: i }), o.value = "Password reset link sent! Check your email.";
|
|
@@ -3177,14 +3203,14 @@ const {
|
|
|
3177
3203
|
};
|
|
3178
3204
|
return (i, l) => {
|
|
3179
3205
|
const c = U("FormKit"), u = U("router-link");
|
|
3180
|
-
return g(), y("div",
|
|
3181
|
-
f("div",
|
|
3206
|
+
return g(), y("div", ia, [
|
|
3207
|
+
f("div", la, [
|
|
3182
3208
|
n.logo ? (g(), y("img", {
|
|
3183
3209
|
key: 0,
|
|
3184
3210
|
src: n.logo,
|
|
3185
3211
|
alt: "Logo",
|
|
3186
3212
|
class: "h-[23px] w-auto"
|
|
3187
|
-
}, null, 8,
|
|
3213
|
+
}, null, 8, ca)) : (g(), y("svg", ua, [...l[0] || (l[0] = [
|
|
3188
3214
|
f("path", {
|
|
3189
3215
|
d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
|
|
3190
3216
|
fill: "#1C64F2"
|
|
@@ -3203,7 +3229,7 @@ const {
|
|
|
3203
3229
|
}, null, -1)
|
|
3204
3230
|
])]))
|
|
3205
3231
|
]),
|
|
3206
|
-
f("div",
|
|
3232
|
+
f("div", da, [
|
|
3207
3233
|
l[2] || (l[2] = f("div", { class: "mb-7" }, [
|
|
3208
3234
|
f("h1", { class: "text-4xl text-gray-900 semibold tracking-tight mb-3" }, "Reset password"),
|
|
3209
3235
|
f("p", { class: "text-gray-600" }, " Enter your email and we'll send you a link to reset your password. ")
|
|
@@ -3213,7 +3239,7 @@ const {
|
|
|
3213
3239
|
onSubmit: a,
|
|
3214
3240
|
actions: !1
|
|
3215
3241
|
}, {
|
|
3216
|
-
default:
|
|
3242
|
+
default: A(() => [
|
|
3217
3243
|
C(c, {
|
|
3218
3244
|
label: "Email",
|
|
3219
3245
|
name: "email",
|
|
@@ -3222,16 +3248,16 @@ const {
|
|
|
3222
3248
|
validation: "required|email",
|
|
3223
3249
|
"outer-class": "max-w-full"
|
|
3224
3250
|
}),
|
|
3225
|
-
r.value ? (g(), y("div",
|
|
3226
|
-
o.value ? (g(), y("div",
|
|
3251
|
+
r.value ? (g(), y("div", fa, O(r.value), 1)) : R("", !0),
|
|
3252
|
+
o.value ? (g(), y("div", pa, O(o.value), 1)) : R("", !0),
|
|
3227
3253
|
C(x(re), {
|
|
3228
3254
|
type: "submit",
|
|
3229
3255
|
size: "xl",
|
|
3230
3256
|
disabled: s.value,
|
|
3231
3257
|
"button-class": "w-full mb-2"
|
|
3232
3258
|
}, {
|
|
3233
|
-
default:
|
|
3234
|
-
s.value ? (g(), y("span",
|
|
3259
|
+
default: A(() => [
|
|
3260
|
+
s.value ? (g(), y("span", ma, "Sending...")) : (g(), y("span", ha, "Send reset link"))
|
|
3235
3261
|
]),
|
|
3236
3262
|
_: 1
|
|
3237
3263
|
}, 8, ["disabled"]),
|
|
@@ -3239,8 +3265,8 @@ const {
|
|
|
3239
3265
|
to: n.loginRoute,
|
|
3240
3266
|
class: "text-sm text-center text-primary-600 font-semibold block"
|
|
3241
3267
|
}, {
|
|
3242
|
-
default:
|
|
3243
|
-
|
|
3268
|
+
default: A(() => [...l[1] || (l[1] = [
|
|
3269
|
+
K(" Back to login ", -1)
|
|
3244
3270
|
])]),
|
|
3245
3271
|
_: 1
|
|
3246
3272
|
}, 8, ["to"])
|
|
@@ -3251,17 +3277,17 @@ const {
|
|
|
3251
3277
|
]);
|
|
3252
3278
|
};
|
|
3253
3279
|
}
|
|
3254
|
-
},
|
|
3280
|
+
}, ya = { class: "h-full grid place-content-center relative" }, wa = { class: "absolute top-8 left-8" }, ba = ["src"], xa = {
|
|
3255
3281
|
key: 1,
|
|
3256
3282
|
width: "59",
|
|
3257
3283
|
height: "23",
|
|
3258
3284
|
viewBox: "0 0 59 23",
|
|
3259
3285
|
fill: "none",
|
|
3260
3286
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3261
|
-
},
|
|
3287
|
+
}, Sa = { class: "max-w-sm grid gap-y-1 -mt-8" }, Ca = {
|
|
3262
3288
|
key: 0,
|
|
3263
3289
|
class: "text-red-600 text-sm mb-2"
|
|
3264
|
-
},
|
|
3290
|
+
}, va = { key: 0 }, _a = { key: 1 }, ka = {
|
|
3265
3291
|
__name: "SparkResetPasswordView",
|
|
3266
3292
|
props: {
|
|
3267
3293
|
logo: {
|
|
@@ -3274,7 +3300,7 @@ const {
|
|
|
3274
3300
|
}
|
|
3275
3301
|
},
|
|
3276
3302
|
setup(e) {
|
|
3277
|
-
const t = se(), n =
|
|
3303
|
+
const t = se(), n = Te(), s = Z(), r = e, o = q(!1), a = q(""), i = async ({ password: l, password_confirmation: c }) => {
|
|
3278
3304
|
o.value = !0, a.value = "";
|
|
3279
3305
|
try {
|
|
3280
3306
|
await k.post(s.state.endpoints.passwordReset, {
|
|
@@ -3291,14 +3317,14 @@ const {
|
|
|
3291
3317
|
};
|
|
3292
3318
|
return (l, c) => {
|
|
3293
3319
|
const u = U("FormKit");
|
|
3294
|
-
return g(), y("div",
|
|
3295
|
-
f("div",
|
|
3320
|
+
return g(), y("div", ya, [
|
|
3321
|
+
f("div", wa, [
|
|
3296
3322
|
r.logo ? (g(), y("img", {
|
|
3297
3323
|
key: 0,
|
|
3298
3324
|
src: r.logo,
|
|
3299
3325
|
alt: "Logo",
|
|
3300
3326
|
class: "h-[23px] w-auto"
|
|
3301
|
-
}, null, 8,
|
|
3327
|
+
}, null, 8, ba)) : (g(), y("svg", xa, [...c[0] || (c[0] = [
|
|
3302
3328
|
f("path", {
|
|
3303
3329
|
d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
|
|
3304
3330
|
fill: "#1C64F2"
|
|
@@ -3317,7 +3343,7 @@ const {
|
|
|
3317
3343
|
}, null, -1)
|
|
3318
3344
|
])]))
|
|
3319
3345
|
]),
|
|
3320
|
-
f("div",
|
|
3346
|
+
f("div", Sa, [
|
|
3321
3347
|
c[1] || (c[1] = f("div", { class: "mb-7" }, [
|
|
3322
3348
|
f("h1", { class: "text-4xl text-gray-900 semibold tracking-tight mb-3" }, "Set new password"),
|
|
3323
3349
|
f("p", { class: "text-gray-600" }, " Enter your new password below. ")
|
|
@@ -3327,7 +3353,7 @@ const {
|
|
|
3327
3353
|
onSubmit: i,
|
|
3328
3354
|
actions: !1
|
|
3329
3355
|
}, {
|
|
3330
|
-
default:
|
|
3356
|
+
default: A(() => [
|
|
3331
3357
|
C(u, {
|
|
3332
3358
|
label: "New Password",
|
|
3333
3359
|
name: "password",
|
|
@@ -3344,15 +3370,15 @@ const {
|
|
|
3344
3370
|
validation: "required|confirm:password",
|
|
3345
3371
|
"outer-class": "max-w-full"
|
|
3346
3372
|
}),
|
|
3347
|
-
a.value ? (g(), y("div",
|
|
3373
|
+
a.value ? (g(), y("div", Ca, O(a.value), 1)) : R("", !0),
|
|
3348
3374
|
C(x(re), {
|
|
3349
3375
|
type: "submit",
|
|
3350
3376
|
size: "xl",
|
|
3351
3377
|
disabled: o.value,
|
|
3352
3378
|
"button-class": "w-full mb-2"
|
|
3353
3379
|
}, {
|
|
3354
|
-
default:
|
|
3355
|
-
o.value ? (g(), y("span",
|
|
3380
|
+
default: A(() => [
|
|
3381
|
+
o.value ? (g(), y("span", _a, "Resetting...")) : (g(), y("span", va, "Reset password"))
|
|
3356
3382
|
]),
|
|
3357
3383
|
_: 1
|
|
3358
3384
|
}, 8, ["disabled"])
|
|
@@ -3363,14 +3389,14 @@ const {
|
|
|
3363
3389
|
]);
|
|
3364
3390
|
};
|
|
3365
3391
|
}
|
|
3366
|
-
},
|
|
3392
|
+
}, Ra = { class: "h-full grid place-content-center relative" }, Ea = { class: "absolute top-8 left-8" }, Aa = ["src"], $a = {
|
|
3367
3393
|
key: 1,
|
|
3368
3394
|
width: "59",
|
|
3369
3395
|
height: "23",
|
|
3370
3396
|
viewBox: "0 0 59 23",
|
|
3371
3397
|
fill: "none",
|
|
3372
3398
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3373
|
-
},
|
|
3399
|
+
}, La = { class: "max-w-lg grid gap-y-6 text-center -mt-8" }, Oa = { class: "flex gap-4 justify-center" }, Ta = {
|
|
3374
3400
|
__name: "SparkError403View",
|
|
3375
3401
|
props: {
|
|
3376
3402
|
logo: {
|
|
@@ -3386,14 +3412,14 @@ const {
|
|
|
3386
3412
|
const t = se(), n = e, s = () => {
|
|
3387
3413
|
t.push(n.homeRoute);
|
|
3388
3414
|
};
|
|
3389
|
-
return (r, o) => (g(), y("div",
|
|
3390
|
-
f("div",
|
|
3415
|
+
return (r, o) => (g(), y("div", Ra, [
|
|
3416
|
+
f("div", Ea, [
|
|
3391
3417
|
n.logo ? (g(), y("img", {
|
|
3392
3418
|
key: 0,
|
|
3393
3419
|
src: n.logo,
|
|
3394
3420
|
alt: "Logo",
|
|
3395
3421
|
class: "h-[23px] w-auto"
|
|
3396
|
-
}, null, 8,
|
|
3422
|
+
}, null, 8, Aa)) : (g(), y("svg", $a, [...o[0] || (o[0] = [
|
|
3397
3423
|
f("path", {
|
|
3398
3424
|
d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
|
|
3399
3425
|
fill: "#1C64F2"
|
|
@@ -3412,23 +3438,23 @@ const {
|
|
|
3412
3438
|
}, null, -1)
|
|
3413
3439
|
])]))
|
|
3414
3440
|
]),
|
|
3415
|
-
f("div",
|
|
3441
|
+
f("div", La, [
|
|
3416
3442
|
o[2] || (o[2] = f("div", null, [
|
|
3417
3443
|
f("div", { class: "text-primary-600 text-7xl font-bold mb-4" }, "403"),
|
|
3418
3444
|
f("h1", { class: "text-3xl text-gray-900 font-semibold tracking-tight mb-3" }, " Access Forbidden "),
|
|
3419
3445
|
f("p", { class: "text-gray-600" }, [
|
|
3420
|
-
|
|
3446
|
+
K(" You don't have permission to access this resource."),
|
|
3421
3447
|
f("br"),
|
|
3422
|
-
|
|
3448
|
+
K(" If you believe this is an error, please contact your administrator. ")
|
|
3423
3449
|
])
|
|
3424
3450
|
], -1)),
|
|
3425
|
-
f("div",
|
|
3451
|
+
f("div", Oa, [
|
|
3426
3452
|
C(x(re), {
|
|
3427
3453
|
onClick: s,
|
|
3428
3454
|
size: "lg"
|
|
3429
3455
|
}, {
|
|
3430
|
-
default:
|
|
3431
|
-
|
|
3456
|
+
default: A(() => [...o[1] || (o[1] = [
|
|
3457
|
+
K(" Go to Home ", -1)
|
|
3432
3458
|
])]),
|
|
3433
3459
|
_: 1
|
|
3434
3460
|
})
|
|
@@ -3436,14 +3462,14 @@ const {
|
|
|
3436
3462
|
])
|
|
3437
3463
|
]));
|
|
3438
3464
|
}
|
|
3439
|
-
},
|
|
3465
|
+
}, Ha = { class: "h-full grid place-content-center relative" }, Fa = { class: "absolute top-8 left-8" }, Ba = ["src"], Va = {
|
|
3440
3466
|
key: 1,
|
|
3441
3467
|
width: "59",
|
|
3442
3468
|
height: "23",
|
|
3443
3469
|
viewBox: "0 0 59 23",
|
|
3444
3470
|
fill: "none",
|
|
3445
3471
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3446
|
-
},
|
|
3472
|
+
}, Na = { class: "max-w-lg grid gap-y-6 text-center -mt-8" }, Pa = { class: "flex gap-4 justify-center" }, Ma = {
|
|
3447
3473
|
__name: "SparkError404View",
|
|
3448
3474
|
props: {
|
|
3449
3475
|
logo: {
|
|
@@ -3459,14 +3485,14 @@ const {
|
|
|
3459
3485
|
const t = se(), n = e, s = () => {
|
|
3460
3486
|
t.push(n.homeRoute);
|
|
3461
3487
|
};
|
|
3462
|
-
return (r, o) => (g(), y("div",
|
|
3463
|
-
f("div",
|
|
3488
|
+
return (r, o) => (g(), y("div", Ha, [
|
|
3489
|
+
f("div", Fa, [
|
|
3464
3490
|
n.logo ? (g(), y("img", {
|
|
3465
3491
|
key: 0,
|
|
3466
3492
|
src: n.logo,
|
|
3467
3493
|
alt: "Logo",
|
|
3468
3494
|
class: "h-[23px] w-auto"
|
|
3469
|
-
}, null, 8,
|
|
3495
|
+
}, null, 8, Ba)) : (g(), y("svg", Va, [...o[0] || (o[0] = [
|
|
3470
3496
|
f("path", {
|
|
3471
3497
|
d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
|
|
3472
3498
|
fill: "#1C64F2"
|
|
@@ -3485,19 +3511,19 @@ const {
|
|
|
3485
3511
|
}, null, -1)
|
|
3486
3512
|
])]))
|
|
3487
3513
|
]),
|
|
3488
|
-
f("div",
|
|
3514
|
+
f("div", Na, [
|
|
3489
3515
|
o[2] || (o[2] = f("div", null, [
|
|
3490
3516
|
f("div", { class: "text-primary-600 text-7xl font-bold mb-4" }, "404"),
|
|
3491
3517
|
f("h1", { class: "text-3xl text-gray-900 font-semibold tracking-tight mb-3" }, " Page Not Found "),
|
|
3492
3518
|
f("p", { class: "text-gray-600" }, " The page you're looking for doesn't exist or has been moved. ")
|
|
3493
3519
|
], -1)),
|
|
3494
|
-
f("div",
|
|
3520
|
+
f("div", Pa, [
|
|
3495
3521
|
C(x(re), {
|
|
3496
3522
|
onClick: s,
|
|
3497
3523
|
size: "lg"
|
|
3498
3524
|
}, {
|
|
3499
|
-
default:
|
|
3500
|
-
|
|
3525
|
+
default: A(() => [...o[1] || (o[1] = [
|
|
3526
|
+
K(" Go to Home ", -1)
|
|
3501
3527
|
])]),
|
|
3502
3528
|
_: 1
|
|
3503
3529
|
})
|
|
@@ -3505,14 +3531,14 @@ const {
|
|
|
3505
3531
|
])
|
|
3506
3532
|
]));
|
|
3507
3533
|
}
|
|
3508
|
-
},
|
|
3534
|
+
}, Ua = { class: "h-full grid place-content-center relative" }, ja = { class: "absolute top-8 left-8" }, Da = ["src"], Ia = {
|
|
3509
3535
|
key: 1,
|
|
3510
3536
|
width: "59",
|
|
3511
3537
|
height: "23",
|
|
3512
3538
|
viewBox: "0 0 59 23",
|
|
3513
3539
|
fill: "none",
|
|
3514
3540
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3515
|
-
},
|
|
3541
|
+
}, za = { class: "max-w-lg grid gap-y-6 text-center -mt-8" }, qa = { class: "text-primary-600 text-7xl font-bold mb-4" }, Za = { class: "text-3xl text-gray-900 font-semibold tracking-tight mb-3" }, Wa = { class: "text-gray-600" }, Ga = { class: "flex gap-4 justify-center" }, Oi = {
|
|
3516
3542
|
__name: "SparkErrorGeneralView",
|
|
3517
3543
|
props: {
|
|
3518
3544
|
logo: {
|
|
@@ -3540,14 +3566,14 @@ const {
|
|
|
3540
3566
|
const t = se(), n = e, s = () => {
|
|
3541
3567
|
t.push(n.homeRoute);
|
|
3542
3568
|
};
|
|
3543
|
-
return (r, o) => (g(), y("div",
|
|
3544
|
-
f("div",
|
|
3569
|
+
return (r, o) => (g(), y("div", Ua, [
|
|
3570
|
+
f("div", ja, [
|
|
3545
3571
|
n.logo ? (g(), y("img", {
|
|
3546
3572
|
key: 0,
|
|
3547
3573
|
src: n.logo,
|
|
3548
3574
|
alt: "Logo",
|
|
3549
3575
|
class: "h-[23px] w-auto"
|
|
3550
|
-
}, null, 8,
|
|
3576
|
+
}, null, 8, Da)) : (g(), y("svg", Ia, [...o[0] || (o[0] = [
|
|
3551
3577
|
f("path", {
|
|
3552
3578
|
d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
|
|
3553
3579
|
fill: "#1C64F2"
|
|
@@ -3566,19 +3592,19 @@ const {
|
|
|
3566
3592
|
}, null, -1)
|
|
3567
3593
|
])]))
|
|
3568
3594
|
]),
|
|
3569
|
-
f("div",
|
|
3595
|
+
f("div", za, [
|
|
3570
3596
|
f("div", null, [
|
|
3571
|
-
f("div",
|
|
3572
|
-
f("h1",
|
|
3573
|
-
f("p",
|
|
3597
|
+
f("div", qa, O(n.errorCode || "Error"), 1),
|
|
3598
|
+
f("h1", Za, O(n.title || "Something went wrong"), 1),
|
|
3599
|
+
f("p", Wa, O(n.message || "An unexpected error occurred. Please try again later."), 1)
|
|
3574
3600
|
]),
|
|
3575
|
-
f("div",
|
|
3601
|
+
f("div", Ga, [
|
|
3576
3602
|
C(x(re), {
|
|
3577
3603
|
onClick: s,
|
|
3578
3604
|
size: "lg"
|
|
3579
3605
|
}, {
|
|
3580
|
-
default:
|
|
3581
|
-
|
|
3606
|
+
default: A(() => [...o[1] || (o[1] = [
|
|
3607
|
+
K(" Go to Home ", -1)
|
|
3582
3608
|
])]),
|
|
3583
3609
|
_: 1
|
|
3584
3610
|
})
|
|
@@ -3587,7 +3613,7 @@ const {
|
|
|
3587
3613
|
]));
|
|
3588
3614
|
}
|
|
3589
3615
|
};
|
|
3590
|
-
function
|
|
3616
|
+
function Ti(e = {}) {
|
|
3591
3617
|
const {
|
|
3592
3618
|
loginPath: t = "/login",
|
|
3593
3619
|
logoutPath: n = "/logout",
|
|
@@ -3600,41 +3626,41 @@ function Ei(e = {}) {
|
|
|
3600
3626
|
{
|
|
3601
3627
|
path: t,
|
|
3602
3628
|
name: "login",
|
|
3603
|
-
component:
|
|
3629
|
+
component: oa,
|
|
3604
3630
|
props: { logo: o, defaultRedirect: a },
|
|
3605
3631
|
meta: { auth: !1 }
|
|
3606
3632
|
},
|
|
3607
3633
|
{
|
|
3608
3634
|
path: n,
|
|
3609
3635
|
name: "logout",
|
|
3610
|
-
component:
|
|
3636
|
+
component: aa,
|
|
3611
3637
|
props: { defaultRedirect: t },
|
|
3612
3638
|
meta: { auth: !1 }
|
|
3613
3639
|
},
|
|
3614
3640
|
{
|
|
3615
3641
|
path: s,
|
|
3616
3642
|
name: "forgot-password",
|
|
3617
|
-
component:
|
|
3643
|
+
component: ga,
|
|
3618
3644
|
props: { logo: o, loginRoute: t },
|
|
3619
3645
|
meta: { auth: !1 }
|
|
3620
3646
|
},
|
|
3621
3647
|
{
|
|
3622
3648
|
path: r,
|
|
3623
3649
|
name: "password-reset",
|
|
3624
|
-
component:
|
|
3650
|
+
component: ka,
|
|
3625
3651
|
props: { logo: o, loginRoute: t },
|
|
3626
3652
|
meta: { auth: !1 }
|
|
3627
3653
|
}
|
|
3628
3654
|
];
|
|
3629
3655
|
}
|
|
3630
|
-
function
|
|
3656
|
+
function Hi(e, t = {}) {
|
|
3631
3657
|
const { defaultAuthenticatedRoute: n = "/dashboard" } = t;
|
|
3632
3658
|
e.beforeEach(async (s, r, o) => {
|
|
3633
|
-
const a =
|
|
3634
|
-
a.state.ready || await a.fetchUser(),
|
|
3659
|
+
const a = Z();
|
|
3660
|
+
a.state.ready || await a.fetchUser(), Ja(s, o, a, n);
|
|
3635
3661
|
});
|
|
3636
3662
|
}
|
|
3637
|
-
function
|
|
3663
|
+
function Ja(e, t, n, s) {
|
|
3638
3664
|
const r = e.meta.auth !== !1, o = n.check;
|
|
3639
3665
|
if (n.state.overrideToken && e.path === "/logout") {
|
|
3640
3666
|
t({ path: s });
|
|
@@ -3672,7 +3698,7 @@ function qa(e, t, n, s) {
|
|
|
3672
3698
|
t();
|
|
3673
3699
|
}
|
|
3674
3700
|
}
|
|
3675
|
-
function
|
|
3701
|
+
function Fi(e = {}) {
|
|
3676
3702
|
const {
|
|
3677
3703
|
forbiddenPath: t = "/error/403",
|
|
3678
3704
|
logo: n = "",
|
|
@@ -3681,12 +3707,12 @@ function Ai(e = {}) {
|
|
|
3681
3707
|
return {
|
|
3682
3708
|
path: t,
|
|
3683
3709
|
name: "error-403",
|
|
3684
|
-
component:
|
|
3710
|
+
component: Ta,
|
|
3685
3711
|
props: { logo: n, homeRoute: s },
|
|
3686
3712
|
meta: { auth: !1 }
|
|
3687
3713
|
};
|
|
3688
3714
|
}
|
|
3689
|
-
function
|
|
3715
|
+
function Bi(e = {}) {
|
|
3690
3716
|
const {
|
|
3691
3717
|
logo: t = "",
|
|
3692
3718
|
homeRoute: n = "/dashboard"
|
|
@@ -3694,12 +3720,20 @@ function Oi(e = {}) {
|
|
|
3694
3720
|
return {
|
|
3695
3721
|
path: "/:pathMatch(.*)*",
|
|
3696
3722
|
name: "error-404",
|
|
3697
|
-
component:
|
|
3723
|
+
component: Ma,
|
|
3698
3724
|
props: { logo: t, homeRoute: n },
|
|
3699
3725
|
meta: { auth: !1 }
|
|
3700
3726
|
};
|
|
3701
3727
|
}
|
|
3702
|
-
function
|
|
3728
|
+
function Vi(e, t) {
|
|
3729
|
+
e.beforeResolve(async (n) => {
|
|
3730
|
+
if (n.meta.auth !== !1) {
|
|
3731
|
+
const s = Z();
|
|
3732
|
+
s.state.ready && s.check && await t();
|
|
3733
|
+
}
|
|
3734
|
+
});
|
|
3735
|
+
}
|
|
3736
|
+
function Ka(e = {}) {
|
|
3703
3737
|
const t = k.create({
|
|
3704
3738
|
baseURL: e.baseURL || "",
|
|
3705
3739
|
timeout: e.timeout || 3e4,
|
|
@@ -3711,7 +3745,7 @@ function Za(e = {}) {
|
|
|
3711
3745
|
return t.interceptors.request.use(
|
|
3712
3746
|
(n) => {
|
|
3713
3747
|
try {
|
|
3714
|
-
const s =
|
|
3748
|
+
const s = Z();
|
|
3715
3749
|
s.state.overrideToken ? n.headers.Authorization = `Bearer ${s.state.overrideToken}` : s.state.token && (n.headers.Authorization = `Bearer ${s.state.token}`);
|
|
3716
3750
|
} catch {
|
|
3717
3751
|
}
|
|
@@ -3723,14 +3757,14 @@ function Za(e = {}) {
|
|
|
3723
3757
|
async (n) => {
|
|
3724
3758
|
if (n.response?.status === 401)
|
|
3725
3759
|
try {
|
|
3726
|
-
const s =
|
|
3760
|
+
const s = Z();
|
|
3727
3761
|
await s.logout(), window.location.href = s.state.routes.auth;
|
|
3728
3762
|
} catch (s) {
|
|
3729
3763
|
console.error("Error during auto-logout:", s), window.location.href = "/login";
|
|
3730
3764
|
}
|
|
3731
3765
|
if (n.response?.status === 403)
|
|
3732
3766
|
try {
|
|
3733
|
-
const s =
|
|
3767
|
+
const s = Z();
|
|
3734
3768
|
window.location.href = s.state.routes.forbidden;
|
|
3735
3769
|
} catch (s) {
|
|
3736
3770
|
console.error("Error during 403 redirect:", s), window.location.href = "/error/403";
|
|
@@ -3739,16 +3773,21 @@ function Za(e = {}) {
|
|
|
3739
3773
|
}
|
|
3740
3774
|
), t;
|
|
3741
3775
|
}
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
return e.provide("axios",
|
|
3776
|
+
let ie = null;
|
|
3777
|
+
function Ni(e, t = {}) {
|
|
3778
|
+
return ie = Ka(t), e.provide("axios", ie), e.config.globalProperties.$axios = ie, ie;
|
|
3779
|
+
}
|
|
3780
|
+
function Pi() {
|
|
3781
|
+
if (!ie)
|
|
3782
|
+
throw new Error("Axios instance not initialized. Call setupAxios() first.");
|
|
3783
|
+
return ie;
|
|
3745
3784
|
}
|
|
3746
|
-
const
|
|
3785
|
+
const Mi = ye("sparkNav", () => {
|
|
3747
3786
|
const e = ne({
|
|
3748
3787
|
menu: [],
|
|
3749
3788
|
collapsed: !1,
|
|
3750
3789
|
hidden: !1
|
|
3751
|
-
}), t = se(), n =
|
|
3790
|
+
}), t = se(), n = Te(), s = (c = []) => {
|
|
3752
3791
|
e.menu = c;
|
|
3753
3792
|
}, r = (c, u) => {
|
|
3754
3793
|
for (const m of c) {
|
|
@@ -3783,7 +3822,7 @@ const Ti = me("sparkNav", () => {
|
|
|
3783
3822
|
u(e.menu);
|
|
3784
3823
|
}
|
|
3785
3824
|
};
|
|
3786
|
-
return
|
|
3825
|
+
return fn(
|
|
3787
3826
|
() => n.path,
|
|
3788
3827
|
() => {
|
|
3789
3828
|
l();
|
|
@@ -3800,38 +3839,41 @@ const Ti = me("sparkNav", () => {
|
|
|
3800
3839
|
});
|
|
3801
3840
|
export {
|
|
3802
3841
|
B as Icons,
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3842
|
+
ai as SparkAlert,
|
|
3843
|
+
ms as SparkAppSelector,
|
|
3844
|
+
Os as SparkBrandSelector,
|
|
3806
3845
|
re as SparkButton,
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
|
|
3846
|
+
ii as SparkButtonGroup,
|
|
3847
|
+
li as SparkCard,
|
|
3848
|
+
ui as SparkDefaultContainer,
|
|
3849
|
+
Ta as SparkError403View,
|
|
3850
|
+
Ma as SparkError404View,
|
|
3851
|
+
Oi as SparkErrorGeneralView,
|
|
3852
|
+
ga as SparkForgotPasswordView,
|
|
3853
|
+
oa as SparkLoginView,
|
|
3854
|
+
aa as SparkLogoutView,
|
|
3855
|
+
Ms as SparkModalContainer,
|
|
3856
|
+
ci as SparkModalDialog,
|
|
3857
|
+
at as SparkOverlay,
|
|
3858
|
+
di as SparkPublicContainer,
|
|
3859
|
+
ka as SparkResetPasswordView,
|
|
3860
|
+
ri as addIcons,
|
|
3861
|
+
Fi as create403Route,
|
|
3862
|
+
Bi as create404Route,
|
|
3863
|
+
Ti as createAuthRoutes,
|
|
3864
|
+
Ka as createAxiosInstance,
|
|
3865
|
+
Li as createBootstrapService,
|
|
3866
|
+
Pi as getAxiosInstance,
|
|
3867
|
+
Hi as setupAuthGuards,
|
|
3868
|
+
Ni as setupAxios,
|
|
3869
|
+
Vi as setupBootstrapGuard,
|
|
3870
|
+
oi as setupFontAwesome,
|
|
3871
|
+
he as sparkModalService,
|
|
3872
|
+
ae as sparkOverlayService,
|
|
3831
3873
|
Ot as useSparkAppSelectorStore,
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3874
|
+
Tt as useSparkAppStore,
|
|
3875
|
+
Z as useSparkAuthStore,
|
|
3876
|
+
Ht as useSparkBrandFilterStore,
|
|
3877
|
+
Mi as useSparkNavStore,
|
|
3878
|
+
it as useSparkOverlay
|
|
3837
3879
|
};
|