@wishbone-media/spark 0.14.0 → 0.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +158 -154
- package/package.json +1 -1
- package/src/containers/SparkDefaultContainer.vue +6 -1
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { computed as $, resolveComponent as U, createElementBlock as y, openBlock as g, normalizeClass as E, createElementVNode as f, createVNode as C, unref as x, renderSlot as M, reactive as ne, Fragment as
|
|
1
|
+
import { computed as $, resolveComponent as U, createElementBlock as y, openBlock as g, normalizeClass as E, createElementVNode as f, createVNode as C, unref as x, renderSlot as M, reactive as ne, Fragment as le, renderList as ge, createCommentVNode as R, toDisplayString as O, createBlock as W, resolveDynamicComponent as $e, ref as q, inject as ln, provide as cn, markRaw as _t, withCtx as A, mergeProps as kt, toHandlers as Rt, createTextVNode as K, useSlots as un, withModifiers as pe, h as ot, onMounted as dn, watch as fn } from "vue";
|
|
2
2
|
import { library as Et } from "@fortawesome/fontawesome-svg-core";
|
|
3
3
|
import { FontAwesomeIcon as pn } from "@fortawesome/vue-fontawesome";
|
|
4
|
-
import { faSignOut as hn, faXmark as mn, faTimes as gn, faStreetView as yn, faSortUp as wn, faSortDown as bn, faSort as xn, faScaleBalanced as Sn, faSatelliteDish as Cn, faLayerPlus as vn, faLaptopMobile as _n, faInfoCircle as kn, faGripDotsVertical as Rn, faGearComplex as En, faFlag as An, faFaceSmileWink as $n, faFaceSmileRelaxed as
|
|
5
|
-
import { defineStore as
|
|
6
|
-
import { TransitionRoot as At, Dialog as $t, TransitionChild as
|
|
4
|
+
import { faSignOut as hn, faXmark as mn, faTimes as gn, faStreetView as yn, faSortUp as wn, faSortDown as bn, faSort as xn, faScaleBalanced as Sn, faSatelliteDish as Cn, faLayerPlus as vn, faLaptopMobile as _n, faInfoCircle as kn, faGripDotsVertical as Rn, faGearComplex as En, faFlag as An, faFaceSmileWink as $n, faFaceSmileRelaxed as Ln, faExclamationTriangle as On, faEllipsisVertical as Tn, faEllipsis as Hn, faEdit as Fn, faComments as Bn, faCircleXmark as Vn, faCircleUser as Nn, faChevronUp as Pn, faChevronRight as Mn, faChevronLeft as Un, faChevronDown as jn, faCheckCircle as Dn, faCheck as In, faBullhorn as zn, faBellRing as qn, faBarsSort as Zn, faArrowRightToLine as Wn, faArrowLeftToLine as Gn } from "@fortawesome/pro-regular-svg-icons";
|
|
5
|
+
import { defineStore as ye } from "pinia";
|
|
6
|
+
import { TransitionRoot as At, Dialog as $t, TransitionChild as Le, DialogPanel as Lt } from "@headlessui/vue";
|
|
7
7
|
import { useRouter as se, useRoute as Te } from "vue-router";
|
|
8
8
|
const B = {
|
|
9
9
|
farArrowLeftToLine: Gn,
|
|
@@ -23,8 +23,8 @@ const B = {
|
|
|
23
23
|
farEdit: Fn,
|
|
24
24
|
farEllipsis: Hn,
|
|
25
25
|
farEllipsisVertical: Tn,
|
|
26
|
-
farExclamationTriangle:
|
|
27
|
-
farFaceSmileRelaxed:
|
|
26
|
+
farExclamationTriangle: On,
|
|
27
|
+
farFaceSmileRelaxed: Ln,
|
|
28
28
|
farFaceSmileWink: $n,
|
|
29
29
|
farFlag: An,
|
|
30
30
|
farGearComplex: En,
|
|
@@ -155,7 +155,7 @@ const Jn = { class: "flex items-center" }, Kn = { class: "shrink-0 self-start" }
|
|
|
155
155
|
href: "https://tabula.letsbolt.io",
|
|
156
156
|
icon: "farCompass"
|
|
157
157
|
}
|
|
158
|
-
],
|
|
158
|
+
], Ot = ye("sparkAppSelector", () => {
|
|
159
159
|
const e = ne({
|
|
160
160
|
apps: [...Ue]
|
|
161
161
|
}), t = (o = {}) => {
|
|
@@ -201,7 +201,7 @@ const Jn = { class: "flex items-center" }, Kn = { class: "shrink-0 self-start" }
|
|
|
201
201
|
return a ? a.icon : "";
|
|
202
202
|
}
|
|
203
203
|
};
|
|
204
|
-
}), Tt =
|
|
204
|
+
}), Tt = ye("sparkApp", () => {
|
|
205
205
|
const e = ne({
|
|
206
206
|
app: "",
|
|
207
207
|
homeRoute: "dashboard",
|
|
@@ -237,7 +237,7 @@ const Jn = { class: "flex items-center" }, Kn = { 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 = Tt(), o = $(() => {
|
|
241
241
|
const i = r.state.app;
|
|
242
242
|
return s.state.apps.map((l) => ({
|
|
243
243
|
...l,
|
|
@@ -261,7 +261,7 @@ const Jn = { class: "flex items-center" }, Kn = { class: "shrink-0 self-start" }
|
|
|
261
261
|
}, null, 8, ["icon"])
|
|
262
262
|
])
|
|
263
263
|
]),
|
|
264
|
-
(g(!0), y(
|
|
264
|
+
(g(!0), y(le, null, ge(o.value, (u) => (g(), y("a", {
|
|
265
265
|
key: u.name,
|
|
266
266
|
href: u.href,
|
|
267
267
|
target: "_blank",
|
|
@@ -270,10 +270,10 @@ const Jn = { class: "flex items-center" }, Kn = { class: "shrink-0 self-start" }
|
|
|
270
270
|
}, [
|
|
271
271
|
f("div", as, [
|
|
272
272
|
f("div", is, [
|
|
273
|
-
f("div", ls,
|
|
273
|
+
f("div", ls, O(u.name), 1),
|
|
274
274
|
u.current ? (g(), y("span", cs, " Active ")) : R("", !0)
|
|
275
275
|
]),
|
|
276
|
-
f("div", us,
|
|
276
|
+
f("div", us, O(u.description), 1)
|
|
277
277
|
]),
|
|
278
278
|
f("div", ds, [
|
|
279
279
|
C(c, {
|
|
@@ -300,7 +300,7 @@ const Jn = { class: "flex items-center" }, Kn = { class: "shrink-0 self-start" }
|
|
|
300
300
|
]);
|
|
301
301
|
};
|
|
302
302
|
}
|
|
303
|
-
}, Ht =
|
|
303
|
+
}, Ht = ye(
|
|
304
304
|
"brandFilter",
|
|
305
305
|
() => {
|
|
306
306
|
const e = ne({
|
|
@@ -350,7 +350,7 @@ const Jn = { class: "flex items-center" }, Kn = { class: "shrink-0 self-start" }
|
|
|
350
350
|
}, Cs = ["onClick"], vs = { class: "gap-y-1 flex" }, _s = { class: "flex items-center mr-4" }, ks = ["src", "alt"], Rs = { class: "ml-auto flex flex-col" }, Es = { class: "text-base text-gray-800 flex items-center" }, As = { class: "font-medium" }, $s = {
|
|
351
351
|
key: 0,
|
|
352
352
|
class: "inline-flex items-center rounded-full bg-green-100 px-1.5 py-0.5 text-xs font-medium text-green-700 ml-1"
|
|
353
|
-
},
|
|
353
|
+
}, Ls = { class: "text-sm text-gray-500" }, Os = {
|
|
354
354
|
__name: "SparkBrandSelector",
|
|
355
355
|
emits: ["close", "select"],
|
|
356
356
|
setup(e, { emit: t }) {
|
|
@@ -373,7 +373,7 @@ const Jn = { class: "flex items-center" }, Kn = { class: "shrink-0 self-start" }
|
|
|
373
373
|
])
|
|
374
374
|
]),
|
|
375
375
|
x(s).allBrands.length === 0 ? (g(), y("div", Ss, " No brands configured ")) : R("", !0),
|
|
376
|
-
(g(!0), y(
|
|
376
|
+
(g(!0), y(le, null, ge(x(s).allBrands, (l) => (g(), y("div", {
|
|
377
377
|
key: l.id,
|
|
378
378
|
class: E([l.current ? "bg-gray-50" : "hover:bg-gray-50", "flex px-[22px] py-[15px] cursor-pointer"]),
|
|
379
379
|
onClick: (c) => r(l)
|
|
@@ -388,10 +388,10 @@ const Jn = { class: "flex items-center" }, Kn = { class: "shrink-0 self-start" }
|
|
|
388
388
|
]),
|
|
389
389
|
f("div", Rs, [
|
|
390
390
|
f("div", Es, [
|
|
391
|
-
f("div", As,
|
|
391
|
+
f("div", As, O(l.name), 1),
|
|
392
392
|
l.current ? (g(), y("span", $s, " Current ")) : R("", !0)
|
|
393
393
|
]),
|
|
394
|
-
f("div",
|
|
394
|
+
f("div", Ls, O(l.current ? "Current Brand" : "Change to"), 1)
|
|
395
395
|
])
|
|
396
396
|
])
|
|
397
397
|
], 10, Cs))), 128)),
|
|
@@ -580,20 +580,20 @@ class Vs {
|
|
|
580
580
|
this.state.isVisible = !1, this.state.eventHandlers = {};
|
|
581
581
|
};
|
|
582
582
|
}
|
|
583
|
-
const
|
|
583
|
+
const he = new Vs(), Ns = { class: "fixed inset-0 z-10 w-screen overflow-y-auto" }, Ps = { class: "flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0" }, Ms = {
|
|
584
584
|
__name: "SparkModalContainer",
|
|
585
585
|
setup(e) {
|
|
586
586
|
return (t, n) => (g(), W(x(At), {
|
|
587
587
|
as: "template",
|
|
588
|
-
show: x(
|
|
588
|
+
show: x(he).state.isVisible
|
|
589
589
|
}, {
|
|
590
590
|
default: A(() => [
|
|
591
591
|
C(x($t), {
|
|
592
592
|
class: "relative z-200",
|
|
593
|
-
onClose: x(
|
|
593
|
+
onClose: x(he).hide
|
|
594
594
|
}, {
|
|
595
595
|
default: A(() => [
|
|
596
|
-
C(x(
|
|
596
|
+
C(x(Le), {
|
|
597
597
|
as: "template",
|
|
598
598
|
enter: "ease-out duration-300",
|
|
599
599
|
"enter-from": "opacity-0",
|
|
@@ -609,7 +609,7 @@ const pe = new Vs(), Ns = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
609
609
|
}),
|
|
610
610
|
f("div", Ns, [
|
|
611
611
|
f("div", Ps, [
|
|
612
|
-
C(x(
|
|
612
|
+
C(x(Le), {
|
|
613
613
|
as: "template",
|
|
614
614
|
enter: "ease-out duration-300",
|
|
615
615
|
"enter-from": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
|
|
@@ -619,9 +619,9 @@ const pe = new Vs(), Ns = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
619
619
|
"leave-to": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
|
|
620
620
|
}, {
|
|
621
621
|
default: A(() => [
|
|
622
|
-
C(x(
|
|
622
|
+
C(x(Lt), { class: "relative transform overflow-hidden rounded-lg bg-white text-left shadow-xl transition-all sm:my-8 sm:w-full sm:min-w-lg sm:max-w-max" }, {
|
|
623
623
|
default: A(() => [
|
|
624
|
-
(g(), W($e(x(
|
|
624
|
+
(g(), W($e(x(he).state.content), kt(x(he).state.props, Rt(x(he).state.eventHandlers)), null, 16))
|
|
625
625
|
]),
|
|
626
626
|
_: 1
|
|
627
627
|
})
|
|
@@ -732,22 +732,22 @@ const pe = new Vs(), Ns = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
732
732
|
f("div", {
|
|
733
733
|
class: E(["text-center", { "mt-3 sm:mt-5": o.value }])
|
|
734
734
|
}, [
|
|
735
|
-
e.title ? (g(), y("h3", js,
|
|
735
|
+
e.title ? (g(), y("h3", js, O(e.title), 1)) : R("", !0),
|
|
736
736
|
e.message ? (g(), y("div", {
|
|
737
737
|
key: 1,
|
|
738
738
|
class: E([{ "mt-2": e.title }, "text-sm text-gray-500"])
|
|
739
|
-
},
|
|
739
|
+
}, O(e.message), 3)) : R("", !0)
|
|
740
740
|
], 2),
|
|
741
741
|
f("div", {
|
|
742
742
|
class: E(["mt-5 sm:mt-6", s.value])
|
|
743
743
|
}, [
|
|
744
|
-
(g(!0), y(
|
|
744
|
+
(g(!0), y(le, null, ge(n.value, (m, w) => (g(), W(x(re), {
|
|
745
745
|
key: w,
|
|
746
746
|
variant: m.variant,
|
|
747
747
|
onClick: (v) => l.$emit(m.event, m)
|
|
748
748
|
}, {
|
|
749
749
|
default: A(() => [
|
|
750
|
-
K(
|
|
750
|
+
K(O(m.text), 1)
|
|
751
751
|
]),
|
|
752
752
|
_: 2
|
|
753
753
|
}, 1032, ["variant", "onClick"]))), 128))
|
|
@@ -784,7 +784,7 @@ const pe = new Vs(), Ns = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
784
784
|
onClose: o
|
|
785
785
|
}, {
|
|
786
786
|
default: A(() => [
|
|
787
|
-
C(x(
|
|
787
|
+
C(x(Le), {
|
|
788
788
|
as: "template",
|
|
789
789
|
enter: "transition-opacity ease-linear duration-150",
|
|
790
790
|
"enter-from": "opacity-0",
|
|
@@ -799,7 +799,7 @@ const pe = new Vs(), Ns = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
799
799
|
_: 1
|
|
800
800
|
}),
|
|
801
801
|
f("div", Ds, [
|
|
802
|
-
C(x(
|
|
802
|
+
C(x(Le), {
|
|
803
803
|
as: "template",
|
|
804
804
|
enter: "transition ease-in-out duration-150 transform",
|
|
805
805
|
"enter-from": e.position === "left" ? "-translate-x-full opacity-0" : "translate-x-full opacity-0",
|
|
@@ -809,7 +809,7 @@ const pe = new Vs(), Ns = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
|
|
|
809
809
|
"leave-to": e.position === "left" ? "-translate-x-full opacity-0" : "translate-x-full opacity-0"
|
|
810
810
|
}, {
|
|
811
811
|
default: A(() => [
|
|
812
|
-
C(x(
|
|
812
|
+
C(x(Lt), {
|
|
813
813
|
ref_key: "panelRef",
|
|
814
814
|
ref: n,
|
|
815
815
|
class: E([
|
|
@@ -892,7 +892,7 @@ class Is {
|
|
|
892
892
|
this.left.close(), this.right.close();
|
|
893
893
|
};
|
|
894
894
|
}
|
|
895
|
-
const
|
|
895
|
+
const ae = new Is(), zs = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, qs = { class: "flex flex-1 flex-col" }, Zs = {
|
|
896
896
|
class: "flex flex-1 flex-col gap-y-7",
|
|
897
897
|
role: "list"
|
|
898
898
|
}, Ws = { class: "flex flex-1 flex-col" }, Gs = {
|
|
@@ -925,23 +925,27 @@ const _e = new Is(), zs = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, qs =
|
|
|
925
925
|
},
|
|
926
926
|
emits: ["overlayClose"],
|
|
927
927
|
setup(e, { emit: t }) {
|
|
928
|
-
const n = e, s = t, r = un(), o = Ht(), a =
|
|
928
|
+
const n = e, s = t, r = un(), o = Ht(), a = Ot(), i = $(() => a.getAppIcon(n.appStore.state.app)), l = () => {
|
|
929
929
|
const w = {};
|
|
930
|
-
r["app-selector-bottom"] ? w.bottomSlot = () => ot("div", {}, r["app-selector-bottom"]()) : n.appSelectorSlots.bottomSlot && (w.bottomSlot = n.appSelectorSlots.bottomSlot), r["app-selector-footer"] ? w.footerSlot = () => ot("div", {}, r["app-selector-footer"]()) : n.appSelectorSlots.footerSlot && (w.footerSlot = n.appSelectorSlots.footerSlot),
|
|
930
|
+
r["app-selector-bottom"] ? w.bottomSlot = () => ot("div", {}, r["app-selector-bottom"]()) : n.appSelectorSlots.bottomSlot && (w.bottomSlot = n.appSelectorSlots.bottomSlot), r["app-selector-footer"] ? w.footerSlot = () => ot("div", {}, r["app-selector-footer"]()) : n.appSelectorSlots.footerSlot && (w.footerSlot = n.appSelectorSlots.footerSlot), ae.showRight(ms, w, {
|
|
931
|
+
select: (v) => {
|
|
932
|
+
ae.closeRight();
|
|
933
|
+
}
|
|
934
|
+
});
|
|
931
935
|
}, c = () => {
|
|
932
|
-
|
|
933
|
-
|
|
936
|
+
ae.showLeft(
|
|
937
|
+
Os,
|
|
934
938
|
{},
|
|
935
939
|
{
|
|
936
940
|
select: (w) => {
|
|
937
|
-
o.toggleBrand(w);
|
|
941
|
+
o.toggleBrand(w), ae.closeLeft();
|
|
938
942
|
}
|
|
939
943
|
}
|
|
940
944
|
);
|
|
941
945
|
}, u = $(() => n.mainNavStore.state.hidden ? ["w-0 overflow-hidden"] : [n.mainNavStore.state.collapsed ? "w-[80px]" : "w-[240px]"]), m = $(() => n.mainNavStore.state.hidden ? ["pl-2.5"] : [n.mainNavStore.state.collapsed ? "pl-[80px]" : "pl-[240px]"]);
|
|
942
946
|
return (w, v) => {
|
|
943
947
|
const p = U("font-awesome-icon"), b = U("router-view");
|
|
944
|
-
return g(), y(
|
|
948
|
+
return g(), y(le, null, [
|
|
945
949
|
f("div", {
|
|
946
950
|
class: E([u.value, "fixed inset-y-0 flex transition-all z-100"])
|
|
947
951
|
}, [
|
|
@@ -953,7 +957,7 @@ const _e = new Is(), zs = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, qs =
|
|
|
953
957
|
f("li", Js, [
|
|
954
958
|
f("a", {
|
|
955
959
|
class: "grid w-[40px] h-[40px] place-items-center rounded-md bg-primary-600 text-white text-[13px] cursor-pointer",
|
|
956
|
-
onClick: v[0] || (v[0] =
|
|
960
|
+
onClick: v[0] || (v[0] = pe((h) => e.mainNavStore.goto(e.appStore.state.homeRoute), ["prevent"]))
|
|
957
961
|
}, [
|
|
958
962
|
C(p, {
|
|
959
963
|
icon: x(B)[i.value],
|
|
@@ -962,11 +966,11 @@ const _e = new Is(), zs = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, qs =
|
|
|
962
966
|
]),
|
|
963
967
|
e.mainNavStore.state.collapsed ? R("", !0) : (g(), y("a", {
|
|
964
968
|
key: 0,
|
|
965
|
-
onClick: v[1] || (v[1] =
|
|
969
|
+
onClick: v[1] || (v[1] = pe((h) => e.mainNavStore.goto(e.appStore.state.homeRoute), ["prevent"])),
|
|
966
970
|
class: "font-medium text-gray-800 ml-[10px] cursor-pointer"
|
|
967
|
-
},
|
|
971
|
+
}, O(e.appStore.state.app), 1))
|
|
968
972
|
]),
|
|
969
|
-
(g(!0), y(
|
|
973
|
+
(g(!0), y(le, null, ge(e.mainNavStore.state.menu, (h) => (g(), y("li", {
|
|
970
974
|
key: h.name,
|
|
971
975
|
class: E({
|
|
972
976
|
"mt-[10px]": h.children,
|
|
@@ -979,7 +983,7 @@ const _e = new Is(), zs = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, qs =
|
|
|
979
983
|
"hover:bg-gray-100": h?.href
|
|
980
984
|
}, "h-[37px] sgroup flex items-center gap-x-2 rounded-md p-3 text-gray-800 leading-5 transition-all duration-300 ease-in-out"]),
|
|
981
985
|
href: h?.href,
|
|
982
|
-
onClick:
|
|
986
|
+
onClick: pe((_) => e.mainNavStore.goto(h.href), ["prevent"])
|
|
983
987
|
}, [
|
|
984
988
|
h.icon ? (g(), W(p, {
|
|
985
989
|
key: 0,
|
|
@@ -996,23 +1000,23 @@ const _e = new Is(), zs = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, qs =
|
|
|
996
1000
|
"font-semibold": h?.children,
|
|
997
1001
|
"text-gray-500": h?.children
|
|
998
1002
|
})
|
|
999
|
-
},
|
|
1003
|
+
}, O(h.name), 3))
|
|
1000
1004
|
], 10, Ks),
|
|
1001
1005
|
h.children ? (g(), y("ul", Ys, [
|
|
1002
|
-
(g(!0), y(
|
|
1006
|
+
(g(!0), y(le, null, ge(h.children, (_) => (g(), y("li", {
|
|
1003
1007
|
key: _.name
|
|
1004
1008
|
}, [
|
|
1005
1009
|
f("a", {
|
|
1006
1010
|
class: E([[_.current ? "bg-gray-100" : "", "hover:bg-gray-100"], "h-[37px] sgroup flex items-center gap-x-2 rounded-md p-3 text-gray-800 leading-5 transition-all duration-300 ease-in-out"]),
|
|
1007
1011
|
href: _.href,
|
|
1008
|
-
onClick:
|
|
1012
|
+
onClick: pe((T) => e.mainNavStore.goto(_.href), ["prevent"])
|
|
1009
1013
|
}, [
|
|
1010
1014
|
_.icon ? (g(), W(p, {
|
|
1011
1015
|
key: 0,
|
|
1012
1016
|
icon: x(B)[_.icon],
|
|
1013
1017
|
class: E([[(_.current, "text-gray-400")], "size-4"])
|
|
1014
1018
|
}, null, 8, ["icon", "class"])) : R("", !0),
|
|
1015
|
-
e.mainNavStore.state.collapsed ? R("", !0) : (g(), y("span", er,
|
|
1019
|
+
e.mainNavStore.state.collapsed ? R("", !0) : (g(), y("span", er, O(_.name), 1))
|
|
1016
1020
|
], 10, Qs)
|
|
1017
1021
|
]))), 128))
|
|
1018
1022
|
])) : R("", !0)
|
|
@@ -1024,7 +1028,7 @@ const _e = new Is(), zs = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, qs =
|
|
|
1024
1028
|
f("a", {
|
|
1025
1029
|
class: "font-medium grid place-content-center gap-x-3 rounded-md h-10 p-2.5 text-gray-800 text-[13px] hover:bg-gray-100 transition-all duration-300 ease-in-out",
|
|
1026
1030
|
href: "#",
|
|
1027
|
-
onClick: v[2] || (v[2] =
|
|
1031
|
+
onClick: v[2] || (v[2] = pe((h) => e.mainNavStore.toggleCollapsed(), ["prevent"]))
|
|
1028
1032
|
}, [
|
|
1029
1033
|
C(p, {
|
|
1030
1034
|
icon: x(B)[e.mainNavStore.state.collapsed ? "farArrowRightToLine" : "farArrowLeftToLine"],
|
|
@@ -1089,12 +1093,12 @@ const _e = new Is(), zs = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, qs =
|
|
|
1089
1093
|
], 2),
|
|
1090
1094
|
C(x(at), {
|
|
1091
1095
|
position: "left",
|
|
1092
|
-
"overlay-instance": x(
|
|
1096
|
+
"overlay-instance": x(ae).left,
|
|
1093
1097
|
onClose: v[4] || (v[4] = (h) => s("overlayClose", "left"))
|
|
1094
1098
|
}, null, 8, ["overlay-instance"]),
|
|
1095
1099
|
C(x(at), {
|
|
1096
1100
|
position: "right",
|
|
1097
|
-
"overlay-instance": x(
|
|
1101
|
+
"overlay-instance": x(ae).right,
|
|
1098
1102
|
onClose: v[5] || (v[5] = (h) => s("overlayClose", "right"))
|
|
1099
1103
|
}, null, 8, ["overlay-instance"]),
|
|
1100
1104
|
C(x(Ms))
|
|
@@ -1122,42 +1126,42 @@ function Ft(e, t) {
|
|
|
1122
1126
|
const { toString: pr } = Object.prototype, { getPrototypeOf: Je } = Object, { iterator: He, toStringTag: Bt } = Symbol, Fe = /* @__PURE__ */ ((e) => (t) => {
|
|
1123
1127
|
const n = pr.call(t);
|
|
1124
1128
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
1125
|
-
})(/* @__PURE__ */ Object.create(null)), D = (e) => (e = e.toLowerCase(), (t) => Fe(t) === e), Be = (e) => (t) => typeof t === e, { isArray:
|
|
1126
|
-
function
|
|
1127
|
-
return e !== null && !
|
|
1129
|
+
})(/* @__PURE__ */ Object.create(null)), D = (e) => (e = e.toLowerCase(), (t) => Fe(t) === e), Be = (e) => (t) => typeof t === e, { isArray: ue } = Array, ce = Be("undefined");
|
|
1130
|
+
function we(e) {
|
|
1131
|
+
return e !== null && !ce(e) && e.constructor !== null && !ce(e.constructor) && V(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
1128
1132
|
}
|
|
1129
1133
|
const Vt = D("ArrayBuffer");
|
|
1130
1134
|
function hr(e) {
|
|
1131
1135
|
let t;
|
|
1132
1136
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Vt(e.buffer), t;
|
|
1133
1137
|
}
|
|
1134
|
-
const mr = Be("string"), V = Be("function"), Nt = Be("number"),
|
|
1138
|
+
const mr = Be("string"), V = Be("function"), Nt = Be("number"), be = (e) => e !== null && typeof e == "object", gr = (e) => e === !0 || e === !1, Re = (e) => {
|
|
1135
1139
|
if (Fe(e) !== "object")
|
|
1136
1140
|
return !1;
|
|
1137
1141
|
const t = Je(e);
|
|
1138
1142
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Bt in e) && !(He in e);
|
|
1139
1143
|
}, yr = (e) => {
|
|
1140
|
-
if (!
|
|
1144
|
+
if (!be(e) || we(e))
|
|
1141
1145
|
return !1;
|
|
1142
1146
|
try {
|
|
1143
1147
|
return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
|
|
1144
1148
|
} catch {
|
|
1145
1149
|
return !1;
|
|
1146
1150
|
}
|
|
1147
|
-
}, wr = D("Date"), br = D("File"), xr = D("Blob"), Sr = D("FileList"), Cr = (e) =>
|
|
1151
|
+
}, wr = D("Date"), br = D("File"), xr = D("Blob"), Sr = D("FileList"), Cr = (e) => be(e) && V(e.pipe), vr = (e) => {
|
|
1148
1152
|
let t;
|
|
1149
1153
|
return e && (typeof FormData == "function" && e instanceof FormData || V(e.append) && ((t = Fe(e)) === "formdata" || // detect form-data instance
|
|
1150
1154
|
t === "object" && V(e.toString) && e.toString() === "[object FormData]"));
|
|
1151
1155
|
}, _r = D("URLSearchParams"), [kr, Rr, Er, Ar] = ["ReadableStream", "Request", "Response", "Headers"].map(D), $r = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
1152
|
-
function
|
|
1156
|
+
function xe(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
1153
1157
|
if (e === null || typeof e > "u")
|
|
1154
1158
|
return;
|
|
1155
1159
|
let s, r;
|
|
1156
|
-
if (typeof e != "object" && (e = [e]),
|
|
1160
|
+
if (typeof e != "object" && (e = [e]), ue(e))
|
|
1157
1161
|
for (s = 0, r = e.length; s < r; s++)
|
|
1158
1162
|
t.call(null, e[s], s, e);
|
|
1159
1163
|
else {
|
|
1160
|
-
if (
|
|
1164
|
+
if (we(e))
|
|
1161
1165
|
return;
|
|
1162
1166
|
const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), a = o.length;
|
|
1163
1167
|
let i;
|
|
@@ -1166,7 +1170,7 @@ function be(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
|
1166
1170
|
}
|
|
1167
1171
|
}
|
|
1168
1172
|
function Pt(e, t) {
|
|
1169
|
-
if (
|
|
1173
|
+
if (we(e))
|
|
1170
1174
|
return null;
|
|
1171
1175
|
t = t.toLowerCase();
|
|
1172
1176
|
const n = Object.keys(e);
|
|
@@ -1176,19 +1180,19 @@ function Pt(e, t) {
|
|
|
1176
1180
|
return r;
|
|
1177
1181
|
return null;
|
|
1178
1182
|
}
|
|
1179
|
-
const Q = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Mt = (e) => !
|
|
1183
|
+
const Q = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Mt = (e) => !ce(e) && e !== Q;
|
|
1180
1184
|
function qe() {
|
|
1181
1185
|
const { caseless: e, skipUndefined: t } = Mt(this) && this || {}, n = {}, s = (r, o) => {
|
|
1182
1186
|
const a = e && Pt(n, o) || o;
|
|
1183
|
-
Re(n[a]) && Re(r) ? n[a] = qe(n[a], r) : Re(r) ? n[a] = qe({}, r) :
|
|
1187
|
+
Re(n[a]) && Re(r) ? n[a] = qe(n[a], r) : Re(r) ? n[a] = qe({}, r) : ue(r) ? n[a] = r.slice() : (!t || !ce(r)) && (n[a] = r);
|
|
1184
1188
|
};
|
|
1185
1189
|
for (let r = 0, o = arguments.length; r < o; r++)
|
|
1186
|
-
arguments[r] &&
|
|
1190
|
+
arguments[r] && xe(arguments[r], s);
|
|
1187
1191
|
return n;
|
|
1188
1192
|
}
|
|
1189
|
-
const
|
|
1193
|
+
const Lr = (e, t, n, { allOwnKeys: s } = {}) => (xe(t, (r, o) => {
|
|
1190
1194
|
n && V(r) ? e[o] = Ft(r, n) : e[o] = r;
|
|
1191
|
-
}, { allOwnKeys: s }), e),
|
|
1195
|
+
}, { allOwnKeys: s }), e), Or = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Tr = (e, t, n, s) => {
|
|
1192
1196
|
e.prototype = Object.create(t.prototype, s), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
1193
1197
|
value: t.prototype
|
|
1194
1198
|
}), n && Object.assign(e.prototype, n);
|
|
@@ -1208,7 +1212,7 @@ const Or = (e, t, n, { allOwnKeys: s } = {}) => (be(t, (r, o) => {
|
|
|
1208
1212
|
return s !== -1 && s === n;
|
|
1209
1213
|
}, Br = (e) => {
|
|
1210
1214
|
if (!e) return null;
|
|
1211
|
-
if (
|
|
1215
|
+
if (ue(e)) return e;
|
|
1212
1216
|
let t = e.length;
|
|
1213
1217
|
if (!Nt(t)) return null;
|
|
1214
1218
|
const n = new Array(t);
|
|
@@ -1235,7 +1239,7 @@ const Or = (e, t, n, { allOwnKeys: s } = {}) => (be(t, (r, o) => {
|
|
|
1235
1239
|
}
|
|
1236
1240
|
), lt = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), jr = D("RegExp"), Ut = (e, t) => {
|
|
1237
1241
|
const n = Object.getOwnPropertyDescriptors(e), s = {};
|
|
1238
|
-
|
|
1242
|
+
xe(n, (r, o) => {
|
|
1239
1243
|
let a;
|
|
1240
1244
|
(a = t(r, o, e)) !== !1 && (s[o] = a || r);
|
|
1241
1245
|
}), Object.defineProperties(e, s);
|
|
@@ -1260,7 +1264,7 @@ const Or = (e, t, n, { allOwnKeys: s } = {}) => (be(t, (r, o) => {
|
|
|
1260
1264
|
n[o] = !0;
|
|
1261
1265
|
});
|
|
1262
1266
|
};
|
|
1263
|
-
return
|
|
1267
|
+
return ue(e) ? s(e) : s(String(e).split(t)), n;
|
|
1264
1268
|
}, zr = () => {
|
|
1265
1269
|
}, qr = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
1266
1270
|
function Zr(e) {
|
|
@@ -1268,24 +1272,24 @@ function Zr(e) {
|
|
|
1268
1272
|
}
|
|
1269
1273
|
const Wr = (e) => {
|
|
1270
1274
|
const t = new Array(10), n = (s, r) => {
|
|
1271
|
-
if (
|
|
1275
|
+
if (be(s)) {
|
|
1272
1276
|
if (t.indexOf(s) >= 0)
|
|
1273
1277
|
return;
|
|
1274
|
-
if (
|
|
1278
|
+
if (we(s))
|
|
1275
1279
|
return s;
|
|
1276
1280
|
if (!("toJSON" in s)) {
|
|
1277
1281
|
t[r] = s;
|
|
1278
|
-
const o =
|
|
1279
|
-
return
|
|
1282
|
+
const o = ue(s) ? [] : {};
|
|
1283
|
+
return xe(s, (a, i) => {
|
|
1280
1284
|
const l = n(a, r + 1);
|
|
1281
|
-
!
|
|
1285
|
+
!ce(l) && (o[i] = l);
|
|
1282
1286
|
}), t[r] = void 0, o;
|
|
1283
1287
|
}
|
|
1284
1288
|
}
|
|
1285
1289
|
return s;
|
|
1286
1290
|
};
|
|
1287
1291
|
return n(e, 0);
|
|
1288
|
-
}, Gr = D("AsyncFunction"), Jr = (e) => e && (
|
|
1292
|
+
}, Gr = D("AsyncFunction"), Jr = (e) => e && (be(e) || V(e)) && V(e.then) && V(e.catch), jt = ((e, t) => e ? setImmediate : t ? ((n, s) => (Q.addEventListener("message", ({ source: r, data: o }) => {
|
|
1289
1293
|
r === Q && o === n && s.length && s.shift()();
|
|
1290
1294
|
}, !1), (r) => {
|
|
1291
1295
|
s.push(r), Q.postMessage(n, "*");
|
|
@@ -1293,22 +1297,22 @@ const Wr = (e) => {
|
|
|
1293
1297
|
typeof setImmediate == "function",
|
|
1294
1298
|
V(Q.postMessage)
|
|
1295
1299
|
), Kr = typeof queueMicrotask < "u" ? queueMicrotask.bind(Q) : typeof process < "u" && process.nextTick || jt, Xr = (e) => e != null && V(e[He]), d = {
|
|
1296
|
-
isArray:
|
|
1300
|
+
isArray: ue,
|
|
1297
1301
|
isArrayBuffer: Vt,
|
|
1298
|
-
isBuffer:
|
|
1302
|
+
isBuffer: we,
|
|
1299
1303
|
isFormData: vr,
|
|
1300
1304
|
isArrayBufferView: hr,
|
|
1301
1305
|
isString: mr,
|
|
1302
1306
|
isNumber: Nt,
|
|
1303
1307
|
isBoolean: gr,
|
|
1304
|
-
isObject:
|
|
1308
|
+
isObject: be,
|
|
1305
1309
|
isPlainObject: Re,
|
|
1306
1310
|
isEmptyObject: yr,
|
|
1307
1311
|
isReadableStream: kr,
|
|
1308
1312
|
isRequest: Rr,
|
|
1309
1313
|
isResponse: Er,
|
|
1310
1314
|
isHeaders: Ar,
|
|
1311
|
-
isUndefined:
|
|
1315
|
+
isUndefined: ce,
|
|
1312
1316
|
isDate: wr,
|
|
1313
1317
|
isFile: br,
|
|
1314
1318
|
isBlob: xr,
|
|
@@ -1318,11 +1322,11 @@ const Wr = (e) => {
|
|
|
1318
1322
|
isURLSearchParams: _r,
|
|
1319
1323
|
isTypedArray: Vr,
|
|
1320
1324
|
isFileList: Sr,
|
|
1321
|
-
forEach:
|
|
1325
|
+
forEach: xe,
|
|
1322
1326
|
merge: qe,
|
|
1323
|
-
extend:
|
|
1327
|
+
extend: Lr,
|
|
1324
1328
|
trim: $r,
|
|
1325
|
-
stripBOM:
|
|
1329
|
+
stripBOM: Or,
|
|
1326
1330
|
inherits: Tr,
|
|
1327
1331
|
toFlatObject: Hr,
|
|
1328
1332
|
kindOf: Fe,
|
|
@@ -1451,11 +1455,11 @@ function Ve(e, t, n) {
|
|
|
1451
1455
|
if (d.endsWith(b, "{}"))
|
|
1452
1456
|
b = s ? b : b.slice(0, -2), p = JSON.stringify(p);
|
|
1453
1457
|
else if (d.isArray(p) && Qr(p) || (d.isFileList(p) || d.endsWith(b, "[]")) && (_ = d.toArray(p)))
|
|
1454
|
-
return b = zt(b), _.forEach(function(
|
|
1455
|
-
!(d.isUndefined(
|
|
1458
|
+
return b = zt(b), _.forEach(function(L, F) {
|
|
1459
|
+
!(d.isUndefined(L) || L === null) && t.append(
|
|
1456
1460
|
// eslint-disable-next-line no-nested-ternary
|
|
1457
1461
|
a === !0 ? ct([b], F, o) : a === null ? b : b + "[]",
|
|
1458
|
-
c(
|
|
1462
|
+
c(L)
|
|
1459
1463
|
);
|
|
1460
1464
|
}), !1;
|
|
1461
1465
|
}
|
|
@@ -1655,7 +1659,7 @@ function ho(e, t, n) {
|
|
|
1655
1659
|
}
|
|
1656
1660
|
return (n || JSON.stringify)(e);
|
|
1657
1661
|
}
|
|
1658
|
-
const
|
|
1662
|
+
const Se = {
|
|
1659
1663
|
transitional: Wt,
|
|
1660
1664
|
adapter: ["xhr", "http", "fetch"],
|
|
1661
1665
|
transformRequest: [function(t, n) {
|
|
@@ -1684,7 +1688,7 @@ const xe = {
|
|
|
1684
1688
|
return o || r ? (n.setContentType("application/json", !1), ho(t)) : t;
|
|
1685
1689
|
}],
|
|
1686
1690
|
transformResponse: [function(t) {
|
|
1687
|
-
const n = this.transitional ||
|
|
1691
|
+
const n = this.transitional || Se.transitional, s = n && n.forcedJSONParsing, r = this.responseType === "json";
|
|
1688
1692
|
if (d.isResponse(t) || d.isReadableStream(t))
|
|
1689
1693
|
return t;
|
|
1690
1694
|
if (t && d.isString(t) && (s && !this.responseType || r)) {
|
|
@@ -1722,7 +1726,7 @@ const xe = {
|
|
|
1722
1726
|
}
|
|
1723
1727
|
};
|
|
1724
1728
|
d.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
1725
|
-
|
|
1729
|
+
Se.headers[e] = {};
|
|
1726
1730
|
});
|
|
1727
1731
|
const mo = d.toObjectSet([
|
|
1728
1732
|
"age",
|
|
@@ -1750,7 +1754,7 @@ const mo = d.toObjectSet([
|
|
|
1750
1754
|
r = a.indexOf(":"), n = a.substring(0, r).trim().toLowerCase(), s = a.substring(r + 1).trim(), !(!n || t[n] && mo[n]) && (n === "set-cookie" ? t[n] ? t[n].push(s) : t[n] = [s] : t[n] = t[n] ? t[n] + ", " + s : s);
|
|
1751
1755
|
}), t;
|
|
1752
1756
|
}, ft = Symbol("internals");
|
|
1753
|
-
function
|
|
1757
|
+
function me(e) {
|
|
1754
1758
|
return e && String(e).trim().toLowerCase();
|
|
1755
1759
|
}
|
|
1756
1760
|
function Ee(e) {
|
|
@@ -1795,7 +1799,7 @@ let N = class {
|
|
|
1795
1799
|
set(t, n, s) {
|
|
1796
1800
|
const r = this;
|
|
1797
1801
|
function o(i, l, c) {
|
|
1798
|
-
const u =
|
|
1802
|
+
const u = me(l);
|
|
1799
1803
|
if (!u)
|
|
1800
1804
|
throw new Error("header name must be a non-empty string");
|
|
1801
1805
|
const m = d.findKey(r, u);
|
|
@@ -1819,7 +1823,7 @@ let N = class {
|
|
|
1819
1823
|
return this;
|
|
1820
1824
|
}
|
|
1821
1825
|
get(t, n) {
|
|
1822
|
-
if (t =
|
|
1826
|
+
if (t = me(t), t) {
|
|
1823
1827
|
const s = d.findKey(this, t);
|
|
1824
1828
|
if (s) {
|
|
1825
1829
|
const r = this[s];
|
|
@@ -1836,7 +1840,7 @@ let N = class {
|
|
|
1836
1840
|
}
|
|
1837
1841
|
}
|
|
1838
1842
|
has(t, n) {
|
|
1839
|
-
if (t =
|
|
1843
|
+
if (t = me(t), t) {
|
|
1840
1844
|
const s = d.findKey(this, t);
|
|
1841
1845
|
return !!(s && this[s] !== void 0 && (!n || je(this, this[s], s, n)));
|
|
1842
1846
|
}
|
|
@@ -1846,7 +1850,7 @@ let N = class {
|
|
|
1846
1850
|
const s = this;
|
|
1847
1851
|
let r = !1;
|
|
1848
1852
|
function o(a) {
|
|
1849
|
-
if (a =
|
|
1853
|
+
if (a = me(a), a) {
|
|
1850
1854
|
const i = d.findKey(s, a);
|
|
1851
1855
|
i && (!n || je(s, s[i], i, n)) && (delete s[i], r = !0);
|
|
1852
1856
|
}
|
|
@@ -1908,7 +1912,7 @@ let N = class {
|
|
|
1908
1912
|
accessors: {}
|
|
1909
1913
|
}).accessors, r = this.prototype;
|
|
1910
1914
|
function o(a) {
|
|
1911
|
-
const i =
|
|
1915
|
+
const i = me(a);
|
|
1912
1916
|
s[i] || (xo(r, a), s[i] = !0);
|
|
1913
1917
|
}
|
|
1914
1918
|
return d.isArray(t) ? t.forEach(o) : o(t), this;
|
|
@@ -1926,7 +1930,7 @@ d.reduceDescriptors(N.prototype, ({ value: e }, t) => {
|
|
|
1926
1930
|
});
|
|
1927
1931
|
d.freezeMethods(N);
|
|
1928
1932
|
function De(e, t) {
|
|
1929
|
-
const n = this ||
|
|
1933
|
+
const n = this || Se, s = t || n, r = N.from(s.headers);
|
|
1930
1934
|
let o = s.data;
|
|
1931
1935
|
return d.forEach(e, function(i) {
|
|
1932
1936
|
o = i.call(n, o, r.normalize(), t ? t.status : void 0);
|
|
@@ -1935,10 +1939,10 @@ function De(e, t) {
|
|
|
1935
1939
|
function Jt(e) {
|
|
1936
1940
|
return !!(e && e.__CANCEL__);
|
|
1937
1941
|
}
|
|
1938
|
-
function
|
|
1942
|
+
function de(e, t, n) {
|
|
1939
1943
|
S.call(this, e ?? "canceled", S.ERR_CANCELED, t, n), this.name = "CanceledError";
|
|
1940
1944
|
}
|
|
1941
|
-
d.inherits(
|
|
1945
|
+
d.inherits(de, S, {
|
|
1942
1946
|
__CANCEL__: !0
|
|
1943
1947
|
});
|
|
1944
1948
|
function Kt(e, t, n) {
|
|
@@ -1983,7 +1987,7 @@ function vo(e, t) {
|
|
|
1983
1987
|
}, s - m)));
|
|
1984
1988
|
}, () => r && a(r)];
|
|
1985
1989
|
}
|
|
1986
|
-
const
|
|
1990
|
+
const Oe = (e, t, n = 3) => {
|
|
1987
1991
|
let s = 0;
|
|
1988
1992
|
const r = Co(50, 250);
|
|
1989
1993
|
return vo((o) => {
|
|
@@ -2151,13 +2155,13 @@ const Yt = (e) => {
|
|
|
2151
2155
|
function _() {
|
|
2152
2156
|
if (!h)
|
|
2153
2157
|
return;
|
|
2154
|
-
const
|
|
2158
|
+
const L = N.from(
|
|
2155
2159
|
"getAllResponseHeaders" in h && h.getAllResponseHeaders()
|
|
2156
2160
|
), j = {
|
|
2157
2161
|
data: !i || i === "text" || i === "json" ? h.responseText : h.response,
|
|
2158
2162
|
status: h.status,
|
|
2159
2163
|
statusText: h.statusText,
|
|
2160
|
-
headers:
|
|
2164
|
+
headers: L,
|
|
2161
2165
|
config: e,
|
|
2162
2166
|
request: h
|
|
2163
2167
|
};
|
|
@@ -2185,8 +2189,8 @@ const Yt = (e) => {
|
|
|
2185
2189
|
)), h = null;
|
|
2186
2190
|
}, o === void 0 && a.setContentType(null), "setRequestHeader" in h && d.forEach(a.toJSON(), function(F, j) {
|
|
2187
2191
|
h.setRequestHeader(j, F);
|
|
2188
|
-
}), d.isUndefined(r.withCredentials) || (h.withCredentials = !!r.withCredentials), i && i !== "json" && (h.responseType = r.responseType), c && ([w, p] =
|
|
2189
|
-
h && (s(!
|
|
2192
|
+
}), d.isUndefined(r.withCredentials) || (h.withCredentials = !!r.withCredentials), i && i !== "json" && (h.responseType = r.responseType), c && ([w, p] = Oe(c, !0), h.addEventListener("progress", w)), l && h.upload && ([m, v] = Oe(l), h.upload.addEventListener("progress", m), h.upload.addEventListener("loadend", v)), (r.cancelToken || r.signal) && (u = (L) => {
|
|
2193
|
+
h && (s(!L || L.type ? new de(null, e, h) : L), h.abort(), h = null);
|
|
2190
2194
|
}, r.cancelToken && r.cancelToken.subscribe(u), r.signal && (r.signal.aborted ? u() : r.signal.addEventListener("abort", u)));
|
|
2191
2195
|
const T = So(r.url);
|
|
2192
2196
|
if (T && H.protocols.indexOf(T) === -1) {
|
|
@@ -2195,7 +2199,7 @@ const Yt = (e) => {
|
|
|
2195
2199
|
}
|
|
2196
2200
|
h.send(o || null);
|
|
2197
2201
|
});
|
|
2198
|
-
},
|
|
2202
|
+
}, Lo = (e, t) => {
|
|
2199
2203
|
const { length: n } = e = e ? e.filter(Boolean) : [];
|
|
2200
2204
|
if (t || n) {
|
|
2201
2205
|
let s = new AbortController(), r;
|
|
@@ -2203,7 +2207,7 @@ const Yt = (e) => {
|
|
|
2203
2207
|
if (!r) {
|
|
2204
2208
|
r = !0, i();
|
|
2205
2209
|
const u = c instanceof Error ? c : this.reason;
|
|
2206
|
-
s.abort(u instanceof S ? u : new
|
|
2210
|
+
s.abort(u instanceof S ? u : new de(u instanceof Error ? u.message : u));
|
|
2207
2211
|
}
|
|
2208
2212
|
};
|
|
2209
2213
|
let a = t && setTimeout(() => {
|
|
@@ -2218,7 +2222,7 @@ const Yt = (e) => {
|
|
|
2218
2222
|
const { signal: l } = s;
|
|
2219
2223
|
return l.unsubscribe = () => d.asap(i), l;
|
|
2220
2224
|
}
|
|
2221
|
-
},
|
|
2225
|
+
}, Oo = function* (e, t) {
|
|
2222
2226
|
let n = e.byteLength;
|
|
2223
2227
|
if (n < t) {
|
|
2224
2228
|
yield e;
|
|
@@ -2229,7 +2233,7 @@ const Yt = (e) => {
|
|
|
2229
2233
|
r = s + t, yield e.slice(s, r), s = r;
|
|
2230
2234
|
}, To = async function* (e, t) {
|
|
2231
2235
|
for await (const n of Ho(e))
|
|
2232
|
-
yield*
|
|
2236
|
+
yield* Oo(n, t);
|
|
2233
2237
|
}, Ho = async function* (e) {
|
|
2234
2238
|
if (e[Symbol.asyncIterator]) {
|
|
2235
2239
|
yield* e;
|
|
@@ -2339,19 +2343,19 @@ const Yt = (e) => {
|
|
|
2339
2343
|
method: h,
|
|
2340
2344
|
data: _,
|
|
2341
2345
|
signal: T,
|
|
2342
|
-
cancelToken:
|
|
2346
|
+
cancelToken: L,
|
|
2343
2347
|
timeout: F,
|
|
2344
2348
|
onDownloadProgress: j,
|
|
2345
2349
|
onUploadProgress: X,
|
|
2346
2350
|
responseType: P,
|
|
2347
2351
|
headers: Pe,
|
|
2348
|
-
withCredentials:
|
|
2352
|
+
withCredentials: Ce = "same-origin",
|
|
2349
2353
|
fetchOptions: Qe
|
|
2350
2354
|
} = Yt(p), et = t || fetch;
|
|
2351
2355
|
P = P ? (P + "").toLowerCase() : "text";
|
|
2352
|
-
let
|
|
2353
|
-
const Y =
|
|
2354
|
-
|
|
2356
|
+
let ve = Lo([T, L && L.toAbortSignal()], F), fe = null;
|
|
2357
|
+
const Y = ve && ve.unsubscribe && (() => {
|
|
2358
|
+
ve.unsubscribe();
|
|
2355
2359
|
});
|
|
2356
2360
|
let tt;
|
|
2357
2361
|
try {
|
|
@@ -2362,38 +2366,38 @@ const Yt = (e) => {
|
|
|
2362
2366
|
duplex: "half"
|
|
2363
2367
|
}), oe;
|
|
2364
2368
|
if (d.isFormData(_) && (oe = J.headers.get("content-type")) && Pe.setContentType(oe), J.body) {
|
|
2365
|
-
const [Me,
|
|
2369
|
+
const [Me, _e] = pt(
|
|
2366
2370
|
tt,
|
|
2367
|
-
|
|
2371
|
+
Oe(ht(X))
|
|
2368
2372
|
);
|
|
2369
|
-
_ = gt(J.body, yt, Me,
|
|
2373
|
+
_ = gt(J.body, yt, Me, _e);
|
|
2370
2374
|
}
|
|
2371
2375
|
}
|
|
2372
|
-
d.isString(
|
|
2376
|
+
d.isString(Ce) || (Ce = Ce ? "include" : "omit");
|
|
2373
2377
|
const I = o && "credentials" in n.prototype, nt = {
|
|
2374
2378
|
...Qe,
|
|
2375
|
-
signal:
|
|
2379
|
+
signal: ve,
|
|
2376
2380
|
method: h.toUpperCase(),
|
|
2377
2381
|
headers: Pe.normalize().toJSON(),
|
|
2378
2382
|
body: _,
|
|
2379
2383
|
duplex: "half",
|
|
2380
|
-
credentials: I ?
|
|
2384
|
+
credentials: I ? Ce : void 0
|
|
2381
2385
|
};
|
|
2382
|
-
|
|
2383
|
-
let G = await (o ? et(
|
|
2386
|
+
fe = o && new n(b, nt);
|
|
2387
|
+
let G = await (o ? et(fe, Qe) : et(b, nt));
|
|
2384
2388
|
const st = u && (P === "stream" || P === "response");
|
|
2385
2389
|
if (u && (j || st && Y)) {
|
|
2386
2390
|
const J = {};
|
|
2387
2391
|
["status", "statusText", "headers"].forEach((rt) => {
|
|
2388
2392
|
J[rt] = G[rt];
|
|
2389
2393
|
});
|
|
2390
|
-
const oe = d.toFiniteNumber(G.headers.get("content-length")), [Me,
|
|
2394
|
+
const oe = d.toFiniteNumber(G.headers.get("content-length")), [Me, _e] = j && pt(
|
|
2391
2395
|
oe,
|
|
2392
|
-
|
|
2396
|
+
Oe(ht(j), !0)
|
|
2393
2397
|
) || [];
|
|
2394
2398
|
G = new s(
|
|
2395
2399
|
gt(G.body, yt, Me, () => {
|
|
2396
|
-
|
|
2400
|
+
_e && _e(), Y && Y();
|
|
2397
2401
|
}),
|
|
2398
2402
|
J
|
|
2399
2403
|
);
|
|
@@ -2407,16 +2411,16 @@ const Yt = (e) => {
|
|
|
2407
2411
|
status: G.status,
|
|
2408
2412
|
statusText: G.statusText,
|
|
2409
2413
|
config: p,
|
|
2410
|
-
request:
|
|
2414
|
+
request: fe
|
|
2411
2415
|
});
|
|
2412
2416
|
});
|
|
2413
2417
|
} catch (I) {
|
|
2414
2418
|
throw Y && Y(), I && I.name === "TypeError" && /Load failed|fetch/i.test(I.message) ? Object.assign(
|
|
2415
|
-
new S("Network Error", S.ERR_NETWORK, p,
|
|
2419
|
+
new S("Network Error", S.ERR_NETWORK, p, fe),
|
|
2416
2420
|
{
|
|
2417
2421
|
cause: I.cause || I
|
|
2418
2422
|
}
|
|
2419
|
-
) : S.from(I, I && I.code, p,
|
|
2423
|
+
) : S.from(I, I && I.code, p, fe);
|
|
2420
2424
|
}
|
|
2421
2425
|
};
|
|
2422
2426
|
}, Vo = /* @__PURE__ */ new Map(), Qt = (e) => {
|
|
@@ -2491,13 +2495,13 @@ const en = {
|
|
|
2491
2495
|
};
|
|
2492
2496
|
function Ie(e) {
|
|
2493
2497
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
2494
|
-
throw new
|
|
2498
|
+
throw new de(null, e);
|
|
2495
2499
|
}
|
|
2496
2500
|
function Ct(e) {
|
|
2497
2501
|
return Ie(e), e.headers = N.from(e.headers), e.data = De.call(
|
|
2498
2502
|
e,
|
|
2499
2503
|
e.transformRequest
|
|
2500
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), en.getAdapter(e.adapter ||
|
|
2504
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), en.getAdapter(e.adapter || Se.adapter, e)(e).then(function(s) {
|
|
2501
2505
|
return Ie(e), s.data = De.call(
|
|
2502
2506
|
e,
|
|
2503
2507
|
e.transformResponse,
|
|
@@ -2708,7 +2712,7 @@ let Uo = class nn {
|
|
|
2708
2712
|
s.unsubscribe(o);
|
|
2709
2713
|
}, a;
|
|
2710
2714
|
}, t(function(o, a, i) {
|
|
2711
|
-
s.reason || (s.reason = new
|
|
2715
|
+
s.reason || (s.reason = new de(o, a, i), n(s.reason));
|
|
2712
2716
|
});
|
|
2713
2717
|
}
|
|
2714
2718
|
/**
|
|
@@ -2845,9 +2849,9 @@ function sn(e) {
|
|
|
2845
2849
|
return sn(te(e, r));
|
|
2846
2850
|
}, n;
|
|
2847
2851
|
}
|
|
2848
|
-
const k = sn(
|
|
2852
|
+
const k = sn(Se);
|
|
2849
2853
|
k.Axios = ee;
|
|
2850
|
-
k.CanceledError =
|
|
2854
|
+
k.CanceledError = de;
|
|
2851
2855
|
k.CancelToken = Uo;
|
|
2852
2856
|
k.isCancel = Jt;
|
|
2853
2857
|
k.VERSION = tn;
|
|
@@ -2910,7 +2914,7 @@ function Zo(e) {
|
|
|
2910
2914
|
function Wo() {
|
|
2911
2915
|
on.forEach((e) => e());
|
|
2912
2916
|
}
|
|
2913
|
-
function
|
|
2917
|
+
function Li(e) {
|
|
2914
2918
|
let t = !1;
|
|
2915
2919
|
return Zo(() => {
|
|
2916
2920
|
t = !1;
|
|
@@ -2925,7 +2929,7 @@ function Oi(e) {
|
|
|
2925
2929
|
}
|
|
2926
2930
|
};
|
|
2927
2931
|
}
|
|
2928
|
-
const ze = "bolt-next-token", Z =
|
|
2932
|
+
const ze = "bolt-next-token", Z = ye("auth", () => {
|
|
2929
2933
|
const e = ne({
|
|
2930
2934
|
user: null,
|
|
2931
2935
|
token: null,
|
|
@@ -3088,7 +3092,7 @@ const ze = "bolt-next-token", Z = ge("auth", () => {
|
|
|
3088
3092
|
f("div", Yo, [
|
|
3089
3093
|
f("div", Qo, [
|
|
3090
3094
|
u[1] || (u[1] = f("h1", { class: "text-4xl text-gray-900 semibold tracking-tight mb-3" }, "Log in", -1)),
|
|
3091
|
-
f("p", ea, " Welcome back" +
|
|
3095
|
+
f("p", ea, " Welcome back" + O(x(s).state.app ? ` to ${x(s).state.app}` : "") + "! Please enter your details. ", 1)
|
|
3092
3096
|
]),
|
|
3093
3097
|
C(m, {
|
|
3094
3098
|
type: "form",
|
|
@@ -3126,7 +3130,7 @@ const ze = "bolt-next-token", Z = ge("auth", () => {
|
|
|
3126
3130
|
_: 1
|
|
3127
3131
|
}, 8, ["to"])
|
|
3128
3132
|
]),
|
|
3129
|
-
i.value ? (g(), y("div", na,
|
|
3133
|
+
i.value ? (g(), y("div", na, O(i.value), 1)) : R("", !0),
|
|
3130
3134
|
C(x(re), {
|
|
3131
3135
|
type: "submit",
|
|
3132
3136
|
size: "xl",
|
|
@@ -3244,8 +3248,8 @@ const ze = "bolt-next-token", Z = ge("auth", () => {
|
|
|
3244
3248
|
validation: "required|email",
|
|
3245
3249
|
"outer-class": "max-w-full"
|
|
3246
3250
|
}),
|
|
3247
|
-
r.value ? (g(), y("div", fa,
|
|
3248
|
-
o.value ? (g(), y("div", pa,
|
|
3251
|
+
r.value ? (g(), y("div", fa, O(r.value), 1)) : R("", !0),
|
|
3252
|
+
o.value ? (g(), y("div", pa, O(o.value), 1)) : R("", !0),
|
|
3249
3253
|
C(x(re), {
|
|
3250
3254
|
type: "submit",
|
|
3251
3255
|
size: "xl",
|
|
@@ -3366,7 +3370,7 @@ const ze = "bolt-next-token", Z = ge("auth", () => {
|
|
|
3366
3370
|
validation: "required|confirm:password",
|
|
3367
3371
|
"outer-class": "max-w-full"
|
|
3368
3372
|
}),
|
|
3369
|
-
a.value ? (g(), y("div", Ca,
|
|
3373
|
+
a.value ? (g(), y("div", Ca, O(a.value), 1)) : R("", !0),
|
|
3370
3374
|
C(x(re), {
|
|
3371
3375
|
type: "submit",
|
|
3372
3376
|
size: "xl",
|
|
@@ -3392,7 +3396,7 @@ const ze = "bolt-next-token", Z = ge("auth", () => {
|
|
|
3392
3396
|
viewBox: "0 0 59 23",
|
|
3393
3397
|
fill: "none",
|
|
3394
3398
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3395
|
-
},
|
|
3399
|
+
}, La = { class: "max-w-lg grid gap-y-6 text-center -mt-8" }, Oa = { class: "flex gap-4 justify-center" }, Ta = {
|
|
3396
3400
|
__name: "SparkError403View",
|
|
3397
3401
|
props: {
|
|
3398
3402
|
logo: {
|
|
@@ -3434,7 +3438,7 @@ const ze = "bolt-next-token", Z = ge("auth", () => {
|
|
|
3434
3438
|
}, null, -1)
|
|
3435
3439
|
])]))
|
|
3436
3440
|
]),
|
|
3437
|
-
f("div",
|
|
3441
|
+
f("div", La, [
|
|
3438
3442
|
o[2] || (o[2] = f("div", null, [
|
|
3439
3443
|
f("div", { class: "text-primary-600 text-7xl font-bold mb-4" }, "403"),
|
|
3440
3444
|
f("h1", { class: "text-3xl text-gray-900 font-semibold tracking-tight mb-3" }, " Access Forbidden "),
|
|
@@ -3444,7 +3448,7 @@ const ze = "bolt-next-token", Z = ge("auth", () => {
|
|
|
3444
3448
|
K(" If you believe this is an error, please contact your administrator. ")
|
|
3445
3449
|
])
|
|
3446
3450
|
], -1)),
|
|
3447
|
-
f("div",
|
|
3451
|
+
f("div", Oa, [
|
|
3448
3452
|
C(x(re), {
|
|
3449
3453
|
onClick: s,
|
|
3450
3454
|
size: "lg"
|
|
@@ -3534,7 +3538,7 @@ const ze = "bolt-next-token", Z = ge("auth", () => {
|
|
|
3534
3538
|
viewBox: "0 0 59 23",
|
|
3535
3539
|
fill: "none",
|
|
3536
3540
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3537
|
-
}, za = { class: "max-w-lg grid gap-y-6 text-center -mt-8" }, qa = { class: "text-primary-600 text-7xl font-bold mb-4" }, Za = { class: "text-3xl text-gray-900 font-semibold tracking-tight mb-3" }, Wa = { class: "text-gray-600" }, Ga = { class: "flex gap-4 justify-center" },
|
|
3541
|
+
}, za = { class: "max-w-lg grid gap-y-6 text-center -mt-8" }, qa = { class: "text-primary-600 text-7xl font-bold mb-4" }, Za = { class: "text-3xl text-gray-900 font-semibold tracking-tight mb-3" }, Wa = { class: "text-gray-600" }, Ga = { class: "flex gap-4 justify-center" }, Oi = {
|
|
3538
3542
|
__name: "SparkErrorGeneralView",
|
|
3539
3543
|
props: {
|
|
3540
3544
|
logo: {
|
|
@@ -3590,9 +3594,9 @@ const ze = "bolt-next-token", Z = ge("auth", () => {
|
|
|
3590
3594
|
]),
|
|
3591
3595
|
f("div", za, [
|
|
3592
3596
|
f("div", null, [
|
|
3593
|
-
f("div", qa,
|
|
3594
|
-
f("h1", Za,
|
|
3595
|
-
f("p", Wa,
|
|
3597
|
+
f("div", qa, O(n.errorCode || "Error"), 1),
|
|
3598
|
+
f("h1", Za, O(n.title || "Something went wrong"), 1),
|
|
3599
|
+
f("p", Wa, O(n.message || "An unexpected error occurred. Please try again later."), 1)
|
|
3596
3600
|
]),
|
|
3597
3601
|
f("div", Ga, [
|
|
3598
3602
|
C(x(re), {
|
|
@@ -3769,16 +3773,16 @@ function Ka(e = {}) {
|
|
|
3769
3773
|
}
|
|
3770
3774
|
), t;
|
|
3771
3775
|
}
|
|
3772
|
-
let
|
|
3776
|
+
let ie = null;
|
|
3773
3777
|
function Ni(e, t = {}) {
|
|
3774
|
-
return
|
|
3778
|
+
return ie = Ka(t), e.provide("axios", ie), e.config.globalProperties.$axios = ie, ie;
|
|
3775
3779
|
}
|
|
3776
3780
|
function Pi() {
|
|
3777
|
-
if (!
|
|
3781
|
+
if (!ie)
|
|
3778
3782
|
throw new Error("Axios instance not initialized. Call setupAxios() first.");
|
|
3779
|
-
return
|
|
3783
|
+
return ie;
|
|
3780
3784
|
}
|
|
3781
|
-
const Mi =
|
|
3785
|
+
const Mi = ye("sparkNav", () => {
|
|
3782
3786
|
const e = ne({
|
|
3783
3787
|
menu: [],
|
|
3784
3788
|
collapsed: !1,
|
|
@@ -3837,14 +3841,14 @@ export {
|
|
|
3837
3841
|
B as Icons,
|
|
3838
3842
|
ai as SparkAlert,
|
|
3839
3843
|
ms as SparkAppSelector,
|
|
3840
|
-
|
|
3844
|
+
Os as SparkBrandSelector,
|
|
3841
3845
|
re as SparkButton,
|
|
3842
3846
|
ii as SparkButtonGroup,
|
|
3843
3847
|
li as SparkCard,
|
|
3844
3848
|
ui as SparkDefaultContainer,
|
|
3845
3849
|
Ta as SparkError403View,
|
|
3846
3850
|
Ma as SparkError404View,
|
|
3847
|
-
|
|
3851
|
+
Oi as SparkErrorGeneralView,
|
|
3848
3852
|
ga as SparkForgotPasswordView,
|
|
3849
3853
|
oa as SparkLoginView,
|
|
3850
3854
|
aa as SparkLogoutView,
|
|
@@ -3858,15 +3862,15 @@ export {
|
|
|
3858
3862
|
Bi as create404Route,
|
|
3859
3863
|
Ti as createAuthRoutes,
|
|
3860
3864
|
Ka as createAxiosInstance,
|
|
3861
|
-
|
|
3865
|
+
Li as createBootstrapService,
|
|
3862
3866
|
Pi as getAxiosInstance,
|
|
3863
3867
|
Hi as setupAuthGuards,
|
|
3864
3868
|
Ni as setupAxios,
|
|
3865
3869
|
Vi as setupBootstrapGuard,
|
|
3866
3870
|
oi as setupFontAwesome,
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3871
|
+
he as sparkModalService,
|
|
3872
|
+
ae as sparkOverlayService,
|
|
3873
|
+
Ot as useSparkAppSelectorStore,
|
|
3870
3874
|
Tt as useSparkAppStore,
|
|
3871
3875
|
Z as useSparkAuthStore,
|
|
3872
3876
|
Ht as useSparkBrandFilterStore,
|
package/package.json
CHANGED
|
@@ -220,7 +220,11 @@ const toggleAppSelector = () => {
|
|
|
220
220
|
slotProps.footerSlot = props.appSelectorSlots.footerSlot
|
|
221
221
|
}
|
|
222
222
|
|
|
223
|
-
sparkOverlayService.showRight(SparkAppSelector, slotProps
|
|
223
|
+
sparkOverlayService.showRight(SparkAppSelector, slotProps, {
|
|
224
|
+
select: (brand) => {
|
|
225
|
+
sparkOverlayService.closeRight()
|
|
226
|
+
},
|
|
227
|
+
})
|
|
224
228
|
}
|
|
225
229
|
|
|
226
230
|
const toggleBrandSelector = () => {
|
|
@@ -230,6 +234,7 @@ const toggleBrandSelector = () => {
|
|
|
230
234
|
{
|
|
231
235
|
select: (brand) => {
|
|
232
236
|
sparkBrandFilterStore.toggleBrand(brand)
|
|
237
|
+
sparkOverlayService.closeLeft()
|
|
233
238
|
},
|
|
234
239
|
},
|
|
235
240
|
)
|