@wishbone-media/spark 0.13.1 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +784 -746
- package/package.json +1 -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 ie, renderList as me, createCommentVNode as R, toDisplayString as L, 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 fe, 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 On, faExclamationTriangle as Ln, 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 ge } from "pinia";
|
|
6
|
+
import { TransitionRoot as At, Dialog as $t, TransitionChild as Oe, DialogPanel as Ot } 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: Ln,
|
|
27
|
+
farFaceSmileRelaxed: On,
|
|
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
|
-
],
|
|
158
|
+
], Lt = ge("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 = ge("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 =
|
|
240
|
+
const n = t, s = Lt(), 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(ie, null, me(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, L(u.name), 1),
|
|
274
|
+
u.current ? (g(), y("span", cs, " Active ")) : R("", !0)
|
|
275
275
|
]),
|
|
276
|
-
f("div",
|
|
276
|
+
f("div", us, L(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 = ge(
|
|
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
|
+
}, Os = { class: "text-sm text-gray-500" }, Ls = {
|
|
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(ie, null, me(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, L(l.name), 1),
|
|
392
|
+
l.current ? (g(), y("span", $s, " Current ")) : R("", !0)
|
|
393
393
|
]),
|
|
394
|
-
f("div",
|
|
394
|
+
f("div", Os, L(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 pe = 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(pe).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(pe).hide
|
|
594
594
|
}, {
|
|
595
|
-
default:
|
|
596
|
-
C(x(
|
|
595
|
+
default: A(() => [
|
|
596
|
+
C(x(Oe), {
|
|
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(Oe), {
|
|
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(Ot), { 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(pe).state.content), kt(x(pe).state.props, Rt(x(pe).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,7 +732,7 @@ 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, L(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"])
|
|
@@ -741,13 +741,13 @@ const fe = new Fs(), Bs = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
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(ie, null, me(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(L(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(Oe), {
|
|
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(Oe), {
|
|
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(Ot), {
|
|
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 _e = 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,12 +925,12 @@ 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 = Lt(), 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), _e.showRight(ms, w);
|
|
931
931
|
}, c = () => {
|
|
932
|
-
|
|
933
|
-
|
|
932
|
+
_e.showLeft(
|
|
933
|
+
Ls,
|
|
934
934
|
{},
|
|
935
935
|
{
|
|
936
936
|
select: (w) => {
|
|
@@ -938,22 +938,22 @@ const ve = new js(), Ds = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, Is =
|
|
|
938
938
|
}
|
|
939
939
|
}
|
|
940
940
|
);
|
|
941
|
-
}, u =
|
|
941
|
+
}, 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
942
|
return (w, v) => {
|
|
943
943
|
const p = U("font-awesome-icon"), b = U("router-view");
|
|
944
|
-
return g(), y(
|
|
944
|
+
return g(), y(ie, null, [
|
|
945
945
|
f("div", {
|
|
946
946
|
class: E([u.value, "fixed inset-y-0 flex transition-all z-100"])
|
|
947
947
|
}, [
|
|
948
|
-
f("div",
|
|
949
|
-
f("nav",
|
|
950
|
-
f("ul",
|
|
951
|
-
f("li",
|
|
952
|
-
f("ul",
|
|
953
|
-
f("li",
|
|
948
|
+
f("div", zs, [
|
|
949
|
+
f("nav", qs, [
|
|
950
|
+
f("ul", Zs, [
|
|
951
|
+
f("li", Ws, [
|
|
952
|
+
f("ul", Gs, [
|
|
953
|
+
f("li", Js, [
|
|
954
954
|
f("a", {
|
|
955
955
|
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] =
|
|
956
|
+
onClick: v[0] || (v[0] = fe((h) => e.mainNavStore.goto(e.appStore.state.homeRoute), ["prevent"]))
|
|
957
957
|
}, [
|
|
958
958
|
C(p, {
|
|
959
959
|
icon: x(B)[i.value],
|
|
@@ -962,11 +962,11 @@ const ve = new js(), Ds = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, Is =
|
|
|
962
962
|
]),
|
|
963
963
|
e.mainNavStore.state.collapsed ? R("", !0) : (g(), y("a", {
|
|
964
964
|
key: 0,
|
|
965
|
-
onClick: v[1] || (v[1] =
|
|
965
|
+
onClick: v[1] || (v[1] = fe((h) => e.mainNavStore.goto(e.appStore.state.homeRoute), ["prevent"])),
|
|
966
966
|
class: "font-medium text-gray-800 ml-[10px] cursor-pointer"
|
|
967
967
|
}, L(e.appStore.state.app), 1))
|
|
968
968
|
]),
|
|
969
|
-
(g(!0), y(
|
|
969
|
+
(g(!0), y(ie, null, me(e.mainNavStore.state.menu, (h) => (g(), y("li", {
|
|
970
970
|
key: h.name,
|
|
971
971
|
class: E({
|
|
972
972
|
"mt-[10px]": h.children,
|
|
@@ -979,14 +979,14 @@ const ve = new js(), Ds = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, Is =
|
|
|
979
979
|
"hover:bg-gray-100": h?.href
|
|
980
980
|
}, "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
981
|
href: h?.href,
|
|
982
|
-
onClick:
|
|
982
|
+
onClick: fe((_) => e.mainNavStore.goto(h.href), ["prevent"])
|
|
983
983
|
}, [
|
|
984
|
-
h.icon ? (g(),
|
|
984
|
+
h.icon ? (g(), W(p, {
|
|
985
985
|
key: 0,
|
|
986
986
|
icon: x(B)[h.icon],
|
|
987
987
|
class: E([[(h.current, "text-gray-400")], "size-4"])
|
|
988
988
|
}, null, 8, ["icon", "class"])) : R("", !0),
|
|
989
|
-
e.mainNavStore.state.collapsed ? h?.children ? (g(), y("div",
|
|
989
|
+
e.mainNavStore.state.collapsed ? h?.children ? (g(), y("div", Xs, [...v[6] || (v[6] = [
|
|
990
990
|
f("div", { class: "w-[10px] h-px bg-gray-400" }, null, -1)
|
|
991
991
|
])])) : R("", !0) : (g(), y("span", {
|
|
992
992
|
key: 1,
|
|
@@ -997,34 +997,34 @@ const ve = new js(), Ds = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, Is =
|
|
|
997
997
|
"text-gray-500": h?.children
|
|
998
998
|
})
|
|
999
999
|
}, L(h.name), 3))
|
|
1000
|
-
], 10,
|
|
1001
|
-
h.children ? (g(), y("ul",
|
|
1002
|
-
(g(!0), y(
|
|
1000
|
+
], 10, Ks),
|
|
1001
|
+
h.children ? (g(), y("ul", Ys, [
|
|
1002
|
+
(g(!0), y(ie, null, me(h.children, (_) => (g(), y("li", {
|
|
1003
1003
|
key: _.name
|
|
1004
1004
|
}, [
|
|
1005
1005
|
f("a", {
|
|
1006
1006
|
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
1007
|
href: _.href,
|
|
1008
|
-
onClick:
|
|
1008
|
+
onClick: fe((T) => e.mainNavStore.goto(_.href), ["prevent"])
|
|
1009
1009
|
}, [
|
|
1010
|
-
_.icon ? (g(),
|
|
1010
|
+
_.icon ? (g(), W(p, {
|
|
1011
1011
|
key: 0,
|
|
1012
1012
|
icon: x(B)[_.icon],
|
|
1013
1013
|
class: E([[(_.current, "text-gray-400")], "size-4"])
|
|
1014
1014
|
}, null, 8, ["icon", "class"])) : R("", !0),
|
|
1015
|
-
e.mainNavStore.state.collapsed ? R("", !0) : (g(), y("span",
|
|
1016
|
-
], 10,
|
|
1015
|
+
e.mainNavStore.state.collapsed ? R("", !0) : (g(), y("span", er, L(_.name), 1))
|
|
1016
|
+
], 10, Qs)
|
|
1017
1017
|
]))), 128))
|
|
1018
1018
|
])) : R("", !0)
|
|
1019
1019
|
], 2))), 128))
|
|
1020
1020
|
])
|
|
1021
1021
|
]),
|
|
1022
|
-
f("li",
|
|
1022
|
+
f("li", tr, [
|
|
1023
1023
|
M(w.$slots, "sidebar-footer"),
|
|
1024
1024
|
f("a", {
|
|
1025
1025
|
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
1026
|
href: "#",
|
|
1027
|
-
onClick: v[2] || (v[2] =
|
|
1027
|
+
onClick: v[2] || (v[2] = fe((h) => e.mainNavStore.toggleCollapsed(), ["prevent"]))
|
|
1028
1028
|
}, [
|
|
1029
1029
|
C(p, {
|
|
1030
1030
|
icon: x(B)[e.mainNavStore.state.collapsed ? "farArrowRightToLine" : "farArrowLeftToLine"],
|
|
@@ -1039,11 +1039,11 @@ const ve = new js(), Ds = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, Is =
|
|
|
1039
1039
|
f("div", {
|
|
1040
1040
|
class: E([m.value, "h-full transition-all flex flex-col"])
|
|
1041
1041
|
}, [
|
|
1042
|
-
f("div",
|
|
1043
|
-
f("div",
|
|
1044
|
-
f("div",
|
|
1042
|
+
f("div", nr, [
|
|
1043
|
+
f("div", sr, [
|
|
1044
|
+
f("div", rr, [
|
|
1045
1045
|
M(w.$slots, "header-left", {}, () => [
|
|
1046
|
-
f("div",
|
|
1046
|
+
f("div", or, [
|
|
1047
1047
|
C(p, {
|
|
1048
1048
|
icon: x(B).farBarsSort,
|
|
1049
1049
|
class: "size-5",
|
|
@@ -1062,10 +1062,10 @@ const ve = new js(), Ds = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, Is =
|
|
|
1062
1062
|
src: x(o).currentBrand.logo,
|
|
1063
1063
|
alt: "",
|
|
1064
1064
|
class: "h-[30px] w-auto"
|
|
1065
|
-
}, null, 8,
|
|
1065
|
+
}, null, 8, ar)) : R("", !0)
|
|
1066
1066
|
])) : R("", !0)
|
|
1067
1067
|
]),
|
|
1068
|
-
f("div",
|
|
1068
|
+
f("div", ir, [
|
|
1069
1069
|
M(w.$slots, "header-right", {}, () => [
|
|
1070
1070
|
e.appStore.state.showAppSelector ? (g(), y("button", {
|
|
1071
1071
|
key: 0,
|
|
@@ -1083,81 +1083,81 @@ const ve = new js(), Ds = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, Is =
|
|
|
1083
1083
|
])
|
|
1084
1084
|
])
|
|
1085
1085
|
]),
|
|
1086
|
-
f("main",
|
|
1086
|
+
f("main", lr, [
|
|
1087
1087
|
C(b)
|
|
1088
1088
|
])
|
|
1089
1089
|
], 2),
|
|
1090
|
-
C(x(
|
|
1090
|
+
C(x(at), {
|
|
1091
1091
|
position: "left",
|
|
1092
|
-
"overlay-instance": x(
|
|
1092
|
+
"overlay-instance": x(_e).left,
|
|
1093
1093
|
onClose: v[4] || (v[4] = (h) => s("overlayClose", "left"))
|
|
1094
1094
|
}, null, 8, ["overlay-instance"]),
|
|
1095
|
-
C(x(
|
|
1095
|
+
C(x(at), {
|
|
1096
1096
|
position: "right",
|
|
1097
|
-
"overlay-instance": x(
|
|
1097
|
+
"overlay-instance": x(_e).right,
|
|
1098
1098
|
onClose: v[5] || (v[5] = (h) => s("overlayClose", "right"))
|
|
1099
1099
|
}, null, 8, ["overlay-instance"]),
|
|
1100
|
-
C(x(
|
|
1100
|
+
C(x(Ms))
|
|
1101
1101
|
], 64);
|
|
1102
1102
|
};
|
|
1103
1103
|
}
|
|
1104
|
-
},
|
|
1104
|
+
}, cr = (e, t) => {
|
|
1105
1105
|
const n = e.__vccOpts || e;
|
|
1106
1106
|
for (const [s, r] of t)
|
|
1107
1107
|
n[s] = r;
|
|
1108
1108
|
return n;
|
|
1109
|
-
},
|
|
1110
|
-
function
|
|
1109
|
+
}, ur = {}, dr = { class: "h-full" };
|
|
1110
|
+
function fr(e, t) {
|
|
1111
1111
|
const n = U("router-view");
|
|
1112
|
-
return g(), y("main",
|
|
1112
|
+
return g(), y("main", dr, [
|
|
1113
1113
|
C(n)
|
|
1114
1114
|
]);
|
|
1115
1115
|
}
|
|
1116
|
-
const
|
|
1117
|
-
function
|
|
1116
|
+
const di = /* @__PURE__ */ cr(ur, [["render", fr]]);
|
|
1117
|
+
function Ft(e, t) {
|
|
1118
1118
|
return function() {
|
|
1119
1119
|
return e.apply(t, arguments);
|
|
1120
1120
|
};
|
|
1121
1121
|
}
|
|
1122
|
-
const { toString:
|
|
1123
|
-
const n =
|
|
1122
|
+
const { toString: pr } = Object.prototype, { getPrototypeOf: Je } = Object, { iterator: He, toStringTag: Bt } = Symbol, Fe = /* @__PURE__ */ ((e) => (t) => {
|
|
1123
|
+
const n = pr.call(t);
|
|
1124
1124
|
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 && !
|
|
1125
|
+
})(/* @__PURE__ */ Object.create(null)), D = (e) => (e = e.toLowerCase(), (t) => Fe(t) === e), Be = (e) => (t) => typeof t === e, { isArray: ce } = Array, le = Be("undefined");
|
|
1126
|
+
function ye(e) {
|
|
1127
|
+
return e !== null && !le(e) && e.constructor !== null && !le(e.constructor) && V(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
1128
1128
|
}
|
|
1129
|
-
const
|
|
1130
|
-
function
|
|
1129
|
+
const Vt = D("ArrayBuffer");
|
|
1130
|
+
function hr(e) {
|
|
1131
1131
|
let t;
|
|
1132
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer &&
|
|
1132
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Vt(e.buffer), t;
|
|
1133
1133
|
}
|
|
1134
|
-
const
|
|
1135
|
-
if (
|
|
1134
|
+
const mr = Be("string"), V = Be("function"), Nt = Be("number"), we = (e) => e !== null && typeof e == "object", gr = (e) => e === !0 || e === !1, Re = (e) => {
|
|
1135
|
+
if (Fe(e) !== "object")
|
|
1136
1136
|
return !1;
|
|
1137
|
-
const t =
|
|
1138
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(
|
|
1139
|
-
},
|
|
1140
|
-
if (!
|
|
1137
|
+
const t = Je(e);
|
|
1138
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Bt in e) && !(He in e);
|
|
1139
|
+
}, yr = (e) => {
|
|
1140
|
+
if (!we(e) || ye(e))
|
|
1141
1141
|
return !1;
|
|
1142
1142
|
try {
|
|
1143
1143
|
return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
|
|
1144
1144
|
} catch {
|
|
1145
1145
|
return !1;
|
|
1146
1146
|
}
|
|
1147
|
-
},
|
|
1147
|
+
}, wr = D("Date"), br = D("File"), xr = D("Blob"), Sr = D("FileList"), Cr = (e) => we(e) && V(e.pipe), vr = (e) => {
|
|
1148
1148
|
let t;
|
|
1149
|
-
return e && (typeof FormData == "function" && e instanceof FormData || V(e.append) && ((t =
|
|
1149
|
+
return e && (typeof FormData == "function" && e instanceof FormData || V(e.append) && ((t = Fe(e)) === "formdata" || // detect form-data instance
|
|
1150
1150
|
t === "object" && V(e.toString) && e.toString() === "[object FormData]"));
|
|
1151
|
-
},
|
|
1152
|
-
function
|
|
1151
|
+
}, _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, "");
|
|
1152
|
+
function be(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
1153
1153
|
if (e === null || typeof e > "u")
|
|
1154
1154
|
return;
|
|
1155
1155
|
let s, r;
|
|
1156
|
-
if (typeof e != "object" && (e = [e]),
|
|
1156
|
+
if (typeof e != "object" && (e = [e]), ce(e))
|
|
1157
1157
|
for (s = 0, r = e.length; s < r; s++)
|
|
1158
1158
|
t.call(null, e[s], s, e);
|
|
1159
1159
|
else {
|
|
1160
|
-
if (
|
|
1160
|
+
if (ye(e))
|
|
1161
1161
|
return;
|
|
1162
1162
|
const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), a = o.length;
|
|
1163
1163
|
let i;
|
|
@@ -1165,8 +1165,8 @@ function we(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
|
1165
1165
|
i = o[s], t.call(null, e[i], i, e);
|
|
1166
1166
|
}
|
|
1167
1167
|
}
|
|
1168
|
-
function
|
|
1169
|
-
if (
|
|
1168
|
+
function Pt(e, t) {
|
|
1169
|
+
if (ye(e))
|
|
1170
1170
|
return null;
|
|
1171
1171
|
t = t.toLowerCase();
|
|
1172
1172
|
const n = Object.keys(e);
|
|
@@ -1176,71 +1176,71 @@ function Nt(e, t) {
|
|
|
1176
1176
|
return r;
|
|
1177
1177
|
return null;
|
|
1178
1178
|
}
|
|
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
|
-
|
|
1179
|
+
const Q = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Mt = (e) => !le(e) && e !== Q;
|
|
1180
|
+
function qe() {
|
|
1181
|
+
const { caseless: e, skipUndefined: t } = Mt(this) && this || {}, n = {}, s = (r, o) => {
|
|
1182
|
+
const a = e && Pt(n, o) || o;
|
|
1183
|
+
Re(n[a]) && Re(r) ? n[a] = qe(n[a], r) : Re(r) ? n[a] = qe({}, r) : ce(r) ? n[a] = r.slice() : (!t || !le(r)) && (n[a] = r);
|
|
1184
1184
|
};
|
|
1185
1185
|
for (let r = 0, o = arguments.length; r < o; r++)
|
|
1186
|
-
arguments[r] &&
|
|
1186
|
+
arguments[r] && be(arguments[r], s);
|
|
1187
1187
|
return n;
|
|
1188
1188
|
}
|
|
1189
|
-
const
|
|
1190
|
-
n && V(r) ? e[o] =
|
|
1191
|
-
}, { allOwnKeys: s }), e),
|
|
1189
|
+
const Or = (e, t, n, { allOwnKeys: s } = {}) => (be(t, (r, o) => {
|
|
1190
|
+
n && V(r) ? e[o] = Ft(r, n) : e[o] = r;
|
|
1191
|
+
}, { allOwnKeys: s }), e), Lr = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Tr = (e, t, n, s) => {
|
|
1192
1192
|
e.prototype = Object.create(t.prototype, s), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
1193
1193
|
value: t.prototype
|
|
1194
1194
|
}), n && Object.assign(e.prototype, n);
|
|
1195
|
-
},
|
|
1195
|
+
}, Hr = (e, t, n, s) => {
|
|
1196
1196
|
let r, o, a;
|
|
1197
1197
|
const i = {};
|
|
1198
1198
|
if (t = t || {}, e == null) return t;
|
|
1199
1199
|
do {
|
|
1200
1200
|
for (r = Object.getOwnPropertyNames(e), o = r.length; o-- > 0; )
|
|
1201
1201
|
a = r[o], (!s || s(a, e, t)) && !i[a] && (t[a] = e[a], i[a] = !0);
|
|
1202
|
-
e = n !== !1 &&
|
|
1202
|
+
e = n !== !1 && Je(e);
|
|
1203
1203
|
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
1204
1204
|
return t;
|
|
1205
|
-
},
|
|
1205
|
+
}, Fr = (e, t, n) => {
|
|
1206
1206
|
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
1207
1207
|
const s = e.indexOf(t, n);
|
|
1208
1208
|
return s !== -1 && s === n;
|
|
1209
|
-
},
|
|
1209
|
+
}, Br = (e) => {
|
|
1210
1210
|
if (!e) return null;
|
|
1211
|
-
if (
|
|
1211
|
+
if (ce(e)) return e;
|
|
1212
1212
|
let t = e.length;
|
|
1213
|
-
if (!
|
|
1213
|
+
if (!Nt(t)) return null;
|
|
1214
1214
|
const n = new Array(t);
|
|
1215
1215
|
for (; t-- > 0; )
|
|
1216
1216
|
n[t] = e[t];
|
|
1217
1217
|
return n;
|
|
1218
|
-
},
|
|
1219
|
-
const s = (e && e[
|
|
1218
|
+
}, Vr = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Je(Uint8Array)), Nr = (e, t) => {
|
|
1219
|
+
const s = (e && e[He]).call(e);
|
|
1220
1220
|
let r;
|
|
1221
1221
|
for (; (r = s.next()) && !r.done; ) {
|
|
1222
1222
|
const o = r.value;
|
|
1223
1223
|
t.call(e, o[0], o[1]);
|
|
1224
1224
|
}
|
|
1225
|
-
},
|
|
1225
|
+
}, Pr = (e, t) => {
|
|
1226
1226
|
let n;
|
|
1227
1227
|
const s = [];
|
|
1228
1228
|
for (; (n = e.exec(t)) !== null; )
|
|
1229
1229
|
s.push(n);
|
|
1230
1230
|
return s;
|
|
1231
|
-
},
|
|
1231
|
+
}, Mr = D("HTMLFormElement"), Ur = (e) => e.toLowerCase().replace(
|
|
1232
1232
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
1233
1233
|
function(n, s, r) {
|
|
1234
1234
|
return s.toUpperCase() + r;
|
|
1235
1235
|
}
|
|
1236
|
-
),
|
|
1236
|
+
), lt = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), jr = D("RegExp"), Ut = (e, t) => {
|
|
1237
1237
|
const n = Object.getOwnPropertyDescriptors(e), s = {};
|
|
1238
|
-
|
|
1238
|
+
be(n, (r, o) => {
|
|
1239
1239
|
let a;
|
|
1240
1240
|
(a = t(r, o, e)) !== !1 && (s[o] = a || r);
|
|
1241
1241
|
}), Object.defineProperties(e, s);
|
|
1242
|
-
},
|
|
1243
|
-
|
|
1242
|
+
}, Dr = (e) => {
|
|
1243
|
+
Ut(e, (t, n) => {
|
|
1244
1244
|
if (V(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
1245
1245
|
return !1;
|
|
1246
1246
|
const s = e[n];
|
|
@@ -1254,103 +1254,103 @@ const $r = (e, t, n, { allOwnKeys: s } = {}) => (we(t, (r, o) => {
|
|
|
1254
1254
|
});
|
|
1255
1255
|
}
|
|
1256
1256
|
});
|
|
1257
|
-
},
|
|
1257
|
+
}, Ir = (e, t) => {
|
|
1258
1258
|
const n = {}, s = (r) => {
|
|
1259
1259
|
r.forEach((o) => {
|
|
1260
1260
|
n[o] = !0;
|
|
1261
1261
|
});
|
|
1262
1262
|
};
|
|
1263
|
-
return
|
|
1264
|
-
},
|
|
1265
|
-
},
|
|
1266
|
-
function
|
|
1267
|
-
return !!(e && V(e.append) && e[
|
|
1263
|
+
return ce(e) ? s(e) : s(String(e).split(t)), n;
|
|
1264
|
+
}, zr = () => {
|
|
1265
|
+
}, qr = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
1266
|
+
function Zr(e) {
|
|
1267
|
+
return !!(e && V(e.append) && e[Bt] === "FormData" && e[He]);
|
|
1268
1268
|
}
|
|
1269
|
-
const
|
|
1269
|
+
const Wr = (e) => {
|
|
1270
1270
|
const t = new Array(10), n = (s, r) => {
|
|
1271
|
-
if (
|
|
1271
|
+
if (we(s)) {
|
|
1272
1272
|
if (t.indexOf(s) >= 0)
|
|
1273
1273
|
return;
|
|
1274
|
-
if (
|
|
1274
|
+
if (ye(s))
|
|
1275
1275
|
return s;
|
|
1276
1276
|
if (!("toJSON" in s)) {
|
|
1277
1277
|
t[r] = s;
|
|
1278
|
-
const o =
|
|
1279
|
-
return
|
|
1278
|
+
const o = ce(s) ? [] : {};
|
|
1279
|
+
return be(s, (a, i) => {
|
|
1280
1280
|
const l = n(a, r + 1);
|
|
1281
|
-
!
|
|
1281
|
+
!le(l) && (o[i] = l);
|
|
1282
1282
|
}), t[r] = void 0, o;
|
|
1283
1283
|
}
|
|
1284
1284
|
}
|
|
1285
1285
|
return s;
|
|
1286
1286
|
};
|
|
1287
1287
|
return n(e, 0);
|
|
1288
|
-
},
|
|
1288
|
+
}, Gr = D("AsyncFunction"), Jr = (e) => e && (we(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
1289
|
r === Q && o === n && s.length && s.shift()();
|
|
1290
1290
|
}, !1), (r) => {
|
|
1291
1291
|
s.push(r), Q.postMessage(n, "*");
|
|
1292
1292
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
1293
1293
|
typeof setImmediate == "function",
|
|
1294
1294
|
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:
|
|
1295
|
+
), Kr = typeof queueMicrotask < "u" ? queueMicrotask.bind(Q) : typeof process < "u" && process.nextTick || jt, Xr = (e) => e != null && V(e[He]), d = {
|
|
1296
|
+
isArray: ce,
|
|
1297
|
+
isArrayBuffer: Vt,
|
|
1298
|
+
isBuffer: ye,
|
|
1299
|
+
isFormData: vr,
|
|
1300
|
+
isArrayBufferView: hr,
|
|
1301
|
+
isString: mr,
|
|
1302
|
+
isNumber: Nt,
|
|
1303
|
+
isBoolean: gr,
|
|
1304
|
+
isObject: we,
|
|
1305
|
+
isPlainObject: Re,
|
|
1306
|
+
isEmptyObject: yr,
|
|
1307
|
+
isReadableStream: kr,
|
|
1308
|
+
isRequest: Rr,
|
|
1309
|
+
isResponse: Er,
|
|
1310
|
+
isHeaders: Ar,
|
|
1311
|
+
isUndefined: le,
|
|
1312
|
+
isDate: wr,
|
|
1313
|
+
isFile: br,
|
|
1314
|
+
isBlob: xr,
|
|
1315
|
+
isRegExp: jr,
|
|
1316
1316
|
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:
|
|
1317
|
+
isStream: Cr,
|
|
1318
|
+
isURLSearchParams: _r,
|
|
1319
|
+
isTypedArray: Vr,
|
|
1320
|
+
isFileList: Sr,
|
|
1321
|
+
forEach: be,
|
|
1322
|
+
merge: qe,
|
|
1323
|
+
extend: Or,
|
|
1324
|
+
trim: $r,
|
|
1325
|
+
stripBOM: Lr,
|
|
1326
|
+
inherits: Tr,
|
|
1327
|
+
toFlatObject: Hr,
|
|
1328
|
+
kindOf: Fe,
|
|
1329
1329
|
kindOfTest: D,
|
|
1330
|
-
endsWith:
|
|
1331
|
-
toArray:
|
|
1332
|
-
forEachEntry:
|
|
1333
|
-
matchAll:
|
|
1334
|
-
isHTMLForm:
|
|
1335
|
-
hasOwnProperty:
|
|
1336
|
-
hasOwnProp:
|
|
1330
|
+
endsWith: Fr,
|
|
1331
|
+
toArray: Br,
|
|
1332
|
+
forEachEntry: Nr,
|
|
1333
|
+
matchAll: Pr,
|
|
1334
|
+
isHTMLForm: Mr,
|
|
1335
|
+
hasOwnProperty: lt,
|
|
1336
|
+
hasOwnProp: lt,
|
|
1337
1337
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
1338
|
-
reduceDescriptors:
|
|
1339
|
-
freezeMethods:
|
|
1340
|
-
toObjectSet:
|
|
1341
|
-
toCamelCase:
|
|
1342
|
-
noop:
|
|
1343
|
-
toFiniteNumber:
|
|
1344
|
-
findKey:
|
|
1338
|
+
reduceDescriptors: Ut,
|
|
1339
|
+
freezeMethods: Dr,
|
|
1340
|
+
toObjectSet: Ir,
|
|
1341
|
+
toCamelCase: Ur,
|
|
1342
|
+
noop: zr,
|
|
1343
|
+
toFiniteNumber: qr,
|
|
1344
|
+
findKey: Pt,
|
|
1345
1345
|
global: Q,
|
|
1346
|
-
isContextDefined:
|
|
1347
|
-
isSpecCompliantForm:
|
|
1348
|
-
toJSONObject:
|
|
1349
|
-
isAsyncFn:
|
|
1350
|
-
isThenable:
|
|
1351
|
-
setImmediate:
|
|
1352
|
-
asap:
|
|
1353
|
-
isIterable:
|
|
1346
|
+
isContextDefined: Mt,
|
|
1347
|
+
isSpecCompliantForm: Zr,
|
|
1348
|
+
toJSONObject: Wr,
|
|
1349
|
+
isAsyncFn: Gr,
|
|
1350
|
+
isThenable: Jr,
|
|
1351
|
+
setImmediate: jt,
|
|
1352
|
+
asap: Kr,
|
|
1353
|
+
isIterable: Xr
|
|
1354
1354
|
};
|
|
1355
1355
|
function S(e, t, n, s, r) {
|
|
1356
1356
|
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 +1376,7 @@ d.inherits(S, Error, {
|
|
|
1376
1376
|
};
|
|
1377
1377
|
}
|
|
1378
1378
|
});
|
|
1379
|
-
const
|
|
1379
|
+
const Dt = S.prototype, It = {};
|
|
1380
1380
|
[
|
|
1381
1381
|
"ERR_BAD_OPTION_VALUE",
|
|
1382
1382
|
"ERR_BAD_OPTION",
|
|
@@ -1392,37 +1392,37 @@ const jt = S.prototype, Dt = {};
|
|
|
1392
1392
|
"ERR_INVALID_URL"
|
|
1393
1393
|
// eslint-disable-next-line func-names
|
|
1394
1394
|
].forEach((e) => {
|
|
1395
|
-
|
|
1395
|
+
It[e] = { value: e };
|
|
1396
1396
|
});
|
|
1397
|
-
Object.defineProperties(S,
|
|
1398
|
-
Object.defineProperty(
|
|
1397
|
+
Object.defineProperties(S, It);
|
|
1398
|
+
Object.defineProperty(Dt, "isAxiosError", { value: !0 });
|
|
1399
1399
|
S.from = (e, t, n, s, r, o) => {
|
|
1400
|
-
const a = Object.create(
|
|
1400
|
+
const a = Object.create(Dt);
|
|
1401
1401
|
d.toFlatObject(e, a, function(u) {
|
|
1402
1402
|
return u !== Error.prototype;
|
|
1403
1403
|
}, (c) => c !== "isAxiosError");
|
|
1404
1404
|
const i = e && e.message ? e.message : "Error", l = t == null && e ? e.code : t;
|
|
1405
1405
|
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
1406
|
};
|
|
1407
|
-
const
|
|
1408
|
-
function
|
|
1407
|
+
const Yr = null;
|
|
1408
|
+
function Ze(e) {
|
|
1409
1409
|
return d.isPlainObject(e) || d.isArray(e);
|
|
1410
1410
|
}
|
|
1411
|
-
function
|
|
1411
|
+
function zt(e) {
|
|
1412
1412
|
return d.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
1413
1413
|
}
|
|
1414
|
-
function
|
|
1414
|
+
function ct(e, t, n) {
|
|
1415
1415
|
return e ? e.concat(t).map(function(r, o) {
|
|
1416
|
-
return r =
|
|
1416
|
+
return r = zt(r), !n && o ? "[" + r + "]" : r;
|
|
1417
1417
|
}).join(n ? "." : "") : t;
|
|
1418
1418
|
}
|
|
1419
|
-
function
|
|
1420
|
-
return d.isArray(e) && !e.some(
|
|
1419
|
+
function Qr(e) {
|
|
1420
|
+
return d.isArray(e) && !e.some(Ze);
|
|
1421
1421
|
}
|
|
1422
|
-
const
|
|
1422
|
+
const eo = d.toFlatObject(d, {}, null, function(t) {
|
|
1423
1423
|
return /^is[A-Z]/.test(t);
|
|
1424
1424
|
});
|
|
1425
|
-
function
|
|
1425
|
+
function Ve(e, t, n) {
|
|
1426
1426
|
if (!d.isObject(e))
|
|
1427
1427
|
throw new TypeError("target must be an object");
|
|
1428
1428
|
t = t || new FormData(), n = d.toFlatObject(n, {
|
|
@@ -1450,21 +1450,21 @@ function Be(e, t, n) {
|
|
|
1450
1450
|
if (p && !h && typeof p == "object") {
|
|
1451
1451
|
if (d.endsWith(b, "{}"))
|
|
1452
1452
|
b = s ? b : b.slice(0, -2), p = JSON.stringify(p);
|
|
1453
|
-
else if (d.isArray(p) &&
|
|
1454
|
-
return b =
|
|
1453
|
+
else if (d.isArray(p) && Qr(p) || (d.isFileList(p) || d.endsWith(b, "[]")) && (_ = d.toArray(p)))
|
|
1454
|
+
return b = zt(b), _.forEach(function(O, F) {
|
|
1455
1455
|
!(d.isUndefined(O) || O === null) && t.append(
|
|
1456
1456
|
// eslint-disable-next-line no-nested-ternary
|
|
1457
|
-
a === !0 ?
|
|
1457
|
+
a === !0 ? ct([b], F, o) : a === null ? b : b + "[]",
|
|
1458
1458
|
c(O)
|
|
1459
1459
|
);
|
|
1460
1460
|
}), !1;
|
|
1461
1461
|
}
|
|
1462
|
-
return
|
|
1462
|
+
return Ze(p) ? !0 : (t.append(ct(h, b, o), c(p)), !1);
|
|
1463
1463
|
}
|
|
1464
|
-
const m = [], w = Object.assign(
|
|
1464
|
+
const m = [], w = Object.assign(eo, {
|
|
1465
1465
|
defaultVisitor: u,
|
|
1466
1466
|
convertValue: c,
|
|
1467
|
-
isVisitable:
|
|
1467
|
+
isVisitable: Ze
|
|
1468
1468
|
});
|
|
1469
1469
|
function v(p, b) {
|
|
1470
1470
|
if (!d.isUndefined(p)) {
|
|
@@ -1485,7 +1485,7 @@ function Be(e, t, n) {
|
|
|
1485
1485
|
throw new TypeError("data must be an object");
|
|
1486
1486
|
return v(e), t;
|
|
1487
1487
|
}
|
|
1488
|
-
function
|
|
1488
|
+
function ut(e) {
|
|
1489
1489
|
const t = {
|
|
1490
1490
|
"!": "%21",
|
|
1491
1491
|
"'": "%27",
|
|
@@ -1499,40 +1499,40 @@ function ct(e) {
|
|
|
1499
1499
|
return t[s];
|
|
1500
1500
|
});
|
|
1501
1501
|
}
|
|
1502
|
-
function
|
|
1503
|
-
this._pairs = [], e &&
|
|
1502
|
+
function Ke(e, t) {
|
|
1503
|
+
this._pairs = [], e && Ve(e, this, t);
|
|
1504
1504
|
}
|
|
1505
|
-
const
|
|
1506
|
-
|
|
1505
|
+
const qt = Ke.prototype;
|
|
1506
|
+
qt.append = function(t, n) {
|
|
1507
1507
|
this._pairs.push([t, n]);
|
|
1508
1508
|
};
|
|
1509
|
-
|
|
1509
|
+
qt.toString = function(t) {
|
|
1510
1510
|
const n = t ? function(s) {
|
|
1511
|
-
return t.call(this, s,
|
|
1512
|
-
} :
|
|
1511
|
+
return t.call(this, s, ut);
|
|
1512
|
+
} : ut;
|
|
1513
1513
|
return this._pairs.map(function(r) {
|
|
1514
1514
|
return n(r[0]) + "=" + n(r[1]);
|
|
1515
1515
|
}, "").join("&");
|
|
1516
1516
|
};
|
|
1517
|
-
function
|
|
1517
|
+
function to(e) {
|
|
1518
1518
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
1519
1519
|
}
|
|
1520
|
-
function
|
|
1520
|
+
function Zt(e, t, n) {
|
|
1521
1521
|
if (!t)
|
|
1522
1522
|
return e;
|
|
1523
|
-
const s = n && n.encode ||
|
|
1523
|
+
const s = n && n.encode || to;
|
|
1524
1524
|
d.isFunction(n) && (n = {
|
|
1525
1525
|
serialize: n
|
|
1526
1526
|
});
|
|
1527
1527
|
const r = n && n.serialize;
|
|
1528
1528
|
let o;
|
|
1529
|
-
if (r ? o = r(t, n) : o = d.isURLSearchParams(t) ? t.toString() : new
|
|
1529
|
+
if (r ? o = r(t, n) : o = d.isURLSearchParams(t) ? t.toString() : new Ke(t, n).toString(s), o) {
|
|
1530
1530
|
const a = e.indexOf("#");
|
|
1531
1531
|
a !== -1 && (e = e.slice(0, a)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
|
|
1532
1532
|
}
|
|
1533
1533
|
return e;
|
|
1534
1534
|
}
|
|
1535
|
-
class
|
|
1535
|
+
class dt {
|
|
1536
1536
|
constructor() {
|
|
1537
1537
|
this.handlers = [];
|
|
1538
1538
|
}
|
|
@@ -1586,42 +1586,42 @@ class ut {
|
|
|
1586
1586
|
});
|
|
1587
1587
|
}
|
|
1588
1588
|
}
|
|
1589
|
-
const
|
|
1589
|
+
const Wt = {
|
|
1590
1590
|
silentJSONParsing: !0,
|
|
1591
1591
|
forcedJSONParsing: !0,
|
|
1592
1592
|
clarifyTimeoutError: !1
|
|
1593
|
-
},
|
|
1593
|
+
}, no = typeof URLSearchParams < "u" ? URLSearchParams : Ke, so = typeof FormData < "u" ? FormData : null, ro = typeof Blob < "u" ? Blob : null, oo = {
|
|
1594
1594
|
isBrowser: !0,
|
|
1595
1595
|
classes: {
|
|
1596
|
-
URLSearchParams:
|
|
1597
|
-
FormData:
|
|
1598
|
-
Blob:
|
|
1596
|
+
URLSearchParams: no,
|
|
1597
|
+
FormData: so,
|
|
1598
|
+
Blob: ro
|
|
1599
1599
|
},
|
|
1600
1600
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
1601
|
-
},
|
|
1602
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
1601
|
+
}, 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
|
|
1602
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", lo = Xe && window.location.href || "http://localhost", co = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1603
1603
|
__proto__: null,
|
|
1604
|
-
hasBrowserEnv:
|
|
1605
|
-
hasStandardBrowserEnv:
|
|
1606
|
-
hasStandardBrowserWebWorkerEnv:
|
|
1607
|
-
navigator:
|
|
1608
|
-
origin:
|
|
1604
|
+
hasBrowserEnv: Xe,
|
|
1605
|
+
hasStandardBrowserEnv: ao,
|
|
1606
|
+
hasStandardBrowserWebWorkerEnv: io,
|
|
1607
|
+
navigator: We,
|
|
1608
|
+
origin: lo
|
|
1609
1609
|
}, Symbol.toStringTag, { value: "Module" })), H = {
|
|
1610
|
-
...
|
|
1611
|
-
...
|
|
1610
|
+
...co,
|
|
1611
|
+
...oo
|
|
1612
1612
|
};
|
|
1613
|
-
function
|
|
1614
|
-
return
|
|
1613
|
+
function uo(e, t) {
|
|
1614
|
+
return Ve(e, new H.classes.URLSearchParams(), {
|
|
1615
1615
|
visitor: function(n, s, r, o) {
|
|
1616
1616
|
return H.isNode && d.isBuffer(n) ? (this.append(s, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
1617
1617
|
},
|
|
1618
1618
|
...t
|
|
1619
1619
|
});
|
|
1620
1620
|
}
|
|
1621
|
-
function
|
|
1621
|
+
function fo(e) {
|
|
1622
1622
|
return d.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
1623
1623
|
}
|
|
1624
|
-
function
|
|
1624
|
+
function po(e) {
|
|
1625
1625
|
const t = {}, n = Object.keys(e);
|
|
1626
1626
|
let s;
|
|
1627
1627
|
const r = n.length;
|
|
@@ -1630,22 +1630,22 @@ function uo(e) {
|
|
|
1630
1630
|
o = n[s], t[o] = e[o];
|
|
1631
1631
|
return t;
|
|
1632
1632
|
}
|
|
1633
|
-
function
|
|
1633
|
+
function Gt(e) {
|
|
1634
1634
|
function t(n, s, r, o) {
|
|
1635
1635
|
let a = n[o++];
|
|
1636
1636
|
if (a === "__proto__") return !0;
|
|
1637
1637
|
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] =
|
|
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] = po(r[a])), !i);
|
|
1639
1639
|
}
|
|
1640
1640
|
if (d.isFormData(e) && d.isFunction(e.entries)) {
|
|
1641
1641
|
const n = {};
|
|
1642
1642
|
return d.forEachEntry(e, (s, r) => {
|
|
1643
|
-
t(
|
|
1643
|
+
t(fo(s), r, n, 0);
|
|
1644
1644
|
}), n;
|
|
1645
1645
|
}
|
|
1646
1646
|
return null;
|
|
1647
1647
|
}
|
|
1648
|
-
function
|
|
1648
|
+
function ho(e, t, n) {
|
|
1649
1649
|
if (d.isString(e))
|
|
1650
1650
|
try {
|
|
1651
1651
|
return (t || JSON.parse)(e), d.trim(e);
|
|
@@ -1655,13 +1655,13 @@ function fo(e, t, n) {
|
|
|
1655
1655
|
}
|
|
1656
1656
|
return (n || JSON.stringify)(e);
|
|
1657
1657
|
}
|
|
1658
|
-
const
|
|
1659
|
-
transitional:
|
|
1658
|
+
const xe = {
|
|
1659
|
+
transitional: Wt,
|
|
1660
1660
|
adapter: ["xhr", "http", "fetch"],
|
|
1661
1661
|
transformRequest: [function(t, n) {
|
|
1662
1662
|
const s = n.getContentType() || "", r = s.indexOf("application/json") > -1, o = d.isObject(t);
|
|
1663
1663
|
if (o && d.isHTMLForm(t) && (t = new FormData(t)), d.isFormData(t))
|
|
1664
|
-
return r ? JSON.stringify(
|
|
1664
|
+
return r ? JSON.stringify(Gt(t)) : t;
|
|
1665
1665
|
if (d.isArrayBuffer(t) || d.isBuffer(t) || d.isStream(t) || d.isFile(t) || d.isBlob(t) || d.isReadableStream(t))
|
|
1666
1666
|
return t;
|
|
1667
1667
|
if (d.isArrayBufferView(t))
|
|
@@ -1671,20 +1671,20 @@ const be = {
|
|
|
1671
1671
|
let i;
|
|
1672
1672
|
if (o) {
|
|
1673
1673
|
if (s.indexOf("application/x-www-form-urlencoded") > -1)
|
|
1674
|
-
return
|
|
1674
|
+
return uo(t, this.formSerializer).toString();
|
|
1675
1675
|
if ((i = d.isFileList(t)) || s.indexOf("multipart/form-data") > -1) {
|
|
1676
1676
|
const l = this.env && this.env.FormData;
|
|
1677
|
-
return
|
|
1677
|
+
return Ve(
|
|
1678
1678
|
i ? { "files[]": t } : t,
|
|
1679
1679
|
l && new l(),
|
|
1680
1680
|
this.formSerializer
|
|
1681
1681
|
);
|
|
1682
1682
|
}
|
|
1683
1683
|
}
|
|
1684
|
-
return o || r ? (n.setContentType("application/json", !1),
|
|
1684
|
+
return o || r ? (n.setContentType("application/json", !1), ho(t)) : t;
|
|
1685
1685
|
}],
|
|
1686
1686
|
transformResponse: [function(t) {
|
|
1687
|
-
const n = this.transitional ||
|
|
1687
|
+
const n = this.transitional || xe.transitional, s = n && n.forcedJSONParsing, r = this.responseType === "json";
|
|
1688
1688
|
if (d.isResponse(t) || d.isReadableStream(t))
|
|
1689
1689
|
return t;
|
|
1690
1690
|
if (t && d.isString(t) && (s && !this.responseType || r)) {
|
|
@@ -1722,9 +1722,9 @@ const be = {
|
|
|
1722
1722
|
}
|
|
1723
1723
|
};
|
|
1724
1724
|
d.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
1725
|
-
|
|
1725
|
+
xe.headers[e] = {};
|
|
1726
1726
|
});
|
|
1727
|
-
const
|
|
1727
|
+
const mo = d.toObjectSet([
|
|
1728
1728
|
"age",
|
|
1729
1729
|
"authorization",
|
|
1730
1730
|
"content-length",
|
|
@@ -1742,29 +1742,29 @@ const po = d.toObjectSet([
|
|
|
1742
1742
|
"referer",
|
|
1743
1743
|
"retry-after",
|
|
1744
1744
|
"user-agent"
|
|
1745
|
-
]),
|
|
1745
|
+
]), go = (e) => {
|
|
1746
1746
|
const t = {};
|
|
1747
1747
|
let n, s, r;
|
|
1748
1748
|
return e && e.split(`
|
|
1749
1749
|
`).forEach(function(a) {
|
|
1750
|
-
r = a.indexOf(":"), n = a.substring(0, r).trim().toLowerCase(), s = a.substring(r + 1).trim(), !(!n || t[n] &&
|
|
1750
|
+
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
1751
|
}), t;
|
|
1752
|
-
},
|
|
1753
|
-
function
|
|
1752
|
+
}, ft = Symbol("internals");
|
|
1753
|
+
function he(e) {
|
|
1754
1754
|
return e && String(e).trim().toLowerCase();
|
|
1755
1755
|
}
|
|
1756
|
-
function
|
|
1757
|
-
return e === !1 || e == null ? e : d.isArray(e) ? e.map(
|
|
1756
|
+
function Ee(e) {
|
|
1757
|
+
return e === !1 || e == null ? e : d.isArray(e) ? e.map(Ee) : String(e);
|
|
1758
1758
|
}
|
|
1759
|
-
function
|
|
1759
|
+
function yo(e) {
|
|
1760
1760
|
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
1761
1761
|
let s;
|
|
1762
1762
|
for (; s = n.exec(e); )
|
|
1763
1763
|
t[s[1]] = s[2];
|
|
1764
1764
|
return t;
|
|
1765
1765
|
}
|
|
1766
|
-
const
|
|
1767
|
-
function
|
|
1766
|
+
const wo = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
1767
|
+
function je(e, t, n, s, r) {
|
|
1768
1768
|
if (d.isFunction(s))
|
|
1769
1769
|
return s.call(this, t, n);
|
|
1770
1770
|
if (r && (t = n), !!d.isString(t)) {
|
|
@@ -1774,10 +1774,10 @@ function Ue(e, t, n, s, r) {
|
|
|
1774
1774
|
return s.test(t);
|
|
1775
1775
|
}
|
|
1776
1776
|
}
|
|
1777
|
-
function
|
|
1777
|
+
function bo(e) {
|
|
1778
1778
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, s) => n.toUpperCase() + s);
|
|
1779
1779
|
}
|
|
1780
|
-
function
|
|
1780
|
+
function xo(e, t) {
|
|
1781
1781
|
const n = d.toCamelCase(" " + t);
|
|
1782
1782
|
["get", "set", "has"].forEach((s) => {
|
|
1783
1783
|
Object.defineProperty(e, s + n, {
|
|
@@ -1795,17 +1795,17 @@ let N = class {
|
|
|
1795
1795
|
set(t, n, s) {
|
|
1796
1796
|
const r = this;
|
|
1797
1797
|
function o(i, l, c) {
|
|
1798
|
-
const u =
|
|
1798
|
+
const u = he(l);
|
|
1799
1799
|
if (!u)
|
|
1800
1800
|
throw new Error("header name must be a non-empty string");
|
|
1801
1801
|
const m = d.findKey(r, u);
|
|
1802
|
-
(!m || r[m] === void 0 || c === !0 || c === void 0 && r[m] !== !1) && (r[m || l] =
|
|
1802
|
+
(!m || r[m] === void 0 || c === !0 || c === void 0 && r[m] !== !1) && (r[m || l] = Ee(i));
|
|
1803
1803
|
}
|
|
1804
1804
|
const a = (i, l) => d.forEach(i, (c, u) => o(c, u, l));
|
|
1805
1805
|
if (d.isPlainObject(t) || t instanceof this.constructor)
|
|
1806
1806
|
a(t, n);
|
|
1807
|
-
else if (d.isString(t) && (t = t.trim()) && !
|
|
1808
|
-
a(
|
|
1807
|
+
else if (d.isString(t) && (t = t.trim()) && !wo(t))
|
|
1808
|
+
a(go(t), n);
|
|
1809
1809
|
else if (d.isObject(t) && d.isIterable(t)) {
|
|
1810
1810
|
let i = {}, l, c;
|
|
1811
1811
|
for (const u of t) {
|
|
@@ -1819,14 +1819,14 @@ let N = class {
|
|
|
1819
1819
|
return this;
|
|
1820
1820
|
}
|
|
1821
1821
|
get(t, n) {
|
|
1822
|
-
if (t =
|
|
1822
|
+
if (t = he(t), t) {
|
|
1823
1823
|
const s = d.findKey(this, t);
|
|
1824
1824
|
if (s) {
|
|
1825
1825
|
const r = this[s];
|
|
1826
1826
|
if (!n)
|
|
1827
1827
|
return r;
|
|
1828
1828
|
if (n === !0)
|
|
1829
|
-
return
|
|
1829
|
+
return yo(r);
|
|
1830
1830
|
if (d.isFunction(n))
|
|
1831
1831
|
return n.call(this, r, s);
|
|
1832
1832
|
if (d.isRegExp(n))
|
|
@@ -1836,9 +1836,9 @@ let N = class {
|
|
|
1836
1836
|
}
|
|
1837
1837
|
}
|
|
1838
1838
|
has(t, n) {
|
|
1839
|
-
if (t =
|
|
1839
|
+
if (t = he(t), t) {
|
|
1840
1840
|
const s = d.findKey(this, t);
|
|
1841
|
-
return !!(s && this[s] !== void 0 && (!n ||
|
|
1841
|
+
return !!(s && this[s] !== void 0 && (!n || je(this, this[s], s, n)));
|
|
1842
1842
|
}
|
|
1843
1843
|
return !1;
|
|
1844
1844
|
}
|
|
@@ -1846,9 +1846,9 @@ let N = class {
|
|
|
1846
1846
|
const s = this;
|
|
1847
1847
|
let r = !1;
|
|
1848
1848
|
function o(a) {
|
|
1849
|
-
if (a =
|
|
1849
|
+
if (a = he(a), a) {
|
|
1850
1850
|
const i = d.findKey(s, a);
|
|
1851
|
-
i && (!n ||
|
|
1851
|
+
i && (!n || je(s, s[i], i, n)) && (delete s[i], r = !0);
|
|
1852
1852
|
}
|
|
1853
1853
|
}
|
|
1854
1854
|
return d.isArray(t) ? t.forEach(o) : o(t), r;
|
|
@@ -1858,7 +1858,7 @@ let N = class {
|
|
|
1858
1858
|
let s = n.length, r = !1;
|
|
1859
1859
|
for (; s--; ) {
|
|
1860
1860
|
const o = n[s];
|
|
1861
|
-
(!t ||
|
|
1861
|
+
(!t || je(this, this[o], o, t, !0)) && (delete this[o], r = !0);
|
|
1862
1862
|
}
|
|
1863
1863
|
return r;
|
|
1864
1864
|
}
|
|
@@ -1867,11 +1867,11 @@ let N = class {
|
|
|
1867
1867
|
return d.forEach(this, (r, o) => {
|
|
1868
1868
|
const a = d.findKey(s, o);
|
|
1869
1869
|
if (a) {
|
|
1870
|
-
n[a] =
|
|
1870
|
+
n[a] = Ee(r), delete n[o];
|
|
1871
1871
|
return;
|
|
1872
1872
|
}
|
|
1873
|
-
const i = t ?
|
|
1874
|
-
i !== o && delete n[o], n[i] =
|
|
1873
|
+
const i = t ? bo(o) : String(o).trim();
|
|
1874
|
+
i !== o && delete n[o], n[i] = Ee(r), s[i] = !0;
|
|
1875
1875
|
}), this;
|
|
1876
1876
|
}
|
|
1877
1877
|
concat(...t) {
|
|
@@ -1904,12 +1904,12 @@ let N = class {
|
|
|
1904
1904
|
return n.forEach((r) => s.set(r)), s;
|
|
1905
1905
|
}
|
|
1906
1906
|
static accessor(t) {
|
|
1907
|
-
const s = (this[
|
|
1907
|
+
const s = (this[ft] = this[ft] = {
|
|
1908
1908
|
accessors: {}
|
|
1909
1909
|
}).accessors, r = this.prototype;
|
|
1910
1910
|
function o(a) {
|
|
1911
|
-
const i =
|
|
1912
|
-
s[i] || (
|
|
1911
|
+
const i = he(a);
|
|
1912
|
+
s[i] || (xo(r, a), s[i] = !0);
|
|
1913
1913
|
}
|
|
1914
1914
|
return d.isArray(t) ? t.forEach(o) : o(t), this;
|
|
1915
1915
|
}
|
|
@@ -1925,23 +1925,23 @@ d.reduceDescriptors(N.prototype, ({ value: e }, t) => {
|
|
|
1925
1925
|
};
|
|
1926
1926
|
});
|
|
1927
1927
|
d.freezeMethods(N);
|
|
1928
|
-
function
|
|
1929
|
-
const n = this ||
|
|
1928
|
+
function De(e, t) {
|
|
1929
|
+
const n = this || xe, s = t || n, r = N.from(s.headers);
|
|
1930
1930
|
let o = s.data;
|
|
1931
1931
|
return d.forEach(e, function(i) {
|
|
1932
1932
|
o = i.call(n, o, r.normalize(), t ? t.status : void 0);
|
|
1933
1933
|
}), r.normalize(), o;
|
|
1934
1934
|
}
|
|
1935
|
-
function
|
|
1935
|
+
function Jt(e) {
|
|
1936
1936
|
return !!(e && e.__CANCEL__);
|
|
1937
1937
|
}
|
|
1938
|
-
function
|
|
1938
|
+
function ue(e, t, n) {
|
|
1939
1939
|
S.call(this, e ?? "canceled", S.ERR_CANCELED, t, n), this.name = "CanceledError";
|
|
1940
1940
|
}
|
|
1941
|
-
d.inherits(
|
|
1941
|
+
d.inherits(ue, S, {
|
|
1942
1942
|
__CANCEL__: !0
|
|
1943
1943
|
});
|
|
1944
|
-
function
|
|
1944
|
+
function Kt(e, t, n) {
|
|
1945
1945
|
const s = n.config.validateStatus;
|
|
1946
1946
|
!n.status || !s || s(n.status) ? e(n) : t(new S(
|
|
1947
1947
|
"Request failed with status code " + n.status,
|
|
@@ -1951,11 +1951,11 @@ function Jt(e, t, n) {
|
|
|
1951
1951
|
n
|
|
1952
1952
|
));
|
|
1953
1953
|
}
|
|
1954
|
-
function
|
|
1954
|
+
function So(e) {
|
|
1955
1955
|
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
1956
1956
|
return t && t[1] || "";
|
|
1957
1957
|
}
|
|
1958
|
-
function
|
|
1958
|
+
function Co(e, t) {
|
|
1959
1959
|
e = e || 10;
|
|
1960
1960
|
const n = new Array(e), s = new Array(e);
|
|
1961
1961
|
let r = 0, o = 0, a;
|
|
@@ -1971,7 +1971,7 @@ function xo(e, t) {
|
|
|
1971
1971
|
return v ? Math.round(w * 1e3 / v) : void 0;
|
|
1972
1972
|
};
|
|
1973
1973
|
}
|
|
1974
|
-
function
|
|
1974
|
+
function vo(e, t) {
|
|
1975
1975
|
let n = 0, s = 1e3 / t, r, o;
|
|
1976
1976
|
const a = (c, u = Date.now()) => {
|
|
1977
1977
|
n = u, r = null, o && (clearTimeout(o), o = null), e(...c);
|
|
@@ -1983,10 +1983,10 @@ function So(e, t) {
|
|
|
1983
1983
|
}, s - m)));
|
|
1984
1984
|
}, () => r && a(r)];
|
|
1985
1985
|
}
|
|
1986
|
-
const
|
|
1986
|
+
const Le = (e, t, n = 3) => {
|
|
1987
1987
|
let s = 0;
|
|
1988
|
-
const r =
|
|
1989
|
-
return
|
|
1988
|
+
const r = Co(50, 250);
|
|
1989
|
+
return vo((o) => {
|
|
1990
1990
|
const a = o.loaded, i = o.lengthComputable ? o.total : void 0, l = a - s, c = r(l), u = a <= i;
|
|
1991
1991
|
s = a;
|
|
1992
1992
|
const m = {
|
|
@@ -2002,17 +2002,17 @@ const Oe = (e, t, n = 3) => {
|
|
|
2002
2002
|
};
|
|
2003
2003
|
e(m);
|
|
2004
2004
|
}, n);
|
|
2005
|
-
},
|
|
2005
|
+
}, pt = (e, t) => {
|
|
2006
2006
|
const n = e != null;
|
|
2007
2007
|
return [(s) => t[0]({
|
|
2008
2008
|
lengthComputable: n,
|
|
2009
2009
|
total: e,
|
|
2010
2010
|
loaded: s
|
|
2011
2011
|
}), t[1]];
|
|
2012
|
-
},
|
|
2012
|
+
}, 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
2013
|
new URL(H.origin),
|
|
2014
2014
|
H.navigator && /(msie|trident)/i.test(H.navigator.userAgent)
|
|
2015
|
-
) : () => !0,
|
|
2015
|
+
) : () => !0, ko = H.hasStandardBrowserEnv ? (
|
|
2016
2016
|
// Standard browser envs support document.cookie
|
|
2017
2017
|
{
|
|
2018
2018
|
write(e, t, n, s, r, o, a) {
|
|
@@ -2041,17 +2041,17 @@ const Oe = (e, t, n = 3) => {
|
|
|
2041
2041
|
}
|
|
2042
2042
|
}
|
|
2043
2043
|
);
|
|
2044
|
-
function
|
|
2044
|
+
function Ro(e) {
|
|
2045
2045
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
2046
2046
|
}
|
|
2047
|
-
function
|
|
2047
|
+
function Eo(e, t) {
|
|
2048
2048
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
2049
2049
|
}
|
|
2050
|
-
function
|
|
2051
|
-
let s = !
|
|
2052
|
-
return e && (s || n == !1) ?
|
|
2050
|
+
function Xt(e, t, n) {
|
|
2051
|
+
let s = !Ro(t);
|
|
2052
|
+
return e && (s || n == !1) ? Eo(e, t) : t;
|
|
2053
2053
|
}
|
|
2054
|
-
const
|
|
2054
|
+
const mt = (e) => e instanceof N ? { ...e } : e;
|
|
2055
2055
|
function te(e, t) {
|
|
2056
2056
|
t = t || {};
|
|
2057
2057
|
const n = {};
|
|
@@ -2109,17 +2109,17 @@ function te(e, t) {
|
|
|
2109
2109
|
socketPath: a,
|
|
2110
2110
|
responseEncoding: a,
|
|
2111
2111
|
validateStatus: i,
|
|
2112
|
-
headers: (c, u, m) => r(
|
|
2112
|
+
headers: (c, u, m) => r(mt(c), mt(u), m, !0)
|
|
2113
2113
|
};
|
|
2114
2114
|
return d.forEach(Object.keys({ ...e, ...t }), function(u) {
|
|
2115
2115
|
const m = l[u] || r, w = m(e[u], t[u], u);
|
|
2116
2116
|
d.isUndefined(w) && m !== i || (n[u] = w);
|
|
2117
2117
|
}), n;
|
|
2118
2118
|
}
|
|
2119
|
-
const
|
|
2119
|
+
const Yt = (e) => {
|
|
2120
2120
|
const t = te({}, e);
|
|
2121
2121
|
let { data: n, withXSRFToken: s, xsrfHeaderName: r, xsrfCookieName: o, headers: a, auth: i } = t;
|
|
2122
|
-
if (t.headers = a = N.from(a), t.url =
|
|
2122
|
+
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
2123
|
"Authorization",
|
|
2124
2124
|
"Basic " + btoa((i.username || "") + ":" + (i.password ? unescape(encodeURIComponent(i.password)) : ""))
|
|
2125
2125
|
), d.isFormData(n)) {
|
|
@@ -2132,14 +2132,14 @@ const Xt = (e) => {
|
|
|
2132
2132
|
});
|
|
2133
2133
|
}
|
|
2134
2134
|
}
|
|
2135
|
-
if (H.hasStandardBrowserEnv && (s && d.isFunction(s) && (s = s(t)), s || s !== !1 &&
|
|
2136
|
-
const l = r && o &&
|
|
2135
|
+
if (H.hasStandardBrowserEnv && (s && d.isFunction(s) && (s = s(t)), s || s !== !1 && _o(t.url))) {
|
|
2136
|
+
const l = r && o && ko.read(o);
|
|
2137
2137
|
l && a.set(r, l);
|
|
2138
2138
|
}
|
|
2139
2139
|
return t;
|
|
2140
|
-
},
|
|
2140
|
+
}, Ao = typeof XMLHttpRequest < "u", $o = Ao && function(e) {
|
|
2141
2141
|
return new Promise(function(n, s) {
|
|
2142
|
-
const r =
|
|
2142
|
+
const r = Yt(e);
|
|
2143
2143
|
let o = r.data;
|
|
2144
2144
|
const a = N.from(r.headers).normalize();
|
|
2145
2145
|
let { responseType: i, onUploadProgress: l, onDownloadProgress: c } = r, u, m, w, v, p;
|
|
@@ -2161,7 +2161,7 @@ const Xt = (e) => {
|
|
|
2161
2161
|
config: e,
|
|
2162
2162
|
request: h
|
|
2163
2163
|
};
|
|
2164
|
-
|
|
2164
|
+
Kt(function(P) {
|
|
2165
2165
|
n(P), b();
|
|
2166
2166
|
}, function(P) {
|
|
2167
2167
|
s(P), b();
|
|
@@ -2176,7 +2176,7 @@ const Xt = (e) => {
|
|
|
2176
2176
|
X.event = F || null, s(X), h = null;
|
|
2177
2177
|
}, h.ontimeout = function() {
|
|
2178
2178
|
let F = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded";
|
|
2179
|
-
const j = r.transitional ||
|
|
2179
|
+
const j = r.transitional || Wt;
|
|
2180
2180
|
r.timeoutErrorMessage && (F = r.timeoutErrorMessage), s(new S(
|
|
2181
2181
|
F,
|
|
2182
2182
|
j.clarifyTimeoutError ? S.ETIMEDOUT : S.ECONNABORTED,
|
|
@@ -2185,17 +2185,17 @@ const Xt = (e) => {
|
|
|
2185
2185
|
)), h = null;
|
|
2186
2186
|
}, o === void 0 && a.setContentType(null), "setRequestHeader" in h && d.forEach(a.toJSON(), function(F, j) {
|
|
2187
2187
|
h.setRequestHeader(j, F);
|
|
2188
|
-
}), d.isUndefined(r.withCredentials) || (h.withCredentials = !!r.withCredentials), i && i !== "json" && (h.responseType = r.responseType), c && ([w, p] =
|
|
2189
|
-
h && (s(!O || O.type ? new
|
|
2188
|
+
}), d.isUndefined(r.withCredentials) || (h.withCredentials = !!r.withCredentials), i && i !== "json" && (h.responseType = r.responseType), c && ([w, p] = Le(c, !0), h.addEventListener("progress", w)), l && h.upload && ([m, v] = Le(l), h.upload.addEventListener("progress", m), h.upload.addEventListener("loadend", v)), (r.cancelToken || r.signal) && (u = (O) => {
|
|
2189
|
+
h && (s(!O || O.type ? new ue(null, e, h) : O), h.abort(), h = null);
|
|
2190
2190
|
}, r.cancelToken && r.cancelToken.subscribe(u), r.signal && (r.signal.aborted ? u() : r.signal.addEventListener("abort", u)));
|
|
2191
|
-
const T =
|
|
2191
|
+
const T = So(r.url);
|
|
2192
2192
|
if (T && H.protocols.indexOf(T) === -1) {
|
|
2193
2193
|
s(new S("Unsupported protocol " + T + ":", S.ERR_BAD_REQUEST, e));
|
|
2194
2194
|
return;
|
|
2195
2195
|
}
|
|
2196
2196
|
h.send(o || null);
|
|
2197
2197
|
});
|
|
2198
|
-
},
|
|
2198
|
+
}, Oo = (e, t) => {
|
|
2199
2199
|
const { length: n } = e = e ? e.filter(Boolean) : [];
|
|
2200
2200
|
if (t || n) {
|
|
2201
2201
|
let s = new AbortController(), r;
|
|
@@ -2203,7 +2203,7 @@ const Xt = (e) => {
|
|
|
2203
2203
|
if (!r) {
|
|
2204
2204
|
r = !0, i();
|
|
2205
2205
|
const u = c instanceof Error ? c : this.reason;
|
|
2206
|
-
s.abort(u instanceof S ? u : new
|
|
2206
|
+
s.abort(u instanceof S ? u : new ue(u instanceof Error ? u.message : u));
|
|
2207
2207
|
}
|
|
2208
2208
|
};
|
|
2209
2209
|
let a = t && setTimeout(() => {
|
|
@@ -2218,7 +2218,7 @@ const Xt = (e) => {
|
|
|
2218
2218
|
const { signal: l } = s;
|
|
2219
2219
|
return l.unsubscribe = () => d.asap(i), l;
|
|
2220
2220
|
}
|
|
2221
|
-
},
|
|
2221
|
+
}, Lo = function* (e, t) {
|
|
2222
2222
|
let n = e.byteLength;
|
|
2223
2223
|
if (n < t) {
|
|
2224
2224
|
yield e;
|
|
@@ -2227,10 +2227,10 @@ const Xt = (e) => {
|
|
|
2227
2227
|
let s = 0, r;
|
|
2228
2228
|
for (; s < n; )
|
|
2229
2229
|
r = s + t, yield e.slice(s, r), s = r;
|
|
2230
|
-
},
|
|
2231
|
-
for await (const n of
|
|
2232
|
-
yield*
|
|
2233
|
-
},
|
|
2230
|
+
}, To = async function* (e, t) {
|
|
2231
|
+
for await (const n of Ho(e))
|
|
2232
|
+
yield* Lo(n, t);
|
|
2233
|
+
}, Ho = async function* (e) {
|
|
2234
2234
|
if (e[Symbol.asyncIterator]) {
|
|
2235
2235
|
yield* e;
|
|
2236
2236
|
return;
|
|
@@ -2246,8 +2246,8 @@ const Xt = (e) => {
|
|
|
2246
2246
|
} finally {
|
|
2247
2247
|
await t.cancel();
|
|
2248
2248
|
}
|
|
2249
|
-
},
|
|
2250
|
-
const r =
|
|
2249
|
+
}, gt = (e, t, n, s) => {
|
|
2250
|
+
const r = To(e, t);
|
|
2251
2251
|
let o = 0, a, i = (l) => {
|
|
2252
2252
|
a || (a = !0, s && s(l));
|
|
2253
2253
|
};
|
|
@@ -2275,36 +2275,36 @@ const Xt = (e) => {
|
|
|
2275
2275
|
}, {
|
|
2276
2276
|
highWaterMark: 2
|
|
2277
2277
|
});
|
|
2278
|
-
},
|
|
2278
|
+
}, yt = 64 * 1024, { isFunction: ke } = d, Fo = (({ Request: e, Response: t }) => ({
|
|
2279
2279
|
Request: e,
|
|
2280
2280
|
Response: t
|
|
2281
2281
|
}))(d.global), {
|
|
2282
|
-
ReadableStream:
|
|
2283
|
-
TextEncoder:
|
|
2284
|
-
} = d.global,
|
|
2282
|
+
ReadableStream: wt,
|
|
2283
|
+
TextEncoder: bt
|
|
2284
|
+
} = d.global, xt = (e, ...t) => {
|
|
2285
2285
|
try {
|
|
2286
2286
|
return !!e(...t);
|
|
2287
2287
|
} catch {
|
|
2288
2288
|
return !1;
|
|
2289
2289
|
}
|
|
2290
|
-
},
|
|
2290
|
+
}, Bo = (e) => {
|
|
2291
2291
|
e = d.merge.call({
|
|
2292
2292
|
skipUndefined: !0
|
|
2293
|
-
},
|
|
2294
|
-
const { fetch: t, Request: n, Response: s } = e, r = t ?
|
|
2293
|
+
}, Fo, e);
|
|
2294
|
+
const { fetch: t, Request: n, Response: s } = e, r = t ? ke(t) : typeof fetch == "function", o = ke(n), a = ke(s);
|
|
2295
2295
|
if (!r)
|
|
2296
2296
|
return !1;
|
|
2297
|
-
const i = r &&
|
|
2297
|
+
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
2298
|
let p = !1;
|
|
2299
2299
|
const b = new n(H.origin, {
|
|
2300
|
-
body: new
|
|
2300
|
+
body: new wt(),
|
|
2301
2301
|
method: "POST",
|
|
2302
2302
|
get duplex() {
|
|
2303
2303
|
return p = !0, "half";
|
|
2304
2304
|
}
|
|
2305
2305
|
}).headers.has("Content-Type");
|
|
2306
2306
|
return p && !b;
|
|
2307
|
-
}), u = a && i &&
|
|
2307
|
+
}), u = a && i && xt(() => d.isReadableStream(new s("").body)), m = {
|
|
2308
2308
|
stream: u && ((p) => p.body)
|
|
2309
2309
|
};
|
|
2310
2310
|
r && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((p) => {
|
|
@@ -2344,102 +2344,102 @@ const Xt = (e) => {
|
|
|
2344
2344
|
onDownloadProgress: j,
|
|
2345
2345
|
onUploadProgress: X,
|
|
2346
2346
|
responseType: P,
|
|
2347
|
-
headers:
|
|
2348
|
-
withCredentials:
|
|
2349
|
-
fetchOptions:
|
|
2350
|
-
} =
|
|
2347
|
+
headers: Pe,
|
|
2348
|
+
withCredentials: Se = "same-origin",
|
|
2349
|
+
fetchOptions: Qe
|
|
2350
|
+
} = Yt(p), et = t || fetch;
|
|
2351
2351
|
P = P ? (P + "").toLowerCase() : "text";
|
|
2352
|
-
let
|
|
2353
|
-
const Y =
|
|
2354
|
-
|
|
2352
|
+
let Ce = Oo([T, O && O.toAbortSignal()], F), de = null;
|
|
2353
|
+
const Y = Ce && Ce.unsubscribe && (() => {
|
|
2354
|
+
Ce.unsubscribe();
|
|
2355
2355
|
});
|
|
2356
|
-
let
|
|
2356
|
+
let tt;
|
|
2357
2357
|
try {
|
|
2358
|
-
if (X && c && h !== "get" && h !== "head" && (
|
|
2359
|
-
let
|
|
2358
|
+
if (X && c && h !== "get" && h !== "head" && (tt = await v(Pe, _)) !== 0) {
|
|
2359
|
+
let J = new n(b, {
|
|
2360
2360
|
method: "POST",
|
|
2361
2361
|
body: _,
|
|
2362
2362
|
duplex: "half"
|
|
2363
2363
|
}), oe;
|
|
2364
|
-
if (d.isFormData(_) && (oe =
|
|
2365
|
-
const [
|
|
2366
|
-
|
|
2367
|
-
|
|
2364
|
+
if (d.isFormData(_) && (oe = J.headers.get("content-type")) && Pe.setContentType(oe), J.body) {
|
|
2365
|
+
const [Me, ve] = pt(
|
|
2366
|
+
tt,
|
|
2367
|
+
Le(ht(X))
|
|
2368
2368
|
);
|
|
2369
|
-
_ =
|
|
2369
|
+
_ = gt(J.body, yt, Me, ve);
|
|
2370
2370
|
}
|
|
2371
2371
|
}
|
|
2372
|
-
d.isString(
|
|
2373
|
-
const I = o && "credentials" in n.prototype,
|
|
2374
|
-
...
|
|
2375
|
-
signal:
|
|
2372
|
+
d.isString(Se) || (Se = Se ? "include" : "omit");
|
|
2373
|
+
const I = o && "credentials" in n.prototype, nt = {
|
|
2374
|
+
...Qe,
|
|
2375
|
+
signal: Ce,
|
|
2376
2376
|
method: h.toUpperCase(),
|
|
2377
|
-
headers:
|
|
2377
|
+
headers: Pe.normalize().toJSON(),
|
|
2378
2378
|
body: _,
|
|
2379
2379
|
duplex: "half",
|
|
2380
|
-
credentials: I ?
|
|
2380
|
+
credentials: I ? Se : void 0
|
|
2381
2381
|
};
|
|
2382
|
-
|
|
2383
|
-
let
|
|
2384
|
-
const
|
|
2385
|
-
if (u && (j ||
|
|
2386
|
-
const
|
|
2387
|
-
["status", "statusText", "headers"].forEach((
|
|
2388
|
-
|
|
2382
|
+
de = o && new n(b, nt);
|
|
2383
|
+
let G = await (o ? et(de, Qe) : et(b, nt));
|
|
2384
|
+
const st = u && (P === "stream" || P === "response");
|
|
2385
|
+
if (u && (j || st && Y)) {
|
|
2386
|
+
const J = {};
|
|
2387
|
+
["status", "statusText", "headers"].forEach((rt) => {
|
|
2388
|
+
J[rt] = G[rt];
|
|
2389
2389
|
});
|
|
2390
|
-
const oe = d.toFiniteNumber(
|
|
2390
|
+
const oe = d.toFiniteNumber(G.headers.get("content-length")), [Me, ve] = j && pt(
|
|
2391
2391
|
oe,
|
|
2392
|
-
|
|
2392
|
+
Le(ht(j), !0)
|
|
2393
2393
|
) || [];
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2394
|
+
G = new s(
|
|
2395
|
+
gt(G.body, yt, Me, () => {
|
|
2396
|
+
ve && ve(), Y && Y();
|
|
2397
2397
|
}),
|
|
2398
|
-
|
|
2398
|
+
J
|
|
2399
2399
|
);
|
|
2400
2400
|
}
|
|
2401
2401
|
P = P || "text";
|
|
2402
|
-
let
|
|
2403
|
-
return !
|
|
2404
|
-
|
|
2405
|
-
data:
|
|
2406
|
-
headers: N.from(
|
|
2407
|
-
status:
|
|
2408
|
-
statusText:
|
|
2402
|
+
let an = await m[d.findKey(m, P) || "text"](G, p);
|
|
2403
|
+
return !st && Y && Y(), await new Promise((J, oe) => {
|
|
2404
|
+
Kt(J, oe, {
|
|
2405
|
+
data: an,
|
|
2406
|
+
headers: N.from(G.headers),
|
|
2407
|
+
status: G.status,
|
|
2408
|
+
statusText: G.statusText,
|
|
2409
2409
|
config: p,
|
|
2410
|
-
request:
|
|
2410
|
+
request: de
|
|
2411
2411
|
});
|
|
2412
2412
|
});
|
|
2413
2413
|
} catch (I) {
|
|
2414
2414
|
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,
|
|
2415
|
+
new S("Network Error", S.ERR_NETWORK, p, de),
|
|
2416
2416
|
{
|
|
2417
2417
|
cause: I.cause || I
|
|
2418
2418
|
}
|
|
2419
|
-
) : S.from(I, I && I.code, p,
|
|
2419
|
+
) : S.from(I, I && I.code, p, de);
|
|
2420
2420
|
}
|
|
2421
2421
|
};
|
|
2422
|
-
},
|
|
2422
|
+
}, Vo = /* @__PURE__ */ new Map(), Qt = (e) => {
|
|
2423
2423
|
let t = e && e.env || {};
|
|
2424
2424
|
const { fetch: n, Request: s, Response: r } = t, o = [
|
|
2425
2425
|
s,
|
|
2426
2426
|
r,
|
|
2427
2427
|
n
|
|
2428
2428
|
];
|
|
2429
|
-
let a = o.length, i = a, l, c, u =
|
|
2429
|
+
let a = o.length, i = a, l, c, u = Vo;
|
|
2430
2430
|
for (; i--; )
|
|
2431
|
-
l = o[i], c = u.get(l), c === void 0 && u.set(l, c = i ? /* @__PURE__ */ new Map() :
|
|
2431
|
+
l = o[i], c = u.get(l), c === void 0 && u.set(l, c = i ? /* @__PURE__ */ new Map() : Bo(t)), u = c;
|
|
2432
2432
|
return c;
|
|
2433
2433
|
};
|
|
2434
|
-
|
|
2435
|
-
const
|
|
2436
|
-
http:
|
|
2437
|
-
xhr:
|
|
2434
|
+
Qt();
|
|
2435
|
+
const Ye = {
|
|
2436
|
+
http: Yr,
|
|
2437
|
+
xhr: $o,
|
|
2438
2438
|
fetch: {
|
|
2439
|
-
get:
|
|
2439
|
+
get: Qt
|
|
2440
2440
|
}
|
|
2441
2441
|
};
|
|
2442
|
-
d.forEach(
|
|
2442
|
+
d.forEach(Ye, (e, t) => {
|
|
2443
2443
|
if (e) {
|
|
2444
2444
|
try {
|
|
2445
2445
|
Object.defineProperty(e, "name", { value: t });
|
|
@@ -2448,8 +2448,8 @@ d.forEach(Xe, (e, t) => {
|
|
|
2448
2448
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
2449
2449
|
}
|
|
2450
2450
|
});
|
|
2451
|
-
const
|
|
2452
|
-
function
|
|
2451
|
+
const St = (e) => `- ${e}`, No = (e) => d.isFunction(e) || e === null || e === !1;
|
|
2452
|
+
function Po(e, t) {
|
|
2453
2453
|
e = d.isArray(e) ? e : [e];
|
|
2454
2454
|
const { length: n } = e;
|
|
2455
2455
|
let s, r;
|
|
@@ -2457,7 +2457,7 @@ function Vo(e, t) {
|
|
|
2457
2457
|
for (let a = 0; a < n; a++) {
|
|
2458
2458
|
s = e[a];
|
|
2459
2459
|
let i;
|
|
2460
|
-
if (r = s, !
|
|
2460
|
+
if (r = s, !No(s) && (r = Ye[(i = String(s)).toLowerCase()], r === void 0))
|
|
2461
2461
|
throw new S(`Unknown adapter '${i}'`);
|
|
2462
2462
|
if (r && (d.isFunction(r) || (r = r.get(t))))
|
|
2463
2463
|
break;
|
|
@@ -2468,8 +2468,8 @@ function Vo(e, t) {
|
|
|
2468
2468
|
([l, c]) => `adapter ${l} ` + (c === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
2469
2469
|
);
|
|
2470
2470
|
let i = n ? a.length > 1 ? `since :
|
|
2471
|
-
` + a.map(
|
|
2472
|
-
`) : " " +
|
|
2471
|
+
` + a.map(St).join(`
|
|
2472
|
+
`) : " " + St(a[0]) : "as no adapter specified";
|
|
2473
2473
|
throw new S(
|
|
2474
2474
|
"There is no suitable adapter to dispatch the request " + i,
|
|
2475
2475
|
"ERR_NOT_SUPPORT"
|
|
@@ -2477,50 +2477,50 @@ function Vo(e, t) {
|
|
|
2477
2477
|
}
|
|
2478
2478
|
return r;
|
|
2479
2479
|
}
|
|
2480
|
-
const
|
|
2480
|
+
const en = {
|
|
2481
2481
|
/**
|
|
2482
2482
|
* Resolve an adapter from a list of adapter names or functions.
|
|
2483
2483
|
* @type {Function}
|
|
2484
2484
|
*/
|
|
2485
|
-
getAdapter:
|
|
2485
|
+
getAdapter: Po,
|
|
2486
2486
|
/**
|
|
2487
2487
|
* Exposes all known adapters
|
|
2488
2488
|
* @type {Object<string, Function|Object>}
|
|
2489
2489
|
*/
|
|
2490
|
-
adapters:
|
|
2490
|
+
adapters: Ye
|
|
2491
2491
|
};
|
|
2492
|
-
function
|
|
2492
|
+
function Ie(e) {
|
|
2493
2493
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
2494
|
-
throw new
|
|
2494
|
+
throw new ue(null, e);
|
|
2495
2495
|
}
|
|
2496
|
-
function
|
|
2497
|
-
return
|
|
2496
|
+
function Ct(e) {
|
|
2497
|
+
return Ie(e), e.headers = N.from(e.headers), e.data = De.call(
|
|
2498
2498
|
e,
|
|
2499
2499
|
e.transformRequest
|
|
2500
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
2501
|
-
return
|
|
2500
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), en.getAdapter(e.adapter || xe.adapter, e)(e).then(function(s) {
|
|
2501
|
+
return Ie(e), s.data = De.call(
|
|
2502
2502
|
e,
|
|
2503
2503
|
e.transformResponse,
|
|
2504
2504
|
s
|
|
2505
2505
|
), s.headers = N.from(s.headers), s;
|
|
2506
2506
|
}, function(s) {
|
|
2507
|
-
return
|
|
2507
|
+
return Jt(s) || (Ie(e), s && s.response && (s.response.data = De.call(
|
|
2508
2508
|
e,
|
|
2509
2509
|
e.transformResponse,
|
|
2510
2510
|
s.response
|
|
2511
2511
|
), s.response.headers = N.from(s.response.headers))), Promise.reject(s);
|
|
2512
2512
|
});
|
|
2513
2513
|
}
|
|
2514
|
-
const
|
|
2514
|
+
const tn = "1.13.2", Ne = {};
|
|
2515
2515
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
2516
|
-
|
|
2516
|
+
Ne[e] = function(s) {
|
|
2517
2517
|
return typeof s === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
2518
2518
|
};
|
|
2519
2519
|
});
|
|
2520
|
-
const
|
|
2521
|
-
|
|
2520
|
+
const vt = {};
|
|
2521
|
+
Ne.transitional = function(t, n, s) {
|
|
2522
2522
|
function r(o, a) {
|
|
2523
|
-
return "[Axios v" +
|
|
2523
|
+
return "[Axios v" + tn + "] Transitional option '" + o + "'" + a + (s ? ". " + s : "");
|
|
2524
2524
|
}
|
|
2525
2525
|
return (o, a, i) => {
|
|
2526
2526
|
if (t === !1)
|
|
@@ -2528,7 +2528,7 @@ Ve.transitional = function(t, n, s) {
|
|
|
2528
2528
|
r(a, " has been removed" + (n ? " in " + n : "")),
|
|
2529
2529
|
S.ERR_DEPRECATED
|
|
2530
2530
|
);
|
|
2531
|
-
return n && !
|
|
2531
|
+
return n && !vt[a] && (vt[a] = !0, console.warn(
|
|
2532
2532
|
r(
|
|
2533
2533
|
a,
|
|
2534
2534
|
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
@@ -2536,10 +2536,10 @@ Ve.transitional = function(t, n, s) {
|
|
|
2536
2536
|
)), t ? t(o, a, i) : !0;
|
|
2537
2537
|
};
|
|
2538
2538
|
};
|
|
2539
|
-
|
|
2539
|
+
Ne.spelling = function(t) {
|
|
2540
2540
|
return (n, s) => (console.warn(`${s} is likely a misspelling of ${t}`), !0);
|
|
2541
2541
|
};
|
|
2542
|
-
function
|
|
2542
|
+
function Mo(e, t, n) {
|
|
2543
2543
|
if (typeof e != "object")
|
|
2544
2544
|
throw new S("options must be an object", S.ERR_BAD_OPTION_VALUE);
|
|
2545
2545
|
const s = Object.keys(e);
|
|
@@ -2556,15 +2556,15 @@ function No(e, t, n) {
|
|
|
2556
2556
|
throw new S("Unknown option " + o, S.ERR_BAD_OPTION);
|
|
2557
2557
|
}
|
|
2558
2558
|
}
|
|
2559
|
-
const
|
|
2560
|
-
assertOptions:
|
|
2561
|
-
validators:
|
|
2562
|
-
}, z =
|
|
2559
|
+
const Ae = {
|
|
2560
|
+
assertOptions: Mo,
|
|
2561
|
+
validators: Ne
|
|
2562
|
+
}, z = Ae.validators;
|
|
2563
2563
|
let ee = class {
|
|
2564
2564
|
constructor(t) {
|
|
2565
2565
|
this.defaults = t || {}, this.interceptors = {
|
|
2566
|
-
request: new
|
|
2567
|
-
response: new
|
|
2566
|
+
request: new dt(),
|
|
2567
|
+
response: new dt()
|
|
2568
2568
|
};
|
|
2569
2569
|
}
|
|
2570
2570
|
/**
|
|
@@ -2595,16 +2595,16 @@ let ee = class {
|
|
|
2595
2595
|
_request(t, n) {
|
|
2596
2596
|
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = te(this.defaults, n);
|
|
2597
2597
|
const { transitional: s, paramsSerializer: r, headers: o } = n;
|
|
2598
|
-
s !== void 0 &&
|
|
2598
|
+
s !== void 0 && Ae.assertOptions(s, {
|
|
2599
2599
|
silentJSONParsing: z.transitional(z.boolean),
|
|
2600
2600
|
forcedJSONParsing: z.transitional(z.boolean),
|
|
2601
2601
|
clarifyTimeoutError: z.transitional(z.boolean)
|
|
2602
2602
|
}, !1), r != null && (d.isFunction(r) ? n.paramsSerializer = {
|
|
2603
2603
|
serialize: r
|
|
2604
|
-
} :
|
|
2604
|
+
} : Ae.assertOptions(r, {
|
|
2605
2605
|
encode: z.function,
|
|
2606
2606
|
serialize: z.function
|
|
2607
|
-
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0),
|
|
2607
|
+
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), Ae.assertOptions(n, {
|
|
2608
2608
|
baseUrl: z.spelling("baseURL"),
|
|
2609
2609
|
withXsrfToken: z.spelling("withXSRFToken")
|
|
2610
2610
|
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
@@ -2629,7 +2629,7 @@ let ee = class {
|
|
|
2629
2629
|
});
|
|
2630
2630
|
let u, m = 0, w;
|
|
2631
2631
|
if (!l) {
|
|
2632
|
-
const p = [
|
|
2632
|
+
const p = [Ct.bind(this), void 0];
|
|
2633
2633
|
for (p.unshift(...i), p.push(...c), w = p.length, u = Promise.resolve(n); m < w; )
|
|
2634
2634
|
u = u.then(p[m++], p[m++]);
|
|
2635
2635
|
return u;
|
|
@@ -2646,7 +2646,7 @@ let ee = class {
|
|
|
2646
2646
|
}
|
|
2647
2647
|
}
|
|
2648
2648
|
try {
|
|
2649
|
-
u =
|
|
2649
|
+
u = Ct.call(this, v);
|
|
2650
2650
|
} catch (p) {
|
|
2651
2651
|
return Promise.reject(p);
|
|
2652
2652
|
}
|
|
@@ -2656,8 +2656,8 @@ let ee = class {
|
|
|
2656
2656
|
}
|
|
2657
2657
|
getUri(t) {
|
|
2658
2658
|
t = te(this.defaults, t);
|
|
2659
|
-
const n =
|
|
2660
|
-
return
|
|
2659
|
+
const n = Xt(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
2660
|
+
return Zt(n, t.params, t.paramsSerializer);
|
|
2661
2661
|
}
|
|
2662
2662
|
};
|
|
2663
2663
|
d.forEach(["delete", "get", "head", "options"], function(t) {
|
|
@@ -2684,7 +2684,7 @@ d.forEach(["post", "put", "patch"], function(t) {
|
|
|
2684
2684
|
}
|
|
2685
2685
|
ee.prototype[t] = n(), ee.prototype[t + "Form"] = n(!0);
|
|
2686
2686
|
});
|
|
2687
|
-
let
|
|
2687
|
+
let Uo = class nn {
|
|
2688
2688
|
constructor(t) {
|
|
2689
2689
|
if (typeof t != "function")
|
|
2690
2690
|
throw new TypeError("executor must be a function.");
|
|
@@ -2708,7 +2708,7 @@ let Po = class tn {
|
|
|
2708
2708
|
s.unsubscribe(o);
|
|
2709
2709
|
}, a;
|
|
2710
2710
|
}, t(function(o, a, i) {
|
|
2711
|
-
s.reason || (s.reason = new
|
|
2711
|
+
s.reason || (s.reason = new ue(o, a, i), n(s.reason));
|
|
2712
2712
|
});
|
|
2713
2713
|
}
|
|
2714
2714
|
/**
|
|
@@ -2750,22 +2750,22 @@ let Po = class tn {
|
|
|
2750
2750
|
static source() {
|
|
2751
2751
|
let t;
|
|
2752
2752
|
return {
|
|
2753
|
-
token: new
|
|
2753
|
+
token: new nn(function(r) {
|
|
2754
2754
|
t = r;
|
|
2755
2755
|
}),
|
|
2756
2756
|
cancel: t
|
|
2757
2757
|
};
|
|
2758
2758
|
}
|
|
2759
2759
|
};
|
|
2760
|
-
function
|
|
2760
|
+
function jo(e) {
|
|
2761
2761
|
return function(n) {
|
|
2762
2762
|
return e.apply(null, n);
|
|
2763
2763
|
};
|
|
2764
2764
|
}
|
|
2765
|
-
function
|
|
2765
|
+
function Do(e) {
|
|
2766
2766
|
return d.isObject(e) && e.isAxiosError === !0;
|
|
2767
2767
|
}
|
|
2768
|
-
const
|
|
2768
|
+
const Ge = {
|
|
2769
2769
|
Continue: 100,
|
|
2770
2770
|
SwitchingProtocols: 101,
|
|
2771
2771
|
Processing: 102,
|
|
@@ -2836,74 +2836,96 @@ const We = {
|
|
|
2836
2836
|
SslHandshakeFailed: 525,
|
|
2837
2837
|
InvalidSslCertificate: 526
|
|
2838
2838
|
};
|
|
2839
|
-
Object.entries(
|
|
2840
|
-
|
|
2839
|
+
Object.entries(Ge).forEach(([e, t]) => {
|
|
2840
|
+
Ge[t] = e;
|
|
2841
2841
|
});
|
|
2842
|
-
function
|
|
2843
|
-
const t = new ee(e), n =
|
|
2842
|
+
function sn(e) {
|
|
2843
|
+
const t = new ee(e), n = Ft(ee.prototype.request, t);
|
|
2844
2844
|
return d.extend(n, ee.prototype, t, { allOwnKeys: !0 }), d.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(r) {
|
|
2845
|
-
return
|
|
2845
|
+
return sn(te(e, r));
|
|
2846
2846
|
}, n;
|
|
2847
2847
|
}
|
|
2848
|
-
const k =
|
|
2848
|
+
const k = sn(xe);
|
|
2849
2849
|
k.Axios = ee;
|
|
2850
|
-
k.CanceledError =
|
|
2851
|
-
k.CancelToken =
|
|
2852
|
-
k.isCancel =
|
|
2853
|
-
k.VERSION =
|
|
2854
|
-
k.toFormData =
|
|
2850
|
+
k.CanceledError = ue;
|
|
2851
|
+
k.CancelToken = Uo;
|
|
2852
|
+
k.isCancel = Jt;
|
|
2853
|
+
k.VERSION = tn;
|
|
2854
|
+
k.toFormData = Ve;
|
|
2855
2855
|
k.AxiosError = S;
|
|
2856
2856
|
k.Cancel = k.CanceledError;
|
|
2857
2857
|
k.all = function(t) {
|
|
2858
2858
|
return Promise.all(t);
|
|
2859
2859
|
};
|
|
2860
|
-
k.spread =
|
|
2861
|
-
k.isAxiosError =
|
|
2860
|
+
k.spread = jo;
|
|
2861
|
+
k.isAxiosError = Do;
|
|
2862
2862
|
k.mergeConfig = te;
|
|
2863
2863
|
k.AxiosHeaders = N;
|
|
2864
|
-
k.formToJSON = (e) =>
|
|
2865
|
-
k.getAdapter =
|
|
2866
|
-
k.HttpStatusCode =
|
|
2864
|
+
k.formToJSON = (e) => Gt(d.isHTMLForm(e) ? new FormData(e) : e);
|
|
2865
|
+
k.getAdapter = en.getAdapter;
|
|
2866
|
+
k.HttpStatusCode = Ge;
|
|
2867
2867
|
k.default = k;
|
|
2868
2868
|
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,
|
|
2869
|
+
Axios: hi,
|
|
2870
|
+
AxiosError: mi,
|
|
2871
|
+
CanceledError: gi,
|
|
2872
|
+
isCancel: yi,
|
|
2873
|
+
CancelToken: wi,
|
|
2874
|
+
VERSION: bi,
|
|
2875
|
+
all: xi,
|
|
2876
|
+
Cancel: Si,
|
|
2877
|
+
isAxiosError: Ci,
|
|
2878
|
+
spread: vi,
|
|
2879
|
+
toFormData: _i,
|
|
2880
|
+
AxiosHeaders: ki,
|
|
2881
|
+
HttpStatusCode: Ri,
|
|
2882
|
+
formToJSON: Ei,
|
|
2883
|
+
getAdapter: Ai,
|
|
2884
|
+
mergeConfig: $i
|
|
2885
|
+
} = k, Io = (e) => {
|
|
2886
2886
|
const t = document.cookie.match(new RegExp(`(^| )${e}=([^;]+)`));
|
|
2887
2887
|
return t ? t[2] : null;
|
|
2888
|
-
},
|
|
2888
|
+
}, zo = (e, t, n = {}) => {
|
|
2889
2889
|
const {
|
|
2890
2890
|
maxAge: s = 31536e3,
|
|
2891
2891
|
// 365 days in seconds
|
|
2892
|
-
domain: r =
|
|
2892
|
+
domain: r = rn(),
|
|
2893
2893
|
secure: o = !0,
|
|
2894
2894
|
sameSite: a = "Lax",
|
|
2895
2895
|
path: i = "/"
|
|
2896
2896
|
} = n;
|
|
2897
2897
|
let l = `${e}=${t}; max-age=${s}; path=${i}; samesite=${a}`;
|
|
2898
2898
|
r && (l += `; domain=${r}`), o && (l += "; secure"), document.cookie = l;
|
|
2899
|
-
},
|
|
2900
|
-
const { domain: n =
|
|
2899
|
+
}, qo = (e, t = {}) => {
|
|
2900
|
+
const { domain: n = rn(), path: s = "/" } = t;
|
|
2901
2901
|
let r = `${e}=; max-age=0; path=${s}`;
|
|
2902
2902
|
n && (r += `; domain=${n}`), document.cookie = r;
|
|
2903
|
-
},
|
|
2903
|
+
}, rn = () => {
|
|
2904
2904
|
const e = window.location.hostname;
|
|
2905
2905
|
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
|
-
},
|
|
2906
|
+
}, on = [];
|
|
2907
|
+
function Zo(e) {
|
|
2908
|
+
on.push(e);
|
|
2909
|
+
}
|
|
2910
|
+
function Wo() {
|
|
2911
|
+
on.forEach((e) => e());
|
|
2912
|
+
}
|
|
2913
|
+
function Oi(e) {
|
|
2914
|
+
let t = !1;
|
|
2915
|
+
return Zo(() => {
|
|
2916
|
+
t = !1;
|
|
2917
|
+
}), {
|
|
2918
|
+
bootstrapApp: async () => {
|
|
2919
|
+
if (!t)
|
|
2920
|
+
try {
|
|
2921
|
+
await e(), t = !0;
|
|
2922
|
+
} catch (r) {
|
|
2923
|
+
throw console.error("Error during app bootstrap:", r), r;
|
|
2924
|
+
}
|
|
2925
|
+
}
|
|
2926
|
+
};
|
|
2927
|
+
}
|
|
2928
|
+
const ze = "bolt-next-token", Z = ge("auth", () => {
|
|
2907
2929
|
const e = ne({
|
|
2908
2930
|
user: null,
|
|
2909
2931
|
token: null,
|
|
@@ -2939,10 +2961,10 @@ const {
|
|
|
2939
2961
|
}), t = (c = {}) => {
|
|
2940
2962
|
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
2963
|
}, n = (c) => {
|
|
2942
|
-
|
|
2964
|
+
zo(ze, c), e.token = c;
|
|
2943
2965
|
}, s = () => {
|
|
2944
|
-
|
|
2945
|
-
}, r = () =>
|
|
2966
|
+
qo(ze), e.token = null;
|
|
2967
|
+
}, r = () => Io(ze), o = async (c) => {
|
|
2946
2968
|
const u = await k.post(e.endpoints.login, c), m = u.headers.authorization;
|
|
2947
2969
|
return n(m), e.user = u.data, e.callbacks.onLoginSuccess && await e.callbacks.onLoginSuccess(u.data), u.data;
|
|
2948
2970
|
}, a = async () => {
|
|
@@ -2959,7 +2981,7 @@ const {
|
|
|
2959
2981
|
} catch (c) {
|
|
2960
2982
|
throw e.callbacks.onLogoutError && await e.callbacks.onLogoutError(c), c;
|
|
2961
2983
|
} finally {
|
|
2962
|
-
s(), e.user = null;
|
|
2984
|
+
s(), e.user = null, Wo();
|
|
2963
2985
|
}
|
|
2964
2986
|
}, i = async () => {
|
|
2965
2987
|
const c = e.overrideToken || r();
|
|
@@ -2977,7 +2999,7 @@ const {
|
|
|
2977
2999
|
} finally {
|
|
2978
3000
|
e.ready = !0;
|
|
2979
3001
|
}
|
|
2980
|
-
}, l =
|
|
3002
|
+
}, l = $(() => e.overrideToken ? !0 : !!e.token && !!e.user);
|
|
2981
3003
|
return {
|
|
2982
3004
|
state: e,
|
|
2983
3005
|
initialize: t,
|
|
@@ -2989,17 +3011,17 @@ const {
|
|
|
2989
3011
|
clearTokenCookie: s,
|
|
2990
3012
|
getTokenCookie: r
|
|
2991
3013
|
};
|
|
2992
|
-
}),
|
|
3014
|
+
}), Go = { class: "h-full grid place-content-center relative" }, Jo = { class: "absolute top-8 left-8" }, Ko = ["src"], Xo = {
|
|
2993
3015
|
key: 1,
|
|
2994
3016
|
width: "59",
|
|
2995
3017
|
height: "23",
|
|
2996
3018
|
viewBox: "0 0 59 23",
|
|
2997
3019
|
fill: "none",
|
|
2998
3020
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2999
|
-
},
|
|
3021
|
+
}, 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
3022
|
key: 0,
|
|
3001
3023
|
class: "text-red-600 text-sm mb-2"
|
|
3002
|
-
},
|
|
3024
|
+
}, sa = { key: 0 }, ra = { key: 1 }, oa = {
|
|
3003
3025
|
__name: "SparkLoginView",
|
|
3004
3026
|
props: {
|
|
3005
3027
|
logo: {
|
|
@@ -3016,7 +3038,7 @@ const {
|
|
|
3016
3038
|
}
|
|
3017
3039
|
},
|
|
3018
3040
|
setup(e) {
|
|
3019
|
-
const t = se(), n =
|
|
3041
|
+
const t = se(), n = Te(), s = Tt(), r = Z(), o = e, a = q(!1), i = q(""), l = async (c) => {
|
|
3020
3042
|
a.value = !0, i.value = "";
|
|
3021
3043
|
try {
|
|
3022
3044
|
await r.login(c);
|
|
@@ -3037,14 +3059,14 @@ const {
|
|
|
3037
3059
|
};
|
|
3038
3060
|
return (c, u) => {
|
|
3039
3061
|
const m = U("FormKit"), w = U("router-link");
|
|
3040
|
-
return g(), y("div",
|
|
3041
|
-
f("div",
|
|
3062
|
+
return g(), y("div", Go, [
|
|
3063
|
+
f("div", Jo, [
|
|
3042
3064
|
o.logo ? (g(), y("img", {
|
|
3043
3065
|
key: 0,
|
|
3044
3066
|
src: o.logo,
|
|
3045
3067
|
alt: "Logo",
|
|
3046
3068
|
class: "h-[23px] w-auto"
|
|
3047
|
-
}, null, 8,
|
|
3069
|
+
}, null, 8, Ko)) : (g(), y("svg", Xo, [...u[0] || (u[0] = [
|
|
3048
3070
|
f("path", {
|
|
3049
3071
|
d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
|
|
3050
3072
|
fill: "#1C64F2"
|
|
@@ -3063,17 +3085,17 @@ const {
|
|
|
3063
3085
|
}, null, -1)
|
|
3064
3086
|
])]))
|
|
3065
3087
|
]),
|
|
3066
|
-
f("div",
|
|
3067
|
-
f("div",
|
|
3088
|
+
f("div", Yo, [
|
|
3089
|
+
f("div", Qo, [
|
|
3068
3090
|
u[1] || (u[1] = f("h1", { class: "text-4xl text-gray-900 semibold tracking-tight mb-3" }, "Log in", -1)),
|
|
3069
|
-
f("p",
|
|
3091
|
+
f("p", ea, " Welcome back" + L(x(s).state.app ? ` to ${x(s).state.app}` : "") + "! Please enter your details. ", 1)
|
|
3070
3092
|
]),
|
|
3071
3093
|
C(m, {
|
|
3072
3094
|
type: "form",
|
|
3073
3095
|
onSubmit: l,
|
|
3074
3096
|
actions: !1
|
|
3075
3097
|
}, {
|
|
3076
|
-
default:
|
|
3098
|
+
default: A(() => [
|
|
3077
3099
|
C(m, {
|
|
3078
3100
|
label: "Email",
|
|
3079
3101
|
name: "email",
|
|
@@ -3092,27 +3114,27 @@ const {
|
|
|
3092
3114
|
"outer-class": "max-w-full",
|
|
3093
3115
|
value: x(r).state.devCredentials.password
|
|
3094
3116
|
}, null, 8, ["value"]),
|
|
3095
|
-
f("div",
|
|
3117
|
+
f("div", ta, [
|
|
3096
3118
|
u[3] || (u[3] = f("span", null, null, -1)),
|
|
3097
3119
|
C(w, {
|
|
3098
3120
|
to: o.forgotPasswordRoute,
|
|
3099
3121
|
class: "text-sm text-primary-600 font-semibold"
|
|
3100
3122
|
}, {
|
|
3101
|
-
default:
|
|
3102
|
-
|
|
3123
|
+
default: A(() => [...u[2] || (u[2] = [
|
|
3124
|
+
K(" Forgot password ", -1)
|
|
3103
3125
|
])]),
|
|
3104
3126
|
_: 1
|
|
3105
3127
|
}, 8, ["to"])
|
|
3106
3128
|
]),
|
|
3107
|
-
i.value ? (g(), y("div",
|
|
3129
|
+
i.value ? (g(), y("div", na, L(i.value), 1)) : R("", !0),
|
|
3108
3130
|
C(x(re), {
|
|
3109
3131
|
type: "submit",
|
|
3110
3132
|
size: "xl",
|
|
3111
3133
|
disabled: a.value,
|
|
3112
3134
|
"button-class": "w-full mb-2"
|
|
3113
3135
|
}, {
|
|
3114
|
-
default:
|
|
3115
|
-
a.value ? (g(), y("span",
|
|
3136
|
+
default: A(() => [
|
|
3137
|
+
a.value ? (g(), y("span", ra, "Signing in...")) : (g(), y("span", sa, "Sign in"))
|
|
3116
3138
|
]),
|
|
3117
3139
|
_: 1
|
|
3118
3140
|
}, 8, ["disabled"])
|
|
@@ -3123,7 +3145,7 @@ const {
|
|
|
3123
3145
|
]);
|
|
3124
3146
|
};
|
|
3125
3147
|
}
|
|
3126
|
-
},
|
|
3148
|
+
}, aa = {
|
|
3127
3149
|
__name: "SparkLogoutView",
|
|
3128
3150
|
props: {
|
|
3129
3151
|
defaultRedirect: {
|
|
@@ -3132,27 +3154,27 @@ const {
|
|
|
3132
3154
|
}
|
|
3133
3155
|
},
|
|
3134
3156
|
setup(e) {
|
|
3135
|
-
const t = se(), n =
|
|
3136
|
-
return
|
|
3157
|
+
const t = se(), n = Te(), s = Z(), r = e;
|
|
3158
|
+
return dn(async () => {
|
|
3137
3159
|
await s.logout();
|
|
3138
3160
|
const o = n.query.redirect;
|
|
3139
3161
|
o && o.startsWith("http") ? window.location.href = o : await t.push(o || r.defaultRedirect);
|
|
3140
3162
|
}), (o, a) => null;
|
|
3141
3163
|
}
|
|
3142
|
-
},
|
|
3164
|
+
}, ia = { class: "h-full grid place-content-center relative" }, la = { class: "absolute top-8 left-8" }, ca = ["src"], ua = {
|
|
3143
3165
|
key: 1,
|
|
3144
3166
|
width: "59",
|
|
3145
3167
|
height: "23",
|
|
3146
3168
|
viewBox: "0 0 59 23",
|
|
3147
3169
|
fill: "none",
|
|
3148
3170
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3149
|
-
},
|
|
3171
|
+
}, da = { class: "max-w-sm grid gap-y-1 -mt-8" }, fa = {
|
|
3150
3172
|
key: 0,
|
|
3151
3173
|
class: "text-red-600 text-sm mb-2"
|
|
3152
|
-
},
|
|
3174
|
+
}, pa = {
|
|
3153
3175
|
key: 1,
|
|
3154
3176
|
class: "text-green-600 text-sm mb-2"
|
|
3155
|
-
},
|
|
3177
|
+
}, ha = { key: 0 }, ma = { key: 1 }, ga = {
|
|
3156
3178
|
__name: "SparkForgotPasswordView",
|
|
3157
3179
|
props: {
|
|
3158
3180
|
logo: {
|
|
@@ -3165,7 +3187,7 @@ const {
|
|
|
3165
3187
|
}
|
|
3166
3188
|
},
|
|
3167
3189
|
setup(e) {
|
|
3168
|
-
const t =
|
|
3190
|
+
const t = Z(), n = e, s = q(!1), r = q(""), o = q(""), a = async ({ email: i }) => {
|
|
3169
3191
|
s.value = !0, r.value = "", o.value = "";
|
|
3170
3192
|
try {
|
|
3171
3193
|
await k.post(t.state.endpoints.passwordEmail, { email: i }), o.value = "Password reset link sent! Check your email.";
|
|
@@ -3177,14 +3199,14 @@ const {
|
|
|
3177
3199
|
};
|
|
3178
3200
|
return (i, l) => {
|
|
3179
3201
|
const c = U("FormKit"), u = U("router-link");
|
|
3180
|
-
return g(), y("div",
|
|
3181
|
-
f("div",
|
|
3202
|
+
return g(), y("div", ia, [
|
|
3203
|
+
f("div", la, [
|
|
3182
3204
|
n.logo ? (g(), y("img", {
|
|
3183
3205
|
key: 0,
|
|
3184
3206
|
src: n.logo,
|
|
3185
3207
|
alt: "Logo",
|
|
3186
3208
|
class: "h-[23px] w-auto"
|
|
3187
|
-
}, null, 8,
|
|
3209
|
+
}, null, 8, ca)) : (g(), y("svg", ua, [...l[0] || (l[0] = [
|
|
3188
3210
|
f("path", {
|
|
3189
3211
|
d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
|
|
3190
3212
|
fill: "#1C64F2"
|
|
@@ -3203,7 +3225,7 @@ const {
|
|
|
3203
3225
|
}, null, -1)
|
|
3204
3226
|
])]))
|
|
3205
3227
|
]),
|
|
3206
|
-
f("div",
|
|
3228
|
+
f("div", da, [
|
|
3207
3229
|
l[2] || (l[2] = f("div", { class: "mb-7" }, [
|
|
3208
3230
|
f("h1", { class: "text-4xl text-gray-900 semibold tracking-tight mb-3" }, "Reset password"),
|
|
3209
3231
|
f("p", { class: "text-gray-600" }, " Enter your email and we'll send you a link to reset your password. ")
|
|
@@ -3213,7 +3235,7 @@ const {
|
|
|
3213
3235
|
onSubmit: a,
|
|
3214
3236
|
actions: !1
|
|
3215
3237
|
}, {
|
|
3216
|
-
default:
|
|
3238
|
+
default: A(() => [
|
|
3217
3239
|
C(c, {
|
|
3218
3240
|
label: "Email",
|
|
3219
3241
|
name: "email",
|
|
@@ -3222,16 +3244,16 @@ const {
|
|
|
3222
3244
|
validation: "required|email",
|
|
3223
3245
|
"outer-class": "max-w-full"
|
|
3224
3246
|
}),
|
|
3225
|
-
r.value ? (g(), y("div",
|
|
3226
|
-
o.value ? (g(), y("div",
|
|
3247
|
+
r.value ? (g(), y("div", fa, L(r.value), 1)) : R("", !0),
|
|
3248
|
+
o.value ? (g(), y("div", pa, L(o.value), 1)) : R("", !0),
|
|
3227
3249
|
C(x(re), {
|
|
3228
3250
|
type: "submit",
|
|
3229
3251
|
size: "xl",
|
|
3230
3252
|
disabled: s.value,
|
|
3231
3253
|
"button-class": "w-full mb-2"
|
|
3232
3254
|
}, {
|
|
3233
|
-
default:
|
|
3234
|
-
s.value ? (g(), y("span",
|
|
3255
|
+
default: A(() => [
|
|
3256
|
+
s.value ? (g(), y("span", ma, "Sending...")) : (g(), y("span", ha, "Send reset link"))
|
|
3235
3257
|
]),
|
|
3236
3258
|
_: 1
|
|
3237
3259
|
}, 8, ["disabled"]),
|
|
@@ -3239,8 +3261,8 @@ const {
|
|
|
3239
3261
|
to: n.loginRoute,
|
|
3240
3262
|
class: "text-sm text-center text-primary-600 font-semibold block"
|
|
3241
3263
|
}, {
|
|
3242
|
-
default:
|
|
3243
|
-
|
|
3264
|
+
default: A(() => [...l[1] || (l[1] = [
|
|
3265
|
+
K(" Back to login ", -1)
|
|
3244
3266
|
])]),
|
|
3245
3267
|
_: 1
|
|
3246
3268
|
}, 8, ["to"])
|
|
@@ -3251,17 +3273,17 @@ const {
|
|
|
3251
3273
|
]);
|
|
3252
3274
|
};
|
|
3253
3275
|
}
|
|
3254
|
-
},
|
|
3276
|
+
}, ya = { class: "h-full grid place-content-center relative" }, wa = { class: "absolute top-8 left-8" }, ba = ["src"], xa = {
|
|
3255
3277
|
key: 1,
|
|
3256
3278
|
width: "59",
|
|
3257
3279
|
height: "23",
|
|
3258
3280
|
viewBox: "0 0 59 23",
|
|
3259
3281
|
fill: "none",
|
|
3260
3282
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3261
|
-
},
|
|
3283
|
+
}, Sa = { class: "max-w-sm grid gap-y-1 -mt-8" }, Ca = {
|
|
3262
3284
|
key: 0,
|
|
3263
3285
|
class: "text-red-600 text-sm mb-2"
|
|
3264
|
-
},
|
|
3286
|
+
}, va = { key: 0 }, _a = { key: 1 }, ka = {
|
|
3265
3287
|
__name: "SparkResetPasswordView",
|
|
3266
3288
|
props: {
|
|
3267
3289
|
logo: {
|
|
@@ -3274,7 +3296,7 @@ const {
|
|
|
3274
3296
|
}
|
|
3275
3297
|
},
|
|
3276
3298
|
setup(e) {
|
|
3277
|
-
const t = se(), n =
|
|
3299
|
+
const t = se(), n = Te(), s = Z(), r = e, o = q(!1), a = q(""), i = async ({ password: l, password_confirmation: c }) => {
|
|
3278
3300
|
o.value = !0, a.value = "";
|
|
3279
3301
|
try {
|
|
3280
3302
|
await k.post(s.state.endpoints.passwordReset, {
|
|
@@ -3291,14 +3313,14 @@ const {
|
|
|
3291
3313
|
};
|
|
3292
3314
|
return (l, c) => {
|
|
3293
3315
|
const u = U("FormKit");
|
|
3294
|
-
return g(), y("div",
|
|
3295
|
-
f("div",
|
|
3316
|
+
return g(), y("div", ya, [
|
|
3317
|
+
f("div", wa, [
|
|
3296
3318
|
r.logo ? (g(), y("img", {
|
|
3297
3319
|
key: 0,
|
|
3298
3320
|
src: r.logo,
|
|
3299
3321
|
alt: "Logo",
|
|
3300
3322
|
class: "h-[23px] w-auto"
|
|
3301
|
-
}, null, 8,
|
|
3323
|
+
}, null, 8, ba)) : (g(), y("svg", xa, [...c[0] || (c[0] = [
|
|
3302
3324
|
f("path", {
|
|
3303
3325
|
d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
|
|
3304
3326
|
fill: "#1C64F2"
|
|
@@ -3317,7 +3339,7 @@ const {
|
|
|
3317
3339
|
}, null, -1)
|
|
3318
3340
|
])]))
|
|
3319
3341
|
]),
|
|
3320
|
-
f("div",
|
|
3342
|
+
f("div", Sa, [
|
|
3321
3343
|
c[1] || (c[1] = f("div", { class: "mb-7" }, [
|
|
3322
3344
|
f("h1", { class: "text-4xl text-gray-900 semibold tracking-tight mb-3" }, "Set new password"),
|
|
3323
3345
|
f("p", { class: "text-gray-600" }, " Enter your new password below. ")
|
|
@@ -3327,7 +3349,7 @@ const {
|
|
|
3327
3349
|
onSubmit: i,
|
|
3328
3350
|
actions: !1
|
|
3329
3351
|
}, {
|
|
3330
|
-
default:
|
|
3352
|
+
default: A(() => [
|
|
3331
3353
|
C(u, {
|
|
3332
3354
|
label: "New Password",
|
|
3333
3355
|
name: "password",
|
|
@@ -3344,15 +3366,15 @@ const {
|
|
|
3344
3366
|
validation: "required|confirm:password",
|
|
3345
3367
|
"outer-class": "max-w-full"
|
|
3346
3368
|
}),
|
|
3347
|
-
a.value ? (g(), y("div",
|
|
3369
|
+
a.value ? (g(), y("div", Ca, L(a.value), 1)) : R("", !0),
|
|
3348
3370
|
C(x(re), {
|
|
3349
3371
|
type: "submit",
|
|
3350
3372
|
size: "xl",
|
|
3351
3373
|
disabled: o.value,
|
|
3352
3374
|
"button-class": "w-full mb-2"
|
|
3353
3375
|
}, {
|
|
3354
|
-
default:
|
|
3355
|
-
o.value ? (g(), y("span",
|
|
3376
|
+
default: A(() => [
|
|
3377
|
+
o.value ? (g(), y("span", _a, "Resetting...")) : (g(), y("span", va, "Reset password"))
|
|
3356
3378
|
]),
|
|
3357
3379
|
_: 1
|
|
3358
3380
|
}, 8, ["disabled"])
|
|
@@ -3363,14 +3385,14 @@ const {
|
|
|
3363
3385
|
]);
|
|
3364
3386
|
};
|
|
3365
3387
|
}
|
|
3366
|
-
},
|
|
3388
|
+
}, Ra = { class: "h-full grid place-content-center relative" }, Ea = { class: "absolute top-8 left-8" }, Aa = ["src"], $a = {
|
|
3367
3389
|
key: 1,
|
|
3368
3390
|
width: "59",
|
|
3369
3391
|
height: "23",
|
|
3370
3392
|
viewBox: "0 0 59 23",
|
|
3371
3393
|
fill: "none",
|
|
3372
3394
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3373
|
-
},
|
|
3395
|
+
}, Oa = { class: "max-w-lg grid gap-y-6 text-center -mt-8" }, La = { class: "flex gap-4 justify-center" }, Ta = {
|
|
3374
3396
|
__name: "SparkError403View",
|
|
3375
3397
|
props: {
|
|
3376
3398
|
logo: {
|
|
@@ -3386,14 +3408,14 @@ const {
|
|
|
3386
3408
|
const t = se(), n = e, s = () => {
|
|
3387
3409
|
t.push(n.homeRoute);
|
|
3388
3410
|
};
|
|
3389
|
-
return (r, o) => (g(), y("div",
|
|
3390
|
-
f("div",
|
|
3411
|
+
return (r, o) => (g(), y("div", Ra, [
|
|
3412
|
+
f("div", Ea, [
|
|
3391
3413
|
n.logo ? (g(), y("img", {
|
|
3392
3414
|
key: 0,
|
|
3393
3415
|
src: n.logo,
|
|
3394
3416
|
alt: "Logo",
|
|
3395
3417
|
class: "h-[23px] w-auto"
|
|
3396
|
-
}, null, 8,
|
|
3418
|
+
}, null, 8, Aa)) : (g(), y("svg", $a, [...o[0] || (o[0] = [
|
|
3397
3419
|
f("path", {
|
|
3398
3420
|
d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
|
|
3399
3421
|
fill: "#1C64F2"
|
|
@@ -3412,23 +3434,23 @@ const {
|
|
|
3412
3434
|
}, null, -1)
|
|
3413
3435
|
])]))
|
|
3414
3436
|
]),
|
|
3415
|
-
f("div",
|
|
3437
|
+
f("div", Oa, [
|
|
3416
3438
|
o[2] || (o[2] = f("div", null, [
|
|
3417
3439
|
f("div", { class: "text-primary-600 text-7xl font-bold mb-4" }, "403"),
|
|
3418
3440
|
f("h1", { class: "text-3xl text-gray-900 font-semibold tracking-tight mb-3" }, " Access Forbidden "),
|
|
3419
3441
|
f("p", { class: "text-gray-600" }, [
|
|
3420
|
-
|
|
3442
|
+
K(" You don't have permission to access this resource."),
|
|
3421
3443
|
f("br"),
|
|
3422
|
-
|
|
3444
|
+
K(" If you believe this is an error, please contact your administrator. ")
|
|
3423
3445
|
])
|
|
3424
3446
|
], -1)),
|
|
3425
|
-
f("div",
|
|
3447
|
+
f("div", La, [
|
|
3426
3448
|
C(x(re), {
|
|
3427
3449
|
onClick: s,
|
|
3428
3450
|
size: "lg"
|
|
3429
3451
|
}, {
|
|
3430
|
-
default:
|
|
3431
|
-
|
|
3452
|
+
default: A(() => [...o[1] || (o[1] = [
|
|
3453
|
+
K(" Go to Home ", -1)
|
|
3432
3454
|
])]),
|
|
3433
3455
|
_: 1
|
|
3434
3456
|
})
|
|
@@ -3436,14 +3458,14 @@ const {
|
|
|
3436
3458
|
])
|
|
3437
3459
|
]));
|
|
3438
3460
|
}
|
|
3439
|
-
},
|
|
3461
|
+
}, Ha = { class: "h-full grid place-content-center relative" }, Fa = { class: "absolute top-8 left-8" }, Ba = ["src"], Va = {
|
|
3440
3462
|
key: 1,
|
|
3441
3463
|
width: "59",
|
|
3442
3464
|
height: "23",
|
|
3443
3465
|
viewBox: "0 0 59 23",
|
|
3444
3466
|
fill: "none",
|
|
3445
3467
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3446
|
-
},
|
|
3468
|
+
}, Na = { class: "max-w-lg grid gap-y-6 text-center -mt-8" }, Pa = { class: "flex gap-4 justify-center" }, Ma = {
|
|
3447
3469
|
__name: "SparkError404View",
|
|
3448
3470
|
props: {
|
|
3449
3471
|
logo: {
|
|
@@ -3459,14 +3481,14 @@ const {
|
|
|
3459
3481
|
const t = se(), n = e, s = () => {
|
|
3460
3482
|
t.push(n.homeRoute);
|
|
3461
3483
|
};
|
|
3462
|
-
return (r, o) => (g(), y("div",
|
|
3463
|
-
f("div",
|
|
3484
|
+
return (r, o) => (g(), y("div", Ha, [
|
|
3485
|
+
f("div", Fa, [
|
|
3464
3486
|
n.logo ? (g(), y("img", {
|
|
3465
3487
|
key: 0,
|
|
3466
3488
|
src: n.logo,
|
|
3467
3489
|
alt: "Logo",
|
|
3468
3490
|
class: "h-[23px] w-auto"
|
|
3469
|
-
}, null, 8,
|
|
3491
|
+
}, null, 8, Ba)) : (g(), y("svg", Va, [...o[0] || (o[0] = [
|
|
3470
3492
|
f("path", {
|
|
3471
3493
|
d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
|
|
3472
3494
|
fill: "#1C64F2"
|
|
@@ -3485,19 +3507,19 @@ const {
|
|
|
3485
3507
|
}, null, -1)
|
|
3486
3508
|
])]))
|
|
3487
3509
|
]),
|
|
3488
|
-
f("div",
|
|
3510
|
+
f("div", Na, [
|
|
3489
3511
|
o[2] || (o[2] = f("div", null, [
|
|
3490
3512
|
f("div", { class: "text-primary-600 text-7xl font-bold mb-4" }, "404"),
|
|
3491
3513
|
f("h1", { class: "text-3xl text-gray-900 font-semibold tracking-tight mb-3" }, " Page Not Found "),
|
|
3492
3514
|
f("p", { class: "text-gray-600" }, " The page you're looking for doesn't exist or has been moved. ")
|
|
3493
3515
|
], -1)),
|
|
3494
|
-
f("div",
|
|
3516
|
+
f("div", Pa, [
|
|
3495
3517
|
C(x(re), {
|
|
3496
3518
|
onClick: s,
|
|
3497
3519
|
size: "lg"
|
|
3498
3520
|
}, {
|
|
3499
|
-
default:
|
|
3500
|
-
|
|
3521
|
+
default: A(() => [...o[1] || (o[1] = [
|
|
3522
|
+
K(" Go to Home ", -1)
|
|
3501
3523
|
])]),
|
|
3502
3524
|
_: 1
|
|
3503
3525
|
})
|
|
@@ -3505,14 +3527,14 @@ const {
|
|
|
3505
3527
|
])
|
|
3506
3528
|
]));
|
|
3507
3529
|
}
|
|
3508
|
-
},
|
|
3530
|
+
}, Ua = { class: "h-full grid place-content-center relative" }, ja = { class: "absolute top-8 left-8" }, Da = ["src"], Ia = {
|
|
3509
3531
|
key: 1,
|
|
3510
3532
|
width: "59",
|
|
3511
3533
|
height: "23",
|
|
3512
3534
|
viewBox: "0 0 59 23",
|
|
3513
3535
|
fill: "none",
|
|
3514
3536
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3515
|
-
},
|
|
3537
|
+
}, 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" }, Li = {
|
|
3516
3538
|
__name: "SparkErrorGeneralView",
|
|
3517
3539
|
props: {
|
|
3518
3540
|
logo: {
|
|
@@ -3540,14 +3562,14 @@ const {
|
|
|
3540
3562
|
const t = se(), n = e, s = () => {
|
|
3541
3563
|
t.push(n.homeRoute);
|
|
3542
3564
|
};
|
|
3543
|
-
return (r, o) => (g(), y("div",
|
|
3544
|
-
f("div",
|
|
3565
|
+
return (r, o) => (g(), y("div", Ua, [
|
|
3566
|
+
f("div", ja, [
|
|
3545
3567
|
n.logo ? (g(), y("img", {
|
|
3546
3568
|
key: 0,
|
|
3547
3569
|
src: n.logo,
|
|
3548
3570
|
alt: "Logo",
|
|
3549
3571
|
class: "h-[23px] w-auto"
|
|
3550
|
-
}, null, 8,
|
|
3572
|
+
}, null, 8, Da)) : (g(), y("svg", Ia, [...o[0] || (o[0] = [
|
|
3551
3573
|
f("path", {
|
|
3552
3574
|
d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
|
|
3553
3575
|
fill: "#1C64F2"
|
|
@@ -3566,19 +3588,19 @@ const {
|
|
|
3566
3588
|
}, null, -1)
|
|
3567
3589
|
])]))
|
|
3568
3590
|
]),
|
|
3569
|
-
f("div",
|
|
3591
|
+
f("div", za, [
|
|
3570
3592
|
f("div", null, [
|
|
3571
|
-
f("div",
|
|
3572
|
-
f("h1",
|
|
3573
|
-
f("p",
|
|
3593
|
+
f("div", qa, L(n.errorCode || "Error"), 1),
|
|
3594
|
+
f("h1", Za, L(n.title || "Something went wrong"), 1),
|
|
3595
|
+
f("p", Wa, L(n.message || "An unexpected error occurred. Please try again later."), 1)
|
|
3574
3596
|
]),
|
|
3575
|
-
f("div",
|
|
3597
|
+
f("div", Ga, [
|
|
3576
3598
|
C(x(re), {
|
|
3577
3599
|
onClick: s,
|
|
3578
3600
|
size: "lg"
|
|
3579
3601
|
}, {
|
|
3580
|
-
default:
|
|
3581
|
-
|
|
3602
|
+
default: A(() => [...o[1] || (o[1] = [
|
|
3603
|
+
K(" Go to Home ", -1)
|
|
3582
3604
|
])]),
|
|
3583
3605
|
_: 1
|
|
3584
3606
|
})
|
|
@@ -3587,7 +3609,7 @@ const {
|
|
|
3587
3609
|
]));
|
|
3588
3610
|
}
|
|
3589
3611
|
};
|
|
3590
|
-
function
|
|
3612
|
+
function Ti(e = {}) {
|
|
3591
3613
|
const {
|
|
3592
3614
|
loginPath: t = "/login",
|
|
3593
3615
|
logoutPath: n = "/logout",
|
|
@@ -3600,41 +3622,41 @@ function Ei(e = {}) {
|
|
|
3600
3622
|
{
|
|
3601
3623
|
path: t,
|
|
3602
3624
|
name: "login",
|
|
3603
|
-
component:
|
|
3625
|
+
component: oa,
|
|
3604
3626
|
props: { logo: o, defaultRedirect: a },
|
|
3605
3627
|
meta: { auth: !1 }
|
|
3606
3628
|
},
|
|
3607
3629
|
{
|
|
3608
3630
|
path: n,
|
|
3609
3631
|
name: "logout",
|
|
3610
|
-
component:
|
|
3632
|
+
component: aa,
|
|
3611
3633
|
props: { defaultRedirect: t },
|
|
3612
3634
|
meta: { auth: !1 }
|
|
3613
3635
|
},
|
|
3614
3636
|
{
|
|
3615
3637
|
path: s,
|
|
3616
3638
|
name: "forgot-password",
|
|
3617
|
-
component:
|
|
3639
|
+
component: ga,
|
|
3618
3640
|
props: { logo: o, loginRoute: t },
|
|
3619
3641
|
meta: { auth: !1 }
|
|
3620
3642
|
},
|
|
3621
3643
|
{
|
|
3622
3644
|
path: r,
|
|
3623
3645
|
name: "password-reset",
|
|
3624
|
-
component:
|
|
3646
|
+
component: ka,
|
|
3625
3647
|
props: { logo: o, loginRoute: t },
|
|
3626
3648
|
meta: { auth: !1 }
|
|
3627
3649
|
}
|
|
3628
3650
|
];
|
|
3629
3651
|
}
|
|
3630
|
-
function
|
|
3652
|
+
function Hi(e, t = {}) {
|
|
3631
3653
|
const { defaultAuthenticatedRoute: n = "/dashboard" } = t;
|
|
3632
3654
|
e.beforeEach(async (s, r, o) => {
|
|
3633
|
-
const a =
|
|
3634
|
-
a.state.ready || await a.fetchUser(),
|
|
3655
|
+
const a = Z();
|
|
3656
|
+
a.state.ready || await a.fetchUser(), Ja(s, o, a, n);
|
|
3635
3657
|
});
|
|
3636
3658
|
}
|
|
3637
|
-
function
|
|
3659
|
+
function Ja(e, t, n, s) {
|
|
3638
3660
|
const r = e.meta.auth !== !1, o = n.check;
|
|
3639
3661
|
if (n.state.overrideToken && e.path === "/logout") {
|
|
3640
3662
|
t({ path: s });
|
|
@@ -3672,7 +3694,7 @@ function qa(e, t, n, s) {
|
|
|
3672
3694
|
t();
|
|
3673
3695
|
}
|
|
3674
3696
|
}
|
|
3675
|
-
function
|
|
3697
|
+
function Fi(e = {}) {
|
|
3676
3698
|
const {
|
|
3677
3699
|
forbiddenPath: t = "/error/403",
|
|
3678
3700
|
logo: n = "",
|
|
@@ -3681,12 +3703,12 @@ function Ai(e = {}) {
|
|
|
3681
3703
|
return {
|
|
3682
3704
|
path: t,
|
|
3683
3705
|
name: "error-403",
|
|
3684
|
-
component:
|
|
3706
|
+
component: Ta,
|
|
3685
3707
|
props: { logo: n, homeRoute: s },
|
|
3686
3708
|
meta: { auth: !1 }
|
|
3687
3709
|
};
|
|
3688
3710
|
}
|
|
3689
|
-
function
|
|
3711
|
+
function Bi(e = {}) {
|
|
3690
3712
|
const {
|
|
3691
3713
|
logo: t = "",
|
|
3692
3714
|
homeRoute: n = "/dashboard"
|
|
@@ -3694,12 +3716,20 @@ function Oi(e = {}) {
|
|
|
3694
3716
|
return {
|
|
3695
3717
|
path: "/:pathMatch(.*)*",
|
|
3696
3718
|
name: "error-404",
|
|
3697
|
-
component:
|
|
3719
|
+
component: Ma,
|
|
3698
3720
|
props: { logo: t, homeRoute: n },
|
|
3699
3721
|
meta: { auth: !1 }
|
|
3700
3722
|
};
|
|
3701
3723
|
}
|
|
3702
|
-
function
|
|
3724
|
+
function Vi(e, t) {
|
|
3725
|
+
e.beforeResolve(async (n) => {
|
|
3726
|
+
if (n.meta.auth !== !1) {
|
|
3727
|
+
const s = Z();
|
|
3728
|
+
s.state.ready && s.check && await t();
|
|
3729
|
+
}
|
|
3730
|
+
});
|
|
3731
|
+
}
|
|
3732
|
+
function Ka(e = {}) {
|
|
3703
3733
|
const t = k.create({
|
|
3704
3734
|
baseURL: e.baseURL || "",
|
|
3705
3735
|
timeout: e.timeout || 3e4,
|
|
@@ -3711,7 +3741,7 @@ function Za(e = {}) {
|
|
|
3711
3741
|
return t.interceptors.request.use(
|
|
3712
3742
|
(n) => {
|
|
3713
3743
|
try {
|
|
3714
|
-
const s =
|
|
3744
|
+
const s = Z();
|
|
3715
3745
|
s.state.overrideToken ? n.headers.Authorization = `Bearer ${s.state.overrideToken}` : s.state.token && (n.headers.Authorization = `Bearer ${s.state.token}`);
|
|
3716
3746
|
} catch {
|
|
3717
3747
|
}
|
|
@@ -3723,14 +3753,14 @@ function Za(e = {}) {
|
|
|
3723
3753
|
async (n) => {
|
|
3724
3754
|
if (n.response?.status === 401)
|
|
3725
3755
|
try {
|
|
3726
|
-
const s =
|
|
3756
|
+
const s = Z();
|
|
3727
3757
|
await s.logout(), window.location.href = s.state.routes.auth;
|
|
3728
3758
|
} catch (s) {
|
|
3729
3759
|
console.error("Error during auto-logout:", s), window.location.href = "/login";
|
|
3730
3760
|
}
|
|
3731
3761
|
if (n.response?.status === 403)
|
|
3732
3762
|
try {
|
|
3733
|
-
const s =
|
|
3763
|
+
const s = Z();
|
|
3734
3764
|
window.location.href = s.state.routes.forbidden;
|
|
3735
3765
|
} catch (s) {
|
|
3736
3766
|
console.error("Error during 403 redirect:", s), window.location.href = "/error/403";
|
|
@@ -3739,16 +3769,21 @@ function Za(e = {}) {
|
|
|
3739
3769
|
}
|
|
3740
3770
|
), t;
|
|
3741
3771
|
}
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
return e.provide("axios",
|
|
3772
|
+
let ae = null;
|
|
3773
|
+
function Ni(e, t = {}) {
|
|
3774
|
+
return ae = Ka(t), e.provide("axios", ae), e.config.globalProperties.$axios = ae, ae;
|
|
3775
|
+
}
|
|
3776
|
+
function Pi() {
|
|
3777
|
+
if (!ae)
|
|
3778
|
+
throw new Error("Axios instance not initialized. Call setupAxios() first.");
|
|
3779
|
+
return ae;
|
|
3745
3780
|
}
|
|
3746
|
-
const
|
|
3781
|
+
const Mi = ge("sparkNav", () => {
|
|
3747
3782
|
const e = ne({
|
|
3748
3783
|
menu: [],
|
|
3749
3784
|
collapsed: !1,
|
|
3750
3785
|
hidden: !1
|
|
3751
|
-
}), t = se(), n =
|
|
3786
|
+
}), t = se(), n = Te(), s = (c = []) => {
|
|
3752
3787
|
e.menu = c;
|
|
3753
3788
|
}, r = (c, u) => {
|
|
3754
3789
|
for (const m of c) {
|
|
@@ -3783,7 +3818,7 @@ const Ti = me("sparkNav", () => {
|
|
|
3783
3818
|
u(e.menu);
|
|
3784
3819
|
}
|
|
3785
3820
|
};
|
|
3786
|
-
return
|
|
3821
|
+
return fn(
|
|
3787
3822
|
() => n.path,
|
|
3788
3823
|
() => {
|
|
3789
3824
|
l();
|
|
@@ -3800,38 +3835,41 @@ const Ti = me("sparkNav", () => {
|
|
|
3800
3835
|
});
|
|
3801
3836
|
export {
|
|
3802
3837
|
B as Icons,
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3838
|
+
ai as SparkAlert,
|
|
3839
|
+
ms as SparkAppSelector,
|
|
3840
|
+
Ls as SparkBrandSelector,
|
|
3806
3841
|
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
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3842
|
+
ii as SparkButtonGroup,
|
|
3843
|
+
li as SparkCard,
|
|
3844
|
+
ui as SparkDefaultContainer,
|
|
3845
|
+
Ta as SparkError403View,
|
|
3846
|
+
Ma as SparkError404View,
|
|
3847
|
+
Li as SparkErrorGeneralView,
|
|
3848
|
+
ga as SparkForgotPasswordView,
|
|
3849
|
+
oa as SparkLoginView,
|
|
3850
|
+
aa as SparkLogoutView,
|
|
3851
|
+
Ms as SparkModalContainer,
|
|
3852
|
+
ci as SparkModalDialog,
|
|
3853
|
+
at as SparkOverlay,
|
|
3854
|
+
di as SparkPublicContainer,
|
|
3855
|
+
ka as SparkResetPasswordView,
|
|
3856
|
+
ri as addIcons,
|
|
3857
|
+
Fi as create403Route,
|
|
3858
|
+
Bi as create404Route,
|
|
3859
|
+
Ti as createAuthRoutes,
|
|
3860
|
+
Ka as createAxiosInstance,
|
|
3861
|
+
Oi as createBootstrapService,
|
|
3862
|
+
Pi as getAxiosInstance,
|
|
3863
|
+
Hi as setupAuthGuards,
|
|
3864
|
+
Ni as setupAxios,
|
|
3865
|
+
Vi as setupBootstrapGuard,
|
|
3866
|
+
oi as setupFontAwesome,
|
|
3867
|
+
pe as sparkModalService,
|
|
3868
|
+
_e as sparkOverlayService,
|
|
3869
|
+
Lt as useSparkAppSelectorStore,
|
|
3870
|
+
Tt as useSparkAppStore,
|
|
3871
|
+
Z as useSparkAuthStore,
|
|
3872
|
+
Ht as useSparkBrandFilterStore,
|
|
3873
|
+
Mi as useSparkNavStore,
|
|
3874
|
+
it as useSparkOverlay
|
|
3837
3875
|
};
|