@wishbone-media/spark 0.13.0 → 0.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { computed as A, resolveComponent as U, createElementBlock as
|
|
1
|
+
import { computed as A, 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 ae, renderList as he, createCommentVNode as R, toDisplayString as L, createBlock as Z, resolveDynamicComponent as $e, ref as q, inject as on, provide as an, markRaw as vt, withCtx as $, mergeProps as _t, toHandlers as kt, createTextVNode as J, useSlots as ln, withModifiers as de, h as rt, onMounted as cn, watch as un } from "vue";
|
|
2
2
|
import { library as Rt } from "@fortawesome/fontawesome-svg-core";
|
|
3
3
|
import { FontAwesomeIcon as dn } from "@fortawesome/vue-fontawesome";
|
|
4
|
-
import { faSignOut as fn, faXmark as pn, faTimes as hn, faStreetView as mn, faSortUp as gn, faSortDown as yn, faSort as wn, faScaleBalanced as bn, faSatelliteDish as xn, faLayerPlus as Sn, faLaptopMobile as Cn, faInfoCircle as vn, faGripDotsVertical as _n, faGearComplex as kn, faFlag as Rn, faFaceSmileWink as En, faFaceSmileRelaxed as $n, faExclamationTriangle as An, faEllipsisVertical as
|
|
5
|
-
import { defineStore as
|
|
4
|
+
import { faSignOut as fn, faXmark as pn, faTimes as hn, faStreetView as mn, faSortUp as gn, faSortDown as yn, faSort as wn, faScaleBalanced as bn, faSatelliteDish as xn, faLayerPlus as Sn, faLaptopMobile as Cn, faInfoCircle as vn, faGripDotsVertical as _n, faGearComplex as kn, faFlag as Rn, faFaceSmileWink as En, faFaceSmileRelaxed as $n, faExclamationTriangle as An, faEllipsisVertical as On, faEllipsis as Ln, faEdit as Tn, faComments as Hn, faCircleXmark as Fn, faCircleUser as Bn, faChevronUp as Vn, faChevronRight as Nn, faChevronLeft as Pn, faChevronDown as Mn, faCheckCircle as Un, faCheck as jn, faBullhorn as Dn, faBellRing as In, faBarsSort as zn, faArrowRightToLine as qn, faArrowLeftToLine as Zn } from "@fortawesome/pro-regular-svg-icons";
|
|
5
|
+
import { defineStore as me } from "pinia";
|
|
6
6
|
import { TransitionRoot as Et, Dialog as $t, TransitionChild as Ae, DialogPanel as At } from "@headlessui/vue";
|
|
7
|
-
import { useRouter as
|
|
7
|
+
import { useRouter as se, useRoute as Le } from "vue-router";
|
|
8
8
|
const B = {
|
|
9
9
|
farArrowLeftToLine: Zn,
|
|
10
10
|
farArrowRightToLine: qn,
|
|
@@ -21,8 +21,8 @@ const B = {
|
|
|
21
21
|
farCircleXmark: Fn,
|
|
22
22
|
farComments: Hn,
|
|
23
23
|
farEdit: Tn,
|
|
24
|
-
farEllipsis:
|
|
25
|
-
farEllipsisVertical:
|
|
24
|
+
farEllipsis: Ln,
|
|
25
|
+
farEllipsisVertical: On,
|
|
26
26
|
farExclamationTriangle: An,
|
|
27
27
|
farFaceSmileRelaxed: $n,
|
|
28
28
|
farFaceSmileWink: En,
|
|
@@ -82,14 +82,14 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
|
|
|
82
82
|
})[t.type]);
|
|
83
83
|
return (a, i) => {
|
|
84
84
|
const l = U("font-awesome-icon");
|
|
85
|
-
return
|
|
86
|
-
class:
|
|
85
|
+
return g(), y("div", {
|
|
86
|
+
class: E(["rounded-md border p-4", n.value])
|
|
87
87
|
}, [
|
|
88
88
|
f("div", Wn, [
|
|
89
89
|
f("div", Gn, [
|
|
90
90
|
C(l, {
|
|
91
|
-
icon:
|
|
92
|
-
class:
|
|
91
|
+
icon: x(B)[r.value],
|
|
92
|
+
class: E(s.value)
|
|
93
93
|
}, null, 8, ["icon", "class"])
|
|
94
94
|
]),
|
|
95
95
|
f("div", Jn, [
|
|
@@ -99,11 +99,11 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
|
|
|
99
99
|
f("div", Xn, [
|
|
100
100
|
f("button", {
|
|
101
101
|
type: "button",
|
|
102
|
-
class:
|
|
103
|
-
onClick: i[0] || (i[0] = (
|
|
102
|
+
class: E(["inline-flex rounded-md px-2 py-1.5", o.value]),
|
|
103
|
+
onClick: i[0] || (i[0] = (c) => a.$emit("close"))
|
|
104
104
|
}, [
|
|
105
105
|
C(l, {
|
|
106
|
-
icon:
|
|
106
|
+
icon: x(B).farXmark
|
|
107
107
|
}, null, 8, ["icon"])
|
|
108
108
|
], 2)
|
|
109
109
|
])
|
|
@@ -155,8 +155,8 @@ 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
|
-
],
|
|
159
|
-
const e =
|
|
158
|
+
], Ot = me("sparkAppSelector", () => {
|
|
159
|
+
const e = ne({
|
|
160
160
|
apps: [...Me]
|
|
161
161
|
}), t = (o = {}) => {
|
|
162
162
|
if (o.apps && Array.isArray(o.apps)) {
|
|
@@ -201,8 +201,8 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
|
|
|
201
201
|
return a ? a.icon : "";
|
|
202
202
|
}
|
|
203
203
|
};
|
|
204
|
-
}),
|
|
205
|
-
const e =
|
|
204
|
+
}), Lt = me("sparkApp", () => {
|
|
205
|
+
const e = ne({
|
|
206
206
|
app: "",
|
|
207
207
|
homeRoute: "dashboard",
|
|
208
208
|
showBrandSelector: !0,
|
|
@@ -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 = Ot(), r = Lt(), o = A(() => {
|
|
241
241
|
const i = r.state.app;
|
|
242
242
|
return s.state.apps.map((l) => ({
|
|
243
243
|
...l,
|
|
@@ -247,63 +247,63 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
|
|
|
247
247
|
n("select", i);
|
|
248
248
|
};
|
|
249
249
|
return (i, l) => {
|
|
250
|
-
const
|
|
251
|
-
return
|
|
250
|
+
const c = U("font-awesome-icon");
|
|
251
|
+
return g(), y("div", Yn, [
|
|
252
252
|
f("div", Qn, [
|
|
253
253
|
f("div", es, [
|
|
254
254
|
f("div", ts, [
|
|
255
255
|
l[1] || (l[1] = f("div", null, "Mr Group Network", -1)),
|
|
256
256
|
f("div", ns, [
|
|
257
|
-
C(
|
|
258
|
-
icon:
|
|
257
|
+
C(c, {
|
|
258
|
+
icon: x(B).farTimes,
|
|
259
259
|
class: "h-[15px] w-[15px] shrink-0 text-gray-400 cursor-pointer",
|
|
260
|
-
onClick: l[0] || (l[0] = (
|
|
260
|
+
onClick: l[0] || (l[0] = (u) => n("close"))
|
|
261
261
|
}, null, 8, ["icon"])
|
|
262
262
|
])
|
|
263
263
|
]),
|
|
264
|
-
(
|
|
265
|
-
key:
|
|
266
|
-
href:
|
|
264
|
+
(g(!0), y(ae, null, he(o.value, (u) => (g(), y("a", {
|
|
265
|
+
key: u.name,
|
|
266
|
+
href: u.href,
|
|
267
267
|
target: "_blank",
|
|
268
|
-
class:
|
|
269
|
-
onClick: (
|
|
268
|
+
class: E([u.current ? "bg-gray-50" : "hover:bg-gray-50", "flex px-[22px] py-[15px] cursor-pointer"]),
|
|
269
|
+
onClick: (m) => u.current ? m.preventDefault() : a(u)
|
|
270
270
|
}, [
|
|
271
271
|
f("div", rs, [
|
|
272
272
|
f("div", os, [
|
|
273
|
-
f("div", as,
|
|
274
|
-
|
|
273
|
+
f("div", as, L(u.name), 1),
|
|
274
|
+
u.current ? (g(), y("span", is, " Active ")) : R("", !0)
|
|
275
275
|
]),
|
|
276
|
-
f("div", ls,
|
|
276
|
+
f("div", ls, L(u.description), 1)
|
|
277
277
|
]),
|
|
278
278
|
f("div", cs, [
|
|
279
|
-
C(
|
|
280
|
-
class:
|
|
281
|
-
icon:
|
|
279
|
+
C(c, {
|
|
280
|
+
class: E([u.current ? "text-gray-700" : "text-gray-400", "h-5 w-5 shrink-0"]),
|
|
281
|
+
icon: x(B)[u.icon]
|
|
282
282
|
}, null, 8, ["class", "icon"])
|
|
283
283
|
])
|
|
284
284
|
], 10, ss))), 128)),
|
|
285
285
|
l[2] || (l[2] = f("div", null, null, -1))
|
|
286
286
|
]),
|
|
287
287
|
f("div", us, [
|
|
288
|
-
i.$slots.bottom || e.bottomSlot ? (
|
|
288
|
+
i.$slots.bottom || e.bottomSlot ? (g(), y("div", ds, [
|
|
289
289
|
M(i.$slots, "bottom", {}, () => [
|
|
290
|
-
e.bottomSlot ? (
|
|
290
|
+
e.bottomSlot ? (g(), Z($e(e.bottomSlot), { key: 0 })) : R("", !0)
|
|
291
291
|
])
|
|
292
|
-
])) :
|
|
293
|
-
i.$slots.footer || e.footerSlot ? (
|
|
292
|
+
])) : R("", !0),
|
|
293
|
+
i.$slots.footer || e.footerSlot ? (g(), y("div", fs, [
|
|
294
294
|
M(i.$slots, "footer", {}, () => [
|
|
295
|
-
e.footerSlot ? (
|
|
295
|
+
e.footerSlot ? (g(), Z($e(e.footerSlot), { key: 0 })) : R("", !0)
|
|
296
296
|
])
|
|
297
|
-
])) :
|
|
297
|
+
])) : R("", !0)
|
|
298
298
|
])
|
|
299
299
|
])
|
|
300
300
|
]);
|
|
301
301
|
};
|
|
302
302
|
}
|
|
303
|
-
}, Tt =
|
|
303
|
+
}, Tt = me(
|
|
304
304
|
"brandFilter",
|
|
305
305
|
() => {
|
|
306
|
-
const e =
|
|
306
|
+
const e = ne({
|
|
307
307
|
brands: []
|
|
308
308
|
}), t = (o = {}) => {
|
|
309
309
|
if (!o.brands || !Array.isArray(o.brands)) {
|
|
@@ -311,8 +311,8 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
|
|
|
311
311
|
return;
|
|
312
312
|
}
|
|
313
313
|
const a = o.brands.filter((l) => {
|
|
314
|
-
const
|
|
315
|
-
return
|
|
314
|
+
const c = l.id && l.name && l.logo;
|
|
315
|
+
return c || console.warn("useSparkBrandFilterStore: Invalid brand object", l), c;
|
|
316
316
|
}), i = a.filter((l) => l.current);
|
|
317
317
|
i.length === 0 && a.length > 0 ? a[0].current = !0 : i.length > 1 && a.forEach((l) => {
|
|
318
318
|
l.current = l === i[0];
|
|
@@ -359,24 +359,24 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
|
|
|
359
359
|
};
|
|
360
360
|
return (o, a) => {
|
|
361
361
|
const i = U("font-awesome-icon");
|
|
362
|
-
return
|
|
362
|
+
return g(), y("div", hs, [
|
|
363
363
|
f("div", ms, [
|
|
364
364
|
f("div", gs, [
|
|
365
365
|
f("div", ys, [
|
|
366
366
|
a[1] || (a[1] = f("div", null, "Filter by Brand", -1)),
|
|
367
367
|
f("div", ws, [
|
|
368
368
|
C(i, {
|
|
369
|
-
icon:
|
|
369
|
+
icon: x(B).farTimes,
|
|
370
370
|
class: "size-4 text-gray-400 cursor-pointer",
|
|
371
371
|
onClick: a[0] || (a[0] = (l) => n("close"))
|
|
372
372
|
}, null, 8, ["icon"])
|
|
373
373
|
])
|
|
374
374
|
]),
|
|
375
|
-
|
|
376
|
-
(
|
|
375
|
+
x(s).allBrands.length === 0 ? (g(), y("div", bs, " No brands configured ")) : R("", !0),
|
|
376
|
+
(g(!0), y(ae, null, he(x(s).allBrands, (l) => (g(), y("div", {
|
|
377
377
|
key: l.id,
|
|
378
|
-
class:
|
|
379
|
-
onClick: (
|
|
378
|
+
class: E([l.current ? "bg-gray-50" : "hover:bg-gray-50", "flex px-[22px] py-[15px] cursor-pointer"]),
|
|
379
|
+
onClick: (c) => r(l)
|
|
380
380
|
}, [
|
|
381
381
|
f("div", Ss, [
|
|
382
382
|
f("div", Cs, [
|
|
@@ -388,10 +388,10 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
|
|
|
388
388
|
]),
|
|
389
389
|
f("div", _s, [
|
|
390
390
|
f("div", ks, [
|
|
391
|
-
f("div", Rs,
|
|
392
|
-
l.current ? (
|
|
391
|
+
f("div", Rs, L(l.name), 1),
|
|
392
|
+
l.current ? (g(), y("span", Es, " Current ")) : R("", !0)
|
|
393
393
|
]),
|
|
394
|
-
f("div", $s,
|
|
394
|
+
f("div", $s, L(l.current ? "Current Brand" : "Change to"), 1)
|
|
395
395
|
])
|
|
396
396
|
])
|
|
397
397
|
], 10, xs))), 128)),
|
|
@@ -402,7 +402,7 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
|
|
|
402
402
|
]);
|
|
403
403
|
};
|
|
404
404
|
}
|
|
405
|
-
},
|
|
405
|
+
}, Os = ["disabled"], re = {
|
|
406
406
|
__name: "SparkButton",
|
|
407
407
|
props: {
|
|
408
408
|
size: {
|
|
@@ -426,12 +426,12 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
|
|
|
426
426
|
setup(e) {
|
|
427
427
|
const t = e, n = q(null), s = on("buttonGroup", null), r = A(() => {
|
|
428
428
|
if (!s?.isInGroup || !n.value) return null;
|
|
429
|
-
const l = s.getButtonIndex(n.value),
|
|
429
|
+
const l = s.getButtonIndex(n.value), c = s.getButtonCount();
|
|
430
430
|
return {
|
|
431
431
|
isFirst: l === 0,
|
|
432
|
-
isLast: l ===
|
|
432
|
+
isLast: l === c - 1,
|
|
433
433
|
index: l,
|
|
434
|
-
total:
|
|
434
|
+
total: c
|
|
435
435
|
};
|
|
436
436
|
}), o = {
|
|
437
437
|
paddingX: /^px-/,
|
|
@@ -443,41 +443,41 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
|
|
|
443
443
|
borderRadius: /^rounded-/,
|
|
444
444
|
background: /^bg-/,
|
|
445
445
|
text: /^text-(?!white|black)/
|
|
446
|
-
}, a = (l,
|
|
447
|
-
if (!
|
|
448
|
-
const
|
|
449
|
-
return [...
|
|
450
|
-
const
|
|
451
|
-
([
|
|
452
|
-
)?.[0],
|
|
453
|
-
([
|
|
446
|
+
}, a = (l, c) => {
|
|
447
|
+
if (!c) return l;
|
|
448
|
+
const u = l.split(" ").filter(Boolean), m = c.split(" ").filter(Boolean);
|
|
449
|
+
return [...u.filter((v) => !m.some((p) => {
|
|
450
|
+
const b = Object.entries(o).find(
|
|
451
|
+
([_, T]) => T.test(v)
|
|
452
|
+
)?.[0], h = Object.entries(o).find(
|
|
453
|
+
([_, T]) => T.test(p)
|
|
454
454
|
)?.[0];
|
|
455
|
-
return
|
|
456
|
-
})), ...
|
|
455
|
+
return b && b === h;
|
|
456
|
+
})), ...m].join(" ");
|
|
457
457
|
}, i = A(() => {
|
|
458
|
-
let l = "",
|
|
458
|
+
let l = "", c = "";
|
|
459
459
|
switch (t.size) {
|
|
460
460
|
case "xs":
|
|
461
|
-
l += " px-2 py-1 text-xs",
|
|
461
|
+
l += " px-2 py-1 text-xs", c = "sm";
|
|
462
462
|
break;
|
|
463
463
|
case "sm":
|
|
464
|
-
l += " px-2 py-1 text-sm",
|
|
464
|
+
l += " px-2 py-1 text-sm", c = "sm";
|
|
465
465
|
break;
|
|
466
466
|
case "md":
|
|
467
|
-
l += " px-2.5 py-1.5 text-sm",
|
|
467
|
+
l += " px-2.5 py-1.5 text-sm", c = "md";
|
|
468
468
|
break;
|
|
469
469
|
case "lg":
|
|
470
|
-
l += " px-3 py-2 text-sm",
|
|
470
|
+
l += " px-3 py-2 text-sm", c = "md";
|
|
471
471
|
break;
|
|
472
472
|
case "xl":
|
|
473
|
-
l += " px-3.5 py-2.5 text-sm",
|
|
473
|
+
l += " px-3.5 py-2.5 text-sm", c = "md";
|
|
474
474
|
break;
|
|
475
475
|
}
|
|
476
476
|
if (s?.isInGroup && r.value) {
|
|
477
|
-
const { isFirst:
|
|
478
|
-
l += " relative inline-flex items-center focus:z-10",
|
|
477
|
+
const { isFirst: u, isLast: m } = r.value;
|
|
478
|
+
l += " relative inline-flex items-center focus:z-10", u && m ? l += ` rounded-${c}` : u ? l += ` rounded-l-${c} rounded-r-none` : m ? l += ` rounded-r-${c} rounded-l-none -ml-px` : l += " rounded-none -ml-px";
|
|
479
479
|
} else
|
|
480
|
-
l += ` shadow-xs rounded-${
|
|
480
|
+
l += ` shadow-xs rounded-${c}`;
|
|
481
481
|
switch (t.variant) {
|
|
482
482
|
case "primary":
|
|
483
483
|
l += " bg-primary-600 hover:bg-primary-500 text-white";
|
|
@@ -502,16 +502,16 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
|
|
|
502
502
|
}
|
|
503
503
|
return l = a(l, t.buttonClass), l;
|
|
504
504
|
});
|
|
505
|
-
return (l,
|
|
505
|
+
return (l, c) => (g(), y("button", {
|
|
506
506
|
type: "button",
|
|
507
507
|
ref_key: "buttonRef",
|
|
508
508
|
ref: n,
|
|
509
|
-
class:
|
|
509
|
+
class: E(i.value),
|
|
510
510
|
disabled: e.disabled,
|
|
511
|
-
onClick:
|
|
511
|
+
onClick: c[0] || (c[0] = (u) => l.$emit("click"))
|
|
512
512
|
}, [
|
|
513
513
|
M(l.$slots, "default")
|
|
514
|
-
], 10,
|
|
514
|
+
], 10, Os));
|
|
515
515
|
}
|
|
516
516
|
}, si = {
|
|
517
517
|
__name: "SparkButtonGroup",
|
|
@@ -521,7 +521,7 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
|
|
|
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
|
|
524
|
-
}), (r, o) => (
|
|
524
|
+
}), (r, o) => (g(), y("div", {
|
|
525
525
|
class: "inline-flex rounded-md shadow-xs",
|
|
526
526
|
ref_key: "groupRef",
|
|
527
527
|
ref: t
|
|
@@ -529,7 +529,7 @@ 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
|
+
}, Ls = { class: "divide-y divide-gray-300 rounded-lg border border-gray-300 text-gray-700 bg-gray-100" }, Ts = {
|
|
533
533
|
key: 0,
|
|
534
534
|
class: "p-5"
|
|
535
535
|
}, Hs = {
|
|
@@ -549,24 +549,24 @@ 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) => (
|
|
553
|
-
n.$slots.header ? (
|
|
552
|
+
return (n, s) => (g(), y("div", Ls, [
|
|
553
|
+
n.$slots.header ? (g(), y("div", Ts, [
|
|
554
554
|
M(n.$slots, "header")
|
|
555
|
-
])) :
|
|
555
|
+
])) : R("", !0),
|
|
556
556
|
f("div", {
|
|
557
|
-
class:
|
|
557
|
+
class: E([t.padded ? t.paddedClass : ""])
|
|
558
558
|
}, [
|
|
559
559
|
M(n.$slots, "default")
|
|
560
560
|
], 2),
|
|
561
|
-
n.$slots.footer ? (
|
|
561
|
+
n.$slots.footer ? (g(), y("div", Hs, [
|
|
562
562
|
M(n.$slots, "footer")
|
|
563
|
-
])) :
|
|
563
|
+
])) : R("", !0)
|
|
564
564
|
]));
|
|
565
565
|
}
|
|
566
566
|
};
|
|
567
567
|
class Fs {
|
|
568
568
|
constructor() {
|
|
569
|
-
this.state =
|
|
569
|
+
this.state = ne({
|
|
570
570
|
isVisible: !1,
|
|
571
571
|
content: null,
|
|
572
572
|
props: {},
|
|
@@ -580,20 +580,20 @@ class Fs {
|
|
|
580
580
|
this.state.isVisible = !1, this.state.eventHandlers = {};
|
|
581
581
|
};
|
|
582
582
|
}
|
|
583
|
-
const
|
|
583
|
+
const fe = new Fs(), Bs = { class: "fixed inset-0 z-10 w-screen overflow-y-auto" }, Vs = { class: "flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0" }, Ns = {
|
|
584
584
|
__name: "SparkModalContainer",
|
|
585
585
|
setup(e) {
|
|
586
|
-
return (t, n) => (
|
|
586
|
+
return (t, n) => (g(), Z(x(Et), {
|
|
587
587
|
as: "template",
|
|
588
|
-
show:
|
|
588
|
+
show: x(fe).state.isVisible
|
|
589
589
|
}, {
|
|
590
|
-
default:
|
|
591
|
-
C(
|
|
590
|
+
default: $(() => [
|
|
591
|
+
C(x($t), {
|
|
592
592
|
class: "relative z-200",
|
|
593
|
-
onClose:
|
|
593
|
+
onClose: x(fe).hide
|
|
594
594
|
}, {
|
|
595
|
-
default:
|
|
596
|
-
C(
|
|
595
|
+
default: $(() => [
|
|
596
|
+
C(x(Ae), {
|
|
597
597
|
as: "template",
|
|
598
598
|
enter: "ease-out duration-300",
|
|
599
599
|
"enter-from": "opacity-0",
|
|
@@ -602,14 +602,14 @@ const pe = 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: $(() => [...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
610
|
f("div", Bs, [
|
|
611
611
|
f("div", Vs, [
|
|
612
|
-
C(
|
|
612
|
+
C(x(Ae), {
|
|
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 pe = 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(
|
|
623
|
-
default:
|
|
624
|
-
(
|
|
621
|
+
default: $(() => [
|
|
622
|
+
C(x(At), { 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: $(() => [
|
|
624
|
+
(g(), Z($e(x(fe).state.content), _t(x(fe).state.props, kt(x(fe).state.eventHandlers)), null, 16))
|
|
625
625
|
]),
|
|
626
626
|
_: 1
|
|
627
627
|
})
|
|
@@ -717,37 +717,37 @@ const pe = new Fs(), Bs = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
717
717
|
warning: "text-yellow-400",
|
|
718
718
|
danger: "text-red-400"
|
|
719
719
|
})[t.type]);
|
|
720
|
-
return (l,
|
|
721
|
-
const
|
|
722
|
-
return
|
|
723
|
-
o.value ? (
|
|
720
|
+
return (l, c) => {
|
|
721
|
+
const u = U("font-awesome-icon");
|
|
722
|
+
return g(), y("div", Ps, [
|
|
723
|
+
o.value ? (g(), y("div", {
|
|
724
724
|
key: 0,
|
|
725
|
-
class:
|
|
725
|
+
class: E(["mx-auto flex size-12 items-center justify-center rounded-full", a.value])
|
|
726
726
|
}, [
|
|
727
|
-
C(
|
|
728
|
-
icon:
|
|
729
|
-
class:
|
|
727
|
+
C(u, {
|
|
728
|
+
icon: x(B)[o.value],
|
|
729
|
+
class: E(["h-5 w-5", i.value])
|
|
730
730
|
}, null, 8, ["icon", "class"])
|
|
731
|
-
], 2)) :
|
|
731
|
+
], 2)) : R("", !0),
|
|
732
732
|
f("div", {
|
|
733
|
-
class:
|
|
733
|
+
class: E(["text-center", { "mt-3 sm:mt-5": o.value }])
|
|
734
734
|
}, [
|
|
735
|
-
e.title ? (
|
|
736
|
-
e.message ? (
|
|
735
|
+
e.title ? (g(), y("h3", Ms, L(e.title), 1)) : R("", !0),
|
|
736
|
+
e.message ? (g(), y("div", {
|
|
737
737
|
key: 1,
|
|
738
|
-
class:
|
|
739
|
-
},
|
|
738
|
+
class: E([{ "mt-2": e.title }, "text-sm text-gray-500"])
|
|
739
|
+
}, L(e.message), 3)) : R("", !0)
|
|
740
740
|
], 2),
|
|
741
741
|
f("div", {
|
|
742
|
-
class:
|
|
742
|
+
class: E(["mt-5 sm:mt-6", s.value])
|
|
743
743
|
}, [
|
|
744
|
-
(
|
|
745
|
-
key:
|
|
746
|
-
variant:
|
|
747
|
-
onClick: (
|
|
744
|
+
(g(!0), y(ae, null, he(n.value, (m, w) => (g(), Z(x(re), {
|
|
745
|
+
key: w,
|
|
746
|
+
variant: m.variant,
|
|
747
|
+
onClick: (v) => l.$emit(m.event, m)
|
|
748
748
|
}, {
|
|
749
|
-
default:
|
|
750
|
-
J(
|
|
749
|
+
default: $(() => [
|
|
750
|
+
J(L(m.text), 1)
|
|
751
751
|
]),
|
|
752
752
|
_: 2
|
|
753
753
|
}, 1032, ["variant", "onClick"]))), 128))
|
|
@@ -768,20 +768,23 @@ const pe = new Fs(), Bs = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
768
768
|
required: !0
|
|
769
769
|
}
|
|
770
770
|
},
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
771
|
+
emits: ["close"],
|
|
772
|
+
setup(e, { emit: t }) {
|
|
773
|
+
const n = q(null), s = e, r = t, o = () => {
|
|
774
|
+
s.overlayInstance.close(), r("close");
|
|
775
|
+
};
|
|
776
|
+
return (a, i) => (g(), Z(x(Et), {
|
|
774
777
|
show: e.overlayInstance.state.isVisible,
|
|
775
778
|
as: "template"
|
|
776
779
|
}, {
|
|
777
|
-
default:
|
|
778
|
-
C(
|
|
779
|
-
initialFocus:
|
|
780
|
+
default: $(() => [
|
|
781
|
+
C(x($t), {
|
|
782
|
+
initialFocus: n.value,
|
|
780
783
|
class: "relative z-200",
|
|
781
|
-
onClose:
|
|
784
|
+
onClose: o
|
|
782
785
|
}, {
|
|
783
|
-
default:
|
|
784
|
-
C(
|
|
786
|
+
default: $(() => [
|
|
787
|
+
C(x(Ae), {
|
|
785
788
|
as: "template",
|
|
786
789
|
enter: "transition-opacity ease-linear duration-150",
|
|
787
790
|
"enter-from": "opacity-0",
|
|
@@ -790,13 +793,13 @@ const pe = new Fs(), Bs = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
790
793
|
"leave-from": "opacity-100",
|
|
791
794
|
"leave-to": "opacity-0"
|
|
792
795
|
}, {
|
|
793
|
-
default:
|
|
796
|
+
default: $(() => [...i[0] || (i[0] = [
|
|
794
797
|
f("div", { class: "fixed inset-0 bg-gray-600/30" }, null, -1)
|
|
795
798
|
])]),
|
|
796
799
|
_: 1
|
|
797
800
|
}),
|
|
798
801
|
f("div", Us, [
|
|
799
|
-
C(
|
|
802
|
+
C(x(Ae), {
|
|
800
803
|
as: "template",
|
|
801
804
|
enter: "transition ease-in-out duration-150 transform",
|
|
802
805
|
"enter-from": e.position === "left" ? "-translate-x-full opacity-0" : "translate-x-full opacity-0",
|
|
@@ -805,17 +808,17 @@ const pe = new Fs(), Bs = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
805
808
|
"leave-from": "translate-x-0 opacity-100",
|
|
806
809
|
"leave-to": e.position === "left" ? "-translate-x-full opacity-0" : "translate-x-full opacity-0"
|
|
807
810
|
}, {
|
|
808
|
-
default:
|
|
809
|
-
C(
|
|
811
|
+
default: $(() => [
|
|
812
|
+
C(x(At), {
|
|
810
813
|
ref_key: "panelRef",
|
|
811
|
-
ref:
|
|
812
|
-
class:
|
|
814
|
+
ref: n,
|
|
815
|
+
class: E([
|
|
813
816
|
"flex w-[400px] py-2.5",
|
|
814
817
|
e.position === "left" ? "relative left-[10px]" : "absolute right-[10px] h-full"
|
|
815
818
|
])
|
|
816
819
|
}, {
|
|
817
|
-
default:
|
|
818
|
-
(
|
|
820
|
+
default: $(() => [
|
|
821
|
+
(g(), Z($e(e.overlayInstance.state.content), _t(e.overlayInstance.state.props, kt(e.overlayInstance.state.eventHandlers)), null, 16))
|
|
819
822
|
]),
|
|
820
823
|
_: 1
|
|
821
824
|
}, 8, ["class"])
|
|
@@ -825,14 +828,14 @@ const pe = new Fs(), Bs = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
825
828
|
])
|
|
826
829
|
]),
|
|
827
830
|
_: 1
|
|
828
|
-
}, 8, ["initialFocus"
|
|
831
|
+
}, 8, ["initialFocus"])
|
|
829
832
|
]),
|
|
830
833
|
_: 1
|
|
831
834
|
}, 8, ["show"]));
|
|
832
835
|
}
|
|
833
836
|
};
|
|
834
837
|
function at() {
|
|
835
|
-
const e =
|
|
838
|
+
const e = ne({
|
|
836
839
|
isVisible: !1,
|
|
837
840
|
content: null,
|
|
838
841
|
props: {},
|
|
@@ -862,10 +865,22 @@ class js {
|
|
|
862
865
|
this.left = at(), this.right = at();
|
|
863
866
|
}
|
|
864
867
|
showLeft = (t, n = {}, s = {}) => {
|
|
865
|
-
|
|
868
|
+
const r = {
|
|
869
|
+
close: () => {
|
|
870
|
+
s.close?.(), this.closeLeft();
|
|
871
|
+
},
|
|
872
|
+
...s
|
|
873
|
+
};
|
|
874
|
+
this.left.show(t, n, r);
|
|
866
875
|
};
|
|
867
876
|
showRight = (t, n = {}, s = {}) => {
|
|
868
|
-
|
|
877
|
+
const r = {
|
|
878
|
+
close: () => {
|
|
879
|
+
s.close?.(), this.closeRight();
|
|
880
|
+
},
|
|
881
|
+
...s
|
|
882
|
+
};
|
|
883
|
+
this.right.show(t, n, r);
|
|
869
884
|
};
|
|
870
885
|
closeLeft = () => {
|
|
871
886
|
this.left.close();
|
|
@@ -877,7 +892,7 @@ class js {
|
|
|
877
892
|
this.left.close(), this.right.close();
|
|
878
893
|
};
|
|
879
894
|
}
|
|
880
|
-
const
|
|
895
|
+
const ve = new js(), Ds = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, Is = { class: "flex flex-1 flex-col" }, zs = {
|
|
881
896
|
class: "flex flex-1 flex-col gap-y-7",
|
|
882
897
|
role: "list"
|
|
883
898
|
}, qs = { class: "flex flex-1 flex-col" }, Zs = {
|
|
@@ -908,26 +923,27 @@ const Q = new js(), Ds = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, Is =
|
|
|
908
923
|
default: () => ({})
|
|
909
924
|
}
|
|
910
925
|
},
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
926
|
+
emits: ["overlayClose"],
|
|
927
|
+
setup(e, { emit: t }) {
|
|
928
|
+
const n = e, s = t, r = ln(), o = Tt(), a = Ot(), i = A(() => a.getAppIcon(n.appStore.state.app)), l = () => {
|
|
929
|
+
const w = {};
|
|
930
|
+
r["app-selector-bottom"] ? w.bottomSlot = () => rt("div", {}, r["app-selector-bottom"]()) : n.appSelectorSlots.bottomSlot && (w.bottomSlot = n.appSelectorSlots.bottomSlot), r["app-selector-footer"] ? w.footerSlot = () => rt("div", {}, r["app-selector-footer"]()) : n.appSelectorSlots.footerSlot && (w.footerSlot = n.appSelectorSlots.footerSlot), ve.showRight(ps, w);
|
|
931
|
+
}, c = () => {
|
|
932
|
+
ve.showLeft(
|
|
917
933
|
As,
|
|
918
934
|
{},
|
|
919
935
|
{
|
|
920
|
-
select: (
|
|
921
|
-
|
|
936
|
+
select: (w) => {
|
|
937
|
+
o.toggleBrand(w);
|
|
922
938
|
}
|
|
923
939
|
}
|
|
924
940
|
);
|
|
925
|
-
},
|
|
926
|
-
return (
|
|
927
|
-
const
|
|
928
|
-
return
|
|
941
|
+
}, u = A(() => n.mainNavStore.state.hidden ? ["w-0 overflow-hidden"] : [n.mainNavStore.state.collapsed ? "w-[80px]" : "w-[240px]"]), m = A(() => n.mainNavStore.state.hidden ? ["pl-2.5"] : [n.mainNavStore.state.collapsed ? "pl-[80px]" : "pl-[240px]"]);
|
|
942
|
+
return (w, v) => {
|
|
943
|
+
const p = U("font-awesome-icon"), b = U("router-view");
|
|
944
|
+
return g(), y(ae, null, [
|
|
929
945
|
f("div", {
|
|
930
|
-
class:
|
|
946
|
+
class: E([u.value, "fixed inset-y-0 flex transition-all z-100"])
|
|
931
947
|
}, [
|
|
932
948
|
f("div", Ds, [
|
|
933
949
|
f("nav", Is, [
|
|
@@ -937,81 +953,81 @@ const Q = new js(), Ds = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, Is =
|
|
|
937
953
|
f("li", Ws, [
|
|
938
954
|
f("a", {
|
|
939
955
|
class: "grid w-[40px] h-[40px] place-items-center rounded-md bg-primary-600 text-white text-[13px] cursor-pointer",
|
|
940
|
-
onClick:
|
|
956
|
+
onClick: v[0] || (v[0] = de((h) => e.mainNavStore.goto(e.appStore.state.homeRoute), ["prevent"]))
|
|
941
957
|
}, [
|
|
942
|
-
C(
|
|
943
|
-
icon:
|
|
958
|
+
C(p, {
|
|
959
|
+
icon: x(B)[i.value],
|
|
944
960
|
class: "size-5"
|
|
945
961
|
}, null, 8, ["icon"])
|
|
946
962
|
]),
|
|
947
|
-
e.mainNavStore.state.collapsed ?
|
|
963
|
+
e.mainNavStore.state.collapsed ? R("", !0) : (g(), y("a", {
|
|
948
964
|
key: 0,
|
|
949
|
-
onClick:
|
|
965
|
+
onClick: v[1] || (v[1] = de((h) => e.mainNavStore.goto(e.appStore.state.homeRoute), ["prevent"])),
|
|
950
966
|
class: "font-medium text-gray-800 ml-[10px] cursor-pointer"
|
|
951
|
-
},
|
|
967
|
+
}, L(e.appStore.state.app), 1))
|
|
952
968
|
]),
|
|
953
|
-
(
|
|
954
|
-
key:
|
|
955
|
-
class:
|
|
956
|
-
"mt-[10px]":
|
|
957
|
-
"mt-auto":
|
|
969
|
+
(g(!0), y(ae, null, he(e.mainNavStore.state.menu, (h) => (g(), y("li", {
|
|
970
|
+
key: h.name,
|
|
971
|
+
class: E({
|
|
972
|
+
"mt-[10px]": h.children,
|
|
973
|
+
"mt-auto": h.footerSection
|
|
958
974
|
})
|
|
959
975
|
}, [
|
|
960
976
|
f("a", {
|
|
961
|
-
class:
|
|
962
|
-
"bg-gray-100":
|
|
963
|
-
"hover:bg-gray-100":
|
|
977
|
+
class: E([{
|
|
978
|
+
"bg-gray-100": h.current,
|
|
979
|
+
"hover:bg-gray-100": h?.href
|
|
964
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"]),
|
|
965
|
-
href:
|
|
966
|
-
onClick:
|
|
981
|
+
href: h?.href,
|
|
982
|
+
onClick: de((_) => e.mainNavStore.goto(h.href), ["prevent"])
|
|
967
983
|
}, [
|
|
968
|
-
|
|
984
|
+
h.icon ? (g(), Z(p, {
|
|
969
985
|
key: 0,
|
|
970
|
-
icon:
|
|
971
|
-
class:
|
|
972
|
-
}, null, 8, ["icon", "class"])) :
|
|
973
|
-
e.mainNavStore.state.collapsed ?
|
|
986
|
+
icon: x(B)[h.icon],
|
|
987
|
+
class: E([[(h.current, "text-gray-400")], "size-4"])
|
|
988
|
+
}, null, 8, ["icon", "class"])) : R("", !0),
|
|
989
|
+
e.mainNavStore.state.collapsed ? h?.children ? (g(), y("div", Js, [...v[6] || (v[6] = [
|
|
974
990
|
f("div", { class: "w-[10px] h-px bg-gray-400" }, null, -1)
|
|
975
|
-
])])) :
|
|
991
|
+
])])) : R("", !0) : (g(), y("span", {
|
|
976
992
|
key: 1,
|
|
977
|
-
class:
|
|
978
|
-
"text-[11px]":
|
|
979
|
-
"text-[13px]": !
|
|
980
|
-
"font-semibold":
|
|
981
|
-
"text-gray-500":
|
|
993
|
+
class: E({
|
|
994
|
+
"text-[11px]": h?.children,
|
|
995
|
+
"text-[13px]": !h?.children,
|
|
996
|
+
"font-semibold": h?.children,
|
|
997
|
+
"text-gray-500": h?.children
|
|
982
998
|
})
|
|
983
|
-
},
|
|
999
|
+
}, L(h.name), 3))
|
|
984
1000
|
], 10, Gs),
|
|
985
|
-
|
|
986
|
-
(
|
|
987
|
-
key:
|
|
1001
|
+
h.children ? (g(), y("ul", Ks, [
|
|
1002
|
+
(g(!0), y(ae, null, he(h.children, (_) => (g(), y("li", {
|
|
1003
|
+
key: _.name
|
|
988
1004
|
}, [
|
|
989
1005
|
f("a", {
|
|
990
|
-
class:
|
|
991
|
-
href:
|
|
992
|
-
onClick:
|
|
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
|
+
href: _.href,
|
|
1008
|
+
onClick: de((T) => e.mainNavStore.goto(_.href), ["prevent"])
|
|
993
1009
|
}, [
|
|
994
|
-
|
|
1010
|
+
_.icon ? (g(), Z(p, {
|
|
995
1011
|
key: 0,
|
|
996
|
-
icon:
|
|
997
|
-
class:
|
|
998
|
-
}, null, 8, ["icon", "class"])) :
|
|
999
|
-
e.mainNavStore.state.collapsed ?
|
|
1012
|
+
icon: x(B)[_.icon],
|
|
1013
|
+
class: E([[(_.current, "text-gray-400")], "size-4"])
|
|
1014
|
+
}, null, 8, ["icon", "class"])) : R("", !0),
|
|
1015
|
+
e.mainNavStore.state.collapsed ? R("", !0) : (g(), y("span", Ys, L(_.name), 1))
|
|
1000
1016
|
], 10, Xs)
|
|
1001
1017
|
]))), 128))
|
|
1002
|
-
])) :
|
|
1018
|
+
])) : R("", !0)
|
|
1003
1019
|
], 2))), 128))
|
|
1004
1020
|
])
|
|
1005
1021
|
]),
|
|
1006
1022
|
f("li", Qs, [
|
|
1007
|
-
M(
|
|
1023
|
+
M(w.$slots, "sidebar-footer"),
|
|
1008
1024
|
f("a", {
|
|
1009
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",
|
|
1010
1026
|
href: "#",
|
|
1011
|
-
onClick:
|
|
1027
|
+
onClick: v[2] || (v[2] = de((h) => e.mainNavStore.toggleCollapsed(), ["prevent"]))
|
|
1012
1028
|
}, [
|
|
1013
|
-
C(
|
|
1014
|
-
icon:
|
|
1029
|
+
C(p, {
|
|
1030
|
+
icon: x(B)[e.mainNavStore.state.collapsed ? "farArrowRightToLine" : "farArrowLeftToLine"],
|
|
1015
1031
|
class: "class-5"
|
|
1016
1032
|
}, null, 8, ["icon"])
|
|
1017
1033
|
])
|
|
@@ -1021,67 +1037,67 @@ const Q = new js(), Ds = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, Is =
|
|
|
1021
1037
|
])
|
|
1022
1038
|
], 2),
|
|
1023
1039
|
f("div", {
|
|
1024
|
-
class:
|
|
1040
|
+
class: E([m.value, "h-full transition-all flex flex-col"])
|
|
1025
1041
|
}, [
|
|
1026
1042
|
f("div", er, [
|
|
1027
1043
|
f("div", tr, [
|
|
1028
1044
|
f("div", nr, [
|
|
1029
|
-
M(
|
|
1045
|
+
M(w.$slots, "header-left", {}, () => [
|
|
1030
1046
|
f("div", sr, [
|
|
1031
|
-
C(
|
|
1032
|
-
icon:
|
|
1047
|
+
C(p, {
|
|
1048
|
+
icon: x(B).farBarsSort,
|
|
1033
1049
|
class: "size-5",
|
|
1034
|
-
onClick:
|
|
1050
|
+
onClick: v[3] || (v[3] = (h) => e.mainNavStore.toggleHidden())
|
|
1035
1051
|
}, null, 8, ["icon"])
|
|
1036
1052
|
])
|
|
1037
1053
|
]),
|
|
1038
|
-
M(
|
|
1039
|
-
e.appStore.state.showBrandSelector ? (
|
|
1054
|
+
M(w.$slots, "header-center", {}, () => [
|
|
1055
|
+
e.appStore.state.showBrandSelector ? (g(), y("div", {
|
|
1040
1056
|
key: 0,
|
|
1041
1057
|
class: "absolute left-1/2 -translate-x-1/2 cursor-pointer h-9 flex items-center",
|
|
1042
|
-
onClick:
|
|
1058
|
+
onClick: c
|
|
1043
1059
|
}, [
|
|
1044
|
-
|
|
1060
|
+
x(o).currentBrand ? (g(), y("img", {
|
|
1045
1061
|
key: 0,
|
|
1046
|
-
src:
|
|
1062
|
+
src: x(o).currentBrand.logo,
|
|
1047
1063
|
alt: "",
|
|
1048
1064
|
class: "h-[30px] w-auto"
|
|
1049
|
-
}, null, 8, rr)) :
|
|
1050
|
-
])) :
|
|
1065
|
+
}, null, 8, rr)) : R("", !0)
|
|
1066
|
+
])) : R("", !0)
|
|
1051
1067
|
]),
|
|
1052
1068
|
f("div", or, [
|
|
1053
|
-
M(
|
|
1054
|
-
e.appStore.state.showAppSelector ? (
|
|
1069
|
+
M(w.$slots, "header-right", {}, () => [
|
|
1070
|
+
e.appStore.state.showAppSelector ? (g(), y("button", {
|
|
1055
1071
|
key: 0,
|
|
1056
1072
|
class: "rounded-sm bg-white w-[42px] h-[42px] ring-1 ring-inset ring-gray-300",
|
|
1057
1073
|
type: "button",
|
|
1058
|
-
onClick:
|
|
1074
|
+
onClick: l
|
|
1059
1075
|
}, [
|
|
1060
|
-
C(
|
|
1061
|
-
icon:
|
|
1076
|
+
C(p, {
|
|
1077
|
+
icon: x(B).farGripDotsVertical,
|
|
1062
1078
|
class: "size-4 text-gray-400"
|
|
1063
1079
|
}, null, 8, ["icon"])
|
|
1064
|
-
])) :
|
|
1080
|
+
])) : R("", !0)
|
|
1065
1081
|
])
|
|
1066
1082
|
])
|
|
1067
1083
|
])
|
|
1068
1084
|
])
|
|
1069
1085
|
]),
|
|
1070
1086
|
f("main", ar, [
|
|
1071
|
-
C(
|
|
1087
|
+
C(b)
|
|
1072
1088
|
])
|
|
1073
1089
|
], 2),
|
|
1074
|
-
C(
|
|
1090
|
+
C(x(ot), {
|
|
1075
1091
|
position: "left",
|
|
1076
|
-
"overlay-instance":
|
|
1077
|
-
onClose:
|
|
1078
|
-
}, null, 8, ["overlay-instance"
|
|
1079
|
-
C(
|
|
1092
|
+
"overlay-instance": x(ve).left,
|
|
1093
|
+
onClose: v[4] || (v[4] = (h) => s("overlayClose", "left"))
|
|
1094
|
+
}, null, 8, ["overlay-instance"]),
|
|
1095
|
+
C(x(ot), {
|
|
1080
1096
|
position: "right",
|
|
1081
|
-
"overlay-instance":
|
|
1082
|
-
onClose:
|
|
1083
|
-
}, null, 8, ["overlay-instance"
|
|
1084
|
-
C(
|
|
1097
|
+
"overlay-instance": x(ve).right,
|
|
1098
|
+
onClose: v[5] || (v[5] = (h) => s("overlayClose", "right"))
|
|
1099
|
+
}, null, 8, ["overlay-instance"]),
|
|
1100
|
+
C(x(Ns))
|
|
1085
1101
|
], 64);
|
|
1086
1102
|
};
|
|
1087
1103
|
}
|
|
@@ -1093,7 +1109,7 @@ const Q = new js(), Ds = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, Is =
|
|
|
1093
1109
|
}, lr = {}, cr = { class: "h-full" };
|
|
1094
1110
|
function ur(e, t) {
|
|
1095
1111
|
const n = U("router-view");
|
|
1096
|
-
return
|
|
1112
|
+
return g(), y("main", cr, [
|
|
1097
1113
|
C(n)
|
|
1098
1114
|
]);
|
|
1099
1115
|
}
|
|
@@ -1106,42 +1122,42 @@ function Ht(e, t) {
|
|
|
1106
1122
|
const { toString: dr } = Object.prototype, { getPrototypeOf: Ge } = Object, { iterator: Te, toStringTag: Ft } = Symbol, He = /* @__PURE__ */ ((e) => (t) => {
|
|
1107
1123
|
const n = dr.call(t);
|
|
1108
1124
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
1109
|
-
})(/* @__PURE__ */ Object.create(null)), D = (e) => (e = e.toLowerCase(), (t) => He(t) === e), Fe = (e) => (t) => typeof t === e, { isArray:
|
|
1110
|
-
function
|
|
1111
|
-
return e !== null && !
|
|
1125
|
+
})(/* @__PURE__ */ Object.create(null)), D = (e) => (e = e.toLowerCase(), (t) => He(t) === e), Fe = (e) => (t) => typeof t === e, { isArray: le } = Array, ie = Fe("undefined");
|
|
1126
|
+
function ge(e) {
|
|
1127
|
+
return e !== null && !ie(e) && e.constructor !== null && !ie(e.constructor) && V(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
1112
1128
|
}
|
|
1113
1129
|
const Bt = D("ArrayBuffer");
|
|
1114
1130
|
function fr(e) {
|
|
1115
1131
|
let t;
|
|
1116
1132
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Bt(e.buffer), t;
|
|
1117
1133
|
}
|
|
1118
|
-
const pr = Fe("string"), V = Fe("function"), Vt = Fe("number"),
|
|
1134
|
+
const pr = Fe("string"), V = Fe("function"), Vt = Fe("number"), ye = (e) => e !== null && typeof e == "object", hr = (e) => e === !0 || e === !1, ke = (e) => {
|
|
1119
1135
|
if (He(e) !== "object")
|
|
1120
1136
|
return !1;
|
|
1121
1137
|
const t = Ge(e);
|
|
1122
1138
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Ft in e) && !(Te in e);
|
|
1123
1139
|
}, mr = (e) => {
|
|
1124
|
-
if (!
|
|
1140
|
+
if (!ye(e) || ge(e))
|
|
1125
1141
|
return !1;
|
|
1126
1142
|
try {
|
|
1127
1143
|
return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
|
|
1128
1144
|
} catch {
|
|
1129
1145
|
return !1;
|
|
1130
1146
|
}
|
|
1131
|
-
}, gr = D("Date"), yr = D("File"), wr = D("Blob"), br = D("FileList"), xr = (e) =>
|
|
1147
|
+
}, gr = D("Date"), yr = D("File"), wr = D("Blob"), br = D("FileList"), xr = (e) => ye(e) && V(e.pipe), Sr = (e) => {
|
|
1132
1148
|
let t;
|
|
1133
1149
|
return e && (typeof FormData == "function" && e instanceof FormData || V(e.append) && ((t = He(e)) === "formdata" || // detect form-data instance
|
|
1134
1150
|
t === "object" && V(e.toString) && e.toString() === "[object FormData]"));
|
|
1135
1151
|
}, Cr = D("URLSearchParams"), [vr, _r, kr, Rr] = ["ReadableStream", "Request", "Response", "Headers"].map(D), Er = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
1136
|
-
function
|
|
1152
|
+
function we(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
1137
1153
|
if (e === null || typeof e > "u")
|
|
1138
1154
|
return;
|
|
1139
1155
|
let s, r;
|
|
1140
|
-
if (typeof e != "object" && (e = [e]),
|
|
1156
|
+
if (typeof e != "object" && (e = [e]), le(e))
|
|
1141
1157
|
for (s = 0, r = e.length; s < r; s++)
|
|
1142
1158
|
t.call(null, e[s], s, e);
|
|
1143
1159
|
else {
|
|
1144
|
-
if (
|
|
1160
|
+
if (ge(e))
|
|
1145
1161
|
return;
|
|
1146
1162
|
const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), a = o.length;
|
|
1147
1163
|
let i;
|
|
@@ -1150,7 +1166,7 @@ function be(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
|
1150
1166
|
}
|
|
1151
1167
|
}
|
|
1152
1168
|
function Nt(e, t) {
|
|
1153
|
-
if (
|
|
1169
|
+
if (ge(e))
|
|
1154
1170
|
return null;
|
|
1155
1171
|
t = t.toLowerCase();
|
|
1156
1172
|
const n = Object.keys(e);
|
|
@@ -1160,23 +1176,23 @@ function Nt(e, t) {
|
|
|
1160
1176
|
return r;
|
|
1161
1177
|
return null;
|
|
1162
1178
|
}
|
|
1163
|
-
const
|
|
1179
|
+
const Q = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Pt = (e) => !ie(e) && e !== Q;
|
|
1164
1180
|
function ze() {
|
|
1165
1181
|
const { caseless: e, skipUndefined: t } = Pt(this) && this || {}, n = {}, s = (r, o) => {
|
|
1166
1182
|
const a = e && Nt(n, o) || o;
|
|
1167
|
-
ke(n[a]) && ke(r) ? n[a] = ze(n[a], r) : ke(r) ? n[a] = ze({}, r) :
|
|
1183
|
+
ke(n[a]) && ke(r) ? n[a] = ze(n[a], r) : ke(r) ? n[a] = ze({}, r) : le(r) ? n[a] = r.slice() : (!t || !ie(r)) && (n[a] = r);
|
|
1168
1184
|
};
|
|
1169
1185
|
for (let r = 0, o = arguments.length; r < o; r++)
|
|
1170
|
-
arguments[r] &&
|
|
1186
|
+
arguments[r] && we(arguments[r], s);
|
|
1171
1187
|
return n;
|
|
1172
1188
|
}
|
|
1173
|
-
const $r = (e, t, n, { allOwnKeys: s } = {}) => (
|
|
1189
|
+
const $r = (e, t, n, { allOwnKeys: s } = {}) => (we(t, (r, o) => {
|
|
1174
1190
|
n && V(r) ? e[o] = Ht(r, n) : e[o] = r;
|
|
1175
|
-
}, { allOwnKeys: s }), e), Ar = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e),
|
|
1191
|
+
}, { allOwnKeys: s }), e), Ar = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Or = (e, t, n, s) => {
|
|
1176
1192
|
e.prototype = Object.create(t.prototype, s), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
1177
1193
|
value: t.prototype
|
|
1178
1194
|
}), n && Object.assign(e.prototype, n);
|
|
1179
|
-
},
|
|
1195
|
+
}, Lr = (e, t, n, s) => {
|
|
1180
1196
|
let r, o, a;
|
|
1181
1197
|
const i = {};
|
|
1182
1198
|
if (t = t || {}, e == null) return t;
|
|
@@ -1192,7 +1208,7 @@ const $r = (e, t, n, { allOwnKeys: s } = {}) => (be(t, (r, o) => {
|
|
|
1192
1208
|
return s !== -1 && s === n;
|
|
1193
1209
|
}, Hr = (e) => {
|
|
1194
1210
|
if (!e) return null;
|
|
1195
|
-
if (
|
|
1211
|
+
if (le(e)) return e;
|
|
1196
1212
|
let t = e.length;
|
|
1197
1213
|
if (!Vt(t)) return null;
|
|
1198
1214
|
const n = new Array(t);
|
|
@@ -1219,7 +1235,7 @@ const $r = (e, t, n, { allOwnKeys: s } = {}) => (be(t, (r, o) => {
|
|
|
1219
1235
|
}
|
|
1220
1236
|
), it = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Mr = D("RegExp"), Mt = (e, t) => {
|
|
1221
1237
|
const n = Object.getOwnPropertyDescriptors(e), s = {};
|
|
1222
|
-
|
|
1238
|
+
we(n, (r, o) => {
|
|
1223
1239
|
let a;
|
|
1224
1240
|
(a = t(r, o, e)) !== !1 && (s[o] = a || r);
|
|
1225
1241
|
}), Object.defineProperties(e, s);
|
|
@@ -1244,7 +1260,7 @@ const $r = (e, t, n, { allOwnKeys: s } = {}) => (be(t, (r, o) => {
|
|
|
1244
1260
|
n[o] = !0;
|
|
1245
1261
|
});
|
|
1246
1262
|
};
|
|
1247
|
-
return
|
|
1263
|
+
return le(e) ? s(e) : s(String(e).split(t)), n;
|
|
1248
1264
|
}, Dr = () => {
|
|
1249
1265
|
}, Ir = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
1250
1266
|
function zr(e) {
|
|
@@ -1252,47 +1268,47 @@ function zr(e) {
|
|
|
1252
1268
|
}
|
|
1253
1269
|
const qr = (e) => {
|
|
1254
1270
|
const t = new Array(10), n = (s, r) => {
|
|
1255
|
-
if (
|
|
1271
|
+
if (ye(s)) {
|
|
1256
1272
|
if (t.indexOf(s) >= 0)
|
|
1257
1273
|
return;
|
|
1258
|
-
if (
|
|
1274
|
+
if (ge(s))
|
|
1259
1275
|
return s;
|
|
1260
1276
|
if (!("toJSON" in s)) {
|
|
1261
1277
|
t[r] = s;
|
|
1262
|
-
const o =
|
|
1263
|
-
return
|
|
1278
|
+
const o = le(s) ? [] : {};
|
|
1279
|
+
return we(s, (a, i) => {
|
|
1264
1280
|
const l = n(a, r + 1);
|
|
1265
|
-
!
|
|
1281
|
+
!ie(l) && (o[i] = l);
|
|
1266
1282
|
}), t[r] = void 0, o;
|
|
1267
1283
|
}
|
|
1268
1284
|
}
|
|
1269
1285
|
return s;
|
|
1270
1286
|
};
|
|
1271
1287
|
return n(e, 0);
|
|
1272
|
-
}, Zr = D("AsyncFunction"), Wr = (e) => e && (
|
|
1273
|
-
r ===
|
|
1288
|
+
}, Zr = D("AsyncFunction"), Wr = (e) => e && (ye(e) || V(e)) && V(e.then) && V(e.catch), Ut = ((e, t) => e ? setImmediate : t ? ((n, s) => (Q.addEventListener("message", ({ source: r, data: o }) => {
|
|
1289
|
+
r === Q && o === n && s.length && s.shift()();
|
|
1274
1290
|
}, !1), (r) => {
|
|
1275
|
-
s.push(r),
|
|
1291
|
+
s.push(r), Q.postMessage(n, "*");
|
|
1276
1292
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
1277
1293
|
typeof setImmediate == "function",
|
|
1278
|
-
V(
|
|
1279
|
-
), Gr = typeof queueMicrotask < "u" ? queueMicrotask.bind(
|
|
1280
|
-
isArray:
|
|
1294
|
+
V(Q.postMessage)
|
|
1295
|
+
), Gr = typeof queueMicrotask < "u" ? queueMicrotask.bind(Q) : typeof process < "u" && process.nextTick || Ut, Jr = (e) => e != null && V(e[Te]), d = {
|
|
1296
|
+
isArray: le,
|
|
1281
1297
|
isArrayBuffer: Bt,
|
|
1282
|
-
isBuffer:
|
|
1298
|
+
isBuffer: ge,
|
|
1283
1299
|
isFormData: Sr,
|
|
1284
1300
|
isArrayBufferView: fr,
|
|
1285
1301
|
isString: pr,
|
|
1286
1302
|
isNumber: Vt,
|
|
1287
1303
|
isBoolean: hr,
|
|
1288
|
-
isObject:
|
|
1304
|
+
isObject: ye,
|
|
1289
1305
|
isPlainObject: ke,
|
|
1290
1306
|
isEmptyObject: mr,
|
|
1291
1307
|
isReadableStream: vr,
|
|
1292
1308
|
isRequest: _r,
|
|
1293
1309
|
isResponse: kr,
|
|
1294
1310
|
isHeaders: Rr,
|
|
1295
|
-
isUndefined:
|
|
1311
|
+
isUndefined: ie,
|
|
1296
1312
|
isDate: gr,
|
|
1297
1313
|
isFile: yr,
|
|
1298
1314
|
isBlob: wr,
|
|
@@ -1302,13 +1318,13 @@ const qr = (e) => {
|
|
|
1302
1318
|
isURLSearchParams: Cr,
|
|
1303
1319
|
isTypedArray: Fr,
|
|
1304
1320
|
isFileList: br,
|
|
1305
|
-
forEach:
|
|
1321
|
+
forEach: we,
|
|
1306
1322
|
merge: ze,
|
|
1307
1323
|
extend: $r,
|
|
1308
1324
|
trim: Er,
|
|
1309
1325
|
stripBOM: Ar,
|
|
1310
|
-
inherits:
|
|
1311
|
-
toFlatObject:
|
|
1326
|
+
inherits: Or,
|
|
1327
|
+
toFlatObject: Lr,
|
|
1312
1328
|
kindOf: He,
|
|
1313
1329
|
kindOfTest: D,
|
|
1314
1330
|
endsWith: Tr,
|
|
@@ -1326,7 +1342,7 @@ const qr = (e) => {
|
|
|
1326
1342
|
noop: Dr,
|
|
1327
1343
|
toFiniteNumber: Ir,
|
|
1328
1344
|
findKey: Nt,
|
|
1329
|
-
global:
|
|
1345
|
+
global: Q,
|
|
1330
1346
|
isContextDefined: Pt,
|
|
1331
1347
|
isSpecCompliantForm: zr,
|
|
1332
1348
|
toJSONObject: qr,
|
|
@@ -1382,9 +1398,9 @@ Object.defineProperties(S, Dt);
|
|
|
1382
1398
|
Object.defineProperty(jt, "isAxiosError", { value: !0 });
|
|
1383
1399
|
S.from = (e, t, n, s, r, o) => {
|
|
1384
1400
|
const a = Object.create(jt);
|
|
1385
|
-
d.toFlatObject(e, a, function(
|
|
1386
|
-
return
|
|
1387
|
-
}, (
|
|
1401
|
+
d.toFlatObject(e, a, function(u) {
|
|
1402
|
+
return u !== Error.prototype;
|
|
1403
|
+
}, (c) => c !== "isAxiosError");
|
|
1388
1404
|
const i = e && e.message ? e.message : "Error", l = t == null && e ? e.code : t;
|
|
1389
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;
|
|
1390
1406
|
};
|
|
@@ -1413,13 +1429,13 @@ function Be(e, t, n) {
|
|
|
1413
1429
|
metaTokens: !0,
|
|
1414
1430
|
dots: !1,
|
|
1415
1431
|
indexes: !1
|
|
1416
|
-
}, !1, function(
|
|
1417
|
-
return !d.isUndefined(
|
|
1432
|
+
}, !1, function(b, h) {
|
|
1433
|
+
return !d.isUndefined(h[b]);
|
|
1418
1434
|
});
|
|
1419
|
-
const s = n.metaTokens, r = n.visitor ||
|
|
1435
|
+
const s = n.metaTokens, r = n.visitor || u, o = n.dots, a = n.indexes, l = (n.Blob || typeof Blob < "u" && Blob) && d.isSpecCompliantForm(t);
|
|
1420
1436
|
if (!d.isFunction(r))
|
|
1421
1437
|
throw new TypeError("visitor must be a function");
|
|
1422
|
-
function
|
|
1438
|
+
function c(p) {
|
|
1423
1439
|
if (p === null) return "";
|
|
1424
1440
|
if (d.isDate(p))
|
|
1425
1441
|
return p.toISOString();
|
|
@@ -1429,45 +1445,45 @@ function Be(e, t, n) {
|
|
|
1429
1445
|
throw new S("Blob is not supported. Use a Buffer instead.");
|
|
1430
1446
|
return d.isArrayBuffer(p) || d.isTypedArray(p) ? l && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
|
|
1431
1447
|
}
|
|
1432
|
-
function
|
|
1433
|
-
let
|
|
1434
|
-
if (p && !
|
|
1435
|
-
if (d.endsWith(
|
|
1436
|
-
|
|
1437
|
-
else if (d.isArray(p) && Xr(p) || (d.isFileList(p) || d.endsWith(
|
|
1438
|
-
return
|
|
1439
|
-
!(d.isUndefined(
|
|
1448
|
+
function u(p, b, h) {
|
|
1449
|
+
let _ = p;
|
|
1450
|
+
if (p && !h && typeof p == "object") {
|
|
1451
|
+
if (d.endsWith(b, "{}"))
|
|
1452
|
+
b = s ? b : b.slice(0, -2), p = JSON.stringify(p);
|
|
1453
|
+
else if (d.isArray(p) && Xr(p) || (d.isFileList(p) || d.endsWith(b, "[]")) && (_ = d.toArray(p)))
|
|
1454
|
+
return b = It(b), _.forEach(function(O, F) {
|
|
1455
|
+
!(d.isUndefined(O) || O === null) && t.append(
|
|
1440
1456
|
// eslint-disable-next-line no-nested-ternary
|
|
1441
|
-
a === !0 ? lt([
|
|
1442
|
-
|
|
1457
|
+
a === !0 ? lt([b], F, o) : a === null ? b : b + "[]",
|
|
1458
|
+
c(O)
|
|
1443
1459
|
);
|
|
1444
1460
|
}), !1;
|
|
1445
1461
|
}
|
|
1446
|
-
return qe(p) ? !0 : (t.append(lt(
|
|
1462
|
+
return qe(p) ? !0 : (t.append(lt(h, b, o), c(p)), !1);
|
|
1447
1463
|
}
|
|
1448
|
-
const
|
|
1449
|
-
defaultVisitor:
|
|
1450
|
-
convertValue:
|
|
1464
|
+
const m = [], w = Object.assign(Yr, {
|
|
1465
|
+
defaultVisitor: u,
|
|
1466
|
+
convertValue: c,
|
|
1451
1467
|
isVisitable: qe
|
|
1452
1468
|
});
|
|
1453
|
-
function
|
|
1469
|
+
function v(p, b) {
|
|
1454
1470
|
if (!d.isUndefined(p)) {
|
|
1455
|
-
if (
|
|
1456
|
-
throw Error("Circular reference detected in " +
|
|
1457
|
-
|
|
1458
|
-
(!(d.isUndefined(
|
|
1471
|
+
if (m.indexOf(p) !== -1)
|
|
1472
|
+
throw Error("Circular reference detected in " + b.join("."));
|
|
1473
|
+
m.push(p), d.forEach(p, function(_, T) {
|
|
1474
|
+
(!(d.isUndefined(_) || _ === null) && r.call(
|
|
1459
1475
|
t,
|
|
1460
|
-
|
|
1476
|
+
_,
|
|
1461
1477
|
d.isString(T) ? T.trim() : T,
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
)) === !0 &&
|
|
1465
|
-
}),
|
|
1478
|
+
b,
|
|
1479
|
+
w
|
|
1480
|
+
)) === !0 && v(_, b ? b.concat(T) : [T]);
|
|
1481
|
+
}), m.pop();
|
|
1466
1482
|
}
|
|
1467
1483
|
}
|
|
1468
1484
|
if (!d.isObject(e))
|
|
1469
1485
|
throw new TypeError("data must be an object");
|
|
1470
|
-
return
|
|
1486
|
+
return v(e), t;
|
|
1471
1487
|
}
|
|
1472
1488
|
function ct(e) {
|
|
1473
1489
|
const t = {
|
|
@@ -1639,7 +1655,7 @@ function fo(e, t, n) {
|
|
|
1639
1655
|
}
|
|
1640
1656
|
return (n || JSON.stringify)(e);
|
|
1641
1657
|
}
|
|
1642
|
-
const
|
|
1658
|
+
const be = {
|
|
1643
1659
|
transitional: Zt,
|
|
1644
1660
|
adapter: ["xhr", "http", "fetch"],
|
|
1645
1661
|
transformRequest: [function(t, n) {
|
|
@@ -1668,7 +1684,7 @@ const xe = {
|
|
|
1668
1684
|
return o || r ? (n.setContentType("application/json", !1), fo(t)) : t;
|
|
1669
1685
|
}],
|
|
1670
1686
|
transformResponse: [function(t) {
|
|
1671
|
-
const n = this.transitional ||
|
|
1687
|
+
const n = this.transitional || be.transitional, s = n && n.forcedJSONParsing, r = this.responseType === "json";
|
|
1672
1688
|
if (d.isResponse(t) || d.isReadableStream(t))
|
|
1673
1689
|
return t;
|
|
1674
1690
|
if (t && d.isString(t) && (s && !this.responseType || r)) {
|
|
@@ -1706,7 +1722,7 @@ const xe = {
|
|
|
1706
1722
|
}
|
|
1707
1723
|
};
|
|
1708
1724
|
d.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
1709
|
-
|
|
1725
|
+
be.headers[e] = {};
|
|
1710
1726
|
});
|
|
1711
1727
|
const po = d.toObjectSet([
|
|
1712
1728
|
"age",
|
|
@@ -1734,7 +1750,7 @@ const po = d.toObjectSet([
|
|
|
1734
1750
|
r = a.indexOf(":"), n = a.substring(0, r).trim().toLowerCase(), s = a.substring(r + 1).trim(), !(!n || t[n] && po[n]) && (n === "set-cookie" ? t[n] ? t[n].push(s) : t[n] = [s] : t[n] = t[n] ? t[n] + ", " + s : s);
|
|
1735
1751
|
}), t;
|
|
1736
1752
|
}, dt = Symbol("internals");
|
|
1737
|
-
function
|
|
1753
|
+
function pe(e) {
|
|
1738
1754
|
return e && String(e).trim().toLowerCase();
|
|
1739
1755
|
}
|
|
1740
1756
|
function Re(e) {
|
|
@@ -1778,24 +1794,24 @@ let N = class {
|
|
|
1778
1794
|
}
|
|
1779
1795
|
set(t, n, s) {
|
|
1780
1796
|
const r = this;
|
|
1781
|
-
function o(i, l,
|
|
1782
|
-
const
|
|
1783
|
-
if (!
|
|
1797
|
+
function o(i, l, c) {
|
|
1798
|
+
const u = pe(l);
|
|
1799
|
+
if (!u)
|
|
1784
1800
|
throw new Error("header name must be a non-empty string");
|
|
1785
|
-
const
|
|
1786
|
-
(!
|
|
1801
|
+
const m = d.findKey(r, u);
|
|
1802
|
+
(!m || r[m] === void 0 || c === !0 || c === void 0 && r[m] !== !1) && (r[m || l] = Re(i));
|
|
1787
1803
|
}
|
|
1788
|
-
const a = (i, l) => d.forEach(i, (
|
|
1804
|
+
const a = (i, l) => d.forEach(i, (c, u) => o(c, u, l));
|
|
1789
1805
|
if (d.isPlainObject(t) || t instanceof this.constructor)
|
|
1790
1806
|
a(t, n);
|
|
1791
1807
|
else if (d.isString(t) && (t = t.trim()) && !go(t))
|
|
1792
1808
|
a(ho(t), n);
|
|
1793
1809
|
else if (d.isObject(t) && d.isIterable(t)) {
|
|
1794
|
-
let i = {}, l,
|
|
1795
|
-
for (const
|
|
1796
|
-
if (!d.isArray(
|
|
1810
|
+
let i = {}, l, c;
|
|
1811
|
+
for (const u of t) {
|
|
1812
|
+
if (!d.isArray(u))
|
|
1797
1813
|
throw TypeError("Object iterator must return a key-value pair");
|
|
1798
|
-
i[
|
|
1814
|
+
i[c = u[0]] = (l = i[c]) ? d.isArray(l) ? [...l, u[1]] : [l, u[1]] : u[1];
|
|
1799
1815
|
}
|
|
1800
1816
|
a(i, n);
|
|
1801
1817
|
} else
|
|
@@ -1803,7 +1819,7 @@ let N = class {
|
|
|
1803
1819
|
return this;
|
|
1804
1820
|
}
|
|
1805
1821
|
get(t, n) {
|
|
1806
|
-
if (t =
|
|
1822
|
+
if (t = pe(t), t) {
|
|
1807
1823
|
const s = d.findKey(this, t);
|
|
1808
1824
|
if (s) {
|
|
1809
1825
|
const r = this[s];
|
|
@@ -1820,7 +1836,7 @@ let N = class {
|
|
|
1820
1836
|
}
|
|
1821
1837
|
}
|
|
1822
1838
|
has(t, n) {
|
|
1823
|
-
if (t =
|
|
1839
|
+
if (t = pe(t), t) {
|
|
1824
1840
|
const s = d.findKey(this, t);
|
|
1825
1841
|
return !!(s && this[s] !== void 0 && (!n || Ue(this, this[s], s, n)));
|
|
1826
1842
|
}
|
|
@@ -1830,7 +1846,7 @@ let N = class {
|
|
|
1830
1846
|
const s = this;
|
|
1831
1847
|
let r = !1;
|
|
1832
1848
|
function o(a) {
|
|
1833
|
-
if (a =
|
|
1849
|
+
if (a = pe(a), a) {
|
|
1834
1850
|
const i = d.findKey(s, a);
|
|
1835
1851
|
i && (!n || Ue(s, s[i], i, n)) && (delete s[i], r = !0);
|
|
1836
1852
|
}
|
|
@@ -1892,7 +1908,7 @@ let N = class {
|
|
|
1892
1908
|
accessors: {}
|
|
1893
1909
|
}).accessors, r = this.prototype;
|
|
1894
1910
|
function o(a) {
|
|
1895
|
-
const i =
|
|
1911
|
+
const i = pe(a);
|
|
1896
1912
|
s[i] || (wo(r, a), s[i] = !0);
|
|
1897
1913
|
}
|
|
1898
1914
|
return d.isArray(t) ? t.forEach(o) : o(t), this;
|
|
@@ -1910,7 +1926,7 @@ d.reduceDescriptors(N.prototype, ({ value: e }, t) => {
|
|
|
1910
1926
|
});
|
|
1911
1927
|
d.freezeMethods(N);
|
|
1912
1928
|
function je(e, t) {
|
|
1913
|
-
const n = this ||
|
|
1929
|
+
const n = this || be, s = t || n, r = N.from(s.headers);
|
|
1914
1930
|
let o = s.data;
|
|
1915
1931
|
return d.forEach(e, function(i) {
|
|
1916
1932
|
o = i.call(n, o, r.normalize(), t ? t.status : void 0);
|
|
@@ -1919,10 +1935,10 @@ function je(e, t) {
|
|
|
1919
1935
|
function Gt(e) {
|
|
1920
1936
|
return !!(e && e.__CANCEL__);
|
|
1921
1937
|
}
|
|
1922
|
-
function
|
|
1938
|
+
function ce(e, t, n) {
|
|
1923
1939
|
S.call(this, e ?? "canceled", S.ERR_CANCELED, t, n), this.name = "CanceledError";
|
|
1924
1940
|
}
|
|
1925
|
-
d.inherits(
|
|
1941
|
+
d.inherits(ce, S, {
|
|
1926
1942
|
__CANCEL__: !0
|
|
1927
1943
|
});
|
|
1928
1944
|
function Jt(e, t, n) {
|
|
@@ -1944,47 +1960,47 @@ function xo(e, t) {
|
|
|
1944
1960
|
const n = new Array(e), s = new Array(e);
|
|
1945
1961
|
let r = 0, o = 0, a;
|
|
1946
1962
|
return t = t !== void 0 ? t : 1e3, function(l) {
|
|
1947
|
-
const
|
|
1948
|
-
a || (a =
|
|
1949
|
-
let
|
|
1950
|
-
for (;
|
|
1951
|
-
|
|
1952
|
-
if (r = (r + 1) % e, r === o && (o = (o + 1) % e),
|
|
1963
|
+
const c = Date.now(), u = s[o];
|
|
1964
|
+
a || (a = c), n[r] = l, s[r] = c;
|
|
1965
|
+
let m = o, w = 0;
|
|
1966
|
+
for (; m !== r; )
|
|
1967
|
+
w += n[m++], m = m % e;
|
|
1968
|
+
if (r = (r + 1) % e, r === o && (o = (o + 1) % e), c - a < t)
|
|
1953
1969
|
return;
|
|
1954
|
-
const
|
|
1955
|
-
return
|
|
1970
|
+
const v = u && c - u;
|
|
1971
|
+
return v ? Math.round(w * 1e3 / v) : void 0;
|
|
1956
1972
|
};
|
|
1957
1973
|
}
|
|
1958
1974
|
function So(e, t) {
|
|
1959
1975
|
let n = 0, s = 1e3 / t, r, o;
|
|
1960
|
-
const a = (
|
|
1961
|
-
n =
|
|
1976
|
+
const a = (c, u = Date.now()) => {
|
|
1977
|
+
n = u, r = null, o && (clearTimeout(o), o = null), e(...c);
|
|
1962
1978
|
};
|
|
1963
|
-
return [(...
|
|
1964
|
-
const
|
|
1965
|
-
|
|
1979
|
+
return [(...c) => {
|
|
1980
|
+
const u = Date.now(), m = u - n;
|
|
1981
|
+
m >= s ? a(c, u) : (r = c, o || (o = setTimeout(() => {
|
|
1966
1982
|
o = null, a(r);
|
|
1967
|
-
}, s -
|
|
1983
|
+
}, s - m)));
|
|
1968
1984
|
}, () => r && a(r)];
|
|
1969
1985
|
}
|
|
1970
|
-
const
|
|
1986
|
+
const Oe = (e, t, n = 3) => {
|
|
1971
1987
|
let s = 0;
|
|
1972
1988
|
const r = xo(50, 250);
|
|
1973
1989
|
return So((o) => {
|
|
1974
|
-
const a = o.loaded, i = o.lengthComputable ? o.total : void 0, l = a - s,
|
|
1990
|
+
const a = o.loaded, i = o.lengthComputable ? o.total : void 0, l = a - s, c = r(l), u = a <= i;
|
|
1975
1991
|
s = a;
|
|
1976
|
-
const
|
|
1992
|
+
const m = {
|
|
1977
1993
|
loaded: a,
|
|
1978
1994
|
total: i,
|
|
1979
1995
|
progress: i ? a / i : void 0,
|
|
1980
1996
|
bytes: l,
|
|
1981
|
-
rate:
|
|
1982
|
-
estimated:
|
|
1997
|
+
rate: c || void 0,
|
|
1998
|
+
estimated: c && i && u ? (i - a) / c : void 0,
|
|
1983
1999
|
event: o,
|
|
1984
2000
|
lengthComputable: i != null,
|
|
1985
2001
|
[t ? "download" : "upload"]: !0
|
|
1986
2002
|
};
|
|
1987
|
-
e(
|
|
2003
|
+
e(m);
|
|
1988
2004
|
}, n);
|
|
1989
2005
|
}, ft = (e, t) => {
|
|
1990
2006
|
const n = e != null;
|
|
@@ -2036,33 +2052,33 @@ function Kt(e, t, n) {
|
|
|
2036
2052
|
return e && (s || n == !1) ? ko(e, t) : t;
|
|
2037
2053
|
}
|
|
2038
2054
|
const ht = (e) => e instanceof N ? { ...e } : e;
|
|
2039
|
-
function
|
|
2055
|
+
function te(e, t) {
|
|
2040
2056
|
t = t || {};
|
|
2041
2057
|
const n = {};
|
|
2042
|
-
function s(
|
|
2043
|
-
return d.isPlainObject(
|
|
2058
|
+
function s(c, u, m, w) {
|
|
2059
|
+
return d.isPlainObject(c) && d.isPlainObject(u) ? d.merge.call({ caseless: w }, c, u) : d.isPlainObject(u) ? d.merge({}, u) : d.isArray(u) ? u.slice() : u;
|
|
2044
2060
|
}
|
|
2045
|
-
function r(
|
|
2046
|
-
if (d.isUndefined(
|
|
2047
|
-
if (!d.isUndefined(
|
|
2048
|
-
return s(void 0,
|
|
2049
|
-
} else return s(
|
|
2061
|
+
function r(c, u, m, w) {
|
|
2062
|
+
if (d.isUndefined(u)) {
|
|
2063
|
+
if (!d.isUndefined(c))
|
|
2064
|
+
return s(void 0, c, m, w);
|
|
2065
|
+
} else return s(c, u, m, w);
|
|
2050
2066
|
}
|
|
2051
|
-
function o(
|
|
2052
|
-
if (!d.isUndefined(
|
|
2053
|
-
return s(void 0,
|
|
2067
|
+
function o(c, u) {
|
|
2068
|
+
if (!d.isUndefined(u))
|
|
2069
|
+
return s(void 0, u);
|
|
2054
2070
|
}
|
|
2055
|
-
function a(
|
|
2056
|
-
if (d.isUndefined(
|
|
2057
|
-
if (!d.isUndefined(
|
|
2058
|
-
return s(void 0,
|
|
2059
|
-
} else return s(void 0,
|
|
2071
|
+
function a(c, u) {
|
|
2072
|
+
if (d.isUndefined(u)) {
|
|
2073
|
+
if (!d.isUndefined(c))
|
|
2074
|
+
return s(void 0, c);
|
|
2075
|
+
} else return s(void 0, u);
|
|
2060
2076
|
}
|
|
2061
|
-
function i(
|
|
2062
|
-
if (
|
|
2063
|
-
return s(
|
|
2064
|
-
if (
|
|
2065
|
-
return s(void 0,
|
|
2077
|
+
function i(c, u, m) {
|
|
2078
|
+
if (m in t)
|
|
2079
|
+
return s(c, u);
|
|
2080
|
+
if (m in e)
|
|
2081
|
+
return s(void 0, c);
|
|
2066
2082
|
}
|
|
2067
2083
|
const l = {
|
|
2068
2084
|
url: o,
|
|
@@ -2093,15 +2109,15 @@ function ne(e, t) {
|
|
|
2093
2109
|
socketPath: a,
|
|
2094
2110
|
responseEncoding: a,
|
|
2095
2111
|
validateStatus: i,
|
|
2096
|
-
headers: (
|
|
2112
|
+
headers: (c, u, m) => r(ht(c), ht(u), m, !0)
|
|
2097
2113
|
};
|
|
2098
|
-
return d.forEach(Object.keys({ ...e, ...t }), function(
|
|
2099
|
-
const
|
|
2100
|
-
d.isUndefined(
|
|
2114
|
+
return d.forEach(Object.keys({ ...e, ...t }), function(u) {
|
|
2115
|
+
const m = l[u] || r, w = m(e[u], t[u], u);
|
|
2116
|
+
d.isUndefined(w) && m !== i || (n[u] = w);
|
|
2101
2117
|
}), n;
|
|
2102
2118
|
}
|
|
2103
2119
|
const Xt = (e) => {
|
|
2104
|
-
const t =
|
|
2120
|
+
const t = te({}, e);
|
|
2105
2121
|
let { data: n, withXSRFToken: s, xsrfHeaderName: r, xsrfCookieName: o, headers: a, auth: i } = t;
|
|
2106
2122
|
if (t.headers = a = N.from(a), t.url = qt(Kt(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), i && a.set(
|
|
2107
2123
|
"Authorization",
|
|
@@ -2110,9 +2126,9 @@ const Xt = (e) => {
|
|
|
2110
2126
|
if (H.hasStandardBrowserEnv || H.hasStandardBrowserWebWorkerEnv)
|
|
2111
2127
|
a.setContentType(void 0);
|
|
2112
2128
|
else if (d.isFunction(n.getHeaders)) {
|
|
2113
|
-
const l = n.getHeaders(),
|
|
2114
|
-
Object.entries(l).forEach(([
|
|
2115
|
-
|
|
2129
|
+
const l = n.getHeaders(), c = ["content-type", "content-length"];
|
|
2130
|
+
Object.entries(l).forEach(([u, m]) => {
|
|
2131
|
+
c.includes(u.toLowerCase()) && a.set(u, m);
|
|
2116
2132
|
});
|
|
2117
2133
|
}
|
|
2118
2134
|
}
|
|
@@ -2126,79 +2142,79 @@ const Xt = (e) => {
|
|
|
2126
2142
|
const r = Xt(e);
|
|
2127
2143
|
let o = r.data;
|
|
2128
2144
|
const a = N.from(r.headers).normalize();
|
|
2129
|
-
let { responseType: i, onUploadProgress: l, onDownloadProgress:
|
|
2130
|
-
function
|
|
2131
|
-
|
|
2132
|
-
}
|
|
2133
|
-
let
|
|
2134
|
-
|
|
2135
|
-
function
|
|
2136
|
-
if (!
|
|
2145
|
+
let { responseType: i, onUploadProgress: l, onDownloadProgress: c } = r, u, m, w, v, p;
|
|
2146
|
+
function b() {
|
|
2147
|
+
v && v(), p && p(), r.cancelToken && r.cancelToken.unsubscribe(u), r.signal && r.signal.removeEventListener("abort", u);
|
|
2148
|
+
}
|
|
2149
|
+
let h = new XMLHttpRequest();
|
|
2150
|
+
h.open(r.method.toUpperCase(), r.url, !0), h.timeout = r.timeout;
|
|
2151
|
+
function _() {
|
|
2152
|
+
if (!h)
|
|
2137
2153
|
return;
|
|
2138
|
-
const
|
|
2139
|
-
"getAllResponseHeaders" in
|
|
2154
|
+
const O = N.from(
|
|
2155
|
+
"getAllResponseHeaders" in h && h.getAllResponseHeaders()
|
|
2140
2156
|
), j = {
|
|
2141
|
-
data: !i || i === "text" || i === "json" ?
|
|
2142
|
-
status:
|
|
2143
|
-
statusText:
|
|
2144
|
-
headers:
|
|
2157
|
+
data: !i || i === "text" || i === "json" ? h.responseText : h.response,
|
|
2158
|
+
status: h.status,
|
|
2159
|
+
statusText: h.statusText,
|
|
2160
|
+
headers: O,
|
|
2145
2161
|
config: e,
|
|
2146
|
-
request:
|
|
2162
|
+
request: h
|
|
2147
2163
|
};
|
|
2148
2164
|
Jt(function(P) {
|
|
2149
|
-
n(P),
|
|
2165
|
+
n(P), b();
|
|
2150
2166
|
}, function(P) {
|
|
2151
|
-
s(P),
|
|
2152
|
-
}, j),
|
|
2153
|
-
}
|
|
2154
|
-
"onloadend" in
|
|
2155
|
-
!
|
|
2156
|
-
},
|
|
2157
|
-
|
|
2158
|
-
},
|
|
2159
|
-
const j = F && F.message ? F.message : "Network Error", X = new S(j, S.ERR_NETWORK, e,
|
|
2160
|
-
X.event = F || null, s(X),
|
|
2161
|
-
},
|
|
2167
|
+
s(P), b();
|
|
2168
|
+
}, j), h = null;
|
|
2169
|
+
}
|
|
2170
|
+
"onloadend" in h ? h.onloadend = _ : h.onreadystatechange = function() {
|
|
2171
|
+
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(_);
|
|
2172
|
+
}, h.onabort = function() {
|
|
2173
|
+
h && (s(new S("Request aborted", S.ECONNABORTED, e, h)), h = null);
|
|
2174
|
+
}, h.onerror = function(F) {
|
|
2175
|
+
const j = F && F.message ? F.message : "Network Error", X = new S(j, S.ERR_NETWORK, e, h);
|
|
2176
|
+
X.event = F || null, s(X), h = null;
|
|
2177
|
+
}, h.ontimeout = function() {
|
|
2162
2178
|
let F = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded";
|
|
2163
2179
|
const j = r.transitional || Zt;
|
|
2164
2180
|
r.timeoutErrorMessage && (F = r.timeoutErrorMessage), s(new S(
|
|
2165
2181
|
F,
|
|
2166
2182
|
j.clarifyTimeoutError ? S.ETIMEDOUT : S.ECONNABORTED,
|
|
2167
2183
|
e,
|
|
2168
|
-
|
|
2169
|
-
)),
|
|
2170
|
-
}, o === void 0 && a.setContentType(null), "setRequestHeader" in
|
|
2171
|
-
|
|
2172
|
-
}), d.isUndefined(r.withCredentials) || (
|
|
2173
|
-
|
|
2174
|
-
}, r.cancelToken && r.cancelToken.subscribe(
|
|
2184
|
+
h
|
|
2185
|
+
)), h = null;
|
|
2186
|
+
}, o === void 0 && a.setContentType(null), "setRequestHeader" in h && d.forEach(a.toJSON(), function(F, j) {
|
|
2187
|
+
h.setRequestHeader(j, F);
|
|
2188
|
+
}), d.isUndefined(r.withCredentials) || (h.withCredentials = !!r.withCredentials), i && i !== "json" && (h.responseType = r.responseType), c && ([w, p] = Oe(c, !0), h.addEventListener("progress", w)), l && h.upload && ([m, v] = Oe(l), h.upload.addEventListener("progress", m), h.upload.addEventListener("loadend", v)), (r.cancelToken || r.signal) && (u = (O) => {
|
|
2189
|
+
h && (s(!O || O.type ? new ce(null, e, h) : O), h.abort(), h = null);
|
|
2190
|
+
}, r.cancelToken && r.cancelToken.subscribe(u), r.signal && (r.signal.aborted ? u() : r.signal.addEventListener("abort", u)));
|
|
2175
2191
|
const T = bo(r.url);
|
|
2176
2192
|
if (T && H.protocols.indexOf(T) === -1) {
|
|
2177
2193
|
s(new S("Unsupported protocol " + T + ":", S.ERR_BAD_REQUEST, e));
|
|
2178
2194
|
return;
|
|
2179
2195
|
}
|
|
2180
|
-
|
|
2196
|
+
h.send(o || null);
|
|
2181
2197
|
});
|
|
2182
2198
|
}, $o = (e, t) => {
|
|
2183
2199
|
const { length: n } = e = e ? e.filter(Boolean) : [];
|
|
2184
2200
|
if (t || n) {
|
|
2185
2201
|
let s = new AbortController(), r;
|
|
2186
|
-
const o = function(
|
|
2202
|
+
const o = function(c) {
|
|
2187
2203
|
if (!r) {
|
|
2188
2204
|
r = !0, i();
|
|
2189
|
-
const
|
|
2190
|
-
s.abort(
|
|
2205
|
+
const u = c instanceof Error ? c : this.reason;
|
|
2206
|
+
s.abort(u instanceof S ? u : new ce(u instanceof Error ? u.message : u));
|
|
2191
2207
|
}
|
|
2192
2208
|
};
|
|
2193
2209
|
let a = t && setTimeout(() => {
|
|
2194
2210
|
a = null, o(new S(`timeout ${t} of ms exceeded`, S.ETIMEDOUT));
|
|
2195
2211
|
}, t);
|
|
2196
2212
|
const i = () => {
|
|
2197
|
-
e && (a && clearTimeout(a), a = null, e.forEach((
|
|
2198
|
-
|
|
2213
|
+
e && (a && clearTimeout(a), a = null, e.forEach((c) => {
|
|
2214
|
+
c.unsubscribe ? c.unsubscribe(o) : c.removeEventListener("abort", o);
|
|
2199
2215
|
}), e = null);
|
|
2200
2216
|
};
|
|
2201
|
-
e.forEach((
|
|
2217
|
+
e.forEach((c) => c.addEventListener("abort", o));
|
|
2202
2218
|
const { signal: l } = s;
|
|
2203
2219
|
return l.unsubscribe = () => d.asap(i), l;
|
|
2204
2220
|
}
|
|
@@ -2211,10 +2227,10 @@ const Xt = (e) => {
|
|
|
2211
2227
|
let s = 0, r;
|
|
2212
2228
|
for (; s < n; )
|
|
2213
2229
|
r = s + t, yield e.slice(s, r), s = r;
|
|
2214
|
-
},
|
|
2215
|
-
for await (const n of
|
|
2230
|
+
}, Oo = async function* (e, t) {
|
|
2231
|
+
for await (const n of Lo(e))
|
|
2216
2232
|
yield* Ao(n, t);
|
|
2217
|
-
},
|
|
2233
|
+
}, Lo = async function* (e) {
|
|
2218
2234
|
if (e[Symbol.asyncIterator]) {
|
|
2219
2235
|
yield* e;
|
|
2220
2236
|
return;
|
|
@@ -2231,26 +2247,26 @@ const Xt = (e) => {
|
|
|
2231
2247
|
await t.cancel();
|
|
2232
2248
|
}
|
|
2233
2249
|
}, mt = (e, t, n, s) => {
|
|
2234
|
-
const r =
|
|
2250
|
+
const r = Oo(e, t);
|
|
2235
2251
|
let o = 0, a, i = (l) => {
|
|
2236
2252
|
a || (a = !0, s && s(l));
|
|
2237
2253
|
};
|
|
2238
2254
|
return new ReadableStream({
|
|
2239
2255
|
async pull(l) {
|
|
2240
2256
|
try {
|
|
2241
|
-
const { done:
|
|
2242
|
-
if (
|
|
2257
|
+
const { done: c, value: u } = await r.next();
|
|
2258
|
+
if (c) {
|
|
2243
2259
|
i(), l.close();
|
|
2244
2260
|
return;
|
|
2245
2261
|
}
|
|
2246
|
-
let
|
|
2262
|
+
let m = u.byteLength;
|
|
2247
2263
|
if (n) {
|
|
2248
|
-
let
|
|
2249
|
-
n(
|
|
2264
|
+
let w = o += m;
|
|
2265
|
+
n(w);
|
|
2250
2266
|
}
|
|
2251
|
-
l.enqueue(new Uint8Array(
|
|
2252
|
-
} catch (
|
|
2253
|
-
throw i(
|
|
2267
|
+
l.enqueue(new Uint8Array(u));
|
|
2268
|
+
} catch (c) {
|
|
2269
|
+
throw i(c), c;
|
|
2254
2270
|
}
|
|
2255
2271
|
},
|
|
2256
2272
|
cancel(l) {
|
|
@@ -2278,28 +2294,28 @@ const Xt = (e) => {
|
|
|
2278
2294
|
const { fetch: t, Request: n, Response: s } = e, r = t ? _e(t) : typeof fetch == "function", o = _e(n), a = _e(s);
|
|
2279
2295
|
if (!r)
|
|
2280
2296
|
return !1;
|
|
2281
|
-
const i = r && _e(yt), l = r && (typeof wt == "function" ? /* @__PURE__ */ ((p) => (
|
|
2297
|
+
const i = r && _e(yt), l = r && (typeof wt == "function" ? /* @__PURE__ */ ((p) => (b) => p.encode(b))(new wt()) : async (p) => new Uint8Array(await new n(p).arrayBuffer())), c = o && i && bt(() => {
|
|
2282
2298
|
let p = !1;
|
|
2283
|
-
const
|
|
2299
|
+
const b = new n(H.origin, {
|
|
2284
2300
|
body: new yt(),
|
|
2285
2301
|
method: "POST",
|
|
2286
2302
|
get duplex() {
|
|
2287
2303
|
return p = !0, "half";
|
|
2288
2304
|
}
|
|
2289
2305
|
}).headers.has("Content-Type");
|
|
2290
|
-
return p && !
|
|
2291
|
-
}),
|
|
2292
|
-
stream:
|
|
2306
|
+
return p && !b;
|
|
2307
|
+
}), u = a && i && bt(() => d.isReadableStream(new s("").body)), m = {
|
|
2308
|
+
stream: u && ((p) => p.body)
|
|
2293
2309
|
};
|
|
2294
2310
|
r && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((p) => {
|
|
2295
|
-
!
|
|
2296
|
-
let
|
|
2297
|
-
if (
|
|
2298
|
-
return
|
|
2299
|
-
throw new S(`Response type '${p}' is not supported`, S.ERR_NOT_SUPPORT,
|
|
2311
|
+
!m[p] && (m[p] = (b, h) => {
|
|
2312
|
+
let _ = b && b[p];
|
|
2313
|
+
if (_)
|
|
2314
|
+
return _.call(b);
|
|
2315
|
+
throw new S(`Response type '${p}' is not supported`, S.ERR_NOT_SUPPORT, h);
|
|
2300
2316
|
});
|
|
2301
2317
|
});
|
|
2302
|
-
const
|
|
2318
|
+
const w = async (p) => {
|
|
2303
2319
|
if (p == null)
|
|
2304
2320
|
return 0;
|
|
2305
2321
|
if (d.isBlob(p))
|
|
@@ -2313,94 +2329,94 @@ const Xt = (e) => {
|
|
|
2313
2329
|
return p.byteLength;
|
|
2314
2330
|
if (d.isURLSearchParams(p) && (p = p + ""), d.isString(p))
|
|
2315
2331
|
return (await l(p)).byteLength;
|
|
2316
|
-
},
|
|
2317
|
-
const
|
|
2318
|
-
return
|
|
2332
|
+
}, v = async (p, b) => {
|
|
2333
|
+
const h = d.toFiniteNumber(p.getContentLength());
|
|
2334
|
+
return h ?? w(b);
|
|
2319
2335
|
};
|
|
2320
2336
|
return async (p) => {
|
|
2321
2337
|
let {
|
|
2322
|
-
url:
|
|
2323
|
-
method:
|
|
2324
|
-
data:
|
|
2338
|
+
url: b,
|
|
2339
|
+
method: h,
|
|
2340
|
+
data: _,
|
|
2325
2341
|
signal: T,
|
|
2326
|
-
cancelToken:
|
|
2342
|
+
cancelToken: O,
|
|
2327
2343
|
timeout: F,
|
|
2328
2344
|
onDownloadProgress: j,
|
|
2329
2345
|
onUploadProgress: X,
|
|
2330
2346
|
responseType: P,
|
|
2331
2347
|
headers: Ne,
|
|
2332
|
-
withCredentials:
|
|
2348
|
+
withCredentials: xe = "same-origin",
|
|
2333
2349
|
fetchOptions: Ye
|
|
2334
2350
|
} = Xt(p), Qe = t || fetch;
|
|
2335
2351
|
P = P ? (P + "").toLowerCase() : "text";
|
|
2336
|
-
let
|
|
2337
|
-
const Y =
|
|
2338
|
-
|
|
2352
|
+
let Se = $o([T, O && O.toAbortSignal()], F), ue = null;
|
|
2353
|
+
const Y = Se && Se.unsubscribe && (() => {
|
|
2354
|
+
Se.unsubscribe();
|
|
2339
2355
|
});
|
|
2340
2356
|
let et;
|
|
2341
2357
|
try {
|
|
2342
|
-
if (X &&
|
|
2343
|
-
let G = new n(
|
|
2358
|
+
if (X && c && h !== "get" && h !== "head" && (et = await v(Ne, _)) !== 0) {
|
|
2359
|
+
let G = new n(b, {
|
|
2344
2360
|
method: "POST",
|
|
2345
|
-
body:
|
|
2361
|
+
body: _,
|
|
2346
2362
|
duplex: "half"
|
|
2347
|
-
}),
|
|
2348
|
-
if (d.isFormData(
|
|
2349
|
-
const [Pe,
|
|
2363
|
+
}), oe;
|
|
2364
|
+
if (d.isFormData(_) && (oe = G.headers.get("content-type")) && Ne.setContentType(oe), G.body) {
|
|
2365
|
+
const [Pe, Ce] = ft(
|
|
2350
2366
|
et,
|
|
2351
|
-
|
|
2367
|
+
Oe(pt(X))
|
|
2352
2368
|
);
|
|
2353
|
-
|
|
2369
|
+
_ = mt(G.body, gt, Pe, Ce);
|
|
2354
2370
|
}
|
|
2355
2371
|
}
|
|
2356
|
-
d.isString(
|
|
2372
|
+
d.isString(xe) || (xe = xe ? "include" : "omit");
|
|
2357
2373
|
const I = o && "credentials" in n.prototype, tt = {
|
|
2358
2374
|
...Ye,
|
|
2359
|
-
signal:
|
|
2360
|
-
method:
|
|
2375
|
+
signal: Se,
|
|
2376
|
+
method: h.toUpperCase(),
|
|
2361
2377
|
headers: Ne.normalize().toJSON(),
|
|
2362
|
-
body:
|
|
2378
|
+
body: _,
|
|
2363
2379
|
duplex: "half",
|
|
2364
|
-
credentials: I ?
|
|
2380
|
+
credentials: I ? xe : void 0
|
|
2365
2381
|
};
|
|
2366
|
-
|
|
2367
|
-
let W = await (o ? Qe(
|
|
2368
|
-
const nt =
|
|
2369
|
-
if (
|
|
2382
|
+
ue = o && new n(b, tt);
|
|
2383
|
+
let W = await (o ? Qe(ue, Ye) : Qe(b, tt));
|
|
2384
|
+
const nt = u && (P === "stream" || P === "response");
|
|
2385
|
+
if (u && (j || nt && Y)) {
|
|
2370
2386
|
const G = {};
|
|
2371
2387
|
["status", "statusText", "headers"].forEach((st) => {
|
|
2372
2388
|
G[st] = W[st];
|
|
2373
2389
|
});
|
|
2374
|
-
const
|
|
2375
|
-
|
|
2376
|
-
|
|
2390
|
+
const oe = d.toFiniteNumber(W.headers.get("content-length")), [Pe, Ce] = j && ft(
|
|
2391
|
+
oe,
|
|
2392
|
+
Oe(pt(j), !0)
|
|
2377
2393
|
) || [];
|
|
2378
2394
|
W = new s(
|
|
2379
2395
|
mt(W.body, gt, Pe, () => {
|
|
2380
|
-
|
|
2396
|
+
Ce && Ce(), Y && Y();
|
|
2381
2397
|
}),
|
|
2382
2398
|
G
|
|
2383
2399
|
);
|
|
2384
2400
|
}
|
|
2385
2401
|
P = P || "text";
|
|
2386
|
-
let rn = await
|
|
2387
|
-
return !nt && Y && Y(), await new Promise((G,
|
|
2388
|
-
Jt(G,
|
|
2402
|
+
let rn = await m[d.findKey(m, P) || "text"](W, p);
|
|
2403
|
+
return !nt && Y && Y(), await new Promise((G, oe) => {
|
|
2404
|
+
Jt(G, oe, {
|
|
2389
2405
|
data: rn,
|
|
2390
2406
|
headers: N.from(W.headers),
|
|
2391
2407
|
status: W.status,
|
|
2392
2408
|
statusText: W.statusText,
|
|
2393
2409
|
config: p,
|
|
2394
|
-
request:
|
|
2410
|
+
request: ue
|
|
2395
2411
|
});
|
|
2396
2412
|
});
|
|
2397
2413
|
} catch (I) {
|
|
2398
2414
|
throw Y && Y(), I && I.name === "TypeError" && /Load failed|fetch/i.test(I.message) ? Object.assign(
|
|
2399
|
-
new S("Network Error", S.ERR_NETWORK, p,
|
|
2415
|
+
new S("Network Error", S.ERR_NETWORK, p, ue),
|
|
2400
2416
|
{
|
|
2401
2417
|
cause: I.cause || I
|
|
2402
2418
|
}
|
|
2403
|
-
) : S.from(I, I && I.code, p,
|
|
2419
|
+
) : S.from(I, I && I.code, p, ue);
|
|
2404
2420
|
}
|
|
2405
2421
|
};
|
|
2406
2422
|
}, Fo = /* @__PURE__ */ new Map(), Yt = (e) => {
|
|
@@ -2410,10 +2426,10 @@ const Xt = (e) => {
|
|
|
2410
2426
|
r,
|
|
2411
2427
|
n
|
|
2412
2428
|
];
|
|
2413
|
-
let a = o.length, i = a, l,
|
|
2429
|
+
let a = o.length, i = a, l, c, u = Fo;
|
|
2414
2430
|
for (; i--; )
|
|
2415
|
-
l = o[i],
|
|
2416
|
-
return
|
|
2431
|
+
l = o[i], c = u.get(l), c === void 0 && u.set(l, c = i ? /* @__PURE__ */ new Map() : Ho(t)), u = c;
|
|
2432
|
+
return c;
|
|
2417
2433
|
};
|
|
2418
2434
|
Yt();
|
|
2419
2435
|
const Xe = {
|
|
@@ -2449,7 +2465,7 @@ function Vo(e, t) {
|
|
|
2449
2465
|
}
|
|
2450
2466
|
if (!r) {
|
|
2451
2467
|
const a = Object.entries(o).map(
|
|
2452
|
-
([l,
|
|
2468
|
+
([l, c]) => `adapter ${l} ` + (c === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
2453
2469
|
);
|
|
2454
2470
|
let i = n ? a.length > 1 ? `since :
|
|
2455
2471
|
` + a.map(xt).join(`
|
|
@@ -2475,13 +2491,13 @@ const Qt = {
|
|
|
2475
2491
|
};
|
|
2476
2492
|
function De(e) {
|
|
2477
2493
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
2478
|
-
throw new
|
|
2494
|
+
throw new ce(null, e);
|
|
2479
2495
|
}
|
|
2480
2496
|
function St(e) {
|
|
2481
2497
|
return De(e), e.headers = N.from(e.headers), e.data = je.call(
|
|
2482
2498
|
e,
|
|
2483
2499
|
e.transformRequest
|
|
2484
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Qt.getAdapter(e.adapter ||
|
|
2500
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Qt.getAdapter(e.adapter || be.adapter, e)(e).then(function(s) {
|
|
2485
2501
|
return De(e), s.data = je.call(
|
|
2486
2502
|
e,
|
|
2487
2503
|
e.transformResponse,
|
|
@@ -2544,7 +2560,7 @@ const Ee = {
|
|
|
2544
2560
|
assertOptions: No,
|
|
2545
2561
|
validators: Ve
|
|
2546
2562
|
}, z = Ee.validators;
|
|
2547
|
-
let
|
|
2563
|
+
let ee = class {
|
|
2548
2564
|
constructor(t) {
|
|
2549
2565
|
this.defaults = t || {}, this.interceptors = {
|
|
2550
2566
|
request: new ut(),
|
|
@@ -2577,7 +2593,7 @@ let te = class {
|
|
|
2577
2593
|
}
|
|
2578
2594
|
}
|
|
2579
2595
|
_request(t, n) {
|
|
2580
|
-
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n =
|
|
2596
|
+
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = te(this.defaults, n);
|
|
2581
2597
|
const { transitional: s, paramsSerializer: r, headers: o } = n;
|
|
2582
2598
|
s !== void 0 && Ee.assertOptions(s, {
|
|
2583
2599
|
silentJSONParsing: z.transitional(z.boolean),
|
|
@@ -2604,49 +2620,49 @@ let te = class {
|
|
|
2604
2620
|
), n.headers = N.concat(a, o);
|
|
2605
2621
|
const i = [];
|
|
2606
2622
|
let l = !0;
|
|
2607
|
-
this.interceptors.request.forEach(function(
|
|
2608
|
-
typeof
|
|
2623
|
+
this.interceptors.request.forEach(function(b) {
|
|
2624
|
+
typeof b.runWhen == "function" && b.runWhen(n) === !1 || (l = l && b.synchronous, i.unshift(b.fulfilled, b.rejected));
|
|
2609
2625
|
});
|
|
2610
|
-
const
|
|
2611
|
-
this.interceptors.response.forEach(function(
|
|
2612
|
-
|
|
2626
|
+
const c = [];
|
|
2627
|
+
this.interceptors.response.forEach(function(b) {
|
|
2628
|
+
c.push(b.fulfilled, b.rejected);
|
|
2613
2629
|
});
|
|
2614
|
-
let
|
|
2630
|
+
let u, m = 0, w;
|
|
2615
2631
|
if (!l) {
|
|
2616
2632
|
const p = [St.bind(this), void 0];
|
|
2617
|
-
for (p.unshift(...i), p.push(...
|
|
2618
|
-
|
|
2619
|
-
return
|
|
2620
|
-
}
|
|
2621
|
-
|
|
2622
|
-
let
|
|
2623
|
-
for (;
|
|
2624
|
-
const p = i[
|
|
2633
|
+
for (p.unshift(...i), p.push(...c), w = p.length, u = Promise.resolve(n); m < w; )
|
|
2634
|
+
u = u.then(p[m++], p[m++]);
|
|
2635
|
+
return u;
|
|
2636
|
+
}
|
|
2637
|
+
w = i.length;
|
|
2638
|
+
let v = n;
|
|
2639
|
+
for (; m < w; ) {
|
|
2640
|
+
const p = i[m++], b = i[m++];
|
|
2625
2641
|
try {
|
|
2626
|
-
|
|
2627
|
-
} catch (
|
|
2628
|
-
|
|
2642
|
+
v = p(v);
|
|
2643
|
+
} catch (h) {
|
|
2644
|
+
b.call(this, h);
|
|
2629
2645
|
break;
|
|
2630
2646
|
}
|
|
2631
2647
|
}
|
|
2632
2648
|
try {
|
|
2633
|
-
|
|
2649
|
+
u = St.call(this, v);
|
|
2634
2650
|
} catch (p) {
|
|
2635
2651
|
return Promise.reject(p);
|
|
2636
2652
|
}
|
|
2637
|
-
for (
|
|
2638
|
-
|
|
2639
|
-
return
|
|
2653
|
+
for (m = 0, w = c.length; m < w; )
|
|
2654
|
+
u = u.then(c[m++], c[m++]);
|
|
2655
|
+
return u;
|
|
2640
2656
|
}
|
|
2641
2657
|
getUri(t) {
|
|
2642
|
-
t =
|
|
2658
|
+
t = te(this.defaults, t);
|
|
2643
2659
|
const n = Kt(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
2644
2660
|
return qt(n, t.params, t.paramsSerializer);
|
|
2645
2661
|
}
|
|
2646
2662
|
};
|
|
2647
2663
|
d.forEach(["delete", "get", "head", "options"], function(t) {
|
|
2648
|
-
|
|
2649
|
-
return this.request(
|
|
2664
|
+
ee.prototype[t] = function(n, s) {
|
|
2665
|
+
return this.request(te(s || {}, {
|
|
2650
2666
|
method: t,
|
|
2651
2667
|
url: n,
|
|
2652
2668
|
data: (s || {}).data
|
|
@@ -2656,7 +2672,7 @@ d.forEach(["delete", "get", "head", "options"], function(t) {
|
|
|
2656
2672
|
d.forEach(["post", "put", "patch"], function(t) {
|
|
2657
2673
|
function n(s) {
|
|
2658
2674
|
return function(o, a, i) {
|
|
2659
|
-
return this.request(
|
|
2675
|
+
return this.request(te(i || {}, {
|
|
2660
2676
|
method: t,
|
|
2661
2677
|
headers: s ? {
|
|
2662
2678
|
"Content-Type": "multipart/form-data"
|
|
@@ -2666,7 +2682,7 @@ d.forEach(["post", "put", "patch"], function(t) {
|
|
|
2666
2682
|
}));
|
|
2667
2683
|
};
|
|
2668
2684
|
}
|
|
2669
|
-
|
|
2685
|
+
ee.prototype[t] = n(), ee.prototype[t + "Form"] = n(!0);
|
|
2670
2686
|
});
|
|
2671
2687
|
let Po = class tn {
|
|
2672
2688
|
constructor(t) {
|
|
@@ -2692,7 +2708,7 @@ let Po = class tn {
|
|
|
2692
2708
|
s.unsubscribe(o);
|
|
2693
2709
|
}, a;
|
|
2694
2710
|
}, t(function(o, a, i) {
|
|
2695
|
-
s.reason || (s.reason = new
|
|
2711
|
+
s.reason || (s.reason = new ce(o, a, i), n(s.reason));
|
|
2696
2712
|
});
|
|
2697
2713
|
}
|
|
2698
2714
|
/**
|
|
@@ -2824,31 +2840,31 @@ Object.entries(We).forEach(([e, t]) => {
|
|
|
2824
2840
|
We[t] = e;
|
|
2825
2841
|
});
|
|
2826
2842
|
function nn(e) {
|
|
2827
|
-
const t = new
|
|
2828
|
-
return d.extend(n,
|
|
2829
|
-
return nn(
|
|
2843
|
+
const t = new ee(e), n = Ht(ee.prototype.request, t);
|
|
2844
|
+
return d.extend(n, ee.prototype, t, { allOwnKeys: !0 }), d.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(r) {
|
|
2845
|
+
return nn(te(e, r));
|
|
2830
2846
|
}, n;
|
|
2831
2847
|
}
|
|
2832
|
-
const
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2848
|
+
const k = nn(be);
|
|
2849
|
+
k.Axios = ee;
|
|
2850
|
+
k.CanceledError = ce;
|
|
2851
|
+
k.CancelToken = Po;
|
|
2852
|
+
k.isCancel = Gt;
|
|
2853
|
+
k.VERSION = en;
|
|
2854
|
+
k.toFormData = Be;
|
|
2855
|
+
k.AxiosError = S;
|
|
2856
|
+
k.Cancel = k.CanceledError;
|
|
2857
|
+
k.all = function(t) {
|
|
2842
2858
|
return Promise.all(t);
|
|
2843
2859
|
};
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2860
|
+
k.spread = Mo;
|
|
2861
|
+
k.isAxiosError = Uo;
|
|
2862
|
+
k.mergeConfig = te;
|
|
2863
|
+
k.AxiosHeaders = N;
|
|
2864
|
+
k.formToJSON = (e) => Wt(d.isHTMLForm(e) ? new FormData(e) : e);
|
|
2865
|
+
k.getAdapter = Qt.getAdapter;
|
|
2866
|
+
k.HttpStatusCode = We;
|
|
2867
|
+
k.default = k;
|
|
2852
2868
|
const {
|
|
2853
2869
|
Axios: ui,
|
|
2854
2870
|
AxiosError: di,
|
|
@@ -2866,7 +2882,7 @@ const {
|
|
|
2866
2882
|
formToJSON: vi,
|
|
2867
2883
|
getAdapter: _i,
|
|
2868
2884
|
mergeConfig: ki
|
|
2869
|
-
} =
|
|
2885
|
+
} = k, jo = (e) => {
|
|
2870
2886
|
const t = document.cookie.match(new RegExp(`(^| )${e}=([^;]+)`));
|
|
2871
2887
|
return t ? t[2] : null;
|
|
2872
2888
|
}, Do = (e, t, n = {}) => {
|
|
@@ -2887,8 +2903,8 @@ const {
|
|
|
2887
2903
|
}, sn = () => {
|
|
2888
2904
|
const e = window.location.hostname;
|
|
2889
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;
|
|
2890
|
-
}, Ie = "bolt-next-token", K =
|
|
2891
|
-
const e =
|
|
2906
|
+
}, Ie = "bolt-next-token", K = me("auth", () => {
|
|
2907
|
+
const e = ne({
|
|
2892
2908
|
user: null,
|
|
2893
2909
|
token: null,
|
|
2894
2910
|
ready: !1,
|
|
@@ -2920,18 +2936,18 @@ const {
|
|
|
2920
2936
|
onLogoutSuccess: null,
|
|
2921
2937
|
onLogoutError: null
|
|
2922
2938
|
}
|
|
2923
|
-
}), t = (
|
|
2924
|
-
|
|
2925
|
-
}, n = (
|
|
2926
|
-
Do(Ie,
|
|
2939
|
+
}), t = (c = {}) => {
|
|
2940
|
+
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
|
+
}, n = (c) => {
|
|
2942
|
+
Do(Ie, c), e.token = c;
|
|
2927
2943
|
}, s = () => {
|
|
2928
2944
|
Io(Ie), e.token = null;
|
|
2929
|
-
}, r = () => jo(Ie), o = async (
|
|
2930
|
-
const
|
|
2931
|
-
return n(
|
|
2945
|
+
}, r = () => jo(Ie), o = async (c) => {
|
|
2946
|
+
const u = await k.post(e.endpoints.login, c), m = u.headers.authorization;
|
|
2947
|
+
return n(m), e.user = u.data, e.callbacks.onLoginSuccess && await e.callbacks.onLoginSuccess(u.data), u.data;
|
|
2932
2948
|
}, a = async () => {
|
|
2933
2949
|
try {
|
|
2934
|
-
await
|
|
2950
|
+
await k.post(
|
|
2935
2951
|
e.endpoints.logout,
|
|
2936
2952
|
{},
|
|
2937
2953
|
{
|
|
@@ -2940,22 +2956,22 @@ const {
|
|
|
2940
2956
|
}
|
|
2941
2957
|
}
|
|
2942
2958
|
), e.callbacks.onLogoutSuccess && await e.callbacks.onLogoutSuccess();
|
|
2943
|
-
} catch (
|
|
2944
|
-
throw e.callbacks.onLogoutError && await e.callbacks.onLogoutError(
|
|
2959
|
+
} catch (c) {
|
|
2960
|
+
throw e.callbacks.onLogoutError && await e.callbacks.onLogoutError(c), c;
|
|
2945
2961
|
} finally {
|
|
2946
2962
|
s(), e.user = null;
|
|
2947
2963
|
}
|
|
2948
2964
|
}, i = async () => {
|
|
2949
|
-
const
|
|
2950
|
-
if (!
|
|
2965
|
+
const c = e.overrideToken || r();
|
|
2966
|
+
if (!c)
|
|
2951
2967
|
return e.ready = !0, null;
|
|
2952
2968
|
try {
|
|
2953
|
-
const { data:
|
|
2969
|
+
const { data: u } = await k.get(e.endpoints.fetch, {
|
|
2954
2970
|
headers: {
|
|
2955
|
-
Authorization: `Bearer ${
|
|
2971
|
+
Authorization: `Bearer ${c}`
|
|
2956
2972
|
}
|
|
2957
2973
|
});
|
|
2958
|
-
e.user =
|
|
2974
|
+
e.user = u, e.overrideToken || (e.token = c);
|
|
2959
2975
|
} catch {
|
|
2960
2976
|
e.overrideToken || s();
|
|
2961
2977
|
} finally {
|
|
@@ -3000,35 +3016,35 @@ const {
|
|
|
3000
3016
|
}
|
|
3001
3017
|
},
|
|
3002
3018
|
setup(e) {
|
|
3003
|
-
const t =
|
|
3019
|
+
const t = se(), n = Le(), s = Lt(), r = K(), o = e, a = q(!1), i = q(""), l = async (c) => {
|
|
3004
3020
|
a.value = !0, i.value = "";
|
|
3005
3021
|
try {
|
|
3006
|
-
await r.login(
|
|
3007
|
-
const
|
|
3008
|
-
if (
|
|
3009
|
-
if (
|
|
3010
|
-
window.location.href =
|
|
3022
|
+
await r.login(c);
|
|
3023
|
+
const u = n.query.redirect;
|
|
3024
|
+
if (u) {
|
|
3025
|
+
if (u.startsWith("http")) {
|
|
3026
|
+
window.location.href = u;
|
|
3011
3027
|
return;
|
|
3012
3028
|
}
|
|
3013
|
-
await t.push(
|
|
3029
|
+
await t.push(u);
|
|
3014
3030
|
} else
|
|
3015
3031
|
await t.push(o.defaultRedirect);
|
|
3016
|
-
} catch (
|
|
3017
|
-
i.value =
|
|
3032
|
+
} catch (u) {
|
|
3033
|
+
i.value = u.response?.data?.message || u.message || "Login failed. Please try again.";
|
|
3018
3034
|
} finally {
|
|
3019
3035
|
a.value = !1;
|
|
3020
3036
|
}
|
|
3021
3037
|
};
|
|
3022
|
-
return (
|
|
3023
|
-
const
|
|
3024
|
-
return
|
|
3038
|
+
return (c, u) => {
|
|
3039
|
+
const m = U("FormKit"), w = U("router-link");
|
|
3040
|
+
return g(), y("div", zo, [
|
|
3025
3041
|
f("div", qo, [
|
|
3026
|
-
o.logo ? (
|
|
3042
|
+
o.logo ? (g(), y("img", {
|
|
3027
3043
|
key: 0,
|
|
3028
3044
|
src: o.logo,
|
|
3029
3045
|
alt: "Logo",
|
|
3030
3046
|
class: "h-[23px] w-auto"
|
|
3031
|
-
}, null, 8, Zo)) : (
|
|
3047
|
+
}, null, 8, Zo)) : (g(), y("svg", Wo, [...u[0] || (u[0] = [
|
|
3032
3048
|
f("path", {
|
|
3033
3049
|
d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
|
|
3034
3050
|
fill: "#1C64F2"
|
|
@@ -3049,54 +3065,54 @@ const {
|
|
|
3049
3065
|
]),
|
|
3050
3066
|
f("div", Go, [
|
|
3051
3067
|
f("div", Jo, [
|
|
3052
|
-
|
|
3053
|
-
f("p", Ko, " Welcome back" +
|
|
3068
|
+
u[1] || (u[1] = f("h1", { class: "text-4xl text-gray-900 semibold tracking-tight mb-3" }, "Log in", -1)),
|
|
3069
|
+
f("p", Ko, " Welcome back" + L(x(s).state.app ? ` to ${x(s).state.app}` : "") + "! Please enter your details. ", 1)
|
|
3054
3070
|
]),
|
|
3055
|
-
C(
|
|
3071
|
+
C(m, {
|
|
3056
3072
|
type: "form",
|
|
3057
3073
|
onSubmit: l,
|
|
3058
3074
|
actions: !1
|
|
3059
3075
|
}, {
|
|
3060
|
-
default:
|
|
3061
|
-
C(
|
|
3076
|
+
default: $(() => [
|
|
3077
|
+
C(m, {
|
|
3062
3078
|
label: "Email",
|
|
3063
3079
|
name: "email",
|
|
3064
3080
|
placeholder: "Enter your email",
|
|
3065
3081
|
type: "email",
|
|
3066
3082
|
validation: "required|email",
|
|
3067
3083
|
"outer-class": "max-w-full",
|
|
3068
|
-
value:
|
|
3084
|
+
value: x(r).state.devCredentials.username
|
|
3069
3085
|
}, null, 8, ["value"]),
|
|
3070
|
-
C(
|
|
3086
|
+
C(m, {
|
|
3071
3087
|
label: "Password",
|
|
3072
3088
|
name: "password",
|
|
3073
3089
|
placeholder: "••••••••",
|
|
3074
3090
|
type: "password",
|
|
3075
3091
|
validation: "required",
|
|
3076
3092
|
"outer-class": "max-w-full",
|
|
3077
|
-
value:
|
|
3093
|
+
value: x(r).state.devCredentials.password
|
|
3078
3094
|
}, null, 8, ["value"]),
|
|
3079
3095
|
f("div", Xo, [
|
|
3080
|
-
|
|
3081
|
-
C(
|
|
3096
|
+
u[3] || (u[3] = f("span", null, null, -1)),
|
|
3097
|
+
C(w, {
|
|
3082
3098
|
to: o.forgotPasswordRoute,
|
|
3083
3099
|
class: "text-sm text-primary-600 font-semibold"
|
|
3084
3100
|
}, {
|
|
3085
|
-
default:
|
|
3101
|
+
default: $(() => [...u[2] || (u[2] = [
|
|
3086
3102
|
J(" Forgot password ", -1)
|
|
3087
3103
|
])]),
|
|
3088
3104
|
_: 1
|
|
3089
3105
|
}, 8, ["to"])
|
|
3090
3106
|
]),
|
|
3091
|
-
i.value ? (
|
|
3092
|
-
C(
|
|
3107
|
+
i.value ? (g(), y("div", Yo, L(i.value), 1)) : R("", !0),
|
|
3108
|
+
C(x(re), {
|
|
3093
3109
|
type: "submit",
|
|
3094
3110
|
size: "xl",
|
|
3095
3111
|
disabled: a.value,
|
|
3096
3112
|
"button-class": "w-full mb-2"
|
|
3097
3113
|
}, {
|
|
3098
|
-
default:
|
|
3099
|
-
a.value ? (
|
|
3114
|
+
default: $(() => [
|
|
3115
|
+
a.value ? (g(), y("span", ea, "Signing in...")) : (g(), y("span", Qo, "Sign in"))
|
|
3100
3116
|
]),
|
|
3101
3117
|
_: 1
|
|
3102
3118
|
}, 8, ["disabled"])
|
|
@@ -3116,7 +3132,7 @@ const {
|
|
|
3116
3132
|
}
|
|
3117
3133
|
},
|
|
3118
3134
|
setup(e) {
|
|
3119
|
-
const t =
|
|
3135
|
+
const t = se(), n = Le(), s = K(), r = e;
|
|
3120
3136
|
return cn(async () => {
|
|
3121
3137
|
await s.logout();
|
|
3122
3138
|
const o = n.query.redirect;
|
|
@@ -3152,7 +3168,7 @@ const {
|
|
|
3152
3168
|
const t = K(), n = e, s = q(!1), r = q(""), o = q(""), a = async ({ email: i }) => {
|
|
3153
3169
|
s.value = !0, r.value = "", o.value = "";
|
|
3154
3170
|
try {
|
|
3155
|
-
await
|
|
3171
|
+
await k.post(t.state.endpoints.passwordEmail, { email: i }), o.value = "Password reset link sent! Check your email.";
|
|
3156
3172
|
} catch (l) {
|
|
3157
3173
|
r.value = l.response?.data?.message || "Failed to send reset link.";
|
|
3158
3174
|
} finally {
|
|
@@ -3160,15 +3176,15 @@ const {
|
|
|
3160
3176
|
}
|
|
3161
3177
|
};
|
|
3162
3178
|
return (i, l) => {
|
|
3163
|
-
const
|
|
3164
|
-
return
|
|
3179
|
+
const c = U("FormKit"), u = U("router-link");
|
|
3180
|
+
return g(), y("div", sa, [
|
|
3165
3181
|
f("div", ra, [
|
|
3166
|
-
n.logo ? (
|
|
3182
|
+
n.logo ? (g(), y("img", {
|
|
3167
3183
|
key: 0,
|
|
3168
3184
|
src: n.logo,
|
|
3169
3185
|
alt: "Logo",
|
|
3170
3186
|
class: "h-[23px] w-auto"
|
|
3171
|
-
}, null, 8, oa)) : (
|
|
3187
|
+
}, null, 8, oa)) : (g(), y("svg", aa, [...l[0] || (l[0] = [
|
|
3172
3188
|
f("path", {
|
|
3173
3189
|
d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
|
|
3174
3190
|
fill: "#1C64F2"
|
|
@@ -3192,13 +3208,13 @@ const {
|
|
|
3192
3208
|
f("h1", { class: "text-4xl text-gray-900 semibold tracking-tight mb-3" }, "Reset password"),
|
|
3193
3209
|
f("p", { class: "text-gray-600" }, " Enter your email and we'll send you a link to reset your password. ")
|
|
3194
3210
|
], -1)),
|
|
3195
|
-
C(
|
|
3211
|
+
C(c, {
|
|
3196
3212
|
type: "form",
|
|
3197
3213
|
onSubmit: a,
|
|
3198
3214
|
actions: !1
|
|
3199
3215
|
}, {
|
|
3200
|
-
default:
|
|
3201
|
-
C(
|
|
3216
|
+
default: $(() => [
|
|
3217
|
+
C(c, {
|
|
3202
3218
|
label: "Email",
|
|
3203
3219
|
name: "email",
|
|
3204
3220
|
placeholder: "Enter your email",
|
|
@@ -3206,24 +3222,24 @@ const {
|
|
|
3206
3222
|
validation: "required|email",
|
|
3207
3223
|
"outer-class": "max-w-full"
|
|
3208
3224
|
}),
|
|
3209
|
-
r.value ? (
|
|
3210
|
-
o.value ? (
|
|
3211
|
-
C(
|
|
3225
|
+
r.value ? (g(), y("div", la, L(r.value), 1)) : R("", !0),
|
|
3226
|
+
o.value ? (g(), y("div", ca, L(o.value), 1)) : R("", !0),
|
|
3227
|
+
C(x(re), {
|
|
3212
3228
|
type: "submit",
|
|
3213
3229
|
size: "xl",
|
|
3214
3230
|
disabled: s.value,
|
|
3215
3231
|
"button-class": "w-full mb-2"
|
|
3216
3232
|
}, {
|
|
3217
|
-
default:
|
|
3218
|
-
s.value ? (
|
|
3233
|
+
default: $(() => [
|
|
3234
|
+
s.value ? (g(), y("span", da, "Sending...")) : (g(), y("span", ua, "Send reset link"))
|
|
3219
3235
|
]),
|
|
3220
3236
|
_: 1
|
|
3221
3237
|
}, 8, ["disabled"]),
|
|
3222
|
-
C(
|
|
3238
|
+
C(u, {
|
|
3223
3239
|
to: n.loginRoute,
|
|
3224
3240
|
class: "text-sm text-center text-primary-600 font-semibold block"
|
|
3225
3241
|
}, {
|
|
3226
|
-
default:
|
|
3242
|
+
default: $(() => [...l[1] || (l[1] = [
|
|
3227
3243
|
J(" Back to login ", -1)
|
|
3228
3244
|
])]),
|
|
3229
3245
|
_: 1
|
|
@@ -3258,31 +3274,31 @@ const {
|
|
|
3258
3274
|
}
|
|
3259
3275
|
},
|
|
3260
3276
|
setup(e) {
|
|
3261
|
-
const t =
|
|
3277
|
+
const t = se(), n = Le(), s = K(), r = e, o = q(!1), a = q(""), i = async ({ password: l, password_confirmation: c }) => {
|
|
3262
3278
|
o.value = !0, a.value = "";
|
|
3263
3279
|
try {
|
|
3264
|
-
await
|
|
3280
|
+
await k.post(s.state.endpoints.passwordReset, {
|
|
3265
3281
|
email: n.query.email,
|
|
3266
3282
|
token: n.query.token,
|
|
3267
3283
|
password: l,
|
|
3268
|
-
password_confirmation:
|
|
3284
|
+
password_confirmation: c
|
|
3269
3285
|
}), await t.push(r.loginRoute);
|
|
3270
|
-
} catch (
|
|
3271
|
-
a.value =
|
|
3286
|
+
} catch (u) {
|
|
3287
|
+
a.value = u.response?.data?.message || "Failed to reset password.";
|
|
3272
3288
|
} finally {
|
|
3273
3289
|
o.value = !1;
|
|
3274
3290
|
}
|
|
3275
3291
|
};
|
|
3276
|
-
return (l,
|
|
3277
|
-
const
|
|
3278
|
-
return
|
|
3292
|
+
return (l, c) => {
|
|
3293
|
+
const u = U("FormKit");
|
|
3294
|
+
return g(), y("div", pa, [
|
|
3279
3295
|
f("div", ha, [
|
|
3280
|
-
r.logo ? (
|
|
3296
|
+
r.logo ? (g(), y("img", {
|
|
3281
3297
|
key: 0,
|
|
3282
3298
|
src: r.logo,
|
|
3283
3299
|
alt: "Logo",
|
|
3284
3300
|
class: "h-[23px] w-auto"
|
|
3285
|
-
}, null, 8, ma)) : (
|
|
3301
|
+
}, null, 8, ma)) : (g(), y("svg", ga, [...c[0] || (c[0] = [
|
|
3286
3302
|
f("path", {
|
|
3287
3303
|
d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
|
|
3288
3304
|
fill: "#1C64F2"
|
|
@@ -3302,17 +3318,17 @@ const {
|
|
|
3302
3318
|
])]))
|
|
3303
3319
|
]),
|
|
3304
3320
|
f("div", ya, [
|
|
3305
|
-
|
|
3321
|
+
c[1] || (c[1] = f("div", { class: "mb-7" }, [
|
|
3306
3322
|
f("h1", { class: "text-4xl text-gray-900 semibold tracking-tight mb-3" }, "Set new password"),
|
|
3307
3323
|
f("p", { class: "text-gray-600" }, " Enter your new password below. ")
|
|
3308
3324
|
], -1)),
|
|
3309
|
-
C(
|
|
3325
|
+
C(u, {
|
|
3310
3326
|
type: "form",
|
|
3311
3327
|
onSubmit: i,
|
|
3312
3328
|
actions: !1
|
|
3313
3329
|
}, {
|
|
3314
|
-
default:
|
|
3315
|
-
C(
|
|
3330
|
+
default: $(() => [
|
|
3331
|
+
C(u, {
|
|
3316
3332
|
label: "New Password",
|
|
3317
3333
|
name: "password",
|
|
3318
3334
|
placeholder: "••••••••",
|
|
@@ -3320,7 +3336,7 @@ const {
|
|
|
3320
3336
|
validation: "required|length:8",
|
|
3321
3337
|
"outer-class": "max-w-full"
|
|
3322
3338
|
}),
|
|
3323
|
-
C(
|
|
3339
|
+
C(u, {
|
|
3324
3340
|
label: "Confirm Password",
|
|
3325
3341
|
name: "password_confirmation",
|
|
3326
3342
|
placeholder: "••••••••",
|
|
@@ -3328,15 +3344,15 @@ const {
|
|
|
3328
3344
|
validation: "required|confirm:password",
|
|
3329
3345
|
"outer-class": "max-w-full"
|
|
3330
3346
|
}),
|
|
3331
|
-
a.value ? (
|
|
3332
|
-
C(
|
|
3347
|
+
a.value ? (g(), y("div", wa, L(a.value), 1)) : R("", !0),
|
|
3348
|
+
C(x(re), {
|
|
3333
3349
|
type: "submit",
|
|
3334
3350
|
size: "xl",
|
|
3335
3351
|
disabled: o.value,
|
|
3336
3352
|
"button-class": "w-full mb-2"
|
|
3337
3353
|
}, {
|
|
3338
|
-
default:
|
|
3339
|
-
o.value ? (
|
|
3354
|
+
default: $(() => [
|
|
3355
|
+
o.value ? (g(), y("span", xa, "Resetting...")) : (g(), y("span", ba, "Reset password"))
|
|
3340
3356
|
]),
|
|
3341
3357
|
_: 1
|
|
3342
3358
|
}, 8, ["disabled"])
|
|
@@ -3367,17 +3383,17 @@ const {
|
|
|
3367
3383
|
}
|
|
3368
3384
|
},
|
|
3369
3385
|
setup(e) {
|
|
3370
|
-
const t =
|
|
3386
|
+
const t = se(), n = e, s = () => {
|
|
3371
3387
|
t.push(n.homeRoute);
|
|
3372
3388
|
};
|
|
3373
|
-
return (r, o) => (
|
|
3389
|
+
return (r, o) => (g(), y("div", Ca, [
|
|
3374
3390
|
f("div", va, [
|
|
3375
|
-
n.logo ? (
|
|
3391
|
+
n.logo ? (g(), y("img", {
|
|
3376
3392
|
key: 0,
|
|
3377
3393
|
src: n.logo,
|
|
3378
3394
|
alt: "Logo",
|
|
3379
3395
|
class: "h-[23px] w-auto"
|
|
3380
|
-
}, null, 8, _a)) : (
|
|
3396
|
+
}, null, 8, _a)) : (g(), y("svg", ka, [...o[0] || (o[0] = [
|
|
3381
3397
|
f("path", {
|
|
3382
3398
|
d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
|
|
3383
3399
|
fill: "#1C64F2"
|
|
@@ -3407,11 +3423,11 @@ const {
|
|
|
3407
3423
|
])
|
|
3408
3424
|
], -1)),
|
|
3409
3425
|
f("div", Ea, [
|
|
3410
|
-
C(
|
|
3426
|
+
C(x(re), {
|
|
3411
3427
|
onClick: s,
|
|
3412
3428
|
size: "lg"
|
|
3413
3429
|
}, {
|
|
3414
|
-
default:
|
|
3430
|
+
default: $(() => [...o[1] || (o[1] = [
|
|
3415
3431
|
J(" Go to Home ", -1)
|
|
3416
3432
|
])]),
|
|
3417
3433
|
_: 1
|
|
@@ -3420,7 +3436,7 @@ const {
|
|
|
3420
3436
|
])
|
|
3421
3437
|
]));
|
|
3422
3438
|
}
|
|
3423
|
-
}, Aa = { class: "h-full grid place-content-center relative" },
|
|
3439
|
+
}, Aa = { class: "h-full grid place-content-center relative" }, Oa = { class: "absolute top-8 left-8" }, La = ["src"], Ta = {
|
|
3424
3440
|
key: 1,
|
|
3425
3441
|
width: "59",
|
|
3426
3442
|
height: "23",
|
|
@@ -3440,17 +3456,17 @@ const {
|
|
|
3440
3456
|
}
|
|
3441
3457
|
},
|
|
3442
3458
|
setup(e) {
|
|
3443
|
-
const t =
|
|
3459
|
+
const t = se(), n = e, s = () => {
|
|
3444
3460
|
t.push(n.homeRoute);
|
|
3445
3461
|
};
|
|
3446
|
-
return (r, o) => (
|
|
3447
|
-
f("div",
|
|
3448
|
-
n.logo ? (
|
|
3462
|
+
return (r, o) => (g(), y("div", Aa, [
|
|
3463
|
+
f("div", Oa, [
|
|
3464
|
+
n.logo ? (g(), y("img", {
|
|
3449
3465
|
key: 0,
|
|
3450
3466
|
src: n.logo,
|
|
3451
3467
|
alt: "Logo",
|
|
3452
3468
|
class: "h-[23px] w-auto"
|
|
3453
|
-
}, null, 8,
|
|
3469
|
+
}, null, 8, La)) : (g(), y("svg", Ta, [...o[0] || (o[0] = [
|
|
3454
3470
|
f("path", {
|
|
3455
3471
|
d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
|
|
3456
3472
|
fill: "#1C64F2"
|
|
@@ -3476,11 +3492,11 @@ const {
|
|
|
3476
3492
|
f("p", { class: "text-gray-600" }, " The page you're looking for doesn't exist or has been moved. ")
|
|
3477
3493
|
], -1)),
|
|
3478
3494
|
f("div", Fa, [
|
|
3479
|
-
C(
|
|
3495
|
+
C(x(re), {
|
|
3480
3496
|
onClick: s,
|
|
3481
3497
|
size: "lg"
|
|
3482
3498
|
}, {
|
|
3483
|
-
default:
|
|
3499
|
+
default: $(() => [...o[1] || (o[1] = [
|
|
3484
3500
|
J(" Go to Home ", -1)
|
|
3485
3501
|
])]),
|
|
3486
3502
|
_: 1
|
|
@@ -3521,17 +3537,17 @@ const {
|
|
|
3521
3537
|
}
|
|
3522
3538
|
},
|
|
3523
3539
|
setup(e) {
|
|
3524
|
-
const t =
|
|
3540
|
+
const t = se(), n = e, s = () => {
|
|
3525
3541
|
t.push(n.homeRoute);
|
|
3526
3542
|
};
|
|
3527
|
-
return (r, o) => (
|
|
3543
|
+
return (r, o) => (g(), y("div", Va, [
|
|
3528
3544
|
f("div", Na, [
|
|
3529
|
-
n.logo ? (
|
|
3545
|
+
n.logo ? (g(), y("img", {
|
|
3530
3546
|
key: 0,
|
|
3531
3547
|
src: n.logo,
|
|
3532
3548
|
alt: "Logo",
|
|
3533
3549
|
class: "h-[23px] w-auto"
|
|
3534
|
-
}, null, 8, Pa)) : (
|
|
3550
|
+
}, null, 8, Pa)) : (g(), y("svg", Ma, [...o[0] || (o[0] = [
|
|
3535
3551
|
f("path", {
|
|
3536
3552
|
d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
|
|
3537
3553
|
fill: "#1C64F2"
|
|
@@ -3552,16 +3568,16 @@ const {
|
|
|
3552
3568
|
]),
|
|
3553
3569
|
f("div", Ua, [
|
|
3554
3570
|
f("div", null, [
|
|
3555
|
-
f("div", ja,
|
|
3556
|
-
f("h1", Da,
|
|
3557
|
-
f("p", Ia,
|
|
3571
|
+
f("div", ja, L(n.errorCode || "Error"), 1),
|
|
3572
|
+
f("h1", Da, L(n.title || "Something went wrong"), 1),
|
|
3573
|
+
f("p", Ia, L(n.message || "An unexpected error occurred. Please try again later."), 1)
|
|
3558
3574
|
]),
|
|
3559
3575
|
f("div", za, [
|
|
3560
|
-
C(
|
|
3576
|
+
C(x(re), {
|
|
3561
3577
|
onClick: s,
|
|
3562
3578
|
size: "lg"
|
|
3563
3579
|
}, {
|
|
3564
|
-
default:
|
|
3580
|
+
default: $(() => [...o[1] || (o[1] = [
|
|
3565
3581
|
J(" Go to Home ", -1)
|
|
3566
3582
|
])]),
|
|
3567
3583
|
_: 1
|
|
@@ -3670,7 +3686,7 @@ function Ai(e = {}) {
|
|
|
3670
3686
|
meta: { auth: !1 }
|
|
3671
3687
|
};
|
|
3672
3688
|
}
|
|
3673
|
-
function
|
|
3689
|
+
function Oi(e = {}) {
|
|
3674
3690
|
const {
|
|
3675
3691
|
logo: t = "",
|
|
3676
3692
|
homeRoute: n = "/dashboard"
|
|
@@ -3684,7 +3700,7 @@ function Li(e = {}) {
|
|
|
3684
3700
|
};
|
|
3685
3701
|
}
|
|
3686
3702
|
function Za(e = {}) {
|
|
3687
|
-
const t =
|
|
3703
|
+
const t = k.create({
|
|
3688
3704
|
baseURL: e.baseURL || "",
|
|
3689
3705
|
timeout: e.timeout || 3e4,
|
|
3690
3706
|
headers: {
|
|
@@ -3723,48 +3739,48 @@ function Za(e = {}) {
|
|
|
3723
3739
|
}
|
|
3724
3740
|
), t;
|
|
3725
3741
|
}
|
|
3726
|
-
function
|
|
3742
|
+
function Li(e, t = {}) {
|
|
3727
3743
|
const n = Za(t);
|
|
3728
3744
|
return e.provide("axios", n), e.config.globalProperties.$axios = n, n;
|
|
3729
3745
|
}
|
|
3730
|
-
const Ti =
|
|
3731
|
-
const e =
|
|
3746
|
+
const Ti = me("sparkNav", () => {
|
|
3747
|
+
const e = ne({
|
|
3732
3748
|
menu: [],
|
|
3733
3749
|
collapsed: !1,
|
|
3734
3750
|
hidden: !1
|
|
3735
|
-
}), t =
|
|
3736
|
-
e.menu =
|
|
3737
|
-
}, r = (
|
|
3738
|
-
for (const
|
|
3739
|
-
if (
|
|
3740
|
-
if (
|
|
3741
|
-
const
|
|
3742
|
-
if (
|
|
3751
|
+
}), t = se(), n = Le(), s = (c = []) => {
|
|
3752
|
+
e.menu = c;
|
|
3753
|
+
}, r = (c, u) => {
|
|
3754
|
+
for (const m of c) {
|
|
3755
|
+
if (m.href === u) return m;
|
|
3756
|
+
if (m.children) {
|
|
3757
|
+
const w = r(m.children, u);
|
|
3758
|
+
if (w) return w;
|
|
3743
3759
|
}
|
|
3744
3760
|
}
|
|
3745
3761
|
return null;
|
|
3746
|
-
}, o = async (
|
|
3747
|
-
if (
|
|
3748
|
-
const
|
|
3749
|
-
if (
|
|
3750
|
-
|
|
3762
|
+
}, o = async (c) => {
|
|
3763
|
+
if (c) {
|
|
3764
|
+
const u = r(e.menu, c);
|
|
3765
|
+
if (u && typeof u.action == "function") {
|
|
3766
|
+
u.action();
|
|
3751
3767
|
return;
|
|
3752
3768
|
}
|
|
3753
|
-
await t.push(
|
|
3769
|
+
await t.push(c);
|
|
3754
3770
|
}
|
|
3755
3771
|
}, a = () => {
|
|
3756
3772
|
e.collapsed = !e.collapsed;
|
|
3757
3773
|
}, i = () => {
|
|
3758
3774
|
e.hidden = !e.hidden;
|
|
3759
3775
|
}, l = () => {
|
|
3760
|
-
const
|
|
3761
|
-
if (
|
|
3762
|
-
const
|
|
3763
|
-
|
|
3764
|
-
|
|
3776
|
+
const c = n.name || n.path.replace("/", "");
|
|
3777
|
+
if (c) {
|
|
3778
|
+
const u = (m) => {
|
|
3779
|
+
m.forEach((w) => {
|
|
3780
|
+
w.current = w.href === c, w.children && u(w.children);
|
|
3765
3781
|
});
|
|
3766
3782
|
};
|
|
3767
|
-
|
|
3783
|
+
u(e.menu);
|
|
3768
3784
|
}
|
|
3769
3785
|
};
|
|
3770
3786
|
return un(
|
|
@@ -3787,7 +3803,7 @@ export {
|
|
|
3787
3803
|
ni as SparkAlert,
|
|
3788
3804
|
ps as SparkAppSelector,
|
|
3789
3805
|
As as SparkBrandSelector,
|
|
3790
|
-
|
|
3806
|
+
re as SparkButton,
|
|
3791
3807
|
si as SparkButtonGroup,
|
|
3792
3808
|
ri as SparkCard,
|
|
3793
3809
|
ai as SparkDefaultContainer,
|
|
@@ -3804,16 +3820,16 @@ export {
|
|
|
3804
3820
|
Sa as SparkResetPasswordView,
|
|
3805
3821
|
ei as addIcons,
|
|
3806
3822
|
Ai as create403Route,
|
|
3807
|
-
|
|
3823
|
+
Oi as create404Route,
|
|
3808
3824
|
Ei as createAuthRoutes,
|
|
3809
3825
|
Za as createAxiosInstance,
|
|
3810
3826
|
$i as setupAuthGuards,
|
|
3811
|
-
|
|
3827
|
+
Li as setupAxios,
|
|
3812
3828
|
ti as setupFontAwesome,
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3829
|
+
fe as sparkModalService,
|
|
3830
|
+
ve as sparkOverlayService,
|
|
3831
|
+
Ot as useSparkAppSelectorStore,
|
|
3832
|
+
Lt as useSparkAppStore,
|
|
3817
3833
|
K as useSparkAuthStore,
|
|
3818
3834
|
Tt as useSparkBrandFilterStore,
|
|
3819
3835
|
Ti as useSparkNavStore,
|